数据可视化大屏
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

269 行
2.2MB

  1. import{$ as Ot,$a as Dl,$b as gi,$c as gn,$d as ow,$e as Ln,A as We,Aa as $n,Ab as xe,Ac as kS,Af as cu,B as Fn,Ba as bS,Bb as ce,Bc as Io,Bd as nm,Bf as lm,C as zo,Ca as TS,Cb as ue,Cd as XS,Cf as Hl,Db as te,Dd as im,Df as vw,E as gS,Eb as Y,Ed as mp,Ef as Op,F as Ke,Fa as Dt,Fb as ye,Fd as vi,Fe,Ff as cm,G as nu,Ga as Do,Gb as Ne,Gc as dp,Ge,Ha as de,Hd as st,He as yi,I as _t,Ia as ES,Ib as Ve,Ic as VS,Id as De,Ie as hr,J as Qe,Ja as He,Jb as K,Jc as mi,Jd as Fl,Je as lw,Jf as Bl,Ka as f,Kb as ii,Kc as Po,Kd as ZS,Ke as eo,Kf as yw,La as w,Lb as yt,Ld as ur,Le as Hi,Lf as Cw,M as zs,Ma as fe,Mb as ri,Md as Al,Me as Ue,Mf as um,N as lp,Na as rs,Nb as iu,Nd as JS,Ne as Ye,Nf as $l,O as mS,Oa as O,Ob as Xn,Od as Nl,Oe as sm,P as Sa,Pa as $e,Pb as Vi,Pd as Ll,Pe as to,Q as Zr,Qa as Xe,Qb as up,Qc as Il,Qd as vp,R as Tl,Ra as fi,Rb as DS,Rc as ou,Rd as yp,Re as lu,S as Os,Sa as Tn,Sb as _e,Sc as Jr,Sd as ew,T as Bt,Ta as _,Tc as Pl,Td as tw,Ua as ze,Uc as GS,Ud as Oi,V as El,Va as h,Vb as RS,Vc as HS,Vd as nw,W as xl,Wa as Re,Wb as IS,Wc as In,Wd as Cp,Xa as k,Xb as PS,Xc as li,Xd as iw,Xe as Sp,Ya as Ol,Yb as it,Yc as pp,Yd as rw,Ye as am,Z as vS,Za as cr,Zb as fn,Zd as kl,Ze as cw,_ as yS,_a as Ae,_b as qg,_c as su,_d as au,_e as Vl,a as V,aa as on,ab as xS,ac as MS,ad as hp,ae as sw,b as ot,ba as F,bb as ie,bc as St,bd as BS,be as aw,bf as Di,ca as CS,cb as yn,cc as lt,cd as Me,ce as ln,cf as wp,d as op,da as _S,dc as we,dd as $S,de as _p,df as bp,ea as zl,eb as Cn,ec as jn,ed as jS,ee as ss,ef as no,f as ke,fa as cp,fb as _n,fc as Wn,fd as WS,fe as dr,ga as pn,gb as C,gc as Gi,gd as fp,ge as oi,h as cS,ha as qe,hb as S,hc as Zt,hd as US,he as Fr,hf as Gl,ia as ge,ib as R,ic as Be,id as KS,ie as Ar,if as ft,j as xo,ja as hn,jb as H,jc as ru,jd as gp,je as mn,ka as nt,kb as B,kd as qS,ke as pt,l as lr,la as ae,lb as Xt,lc as Rl,ld as Qg,le as pr,lf as Tp,m as sp,ma as le,mb as Q,mc as FS,md as YS,me as Sn,mf as Ep,na as j,nb as Ug,nc as Zn,nd as QS,ne as rm,nf as uw,o as J,oa as me,ob as Ta,oc as AS,od as ht,oe as om,p as ct,pa as Se,pb as zS,pc as Yg,pd as Ml,pf as Rs,q as tn,qa as SS,qb as A,qd as Xg,qf as xp,r as ap,ra as oe,rb as OS,rd as Zg,rf as dw,s as uS,sa as I,sb as m,sd as Jg,sf as zp,t as xs,ta as P,tb as Pe,td as os,tf as pw,u as N,ua as Oo,ub as Ie,uc as NS,ud as em,uf as hw,v as dS,vb as Vt,vd as Ea,vf as fw,w as Mn,wa as Ut,wd as Ds,wf as gw,x as pS,xa as wS,xb as Kg,xd as W,xf as mw,y as hS,ya as wa,yb as En,yc as Ro,yd as ci,z as fS,za as ba,zb as Ft,zc as LS,zd as tm}from"./chunk-VDRVUQCF.js";var Mu=ke($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.regexpCode=$t.getEsmExportName=$t.getProperty=$t.safeStringify=$t.stringify=$t.strConcat=$t.addCodeArg=$t.str=$t._=$t.nil=$t._Code=$t.Name=$t.IDENTIFIER=$t._CodeOrName=void 0;var Iu=class{};$t._CodeOrName=Iu;$t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var La=class extends Iu{constructor(n){if(super(),!$t.IDENTIFIER.test(n))throw new Error("CodeGen: name must be a valid identifier");this.str=n}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};$t.Name=La;var Vr=class extends Iu{constructor(n){super(),this._items=typeof n=="string"?[n]:n}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let n=this._items[0];return n===""||n==='""'}get str(){var n;return(n=this._str)!==null&&n!==void 0?n:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var n;return(n=this._names)!==null&&n!==void 0?n:this._names=this._items.reduce((e,t)=>(t instanceof La&&(e[t.str]=(e[t.str]||0)+1),e),{})}};$t._Code=Vr;$t.nil=new Vr("");function $T(o,...n){let e=[o[0]],t=0;for(;t<n.length;)Tv(e,n[t]),e.push(o[++t]);return new Vr(e)}$t._=$T;var bv=new Vr("+");function jT(o,...n){let e=[Pu(o[0])],t=0;for(;t<n.length;)e.push(bv),Tv(e,n[t]),e.push(bv,Pu(o[++t]));return X3(e),new Vr(e)}$t.str=jT;function Tv(o,n){n instanceof Vr?o.push(...n._items):n instanceof La?o.push(n):o.push(eB(n))}$t.addCodeArg=Tv;function X3(o){let n=1;for(;n<o.length-1;){if(o[n]===bv){let e=Z3(o[n-1],o[n+1]);if(e!==void 0){o.splice(n-1,3,e);continue}o[n++]="+"}n++}}function Z3(o,n){if(n==='""')return o;if(o==='""')return n;if(typeof o=="string")return n instanceof La||o[o.length-1]!=='"'?void 0:typeof n!="string"?`${o.slice(0,-1)}${n}"`:n[0]==='"'?o.slice(0,-1)+n.slice(1):void 0;if(typeof n=="string"&&n[0]==='"'&&!(o instanceof La))return`"${o}${n.slice(1)}`}function J3(o,n){return n.emptyStr()?o:o.emptyStr()?n:jT`${o}${n}`}$t.strConcat=J3;function eB(o){return typeof o=="number"||typeof o=="boolean"||o===null?o:Pu(Array.isArray(o)?o.join(","):o)}function tB(o){return new Vr(Pu(o))}$t.stringify=tB;function Pu(o){return JSON.stringify(o).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}$t.safeStringify=Pu;function nB(o){return typeof o=="string"&&$t.IDENTIFIER.test(o)?new Vr(`.${o}`):$T`[${o}]`}$t.getProperty=nB;function iB(o){if(typeof o=="string"&&$t.IDENTIFIER.test(o))return new Vr(`${o}`);throw new Error(`CodeGen: invalid export name: ${o}, use explicit $id name mapping`)}$t.getEsmExportName=iB;function rB(o){return new Vr(o.toString())}$t.regexpCode=rB});var Ov=ke(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.ValueScope=Pi.ValueScopeName=Pi.Scope=Pi.varKinds=Pi.UsedValueState=void 0;var Wi=Mu(),Ev=class extends Error{constructor(n){super(`CodeGen: "code" for ${n} not defined`),this.value=n.value}},xv;(function(o){o[o.Started=0]="Started",o[o.Completed=1]="Completed"})(xv=Pi.UsedValueState||(Pi.UsedValueState={}));Pi.varKinds={const:new Wi.Name("const"),let:new Wi.Name("let"),var:new Wi.Name("var")};var Sh=class{constructor({prefixes:n,parent:e}={}){this._names={},this._prefixes=n,this._parent=e}toName(n){return n instanceof Wi.Name?n:this.name(n)}name(n){return new Wi.Name(this._newName(n))}_newName(n){let e=this._names[n]||this._nameGroup(n);return`${n}${e.index++}`}_nameGroup(n){var e,t;if(!((t=(e=this._parent)===null||e===void 0?void 0:e._prefixes)===null||t===void 0)&&t.has(n)||this._prefixes&&!this._prefixes.has(n))throw new Error(`CodeGen: prefix "${n}" is not allowed in this scope`);return this._names[n]={prefix:n,index:0}}};Pi.Scope=Sh;var wh=class extends Wi.Name{constructor(n,e){super(e),this.prefix=n}setValue(n,{property:e,itemIndex:t}){this.value=n,this.scopePath=(0,Wi._)`.${new Wi.Name(e)}[${t}]`}};Pi.ValueScopeName=wh;var oB=(0,Wi._)`\n`,zv=class extends Sh{constructor(n){super(n),this._values={},this._scope=n.scope,this.opts=ot(V({},n),{_n:n.lines?oB:Wi.nil})}get(){return this._scope}name(n){return new wh(n,this._newName(n))}value(n,e){var t;if(e.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(n),{prefix:r}=i,s=(t=e.key)!==null&&t!==void 0?t:e.ref,a=this._values[r];if(a){let u=a.get(s);if(u)return u}else a=this._values[r]=new Map;a.set(s,i);let l=this._scope[r]||(this._scope[r]=[]),c=l.length;return l[c]=e.ref,i.setValue(e,{property:r,itemIndex:c}),i}getValue(n,e){let t=this._values[n];if(t)return t.get(e)}scopeRefs(n,e=this._values){return this._reduceValues(e,t=>{if(t.scopePath===void 0)throw new Error(`CodeGen: name "${t}" has no value`);return(0,Wi._)`${n}${t.scopePath}`})}scopeCode(n=this._values,e,t){return this._reduceValues(n,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},e,t)}_reduceValues(n,e,t={},i){let r=Wi.nil;for(let s in n){let a=n[s];if(!a)continue;let l=t[s]=t[s]||new Map;a.forEach(c=>{if(l.has(c))return;l.set(c,xv.Started);let u=e(c);if(u){let d=this.opts.es5?Pi.varKinds.var:Pi.varKinds.const;r=(0,Wi._)`${r}${d} ${c} = ${u};${this.opts._n}`}else if(u=i?.(c))r=(0,Wi._)`${r}${u}${this.opts._n}`;else throw new Ev(c);l.set(c,xv.Completed)})}return r}};Pi.ValueScope=zv});var wt=ke(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.or=Tt.and=Tt.not=Tt.CodeGen=Tt.operators=Tt.varKinds=Tt.ValueScopeName=Tt.ValueScope=Tt.Scope=Tt.Name=Tt.regexpCode=Tt.stringify=Tt.getProperty=Tt.nil=Tt.strConcat=Tt.str=Tt._=void 0;var At=Mu(),uo=Ov(),js=Mu();Object.defineProperty(Tt,"_",{enumerable:!0,get:function(){return js._}});Object.defineProperty(Tt,"str",{enumerable:!0,get:function(){return js.str}});Object.defineProperty(Tt,"strConcat",{enumerable:!0,get:function(){return js.strConcat}});Object.defineProperty(Tt,"nil",{enumerable:!0,get:function(){return js.nil}});Object.defineProperty(Tt,"getProperty",{enumerable:!0,get:function(){return js.getProperty}});Object.defineProperty(Tt,"stringify",{enumerable:!0,get:function(){return js.stringify}});Object.defineProperty(Tt,"regexpCode",{enumerable:!0,get:function(){return js.regexpCode}});Object.defineProperty(Tt,"Name",{enumerable:!0,get:function(){return js.Name}});var zh=Ov();Object.defineProperty(Tt,"Scope",{enumerable:!0,get:function(){return zh.Scope}});Object.defineProperty(Tt,"ValueScope",{enumerable:!0,get:function(){return zh.ValueScope}});Object.defineProperty(Tt,"ValueScopeName",{enumerable:!0,get:function(){return zh.ValueScopeName}});Object.defineProperty(Tt,"varKinds",{enumerable:!0,get:function(){return zh.varKinds}});Tt.operators={GT:new At._Code(">"),GTE:new At._Code(">="),LT:new At._Code("<"),LTE:new At._Code("<="),EQ:new At._Code("==="),NEQ:new At._Code("!=="),NOT:new At._Code("!"),OR:new At._Code("||"),AND:new At._Code("&&"),ADD:new At._Code("+")};var hs=class{optimizeNodes(){return this}optimizeNames(n,e){return this}},Dv=class extends hs{constructor(n,e,t){super(),this.varKind=n,this.name=e,this.rhs=t}render({es5:n,_n:e}){let t=n?uo.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${t} ${this.name}${i};`+e}optimizeNames(n,e){if(n[this.name.str])return this.rhs&&(this.rhs=cc(this.rhs,n,e)),this}get names(){return this.rhs instanceof At._CodeOrName?this.rhs.names:{}}},Th=class extends hs{constructor(n,e,t){super(),this.lhs=n,this.rhs=e,this.sideEffects=t}render({_n:n}){return`${this.lhs} = ${this.rhs};`+n}optimizeNames(n,e){if(!(this.lhs instanceof At.Name&&!n[this.lhs.str]&&!this.sideEffects))return this.rhs=cc(this.rhs,n,e),this}get names(){let n=this.lhs instanceof At.Name?{}:V({},this.lhs.names);return xh(n,this.rhs)}},Rv=class extends Th{constructor(n,e,t,i){super(n,t,i),this.op=e}render({_n:n}){return`${this.lhs} ${this.op}= ${this.rhs};`+n}},Iv=class extends hs{constructor(n){super(),this.label=n,this.names={}}render({_n:n}){return`${this.label}:`+n}},Pv=class extends hs{constructor(n){super(),this.label=n,this.names={}}render({_n:n}){return`break${this.label?` ${this.label}`:""};`+n}},Mv=class extends hs{constructor(n){super(),this.error=n}render({_n:n}){return`throw ${this.error};`+n}get names(){return this.error.names}},Fv=class extends hs{constructor(n){super(),this.code=n}render({_n:n}){return`${this.code};`+n}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(n,e){return this.code=cc(this.code,n,e),this}get names(){return this.code instanceof At._CodeOrName?this.code.names:{}}},Fu=class extends hs{constructor(n=[]){super(),this.nodes=n}render(n){return this.nodes.reduce((e,t)=>e+t.render(n),"")}optimizeNodes(){let{nodes:n}=this,e=n.length;for(;e--;){let t=n[e].optimizeNodes();Array.isArray(t)?n.splice(e,1,...t):t?n[e]=t:n.splice(e,1)}return n.length>0?this:void 0}optimizeNames(n,e){let{nodes:t}=this,i=t.length;for(;i--;){let r=t[i];r.optimizeNames(n,e)||(sB(n,r.names),t.splice(i,1))}return t.length>0?this:void 0}get names(){return this.nodes.reduce((n,e)=>ka(n,e.names),{})}},fs=class extends Fu{render(n){return"{"+n._n+super.render(n)+"}"+n._n}},Av=class extends Fu{},Nv=(()=>{class o extends fs{}return o.kind="else",o})(),bh=(()=>{class o extends fs{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let t=this.else;if(t){let i=t.optimizeNodes();t=this.else=Array.isArray(i)?new Nv(i):i}if(t)return e===!1?t instanceof o?t:t.nodes:this.nodes.length?this:new o(YT(e),t instanceof o?[t]:t.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,t){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(e,t),!!(super.optimizeNames(e,t)||this.else))return this.condition=cc(this.condition,e,t),this}get names(){let e=super.names;return xh(e,this.condition),this.else&&ka(e,this.else.names),e}}return o.kind="if",o})(),Oh=(()=>{class o extends fs{}return o.kind="for",o})(),Lv=class extends Oh{constructor(n){super(),this.iteration=n}render(n){return`for(${this.iteration})`+super.render(n)}optimizeNames(n,e){if(super.optimizeNames(n,e))return this.iteration=cc(this.iteration,n,e),this}get names(){return ka(super.names,this.iteration.names)}},kv=class extends Oh{constructor(n,e,t,i){super(),this.varKind=n,this.name=e,this.from=t,this.to=i}render(n){let e=n.es5?uo.varKinds.var:this.varKind,{name:t,from:i,to:r}=this;return`for(${e} ${t}=${i}; ${t}<${r}; ${t}++)`+super.render(n)}get names(){let n=xh(super.names,this.from);return xh(n,this.to)}},Eh=class extends Oh{constructor(n,e,t,i){super(),this.loop=n,this.varKind=e,this.name=t,this.iterable=i}render(n){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(n)}optimizeNames(n,e){if(super.optimizeNames(n,e))return this.iterable=cc(this.iterable,n,e),this}get names(){return ka(super.names,this.iterable.names)}},WT=(()=>{class o extends fs{constructor(e,t,i){super(),this.name=e,this.args=t,this.async=i}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}return o.kind="func",o})(),UT=(()=>{class o extends Fu{render(e){return"return "+super.render(e)}}return o.kind="return",o})(),Vv=class extends fs{render(n){let e="try"+super.render(n);return this.catch&&(e+=this.catch.render(n)),this.finally&&(e+=this.finally.render(n)),e}optimizeNodes(){var n,e;return super.optimizeNodes(),(n=this.catch)===null||n===void 0||n.optimizeNodes(),(e=this.finally)===null||e===void 0||e.optimizeNodes(),this}optimizeNames(n,e){var t,i;return super.optimizeNames(n,e),(t=this.catch)===null||t===void 0||t.optimizeNames(n,e),(i=this.finally)===null||i===void 0||i.optimizeNames(n,e),this}get names(){let n=super.names;return this.catch&&ka(n,this.catch.names),this.finally&&ka(n,this.finally.names),n}},KT=(()=>{class o extends fs{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}return o.kind="catch",o})(),qT=(()=>{class o extends fs{render(e){return"finally"+super.render(e)}}return o.kind="finally",o})(),Gv=class{constructor(n,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts=ot(V({},e),{_n:e.lines?`
  2. `:""}),this._extScope=n,this._scope=new uo.Scope({parent:n}),this._nodes=[new Av]}toString(){return this._root.render(this.opts)}name(n){return this._scope.name(n)}scopeName(n){return this._extScope.name(n)}scopeValue(n,e){let t=this._extScope.value(n,e);return(this._values[t.prefix]||(this._values[t.prefix]=new Set)).add(t),t}getScopeValue(n,e){return this._extScope.getValue(n,e)}scopeRefs(n){return this._extScope.scopeRefs(n,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(n,e,t,i){let r=this._scope.toName(e);return t!==void 0&&i&&(this._constants[r.str]=t),this._leafNode(new Dv(n,r,t)),r}const(n,e,t){return this._def(uo.varKinds.const,n,e,t)}let(n,e,t){return this._def(uo.varKinds.let,n,e,t)}var(n,e,t){return this._def(uo.varKinds.var,n,e,t)}assign(n,e,t){return this._leafNode(new Th(n,e,t))}add(n,e){return this._leafNode(new Rv(n,Tt.operators.ADD,e))}code(n){return typeof n=="function"?n():n!==At.nil&&this._leafNode(new Fv(n)),this}object(...n){let e=["{"];for(let[t,i]of n)e.length>1&&e.push(","),e.push(t),(t!==i||this.opts.es5)&&(e.push(":"),(0,At.addCodeArg)(e,i));return e.push("}"),new At._Code(e)}if(n,e,t){if(this._blockNode(new bh(n)),e&&t)this.code(e).else().code(t).endIf();else if(e)this.code(e).endIf();else if(t)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(n){return this._elseNode(new bh(n))}else(){return this._elseNode(new Nv)}endIf(){return this._endBlockNode(bh,Nv)}_for(n,e){return this._blockNode(n),e&&this.code(e).endFor(),this}for(n,e){return this._for(new Lv(n),e)}forRange(n,e,t,i,r=this.opts.es5?uo.varKinds.var:uo.varKinds.let){let s=this._scope.toName(n);return this._for(new kv(r,s,e,t),()=>i(s))}forOf(n,e,t,i=uo.varKinds.const){let r=this._scope.toName(n);if(this.opts.es5){let s=e instanceof At.Name?e:this.var("_arr",e);return this.forRange("_i",0,(0,At._)`${s}.length`,a=>{this.var(r,(0,At._)`${s}[${a}]`),t(r)})}return this._for(new Eh("of",i,r,e),()=>t(r))}forIn(n,e,t,i=this.opts.es5?uo.varKinds.var:uo.varKinds.const){if(this.opts.ownProperties)return this.forOf(n,(0,At._)`Object.keys(${e})`,t);let r=this._scope.toName(n);return this._for(new Eh("in",i,r,e),()=>t(r))}endFor(){return this._endBlockNode(Oh)}label(n){return this._leafNode(new Iv(n))}break(n){return this._leafNode(new Pv(n))}return(n){let e=new UT;if(this._blockNode(e),this.code(n),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(UT)}try(n,e,t){if(!e&&!t)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Vv;if(this._blockNode(i),this.code(n),e){let r=this.name("e");this._currNode=i.catch=new KT(r),e(r)}return t&&(this._currNode=i.finally=new qT,this.code(t)),this._endBlockNode(KT,qT)}throw(n){return this._leafNode(new Mv(n))}block(n,e){return this._blockStarts.push(this._nodes.length),n&&this.code(n).endBlock(e),this}endBlock(n){let e=this._blockStarts.pop();if(e===void 0)throw new Error("CodeGen: not in self-balancing block");let t=this._nodes.length-e;if(t<0||n!==void 0&&t!==n)throw new Error(`CodeGen: wrong number of nodes: ${t} vs ${n} expected`);return this._nodes.length=e,this}func(n,e=At.nil,t,i){return this._blockNode(new WT(n,e,t)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(WT)}optimize(n=1){for(;n-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(n){return this._currNode.nodes.push(n),this}_blockNode(n){this._currNode.nodes.push(n),this._nodes.push(n)}_endBlockNode(n,e){let t=this._currNode;if(t instanceof n||e&&t instanceof e)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${e?`${n.kind}/${e.kind}`:n.kind}"`)}_elseNode(n){let e=this._currNode;if(!(e instanceof bh))throw new Error('CodeGen: "else" without "if"');return this._currNode=e.else=n,this}get _root(){return this._nodes[0]}get _currNode(){let n=this._nodes;return n[n.length-1]}set _currNode(n){let e=this._nodes;e[e.length-1]=n}};Tt.CodeGen=Gv;function ka(o,n){for(let e in n)o[e]=(o[e]||0)+(n[e]||0);return o}function xh(o,n){return n instanceof At._CodeOrName?ka(o,n.names):o}function cc(o,n,e){if(o instanceof At.Name)return t(o);if(!i(o))return o;return new At._Code(o._items.reduce((r,s)=>(s instanceof At.Name&&(s=t(s)),s instanceof At._Code?r.push(...s._items):r.push(s),r),[]));function t(r){let s=e[r.str];return s===void 0||n[r.str]!==1?r:(delete n[r.str],s)}function i(r){return r instanceof At._Code&&r._items.some(s=>s instanceof At.Name&&n[s.str]===1&&e[s.str]!==void 0)}}function sB(o,n){for(let e in n)o[e]=(o[e]||0)-(n[e]||0)}function YT(o){return typeof o=="boolean"||typeof o=="number"||o===null?!o:(0,At._)`!${Hv(o)}`}Tt.not=YT;var aB=QT(Tt.operators.AND);function lB(...o){return o.reduce(aB)}Tt.and=lB;var cB=QT(Tt.operators.OR);function uB(...o){return o.reduce(cB)}Tt.or=uB;function QT(o){return(n,e)=>n===At.nil?e:e===At.nil?n:(0,At._)`${Hv(n)} ${o} ${Hv(e)}`}function Hv(o){return o instanceof At.Name?o:(0,At._)`(${o})`}});var jt=ke(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.checkStrictMode=Et.getErrorPath=Et.Type=Et.useFunc=Et.setEvaluated=Et.evaluatedPropsToName=Et.mergeEvaluated=Et.eachItem=Et.unescapeJsonPointer=Et.escapeJsonPointer=Et.escapeFragment=Et.unescapeFragment=Et.schemaRefOrVal=Et.schemaHasRulesButRef=Et.schemaHasRules=Et.checkUnknownRules=Et.alwaysValidSchema=Et.toHash=void 0;var un=wt(),dB=Mu();function pB(o){let n={};for(let e of o)n[e]=!0;return n}Et.toHash=pB;function hB(o,n){return typeof n=="boolean"?n:Object.keys(n).length===0?!0:(JT(o,n),!eE(n,o.self.RULES.all))}Et.alwaysValidSchema=hB;function JT(o,n=o.schema){let{opts:e,self:t}=o;if(!e.strictSchema||typeof n=="boolean")return;let i=t.RULES.keywords;for(let r in n)i[r]||rE(o,`unknown keyword: "${r}"`)}Et.checkUnknownRules=JT;function eE(o,n){if(typeof o=="boolean")return!o;for(let e in o)if(n[e])return!0;return!1}Et.schemaHasRules=eE;function fB(o,n){if(typeof o=="boolean")return!o;for(let e in o)if(e!=="$ref"&&n.all[e])return!0;return!1}Et.schemaHasRulesButRef=fB;function gB({topSchemaRef:o,schemaPath:n},e,t,i){if(!i){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return(0,un._)`${e}`}return(0,un._)`${o}${n}${(0,un.getProperty)(t)}`}Et.schemaRefOrVal=gB;function mB(o){return tE(decodeURIComponent(o))}Et.unescapeFragment=mB;function vB(o){return encodeURIComponent(Bv(o))}Et.escapeFragment=vB;function Bv(o){return typeof o=="number"?`${o}`:o.replace(/~/g,"~0").replace(/\//g,"~1")}Et.escapeJsonPointer=Bv;function tE(o){return o.replace(/~1/g,"/").replace(/~0/g,"~")}Et.unescapeJsonPointer=tE;function yB(o,n){if(Array.isArray(o))for(let e of o)n(e);else n(o)}Et.eachItem=yB;function XT({mergeNames:o,mergeToName:n,mergeValues:e,resultToName:t}){return(i,r,s,a)=>{let l=s===void 0?r:s instanceof un.Name?(r instanceof un.Name?o(i,r,s):n(i,r,s),s):r instanceof un.Name?(n(i,s,r),r):e(r,s);return a===un.Name&&!(l instanceof un.Name)?t(i,l):l}}Et.mergeEvaluated={props:XT({mergeNames:(o,n,e)=>o.if((0,un._)`${e} !== true && ${n} !== undefined`,()=>{o.if((0,un._)`${n} === true`,()=>o.assign(e,!0),()=>o.assign(e,(0,un._)`${e} || {}`).code((0,un._)`Object.assign(${e}, ${n})`))}),mergeToName:(o,n,e)=>o.if((0,un._)`${e} !== true`,()=>{n===!0?o.assign(e,!0):(o.assign(e,(0,un._)`${e} || {}`),$v(o,e,n))}),mergeValues:(o,n)=>o===!0?!0:V(V({},o),n),resultToName:nE}),items:XT({mergeNames:(o,n,e)=>o.if((0,un._)`${e} !== true && ${n} !== undefined`,()=>o.assign(e,(0,un._)`${n} === true ? true : ${e} > ${n} ? ${e} : ${n}`)),mergeToName:(o,n,e)=>o.if((0,un._)`${e} !== true`,()=>o.assign(e,n===!0?!0:(0,un._)`${e} > ${n} ? ${e} : ${n}`)),mergeValues:(o,n)=>o===!0?!0:Math.max(o,n),resultToName:(o,n)=>o.var("items",n)})};function nE(o,n){if(n===!0)return o.var("props",!0);let e=o.var("props",(0,un._)`{}`);return n!==void 0&&$v(o,e,n),e}Et.evaluatedPropsToName=nE;function $v(o,n,e){Object.keys(e).forEach(t=>o.assign((0,un._)`${n}${(0,un.getProperty)(t)}`,!0))}Et.setEvaluated=$v;var ZT={};function CB(o,n){return o.scopeValue("func",{ref:n,code:ZT[n.code]||(ZT[n.code]=new dB._Code(n.code))})}Et.useFunc=CB;var iE;(function(o){o[o.Num=0]="Num",o[o.Str=1]="Str"})(iE=Et.Type||(Et.Type={}));function _B(o,n,e){if(o instanceof un.Name){let t=n===iE.Num;return e?t?(0,un._)`"[" + ${o} + "]"`:(0,un._)`"['" + ${o} + "']"`:t?(0,un._)`"/" + ${o}`:(0,un._)`"/" + ${o}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?(0,un.getProperty)(o).toString():"/"+Bv(o)}Et.getErrorPath=_B;function rE(o,n,e=o.opts.strictSchema){if(e){if(n=`strict mode: ${n}`,e===!0)throw new Error(n);o.self.logger.warn(n)}}Et.checkStrictMode=rE});var gs=ke(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});var wi=wt(),SB={data:new wi.Name("data"),valCxt:new wi.Name("valCxt"),instancePath:new wi.Name("instancePath"),parentData:new wi.Name("parentData"),parentDataProperty:new wi.Name("parentDataProperty"),rootData:new wi.Name("rootData"),dynamicAnchors:new wi.Name("dynamicAnchors"),vErrors:new wi.Name("vErrors"),errors:new wi.Name("errors"),this:new wi.Name("this"),self:new wi.Name("self"),scope:new wi.Name("scope"),json:new wi.Name("json"),jsonPos:new wi.Name("jsonPos"),jsonLen:new wi.Name("jsonLen"),jsonPart:new wi.Name("jsonPart")};jv.default=SB});var Au=ke(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.extendErrors=bi.resetErrorsCount=bi.reportExtraError=bi.reportError=bi.keyword$DataError=bi.keywordError=void 0;var Gt=wt(),Dh=jt(),Mi=gs();bi.keywordError={message:({keyword:o})=>(0,Gt.str)`must pass "${o}" keyword validation`};bi.keyword$DataError={message:({keyword:o,schemaType:n})=>n?(0,Gt.str)`"${o}" keyword must be ${n} ($data)`:(0,Gt.str)`"${o}" keyword is invalid ($data)`};function wB(o,n=bi.keywordError,e,t){let{it:i}=o,{gen:r,compositeRule:s,allErrors:a}=i,l=aE(o,n,e);t??(s||a)?oE(r,l):sE(i,(0,Gt._)`[${l}]`)}bi.reportError=wB;function bB(o,n=bi.keywordError,e){let{it:t}=o,{gen:i,compositeRule:r,allErrors:s}=t,a=aE(o,n,e);oE(i,a),r||s||sE(t,Mi.default.vErrors)}bi.reportExtraError=bB;function TB(o,n){o.assign(Mi.default.errors,n),o.if((0,Gt._)`${Mi.default.vErrors} !== null`,()=>o.if(n,()=>o.assign((0,Gt._)`${Mi.default.vErrors}.length`,n),()=>o.assign(Mi.default.vErrors,null)))}bi.resetErrorsCount=TB;function EB({gen:o,keyword:n,schemaValue:e,data:t,errsCount:i,it:r}){if(i===void 0)throw new Error("ajv implementation error");let s=o.name("err");o.forRange("i",i,Mi.default.errors,a=>{o.const(s,(0,Gt._)`${Mi.default.vErrors}[${a}]`),o.if((0,Gt._)`${s}.instancePath === undefined`,()=>o.assign((0,Gt._)`${s}.instancePath`,(0,Gt.strConcat)(Mi.default.instancePath,r.errorPath))),o.assign((0,Gt._)`${s}.schemaPath`,(0,Gt.str)`${r.errSchemaPath}/${n}`),r.opts.verbose&&(o.assign((0,Gt._)`${s}.schema`,e),o.assign((0,Gt._)`${s}.data`,t))})}bi.extendErrors=EB;function oE(o,n){let e=o.const("err",n);o.if((0,Gt._)`${Mi.default.vErrors} === null`,()=>o.assign(Mi.default.vErrors,(0,Gt._)`[${e}]`),(0,Gt._)`${Mi.default.vErrors}.push(${e})`),o.code((0,Gt._)`${Mi.default.errors}++`)}function sE(o,n){let{gen:e,validateName:t,schemaEnv:i}=o;i.$async?e.throw((0,Gt._)`new ${o.ValidationError}(${n})`):(e.assign((0,Gt._)`${t}.errors`,n),e.return(!1))}var Va={keyword:new Gt.Name("keyword"),schemaPath:new Gt.Name("schemaPath"),params:new Gt.Name("params"),propertyName:new Gt.Name("propertyName"),message:new Gt.Name("message"),schema:new Gt.Name("schema"),parentSchema:new Gt.Name("parentSchema")};function aE(o,n,e){let{createErrors:t}=o.it;return t===!1?(0,Gt._)`{}`:xB(o,n,e)}function xB(o,n,e={}){let{gen:t,it:i}=o,r=[zB(i,e),OB(o,e)];return DB(o,n,r),t.object(...r)}function zB({errorPath:o},{instancePath:n}){let e=n?(0,Gt.str)`${o}${(0,Dh.getErrorPath)(n,Dh.Type.Str)}`:o;return[Mi.default.instancePath,(0,Gt.strConcat)(Mi.default.instancePath,e)]}function OB({keyword:o,it:{errSchemaPath:n}},{schemaPath:e,parentSchema:t}){let i=t?n:(0,Gt.str)`${n}/${o}`;return e&&(i=(0,Gt.str)`${i}${(0,Dh.getErrorPath)(e,Dh.Type.Str)}`),[Va.schemaPath,i]}function DB(o,{params:n,message:e},t){let{keyword:i,data:r,schemaValue:s,it:a}=o,{opts:l,propertyName:c,topSchemaRef:u,schemaPath:d}=a;t.push([Va.keyword,i],[Va.params,typeof n=="function"?n(o):n||(0,Gt._)`{}`]),l.messages&&t.push([Va.message,typeof e=="function"?e(o):e]),l.verbose&&t.push([Va.schema,s],[Va.parentSchema,(0,Gt._)`${u}${d}`],[Mi.default.data,r]),c&&t.push([Va.propertyName,c])}});var cE=ke(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.boolOrEmptySchema=uc.topBoolOrEmptySchema=void 0;var RB=Au(),IB=wt(),PB=gs(),MB={message:"boolean schema is false"};function FB(o){let{gen:n,schema:e,validateName:t}=o;e===!1?lE(o,!1):typeof e=="object"&&e.$async===!0?n.return(PB.default.data):(n.assign((0,IB._)`${t}.errors`,null),n.return(!0))}uc.topBoolOrEmptySchema=FB;function AB(o,n){let{gen:e,schema:t}=o;t===!1?(e.var(n,!1),lE(o)):e.var(n,!0)}uc.boolOrEmptySchema=AB;function lE(o,n){let{gen:e,data:t}=o,i={gen:e,keyword:"false schema",data:t,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,RB.reportError)(i,MB,void 0,n)}});var Wv=ke(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.getRules=dc.isJSONType=void 0;var NB=["string","number","integer","boolean","null","object","array"],LB=new Set(NB);function kB(o){return typeof o=="string"&&LB.has(o)}dc.isJSONType=kB;function VB(){let o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:ot(V({},o),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}dc.getRules=VB});var Uv=ke(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.shouldUseRule=Ws.shouldUseGroup=Ws.schemaHasRulesForType=void 0;function GB({schema:o,self:n},e){let t=n.RULES.types[e];return t&&t!==!0&&uE(o,t)}Ws.schemaHasRulesForType=GB;function uE(o,n){return n.rules.some(e=>dE(o,e))}Ws.shouldUseGroup=uE;function dE(o,n){var e;return o[n.keyword]!==void 0||((e=n.definition.implements)===null||e===void 0?void 0:e.some(t=>o[t]!==void 0))}Ws.shouldUseRule=dE});var Lu=ke(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.reportTypeError=ui.checkDataTypes=ui.checkDataType=ui.coerceAndCheckDataType=ui.getJSONTypes=ui.getSchemaTypes=ui.DataType=void 0;var HB=Wv(),BB=Uv(),$B=Au(),Ct=wt(),pE=jt(),Nu;(function(o){o[o.Correct=0]="Correct",o[o.Wrong=1]="Wrong"})(Nu=ui.DataType||(ui.DataType={}));function jB(o){let n=hE(o.type);if(n.includes("null")){if(o.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!n.length&&o.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');o.nullable===!0&&n.push("null")}return n}ui.getSchemaTypes=jB;function hE(o){let n=Array.isArray(o)?o:o?[o]:[];if(n.every(HB.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}ui.getJSONTypes=hE;function WB(o,n){let{gen:e,data:t,opts:i}=o,r=UB(n,i.coerceTypes),s=n.length>0&&!(r.length===0&&n.length===1&&(0,BB.schemaHasRulesForType)(o,n[0]));if(s){let a=qv(n,t,i.strictNumbers,Nu.Wrong);e.if(a,()=>{r.length?KB(o,n,r):Yv(o)})}return s}ui.coerceAndCheckDataType=WB;var fE=new Set(["string","number","integer","boolean","null"]);function UB(o,n){return n?o.filter(e=>fE.has(e)||n==="array"&&e==="array"):[]}function KB(o,n,e){let{gen:t,data:i,opts:r}=o,s=t.let("dataType",(0,Ct._)`typeof ${i}`),a=t.let("coerced",(0,Ct._)`undefined`);r.coerceTypes==="array"&&t.if((0,Ct._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>t.assign(i,(0,Ct._)`${i}[0]`).assign(s,(0,Ct._)`typeof ${i}`).if(qv(n,i,r.strictNumbers),()=>t.assign(a,i))),t.if((0,Ct._)`${a} !== undefined`);for(let c of e)(fE.has(c)||c==="array"&&r.coerceTypes==="array")&&l(c);t.else(),Yv(o),t.endIf(),t.if((0,Ct._)`${a} !== undefined`,()=>{t.assign(i,a),qB(o,a)});function l(c){switch(c){case"string":t.elseIf((0,Ct._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,Ct._)`"" + ${i}`).elseIf((0,Ct._)`${i} === null`).assign(a,(0,Ct._)`""`);return;case"number":t.elseIf((0,Ct._)`${s} == "boolean" || ${i} === null
  3. || (${s} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,Ct._)`+${i}`);return;case"integer":t.elseIf((0,Ct._)`${s} === "boolean" || ${i} === null
  4. || (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,Ct._)`+${i}`);return;case"boolean":t.elseIf((0,Ct._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,Ct._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":t.elseIf((0,Ct._)`${i} === "" || ${i} === 0 || ${i} === false`),t.assign(a,null);return;case"array":t.elseIf((0,Ct._)`${s} === "string" || ${s} === "number"
  5. || ${s} === "boolean" || ${i} === null`).assign(a,(0,Ct._)`[${i}]`)}}}function qB({gen:o,parentData:n,parentDataProperty:e},t){o.if((0,Ct._)`${n} !== undefined`,()=>o.assign((0,Ct._)`${n}[${e}]`,t))}function Kv(o,n,e,t=Nu.Correct){let i=t===Nu.Correct?Ct.operators.EQ:Ct.operators.NEQ,r;switch(o){case"null":return(0,Ct._)`${n} ${i} null`;case"array":r=(0,Ct._)`Array.isArray(${n})`;break;case"object":r=(0,Ct._)`${n} && typeof ${n} == "object" && !Array.isArray(${n})`;break;case"integer":r=s((0,Ct._)`!(${n} % 1) && !isNaN(${n})`);break;case"number":r=s();break;default:return(0,Ct._)`typeof ${n} ${i} ${o}`}return t===Nu.Correct?r:(0,Ct.not)(r);function s(a=Ct.nil){return(0,Ct.and)((0,Ct._)`typeof ${n} == "number"`,a,e?(0,Ct._)`isFinite(${n})`:Ct.nil)}}ui.checkDataType=Kv;function qv(o,n,e,t){if(o.length===1)return Kv(o[0],n,e,t);let i,r=(0,pE.toHash)(o);if(r.array&&r.object){let s=(0,Ct._)`typeof ${n} != "object"`;i=r.null?s:(0,Ct._)`!${n} || ${s}`,delete r.null,delete r.array,delete r.object}else i=Ct.nil;r.number&&delete r.integer;for(let s in r)i=(0,Ct.and)(i,Kv(s,n,e,t));return i}ui.checkDataTypes=qv;var YB={message:({schema:o})=>`must be ${o}`,params:({schema:o,schemaValue:n})=>typeof o=="string"?(0,Ct._)`{type: ${o}}`:(0,Ct._)`{type: ${n}}`};function Yv(o){let n=QB(o);(0,$B.reportError)(n,YB)}ui.reportTypeError=Yv;function QB(o){let{gen:n,data:e,schema:t}=o,i=(0,pE.schemaRefOrVal)(o,t,"type");return{gen:n,keyword:"type",data:e,schema:t.type,schemaCode:i,schemaValue:i,parentSchema:t,params:{},it:o}}});var mE=ke(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.assignDefaults=void 0;var pc=wt(),XB=jt();function ZB(o,n){let{properties:e,items:t}=o.schema;if(n==="object"&&e)for(let i in e)gE(o,i,e[i].default);else n==="array"&&Array.isArray(t)&&t.forEach((i,r)=>gE(o,r,i.default))}Rh.assignDefaults=ZB;function gE(o,n,e){let{gen:t,compositeRule:i,data:r,opts:s}=o;if(e===void 0)return;let a=(0,pc._)`${r}${(0,pc.getProperty)(n)}`;if(i){(0,XB.checkStrictMode)(o,`default is ignored for: ${a}`);return}let l=(0,pc._)`${a} === undefined`;s.useDefaults==="empty"&&(l=(0,pc._)`${l} || ${a} === null || ${a} === ""`),t.if(l,(0,pc._)`${a} = ${(0,pc.stringify)(e)}`)}});var Gr=ke(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.validateUnion=sn.validateArray=sn.usePattern=sn.callValidateCode=sn.schemaProperties=sn.allSchemaProperties=sn.noPropertyInData=sn.propertyInData=sn.isOwnProperty=sn.hasPropFunc=sn.reportMissingProp=sn.checkMissingProp=sn.checkReportMissingProp=void 0;var wn=wt(),Qv=jt(),Us=gs(),JB=jt();function e$(o,n){let{gen:e,data:t,it:i}=o;e.if(Zv(e,t,n,i.opts.ownProperties),()=>{o.setParams({missingProperty:(0,wn._)`${n}`},!0),o.error()})}sn.checkReportMissingProp=e$;function t$({gen:o,data:n,it:{opts:e}},t,i){return(0,wn.or)(...t.map(r=>(0,wn.and)(Zv(o,n,r,e.ownProperties),(0,wn._)`${i} = ${r}`)))}sn.checkMissingProp=t$;function n$(o,n){o.setParams({missingProperty:n},!0),o.error()}sn.reportMissingProp=n$;function vE(o){return o.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,wn._)`Object.prototype.hasOwnProperty`})}sn.hasPropFunc=vE;function Xv(o,n,e){return(0,wn._)`${vE(o)}.call(${n}, ${e})`}sn.isOwnProperty=Xv;function i$(o,n,e,t){let i=(0,wn._)`${n}${(0,wn.getProperty)(e)} !== undefined`;return t?(0,wn._)`${i} && ${Xv(o,n,e)}`:i}sn.propertyInData=i$;function Zv(o,n,e,t){let i=(0,wn._)`${n}${(0,wn.getProperty)(e)} === undefined`;return t?(0,wn.or)(i,(0,wn.not)(Xv(o,n,e))):i}sn.noPropertyInData=Zv;function yE(o){return o?Object.keys(o).filter(n=>n!=="__proto__"):[]}sn.allSchemaProperties=yE;function r$(o,n){return yE(n).filter(e=>!(0,Qv.alwaysValidSchema)(o,n[e]))}sn.schemaProperties=r$;function o$({schemaCode:o,data:n,it:{gen:e,topSchemaRef:t,schemaPath:i,errorPath:r},it:s},a,l,c){let u=c?(0,wn._)`${o}, ${n}, ${t}${i}`:n,d=[[Us.default.instancePath,(0,wn.strConcat)(Us.default.instancePath,r)],[Us.default.parentData,s.parentData],[Us.default.parentDataProperty,s.parentDataProperty],[Us.default.rootData,Us.default.rootData]];s.opts.dynamicRef&&d.push([Us.default.dynamicAnchors,Us.default.dynamicAnchors]);let p=(0,wn._)`${u}, ${e.object(...d)}`;return l!==wn.nil?(0,wn._)`${a}.call(${l}, ${p})`:(0,wn._)`${a}(${p})`}sn.callValidateCode=o$;var s$=(0,wn._)`new RegExp`;function a$({gen:o,it:{opts:n}},e){let t=n.unicodeRegExp?"u":"",{regExp:i}=n.code,r=i(e,t);return o.scopeValue("pattern",{key:r.toString(),ref:r,code:(0,wn._)`${i.code==="new RegExp"?s$:(0,JB.useFunc)(o,i)}(${e}, ${t})`})}sn.usePattern=a$;function l$(o){let{gen:n,data:e,keyword:t,it:i}=o,r=n.name("valid");if(i.allErrors){let a=n.let("valid",!0);return s(()=>n.assign(a,!1)),a}return n.var(r,!0),s(()=>n.break()),r;function s(a){let l=n.const("len",(0,wn._)`${e}.length`);n.forRange("i",0,l,c=>{o.subschema({keyword:t,dataProp:c,dataPropType:Qv.Type.Num},r),n.if((0,wn.not)(r),a)})}}sn.validateArray=l$;function c$(o){let{gen:n,schema:e,keyword:t,it:i}=o;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(l=>(0,Qv.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;let s=n.let("valid",!1),a=n.name("_valid");n.block(()=>e.forEach((l,c)=>{let u=o.subschema({keyword:t,schemaProp:c,compositeRule:!0},a);n.assign(s,(0,wn._)`${s} || ${a}`),o.mergeValidEvaluated(u,a)||n.if((0,wn.not)(s))})),o.result(s,()=>o.reset(),()=>o.error(!0))}sn.validateUnion=c$});var SE=ke(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.validateKeywordUsage=Ao.validSchemaType=Ao.funcKeywordCode=Ao.macroKeywordCode=void 0;var Fi=wt(),Ga=gs(),u$=Gr(),d$=Au();function p$(o,n){let{gen:e,keyword:t,schema:i,parentSchema:r,it:s}=o,a=n.macro.call(s.self,i,r,s),l=_E(e,t,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let c=e.name("valid");o.subschema({schema:a,schemaPath:Fi.nil,errSchemaPath:`${s.errSchemaPath}/${t}`,topSchemaRef:l,compositeRule:!0},c),o.pass(c,()=>o.error(!0))}Ao.macroKeywordCode=p$;function h$(o,n){var e;let{gen:t,keyword:i,schema:r,parentSchema:s,$data:a,it:l}=o;g$(l,n);let c=!a&&n.compile?n.compile.call(l.self,r,s,l):n.validate,u=_E(t,i,c),d=t.let("valid");o.block$data(d,p),o.ok((e=n.valid)!==null&&e!==void 0?e:d);function p(){if(n.errors===!1)y(),n.modifying&&CE(o),x(()=>o.error());else{let E=n.async?g():v();n.modifying&&CE(o),x(()=>f$(o,E))}}function g(){let E=t.let("ruleErrs",null);return t.try(()=>y((0,Fi._)`await `),z=>t.assign(d,!1).if((0,Fi._)`${z} instanceof ${l.ValidationError}`,()=>t.assign(E,(0,Fi._)`${z}.errors`),()=>t.throw(z))),E}function v(){let E=(0,Fi._)`${u}.errors`;return t.assign(E,null),y(Fi.nil),E}function y(E=n.async?(0,Fi._)`await `:Fi.nil){let z=l.opts.passContext?Ga.default.this:Ga.default.self,M=!("compile"in n&&!a||n.schema===!1);t.assign(d,(0,Fi._)`${E}${(0,u$.callValidateCode)(o,u,z,M)}`,n.modifying)}function x(E){var z;t.if((0,Fi.not)((z=n.valid)!==null&&z!==void 0?z:d),E)}}Ao.funcKeywordCode=h$;function CE(o){let{gen:n,data:e,it:t}=o;n.if(t.parentData,()=>n.assign(e,(0,Fi._)`${t.parentData}[${t.parentDataProperty}]`))}function f$(o,n){let{gen:e}=o;e.if((0,Fi._)`Array.isArray(${n})`,()=>{e.assign(Ga.default.vErrors,(0,Fi._)`${Ga.default.vErrors} === null ? ${n} : ${Ga.default.vErrors}.concat(${n})`).assign(Ga.default.errors,(0,Fi._)`${Ga.default.vErrors}.length`),(0,d$.extendErrors)(o)},()=>o.error())}function g$({schemaEnv:o},n){if(n.async&&!o.$async)throw new Error("async keyword in sync schema")}function _E(o,n,e){if(e===void 0)throw new Error(`keyword "${n}" failed to compile`);return o.scopeValue("keyword",typeof e=="function"?{ref:e}:{ref:e,code:(0,Fi.stringify)(e)})}function m$(o,n,e=!1){return!n.length||n.some(t=>t==="array"?Array.isArray(o):t==="object"?o&&typeof o=="object"&&!Array.isArray(o):typeof o==t||e&&typeof o>"u")}Ao.validSchemaType=m$;function v$({schema:o,opts:n,self:e,errSchemaPath:t},i,r){if(Array.isArray(i.keyword)?!i.keyword.includes(r):i.keyword!==r)throw new Error("ajv implementation error");let s=i.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(o,a)))throw new Error(`parent schema must have dependencies of ${r}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(o[r])){let l=`keyword "${r}" value is invalid at path "${t}": `+e.errorsText(i.validateSchema.errors);if(n.validateSchema==="log")e.logger.error(l);else throw new Error(l)}}Ao.validateKeywordUsage=v$});var bE=ke(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.extendSubschemaMode=Ks.extendSubschemaData=Ks.getSubschema=void 0;var No=wt(),wE=jt();function y$(o,{keyword:n,schemaProp:e,schema:t,schemaPath:i,errSchemaPath:r,topSchemaRef:s}){if(n!==void 0&&t!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(n!==void 0){let a=o.schema[n];return e===void 0?{schema:a,schemaPath:(0,No._)`${o.schemaPath}${(0,No.getProperty)(n)}`,errSchemaPath:`${o.errSchemaPath}/${n}`}:{schema:a[e],schemaPath:(0,No._)`${o.schemaPath}${(0,No.getProperty)(n)}${(0,No.getProperty)(e)}`,errSchemaPath:`${o.errSchemaPath}/${n}/${(0,wE.escapeFragment)(e)}`}}if(t!==void 0){if(i===void 0||r===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:t,schemaPath:i,topSchemaRef:s,errSchemaPath:r}}throw new Error('either "keyword" or "schema" must be passed')}Ks.getSubschema=y$;function C$(o,n,{dataProp:e,dataPropType:t,data:i,dataTypes:r,propertyName:s}){if(i!==void 0&&e!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=n;if(e!==void 0){let{errorPath:c,dataPathArr:u,opts:d}=n,p=a.let("data",(0,No._)`${n.data}${(0,No.getProperty)(e)}`,!0);l(p),o.errorPath=(0,No.str)`${c}${(0,wE.getErrorPath)(e,t,d.jsPropertySyntax)}`,o.parentDataProperty=(0,No._)`${e}`,o.dataPathArr=[...u,o.parentDataProperty]}if(i!==void 0){let c=i instanceof No.Name?i:a.let("data",i,!0);l(c),s!==void 0&&(o.propertyName=s)}r&&(o.dataTypes=r);function l(c){o.data=c,o.dataLevel=n.dataLevel+1,o.dataTypes=[],n.definedProperties=new Set,o.parentData=n.data,o.dataNames=[...n.dataNames,c]}}Ks.extendSubschemaData=C$;function _$(o,{jtdDiscriminator:n,jtdMetadata:e,compositeRule:t,createErrors:i,allErrors:r}){t!==void 0&&(o.compositeRule=t),i!==void 0&&(o.createErrors=i),r!==void 0&&(o.allErrors=r),o.jtdDiscriminator=n,o.jtdMetadata=e}Ks.extendSubschemaMode=_$});var Jv=ke((lve,TE)=>{"use strict";TE.exports=function o(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){if(n.constructor!==e.constructor)return!1;var t,i,r;if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(i=t;i--!==0;)if(!o(n[i],e[i]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if(r=Object.keys(n),t=r.length,t!==Object.keys(e).length)return!1;for(i=t;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=t;i--!==0;){var s=r[i];if(!o(n[s],e[s]))return!1}return!0}return n!==n&&e!==e}});var xE=ke((cve,EE)=>{"use strict";var qs=EE.exports=function(o,n,e){typeof n=="function"&&(e=n,n={}),e=n.cb||e;var t=typeof e=="function"?e:e.pre||function(){},i=e.post||function(){};Ih(n,t,i,o,"",o)};qs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};qs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};qs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};qs.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 Ih(o,n,e,t,i,r,s,a,l,c){if(t&&typeof t=="object"&&!Array.isArray(t)){n(t,i,r,s,a,l,c);for(var u in t){var d=t[u];if(Array.isArray(d)){if(u in qs.arrayKeywords)for(var p=0;p<d.length;p++)Ih(o,n,e,d[p],i+"/"+u+"/"+p,r,i,u,t,p)}else if(u in qs.propsKeywords){if(d&&typeof d=="object")for(var g in d)Ih(o,n,e,d[g],i+"/"+u+"/"+S$(g),r,i,u,t,g)}else(u in qs.keywords||o.allKeys&&!(u in qs.skipKeywords))&&Ih(o,n,e,d,i+"/"+u,r,i,u,t)}e(t,i,r,s,a,l,c)}}function S$(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}});var ku=ke(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.getSchemaRefs=Ui.resolveUrl=Ui.normalizeId=Ui._getFullPath=Ui.getFullPath=Ui.inlineRef=void 0;var w$=jt(),b$=Jv(),T$=xE(),E$=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function x$(o,n=!0){return typeof o=="boolean"?!0:n===!0?!ey(o):n?zE(o)<=n:!1}Ui.inlineRef=x$;var z$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ey(o){for(let n in o){if(z$.has(n))return!0;let e=o[n];if(Array.isArray(e)&&e.some(ey)||typeof e=="object"&&ey(e))return!0}return!1}function zE(o){let n=0;for(let e in o){if(e==="$ref")return 1/0;if(n++,!E$.has(e)&&(typeof o[e]=="object"&&(0,w$.eachItem)(o[e],t=>n+=zE(t)),n===1/0))return 1/0}return n}function OE(o,n="",e){e!==!1&&(n=hc(n));let t=o.parse(n);return DE(o,t)}Ui.getFullPath=OE;function DE(o,n){return o.serialize(n).split("#")[0]+"#"}Ui._getFullPath=DE;var O$=/#\/?$/;function hc(o){return o?o.replace(O$,""):""}Ui.normalizeId=hc;function D$(o,n,e){return e=hc(e),o.resolve(n,e)}Ui.resolveUrl=D$;var R$=/^[a-z_][-a-z0-9._]*$/i;function I$(o,n){if(typeof o=="boolean")return{};let{schemaId:e,uriResolver:t}=this.opts,i=hc(o[e]||n),r={"":i},s=OE(t,i,!1),a={},l=new Set;return T$(o,{allKeys:!0},(d,p,g,v)=>{if(v===void 0)return;let y=s+p,x=r[v];typeof d[e]=="string"&&(x=E.call(this,d[e])),z.call(this,d.$anchor),z.call(this,d.$dynamicAnchor),r[p]=x;function E(M){let G=this.opts.uriResolver.resolve;if(M=hc(x?G(x,M):M),l.has(M))throw u(M);l.add(M);let U=this.refs[M];return typeof U=="string"&&(U=this.refs[U]),typeof U=="object"?c(d,U.schema,M):M!==hc(y)&&(M[0]==="#"?(c(d,a[M],M),a[M]=d):this.refs[M]=y),M}function z(M){if(typeof M=="string"){if(!R$.test(M))throw new Error(`invalid anchor "${M}"`);E.call(this,`#${M}`)}}}),a;function c(d,p,g){if(p!==void 0&&!b$(d,p))throw u(g)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}Ui.getSchemaRefs=I$});var Hu=ke(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.getData=Ys.KeywordCxt=Ys.validateFunctionCode=void 0;var FE=cE(),RE=Lu(),ny=Uv(),Ph=Lu(),P$=mE(),Gu=SE(),ty=bE(),Ze=wt(),ut=gs(),M$=ku(),ms=jt(),Vu=Au();function F$(o){if(LE(o)&&(kE(o),NE(o))){L$(o);return}AE(o,()=>(0,FE.topBoolOrEmptySchema)(o))}Ys.validateFunctionCode=F$;function AE({gen:o,validateName:n,schema:e,schemaEnv:t,opts:i},r){i.code.es5?o.func(n,(0,Ze._)`${ut.default.data}, ${ut.default.valCxt}`,t.$async,()=>{o.code((0,Ze._)`"use strict"; ${IE(e,i)}`),N$(o,i),o.code(r)}):o.func(n,(0,Ze._)`${ut.default.data}, ${A$(i)}`,t.$async,()=>o.code(IE(e,i)).code(r))}function A$(o){return(0,Ze._)`{${ut.default.instancePath}="", ${ut.default.parentData}, ${ut.default.parentDataProperty}, ${ut.default.rootData}=${ut.default.data}${o.dynamicRef?(0,Ze._)`, ${ut.default.dynamicAnchors}={}`:Ze.nil}}={}`}function N$(o,n){o.if(ut.default.valCxt,()=>{o.var(ut.default.instancePath,(0,Ze._)`${ut.default.valCxt}.${ut.default.instancePath}`),o.var(ut.default.parentData,(0,Ze._)`${ut.default.valCxt}.${ut.default.parentData}`),o.var(ut.default.parentDataProperty,(0,Ze._)`${ut.default.valCxt}.${ut.default.parentDataProperty}`),o.var(ut.default.rootData,(0,Ze._)`${ut.default.valCxt}.${ut.default.rootData}`),n.dynamicRef&&o.var(ut.default.dynamicAnchors,(0,Ze._)`${ut.default.valCxt}.${ut.default.dynamicAnchors}`)},()=>{o.var(ut.default.instancePath,(0,Ze._)`""`),o.var(ut.default.parentData,(0,Ze._)`undefined`),o.var(ut.default.parentDataProperty,(0,Ze._)`undefined`),o.var(ut.default.rootData,ut.default.data),n.dynamicRef&&o.var(ut.default.dynamicAnchors,(0,Ze._)`{}`)})}function L$(o){let{schema:n,opts:e,gen:t}=o;AE(o,()=>{e.$comment&&n.$comment&&GE(o),B$(o),t.let(ut.default.vErrors,null),t.let(ut.default.errors,0),e.unevaluated&&k$(o),VE(o),W$(o)})}function k$(o){let{gen:n,validateName:e}=o;o.evaluated=n.const("evaluated",(0,Ze._)`${e}.evaluated`),n.if((0,Ze._)`${o.evaluated}.dynamicProps`,()=>n.assign((0,Ze._)`${o.evaluated}.props`,(0,Ze._)`undefined`)),n.if((0,Ze._)`${o.evaluated}.dynamicItems`,()=>n.assign((0,Ze._)`${o.evaluated}.items`,(0,Ze._)`undefined`))}function IE(o,n){let e=typeof o=="object"&&o[n.schemaId];return e&&(n.code.source||n.code.process)?(0,Ze._)`/*# sourceURL=${e} */`:Ze.nil}function V$(o,n){if(LE(o)&&(kE(o),NE(o))){G$(o,n);return}(0,FE.boolOrEmptySchema)(o,n)}function NE({schema:o,self:n}){if(typeof o=="boolean")return!o;for(let e in o)if(n.RULES.all[e])return!0;return!1}function LE(o){return typeof o.schema!="boolean"}function G$(o,n){let{schema:e,gen:t,opts:i}=o;i.$comment&&e.$comment&&GE(o),$$(o),j$(o);let r=t.const("_errs",ut.default.errors);VE(o,r),t.var(n,(0,Ze._)`${r} === ${ut.default.errors}`)}function kE(o){(0,ms.checkUnknownRules)(o),H$(o)}function VE(o,n){if(o.opts.jtd)return PE(o,[],!1,n);let e=(0,RE.getSchemaTypes)(o.schema),t=(0,RE.coerceAndCheckDataType)(o,e);PE(o,e,!t,n)}function H$(o){let{schema:n,errSchemaPath:e,opts:t,self:i}=o;n.$ref&&t.ignoreKeywordsWithRef&&(0,ms.schemaHasRulesButRef)(n,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function B$(o){let{schema:n,opts:e}=o;n.default!==void 0&&e.useDefaults&&e.strictSchema&&(0,ms.checkStrictMode)(o,"default is ignored in the schema root")}function $$(o){let n=o.schema[o.opts.schemaId];n&&(o.baseId=(0,M$.resolveUrl)(o.opts.uriResolver,o.baseId,n))}function j$(o){if(o.schema.$async&&!o.schemaEnv.$async)throw new Error("async schema in sync schema")}function GE({gen:o,schemaEnv:n,schema:e,errSchemaPath:t,opts:i}){let r=e.$comment;if(i.$comment===!0)o.code((0,Ze._)`${ut.default.self}.logger.log(${r})`);else if(typeof i.$comment=="function"){let s=(0,Ze.str)`${t}/$comment`,a=o.scopeValue("root",{ref:n.root});o.code((0,Ze._)`${ut.default.self}.opts.$comment(${r}, ${s}, ${a}.schema)`)}}function W$(o){let{gen:n,schemaEnv:e,validateName:t,ValidationError:i,opts:r}=o;e.$async?n.if((0,Ze._)`${ut.default.errors} === 0`,()=>n.return(ut.default.data),()=>n.throw((0,Ze._)`new ${i}(${ut.default.vErrors})`)):(n.assign((0,Ze._)`${t}.errors`,ut.default.vErrors),r.unevaluated&&U$(o),n.return((0,Ze._)`${ut.default.errors} === 0`))}function U$({gen:o,evaluated:n,props:e,items:t}){e instanceof Ze.Name&&o.assign((0,Ze._)`${n}.props`,e),t instanceof Ze.Name&&o.assign((0,Ze._)`${n}.items`,t)}function PE(o,n,e,t){let{gen:i,schema:r,data:s,allErrors:a,opts:l,self:c}=o,{RULES:u}=c;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,ms.schemaHasRulesButRef)(r,u))){i.block(()=>BE(o,"$ref",u.all.$ref.definition));return}l.jtd||K$(o,n),i.block(()=>{for(let p of u.rules)d(p);d(u.post)});function d(p){(0,ny.shouldUseGroup)(r,p)&&(p.type?(i.if((0,Ph.checkDataType)(p.type,s,l.strictNumbers)),ME(o,p),n.length===1&&n[0]===p.type&&e&&(i.else(),(0,Ph.reportTypeError)(o)),i.endIf()):ME(o,p),a||i.if((0,Ze._)`${ut.default.errors} === ${t||0}`))}}function ME(o,n){let{gen:e,schema:t,opts:{useDefaults:i}}=o;i&&(0,P$.assignDefaults)(o,n.type),e.block(()=>{for(let r of n.rules)(0,ny.shouldUseRule)(t,r)&&BE(o,r.keyword,r.definition,n.type)})}function K$(o,n){o.schemaEnv.meta||!o.opts.strictTypes||(q$(o,n),o.opts.allowUnionTypes||Y$(o,n),Q$(o,o.dataTypes))}function q$(o,n){if(n.length){if(!o.dataTypes.length){o.dataTypes=n;return}n.forEach(e=>{HE(o.dataTypes,e)||iy(o,`type "${e}" not allowed by context "${o.dataTypes.join(",")}"`)}),Z$(o,n)}}function Y$(o,n){n.length>1&&!(n.length===2&&n.includes("null"))&&iy(o,"use allowUnionTypes to allow union type keyword")}function Q$(o,n){let e=o.self.RULES.all;for(let t in e){let i=e[t];if(typeof i=="object"&&(0,ny.shouldUseRule)(o.schema,i)){let{type:r}=i.definition;r.length&&!r.some(s=>X$(n,s))&&iy(o,`missing type "${r.join(",")}" for keyword "${t}"`)}}}function X$(o,n){return o.includes(n)||n==="number"&&o.includes("integer")}function HE(o,n){return o.includes(n)||n==="integer"&&o.includes("number")}function Z$(o,n){let e=[];for(let t of o.dataTypes)HE(n,t)?e.push(t):n.includes("integer")&&t==="number"&&e.push("integer");o.dataTypes=e}function iy(o,n){let e=o.schemaEnv.baseId+o.errSchemaPath;n+=` at "${e}" (strictTypes)`,(0,ms.checkStrictMode)(o,n,o.opts.strictTypes)}var Mh=class{constructor(n,e,t){if((0,Gu.validateKeywordUsage)(n,e,t),this.gen=n.gen,this.allErrors=n.allErrors,this.keyword=t,this.data=n.data,this.schema=n.schema[t],this.$data=e.$data&&n.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ms.schemaRefOrVal)(n,this.schema,t,this.$data),this.schemaType=e.schemaType,this.parentSchema=n.schema,this.params={},this.it=n,this.def=e,this.$data)this.schemaCode=n.gen.const("vSchema",$E(this.$data,n));else if(this.schemaCode=this.schemaValue,!(0,Gu.validSchemaType)(this.schema,e.schemaType,e.allowUndefined))throw new Error(`${t} value must be ${JSON.stringify(e.schemaType)}`);("code"in e?e.trackErrors:e.errors!==!1)&&(this.errsCount=n.gen.const("_errs",ut.default.errors))}result(n,e,t){this.failResult((0,Ze.not)(n),e,t)}failResult(n,e,t){this.gen.if(n),t?t():this.error(),e?(this.gen.else(),e(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(n,e){this.failResult((0,Ze.not)(n),void 0,e)}fail(n){if(n===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(n),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(n){if(!this.$data)return this.fail(n);let{schemaCode:e}=this;this.fail((0,Ze._)`${e} !== undefined && (${(0,Ze.or)(this.invalid$data(),n)})`)}error(n,e,t){if(e){this.setParams(e),this._error(n,t),this.setParams({});return}this._error(n,t)}_error(n,e){(n?Vu.reportExtraError:Vu.reportError)(this,this.def.error,e)}$dataError(){(0,Vu.reportError)(this,this.def.$dataError||Vu.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Vu.resetErrorsCount)(this.gen,this.errsCount)}ok(n){this.allErrors||this.gen.if(n)}setParams(n,e){e?Object.assign(this.params,n):this.params=n}block$data(n,e,t=Ze.nil){this.gen.block(()=>{this.check$data(n,t),e()})}check$data(n=Ze.nil,e=Ze.nil){if(!this.$data)return;let{gen:t,schemaCode:i,schemaType:r,def:s}=this;t.if((0,Ze.or)((0,Ze._)`${i} === undefined`,e)),n!==Ze.nil&&t.assign(n,!0),(r.length||s.validateSchema)&&(t.elseIf(this.invalid$data()),this.$dataError(),n!==Ze.nil&&t.assign(n,!1)),t.else()}invalid$data(){let{gen:n,schemaCode:e,schemaType:t,def:i,it:r}=this;return(0,Ze.or)(s(),a());function s(){if(t.length){if(!(e instanceof Ze.Name))throw new Error("ajv implementation error");let l=Array.isArray(t)?t:[t];return(0,Ze._)`${(0,Ph.checkDataTypes)(l,e,r.opts.strictNumbers,Ph.DataType.Wrong)}`}return Ze.nil}function a(){if(i.validateSchema){let l=n.scopeValue("validate$data",{ref:i.validateSchema});return(0,Ze._)`!${l}(${e})`}return Ze.nil}}subschema(n,e){let t=(0,ty.getSubschema)(this.it,n);(0,ty.extendSubschemaData)(t,this.it,n),(0,ty.extendSubschemaMode)(t,n);let i=ot(V(V({},this.it),t),{items:void 0,props:void 0});return V$(i,e),i}mergeEvaluated(n,e){let{it:t,gen:i}=this;t.opts.unevaluated&&(t.props!==!0&&n.props!==void 0&&(t.props=ms.mergeEvaluated.props(i,n.props,t.props,e)),t.items!==!0&&n.items!==void 0&&(t.items=ms.mergeEvaluated.items(i,n.items,t.items,e)))}mergeValidEvaluated(n,e){let{it:t,gen:i}=this;if(t.opts.unevaluated&&(t.props!==!0||t.items!==!0))return i.if(e,()=>this.mergeEvaluated(n,Ze.Name)),!0}};Ys.KeywordCxt=Mh;function BE(o,n,e,t){let i=new Mh(o,e,n);"code"in e?e.code(i,t):i.$data&&e.validate?(0,Gu.funcKeywordCode)(i,e):"macro"in e?(0,Gu.macroKeywordCode)(i,e):(e.compile||e.validate)&&(0,Gu.funcKeywordCode)(i,e)}var J$=/^\/(?:[^~]|~0|~1)*$/,ej=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $E(o,{dataLevel:n,dataNames:e,dataPathArr:t}){let i,r;if(o==="")return ut.default.rootData;if(o[0]==="/"){if(!J$.test(o))throw new Error(`Invalid JSON-pointer: ${o}`);i=o,r=ut.default.rootData}else{let c=ej.exec(o);if(!c)throw new Error(`Invalid JSON-pointer: ${o}`);let u=+c[1];if(i=c[2],i==="#"){if(u>=n)throw new Error(l("property/index",u));return t[n-u]}if(u>n)throw new Error(l("data",u));if(r=e[n-u],!i)return r}let s=r,a=i.split("/");for(let c of a)c&&(r=(0,Ze._)`${r}${(0,Ze.getProperty)((0,ms.unescapeJsonPointer)(c))}`,s=(0,Ze._)`${s} && ${r}`);return s;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${n}`}}Ys.getData=$E});var Fh=ke(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var ry=class extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}};oy.default=ry});var Ah=ke(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var sy=ku(),ay=class extends Error{constructor(n,e,t,i){super(i||`can't resolve reference ${t} from id ${e}`),this.missingRef=(0,sy.resolveUrl)(n,e,t),this.missingSchema=(0,sy.normalizeId)((0,sy.getFullPath)(n,this.missingRef))}};ly.default=ay});var Lh=ke(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.resolveSchema=Hr.getCompilingSchema=Hr.resolveRef=Hr.compileSchema=Hr.SchemaEnv=void 0;var po=wt(),tj=Fh(),Ha=gs(),ho=ku(),jE=jt(),nj=Hu(),fc=class{constructor(n){var e;this.refs={},this.dynamicAnchors={};let t;typeof n.schema=="object"&&(t=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=(e=n.baseId)!==null&&e!==void 0?e:(0,ho.normalizeId)(t?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=t?.$async,this.refs={}}};Hr.SchemaEnv=fc;function uy(o){let n=WE.call(this,o);if(n)return n;let e=(0,ho.getFullPath)(this.opts.uriResolver,o.root.baseId),{es5:t,lines:i}=this.opts.code,{ownProperties:r}=this.opts,s=new po.CodeGen(this.scope,{es5:t,lines:i,ownProperties:r}),a;o.$async&&(a=s.scopeValue("Error",{ref:tj.default,code:(0,po._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");o.validateName=l;let c={gen:s,allErrors:this.opts.allErrors,data:Ha.default.data,parentData:Ha.default.parentData,parentDataProperty:Ha.default.parentDataProperty,dataNames:[Ha.default.data],dataPathArr:[po.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:o.schema,code:(0,po.stringify)(o.schema)}:{ref:o.schema}),validateName:l,ValidationError:a,schema:o.schema,schemaEnv:o,rootId:e,baseId:o.baseId||e,schemaPath:po.nil,errSchemaPath:o.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,po._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(o),(0,nj.validateFunctionCode)(c),s.optimize(this.opts.code.optimize);let d=s.toString();u=`${s.scopeRefs(Ha.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,o));let g=new Function(`${Ha.default.self}`,`${Ha.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:g}),g.errors=null,g.schema=o.schema,g.schemaEnv=o,o.$async&&(g.$async=!0),this.opts.code.source===!0&&(g.source={validateName:l,validateCode:d,scopeValues:s._values}),this.opts.unevaluated){let{props:v,items:y}=c;g.evaluated={props:v instanceof po.Name?void 0:v,items:y instanceof po.Name?void 0:y,dynamicProps:v instanceof po.Name,dynamicItems:y instanceof po.Name},g.source&&(g.source.evaluated=(0,po.stringify)(g.evaluated))}return o.validate=g,o}catch(d){throw delete o.validate,delete o.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(o)}}Hr.compileSchema=uy;function ij(o,n,e){var t;e=(0,ho.resolveUrl)(this.opts.uriResolver,n,e);let i=o.refs[e];if(i)return i;let r=sj.call(this,o,e);if(r===void 0){let s=(t=o.localRefs)===null||t===void 0?void 0:t[e],{schemaId:a}=this.opts;s&&(r=new fc({schema:s,schemaId:a,root:o,baseId:n}))}if(r!==void 0)return o.refs[e]=rj.call(this,r)}Hr.resolveRef=ij;function rj(o){return(0,ho.inlineRef)(o.schema,this.opts.inlineRefs)?o.schema:o.validate?o:uy.call(this,o)}function WE(o){for(let n of this._compilations)if(oj(n,o))return n}Hr.getCompilingSchema=WE;function oj(o,n){return o.schema===n.schema&&o.root===n.root&&o.baseId===n.baseId}function sj(o,n){let e;for(;typeof(e=this.refs[n])=="string";)n=e;return e||this.schemas[n]||Nh.call(this,o,n)}function Nh(o,n){let e=this.opts.uriResolver.parse(n),t=(0,ho._getFullPath)(this.opts.uriResolver,e),i=(0,ho.getFullPath)(this.opts.uriResolver,o.baseId,void 0);if(Object.keys(o.schema).length>0&&t===i)return cy.call(this,e,o);let r=(0,ho.normalizeId)(t),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let a=Nh.call(this,o,s);return typeof a?.schema!="object"?void 0:cy.call(this,e,a)}if(typeof s?.schema=="object"){if(s.validate||uy.call(this,s),r===(0,ho.normalizeId)(n)){let{schema:a}=s,{schemaId:l}=this.opts,c=a[l];return c&&(i=(0,ho.resolveUrl)(this.opts.uriResolver,i,c)),new fc({schema:a,schemaId:l,root:o,baseId:i})}return cy.call(this,e,s)}}Hr.resolveSchema=Nh;var aj=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function cy(o,{baseId:n,schema:e,root:t}){var i;if(((i=o.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of o.fragment.slice(1).split("/")){if(typeof e=="boolean")return;let l=e[(0,jE.unescapeFragment)(a)];if(l===void 0)return;e=l;let c=typeof e=="object"&&e[this.opts.schemaId];!aj.has(a)&&c&&(n=(0,ho.resolveUrl)(this.opts.uriResolver,n,c))}let r;if(typeof e!="boolean"&&e.$ref&&!(0,jE.schemaHasRulesButRef)(e,this.RULES)){let a=(0,ho.resolveUrl)(this.opts.uriResolver,n,e.$ref);r=Nh.call(this,t,a)}let{schemaId:s}=this.opts;if(r=r||new fc({schema:e,schemaId:s,root:t,baseId:n}),r.schema!==r.root.schema)return r}});var UE=ke((mve,lj)=>{lj.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 qE=ke((kh,KE)=>{"use strict";(function(o,n){typeof kh=="object"&&typeof KE<"u"?n(kh):typeof define=="function"&&define.amd?define(["exports"],n):n(o.URI=o.URI||{})})(kh,function(o){"use strict";function n(){for(var L=arguments.length,D=Array(L),$=0;$<L;$++)D[$]=arguments[$];if(D.length>1){D[0]=D[0].slice(0,-1);for(var X=D.length-1,Z=1;Z<X;++Z)D[Z]=D[Z].slice(1,-1);return D[X]=D[X].slice(1),D.join("")}else return D[0]}function e(L){return"(?:"+L+")"}function t(L){return L===void 0?"undefined":L===null?"null":Object.prototype.toString.call(L).split(" ").pop().split("]").shift().toLowerCase()}function i(L){return L.toUpperCase()}function r(L){return L!=null?L instanceof Array?L:typeof L.length!="number"||L.split||L.setInterval||L.call?[L]:Array.prototype.slice.call(L):[]}function s(L,D){var $=L;if(D)for(var X in D)$[X]=D[X];return $}function a(L){var D="[A-Za-z]",$="[\\x0D]",X="[0-9]",Z="[\\x22]",Le=n(X,"[A-Fa-f]"),vt="[\\x0A]",Ht="[\\x20]",Qt=e(e("%[EFef]"+Le+"%"+Le+Le+"%"+Le+Le)+"|"+e("%[89A-Fa-f]"+Le+"%"+Le+Le)+"|"+e("%"+Le+Le)),Hn="[\\:\\/\\?\\#\\[\\]\\@]",kt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Dn=n(Hn,kt),Bn=L?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",bn=L?"[\\uE000-\\uF8FF]":"[]",Wt=n(D,X,"[\\-\\.\\_\\~]",Bn),Rn=e(D+n(D,X,"[\\+\\-\\.]")+"*"),rn=e(e(Qt+"|"+n(Wt,kt,"[\\:]"))+"*"),ya=e(e("25[0-5]")+"|"+e("2[0-4]"+X)+"|"+e("1"+X+X)+"|"+e("[1-9]"+X)+"|"+X),sr=e(e("25[0-5]")+"|"+e("2[0-4]"+X)+"|"+e("1"+X+X)+"|"+e("0?[1-9]"+X)+"|0?0?"+X),Pr=e(sr+"\\."+sr+"\\."+sr+"\\."+sr),an=e(Le+"{1,4}"),ar=e(e(an+"\\:"+an)+"|"+Pr),Mr=e(e(an+"\\:")+"{6}"+ar),Eo=e("\\:\\:"+e(an+"\\:")+"{5}"+ar),Ca=e(e(an)+"?\\:\\:"+e(an+"\\:")+"{4}"+ar),ts=e(e(e(an+"\\:")+"{0,1}"+an)+"?\\:\\:"+e(an+"\\:")+"{3}"+ar),Xc=e(e(e(an+"\\:")+"{0,2}"+an)+"?\\:\\:"+e(an+"\\:")+"{2}"+ar),np=e(e(e(an+"\\:")+"{0,3}"+an)+"?\\:\\:"+an+"\\:"+ar),ip=e(e(e(an+"\\:")+"{0,4}"+an)+"?\\:\\:"+ar),yl=e(e(e(an+"\\:")+"{0,5}"+an)+"?\\:\\:"+an),Cl=e(e(e(an+"\\:")+"{0,6}"+an)+"?\\:\\:"),ns=e([Mr,Eo,Ca,ts,Xc,np,ip,yl,Cl].join("|")),_l=e(e(Wt+"|"+Qt)+"+"),jg=e(ns+"\\%25"+_l),_a=e(ns+e("\\%25|\\%(?!"+Le+"{2})")+_l),MI=e("[vV]"+Le+"+\\."+n(Wt,kt,"[\\:]")+"+"),FI=e("\\["+e(_a+"|"+ns+"|"+MI)+"\\]"),oS=e(e(Qt+"|"+n(Wt,kt))+"*"),Zc=e(FI+"|"+Pr+"(?!"+oS+")|"+oS),Jc=e(X+"*"),sS=e(e(rn+"@")+"?"+Zc+e("\\:"+Jc)+"?"),eu=e(Qt+"|"+n(Wt,kt,"[\\:\\@]")),AI=e(eu+"*"),aS=e(eu+"+"),NI=e(e(Qt+"|"+n(Wt,kt,"[\\@]"))+"+"),is=e(e("\\/"+AI)+"*"),Sl=e("\\/"+e(aS+is)+"?"),Wg=e(NI+is),rp=e(aS+is),wl="(?!"+eu+")",Bre=e(is+"|"+Sl+"|"+Wg+"|"+rp+"|"+wl),bl=e(e(eu+"|"+n("[\\/\\?]",bn))+"*"),tu=e(e(eu+"|[\\/\\?]")+"*"),lS=e(e("\\/\\/"+sS+is)+"|"+Sl+"|"+rp+"|"+wl),LI=e(Rn+"\\:"+lS+e("\\?"+bl)+"?"+e("\\#"+tu)+"?"),kI=e(e("\\/\\/"+sS+is)+"|"+Sl+"|"+Wg+"|"+wl),VI=e(kI+e("\\?"+bl)+"?"+e("\\#"+tu)+"?"),$re=e(LI+"|"+VI),jre=e(Rn+"\\:"+lS+e("\\?"+bl)+"?"),Wre="^("+Rn+")\\:"+e(e("\\/\\/("+e("("+rn+")@")+"?("+Zc+")"+e("\\:("+Jc+")")+"?)")+"?("+is+"|"+Sl+"|"+rp+"|"+wl+")")+e("\\?("+bl+")")+"?"+e("\\#("+tu+")")+"?$",Ure="^(){0}"+e(e("\\/\\/("+e("("+rn+")@")+"?("+Zc+")"+e("\\:("+Jc+")")+"?)")+"?("+is+"|"+Sl+"|"+Wg+"|"+wl+")")+e("\\?("+bl+")")+"?"+e("\\#("+tu+")")+"?$",Kre="^("+Rn+")\\:"+e(e("\\/\\/("+e("("+rn+")@")+"?("+Zc+")"+e("\\:("+Jc+")")+"?)")+"?("+is+"|"+Sl+"|"+rp+"|"+wl+")")+e("\\?("+bl+")")+"?$",qre="^"+e("\\#("+tu+")")+"?$",Yre="^"+e("("+rn+")@")+"?("+Zc+")"+e("\\:("+Jc+")")+"?$";return{NOT_SCHEME:new RegExp(n("[^]",D,X,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",Wt,kt),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",Wt,kt),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",Wt,kt),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",Wt,kt),"g"),NOT_QUERY:new RegExp(n("[^\\%]",Wt,kt,"[\\:\\@\\/\\?]",bn),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",Wt,kt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",Wt,kt),"g"),UNRESERVED:new RegExp(Wt,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",Wt,Dn),"g"),PCT_ENCODED:new RegExp(Qt,"g"),IPV4ADDRESS:new RegExp("^("+Pr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+ns+")"+e(e("\\%25|\\%(?!"+Le+"{2})")+"("+_l+")")+"?\\]?$")}}var l=a(!1),c=a(!0),u=function(){function L(D,$){var X=[],Z=!0,Le=!1,vt=void 0;try{for(var Ht=D[Symbol.iterator](),Qt;!(Z=(Qt=Ht.next()).done)&&(X.push(Qt.value),!($&&X.length===$));Z=!0);}catch(Hn){Le=!0,vt=Hn}finally{try{!Z&&Ht.return&&Ht.return()}finally{if(Le)throw vt}}return X}return function(D,$){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return L(D,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(L){if(Array.isArray(L)){for(var D=0,$=Array(L.length);D<L.length;D++)$[D]=L[D];return $}else return Array.from(L)},p=2147483647,g=36,v=1,y=26,x=38,E=700,z=72,M=128,G="-",U=/^xn--/,se=/[^\0-\x7E]/,ve=/[\x2E\u3002\uFF0E\uFF61]/g,he={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},be=g-v,Ee=Math.floor,Te=String.fromCharCode;function rt(L){throw new RangeError(he[L])}function en(L,D){for(var $=[],X=L.length;X--;)$[X]=D(L[X]);return $}function dn(L,D){var $=L.split("@"),X="";$.length>1&&(X=$[0]+"@",L=$[1]),L=L.replace(ve,".");var Z=L.split("."),Le=en(Z,D).join(".");return X+Le}function Yt(L){for(var D=[],$=0,X=L.length;$<X;){var Z=L.charCodeAt($++);if(Z>=55296&&Z<=56319&&$<X){var Le=L.charCodeAt($++);(Le&64512)==56320?D.push(((Z&1023)<<10)+(Le&1023)+65536):(D.push(Z),$--)}else D.push(Z)}return D}var ni=function(D){return String.fromCodePoint.apply(String,d(D))},Lt=function(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:g},ai=function(D,$){return D+22+75*(D<26)-(($!=0)<<5)},ki=function(D,$,X){var Z=0;for(D=X?Ee(D/E):D>>1,D+=Ee(D/$);D>be*y>>1;Z+=g)D=Ee(D/be);return Ee(Z+(be+1)*D/(D+x))},Rr=function(D){var $=[],X=D.length,Z=0,Le=M,vt=z,Ht=D.lastIndexOf(G);Ht<0&&(Ht=0);for(var Qt=0;Qt<Ht;++Qt)D.charCodeAt(Qt)>=128&&rt("not-basic"),$.push(D.charCodeAt(Qt));for(var Hn=Ht>0?Ht+1:0;Hn<X;){for(var kt=Z,Dn=1,Bn=g;;Bn+=g){Hn>=X&&rt("invalid-input");var bn=Lt(D.charCodeAt(Hn++));(bn>=g||bn>Ee((p-Z)/Dn))&&rt("overflow"),Z+=bn*Dn;var Wt=Bn<=vt?v:Bn>=vt+y?y:Bn-vt;if(bn<Wt)break;var Rn=g-Wt;Dn>Ee(p/Rn)&&rt("overflow"),Dn*=Rn}var rn=$.length+1;vt=ki(Z-kt,rn,kt==0),Ee(Z/rn)>p-Le&&rt("overflow"),Le+=Ee(Z/rn),Z%=rn,$.splice(Z++,0,Le)}return String.fromCodePoint.apply(String,$)},hl=function(D){var $=[];D=Yt(D);var X=D.length,Z=M,Le=0,vt=z,Ht=!0,Qt=!1,Hn=void 0;try{for(var kt=D[Symbol.iterator](),Dn;!(Ht=(Dn=kt.next()).done);Ht=!0){var Bn=Dn.value;Bn<128&&$.push(Te(Bn))}}catch(_a){Qt=!0,Hn=_a}finally{try{!Ht&&kt.return&&kt.return()}finally{if(Qt)throw Hn}}var bn=$.length,Wt=bn;for(bn&&$.push(G);Wt<X;){var Rn=p,rn=!0,ya=!1,sr=void 0;try{for(var Pr=D[Symbol.iterator](),an;!(rn=(an=Pr.next()).done);rn=!0){var ar=an.value;ar>=Z&&ar<Rn&&(Rn=ar)}}catch(_a){ya=!0,sr=_a}finally{try{!rn&&Pr.return&&Pr.return()}finally{if(ya)throw sr}}var Mr=Wt+1;Rn-Z>Ee((p-Le)/Mr)&&rt("overflow"),Le+=(Rn-Z)*Mr,Z=Rn;var Eo=!0,Ca=!1,ts=void 0;try{for(var Xc=D[Symbol.iterator](),np;!(Eo=(np=Xc.next()).done);Eo=!0){var ip=np.value;if(ip<Z&&++Le>p&&rt("overflow"),ip==Z){for(var yl=Le,Cl=g;;Cl+=g){var ns=Cl<=vt?v:Cl>=vt+y?y:Cl-vt;if(yl<ns)break;var _l=yl-ns,jg=g-ns;$.push(Te(ai(ns+_l%jg,0))),yl=Ee(_l/jg)}$.push(Te(ai(yl,0))),vt=ki(Le,Mr,Wt==bn),Le=0,++Wt}}}catch(_a){Ca=!0,ts=_a}finally{try{!Eo&&Xc.return&&Xc.return()}finally{if(Ca)throw ts}}++Le,++Z}return $.join("")},qc=function(D){return dn(D,function($){return U.test($)?Rr($.slice(4).toLowerCase()):$})},tp=function(D){return dn(D,function($){return se.test($)?"xn--"+hl($):$})},fl={version:"2.1.0",ucs2:{decode:Yt,encode:ni},decode:Rr,encode:hl,toASCII:tp,toUnicode:qc},Ir={};function wo(L){var D=L.charCodeAt(0),$=void 0;return D<16?$="%0"+D.toString(16).toUpperCase():D<128?$="%"+D.toString(16).toUpperCase():D<2048?$="%"+(D>>6|192).toString(16).toUpperCase()+"%"+(D&63|128).toString(16).toUpperCase():$="%"+(D>>12|224).toString(16).toUpperCase()+"%"+(D>>6&63|128).toString(16).toUpperCase()+"%"+(D&63|128).toString(16).toUpperCase(),$}function gl(L){for(var D="",$=0,X=L.length;$<X;){var Z=parseInt(L.substr($+1,2),16);if(Z<128)D+=String.fromCharCode(Z),$+=3;else if(Z>=194&&Z<224){if(X-$>=6){var Le=parseInt(L.substr($+4,2),16);D+=String.fromCharCode((Z&31)<<6|Le&63)}else D+=L.substr($,6);$+=6}else if(Z>=224){if(X-$>=9){var vt=parseInt(L.substr($+4,2),16),Ht=parseInt(L.substr($+7,2),16);D+=String.fromCharCode((Z&15)<<12|(vt&63)<<6|Ht&63)}else D+=L.substr($,9);$+=9}else D+=L.substr($,3),$+=3}return D}function Gg(L,D){function $(X){var Z=gl(X);return Z.match(D.UNRESERVED)?Z:X}return L.scheme&&(L.scheme=String(L.scheme).replace(D.PCT_ENCODED,$).toLowerCase().replace(D.NOT_SCHEME,"")),L.userinfo!==void 0&&(L.userinfo=String(L.userinfo).replace(D.PCT_ENCODED,$).replace(D.NOT_USERINFO,wo).replace(D.PCT_ENCODED,i)),L.host!==void 0&&(L.host=String(L.host).replace(D.PCT_ENCODED,$).toLowerCase().replace(D.NOT_HOST,wo).replace(D.PCT_ENCODED,i)),L.path!==void 0&&(L.path=String(L.path).replace(D.PCT_ENCODED,$).replace(L.scheme?D.NOT_PATH:D.NOT_PATH_NOSCHEME,wo).replace(D.PCT_ENCODED,i)),L.query!==void 0&&(L.query=String(L.query).replace(D.PCT_ENCODED,$).replace(D.NOT_QUERY,wo).replace(D.PCT_ENCODED,i)),L.fragment!==void 0&&(L.fragment=String(L.fragment).replace(D.PCT_ENCODED,$).replace(D.NOT_FRAGMENT,wo).replace(D.PCT_ENCODED,i)),L}function Hg(L){return L.replace(/^0*(.*)/,"$1")||"0"}function Bg(L,D){var $=L.match(D.IPV4ADDRESS)||[],X=u($,2),Z=X[1];return Z?Z.split(".").map(Hg).join("."):L}function U0(L,D){var $=L.match(D.IPV6ADDRESS)||[],X=u($,3),Z=X[1],Le=X[2];if(Z){for(var vt=Z.toLowerCase().split("::").reverse(),Ht=u(vt,2),Qt=Ht[0],Hn=Ht[1],kt=Hn?Hn.split(":").map(Hg):[],Dn=Qt.split(":").map(Hg),Bn=D.IPV4ADDRESS.test(Dn[Dn.length-1]),bn=Bn?7:8,Wt=Dn.length-bn,Rn=Array(bn),rn=0;rn<bn;++rn)Rn[rn]=kt[rn]||Dn[Wt+rn]||"";Bn&&(Rn[bn-1]=Bg(Rn[bn-1],D));var ya=Rn.reduce(function(Mr,Eo,Ca){if(!Eo||Eo==="0"){var ts=Mr[Mr.length-1];ts&&ts.index+ts.length===Ca?ts.length++:Mr.push({index:Ca,length:1})}return Mr},[]),sr=ya.sort(function(Mr,Eo){return Eo.length-Mr.length})[0],Pr=void 0;if(sr&&sr.length>1){var an=Rn.slice(0,sr.index),ar=Rn.slice(sr.index+sr.length);Pr=an.join(":")+"::"+ar.join(":")}else Pr=Rn.join(":");return Le&&(Pr+="%"+Le),Pr}else return L}var hI=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fI="".match(/(){0}/)[1]===void 0;function Jo(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$={},X=D.iri!==!1?c:l;D.reference==="suffix"&&(L=(D.scheme?D.scheme+":":"")+"//"+L);var Z=L.match(hI);if(Z){fI?($.scheme=Z[1],$.userinfo=Z[3],$.host=Z[4],$.port=parseInt(Z[5],10),$.path=Z[6]||"",$.query=Z[7],$.fragment=Z[8],isNaN($.port)&&($.port=Z[5])):($.scheme=Z[1]||void 0,$.userinfo=L.indexOf("@")!==-1?Z[3]:void 0,$.host=L.indexOf("//")!==-1?Z[4]:void 0,$.port=parseInt(Z[5],10),$.path=Z[6]||"",$.query=L.indexOf("?")!==-1?Z[7]:void 0,$.fragment=L.indexOf("#")!==-1?Z[8]:void 0,isNaN($.port)&&($.port=L.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Z[4]:void 0)),$.host&&($.host=U0(Bg($.host,X),X)),$.scheme===void 0&&$.userinfo===void 0&&$.host===void 0&&$.port===void 0&&!$.path&&$.query===void 0?$.reference="same-document":$.scheme===void 0?$.reference="relative":$.fragment===void 0?$.reference="absolute":$.reference="uri",D.reference&&D.reference!=="suffix"&&D.reference!==$.reference&&($.error=$.error||"URI is not a "+D.reference+" reference.");var Le=Ir[(D.scheme||$.scheme||"").toLowerCase()];if(!D.unicodeSupport&&(!Le||!Le.unicodeSupport)){if($.host&&(D.domainHost||Le&&Le.domainHost))try{$.host=fl.toASCII($.host.replace(X.PCT_ENCODED,gl).toLowerCase())}catch(vt){$.error=$.error||"Host's domain name can not be converted to ASCII via punycode: "+vt}Gg($,l)}else Gg($,X);Le&&Le.parse&&Le.parse($,D)}else $.error=$.error||"URI can not be parsed.";return $}function gI(L,D){var $=D.iri!==!1?c:l,X=[];return L.userinfo!==void 0&&(X.push(L.userinfo),X.push("@")),L.host!==void 0&&X.push(U0(Bg(String(L.host),$),$).replace($.IPV6ADDRESS,function(Z,Le,vt){return"["+Le+(vt?"%25"+vt:"")+"]"})),(typeof L.port=="number"||typeof L.port=="string")&&(X.push(":"),X.push(String(L.port))),X.length?X.join(""):void 0}var K0=/^\.\.?\//,q0=/^\/\.(\/|$)/,Y0=/^\/\.\.(\/|$)/,mI=/^\/?(?:.|\n)*?(?=\/|$)/;function ml(L){for(var D=[];L.length;)if(L.match(K0))L=L.replace(K0,"");else if(L.match(q0))L=L.replace(q0,"/");else if(L.match(Y0))L=L.replace(Y0,"/"),D.pop();else if(L==="."||L==="..")L="";else{var $=L.match(mI);if($){var X=$[0];L=L.slice(X.length),D.push(X)}else throw new Error("Unexpected dot segment condition")}return D.join("")}function bo(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=D.iri?c:l,X=[],Z=Ir[(D.scheme||L.scheme||"").toLowerCase()];if(Z&&Z.serialize&&Z.serialize(L,D),L.host&&!$.IPV6ADDRESS.test(L.host)){if(D.domainHost||Z&&Z.domainHost)try{L.host=D.iri?fl.toUnicode(L.host):fl.toASCII(L.host.replace($.PCT_ENCODED,gl).toLowerCase())}catch(Ht){L.error=L.error||"Host's domain name can not be converted to "+(D.iri?"Unicode":"ASCII")+" via punycode: "+Ht}}Gg(L,$),D.reference!=="suffix"&&L.scheme&&(X.push(L.scheme),X.push(":"));var Le=gI(L,D);if(Le!==void 0&&(D.reference!=="suffix"&&X.push("//"),X.push(Le),L.path&&L.path.charAt(0)!=="/"&&X.push("/")),L.path!==void 0){var vt=L.path;!D.absolutePath&&(!Z||!Z.absolutePath)&&(vt=ml(vt)),Le===void 0&&(vt=vt.replace(/^\/\//,"/%2F")),X.push(vt)}return L.query!==void 0&&(X.push("?"),X.push(L.query)),L.fragment!==void 0&&(X.push("#"),X.push(L.fragment)),X.join("")}function Q0(L,D){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},X=arguments[3],Z={};return X||(L=Jo(bo(L,$),$),D=Jo(bo(D,$),$)),$=$||{},!$.tolerant&&D.scheme?(Z.scheme=D.scheme,Z.userinfo=D.userinfo,Z.host=D.host,Z.port=D.port,Z.path=ml(D.path||""),Z.query=D.query):(D.userinfo!==void 0||D.host!==void 0||D.port!==void 0?(Z.userinfo=D.userinfo,Z.host=D.host,Z.port=D.port,Z.path=ml(D.path||""),Z.query=D.query):(D.path?(D.path.charAt(0)==="/"?Z.path=ml(D.path):((L.userinfo!==void 0||L.host!==void 0||L.port!==void 0)&&!L.path?Z.path="/"+D.path:L.path?Z.path=L.path.slice(0,L.path.lastIndexOf("/")+1)+D.path:Z.path=D.path,Z.path=ml(Z.path)),Z.query=D.query):(Z.path=L.path,D.query!==void 0?Z.query=D.query:Z.query=L.query),Z.userinfo=L.userinfo,Z.host=L.host,Z.port=L.port),Z.scheme=L.scheme),Z.fragment=D.fragment,Z}function vI(L,D,$){var X=s({scheme:"null"},$);return bo(Q0(Jo(L,X),Jo(D,X),X,!0),X)}function yI(L,D){return typeof L=="string"?L=bo(Jo(L,D),D):t(L)==="object"&&(L=Jo(bo(L,D),D)),L}function CI(L,D,$){return typeof L=="string"?L=bo(Jo(L,$),$):t(L)==="object"&&(L=bo(L,$)),typeof D=="string"?D=bo(Jo(D,$),$):t(D)==="object"&&(D=bo(D,$)),L===D}function _I(L,D){return L&&L.toString().replace(!D||!D.iri?l.ESCAPE:c.ESCAPE,wo)}function es(L,D){return L&&L.toString().replace(!D||!D.iri?l.PCT_ENCODED:c.PCT_ENCODED,gl)}var Yc={scheme:"http",domainHost:!0,parse:function(D,$){return D.host||(D.error=D.error||"HTTP URIs must have a host."),D},serialize:function(D,$){var X=String(D.scheme).toLowerCase()==="https";return(D.port===(X?443:80)||D.port==="")&&(D.port=void 0),D.path||(D.path="/"),D}},X0={scheme:"https",domainHost:Yc.domainHost,parse:Yc.parse,serialize:Yc.serialize};function Z0(L){return typeof L.secure=="boolean"?L.secure:String(L.scheme).toLowerCase()==="wss"}var Qc={scheme:"ws",domainHost:!0,parse:function(D,$){var X=D;return X.secure=Z0(X),X.resourceName=(X.path||"/")+(X.query?"?"+X.query:""),X.path=void 0,X.query=void 0,X},serialize:function(D,$){if((D.port===(Z0(D)?443:80)||D.port==="")&&(D.port=void 0),typeof D.secure=="boolean"&&(D.scheme=D.secure?"wss":"ws",D.secure=void 0),D.resourceName){var X=D.resourceName.split("?"),Z=u(X,2),Le=Z[0],vt=Z[1];D.path=Le&&Le!=="/"?Le:void 0,D.query=vt,D.resourceName=void 0}return D.fragment=void 0,D}},J0={scheme:"wss",domainHost:Qc.domainHost,parse:Qc.parse,serialize:Qc.serialize},SI={},wI=!0,eS="[A-Za-z0-9\\-\\.\\_\\~"+(wI?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",To="[0-9A-Fa-f]",bI=e(e("%[EFef]"+To+"%"+To+To+"%"+To+To)+"|"+e("%[89A-Fa-f]"+To+"%"+To+To)+"|"+e("%"+To+To)),TI="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",EI="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",xI=n(EI,'[\\"\\\\]'),zI="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",OI=new RegExp(eS,"g"),vl=new RegExp(bI,"g"),DI=new RegExp(n("[^]",TI,"[\\.]",'[\\"]',xI),"g"),tS=new RegExp(n("[^]",eS,zI),"g"),RI=tS;function $g(L){var D=gl(L);return D.match(OI)?D:L}var nS={scheme:"mailto",parse:function(D,$){var X=D,Z=X.to=X.path?X.path.split(","):[];if(X.path=void 0,X.query){for(var Le=!1,vt={},Ht=X.query.split("&"),Qt=0,Hn=Ht.length;Qt<Hn;++Qt){var kt=Ht[Qt].split("=");switch(kt[0]){case"to":for(var Dn=kt[1].split(","),Bn=0,bn=Dn.length;Bn<bn;++Bn)Z.push(Dn[Bn]);break;case"subject":X.subject=es(kt[1],$);break;case"body":X.body=es(kt[1],$);break;default:Le=!0,vt[es(kt[0],$)]=es(kt[1],$);break}}Le&&(X.headers=vt)}X.query=void 0;for(var Wt=0,Rn=Z.length;Wt<Rn;++Wt){var rn=Z[Wt].split("@");if(rn[0]=es(rn[0]),$.unicodeSupport)rn[1]=es(rn[1],$).toLowerCase();else try{rn[1]=fl.toASCII(es(rn[1],$).toLowerCase())}catch(ya){X.error=X.error||"Email address's domain name can not be converted to ASCII via punycode: "+ya}Z[Wt]=rn.join("@")}return X},serialize:function(D,$){var X=D,Z=r(D.to);if(Z){for(var Le=0,vt=Z.length;Le<vt;++Le){var Ht=String(Z[Le]),Qt=Ht.lastIndexOf("@"),Hn=Ht.slice(0,Qt).replace(vl,$g).replace(vl,i).replace(DI,wo),kt=Ht.slice(Qt+1);try{kt=$.iri?fl.toUnicode(kt):fl.toASCII(es(kt,$).toLowerCase())}catch(Wt){X.error=X.error||"Email address's domain name can not be converted to "+($.iri?"Unicode":"ASCII")+" via punycode: "+Wt}Z[Le]=Hn+"@"+kt}X.path=Z.join(",")}var Dn=D.headers=D.headers||{};D.subject&&(Dn.subject=D.subject),D.body&&(Dn.body=D.body);var Bn=[];for(var bn in Dn)Dn[bn]!==SI[bn]&&Bn.push(bn.replace(vl,$g).replace(vl,i).replace(tS,wo)+"="+Dn[bn].replace(vl,$g).replace(vl,i).replace(RI,wo));return Bn.length&&(X.query=Bn.join("&")),X}},II=/^([^\:]+)\:(.*)/,iS={scheme:"urn",parse:function(D,$){var X=D.path&&D.path.match(II),Z=D;if(X){var Le=$.scheme||Z.scheme||"urn",vt=X[1].toLowerCase(),Ht=X[2],Qt=Le+":"+($.nid||vt),Hn=Ir[Qt];Z.nid=vt,Z.nss=Ht,Z.path=void 0,Hn&&(Z=Hn.parse(Z,$))}else Z.error=Z.error||"URN can not be parsed.";return Z},serialize:function(D,$){var X=$.scheme||D.scheme||"urn",Z=D.nid,Le=X+":"+($.nid||Z),vt=Ir[Le];vt&&(D=vt.serialize(D,$));var Ht=D,Qt=D.nss;return Ht.path=(Z||$.nid)+":"+Qt,Ht}},PI=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,rS={scheme:"urn:uuid",parse:function(D,$){var X=D;return X.uuid=X.nss,X.nss=void 0,!$.tolerant&&(!X.uuid||!X.uuid.match(PI))&&(X.error=X.error||"UUID is not valid."),X},serialize:function(D,$){var X=D;return X.nss=(D.uuid||"").toLowerCase(),X}};Ir[Yc.scheme]=Yc,Ir[X0.scheme]=X0,Ir[Qc.scheme]=Qc,Ir[J0.scheme]=J0,Ir[nS.scheme]=nS,Ir[iS.scheme]=iS,Ir[rS.scheme]=rS,o.SCHEMES=Ir,o.pctEncChar=wo,o.pctDecChars=gl,o.parse=Jo,o.removeDotSegments=ml,o.serialize=bo,o.resolveComponents=Q0,o.resolve=vI,o.normalize=yI,o.equal=CI,o.escapeComponent=_I,o.unescapeComponent=es,Object.defineProperty(o,"__esModule",{value:!0})})});var QE=ke(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var YE=qE();YE.code='require("ajv/dist/runtime/uri").default';dy.default=YE});var rx=ke(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.CodeGen=di.Name=di.nil=di.stringify=di.str=di._=di.KeywordCxt=void 0;var cj=Hu();Object.defineProperty(di,"KeywordCxt",{enumerable:!0,get:function(){return cj.KeywordCxt}});var gc=wt();Object.defineProperty(di,"_",{enumerable:!0,get:function(){return gc._}});Object.defineProperty(di,"str",{enumerable:!0,get:function(){return gc.str}});Object.defineProperty(di,"stringify",{enumerable:!0,get:function(){return gc.stringify}});Object.defineProperty(di,"nil",{enumerable:!0,get:function(){return gc.nil}});Object.defineProperty(di,"Name",{enumerable:!0,get:function(){return gc.Name}});Object.defineProperty(di,"CodeGen",{enumerable:!0,get:function(){return gc.CodeGen}});var uj=Fh(),tx=Ah(),dj=Wv(),Bu=Lh(),pj=wt(),$u=ku(),Vh=Lu(),hy=jt(),XE=UE(),hj=QE(),nx=(o,n)=>new RegExp(o,n);nx.code="new RegExp";var fj=["removeAdditional","useDefaults","coerceTypes"],gj=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),mj={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."},vj={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},ZE=200;function yj(o){var n,e,t,i,r,s,a,l,c,u,d,p,g,v,y,x,E,z,M,G,U,se,ve,he,be;let Ee=o.strict,Te=(n=o.code)===null||n===void 0?void 0:n.optimize,rt=Te===!0||Te===void 0?1:Te||0,en=(t=(e=o.code)===null||e===void 0?void 0:e.regExp)!==null&&t!==void 0?t:nx,dn=(i=o.uriResolver)!==null&&i!==void 0?i:hj.default;return{strictSchema:(s=(r=o.strictSchema)!==null&&r!==void 0?r:Ee)!==null&&s!==void 0?s:!0,strictNumbers:(l=(a=o.strictNumbers)!==null&&a!==void 0?a:Ee)!==null&&l!==void 0?l:!0,strictTypes:(u=(c=o.strictTypes)!==null&&c!==void 0?c:Ee)!==null&&u!==void 0?u:"log",strictTuples:(p=(d=o.strictTuples)!==null&&d!==void 0?d:Ee)!==null&&p!==void 0?p:"log",strictRequired:(v=(g=o.strictRequired)!==null&&g!==void 0?g:Ee)!==null&&v!==void 0?v:!1,code:o.code?ot(V({},o.code),{optimize:rt,regExp:en}):{optimize:rt,regExp:en},loopRequired:(y=o.loopRequired)!==null&&y!==void 0?y:ZE,loopEnum:(x=o.loopEnum)!==null&&x!==void 0?x:ZE,meta:(E=o.meta)!==null&&E!==void 0?E:!0,messages:(z=o.messages)!==null&&z!==void 0?z:!0,inlineRefs:(M=o.inlineRefs)!==null&&M!==void 0?M:!0,schemaId:(G=o.schemaId)!==null&&G!==void 0?G:"$id",addUsedSchema:(U=o.addUsedSchema)!==null&&U!==void 0?U:!0,validateSchema:(se=o.validateSchema)!==null&&se!==void 0?se:!0,validateFormats:(ve=o.validateFormats)!==null&&ve!==void 0?ve:!0,unicodeRegExp:(he=o.unicodeRegExp)!==null&&he!==void 0?he:!0,int32range:(be=o.int32range)!==null&&be!==void 0?be:!0,uriResolver:dn}}var ju=class{constructor(n={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,n=this.opts=V(V({},n),yj(n));let{es5:e,lines:t}=this.opts.code;this.scope=new pj.ValueScope({scope:{},prefixes:gj,es5:e,lines:t}),this.logger=Tj(n.logger);let i=n.validateFormats;n.validateFormats=!1,this.RULES=(0,dj.getRules)(),JE.call(this,mj,n,"NOT SUPPORTED"),JE.call(this,vj,n,"DEPRECATED","warn"),this._metaOpts=wj.call(this),n.formats&&_j.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),n.keywords&&Sj.call(this,n.keywords),typeof n.meta=="object"&&this.addMetaSchema(n.meta),Cj.call(this),n.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:n,meta:e,schemaId:t}=this.opts,i=XE;t==="id"&&(i=V({},XE),i.id=i.$id,delete i.$id),e&&n&&this.addMetaSchema(i,i[t],!1)}defaultMeta(){let{meta:n,schemaId:e}=this.opts;return this.opts.defaultMeta=typeof n=="object"?n[e]||n:void 0}validate(n,e){let t;if(typeof n=="string"){if(t=this.getSchema(n),!t)throw new Error(`no schema with key or ref "${n}"`)}else t=this.compile(n);let i=t(e);return"$async"in t||(this.errors=t.errors),i}compile(n,e){let t=this._addSchema(n,e);return t.validate||this._compileSchemaEnv(t)}compileAsync(n,e){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:t}=this.opts;return i.call(this,n,e);function i(u,d){return xo(this,null,function*(){yield r.call(this,u.$schema);let p=this._addSchema(u,d);return p.validate||s.call(this,p)})}function r(u){return xo(this,null,function*(){u&&!this.getSchema(u)&&(yield i.call(this,{$ref:u},!0))})}function s(u){return xo(this,null,function*(){try{return this._compileSchemaEnv(u)}catch(d){if(!(d instanceof tx.default))throw d;return a.call(this,d),yield l.call(this,d.missingSchema),s.call(this,u)}})}function a({missingSchema:u,missingRef:d}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${d} cannot be resolved`)}function l(u){return xo(this,null,function*(){let d=yield c.call(this,u);this.refs[u]||(yield r.call(this,d.$schema)),this.refs[u]||this.addSchema(d,u,e)})}function c(u){return xo(this,null,function*(){let d=this._loading[u];if(d)return d;try{return yield this._loading[u]=t(u)}finally{delete this._loading[u]}})}}addSchema(n,e,t,i=this.opts.validateSchema){if(Array.isArray(n)){for(let s of n)this.addSchema(s,void 0,t,i);return this}let r;if(typeof n=="object"){let{schemaId:s}=this.opts;if(r=n[s],r!==void 0&&typeof r!="string")throw new Error(`schema ${s} must be string`)}return e=(0,$u.normalizeId)(e||r),this._checkUnique(e),this.schemas[e]=this._addSchema(n,t,e,i,!0),this}addMetaSchema(n,e,t=this.opts.validateSchema){return this.addSchema(n,e,!0,t),this}validateSchema(n,e){if(typeof n=="boolean")return!0;let t;if(t=n.$schema,t!==void 0&&typeof t!="string")throw new Error("$schema must be a string");if(t=t||this.opts.defaultMeta||this.defaultMeta(),!t)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(t,n);if(!i&&e){let r="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(r);else throw new Error(r)}return i}getSchema(n){let e;for(;typeof(e=ex.call(this,n))=="string";)n=e;if(e===void 0){let{schemaId:t}=this.opts,i=new Bu.SchemaEnv({schema:{},schemaId:t});if(e=Bu.resolveSchema.call(this,i,n),!e)return;this.refs[n]=e}return e.validate||this._compileSchemaEnv(e)}removeSchema(n){if(n instanceof RegExp)return this._removeAllSchemas(this.schemas,n),this._removeAllSchemas(this.refs,n),this;switch(typeof n){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let e=ex.call(this,n);return typeof e=="object"&&this._cache.delete(e.schema),delete this.schemas[n],delete this.refs[n],this}case"object":{let e=n;this._cache.delete(e);let t=n[this.opts.schemaId];return t&&(t=(0,$u.normalizeId)(t),delete this.schemas[t],delete this.refs[t]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(n){for(let e of n)this.addKeyword(e);return this}addKeyword(n,e){let t;if(typeof n=="string")t=n,typeof e=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),e.keyword=t);else if(typeof n=="object"&&e===void 0){if(e=n,t=e.keyword,Array.isArray(t)&&!t.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(xj.call(this,t,e),!e)return(0,hy.eachItem)(t,r=>py.call(this,r)),this;Oj.call(this,e);let i=ot(V({},e),{type:(0,Vh.getJSONTypes)(e.type),schemaType:(0,Vh.getJSONTypes)(e.schemaType)});return(0,hy.eachItem)(t,i.type.length===0?r=>py.call(this,r,i):r=>i.type.forEach(s=>py.call(this,r,i,s))),this}getKeyword(n){let e=this.RULES.all[n];return typeof e=="object"?e.definition:!!e}removeKeyword(n){let{RULES:e}=this;delete e.keywords[n],delete e.all[n];for(let t of e.rules){let i=t.rules.findIndex(r=>r.keyword===n);i>=0&&t.rules.splice(i,1)}return this}addFormat(n,e){return typeof e=="string"&&(e=new RegExp(e)),this.formats[n]=e,this}errorsText(n=this.errors,{separator:e=", ",dataVar:t="data"}={}){return!n||n.length===0?"No errors":n.map(i=>`${t}${i.instancePath} ${i.message}`).reduce((i,r)=>i+e+r)}$dataMetaSchema(n,e){let t=this.RULES.all;n=JSON.parse(JSON.stringify(n));for(let i of e){let r=i.split("/").slice(1),s=n;for(let a of r)s=s[a];for(let a in t){let l=t[a];if(typeof l!="object")continue;let{$data:c}=l.definition,u=s[a];c&&u&&(s[a]=ix(u))}}return n}_removeAllSchemas(n,e){for(let t in n){let i=n[t];(!e||e.test(t))&&(typeof i=="string"?delete n[t]:i&&!i.meta&&(this._cache.delete(i.schema),delete n[t]))}}_addSchema(n,e,t,i=this.opts.validateSchema,r=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof n=="object")s=n[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof n!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(n);if(l!==void 0)return l;t=(0,$u.normalizeId)(s||t);let c=$u.getSchemaRefs.call(this,n,t);return l=new Bu.SchemaEnv({schema:n,schemaId:a,meta:e,baseId:t,localRefs:c}),this._cache.set(l.schema,l),r&&!t.startsWith("#")&&(t&&this._checkUnique(t),this.refs[t]=l),i&&this.validateSchema(n,!0),l}_checkUnique(n){if(this.schemas[n]||this.refs[n])throw new Error(`schema with key or id "${n}" already exists`)}_compileSchemaEnv(n){if(n.meta?this._compileMetaSchema(n):Bu.compileSchema.call(this,n),!n.validate)throw new Error("ajv implementation error");return n.validate}_compileMetaSchema(n){let e=this.opts;this.opts=this._metaOpts;try{Bu.compileSchema.call(this,n)}finally{this.opts=e}}};di.default=ju;ju.ValidationError=uj.default;ju.MissingRefError=tx.default;function JE(o,n,e,t="error"){for(let i in o){let r=i;r in n&&this.logger[t](`${e}: option ${i}. ${o[r]}`)}}function ex(o){return o=(0,$u.normalizeId)(o),this.schemas[o]||this.refs[o]}function Cj(){let o=this.opts.schemas;if(o)if(Array.isArray(o))this.addSchema(o);else for(let n in o)this.addSchema(o[n],n)}function _j(){for(let o in this.opts.formats){let n=this.opts.formats[o];n&&this.addFormat(o,n)}}function Sj(o){if(Array.isArray(o)){this.addVocabulary(o);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let n in o){let e=o[n];e.keyword||(e.keyword=n),this.addKeyword(e)}}function wj(){let o=V({},this.opts);for(let n of fj)delete o[n];return o}var bj={log(){},warn(){},error(){}};function Tj(o){if(o===!1)return bj;if(o===void 0)return console;if(o.log&&o.warn&&o.error)return o;throw new Error("logger must implement log, warn and error methods")}var Ej=/^[a-z_$][a-z0-9_$:-]*$/i;function xj(o,n){let{RULES:e}=this;if((0,hy.eachItem)(o,t=>{if(e.keywords[t])throw new Error(`Keyword ${t} is already defined`);if(!Ej.test(t))throw new Error(`Keyword ${t} has invalid name`)}),!!n&&n.$data&&!("code"in n||"validate"in n))throw new Error('$data keyword must have "code" or "validate" function')}function py(o,n,e){var t;let i=n?.post;if(e&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:r}=this,s=i?r.post:r.rules.find(({type:l})=>l===e);if(s||(s={type:e,rules:[]},r.rules.push(s)),r.keywords[o]=!0,!n)return;let a={keyword:o,definition:ot(V({},n),{type:(0,Vh.getJSONTypes)(n.type),schemaType:(0,Vh.getJSONTypes)(n.schemaType)})};n.before?zj.call(this,s,a,n.before):s.rules.push(a),r.all[o]=a,(t=n.implements)===null||t===void 0||t.forEach(l=>this.addKeyword(l))}function zj(o,n,e){let t=o.rules.findIndex(i=>i.keyword===e);t>=0?o.rules.splice(t,0,n):(o.rules.push(n),this.logger.warn(`rule ${e} is not defined`))}function Oj(o){let{metaSchema:n}=o;n!==void 0&&(o.$data&&this.opts.$data&&(n=ix(n)),o.validateSchema=this.compile(n,!0))}var Dj={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ix(o){return{anyOf:[o,Dj]}}});var ox=ke(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var Rj={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};fy.default=Rj});var cx=ke(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.callRef=Ba.getValidate=void 0;var Ij=Ah(),sx=Gr(),Ki=wt(),mc=gs(),ax=Lh(),Gh=jt(),Pj={keyword:"$ref",schemaType:"string",code(o){let{gen:n,schema:e,it:t}=o,{baseId:i,schemaEnv:r,validateName:s,opts:a,self:l}=t,{root:c}=r;if((e==="#"||e==="#/")&&i===c.baseId)return d();let u=ax.resolveRef.call(l,c,i,e);if(u===void 0)throw new Ij.default(t.opts.uriResolver,i,e);if(u instanceof ax.SchemaEnv)return p(u);return g(u);function d(){if(r===c)return Hh(o,s,r,r.$async);let v=n.scopeValue("root",{ref:c});return Hh(o,(0,Ki._)`${v}.validate`,c,c.$async)}function p(v){let y=lx(o,v);Hh(o,y,v,v.$async)}function g(v){let y=n.scopeValue("schema",a.code.source===!0?{ref:v,code:(0,Ki.stringify)(v)}:{ref:v}),x=n.name("valid"),E=o.subschema({schema:v,dataTypes:[],schemaPath:Ki.nil,topSchemaRef:y,errSchemaPath:e},x);o.mergeEvaluated(E),o.ok(x)}}};function lx(o,n){let{gen:e}=o;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,Ki._)`${e.scopeValue("wrapper",{ref:n})}.validate`}Ba.getValidate=lx;function Hh(o,n,e,t){let{gen:i,it:r}=o,{allErrors:s,schemaEnv:a,opts:l}=r,c=l.passContext?mc.default.this:Ki.nil;t?u():d();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let v=i.let("valid");i.try(()=>{i.code((0,Ki._)`await ${(0,sx.callValidateCode)(o,n,c)}`),g(n),s||i.assign(v,!0)},y=>{i.if((0,Ki._)`!(${y} instanceof ${r.ValidationError})`,()=>i.throw(y)),p(y),s||i.assign(v,!1)}),o.ok(v)}function d(){o.result((0,sx.callValidateCode)(o,n,c),()=>g(n),()=>p(n))}function p(v){let y=(0,Ki._)`${v}.errors`;i.assign(mc.default.vErrors,(0,Ki._)`${mc.default.vErrors} === null ? ${y} : ${mc.default.vErrors}.concat(${y})`),i.assign(mc.default.errors,(0,Ki._)`${mc.default.vErrors}.length`)}function g(v){var y;if(!r.opts.unevaluated)return;let x=(y=e?.validate)===null||y===void 0?void 0:y.evaluated;if(r.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(r.props=Gh.mergeEvaluated.props(i,x.props,r.props));else{let E=i.var("props",(0,Ki._)`${v}.evaluated.props`);r.props=Gh.mergeEvaluated.props(i,E,r.props,Ki.Name)}if(r.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(r.items=Gh.mergeEvaluated.items(i,x.items,r.items));else{let E=i.var("items",(0,Ki._)`${v}.evaluated.items`);r.items=Gh.mergeEvaluated.items(i,E,r.items,Ki.Name)}}}Ba.callRef=Hh;Ba.default=Pj});var ux=ke(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var Mj=ox(),Fj=cx(),Aj=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Mj.default,Fj.default];gy.default=Aj});var dx=ke(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var Bh=wt(),Qs=Bh.operators,$h={maximum:{okStr:"<=",ok:Qs.LTE,fail:Qs.GT},minimum:{okStr:">=",ok:Qs.GTE,fail:Qs.LT},exclusiveMaximum:{okStr:"<",ok:Qs.LT,fail:Qs.GTE},exclusiveMinimum:{okStr:">",ok:Qs.GT,fail:Qs.LTE}},Nj={message:({keyword:o,schemaCode:n})=>(0,Bh.str)`must be ${$h[o].okStr} ${n}`,params:({keyword:o,schemaCode:n})=>(0,Bh._)`{comparison: ${$h[o].okStr}, limit: ${n}}`},Lj={keyword:Object.keys($h),type:"number",schemaType:"number",$data:!0,error:Nj,code(o){let{keyword:n,data:e,schemaCode:t}=o;o.fail$data((0,Bh._)`${e} ${$h[n].fail} ${t} || isNaN(${e})`)}};my.default=Lj});var px=ke(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var Wu=wt(),kj={message:({schemaCode:o})=>(0,Wu.str)`must be multiple of ${o}`,params:({schemaCode:o})=>(0,Wu._)`{multipleOf: ${o}}`},Vj={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:kj,code(o){let{gen:n,data:e,schemaCode:t,it:i}=o,r=i.opts.multipleOfPrecision,s=n.let("res"),a=r?(0,Wu._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,Wu._)`${s} !== parseInt(${s})`;o.fail$data((0,Wu._)`(${t} === 0 || (${s} = ${e}/${t}, ${a}))`)}};vy.default=Vj});var fx=ke(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});function hx(o){let n=o.length,e=0,t=0,i;for(;t<n;)e++,i=o.charCodeAt(t++),i>=55296&&i<=56319&&t<n&&(i=o.charCodeAt(t),(i&64512)===56320&&t++);return e}yy.default=hx;hx.code='require("ajv/dist/runtime/ucs2length").default'});var gx=ke(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var $a=wt(),Gj=jt(),Hj=fx(),Bj={message({keyword:o,schemaCode:n}){let e=o==="maxLength"?"more":"fewer";return(0,$a.str)`must NOT have ${e} than ${n} characters`},params:({schemaCode:o})=>(0,$a._)`{limit: ${o}}`},$j={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Bj,code(o){let{keyword:n,data:e,schemaCode:t,it:i}=o,r=n==="maxLength"?$a.operators.GT:$a.operators.LT,s=i.opts.unicode===!1?(0,$a._)`${e}.length`:(0,$a._)`${(0,Gj.useFunc)(o.gen,Hj.default)}(${e})`;o.fail$data((0,$a._)`${s} ${r} ${t}`)}};Cy.default=$j});var mx=ke(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var jj=Gr(),jh=wt(),Wj={message:({schemaCode:o})=>(0,jh.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,jh._)`{pattern: ${o}}`},Uj={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Wj,code(o){let{data:n,$data:e,schema:t,schemaCode:i,it:r}=o,s=r.opts.unicodeRegExp?"u":"",a=e?(0,jh._)`(new RegExp(${i}, ${s}))`:(0,jj.usePattern)(o,t);o.fail$data((0,jh._)`!${a}.test(${n})`)}};_y.default=Uj});var vx=ke(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var Uu=wt(),Kj={message({keyword:o,schemaCode:n}){let e=o==="maxProperties"?"more":"fewer";return(0,Uu.str)`must NOT have ${e} than ${n} properties`},params:({schemaCode:o})=>(0,Uu._)`{limit: ${o}}`},qj={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Kj,code(o){let{keyword:n,data:e,schemaCode:t}=o,i=n==="maxProperties"?Uu.operators.GT:Uu.operators.LT;o.fail$data((0,Uu._)`Object.keys(${e}).length ${i} ${t}`)}};Sy.default=qj});var yx=ke(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var Ku=Gr(),qu=wt(),Yj=jt(),Qj={message:({params:{missingProperty:o}})=>(0,qu.str)`must have required property '${o}'`,params:({params:{missingProperty:o}})=>(0,qu._)`{missingProperty: ${o}}`},Xj={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Qj,code(o){let{gen:n,schema:e,schemaCode:t,data:i,$data:r,it:s}=o,{opts:a}=s;if(!r&&e.length===0)return;let l=e.length>=a.loopRequired;if(s.allErrors?c():u(),a.strictRequired){let g=o.parentSchema.properties,{definedProperties:v}=o.it;for(let y of e)if(g?.[y]===void 0&&!v.has(y)){let x=s.schemaEnv.baseId+s.errSchemaPath,E=`required property "${y}" is not defined at "${x}" (strictRequired)`;(0,Yj.checkStrictMode)(s,E,s.opts.strictRequired)}}function c(){if(l||r)o.block$data(qu.nil,d);else for(let g of e)(0,Ku.checkReportMissingProp)(o,g)}function u(){let g=n.let("missing");if(l||r){let v=n.let("valid",!0);o.block$data(v,()=>p(g,v)),o.ok(v)}else n.if((0,Ku.checkMissingProp)(o,e,g)),(0,Ku.reportMissingProp)(o,g),n.else()}function d(){n.forOf("prop",t,g=>{o.setParams({missingProperty:g}),n.if((0,Ku.noPropertyInData)(n,i,g,a.ownProperties),()=>o.error())})}function p(g,v){o.setParams({missingProperty:g}),n.forOf(g,t,()=>{n.assign(v,(0,Ku.propertyInData)(n,i,g,a.ownProperties)),n.if((0,qu.not)(v),()=>{o.error(),n.break()})},qu.nil)}}};wy.default=Xj});var Cx=ke(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var Yu=wt(),Zj={message({keyword:o,schemaCode:n}){let e=o==="maxItems"?"more":"fewer";return(0,Yu.str)`must NOT have ${e} than ${n} items`},params:({schemaCode:o})=>(0,Yu._)`{limit: ${o}}`},Jj={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Zj,code(o){let{keyword:n,data:e,schemaCode:t}=o,i=n==="maxItems"?Yu.operators.GT:Yu.operators.LT;o.fail$data((0,Yu._)`${e}.length ${i} ${t}`)}};by.default=Jj});var Wh=ke(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var _x=Jv();_x.code='require("ajv/dist/runtime/equal").default';Ty.default=_x});var Sx=ke(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var Ey=Lu(),pi=wt(),eW=jt(),tW=Wh(),nW={message:({params:{i:o,j:n}})=>(0,pi.str)`must NOT have duplicate items (items ## ${n} and ${o} are identical)`,params:({params:{i:o,j:n}})=>(0,pi._)`{i: ${o}, j: ${n}}`},iW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:nW,code(o){let{gen:n,data:e,$data:t,schema:i,parentSchema:r,schemaCode:s,it:a}=o;if(!t&&!i)return;let l=n.let("valid"),c=r.items?(0,Ey.getSchemaTypes)(r.items):[];o.block$data(l,u,(0,pi._)`${s} === false`),o.ok(l);function u(){let v=n.let("i",(0,pi._)`${e}.length`),y=n.let("j");o.setParams({i:v,j:y}),n.assign(l,!0),n.if((0,pi._)`${v} > 1`,()=>(d()?p:g)(v,y))}function d(){return c.length>0&&!c.some(v=>v==="object"||v==="array")}function p(v,y){let x=n.name("item"),E=(0,Ey.checkDataTypes)(c,x,a.opts.strictNumbers,Ey.DataType.Wrong),z=n.const("indices",(0,pi._)`{}`);n.for((0,pi._)`;${v}--;`,()=>{n.let(x,(0,pi._)`${e}[${v}]`),n.if(E,(0,pi._)`continue`),c.length>1&&n.if((0,pi._)`typeof ${x} == "string"`,(0,pi._)`${x} += "_"`),n.if((0,pi._)`typeof ${z}[${x}] == "number"`,()=>{n.assign(y,(0,pi._)`${z}[${x}]`),o.error(),n.assign(l,!1).break()}).code((0,pi._)`${z}[${x}] = ${v}`)})}function g(v,y){let x=(0,eW.useFunc)(n,tW.default),E=n.name("outer");n.label(E).for((0,pi._)`;${v}--;`,()=>n.for((0,pi._)`${y} = ${v}; ${y}--;`,()=>n.if((0,pi._)`${x}(${e}[${v}], ${e}[${y}])`,()=>{o.error(),n.assign(l,!1).break(E)})))}}};xy.default=iW});var wx=ke(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var zy=wt(),rW=jt(),oW=Wh(),sW={message:"must be equal to constant",params:({schemaCode:o})=>(0,zy._)`{allowedValue: ${o}}`},aW={keyword:"const",$data:!0,error:sW,code(o){let{gen:n,data:e,$data:t,schemaCode:i,schema:r}=o;t||r&&typeof r=="object"?o.fail$data((0,zy._)`!${(0,rW.useFunc)(n,oW.default)}(${e}, ${i})`):o.fail((0,zy._)`${r} !== ${e}`)}};Oy.default=aW});var bx=ke(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var Qu=wt(),lW=jt(),cW=Wh(),uW={message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,Qu._)`{allowedValues: ${o}}`},dW={keyword:"enum",schemaType:"array",$data:!0,error:uW,code(o){let{gen:n,data:e,$data:t,schema:i,schemaCode:r,it:s}=o;if(!t&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,l,c=()=>l??(l=(0,lW.useFunc)(n,cW.default)),u;if(a||t)u=n.let("valid"),o.block$data(u,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let g=n.const("vSchema",r);u=(0,Qu.or)(...i.map((v,y)=>p(g,y)))}o.pass(u);function d(){n.assign(u,!1),n.forOf("v",r,g=>n.if((0,Qu._)`${c()}(${e}, ${g})`,()=>n.assign(u,!0).break()))}function p(g,v){let y=i[v];return typeof y=="object"&&y!==null?(0,Qu._)`${c()}(${e}, ${g}[${v}])`:(0,Qu._)`${e} === ${y}`}}};Dy.default=dW});var Tx=ke(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var pW=dx(),hW=px(),fW=gx(),gW=mx(),mW=vx(),vW=yx(),yW=Cx(),CW=Sx(),_W=wx(),SW=bx(),wW=[pW.default,hW.default,fW.default,gW.default,mW.default,vW.default,yW.default,CW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},_W.default,SW.default];Ry.default=wW});var Py=ke(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.validateAdditionalItems=void 0;var ja=wt(),Iy=jt(),bW={message:({params:{len:o}})=>(0,ja.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,ja._)`{limit: ${o}}`},TW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:bW,code(o){let{parentSchema:n,it:e}=o,{items:t}=n;if(!Array.isArray(t)){(0,Iy.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas');return}Ex(o,t)}};function Ex(o,n){let{gen:e,schema:t,data:i,keyword:r,it:s}=o;s.items=!0;let a=e.const("len",(0,ja._)`${i}.length`);if(t===!1)o.setParams({len:n.length}),o.pass((0,ja._)`${a} <= ${n.length}`);else if(typeof t=="object"&&!(0,Iy.alwaysValidSchema)(s,t)){let c=e.var("valid",(0,ja._)`${a} <= ${n.length}`);e.if((0,ja.not)(c),()=>l(c)),o.ok(c)}function l(c){e.forRange("i",n.length,a,u=>{o.subschema({keyword:r,dataProp:u,dataPropType:Iy.Type.Num},c),s.allErrors||e.if((0,ja.not)(c),()=>e.break())})}}Xu.validateAdditionalItems=Ex;Xu.default=TW});var My=ke(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.validateTuple=void 0;var xx=wt(),Uh=jt(),EW=Gr(),xW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){let{schema:n,it:e}=o;if(Array.isArray(n))return zx(o,"additionalItems",n);e.items=!0,!(0,Uh.alwaysValidSchema)(e,n)&&o.ok((0,EW.validateArray)(o))}};function zx(o,n,e=o.schema){let{gen:t,parentSchema:i,data:r,keyword:s,it:a}=o;u(i),a.opts.unevaluated&&e.length&&a.items!==!0&&(a.items=Uh.mergeEvaluated.items(t,e.length,a.items));let l=t.name("valid"),c=t.const("len",(0,xx._)`${r}.length`);e.forEach((d,p)=>{(0,Uh.alwaysValidSchema)(a,d)||(t.if((0,xx._)`${c} > ${p}`,()=>o.subschema({keyword:s,schemaProp:p,dataProp:p},l)),o.ok(l))});function u(d){let{opts:p,errSchemaPath:g}=a,v=e.length,y=v===d.minItems&&(v===d.maxItems||d[n]===!1);if(p.strictTuples&&!y){let x=`"${s}" is ${v}-tuple, but minItems or maxItems/${n} are not specified or different at path "${g}"`;(0,Uh.checkStrictMode)(a,x,p.strictTuples)}}}Zu.validateTuple=zx;Zu.default=xW});var Ox=ke(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var zW=My(),OW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o=>(0,zW.validateTuple)(o,"items")};Fy.default=OW});var Rx=ke(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var Dx=wt(),DW=jt(),RW=Gr(),IW=Py(),PW={message:({params:{len:o}})=>(0,Dx.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,Dx._)`{limit: ${o}}`},MW={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:PW,code(o){let{schema:n,parentSchema:e,it:t}=o,{prefixItems:i}=e;t.items=!0,!(0,DW.alwaysValidSchema)(t,n)&&(i?(0,IW.validateAdditionalItems)(o,i):o.ok((0,RW.validateArray)(o)))}};Ay.default=MW});var Ix=ke(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var Br=wt(),Kh=jt(),FW={message:({params:{min:o,max:n}})=>n===void 0?(0,Br.str)`must contain at least ${o} valid item(s)`:(0,Br.str)`must contain at least ${o} and no more than ${n} valid item(s)`,params:({params:{min:o,max:n}})=>n===void 0?(0,Br._)`{minContains: ${o}}`:(0,Br._)`{minContains: ${o}, maxContains: ${n}}`},AW={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:FW,code(o){let{gen:n,schema:e,parentSchema:t,data:i,it:r}=o,s,a,{minContains:l,maxContains:c}=t;r.opts.next?(s=l===void 0?1:l,a=c):s=1;let u=n.const("len",(0,Br._)`${i}.length`);if(o.setParams({min:s,max:a}),a===void 0&&s===0){(0,Kh.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Kh.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),o.fail();return}if((0,Kh.alwaysValidSchema)(r,e)){let y=(0,Br._)`${u} >= ${s}`;a!==void 0&&(y=(0,Br._)`${y} && ${u} <= ${a}`),o.pass(y);return}r.items=!0;let d=n.name("valid");a===void 0&&s===1?g(d,()=>n.if(d,()=>n.break())):s===0?(n.let(d,!0),a!==void 0&&n.if((0,Br._)`${i}.length > 0`,p)):(n.let(d,!1),p()),o.result(d,()=>o.reset());function p(){let y=n.name("_valid"),x=n.let("count",0);g(y,()=>n.if(y,()=>v(x)))}function g(y,x){n.forRange("i",0,u,E=>{o.subschema({keyword:"contains",dataProp:E,dataPropType:Kh.Type.Num,compositeRule:!0},y),x()})}function v(y){n.code((0,Br._)`${y}++`),a===void 0?n.if((0,Br._)`${y} >= ${s}`,()=>n.assign(d,!0).break()):(n.if((0,Br._)`${y} > ${a}`,()=>n.assign(d,!1).break()),s===1?n.assign(d,!0):n.if((0,Br._)`${y} >= ${s}`,()=>n.assign(d,!0)))}}};Ny.default=AW});var Fx=ke(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.validateSchemaDeps=Lo.validatePropertyDeps=Lo.error=void 0;var Ly=wt(),NW=jt(),Ju=Gr();Lo.error={message:({params:{property:o,depsCount:n,deps:e}})=>{let t=n===1?"property":"properties";return(0,Ly.str)`must have ${t} ${e} when property ${o} is present`},params:({params:{property:o,depsCount:n,deps:e,missingProperty:t}})=>(0,Ly._)`{property: ${o},
  6. missingProperty: ${t},
  7. depsCount: ${n},
  8. deps: ${e}}`};var LW={keyword:"dependencies",type:"object",schemaType:"object",error:Lo.error,code(o){let[n,e]=kW(o);Px(o,n),Mx(o,e)}};function kW({schema:o}){let n={},e={};for(let t in o){if(t==="__proto__")continue;let i=Array.isArray(o[t])?n:e;i[t]=o[t]}return[n,e]}function Px(o,n=o.schema){let{gen:e,data:t,it:i}=o;if(Object.keys(n).length===0)return;let r=e.let("missing");for(let s in n){let a=n[s];if(a.length===0)continue;let l=(0,Ju.propertyInData)(e,t,s,i.opts.ownProperties);o.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?e.if(l,()=>{for(let c of a)(0,Ju.checkReportMissingProp)(o,c)}):(e.if((0,Ly._)`${l} && (${(0,Ju.checkMissingProp)(o,a,r)})`),(0,Ju.reportMissingProp)(o,r),e.else())}}Lo.validatePropertyDeps=Px;function Mx(o,n=o.schema){let{gen:e,data:t,keyword:i,it:r}=o,s=e.name("valid");for(let a in n)(0,NW.alwaysValidSchema)(r,n[a])||(e.if((0,Ju.propertyInData)(e,t,a,r.opts.ownProperties),()=>{let l=o.subschema({keyword:i,schemaProp:a},s);o.mergeValidEvaluated(l,s)},()=>e.var(s,!0)),o.ok(s))}Lo.validateSchemaDeps=Mx;Lo.default=LW});var Nx=ke(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Ax=wt(),VW=jt(),GW={message:"property name must be valid",params:({params:o})=>(0,Ax._)`{propertyName: ${o.propertyName}}`},HW={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:GW,code(o){let{gen:n,schema:e,data:t,it:i}=o;if((0,VW.alwaysValidSchema)(i,e))return;let r=n.name("valid");n.forIn("key",t,s=>{o.setParams({propertyName:s}),o.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},r),n.if((0,Ax.not)(r),()=>{o.error(!0),i.allErrors||n.break()})}),o.ok(r)}};ky.default=HW});var Gy=ke(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var qh=Gr(),fo=wt(),BW=gs(),Yh=jt(),$W={message:"must NOT have additional properties",params:({params:o})=>(0,fo._)`{additionalProperty: ${o.additionalProperty}}`},jW={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$W,code(o){let{gen:n,schema:e,parentSchema:t,data:i,errsCount:r,it:s}=o;if(!r)throw new Error("ajv implementation error");let{allErrors:a,opts:l}=s;if(s.props=!0,l.removeAdditional!=="all"&&(0,Yh.alwaysValidSchema)(s,e))return;let c=(0,qh.allSchemaProperties)(t.properties),u=(0,qh.allSchemaProperties)(t.patternProperties);d(),o.ok((0,fo._)`${r} === ${BW.default.errors}`);function d(){n.forIn("key",i,x=>{!c.length&&!u.length?v(x):n.if(p(x),()=>v(x))})}function p(x){let E;if(c.length>8){let z=(0,Yh.schemaRefOrVal)(s,t.properties,"properties");E=(0,qh.isOwnProperty)(n,z,x)}else c.length?E=(0,fo.or)(...c.map(z=>(0,fo._)`${x} === ${z}`)):E=fo.nil;return u.length&&(E=(0,fo.or)(E,...u.map(z=>(0,fo._)`${(0,qh.usePattern)(o,z)}.test(${x})`))),(0,fo.not)(E)}function g(x){n.code((0,fo._)`delete ${i}[${x}]`)}function v(x){if(l.removeAdditional==="all"||l.removeAdditional&&e===!1){g(x);return}if(e===!1){o.setParams({additionalProperty:x}),o.error(),a||n.break();return}if(typeof e=="object"&&!(0,Yh.alwaysValidSchema)(s,e)){let E=n.name("valid");l.removeAdditional==="failing"?(y(x,E,!1),n.if((0,fo.not)(E),()=>{o.reset(),g(x)})):(y(x,E),a||n.if((0,fo.not)(E),()=>n.break()))}}function y(x,E,z){let M={keyword:"additionalProperties",dataProp:x,dataPropType:Yh.Type.Str};z===!1&&Object.assign(M,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(M,E)}}};Vy.default=jW});var Vx=ke(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var WW=Hu(),Lx=Gr(),Hy=jt(),kx=Gy(),UW={keyword:"properties",type:"object",schemaType:"object",code(o){let{gen:n,schema:e,parentSchema:t,data:i,it:r}=o;r.opts.removeAdditional==="all"&&t.additionalProperties===void 0&&kx.default.code(new WW.KeywordCxt(r,kx.default,"additionalProperties"));let s=(0,Lx.allSchemaProperties)(e);for(let d of s)r.definedProperties.add(d);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=Hy.mergeEvaluated.props(n,(0,Hy.toHash)(s),r.props));let a=s.filter(d=>!(0,Hy.alwaysValidSchema)(r,e[d]));if(a.length===0)return;let l=n.name("valid");for(let d of a)c(d)?u(d):(n.if((0,Lx.propertyInData)(n,i,d,r.opts.ownProperties)),u(d),r.allErrors||n.else().var(l,!0),n.endIf()),o.it.definedProperties.add(d),o.ok(l);function c(d){return r.opts.useDefaults&&!r.compositeRule&&e[d].default!==void 0}function u(d){o.subschema({keyword:"properties",schemaProp:d,dataProp:d},l)}}};By.default=UW});var $x=ke($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var Gx=Gr(),Qh=wt(),Hx=jt(),Bx=jt(),KW={keyword:"patternProperties",type:"object",schemaType:"object",code(o){let{gen:n,schema:e,data:t,parentSchema:i,it:r}=o,{opts:s}=r,a=(0,Gx.allSchemaProperties)(e),l=a.filter(y=>(0,Hx.alwaysValidSchema)(r,e[y]));if(a.length===0||l.length===a.length&&(!r.opts.unevaluated||r.props===!0))return;let c=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=n.name("valid");r.props!==!0&&!(r.props instanceof Qh.Name)&&(r.props=(0,Bx.evaluatedPropsToName)(n,r.props));let{props:d}=r;p();function p(){for(let y of a)c&&g(y),r.allErrors?v(y):(n.var(u,!0),v(y),n.if(u))}function g(y){for(let x in c)new RegExp(y).test(x)&&(0,Hx.checkStrictMode)(r,`property ${x} matches pattern ${y} (use allowMatchingProperties)`)}function v(y){n.forIn("key",t,x=>{n.if((0,Qh._)`${(0,Gx.usePattern)(o,y)}.test(${x})`,()=>{let E=l.includes(y);E||o.subschema({keyword:"patternProperties",schemaProp:y,dataProp:x,dataPropType:Bx.Type.Str},u),r.opts.unevaluated&&d!==!0?n.assign((0,Qh._)`${d}[${x}]`,!0):!E&&!r.allErrors&&n.if((0,Qh.not)(u),()=>n.break())})})}}};$y.default=KW});var jx=ke(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var qW=jt(),YW={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){let{gen:n,schema:e,it:t}=o;if((0,qW.alwaysValidSchema)(t,e)){o.fail();return}let i=n.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),o.failResult(i,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};jy.default=YW});var Wx=ke(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var QW=Gr(),XW={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:QW.validateUnion,error:{message:"must match a schema in anyOf"}};Wy.default=XW});var Ux=ke(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var Xh=wt(),ZW=jt(),JW={message:"must match exactly one schema in oneOf",params:({params:o})=>(0,Xh._)`{passingSchemas: ${o.passing}}`},eU={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:JW,code(o){let{gen:n,schema:e,parentSchema:t,it:i}=o;if(!Array.isArray(e))throw new Error("ajv implementation error");if(i.opts.discriminator&&t.discriminator)return;let r=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");o.setParams({passing:a}),n.block(c),o.result(s,()=>o.reset(),()=>o.error(!0));function c(){r.forEach((u,d)=>{let p;(0,ZW.alwaysValidSchema)(i,u)?n.var(l,!0):p=o.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&n.if((0,Xh._)`${l} && ${s}`).assign(s,!1).assign(a,(0,Xh._)`[${a}, ${d}]`).else(),n.if(l,()=>{n.assign(s,!0),n.assign(a,d),p&&o.mergeEvaluated(p,Xh.Name)})})}}};Uy.default=eU});var Kx=ke(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});var tU=jt(),nU={keyword:"allOf",schemaType:"array",code(o){let{gen:n,schema:e,it:t}=o;if(!Array.isArray(e))throw new Error("ajv implementation error");let i=n.name("valid");e.forEach((r,s)=>{if((0,tU.alwaysValidSchema)(t,r))return;let a=o.subschema({keyword:"allOf",schemaProp:s},i);o.ok(i),o.mergeEvaluated(a)})}};Ky.default=nU});var Qx=ke(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var Zh=wt(),Yx=jt(),iU={message:({params:o})=>(0,Zh.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,Zh._)`{failingKeyword: ${o.ifClause}}`},rU={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:iU,code(o){let{gen:n,parentSchema:e,it:t}=o;e.then===void 0&&e.else===void 0&&(0,Yx.checkStrictMode)(t,'"if" without "then" and "else" is ignored');let i=qx(t,"then"),r=qx(t,"else");if(!i&&!r)return;let s=n.let("valid",!0),a=n.name("_valid");if(l(),o.reset(),i&&r){let u=n.let("ifClause");o.setParams({ifClause:u}),n.if(a,c("then",u),c("else",u))}else i?n.if(a,c("then")):n.if((0,Zh.not)(a),c("else"));o.pass(s,()=>o.error(!0));function l(){let u=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);o.mergeEvaluated(u)}function c(u,d){return()=>{let p=o.subschema({keyword:u},a);n.assign(s,a),o.mergeValidEvaluated(p,s),d?n.assign(d,(0,Zh._)`${u}`):o.setParams({ifClause:u})}}}};function qx(o,n){let e=o.schema[n];return e!==void 0&&!(0,Yx.alwaysValidSchema)(o,e)}qy.default=rU});var Xx=ke(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var oU=jt(),sU={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:n,it:e}){n.if===void 0&&(0,oU.checkStrictMode)(e,`"${o}" without "if" is ignored`)}};Yy.default=sU});var Zx=ke(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});var aU=Py(),lU=Ox(),cU=My(),uU=Rx(),dU=Ix(),pU=Fx(),hU=Nx(),fU=Gy(),gU=Vx(),mU=$x(),vU=jx(),yU=Wx(),CU=Ux(),_U=Kx(),SU=Qx(),wU=Xx();function bU(o=!1){let n=[vU.default,yU.default,CU.default,_U.default,SU.default,wU.default,hU.default,fU.default,pU.default,gU.default,mU.default];return o?n.push(lU.default,uU.default):n.push(aU.default,cU.default),n.push(dU.default),n}Qy.default=bU});var Jx=ke(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var Vn=wt(),TU={message:({schemaCode:o})=>(0,Vn.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,Vn._)`{format: ${o}}`},EU={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:TU,code(o,n){let{gen:e,data:t,$data:i,schema:r,schemaCode:s,it:a}=o,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=a;if(!l.validateFormats)return;i?p():g();function p(){let v=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),y=e.const("fDef",(0,Vn._)`${v}[${s}]`),x=e.let("fType"),E=e.let("format");e.if((0,Vn._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>e.assign(x,(0,Vn._)`${y}.type || "string"`).assign(E,(0,Vn._)`${y}.validate`),()=>e.assign(x,(0,Vn._)`"string"`).assign(E,y)),o.fail$data((0,Vn.or)(z(),M()));function z(){return l.strictSchema===!1?Vn.nil:(0,Vn._)`${s} && !${E}`}function M(){let G=u.$async?(0,Vn._)`(${y}.async ? await ${E}(${t}) : ${E}(${t}))`:(0,Vn._)`${E}(${t})`,U=(0,Vn._)`(typeof ${E} == "function" ? ${G} : ${E}.test(${t}))`;return(0,Vn._)`${E} && ${E} !== true && ${x} === ${n} && !${U}`}}function g(){let v=d.formats[r];if(!v){z();return}if(v===!0)return;let[y,x,E]=M(v);y===n&&o.pass(G());function z(){if(l.strictSchema===!1){d.logger.warn(U());return}throw new Error(U());function U(){return`unknown format "${r}" ignored in schema at path "${c}"`}}function M(U){let se=U instanceof RegExp?(0,Vn.regexpCode)(U):l.code.formats?(0,Vn._)`${l.code.formats}${(0,Vn.getProperty)(r)}`:void 0,ve=e.scopeValue("formats",{key:r,ref:U,code:se});return typeof U=="object"&&!(U instanceof RegExp)?[U.type||"string",U.validate,(0,Vn._)`${ve}.validate`]:["string",U,ve]}function G(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Vn._)`await ${E}(${t})`}return typeof x=="function"?(0,Vn._)`${E}(${t})`:(0,Vn._)`${E}.test(${t})`}}}};Xy.default=EU});var ez=ke(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});var xU=Jx(),zU=[xU.default];Zy.default=zU});var tz=ke(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.contentVocabulary=vc.metadataVocabulary=void 0;vc.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vc.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var iz=ke(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var OU=ux(),DU=Tx(),RU=Zx(),IU=ez(),nz=tz(),PU=[OU.default,DU.default,(0,RU.default)(),IU.default,nz.metadataVocabulary,nz.contentVocabulary];Jy.default=PU});var rz=ke(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.DiscrError=void 0;var MU;(function(o){o.Tag="tag",o.Mapping="mapping"})(MU=ed.DiscrError||(ed.DiscrError={}))});var sz=ke(tC=>{"use strict";Object.defineProperty(tC,"__esModule",{value:!0});var yc=wt(),eC=rz(),oz=Lh(),FU=jt(),AU={message:({params:{discrError:o,tagName:n}})=>o===eC.DiscrError.Tag?`tag "${n}" must be string`:`value of tag "${n}" must be in oneOf`,params:({params:{discrError:o,tag:n,tagName:e}})=>(0,yc._)`{error: ${o}, tag: ${e}, tagValue: ${n}}`},NU={keyword:"discriminator",type:"object",schemaType:"object",error:AU,code(o){let{gen:n,data:e,schema:t,parentSchema:i,it:r}=o,{oneOf:s}=i;if(!r.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=t.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(t.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let l=n.let("valid",!1),c=n.const("tag",(0,yc._)`${e}${(0,yc.getProperty)(a)}`);n.if((0,yc._)`typeof ${c} == "string"`,()=>u(),()=>o.error(!1,{discrError:eC.DiscrError.Tag,tag:c,tagName:a})),o.ok(l);function u(){let g=p();n.if(!1);for(let v in g)n.elseIf((0,yc._)`${c} === ${v}`),n.assign(l,d(g[v]));n.else(),o.error(!1,{discrError:eC.DiscrError.Mapping,tag:c,tagName:a}),n.endIf()}function d(g){let v=n.name("valid"),y=o.subschema({keyword:"oneOf",schemaProp:g},v);return o.mergeEvaluated(y,yc.Name),v}function p(){var g;let v={},y=E(i),x=!0;for(let G=0;G<s.length;G++){let U=s[G];U?.$ref&&!(0,FU.schemaHasRulesButRef)(U,r.self.RULES)&&(U=oz.resolveRef.call(r.self,r.schemaEnv.root,r.baseId,U?.$ref),U instanceof oz.SchemaEnv&&(U=U.schema));let se=(g=U?.properties)===null||g===void 0?void 0:g[a];if(typeof se!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);x=x&&(y||E(U)),z(se,G)}if(!x)throw new Error(`discriminator: "${a}" must be required`);return v;function E({required:G}){return Array.isArray(G)&&G.includes(a)}function z(G,U){if(G.const)M(G.const,U);else if(G.enum)for(let se of G.enum)M(se,U);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function M(G,U){if(typeof G!="string"||G in v)throw new Error(`discriminator: "${a}" values must be unique strings`);v[G]=U}}}};tC.default=NU});var az=ke((oye,LU)=>{LU.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 nC=ke((Pn,cz)=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.MissingRefError=Pn.ValidationError=Pn.CodeGen=Pn.Name=Pn.nil=Pn.stringify=Pn.str=Pn._=Pn.KeywordCxt=void 0;var kU=rx(),VU=iz(),GU=sz(),lz=az(),HU=["/properties"],Jh="http://json-schema.org/draft-07/schema",ef=class extends kU.default{_addVocabularies(){super._addVocabularies(),VU.default.forEach(n=>this.addVocabulary(n)),this.opts.discriminator&&this.addKeyword(GU.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let n=this.opts.$data?this.$dataMetaSchema(lz,HU):lz;this.addMetaSchema(n,Jh,!1),this.refs["http://json-schema.org/schema"]=Jh}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Jh)?Jh:void 0)}};cz.exports=Pn=ef;Object.defineProperty(Pn,"__esModule",{value:!0});Pn.default=ef;var BU=Hu();Object.defineProperty(Pn,"KeywordCxt",{enumerable:!0,get:function(){return BU.KeywordCxt}});var Cc=wt();Object.defineProperty(Pn,"_",{enumerable:!0,get:function(){return Cc._}});Object.defineProperty(Pn,"str",{enumerable:!0,get:function(){return Cc.str}});Object.defineProperty(Pn,"stringify",{enumerable:!0,get:function(){return Cc.stringify}});Object.defineProperty(Pn,"nil",{enumerable:!0,get:function(){return Cc.nil}});Object.defineProperty(Pn,"Name",{enumerable:!0,get:function(){return Cc.Name}});Object.defineProperty(Pn,"CodeGen",{enumerable:!0,get:function(){return Cc.CodeGen}});var $U=Fh();Object.defineProperty(Pn,"ValidationError",{enumerable:!0,get:function(){return $U.default}});var jU=Ah();Object.defineProperty(Pn,"MissingRefError",{enumerable:!0,get:function(){return jU.default}})});var gz=ke(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.formatNames=ko.fastFormats=ko.fullFormats=void 0;function _c(o,n){return{validate:o,compare:n}}ko.fullFormats={date:_c(pz,oC),time:_c(hz,sC),"date-time":_c(qU,fz),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:XU,"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|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\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:r4,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:ZU,int32:{type:"number",validate:t4},int64:{type:"number",validate:n4},float:{type:"number",validate:dz},double:{type:"number",validate:dz},password:!0,binary:!0};ko.fastFormats=ot(V({},ko.fullFormats),{date:_c(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,oC),time:_c(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,sC),"date-time":_c(/^\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,fz),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});ko.formatNames=Object.keys(ko.fullFormats);function WU(o){return o%4===0&&(o%100!==0||o%400===0)}var UU=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,KU=[0,31,28,31,30,31,30,31,31,30,31,30,31];function pz(o){let n=UU.exec(o);if(!n)return!1;let e=+n[1],t=+n[2],i=+n[3];return t>=1&&t<=12&&i>=1&&i<=(t===2&&WU(e)?29:KU[t])}function oC(o,n){if(o&&n)return o>n?1:o<n?-1:0}var iC=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function hz(o,n){let e=iC.exec(o);if(!e)return!1;let t=+e[1],i=+e[2],r=+e[3],s=e[5];return(t<=23&&i<=59&&r<=59||t===23&&i===59&&r===60)&&(!n||s!=="")}function sC(o,n){if(!(o&&n))return;let e=iC.exec(o),t=iC.exec(n);if(e&&t)return o=e[1]+e[2]+e[3]+(e[4]||""),n=t[1]+t[2]+t[3]+(t[4]||""),o>n?1:o<n?-1:0}var rC=/t|\s/i;function qU(o){let n=o.split(rC);return n.length===2&&pz(n[0])&&hz(n[1],!0)}function fz(o,n){if(!(o&&n))return;let[e,t]=o.split(rC),[i,r]=n.split(rC),s=oC(e,i);if(s!==void 0)return s||sC(t,r)}var YU=/\/|:/,QU=/^(?:[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;function XU(o){return YU.test(o)&&QU.test(o)}var uz=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function ZU(o){return uz.lastIndex=0,uz.test(o)}var JU=-(2**31),e4=2**31-1;function t4(o){return Number.isInteger(o)&&o<=e4&&o>=JU}function n4(o){return Number.isInteger(o)}function dz(){return!0}var i4=/[^\\]\\Z/;function r4(o){if(i4.test(o))return!1;try{return new RegExp(o),!0}catch{return!1}}});var mz=ke(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.formatLimitDefinition=void 0;var o4=nC(),go=wt(),Xs=go.operators,tf={formatMaximum:{okStr:"<=",ok:Xs.LTE,fail:Xs.GT},formatMinimum:{okStr:">=",ok:Xs.GTE,fail:Xs.LT},formatExclusiveMaximum:{okStr:"<",ok:Xs.LT,fail:Xs.GTE},formatExclusiveMinimum:{okStr:">",ok:Xs.GT,fail:Xs.LTE}},s4={message:({keyword:o,schemaCode:n})=>go.str`should be ${tf[o].okStr} ${n}`,params:({keyword:o,schemaCode:n})=>go._`{comparison: ${tf[o].okStr}, limit: ${n}}`};Sc.formatLimitDefinition={keyword:Object.keys(tf),type:"string",schemaType:"string",$data:!0,error:s4,code(o){let{gen:n,data:e,schemaCode:t,keyword:i,it:r}=o,{opts:s,self:a}=r;if(!s.validateFormats)return;let l=new o4.KeywordCxt(r,a.RULES.all.format.definition,"format");l.$data?c():u();function c(){let p=n.scopeValue("formats",{ref:a.formats,code:s.code.formats}),g=n.const("fmt",go._`${p}[${l.schemaCode}]`);o.fail$data(go.or(go._`typeof ${g} != "object"`,go._`${g} instanceof RegExp`,go._`typeof ${g}.compare != "function"`,d(g)))}function u(){let p=l.schema,g=a.formats[p];if(!g||g===!0)return;if(typeof g!="object"||g instanceof RegExp||typeof g.compare!="function")throw new Error(`"${i}": format "${p}" does not define "compare" function`);let v=n.scopeValue("formats",{key:p,ref:g,code:s.code.formats?go._`${s.code.formats}${go.getProperty(p)}`:void 0});o.fail$data(d(v))}function d(p){return go._`${p}.compare(${e}, ${t}) ${tf[i].fail} 0`}},dependencies:["format"]};var a4=o=>(o.addKeyword(Sc.formatLimitDefinition),o);Sc.default=a4});var _z=ke((td,Cz)=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var wc=gz(),l4=mz(),aC=wt(),vz=new aC.Name("fullFormats"),c4=new aC.Name("fastFormats"),lC=(o,n={keywords:!0})=>{if(Array.isArray(n))return yz(o,n,wc.fullFormats,vz),o;let[e,t]=n.mode==="fast"?[wc.fastFormats,c4]:[wc.fullFormats,vz],i=n.formats||wc.formatNames;return yz(o,i,e,t),n.keywords&&l4.default(o),o};lC.get=(o,n="full")=>{let t=(n==="fast"?wc.fastFormats:wc.fullFormats)[o];if(!t)throw new Error(`Unknown format "${o}"`);return t};function yz(o,n,e,t){var i,r;(i=(r=o.opts.code).formats)!==null&&i!==void 0||(r.formats=aC._`require("ajv-formats/dist/formats").${t}`);for(let s of n)o.addFormat(s,e[s])}Cz.exports=td=lC;Object.defineProperty(td,"__esModule",{value:!0});td.default=lC});var fr=(()=>{let n=class n{};n.SLOW="0.3s",n.BASE="0.2s",n.FAST="0.1s";let o=n;return o})(),Ci=(()=>{let n=class n{};n.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",n.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",n.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",n.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",n.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",n.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",n.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",n.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",n.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",n.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",n.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",n.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",n.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",n.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)";let o=n;return o})(),_w=Ar("collapseMotion",[pr("expanded",pt({height:"*"})),pr("collapsed",pt({height:0,overflow:"hidden"})),pr("hidden",pt({height:0,overflow:"hidden",borderTopWidth:"0"})),Sn("expanded => collapsed",mn(`150ms ${Ci.EASE_IN_OUT}`)),Sn("expanded => hidden",mn(`150ms ${Ci.EASE_IN_OUT}`)),Sn("collapsed => expanded",mn(`150ms ${Ci.EASE_IN_OUT}`)),Sn("hidden => expanded",mn(`150ms ${Ci.EASE_IN_OUT}`))]),Sw=Ar("treeCollapseMotion",[Sn("* => *",[rm("nz-tree-node:leave,nz-tree-builtin-node:leave",[pt({overflow:"hidden"}),om(0,[mn(`150ms ${Ci.EASE_IN_OUT}`,pt({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),rm("nz-tree-node:enter,nz-tree-builtin-node:enter",[pt({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),om(0,[mn(`150ms ${Ci.EASE_IN_OUT}`,pt({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),ww=Ar("fadeMotion",[Sn(":enter",[pt({opacity:0}),mn(`${fr.BASE}`,pt({opacity:1}))]),Sn(":leave",[pt({opacity:1}),mn(`${fr.BASE}`,pt({opacity:0}))])]),jl=Ar("helpMotion",[Sn(":enter",[pt({opacity:0,transform:"translateY(-5px)"}),mn(`${fr.SLOW} ${Ci.EASE_IN_OUT}`,pt({opacity:1,transform:"translateY(0)"}))]),Sn(":leave",[pt({opacity:1,transform:"translateY(0)"}),mn(`${fr.SLOW} ${Ci.EASE_IN_OUT}`,pt({opacity:0,transform:"translateY(-5px)"}))])]),bw=Ar("moveUpMotion",[Sn("* => enter",[pt({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),mn(`${fr.BASE}`,pt({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),Sn("* => leave",[pt({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),mn(`${fr.BASE}`,pt({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),Tw=Ar("notificationMotion",[pr("enterRight",pt({opacity:1,transform:"translateX(0)"})),Sn("* => enterRight",[pt({opacity:0,transform:"translateX(5%)"}),mn("100ms linear")]),pr("enterLeft",pt({opacity:1,transform:"translateX(0)"})),Sn("* => enterLeft",[pt({opacity:0,transform:"translateX(-5%)"}),mn("100ms linear")]),pr("enterTop",pt({opacity:1,transform:"translateY(0)"})),Sn("* => enterTop",[pt({opacity:0,transform:"translateY(-5%)"}),mn("100ms linear")]),pr("enterBottom",pt({opacity:1,transform:"translateY(0)"})),Sn("* => enterBottom",[pt({opacity:0,transform:"translateY(5%)"}),mn("100ms linear")]),pr("leave",pt({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),Sn("* => leave",[pt({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),mn("100ms linear")])]),GI=`${fr.BASE} ${Ci.EASE_OUT_QUINT}`,HI=`${fr.BASE} ${Ci.EASE_IN_QUINT}`,Mo=Ar("slideMotion",[pr("void",pt({opacity:0,transform:"scaleY(0.8)"})),pr("enter",pt({opacity:1,transform:"scaleY(1)"})),Sn("void => *",[mn(GI)]),Sn("* => void",[mn(HI)])]),Ew=Ar("slideAlertMotion",[Sn(":leave",[pt({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),mn(`${fr.SLOW} ${Ci.EASE_IN_OUT_CIRC}`,pt({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),Is=Ar("zoomBigMotion",[Sn("void => active",[pt({opacity:0,transform:"scale(0.8)"}),mn(`${fr.BASE} ${Ci.EASE_OUT_CIRC}`,pt({opacity:1,transform:"scale(1)"}))]),Sn("active => void",[pt({opacity:1,transform:"scale(1)"}),mn(`${fr.BASE} ${Ci.EASE_IN_OUT_CIRC}`,pt({opacity:0,transform:"scale(0.8)"}))])]),dm=Ar("zoomBadgeMotion",[Sn(":enter",[pt({opacity:0,transform:"scale(0) translate(50%, -50%)"}),mn(`${fr.SLOW} ${Ci.EASE_OUT_BACK}`,pt({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),Sn(":leave",[pt({opacity:1,transform:"scale(1) translate(50%, -50%)"}),mn(`${fr.SLOW} ${Ci.EASE_IN_BACK}`,pt({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])]),Xre=Ar("thumbMotion",[pr("from",pt({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:0,width:0}}),pr("to",pt({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:100,width:0}}),Sn("from => to",mn(`300ms ${Ci.EASE_IN_OUT}`))]);var pm=()=>{},uu=(()=>{let n=class n{constructor(t,i){this.ngZone=t,this.rendererFactory2=i,this.resizeSource$=new J,this.listeners=0,this.disposeHandle=pm,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=pm}subscribe(){return this.registerListener(),this.resizeSource$.pipe(zs(16),El(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){this.listeners===0&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,this.listeners===0&&(this.disposeHandle(),this.disposeHandle=pm)}};n.\u0275fac=function(i){return new(i||n)(nt($e),nt(ES))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})(),$I=new Map,Dp=(()=>{let n=class n{constructor(){this._singletonRegistry=new Map}get singletonRegistry(){return KS.isTestMode?$I:this._singletonRegistry}registerSingletonWithKey(t,i){let r=this.singletonRegistry.has(t),s=r?this.singletonRegistry.get(t):this.withNewTarget(i);r||this.singletonRegistry.set(t,s)}unregisterSingletonWithKey(t){this.singletonRegistry.has(t)&&this.singletonRegistry.delete(t)}getSingletonWithKey(t){return this.singletonRegistry.has(t)?this.singletonRegistry.get(t).target:null}withNewTarget(t){return{target:t}}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();function jI(o,n,e,t){let i=e-n,r=o/(t/2);return r<1?i/2*r*r*r+n:i/2*((r-=2)*r*r+2)+n}var xw=(()=>{let n=class n{constructor(t,i){this.ngZone=t,this.doc=i}setScrollTop(t,i=0){t===window?(this.doc.body.scrollTop=i,this.doc.documentElement.scrollTop=i):t.scrollTop=i}getOffset(t){let i={top:0,left:0};if(!t||!t.getClientRects().length)return i;let r=t.getBoundingClientRect();if(r.width||r.height){let s=t.ownerDocument.documentElement;i.top=r.top-s.clientTop,i.left=r.left-s.clientLeft}else i.top=r.top,i.left=r.left;return i}getScroll(t,i=!0){if(typeof window>"u")return 0;let r=i?"scrollTop":"scrollLeft",s=0;return this.isWindow(t)?s=t[i?"pageYOffset":"pageXOffset"]:t instanceof Document?s=t.documentElement[r]:t&&(s=t[r]),t&&!this.isWindow(t)&&typeof s!="number"&&(s=(t.ownerDocument||t).documentElement[r]),s}isWindow(t){return t!=null&&t===t.window}scrollTo(t,i=0,r={}){let s=t||window,a=this.getScroll(s),l=Date.now(),{easing:c,callback:u,duration:d=450}=r,p=()=>{let v=Date.now()-l,y=(c||jI)(v>d?d:v,a,i,d);this.isWindow(s)?s.scrollTo(window.pageXOffset,y):s instanceof HTMLDocument||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=y:s.scrollTop=y,v<d?to(p):typeof u=="function"&&this.ngZone.run(u)};this.ngZone.runOutsideAngular(()=>to(p))}};n.\u0275fac=function(i){return new(i||n)(nt($e),nt(gi))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})(),Rp=function(o){return o.xxl="xxl",o.xl="xl",o.lg="lg",o.md="md",o.sm="sm",o.xs="xs",o}(Rp||{}),xa={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};var Ip=(()=>{let n=class n{constructor(t,i){this.resizeService=t,this.mediaMatcher=i,this.destroy$=new J,this.resizeService.subscribe().pipe(F(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(t,i){if(i){let r=()=>this.matchMedia(t,!0);return this.resizeService.subscribe().pipe(We(r),Ot(r()),Bt((s,a)=>s[0]===a[0]),We(s=>s[1]))}else{let r=()=>this.matchMedia(t);return this.resizeService.subscribe().pipe(We(r),Ot(r()),Bt())}}matchMedia(t,i){let r=Rp.md,s={};return Object.keys(t).map(a=>{let l=a,c=this.mediaMatcher.matchMedia(xa[l]).matches;s[a]=c,c&&(r=l)}),i?[r,s]:r}};n.\u0275fac=function(i){return new(i||n)(nt(uu),nt(yp))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})(),Pt=(()=>{let n=class n extends J{ngOnDestroy(){this.next(),this.complete()}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})();function WI(o,n){o&1&&R(0,"span",10)}function UI(o,n){o&1&&R(0,"span",11)}function KI(o,n){o&1&&R(0,"span",12)}function qI(o,n){o&1&&R(0,"span",13)}function YI(o,n){o&1&&R(0,"span",14)}function QI(o,n){if(o&1&&(H(0),R(1,"span",15),B()),o&2){let e=m();f(),h("innerHTML",e.instance.content,Dt)}}function XI(o,n){if(o&1){let e=Q();C(0,"nz-message",2),A("destroyed",function(i){I(e);let r=m();return P(r.remove(i.id,i.userAction))}),S()}if(o&2){let e=n.$implicit;h("instance",e)}}var ZI=0,du=class{constructor(n,e,t){this.nzSingletonService=n,this.overlay=e,this.injector=t}remove(n){this.container&&(n?this.container.remove(n):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${ZI++}`}withContainer(n){let e=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(e)return e;let t=this.overlay.create({hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global()}),i=new kl(n,null,this.injector),r=t.attach(i),s=t.hostElement;return s.style.zIndex="1010",e||(this.container=e=r.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,e),this.container.afterAllInstancesRemoved.subscribe(()=>{this.container=void 0,this.nzSingletonService.unregisterSingletonWithKey(this.componentPrefix),t.dispose()})),e}},hm=(()=>{let n=class n{constructor(t,i){this.cdr=t,this.nzConfigService=i,this.instances=[],this._afterAllInstancesRemoved=new J,this.afterAllInstancesRemoved=this._afterAllInstancesRemoved.asObservable(),this.destroy$=new J,this.updateConfig()}ngOnInit(){this.subscribeConfigChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}create(t){let i=this.onCreate(t);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,i],this.readyInstances(),i}remove(t,i=!1){this.instances.map((r,s)=>({index:s,instance:r})).filter(({instance:r})=>r.messageId===t).forEach(({index:r,instance:s})=>{this.instances.splice(r,1),this.instances=[...this.instances],this.onRemove(s,i),this.readyInstances()}),this.instances.length||this.onAllInstancesRemoved()}removeAll(){this.instances.forEach(t=>this.onRemove(t,!1)),this.instances=[],this.readyInstances(),this.onAllInstancesRemoved()}onCreate(t){return t.options=this.mergeOptions(t.options),t.onClose=new J,t}onRemove(t,i){t.onClose.next(i),t.onClose.complete()}onAllInstancesRemoved(){this._afterAllInstancesRemoved.next(),this._afterAllInstancesRemoved.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(t){let{nzDuration:i,nzAnimate:r,nzPauseOnHover:s}=this.config;return V({nzDuration:i,nzAnimate:r,nzPauseOnHover:s},t)}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(st))},n.\u0275dir=Se({type:n});let o=n;return o})(),fm=(()=>{let n=class n{constructor(t){this.cdr=t,this.destroyed=new O,this.animationStateChanged=new J,this.userAction=!1,this.eraseTimer=null}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe(Qe(t=>t.phaseName==="done"&&t.toState==="leave"),Zr(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}ngOnDestroy(){this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(t=!1){this.userAction=t,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:t})},200)):this.destroyed.next({id:this.instance.messageId,userAction:t})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){this.eraseTimer!==null&&(clearTimeout(this.eraseTimer),this.eraseTimer=null)}};n.\u0275fac=function(i){return new(i||n)(w(fe))},n.\u0275dir=Se({type:n});let o=n;return o})(),zw=(()=>{let n=class n extends fm{constructor(t){super(t),this.destroyed=new O}};n.\u0275fac=function(i){return new(i||n)(w(fe))},n.\u0275cmp=j({type:n,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],standalone:!0,features:[Xe,K],decls:10,vars:9,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","loading",4,"ngSwitchCase"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","info-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","loading"],[3,"innerHTML"]],template:function(i,r){i&1&&(C(0,"div",0),A("@moveUpMotion.done",function(a){return r.animationStateChanged.next(a)})("mouseenter",function(){return r.onEnter()})("mouseleave",function(){return r.onLeave()}),C(1,"div",1)(2,"div",2),H(3,3),_(4,WI,1,0,"span",4)(5,UI,1,0,"span",5)(6,KI,1,0,"span",6)(7,qI,1,0,"span",7)(8,YI,1,0,"span",8),B(),_(9,QI,2,1,"ng-container",9),S()()()),i&2&&(h("@moveUpMotion",r.instance.state),f(2),h("ngClass","ant-message-"+r.instance.type),f(),h("ngSwitch",r.instance.type),f(),h("ngSwitchCase","success"),f(),h("ngSwitchCase","info"),f(),h("ngSwitchCase","warning"),f(),h("ngSwitchCase","error"),f(),h("ngSwitchCase","loading"),f(),h("nzStringTemplateOutlet",r.instance.content))},dependencies:[St,jn,Wn,Ge,Fe,Ye,Ue],encapsulation:2,data:{animation:[bw]},changeDetection:0});let o=n;return o})(),Pp="message",JI={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"},Ow=(()=>{let n=class n extends hm{constructor(t,i){super(t,i),this.dir="ltr";let r=this.nzConfigService.getConfigForComponent(Pp);this.dir=r?.nzDirection||"ltr"}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(Pp).pipe(F(this.destroy$)).subscribe(()=>{this.updateConfig();let t=this.nzConfigService.getConfigForComponent(Pp);if(t){let{nzDirection:i}=t;this.dir=i||this.dir}})}updateConfig(){this.config=V(V(V({},JI),this.config),this.nzConfigService.getConfigForComponent(Pp)),this.top=Ea(this.config.nzTop),this.cdr.markForCheck()}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(st))},n.\u0275cmp=j({type:n,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],standalone:!0,features:[Xe,K],decls:2,vars:5,consts:[[1,"ant-message"],[3,"instance","destroyed",4,"ngFor","ngForOf"],[3,"instance","destroyed"]],template:function(i,r){i&1&&(C(0,"div",0),_(1,XI,1,1,"nz-message",1),S()),i&2&&(Re("top",r.top),k("ant-message-rtl",r.dir==="rtl"),f(),h("ngForOf",r.instances))},dependencies:[zw,lt],encapsulation:2,changeDetection:0});let o=n;return o})(),Soe=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Ow,zw]});let o=n;return o})(),woe=(()=>{let n=class n extends du{constructor(t,i,r){super(t,i,r),this.componentPrefix="message-"}success(t,i){return this.createInstance({type:"success",content:t},i)}error(t,i){return this.createInstance({type:"error",content:t},i)}info(t,i){return this.createInstance({type:"info",content:t},i)}warning(t,i){return this.createInstance({type:"warning",content:t},i)}loading(t,i){return this.createInstance({type:"loading",content:t},i)}create(t,i,r){return this.createInstance({type:t,content:i},r)}createInstance(t,i){return this.container=this.withContainer(Ow),this.container.create(ot(V({},t),{createdAt:new Date,messageId:this.getInstanceId(),options:i}))}};n.\u0275fac=function(i){return new(i||n)(nt(Dp),nt(ss),nt($n))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();function eP(o,n){o&1&&R(0,"span",17)}function tP(o,n){o&1&&R(0,"span",18)}function nP(o,n){o&1&&R(0,"span",19)}function iP(o,n){o&1&&R(0,"span",20)}function rP(o,n){if(o&1&&(H(0),R(1,"div",21),B()),o&2){let e=m(2);f(),h("innerHTML",e.instance.title,Dt)}}function oP(o,n){if(o&1&&(H(0),R(1,"div",21),B()),o&2){let e=m(2);f(),h("innerHTML",e.instance.content,Dt)}}function sP(o,n){}var aP=o=>({$implicit:o});function lP(o,n){if(o&1&&(C(0,"span",22),_(1,sP,0,0,"ng-template",23),S()),o&2){let e=n.ngIf,t=m(2);f(),h("ngTemplateOutlet",e)("ngTemplateOutletContext",yt(2,aP,t))}}function cP(o,n){if(o&1&&(C(0,"div",7)(1,"div",7)(2,"div"),H(3,8),_(4,eP,1,0,"span",9)(5,tP,1,0,"span",10)(6,nP,1,0,"span",11)(7,iP,1,0,"span",12),B(),C(8,"div",13),_(9,rP,2,1,"ng-container",14),S(),C(10,"div",15),_(11,oP,2,1,"ng-container",14),S(),_(12,lP,2,4,"span",16),S()()()),o&2){let e=m();f(2),k("ant-notification-notice-with-icon",e.instance.type!=="blank"),f(),h("ngSwitch",e.instance.type),f(),h("ngSwitchCase","success"),f(),h("ngSwitchCase","info"),f(),h("ngSwitchCase","warning"),f(),h("ngSwitchCase","error"),f(2),h("nzStringTemplateOutlet",e.instance.title),f(2),h("nzStringTemplateOutlet",e.instance.content),f(),h("ngIf",e.instance.options==null?null:e.instance.options.nzButton)}}function uP(o,n){}function dP(o,n){if(o&1&&(H(0),R(1,"span",24),B()),o&2){let e=n.$implicit;f(),h("nzType",e)}}function pP(o,n){if(o&1&&(H(0),_(1,dP,2,1,"ng-container",14),B()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.instance.options==null?null:e.instance.options.nzCloseIcon)}}function hP(o,n){o&1&&R(0,"span",25)}var fP=(o,n)=>({$implicit:o,data:n});function gP(o,n){if(o&1){let e=Q();C(0,"nz-notification",7),A("destroyed",function(i){I(e);let r=m();return P(r.remove(i.id,i.userAction))}),S()}if(o&2){let e=n.$implicit;h("instance",e)("placement","topLeft")}}function mP(o,n){if(o&1){let e=Q();C(0,"nz-notification",7),A("destroyed",function(i){I(e);let r=m();return P(r.remove(i.id,i.userAction))}),S()}if(o&2){let e=n.$implicit;h("instance",e)("placement","topRight")}}function vP(o,n){if(o&1){let e=Q();C(0,"nz-notification",7),A("destroyed",function(i){I(e);let r=m();return P(r.remove(i.id,i.userAction))}),S()}if(o&2){let e=n.$implicit;h("instance",e)("placement","bottomLeft")}}function yP(o,n){if(o&1){let e=Q();C(0,"nz-notification",7),A("destroyed",function(i){I(e);let r=m();return P(r.remove(i.id,i.userAction))}),S()}if(o&2){let e=n.$implicit;h("instance",e)("placement","bottomRight")}}function CP(o,n){if(o&1){let e=Q();C(0,"nz-notification",7),A("destroyed",function(i){I(e);let r=m();return P(r.remove(i.id,i.userAction))}),S()}if(o&2){let e=n.$implicit;h("instance",e)("placement","top")}}function _P(o,n){if(o&1){let e=Q();C(0,"nz-notification",7),A("destroyed",function(i){I(e);let r=m();return P(r.remove(i.id,i.userAction))}),S()}if(o&2){let e=n.$implicit;h("instance",e)("placement","bottom")}}var Dw=(()=>{let n=class n extends fm{constructor(t){super(t),this.destroyed=new O}ngOnDestroy(){super.ngOnDestroy(),this.instance.onClick.complete()}onClick(t){this.instance.onClick.next(t)}close(){this.destroy(!0)}get state(){if(this.instance.state==="enter")switch(this.placement){case"topLeft":case"bottomLeft":return"enterLeft";case"topRight":case"bottomRight":return"enterRight";case"top":return"enterTop";case"bottom":return"enterBottom";default:return"enterRight"}else return this.instance.state}};n.\u0275fac=function(i){return new(i||n)(w(fe))},n.\u0275cmp=j({type:n,selectors:[["nz-notification"]],inputs:{instance:"instance",index:"index",placement:"placement"},outputs:{destroyed:"destroyed"},exportAs:["nzNotification"],standalone:!0,features:[Xe,K],decls:8,vars:12,consts:[[1,"ant-notification-notice","ant-notification-notice-closable",3,"ngStyle","ngClass","click","mouseenter","mouseleave"],["class","ant-notification-notice-content",4,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",1,"ant-notification-notice-close",3,"click"],[1,"ant-notification-notice-close-x"],[4,"ngIf","ngIfElse"],["iconTpl",""],[1,"ant-notification-notice-content"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle","class","ant-notification-notice-icon ant-notification-notice-icon-success",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle","class","ant-notification-notice-icon ant-notification-notice-icon-info",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle","class","ant-notification-notice-icon ant-notification-notice-icon-warning",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle","class","ant-notification-notice-icon ant-notification-notice-icon-error",4,"ngSwitchCase"],[1,"ant-notification-notice-message"],[4,"nzStringTemplateOutlet"],[1,"ant-notification-notice-description"],["class","ant-notification-notice-btn",4,"ngIf"],["nz-icon","","nzType","check-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-success"],["nz-icon","","nzType","info-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-info"],["nz-icon","","nzType","exclamation-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-warning"],["nz-icon","","nzType","close-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-error"],[3,"innerHTML"],[1,"ant-notification-notice-btn"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","close",1,"ant-notification-close-icon"]],template:function(i,r){if(i&1&&(C(0,"div",0),A("@notificationMotion.done",function(a){return r.animationStateChanged.next(a)})("click",function(a){return r.onClick(a)})("mouseenter",function(){return r.onEnter()})("mouseleave",function(){return r.onLeave()}),_(1,cP,13,10,"div",1)(2,uP,0,0,"ng-template",2),C(3,"a",3),A("click",function(){return r.close()}),C(4,"span",4),_(5,pP,2,1,"ng-container",5)(6,hP,1,0,"ng-template",null,6,_e),S()()()),i&2){let s=te(7);h("ngStyle",(r.instance.options==null?null:r.instance.options.nzStyle)||null)("ngClass",(r.instance.options==null?null:r.instance.options.nzClass)||"")("@notificationMotion",r.state),f(),h("ngIf",!r.instance.template),f(),h("ngIf",r.instance.template)("ngTemplateOutlet",r.instance.template)("ngTemplateOutletContext",ri(9,fP,r,r.instance.options==null?null:r.instance.options.nzData)),f(3),h("ngIf",r.instance.options==null?null:r.instance.options.nzCloseIcon)("ngIfElse",s)}},dependencies:[Zt,St,we,jn,Wn,Ge,Fe,Ye,Ue,Be],encapsulation:2,data:{animation:[Tw]}});let o=n;return o})(),Mp="notification",SP={nzTop:"24px",nzBottom:"24px",nzPlacement:"topRight",nzDuration:4500,nzMaxStack:7,nzPauseOnHover:!0,nzAnimate:!0,nzDirection:"ltr"},Rw=(()=>{let n=class n extends hm{constructor(t,i){super(t,i),this.dir="ltr",this.instances=[],this.topLeftInstances=[],this.topRightInstances=[],this.bottomLeftInstances=[],this.bottomRightInstances=[],this.topInstances=[],this.bottomInstances=[];let r=this.nzConfigService.getConfigForComponent(Mp);this.dir=r?.nzDirection||"ltr"}create(t){let i=this.onCreate(t),r=i.options.nzKey,s=this.instances.find(a=>a.options.nzKey===t.options.nzKey);return r&&s?this.replaceNotification(s,i):(this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,i]),this.readyInstances(),i}onCreate(t){return t.options=this.mergeOptions(t.options),t.onClose=new J,t.onClick=new J,t}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(Mp).pipe(F(this.destroy$)).subscribe(()=>{this.updateConfig();let t=this.nzConfigService.getConfigForComponent(Mp);if(t){let{nzDirection:i}=t;this.dir=i||this.dir}})}updateConfig(){this.config=V(V(V({},SP),this.config),this.nzConfigService.getConfigForComponent(Mp)),this.top=Ea(this.config.nzTop),this.bottom=Ea(this.config.nzBottom),this.cdr.markForCheck()}replaceNotification(t,i){t.title=i.title,t.content=i.content,t.template=i.template,t.type=i.type,t.options=i.options}readyInstances(){let t={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[],top:[],bottom:[]};this.instances.forEach(i=>{switch(i.options.nzPlacement){case"topLeft":t.topLeft.push(i);break;case"topRight":t.topRight.push(i);break;case"bottomLeft":t.bottomLeft.push(i);break;case"bottomRight":t.bottomRight.push(i);break;case"top":t.top.push(i);break;case"bottom":t.bottom.push(i);break;default:t.topRight.push(i)}}),this.topLeftInstances=t.topLeft,this.topRightInstances=t.topRight,this.bottomLeftInstances=t.bottomLeft,this.bottomRightInstances=t.bottomRight,this.topInstances=t.top,this.bottomInstances=t.bottom,this.cdr.detectChanges()}mergeOptions(t){let{nzDuration:i,nzAnimate:r,nzPauseOnHover:s,nzPlacement:a}=this.config;return V({nzDuration:i,nzAnimate:r,nzPauseOnHover:s,nzPlacement:a},t)}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(st))},n.\u0275cmp=j({type:n,selectors:[["nz-notification-container"]],exportAs:["nzNotificationContainer"],standalone:!0,features:[Xe,K],decls:12,vars:46,consts:[[1,"ant-notification","ant-notification-topLeft"],[3,"instance","placement","destroyed",4,"ngFor","ngForOf"],[1,"ant-notification","ant-notification-topRight"],[1,"ant-notification","ant-notification-bottomLeft"],[1,"ant-notification","ant-notification-bottomRight"],[1,"ant-notification","ant-notification-top"],[1,"ant-notification","ant-notification-bottom"],[3,"instance","placement","destroyed"]],template:function(i,r){i&1&&(C(0,"div",0),_(1,gP,1,2,"nz-notification",1),S(),C(2,"div",2),_(3,mP,1,2,"nz-notification",1),S(),C(4,"div",3),_(5,vP,1,2,"nz-notification",1),S(),C(6,"div",4),_(7,yP,1,2,"nz-notification",1),S(),C(8,"div",5),_(9,CP,1,2,"nz-notification",1),S(),C(10,"div",6),_(11,_P,1,2,"nz-notification",1),S()),i&2&&(Re("top",r.top)("left","0px"),k("ant-notification-rtl",r.dir==="rtl"),f(),h("ngForOf",r.topLeftInstances),f(),Re("top",r.top)("right","0px"),k("ant-notification-rtl",r.dir==="rtl"),f(),h("ngForOf",r.topRightInstances),f(),Re("bottom",r.bottom)("left","0px"),k("ant-notification-rtl",r.dir==="rtl"),f(),h("ngForOf",r.bottomLeftInstances),f(),Re("bottom",r.bottom)("right","0px"),k("ant-notification-rtl",r.dir==="rtl"),f(),h("ngForOf",r.bottomRightInstances),f(),Re("top",r.top)("left","50%")("transform","translateX(-50%)"),k("ant-notification-rtl",r.dir==="rtl"),f(),h("ngForOf",r.topInstances),f(),Re("bottom",r.bottom)("left","50%")("transform","translateX(-50%)"),k("ant-notification-rtl",r.dir==="rtl"),f(),h("ngForOf",r.bottomInstances))},dependencies:[Dw,lt],encapsulation:2,changeDetection:0});let o=n;return o})(),Fp=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Dw,Rw]});let o=n;return o})(),wP=0,Hoe=(()=>{let n=class n extends du{constructor(t,i,r){super(t,i,r),this.componentPrefix="notification-"}success(t,i,r){return this.create("success",t,i,r)}error(t,i,r){return this.create("error",t,i,r)}info(t,i,r){return this.create("info",t,i,r)}warning(t,i,r){return this.create("warning",t,i,r)}blank(t,i,r){return this.create("blank",t,i,r)}create(t,i,r,s){return this.createInstance({type:t,title:i,content:r},s)}template(t,i){return this.createInstance({template:t},i)}generateMessageId(){return`${this.componentPrefix}-${wP++}`}createInstance(t,i){return this.container=this.withContainer(Rw),this.container.create(ot(V({},t),{createdAt:new Date,messageId:i?.nzKey||this.generateMessageId(),options:i}))}};n.\u0275fac=function(i){return new(i||n)(nt(Dp),nt(ss),nt($n))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();var kw=(()=>{let n=class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};n.\u0275fac=function(i){return new(i||n)(w(He),w(de))},n.\u0275dir=Se({type:n});let o=n;return o})(),Vw=(()=>{let n=class n extends kw{};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275dir=Se({type:n,features:[Xe]});let o=n;return o})(),zn=new hn("NgValueAccessor"),TP={provide:zn,useExisting:pn(()=>ym),multi:!0},ym=(()=>{let n=class n extends Vw{writeValue(t){this.setProperty("checked",t)}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275dir=Se({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){i&1&&A("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[Ve([TP]),Xe]});let o=n;return o})(),EP={provide:zn,useExisting:pn(()=>Ii),multi:!0};function xP(){let o=qg()?qg().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}var Cm=new hn("CompositionEventMode"),Ii=(()=>{let n=class n extends kw{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!xP())}writeValue(t){let i=t??"";this.setProperty("value",i)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};n.\u0275fac=function(i){return new(i||n)(w(He),w(de),w(Cm,8))},n.\u0275dir=Se({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&A("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[Ve([EP]),Xe]});let o=n;return o})();function Ps(o){return o==null||(typeof o=="string"||Array.isArray(o))&&o.length===0}function Gw(o){return o!=null&&typeof o.length=="number"}var za=new hn("NgValidators"),vu=new hn("NgAsyncValidators"),zP=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Np=class{static min(n){return OP(n)}static max(n){return DP(n)}static required(n){return Hw(n)}static requiredTrue(n){return RP(n)}static email(n){return IP(n)}static minLength(n){return PP(n)}static maxLength(n){return Bw(n)}static pattern(n){return MP(n)}static nullValidator(n){return Lp(n)}static compose(n){return qw(n)}static composeAsync(n){return Yw(n)}};function OP(o){return n=>{if(Ps(n.value)||Ps(o))return null;let e=parseFloat(n.value);return!isNaN(e)&&e<o?{min:{min:o,actual:n.value}}:null}}function DP(o){return n=>{if(Ps(n.value)||Ps(o))return null;let e=parseFloat(n.value);return!isNaN(e)&&e>o?{max:{max:o,actual:n.value}}:null}}function Hw(o){return Ps(o.value)?{required:!0}:null}function RP(o){return o.value===!0?null:{required:!0}}function IP(o){return Ps(o.value)||zP.test(o.value)?null:{email:!0}}function PP(o){return n=>Ps(n.value)||!Gw(n.value)?null:n.value.length<o?{minlength:{requiredLength:o,actualLength:n.value.length}}:null}function Bw(o){return n=>Gw(n.value)&&n.value.length>o?{maxlength:{requiredLength:o,actualLength:n.value.length}}:null}function MP(o){if(!o)return Lp;let n,e;return typeof o=="string"?(e="",o.charAt(0)!=="^"&&(e+="^"),e+=o,o.charAt(o.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=o.toString(),n=o),t=>{if(Ps(t.value))return null;let i=t.value;return n.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function Lp(o){return null}function $w(o){return o!=null}function jw(o){return zS(o)?dS(o):o}function Ww(o){let n={};return o.forEach(e=>{n=e!=null?V(V({},n),e):n}),Object.keys(n).length===0?null:n}function Uw(o,n){return n.map(e=>e(o))}function FP(o){return!o.validate}function Kw(o){return o.map(n=>FP(n)?n:e=>n.validate(e))}function qw(o){if(!o)return null;let n=o.filter($w);return n.length==0?null:function(e){return Ww(Uw(e,n))}}function _m(o){return o!=null?qw(Kw(o)):null}function Yw(o){if(!o)return null;let n=o.filter($w);return n.length==0?null:function(e){let t=Uw(e,n).map(jw);return gS(t).pipe(We(Ww))}}function Sm(o){return o!=null?Yw(Kw(o)):null}function Iw(o,n){return o===null?[n]:Array.isArray(o)?[...o,n]:[o,n]}function Qw(o){return o._rawValidators}function Xw(o){return o._rawAsyncValidators}function gm(o){return o?Array.isArray(o)?o:[o]:[]}function kp(o,n){return Array.isArray(o)?o.includes(n):o===n}function Pw(o,n){let e=gm(n);return gm(o).forEach(i=>{kp(e,i)||e.push(i)}),e}function Mw(o,n){return gm(n).filter(e=>!kp(o,e))}var Vp=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=_m(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Sm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},as=class extends Vp{get formDirective(){return null}get path(){return null}},Ri=class extends Vp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Gp=class{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},AP={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},ose=ot(V({},AP),{"[class.ng-submitted]":"isSubmitted"}),Kt=(()=>{let n=class n extends Gp{constructor(t){super(t)}};n.\u0275fac=function(i){return new(i||n)(w(Ri,2))},n.\u0275dir=Se({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&k("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Xe]});let o=n;return o})(),Zw=(()=>{let n=class n extends Gp{constructor(t){super(t)}};n.\u0275fac=function(i){return new(i||n)(w(as,10))},n.\u0275dir=Se({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&k("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Xe]});let o=n;return o})();var pu="VALID",Ap="INVALID",Wl="PENDING",hu="DISABLED";function wm(o){return(jp(o)?o.validators:o)||null}function NP(o){return Array.isArray(o)?_m(o):o||null}function bm(o,n){return(jp(n)?n.asyncValidators:o)||null}function LP(o){return Array.isArray(o)?Sm(o):o||null}function jp(o){return o!=null&&!Array.isArray(o)&&typeof o=="object"}function Jw(o,n,e){let t=o.controls;if(!(n?Object.keys(t):t).length)throw new cp(1e3,"");if(!t[e])throw new cp(1001,"")}function eb(o,n,e){o._forEachChild((t,i)=>{if(e[i]===void 0)throw new cp(1002,"")})}var Ms=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===pu}get invalid(){return this.status===Ap}get pending(){return this.status==Wl}get disabled(){return this.status===hu}get enabled(){return this.status!==hu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Pw(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Pw(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Mw(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Mw(n,this._rawAsyncValidators))}hasValidator(n){return kp(this._rawValidators,n)}hasAsyncValidator(n){return kp(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Wl,n.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=hu,this.errors=null,this._forEachChild(t=>{t.disable(ot(V({},n),{onlySelf:!0}))}),this._updateValue(),n.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ot(V({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=pu,this._forEachChild(t=>{t.enable(ot(V({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(ot(V({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pu||this.status===Wl)&&this._runAsyncValidator(n.emitEvent)),n.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?hu:pu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Wl,this._hasOwnPendingAsyncValidator=!0;let e=jw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,i)=>t&&t._find(i),this)}getError(n,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new O,this.statusChanges=new O}_calculateStatus(){return this._allControlsDisabled()?hu:this.errors?Ap:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wl)?Wl:this._anyControlsHaveStatus(Ap)?Ap:pu}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){jp(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=NP(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=LP(this._rawAsyncValidators)}},Ul=class extends Ms{constructor(n,e,t){super(wm(e),bm(t,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,t={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){eb(this,!0,n),Object.keys(n).forEach(t=>{Jw(this,!0,t),this.controls[t].setValue(n[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(t=>{let i=this.controls[t];i&&i.patchValue(n[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((t,i)=>{t.reset(n?n[i]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,t)=>(n[t]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&n(t,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&n(t))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(n,e){let t=n;return this._forEachChild((i,r)=>{t=e(t,i,r)}),t}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var mm=class extends Ul{};var Kl=new hn("CallSetDisabledState",{providedIn:"root",factory:()=>Wp}),Wp="always";function tb(o,n){return[...n.path,o]}function mu(o,n,e=Wp){Tm(o,n),n.valueAccessor.writeValue(o.value),(o.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(o.disabled),VP(o,n),HP(o,n),GP(o,n),kP(o,n)}function Hp(o,n,e=!0){let t=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(t),n.valueAccessor.registerOnTouched(t)),$p(o,n),o&&(n._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function Bp(o,n){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function kP(o,n){if(n.valueAccessor.setDisabledState){let e=t=>{n.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),n._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}function Tm(o,n){let e=Qw(o);n.validator!==null?o.setValidators(Iw(e,n.validator)):typeof e=="function"&&o.setValidators([e]);let t=Xw(o);n.asyncValidator!==null?o.setAsyncValidators(Iw(t,n.asyncValidator)):typeof t=="function"&&o.setAsyncValidators([t]);let i=()=>o.updateValueAndValidity();Bp(n._rawValidators,i),Bp(n._rawAsyncValidators,i)}function $p(o,n){let e=!1;if(o!==null){if(n.validator!==null){let i=Qw(o);if(Array.isArray(i)&&i.length>0){let r=i.filter(s=>s!==n.validator);r.length!==i.length&&(e=!0,o.setValidators(r))}}if(n.asyncValidator!==null){let i=Xw(o);if(Array.isArray(i)&&i.length>0){let r=i.filter(s=>s!==n.asyncValidator);r.length!==i.length&&(e=!0,o.setAsyncValidators(r))}}}let t=()=>{};return Bp(n._rawValidators,t),Bp(n._rawAsyncValidators,t),e}function VP(o,n){n.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,o.updateOn==="change"&&nb(o,n)})}function GP(o,n){n.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,o.updateOn==="blur"&&o._pendingChange&&nb(o,n),o.updateOn!=="submit"&&o.markAsTouched()})}function nb(o,n){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function HP(o,n){let e=(t,i)=>{n.valueAccessor.writeValue(t),i&&n.viewToModelUpdate(t)};o.registerOnChange(e),n._registerOnDestroy(()=>{o._unregisterOnChange(e)})}function ib(o,n){o==null,Tm(o,n)}function BP(o,n){return $p(o,n)}function Em(o,n){if(!o.hasOwnProperty("model"))return!1;let e=o.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function $P(o){return Object.getPrototypeOf(o.constructor)===Vw}function rb(o,n){o._syncPendingControls(),n.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function xm(o,n){if(!n)return null;Array.isArray(n);let e,t,i;return n.forEach(r=>{r.constructor===Ii?e=r:$P(r)?t=r:i=r}),i||t||e||null}function jP(o,n){let e=o.indexOf(n);e>-1&&o.splice(e,1)}var WP={provide:as,useExisting:pn(()=>zm)},fu=Promise.resolve(),zm=(()=>{let n=class n extends as{constructor(t,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new O,this.form=new Ul({},_m(t),Sm(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){fu.then(()=>{let i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),mu(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){fu.then(()=>{let i=this._findContainer(t.path);i&&i.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){fu.then(()=>{let i=this._findContainer(t.path),r=new Ul({});ib(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){fu.then(()=>{let i=this._findContainer(t.path);i&&i.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){fu.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,rb(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};n.\u0275fac=function(i){return new(i||n)(w(za,10),w(vu,10),w(Kl,8))},n.\u0275dir=Se({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&A("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[le.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ve([WP]),Xe]});let o=n;return o})();function Fw(o,n){let e=o.indexOf(n);e>-1&&o.splice(e,1)}function Aw(o){return typeof o=="object"&&o!==null&&Object.keys(o).length===2&&"value"in o&&"disabled"in o}var gu=class extends Ms{constructor(n=null,e,t){super(wm(e),bm(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),jp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Aw(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Fw(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Fw(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){Aw(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var UP=o=>o instanceof gu;var KP={provide:Ri,useExisting:pn(()=>Rt)},Nw=Promise.resolve(),Rt=(()=>{let n=class n extends Ri{constructor(t,i,r,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new gu,this._registered=!1,this.name="",this.update=new O,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=xm(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Em(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){mu(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Nw.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let i=t.isDisabled.currentValue,r=i!==0&&it(i);Nw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?tb(t,this._parent):[t]}};n.\u0275fac=function(i){return new(i||n)(w(as,9),w(za,10),w(vu,10),w(zn,10),w(fe,8),w(Kl,8))},n.\u0275dir=Se({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[le.None,"disabled","isDisabled"],model:[le.None,"ngModel","model"],options:[le.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ve([KP]),Xe,oe]});let o=n;return o})(),ob=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let o=n;return o})();var qP=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();var Om=new hn("NgModelWithFormControlWarning"),YP={provide:Ri,useExisting:pn(()=>Dm)},Dm=(()=>{let n=class n extends Ri{set isDisabled(t){}constructor(t,i,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new O,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=xm(this,r)}ngOnChanges(t){if(this._isControlChanged(t)){let i=t.form.previousValue;i&&Hp(i,this,!1),mu(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Em(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Hp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}};n._ngModelWarningSentOnce=!1,n.\u0275fac=function(i){return new(i||n)(w(za,10),w(vu,10),w(zn,10),w(Om,8),w(Kl,8))},n.\u0275dir=Se({type:n,selectors:[["","formControl",""]],inputs:{form:[le.None,"formControl","form"],isDisabled:[le.None,"disabled","isDisabled"],model:[le.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ve([YP]),Xe,oe]});let o=n;return o})(),QP={provide:as,useExisting:pn(()=>XP)},XP=(()=>{let n=class n extends as{constructor(t,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new O,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&($p(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let i=this.form.get(t.path);return mu(i,t,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){Hp(t.control||null,t,!1),jP(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,rb(this.form,this.directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{let i=t.control,r=this.form.get(t.path);i!==r&&(Hp(i||null,t),UP(r)&&(mu(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let i=this.form.get(t.path);ib(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let i=this.form.get(t.path);i&&BP(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Tm(this.form,this),this._oldForm&&$p(this._oldForm,this)}_checkFormPresent(){this.form}};n.\u0275fac=function(i){return new(i||n)(w(za,10),w(vu,10),w(Kl,8))},n.\u0275dir=Se({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&A("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[le.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ve([QP]),Xe,oe]});let o=n;return o})();var ZP={provide:Ri,useExisting:pn(()=>yu)},yu=(()=>{let n=class n extends Ri{set isDisabled(t){}constructor(t,i,r,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new O,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=xm(this,s)}ngOnChanges(t){this._added||this._setUpControl(),Em(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return tb(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};n._ngModelWarningSentOnce=!1,n.\u0275fac=function(i){return new(i||n)(w(as,13),w(za,10),w(vu,10),w(zn,10),w(Om,8))},n.\u0275dir=Se({type:n,selectors:[["","formControlName",""]],inputs:{name:[le.None,"formControlName","name"],isDisabled:[le.None,"disabled","isDisabled"],model:[le.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ve([ZP]),Xe,oe]});let o=n;return o})();function JP(o){return typeof o=="number"?o:parseInt(o,10)}var sb=(()=>{let n=class n{constructor(){this._validator=Lp}ngOnChanges(t){if(this.inputName in t){let i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Lp,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,features:[oe]});let o=n;return o})();var eM={provide:za,useExisting:pn(()=>Rm),multi:!0};var Rm=(()=>{let n=class n extends sb{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=it,this.createValidator=t=>Hw}enabled(t){return t}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275dir=Se({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&ze("required",r._enabled?"":null)},inputs:{required:"required"},features:[Ve([eM]),Xe]});let o=n;return o})();var tM={provide:za,useExisting:pn(()=>nM),multi:!0},nM=(()=>{let n=class n extends sb{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>JP(t),this.createValidator=t=>Bw(t)}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275dir=Se({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ze("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ve([tM]),Xe]});let o=n;return o})();var ab=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[qP]});let o=n;return o})(),vm=class extends Ms{constructor(n,e,t){super(wm(e),bm(t,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,t={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(n,e={}){let t=this._adjustIndex(n);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,t={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){eb(this,!1,n),n.forEach((t,i)=>{Jw(this,!1,i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((t,i)=>{t.reset(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,t)=>t._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,t)=>{n(e,t)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};function Lw(o){return!!o&&(o.asyncValidators!==void 0||o.validators!==void 0||o.updateOn!==void 0)}var ase=(()=>{let n=class n{constructor(){this.useNonNullable=!1}get nonNullable(){let t=new n;return t.useNonNullable=!0,t}group(t,i=null){let r=this._reduceControls(t),s={};return Lw(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Ul(r,s)}record(t,i=null){let r=this._reduceControls(t);return new mm(r,i)}control(t,i,r){let s={};return this.useNonNullable?(Lw(i)?s=i:(s.validators=i,s.asyncValidators=r),new gu(t,ot(V({},s),{nonNullable:!0}))):new gu(t,i,r)}array(t,i,r){let s=t.map(a=>this._createControl(a));return new vm(s,i,r)}_reduceControls(t){let i={};return Object.keys(t).forEach(r=>{i[r]=this._createControl(t[r])}),i}_createControl(t){if(t instanceof gu)return t;if(t instanceof Ms)return t;if(Array.isArray(t)){let i=t[0],r=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(i,r,s)}else return this.control(t)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();var nn=(()=>{let n=class n{static withConfig(t){return{ngModule:n,providers:[{provide:Kl,useValue:t.callSetDisabledState??Wp}]}}};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[ab]});let o=n;return o})(),Cu=(()=>{let n=class n{static withConfig(t){return{ngModule:n,providers:[{provide:Om,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Kl,useValue:t.callSetDisabledState??Wp}]}}};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[ab]});let o=n;return o})();function iM(o,n){if(o&1&&(C(0,"p",6),Y(1),S()),o&2){let e=n.$implicit,t=m(2).index,i=m(2);k("current",e===i.countArray[t]),f(),Ne(" ",e," ")}}function rM(o,n){if(o&1&&(H(0),_(1,iM,2,3,"p",5),B()),o&2){let e=m(3);f(),h("ngForOf",e.countSingleArray)}}function oM(o,n){if(o&1&&(C(0,"span",3),_(1,rM,2,1,"ng-container",4),S()),o&2){let e=n.index,t=m(2);Re("transform","translateY("+-t.countArray[e]*100+"%)"),h("nzNoAnimation",t.noAnimation),f(),h("ngIf",!t.nzDot&&t.countArray[e]!==void 0)}}function sM(o,n){if(o&1&&(H(0),_(1,oM,2,4,"span",2),B()),o&2){let e=m();f(),h("ngForOf",e.maxNumberArray)}}function aM(o,n){if(o&1&&Y(0),o&2){let e=m();Ne("",e.nzOverflowCount,"+")}}function lM(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.nzText)}}function cM(o,n){if(o&1&&(H(0),R(1,"span",2),C(2,"span",3),_(3,lM,2,1,"ng-container",1),S(),B()),o&2){let e=m();f(),Ae("ant-badge-status-dot ant-badge-status-",e.nzStatus||e.presetColor,""),Re("background",!e.presetColor&&e.nzColor),h("ngStyle",e.nzStyle),f(2),h("nzStringTemplateOutlet",e.nzText)}}function uM(o,n){if(o&1&&R(0,"nz-badge-sup",5),o&2){let e=m(2);h("nzOffset",e.nzOffset)("nzSize",e.nzSize)("nzTitle",e.nzTitle)("nzStyle",e.nzStyle)("nzDot",e.nzDot)("nzOverflowCount",e.nzOverflowCount)("disableAnimation",!!(e.nzStandalone||e.nzStatus||e.nzColor||e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzCount",e.nzCount)("noAnimation",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))}}function dM(o,n){if(o&1&&(H(0),_(1,uM,1,9,"nz-badge-sup",4),B()),o&2){let e=m();f(),h("ngIf",e.showSup)}}var lb=["*"];function pM(o,n){if(o&1&&(H(0),C(1,"span",3),Y(2),S(),B()),o&2){let e=m();f(2),ye(e.nzText)}}var hM=(()=>{let n=class n{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.nzSize="default",this.maxNumberArray=[],this.countArray=[],this.count=0,this.countSingleArray=[0,1,2,3,4,5,6,7,8,9]}generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("")}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(t){let{nzOverflowCount:i,nzCount:r}=t;r&&typeof r.currentValue=="number"&&(this.count=Math.max(0,r.currentValue),this.countArray=this.count.toString().split("").map(s=>+s)),i&&this.generateMaxNumberArray()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:17,hostBindings:function(i,r){i&2&&(ze("title",r.nzTitle===null?"":r.nzTitle||r.nzCount),Ta("@.disabled",r.disableAnimation)("@zoomBadgeMotion",void 0),Ol(r.nzStyle),Re("right",r.nzOffset&&r.nzOffset[0]?-r.nzOffset[0]:null,"px")("margin-top",r.nzOffset&&r.nzOffset[1]?r.nzOffset[1]:null,"px"),k("ant-badge-count",!r.nzDot)("ant-badge-count-sm",r.nzSize==="small")("ant-badge-dot",r.nzDot)("ant-badge-multiple-words",r.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize"},exportAs:["nzBadgeSup"],standalone:!0,features:[oe,K],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["overflowTemplate",""],["class","ant-scroll-number-only",3,"nzNoAnimation","transform",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[4,"ngIf"],["class","ant-scroll-number-only-unit",3,"current",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only-unit"]],template:function(i,r){if(i&1&&_(0,sM,2,1,"ng-container",0)(1,aM,1,1,"ng-template",null,1,_e),i&2){let s=te(2);h("ngIf",r.count<=r.nzOverflowCount)("ngIfElse",s)}},dependencies:[lt,we,ft],encapsulation:2,data:{animation:[dm]},changeDetection:0});let o=n;return o})(),cb=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],fM="badge",_u=(()=>{let n=class n{constructor(t,i,r,s,a,l){this.nzConfigService=t,this.renderer=i,this.cdr=r,this.elementRef=s,this.directionality=a,this.noAnimation=l,this._nzModuleName=fM,this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new J,this.nzShowZero=!1,this.nzShowDot=!0,this.nzStandalone=!1,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null,this.nzText=null,this.nzSize="default"}ngOnInit(){this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(t){let{nzColor:i,nzShowDot:r,nzDot:s,nzCount:a,nzShowZero:l}=t;i&&(this.presetColor=this.nzColor&&cb.indexOf(this.nzColor)!==-1?this.nzColor:null),(r||s||a||l)&&(this.showSup=this.nzShowDot&&this.nzDot||typeof this.nzCount=="number"&&this.nzCount>0||typeof this.nzCount=="number"&&this.nzCount<=0&&this.nzShowZero)}prepareBadgeForRtl(){this.isRtlLayout?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-rtl")}get isRtlLayout(){return this.dir==="rtl"}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(st),w(He),w(fe),w(de),w(Me,8),w(ft,9))},n.\u0275cmp=j({type:n,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(i,r){i&2&&k("ant-badge-status",r.nzStatus)("ant-badge-not-a-wrapper",!!(r.nzStandalone||r.nzStatus||r.nzColor))},inputs:{nzShowZero:"nzShowZero",nzShowDot:"nzShowDot",nzStandalone:"nzStandalone",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset",nzSize:"nzSize"},exportAs:["nzBadge"],standalone:!0,features:[oe,K],ngContentSelectors:lb,decls:3,vars:2,consts:[[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation",4,"ngIf"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(i,r){i&1&&(Pe(),_(0,cM,4,7,"ng-container",0),Ie(1),_(2,dM,2,1,"ng-container",1)),i&2&&(h("ngIf",r.nzStatus||r.nzColor),f(2),h("nzStringTemplateOutlet",r.nzCount))},dependencies:[we,Zt,hM,Ye,Ue],encapsulation:2,data:{animation:[dm]},changeDetection:0});let o=n;return N([W()],o.prototype,"nzShowZero",void 0),N([W()],o.prototype,"nzShowDot",void 0),N([W()],o.prototype,"nzStandalone",void 0),N([W()],o.prototype,"nzDot",void 0),N([De()],o.prototype,"nzOverflowCount",void 0),N([De()],o.prototype,"nzColor",void 0),o})(),gM=(()=>{let n=class n{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(t){let{nzColor:i}=t;i&&(this.presetColor=this.nzColor&&cb.indexOf(this.nzColor)!==-1?this.nzColor:null)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],standalone:!0,features:[oe,K],ngContentSelectors:lb,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(i,r){i&1&&(Pe(),Ie(0),C(1,"div",0),_(2,pM,3,1,"ng-container",1),R(3,"div",2),S()),i&2&&(f(),cr(r.presetColor&&"ant-ribbon-color-"+r.presetColor),Re("background-color",!r.presetColor&&r.nzColor),k("ant-ribbon-placement-end",r.nzPlacement==="end")("ant-ribbon-placement-start",r.nzPlacement==="start"),f(),h("nzStringTemplateOutlet",r.nzText),f(),Re("color",!r.presetColor&&r.nzColor))},dependencies:[Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return o})(),Up=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[_u,gM]});let o=n;return o})();function vM(o,n){if(o&1&&R(0,"span",1),o&2){let e=m();h("nzType",e.iconType)}}var cn=(()=>{let n=class n{constructor(){this.formStatusChanges=new tn(1)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),_i=(()=>{let n=class n{constructor(){this.noFormStatus=new ct(!1)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),yM={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"},mr=(()=>{let n=class n{constructor(t){this.cdr=t,this.status="",this.iconType=null}ngOnChanges(t){this.updateIcon()}updateIcon(){this.iconType=this.status?yM[this.status]:null,this.cdr.markForCheck()}};n.\u0275fac=function(i){return new(i||n)(w(fe))},n.\u0275cmp=j({type:n,selectors:[["nz-form-item-feedback-icon"]],hostAttrs:[1,"ant-form-item-feedback-icon"],hostVars:8,hostBindings:function(i,r){i&2&&k("ant-form-item-feedback-icon-error",r.status==="error")("ant-form-item-feedback-icon-warning",r.status==="warning")("ant-form-item-feedback-icon-success",r.status==="success")("ant-form-item-feedback-icon-validating",r.status==="validating")},inputs:{status:"status"},exportAs:["nzFormFeedbackIcon"],features:[oe],decls:1,vars:1,consts:[["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(i,r){i&1&&_(0,vM,1,1,"span",0),i&2&&h("ngIf",r.iconType)},dependencies:[we,Fe],encapsulation:2,changeDetection:0});let o=n;return o})(),ro=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Zn,Ge]});let o=n;return o})();var db=["*"],CM=["inputElement"],_M=["nz-checkbox",""];function SM(o,n){if(o&1){let e=Q();C(0,"label",1),A("nzCheckedChange",function(i){let s=I(e).$implicit,a=m();return P(a.onCheckedChange(s,i))}),C(1,"span"),Y(2),S()()}if(o&2){let e=n.$implicit,t=m();h("nzDisabled",e.disabled||t.nzDisabled)("nzChecked",e.checked),f(2),ye(e.label)}}var Im=(()=>{let n=class n{constructor(){this.nzOnChange=new O,this.checkboxList=[]}addCheckbox(t){this.checkboxList.push(t)}removeCheckbox(t){this.checkboxList.splice(this.checkboxList.indexOf(t),1)}onChange(){let t=this.checkboxList.filter(i=>i.nzChecked).map(i=>i.nzValue);this.nzOnChange.emit(t)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],standalone:!0,features:[K],ngContentSelectors:db,decls:1,vars:0,template:function(i,r){i&1&&(Pe(),Ie(0))},encapsulation:2,changeDetection:0});let o=n;return o})(),Bi=(()=>{let n=class n{innerCheckedChange(t){this.nzDisabled||(this.nzChecked=t,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(t){this.nzChecked=t,this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(t,i,r,s,a,l,c){this.ngZone=t,this.elementRef=i,this.nzCheckboxWrapperComponent=r,this.cdr=s,this.focusMonitor=a,this.directionality=l,this.nzFormStatusService=c,this.dir="ltr",this.destroy$=new J,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new O,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(F(this.destroy$)).subscribe(t=>{t||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{Ke(this.elementRef.nativeElement,"click").pipe(F(this.destroy$)).subscribe(t=>{t.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),Ke(this.inputElement.nativeElement,"click").pipe(F(this.destroy$)).subscribe(t=>t.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w($e),w(de),w(Im,8),w(fe),w(Oi),w(Me,8),w(cn,8))},n.\u0275cmp=j({type:n,selectors:[["","nz-checkbox",""]],viewQuery:function(i,r){if(i&1&&xe(CM,7),i&2){let s;ce(s=ue())&&(r.inputElement=s.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:6,hostBindings:function(i,r){i&2&&k("ant-checkbox-wrapper-in-form-item",!!r.nzFormStatusService)("ant-checkbox-wrapper-checked",r.nzChecked)("ant-checkbox-rtl",r.dir==="rtl")},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],standalone:!0,features:[Ve([{provide:zn,useExisting:pn(()=>n),multi:!0}]),K],attrs:_M,ngContentSelectors:db,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(i,r){i&1&&(Pe(),C(0,"span",0)(1,"input",1,2),A("ngModelChange",function(a){return r.innerCheckedChange(a)}),S(),R(3,"span",3),S(),C(4,"span"),Ie(5),S()),i&2&&(k("ant-checkbox-checked",r.nzChecked&&!r.nzIndeterminate)("ant-checkbox-disabled",r.nzDisabled)("ant-checkbox-indeterminate",r.nzIndeterminate),f(),h("checked",r.nzChecked)("ngModel",r.nzChecked)("disabled",r.nzDisabled),ze("autofocus",r.nzAutoFocus?"autofocus":null)("id",r.nzId))},dependencies:[nn,ym,Kt,Rt],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzAutoFocus",void 0),N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzIndeterminate",void 0),N([W()],o.prototype,"nzChecked",void 0),o})(),Pm=(()=>{let n=class n{trackByOption(t,i){return i.value}onCheckedChange(t,i){t.checked=i,this.onChange(this.options)}constructor(t,i,r,s){this.elementRef=t,this.focusMonitor=i,this.cdr=r,this.directionality=s,this.onChange=()=>{},this.onTouched=()=>{},this.options=[],this.nzDisabled=!1,this.dir="ltr",this.destroy$=new J,this.isNzDisableFirstChange=!0}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(F(this.destroy$)).subscribe(t=>{t||Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}writeValue(t){this.options=t,this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}};n.\u0275fac=function(i){return new(i||n)(w(de),w(Oi),w(fe),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-checkbox-group-rtl",r.dir==="rtl")},inputs:{nzDisabled:"nzDisabled"},exportAs:["nzCheckboxGroup"],standalone:!0,features:[Ve([{provide:zn,useExisting:pn(()=>n),multi:!0}]),K],decls:1,vars:2,consts:[["nz-checkbox","","class","ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange",4,"ngFor","ngForOf","ngForTrackBy"],["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange"]],template:function(i,r){i&1&&_(0,SM,3,3,"label",0),i&2&&h("ngForOf",r.options)("ngForTrackBy",r.trackByOption)},dependencies:[lt,Bi],encapsulation:2});let o=n;return N([W()],o.prototype,"nzDisabled",void 0),o})(),$i=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Bi,Pm]});let o=n;return o})();var bt={top:new ln({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new ln({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new ln({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new ln({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new ln({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new ln({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new ln({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new ln({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new ln({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new ln({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new ln({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new ln({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new ln({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new ln({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},Mm=[bt.top,bt.right,bt.bottom,bt.left],Wse=[bt.bottomLeft,bt.bottomRight,bt.topLeft,bt.topRight,bt.topCenter,bt.bottomCenter],Use=[new ln({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new ln({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],Kse=[bt.bottomLeft,new ln({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function Da(o){for(let n in bt)if(o.connectionPair.originX===bt[n].originX&&o.connectionPair.originY===bt[n].originY&&o.connectionPair.overlayX===bt[n].overlayX&&o.connectionPair.overlayY===bt[n].overlayY)return n}var ql={bottomLeft:new ln({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"},void 0,2),topLeft:new ln({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},void 0,-2),bottomRight:new ln({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"},void 0,2),topRight:new ln({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},void 0,-2)},Fm=[ql.bottomLeft,ql.topLeft,ql.bottomRight,ql.topRight],Nr=(()=>{let n=class n{constructor(t,i){this.cdkConnectedOverlay=t,this.nzDestroyService=i,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe(F(this.nzDestroyService)).subscribe(r=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(r)})}updateArrowPosition(t){let i=this.getOriginRect(),r=Da(t),s=0,a=0;r==="topLeft"||r==="bottomLeft"?s=i.width/2-14:r==="topRight"||r==="bottomRight"?s=-(i.width/2-14):r==="leftTop"||r==="rightTop"?a=i.height/2-10:(r==="leftBottom"||r==="rightBottom")&&(a=-(i.height/2-10)),(this.cdkConnectedOverlay.offsetX!==s||this.cdkConnectedOverlay.offsetY!==a)&&(this.cdkConnectedOverlay.offsetY=a,this.cdkConnectedOverlay.offsetX=s,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof dr?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){let t=this.getFlexibleConnectedPositionStrategyOrigin();if(t instanceof de)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let i=t.width||0,r=t.height||0;return{top:t.y,bottom:t.y+r,left:t.x,right:t.x+i,height:r,width:i}}};n.\u0275fac=function(i){return new(i||n)(w(oi),w(Pt))},n.\u0275dir=Se({type:n,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[Ve([Pt])]});let o=n;return N([W()],o.prototype,"nzArrowPointAtCenter",void 0),o})(),vr=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();var wM=["overlay"];function bM(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.nzTitle)}}function TM(o,n){if(o&1&&(C(0,"div",2)(1,"div",3)(2,"div",4),R(3,"span",5),S(),C(4,"div",6),_(5,bM,2,1,"ng-container",7),S()()()),o&2){let e=m();k("ant-tooltip-rtl",e.dir==="rtl"),h("ngClass",e._classMap)("ngStyle",e.nzOverlayStyle)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),f(3),h("ngStyle",e._contentStyleMap),f(),h("ngStyle",e._contentStyleMap),f(),h("nzStringTemplateOutlet",e.nzTitle)("nzStringTemplateOutletContext",e.nzTitleContext)}}var Su=(()=>{let n=class n{get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return typeof this.trigger<"u"?this.trigger:"hover"}get _placement(){let t=this.placement;return Array.isArray(t)&&t.length>0?t:typeof t=="string"&&t?[t]:["top"]}get _visible(){return(typeof this.visible<"u"?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}constructor(t,i,r,s,a){this.elementRef=t,this.hostView=i,this.renderer=r,this.noAnimation=s,this.nzConfigService=a,this.visibleChange=new O,this.internalVisible=!1,this.destroy$=new J,this.triggerDisposables=[]}ngOnChanges(t){let{trigger:i}=t;i&&!i.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(t)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){this.component?.show()}hide(){this.component?.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){let t=this.componentRef;this.component=t.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),t.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();let i=this.component.nzVisibleChange.pipe(Bt());i.pipe(F(this.destroy$)).subscribe(r=>{this.internalVisible=r,this.visibleChange.emit(r)}),i.pipe(Qe(r=>r),Os(0,ap),Qe(()=>!!this.component?.overlay?.overlayRef),F(this.destroy$)).subscribe(()=>{this.component?.updatePosition()})}registerTriggers(){let t=this.elementRef.nativeElement,i=this.trigger;if(this.removeTriggerListeners(),i==="hover"){let r;this.triggerDisposables.push(this.renderer.listen(t,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(t,"mouseleave",()=>{this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),this.component?.overlay.overlayRef&&!r&&(r=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(r,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(r,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else i==="focus"?(this.triggerDisposables.push(this.renderer.listen(t,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(t,"focusout",()=>this.hide()))):i==="click"&&this.triggerDisposables.push(this.renderer.listen(t,"click",r=>{r.preventDefault(),this.show()}))}updatePropertiesByChanges(t){this.updatePropertiesByKeys(Object.keys(t))}updatePropertiesByKeys(t){let i=V({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter],cdkConnectedOverlayPush:["cdkConnectedOverlayPush",()=>this.cdkConnectedOverlayPush]},this.getProxyPropertyMap());(t||Object.keys(i).filter(r=>!r.startsWith("directive"))).forEach(r=>{if(i[r]){let[s,a]=i[r];this.updateComponentValue(s,a())}}),this.component?.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(t,i){typeof i<"u"&&(this.component[t]=i)}delayEnterLeave(t,i,r=-1){this.delayTimer?this.clearTogglingTimer():r>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,i?this.show():this.hide()},r*1e3):i&&t?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(t=>t()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}};n.\u0275fac=function(i){return new(i||n)(w(de),w(Tn),w(He),w(ft),w(st))},n.\u0275dir=Se({type:n,features:[oe]});let o=n;return o})(),EM=(()=>{let n=class n{set nzVisible(t){let i=os(t);this._visible!==i&&(this._visible=i,this.nzVisibleChange.next(i))}get nzVisible(){return this._visible}set nzTrigger(t){this._trigger=t}get nzTrigger(){return this._trigger}set nzPlacement(t){let i=t.map(r=>bt[r]);this._positions=[...i,...Mm]}constructor(t,i,r){this.cdr=t,this.directionality=i,this.noAnimation=r,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.cdkConnectedOverlayPush=!0,this.nzVisibleChange=new J,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...Mm],this.destroy$=new J}ngOnInit(){this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.getDirection()==="rtl"&&this.overlay.overlayRef.setDirection("ltr"))}hide(){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(t){this.preferredPlacement=Da(t),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(t){this.origin=t,this.cdr.markForCheck()}onClickOutside(t){!this.origin.nativeElement.contains(t.target)&&this.nzTrigger!==null&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(Me,8),w(ft))},n.\u0275dir=Se({type:n,viewQuery:function(i,r){if(i&1&&xe(wM,5),i&2){let s;ce(s=ue())&&(r.overlay=s.first)}}});let o=n;return o})();function qp(o){return o instanceof En?!1:o===""||!ht(o)}var Si=(()=>{let n=class n extends Su{constructor(t,i,r,s){super(t,i,r,s),this.titleContext=null,this.trigger="hover",this.placement="top",this.cdkConnectedOverlayPush=!0,this.visibleChange=new O,this.componentRef=this.hostView.createComponent(Ql)}getProxyPropertyMap(){return ot(V({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],titleContext:["nzTitleContext",()=>this.titleContext]})}};n.\u0275fac=function(i){return new(i||n)(w(de),w(Tn),w(He),w(ft,9))},n.\u0275dir=Se({type:n,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-tooltip-open",r.visible)},inputs:{title:[le.None,"nzTooltipTitle","title"],titleContext:[le.None,"nzTooltipTitleContext","titleContext"],directiveTitle:[le.None,"nz-tooltip","directiveTitle"],trigger:[le.None,"nzTooltipTrigger","trigger"],placement:[le.None,"nzTooltipPlacement","placement"],origin:[le.None,"nzTooltipOrigin","origin"],visible:[le.None,"nzTooltipVisible","visible"],mouseEnterDelay:[le.None,"nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[le.None,"nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[le.None,"nzTooltipOverlayClassName","overlayClassName"],overlayStyle:[le.None,"nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:[le.None,"nzTooltipArrowPointAtCenter","arrowPointAtCenter"],cdkConnectedOverlayPush:"cdkConnectedOverlayPush",nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],standalone:!0,features:[Xe]});let o=n;return N([W()],o.prototype,"arrowPointAtCenter",void 0),N([W()],o.prototype,"cdkConnectedOverlayPush",void 0),o})(),Ql=(()=>{let n=class n extends EM{constructor(t,i,r){super(t,i,r),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return qp(this.nzTitle)}updateStyles(){let t=this.nzColor&&fp(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:t},this._contentStyleMap={backgroundColor:this.nzColor&&!t?this.nzColor:null,"--color":this.nzColor}}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(Me,8),w(ft,9))},n.\u0275cmp=j({type:n,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],standalone:!0,features:[Xe,K],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(i,r){i&1&&(_(0,TM,6,11,"ng-template",0,1,_e),A("overlayOutsideClick",function(a){return r.onClickOutside(a)})("detach",function(){return r.hide()})("positionChange",function(a){return r.onPositionChange(a)})),i&2&&h("cdkConnectedOverlayOrigin",r.origin)("cdkConnectedOverlayOpen",r._visible)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayPush",r.cdkConnectedOverlayPush)("nzArrowPointAtCenter",r.nzArrowPointAtCenter)},dependencies:[Fr,oi,St,Zt,ft,Ye,Ue,vr,Nr],encapsulation:2,data:{animation:[Is]},changeDetection:0});let o=n;return o})(),ji=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Ql]});let o=n;return o})();var pb=new hn("WINDOW",{factory:()=>{let{defaultView:o}=ae(gi);if(!o)throw new Error("Window is not available");return o}}),_ae=new hn("PAGE_VISIBILITY`",{factory:()=>{let o=ae(gi);return Ke(o,"visibilitychange").pipe(Ot(0),We(()=>!o.hidden),Bt(),vS())}});var zM=["imgRef"],OM=["imagePreviewWrapper"];function DM(o,n){if(o&1){let e=Q();C(0,"li",10),A("click",function(){let r=I(e).$implicit;return P(r.onClick())}),R(1,"span",11),S()}if(o&2){let e=n.$implicit,t=m();k("ant-image-preview-operations-operation-disabled",t.zoomOutDisabled&&e.type==="zoomOut"),f(),h("nzType",e.icon)}}function RM(o,n){if(o&1&&R(0,"img",13,14),o&2){let e=m().$implicit,t=m();Re("width",e.width)("height",e.height)("transform",t.previewImageTransform),ze("src",t.sanitizerResourceUrl(e.src),Do)("srcset",e.srcset)("alt",e.alt)}}function IM(o,n){if(o&1&&(H(0),_(1,RM,2,9,"img",12),B()),o&2){let e=n.index,t=m();f(),h("ngIf",t.index===e)}}function PM(o,n){if(o&1){let e=Q();H(0),C(1,"div",15),A("click",function(i){I(e);let r=m();return P(r.onSwitchLeft(i))}),R(2,"span",16),S(),C(3,"div",17),A("click",function(i){I(e);let r=m();return P(r.onSwitchRight(i))}),R(4,"span",18),S(),B()}if(o&2){let e=m();f(),k("ant-image-preview-switch-left-disabled",e.index<=0),f(2),k("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}var Yp={enter:"ant-fade-enter",enterActive:"ant-fade-enter-active",leave:"ant-fade-leave",leaveActive:"ant-fade-leave-active"},MM="ant-image-preview-mask",fb="image";function FM(o){let n={};return o.width<=o.clientWidth&&o.height<=o.clientHeight&&(n={x:0,y:0}),(o.width>o.clientWidth||o.height>o.clientHeight)&&(n={x:hb(o.left,o.width,o.clientWidth),y:hb(o.top,o.height,o.clientHeight)}),n}function AM(o){let n=o.getBoundingClientRect(),e=document.documentElement;return{left:n.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}function NM(){let o=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:o,height:n}}function hb(o,n,e){let t=o+n,i=(n-e)/2,r=null;return n>e?(o>0&&(r=i),o<0&&t<e&&(r=-i)):(o<0||t>e)&&(r=o<0?i:-i),r}var wu=class{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}},Qp={x:0,y:0},LM=.5,kM=1,VM=0,gb=(()=>{let n=class n{get animationDisabled(){return this.config.nzNoAnimation??!1}get maskClosable(){let t=this.nzConfigService.getConfigForComponent(fb)||{};return this.config.nzMaskClosable??t.nzMaskClosable??!0}constructor(t,i,r,s,a,l,c,u){this.ngZone=t,this.host=i,this.cdr=r,this.nzConfigService=s,this.config=a,this.overlayRef=l,this.destroy$=c,this.sanitizer=u,this._defaultNzZoom=kM,this._defaultNzScaleStep=LM,this._defaultNzRotate=VM,this.images=[],this.index=0,this.isDragging=!1,this.visible=!0,this.animationState="enter",this.animationStateChanged=new O,this.scaleStepMap=new Map,this.previewImageTransform="",this.previewImageWrapperTransform="",this.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"}],this.zoomOutDisabled=!1,this.position=V({},Qp),this.containerClick=new O,this.closeClick=new O,this.zoom=this.config.nzZoom??this._defaultNzZoom,this.scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep,this.rotate=this.config.nzRotate??this._defaultNzRotate,this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{Ke(this.host.nativeElement,"click").pipe(F(this.destroy$)).subscribe(t=>{t.target===t.currentTarget&&this.maskClosable&&this.containerClick.observers.length&&this.ngZone.run(()=>this.containerClick.emit())}),Ke(this.imagePreviewWrapper.nativeElement,"mousedown").pipe(F(this.destroy$)).subscribe(()=>{this.isDragging=!0})})}setImages(t,i){i&&(this.scaleStepMap=i),this.images=t,this.cdr.markForCheck()}switchTo(t){this.index=t,this.cdr.markForCheck()}next(){this.index<this.images.length-1&&(this.reset(),this.index++,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.cdr.markForCheck())}prev(){this.index>0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.cdr.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.closeClick.emit()}onZoomIn(){let t=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom+=t,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position=V({},Qp)}onZoomOut(){if(this.zoom>1){let t=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom-=t,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position=V({},Qp)}}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(t){t.preventDefault(),t.stopPropagation(),this.prev()}onSwitchRight(t){t.preventDefault(),t.stopPropagation(),this.next()}onAnimationStart(t){t.toState==="enter"?this.setEnterAnimationClass():t.toState==="leave"&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(t)}onAnimationDone(t){t.toState==="enter"?this.setEnterAnimationClass():t.toState==="leave"&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(t)}startLeaveAnimation(){this.animationState="leave",this.cdr.markForCheck()}onDragReleased(){this.isDragging=!1;let t=this.imageRef.nativeElement.offsetWidth*this.zoom,i=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:r,top:s}=AM(this.imageRef.nativeElement),{width:a,height:l}=NM(),c=this.rotate%180!==0,d=FM({width:c?i:t,height:c?t:i,left:r,top:s,clientWidth:a,clientHeight:l});(ht(d.x)||ht(d.y))&&(this.position=V(V({},this.position),d))}sanitizerResourceUrl(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom}, ${this.zoom}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}setEnterAnimationClass(){if(this.animationDisabled)return;let t=this.overlayRef.backdropElement;t&&(t.classList.add(Yp.enter),t.classList.add(Yp.enterActive))}setLeaveAnimationClass(){if(this.animationDisabled)return;let t=this.overlayRef.backdropElement;t&&(t.classList.add(Yp.leave),t.classList.add(Yp.leaveActive))}reset(){this.zoom=this.config.nzZoom??this._defaultNzZoom,this.scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep,this.rotate=this.config.nzRotate??this._defaultNzRotate,this.position=V({},Qp)}};n.\u0275fac=function(i){return new(i||n)(w($e),w(de),w(fe),w(st),w(wu),w(_p),w(Pt),w(Ro))},n.\u0275cmp=j({type:n,selectors:[["nz-image-preview"]],viewQuery:function(i,r){if(i&1&&(xe(zM,5),xe(OM,7)),i&2){let s;ce(s=ue())&&(r.imageRef=s.first),ce(s=ue())&&(r.imagePreviewWrapper=s.first)}},hostAttrs:["tabindex","-1","role","document",1,"ant-image-preview-wrap"],hostVars:6,hostBindings:function(i,r){i&1&&OS("@fadeMotion.start",function(a){return r.onAnimationStart(a)})("@fadeMotion.done",function(a){return r.onAnimationDone(a)}),i&2&&(Ta("@.disabled",r.config.nzNoAnimation)("@fadeMotion",r.animationState),Re("z-index",r.config.nzZIndex),k("ant-image-preview-moving",r.isDragging))},exportAs:["nzImagePreview"],standalone:!0,features:[Ve([Pt]),K],decls:11,vars:6,consts:[[1,"ant-image-preview"],["tabindex","0","aria-hidden","true",2,"width","0","height","0","overflow","hidden","outline","none"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],[1,"ant-image-preview-operations"],["class","ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled","click",4,"ngFor","ngForOf"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragFreeDragPosition","cdkDragReleased"],["imagePreviewWrapper",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ant-image-preview-operations-operation",3,"click"],["nz-icon","","nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType"],["cdkDragHandle","","class","ant-image-preview-img",3,"width","height","transform",4,"ngIf"],["cdkDragHandle","",1,"ant-image-preview-img"],["imgRef",""],[1,"ant-image-preview-switch-left",3,"click"],["nz-icon","","nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nz-icon","","nzType","right","nzTheme","outline"]],template:function(i,r){i&1&&(C(0,"div",0),R(1,"div",1),C(2,"div",2)(3,"div",3)(4,"ul",4),_(5,DM,2,3,"li",5),S(),C(6,"div",6,7),A("cdkDragReleased",function(){return r.onDragReleased()}),_(8,IM,2,1,"ng-container",8),S(),_(9,PM,5,4,"ng-container",9),S()(),R(10,"div",1),S()),i&2&&(f(5),h("ngForOf",r.operations),f(),Re("transform",r.previewImageWrapperTransform),h("cdkDragFreeDragPosition",r.position),f(2),h("ngForOf",r.images),f(),h("ngIf",r.images.length>1))},dependencies:[lt,Ge,Fe,iw,rw,we],encapsulation:2,data:{animation:[ww]},changeDetection:0});let o=n;return o})(),Nm=class{constructor(n,e,t){this.previewInstance=n,this.config=e,this.overlayRef=t,this.destroy$=new J,t.keydownEvents().pipe(Qe(i=>this.config.nzKeyboard&&(i.keyCode===27||i.keyCode===37||i.keyCode===39)&&!Nl(i))).subscribe(i=>{i.preventDefault(),i.keyCode===27&&this.close(),i.keyCode===37&&this.prev(),i.keyCode===39&&this.next()}),t.detachments().subscribe(()=>{this.overlayRef.dispose()}),n.containerClick.pipe(Zr(1),F(this.destroy$)).subscribe(()=>{this.close()}),n.closeClick.pipe(Zr(1),F(this.destroy$)).subscribe(()=>{this.close()}),n.animationStateChanged.pipe(Qe(i=>i.phaseName==="done"&&i.toState==="leave"),Zr(1)).subscribe(()=>{this.dispose()})}switchTo(n){this.previewInstance.switchTo(n)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.previewInstance.startLeaveAnimation()}dispose(){this.destroy$.next(),this.overlayRef.dispose()}},Lm=(()=>{let n=class n{constructor(t,i,r,s){this.overlay=t,this.injector=i,this.nzConfigService=r,this.directionality=s}preview(t,i,r){return this.display(t,i,r)}display(t,i,r){let s=V(V({},new wu),i??{}),a=this.createOverlay(s),l=this.attachPreviewComponent(a,s);l.setImages(t,r);let c=new Nm(l,s,a);return l.previewRef=c,c}attachPreviewComponent(t,i){let r=$n.create({parent:this.injector,providers:[{provide:_p,useValue:t},{provide:wu,useValue:i}]}),s=new kl(gb,null,r);return t.attach(s).instance}createOverlay(t){let i=this.nzConfigService.getConfigForComponent(fb)||{},r=new aw({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:t.nzCloseOnNavigation??i.nzCloseOnNavigation??!0,backdropClass:MM,direction:t.nzDirection||i.nzDirection||this.directionality.value});return this.overlay.create(r)}};n.\u0275fac=function(i){return new(i||n)(nt(ss),nt($n),nt(st),nt(Me,8))},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})();var mb=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({providers:[Lm],imports:[gb]});let o=n;return o})();var vb=["*"],GM=["inputElement"],HM=["nz-radio",""],Vm=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["","nz-radio-button",""]],standalone:!0});let o=n;return o})(),km=(()=>{let n=class n{constructor(){this.selected$=new tn(1),this.touched$=new J,this.disabled$=new tn(1),this.name$=new tn(1)}touch(){this.touched$.next()}select(t){this.selected$.next(t)}setDisabled(t){this.disabled$.next(t)}setName(t){this.name$.next(t)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),yb=(()=>{let n=class n{constructor(t,i,r){this.cdr=t,this.nzRadioService=i,this.directionality=r,this.value=null,this.destroy$=new J,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){this.nzRadioService.selected$.pipe(F(this.destroy$)).subscribe(t=>{this.value!==t&&(this.value=t,this.onChange(this.value))}),this.nzRadioService.touched$.pipe(F(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(t){let{nzDisabled:i,nzName:r}=t;i&&this.nzRadioService.setDisabled(this.nzDisabled),r&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(t){this.value=t,this.nzRadioService.select(t),this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(km),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(i,r){i&2&&k("ant-radio-group-large",r.nzSize==="large")("ant-radio-group-small",r.nzSize==="small")("ant-radio-group-solid",r.nzButtonStyle==="solid")("ant-radio-group-rtl",r.dir==="rtl")},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],standalone:!0,features:[Ve([km,{provide:zn,useExisting:pn(()=>n),multi:!0}]),oe,K],ngContentSelectors:vb,decls:1,vars:0,template:function(i,r){i&1&&(Pe(),Ie(0))},encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzDisabled",void 0),o})(),ls=(()=>{let n=class n{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(t,i,r,s,a,l,c,u){this.ngZone=t,this.elementRef=i,this.cdr=r,this.focusMonitor=s,this.directionality=a,this.nzRadioService=l,this.nzRadioButtonDirective=c,this.nzFormStatusService=u,this.isNgModel=!1,this.destroy$=new J,this.isNzDisableFirstChange=!0,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(t){this.isChecked=t,this.cdr.markForCheck()}registerOnChange(t){this.isNgModel=!0,this.onChange=t}registerOnTouched(t){this.onTouched=t}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe(F(this.destroy$)).subscribe(t=>{this.name=t,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe(F(this.destroy$)).subscribe(t=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe(F(this.destroy$)).subscribe(t=>{let i=this.isChecked;this.isChecked=this.nzValue===t,this.isNgModel&&i!==this.isChecked&&this.isChecked===!1&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe(F(this.destroy$)).subscribe(t=>{t||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{Ke(this.elementRef.nativeElement,"click").pipe(F(this.destroy$)).subscribe(t=>{t.stopPropagation(),t.preventDefault(),!(this.nzDisabled||this.isChecked)&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}};n.\u0275fac=function(i){return new(i||n)(w($e),w(de),w(fe),w(Oi),w(Me,8),w(km,8),w(Vm,8),w(cn,8))},n.\u0275cmp=j({type:n,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(i,r){if(i&1&&xe(GM,7),i&2){let s;ce(s=ue())&&(r.inputElement=s.first)}},hostVars:18,hostBindings:function(i,r){i&2&&k("ant-radio-wrapper-in-form-item",!!r.nzFormStatusService)("ant-radio-wrapper",!r.isRadioButton)("ant-radio-button-wrapper",r.isRadioButton)("ant-radio-wrapper-checked",r.isChecked&&!r.isRadioButton)("ant-radio-button-wrapper-checked",r.isChecked&&r.isRadioButton)("ant-radio-wrapper-disabled",r.nzDisabled&&!r.isRadioButton)("ant-radio-button-wrapper-disabled",r.nzDisabled&&r.isRadioButton)("ant-radio-wrapper-rtl",!r.isRadioButton&&r.dir==="rtl")("ant-radio-button-wrapper-rtl",r.isRadioButton&&r.dir==="rtl")},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],standalone:!0,features:[Ve([{provide:zn,useExisting:pn(()=>n),multi:!0}]),K],attrs:HM,ngContentSelectors:vb,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(i,r){i&1&&(Pe(),C(0,"span"),R(1,"input",0,1)(3,"span"),S(),C(4,"span"),Ie(5),S()),i&2&&(k("ant-radio",!r.isRadioButton)("ant-radio-checked",r.isChecked&&!r.isRadioButton)("ant-radio-disabled",r.nzDisabled&&!r.isRadioButton)("ant-radio-button",r.isRadioButton)("ant-radio-button-checked",r.isChecked&&r.isRadioButton)("ant-radio-button-disabled",r.nzDisabled&&r.isRadioButton),f(),k("ant-radio-input",!r.isRadioButton)("ant-radio-button-input",r.isRadioButton),h("disabled",r.nzDisabled)("checked",r.isChecked),ze("autofocus",r.nzAutoFocus?"autofocus":null)("name",r.name),f(2),k("ant-radio-inner",!r.isRadioButton)("ant-radio-button-inner",r.isRadioButton))},encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzAutoFocus",void 0),o})(),Jl=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();function BM(o,n){if(o&1){let e=Q();C(0,"span",1),A("click",function(i){I(e);let r=m();return P(r.closeTag(i))}),S()}}var $M=["*"],bu=(()=>{let n=class n{constructor(t,i,r,s){this.cdr=t,this.renderer=i,this.elementRef=r,this.directionality=s,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new O,this.nzCheckedChange=new O,this.dir="ltr",this.destroy$=new J}updateCheckedStatus(){this.nzMode==="checkable"&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(t){this.nzOnClose.emit(t),t.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){let t=this.elementRef.nativeElement,i=new RegExp(`(ant-tag-(?:${[...WS,...jS].join("|")}))`,"g"),r=t.classList.toString(),s=[],a=i.exec(r);for(;a!==null;)s.push(a[1]),a=i.exec(r);t.classList.remove(...s)}setPresetColor(){let t=this.elementRef.nativeElement;this.clearPresetColor(),this.nzColor?this.isPresetColor=fp(this.nzColor)||US(this.nzColor):this.isPresetColor=!1,this.isPresetColor&&t.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(t){let{nzColor:i}=t;i&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(He),w(de),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(i,r){i&1&&A("click",function(){return r.updateCheckedStatus()}),i&2&&(Re("background-color",r.isPresetColor?"":r.nzColor),k("ant-tag-has-color",r.nzColor&&!r.isPresetColor)("ant-tag-checkable",r.nzMode==="checkable")("ant-tag-checkable-checked",r.nzChecked)("ant-tag-rtl",r.dir==="rtl"))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],standalone:!0,features:[oe,K],ngContentSelectors:$M,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(i,r){i&1&&(Pe(),Ie(0),_(1,BM,1,0,"span",0)),i&2&&(f(),h("ngIf",r.nzMode==="closeable"))},dependencies:[Ge,Fe,we],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzChecked",void 0),o})(),Xp=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[bu]});let o=n;return o})();function _b(o,n){if(!o)return"";let e=V({},typeof n=="string"?{mask:n}:n),t=V({0:{pattern:/\d/,default:"0"},9:{pattern:/\d/},"#":{pattern:/[a-zA-Z0-9]/},U:{pattern:/[a-zA-Z]/,transform:r=>r.toLocaleUpperCase()},L:{pattern:/[a-zA-Z]/,transform:r=>r.toLocaleLowerCase()},"*":{pattern:/.*/,transform:r=>"*"}},e.tokens),i=o.split("");return e.mask.split("").reduce((r,s)=>{let a=t[s];if(!a)return r.push(s),r;let l=i.shift()??"";return a.pattern.test(l)?(typeof a.transform=="function"?r.push(a.transform(l)):r.push(l),r):(a.default&&r.push(a.default),r)},[]).join("")}var Ia={num:"(([-+]?\\d+\\.\\d+)|([-+]?\\d+)|([-+]?\\.\\d+))(?:[eE]([-+]?\\d+))?",idCard:"(^\\d{15}$)|(^\\d{17}(?:[0-9]|X)$)",mobile:"^(0|\\+?86|17951)?1[0-9]{10}$",url:"(((^https?:(?://)?)(?:[-;:&=\\+\\$,\\w]+@)?[A-Za-z0-9.-]+(?::\\d+)?|(?:www.|[-;:&=\\+\\$,\\w]+@)[A-Za-z0-9.-]+)((?:/[\\+~%\\/.\\w-_]*)?\\??(?:[-\\+=&;%@.\\w_]*)#?(?:[\\w]*))?)",ip:"(?:^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$)|(?:^(?:(?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)|(?:[a-fA-F\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-fA-F\\d]{1,4}|:)|(?:[a-fA-F\\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,2}|:)|(?:[a-fA-F\\d]{1,4}:){4}(?:(?::[a-fA-F\\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,3}|:)|(?:[a-fA-F\\d]{1,4}:){3}(?:(?::[a-fA-F\\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,4}|:)|(?:[a-fA-F\\d]{1,4}:){2}(?:(?::[a-fA-F\\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,5}|:)|(?:[a-fA-F\\d]{1,4}:){1}(?:(?::[a-fA-F\\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)",color:"(?:#|0x)(?:[a-f0-9]{3}|[a-f0-9]{6})\\b|(?:rgb|hsl)a?\\([^\\)]*\\)",chinese:"[\u4E00-\u9FA5]+"};function Pa(o,n){return new RegExp(`^${o}$`,n)}var oo={num:Pa(Ia.num),idCard:Pa(Ia.idCard,"i"),mobile:Pa(Ia.mobile),url:Pa(Ia.url),ip:Pa(Ia.ip),color:Pa(Ia.color),chinese:Pa(Ia.chinese)};function Sb(o){return oo.num.test(o.toString())}function WM(o){return Sb(o)&&parseInt(o.toString(),10).toString()===o.toString()}function xle(o){return Sb(o)&&!WM(o)}function zle(o){return oo.idCard.test(o)}function Ole(o){return oo.mobile.test(o)}function Dle(o){return oo.url.test(o)}function Rle(o){return oo.ip.test(o)}function Ile(o){return oo.color.test(o)}function Ple(o){return oo.chinese.test(o)}var UM=[{unit:"Q",value:Math.pow(10,15)},{unit:"T",value:Math.pow(10,12)},{unit:"B",value:Math.pow(10,9)},{unit:"M",value:Math.pow(10,6)},{unit:"K",value:1e3}],Zp=(()=>{let n=class n{constructor(t){this.locale=ae(RS),this.defCurrencyCode=ae(IS,{optional:!0})??"USD",this.currencyPipe=new FS(this.locale,this.defCurrencyCode),this.c=t.merge("utilCurrency",{startingUnit:"yuan",megaUnit:{Q:"\u4EAC",T:"\u5146",B:"\u4EBF",M:"\u4E07",K:"\u5343"},precision:2,ingoreZeroPrecision:!0})}format(t,i){i=V({startingUnit:this.c.startingUnit,precision:this.c.precision,ingoreZeroPrecision:this.c.ingoreZeroPrecision,ngCurrency:this.c.ngCurrency},i);let r=Number(t);if(t==null||isNaN(r))return"";if(i.startingUnit==="cent"&&(r=r/100),i.ngCurrency!=null){let a=i.ngCurrency;return this.currencyPipe.transform(r,a.currencyCode,a.display,a.digitsInfo,a.locale||this.locale)}let s=MS(r,this.locale,`.${i.ingoreZeroPrecision?1:i.precision}-${i.precision}`);return i.ingoreZeroPrecision?s.replace(/(?:\.[0]+)$/g,""):s}mega(t,i){i=V({precision:this.c.precision,unitI18n:this.c.megaUnit,startingUnit:this.c.startingUnit},i);let r=Number(t),s={raw:t,value:"",unit:"",unitI18n:""};if(isNaN(r)||r===0)return s.value=t.toString(),s;i.startingUnit==="cent"&&(r=r/100);let a=Math.abs(+r),l=Math.pow(10,i.precision),c=r<0;for(let u of UM){let d=a/u.value;if(d=Math.round(d*l)/l,d>=1){a=d,s.unit=u.unit;break}}return s.value=(c?"-":"")+a,s.unitI18n=i.unitI18n[s.unit],s}cny(t,i){if(i=V({inWords:!0,minusSymbol:"\u8D1F",startingUnit:this.c.startingUnit},i),t=Number(t),isNaN(t))return"";i.startingUnit==="cent"&&(t=t/100),t=t.toString();let r,s;[r,s]=t.split(".");let a="";r.startsWith("-")&&(a=i.minusSymbol,r=r.substring(1)),/^-?\d+$/.test(t)&&(s=null),r=(+r).toString();let l=i.inWords,c={num:l?["","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396","\u70B9"]:["","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u70B9"],radice:l?["","\u62FE","\u4F70","\u4EDF","\u4E07","\u62FE","\u4F70","\u4EDF","\u4EBF","\u62FE","\u4F70","\u4EDF","\u4E07\u4EBF","\u62FE","\u4F70","\u4EDF","\u5146","\u62FE","\u4F70","\u4EDF"]:["","\u5341","\u767E","\u5343","\u4E07","\u5341","\u767E","\u5343","\u4EBF","\u5341","\u767E","\u5343","\u4E07\u4EBF","\u5341","\u767E","\u5343","\u5146","\u5341","\u767E","\u5343"],dec:["\u89D2","\u5206","\u5398","\u6BEB"]};l&&(t=(+t).toFixed(5).toString());let u="",d=r.length;if(r==="0"||d===0)u="\u96F6";else{let y="";for(let x=0;x<d;x++){let E=+r[x],z=d-x-1,G=x>1&&E!==0&&r[x-1]==="0"?"\u96F6":"",U=E===0&&z%4!==0||r.substring(x-3,x-3+4)==="0000",se=y,ve=c.num[E];y=U?"":c.radice[z],x===0&&ve==="\u4E00"&&y==="\u5341"&&(ve=""),E>1&&ve==="\u4E8C"&&["","\u5341","\u767E"].indexOf(y)===-1&&se!=="\u5341"&&(ve="\u4E24"),u+=G+ve+y}}let p="",g=s?s.toString().length:0;if(s===null)p=l?"\u6574":"";else if(s==="0")p="\u96F6";else for(let y=0;y<g&&!(l&&y>c.dec.length-1);y++){let x=s[y],E=x==="0"?"\u96F6":"",z=c.num[+x],M=l?c.dec[y]:"";p+=E+z+M}return a+(l?u+(p==="\u96F6"?"\u5143\u6574":`\u5143${p}`):u+(p===""?"":`\u70B9${p}`))}};n.\u0275fac=function(i){return new(i||n)(nt(In))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();var wb=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();function qM(o,n){if(o&1){let e=Q();C(0,"label",3),A("ngModelChange",function(i){I(e);let r=m(2);return P(r.change(i))}),Y(1),S()}if(o&2){let e=m(2);h("nzDisabled",e.disabled)("ngModel",e.value),f(),Ne(" ",e.safeOpt.checkbox==null?null:e.safeOpt.checkbox.label," ")}}function YM(o,n){if(o&1){let e=Q();C(0,"label",4),A("ngModelChange",function(i){I(e);let r=m(2);return P(r.change(i))}),Y(1),S()}if(o&2){let e=m(2);h("nzDisabled",e.disabled)("ngModel",e.value),f(),Ne(" ",e.safeOpt.radio==null?null:e.safeOpt.radio.label," ")}}function QM(o,n){if(o&1){let e=Q();C(0,"a",5),A("click",function(i){I(e);let r=m(2);return P(r._link(i))}),S()}if(o&2){let e=m(2);h("innerHTML",e._text,Dt),ze("target",e.safeOpt.link==null?null:e.safeOpt.link.target)("title",e.value)}}function XM(o,n){if(o&1&&(C(0,"nz-tag",6),R(1,"span",7),S()),o&2){let e=m(2);h("nzColor",e.res==null||e.res.result==null?null:e.res.result.color),f(),h("innerHTML",e._text,Dt)}}function ZM(o,n){if(o&1&&R(0,"nz-badge",8),o&2){let e=m(2);Vt("nzText",e._text),h("nzStatus",e.res==null||e.res.result==null?null:e.res.result.color)}}function JM(o,n){}function eF(o,n){if(o&1&&_(0,JM,0,0,"ng-template",9),o&2){let e=m(2);h("data",e.hostData)}}function tF(o,n){if(o&1){let e=Q();C(0,"img",10),A("click",function(){let r=I(e).$implicit,s=m(3);return P(s._showImg(r))}),S()}if(o&2){let e=n.$implicit,t=m(3);k("point",t.safeOpt.img==null?null:t.safeOpt.img.big),ze("src",e,Do)("height",t.safeOpt.img==null?null:t.safeOpt.img.size)("width",t.safeOpt.img==null?null:t.safeOpt.img.size)}}function nF(o,n){if(o&1&&Cn(0,tF,1,5,"img",11,yn),o&2){let e=m(2);_n(e._text)}}function iF(o,n){if(o&1&&R(0,"span",12),o&2){let e=m(3);h("innerText",e._text),ze("title",e.value)}}function rF(o,n){if(o&1&&R(0,"span",7),o&2){let e=m(3);h("innerHTML",e._text,Dt),ze("title",e.value)}}function oF(o,n){if(o&1&&(C(0,"span",14),Y(1),S()),o&2){let e=m(3);f(),ye(e._unit)}}function sF(o,n){if(o&1&&_(0,iF,1,2,"span",12)(1,rF,1,2)(2,oF,2,1,"span",13),o&2){let e=m(2);ie(0,e.isText?0:1),f(2),ie(2,e._unit?2:-1)}}function aF(o,n){if(o&1&&_(0,qM,2,3)(1,YM,2,3)(2,QM,1,3)(3,XM,2,2)(4,ZM,1,2)(5,eF,1,1)(6,nF,2,0)(7,sF,3,2),o&2){let e=m(),t;ie(0,(t=e.safeOpt.type)==="checkbox"?0:t==="radio"?1:t==="link"?2:t==="tag"?3:t==="badge"?4:t==="widget"?5:t==="img"?6:7)}}function lF(o,n){if(o&1&&Y(0),o&2){let e=m(2);Ne(" ",e.safeOpt.default==null?null:e.safeOpt.default.text," ")}}function cF(o,n){}function uF(o,n){if(o&1&&(C(0,"span",15),_(1,cF,0,0,"ng-template",16),S()),o&2){let e=m(3),t=te(1);h("nz-tooltip",e.safeOpt.tooltip),f(),h("ngTemplateOutlet",t)}}function dF(o,n){}function pF(o,n){if(o&1&&_(0,dF,0,0,"ng-template",16),o&2){m(3);let e=te(1);h("ngTemplateOutlet",e)}}function hF(o,n){if(o&1&&_(0,uF,2,2,"span",15)(1,pF,1,1),o&2){let e=m(2);ie(0,e.safeOpt.tooltip?0:1)}}function fF(o,n){if(o&1&&_(0,lF,1,1)(1,hF,2,1),o&2){let e=m();ie(0,e.showDefault?0:1)}}function gF(o,n){o&1&&R(0,"span",2)}function mF(o,n){}function vF(o,n){if(o&1&&_(0,mF,0,0,"ng-template",16),o&2){m();let e=te(3);h("ngTemplateOutlet",e)}}var Gm=(()=>{let n=class n{constructor(t){this.nzI18n=ae(Di),this.currency=ae(Zp),this.dom=ae(Ro),this.widgets={date:{type:"fn",ref:(i,r)=>({text:uw(i,r.date.format,this.nzI18n.getDateLocale())})},mega:{type:"fn",ref:(i,r)=>{let s=this.currency.mega(i,r.mega);return{text:s.value,unit:s.unitI18n}}},currency:{type:"fn",ref:(i,r)=>({text:this.currency.format(i,r.currency)})},cny:{type:"fn",ref:(i,r)=>({text:this.currency.cny(i,r.cny)})},boolean:{type:"fn",ref:(i,r)=>({text:this.dom.bypassSecurityTrustHtml(vw(i,r.boolean))})},img:{type:"fn",ref:i=>({text:Array.isArray(i)?i:[i]})}},this.globalOptions=t.merge("cell",{date:{format:"yyyy-MM-dd HH:mm:ss"},img:{size:32},default:{text:"-"}})}registerWidget(t,i){this.widgets[t]={type:"widget",ref:i}}getWidget(t){return this.widgets[t]}genType(t,i){if(i.type!=null)return i.type;let r=typeof t;return r==="number"&&/^[0-9]{13}$/g.test(t)||t instanceof Date||i.date!=null?"date":i.widget!=null?"widget":i.mega!=null?"mega":i.currency!=null?"currency":i.cny!=null?"cny":i.img!=null?"img":i.link!=null?"link":i.html!=null?"html":i.badge!=null?"badge":i.tag!=null?"tag":i.checkbox!=null?"checkbox":i.radio!=null?"radio":i.enum!=null?"enum":r==="number"?"number":r==="boolean"||i.boolean!=null?"boolean":"string"}fixOptions(t){return GS({},this.globalOptions,t)}get(t,i){let r=this.genType(t,V({},i)),s=this.fixOptions(i);s.type=r;let a=typeof t=="object"&&typeof t?.getTypeName=="function"&&t?.getTypeName()!=null,l={result:typeof t=="object"&&!a?t:{text:t==null?"":a?t:`${t}`},options:s},c=this.widgets[r];return c?.type==="fn"&&(l.result=c.ref(t,s)),(typeof t=="function"?t(t,s):Mn(l.result)).pipe(We(u=>{l.result=u;let d;switch(r){case"badge":d=(s.badge?.data??{})[t],l.result=V({color:"default"},d);break;case"tag":d=(s.tag?.data??{})[t],l.result=d;break;case"enum":l.result={text:(s.enum??{})[t]};break;case"html":l.safeHtml=s.html?.safe;break;case"string":a&&(l.safeHtml="safeHtml");break}return(r==="badge"||r==="tag")&&d?.tooltip!=null&&(l.options.tooltip=d.tooltip),s.mask!=null&&(l.result.text=_b(l.result.text,s.mask)),l}))}};n.\u0275fac=function(i){return new(i||n)(nt(In))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})(),yF=(()=>{let n=class n{constructor(){this.srv=ae(Gm),this.viewContainerRef=ae(Tn)}ngOnInit(){let t=this.data.options.widget,i=this.srv.getWidget(t.key)?.ref;if(i==null)return;this.viewContainerRef.clear();let r=this.viewContainerRef.createComponent(i);r.instance.data=this.data}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["","cell-widget-host",""]],inputs:{data:"data"},standalone:!0});let o=n;return o})(),Hm=(()=>{let n=class n{constructor(){this.srv=ae(Gm),this.router=ae(mi),this.cdr=ae(fe),this.renderer=ae(He),this.imgSrv=ae(Lm),this.win=ae(pb),this.el=ae(de).nativeElement,this.showDefault=!1,this.valueChange=new O,this.loading=!1,this.disabled=!1}get safeOpt(){return this.res?.options??{}}get isText(){return this.res?.safeHtml==="text"}get hostData(){return{value:this.value,options:this.srv.fixOptions(this.options)}}updateValue(){this.destroy$?.unsubscribe(),this.destroy$=this.srv.get(this.value,this.options).subscribe(t=>{this.res=t,this.showDefault=this.value==this.safeOpt.default.condition,this._text=t.result?.text??"",this._unit=t.result?.unit??this.safeOpt?.unit,this.cdr.detectChanges(),this.setClass()})}setClass(){let{el:t,renderer:i}=this,{renderType:r,size:s,type:a}=this.safeOpt;Cw(t,i,{cell:!0,[`cell__${r}`]:r!=null,[`cell__${s}`]:s!=null,"cell__has-unit":this._unit,"cell__has-default":this.showDefault,cell__disabled:this.disabled}),t.setAttribute("data-type",`${a}`)}ngOnChanges(t){Object.keys(t).every(i=>["loading","disabled"].includes(i))?this.setClass():this.updateValue()}change(t){this.value=t,this.valueChange.emit(t)}_link(t){if(t.preventDefault(),t.stopPropagation(),this.disabled)return;let i=this.safeOpt.link,r=i?.url;r!=null&&(/https?:\/\//g.test(r)?this.win.open(r,i?.target):this.router.navigateByUrl(r))}_showImg(t){let i=this.safeOpt.img;if(i==null||i.big==null)return;let r=-1,s=this._text.map((a,l)=>(r===-1&&a===t&&(r=l),typeof i.big=="function"?i.big(a):a));this.imgSrv.preview(s.map(a=>({src:a})),i.previewOptions).switchTo(r)}ngOnDestroy(){this.destroy$?.unsubscribe()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["cell"],["","cell",""]],inputs:{value:"value",options:"options",loading:[le.HasDecoratorInputTransform,"loading","loading",it],disabled:[le.HasDecoratorInputTransform,"disabled","disabled",it]},outputs:{valueChange:"valueChange"},exportAs:["cell"],standalone:!0,features:[fi,oe,K],decls:6,vars:1,consts:[["text",""],["textWrap",""],["nz-icon","","nzType","loading"],["nz-checkbox","",3,"nzDisabled","ngModel","ngModelChange"],["nz-radio","",3,"nzDisabled","ngModel","ngModelChange"],[3,"innerHTML","click"],[3,"nzColor"],[3,"innerHTML"],[3,"nzStatus","nzText"],["cell-widget-host","",3,"data"],[1,"img",3,"click"],["class","img",3,"point"],[3,"innerText"],["class","unit"],[1,"unit"],[3,"nz-tooltip"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&_(0,aF,8,1,"ng-template",null,0,_e)(2,fF,2,1,"ng-template",null,1,_e)(4,gF,1,0,"span",2)(5,vF,1,1),i&2&&(f(4),ie(4,r.loading?4:5))},dependencies:[nn,Kt,Rt,Be,Bi,ls,Fe,bu,_u,Si,mb,yF],encapsulation:2,changeDetection:0});let o=n;return o})(),CF=[Hm],bb=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Zn,nn,$i,Jl,Up,Xp,ji,Ge,wb,CF]});let o=n;return o})();function dce(...o){return ba([{provide:wa,multi:!0,useValue:()=>{let n=ae(Gm);o.forEach(e=>n.registerWidget(e.KEY,e.type))}}])}var wF=["nz-menu-item",""],Eb=["*"],bF=["nz-submenu-inline-child",""];function TF(o,n){}var EF=["nz-submenu-none-inline-child",""];function xF(o,n){}var zF=["nz-submenu-title",""];function OF(o,n){if(o&1&&R(0,"span",4),o&2){let e=m();h("nzType",e.nzIcon)}}function DF(o,n){if(o&1&&(H(0),C(1,"span",5),Y(2),S(),B()),o&2){let e=m();f(2),ye(e.nzTitle)}}function RF(o,n){o&1&&R(0,"span",9)}function IF(o,n){o&1&&R(0,"span",10)}function PF(o,n){if(o&1&&(C(0,"span",6),_(1,RF,1,0,"span",7)(2,IF,1,0,"span",8),S()),o&2){let e=m();h("ngSwitch",e.dir),f(),h("ngSwitchCase","rtl")}}function MF(o,n){o&1&&R(0,"span",11)}var FF=["nz-submenu",""];function AF(o,n){o&1&&Ie(0,0,["*ngIf","!nzTitle"])}function NF(o,n){if(o&1&&R(0,"div",6),o&2){let e=m(),t=te(7);h("mode",e.mode)("nzOpen",e.nzOpen)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("menuClass",e.nzMenuClassName)("templateOutlet",t)}}function LF(o,n){if(o&1){let e=Q();C(0,"div",8),A("subMenuMouseState",function(i){I(e);let r=m(2);return P(r.setMouseEnterState(i))}),S()}if(o&2){let e=m(2),t=te(7);h("theme",e.theme)("mode",e.mode)("nzOpen",e.nzOpen)("position",e.position)("nzDisabled",e.nzDisabled)("isMenuInsideDropDown",e.isMenuInsideDropDown)("templateOutlet",t)("menuClass",e.nzMenuClassName)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)}}function kF(o,n){if(o&1){let e=Q();_(0,LF,1,10,"ng-template",7),A("positionChange",function(i){I(e);let r=m();return P(r.onPositionChange(i))})}if(o&2){let e=m(),t=te(1);h("cdkConnectedOverlayPositions",e.overlayPositions)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayWidth",e.triggerWidth)("cdkConnectedOverlayOpen",e.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function VF(o,n){o&1&&Ie(0,1)}var GF=[[["","title",""]],"*"],HF=["[title]","*"],BF=["titleElement"],$F=["nz-menu-group",""];function jF(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m();f(),ye(e.nzTitle)}}function WF(o,n){o&1&&Ie(0,1,["*ngIf","!nzTitle"])}var UF=["*",[["","title",""]]],KF=["*","[title]"],ao=new hn("NzIsInDropDownMenuToken"),xb=new hn("NzMenuServiceLocalToken"),so=(()=>{let n=class n{constructor(){this.descendantMenuItemClick$=new J,this.childMenuItemClick$=new J,this.theme$=new ct("light"),this.mode$=new ct("vertical"),this.inlineIndent$=new ct(24),this.isChildSubMenuOpen$=new ct(!1)}onDescendantMenuItemClick(t){this.descendantMenuItemClick$.next(t)}onChildMenuItemClick(t){this.childMenuItemClick$.next(t)}setMode(t){this.mode$.next(t)}setTheme(t){this.theme$.next(t)}setInlineIndent(t){this.inlineIndent$.next(t)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),Bm=(()=>{let n=class n{onChildMenuItemClick(t){this.childMenuItemClick$.next(t)}setOpenStateWithoutDebounce(t){this.isCurrentSubMenuOpen$.next(t)}setMouseEnterTitleOrOverlayState(t){this.isMouseEnterTitleOrOverlay$.next(t)}constructor(t,i,r){this.nzHostSubmenuService=t,this.nzMenuService=i,this.isMenuInsideDropDown=r,this.mode$=this.nzMenuService.mode$.pipe(We(c=>c==="inline"?"inline":c==="vertical"||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new ct(!1),this.isChildSubMenuOpen$=new ct(!1),this.isMouseEnterTitleOrOverlay$=new J,this.childMenuItemClick$=new J,this.destroy$=new J,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);let s=this.childMenuItemClick$.pipe(zo(()=>this.mode$),Qe(c=>c!=="inline"||this.isMenuInsideDropDown),Tl(!1)),a=_t(this.isMouseEnterTitleOrOverlay$,s);Fn([this.isChildSubMenuOpen$,a]).pipe(We(([c,u])=>c||u),zs(150),Bt(),F(this.destroy$)).pipe(Bt()).subscribe(c=>{this.setOpenStateWithoutDebounce(c),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(c):this.nzMenuService.isChildSubMenuOpen$.next(c)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(nt(n,12),nt(so),nt(ao))},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),co=(()=>{let n=class n{clickMenuItem(t){this.nzDisabled?(t.preventDefault(),t.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(t){this.nzSelected=t,this.selected$.next(t)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{let t=this.hasActiveLinks();this.nzSelected!==t&&(this.nzSelected=t,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.routerLink&&t(this.routerLink)||this.listOfRouterLink.some(t)}isLinkActive(t){return i=>t.isActive(i.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(t,i,r,s,a,l,c){this.nzMenuService=t,this.cdr=i,this.nzSubmenuService=r,this.isMenuInsideDropDown=s,this.directionality=a,this.routerLink=l,this.router=c,this.destroy$=new J,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new J,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,c&&this.router.events.pipe(F(this.destroy$),Qe(u=>u instanceof Io)).subscribe(()=>{this.updateRouterActive()})}ngOnInit(){Fn([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(F(this.destroy$)).subscribe(([t,i])=>{this.inlinePaddingLeft=t==="inline"?this.level*i:null}),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe(F(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(t){t.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(so),w(fe),w(Bm,8),w(ao),w(Me,8),w(Po,8),w(mi,8))},n.\u0275cmp=j({type:n,selectors:[["","nz-menu-item",""]],contentQueries:function(i,r,s){if(i&1&&Ft(s,Po,5),i&2){let a;ce(a=ue())&&(r.listOfRouterLink=a)}},hostVars:20,hostBindings:function(i,r){i&1&&A("click",function(a){return r.clickMenuItem(a)}),i&2&&(Re("padding-left",r.dir==="rtl"?null:r.nzPaddingLeft||r.inlinePaddingLeft,"px")("padding-right",r.dir==="rtl"?r.nzPaddingLeft||r.inlinePaddingLeft:null,"px"),k("ant-dropdown-menu-item",r.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",r.isMenuInsideDropDown&&r.nzSelected)("ant-dropdown-menu-item-danger",r.isMenuInsideDropDown&&r.nzDanger)("ant-dropdown-menu-item-disabled",r.isMenuInsideDropDown&&r.nzDisabled)("ant-menu-item",!r.isMenuInsideDropDown)("ant-menu-item-selected",!r.isMenuInsideDropDown&&r.nzSelected)("ant-menu-item-danger",!r.isMenuInsideDropDown&&r.nzDanger)("ant-menu-item-disabled",!r.isMenuInsideDropDown&&r.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],standalone:!0,features:[oe,K],attrs:wF,ngContentSelectors:Eb,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(i,r){i&1&&(Pe(),C(0,"span",0),Ie(1),S())},encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzSelected",void 0),N([W()],o.prototype,"nzDanger",void 0),N([W()],o.prototype,"nzMatchRouterExact",void 0),N([W()],o.prototype,"nzMatchRouter",void 0),o})(),qF=(()=>{let n=class n{constructor(t,i,r){this.elementRef=t,this.renderer=i,this.directionality=r,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new J}calcMotionState(){this.nzOpen?this.expandState="expanded":this.expandState="collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t})}ngOnChanges(t){let{mode:i,nzOpen:r,menuClass:s}=t;(i||r)&&this.calcMotionState(),s&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(a=>!!a).forEach(a=>{this.renderer.removeClass(this.elementRef.nativeElement,a)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(a=>!!a).forEach(a=>{this.renderer.addClass(this.elementRef.nativeElement,a)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(de),w(He),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(i,r){i&2&&(Ta("@collapseMotion",r.expandState),k("ant-menu-rtl",r.dir==="rtl"))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],standalone:!0,features:[oe,K],attrs:bF,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&_(0,TF,0,0,"ng-template",0),i&2&&h("ngTemplateOutlet",r.templateOutlet)},dependencies:[Be],encapsulation:2,data:{animation:[_w]},changeDetection:0});let o=n;return o})(),YF=(()=>{let n=class n{constructor(t){this.directionality=t,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new O,this.expandState="collapsed",this.dir="ltr",this.destroy$=new J}setMouseState(t){this.nzDisabled||this.subMenuMouseState.next(t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?this.mode==="horizontal"?this.expandState="bottom":this.mode==="vertical"&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t})}ngOnChanges(t){let{mode:i,nzOpen:r}=t;(i||r)&&this.calcMotionState()}};n.\u0275fac=function(i){return new(i||n)(w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(i,r){i&1&&A("mouseenter",function(){return r.setMouseState(!0)})("mouseleave",function(){return r.setMouseState(!1)}),i&2&&(Ta("@slideMotion",r.expandState)("@zoomBigMotion",r.expandState),k("ant-menu-light",r.theme==="light")("ant-menu-dark",r.theme==="dark")("ant-menu-submenu-placement-bottom",r.mode==="horizontal")("ant-menu-submenu-placement-right",r.mode==="vertical"&&r.position==="right")("ant-menu-submenu-placement-left",r.mode==="vertical"&&r.position==="left")("ant-menu-submenu-rtl",r.dir==="rtl"))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],standalone:!0,features:[oe,K],attrs:EF,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&(C(0,"div",0),_(1,xF,0,0,"ng-template",1),S()),i&2&&(k("ant-dropdown-menu",r.isMenuInsideDropDown)("ant-menu",!r.isMenuInsideDropDown)("ant-dropdown-menu-vertical",r.isMenuInsideDropDown)("ant-menu-vertical",!r.isMenuInsideDropDown)("ant-dropdown-menu-sub",r.isMenuInsideDropDown)("ant-menu-sub",!r.isMenuInsideDropDown)("ant-menu-rtl",r.dir==="rtl"),h("ngClass",r.menuClass),f(),h("ngTemplateOutlet",r.templateOutlet))},dependencies:[St,Be],encapsulation:2,data:{animation:[Is,Mo]},changeDetection:0});let o=n;return o})(),zb=(()=>{let n=class n{constructor(t,i){this.cdr=t,this.directionality=i,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new O,this.subMenuMouseState=new O,this.dir="ltr",this.destroy$=new J}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(t){this.nzDisabled||this.subMenuMouseState.next(t)}clickTitle(){this.mode==="inline"&&!this.nzDisabled&&this.toggleSubMenu.emit()}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(i,r){i&1&&A("click",function(){return r.clickTitle()})("mouseenter",function(){return r.setMouseState(!0)})("mouseleave",function(){return r.setMouseState(!1)}),i&2&&(Re("padding-left",r.dir==="rtl"?null:r.paddingLeft,"px")("padding-right",r.dir==="rtl"?r.paddingLeft:null,"px"),k("ant-dropdown-menu-submenu-title",r.isMenuInsideDropDown)("ant-menu-submenu-title",!r.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],standalone:!0,features:[K],attrs:zF,ngContentSelectors:Eb,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-menu-title-content"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(i,r){if(i&1&&(Pe(),_(0,OF,1,1,"span",0)(1,DF,3,1,"ng-container",1),Ie(2),_(3,PF,3,2,"span",2)(4,MF,1,0,"ng-template",null,3,_e)),i&2){let s=te(5);h("ngIf",r.nzIcon),f(),h("nzStringTemplateOutlet",r.nzTitle),f(2),h("ngIf",r.isMenuInsideDropDown)("ngIfElse",s)}},dependencies:[Ge,Fe,we,Ye,Ue,jn,Wn,Gi],encapsulation:2,changeDetection:0});let o=n;return o})(),Tb=[bt.rightTop,bt.right,bt.rightBottom,bt.leftTop,bt.left,bt.leftBottom],QF=[bt.bottomLeft,bt.bottomRight,bt.topRight,bt.topLeft],Jp=(()=>{let n=class n{setOpenStateWithoutDebounce(t){this.nzSubmenuService.setOpenStateWithoutDebounce(t)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(t){this.isActive=t,this.mode!=="inline"&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(t)}setTriggerWidth(){this.mode==="horizontal"&&this.platform.isBrowser&&this.cdkOverlayOrigin&&this.nzPlacement==="bottomLeft"&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(t){let i=Da(t);i==="rightTop"||i==="rightBottom"||i==="right"?this.position="right":(i==="leftTop"||i==="leftBottom"||i==="left")&&(this.position="left")}constructor(t,i,r,s,a,l,c){this.nzMenuService=t,this.cdr=i,this.nzSubmenuService=r,this.platform=s,this.isMenuInsideDropDown=a,this.directionality=l,this.noAnimation=c,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzPlacement="bottomLeft",this.nzOpenChange=new O,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new J,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=Tb,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}ngOnInit(){this.nzMenuService.theme$.pipe(F(this.destroy$)).subscribe(t=>{this.theme=t,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe(F(this.destroy$)).subscribe(t=>{this.mode=t,t==="horizontal"?this.overlayPositions=[bt[this.nzPlacement],...QF]:t==="vertical"&&(this.overlayPositions=Tb),this.cdr.markForCheck()}),Fn([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(F(this.destroy$)).subscribe(([t,i])=>{this.inlinePaddingLeft=t==="inline"?this.level*i:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe(F(this.destroy$)).subscribe(t=>{this.isActive=t,t!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=t,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();let t=this.listOfNzMenuItemDirective,i=t.changes,r=_t(i,...t.map(s=>s.selected$));i.pipe(Ot(t),on(()=>r),Ot(!0),We(()=>t.some(s=>s.nzSelected)),F(this.destroy$)).subscribe(s=>{this.isSelected=s,this.cdr.markForCheck()})}ngOnChanges(t){let{nzOpen:i}=t;i&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(so),w(fe),w(Bm),w(gn),w(ao),w(Me,8),w(ft,9))},n.\u0275cmp=j({type:n,selectors:[["","nz-submenu",""]],contentQueries:function(i,r,s){if(i&1&&(Ft(s,n,5),Ft(s,co,5)),i&2){let a;ce(a=ue())&&(r.listOfNzSubMenuComponent=a),ce(a=ue())&&(r.listOfNzMenuItemDirective=a)}},viewQuery:function(i,r){if(i&1&&xe(dr,7,de),i&2){let s;ce(s=ue())&&(r.cdkOverlayOrigin=s.first)}},hostVars:34,hostBindings:function(i,r){i&2&&k("ant-dropdown-menu-submenu",r.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",r.isMenuInsideDropDown&&r.nzDisabled)("ant-dropdown-menu-submenu-open",r.isMenuInsideDropDown&&r.nzOpen)("ant-dropdown-menu-submenu-selected",r.isMenuInsideDropDown&&r.isSelected)("ant-dropdown-menu-submenu-vertical",r.isMenuInsideDropDown&&r.mode==="vertical")("ant-dropdown-menu-submenu-horizontal",r.isMenuInsideDropDown&&r.mode==="horizontal")("ant-dropdown-menu-submenu-inline",r.isMenuInsideDropDown&&r.mode==="inline")("ant-dropdown-menu-submenu-active",r.isMenuInsideDropDown&&r.isActive)("ant-menu-submenu",!r.isMenuInsideDropDown)("ant-menu-submenu-disabled",!r.isMenuInsideDropDown&&r.nzDisabled)("ant-menu-submenu-open",!r.isMenuInsideDropDown&&r.nzOpen)("ant-menu-submenu-selected",!r.isMenuInsideDropDown&&r.isSelected)("ant-menu-submenu-vertical",!r.isMenuInsideDropDown&&r.mode==="vertical")("ant-menu-submenu-horizontal",!r.isMenuInsideDropDown&&r.mode==="horizontal")("ant-menu-submenu-inline",!r.isMenuInsideDropDown&&r.mode==="inline")("ant-menu-submenu-active",!r.isMenuInsideDropDown&&r.isActive)("ant-menu-submenu-rtl",r.dir==="rtl")},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled",nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],standalone:!0,features:[Ve([Bm]),oe,K],attrs:FF,ngContentSelectors:HF,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(i,r){if(i&1&&(Pe(GF),C(0,"div",0,1),A("subMenuMouseState",function(a){return r.setMouseEnterState(a)})("toggleSubMenu",function(){return r.toggleSubMenu()}),_(2,AF,1,0,"ng-content",2),S(),_(3,NF,1,6,"div",3)(4,kF,1,5,"ng-template",null,4,_e)(6,VF,1,0,"ng-template",null,5,_e)),i&2){let s=te(5);h("nzIcon",r.nzIcon)("nzTitle",r.nzTitle)("mode",r.mode)("nzDisabled",r.nzDisabled)("isMenuInsideDropDown",r.isMenuInsideDropDown)("paddingLeft",r.nzPaddingLeft||r.inlinePaddingLeft),f(2),h("ngIf",!r.nzTitle),f(),h("ngIf",r.mode==="inline")("ngIfElse",s)}},dependencies:[zb,qF,we,ft,YF,Fr,oi,dr],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzOpen",void 0),N([W()],o.prototype,"nzDisabled",void 0),o})();function XF(){let o=ae(so,{skipSelf:!0,optional:!0}),n=ae(xb);return o??n}function ZF(){return ae(ao,{skipSelf:!0,optional:!0})??!1}var cs=(()=>{let n=class n{setInlineCollapsed(t){this.nzInlineCollapsed=t,this.inlineCollapsed$.next(t)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(t=>t.nzOpen),this.listOfNzSubMenuComponent.forEach(t=>t.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(t=>t.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}constructor(t,i,r,s){this.nzMenuService=t,this.isMenuInsideDropDown=i,this.cdr=r,this.directionality=s,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new O,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new ct(this.nzInlineCollapsed),this.mode$=new ct(this.nzMode),this.destroy$=new J,this.listOfOpenedNzSubMenuComponent=[]}ngOnInit(){Fn([this.inlineCollapsed$,this.mode$]).pipe(F(this.destroy$)).subscribe(([t,i])=>{this.actualMode=t?"vertical":i,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe(F(this.destroy$)).subscribe(t=>{this.nzClick.emit(t),this.nzSelectable&&!t.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(i=>i.setSelectedState(i===t))}),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe(F(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(t){let{nzInlineCollapsed:i,nzInlineIndent:r,nzTheme:s,nzMode:a}=t;i&&this.inlineCollapsed$.next(this.nzInlineCollapsed),r&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),s&&this.nzMenuService.setTheme(this.nzTheme),a&&(this.mode$.next(this.nzMode),!t.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(l=>l.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(so),w(ao),w(fe),w(Me,8))},n.\u0275dir=Se({type:n,selectors:[["","nz-menu",""]],contentQueries:function(i,r,s){if(i&1&&(Ft(s,co,5),Ft(s,Jp,5)),i&2){let a;ce(a=ue())&&(r.listOfNzMenuItemDirective=a),ce(a=ue())&&(r.listOfNzSubMenuComponent=a)}},hostVars:34,hostBindings:function(i,r){i&2&&k("ant-dropdown-menu",r.isMenuInsideDropDown)("ant-dropdown-menu-root",r.isMenuInsideDropDown)("ant-dropdown-menu-light",r.isMenuInsideDropDown&&r.nzTheme==="light")("ant-dropdown-menu-dark",r.isMenuInsideDropDown&&r.nzTheme==="dark")("ant-dropdown-menu-vertical",r.isMenuInsideDropDown&&r.actualMode==="vertical")("ant-dropdown-menu-horizontal",r.isMenuInsideDropDown&&r.actualMode==="horizontal")("ant-dropdown-menu-inline",r.isMenuInsideDropDown&&r.actualMode==="inline")("ant-dropdown-menu-inline-collapsed",r.isMenuInsideDropDown&&r.nzInlineCollapsed)("ant-menu",!r.isMenuInsideDropDown)("ant-menu-root",!r.isMenuInsideDropDown)("ant-menu-light",!r.isMenuInsideDropDown&&r.nzTheme==="light")("ant-menu-dark",!r.isMenuInsideDropDown&&r.nzTheme==="dark")("ant-menu-vertical",!r.isMenuInsideDropDown&&r.actualMode==="vertical")("ant-menu-horizontal",!r.isMenuInsideDropDown&&r.actualMode==="horizontal")("ant-menu-inline",!r.isMenuInsideDropDown&&r.actualMode==="inline")("ant-menu-inline-collapsed",!r.isMenuInsideDropDown&&r.nzInlineCollapsed)("ant-menu-rtl",r.dir==="rtl")},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],standalone:!0,features:[Ve([{provide:xb,useClass:so},{provide:so,useFactory:XF},{provide:ao,useFactory:ZF}]),oe]});let o=n;return N([W()],o.prototype,"nzInlineCollapsed",void 0),N([W()],o.prototype,"nzSelectable",void 0),o})();function JF(){return ae(ao,{optional:!0,skipSelf:!0})??!1}var e1=(()=>{let n=class n{constructor(t,i,r){this.elementRef=t,this.renderer=i,this.isMenuInsideDropDown=r;let s=this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group";this.renderer.addClass(t.nativeElement,s)}ngAfterViewInit(){let t=this.titleElement.nativeElement.nextElementSibling;if(t){let i=this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list";this.renderer.addClass(t,i)}}};n.\u0275fac=function(i){return new(i||n)(w(de),w(He),w(ao))},n.\u0275cmp=j({type:n,selectors:[["","nz-menu-group",""]],viewQuery:function(i,r){if(i&1&&xe(BF,5),i&2){let s;ce(s=ue())&&(r.titleElement=s.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],standalone:!0,features:[Ve([{provide:ao,useFactory:JF}]),K],attrs:$F,ngContentSelectors:KF,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"],[4,"ngIf"]],template:function(i,r){i&1&&(Pe(UF),C(0,"div",null,0),_(2,jF,2,1,"ng-container",1)(3,WF,1,0,"ng-content",2),S(),Ie(4)),i&2&&(k("ant-menu-item-group-title",!r.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",r.isMenuInsideDropDown),f(2),h("nzStringTemplateOutlet",r.nzTitle),f(),h("ngIf",!r.nzTitle))},dependencies:[Ye,Ue,we],encapsulation:2,changeDetection:0});let o=n;return o})(),Ob=(()=>{let n=class n{constructor(t){this.elementRef=t}};n.\u0275fac=function(i){return new(i||n)(w(de))},n.\u0275dir=Se({type:n,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"],standalone:!0});let o=n;return o})(),ec=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Jp,e1,zb]});let o=n;return o})();function t1(o,n){if(o&1){let e=Q();C(0,"div",0),A("@slideMotion.done",function(i){I(e);let r=m();return P(r.onAnimationEvent(i))})("mouseenter",function(){I(e);let i=m();return P(i.setMouseState(!0))})("mouseleave",function(){I(e);let i=m();return P(i.setMouseState(!1))}),Ie(1),S()}if(o&2){let e=m();k("ant-dropdown-rtl",e.dir==="rtl"),h("ngClass",e.nzOverlayClassName)("ngStyle",e.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)}}var n1=["*"],i1="dropDown",r1=[bt.bottomLeft,bt.bottomRight,bt.topRight,bt.topLeft],yr=(()=>{let n=class n{setDropdownMenuValue(t,i){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(t,i)}constructor(t,i,r,s,a,l){this.nzConfigService=t,this.elementRef=i,this.overlay=r,this.renderer=s,this.viewContainerRef=a,this.platform=l,this._nzModuleName=i1,this.overlayRef=null,this.destroy$=new J,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new ct(!1),this.nzTrigger$=new ct("hover"),this.overlayClose$=new J,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new O}ngAfterViewInit(){if(this.nzDropdownMenu){let t=this.elementRef.nativeElement,i=_t(Ke(t,"mouseenter").pipe(Tl(!0)),Ke(t,"mouseleave").pipe(Tl(!1))),r=this.nzDropdownMenu.mouseState$,s=_t(r,i),a=Ke(t,"click").pipe(We(()=>!this.nzVisible)),l=this.nzTrigger$.pipe(on(p=>p==="hover"?s:p==="click"?a:xs)),c=this.nzDropdownMenu.descendantMenuItemClick$.pipe(Qe(()=>this.nzClickHide),Tl(!1)),u=_t(l,c,this.overlayClose$).pipe(Qe(()=>!this.nzDisabled)),d=_t(this.inputVisible$,u);Fn([d,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(We(([p,g])=>p||g),zs(150),Bt(),Qe(()=>this.platform.isBrowser),F(this.destroy$)).subscribe(p=>{let v=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:t).getBoundingClientRect().width;if(this.nzVisible!==p&&this.nzVisibleChange.emit(p),this.nzVisible=p,p){if(!this.overlayRef)this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:v,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&this.nzTrigger==="click",scrollStrategy:this.overlay.scrollStrategies.reposition()}),_t(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe(Qe(y=>!this.elementRef.nativeElement.contains(y.target))),this.overlayRef.keydownEvents().pipe(Qe(y=>y.keyCode===27&&!Nl(y)))).pipe(F(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)});else{let y=this.overlayRef.getConfig();y.minWidth=v}this.positionStrategy.withPositions([bt[this.nzPlacement],...r1]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new au(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)}else this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe(F(this.destroy$)).subscribe(p=>{p.toState==="void"&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(t){let{nzVisible:i,nzDisabled:r,nzOverlayClassName:s,nzOverlayStyle:a,nzTrigger:l}=t;if(l&&this.nzTrigger$.next(this.nzTrigger),i&&this.inputVisible$.next(this.nzVisible),r){let c=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(c,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(c,"disabled")}s&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),a&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}};n.\u0275fac=function(i){return new(i||n)(w(st),w(de),w(ss),w(He),w(Tn),w(gn))},n.\u0275dir=Se({type:n,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],standalone:!0,features:[oe]});let o=n;return N([De(),W()],o.prototype,"nzBackdrop",void 0),N([W()],o.prototype,"nzClickHide",void 0),N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzVisible",void 0),o})(),Db=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})(),Rb=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["a","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-link"],standalone:!0});let o=n;return o})();var us=(()=>{let n=class n{onAnimationEvent(t){this.animationStateChange$.emit(t)}setMouseState(t){this.mouseState$.next(t)}setValue(t,i){this[t]=i,this.cdr.markForCheck()}constructor(t,i,r,s,a,l,c){this.cdr=t,this.elementRef=i,this.renderer=r,this.viewContainerRef=s,this.nzMenuService=a,this.directionality=l,this.noAnimation=c,this.mouseState$=new ct(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new O,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new J}ngOnInit(){this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(de),w(He),w(Tn),w(so),w(Me,8),w(ft,9))},n.\u0275cmp=j({type:n,selectors:[["nz-dropdown-menu"]],viewQuery:function(i,r){if(i&1&&xe(En,7),i&2){let s;ce(s=ue())&&(r.templateRef=s.first)}},exportAs:["nzDropdownMenu"],standalone:!0,features:[Ve([so,{provide:ao,useValue:!0}]),K],ngContentSelectors:n1,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(i,r){i&1&&(Pe(),_(0,t1,2,7,"ng-template"))},dependencies:[St,Zt,ft],encapsulation:2,data:{animation:[Mo]},changeDetection:0});let o=n;return o})(),Lr=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Db,ec]});let o=n;return o})(),o1=[new ln({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new ln({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new ln({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new ln({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})],Ib=(()=>{let n=class n{constructor(t,i){this.ngZone=t,this.overlay=i,this.overlayRef=null,this.closeSubscription=lr.EMPTY}create(t,i){this.close(!0);let{x:r,y:s}=t;t instanceof MouseEvent&&t.preventDefault();let a=this.overlay.position().flexibleConnectedTo({x:r,y:s}).withPositions(o1).withTransformOriginOn(".ant-dropdown");return this.overlayRef=this.overlay.create({positionStrategy:a,disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.close()}),this.closeSubscription=new lr,this.closeSubscription.add(i.descendantMenuItemClick$.subscribe(()=>this.close())),this.closeSubscription.add(this.ngZone.runOutsideAngular(()=>_t(Ke(document,"click").pipe(Qe(l=>!!this.overlayRef&&!this.overlayRef.overlayElement.contains(l.target)),Qe(l=>l.button!==2)),Ke(document,"keydown").pipe(Qe(l=>l.key==="Escape"))).pipe(xl()).subscribe(()=>this.ngZone.run(()=>this.close())))),this.overlayRef.attach(new au(i.templateRef,i.viewContainerRef))}close(t=!1){this.overlayRef&&(this.overlayRef.detach(),t&&this.overlayRef.dispose(),this.overlayRef=null,this.closeSubscription.unsubscribe())}};n.\u0275fac=function(i){return new(i||n)(nt($e),nt(ss))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:Db});let o=n;return o})();function s1(o,n){if(o&1&&(H(0),R(1,"img",5),B()),o&2){let e=m(2);f(),h("src",e.nzNotFoundImage,Do)("alt",e.isContentString?e.nzNotFoundContent:"empty")}}function a1(o,n){if(o&1&&(H(0),_(1,s1,2,2,"ng-container",4),B()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.nzNotFoundImage)}}function l1(o,n){o&1&&R(0,"nz-empty-default")}function c1(o,n){o&1&&R(0,"nz-empty-simple")}function u1(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),Ne(" ",e.isContentString?e.nzNotFoundContent:e.locale.description," ")}}function d1(o,n){if(o&1&&(C(0,"p",6),_(1,u1,2,1,"ng-container",4),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.nzNotFoundContent)}}function p1(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),Ne(" ",e.nzNotFoundFooter," ")}}function h1(o,n){if(o&1&&(C(0,"div",7),_(1,p1,2,1,"ng-container",4),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.nzNotFoundFooter)}}function f1(o,n){o&1&&R(0,"nz-empty",6),o&2&&h("nzNotFoundImage","simple")}function g1(o,n){o&1&&R(0,"nz-empty",7),o&2&&h("nzNotFoundImage","simple")}function m1(o,n){o&1&&R(0,"nz-empty")}function v1(o,n){if(o&1&&(H(0,2),_(1,f1,1,1,"nz-empty",3)(2,g1,1,1,"nz-empty",4)(3,m1,1,0,"nz-empty",5),B()),o&2){let e=m();h("ngSwitch",e.size),f(),h("ngSwitchCase","normal"),f(),h("ngSwitchCase","small")}}function y1(o,n){}function C1(o,n){if(o&1&&_(0,y1,0,0,"ng-template",8),o&2){let e=m(2);h("cdkPortalOutlet",e.contentPortal)}}function _1(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),Ne(" ",e.content," ")}}function S1(o,n){if(o&1&&(H(0),_(1,C1,1,1,null,1)(2,_1,2,1,"ng-container",1),B()),o&2){let e=m();f(),h("ngIf",e.contentType!=="string"),f(),h("ngIf",e.contentType==="string")}}var w1=new hn("nz-empty-component-name"),b1=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],standalone:!0,features:[K],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(i,r){i&1&&(Oo(),C(0,"svg",0)(1,"g",1)(2,"g",2),R(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),S(),R(8,"path",8),C(9,"g",9),R(10,"ellipse",10)(11,"path",11),S()()())},encapsulation:2,changeDetection:0});let o=n;return o})(),T1=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],standalone:!0,features:[K],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(i,r){i&1&&(Oo(),C(0,"svg",0)(1,"g",1),R(2,"ellipse",2),C(3,"g",3),R(4,"path",4)(5,"path",5),S()()())},encapsulation:2,changeDetection:0});let o=n;return o})(),E1=["default","simple"],Pb=(()=>{let n=class n{constructor(t,i){this.i18n=t,this.cdr=i,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new J}ngOnChanges(t){let{nzNotFoundContent:i,nzNotFoundImage:r}=t;if(i){let s=i.currentValue;this.isContentString=typeof s=="string"}if(r){let s=r.currentValue||"default";this.isImageBuildIn=E1.findIndex(a=>a===s)>-1}}ngOnInit(){this.i18n.localeChange.pipe(F(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(Di),w(fe))},n.\u0275cmp=j({type:n,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],standalone:!0,features:[oe,K],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(i,r){i&1&&(C(0,"div",0),_(1,a1,2,1,"ng-container",1)(2,l1,1,0,"nz-empty-default",1)(3,c1,1,0,"nz-empty-simple",1),S(),_(4,d1,2,1,"p",2)(5,h1,2,1,"div",3)),i&2&&(f(),h("ngIf",!r.isImageBuildIn),f(),h("ngIf",r.isImageBuildIn&&r.nzNotFoundImage!=="simple"),f(),h("ngIf",r.isImageBuildIn&&r.nzNotFoundImage==="simple"),f(),h("ngIf",r.nzNotFoundContent!==null),f(),h("ngIf",r.nzNotFoundFooter))},dependencies:[we,Ye,Ue,b1,T1],encapsulation:2,changeDetection:0});let o=n;return o})();function x1(o){switch(o){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}var Tu=(()=>{let n=class n{constructor(t,i,r,s){this.configService=t,this.viewContainerRef=i,this.cdr=r,this.injector=s,this.contentType="string",this.size="",this.destroy$=new J}ngOnChanges(t){t.nzComponentName&&(this.size=x1(t.nzComponentName.currentValue)),t.specificContent&&!t.specificContent.isFirstChange()&&(this.content=t.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){let t=this.content;if(typeof t=="string")this.contentType="string";else if(t instanceof En){let i={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new au(t,this.viewContainerRef,i)}else if(t instanceof wS){let i=$n.create({parent:this.injector,providers:[{provide:w1,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new kl(t,this.viewContainerRef,i)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe(Ot(!0),F(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}};n.\u0275fac=function(i){return new(i||n)(w(st),w(Tn),w(fe),w($n))},n.\u0275cmp=j({type:n,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],standalone:!0,features:[oe,K],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(i,r){i&1&&_(0,v1,4,3,"ng-container",0)(1,S1,3,2,"ng-container",1),i&2&&(h("ngIf",!r.content&&r.specificContent!==null),f(),h("ngIf",r.content))},dependencies:[Pb,we,jn,Wn,Gi,sw,ow],encapsulation:2,changeDetection:0});let o=n;return o})(),nh=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Pb,Tu]});let o=n;return o})();var Fb=["*"];function O1(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m();f(),ye(e.nzLabel)}}function D1(o,n){}function R1(o,n){if(o&1&&_(0,D1,0,0,"ng-template",4),o&2){let e=m();h("ngTemplateOutlet",e.template)}}function I1(o,n){if(o&1&&Y(0),o&2){let e=m();ye(e.label)}}function P1(o,n){o&1&&R(0,"span",7)}function M1(o,n){if(o&1&&(C(0,"div",5),_(1,P1,1,0,"span",6),S()),o&2){let e=m();f(),h("ngIf",!e.icon)("ngIfElse",e.icon)}}function F1(o,n){if(o&1&&(C(0,"div",4),R(1,"nz-embed-empty",5),S()),o&2){let e=m();f(),h("specificContent",e.notFoundContent)}}function A1(o,n){if(o&1&&R(0,"nz-option-item-group",9),o&2){let e=m().$implicit;h("nzLabel",e.groupLabel)}}function N1(o,n){if(o&1){let e=Q();C(0,"nz-option-item",10),A("itemHover",function(i){I(e);let r=m(2);return P(r.onItemHover(i))})("itemClick",function(i){I(e);let r=m(2);return P(r.onItemClick(i))}),S()}if(o&2){let e=m().$implicit,t=m();h("icon",t.menuItemSelectedIcon)("customContent",e.nzCustomContent)("template",e.template)("grouped",!!e.groupLabel)("disabled",e.nzDisabled)("showState",t.mode==="tags"||t.mode==="multiple")("title",e.nzTitle)("label",e.nzLabel)("compareWith",t.compareWith)("activatedValue",t.activatedValue)("listOfSelectedValue",t.listOfSelectedValue)("value",e.nzValue)}}function L1(o,n){if(o&1&&(H(0,6),_(1,A1,1,1,"nz-option-item-group",7)(2,N1,1,12,"nz-option-item",8),B()),o&2){let e=n.$implicit;h("ngSwitch",e.type),f(),h("ngSwitchCase","group"),f(),h("ngSwitchCase","item")}}function k1(o,n){}function V1(o,n){o&1&&Ie(0)}function G1(o,n){o&1&&R(0,"span",3)}function H1(o,n){o&1&&R(0,"span",8)}function B1(o,n){o&1&&R(0,"span",9)}function $1(o,n){if(o&1&&(H(0),_(1,H1,1,0,"span",6)(2,B1,1,0,"span",7),B()),o&2){let e=m(2);f(),h("ngIf",!e.search),f(),h("ngIf",e.search)}}function j1(o,n){if(o&1&&R(0,"span",11),o&2){let e=m().$implicit;h("nzType",e)}}function W1(o,n){if(o&1&&(H(0),_(1,j1,1,1,"span",10),B()),o&2){let e=n.$implicit;f(),h("ngIf",e)}}function U1(o,n){if(o&1&&_(0,W1,2,1,"ng-container",2),o&2){let e=m(2);h("nzStringTemplateOutlet",e.suffixIcon)}}function K1(o,n){if(o&1&&_(0,$1,3,2,"ng-container",4)(1,U1,1,1,"ng-template",null,5,_e),o&2){let e=te(2),t=m();h("ngIf",t.showArrow&&!t.suffixIcon)("ngIfElse",e)}}function q1(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m();f(),ye(e.feedbackIcon)}}function Y1(o,n){o&1&&R(0,"span",1)}function Q1(o,n){if(o&1&&(C(0,"div",4),Y(1),S()),o&2){let e=m(2);f(),ye(e.label)}}function X1(o,n){if(o&1&&Y(0),o&2){let e=m(2);ye(e.label)}}function Z1(o,n){if(o&1&&(H(0),_(1,Q1,2,1,"div",2)(2,X1,1,1,"ng-template",null,3,_e),B()),o&2){let e=te(3),t=m();f(),h("ngIf",t.deletable)("ngIfElse",e)}}function J1(o,n){o&1&&R(0,"span",7)}function eA(o,n){if(o&1){let e=Q();C(0,"span",5),A("click",function(i){I(e);let r=m();return P(r.onDelete(i))}),_(1,J1,1,0,"span",6),S()}if(o&2){let e=m();f(),h("ngIf",!e.removeIcon)("ngIfElse",e.removeIcon)}}var tA=o=>({$implicit:o});function nA(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m();f(),Ne(" ",e.placeholder," ")}}var iA=["inputElement"],rA=["mirrorElement"];function oA(o,n){o&1&&R(0,"span",3,4)}function sA(o,n){if(o&1&&R(0,"nz-select-item",6),o&2){let e=m(2);h("deletable",!1)("disabled",!1)("removeIcon",e.removeIcon)("label",e.listOfTopItem[0].nzLabel)("contentTemplateOutlet",e.customTemplate)("contentTemplateOutletContext",e.listOfTopItem[0])}}function aA(o,n){if(o&1){let e=Q();H(0),C(1,"nz-select-search",4),A("isComposingChange",function(i){I(e);let r=m();return P(r.isComposingChange(i))})("valueChange",function(i){I(e);let r=m();return P(r.onInputValueChange(i))}),S(),_(2,sA,1,6,"nz-select-item",5),B()}if(o&2){let e=m();f(),h("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("showInput",e.showSearch)("mirrorSync",!1)("autofocus",e.autofocus)("focusTrigger",e.open),f(),h("ngIf",e.isShowSingleLabel)}}function lA(o,n){if(o&1){let e=Q();C(0,"nz-select-item",9),A("delete",function(){let r=I(e).$implicit,s=m(2);return P(s.onDeleteItem(r.contentTemplateOutletContext))}),S()}if(o&2){let e=n.$implicit,t=m(2);h("removeIcon",t.removeIcon)("label",e.nzLabel)("disabled",e.nzDisabled||t.disabled)("contentTemplateOutlet",e.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",e.contentTemplateOutletContext)}}function cA(o,n){if(o&1){let e=Q();H(0),_(1,lA,1,6,"nz-select-item",7),C(2,"nz-select-search",8),A("isComposingChange",function(i){I(e);let r=m();return P(r.isComposingChange(i))})("valueChange",function(i){I(e);let r=m();return P(r.onInputValueChange(i))}),S(),B()}if(o&2){let e=m();f(),h("ngForOf",e.listOfSlicedItem)("ngForTrackBy",e.trackValue),f(),h("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("autofocus",e.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",e.open)}}function uA(o,n){if(o&1&&R(0,"nz-select-placeholder",10),o&2){let e=m();h("placeholder",e.placeHolder)}}function dA(o,n){if(o&1&&R(0,"nz-form-item-feedback-icon",8),o&2){let e=m(3);h("status",e.status)}}function pA(o,n){if(o&1&&_(0,dA,1,1,"nz-form-item-feedback-icon",7),o&2){let e=m(2);h("ngIf",e.hasFeedback&&!!e.status)}}function hA(o,n){if(o&1&&(C(0,"nz-select-arrow",5),_(1,pA,1,1,"ng-template",null,6,_e),S()),o&2){let e=te(2),t=m();h("showArrow",t.nzShowArrow)("loading",t.nzLoading)("search",t.nzOpen&&t.nzShowSearch)("suffixIcon",t.nzSuffixIcon)("feedbackIcon",e)}}function fA(o,n){if(o&1){let e=Q();C(0,"nz-select-clear",9),A("clear",function(){I(e);let i=m();return P(i.onClearSelection())}),S()}if(o&2){let e=m();h("clearIcon",e.nzClearIcon)}}function gA(o,n){if(o&1){let e=Q();C(0,"nz-option-container",10),A("keydown",function(i){I(e);let r=m();return P(r.onKeyDown(i))})("itemClick",function(i){I(e);let r=m();return P(r.onItemClick(i))})("scrollToBottom",function(){I(e);let i=m();return P(i.nzScrollToBottom.emit())}),S()}if(o&2){let e=m();k("ant-select-dropdown-placement-bottomLeft",e.dropDownPosition==="bottomLeft")("ant-select-dropdown-placement-topLeft",e.dropDownPosition==="topLeft")("ant-select-dropdown-placement-bottomRight",e.dropDownPosition==="bottomRight")("ant-select-dropdown-placement-topRight",e.dropDownPosition==="topRight"),h("ngStyle",e.nzDropdownStyle)("itemSize",e.nzOptionHeightPx)("maxItemLength",e.nzOptionOverflowSize)("matchWidth",e.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("listOfContainerItem",e.listOfContainerItem)("menuItemSelectedIcon",e.nzMenuItemSelectedIcon)("notFoundContent",e.nzNotFoundContent)("activatedValue",e.activatedValue)("listOfSelectedValue",e.listOfValue)("dropdownRender",e.nzDropdownRender)("compareWith",e.compareWith)("mode",e.nzMode)}}var Eu=(()=>{let n=class n{constructor(){this.nzLabel=null,this.changes=new J}ngOnChanges(){this.changes.next()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],standalone:!0,features:[oe,K],ngContentSelectors:Fb,decls:1,vars:0,template:function(i,r){i&1&&(Pe(),Ie(0))},encapsulation:2,changeDetection:0});let o=n;return o})(),Ab=(()=>{let n=class n{constructor(){this.nzLabel=null}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},standalone:!0,features:[K],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(i,r){i&1&&_(0,O1,2,1,"ng-container",0),i&2&&h("nzStringTemplateOutlet",r.nzLabel)},dependencies:[Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return o})(),Nb=(()=>{let n=class n{constructor(t,i,r){this.elementRef=t,this.ngZone=i,this.destroy$=r,this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new O,this.itemHover=new O}ngOnChanges(t){let{value:i,activatedValue:r,listOfSelectedValue:s}=t;(i||s)&&(this.selected=this.listOfSelectedValue.some(a=>this.compareWith(a,this.value))),(i||r)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){this.ngZone.runOutsideAngular(()=>{Ke(this.elementRef.nativeElement,"click").pipe(F(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),Ke(this.elementRef.nativeElement,"mouseenter").pipe(F(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})})}};n.\u0275fac=function(i){return new(i||n)(w(de),w($e),w(Pt))},n.\u0275cmp=j({type:n,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(i,r){i&2&&(ze("title",r.title),k("ant-select-item-option-grouped",r.grouped)("ant-select-item-option-selected",r.selected&&!r.disabled)("ant-select-item-option-disabled",r.disabled)("ant-select-item-option-active",r.activated&&!r.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",title:"title",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},standalone:!0,features:[Ve([Pt]),oe,K],decls:5,vars:3,consts:[[1,"ant-select-item-option-content"],[3,"ngIf","ngIfElse"],["noCustomContent",""],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(i,r){if(i&1&&(C(0,"div",0),_(1,R1,1,1,"ng-template",1)(2,I1,1,1,"ng-template",null,2,_e),S(),_(4,M1,2,2,"div",3)),i&2){let s=te(3);f(),h("ngIf",r.customContent)("ngIfElse",s),f(3),h("ngIf",r.showState&&r.selected)}},dependencies:[we,Be,Ge,Fe],encapsulation:2,changeDetection:0});let o=n;return o})(),Lb=(()=>{let n=class n{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new O,this.scrollToBottom=new O,this.scrolledIndex=0,this.ngZone=ae($e),this.platformId=ae(bS)}onItemClick(t){this.itemClick.emit(t)}onItemHover(t){this.activatedValue=t}trackValue(t,i){return i.key}onScrolledIndexChange(t){this.scrolledIndex=t,t===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){let t=this.listOfContainerItem.findIndex(i=>this.compareWith(i.key,this.activatedValue));(t<this.scrolledIndex||t>=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(t||0)}ngOnChanges(t){let{listOfContainerItem:i,activatedValue:r}=t;(i||r)&&this.scrollToActivatedValue()}ngAfterViewInit(){AS(this.platformId)&&this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.scrollToActivatedValue()))}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-option-container"]],viewQuery:function(i,r){if(i&1&&xe(ur,7),i&2){let s;ce(s=ue())&&(r.cdkVirtualScrollViewport=s.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],standalone:!0,features:[oe,K],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(i,r){i&1&&(C(0,"div"),_(1,F1,2,1,"div",0),C(2,"cdk-virtual-scroll-viewport",1),A("scrolledIndexChange",function(a){return r.onScrolledIndexChange(a)}),_(3,L1,3,3,"ng-template",2),S(),_(4,k1,0,0,"ng-template",3),S()),i&2&&(f(),h("ngIf",r.listOfContainerItem.length===0),f(),Re("height",r.listOfContainerItem.length*r.itemSize,"px")("max-height",r.itemSize*r.maxItemLength,"px"),k("full-width",!r.matchWidth),h("itemSize",r.itemSize)("maxBufferPx",r.itemSize*r.maxItemLength)("minBufferPx",r.itemSize*r.maxItemLength),f(),h("cdkVirtualForOf",r.listOfContainerItem)("cdkVirtualForTrackBy",r.trackValue)("cdkVirtualForTemplateCacheSize",0),f(),h("ngTemplateOutlet",r.dropdownRender))},dependencies:[nh,Tu,we,jn,Ab,Wn,Nb,Be,Fr,Fl,Al,ur,vr],encapsulation:2,changeDetection:0});let o=n;return o})(),zu=(()=>{let n=class n{constructor(t,i){this.nzOptionGroupComponent=t,this.destroy$=i,this.changes=new J,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe(Ot(!0),F(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}};n.\u0275fac=function(i){return new(i||n)(w(Eu,8),w(Pt))},n.\u0275cmp=j({type:n,selectors:[["nz-option"]],viewQuery:function(i,r){if(i&1&&xe(En,7),i&2){let s;ce(s=ue())&&(r.template=s.first)}},inputs:{nzTitle:"nzTitle",nzLabel:"nzLabel",nzValue:"nzValue",nzKey:"nzKey",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],standalone:!0,features:[Ve([Pt]),oe,K],ngContentSelectors:Fb,decls:1,vars:0,template:function(i,r){i&1&&(Pe(),_(0,V1,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzHide",void 0),N([W()],o.prototype,"nzCustomContent",void 0),o})(),kb=(()=>{let n=class n{constructor(){this.loading=!1,this.search=!1,this.showArrow=!1,this.suffixIcon=null,this.feedbackIcon=null}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-select-arrow-loading",r.loading)},inputs:{loading:"loading",search:"search",showArrow:"showArrow",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon"},standalone:!0,features:[K],decls:4,vars:3,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(i,r){if(i&1&&_(0,G1,1,0,"span",0)(1,K1,3,2,"ng-template",null,1,_e)(3,q1,2,1,"ng-container",2),i&2){let s=te(2);h("ngIf",r.loading)("ngIfElse",s),f(3),h("nzStringTemplateOutlet",r.feedbackIcon)}},dependencies:[Ge,Fe,we,Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return o})(),Vb=(()=>{let n=class n{constructor(){this.clearIcon=null,this.clear=new O}onClick(t){t.preventDefault(),t.stopPropagation(),this.clear.emit(t)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(i,r){i&1&&A("click",function(a){return r.onClick(a)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},standalone:!0,features:[K],decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(i,r){i&1&&_(0,Y1,1,0,"span",0),i&2&&h("ngIf",!r.clearIcon)("ngIfElse",r.clearIcon)},dependencies:[Ge,Fe,we],encapsulation:2,changeDetection:0});let o=n;return o})(),Gb=(()=>{let n=class n{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new O}onDelete(t){t.preventDefault(),t.stopPropagation(),this.disabled||this.delete.next(t)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(i,r){i&2&&(ze("title",r.label),k("ant-select-selection-item-disabled",r.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},standalone:!0,features:[K],decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(i,r){i&1&&_(0,Z1,4,2,"ng-container",0)(1,eA,2,2,"span",1),i&2&&(h("nzStringTemplateOutlet",r.contentTemplateOutlet)("nzStringTemplateOutletContext",yt(3,tA,r.contentTemplateOutletContext)),f(),h("ngIf",r.deletable&&!r.disabled))},dependencies:[Ye,Ue,we,Ge,Fe],encapsulation:2,changeDetection:0});let o=n;return o})(),Hb=(()=>{let n=class n{constructor(){this.placeholder=null}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},standalone:!0,features:[K],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(i,r){i&1&&_(0,nA,2,1,"ng-container",0),i&2&&h("nzStringTemplateOutlet",r.placeholder)},dependencies:[Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return o})(),$m=(()=>{let n=class n{setCompositionState(t){this.isComposingChange.next(t)}onValueChange(t){this.value=t,this.valueChange.next(t),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){let t=this.inputElement.nativeElement;t.value="",this.onValueChange("")}syncMirrorWidth(){let t=this.mirrorElement.nativeElement,i=this.elementRef.nativeElement,r=this.inputElement.nativeElement;this.renderer.removeStyle(i,"width"),this.renderer.setProperty(t,"textContent",`${r.value}\xA0`),this.renderer.setStyle(i,"width",`${t.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(t,i,r){this.elementRef=t,this.renderer=i,this.focusMonitor=r,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new O,this.isComposingChange=new O}ngOnChanges(t){let i=this.inputElement.nativeElement,{focusTrigger:r,showInput:s}=t;s&&(this.showInput?this.renderer.removeAttribute(i,"readonly"):this.renderer.setAttribute(i,"readonly","readonly")),r&&r.currentValue===!0&&r.previousValue===!1&&i.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}};n.\u0275fac=function(i){return new(i||n)(w(de),w(He),w(Oi))},n.\u0275cmp=j({type:n,selectors:[["nz-select-search"]],viewQuery:function(i,r){if(i&1&&(xe(iA,7),xe(rA,5)),i&2){let s;ce(s=ue())&&(r.inputElement=s.first),ce(s=ue())&&(r.mirrorElement=s.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},standalone:!0,features:[Ve([{provide:Cm,useValue:!1}]),oe,K],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(i,r){i&1&&(C(0,"input",0,1),A("ngModelChange",function(a){return r.onValueChange(a)})("compositionstart",function(){return r.setCompositionState(!0)})("compositionend",function(){return r.setCompositionState(!1)}),S(),_(2,oA,2,0,"span",2)),i&2&&(Re("opacity",r.showInput?null:0),h("ngModel",r.value)("disabled",r.disabled),ze("id",r.nzId)("autofocus",r.autofocus?"autofocus":null),f(2),h("ngIf",r.mirrorSync))},dependencies:[nn,Ii,Kt,Rt,we],encapsulation:2,changeDetection:0});let o=n;return o})(),ih=(()=>{let n=class n{updateTemplateVariable(){let t=this.listOfTopItem.length===0;this.isShowPlaceholder=t&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!t&&!this.isComposing&&!this.inputValue}isComposingChange(t){this.isComposing=t,this.updateTemplateVariable()}onInputValueChange(t){t!==this.inputValue&&(this.inputValue=t,this.updateTemplateVariable(),this.inputValueChange.emit(t),this.tokenSeparate(t,this.tokenSeparators))}tokenSeparate(t,i){let r=(a,l)=>{for(let c=0;c<l.length;++c)if(a.lastIndexOf(l[c])>0)return!0;return!1},s=(a,l)=>{let c=new RegExp(`[${l.join()}]`),u=a.split(c).filter(d=>d);return[...new Set(u)]};if(t&&t.length&&i.length&&this.mode!=="default"&&r(t,i)){let a=s(t,i);this.tokenize.next(a)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(t,i){return i.nzValue}onDeleteItem(t){!this.disabled&&!t.nzDisabled&&this.deleteItem.next(t)}constructor(t,i,r){this.elementRef=t,this.ngZone=i,this.noAnimation=r,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new O,this.inputValueChange=new O,this.deleteItem=new O,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new J}ngOnChanges(t){let{listOfTopItem:i,maxTagCount:r,customTemplate:s,maxTagPlaceholder:a}=t;if(i&&this.updateTemplateVariable(),i||r||s||a){let l=this.listOfTopItem.slice(0,this.maxTagCount).map(c=>({nzLabel:c.nzLabel,nzValue:c.nzValue,nzDisabled:c.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:c}));if(this.listOfTopItem.length>this.maxTagCount){let c=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,u=this.listOfTopItem.map(p=>p.nzValue),d={nzLabel:c,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:u.slice(this.maxTagCount)};l.push(d)}this.listOfSlicedItem=l}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{Ke(this.elementRef.nativeElement,"click").pipe(F(this.destroy$)).subscribe(t=>{t.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),Ke(this.elementRef.nativeElement,"keydown").pipe(F(this.destroy$)).subscribe(t=>{if(t.target instanceof HTMLInputElement){let i=t.target.value;t.keyCode===8&&this.mode!=="default"&&!i&&this.listOfTopItem.length>0&&(t.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})})}ngOnDestroy(){this.destroy$.next()}};n.\u0275fac=function(i){return new(i||n)(w(de),w($e),w(ft,9))},n.\u0275cmp=j({type:n,selectors:[["nz-select-top-control"]],viewQuery:function(i,r){if(i&1&&xe($m,5),i&2){let s;ce(s=ue())&&(r.nzSelectSearchComponent=s.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],standalone:!0,features:[oe,K],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(i,r){i&1&&(H(0,0),_(1,aA,3,8,"ng-container",1)(2,cA,3,9,"ng-container",2),B(),_(3,uA,1,1,"nz-select-placeholder",3)),i&2&&(h("ngSwitch",r.mode),f(),h("ngSwitchCase","default"),f(2),h("ngIf",r.isShowPlaceholder))},dependencies:[jn,$m,Wn,Gb,we,Gi,lt,Hb],encapsulation:2,changeDetection:0});let o=n;return o})(),mA=(o,n)=>n&&n.nzLabel?n.nzLabel.toString().toLowerCase().indexOf(o.toLowerCase())>-1:!1,vA="select",Ou=(()=>{let n=class n{set nzShowArrow(t){this._nzShowArrow=t}get nzShowArrow(){return this._nzShowArrow===void 0?this.nzMode==="default":this._nzShowArrow}generateTagItem(t){return{nzValue:t,nzLabel:t,type:"item"}}onItemClick(t){if(this.activatedValue=t,this.nzMode==="default")(this.listOfValue.length===0||!this.compareWith(this.listOfValue[0],t))&&this.updateListOfValue([t]),this.setOpenState(!1);else{let i=this.listOfValue.findIndex(r=>this.compareWith(r,t));if(i!==-1){let r=this.listOfValue.filter((s,a)=>a!==i);this.updateListOfValue(r)}else if(this.listOfValue.length<this.nzMaxMultipleCount){let r=[...this.listOfValue,t];this.updateListOfValue(r)}this.focus(),this.nzAutoClearSearchValue&&this.clearInput()}}onItemDelete(t){let i=this.listOfValue.filter(r=>!this.compareWith(r,t.nzValue));this.updateListOfValue(i),this.clearInput()}updateListOfContainerItem(){let t=this.listOfTagAndTemplateItem.filter(s=>!s.nzHide).filter(s=>!this.nzServerSearch&&this.searchValue?this.nzFilterOption(this.searchValue,s):!0);if(this.nzMode==="tags"&&this.searchValue){let s=this.listOfTagAndTemplateItem.find(a=>a.nzLabel===this.searchValue);if(s)this.activatedValue=s.nzValue;else{let a=this.generateTagItem(this.searchValue);t=[a,...t],this.activatedValue=a.nzValue}}let i=t.find(s=>s.nzLabel===this.searchValue)||t.find(s=>this.compareWith(s.nzValue,this.activatedValue))||t.find(s=>this.compareWith(s.nzValue,this.listOfValue[0]))||t[0];this.activatedValue=i&&i.nzValue||null;let r=[];this.isReactiveDriven?r=[...new Set(this.nzOptions.filter(s=>s.groupLabel).map(s=>s.groupLabel))]:this.listOfNzOptionGroupComponent&&(r=this.listOfNzOptionGroupComponent.map(s=>s.nzLabel)),r.forEach(s=>{let a=t.findIndex(l=>s===l.groupLabel);if(a>-1){let l={groupLabel:s,type:"group",key:s};t.splice(a,0,l)}}),this.listOfContainerItem=[...t],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(t){let r=((s,a)=>a==="default"?s.length>0?s[0]:null:s)(t,this.nzMode);this.value!==r&&(this.listOfValue=t,this.listOfValue$.next(t),this.value=r,this.onChange(this.value))}onTokenSeparate(t){let i=this.listOfTagAndTemplateItem.filter(r=>t.findIndex(s=>s===r.nzLabel)!==-1).map(r=>r.nzValue).filter(r=>this.listOfValue.findIndex(s=>this.compareWith(s,r))===-1);if(this.nzMode==="multiple")this.updateListOfValue([...this.listOfValue,...i]);else if(this.nzMode==="tags"){let r=t.filter(s=>this.listOfTagAndTemplateItem.findIndex(a=>a.nzLabel===s)===-1);this.updateListOfValue([...this.listOfValue,...i,...r])}this.clearInput()}onKeyDown(t){if(this.nzDisabled)return;let i=this.listOfContainerItem.filter(s=>s.type==="item").filter(s=>!s.nzDisabled),r=i.findIndex(s=>this.compareWith(s.nzValue,this.activatedValue));switch(t.keyCode){case 38:if(t.preventDefault(),this.nzOpen&&i.length>0){let s=r>0?r-1:i.length-1;this.activatedValue=i[s].nzValue}break;case 40:if(t.preventDefault(),this.nzOpen&&i.length>0){let s=r<i.length-1?r+1:0;this.activatedValue=i[s].nzValue}else this.setOpenState(!0);break;case 13:t.preventDefault(),this.nzOpen?ht(this.activatedValue)&&r!==-1&&this.onItemClick(this.activatedValue):this.setOpenState(!0);break;case 32:this.nzOpen||(this.setOpenState(!0),t.preventDefault());break;case 9:this.nzSelectOnTab?this.nzOpen&&(t.preventDefault(),ht(this.activatedValue)&&this.onItemClick(this.activatedValue)):this.setOpenState(!1);break;case 27:break;default:this.nzOpen||this.setOpenState(!0)}}setOpenState(t){this.nzOpen!==t&&(this.nzOpen=t,this.nzOpenChange.emit(t),this.onOpenChange(),this.cdr.markForCheck())}onOpenChange(){this.updateCdkConnectedOverlayStatus(),this.nzAutoClearSearchValue&&this.clearInput()}onInputValueChange(t){this.searchValue=t,this.updateListOfContainerItem(),this.nzOnSearch.emit(t),this.updateCdkConnectedOverlayPositions()}onClearSelection(){this.updateListOfValue([])}onClickOutside(t){this.host.nativeElement.contains(t.target)||this.setOpenState(!1)}focus(){this.nzSelectTopControlComponent.focus()}blur(){this.nzSelectTopControlComponent.blur()}onPositionChange(t){let i=Da(t);this.dropDownPosition=i}updateCdkConnectedOverlayStatus(){if(this.platform.isBrowser&&this.originElement.nativeElement){let t=this.triggerWidth;sm(this.requestId),this.requestId=to(()=>{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,t!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){to(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}constructor(t,i,r,s,a,l,c,u,d,p,g,v){this.ngZone=t,this.destroy$=i,this.nzConfigService=r,this.cdr=s,this.host=a,this.renderer=l,this.platform=c,this.focusMonitor=u,this.directionality=d,this.noAnimation=p,this.nzFormStatusService=g,this.nzFormNoStatusService=v,this._nzModuleName=vA,this.nzId=null,this.nzSize="default",this.nzStatus="",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzPlacement=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=mA,this.compareWith=(y,x)=>y===x,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzSelectOnTab=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new O,this.nzScrollToBottom=new O,this.nzOpenChange=new O,this.nzBlur=new O,this.nzFocus=new O,this.listOfValue$=new ct([]),this.listOfTemplateItem$=new ct([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottomLeft",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr",this.positions=[],this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1}writeValue(t){if(this.value!==t){this.value=t;let r=((s,a)=>s==null?[]:a==="default"?[s]:s)(t,this.nzMode);this.listOfValue=r,this.listOfValue$.next(r),this.cdr.markForCheck()}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(t){let{nzOpen:i,nzDisabled:r,nzOptions:s,nzStatus:a,nzPlacement:l}=t;if(i&&this.onOpenChange(),r&&this.nzDisabled&&this.setOpenState(!1),s){this.isReactiveDriven=!0;let u=(this.nzOptions||[]).map(d=>({template:d.label instanceof En?d.label:null,nzTitle:this.getTitle(d.title,d.label),nzLabel:typeof d.label=="string"||typeof d.label=="number"?d.label:null,nzValue:d.value,nzDisabled:d.disabled||!1,nzHide:d.hide||!1,nzCustomContent:d.label instanceof En,groupLabel:d.groupLabel||null,type:"item",key:d.key===void 0?d.value:d.key}));this.listOfTemplateItem$.next(u)}if(a&&this.setStatusStyles(this.nzStatus,this.hasFeedback),l){let{currentValue:c}=l;this.dropDownPosition=c;let u=["bottomLeft","topLeft","bottomRight","topRight"];c&&u.includes(c)?this.positions=[bt[c]]:this.positions=u.map(d=>bt[d])}}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Bt((t,i)=>t.status===i.status&&t.hasFeedback===i.hasFeedback),zl(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:Mn(!1)),We(([{status:t,hasFeedback:i},r])=>({status:r?"":t,hasFeedback:i})),F(this.destroy$)).subscribe(({status:t,hasFeedback:i})=>{this.setStatusStyles(t,i)}),this.focusMonitor.monitor(this.host,!0).pipe(F(this.destroy$)).subscribe(t=>{t?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),Fn([this.listOfValue$,this.listOfTemplateItem$]).pipe(F(this.destroy$)).subscribe(([t,i])=>{let r=t.filter(()=>this.nzMode==="tags").filter(s=>i.findIndex(a=>this.compareWith(a.nzValue,s))===-1).map(s=>this.listOfTopItem.find(a=>this.compareWith(a.nzValue,s))||this.generateTagItem(s));this.listOfTagAndTemplateItem=[...i,...r],this.listOfTopItem=this.listOfValue.map(s=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(a=>this.compareWith(s,a.nzValue))).filter(s=>!!s),this.updateListOfContainerItem()}),this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe(F(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>Ke(this.host.nativeElement,"click").pipe(F(this.destroy$)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))})),this.cdkConnectedOverlay.overlayKeydown.pipe(F(this.destroy$)).subscribe(t=>{t.keyCode===27&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||_t(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe(Ot(!0),on(()=>_t(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(t=>t.changes),...this.listOfNzOptionGroupComponent.map(t=>t.changes)).pipe(Ot(!0))),F(this.destroy$)).subscribe(()=>{let t=this.listOfNzOptionComponent.toArray().map(i=>{let{template:r,nzLabel:s,nzValue:a,nzKey:l,nzDisabled:c,nzHide:u,nzCustomContent:d,groupLabel:p}=i;return{template:r,nzLabel:s,nzValue:a,nzDisabled:c,nzHide:u,nzCustomContent:d,groupLabel:p,nzTitle:this.getTitle(i.nzTitle,i.nzLabel),type:"item",key:l===void 0?a:l}});this.listOfTemplateItem$.next(t),this.cdr.markForCheck()})}ngOnDestroy(){sm(this.requestId),this.focusMonitor.stopMonitoring(this.host)}setStatusStyles(t,i){this.status=t,this.hasFeedback=i,this.cdr.markForCheck(),this.statusCls=vi(this.prefixCls,t,i),Object.keys(this.statusCls).forEach(r=>{this.statusCls[r]?this.renderer.addClass(this.host.nativeElement,r):this.renderer.removeClass(this.host.nativeElement,r)})}getTitle(t,i){let r;return t===void 0?(typeof i=="string"||typeof i=="number")&&(r=i.toString()):(typeof t=="string"||typeof t=="number")&&(r=t.toString()),r}};n.\u0275fac=function(i){return new(i||n)(w($e),w(Pt),w(st),w(fe),w(de),w(He),w(gn),w(Oi),w(Me,8),w(ft,9),w(cn,8),w(_i,8))},n.\u0275cmp=j({type:n,selectors:[["nz-select"]],contentQueries:function(i,r,s){if(i&1&&(Ft(s,zu,5),Ft(s,Eu,5)),i&2){let a;ce(a=ue())&&(r.listOfNzOptionComponent=a),ce(a=ue())&&(r.listOfNzOptionGroupComponent=a)}},viewQuery:function(i,r){if(i&1&&(xe(dr,7,de),xe(oi,7),xe(ih,7),xe(Eu,7,de),xe(ih,7,de)),i&2){let s;ce(s=ue())&&(r.originElement=s.first),ce(s=ue())&&(r.cdkConnectedOverlay=s.first),ce(s=ue())&&(r.nzSelectTopControlComponent=s.first),ce(s=ue())&&(r.nzOptionGroupComponentElement=s.first),ce(s=ue())&&(r.nzSelectTopControlComponentElement=s.first)}},hostAttrs:[1,"ant-select"],hostVars:26,hostBindings:function(i,r){i&2&&k("ant-select-in-form-item",!!r.nzFormStatusService)("ant-select-lg",r.nzSize==="large")("ant-select-sm",r.nzSize==="small")("ant-select-show-arrow",r.nzShowArrow)("ant-select-disabled",r.nzDisabled)("ant-select-show-search",(r.nzShowSearch||r.nzMode!=="default")&&!r.nzDisabled)("ant-select-allow-clear",r.nzAllowClear)("ant-select-borderless",r.nzBorderless)("ant-select-open",r.nzOpen)("ant-select-focused",r.nzOpen||r.focused)("ant-select-single",r.nzMode==="default")("ant-select-multiple",r.nzMode!=="default")("ant-select-rtl",r.dir==="rtl")},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzPlacement:"nzPlacement",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzSelectOnTab:"nzSelectOnTab",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],standalone:!0,features:[Ve([Pt,{provide:zn,useExisting:pn(()=>n),multi:!0}]),oe,K],decls:5,vars:25,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","overlayOutsideClick","detach","positionChange"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon"],["feedbackIconTpl",""],[3,"status",4,"ngIf"],[3,"status"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(i,r){if(i&1&&(C(0,"nz-select-top-control",0,1),A("inputValueChange",function(a){return r.onInputValueChange(a)})("tokenize",function(a){return r.onTokenSeparate(a)})("deleteItem",function(a){return r.onItemDelete(a)})("keydown",function(a){return r.onKeyDown(a)}),S(),_(2,hA,3,5,"nz-select-arrow",2)(3,fA,1,1,"nz-select-clear",3)(4,gA,1,23,"ng-template",4),A("overlayOutsideClick",function(a){return r.onClickOutside(a)})("detach",function(){return r.setOpenState(!1)})("positionChange",function(a){return r.onPositionChange(a)})),i&2){let s=te(1);h("nzId",r.nzId)("open",r.nzOpen)("disabled",r.nzDisabled)("mode",r.nzMode)("@.disabled",!!(r.noAnimation!=null&&r.noAnimation.nzNoAnimation))("nzNoAnimation",r.noAnimation==null?null:r.noAnimation.nzNoAnimation)("maxTagPlaceholder",r.nzMaxTagPlaceholder)("removeIcon",r.nzRemoveIcon)("placeHolder",r.nzPlaceHolder)("maxTagCount",r.nzMaxTagCount)("customTemplate",r.nzCustomTemplate)("tokenSeparators",r.nzTokenSeparators)("showSearch",r.nzShowSearch)("autofocus",r.nzAutoFocus)("listOfTopItem",r.listOfTopItem),f(2),h("ngIf",r.nzShowArrow||r.hasFeedback&&!!r.status),f(),h("ngIf",r.nzAllowClear&&!r.nzDisabled&&r.listOfValue.length),f(),h("cdkConnectedOverlayHasBackdrop",r.nzBackdrop)("cdkConnectedOverlayMinWidth",r.nzDropdownMatchSelectWidth?null:r.triggerWidth)("cdkConnectedOverlayWidth",r.nzDropdownMatchSelectWidth?r.triggerWidth:null)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",r.nzDropdownClassName)("cdkConnectedOverlayOpen",r.nzOpen)("cdkConnectedOverlayPositions",r.positions)}},dependencies:[ih,dr,ft,kb,we,ro,mr,Vb,oi,vr,Nr,Lb,Zt],encapsulation:2,data:{animation:[Mo]},changeDetection:0});let o=n;return N([De()],o.prototype,"nzSuffixIcon",void 0),N([W()],o.prototype,"nzAllowClear",void 0),N([De(),W()],o.prototype,"nzBorderless",void 0),N([W()],o.prototype,"nzShowSearch",void 0),N([W()],o.prototype,"nzLoading",void 0),N([W()],o.prototype,"nzAutoFocus",void 0),N([W()],o.prototype,"nzAutoClearSearchValue",void 0),N([W()],o.prototype,"nzServerSearch",void 0),N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzOpen",void 0),N([W()],o.prototype,"nzSelectOnTab",void 0),N([De(),W()],o.prototype,"nzBackdrop",void 0),o})(),Ls=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Ou,Lb,Nb,ih,$m,Gb,Vb,kb,Hb,Ab]});let o=n;return o})();var yA=["nz-pagination-item",""];function CA(o,n){if(o&1&&(C(0,"a"),Y(1),S()),o&2){let e=m().page;f(),ye(e)}}function _A(o,n){o&1&&R(0,"span",9)}function SA(o,n){o&1&&R(0,"span",10)}function wA(o,n){if(o&1&&(C(0,"button",6),H(1,2),_(2,_A,1,0,"span",7)(3,SA,1,0,"span",8),B(),S()),o&2){let e=m(2);h("disabled",e.disabled),f(),h("ngSwitch",e.direction),f(),h("ngSwitchCase","rtl")}}function bA(o,n){o&1&&R(0,"span",10)}function TA(o,n){o&1&&R(0,"span",9)}function EA(o,n){if(o&1&&(C(0,"button",6),H(1,2),_(2,bA,1,0,"span",11)(3,TA,1,0,"span",12),B(),S()),o&2){let e=m(2);h("disabled",e.disabled),f(),h("ngSwitch",e.direction),f(),h("ngSwitchCase","rtl")}}function xA(o,n){o&1&&R(0,"span",20)}function zA(o,n){o&1&&R(0,"span",21)}function OA(o,n){if(o&1&&(H(0,2),_(1,xA,1,0,"span",18)(2,zA,1,0,"span",19),B()),o&2){let e=m(4);h("ngSwitch",e.direction),f(),h("ngSwitchCase","rtl")}}function DA(o,n){o&1&&R(0,"span",21)}function RA(o,n){o&1&&R(0,"span",20)}function IA(o,n){if(o&1&&(H(0,2),_(1,DA,1,0,"span",22)(2,RA,1,0,"span",23),B()),o&2){let e=m(4);h("ngSwitch",e.direction),f(),h("ngSwitchCase","rtl")}}function PA(o,n){if(o&1&&(C(0,"div",15),H(1,2),_(2,OA,3,2,"ng-container",16)(3,IA,3,2,"ng-container",16),B(),C(4,"span",17),Y(5,"\u2022\u2022\u2022"),S()()),o&2){let e=m(2).$implicit;f(),h("ngSwitch",e),f(),h("ngSwitchCase","prev_5"),f(),h("ngSwitchCase","next_5")}}function MA(o,n){if(o&1&&(H(0),C(1,"a",13),_(2,PA,6,3,"div",14),S(),B()),o&2){let e=m().$implicit;f(),h("ngSwitch",e)}}function FA(o,n){if(o&1&&(H(0,2),_(1,CA,2,1,"a",3)(2,wA,4,3,"button",4)(3,EA,4,3,"button",4)(4,MA,3,1,"ng-container",5),B()),o&2){let e=n.$implicit;h("ngSwitch",e),f(),h("ngSwitchCase","page"),f(),h("ngSwitchCase","prev"),f(),h("ngSwitchCase","next")}}function AA(o,n){}var NA=(o,n)=>({$implicit:o,page:n}),LA=["nz-pagination-options",""];function kA(o,n){if(o&1&&R(0,"nz-option",4),o&2){let e=n.$implicit;h("nzLabel",e.label)("nzValue",e.value)}}function VA(o,n){if(o&1){let e=Q();C(0,"nz-select",2),A("ngModelChange",function(i){I(e);let r=m();return P(r.onPageSizeChange(i))}),_(1,kA,1,2,"nz-option",3),S()}if(o&2){let e=m();h("nzDisabled",e.disabled)("nzSize",e.nzSize)("ngModel",e.pageSize),f(),h("ngForOf",e.listOfPageSizeOption)("ngForTrackBy",e.trackByOption)}}function GA(o,n){if(o&1){let e=Q();C(0,"div",5),Y(1),C(2,"input",6),A("keydown.enter",function(i){I(e);let r=m();return P(r.jumpToPageViaInput(i))}),S(),Y(3),S()}if(o&2){let e=m();f(),Ne(" ",e.locale.jump_to," "),f(),h("disabled",e.disabled),f(),Ne(" ",e.locale.page," ")}}var Bb=["containerTemplate"];function HA(o,n){}var BA=(o,n)=>({$implicit:o,range:n});function $A(o,n){if(o&1&&(C(0,"li",4),_(1,HA,0,0,"ng-template",5),S()),o&2){let e=m(2);f(),h("ngTemplateOutlet",e.showTotal)("ngTemplateOutletContext",ri(2,BA,e.total,e.ranges))}}function jA(o,n){if(o&1){let e=Q();C(0,"li",6),A("gotoIndex",function(i){I(e);let r=m(2);return P(r.jumpPage(i))})("diffIndex",function(i){I(e);let r=m(2);return P(r.jumpDiff(i))}),S()}if(o&2){let e=n.$implicit,t=m(2);h("locale",t.locale)("type",e.type)("index",e.index)("disabled",!!e.disabled)("itemRender",t.itemRender)("active",t.pageIndex===e.index)("direction",t.dir)}}function WA(o,n){if(o&1){let e=Q();C(0,"li",7),A("pageIndexChange",function(i){I(e);let r=m(2);return P(r.onPageIndexChange(i))})("pageSizeChange",function(i){I(e);let r=m(2);return P(r.onPageSizeChange(i))}),S()}if(o&2){let e=m(2);h("total",e.total)("locale",e.locale)("disabled",e.disabled)("nzSize",e.nzSize)("showSizeChanger",e.showSizeChanger)("showQuickJumper",e.showQuickJumper)("pageIndex",e.pageIndex)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)}}function UA(o,n){if(o&1&&(C(0,"ul"),_(1,$A,2,5,"li",1)(2,jA,1,7,"li",2)(3,WA,1,9,"li",3),S()),o&2){let e=m();f(),h("ngIf",e.showTotal),f(),h("ngForOf",e.listOfPageItem)("ngForTrackBy",e.trackByPageItem),f(),h("ngIf",e.showQuickJumper||e.showSizeChanger)}}function KA(o,n){if(o&1){let e=Q();C(0,"ul")(1,"li",1),A("click",function(){I(e);let i=m();return P(i.prePage())}),S(),C(2,"li",2)(3,"input",3),A("keydown.enter",function(i){I(e);let r=m();return P(r.jumpToPageViaInput(i))}),S(),C(4,"span",4),Y(5,"/"),S(),Y(6),S(),C(7,"li",5),A("click",function(){I(e);let i=m();return P(i.nextPage())}),S()()}if(o&2){let e=m();f(),h("disabled",e.isFirstIndex)("direction",e.dir)("itemRender",e.itemRender),ze("title",e.locale.prev_page),f(),ze("title",e.pageIndex+"/"+e.lastIndex),f(),h("disabled",e.disabled)("value",e.pageIndex),f(3),Ne(" ",e.lastIndex," "),f(),h("disabled",e.isLastIndex)("direction",e.dir)("itemRender",e.itemRender),ze("title",e.locale==null?null:e.locale.next_page)}}function qA(o,n){}function YA(o,n){if(o&1&&(H(0),_(1,qA,0,0,"ng-template",6),B()),o&2){m(2);let e=te(2);f(),h("ngTemplateOutlet",e.template)}}function QA(o,n){if(o&1&&(H(0),_(1,YA,2,1,"ng-container",5),B()),o&2){let e=m(),t=te(4);f(),h("ngIf",e.nzSimple)("ngIfElse",t.template)}}var Wm=(()=>{let n=class n{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new O,this.gotoIndex=new O,this.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(t){let{locale:i,index:r,type:s}=t;(i||r||s)&&(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])}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(i,r){i&1&&A("click",function(){return r.clickItem()}),i&2&&(ze("title",r.title),k("ant-pagination-prev",r.type==="prev")("ant-pagination-next",r.type==="next")("ant-pagination-item",r.type==="page")("ant-pagination-jump-prev",r.type==="prev_5")("ant-pagination-jump-prev-custom-icon",r.type==="prev_5")("ant-pagination-jump-next",r.type==="next_5")("ant-pagination-jump-next-custom-icon",r.type==="next_5")("ant-pagination-disabled",r.disabled)("ant-pagination-item-active",r.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},standalone:!0,features:[oe,K],attrs:yA,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(i,r){if(i&1&&_(0,FA,5,4,"ng-template",null,0,_e)(2,AA,0,0,"ng-template",1),i&2){let s=te(1);f(2),h("ngTemplateOutlet",r.itemRender||s)("ngTemplateOutletContext",ri(2,NA,r.type,r.index))}},dependencies:[jn,Wn,Ge,Fe,Gi,Be],encapsulation:2,changeDetection:0});let o=n;return o})(),$b=(()=>{let n=class n{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new O,this.pageSizeChange=new O,this.listOfPageSizeOption=[]}onPageSizeChange(t){this.pageSize!==t&&this.pageSizeChange.next(t)}jumpToPageViaInput(t){let i=t.target,r=Math.floor(em(i.value,this.pageIndex));this.pageIndexChange.next(r),i.value=""}trackByOption(t,i){return i.value}ngOnChanges(t){let{pageSize:i,pageSizeOptions:r,locale:s}=t;(i||r||s)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(a=>({value:a,label:`${a} ${this.locale.items_per_page}`})))}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,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"},standalone:!0,features:[oe,K],attrs:LA,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(i,r){i&1&&_(0,VA,2,5,"nz-select",0)(1,GA,4,3,"div",1),i&2&&(h("ngIf",r.showSizeChanger),f(),h("ngIf",r.showQuickJumper))},dependencies:[Ls,zu,Ou,we,nn,Kt,Rt,lt],encapsulation:2,changeDetection:0});let o=n;return o})(),jb=(()=>{let n=class n{constructor(t,i,r,s){this.cdr=t,this.renderer=i,this.elementRef=r,this.directionality=s,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new O,this.pageSizeChange=new O,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new J,i.removeChild(i.parentNode(r.nativeElement),r.nativeElement)}ngOnInit(){this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){this.dir==="rtl"?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(t){this.onPageIndexChange(t)}jumpDiff(t){this.jumpPage(this.pageIndex+t)}trackByPageItem(t,i){return`${i.type}-${i.index}`}onPageIndexChange(t){this.pageIndexChange.next(t)}onPageSizeChange(t){this.pageSizeChange.next(t)}getLastIndex(t,i){return Math.ceil(t/i)}buildIndexes(){let t=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,t)}getListOfPageItem(t,i){let r=a=>{let l={type:"prev",disabled:t===1},c={type:"next",disabled:t===i};return[l,...a,c]},s=(a,l)=>{let c=[];for(let u=a;u<=l;u++)c.push({index:u,type:"page"});return c};return i<=9?r(s(1,i)):r(((l,c)=>{let u=[],d={type:"prev_5"},p={type:"next_5"},g=s(1,1),v=s(i,i);if(l<5)u=[...s(2,l===4?6:5),p];else if(l<c-3)u=[d,...s(l-2,l+2),p];else{let y=l===c-3?c-5:c-4;u=[d,...s(y,c-1)]}return[...g,...u,...v]})(t,i))}ngOnChanges(t){let{pageIndex:i,pageSize:r,total:s}=t;(i||r||s)&&(this.ranges=[(this.pageIndex-1)*this.pageSize+1,Math.min(this.pageIndex*this.pageSize,this.total)],this.buildIndexes())}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(He),w(de),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-pagination-default"]],viewQuery:function(i,r){if(i&1&&xe(Bb,7),i&2){let s;ce(s=ue())&&(r.template=s.first)}},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"},standalone:!0,features:[oe,K],decls:2,vars:0,consts:[["containerTemplate",""],["class","ant-pagination-total-text",4,"ngIf"],["nz-pagination-item","",3,"locale","type","index","disabled","itemRender","active","direction","gotoIndex","diffIndex",4,"ngFor","ngForOf","ngForTrackBy"],["nz-pagination-options","",3,"total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange",4,"ngIf"],[1,"ant-pagination-total-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-pagination-item","",3,"locale","type","index","disabled","itemRender","active","direction","gotoIndex","diffIndex"],["nz-pagination-options","",3,"total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"]],template:function(i,r){i&1&&_(0,UA,4,4,"ng-template",null,0,_e)},dependencies:[Be,lt,we,Wm,$b],encapsulation:2,changeDetection:0});let o=n;return o})(),Wb=(()=>{let n=class n{constructor(t,i,r,s){this.cdr=t,this.renderer=i,this.elementRef=r,this.directionality=s,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new O,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new J,i.removeChild(i.parentNode(r.nativeElement),r.nativeElement)}ngOnInit(){this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){this.dir==="rtl"?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(t){let i=t.target,r=em(i.value,this.pageIndex);this.onPageIndexChange(r),i.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(t){this.pageIndexChange.next(t)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=this.pageIndex===1,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(t){let{pageIndex:i,total:r,pageSize:s}=t;(i||r||s)&&this.updateBindingValue()}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(He),w(de),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-pagination-simple"]],viewQuery:function(i,r){if(i&1&&xe(Bb,7),i&2){let s;ce(s=ue())&&(r.template=s.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},standalone:!0,features:[oe,K],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(i,r){i&1&&_(0,KA,8,12,"ng-template",null,0,_e)},dependencies:[Wm],encapsulation:2,changeDetection:0});let o=n;return o})(),XA="pagination",Um=(()=>{let n=class n{validatePageIndex(t,i){return t>i?i:t<1?1:t}onPageIndexChange(t){let i=this.getLastIndex(this.nzTotal,this.nzPageSize),r=this.validatePageIndex(t,i);r!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=r,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(t){this.nzPageSize=t,this.nzPageSizeChange.emit(t);let i=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>i&&this.onPageIndexChange(i)}onTotalChange(t){let i=this.getLastIndex(t,this.nzPageSize);this.nzPageIndex>i&&Promise.resolve().then(()=>{this.onPageIndexChange(i),this.cdr.markForCheck()})}getLastIndex(t,i){return Math.ceil(t/i)}constructor(t,i,r,s,a){this.i18n=t,this.cdr=i,this.breakpointService=r,this.nzConfigService=s,this.directionality=a,this._nzModuleName=XA,this.nzPageSizeChange=new O,this.nzPageIndexChange=new O,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new J,this.total$=new tn(1)}ngOnInit(){this.i18n.localeChange.pipe(F(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe(F(this.destroy$)).subscribe(t=>{this.onTotalChange(t)}),this.breakpointService.subscribe(xa).pipe(F(this.destroy$)).subscribe(t=>{this.nzResponsive&&(this.size=t===Rp.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(t){let{nzHideOnSinglePage:i,nzTotal:r,nzPageSize:s,nzSize:a}=t;r&&this.total$.next(this.nzTotal),(i||r||s)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),a&&(this.size=a.currentValue)}};n.\u0275fac=function(i){return new(i||n)(w(Di),w(fe),w(Ip),w(st),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(i,r){i&2&&k("ant-pagination-simple",r.nzSimple)("ant-pagination-disabled",r.nzDisabled)("mini",!r.nzSimple&&r.size==="small")("ant-pagination-rtl",r.dir==="rtl")},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],standalone:!0,features:[oe,K],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&(_(0,QA,2,2,"ng-container",0),C(1,"nz-pagination-simple",1,2),A("pageIndexChange",function(a){return r.onPageIndexChange(a)}),S(),C(3,"nz-pagination-default",3,4),A("pageIndexChange",function(a){return r.onPageIndexChange(a)})("pageSizeChange",function(a){return r.onPageSizeChange(a)}),S()),i&2&&(h("ngIf",r.showPagination),f(),h("disabled",r.nzDisabled)("itemRender",r.nzItemRender)("locale",r.locale)("pageSize",r.nzPageSize)("total",r.nzTotal)("pageIndex",r.nzPageIndex),f(2),h("nzSize",r.size)("itemRender",r.nzItemRender)("showTotal",r.nzShowTotal)("disabled",r.nzDisabled)("locale",r.locale)("showSizeChanger",r.nzShowSizeChanger)("showQuickJumper",r.nzShowQuickJumper)("total",r.nzTotal)("pageIndex",r.nzPageIndex)("pageSize",r.nzPageSize)("pageSizeOptions",r.nzPageSizeOptions))},dependencies:[we,Be,Wb,jb],encapsulation:2,changeDetection:0});let o=n;return N([De()],o.prototype,"nzSize",void 0),N([De()],o.prototype,"nzPageSizeOptions",void 0),N([De(),W()],o.prototype,"nzShowSizeChanger",void 0),N([De(),W()],o.prototype,"nzShowQuickJumper",void 0),N([De(),W()],o.prototype,"nzSimple",void 0),N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzResponsive",void 0),N([W()],o.prototype,"nzHideOnSinglePage",void 0),N([ci()],o.prototype,"nzTotal",void 0),N([ci()],o.prototype,"nzPageIndex",void 0),N([ci()],o.prototype,"nzPageSize",void 0),o})(),Ub=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Um,Wb,$b,Wm,jb]});let o=n;return o})();function JA(o,n){o&1&&(C(0,"span",3),R(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),S())}function eN(o,n){}function tN(o,n){if(o&1&&(C(0,"div",8),Y(1),S()),o&2){let e=m(2);f(),ye(e.nzTip)}}function nN(o,n){if(o&1&&(C(0,"div")(1,"div",5),_(2,eN,0,0,"ng-template",6)(3,tN,2,1,"div",7),S()()),o&2){let e=m(),t=te(1);f(),k("ant-spin-rtl",e.dir==="rtl")("ant-spin-spinning",e.isLoading)("ant-spin-lg",e.nzSize==="large")("ant-spin-sm",e.nzSize==="small")("ant-spin-show-text",e.nzTip),f(),h("ngTemplateOutlet",e.nzIndicator||t),f(),h("ngIf",e.nzTip)}}function iN(o,n){if(o&1&&(C(0,"div",9),Ie(1),S()),o&2){let e=m();k("ant-spin-blur",e.isLoading)}}var rN=["*"],Kb="spin",qb=(()=>{let n=class n{constructor(t,i,r){this.nzConfigService=t,this.cdr=i,this.directionality=r,this._nzModuleName=Kb,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new J,this.spinning$=new ct(this.nzSpinning),this.delay$=new tn(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){this.delay$.pipe(Ot(this.nzDelay),Bt(),on(i=>i===0?this.spinning$:this.spinning$.pipe(mS(r=>nu(r?i:0)))),F(this.destroy$)).subscribe(i=>{this.isLoading=i,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent(Kb).pipe(F(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change?.pipe(F(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(t){let{nzSpinning:i,nzDelay:r}=t;i&&this.spinning$.next(this.nzSpinning),r&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(st),w(fe),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-spin-nested-loading",!r.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],standalone:!0,features:[oe,K],ngContentSelectors:rN,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(i,r){i&1&&(Pe(),_(0,JA,5,0,"ng-template",null,0,_e)(2,nN,4,12,"div",1)(3,iN,2,2,"div",2)),i&2&&(f(2),h("ngIf",r.isLoading),f(),h("ngIf",!r.nzSimple))},dependencies:[we,Be],encapsulation:2});let o=n;return N([De()],o.prototype,"nzIndicator",void 0),N([ci()],o.prototype,"nzDelay",void 0),N([W()],o.prototype,"nzSimple",void 0),N([W()],o.prototype,"nzSpinning",void 0),o})(),ah=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();var sN=(()=>{let n=class n{create(t){return typeof ResizeObserver>"u"?null:new ResizeObserver(t)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})(),ds=(()=>{let n=class n{constructor(t){this.nzResizeObserverFactory=t,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((t,i)=>this.cleanupObserver(i))}observe(t){let i=YS(t);return new sp(r=>{let a=this.observeElement(i).subscribe(r);return()=>{a.unsubscribe(),this.unobserveElement(i)}})}observeElement(t){if(this.observedElements.has(t))this.observedElements.get(t).count++;else{let i=new J,r=this.nzResizeObserverFactory.create(s=>i.next(s));r&&r.observe(t),this.observedElements.set(t,{observer:r,stream:i,count:1})}return this.observedElements.get(t).stream}unobserveElement(t){this.observedElements.has(t)&&(this.observedElements.get(t).count--,this.observedElements.get(t).count||this.cleanupObserver(t))}cleanupObserver(t){if(this.observedElements.has(t)){let{observer:i,stream:r}=this.observedElements.get(t);i&&i.disconnect(),r.complete(),this.observedElements.delete(t)}}};n.\u0275fac=function(i){return new(i||n)(nt(sN))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();var ks=["*"];function aN(o,n){}function lN(o,n){if(o&1){let e=Q();C(0,"label",15),A("ngModelChange",function(){I(e);let i=m().$implicit,r=m(2);return P(r.check(i))}),S()}if(o&2){let e=m().$implicit;h("ngModel",e.checked)}}function cN(o,n){if(o&1){let e=Q();C(0,"label",16),A("ngModelChange",function(){I(e);let i=m().$implicit,r=m(2);return P(r.check(i))}),S()}if(o&2){let e=m().$implicit;h("ngModel",e.checked)}}function uN(o,n){if(o&1){let e=Q();C(0,"li",12),A("click",function(){let r=I(e).$implicit,s=m(2);return P(s.check(r))}),_(1,lN,1,1,"label",13)(2,cN,1,1,"label",14),C(3,"span"),Y(4),S()()}if(o&2){let e=n.$implicit,t=m(2);h("nzSelected",e.checked),f(),h("ngIf",!t.filterMultiple),f(),h("ngIf",t.filterMultiple),f(2),ye(e.text)}}function dN(o,n){if(o&1){let e=Q();H(0),C(1,"nz-filter-trigger",3),A("nzVisibleChange",function(i){I(e);let r=m();return P(r.onVisibleChange(i))}),R(2,"span",4),S(),C(3,"nz-dropdown-menu",null,5)(5,"div",6)(6,"ul",7),_(7,uN,5,4,"li",8),S(),C(8,"div",9)(9,"button",10),A("click",function(){I(e);let i=m();return P(i.reset())}),Y(10),S(),C(11,"button",11),A("click",function(){I(e);let i=m();return P(i.confirm())}),Y(12),S()()()(),B()}if(o&2){let e=te(4),t=m();f(),h("nzVisible",t.isVisible)("nzActive",t.isChecked)("nzDropdownMenu",e),f(6),h("ngForOf",t.listOfParsedFilter)("ngForTrackBy",t.trackByValue),f(2),h("disabled",!t.isChecked),f(),Ne(" ",t.locale.filterReset," "),f(2),ye(t.locale.filterConfirm)}}function pN(o,n){if(o&1){let e=Q();C(0,"label",2),A("ngModelChange",function(i){I(e);let r=m();return P(r.onCheckedChange(i))}),S()}if(o&2){let e=m();k("ant-table-selection-select-all-custom",e.showRowSelection),h("ngModel",e.checked)("nzDisabled",e.disabled)("nzIndeterminate",e.indeterminate),ze("aria-label",e.label)}}function hN(o,n){if(o&1){let e=Q();C(0,"li",9),A("click",function(){let r=I(e).$implicit;return P(r.onSelect())}),Y(1),S()}if(o&2){let e=n.$implicit;f(),Ne(" ",e.text," ")}}function fN(o,n){if(o&1&&(C(0,"div",3)(1,"span",4),R(2,"span",5),S(),C(3,"nz-dropdown-menu",null,6)(5,"ul",7),_(6,hN,2,1,"li",8),S()()()),o&2){let e=te(4),t=m();f(),h("nzDropdownMenu",e),f(5),h("ngForOf",t.listOfSelections)}}function gN(o,n){}function mN(o,n){if(o&1&&R(0,"span",6),o&2){let e=m();k("active",e.sortOrder==="ascend")}}function vN(o,n){if(o&1&&R(0,"span",7),o&2){let e=m();k("active",e.sortOrder==="descend")}}var yN=["nzChecked",""];function CN(o,n){if(o&1){let e=Q();C(0,"button",5),A("expandChange",function(i){I(e);let r=m(2);return P(r.onExpandChange(i))}),S()}if(o&2){let e=m(2);h("expand",e.nzExpand)("spaceMode",!e.nzShowExpand)}}function _N(o,n){}function SN(o,n){if(o&1&&(H(0),_(1,_N,0,0,"ng-template",6),B()),o&2){let e=m(2);f(),h("ngTemplateOutlet",e.nzExpandIcon)}}function wN(o,n){if(o&1&&(H(0),R(1,"nz-row-indent",2),_(2,CN,1,2,"ng-template",null,3,_e)(4,SN,2,1,"ng-container",4),B()),o&2){let e=te(3),t=m();f(),h("indentSize",t.nzIndentSize),f(3),h("ngIf",t.nzExpandIcon)("ngIfElse",e)}}function bN(o,n){if(o&1){let e=Q();C(0,"label",7),A("ngModelChange",function(i){I(e);let r=m();return P(r.onCheckedChange(i))}),S()}if(o&2){let e=m();h("nzDisabled",e.nzDisabled)("ngModel",e.nzChecked)("nzIndeterminate",e.nzIndeterminate),ze("aria-label",e.nzLabel)}}var TN=["nzColumnKey",""];function EN(o,n){if(o&1){let e=Q();C(0,"nz-table-filter",5),A("filterChange",function(i){I(e);let r=m();return P(r.onFilterValueChange(i))}),S()}if(o&2){let e=m(),t=te(2),i=te(4);h("contentTemplate",t)("extraTemplate",i)("customFilter",e.nzCustomFilter)("filterMultiple",e.nzFilterMultiple)("listOfFilter",e.nzFilters)}}function xN(o,n){}function zN(o,n){if(o&1&&_(0,xN,0,0,"ng-template",6),o&2){let e=m(),t=te(6),i=te(8);h("ngTemplateOutlet",e.nzShowSort?t:i)}}function ON(o,n){o&1&&(Ie(0),Ie(1,1))}function DN(o,n){if(o&1&&R(0,"nz-table-sorters",7),o&2){let e=m(),t=te(8);h("sortOrder",e.sortOrder)("sortDirections",e.sortDirections)("contentTemplate",t)}}function RN(o,n){o&1&&Ie(0,2)}var IN=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],PN=["[nz-th-extra]","nz-filter-trigger","*"],MN=["nzSelections",""],FN=["nz-table-content",""];function AN(o,n){if(o&1&&R(0,"col"),o&2){let e=n.$implicit;Re("width",e)("min-width",e)}}function NN(o,n){}function LN(o,n){if(o&1&&(C(0,"thead",3),_(1,NN,0,0,"ng-template",2),S()),o&2){let e=m();f(),h("ngTemplateOutlet",e.theadTemplate)}}function kN(o,n){}var Qb=["tdElement"],VN=["nz-table-fixed-row",""];function GN(o,n){}function HN(o,n){if(o&1&&(C(0,"div",4),Xn(1,"async"),_(2,GN,0,0,"ng-template",5),S()),o&2){let e=m(),t=te(5);Re("width",Vi(1,3,e.hostWidth$),"px"),f(2),h("ngTemplateOutlet",t)}}function BN(o,n){o&1&&Ie(0)}var $N=["tableHeaderElement"],jN=["tableBodyElement"];function WN(o,n){if(o&1&&(C(0,"div",7,8),R(2,"table",9),S()),o&2){let e=m(2);h("ngStyle",e.bodyStyleMap),f(2),h("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("contentTemplate",e.contentTemplate)}}function UN(o,n){}var KN=(o,n)=>({$implicit:o,index:n});function qN(o,n){if(o&1&&(H(0),_(1,UN,0,0,"ng-template",13),B()),o&2){let e=n.$implicit,t=n.index,i=m(3);f(),h("ngTemplateOutlet",i.virtualTemplate)("ngTemplateOutletContext",ri(2,KN,e,t))}}function YN(o,n){if(o&1&&(C(0,"cdk-virtual-scroll-viewport",10,8)(2,"table",11)(3,"tbody"),_(4,qN,2,5,"ng-container",12),S()()()),o&2){let e=m(2);Re("height",e.data.length?e.scrollY:e.noDateVirtualHeight),h("itemSize",e.virtualItemSize)("maxBufferPx",e.virtualMaxBufferPx)("minBufferPx",e.virtualMinBufferPx),f(2),h("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth),f(2),h("cdkVirtualForOf",e.data)("cdkVirtualForTrackBy",e.virtualForTrackBy)}}function QN(o,n){if(o&1&&(H(0),C(1,"div",2,3),R(3,"table",4),S(),_(4,WN,3,4,"div",5)(5,YN,5,9,"cdk-virtual-scroll-viewport",6),B()),o&2){let e=m();f(),h("ngStyle",e.headerStyleMap),f(2),h("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate),f(),h("ngIf",!e.virtualTemplate),f(),h("ngIf",e.virtualTemplate)}}function XN(o,n){if(o&1&&(C(0,"div",14,8),R(2,"table",15),S()),o&2){let e=m();h("ngStyle",e.bodyStyleMap),f(2),h("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",e.contentTemplate)}}function ZN(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m();f(),ye(e.title)}}function JN(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m();f(),ye(e.footer)}}function eL(o,n){}function tL(o,n){if(o&1&&(H(0),_(1,eL,0,0,"ng-template",10),B()),o&2){m();let e=te(11);f(),h("ngTemplateOutlet",e)}}function nL(o,n){if(o&1&&R(0,"nz-table-title-footer",11),o&2){let e=m();h("title",e.nzTitle)}}function iL(o,n){if(o&1&&R(0,"nz-table-inner-scroll",12),o&2){let e=m(),t=te(13),i=te(3);h("data",e.data)("scrollX",e.scrollX)("scrollY",e.scrollY)("contentTemplate",t)("listOfColWidth",e.listOfAutoColWidth)("theadTemplate",e.theadTemplate)("verticalScrollBarWidth",e.verticalScrollBarWidth)("virtualTemplate",e.nzVirtualScrollDirective?e.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",e.nzVirtualItemSize)("virtualMaxBufferPx",e.nzVirtualMaxBufferPx)("virtualMinBufferPx",e.nzVirtualMinBufferPx)("tableMainElement",i)("virtualForTrackBy",e.nzVirtualForTrackBy)}}function rL(o,n){if(o&1&&R(0,"nz-table-inner-default",13),o&2){let e=m(),t=te(13);h("tableLayout",e.nzTableLayout)("listOfColWidth",e.listOfManualColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",t)}}function oL(o,n){if(o&1&&R(0,"nz-table-title-footer",14),o&2){let e=m();h("footer",e.nzFooter)}}function sL(o,n){}function aL(o,n){if(o&1&&(H(0),_(1,sL,0,0,"ng-template",10),B()),o&2){m();let e=te(11);f(),h("ngTemplateOutlet",e)}}function lL(o,n){if(o&1){let e=Q();C(0,"nz-pagination",16),A("nzPageSizeChange",function(i){I(e);let r=m(2);return P(r.onPageSizeChange(i))})("nzPageIndexChange",function(i){I(e);let r=m(2);return P(r.onPageIndexChange(i))}),S()}if(o&2){let e=m(2);h("hidden",!e.showPagination)("nzShowSizeChanger",e.nzShowSizeChanger)("nzPageSizeOptions",e.nzPageSizeOptions)("nzItemRender",e.nzItemRender)("nzShowQuickJumper",e.nzShowQuickJumper)("nzHideOnSinglePage",e.nzHideOnSinglePage)("nzShowTotal",e.nzShowTotal)("nzSize",e.nzPaginationType==="small"?"small":e.nzSize==="default"?"default":"small")("nzPageSize",e.nzPageSize)("nzTotal",e.nzTotal)("nzSimple",e.nzSimple)("nzPageIndex",e.nzPageIndex)}}function cL(o,n){if(o&1&&_(0,lL,1,12,"nz-pagination",15),o&2){let e=m();h("ngIf",e.nzShowPagination&&e.data.length)}}function uL(o,n){o&1&&Ie(0)}var dL=["nz-table-measure-row",""];function pL(o,n){o&1&&R(0,"td",1,2)}function hL(o,n){if(o&1){let e=Q();C(0,"tr",3),A("listOfAutoWidth",function(i){I(e);let r=m(2);return P(r.onListOfAutoWidthChange(i))}),S()}if(o&2){let e=m().ngIf;h("listOfMeasureColumn",e)}}function fL(o,n){if(o&1&&(H(0),_(1,hL,1,1,"tr",2),B()),o&2){let e=n.ngIf,t=m();f(),h("ngIf",t.isInsideTable&&e.length)}}function gL(o,n){if(o&1&&(C(0,"tr",4),R(1,"nz-embed-empty",5),Xn(2,"async"),S()),o&2){let e=m();f(),h("specificContent",Vi(2,1,e.noResult$))}}var mL=["contentTemplate"];function vL(o,n){o&1&&Ie(0)}function yL(o,n){}function CL(o,n){if(o&1&&(H(0),_(1,yL,0,0,"ng-template",2),B()),o&2){m();let e=te(1);f(),h("ngTemplateOutlet",e)}}var _L="filterTrigger",Xb=(()=>{let n=class n{onVisibleChange(t){this.nzVisible=t,this.nzVisibleChange.next(t)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}constructor(t,i,r,s){this.nzConfigService=t,this.ngZone=i,this.cdr=r,this.destroy$=s,this._nzModuleName=_L,this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new O}ngOnInit(){this.ngZone.runOutsideAngular(()=>{Ke(this.nzDropdown.nativeElement,"click").pipe(F(this.destroy$)).subscribe(t=>{t.stopPropagation()})})}};n.\u0275fac=function(i){return new(i||n)(w(st),w($e),w(fe),w(Pt))},n.\u0275cmp=j({type:n,selectors:[["nz-filter-trigger"]],viewQuery:function(i,r){if(i&1&&xe(yr,7,de),i&2){let s;ce(s=ue())&&(r.nzDropdown=s.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],standalone:!0,features:[Ve([Pt]),K],ngContentSelectors:ks,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(i,r){i&1&&(Pe(),C(0,"span",0),A("nzVisibleChange",function(a){return r.onVisibleChange(a)}),Ie(1),S()),i&2&&(k("active",r.nzActive)("ant-table-filter-open",r.nzVisible),h("nzBackdrop",r.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",r.nzDropdownMenu)("nzVisible",r.nzVisible))},dependencies:[Lr,yr],encapsulation:2,changeDetection:0});let o=n;return N([De(),W()],o.prototype,"nzBackdrop",void 0),o})(),Zb=(()=>{let n=class n{trackByValue(t,i){return i.value}check(t){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(i=>i===t?ot(V({},i),{checked:!t.checked}):i),t.checked=!t.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(i=>ot(V({},i),{checked:i===t})),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(t){this.isVisible=t,t?this.listOfChecked=this.listOfParsedFilter.filter(i=>i.checked).map(i=>i.value):this.emitFilterData()}emitFilterData(){let t=this.listOfParsedFilter.filter(i=>i.checked).map(i=>i.value);QS(this.listOfChecked,t)||(this.filterMultiple?this.filterChange.emit(t):this.filterChange.emit(t.length>0?t[0]:null))}parseListOfFilter(t,i){return t.map(r=>{let s=i?!1:!!r.byDefault;return{text:r.text,value:r.value,checked:s}})}getCheckedStatus(t){return t.some(i=>i.checked)}constructor(t,i){this.cdr=t,this.i18n=i,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new O,this.destroy$=new J,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}ngOnInit(){this.i18n.localeChange.pipe(F(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(t){let{listOfFilter:i}=t;i&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(Di))},n.\u0275cmp=j({type:n,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[oe,K],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(i,r){i&1&&(C(0,"span",0),_(1,aN,0,0,"ng-template",1),S(),_(2,dN,13,8,"ng-container",2)),i&2&&(f(),h("ngTemplateOutlet",r.contentTemplate),f(),h("ngIf",!r.customFilter)("ngIfElse",r.extraTemplate))},dependencies:[Be,we,Xb,Ge,Fe,Lr,cs,co,us,lt,ls,$i,Bi,nn,Kt,Rt,Hi,eo,yi,hr],encapsulation:2,changeDetection:0});let o=n;return o})(),SL=(()=>{let n=class n{constructor(){this.expand=!1,this.spaceMode=!1,this.expandChange=new O}onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(i,r){i&1&&A("click",function(){return r.onHostClick()}),i&2&&(Ug("type","button"),k("ant-table-row-expand-icon-expanded",!r.spaceMode&&r.expand===!0)("ant-table-row-expand-icon-collapsed",!r.spaceMode&&r.expand===!1)("ant-table-row-expand-icon-spaced",r.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"},standalone:!0});let o=n;return o})(),wL=(()=>{let n=class n{constructor(){this.indentSize=0}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(i,r){i&2&&Re("padding-left",r.indentSize,"px")},inputs:{indentSize:"indentSize"},standalone:!0});let o=n;return o})(),Jb=(()=>{let n=class n{constructor(){this.listOfSelections=[],this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.label=null,this.showCheckbox=!1,this.showRowSelection=!1,this.checkedChange=new O}onCheckedChange(t){this.checked=t,this.checkedChange.emit(t)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,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"},standalone:!0,features:[K],decls:2,vars:2,consts:[["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate","ngModelChange",4,"ngIf"],["class","ant-table-selection-extra",4,"ngIf"],["nz-checkbox","",3,"ngModel","nzDisabled","nzIndeterminate","ngModelChange"],[1,"ant-table-selection-extra"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["selectionMenu","nzDropdownMenu"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item","",3,"click",4,"ngFor","ngForOf"],["nz-menu-item","",3,"click"]],template:function(i,r){i&1&&_(0,pN,1,6,"label",0)(1,fN,7,2,"div",1),i&2&&(h("ngIf",r.showCheckbox),f(),h("ngIf",r.showRowSelection))},dependencies:[we,nn,Kt,Rt,$i,Bi,Lr,cs,co,yr,us,Ge,Fe,lt],encapsulation:2,changeDetection:0});let o=n;return o})(),eT=(()=>{let n=class n{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(t){let{sortDirections:i}=t;i&&(this.isUp=this.sortDirections.indexOf("ascend")!==-1,this.isDown=this.sortDirections.indexOf("descend")!==-1)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},standalone:!0,features:[oe,K],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(i,r){i&1&&(C(0,"span",0),_(1,gN,0,0,"ng-template",1),S(),C(2,"span",2)(3,"span",3),_(4,mN,1,2,"span",4)(5,vN,1,2,"span",5),S()()),i&2&&(f(),h("ngTemplateOutlet",r.contentTemplate),f(),k("ant-table-column-sorter-full",r.isDown&&r.isUp),f(2),h("ngIf",r.isUp),f(),h("ngIf",r.isDown))},dependencies:[Ge,Fe,Be,we],encapsulation:2,changeDetection:0});let o=n;return o})(),Ym=(()=>{let n=class n{setAutoLeftWidth(t){this.renderer.setStyle(this.elementRef.nativeElement,"left",t)}setAutoRightWidth(t){this.renderer.setStyle(this.elementRef.nativeElement,"right",t)}setIsFirstRight(t){this.setFixClass(t,"ant-table-cell-fix-right-first")}setIsLastLeft(t){this.setFixClass(t,"ant-table-cell-fix-left-last")}setFixClass(t,i){this.renderer.removeClass(this.elementRef.nativeElement,i),t&&this.renderer.addClass(this.elementRef.nativeElement,i)}constructor(t,i){this.renderer=t,this.elementRef=i,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new J,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}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 t=i=>typeof i=="string"&&i!==""?i:null;this.setAutoLeftWidth(t(this.nzLeft)),this.setAutoRightWidth(t(this.nzRight)),this.changes$.next()}};n.\u0275fac=function(i){return new(i||n)(w(He),w(de))},n.\u0275dir=Se({type:n,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(i,r){i&2&&(Re("position",r.isFixed?"sticky":null),k("ant-table-cell-fix-right",r.isFixedRight)("ant-table-cell-fix-left",r.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},standalone:!0,features:[oe]});let o=n;return o})(),Ma=(()=>{let n=class n{setTheadTemplate(t){this.theadTemplate$.next(t)}setHasFixLeft(t){this.hasFixLeft$.next(t)}setHasFixRight(t){this.hasFixRight$.next(t)}setTableWidthConfig(t){this.tableWidthConfigPx$.next(t)}setListOfTh(t){let i=0;t.forEach(s=>{i+=s.colspan&&+s.colspan||s.colSpan&&+s.colSpan||1});let r=t.map(s=>s.nzWidth);this.columnCount$.next(i),this.listOfThWidthConfigPx$.next(r)}setListOfMeasureColumn(t){let i=[];t.forEach(r=>{let s=r.colspan&&+r.colspan||r.colSpan&&+r.colSpan||1;for(let a=0;a<s;a++)i.push(`measure_key_${a}`)}),this.listOfMeasureColumn$.next(i)}setListOfAutoWidth(t){this.listOfAutoWidthPx$.next(t.map(i=>`${i}px`))}setShowEmpty(t){this.showEmpty$.next(t)}setNoResult(t){this.noResult$.next(t)}setScroll(t,i){let r=!!(t||i);r||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(r)}constructor(){this.theadTemplate$=new tn(1),this.hasFixLeft$=new tn(1),this.hasFixRight$=new tn(1),this.hostWidth$=new tn(1),this.columnCount$=new tn(1),this.showEmpty$=new tn(1),this.noResult$=new tn(1),this.listOfThWidthConfigPx$=new ct([]),this.tableWidthConfigPx$=new ct([]),this.manualWidthConfigPx$=Fn([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe(We(([t,i])=>t.length?t:i)),this.listOfAutoWidthPx$=new tn(1),this.listOfListOfThWidthPx$=_t(this.manualWidthConfigPx$,Fn([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe(We(([t,i])=>t.length===i.length?t.map((r,s)=>r==="0px"?i[s]||null:i[s]||r):i))),this.listOfMeasureColumn$=new tn(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe(We(t=>t.map(i=>parseInt(i,10)))),this.enableAutoMeasure$=new tn(1)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),tT=(()=>{let n=class n{constructor(t){this.isInsideTable=!1,this.isInsideTable=!!t}};n.\u0275fac=function(i){return new(i||n)(w(Ma,8))},n.\u0275dir=Se({type:n,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-table-cell",r.isInsideTable)},standalone:!0});let o=n;return o})(),Km=(()=>{let n=class n{updatePageSize(t){this.pageSize$.next(t)}updateFrontPagination(t){this.frontPagination$.next(t)}updatePageIndex(t){this.pageIndex$.next(t)}updateListOfData(t){this.listOfData$.next(t)}updateListOfCustomColumn(t){this.listOfCustomColumn$.next(t)}constructor(){this.destroy$=new J,this.pageIndex$=new ct(1),this.frontPagination$=new ct(!0),this.pageSize$=new ct(10),this.listOfData$=new ct([]),this.listOfCustomColumn$=new ct([]),this.pageIndexDistinct$=this.pageIndex$.pipe(Bt()),this.pageSizeDistinct$=this.pageSize$.pipe(Bt()),this.listOfCalcOperator$=new ct([]),this.queryParams$=Fn([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe(Sa(0),yS(1),We(([t,i,r])=>({pageIndex:t,pageSize:i,sort:r.filter(s=>s.sortFn).map(s=>({key:s.key,value:s.sortOrder})),filter:r.filter(s=>s.filterFn).map(s=>({key:s.key,value:s.filterValue}))}))),this.listOfDataAfterCalc$=Fn([this.listOfData$,this.listOfCalcOperator$]).pipe(We(([t,i])=>{let r=[...t],s=i.filter(l=>{let{filterValue:c,filterFn:u}=l;return!(c==null||Array.isArray(c)&&c.length===0)&&typeof u=="function"});for(let l of s){let{filterFn:c,filterValue:u}=l;r=r.filter(d=>c(u,d))}let a=i.filter(l=>l.sortOrder!==null&&typeof l.sortFn=="function").sort((l,c)=>+c.sortPriority-+l.sortPriority);return i.length&&r.sort((l,c)=>{for(let u of a){let{sortFn:d,sortOrder:p}=u;if(d&&p){let g=d(l,c,p);if(g!==0)return p==="ascend"?g:-g}}return 0}),r})),this.listOfFrontEndCurrentPageData$=Fn([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe(F(this.destroy$),Qe(t=>{let[i,r,s]=t,a=Math.ceil(s.length/r)||1;return i<=a}),We(([t,i,r])=>r.slice((t-1)*i,t*i))),this.listOfCurrentPageData$=this.frontPagination$.pipe(on(t=>t?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe(on(t=>t?this.listOfDataAfterCalc$:this.listOfData$),We(t=>t.length),Bt())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})();var Qm=(()=>{let n=class n{constructor(){this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzIndentSize=0,this.nzShowExpand=!1,this.nzShowCheckbox=!1,this.nzExpand=!1,this.nzExpandIcon=null,this.nzCheckedChange=new O,this.nzExpandChange=new O,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(t){this.nzChecked=t,this.nzCheckedChange.emit(t)}onExpandChange(t){this.nzExpand=t,this.nzExpandChange.emit(t)}ngOnChanges(t){let i=c=>c&&c.firstChange&&c.currentValue!==void 0,{nzExpand:r,nzChecked:s,nzShowExpand:a,nzShowCheckbox:l}=t;a&&(this.isNzShowExpandChanged=!0),l&&(this.isNzShowCheckboxChanged=!0),i(r)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),i(s)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(i,r){i&2&&k("ant-table-cell-with-append",r.nzShowExpand||r.nzIndentSize>0)("ant-table-selection-column",r.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzIndentSize:"nzIndentSize",nzShowExpand:"nzShowExpand",nzShowCheckbox:"nzShowCheckbox",nzExpand:"nzExpand",nzExpandIcon:"nzExpandIcon"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},standalone:!0,features:[oe,K],attrs:yN,ngContentSelectors:ks,decls:3,vars:2,consts:[[4,"ngIf"],["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate","ngModelChange",4,"ngIf"],[3,"indentSize"],["rowExpand",""],[4,"ngIf","ngIfElse"],["nz-row-expand-button","",3,"expand","spaceMode","expandChange"],[3,"ngTemplateOutlet"],["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate","ngModelChange"]],template:function(i,r){i&1&&(Pe(),_(0,wN,5,3,"ng-container",0)(1,bN,1,4,"label",1),Ie(2)),i&2&&(h("ngIf",r.nzShowExpand||r.nzIndentSize>0),f(),h("ngIf",r.nzShowCheckbox))},dependencies:[wL,SL,we,Be,$i,Bi,nn,Kt,Rt],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzShowExpand",void 0),N([W()],o.prototype,"nzShowCheckbox",void 0),N([W()],o.prototype,"nzExpand",void 0),o})(),uh=(()=>{let n=class n{getNextSortDirection(t,i){let r=t.indexOf(i);return r===t.length-1?t[0]:t[r+1]}setSortOrder(t){this.sortOrderChange$.next(t)}clearSortOrder(){this.sortOrder!==null&&this.setSortOrder(null)}onFilterValueChange(t){this.nzFilterChange.emit(t),this.nzFilterValue=t,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}constructor(t,i,r,s){this.host=t,this.cdr=i,this.ngZone=r,this.destroy$=s,this.manualClickOrder$=new J,this.calcOperatorChange$=new J,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new J,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new O,this.nzSortOrderChange=new O,this.nzFilterChange=new O}ngOnInit(){this.ngZone.runOutsideAngular(()=>Ke(this.host.nativeElement,"click").pipe(Qe(()=>this.nzShowSort),F(this.destroy$)).subscribe(()=>{let t=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(t),this.manualClickOrder$.next(this)})})),this.sortOrderChange$.pipe(F(this.destroy$)).subscribe(t=>{this.sortOrder!==t&&(this.sortOrder=t,this.nzSortOrderChange.emit(t)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(t){let{nzSortDirections:i,nzFilters:r,nzSortOrder:s,nzSortFn:a,nzFilterFn:l,nzSortPriority:c,nzFilterMultiple:u,nzShowSort:d,nzShowFilter:p}=t;i&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),s&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),d&&(this.isNzShowSortChanged=!0),p&&(this.isNzShowFilterChanged=!0);let g=v=>v&&v.firstChange&&v.currentValue!==void 0;if((g(s)||g(a))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),g(r)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(r||u)&&this.nzShowFilter){let v=this.nzFilters.filter(y=>y.byDefault).map(y=>y.value);this.nzFilterValue=this.nzFilterMultiple?v:v[0]||null}(a||l||c||r)&&this.updateCalcOperator()}};n.\u0275fac=function(i){return new(i||n)(w(de),w(fe),w($e),w(Pt))},n.\u0275cmp=j({type:n,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(i,r){i&2&&k("ant-table-column-has-sorters",r.nzShowSort)("ant-table-column-sort",r.sortOrder==="descend"||r.sortOrder==="ascend")},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},standalone:!0,features:[Ve([Pt]),oe,K],attrs:TN,ngContentSelectors:PN,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(i,r){if(i&1&&(Pe(IN),_(0,EN,1,5,"nz-table-filter",0)(1,zN,1,1,"ng-template",null,1,_e)(3,ON,2,0,"ng-template",null,2,_e)(5,DN,1,3,"ng-template",null,3,_e)(7,RN,1,0,"ng-template",null,4,_e)),i&2){let s=te(2);h("ngIf",r.nzShowFilter||r.nzCustomFilter)("ngIfElse",s)}},dependencies:[Zb,we,Be,eT],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzShowSort",void 0),N([W()],o.prototype,"nzShowFilter",void 0),N([W()],o.prototype,"nzCustomFilter",void 0),o})(),Xm=(()=>{let n=class n{constructor(t,i){this.renderer=t,this.elementRef=i,this.changes$=new J,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(t){let{nzWidth:i,colspan:r,rowspan:s,colSpan:a,rowSpan:l}=t;if(r||a){let c=this.colspan||this.colSpan;Ml(c)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${c}`)}if(s||l){let c=this.rowspan||this.rowSpan;Ml(c)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${c}`)}(i||r)&&this.changes$.next()}};n.\u0275fac=function(i){return new(i||n)(w(He),w(de))},n.\u0275dir=Se({type:n,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},standalone:!0,features:[oe]});let o=n;return o})(),bL=(()=>{let n=class n{constructor(){this.nzSelections=[],this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzShowCheckbox=!1,this.nzShowRowSelection=!1,this.nzCheckedChange=new O,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(t){this.nzChecked=t,this.nzCheckedChange.emit(t)}ngOnChanges(t){let i=c=>c&&c.firstChange&&c.currentValue!==void 0,{nzChecked:r,nzSelections:s,nzShowExpand:a,nzShowCheckbox:l}=t;a&&(this.isNzShowExpandChanged=!0),l&&(this.isNzShowCheckboxChanged=!0),i(s)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),i(r)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzShowCheckbox:"nzShowCheckbox",nzShowRowSelection:"nzShowRowSelection"},outputs:{nzCheckedChange:"nzCheckedChange"},standalone:!0,features:[oe,K],attrs:MN,ngContentSelectors:ks,decls:2,vars:7,consts:[[3,"checked","disabled","indeterminate","label","listOfSelections","showCheckbox","showRowSelection","checkedChange"]],template:function(i,r){i&1&&(Pe(),C(0,"nz-table-selection",0),A("checkedChange",function(a){return r.onCheckedChange(a)}),S(),Ie(1)),i&2&&h("checked",r.nzChecked)("disabled",r.nzDisabled)("indeterminate",r.nzIndeterminate)("label",r.nzLabel)("listOfSelections",r.nzSelections)("showCheckbox",r.nzShowCheckbox)("showRowSelection",r.nzShowRowSelection)},dependencies:[Jb],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzShowCheckbox",void 0),N([W()],o.prototype,"nzShowRowSelection",void 0),o})();var nT=(()=>{let n=class n{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(i,r){i&2&&(Re("table-layout",r.tableLayout)("width",r.scrollX)("min-width",r.scrollX?"100%":null),k("ant-table-fixed",r.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},standalone:!0,features:[K],attrs:FN,ngContentSelectors:ks,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(i,r){i&1&&(Pe(),_(0,AN,1,4,"col",0)(1,LN,2,1,"thead",1)(2,kN,0,0,"ng-template",2),Ie(3)),i&2&&(h("ngForOf",r.listOfColWidth),f(),h("ngIf",r.theadTemplate),f(),h("ngTemplateOutlet",r.contentTemplate))},dependencies:[Be,we,lt],encapsulation:2,changeDetection:0});let o=n;return o})(),Zm=(()=>{let n=class n{constructor(t,i){this.nzTableStyleService=t,this.renderer=i,this.hostWidth$=new ct(null),this.enableAutoMeasure$=new ct(!1),this.destroy$=new J}ngOnInit(){if(this.nzTableStyleService){let{enableAutoMeasure$:t,hostWidth$:i}=this.nzTableStyleService;t.pipe(F(this.destroy$)).subscribe(this.enableAutoMeasure$),i.pipe(F(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe(F(this.destroy$)).subscribe(t=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${t}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(Ma),w(He))},n.\u0275cmp=j({type:n,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(i,r){if(i&1&&xe(Qb,7),i&2){let s;ce(s=ue())&&(r.tdElement=s.first)}},standalone:!0,features:[K],attrs:VN,ngContentSelectors:ks,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(i,r){if(i&1&&(Pe(),C(0,"td",0,1),_(2,HN,3,5,"div",2),Xn(3,"async"),S(),_(4,BN,1,0,"ng-template",null,3,_e)),i&2){let s=te(5);f(2),h("ngIf",Vi(3,2,r.enableAutoMeasure$))("ngIfElse",s)}},dependencies:[we,ru,Be],encapsulation:2,changeDetection:0});let o=n;return o})(),TL=(()=>{let n=class n{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},standalone:!0,features:[K],decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(i,r){i&1&&(C(0,"div",0),R(1,"table",1),S()),i&2&&(f(),h("contentTemplate",r.contentTemplate)("tableLayout",r.tableLayout)("listOfColWidth",r.listOfColWidth)("theadTemplate",r.theadTemplate))},dependencies:[nT],encapsulation:2,changeDetection:0});let o=n;return o})(),qm=(()=>{let n=class n{setScrollPositionClassName(t=!1){let{scrollWidth:i,scrollLeft:r,clientWidth:s}=this.tableBodyElement.nativeElement,a="ant-table-ping-left",l="ant-table-ping-right";i===s&&i!==0||t?(this.renderer.removeClass(this.tableMainElement,a),this.renderer.removeClass(this.tableMainElement,l)):r===0?(this.renderer.removeClass(this.tableMainElement,a),this.renderer.addClass(this.tableMainElement,l)):i===r+s?(this.renderer.removeClass(this.tableMainElement,l),this.renderer.addClass(this.tableMainElement,a)):(this.renderer.addClass(this.tableMainElement,a),this.renderer.addClass(this.tableMainElement,l))}constructor(t,i,r,s){this.renderer=t,this.ngZone=i,this.platform=r,this.resizeService=s,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=a=>a,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new J,this.scroll$=new J,this.destroy$=new J}ngOnChanges(t){let{scrollX:i,scrollY:r,data:s}=t;if(i||r){let a=this.verticalScrollBarWidth!==0;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&a?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.ngZone.runOutsideAngular(()=>this.scroll$.next())}s&&this.ngZone.runOutsideAngular(()=>this.data$.next())}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{let t=this.scroll$.pipe(Ot(null),Os(0),on(()=>Ke(this.tableBodyElement.nativeElement,"scroll").pipe(Ot(!0))),F(this.destroy$)),i=this.resizeService.subscribe().pipe(F(this.destroy$)),r=this.data$.pipe(F(this.destroy$));_t(t,i,r,this.scroll$).pipe(Ot(!0),Os(0),F(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),t.pipe(Qe(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(He),w($e),w(gn),w(uu))},n.\u0275cmp=j({type:n,selectors:[["nz-table-inner-scroll"]],viewQuery:function(i,r){if(i&1&&(xe($N,5,de),xe(jN,5,de),xe(ur,5,ur)),i&2){let s;ce(s=ue())&&(r.tableHeaderElement=s.first),ce(s=ue())&&(r.tableBodyElement=s.first),ce(s=ue())&&(r.cdkVirtualScrollViewport=s.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},standalone:!0,features:[oe,K],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["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-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(i,r){i&1&&_(0,QN,6,6,"ng-container",0)(1,XN,3,5,"div",1),i&2&&(h("ngIf",r.scrollY),f(),h("ngIf",!r.scrollY))},dependencies:[nT,we,Zt,JS,Fl,Al,ur,Be],encapsulation:2,changeDetection:0});let o=n;return o})(),Jm=(()=>{let n=class n{constructor(t){this.templateRef=t}static ngTemplateContextGuard(t,i){return!0}};n.\u0275fac=function(i){return new(i||n)(w(En))},n.\u0275dir=Se({type:n,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"],standalone:!0});let o=n;return o})(),iT=(()=>{let n=class n{constructor(){this.title=null,this.footer=null}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(i,r){i&2&&k("ant-table-title",r.title!==null)("ant-table-footer",r.footer!==null)},inputs:{title:"title",footer:"footer"},standalone:!0,features:[K],decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(i,r){i&1&&_(0,ZN,2,1,"ng-container",0)(1,JN,2,1,"ng-container",0),i&2&&(h("nzStringTemplateOutlet",r.title),f(),h("nzStringTemplateOutlet",r.footer))},dependencies:[Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return o})(),Yb="table",ev=(()=>{let n=class n{onPageSizeChange(t){this.nzTableDataService.updatePageSize(t)}onPageIndexChange(t){this.nzTableDataService.updatePageIndex(t)}constructor(t,i,r,s,a,l,c){this.elementRef=t,this.nzResizeObserver=i,this.nzConfigService=r,this.cdr=s,this.nzTableStyleService=a,this.nzTableDataService=l,this.directionality=c,this._nzModuleName=Yb,this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=u=>u,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzCustomColumn=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new O,this.nzPageIndexChange=new O,this.nzQueryParams=new O,this.nzCurrentPageDataChange=new O,this.nzCustomColumnChange=new O,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new J,this.templateMode$=new ct(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent(Yb).pipe(F(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){let{pageIndexDistinct$:t,pageSizeDistinct$:i,listOfCurrentPageData$:r,total$:s,queryParams$:a,listOfCustomColumn$:l}=this.nzTableDataService,{theadTemplate$:c,hasFixLeft$:u,hasFixRight$:d}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(p=>{this.dir=p,this.cdr.detectChanges()}),a.pipe(F(this.destroy$)).subscribe(this.nzQueryParams),t.pipe(F(this.destroy$)).subscribe(p=>{p!==this.nzPageIndex&&(this.nzPageIndex=p,this.nzPageIndexChange.next(p))}),i.pipe(F(this.destroy$)).subscribe(p=>{p!==this.nzPageSize&&(this.nzPageSize=p,this.nzPageSizeChange.next(p))}),s.pipe(F(this.destroy$),Qe(()=>this.nzFrontPagination)).subscribe(p=>{p!==this.nzTotal&&(this.nzTotal=p,this.cdr.markForCheck())}),r.pipe(F(this.destroy$)).subscribe(p=>{this.data=p,this.nzCurrentPageDataChange.next(p),this.cdr.markForCheck()}),l.pipe(F(this.destroy$)).subscribe(p=>{this.nzCustomColumn=p,this.nzCustomColumnChange.next(p),this.cdr.markForCheck()}),c.pipe(F(this.destroy$)).subscribe(p=>{this.theadTemplate=p,this.cdr.markForCheck()}),u.pipe(F(this.destroy$)).subscribe(p=>{this.hasFixLeft=p,this.cdr.markForCheck()}),d.pipe(F(this.destroy$)).subscribe(p=>{this.hasFixRight=p,this.cdr.markForCheck()}),Fn([s,this.templateMode$]).pipe(We(([p,g])=>p===0&&!g),F(this.destroy$)).subscribe(p=>{this.nzTableStyleService.setShowEmpty(p)}),this.verticalScrollBarWidth=XS("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe(F(this.destroy$)).subscribe(p=>{this.listOfAutoColWidth=p,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe(F(this.destroy$)).subscribe(p=>{this.listOfManualColWidth=p,this.cdr.markForCheck()})}ngOnChanges(t){let{nzScroll:i,nzPageIndex:r,nzPageSize:s,nzFrontPagination:a,nzData:l,nzCustomColumn:c,nzWidthConfig:u,nzNoResult:d,nzTemplateMode:p}=t;r&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),s&&this.nzTableDataService.updatePageSize(this.nzPageSize),l&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),c&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),a&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),i&&this.setScrollOnChanges(),u&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),p&&this.templateMode$.next(this.nzTemplateMode),d&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe(We(([t])=>{let{width:i}=t.target.getBoundingClientRect(),r=this.scrollY?this.verticalScrollBarWidth:0;return Math.floor(i-r)}),F(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}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}};n.\u0275fac=function(i){return new(i||n)(w(de),w(ds),w(st),w(fe),w(Ma),w(Km),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-table"]],contentQueries:function(i,r,s){if(i&1&&Ft(s,Jm,5),i&2){let a;ce(a=ue())&&(r.nzVirtualScrollDirective=a.first)}},viewQuery:function(i,r){if(i&1&&xe(qm,5),i&2){let s;ce(s=ue())&&(r.nzTableInnerScrollComponent=s.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(i,r){i&2&&k("ant-table-wrapper-rtl",r.dir==="rtl")("ant-table-custom-column",r.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",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],standalone:!0,features:[Ve([Ma,Km]),oe,K],ngContentSelectors:ks,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(i,r){if(i&1&&(Pe(),C(0,"nz-spin",0),_(1,tL,2,1,"ng-container",1),C(2,"div",2,3),_(4,nL,1,1,"nz-table-title-footer",4)(5,iL,1,13,"nz-table-inner-scroll",5)(6,rL,1,4,"ng-template",null,6,_e)(8,oL,1,1,"nz-table-title-footer",7),S(),_(9,aL,2,1,"ng-container",1),S(),_(10,cL,1,1,"ng-template",null,8,_e)(12,uL,1,0,"ng-template",null,9,_e)),i&2){let s=te(7);h("nzDelay",r.nzLoadingDelay)("nzSpinning",r.nzLoading)("nzIndicator",r.nzLoadingIndicator),f(),h("ngIf",r.nzPaginationPosition==="both"||r.nzPaginationPosition==="top"),f(),k("ant-table-rtl",r.dir==="rtl")("ant-table-fixed-header",r.nzData.length&&r.scrollY)("ant-table-fixed-column",r.scrollX)("ant-table-has-fix-left",r.hasFixLeft)("ant-table-has-fix-right",r.hasFixRight)("ant-table-bordered",r.nzBordered)("nz-table-out-bordered",r.nzOuterBordered&&!r.nzBordered)("ant-table-middle",r.nzSize==="middle")("ant-table-small",r.nzSize==="small"),f(2),h("ngIf",r.nzTitle),f(),h("ngIf",r.scrollY||r.scrollX)("ngIfElse",s),f(3),h("ngIf",r.nzFooter),f(),h("ngIf",r.nzPaginationPosition==="both"||r.nzPaginationPosition==="bottom")}},dependencies:[qb,we,Be,iT,qm,TL,Ub,Um],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzFrontPagination",void 0),N([W()],o.prototype,"nzTemplateMode",void 0),N([W()],o.prototype,"nzShowPagination",void 0),N([W()],o.prototype,"nzLoading",void 0),N([W()],o.prototype,"nzOuterBordered",void 0),N([De()],o.prototype,"nzLoadingIndicator",void 0),N([De(),W()],o.prototype,"nzBordered",void 0),N([De()],o.prototype,"nzSize",void 0),N([De(),W()],o.prototype,"nzShowSizeChanger",void 0),N([De(),W()],o.prototype,"nzHideOnSinglePage",void 0),N([De(),W()],o.prototype,"nzShowQuickJumper",void 0),N([De(),W()],o.prototype,"nzSimple",void 0),o})(),EL=(()=>{let n=class n{constructor(t,i){this.nzResizeObserver=t,this.ngZone=i,this.listOfMeasureColumn=[],this.listOfAutoWidth=new O,this.destroy$=new J}trackByFunc(t,i){return i}ngAfterViewInit(){this.listOfTdElement.changes.pipe(Ot(this.listOfTdElement)).pipe(on(t=>Fn(t.toArray().map(i=>this.nzResizeObserver.observe(i).pipe(We(([r])=>{let{width:s}=r.target.getBoundingClientRect();return Math.floor(s)}))))),Sa(16),F(this.destroy$)).subscribe(t=>{this.ngZone instanceof $e&&$e.isInAngularZone()?this.listOfAutoWidth.next(t):this.ngZone.run(()=>this.listOfAutoWidth.next(t))})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(ds),w($e))},n.\u0275cmp=j({type:n,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(i,r){if(i&1&&xe(Qb,5),i&2){let s;ce(s=ue())&&(r.listOfTdElement=s)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},standalone:!0,features:[K],attrs:dL,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(i,r){i&1&&_(0,pL,2,0,"td",0),i&2&&h("ngForOf",r.listOfMeasureColumn)("ngForTrackBy",r.trackByFunc)},dependencies:[lt],encapsulation:2,changeDetection:0});let o=n;return o})(),tv=(()=>{let n=class n{constructor(t){if(this.nzTableStyleService=t,this.isInsideTable=!1,this.showEmpty$=new ct(!1),this.noResult$=new ct(void 0),this.listOfMeasureColumn$=new ct([]),this.destroy$=new J,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){let{showEmpty$:i,noResult$:r,listOfMeasureColumn$:s}=this.nzTableStyleService;r.pipe(F(this.destroy$)).subscribe(this.noResult$),s.pipe(F(this.destroy$)).subscribe(this.listOfMeasureColumn$),i.pipe(F(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(t){this.nzTableStyleService.setListOfAutoWidth(t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(Ma,8))},n.\u0275cmp=j({type:n,selectors:[["tbody"]],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-table-tbody",r.isInsideTable)},standalone:!0,features:[K],ngContentSelectors:ks,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(i,r){i&1&&(Pe(),_(0,fL,2,1,"ng-container",0),Xn(1,"async"),Ie(2),_(3,gL,3,3,"tr",1),Xn(4,"async")),i&2&&(h("ngIf",Vi(1,2,r.listOfMeasureColumn$)),f(3),h("ngIf",Vi(4,4,r.showEmpty$)))},dependencies:[we,ru,EL,Zm,nh,Tu],encapsulation:2,changeDetection:0});let o=n;return o})(),nv=(()=>{let n=class n{constructor(t){this.nzTableStyleService=t,this.destroy$=new J,this.listOfFixedColumns$=new tn(1),this.listOfColumns$=new tn(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe(on(i=>_t(this.listOfFixedColumns$,...i.map(r=>r.changes$)).pipe(zo(()=>this.listOfFixedColumns$))),F(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe(We(i=>i.filter(r=>r.nzLeft!==!1))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe(We(i=>i.filter(r=>r.nzRight!==!1))),this.listOfColumnsChanges$=this.listOfColumns$.pipe(on(i=>_t(this.listOfColumns$,...i.map(r=>r.changes$)).pipe(zo(()=>this.listOfColumns$))),F(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!t}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe(Ot(this.listOfCellFixedDirective),F(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe(Ot(this.listOfNzThDirective),F(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(t=>{t.forEach(i=>i.setIsLastLeft(i===t[t.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(t=>{t.forEach(i=>i.setIsFirstRight(i===t[0]))}),Fn([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe(F(this.destroy$)).subscribe(([t,i])=>{i.forEach((r,s)=>{if(r.isAutoLeft){let l=i.slice(0,s).reduce((u,d)=>u+(d.colspan||d.colSpan||1),0),c=t.slice(0,l).reduce((u,d)=>u+d,0);r.setAutoLeftWidth(`${c}px`)}})}),Fn([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe(F(this.destroy$)).subscribe(([t,i])=>{i.forEach((r,s)=>{let a=i[i.length-s-1];if(a.isAutoRight){let c=i.slice(i.length-s,i.length).reduce((d,p)=>d+(p.colspan||p.colSpan||1),0),u=t.slice(t.length-c,t.length).reduce((d,p)=>d+p,0);a.setAutoRightWidth(`${u}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(Ma,8))},n.\u0275dir=Se({type:n,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(i,r,s){if(i&1&&(Ft(s,Xm,4),Ft(s,Ym,4)),i&2){let a;ce(a=ue())&&(r.listOfNzThDirective=a),ce(a=ue())&&(r.listOfCellFixedDirective=a)}},hostVars:2,hostBindings:function(i,r){i&2&&k("ant-table-row",r.isInsideTable)},standalone:!0});let o=n;return o})(),rT=(()=>{let n=class n{constructor(t,i,r,s){this.elementRef=t,this.renderer=i,this.nzTableStyleService=r,this.nzTableDataService=s,this.destroy$=new J,this.isInsideTable=!1,this.nzSortOrderChange=new O,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){let t=this.listOfNzTrDirective.changes.pipe(Ot(this.listOfNzTrDirective),We(a=>a&&a.first)),i=t.pipe(on(a=>a?a.listOfColumnsChanges$:xs),F(this.destroy$));i.subscribe(a=>this.nzTableStyleService.setListOfTh(a)),this.nzTableStyleService.enableAutoMeasure$.pipe(on(a=>a?i:Mn([]))).pipe(F(this.destroy$)).subscribe(a=>this.nzTableStyleService.setListOfMeasureColumn(a));let r=t.pipe(on(a=>a?a.listOfFixedLeftColumnChanges$:xs),F(this.destroy$)),s=t.pipe(on(a=>a?a.listOfFixedRightColumnChanges$:xs),F(this.destroy$));r.subscribe(a=>{this.nzTableStyleService.setHasFixLeft(a.length!==0)}),s.subscribe(a=>{this.nzTableStyleService.setHasFixRight(a.length!==0)})}if(this.nzTableDataService){let t=this.listOfNzThAddOnComponent.changes.pipe(Ot(this.listOfNzThAddOnComponent));t.pipe(on(()=>_t(...this.listOfNzThAddOnComponent.map(s=>s.manualClickOrder$))),F(this.destroy$)).subscribe(s=>{let a={key:s.nzColumnKey,value:s.sortOrder};this.nzSortOrderChange.emit(a),s.nzSortFn&&s.nzSortPriority===!1&&this.listOfNzThAddOnComponent.filter(l=>l!==s).forEach(l=>l.clearSortOrder())}),t.pipe(on(s=>_t(t,...s.map(a=>a.calcOperatorChange$)).pipe(zo(()=>t))),We(s=>s.filter(a=>!!a.nzSortFn||!!a.nzFilterFn).map(a=>{let{nzSortFn:l,sortOrder:c,nzFilterFn:u,nzFilterValue:d,nzSortPriority:p,nzColumnKey:g}=a;return{key:g,sortFn:l,sortPriority:p,sortOrder:c,filterFn:u,filterValue:d}})),Os(0),F(this.destroy$)).subscribe(s=>{this.nzTableDataService.listOfCalcOperator$.next(s)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(de),w(He),w(Ma,8),w(Km,8))},n.\u0275cmp=j({type:n,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(i,r,s){if(i&1&&(Ft(s,nv,5),Ft(s,uh,5)),i&2){let a;ce(a=ue())&&(r.listOfNzTrDirective=a),ce(a=ue())&&(r.listOfNzThAddOnComponent=a)}},viewQuery:function(i,r){if(i&1&&xe(mL,7),i&2){let s;ce(s=ue())&&(r.templateRef=s.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},standalone:!0,features:[K],ngContentSelectors:ks,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&(Pe(),_(0,vL,1,0,"ng-template",null,0,_e)(2,CL,2,1,"ng-container",1)),i&2&&(f(2),h("ngIf",!r.isInsideTable))},dependencies:[we,Be],encapsulation:2,changeDetection:0});let o=n;return o})(),oT=(()=>{let n=class n{constructor(){this.nzExpand=!0}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["tr","nzExpand",""]],hostAttrs:[1,"ant-table-expanded-row"],hostVars:1,hostBindings:function(i,r){i&2&&Ug("hidden",!r.nzExpand)},inputs:{nzExpand:"nzExpand"},standalone:!0});let o=n;return o})(),nc=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[ev,uh,Qm,tv,iT,qm,eT,Zb,Jb,Xb,bL]});let o=n;return o})();var xL=["nz-input-group-slot",""];function zL(o,n){if(o&1&&R(0,"span",2),o&2){let e=m();h("nzType",e.icon)}}function OL(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m();f(),ye(e.template)}}var aT=["*"];function DL(o,n){if(o&1&&R(0,"span",7),o&2){let e=m(2);h("icon",e.nzAddOnBeforeIcon)("template",e.nzAddOnBefore)}}function RL(o,n){}function IL(o,n){if(o&1&&(C(0,"span",8),_(1,RL,0,0,"ng-template",9),S()),o&2){let e=m(2),t=te(4);k("ant-input-affix-wrapper-disabled",e.disabled)("ant-input-affix-wrapper-sm",e.isSmall)("ant-input-affix-wrapper-lg",e.isLarge)("ant-input-affix-wrapper-focused",e.focused),h("ngClass",e.affixInGroupStatusCls),f(),h("ngTemplateOutlet",t)}}function PL(o,n){if(o&1&&R(0,"span",7),o&2){let e=m(2);h("icon",e.nzAddOnAfterIcon)("template",e.nzAddOnAfter)}}function ML(o,n){if(o&1&&(C(0,"span",4),_(1,DL,1,2,"span",5)(2,IL,2,10,"span",6)(3,PL,1,2,"span",5),S()),o&2){let e=m(),t=te(6);f(),h("ngIf",e.nzAddOnBefore||e.nzAddOnBeforeIcon),f(),h("ngIf",e.isAffix||e.hasFeedback)("ngIfElse",t),f(),h("ngIf",e.nzAddOnAfter||e.nzAddOnAfterIcon)}}function FL(o,n){}function AL(o,n){if(o&1&&_(0,FL,0,0,"ng-template",9),o&2){m(2);let e=te(4);h("ngTemplateOutlet",e)}}function NL(o,n){if(o&1&&_(0,AL,1,1,"ng-template",10),o&2){let e=m(),t=te(6);h("ngIf",e.isAffix)("ngIfElse",t)}}function LL(o,n){if(o&1&&R(0,"span",13),o&2){let e=m(2);h("icon",e.nzPrefixIcon)("template",e.nzPrefix)}}function kL(o,n){}function VL(o,n){if(o&1&&R(0,"nz-form-item-feedback-icon",16),o&2){let e=m(3);h("status",e.status)}}function GL(o,n){if(o&1&&(C(0,"span",14),_(1,VL,1,1,"nz-form-item-feedback-icon",15),S()),o&2){let e=m(2);h("icon",e.nzSuffixIcon)("template",e.nzSuffix),f(),h("ngIf",e.isFeedback)}}function HL(o,n){if(o&1&&_(0,LL,1,2,"span",11)(1,kL,0,0,"ng-template",9)(2,GL,2,3,"span",12),o&2){let e=m(),t=te(6);h("ngIf",e.nzPrefix||e.nzPrefixIcon),f(),h("ngTemplateOutlet",t),f(),h("ngIf",e.nzSuffix||e.nzSuffixIcon||e.isFeedback)}}function BL(o,n){if(o&1&&(C(0,"span",18),R(1,"nz-form-item-feedback-icon",16),S()),o&2){let e=m(2);f(),h("status",e.status)}}function $L(o,n){if(o&1&&(Ie(0),_(1,BL,2,1,"span",17)),o&2){let e=m();f(),h("ngIf",!e.isAddOn&&!e.isAffix&&e.isFeedback)}}var jL=[[["textarea","nz-input",""]]],WL=["textarea[nz-input]"],lT=(()=>{let n=class n{constructor(){this.icon=null,this.type=null,this.template=null}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(i,r){i&2&&k("ant-input-group-addon",r.type==="addon")("ant-input-prefix",r.type==="prefix")("ant-input-suffix",r.type==="suffix")},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[K],attrs:xL,ngContentSelectors:aT,decls:3,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(i,r){i&1&&(Pe(),_(0,zL,1,1,"span",0)(1,OL,2,1,"ng-container",1),Ie(2)),i&2&&(h("ngIf",r.icon),f(),h("nzStringTemplateOutlet",r.template))},dependencies:[Ge,Fe,we,Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return o})(),Fa=(()=>{let n=class n{get disabled(){return this.ngControl&&this.ngControl.disabled!==null?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=t!=null&&`${t}`!="false"}constructor(t,i,r,s,a,l,c){this.ngControl=t,this.renderer=i,this.elementRef=r,this.hostView=s,this.directionality=a,this.nzFormStatusService=l,this.nzFormNoStatusService=c,this.nzBorderless=!1,this.nzSize="default",this.nzStepperless=!0,this.nzStatus="",this._disabled=!1,this.disabled$=new J,this.dir="ltr",this.prefixCls="ant-input",this.status="",this.statusCls={},this.hasFeedback=!1,this.feedbackRef=null,this.components=[],this.destroy$=new J}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Bt((t,i)=>t.status===i.status&&t.hasFeedback===i.hasFeedback),F(this.destroy$)).subscribe(({status:t,hasFeedback:i})=>{this.setStatusStyles(t,i)}),this.ngControl&&this.ngControl.statusChanges?.pipe(Qe(()=>this.ngControl.disabled!==null),F(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)}),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t})}ngOnChanges(t){let{disabled:i,nzStatus:r}=t;i&&this.disabled$.next(this.disabled),r&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusStyles(t,i){this.status=t,this.hasFeedback=i,this.renderFeedbackIcon(),this.statusCls=vi(this.prefixCls,t,i),Object.keys(this.statusCls).forEach(r=>{this.statusCls[r]?this.renderer.addClass(this.elementRef.nativeElement,r):this.renderer.removeClass(this.elementRef.nativeElement,r)})}renderFeedbackIcon(){if(!this.status||!this.hasFeedback||this.nzFormNoStatusService){this.hostView.clear(),this.feedbackRef=null;return}this.feedbackRef=this.feedbackRef||this.hostView.createComponent(mr),this.feedbackRef.location.nativeElement.classList.add("ant-input-suffix"),this.feedbackRef.instance.status=this.status,this.feedbackRef.instance.updateIcon()}};n.\u0275fac=function(i){return new(i||n)(w(Ri,10),w(He),w(de),w(Tn),w(Me,8),w(cn,8),w(_i,8))},n.\u0275dir=Se({type:n,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostAttrs:[1,"ant-input"],hostVars:13,hostBindings:function(i,r){i&2&&(ze("disabled",r.disabled||null),k("ant-input-disabled",r.disabled)("ant-input-borderless",r.nzBorderless)("ant-input-lg",r.nzSize==="large")("ant-input-sm",r.nzSize==="small")("ant-input-rtl",r.dir==="rtl")("ant-input-stepperless",r.nzStepperless))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",nzStepperless:"nzStepperless",nzStatus:"nzStatus",disabled:"disabled"},exportAs:["nzInput"],standalone:!0,features:[oe]});let o=n;return N([W()],o.prototype,"nzBorderless",void 0),N([W()],o.prototype,"nzStepperless",void 0),o})(),cT=(()=>{let n=class n{constructor(t){this.elementRef=t}};n.\u0275fac=function(i){return new(i||n)(w(de))},n.\u0275dir=Se({type:n,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]],standalone:!0});let o=n;return o})(),iv=(()=>{let n=class n{constructor(t,i,r,s,a,l,c){this.focusMonitor=t,this.elementRef=i,this.renderer=r,this.cdr=s,this.directionality=a,this.nzFormStatusService=l,this.nzFormNoStatusService=c,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new J}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(t=>t.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Bt((t,i)=>t.status===i.status&&t.hasFeedback===i.hasFeedback),F(this.destroy$)).subscribe(({status:t,hasFeedback:i})=>{this.setStatusStyles(t,i)}),this.focusMonitor.monitor(this.elementRef,!0).pipe(F(this.destroy$)).subscribe(t=>{this.focused=!!t,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t})}ngAfterContentInit(){this.updateChildrenInputSize();let t=this.listOfNzInputDirective.changes.pipe(Ot(this.listOfNzInputDirective));t.pipe(on(i=>_t(t,...i.map(r=>r.disabled$))),zo(()=>t),We(i=>i.some(r=>r.disabled)),F(this.destroy$)).subscribe(i=>{this.disabled=i,this.cdr.markForCheck()})}ngOnChanges(t){let{nzSize:i,nzSuffix:r,nzPrefix:s,nzPrefixIcon:a,nzSuffixIcon:l,nzAddOnAfter:c,nzAddOnBefore:u,nzAddOnAfterIcon:d,nzAddOnBeforeIcon:p,nzStatus:g}=t;i&&(this.updateChildrenInputSize(),this.isLarge=this.nzSize==="large",this.isSmall=this.nzSize==="small"),(r||s||a||l)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(c||u||d||p)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),g&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(t,i){this.status=t,this.hasFeedback=i,this.isFeedback=!!t&&i;let r=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon);this.isAffix=r||!this.isAddOn&&i,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=vi(`${this.prefixCls}-affix-wrapper`,t,i):{},this.cdr.markForCheck(),this.affixStatusCls=vi(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":t,this.isAddOn?!1:i),this.groupStatusCls=vi(`${this.prefixCls}-group-wrapper`,this.isAddOn?t:"",this.isAddOn?i:!1);let s=V(V({},this.affixStatusCls),this.groupStatusCls);Object.keys(s).forEach(a=>{s[a]?this.renderer.addClass(this.elementRef.nativeElement,a):this.renderer.removeClass(this.elementRef.nativeElement,a)})}};n.\u0275fac=function(i){return new(i||n)(w(Oi),w(de),w(He),w(fe),w(Me,8),w(cn,8),w(_i,8))},n.\u0275cmp=j({type:n,selectors:[["nz-input-group"]],contentQueries:function(i,r,s){if(i&1&&Ft(s,Fa,4),i&2){let a;ce(a=ue())&&(r.listOfNzInputDirective=a)}},hostVars:40,hostBindings:function(i,r){i&2&&k("ant-input-group-compact",r.nzCompact)("ant-input-search-enter-button",r.nzSearch)("ant-input-search",r.nzSearch)("ant-input-search-rtl",r.dir==="rtl")("ant-input-search-sm",r.nzSearch&&r.isSmall)("ant-input-search-large",r.nzSearch&&r.isLarge)("ant-input-group-wrapper",r.isAddOn)("ant-input-group-wrapper-rtl",r.dir==="rtl")("ant-input-group-wrapper-lg",r.isAddOn&&r.isLarge)("ant-input-group-wrapper-sm",r.isAddOn&&r.isSmall)("ant-input-affix-wrapper",r.isAffix&&!r.isAddOn)("ant-input-affix-wrapper-rtl",r.dir==="rtl")("ant-input-affix-wrapper-focused",r.isAffix&&r.focused)("ant-input-affix-wrapper-disabled",r.isAffix&&r.disabled)("ant-input-affix-wrapper-lg",r.isAffix&&!r.isAddOn&&r.isLarge)("ant-input-affix-wrapper-sm",r.isAffix&&!r.isAddOn&&r.isSmall)("ant-input-group",!r.isAffix&&!r.isAddOn)("ant-input-group-rtl",r.dir==="rtl")("ant-input-group-lg",!r.isAffix&&!r.isAddOn&&r.isLarge)("ant-input-group-sm",!r.isAffix&&!r.isAddOn&&r.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact"},exportAs:["nzInputGroup"],standalone:!0,features:[Ve([_i]),oe,K],ngContentSelectors:aT,decls:7,vars:2,consts:[["class","ant-input-wrapper ant-input-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-affix-wrapper",3,"ant-input-affix-wrapper-disabled","ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg","ant-input-affix-wrapper-focused","ngClass",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper",3,"ngClass"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"],[3,"status",4,"ngIf"],[3,"status"],["nz-input-group-slot","","type","suffix",4,"ngIf"],["nz-input-group-slot","","type","suffix"]],template:function(i,r){if(i&1&&(Pe(),_(0,ML,4,4,"span",0)(1,NL,1,2,"ng-template",null,1,_e)(3,HL,3,3,"ng-template",null,2,_e)(5,$L,2,1,"ng-template",null,3,_e)),i&2){let s=te(2);h("ngIf",r.isAddOn)("ngIfElse",s)}},dependencies:[we,lT,St,Be,ro,mr],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzSearch",void 0),N([W()],o.prototype,"nzCompact",void 0),o})(),uT=(()=>{let n=class n{set nzAutosize(t){typeof t=="string"||t===!0?this.autosize=!0:(r=>typeof r!="string"&&typeof r!="boolean"&&(!!r.maxRows||!!r.minRows))(t)&&(this.autosize=!0,this.minRows=t.minRows,this.maxRows=t.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())}resizeToFitContent(t=!1){if(this.cacheTextareaLineHeight(),!this.cachedLineHeight)return;let i=this.el,r=i.value;if(!t&&this.minRows===this.previousMinRows&&r===this.previousValue)return;let s=i.placeholder;i.classList.add("nz-textarea-autosize-measuring"),i.placeholder="";let a=Math.round((i.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;this.maxHeight!==null&&a>this.maxHeight&&(a=this.maxHeight),this.minHeight!==null&&a<this.minHeight&&(a=this.minHeight),i.style.height=`${a}px`,i.classList.remove("nz-textarea-autosize-measuring"),i.placeholder=s,typeof requestAnimationFrame<"u"&&this.ngZone.runOutsideAngular(()=>requestAnimationFrame(()=>{let{selectionStart:l,selectionEnd:c}=i;!this.destroy$.isStopped&&document.activeElement===i&&i.setSelectionRange(l,c)})),this.previousValue=r,this.previousMinRows=this.minRows}cacheTextareaLineHeight(){if(this.cachedLineHeight>=0||!this.el.parentNode)return;let t=this.el.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this.el.parentNode.appendChild(t),this.cachedLineHeight=t.clientHeight-this.inputGap,this.el.parentNode.removeChild(t),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}setMinHeight(){let t=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return t!==null&&(this.el.style.minHeight=`${t}px`),t}setMaxHeight(){let t=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return t!==null&&(this.el.style.maxHeight=`${t}px`),t}noopInputHandler(){}constructor(t,i,r,s){this.elementRef=t,this.ngZone=i,this.platform=r,this.resizeService=s,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new J,this.inputGap=10}ngAfterViewInit(){this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe(F(this.destroy$)).subscribe(()=>this.resizeToFitContent(!0)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngDoCheck(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()}};n.\u0275fac=function(i){return new(i||n)(w(de),w($e),w(gn),w(uu))},n.\u0275dir=Se({type:n,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(i,r){i&1&&A("input",function(){return r.noopInputHandler()})},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"],standalone:!0});let o=n;return o})(),dT=(()=>{let n=class n{constructor(t,i){this.renderer=t,this.elementRef=i,this.nzMaxCharacterCount=0,this.nzComputeCharacterCount=r=>r.length,this.nzFormatter=(r,s)=>`${r}${s>0?`/${s}`:""}`,this.configChange$=new J,this.destroy$=new J}ngAfterContentInit(){if(!this.nzInputDirective&&PS())throw new Error("[nz-textarea-count]: Could not find matching textarea[nz-input] child.");if(this.nzInputDirective.ngControl){let t=this.nzInputDirective.ngControl.valueChanges||xs;_t(t,this.configChange$).pipe(F(this.destroy$),We(()=>this.nzInputDirective.ngControl.value),Ot(this.nzInputDirective.ngControl.value)).subscribe(i=>{this.setDataCount(i)})}}setDataCount(t){let i=ht(t)?String(t):"",r=this.nzComputeCharacterCount(i),s=this.nzFormatter(r,this.nzMaxCharacterCount);this.renderer.setAttribute(this.elementRef.nativeElement,"data-count",s)}ngOnDestroy(){this.configChange$.complete(),this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(He),w(de))},n.\u0275cmp=j({type:n,selectors:[["nz-textarea-count"]],contentQueries:function(i,r,s){if(i&1&&Ft(s,Fa,7),i&2){let a;ce(a=ue())&&(r.nzInputDirective=a.first)}},hostAttrs:[1,"ant-input-textarea-show-count"],inputs:{nzMaxCharacterCount:"nzMaxCharacterCount",nzComputeCharacterCount:"nzComputeCharacterCount",nzFormatter:"nzFormatter"},standalone:!0,features:[K],ngContentSelectors:WL,decls:1,vars:0,template:function(i,r){i&1&&(Pe(jL),Ie(0))},encapsulation:2,changeDetection:0});let o=n;return o})(),Vs=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[iv,lT]});let o=n;return o})();var UL=["upHandler"],KL=["downHandler"],qL=["inputElement"];function YL(o,n){if(o&1&&R(0,"nz-form-item-feedback-icon",11),o&2){let e=m();h("status",e.status)}}var QL=["nz-input-number-group-slot",""];function XL(o,n){if(o&1&&R(0,"span",2),o&2){let e=m();h("nzType",e.icon)}}function ZL(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m();f(),ye(e.template)}}var pT=["*"];function JL(o,n){if(o&1&&R(0,"div",7),o&2){let e=m(2);h("icon",e.nzAddOnBeforeIcon)("template",e.nzAddOnBefore)}}function ek(o,n){}function tk(o,n){if(o&1&&(C(0,"div",8),_(1,ek,0,0,"ng-template",9),S()),o&2){let e=m(2),t=te(4);k("ant-input-number-affix-wrapper-disabled",e.disabled)("ant-input-number-affix-wrapper-sm",e.isSmall)("ant-input-number-affix-wrapper-lg",e.isLarge)("ant-input-number-affix-wrapper-focused",e.focused),h("ngClass",e.affixInGroupStatusCls),f(),h("ngTemplateOutlet",t)}}function nk(o,n){if(o&1&&R(0,"span",7),o&2){let e=m(2);h("icon",e.nzAddOnAfterIcon)("template",e.nzAddOnAfter)}}function ik(o,n){if(o&1&&(C(0,"span",4),_(1,JL,1,2,"div",5)(2,tk,2,10,"div",6)(3,nk,1,2,"span",5),S()),o&2){let e=m(),t=te(6);f(),h("ngIf",e.nzAddOnBefore||e.nzAddOnBeforeIcon),f(),h("ngIf",e.isAffix||e.hasFeedback)("ngIfElse",t),f(),h("ngIf",e.nzAddOnAfter||e.nzAddOnAfterIcon)}}function rk(o,n){}function ok(o,n){if(o&1&&_(0,rk,0,0,"ng-template",9),o&2){m(2);let e=te(4);h("ngTemplateOutlet",e)}}function sk(o,n){if(o&1&&_(0,ok,1,1,"ng-template",10),o&2){let e=m(),t=te(6);h("ngIf",e.isAffix)("ngIfElse",t)}}function ak(o,n){if(o&1&&R(0,"span",13),o&2){let e=m(2);h("icon",e.nzPrefixIcon)("template",e.nzPrefix)}}function lk(o,n){}function ck(o,n){if(o&1&&R(0,"nz-form-item-feedback-icon",16),o&2){let e=m(3);h("status",e.status)}}function uk(o,n){if(o&1&&(C(0,"span",14),_(1,ck,1,1,"nz-form-item-feedback-icon",15),S()),o&2){let e=m(2);h("icon",e.nzSuffixIcon)("template",e.nzSuffix),f(),h("ngIf",e.isFeedback)}}function dk(o,n){if(o&1&&_(0,ak,1,2,"span",11)(1,lk,0,0,"ng-template",9)(2,uk,2,3,"span",12),o&2){let e=m(),t=te(6);h("ngIf",e.nzPrefix||e.nzPrefixIcon),f(),h("ngTemplateOutlet",t),f(),h("ngIf",e.nzSuffix||e.nzSuffixIcon||e.isFeedback)}}function pk(o,n){if(o&1&&R(0,"nz-form-item-feedback-icon",16),o&2){let e=m(3);h("status",e.status)}}function hk(o,n){if(o&1&&(C(0,"span",18),_(1,pk,1,1,"nz-form-item-feedback-icon",15),S()),o&2){let e=m(2);f(),h("ngIf",e.isFeedback)}}function fk(o,n){if(o&1&&(Ie(0),_(1,hk,2,1,"span",17)),o&2){let e=m();f(),h("ngIf",!e.isAddOn&&!e.isAffix&&e.isFeedback)}}var ic=(()=>{let n=class n{onModelChange(t){this.parsedValue=this.nzParser(t),this.inputElement.nativeElement.value=`${this.parsedValue}`;let i=this.getCurrentValidValue(this.parsedValue);this.setValue(i)}getCurrentValidValue(t){let i=t;return i===""?i="":this.isNotCompleteNumber(i)?i=this.value:i=`${this.getValidValue(i)}`,this.toNumber(i)}isNotCompleteNumber(t){return isNaN(t)||t===""||t===null||!!(t&&t.toString().indexOf(".")===t.toString().length-1)}getValidValue(t){let i=parseFloat(t);return isNaN(i)?t:(i<this.nzMin&&(i=this.nzMin),i>this.nzMax&&(i=this.nzMax),i)}toNumber(t){if(this.isNotCompleteNumber(t))return t;let i=String(t);if(i.indexOf(".")>=0&&ht(this.nzPrecision)){if(typeof this.nzPrecisionMode=="function")return this.nzPrecisionMode(t,this.nzPrecision);if(this.nzPrecisionMode==="cut"){let r=i.split(".");return r[1]=r[1].slice(0,this.nzPrecision),Number(r.join("."))}return Number(Number(t).toFixed(this.nzPrecision))}return Number(t)}getRatio(t){let i=1;return t.metaKey||t.ctrlKey?i=.1:t.shiftKey&&(i=10),i}down(t,i){this.isFocused||this.focus(),this.step("down",t,i)}up(t,i){this.isFocused||this.focus(),this.step("up",t,i)}getPrecision(t){let i=t.toString();if(i.indexOf("e-")>=0)return parseInt(i.slice(i.indexOf("e-")+2),10);let r=0;return i.indexOf(".")>=0&&(r=i.length-i.indexOf(".")-1),r}getMaxPrecision(t,i){if(ht(this.nzPrecision))return this.nzPrecision;let r=this.getPrecision(i),s=this.getPrecision(this.nzStep),a=this.getPrecision(t);return t?Math.max(a,r+s):r+s}getPrecisionFactor(t,i){let r=this.getMaxPrecision(t,i);return Math.pow(10,r)}upStep(t,i){let r=this.getPrecisionFactor(t,i),s=Math.abs(this.getMaxPrecision(t,i)),a;return typeof t=="number"?a=((r*t+r*this.nzStep*i)/r).toFixed(s):a=this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(a)}downStep(t,i){let r=this.getPrecisionFactor(t,i),s=Math.abs(this.getMaxPrecision(t,i)),a;return typeof t=="number"?a=((r*t-r*this.nzStep*i)/r).toFixed(s):a=this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(a)}step(t,i,r=1){if(this.stop(),i.preventDefault(),this.nzDisabled)return;let s=this.getCurrentValidValue(this.parsedValue)||0,a=0;t==="up"?a=this.upStep(s,r):t==="down"&&(a=this.downStep(s,r));let l=a>this.nzMax||a<this.nzMin;a>this.nzMax?a=this.nzMax:a<this.nzMin&&(a=this.nzMin),this.setValue(a),this.updateDisplayValue(a),this.isFocused=!0,!l&&(this.autoStepTimer=setTimeout(()=>{this[t](i,r)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(t){if(`${this.value}`!=`${t}`&&this.onChange(t),this.value=t,this.parsedValue=t,this.disabledUp=this.disabledDown=!1,t||t===0){let i=Number(t);i>=this.nzMax&&(this.disabledUp=!0),i<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(t){let i=ht(this.nzFormatter(t))?this.nzFormatter(t):"";this.displayValue=i,this.inputElement.nativeElement.value=`${i}`}writeValue(t){this.value=t,this.setValue(t),this.updateDisplayValue(t),this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.disabled$.next(this.nzDisabled),this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(t,i,r,s,a,l,c,u,d){this.ngZone=t,this.elementRef=i,this.cdr=r,this.focusMonitor=s,this.renderer=a,this.directionality=l,this.destroy$=c,this.nzFormStatusService=u,this.nzFormNoStatusService=d,this.isNzDisableFirstChange=!0,this.isFocused=!1,this.disabled$=new J,this.disabledUp=!1,this.disabledDown=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.status="",this.statusCls={},this.hasFeedback=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzBlur=new O,this.nzFocus=new O,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=p=>p.trim().replace(/。/g,".").replace(/[^\w\.-]+/g,""),this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStatus="",this.nzStep=1,this.nzInputMode="decimal",this.nzId=null,this.nzDisabled=!1,this.nzReadOnly=!1,this.nzAutoFocus=!1,this.nzBorderless=!1,this.nzFormatter=p=>p}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Bt((t,i)=>t.status===i.status&&t.hasFeedback===i.hasFeedback),F(this.destroy$)).subscribe(({status:t,hasFeedback:i})=>{this.setStatusStyles(t,i)}),this.focusMonitor.monitor(this.elementRef,!0).pipe(F(this.destroy$)).subscribe(t=>{t?(this.isFocused=!0,this.nzFocus.emit()):(this.isFocused=!1,this.updateDisplayValue(this.value),this.nzBlur.emit(),Promise.resolve().then(()=>this.onTouched()))}),this.dir=this.directionality.value,this.directionality.change.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t}),this.setupHandlersListeners(),this.ngZone.runOutsideAngular(()=>{Ke(this.inputElement.nativeElement,"keyup").pipe(F(this.destroy$)).subscribe(()=>this.stop()),Ke(this.inputElement.nativeElement,"keydown").pipe(F(this.destroy$)).subscribe(t=>{let{keyCode:i}=t;i!==38&&i!==40&&i!==13||this.ngZone.run(()=>{if(i===38){let r=this.getRatio(t);this.up(t,r),this.stop()}else if(i===40){let r=this.getRatio(t);this.down(t,r),this.stop()}else this.updateDisplayValue(this.value);this.cdr.markForCheck()})})})}ngOnChanges(t){let{nzStatus:i,nzDisabled:r}=t;if(t.nzFormatter&&!t.nzFormatter.isFirstChange()){let s=this.getCurrentValidValue(this.parsedValue);this.setValue(s),this.updateDisplayValue(s)}r&&this.disabled$.next(this.nzDisabled),i&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef)}setupHandlersListeners(){this.ngZone.runOutsideAngular(()=>{_t(Ke(this.upHandler.nativeElement,"mouseup"),Ke(this.upHandler.nativeElement,"mouseleave"),Ke(this.downHandler.nativeElement,"mouseup"),Ke(this.downHandler.nativeElement,"mouseleave")).pipe(F(this.destroy$)).subscribe(()=>this.stop())})}setStatusStyles(t,i){this.status=t,this.hasFeedback=i,this.cdr.markForCheck(),this.statusCls=vi(this.prefixCls,t,i),Object.keys(this.statusCls).forEach(r=>{this.statusCls[r]?this.renderer.addClass(this.elementRef.nativeElement,r):this.renderer.removeClass(this.elementRef.nativeElement,r)})}};n.\u0275fac=function(i){return new(i||n)(w($e),w(de),w(fe),w(Oi),w(He),w(Me,8),w(Pt),w(cn,8),w(_i,8))},n.\u0275cmp=j({type:n,selectors:[["nz-input-number"]],viewQuery:function(i,r){if(i&1&&(xe(UL,7),xe(KL,7),xe(qL,7)),i&2){let s;ce(s=ue())&&(r.upHandler=s.first),ce(s=ue())&&(r.downHandler=s.first),ce(s=ue())&&(r.inputElement=s.first)}},hostAttrs:[1,"ant-input-number"],hostVars:16,hostBindings:function(i,r){i&2&&k("ant-input-number-in-form-item",!!r.nzFormStatusService)("ant-input-number-focused",r.isFocused)("ant-input-number-lg",r.nzSize==="large")("ant-input-number-sm",r.nzSize==="small")("ant-input-number-disabled",r.nzDisabled)("ant-input-number-readonly",r.nzReadOnly)("ant-input-number-rtl",r.dir==="rtl")("ant-input-number-borderless",r.nzBorderless)},inputs:{nzSize:"nzSize",nzMin:"nzMin",nzMax:"nzMax",nzParser:"nzParser",nzPrecision:"nzPrecision",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStatus:"nzStatus",nzStep:"nzStep",nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:"nzDisabled",nzReadOnly:"nzReadOnly",nzAutoFocus:"nzAutoFocus",nzBorderless:"nzBorderless",nzFormatter:"nzFormatter"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],standalone:!0,features:[Ve([{provide:zn,useExisting:pn(()=>n),multi:!0},Pt]),oe,K],decls:11,vars:15,consts:[[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown"],["upHandler",""],["nz-icon","","nzType","up",1,"ant-input-number-handler-up-inner"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown"],["downHandler",""],["nz-icon","","nzType","down",1,"ant-input-number-handler-down-inner"],[1,"ant-input-number-input-wrap"],["autocomplete","off",1,"ant-input-number-input",3,"disabled","placeholder","readOnly","ngModel","ngModelChange"],["inputElement",""],["class","ant-input-number-suffix",3,"status",4,"ngIf"],[1,"ant-input-number-suffix",3,"status"]],template:function(i,r){i&1&&(C(0,"div",0)(1,"span",1,2),A("mousedown",function(a){return r.up(a)}),R(3,"span",3),S(),C(4,"span",4,5),A("mousedown",function(a){return r.down(a)}),R(6,"span",6),S()(),C(7,"div",7)(8,"input",8,9),A("ngModelChange",function(a){return r.onModelChange(a)}),S()(),_(10,YL,1,1,"nz-form-item-feedback-icon",10)),i&2&&(f(),k("ant-input-number-handler-up-disabled",r.disabledUp),f(3),k("ant-input-number-handler-down-disabled",r.disabledDown),f(4),h("disabled",r.nzDisabled)("placeholder",r.nzPlaceHolder)("readOnly",r.nzReadOnly)("ngModel",r.displayValue),ze("id",r.nzId)("autofocus",r.nzAutoFocus?"autofocus":null)("min",r.nzMin)("max",r.nzMax)("step",r.nzStep)("inputmode",r.nzInputMode),f(2),h("ngIf",r.hasFeedback&&!!r.status&&!r.nzFormNoStatusService))},dependencies:[Ge,Fe,nn,Ii,Kt,Rt,ro,mr,we],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzReadOnly",void 0),N([W()],o.prototype,"nzAutoFocus",void 0),N([W()],o.prototype,"nzBorderless",void 0),o})(),hT=(()=>{let n=class n{constructor(){this.icon=null,this.type=null,this.template=null}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["","nz-input-number-group-slot",""]],hostVars:6,hostBindings:function(i,r){i&2&&k("ant-input-number-group-addon",r.type==="addon")("ant-input-number-prefix",r.type==="prefix")("ant-input-number-suffix",r.type==="suffix")},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[K],attrs:QL,ngContentSelectors:pT,decls:3,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(i,r){i&1&&(Pe(),_(0,XL,1,1,"span",0)(1,ZL,2,1,"ng-container",1),Ie(2)),i&2&&(h("ngIf",r.icon),f(),h("nzStringTemplateOutlet",r.template))},dependencies:[Ge,Fe,we,Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return o})();var gk=(()=>{let n=class n{constructor(t,i,r,s,a,l,c){this.focusMonitor=t,this.elementRef=i,this.renderer=r,this.cdr=s,this.directionality=a,this.nzFormStatusService=l,this.nzFormNoStatusService=c,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new J}updateChildrenInputSize(){this.listOfNzInputNumberComponent&&this.listOfNzInputNumberComponent.forEach(t=>t.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Bt((t,i)=>t.status===i.status&&t.hasFeedback===i.hasFeedback),F(this.destroy$)).subscribe(({status:t,hasFeedback:i})=>{this.setStatusStyles(t,i)}),this.focusMonitor.monitor(this.elementRef,!0).pipe(F(this.destroy$)).subscribe(t=>{this.focused=!!t,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t})}ngAfterContentInit(){this.updateChildrenInputSize();let t=this.listOfNzInputNumberComponent.changes.pipe(Ot(this.listOfNzInputNumberComponent));t.pipe(on(i=>_t(t,...i.map(r=>r.disabled$))),zo(()=>t),We(i=>i.some(r=>r.nzDisabled)),F(this.destroy$)).subscribe(i=>{this.disabled=i,this.cdr.markForCheck()})}ngOnChanges(t){let{nzSize:i,nzSuffix:r,nzPrefix:s,nzPrefixIcon:a,nzSuffixIcon:l,nzAddOnAfter:c,nzAddOnBefore:u,nzAddOnAfterIcon:d,nzAddOnBeforeIcon:p,nzStatus:g}=t;i&&(this.updateChildrenInputSize(),this.isLarge=this.nzSize==="large",this.isSmall=this.nzSize==="small"),(r||s||a||l)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(c||u||d||p)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),g&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(t,i){this.status=t,this.hasFeedback=i,this.isFeedback=!!t&&i;let r=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon);this.isAffix=r||!this.isAddOn&&i,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=vi(`${this.prefixCls}-affix-wrapper`,t,i):{},this.cdr.markForCheck(),this.affixStatusCls=vi(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":t,this.isAddOn?!1:i),this.groupStatusCls=vi(`${this.prefixCls}-group-wrapper`,this.isAddOn?t:"",this.isAddOn?i:!1);let s=V(V({},this.affixStatusCls),this.groupStatusCls);Object.keys(s).forEach(a=>{s[a]?this.renderer.addClass(this.elementRef.nativeElement,a):this.renderer.removeClass(this.elementRef.nativeElement,a)})}};n.\u0275fac=function(i){return new(i||n)(w(Oi),w(de),w(He),w(fe),w(Me,8),w(cn,8),w(_i,8))},n.\u0275cmp=j({type:n,selectors:[["nz-input-number-group"]],contentQueries:function(i,r,s){if(i&1&&Ft(s,ic,5),i&2){let a;ce(a=ue())&&(r.listOfNzInputNumberComponent=a)}},hostVars:24,hostBindings:function(i,r){i&2&&k("ant-input-number-group",r.nzCompact)("ant-input-number-group-compact",r.nzCompact)("ant-input-number-group-wrapper",r.isAddOn)("ant-input-number-group-wrapper-rtl",r.isAddOn&&r.dir==="rtl")("ant-input-number-group-wrapper-lg",r.isAddOn&&r.isLarge)("ant-input-number-group-wrapper-sm",r.isAddOn&&r.isSmall)("ant-input-number-affix-wrapper",!r.isAddOn&&r.isAffix)("ant-input-number-affix-wrapper-rtl",!r.isAddOn&&r.dir==="rtl")("ant-input-number-affix-wrapper-focused",!r.isAddOn&&r.isAffix&&r.focused)("ant-input-number-affix-wrapper-disabled",!r.isAddOn&&r.isAffix&&r.disabled)("ant-input-number-affix-wrapper-lg",!r.isAddOn&&r.isAffix&&r.isLarge)("ant-input-number-affix-wrapper-sm",!r.isAddOn&&r.isAffix&&r.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzCompact:"nzCompact"},exportAs:["nzInputNumberGroup"],standalone:!0,features:[Ve([_i]),oe,K],ngContentSelectors:pT,decls:7,vars:2,consts:[["class","ant-input-number-wrapper ant-input-number-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-number-wrapper","ant-input-number-group"],["nz-input-number-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-number-affix-wrapper",3,"ant-input-number-affix-wrapper-disabled","ant-input-number-affix-wrapper-sm","ant-input-number-affix-wrapper-lg","ant-input-number-affix-wrapper-focused","ngClass",4,"ngIf","ngIfElse"],["nz-input-number-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-number-affix-wrapper",3,"ngClass"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-number-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-number-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-number-group-slot","","type","prefix",3,"icon","template"],["nz-input-number-group-slot","","type","suffix",3,"icon","template"],[3,"status",4,"ngIf"],[3,"status"],["nz-input-number-group-slot","","type","suffix",4,"ngIf"],["nz-input-number-group-slot","","type","suffix"]],template:function(i,r){if(i&1&&(Pe(),_(0,ik,4,4,"span",0)(1,sk,1,2,"ng-template",null,1,_e)(3,dk,3,3,"ng-template",null,2,_e)(5,fk,2,1,"ng-template",null,3,_e)),i&2){let s=te(2);h("ngIf",r.isAddOn)("ngIfElse",s)}},dependencies:[we,hT,St,Be,ro,mr],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzCompact",void 0),o})(),Gs=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[ic,gk,hT]});let o=n;return o})();var mk=["hourListElement"],vk=["minuteListElement"],yk=["secondListElement"],Ck=["use12HoursListElement"];function _k(o,n){if(o&1&&(C(0,"div",4)(1,"div",5),Y(2),S()()),o&2){let e=m();f(2),ye(e.dateHelper.format(e.time==null?null:e.time.value,e.format)||"\xA0")}}function Sk(o,n){if(o&1){let e=Q();C(0,"li",10),A("click",function(){I(e);let i=m().$implicit,r=m(2);return P(r.selectHour(i))}),C(1,"div",11),Y(2),Xn(3,"number"),S()()}if(o&2){let e=m().$implicit,t=m(2);k("ant-picker-time-panel-cell-selected",t.isSelectedHour(e))("ant-picker-time-panel-cell-disabled",e.disabled),f(2),ye(up(3,5,e.index,"2.0-0"))}}function wk(o,n){if(o&1&&(H(0),_(1,Sk,4,8,"li",9),B()),o&2){let e=n.$implicit,t=m(2);f(),h("ngIf",!(t.nzHideDisabledOptions&&e.disabled))}}function bk(o,n){if(o&1&&(C(0,"ul",6,7),_(2,wk,2,1,"ng-container",8),S()),o&2){let e=m();f(2),h("ngForOf",e.hourRange)("ngForTrackBy",e.trackByFn)}}function Tk(o,n){if(o&1){let e=Q();C(0,"li",10),A("click",function(){I(e);let i=m().$implicit,r=m(2);return P(r.selectMinute(i))}),C(1,"div",11),Y(2),Xn(3,"number"),S()()}if(o&2){let e=m().$implicit,t=m(2);k("ant-picker-time-panel-cell-selected",t.isSelectedMinute(e))("ant-picker-time-panel-cell-disabled",e.disabled),f(2),ye(up(3,5,e.index,"2.0-0"))}}function Ek(o,n){if(o&1&&(H(0),_(1,Tk,4,8,"li",9),B()),o&2){let e=n.$implicit,t=m(2);f(),h("ngIf",!(t.nzHideDisabledOptions&&e.disabled))}}function xk(o,n){if(o&1&&(C(0,"ul",6,12),_(2,Ek,2,1,"ng-container",8),S()),o&2){let e=m();f(2),h("ngForOf",e.minuteRange)("ngForTrackBy",e.trackByFn)}}function zk(o,n){if(o&1){let e=Q();C(0,"li",10),A("click",function(){I(e);let i=m().$implicit,r=m(2);return P(r.selectSecond(i))}),C(1,"div",11),Y(2),Xn(3,"number"),S()()}if(o&2){let e=m().$implicit,t=m(2);k("ant-picker-time-panel-cell-selected",t.isSelectedSecond(e))("ant-picker-time-panel-cell-disabled",e.disabled),f(2),ye(up(3,5,e.index,"2.0-0"))}}function Ok(o,n){if(o&1&&(H(0),_(1,zk,4,8,"li",9),B()),o&2){let e=n.$implicit,t=m(2);f(),h("ngIf",!(t.nzHideDisabledOptions&&e.disabled))}}function Dk(o,n){if(o&1&&(C(0,"ul",6,13),_(2,Ok,2,1,"ng-container",8),S()),o&2){let e=m();f(2),h("ngForOf",e.secondRange)("ngForTrackBy",e.trackByFn)}}function Rk(o,n){if(o&1){let e=Q();H(0),C(1,"li",10),A("click",function(){let r=I(e).$implicit,s=m(2);return P(s.select12Hours(r))}),C(2,"div",11),Y(3),S()(),B()}if(o&2){let e=n.$implicit,t=m(2);f(),k("ant-picker-time-panel-cell-selected",t.isSelected12Hours(e)),f(2),ye(e.value)}}function Ik(o,n){if(o&1&&(C(0,"ul",6,14),_(2,Rk,4,3,"ng-container",15),S()),o&2){let e=m();f(2),h("ngForOf",e.use12HoursRange)}}function Pk(o,n){}function Mk(o,n){if(o&1&&(C(0,"div",23),_(1,Pk,0,0,"ng-template",24),S()),o&2){let e=m(2);f(),h("ngTemplateOutlet",e.nzAddOn)}}function Fk(o,n){if(o&1){let e=Q();C(0,"div",16),_(1,Mk,2,1,"div",17),C(2,"ul",18)(3,"li",19)(4,"a",20),A("click",function(){I(e);let i=m();return P(i.onClickNow())}),Y(5),Xn(6,"nzI18n"),S()(),C(7,"li",21)(8,"button",22),A("click",function(){I(e);let i=m();return P(i.onClickOk())}),Y(9),Xn(10,"nzI18n"),S()()()()}if(o&2){let e=m();f(),h("ngIf",e.nzAddOn),f(4),Ne(" ",e.nzNowText||Vi(6,3,"Calendar.lang.now")," "),f(4),Ne(" ",e.nzOkText||Vi(10,5,"Calendar.lang.ok")," ")}}var Ak=["inputElement"];function Nk(o,n){if(o&1&&(H(0),R(1,"span",8),B()),o&2){let e=n.$implicit;f(),h("nzType",e)}}function Lk(o,n){if(o&1&&R(0,"nz-form-item-feedback-icon",9),o&2){let e=m();h("status",e.status)}}function kk(o,n){if(o&1){let e=Q();C(0,"span",10),A("click",function(i){I(e);let r=m();return P(r.onClickClearBtn(i))}),R(1,"span",11),S()}if(o&2){let e=m();f(),ze("aria-label",e.nzClearText)("title",e.nzClearText)}}function Vk(o,n){if(o&1){let e=Q();C(0,"div",12)(1,"div",13)(2,"div",14)(3,"nz-time-picker-panel",15),A("ngModelChange",function(i){I(e);let r=m();return P(r.value=i)})("ngModelChange",function(i){I(e);let r=m();return P(r.onPanelValueChange(i))})("closePanel",function(){I(e);let i=m();return P(i.closePanel())}),Xn(4,"async"),S()()()()}if(o&2){let e=m();h("@slideMotion","enter"),f(3),h("ngClass",e.nzPopupClassName)("format",e.nzFormat)("nzHourStep",e.nzHourStep)("nzMinuteStep",e.nzMinuteStep)("nzSecondStep",e.nzSecondStep)("nzDisabledHours",e.nzDisabledHours)("nzDisabledMinutes",e.nzDisabledMinutes)("nzDisabledSeconds",e.nzDisabledSeconds)("nzPlaceHolder",e.nzPlaceHolder||Vi(4,19,e.i18nPlaceHolder$))("nzHideDisabledOptions",e.nzHideDisabledOptions)("nzUse12Hours",e.nzUse12Hours)("nzDefaultOpenValue",e.nzDefaultOpenValue)("nzAddOn",e.nzAddOn)("nzClearText",e.nzClearText)("nzNowText",e.nzNowText)("nzOkText",e.nzOkText)("nzAllowEmpty",e.nzAllowEmpty)("ngModel",e.value)}}var av=class{setMinutes(n,e){return e||(this.initValue(),this.value.setMinutes(n),this.update()),this}setHours(n,e){return e||(this.initValue(),this._use12Hours?this.selected12Hours==="PM"&&n!==12?this.value.setHours(n+12):this.selected12Hours==="AM"&&n===12?this.value.setHours(0):this.value.setHours(n):this.value.setHours(n),this.update()),this}setSeconds(n,e){return e||(this.initValue(),this.value.setSeconds(n),this.update()),this}setUse12Hours(n){return this._use12Hours=n,this}get changes(){return this._changes.asObservable()}setValue(n,e){return ht(e)&&(this._use12Hours=e),n!==this.value&&(this._value=n,ht(this.value)?this._use12Hours&&ht(this.hours)&&(this.selected12Hours=this.hours>=12?"PM":"AM"):this._clear()),this}initValue(){Ml(this.value)&&this.setValue(new Date,this._use12Hours)}clear(){this._clear(),this.update()}get isEmpty(){return!(ht(this.hours)||ht(this.minutes)||ht(this.seconds))}_clear(){this._value=void 0,this.selected12Hours=void 0}update(){this.isEmpty?this._value=void 0:(ht(this.hours)&&this.value.setHours(this.hours),ht(this.minutes)&&this.value.setMinutes(this.minutes),ht(this.seconds)&&this.value.setSeconds(this.seconds),this._use12Hours&&(this.selected12Hours==="PM"&&this.hours<12&&this.value.setHours(this.hours+12),this.selected12Hours==="AM"&&this.hours>=12&&this.value.setHours(this.hours-12))),this.changed()}changed(){this._changes.next(this.value)}get viewHours(){return this._use12Hours&&ht(this.hours)?this.calculateViewHour(this.hours):this.hours}setSelected12Hours(n){n.toUpperCase()!==this.selected12Hours&&(this.selected12Hours=n.toUpperCase(),this.update())}get value(){return this._value||this._defaultOpenValue}get hours(){return this.value?.getHours()}get minutes(){return this.value?.getMinutes()}get seconds(){return this.value?.getSeconds()}setDefaultOpenValue(n){return this._defaultOpenValue=n,this}constructor(){this.selected12Hours=void 0,this._use12Hours=!1,this._changes=new J}calculateViewHour(n){let e=this.selected12Hours;return e==="PM"&&n>12?n-12:e==="AM"&&n===0?12:n}};function sv(o,n=1,e=0){return new Array(Math.ceil(o/n)).fill(0).map((t,i)=>(i+e)*n)}var dh=(()=>{let n=class n{set nzAllowEmpty(t){ht(t)&&(this._allowEmpty=t)}get nzAllowEmpty(){return this._allowEmpty}set nzDisabledHours(t){this._disabledHours=t,this._disabledHours&&this.buildHours()}get nzDisabledHours(){return this._disabledHours}set nzDisabledMinutes(t){ht(t)&&(this._disabledMinutes=t,this.buildMinutes())}get nzDisabledMinutes(){return this._disabledMinutes}set nzDisabledSeconds(t){ht(t)&&(this._disabledSeconds=t,this.buildSeconds())}get nzDisabledSeconds(){return this._disabledSeconds}set format(t){if(ht(t)){this._format=t,this.enabledColumns=0;let i=new Set(t);this.hourEnabled=i.has("H")||i.has("h"),this.minuteEnabled=i.has("m"),this.secondEnabled=i.has("s"),this.hourEnabled&&this.enabledColumns++,this.minuteEnabled&&this.enabledColumns++,this.secondEnabled&&this.enabledColumns++,this.nzUse12Hours&&this.build12Hours()}}get format(){return this._format}set nzHourStep(t){ht(t)&&(this._nzHourStep=t,this.buildHours())}get nzHourStep(){return this._nzHourStep}set nzMinuteStep(t){ht(t)&&(this._nzMinuteStep=t,this.buildMinutes())}get nzMinuteStep(){return this._nzMinuteStep}set nzSecondStep(t){ht(t)&&(this._nzSecondStep=t,this.buildSeconds())}get nzSecondStep(){return this._nzSecondStep}trackByFn(t){return t}buildHours(){let t=24,i=this.nzDisabledHours?.(),r=0;if(this.nzUse12Hours&&(t=12,i&&(this.time.selected12Hours==="PM"?i=i.filter(s=>s>=12).map(s=>s>12?s-12:s):i=i.filter(s=>s<12||s===24).map(s=>s===24||s===0?12:s)),r=1),this.hourRange=sv(t,this.nzHourStep,r).map(s=>({index:s,disabled:!!i&&i.indexOf(s)!==-1})),this.nzUse12Hours&&this.hourRange[this.hourRange.length-1].index===12){let s=[...this.hourRange];s.unshift(s[s.length-1]),s.splice(s.length-1,1),this.hourRange=s}}buildMinutes(){this.minuteRange=sv(60,this.nzMinuteStep).map(t=>({index:t,disabled:!!this.nzDisabledMinutes&&this.nzDisabledMinutes(this.time.hours).indexOf(t)!==-1}))}buildSeconds(){this.secondRange=sv(60,this.nzSecondStep).map(t=>({index:t,disabled:!!this.nzDisabledSeconds&&this.nzDisabledSeconds(this.time.hours,this.time.minutes).indexOf(t)!==-1}))}build12Hours(){let t=this._format.includes("A");this.use12HoursRange=[{index:0,value:t?"AM":"am"},{index:1,value:t?"PM":"pm"}]}buildTimes(){this.buildHours(),this.buildMinutes(),this.buildSeconds(),this.build12Hours()}scrollToTime(t=0){if(this.hourEnabled&&this.hourListElement&&this.scrollToSelected(this.hourListElement.nativeElement,this.time.viewHours,t,"hour"),this.minuteEnabled&&this.minuteListElement&&this.scrollToSelected(this.minuteListElement.nativeElement,this.time.minutes,t,"minute"),this.secondEnabled&&this.secondListElement&&this.scrollToSelected(this.secondListElement.nativeElement,this.time.seconds,t,"second"),this.nzUse12Hours&&this.use12HoursListElement){let r=this.time.selected12Hours==="AM"?0:1;this.scrollToSelected(this.use12HoursListElement.nativeElement,r,t,"12-hour")}}selectHour(t){this.time.setHours(t.index,t.disabled),this._disabledMinutes&&this.buildMinutes(),(this._disabledSeconds||this._disabledMinutes)&&this.buildSeconds()}selectMinute(t){this.time.setMinutes(t.index,t.disabled),this._disabledSeconds&&this.buildSeconds()}selectSecond(t){this.time.setSeconds(t.index,t.disabled)}select12Hours(t){this.time.setSelected12Hours(t.value),this._disabledHours&&this.buildHours(),this._disabledMinutes&&this.buildMinutes(),this._disabledSeconds&&this.buildSeconds()}scrollToSelected(t,i,r=0,s){if(!t)return;let a=this.translateIndex(i,s),l=t.children[a]||t.children[0];this.scrollTo(t,l.offsetTop,r)}translateIndex(t,i){return i==="hour"?this.calcIndex(this.nzDisabledHours?.(),this.hourRange.map(r=>r.index).indexOf(t)):i==="minute"?this.calcIndex(this.nzDisabledMinutes?.(this.time.hours),this.minuteRange.map(r=>r.index).indexOf(t)):i==="second"?this.calcIndex(this.nzDisabledSeconds?.(this.time.hours,this.time.minutes),this.secondRange.map(r=>r.index).indexOf(t)):this.calcIndex([],this.use12HoursRange.map(r=>r.index).indexOf(t))}scrollTo(t,i,r){if(r<=0){t.scrollTop=i;return}let a=(i-t.scrollTop)/r*10;this.ngZone.runOutsideAngular(()=>{to(()=>{t.scrollTop=t.scrollTop+a,t.scrollTop!==i&&this.scrollTo(t,i,r-10)})})}calcIndex(t,i){return t?.length&&this.nzHideDisabledOptions?i-t.reduce((r,s)=>r+(s<i?1:0),0):i}changed(){this.onChange&&this.onChange(this.time.value)}touched(){this.onTouch&&this.onTouch()}timeDisabled(t){let i=t.getHours(),r=t.getMinutes(),s=t.getSeconds();return(this.nzDisabledHours?.().indexOf(i)??-1)>-1||(this.nzDisabledMinutes?.(i).indexOf(r)??-1)>-1||(this.nzDisabledSeconds?.(i,r).indexOf(s)??-1)>-1}onClickNow(){let t=new Date;this.timeDisabled(t)||(this.time.setValue(t),this.changed(),this.closePanel.emit())}onClickOk(){this.time.setValue(this.time.value,this.nzUse12Hours),this.changed(),this.closePanel.emit()}isSelectedHour(t){return t.index===this.time.viewHours}isSelectedMinute(t){return t.index===this.time.minutes}isSelectedSecond(t){return t.index===this.time.seconds}isSelected12Hours(t){return t.value.toUpperCase()===this.time.selected12Hours}constructor(t,i,r,s){this.ngZone=t,this.cdr=i,this.dateHelper=r,this.elementRef=s,this._nzHourStep=1,this._nzMinuteStep=1,this._nzSecondStep=1,this.unsubscribe$=new J,this._format="HH:mm:ss",this._disabledHours=()=>[],this._disabledMinutes=()=>[],this._disabledSeconds=()=>[],this._allowEmpty=!0,this.time=new av,this.hourEnabled=!0,this.minuteEnabled=!0,this.secondEnabled=!0,this.firstScrolled=!1,this.enabledColumns=3,this.nzInDatePicker=!1,this.nzHideDisabledOptions=!1,this.nzUse12Hours=!1,this.closePanel=new O}ngOnInit(){this.time.changes.pipe(F(this.unsubscribe$)).subscribe(()=>{this.changed(),this.touched(),this.scrollToTime(120)}),this.buildTimes(),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.scrollToTime(),this.firstScrolled=!0}),Ke(this.elementRef.nativeElement,"mousedown").pipe(F(this.unsubscribe$)).subscribe(t=>{t.preventDefault()})})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}ngOnChanges(t){let{nzUse12Hours:i,nzDefaultOpenValue:r}=t;!i?.previousValue&&i?.currentValue&&(this.build12Hours(),this.enabledColumns++),r?.currentValue&&this.time.setDefaultOpenValue(this.nzDefaultOpenValue||new Date)}writeValue(t){this.time.setValue(t,this.nzUse12Hours),this.buildTimes(),t&&this.firstScrolled&&this.scrollToTime(120),this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouch=t}};n.\u0275fac=function(i){return new(i||n)(w($e),w(fe),w(no),w(de))},n.\u0275cmp=j({type:n,selectors:[["nz-time-picker-panel"]],viewQuery:function(i,r){if(i&1&&(xe(mk,5),xe(vk,5),xe(yk,5),xe(Ck,5)),i&2){let s;ce(s=ue())&&(r.hourListElement=s.first),ce(s=ue())&&(r.minuteListElement=s.first),ce(s=ue())&&(r.secondListElement=s.first),ce(s=ue())&&(r.use12HoursListElement=s.first)}},hostAttrs:[1,"ant-picker-time-panel"],hostVars:12,hostBindings:function(i,r){i&2&&k("ant-picker-time-panel-column-0",r.enabledColumns===0&&!r.nzInDatePicker)("ant-picker-time-panel-column-1",r.enabledColumns===1&&!r.nzInDatePicker)("ant-picker-time-panel-column-2",r.enabledColumns===2&&!r.nzInDatePicker)("ant-picker-time-panel-column-3",r.enabledColumns===3&&!r.nzInDatePicker)("ant-picker-time-panel-narrow",r.enabledColumns<3)("ant-picker-time-panel-placement-bottomLeft",!r.nzInDatePicker)},inputs:{nzInDatePicker:"nzInDatePicker",nzAddOn:"nzAddOn",nzHideDisabledOptions:"nzHideDisabledOptions",nzClearText:"nzClearText",nzNowText:"nzNowText",nzOkText:"nzOkText",nzPlaceHolder:"nzPlaceHolder",nzUse12Hours:"nzUse12Hours",nzDefaultOpenValue:"nzDefaultOpenValue",nzAllowEmpty:"nzAllowEmpty",nzDisabledHours:"nzDisabledHours",nzDisabledMinutes:"nzDisabledMinutes",nzDisabledSeconds:"nzDisabledSeconds",format:"format",nzHourStep:"nzHourStep",nzMinuteStep:"nzMinuteStep",nzSecondStep:"nzSecondStep"},outputs:{closePanel:"closePanel"},exportAs:["nzTimePickerPanel"],standalone:!0,features:[Ve([{provide:zn,useExisting:n,multi:!0}]),oe,K],decls:7,vars:6,consts:[["class","ant-picker-header",4,"ngIf"],[1,"ant-picker-content"],["class","ant-picker-time-panel-column","style","position: relative;",4,"ngIf"],["class","ant-picker-footer",4,"ngIf"],[1,"ant-picker-header"],[1,"ant-picker-header-view"],[1,"ant-picker-time-panel-column",2,"position","relative"],["hourListElement",""],[4,"ngFor","ngForOf","ngForTrackBy"],["class","ant-picker-time-panel-cell",3,"ant-picker-time-panel-cell-selected","ant-picker-time-panel-cell-disabled","click",4,"ngIf"],[1,"ant-picker-time-panel-cell",3,"click"],[1,"ant-picker-time-panel-cell-inner"],["minuteListElement",""],["secondListElement",""],["use12HoursListElement",""],[4,"ngFor","ngForOf"],[1,"ant-picker-footer"],["class","ant-picker-footer-extra",4,"ngIf"],[1,"ant-picker-ranges"],[1,"ant-picker-now"],[3,"click"],[1,"ant-picker-ok"],["nz-button","","type","button","nzSize","small","nzType","primary",3,"click"],[1,"ant-picker-footer-extra"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&(_(0,_k,3,1,"div",0),C(1,"div",1),_(2,bk,3,2,"ul",2)(3,xk,3,2,"ul",2)(4,Dk,3,2,"ul",2)(5,Ik,3,1,"ul",2),S(),_(6,Fk,11,7,"div",3)),i&2&&(h("ngIf",r.nzInDatePicker),f(2),h("ngIf",r.hourEnabled),f(),h("ngIf",r.minuteEnabled),f(),h("ngIf",r.secondEnabled),f(),h("ngIf",r.nzUse12Hours),f(),h("ngIf",!r.nzInDatePicker))},dependencies:[we,lt,Rl,Be,bp,wp,Hi,eo,yi,hr],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzUse12Hours",void 0),o})(),Gk="timePicker",Hk=(()=>{let n=class n{emitValue(t){this.setValue(t,!0),this._onChange&&this._onChange(this.value),this._onTouched&&this._onTouched()}setValue(t,i=!1){i&&(this.preValue=lu(t)?new Date(t):null),this.value=lu(t)?new Date(t):null,this.inputValue=this.dateHelper.format(t,this.nzFormat),this.cdr.markForCheck()}open(){this.nzDisabled||this.nzOpen||(this.focus(),this.nzOpen=!0,this.nzOpenChange.emit(this.nzOpen))}close(){this.nzOpen=!1,this.cdr.markForCheck(),this.nzOpenChange.emit(this.nzOpen)}updateAutoFocus(){this.isInit&&!this.nzDisabled&&(this.nzAutoFocus?this.renderer.setAttribute(this.inputRef.nativeElement,"autofocus","autofocus"):this.renderer.removeAttribute(this.inputRef.nativeElement,"autofocus"))}onClickClearBtn(t){t.stopPropagation(),this.emitValue(null)}onClickOutside(t){this.element.nativeElement.contains(t.target)||this.setCurrentValueAndClose()}onFocus(t){this.focused=t,t||(this.checkTimeValid(this.value)?this.setCurrentValueAndClose():(this.setValue(this.preValue),this.close()))}focus(){this.inputRef.nativeElement&&this.inputRef.nativeElement.focus()}blur(){this.inputRef.nativeElement&&this.inputRef.nativeElement.blur()}onKeyupEsc(){this.setValue(this.preValue)}onKeyupEnter(){this.nzOpen&&lu(this.value)?this.setCurrentValueAndClose():this.nzOpen||this.open()}onInputChange(t){!this.platform.TRIDENT&&document.activeElement===this.inputRef.nativeElement&&(this.open(),this.parseTimeString(t))}onPanelValueChange(t){this.setValue(t),this.focus()}closePanel(){this.inputRef.nativeElement.blur()}setCurrentValueAndClose(){this.emitValue(this.value),this.close()}constructor(t,i,r,s,a,l,c,u,d,p){this.nzConfigService=t,this.i18n=i,this.element=r,this.renderer=s,this.cdr=a,this.dateHelper=l,this.platform=c,this.directionality=u,this.nzFormStatusService=d,this.nzFormNoStatusService=p,this._nzModuleName=Gk,this.destroy$=new J,this.isNzDisableFirstChange=!0,this.isInit=!1,this.focused=!1,this.inputValue="",this.value=null,this.preValue=null,this.i18nPlaceHolder$=Mn(void 0),this.overlayPositions=[{offsetY:3,originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{offsetY:-3,originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{offsetY:3,originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{offsetY:-3,originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],this.dir="ltr",this.prefixCls="ant-picker",this.statusCls={},this.status="",this.hasFeedback=!1,this.nzId=null,this.nzSize=null,this.nzStatus="",this.nzHourStep=1,this.nzMinuteStep=1,this.nzSecondStep=1,this.nzClearText="clear",this.nzNowText="",this.nzOkText="",this.nzPopupClassName="",this.nzPlaceHolder="",this.nzFormat="HH:mm:ss",this.nzOpen=!1,this.nzUse12Hours=!1,this.nzSuffixIcon="clock-circle",this.nzOpenChange=new O,this.nzHideDisabledOptions=!1,this.nzAllowEmpty=!0,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzBackdrop=!1,this.nzBorderless=!1,this.nzInputReadOnly=!1}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Bt((t,i)=>t.status===i.status&&t.hasFeedback===i.hasFeedback),zl(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:Mn(!1)),We(([{status:t,hasFeedback:i},r])=>({status:r?"":t,hasFeedback:i})),F(this.destroy$)).subscribe(({status:t,hasFeedback:i})=>{this.setStatusStyles(t,i)}),this.inputSize=Math.max(8,this.nzFormat.length)+2,this.origin=new dr(this.element),this.i18nPlaceHolder$=this.i18n.localeChange.pipe(We(t=>t.TimePicker.placeholder)),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(t){let{nzUse12Hours:i,nzFormat:r,nzDisabled:s,nzAutoFocus:a,nzStatus:l}=t;if(i&&!i.previousValue&&i.currentValue&&!r&&(this.nzFormat="h:mm:ss a"),s){let c=s.currentValue,u=this.inputRef.nativeElement;c?this.renderer.setAttribute(u,"disabled",""):this.renderer.removeAttribute(u,"disabled")}a&&this.updateAutoFocus(),l&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}parseTimeString(t){let i=this.dateHelper.parseTime(t,this.nzFormat)||null;lu(i)&&(this.value=i,this.cdr.markForCheck())}ngAfterViewInit(){this.isInit=!0,this.updateAutoFocus()}writeValue(t){let i;t instanceof Date?i=t:Ml(t)?i=null:(qS('Non-Date type is not recommended for time-picker, use "Date" type.'),i=new Date(t)),this.setValue(i,!0)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}checkTimeValid(t){if(!t)return!0;let i=this.nzDisabledHours?.(),r=this.nzDisabledMinutes?.(t.getHours()),s=this.nzDisabledSeconds?.(t.getHours(),t.getMinutes());return!(i?.includes(t.getHours())||r?.includes(t.getMinutes())||s?.includes(t.getSeconds()))}setStatusStyles(t,i){this.status=t,this.hasFeedback=i,this.cdr.markForCheck(),this.statusCls=vi(this.prefixCls,t,i),Object.keys(this.statusCls).forEach(r=>{this.statusCls[r]?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)})}};n.\u0275fac=function(i){return new(i||n)(w(st),w(Di),w(de),w(He),w(fe),w(no),w(gn),w(Me,8),w(cn,8),w(_i,8))},n.\u0275cmp=j({type:n,selectors:[["nz-time-picker"]],viewQuery:function(i,r){if(i&1&&xe(Ak,7),i&2){let s;ce(s=ue())&&(r.inputRef=s.first)}},hostAttrs:[1,"ant-picker"],hostVars:12,hostBindings:function(i,r){i&1&&A("click",function(){return r.open()}),i&2&&k("ant-picker-large",r.nzSize==="large")("ant-picker-small",r.nzSize==="small")("ant-picker-disabled",r.nzDisabled)("ant-picker-focused",r.focused)("ant-picker-rtl",r.dir==="rtl")("ant-picker-borderless",r.nzBorderless)},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzHourStep:"nzHourStep",nzMinuteStep:"nzMinuteStep",nzSecondStep:"nzSecondStep",nzClearText:"nzClearText",nzNowText:"nzNowText",nzOkText:"nzOkText",nzPopupClassName:"nzPopupClassName",nzPlaceHolder:"nzPlaceHolder",nzAddOn:"nzAddOn",nzDefaultOpenValue:"nzDefaultOpenValue",nzDisabledHours:"nzDisabledHours",nzDisabledMinutes:"nzDisabledMinutes",nzDisabledSeconds:"nzDisabledSeconds",nzFormat:"nzFormat",nzOpen:"nzOpen",nzUse12Hours:"nzUse12Hours",nzSuffixIcon:"nzSuffixIcon",nzHideDisabledOptions:"nzHideDisabledOptions",nzAllowEmpty:"nzAllowEmpty",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzBackdrop:"nzBackdrop",nzBorderless:"nzBorderless",nzInputReadOnly:"nzInputReadOnly"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzTimePicker"],standalone:!0,features:[Ve([{provide:zn,useExisting:n,multi:!0}]),oe,K],decls:9,vars:16,consts:[[1,"ant-picker-input"],["type","text","autocomplete","off",3,"size","placeholder","ngModel","disabled","readOnly","ngModelChange","focus","blur","keyup.enter","keyup.escape"],["inputElement",""],[1,"ant-picker-suffix"],[4,"nzStringTemplateOutlet"],[3,"status",4,"ngIf"],["class","ant-picker-clear",3,"click",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","detach","overlayOutsideClick"],["nz-icon","",3,"nzType"],[3,"status"],[1,"ant-picker-clear",3,"click"],["nz-icon","","nzType","close-circle","nzTheme","fill"],[1,"ant-picker-dropdown",2,"position","relative"],[1,"ant-picker-panel-container"],["tabindex","-1",1,"ant-picker-panel"],[3,"ngClass","format","nzHourStep","nzMinuteStep","nzSecondStep","nzDisabledHours","nzDisabledMinutes","nzDisabledSeconds","nzPlaceHolder","nzHideDisabledOptions","nzUse12Hours","nzDefaultOpenValue","nzAddOn","nzClearText","nzNowText","nzOkText","nzAllowEmpty","ngModel","ngModelChange","closePanel"]],template:function(i,r){i&1&&(C(0,"div",0)(1,"input",1,2),A("ngModelChange",function(a){return r.inputValue=a})("focus",function(){return r.onFocus(!0)})("blur",function(){return r.onFocus(!1)})("keyup.enter",function(){return r.onKeyupEnter()})("keyup.escape",function(){return r.onKeyupEsc()})("ngModelChange",function(a){return r.onInputChange(a)}),Xn(3,"async"),S(),C(4,"span",3),_(5,Nk,2,1,"ng-container",4)(6,Lk,1,1,"nz-form-item-feedback-icon",5),S(),_(7,kk,2,2,"span",6),S(),_(8,Vk,5,21,"ng-template",7),A("detach",function(){return r.close()})("overlayOutsideClick",function(a){return r.onClickOutside(a)})),i&2&&(f(),h("size",r.inputSize)("placeholder",r.nzPlaceHolder||Vi(3,14,r.i18nPlaceHolder$))("ngModel",r.inputValue)("disabled",r.nzDisabled)("readOnly",r.nzInputReadOnly),ze("id",r.nzId),f(4),h("nzStringTemplateOutlet",r.nzSuffixIcon),f(),h("ngIf",r.hasFeedback&&!!r.status),f(),h("ngIf",r.nzAllowEmpty&&!r.nzDisabled&&r.value),f(),h("cdkConnectedOverlayHasBackdrop",r.nzBackdrop)("cdkConnectedOverlayPositions",r.overlayPositions)("cdkConnectedOverlayOrigin",r.origin)("cdkConnectedOverlayOpen",r.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-picker-dropdown"))},dependencies:[ru,nn,Ii,Kt,Rt,Ye,Ue,Ge,Fe,ro,mr,we,dh,St,vr,Nr,Fr,oi],encapsulation:2,data:{animation:[Mo]},changeDetection:0});let o=n;return N([De()],o.prototype,"nzHourStep",void 0),N([De()],o.prototype,"nzMinuteStep",void 0),N([De()],o.prototype,"nzSecondStep",void 0),N([De()],o.prototype,"nzClearText",void 0),N([De()],o.prototype,"nzNowText",void 0),N([De()],o.prototype,"nzOkText",void 0),N([De()],o.prototype,"nzPopupClassName",void 0),N([De()],o.prototype,"nzFormat",void 0),N([De(),W()],o.prototype,"nzUse12Hours",void 0),N([De()],o.prototype,"nzSuffixIcon",void 0),N([W()],o.prototype,"nzHideDisabledOptions",void 0),N([De(),W()],o.prototype,"nzAllowEmpty",void 0),N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzAutoFocus",void 0),N([De()],o.prototype,"nzBackdrop",void 0),N([W()],o.prototype,"nzBorderless",void 0),N([W()],o.prototype,"nzInputReadOnly",void 0),o})(),fT=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Hk,dh]});let o=n;return o})();function $k(o,n){o&1&&Xt(0)}function jk(o,n){if(o&1&&(H(0),_(1,$k,1,0,"ng-container",4),B()),o&2){let e=m(2);f(),h("ngTemplateOutlet",e.extraFooter)}}function Wk(o,n){if(o&1&&(H(0),R(1,"span",5),B()),o&2){let e=m(2);f(),h("innerHTML",e.extraFooter,Dt)}}function Uk(o,n){if(o&1&&(C(0,"div"),H(1,2),_(2,jk,2,1,"ng-container",3)(3,Wk,2,1,"ng-container",3),B(),S()),o&2){let e=m();Ae("",e.prefixCls,"-footer-extra"),f(),h("ngSwitch",!0),f(),h("ngSwitchCase",e.isTemplateRef(e.extraFooter)),f(),h("ngSwitchCase",e.isNonEmptyString(e.extraFooter))}}function Kk(o,n){if(o&1){let e=Q();C(0,"a",6),A("click",function(){I(e);let i=m();return P(i.isTodayDisabled?null:i.onClickToday())}),Y(1),S()}if(o&2){let e=m();Dl("",e.prefixCls,"-today-btn ",e.isTodayDisabled?e.prefixCls+"-today-btn-disabled":"",""),Vt("title",e.todayTitle),f(),Ne(" ",e.locale.today," ")}}function qk(o,n){o&1&&Xt(0)}function Yk(o,n){if(o&1){let e=Q();C(0,"li")(1,"a",7),A("click",function(){I(e);let i=m(2);return P(i.isTodayDisabled?null:i.onClickToday())}),Y(2),S()()}if(o&2){let e=m(2);Ae("",e.prefixCls,"-now"),f(),Ae("",e.prefixCls,"-now-btn"),f(),Ne(" ",e.locale.now," ")}}function Qk(o,n){if(o&1){let e=Q();C(0,"li")(1,"button",8),A("click",function(){I(e);let i=m(2);return P(i.okDisabled?null:i.clickOk.emit())}),Y(2),S()()}if(o&2){let e=m(2);Ae("",e.prefixCls,"-ok"),f(),h("disabled",e.okDisabled),f(),Ne(" ",e.locale.ok," ")}}function Xk(o,n){if(o&1&&(C(0,"ul"),_(1,qk,1,0,"ng-container",4)(2,Yk,3,7,"li",0)(3,Qk,3,5,"li",0),S()),o&2){let e=m();Ae("",e.prefixCls,"-ranges"),f(),h("ngTemplateOutlet",e.rangeQuickSelector),f(),h("ngIf",e.showNow),f(),h("ngIf",e.hasTimePicker)}}function Zk(o,n){if(o&1){let e=Q();H(0),C(1,"button",6),A("click",function(){let r=I(e).$implicit;return P(r.onClick())}),Y(2),S(),B()}if(o&2){let e=n.$implicit;f(),cr(e.className),Vt("title",e.title||null),f(),Ne(" ",e.label," ")}}function Jk(o,n){o&1&&R(0,"th",6)}function eV(o,n){if(o&1&&(C(0,"th",7),Y(1),S()),o&2){let e=n.$implicit;Vt("title",e.title),f(),Ne(" ",e.content," ")}}function tV(o,n){if(o&1&&(C(0,"thead")(1,"tr",3),_(2,Jk,1,0,"th",4)(3,eV,2,2,"th",5),S()()),o&2){let e=m();f(2),h("ngIf",e.showWeek),f(),h("ngForOf",e.headRow)}}function nV(o,n){if(o&1&&(C(0,"td",11),Y(1),S()),o&2){let e=m().$implicit,t=m();Ae("",t.prefixCls,"-cell-week"),f(),Ne(" ",e.weekNum," ")}}function iV(o,n){o&1&&Xt(0)}var kr=o=>({$implicit:o});function rV(o,n){if(o&1&&(H(0),_(1,iV,1,0,"ng-container",16),B()),o&2){let e=m(2).$implicit;f(),h("ngTemplateOutlet",e.cellRender)("ngTemplateOutletContext",yt(2,kr,e.value))}}function oV(o,n){if(o&1&&(H(0),R(1,"span",17),B()),o&2){let e=m(2).$implicit;f(),h("innerHTML",e.cellRender,Dt)}}function sV(o,n){if(o&1&&(H(0),C(1,"div"),Y(2),S(),B()),o&2){let e=m(2).$implicit,t=m(2);f(),Ae("",t.prefixCls,"-cell-inner"),ze("aria-selected",e.isSelected)("aria-disabled",e.isDisabled),f(),Ne(" ",e.content," ")}}function aV(o,n){if(o&1&&(H(0)(1,13),_(2,rV,2,4,"ng-container",14)(3,oV,2,1,"ng-container",14)(4,sV,3,6,"ng-container",15),B()()),o&2){let e=m().$implicit,t=m(2);f(),h("ngSwitch",!0),f(),h("ngSwitchCase",t.isTemplateRef(e.cellRender)),f(),h("ngSwitchCase",t.isNonEmptyString(e.cellRender))}}function lV(o,n){o&1&&Xt(0)}function cV(o,n){if(o&1&&(H(0),_(1,lV,1,0,"ng-container",16),B()),o&2){let e=m(2).$implicit;f(),h("ngTemplateOutlet",e.fullCellRender)("ngTemplateOutletContext",yt(2,kr,e.value))}}function uV(o,n){o&1&&Xt(0)}function dV(o,n){if(o&1&&(C(0,"div"),Y(1),S(),C(2,"div"),_(3,uV,1,0,"ng-container",16),S()),o&2){let e=m(2).$implicit,t=m(2);Ae("",t.prefixCls,"-date-value"),f(),ye(e.content),f(),Ae("",t.prefixCls,"-date-content"),f(),h("ngTemplateOutlet",e.cellRender)("ngTemplateOutletContext",yt(9,kr,e.value))}}function pV(o,n){if(o&1&&(H(0),C(1,"div"),_(2,cV,2,4,"ng-container",18)(3,dV,4,11,"ng-template",null,19,_e),S(),B()),o&2){let e=te(4),t=m().$implicit,i=m(2);f(),Ae("",i.prefixCls,"-date ant-picker-cell-inner"),k("ant-picker-calendar-date-today",t.isToday),f(),h("ngIf",t.fullCellRender)("ngIfElse",e)}}function hV(o,n){if(o&1){let e=Q();C(0,"td",12),A("click",function(){let r=I(e).$implicit;return P(r.isDisabled?null:r.onClick())})("mouseenter",function(){let r=I(e).$implicit;return P(r.onMouseEnter())}),H(1,13),_(2,aV,5,3,"ng-container",14)(3,pV,5,7,"ng-container",14),B(),S()}if(o&2){let e=n.$implicit,t=m(2);Vt("title",e.title),h("ngClass",e.classMap),f(),h("ngSwitch",t.prefixCls),f(),h("ngSwitchCase","ant-picker"),f(),h("ngSwitchCase","ant-picker-calendar")}}function fV(o,n){if(o&1&&(C(0,"tr",8),_(1,nV,2,4,"td",9)(2,hV,4,5,"td",10),S()),o&2){let e=n.$implicit,t=m();h("ngClass",e.classMap),f(),h("ngIf",e.weekNum),f(),h("ngForOf",e.dateCells)("ngForTrackBy",t.trackByBodyColumn)}}function gV(o,n){if(o&1){let e=Q();H(0),C(1,"button",6),A("click",function(){let r=I(e).$implicit;return P(r.onClick())}),Y(2),S(),B()}if(o&2){let e=n.$implicit;f(),cr(e.className),Vt("title",e.title||null),f(),Ne(" ",e.label," ")}}function mV(o,n){o&1&&R(0,"th",6)}function vV(o,n){if(o&1&&(C(0,"th",7),Y(1),S()),o&2){let e=n.$implicit;Vt("title",e.title),f(),Ne(" ",e.content," ")}}function yV(o,n){if(o&1&&(C(0,"thead")(1,"tr",3),_(2,mV,1,0,"th",4)(3,vV,2,2,"th",5),S()()),o&2){let e=m();f(2),h("ngIf",e.showWeek),f(),h("ngForOf",e.headRow)}}function CV(o,n){if(o&1&&(C(0,"td",11),Y(1),S()),o&2){let e=m().$implicit,t=m();Ae("",t.prefixCls,"-cell-week"),f(),Ne(" ",e.weekNum," ")}}function _V(o,n){o&1&&Xt(0)}function SV(o,n){if(o&1&&(H(0),_(1,_V,1,0,"ng-container",16),B()),o&2){let e=m(2).$implicit;f(),h("ngTemplateOutlet",e.cellRender)("ngTemplateOutletContext",yt(2,kr,e.value))}}function wV(o,n){if(o&1&&(H(0),R(1,"span",17),B()),o&2){let e=m(2).$implicit;f(),h("innerHTML",e.cellRender,Dt)}}function bV(o,n){if(o&1&&(H(0),C(1,"div"),Y(2),S(),B()),o&2){let e=m(2).$implicit,t=m(2);f(),Ae("",t.prefixCls,"-cell-inner"),ze("aria-selected",e.isSelected)("aria-disabled",e.isDisabled),f(),Ne(" ",e.content," ")}}function TV(o,n){if(o&1&&(H(0)(1,13),_(2,SV,2,4,"ng-container",14)(3,wV,2,1,"ng-container",14)(4,bV,3,6,"ng-container",15),B()()),o&2){let e=m().$implicit,t=m(2);f(),h("ngSwitch",!0),f(),h("ngSwitchCase",t.isTemplateRef(e.cellRender)),f(),h("ngSwitchCase",t.isNonEmptyString(e.cellRender))}}function EV(o,n){o&1&&Xt(0)}function xV(o,n){if(o&1&&(H(0),_(1,EV,1,0,"ng-container",16),B()),o&2){let e=m(2).$implicit;f(),h("ngTemplateOutlet",e.fullCellRender)("ngTemplateOutletContext",yt(2,kr,e.value))}}function zV(o,n){o&1&&Xt(0)}function OV(o,n){if(o&1&&(C(0,"div"),Y(1),S(),C(2,"div"),_(3,zV,1,0,"ng-container",16),S()),o&2){let e=m(2).$implicit,t=m(2);Ae("",t.prefixCls,"-date-value"),f(),ye(e.content),f(),Ae("",t.prefixCls,"-date-content"),f(),h("ngTemplateOutlet",e.cellRender)("ngTemplateOutletContext",yt(9,kr,e.value))}}function DV(o,n){if(o&1&&(H(0),C(1,"div"),_(2,xV,2,4,"ng-container",18)(3,OV,4,11,"ng-template",null,19,_e),S(),B()),o&2){let e=te(4),t=m().$implicit,i=m(2);f(),Ae("",i.prefixCls,"-date ant-picker-cell-inner"),k("ant-picker-calendar-date-today",t.isToday),f(),h("ngIf",t.fullCellRender)("ngIfElse",e)}}function RV(o,n){if(o&1){let e=Q();C(0,"td",12),A("click",function(){let r=I(e).$implicit;return P(r.isDisabled?null:r.onClick())})("mouseenter",function(){let r=I(e).$implicit;return P(r.onMouseEnter())}),H(1,13),_(2,TV,5,3,"ng-container",14)(3,DV,5,7,"ng-container",14),B(),S()}if(o&2){let e=n.$implicit,t=m(2);Vt("title",e.title),h("ngClass",e.classMap),f(),h("ngSwitch",t.prefixCls),f(),h("ngSwitchCase","ant-picker"),f(),h("ngSwitchCase","ant-picker-calendar")}}function IV(o,n){if(o&1&&(C(0,"tr",8),_(1,CV,2,4,"td",9)(2,RV,4,5,"td",10),S()),o&2){let e=n.$implicit,t=m();h("ngClass",e.classMap),f(),h("ngIf",e.weekNum),f(),h("ngForOf",e.dateCells)("ngForTrackBy",t.trackByBodyColumn)}}function PV(o,n){if(o&1){let e=Q();H(0),C(1,"button",6),A("click",function(){let r=I(e).$implicit;return P(r.onClick())}),Y(2),S(),B()}if(o&2){let e=n.$implicit;f(),cr(e.className),Vt("title",e.title||null),f(),Ne(" ",e.label," ")}}function MV(o,n){o&1&&R(0,"th",6)}function FV(o,n){if(o&1&&(C(0,"th",7),Y(1),S()),o&2){let e=n.$implicit;Vt("title",e.title),f(),Ne(" ",e.content," ")}}function AV(o,n){if(o&1&&(C(0,"thead")(1,"tr",3),_(2,MV,1,0,"th",4)(3,FV,2,2,"th",5),S()()),o&2){let e=m();f(2),h("ngIf",e.showWeek),f(),h("ngForOf",e.headRow)}}function NV(o,n){if(o&1&&(C(0,"td",11),Y(1),S()),o&2){let e=m().$implicit,t=m();Ae("",t.prefixCls,"-cell-week"),f(),Ne(" ",e.weekNum," ")}}function LV(o,n){o&1&&Xt(0)}function kV(o,n){if(o&1&&(H(0),_(1,LV,1,0,"ng-container",16),B()),o&2){let e=m(2).$implicit;f(),h("ngTemplateOutlet",e.cellRender)("ngTemplateOutletContext",yt(2,kr,e.value))}}function VV(o,n){if(o&1&&(H(0),R(1,"span",17),B()),o&2){let e=m(2).$implicit;f(),h("innerHTML",e.cellRender,Dt)}}function GV(o,n){if(o&1&&(H(0),C(1,"div"),Y(2),S(),B()),o&2){let e=m(2).$implicit,t=m(2);f(),Ae("",t.prefixCls,"-cell-inner"),ze("aria-selected",e.isSelected)("aria-disabled",e.isDisabled),f(),Ne(" ",e.content," ")}}function HV(o,n){if(o&1&&(H(0)(1,13),_(2,kV,2,4,"ng-container",14)(3,VV,2,1,"ng-container",14)(4,GV,3,6,"ng-container",15),B()()),o&2){let e=m().$implicit,t=m(2);f(),h("ngSwitch",!0),f(),h("ngSwitchCase",t.isTemplateRef(e.cellRender)),f(),h("ngSwitchCase",t.isNonEmptyString(e.cellRender))}}function BV(o,n){o&1&&Xt(0)}function $V(o,n){if(o&1&&(H(0),_(1,BV,1,0,"ng-container",16),B()),o&2){let e=m(2).$implicit;f(),h("ngTemplateOutlet",e.fullCellRender)("ngTemplateOutletContext",yt(2,kr,e.value))}}function jV(o,n){o&1&&Xt(0)}function WV(o,n){if(o&1&&(C(0,"div"),Y(1),S(),C(2,"div"),_(3,jV,1,0,"ng-container",16),S()),o&2){let e=m(2).$implicit,t=m(2);Ae("",t.prefixCls,"-date-value"),f(),ye(e.content),f(),Ae("",t.prefixCls,"-date-content"),f(),h("ngTemplateOutlet",e.cellRender)("ngTemplateOutletContext",yt(9,kr,e.value))}}function UV(o,n){if(o&1&&(H(0),C(1,"div"),_(2,$V,2,4,"ng-container",18)(3,WV,4,11,"ng-template",null,19,_e),S(),B()),o&2){let e=te(4),t=m().$implicit,i=m(2);f(),Ae("",i.prefixCls,"-date ant-picker-cell-inner"),k("ant-picker-calendar-date-today",t.isToday),f(),h("ngIf",t.fullCellRender)("ngIfElse",e)}}function KV(o,n){if(o&1){let e=Q();C(0,"td",12),A("click",function(){let r=I(e).$implicit;return P(r.isDisabled?null:r.onClick())})("mouseenter",function(){let r=I(e).$implicit;return P(r.onMouseEnter())}),H(1,13),_(2,HV,5,3,"ng-container",14)(3,UV,5,7,"ng-container",14),B(),S()}if(o&2){let e=n.$implicit,t=m(2);Vt("title",e.title),h("ngClass",e.classMap),f(),h("ngSwitch",t.prefixCls),f(),h("ngSwitchCase","ant-picker"),f(),h("ngSwitchCase","ant-picker-calendar")}}function qV(o,n){if(o&1&&(C(0,"tr",8),_(1,NV,2,4,"td",9)(2,KV,4,5,"td",10),S()),o&2){let e=n.$implicit,t=m();h("ngClass",e.classMap),f(),h("ngIf",e.weekNum),f(),h("ngForOf",e.dateCells)("ngForTrackBy",t.trackByBodyColumn)}}function YV(o,n){if(o&1){let e=Q();H(0),C(1,"button",6),A("click",function(){let r=I(e).$implicit;return P(r.onClick())}),Y(2),S(),B()}if(o&2){let e=n.$implicit;f(),cr(e.className),Vt("title",e.title||null),f(),Ne(" ",e.label," ")}}function QV(o,n){o&1&&R(0,"th",6)}function XV(o,n){if(o&1&&(C(0,"th",7),Y(1),S()),o&2){let e=n.$implicit;Vt("title",e.title),f(),Ne(" ",e.content," ")}}function ZV(o,n){if(o&1&&(C(0,"thead")(1,"tr",3),_(2,QV,1,0,"th",4)(3,XV,2,2,"th",5),S()()),o&2){let e=m();f(2),h("ngIf",e.showWeek),f(),h("ngForOf",e.headRow)}}function JV(o,n){if(o&1&&(C(0,"td",11),Y(1),S()),o&2){let e=m().$implicit,t=m();Ae("",t.prefixCls,"-cell-week"),f(),Ne(" ",e.weekNum," ")}}function e2(o,n){o&1&&Xt(0)}function t2(o,n){if(o&1&&(H(0),_(1,e2,1,0,"ng-container",16),B()),o&2){let e=m(2).$implicit;f(),h("ngTemplateOutlet",e.cellRender)("ngTemplateOutletContext",yt(2,kr,e.value))}}function n2(o,n){if(o&1&&(H(0),R(1,"span",17),B()),o&2){let e=m(2).$implicit;f(),h("innerHTML",e.cellRender,Dt)}}function i2(o,n){if(o&1&&(H(0),C(1,"div"),Y(2),S(),B()),o&2){let e=m(2).$implicit,t=m(2);f(),Ae("",t.prefixCls,"-cell-inner"),ze("aria-selected",e.isSelected)("aria-disabled",e.isDisabled),f(),Ne(" ",e.content," ")}}function r2(o,n){if(o&1&&(H(0)(1,13),_(2,t2,2,4,"ng-container",14)(3,n2,2,1,"ng-container",14)(4,i2,3,6,"ng-container",15),B()()),o&2){let e=m().$implicit,t=m(2);f(),h("ngSwitch",!0),f(),h("ngSwitchCase",t.isTemplateRef(e.cellRender)),f(),h("ngSwitchCase",t.isNonEmptyString(e.cellRender))}}function o2(o,n){o&1&&Xt(0)}function s2(o,n){if(o&1&&(H(0),_(1,o2,1,0,"ng-container",16),B()),o&2){let e=m(2).$implicit;f(),h("ngTemplateOutlet",e.fullCellRender)("ngTemplateOutletContext",yt(2,kr,e.value))}}function a2(o,n){o&1&&Xt(0)}function l2(o,n){if(o&1&&(C(0,"div"),Y(1),S(),C(2,"div"),_(3,a2,1,0,"ng-container",16),S()),o&2){let e=m(2).$implicit,t=m(2);Ae("",t.prefixCls,"-date-value"),f(),ye(e.content),f(),Ae("",t.prefixCls,"-date-content"),f(),h("ngTemplateOutlet",e.cellRender)("ngTemplateOutletContext",yt(9,kr,e.value))}}function c2(o,n){if(o&1&&(H(0),C(1,"div"),_(2,s2,2,4,"ng-container",18)(3,l2,4,11,"ng-template",null,19,_e),S(),B()),o&2){let e=te(4),t=m().$implicit,i=m(2);f(),Ae("",i.prefixCls,"-date ant-picker-cell-inner"),k("ant-picker-calendar-date-today",t.isToday),f(),h("ngIf",t.fullCellRender)("ngIfElse",e)}}function u2(o,n){if(o&1){let e=Q();C(0,"td",12),A("click",function(){let r=I(e).$implicit;return P(r.isDisabled?null:r.onClick())})("mouseenter",function(){let r=I(e).$implicit;return P(r.onMouseEnter())}),H(1,13),_(2,r2,5,3,"ng-container",14)(3,c2,5,7,"ng-container",14),B(),S()}if(o&2){let e=n.$implicit,t=m(2);Vt("title",e.title),h("ngClass",e.classMap),f(),h("ngSwitch",t.prefixCls),f(),h("ngSwitchCase","ant-picker"),f(),h("ngSwitchCase","ant-picker-calendar")}}function d2(o,n){if(o&1&&(C(0,"tr",8),_(1,JV,2,4,"td",9)(2,u2,4,5,"td",10),S()),o&2){let e=n.$implicit,t=m();h("ngClass",e.classMap),f(),h("ngIf",e.weekNum),f(),h("ngForOf",e.dateCells)("ngForTrackBy",t.trackByBodyColumn)}}function p2(o,n){if(o&1){let e=Q();H(0),C(1,"decade-header",4),A("valueChange",function(i){I(e);let r=m();return P(r.activeDate=i)})("panelModeChange",function(i){I(e);let r=m();return P(r.panelModeChange.emit(i))})("valueChange",function(i){I(e);let r=m();return P(r.headerChange.emit(i))}),S(),C(2,"div")(3,"decade-table",5),A("valueChange",function(i){I(e);let r=m();return P(r.onChooseDecade(i))}),S()(),B()}if(o&2){let e=m();f(),h("value",e.activeDate)("locale",e.locale)("showSuperPreBtn",e.enablePrevNext("prev","decade"))("showSuperNextBtn",e.enablePrevNext("next","decade"))("showNextBtn",!1)("showPreBtn",!1),f(),Ae("",e.prefixCls,"-body"),f(),h("activeDate",e.activeDate)("value",e.value)("locale",e.locale)("disabledDate",e.disabledDate)}}function h2(o,n){if(o&1){let e=Q();H(0),C(1,"year-header",4),A("valueChange",function(i){I(e);let r=m();return P(r.activeDate=i)})("panelModeChange",function(i){I(e);let r=m();return P(r.panelModeChange.emit(i))})("valueChange",function(i){I(e);let r=m();return P(r.headerChange.emit(i))}),S(),C(2,"div")(3,"year-table",6),A("valueChange",function(i){I(e);let r=m();return P(r.onChooseYear(i))})("cellHover",function(i){I(e);let r=m();return P(r.cellHover.emit(i))}),S()(),B()}if(o&2){let e=m();f(),h("value",e.activeDate)("locale",e.locale)("showSuperPreBtn",e.enablePrevNext("prev","year"))("showSuperNextBtn",e.enablePrevNext("next","year"))("showNextBtn",!1)("showPreBtn",!1),f(),Ae("",e.prefixCls,"-body"),f(),h("activeDate",e.activeDate)("value",e.value)("locale",e.locale)("disabledDate",e.disabledDate)("selectedValue",e.selectedValue)("hoverValue",e.hoverValue)}}function f2(o,n){if(o&1){let e=Q();H(0),C(1,"month-header",4),A("valueChange",function(i){I(e);let r=m();return P(r.activeDate=i)})("panelModeChange",function(i){I(e);let r=m();return P(r.panelModeChange.emit(i))})("valueChange",function(i){I(e);let r=m();return P(r.headerChange.emit(i))}),S(),C(2,"div")(3,"month-table",7),A("valueChange",function(i){I(e);let r=m();return P(r.onChooseMonth(i))})("cellHover",function(i){I(e);let r=m();return P(r.cellHover.emit(i))}),S()(),B()}if(o&2){let e=m();f(),h("value",e.activeDate)("locale",e.locale)("showSuperPreBtn",e.enablePrevNext("prev","month"))("showSuperNextBtn",e.enablePrevNext("next","month"))("showNextBtn",!1)("showPreBtn",!1),f(),Ae("",e.prefixCls,"-body"),f(),h("value",e.value)("activeDate",e.activeDate)("locale",e.locale)("disabledDate",e.disabledDate)("selectedValue",e.selectedValue)("hoverValue",e.hoverValue)}}function g2(o,n){if(o&1){let e=Q();H(0),C(1,"date-header",8),A("valueChange",function(i){I(e);let r=m();return P(r.activeDate=i)})("panelModeChange",function(i){I(e);let r=m();return P(r.panelModeChange.emit(i))})("valueChange",function(i){I(e);let r=m();return P(r.headerChange.emit(i))}),S(),C(2,"div")(3,"date-table",9),A("valueChange",function(i){I(e);let r=m();return P(r.onSelectDate(i))})("cellHover",function(i){I(e);let r=m();return P(r.cellHover.emit(i))}),S()(),B()}if(o&2){let e=m();f(),h("value",e.activeDate)("locale",e.locale)("showSuperPreBtn",e.panelMode==="week"?e.enablePrevNext("prev","week"):e.enablePrevNext("prev","date"))("showSuperNextBtn",e.panelMode==="week"?e.enablePrevNext("next","week"):e.enablePrevNext("next","date"))("showPreBtn",e.panelMode==="week"?e.enablePrevNext("prev","week"):e.enablePrevNext("prev","date"))("showNextBtn",e.panelMode==="week"?e.enablePrevNext("next","week"):e.enablePrevNext("next","date")),f(),Ae("",e.prefixCls,"-body"),f(),h("locale",e.locale)("showWeek",e.showWeek)("value",e.value)("activeDate",e.activeDate)("disabledDate",e.disabledDate)("cellRender",e.dateRender)("selectedValue",e.selectedValue)("hoverValue",e.hoverValue)("canSelectWeek",e.panelMode==="week")}}function m2(o,n){if(o&1){let e=Q();H(0),C(1,"nz-time-picker-panel",10),A("ngModelChange",function(i){I(e);let r=m();return P(r.onSelectTime(i))}),S(),B()}if(o&2){let e=m();f(),h("nzInDatePicker",!0)("ngModel",e.value==null?null:e.value.nativeDate)("format",e.timeOptions.nzFormat)("nzHourStep",e.timeOptions.nzHourStep)("nzMinuteStep",e.timeOptions.nzMinuteStep)("nzSecondStep",e.timeOptions.nzSecondStep)("nzDisabledHours",e.timeOptions.nzDisabledHours)("nzDisabledMinutes",e.timeOptions.nzDisabledMinutes)("nzDisabledSeconds",e.timeOptions.nzDisabledSeconds)("nzHideDisabledOptions",!!e.timeOptions.nzHideDisabledOptions)("nzDefaultOpenValue",e.timeOptions.nzDefaultOpenValue)("nzUse12Hours",!!e.timeOptions.nzUse12Hours)("nzAddOn",e.timeOptions.nzAddOn)}}function v2(o,n){o&1&&Xt(0)}var y2=o=>({partType:o});function C2(o,n){if(o&1&&(H(0),_(1,v2,1,0,"ng-container",7),B()),o&2){let e=m(2),t=te(4);f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(2,y2,e.datePickerService.activeInput))}}function _2(o,n){o&1&&Xt(0)}function S2(o,n){o&1&&Xt(0)}var gT=()=>({partType:"left"}),mT=()=>({partType:"right"});function w2(o,n){if(o&1&&_(0,_2,1,0,"ng-container",7)(1,S2,1,0,"ng-container",7),o&2){m(2);let e=te(4);h("ngTemplateOutlet",e)("ngTemplateOutletContext",ii(4,gT)),f(),h("ngTemplateOutlet",e)("ngTemplateOutletContext",ii(5,mT))}}function b2(o,n){o&1&&Xt(0)}function T2(o,n){if(o&1&&(H(0),C(1,"div"),R(2,"div"),C(3,"div")(4,"div"),_(5,C2,2,4,"ng-container",0)(6,w2,2,6,"ng-template",null,5,_e),S(),_(8,b2,1,0,"ng-container",6),S()(),B()),o&2){let e=te(7),t=m(),i=te(6);f(),Dl("",t.prefixCls,"-range-wrapper ",t.prefixCls,"-date-range-wrapper"),f(),Ol(t.arrowPosition),Ae("",t.prefixCls,"-range-arrow"),f(),Dl("",t.prefixCls,"-panel-container ",t.showWeek?t.prefixCls+"-week-number":"",""),f(),Ae("",t.prefixCls,"-panels"),f(),h("ngIf",t.hasTimePicker)("ngIfElse",e),f(3),h("ngTemplateOutlet",i)}}function E2(o,n){o&1&&Xt(0)}function x2(o,n){o&1&&Xt(0)}function z2(o,n){if(o&1&&(C(0,"div")(1,"div",8),_(2,E2,1,0,"ng-container",6)(3,x2,1,0,"ng-container",6),S()()),o&2){let e=m(),t=te(4),i=te(6);xS("",e.prefixCls,"-panel-container ",e.showWeek?e.prefixCls+"-week-number":""," ",e.hasTimePicker?e.prefixCls+"-time":""," ",e.isRange?e.prefixCls+"-range":"",""),f(),Ae("",e.prefixCls,"-panel"),k("ant-picker-panel-rtl",e.dir==="rtl"),f(),h("ngTemplateOutlet",t),f(),h("ngTemplateOutlet",i)}}function O2(o,n){if(o&1){let e=Q();C(0,"div")(1,"inner-popup",9),A("panelModeChange",function(i){let s=I(e).partType,a=m();return P(a.onPanelModeChange(i,s))})("cellHover",function(i){I(e);let r=m();return P(r.onCellHover(i))})("selectDate",function(i){I(e);let r=m();return P(r.changeValueFromSelect(i,!r.showTime))})("selectTime",function(i){let s=I(e).partType,a=m();return P(a.onSelectTime(i,s))})("headerChange",function(i){let s=I(e).partType,a=m();return P(a.onActiveDateChange(i,s))}),S()()}if(o&2){let e=n.partType,t=m();Ae("",t.prefixCls,"-panel"),k("ant-picker-panel-rtl",t.dir==="rtl"),f(),h("showWeek",t.showWeek)("endPanelMode",t.getPanelMode(t.endPanelMode,e))("partType",e)("locale",t.locale)("showTimePicker",t.hasTimePicker)("timeOptions",t.getTimeOptions(e))("panelMode",t.getPanelMode(t.panelMode,e))("activeDate",t.getActiveDate(e))("value",t.getValue(e))("disabledDate",t.disabledDate)("dateRender",t.dateRender)("selectedValue",t.datePickerService==null?null:t.datePickerService.value)("hoverValue",t.hoverValue)}}function D2(o,n){if(o&1){let e=Q();C(0,"calendar-footer",11),A("clickOk",function(){I(e);let i=m(2);return P(i.onClickOk())})("clickToday",function(i){I(e);let r=m(2);return P(r.onClickToday(i))}),S()}if(o&2){let e=m(2),t=te(8);h("locale",e.locale)("isRange",e.isRange)("showToday",e.showToday)("showNow",e.showNow)("hasTimePicker",e.hasTimePicker)("okDisabled",!e.isAllowed(e.datePickerService==null?null:e.datePickerService.value))("extraFooter",e.extraFooter)("rangeQuickSelector",e.ranges?t:null)}}function R2(o,n){if(o&1&&_(0,D2,1,8,"calendar-footer",10),o&2){let e=m();h("ngIf",e.hasFooter)}}function I2(o,n){if(o&1){let e=Q();C(0,"li",13),A("click",function(){let r=I(e).$implicit,s=m(2);return P(s.onClickPresetRange(s.ranges[r]))})("mouseenter",function(){let r=I(e).$implicit,s=m(2);return P(s.onHoverPresetRange(s.ranges[r]))})("mouseleave",function(){I(e);let i=m(2);return P(i.onPresetRangeMouseLeave())}),C(1,"span",14),Y(2),S()()}if(o&2){let e=n.$implicit,t=m(2);Ae("",t.prefixCls,"-preset"),f(2),ye(e)}}function P2(o,n){if(o&1&&_(0,I2,3,4,"li",12),o&2){let e=m();h("ngForOf",e.getObjectKeys(e.ranges))}}var M2=["separatorElement"],F2=["pickerInput"],A2=["rangePickerInput"];function N2(o,n){o&1&&Xt(0)}function L2(o,n){if(o&1){let e=Q();C(0,"div")(1,"input",7,8),A("ngModelChange",function(i){I(e);let r=m(2);return P(r.inputValue=i)})("focus",function(i){I(e);let r=m(2);return P(r.onFocus(i))})("focusout",function(i){I(e);let r=m(2);return P(r.onFocusout(i))})("ngModelChange",function(i){I(e);let r=m(2);return P(r.onInputChange(i))})("keyup.enter",function(i){I(e);let r=m(2);return P(r.onKeyupEnter(i))}),S(),_(3,N2,1,0,"ng-container",9),S()}if(o&2){let e=m(2),t=te(4);Ae("",e.prefixCls,"-input"),f(),k("ant-input-disabled",e.nzDisabled),Vt("placeholder",e.getPlaceholder()),h("disabled",e.nzDisabled)("readOnly",e.nzInputReadOnly)("ngModel",e.inputValue)("size",e.inputSize),ze("id",e.nzId),f(2),h("ngTemplateOutlet",t)}}function k2(o,n){o&1&&Xt(0)}function V2(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(4);f(),ye(e.nzSeparator)}}function G2(o,n){o&1&&R(0,"span",14)}function H2(o,n){if(o&1&&(H(0),_(1,V2,2,1,"ng-container",0)(2,G2,1,0,"ng-template",null,13,_e),B()),o&2){let e=te(3),t=m(3);f(),h("ngIf",t.nzSeparator)("ngIfElse",e)}}function B2(o,n){o&1&&Xt(0)}function $2(o,n){o&1&&Xt(0)}function j2(o,n){if(o&1&&(H(0),C(1,"div"),_(2,k2,1,0,"ng-container",10),S(),C(3,"div",null,11)(5,"span"),_(6,H2,4,2,"ng-container",12),S()(),C(7,"div"),_(8,B2,1,0,"ng-container",10),S(),_(9,$2,1,0,"ng-container",9),B()),o&2){let e=m(2),t=te(2),i=te(4);f(),Ae("",e.prefixCls,"-input"),f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",ii(18,gT)),f(),Ae("",e.prefixCls,"-range-separator"),f(2),Ae("",e.prefixCls,"-separator"),f(),h("nzStringTemplateOutlet",e.nzSeparator),f(),Ae("",e.prefixCls,"-input"),f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",ii(19,mT)),f(),h("ngTemplateOutlet",i)}}function W2(o,n){if(o&1&&(H(0),_(1,L2,4,12,"div",5)(2,j2,10,20,"ng-container",6),B()),o&2){let e=m();f(),h("ngIf",!e.isRange),f(),h("ngIf",e.isRange)}}function U2(o,n){if(o&1){let e=Q();C(0,"input",15,16),A("click",function(i){I(e);let r=m();return P(r.onClickInputBox(i))})("focusout",function(i){I(e);let r=m();return P(r.onFocusout(i))})("focus",function(i){let s=I(e).partType,a=m();return P(a.onFocus(i,s))})("keyup.enter",function(i){I(e);let r=m();return P(r.onKeyupEnter(i))})("ngModelChange",function(i){let s=I(e).partType,a=m();return P(a.inputValue[a.datePickerService.getActiveIndex(s)]=i)})("ngModelChange",function(i){I(e);let r=m();return P(r.onInputChange(i))}),S()}if(o&2){let e=n.partType,t=m();Vt("placeholder",t.getPlaceholder(e)),h("disabled",t.nzDisabled)("readOnly",t.nzInputReadOnly)("size",t.inputSize)("ngModel",t.inputValue[t.datePickerService.getActiveIndex(e)]),ze("id",t.nzId)}}function K2(o,n){if(o&1){let e=Q();C(0,"span",20),A("click",function(i){I(e);let r=m(2);return P(r.onClickClear(i))}),R(1,"span",21),S()}if(o&2){let e=m(2);Ae("",e.prefixCls,"-clear")}}function q2(o,n){if(o&1&&(H(0),R(1,"span",22),B()),o&2){let e=n.$implicit;f(),h("nzType",e)}}function Y2(o,n){if(o&1&&R(0,"nz-form-item-feedback-icon",23),o&2){let e=m(2);h("status",e.status)}}function Q2(o,n){if(o&1&&(R(0,"div",17),_(1,K2,2,3,"span",18),C(2,"span"),_(3,q2,2,1,"ng-container",12)(4,Y2,1,1,"nz-form-item-feedback-icon",19),S()),o&2){let e=m();Ae("",e.prefixCls,"-active-bar"),h("ngStyle",e.activeBarStyle),f(),h("ngIf",e.showClear()),f(),Ae("",e.prefixCls,"-suffix"),f(),h("nzStringTemplateOutlet",e.nzSuffixIcon),f(),h("ngIf",e.hasFeedback&&!!e.status)}}function X2(o,n){if(o&1){let e=Q();C(0,"div",17)(1,"date-range-popup",24),A("panelModeChange",function(i){I(e);let r=m();return P(r.onPanelModeChange(i))})("calendarChange",function(i){I(e);let r=m();return P(r.onCalendarChange(i))})("resultOk",function(){I(e);let i=m();return P(i.onResultOk())}),S()()}if(o&2){let e=m();Dl("",e.prefixCls,"-dropdown ",e.nzDropdownClassName,""),k("ant-picker-dropdown-rtl",e.dir==="rtl")("ant-picker-dropdown-placement-bottomLeft",e.currentPositionY==="bottom"&&e.currentPositionX==="start")("ant-picker-dropdown-placement-topLeft",e.currentPositionY==="top"&&e.currentPositionX==="start")("ant-picker-dropdown-placement-bottomRight",e.currentPositionY==="bottom"&&e.currentPositionX==="end")("ant-picker-dropdown-placement-topRight",e.currentPositionY==="top"&&e.currentPositionX==="end")("ant-picker-dropdown-range",e.isRange)("ant-picker-active-left",e.datePickerService.activeInput==="left")("ant-picker-active-right",e.datePickerService.activeInput==="right"),h("ngStyle",e.nzPopupStyle),f(),h("isRange",e.isRange)("inline",e.nzInline)("defaultPickerValue",e.nzDefaultPickerValue)("showWeek",e.nzShowWeekNumber||e.nzMode==="week")("panelMode",e.panelMode)("locale",e.nzLocale==null?null:e.nzLocale.lang)("showToday",e.nzMode==="date"&&e.nzShowToday&&!e.isRange&&!e.nzShowTime)("showNow",e.nzMode==="date"&&e.nzShowNow&&!e.isRange&&!!e.nzShowTime)("showTime",e.nzShowTime)("dateRender",e.nzDateRender)("disabledDate",e.nzDisabledDate)("disabledTime",e.nzDisabledTime)("extraFooter",e.extraFooter)("ranges",e.nzRanges)("dir",e.dir)}}function Z2(o,n){o&1&&Xt(0)}function J2(o,n){if(o&1&&(C(0,"div",25),_(1,Z2,1,0,"ng-container",9),S()),o&2){let e=m(),t=te(6);h("nzNoAnimation",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("@slideMotion","enter"),f(),h("ngTemplateOutlet",t)}}var hh="ant-picker",eG={nzDisabledHours(){return[]},nzDisabledMinutes(){return[]},nzDisabledSeconds(){return[]}};function vT(o,n){let e=n?n(o&&o.nativeDate):{};return e=V(V({},eG),e),e}function tG(o,n){let e=!1;if(o){let t=o.getHours(),i=o.getMinutes(),r=o.getSeconds();n.nzDisabledHours().indexOf(t)===-1&&n.nzDisabledMinutes(t).indexOf(i)===-1?e=n.nzDisabledSeconds(t,i).indexOf(r)!==-1:e=!0}return!e}function nG(o,n){let e=vT(o,n);return tG(o,e)}function ph(o,n,e){return!(!o||n&&n(o.nativeDate)||e&&!nG(o,e))}function fh(o){return o&&o.replace(/Y/g,"y").replace(/D/g,"d")}var yT=(()=>{let n=class n{constructor(t){this.dateHelper=t,this.showToday=!1,this.showNow=!1,this.hasTimePicker=!1,this.isRange=!1,this.okDisabled=!1,this.rangeQuickSelector=null,this.clickOk=new O,this.clickToday=new O,this.prefixCls=hh,this.isTemplateRef=Jg,this.isNonEmptyString=Zg,this.isTodayDisabled=!1,this.todayTitle=""}ngOnChanges(t){let i=new Date;if(t.disabledDate&&(this.isTodayDisabled=!!(this.disabledDate&&this.disabledDate(i))),t.locale){let r=fh(this.locale.dateFormat);this.todayTitle=this.dateHelper.format(i,r)}}onClickToday(){let t=new Ln;this.clickToday.emit(t.clone())}};n.\u0275fac=function(i){return new(i||n)(w(no))},n.\u0275cmp=j({type:n,selectors:[["calendar-footer"]],inputs:{locale:"locale",showToday:"showToday",showNow:"showNow",hasTimePicker:"hasTimePicker",isRange:"isRange",okDisabled:"okDisabled",disabledDate:"disabledDate",extraFooter:"extraFooter",rangeQuickSelector:"rangeQuickSelector"},outputs:{clickOk:"clickOk",clickToday:"clickToday"},exportAs:["calendarFooter"],standalone:!0,features:[oe,K],decls:4,vars:6,consts:[[3,"class",4,"ngIf"],["role","button",3,"class","title","click",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngTemplateOutlet"],[3,"innerHTML"],["role","button",3,"title","click"],[3,"click"],["nz-button","","type","button","nzType","primary","nzSize","small",3,"disabled","click"]],template:function(i,r){i&1&&(C(0,"div"),_(1,Uk,4,6,"div",0)(2,Kk,2,6,"a",1)(3,Xk,4,6,"ul",0),S()),i&2&&(Ae("",r.prefixCls,"-footer"),f(),h("ngIf",r.extraFooter),f(),h("ngIf",r.showToday),f(),h("ngIf",r.hasTimePicker||r.rangeQuickSelector))},dependencies:[we,jn,Wn,Be,Hi,eo,yi,hr],encapsulation:2,changeDetection:0});let o=n;return o})(),cv=(()=>{let n=class n{constructor(){this.activeInput="left",this.arrowLeft=0,this.isRange=!1,this.valueChange$=new tn(1),this.emitValue$=new J,this.inputPartChange$=new J}initValue(t=!1){t&&(this.initialValue=this.isRange?[]:null),this.setValue(this.initialValue)}hasValue(t=this.value){return Array.isArray(t)?!!t[0]||!!t[1]:!!t}makeValue(t){return this.isRange?t?t.map(i=>new Ln(i)):[]:t?new Ln(t):null}setActiveDate(t,i=!1,r="month"){let s={date:"month",month:"year",year:"decade"};this.isRange?this.activeDate=cw(t,i,s[r],this.activeInput):this.activeDate=Vl(t)}setValue(t){this.value=t,this.valueChange$.next(this.value)}getActiveIndex(t=this.activeInput){return{left:0,right:1}[t]}ngOnDestroy(){this.valueChange$.complete(),this.emitValue$.complete(),this.inputPartChange$.complete()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),gh=(()=>{let n=class n{constructor(){this.prefixCls="ant-picker-header",this.selectors=[],this.showSuperPreBtn=!0,this.showSuperNextBtn=!0,this.showPreBtn=!0,this.showNextBtn=!0,this.panelModeChange=new O,this.valueChange=new O}superPreviousTitle(){return this.locale.previousYear}previousTitle(){return this.locale.previousMonth}superNextTitle(){return this.locale.nextYear}nextTitle(){return this.locale.nextMonth}superPrevious(){this.changeValue(this.value.addYears(-1))}superNext(){this.changeValue(this.value.addYears(1))}previous(){this.changeValue(this.value.addMonths(-1))}next(){this.changeValue(this.value.addMonths(1))}changeValue(t){this.value!==t&&(this.value=t,this.valueChange.emit(this.value),this.render())}changeMode(t){this.panelModeChange.emit(t)}render(){this.value&&(this.selectors=this.getSelectors())}ngOnInit(){this.value||(this.value=new Ln),this.selectors=this.getSelectors()}ngOnChanges(t){(t.value||t.locale)&&this.render()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,inputs:{value:"value",locale:"locale",showSuperPreBtn:"showSuperPreBtn",showSuperNextBtn:"showSuperNextBtn",showPreBtn:"showPreBtn",showNextBtn:"showNextBtn"},outputs:{panelModeChange:"panelModeChange",valueChange:"valueChange"},features:[oe]});let o=n;return o})(),iG=(()=>{let n=class n extends gh{previous(){}next(){}get startYear(){return parseInt(`${this.value.getYear()/100}`,10)*100}get endYear(){return this.startYear+99}superPrevious(){this.changeValue(this.value.addYears(-100))}superNext(){this.changeValue(this.value.addYears(100))}getSelectors(){return[{className:`${this.prefixCls}-decade-btn`,title:"",onClick:()=>{},label:`${this.startYear}-${this.endYear}`}]}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["decade-header"]],exportAs:["decadeHeader"],standalone:!0,features:[Xe,K],decls:11,vars:31,consts:[["role","button","type","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(i,r){i&1&&(C(0,"div")(1,"button",0),A("click",function(){return r.superPrevious()}),R(2,"span",1),S(),C(3,"button",0),A("click",function(){return r.previous()}),R(4,"span",2),S(),C(5,"div"),_(6,Zk,3,5,"ng-container",3),S(),C(7,"button",0),A("click",function(){return r.next()}),R(8,"span",4),S(),C(9,"button",0),A("click",function(){return r.superNext()}),R(10,"span",5),S()()),i&2&&(cr(r.prefixCls),f(),Ae("",r.prefixCls,"-super-prev-btn"),Re("visibility",r.showSuperPreBtn?"visible":"hidden"),Vt("title",r.superPreviousTitle()),f(2),Ae("",r.prefixCls,"-prev-btn"),Re("visibility",r.showPreBtn?"visible":"hidden"),Vt("title",r.previousTitle()),f(2),Ae("",r.prefixCls,"-view"),f(),h("ngForOf",r.selectors),f(),Ae("",r.prefixCls,"-next-btn"),Re("visibility",r.showNextBtn?"visible":"hidden"),Vt("title",r.nextTitle()),f(2),Ae("",r.prefixCls,"-super-next-btn"),Re("visibility",r.showSuperNextBtn?"visible":"hidden"),Vt("title",r.superNextTitle()))},dependencies:[lt],encapsulation:2,changeDetection:0});let o=n;return o})(),mh=(()=>{let n=class n{constructor(){this.isTemplateRef=Jg,this.isNonEmptyString=Zg,this.headRow=[],this.bodyRows=[],this.MAX_ROW=6,this.MAX_COL=7,this.prefixCls="ant-picker",this.activeDate=new Ln,this.showWeek=!1,this.selectedValue=[],this.hoverValue=[],this.canSelectWeek=!1,this.valueChange=new O,this.cellHover=new O}render(){this.activeDate&&(this.headRow=this.makeHeadRow(),this.bodyRows=this.makeBodyRows())}trackByBodyRow(t,i){return i.trackByIndex}trackByBodyColumn(t,i){return i.trackByIndex}hasRangeValue(){return this.selectedValue?.length>0||this.hoverValue?.length>0}getClassMap(t){return{"ant-picker-cell":!0,"ant-picker-cell-in-view":!0,"ant-picker-cell-selected":t.isSelected,"ant-picker-cell-disabled":t.isDisabled,"ant-picker-cell-in-range":!!t.isInSelectedRange,"ant-picker-cell-range-start":!!t.isSelectedStart,"ant-picker-cell-range-end":!!t.isSelectedEnd,"ant-picker-cell-range-start-single":!!t.isStartSingle,"ant-picker-cell-range-end-single":!!t.isEndSingle,"ant-picker-cell-range-hover":!!t.isInHoverRange,"ant-picker-cell-range-hover-start":!!t.isHoverStart,"ant-picker-cell-range-hover-end":!!t.isHoverEnd,"ant-picker-cell-range-hover-edge-start":!!t.isFirstCellInPanel,"ant-picker-cell-range-hover-edge-end":!!t.isLastCellInPanel,"ant-picker-cell-range-start-near-hover":!!t.isRangeStartNearHover,"ant-picker-cell-range-end-near-hover":!!t.isRangeEndNearHover}}ngOnInit(){this.render()}ngOnChanges(t){t.activeDate&&!t.activeDate.currentValue&&(this.activeDate=new Ln),(t.disabledDate||t.locale||t.showWeek||t.selectWeek||this.isDateRealChange(t.activeDate)||this.isDateRealChange(t.value)||this.isDateRealChange(t.selectedValue)||this.isDateRealChange(t.hoverValue))&&this.render()}isDateRealChange(t){if(t){let i=t.previousValue,r=t.currentValue;return Array.isArray(r)?!Array.isArray(i)||r.length!==i.length||r.some((s,a)=>{let l=i[a];return l instanceof Ln?l.isSameDay(s):l!==s}):!this.isSameDate(i,r)}return!1}isSameDate(t,i){return!t&&!i||t&&i&&i.isSameDay(t)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,inputs:{prefixCls:"prefixCls",value:"value",locale:"locale",activeDate:"activeDate",showWeek:"showWeek",selectedValue:"selectedValue",hoverValue:"hoverValue",disabledDate:"disabledDate",cellRender:"cellRender",fullCellRender:"fullCellRender",canSelectWeek:"canSelectWeek"},outputs:{valueChange:"valueChange",cellHover:"cellHover"},features:[oe]});let o=n;return o})(),rG=4,oG=3,sG=(()=>{let n=class n extends mh{get startYear(){return parseInt(`${this.activeDate.getYear()/100}`,10)*100}get endYear(){return this.startYear+99}makeHeadRow(){return[]}makeBodyRows(){let t=[],i=this.value&&this.value.getYear(),r=this.startYear,s=this.endYear,a=r-10,l=0;for(let c=0;c<rG;c++){let u={dateCells:[],trackByIndex:c};for(let d=0;d<oG;d++){let p=a+l*10,g=a+l*10+9,v=`${p}-${g}`,y={trackByIndex:d,value:this.activeDate.setYear(p).nativeDate,content:v,title:v,isDisabled:!1,isSelected:i>=p&&i<=g,isLowerThanStart:g<r,isBiggerThanEnd:p>s,classMap:{},onClick(){},onMouseEnter(){}};y.classMap=this.getClassMap(y),y.onClick=()=>this.chooseDecade(p),l++,u.dateCells.push(y)}t.push(u)}return t}getClassMap(t){return{[`${this.prefixCls}-cell`]:!0,[`${this.prefixCls}-cell-in-view`]:!t.isBiggerThanEnd&&!t.isLowerThanStart,[`${this.prefixCls}-cell-selected`]:t.isSelected,[`${this.prefixCls}-cell-disabled`]:t.isDisabled}}chooseDecade(t){this.value=this.activeDate.setYear(t),this.valueChange.emit(this.value)}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["decade-table"]],exportAs:["decadeTable"],standalone:!0,features:[Xe,K],decls:4,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(i,r){i&1&&(C(0,"table",0),_(1,tV,4,2,"thead",1),C(2,"tbody"),_(3,fV,3,4,"tr",2),S()()),i&2&&(f(),h("ngIf",r.headRow&&r.headRow.length>0),f(2),h("ngForOf",r.bodyRows)("ngForTrackBy",r.trackByBodyRow))},dependencies:[we,lt,St,jn,Wn,Be,Gi],encapsulation:2,changeDetection:0});let o=n;return o})(),aG=(()=>{let n=class n extends gh{get startYear(){return parseInt(`${this.value.getYear()/10}`,10)*10}get endYear(){return this.startYear+9}superPrevious(){this.changeValue(this.value.addYears(-10))}superNext(){this.changeValue(this.value.addYears(10))}getSelectors(){return[{className:`${this.prefixCls}-year-btn`,title:"",onClick:()=>this.changeMode("decade"),label:`${this.startYear}-${this.endYear}`}]}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["year-header"]],exportAs:["yearHeader"],standalone:!0,features:[Xe,K],decls:11,vars:31,consts:[["role","button","type","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(i,r){i&1&&(C(0,"div")(1,"button",0),A("click",function(){return r.superPrevious()}),R(2,"span",1),S(),C(3,"button",0),A("click",function(){return r.previous()}),R(4,"span",2),S(),C(5,"div"),_(6,gV,3,5,"ng-container",3),S(),C(7,"button",0),A("click",function(){return r.next()}),R(8,"span",4),S(),C(9,"button",0),A("click",function(){return r.superNext()}),R(10,"span",5),S()()),i&2&&(cr(r.prefixCls),f(),Ae("",r.prefixCls,"-super-prev-btn"),Re("visibility",r.showSuperPreBtn?"visible":"hidden"),Vt("title",r.superPreviousTitle()),f(2),Ae("",r.prefixCls,"-prev-btn"),Re("visibility",r.showPreBtn?"visible":"hidden"),Vt("title",r.previousTitle()),f(2),Ae("",r.prefixCls,"-view"),f(),h("ngForOf",r.selectors),f(),Ae("",r.prefixCls,"-next-btn"),Re("visibility",r.showNextBtn?"visible":"hidden"),Vt("title",r.nextTitle()),f(2),Ae("",r.prefixCls,"-super-next-btn"),Re("visibility",r.showSuperNextBtn?"visible":"hidden"),Vt("title",r.superNextTitle()))},dependencies:[lt],encapsulation:2,changeDetection:0});let o=n;return o})(),lG=(()=>{let n=class n extends mh{constructor(t){super(),this.dateHelper=t,this.MAX_ROW=4,this.MAX_COL=3}makeHeadRow(){return[]}makeBodyRows(){let t=this.activeDate&&this.activeDate.getYear(),i=parseInt(`${t/10}`,10)*10,r=i+9,s=i-1,a=[],l=0;for(let c=0;c<this.MAX_ROW;c++){let u={dateCells:[],trackByIndex:c};for(let d=0;d<this.MAX_COL;d++){let p=s+l,g=this.activeDate.setYear(p),v=this.dateHelper.format(g.nativeDate,"yyyy"),y=this.isDisabledYear(g),x={trackByIndex:d,value:g.nativeDate,isDisabled:y,isSameDecade:p>=i&&p<=r,isSelected:p===(this.value&&this.value.getYear()),content:v,title:v,classMap:{},isLastCellInPanel:g.getYear()===r,isFirstCellInPanel:g.getYear()===i,cellRender:Ds(this.cellRender,g),fullCellRender:Ds(this.fullCellRender,g),onClick:()=>this.chooseYear(x.value.getFullYear()),onMouseEnter:()=>this.cellHover.emit(g)};this.addCellProperty(x,g),u.dateCells.push(x),l++}a.push(u)}return a}getClassMap(t){return ot(V({},super.getClassMap(t)),{"ant-picker-cell-in-view":!!t.isSameDecade})}isDisabledYear(t){if(!this.disabledDate)return!1;let i=t.setMonth(0).setDate(1);for(let r=i;r.getYear()===t.getYear();r=r.addDays(1))if(!this.disabledDate(r.nativeDate))return!1;return!0}addCellProperty(t,i){if(this.hasRangeValue()){let[r,s]=this.hoverValue,[a,l]=this.selectedValue;a?.isSameYear(i)&&(t.isSelectedStart=!0,t.isSelected=!0),l?.isSameYear(i)&&(t.isSelectedEnd=!0,t.isSelected=!0),r&&s&&(t.isHoverStart=r.isSameYear(i),t.isHoverEnd=s.isSameYear(i),t.isInHoverRange=r.isBeforeYear(i)&&i.isBeforeYear(s)),t.isStartSingle=a&&!l,t.isEndSingle=!a&&l,t.isInSelectedRange=a?.isBeforeYear(i)&&i?.isBeforeYear(l),t.isRangeStartNearHover=a&&t.isInHoverRange,t.isRangeEndNearHover=l&&t.isInHoverRange}else i.isSameYear(this.value)&&(t.isSelected=!0);t.classMap=this.getClassMap(t)}chooseYear(t){this.value=this.activeDate.setYear(t),this.valueChange.emit(this.value),this.render()}};n.\u0275fac=function(i){return new(i||n)(w(no))},n.\u0275cmp=j({type:n,selectors:[["year-table"]],exportAs:["yearTable"],standalone:!0,features:[Xe,K],decls:4,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(i,r){i&1&&(C(0,"table",0),_(1,yV,4,2,"thead",1),C(2,"tbody"),_(3,IV,3,4,"tr",2),S()()),i&2&&(f(),h("ngIf",r.headRow&&r.headRow.length>0),f(2),h("ngForOf",r.bodyRows)("ngForTrackBy",r.trackByBodyRow))},dependencies:[we,lt,St,jn,Wn,Be,Gi],encapsulation:2,changeDetection:0});let o=n;return o})(),cG=(()=>{let n=class n extends gh{constructor(t){super(),this.dateHelper=t}getSelectors(){return[{className:`${this.prefixCls}-month-btn`,title:this.locale.yearSelect,onClick:()=>this.changeMode("year"),label:this.dateHelper.format(this.value.nativeDate,fh(this.locale.yearFormat))}]}};n.\u0275fac=function(i){return new(i||n)(w(no))},n.\u0275cmp=j({type:n,selectors:[["month-header"]],exportAs:["monthHeader"],standalone:!0,features:[Xe,K],decls:11,vars:31,consts:[["role","button","type","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(i,r){i&1&&(C(0,"div")(1,"button",0),A("click",function(){return r.superPrevious()}),R(2,"span",1),S(),C(3,"button",0),A("click",function(){return r.previous()}),R(4,"span",2),S(),C(5,"div"),_(6,PV,3,5,"ng-container",3),S(),C(7,"button",0),A("click",function(){return r.next()}),R(8,"span",4),S(),C(9,"button",0),A("click",function(){return r.superNext()}),R(10,"span",5),S()()),i&2&&(cr(r.prefixCls),f(),Ae("",r.prefixCls,"-super-prev-btn"),Re("visibility",r.showSuperPreBtn?"visible":"hidden"),Vt("title",r.superPreviousTitle()),f(2),Ae("",r.prefixCls,"-prev-btn"),Re("visibility",r.showPreBtn?"visible":"hidden"),Vt("title",r.previousTitle()),f(2),Ae("",r.prefixCls,"-view"),f(),h("ngForOf",r.selectors),f(),Ae("",r.prefixCls,"-next-btn"),Re("visibility",r.showNextBtn?"visible":"hidden"),Vt("title",r.nextTitle()),f(2),Ae("",r.prefixCls,"-super-next-btn"),Re("visibility",r.showSuperNextBtn?"visible":"hidden"),Vt("title",r.superNextTitle()))},dependencies:[lt],encapsulation:2,changeDetection:0});let o=n;return o})(),uG=(()=>{let n=class n extends mh{constructor(t){super(),this.dateHelper=t,this.MAX_ROW=4,this.MAX_COL=3}makeHeadRow(){return[]}makeBodyRows(){let t=[],i=0;for(let r=0;r<this.MAX_ROW;r++){let s={dateCells:[],trackByIndex:r};for(let a=0;a<this.MAX_COL;a++){let l=this.activeDate.setMonth(i),c=this.isDisabledMonth(l),u=this.dateHelper.format(l.nativeDate,"MMM"),d={trackByIndex:a,value:l.nativeDate,isDisabled:c,isSelected:l.isSameMonth(this.value),content:u,title:u,classMap:{},cellRender:Ds(this.cellRender,l),fullCellRender:Ds(this.fullCellRender,l),onClick:()=>this.chooseMonth(d.value.getMonth()),onMouseEnter:()=>this.cellHover.emit(l)};this.addCellProperty(d,l),s.dateCells.push(d),i++}t.push(s)}return t}isDisabledMonth(t){if(!this.disabledDate)return!1;let i=t.setDate(1);for(let r=i;r.getMonth()===t.getMonth();r=r.addDays(1))if(!this.disabledDate(r.nativeDate))return!1;return!0}addCellProperty(t,i){if(this.hasRangeValue()){let[r,s]=this.hoverValue,[a,l]=this.selectedValue;a?.isSameMonth(i)&&(t.isSelectedStart=!0,t.isSelected=!0),l?.isSameMonth(i)&&(t.isSelectedEnd=!0,t.isSelected=!0),r&&s&&(t.isHoverStart=r.isSameMonth(i),t.isHoverEnd=s.isSameMonth(i),t.isLastCellInPanel=i.getMonth()===11,t.isFirstCellInPanel=i.getMonth()===0,t.isInHoverRange=r.isBeforeMonth(i)&&i.isBeforeMonth(s)),t.isStartSingle=a&&!l,t.isEndSingle=!a&&l,t.isInSelectedRange=a?.isBeforeMonth(i)&&i?.isBeforeMonth(l),t.isRangeStartNearHover=a&&t.isInHoverRange,t.isRangeEndNearHover=l&&t.isInHoverRange}else i.isSameMonth(this.value)&&(t.isSelected=!0);t.classMap=this.getClassMap(t)}chooseMonth(t){this.value=this.activeDate.setMonth(t),this.valueChange.emit(this.value)}};n.\u0275fac=function(i){return new(i||n)(w(no))},n.\u0275cmp=j({type:n,selectors:[["month-table"]],exportAs:["monthTable"],standalone:!0,features:[Xe,K],decls:4,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(i,r){i&1&&(C(0,"table",0),_(1,AV,4,2,"thead",1),C(2,"tbody"),_(3,qV,3,4,"tr",2),S()()),i&2&&(f(),h("ngIf",r.headRow&&r.headRow.length>0),f(2),h("ngForOf",r.bodyRows)("ngForTrackBy",r.trackByBodyRow))},dependencies:[we,lt,St,jn,Wn,Be,Gi],encapsulation:2,changeDetection:0});let o=n;return o})(),dG=(()=>{let n=class n extends gh{constructor(t){super(),this.dateHelper=t}getSelectors(){return[{className:`${this.prefixCls}-year-btn`,title:this.locale.yearSelect,onClick:()=>this.changeMode("year"),label:this.dateHelper.format(this.value.nativeDate,fh(this.locale.yearFormat))},{className:`${this.prefixCls}-month-btn`,title:this.locale.monthSelect,onClick:()=>this.changeMode("month"),label:this.dateHelper.format(this.value.nativeDate,this.locale.monthFormat||"MMM")}]}};n.\u0275fac=function(i){return new(i||n)(w(no))},n.\u0275cmp=j({type:n,selectors:[["date-header"]],exportAs:["dateHeader"],standalone:!0,features:[Xe,K],decls:11,vars:31,consts:[["role","button","type","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(i,r){i&1&&(C(0,"div")(1,"button",0),A("click",function(){return r.superPrevious()}),R(2,"span",1),S(),C(3,"button",0),A("click",function(){return r.previous()}),R(4,"span",2),S(),C(5,"div"),_(6,YV,3,5,"ng-container",3),S(),C(7,"button",0),A("click",function(){return r.next()}),R(8,"span",4),S(),C(9,"button",0),A("click",function(){return r.superNext()}),R(10,"span",5),S()()),i&2&&(cr(r.prefixCls),f(),Ae("",r.prefixCls,"-super-prev-btn"),Re("visibility",r.showSuperPreBtn?"visible":"hidden"),Vt("title",r.superPreviousTitle()),f(2),Ae("",r.prefixCls,"-prev-btn"),Re("visibility",r.showPreBtn?"visible":"hidden"),Vt("title",r.previousTitle()),f(2),Ae("",r.prefixCls,"-view"),f(),h("ngForOf",r.selectors),f(),Ae("",r.prefixCls,"-next-btn"),Re("visibility",r.showNextBtn?"visible":"hidden"),Vt("title",r.nextTitle()),f(2),Ae("",r.prefixCls,"-super-next-btn"),Re("visibility",r.showSuperNextBtn?"visible":"hidden"),Vt("title",r.superNextTitle()))},dependencies:[lt],encapsulation:2,changeDetection:0});let o=n;return o})(),pG=(()=>{let n=class n extends mh{constructor(t,i){super(),this.i18n=t,this.dateHelper=i}changeValueFromInside(t){this.activeDate=this.activeDate.setYear(t.getYear()).setMonth(t.getMonth()).setDate(t.getDate()),this.valueChange.emit(this.activeDate),this.activeDate.isSameMonth(this.value)||this.render()}makeHeadRow(){let t=[],i=this.activeDate.calendarStart({weekStartsOn:this.dateHelper.getFirstDayOfWeek()});for(let r=0;r<this.MAX_COL;r++){let s=i.addDays(r);t.push({trackByIndex:null,value:s.nativeDate,title:this.dateHelper.format(s.nativeDate,"E"),content:this.dateHelper.format(s.nativeDate,this.getVeryShortWeekFormat()),isSelected:!1,isDisabled:!1,onClick(){},onMouseEnter(){}})}return t}getVeryShortWeekFormat(){return this.i18n.getLocaleId().toLowerCase().indexOf("zh")===0?"EEEEE":"EEEEEE"}makeBodyRows(){let t=[],i=this.activeDate.calendarStart({weekStartsOn:this.dateHelper.getFirstDayOfWeek()});for(let r=0;r<this.MAX_ROW;r++){let s=i.addDays(r*7),a={isActive:!1,dateCells:[],trackByIndex:r};for(let l=0;l<7;l++){let c=s.addDays(l),u=fh(this.i18n.getLocaleData("DatePicker.lang.dateFormat","YYYY-MM-DD")),d=this.dateHelper.format(c.nativeDate,u),p=this.dateHelper.format(c.nativeDate,"dd"),g={trackByIndex:l,value:c.nativeDate,label:p,isSelected:!1,isDisabled:!1,isToday:!1,title:d,cellRender:Ds(this.cellRender,c),fullCellRender:Ds(this.fullCellRender,c),content:`${c.getDate()}`,onClick:()=>this.changeValueFromInside(c),onMouseEnter:()=>this.cellHover.emit(c)};this.addCellProperty(g,c),this.showWeek&&!a.weekNum&&(a.weekNum=this.dateHelper.getISOWeek(c.nativeDate)),c.isSameDay(this.value)&&(a.isActive=c.isSameDay(this.value)),a.dateCells.push(g)}a.classMap={"ant-picker-week-panel-row":this.canSelectWeek,"ant-picker-week-panel-row-selected":this.canSelectWeek&&a.isActive},t.push(a)}return t}addCellProperty(t,i){if(this.hasRangeValue()&&!this.canSelectWeek){let[r,s]=this.hoverValue,[a,l]=this.selectedValue;a?.isSameDay(i)&&(t.isSelectedStart=!0,t.isSelected=!0),l?.isSameDay(i)&&(t.isSelectedEnd=!0,t.isSelected=!0),r&&s&&(t.isHoverStart=r.isSameDay(i),t.isHoverEnd=s.isSameDay(i),t.isLastCellInPanel=i.isLastDayOfMonth(),t.isFirstCellInPanel=i.isFirstDayOfMonth(),t.isInHoverRange=r.isBeforeDay(i)&&i.isBeforeDay(s)),t.isStartSingle=a&&!l,t.isEndSingle=!a&&l,t.isInSelectedRange=a?.isBeforeDay(i)&&i.isBeforeDay(l),t.isRangeStartNearHover=a&&t.isInHoverRange,t.isRangeEndNearHover=l&&t.isInHoverRange}t.isToday=i.isToday(),t.isSelected=i.isSameDay(this.value),t.isDisabled=!!this.disabledDate?.(i.nativeDate),t.classMap=this.getClassMap(t)}getClassMap(t){let i=new Ln(t.value);return ot(V({},super.getClassMap(t)),{"ant-picker-cell-today":!!t.isToday,"ant-picker-cell-in-view":i.isSameMonth(this.activeDate)})}};n.\u0275fac=function(i){return new(i||n)(w(Di),w(no))},n.\u0275cmp=j({type:n,selectors:[["date-table"]],inputs:{locale:"locale"},exportAs:["dateTable"],standalone:!0,features:[Xe,K],decls:4,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(i,r){i&1&&(C(0,"table",0),_(1,ZV,4,2,"thead",1),C(2,"tbody"),_(3,d2,3,4,"tr",2),S()()),i&2&&(f(),h("ngIf",r.headRow&&r.headRow.length>0),f(2),h("ngForOf",r.bodyRows)("ngForTrackBy",r.trackByBodyRow))},dependencies:[we,lt,St,jn,Wn,Be,Gi],encapsulation:2,changeDetection:0});let o=n;return o})(),hG=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})(),CT=(()=>{let n=class n{constructor(){this.panelModeChange=new O,this.headerChange=new O,this.selectDate=new O,this.selectTime=new O,this.cellHover=new O,this.prefixCls=hh}enablePrevNext(t,i){return!(!this.showTimePicker&&i===this.endPanelMode&&(this.partType==="left"&&t==="next"||this.partType==="right"&&t==="prev"))}onSelectTime(t){this.selectTime.emit(new Ln(t))}onSelectDate(t){let i=t instanceof Ln?t:new Ln(t),r=this.timeOptions&&this.timeOptions.nzDefaultOpenValue;!this.value&&r&&i.setHms(r.getHours(),r.getMinutes(),r.getSeconds()),this.selectDate.emit(i)}onChooseMonth(t){this.activeDate=this.activeDate.setMonth(t.getMonth()),this.endPanelMode==="month"?(this.value=t,this.selectDate.emit(t)):(this.headerChange.emit(t),this.panelModeChange.emit(this.endPanelMode))}onChooseYear(t){this.activeDate=this.activeDate.setYear(t.getYear()),this.endPanelMode==="year"?(this.value=t,this.selectDate.emit(t)):(this.headerChange.emit(t),this.panelModeChange.emit(this.endPanelMode))}onChooseDecade(t){this.activeDate=this.activeDate.setYear(t.getYear()),this.endPanelMode==="decade"?(this.value=t,this.selectDate.emit(t)):(this.headerChange.emit(t),this.panelModeChange.emit("year"))}ngOnChanges(t){t.activeDate&&!t.activeDate.currentValue&&(this.activeDate=new Ln),t.panelMode&&t.panelMode.currentValue==="time"&&(this.panelMode="date")}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["inner-popup"]],inputs:{activeDate:"activeDate",endPanelMode:"endPanelMode",panelMode:"panelMode",showWeek:"showWeek",locale:"locale",showTimePicker:"showTimePicker",timeOptions:"timeOptions",disabledDate:"disabledDate",dateRender:"dateRender",selectedValue:"selectedValue",hoverValue:"hoverValue",value:"value",partType:"partType"},outputs:{panelModeChange:"panelModeChange",headerChange:"headerChange",selectDate:"selectDate",selectTime:"selectTime",cellHover:"cellHover"},exportAs:["innerPopup"],standalone:!0,features:[oe,K],decls:8,vars:11,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],[3,"value","locale","showSuperPreBtn","showSuperNextBtn","showNextBtn","showPreBtn","valueChange","panelModeChange"],[3,"activeDate","value","locale","disabledDate","valueChange"],[3,"activeDate","value","locale","disabledDate","selectedValue","hoverValue","valueChange","cellHover"],[3,"value","activeDate","locale","disabledDate","selectedValue","hoverValue","valueChange","cellHover"],[3,"value","locale","showSuperPreBtn","showSuperNextBtn","showPreBtn","showNextBtn","valueChange","panelModeChange"],[3,"locale","showWeek","value","activeDate","disabledDate","cellRender","selectedValue","hoverValue","canSelectWeek","valueChange","cellHover"],[3,"nzInDatePicker","ngModel","format","nzHourStep","nzMinuteStep","nzSecondStep","nzDisabledHours","nzDisabledMinutes","nzDisabledSeconds","nzHideDisabledOptions","nzDefaultOpenValue","nzUse12Hours","nzAddOn","ngModelChange"]],template:function(i,r){i&1&&(C(0,"div")(1,"div"),H(2,0),_(3,p2,4,13,"ng-container",1)(4,h2,4,15,"ng-container",1)(5,f2,4,15,"ng-container",1)(6,g2,4,18,"ng-container",2),B(),S(),_(7,m2,2,13,"ng-container",3),S()),i&2&&(k("ant-picker-datetime-panel",r.showTimePicker),f(),Dl("",r.prefixCls,"-",r.panelMode,"-panel"),f(),h("ngSwitch",r.panelMode),f(),h("ngSwitchCase","decade"),f(),h("ngSwitchCase","year"),f(),h("ngSwitchCase","month"),f(2),h("ngIf",r.showTimePicker&&r.timeOptions))},dependencies:[jn,Wn,hG,dG,pG,iG,sG,cG,uG,aG,lG,Gi,we,fT,dh,nn,Kt,Rt],encapsulation:2,changeDetection:0});let o=n;return o})(),uv=(()=>{let n=class n{get hasTimePicker(){return!!this.showTime}get hasFooter(){return this.showToday||this.hasTimePicker||!!this.extraFooter||!!this.ranges}get arrowPosition(){return this.dir==="rtl"?{right:`${this.datePickerService?.arrowLeft}px`}:{left:`${this.datePickerService?.arrowLeft}px`}}constructor(t,i,r,s){this.datePickerService=t,this.cdr=i,this.ngZone=r,this.host=s,this.inline=!1,this.dir="ltr",this.panelModeChange=new O,this.calendarChange=new O,this.resultOk=new O,this.prefixCls=hh,this.endPanelMode="date",this.timeOptions=null,this.hoverValue=[],this.checkedPartArr=[!1,!1],this.destroy$=new J,this.disabledStartTime=a=>this.disabledTime&&this.disabledTime(a,"start"),this.disabledEndTime=a=>this.disabledTime&&this.disabledTime(a,"end")}ngOnInit(){_t(this.datePickerService.valueChange$,this.datePickerService.inputPartChange$).pipe(F(this.destroy$)).subscribe(()=>{this.updateActiveDate(),this.cdr.markForCheck()}),this.ngZone.runOutsideAngular(()=>{Ke(this.host.nativeElement,"mousedown").pipe(F(this.destroy$)).subscribe(t=>t.preventDefault())})}ngOnChanges(t){(t.showTime||t.disabledTime)&&this.showTime&&this.buildTimeOptions(),t.panelMode&&(this.endPanelMode=this.panelMode),t.defaultPickerValue&&this.updateActiveDate()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}updateActiveDate(){let t=this.datePickerService.hasValue()?this.datePickerService.value:this.datePickerService.makeValue(this.defaultPickerValue);this.datePickerService.setActiveDate(t,this.hasTimePicker,this.getPanelMode(this.endPanelMode))}onClickOk(){let t={left:0,right:1}[this.datePickerService.activeInput],i=this.isRange?this.datePickerService.value[t]:this.datePickerService.value;this.changeValueFromSelect(i),this.resultOk.emit()}onClickToday(t){this.changeValueFromSelect(t,!this.showTime)}onCellHover(t){if(!this.isRange)return;let i={left:1,right:0}[this.datePickerService.activeInput],r=this.datePickerService.value[i];r&&(r.isBeforeDay(t)?this.hoverValue=[r,t]:this.hoverValue=[t,r])}onPanelModeChange(t,i){this.isRange?this.datePickerService.getActiveIndex(i)===0?this.panelMode=[t,this.panelMode[1]]:this.panelMode=[this.panelMode[0],t]:this.panelMode=t,this.panelModeChange.emit(this.panelMode)}onActiveDateChange(t,i){if(this.isRange){let r=[];r[this.datePickerService.getActiveIndex(i)]=t,this.datePickerService.setActiveDate(r,this.hasTimePicker,this.getPanelMode(this.endPanelMode,i))}else this.datePickerService.setActiveDate(t)}onSelectTime(t,i){if(this.isRange){let r=Vl(this.datePickerService.value),s=this.datePickerService.getActiveIndex(i);r[s]=this.overrideHms(t,r[s]),this.datePickerService.setValue(r)}else{let r=this.overrideHms(t,this.datePickerService.value);this.datePickerService.setValue(r)}this.datePickerService.inputPartChange$.next(null),this.buildTimeOptions()}changeValueFromSelect(t,i=!0){if(this.isRange){let r=Vl(this.datePickerService.value),s=this.datePickerService.activeInput,a=s;r[this.datePickerService.getActiveIndex(s)]=t,this.checkedPartArr[this.datePickerService.getActiveIndex(s)]=!0,this.hoverValue=r,i?this.inline?(a=this.reversedPart(s),a==="right"&&(r[this.datePickerService.getActiveIndex(a)]=null,this.checkedPartArr[this.datePickerService.getActiveIndex(a)]=!1),this.datePickerService.setValue(r),this.calendarChange.emit(r),this.isBothAllowed(r)&&this.checkedPartArr[0]&&this.checkedPartArr[1]&&(this.clearHoverValue(),this.datePickerService.emitValue$.next())):(am(r)&&(a=this.reversedPart(s),r[this.datePickerService.getActiveIndex(a)]=null,this.checkedPartArr[this.datePickerService.getActiveIndex(a)]=!1),this.datePickerService.setValue(r),this.isBothAllowed(r)&&this.checkedPartArr[0]&&this.checkedPartArr[1]?(this.calendarChange.emit(r),this.clearHoverValue(),this.datePickerService.emitValue$.next()):this.isAllowed(r)&&(a=this.reversedPart(s),this.calendarChange.emit([t.clone()]))):this.datePickerService.setValue(r),this.datePickerService.inputPartChange$.next(a)}else this.datePickerService.setValue(t),this.datePickerService.inputPartChange$.next(null),i&&this.isAllowed(t)&&this.datePickerService.emitValue$.next();this.buildTimeOptions()}reversedPart(t){return t==="left"?"right":"left"}getPanelMode(t,i){return this.isRange?t[this.datePickerService.getActiveIndex(i)]:t}getValue(t){return this.isRange?(this.datePickerService.value||[])[this.datePickerService.getActiveIndex(t)]:this.datePickerService.value}getActiveDate(t){return this.isRange?this.datePickerService.activeDate[this.datePickerService.getActiveIndex(t)]:this.datePickerService.activeDate}isOneAllowed(t){let i=this.datePickerService.getActiveIndex(),r=[this.disabledStartTime,this.disabledEndTime];return ph(t[i],this.disabledDate,r[i])}isBothAllowed(t){return ph(t[0],this.disabledDate,this.disabledStartTime)&&ph(t[1],this.disabledDate,this.disabledEndTime)}isAllowed(t,i=!1){return this.isRange?i?this.isBothAllowed(t):this.isOneAllowed(t):ph(t,this.disabledDate,this.disabledTime)}getTimeOptions(t){return this.showTime&&this.timeOptions?this.timeOptions instanceof Array?this.timeOptions[this.datePickerService.getActiveIndex(t)]:this.timeOptions:null}onClickPresetRange(t){let i=typeof t=="function"?t():t;i&&(this.datePickerService.setValue([new Ln(i[0]),new Ln(i[1])]),this.datePickerService.emitValue$.next())}onPresetRangeMouseLeave(){this.clearHoverValue()}onHoverPresetRange(t){typeof t!="function"&&(this.hoverValue=[new Ln(t[0]),new Ln(t[1])])}getObjectKeys(t){return t?Object.keys(t):[]}show(t){return!(this.showTime&&this.isRange&&this.datePickerService.activeInput!==t)}clearHoverValue(){this.hoverValue=[]}buildTimeOptions(){if(this.showTime){let t=typeof this.showTime=="object"?this.showTime:{};if(this.isRange){let i=this.datePickerService.value;this.timeOptions=[this.overrideTimeOptions(t,i[0],"start"),this.overrideTimeOptions(t,i[1],"end")]}else this.timeOptions=this.overrideTimeOptions(t,this.datePickerService.value)}else this.timeOptions=null}overrideTimeOptions(t,i,r){let s;return r?s=r==="start"?this.disabledStartTime:this.disabledEndTime:s=this.disabledTime,V(V({},t),vT(i,s))}overrideHms(t,i){return t=t||new Ln,i=i||new Ln,i.setHms(t.getHours(),t.getMinutes(),t.getSeconds())}};n.\u0275fac=function(i){return new(i||n)(w(cv),w(fe),w($e),w(de))},n.\u0275cmp=j({type:n,selectors:[["date-range-popup"]],inputs:{isRange:"isRange",inline:"inline",showWeek:"showWeek",locale:"locale",disabledDate:"disabledDate",disabledTime:"disabledTime",showToday:"showToday",showNow:"showNow",showTime:"showTime",extraFooter:"extraFooter",ranges:"ranges",dateRender:"dateRender",panelMode:"panelMode",defaultPickerValue:"defaultPickerValue",dir:"dir"},outputs:{panelModeChange:"panelModeChange",calendarChange:"calendarChange",resultOk:"resultOk"},exportAs:["dateRangePopup"],standalone:!0,features:[oe,K],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["singlePanel",""],["tplInnerPopup",""],["tplFooter",""],["tplRangeQuickSelector",""],["noTimePicker",""],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","-1"],[3,"showWeek","endPanelMode","partType","locale","showTimePicker","timeOptions","panelMode","activeDate","value","disabledDate","dateRender","selectedValue","hoverValue","panelModeChange","cellHover","selectDate","selectTime","headerChange"],[3,"locale","isRange","showToday","showNow","hasTimePicker","okDisabled","extraFooter","rangeQuickSelector","clickOk","clickToday",4,"ngIf"],[3,"locale","isRange","showToday","showNow","hasTimePicker","okDisabled","extraFooter","rangeQuickSelector","clickOk","clickToday"],[3,"class","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],[3,"click","mouseenter","mouseleave"],[1,"ant-tag","ant-tag-blue"]],template:function(i,r){if(i&1&&_(0,T2,9,19,"ng-container",0)(1,z2,4,13,"ng-template",null,1,_e)(3,O2,2,18,"ng-template",null,2,_e)(5,R2,1,1,"ng-template",null,3,_e)(7,P2,1,1,"ng-template",null,4,_e),i&2){let s=te(2);h("ngIf",r.isRange)("ngIfElse",s)}},dependencies:[CT,Be,we,yT,lt],encapsulation:2,changeDetection:0});let o=n;return o})(),lv={position:"relative"},fG="datePicker",ps=(()=>{let n=class n{get nzShowTime(){return this.showTime}set nzShowTime(t){this.showTime=typeof t=="object"?t:os(t)}get realOpenState(){return this.isOpenHandledByUser()?!!this.nzOpen:this.overlayOpen}ngAfterViewInit(){this.nzAutoFocus&&this.focus(),this.isRange&&this.platform.isBrowser&&this.nzResizeObserver.observe(this.elementRef).pipe(F(this.destroy$)).subscribe(()=>{this.updateInputWidthAndArrowLeft()}),this.datePickerService.inputPartChange$.pipe(F(this.destroy$)).subscribe(t=>{t&&(this.datePickerService.activeInput=t),this.focus(),this.updateInputWidthAndArrowLeft()}),this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>Ke(this.elementRef.nativeElement,"mousedown").pipe(F(this.destroy$)).subscribe(t=>{t.target.tagName.toLowerCase()!=="input"&&t.preventDefault()}))}updateInputWidthAndArrowLeft(){this.inputWidth=this.rangePickerInputs?.first?.nativeElement.offsetWidth||0;let t={position:"absolute",width:`${this.inputWidth}px`};this.datePickerService.arrowLeft=this.datePickerService.activeInput==="left"?0:this.inputWidth+this.separatorElement?.nativeElement.offsetWidth||0,this.dir==="rtl"?this.activeBarStyle=ot(V({},t),{right:`${this.datePickerService.arrowLeft}px`}):this.activeBarStyle=ot(V({},t),{left:`${this.datePickerService.arrowLeft}px`}),this.cdr.markForCheck()}getInput(t){if(!this.nzInline)return this.isRange?t==="left"?this.rangePickerInputs?.first.nativeElement:this.rangePickerInputs?.last.nativeElement:this.pickerInput.nativeElement}focus(){let t=this.getInput(this.datePickerService.activeInput);this.document.activeElement!==t&&t?.focus()}onFocus(t,i){t.preventDefault(),i&&this.datePickerService.inputPartChange$.next(i),this.renderClass(!0)}onFocusout(t){t.preventDefault(),this.onTouchedFn(),this.elementRef.nativeElement.contains(t.relatedTarget)||this.checkAndClose(),this.renderClass(!1)}open(){this.nzInline||!this.realOpenState&&!this.nzDisabled&&(this.updateInputWidthAndArrowLeft(),this.overlayOpen=!0,this.nzOnOpenChange.emit(!0),this.focus(),this.cdr.markForCheck())}close(){this.nzInline||this.realOpenState&&(this.overlayOpen=!1,this.nzOnOpenChange.emit(!1))}showClear(){return!this.nzDisabled&&!this.isEmptyValue(this.datePickerService.value)&&this.nzAllowClear}checkAndClose(){if(this.realOpenState)if(this.panel.isAllowed(this.datePickerService.value,!0)){if(Array.isArray(this.datePickerService.value)&&am(this.datePickerService.value)){let t=this.datePickerService.getActiveIndex(),i=this.datePickerService.value[t];this.panel.changeValueFromSelect(i,!0);return}this.updateInputValue(),this.datePickerService.emitValue$.next()}else this.datePickerService.setValue(this.datePickerService.initialValue),this.close()}onClickInputBox(t){t.stopPropagation(),this.focus(),this.isOpenHandledByUser()||this.open()}onOverlayKeydown(t){t.keyCode===27&&this.datePickerService.initValue()}onPositionChange(t){this.currentPositionX=t.connectionPair.originX,this.currentPositionY=t.connectionPair.originY,this.cdr.detectChanges()}onClickClear(t){t.preventDefault(),t.stopPropagation(),this.datePickerService.initValue(!0),this.datePickerService.emitValue$.next()}updateInputValue(){let t=this.datePickerService.value;this.isRange?this.inputValue=t?t.map(i=>this.formatValue(i)):["",""]:this.inputValue=this.formatValue(t),this.cdr.markForCheck()}formatValue(t){return this.dateHelper.format(t&&t.nativeDate,this.nzFormat)}onInputChange(t,i=!1){if(!this.platform.TRIDENT&&this.document.activeElement===this.getInput(this.datePickerService.activeInput)&&!this.realOpenState){this.open();return}let r=this.checkValidDate(t);r&&this.realOpenState&&this.panel.changeValueFromSelect(r,i)}onKeyupEnter(t){this.onInputChange(t.target.value,!0)}checkValidDate(t){let i=new Ln(this.dateHelper.parseDate(t,this.nzFormat));return!i.isValid()||t!==this.dateHelper.format(i.nativeDate,this.nzFormat)?null:i}getPlaceholder(t){return this.isRange?this.nzPlaceHolder[this.datePickerService.getActiveIndex(t)]:this.nzPlaceHolder}isEmptyValue(t){return t===null?!0:this.isRange?!t||!Array.isArray(t)||t.every(i=>!i):!t}isOpenHandledByUser(){return this.nzOpen!==void 0}constructor(t,i,r,s,a,l,c,u,d,p,g,v,y,x,E,z){this.nzConfigService=t,this.datePickerService=i,this.i18n=r,this.cdr=s,this.renderer=a,this.ngZone=l,this.elementRef=c,this.dateHelper=u,this.nzResizeObserver=d,this.platform=p,this.destroy$=g,this.directionality=y,this.noAnimation=x,this.nzFormStatusService=E,this.nzFormNoStatusService=z,this._nzModuleName=fG,this.isRange=!1,this.dir="ltr",this.statusCls={},this.status="",this.hasFeedback=!1,this.panelMode="date",this.isCustomPlaceHolder=!1,this.isCustomFormat=!1,this.showTime=!1,this.isNzDisableFirstChange=!0,this.nzAllowClear=!0,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzBorderless=!1,this.nzInputReadOnly=!1,this.nzInline=!1,this.nzPlaceHolder="",this.nzPopupStyle=lv,this.nzSize="default",this.nzStatus="",this.nzShowToday=!0,this.nzMode="date",this.nzShowNow=!0,this.nzDefaultPickerValue=null,this.nzSeparator=void 0,this.nzSuffixIcon="calendar",this.nzBackdrop=!1,this.nzId=null,this.nzPlacement="bottomLeft",this.nzShowWeekNumber=!1,this.nzOnPanelChange=new O,this.nzOnCalendarChange=new O,this.nzOnOk=new O,this.nzOnOpenChange=new O,this.inputSize=12,this.prefixCls=hh,this.activeBarStyle={},this.overlayOpen=!1,this.overlayPositions=[...Fm],this.currentPositionX="start",this.currentPositionY="bottom",this.onChangeFn=()=>{},this.onTouchedFn=()=>{},this.document=v,this.origin=new dr(this.elementRef)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Bt((t,i)=>t.status===i.status&&t.hasFeedback===i.hasFeedback),zl(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:Mn(!1)),We(([{status:t,hasFeedback:i},r])=>({status:r?"":t,hasFeedback:i})),F(this.destroy$)).subscribe(({status:t,hasFeedback:i})=>{this.setStatusStyles(t,i)}),this.nzLocale||this.i18n.localeChange.pipe(F(this.destroy$)).subscribe(()=>this.setLocale()),this.datePickerService.isRange=this.isRange,this.datePickerService.initValue(!0),this.datePickerService.emitValue$.pipe(F(this.destroy$)).subscribe(()=>{let t=this.showTime?"second":"day",i=this.datePickerService.value,r=this.datePickerService.initialValue;if(!this.isRange&&i?.isSame(r?.nativeDate,t))return this.onTouchedFn(),this.close();if(this.isRange){let[s,a]=r,[l,c]=i;if(s?.isSame(l?.nativeDate,t)&&a?.isSame(c?.nativeDate,t))return this.onTouchedFn(),this.close()}if(this.datePickerService.initialValue=Vl(i),this.isRange){let s=i;s.length?this.onChangeFn([s[0]?.nativeDate??null,s[1]?.nativeDate??null]):this.onChangeFn([])}else i?this.onChangeFn(i.nativeDate):this.onChangeFn(null);this.onTouchedFn(),this.close()}),this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.inputValue=this.isRange?["",""]:"",this.setModeAndFormat(),this.datePickerService.valueChange$.pipe(F(this.destroy$)).subscribe(()=>{this.updateInputValue()})}ngOnChanges(t){let{nzStatus:i,nzPlacement:r}=t;t.nzPopupStyle&&(this.nzPopupStyle=this.nzPopupStyle?V(V({},this.nzPopupStyle),lv):lv),t.nzPlaceHolder?.currentValue&&(this.isCustomPlaceHolder=!0),t.nzFormat?.currentValue&&(this.isCustomFormat=!0),t.nzLocale&&this.setDefaultPlaceHolder(),t.nzRenderExtraFooter&&(this.extraFooter=Ds(this.nzRenderExtraFooter)),t.nzMode&&(this.setDefaultPlaceHolder(),this.setModeAndFormat()),i&&this.setStatusStyles(this.nzStatus,this.hasFeedback),r&&this.setPlacement(this.nzPlacement)}setModeAndFormat(){let t={year:"yyyy",month:"yyyy-MM",week:"YYYY-ww",date:this.nzShowTime?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd"};this.nzMode||(this.nzMode="date"),this.panelMode=this.isRange?[this.nzMode,this.nzMode]:this.nzMode,this.isCustomFormat||(this.nzFormat=t[this.nzMode]),this.inputSize=Math.max(10,this.nzFormat.length)+2,this.updateInputValue()}onOpenChange(t){this.nzOnOpenChange.emit(t)}writeValue(t){this.setValue(t),this.cdr.markForCheck()}registerOnChange(t){this.onChangeFn=t}registerOnTouched(t){this.onTouchedFn=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.cdr.markForCheck(),this.isNzDisableFirstChange=!1}setLocale(){this.nzLocale=this.i18n.getLocaleData("DatePicker",{}),this.setDefaultPlaceHolder(),this.cdr.markForCheck()}setDefaultPlaceHolder(){if(!this.isCustomPlaceHolder&&this.nzLocale){let t={year:this.getPropertyOfLocale("yearPlaceholder"),month:this.getPropertyOfLocale("monthPlaceholder"),week:this.getPropertyOfLocale("weekPlaceholder"),date:this.getPropertyOfLocale("placeholder")},i={year:this.getPropertyOfLocale("rangeYearPlaceholder"),month:this.getPropertyOfLocale("rangeMonthPlaceholder"),week:this.getPropertyOfLocale("rangeWeekPlaceholder"),date:this.getPropertyOfLocale("rangePlaceholder")};this.nzPlaceHolder=this.isRange?i[this.nzMode]:t[this.nzMode]}}getPropertyOfLocale(t){return this.nzLocale.lang[t]||this.i18n.getLocaleData(`DatePicker.lang.${t}`)}setValue(t){let i=this.datePickerService.makeValue(t);this.datePickerService.setValue(i),this.datePickerService.initialValue=Vl(i),this.cdr.detectChanges()}renderClass(t){t?this.renderer.addClass(this.elementRef.nativeElement,"ant-picker-focused"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-picker-focused")}onPanelModeChange(t){this.nzOnPanelChange.emit(t)}onCalendarChange(t){if(this.isRange&&Array.isArray(t)){let i=t.filter(r=>r instanceof Ln).map(r=>r.nativeDate);this.nzOnCalendarChange.emit(i)}}onResultOk(){if(this.isRange){let t=this.datePickerService.value;t.length?this.nzOnOk.emit([t[0]?.nativeDate||null,t[1]?.nativeDate||null]):this.nzOnOk.emit([])}else this.datePickerService.value?this.nzOnOk.emit(this.datePickerService.value.nativeDate):this.nzOnOk.emit(null)}setStatusStyles(t,i){this.status=t,this.hasFeedback=i,this.cdr.markForCheck(),this.statusCls=vi(this.prefixCls,t,i),Object.keys(this.statusCls).forEach(r=>{this.statusCls[r]?this.renderer.addClass(this.elementRef.nativeElement,r):this.renderer.removeClass(this.elementRef.nativeElement,r)})}setPlacement(t){let i=ql[t];this.overlayPositions=[i,...Fm],this.currentPositionX=i.originX,this.currentPositionY=i.originY}};n.\u0275fac=function(i){return new(i||n)(w(st),w(cv),w(Di),w(fe),w(He),w($e),w(de),w(no),w(ds),w(gn),w(Pt),w(gi),w(Me,8),w(ft,9),w(cn,8),w(_i,8))},n.\u0275cmp=j({type:n,selectors:[["nz-date-picker"],["nz-week-picker"],["nz-month-picker"],["nz-year-picker"],["nz-range-picker"]],viewQuery:function(i,r){if(i&1&&(xe(oi,5),xe(uv,5),xe(M2,5),xe(F2,5),xe(A2,5)),i&2){let s;ce(s=ue())&&(r.cdkConnectedOverlay=s.first),ce(s=ue())&&(r.panel=s.first),ce(s=ue())&&(r.separatorElement=s.first),ce(s=ue())&&(r.pickerInput=s.first),ce(s=ue())&&(r.rangePickerInputs=s)}},hostVars:16,hostBindings:function(i,r){i&1&&A("click",function(a){return r.onClickInputBox(a)}),i&2&&k("ant-picker",!0)("ant-picker-range",r.isRange)("ant-picker-large",r.nzSize==="large")("ant-picker-small",r.nzSize==="small")("ant-picker-disabled",r.nzDisabled)("ant-picker-rtl",r.dir==="rtl")("ant-picker-borderless",r.nzBorderless)("ant-picker-inline",r.nzInline)},inputs:{nzAllowClear:"nzAllowClear",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzBorderless:"nzBorderless",nzInputReadOnly:"nzInputReadOnly",nzInline:"nzInline",nzOpen:"nzOpen",nzDisabledDate:"nzDisabledDate",nzLocale:"nzLocale",nzPlaceHolder:"nzPlaceHolder",nzPopupStyle:"nzPopupStyle",nzDropdownClassName:"nzDropdownClassName",nzSize:"nzSize",nzStatus:"nzStatus",nzFormat:"nzFormat",nzDateRender:"nzDateRender",nzDisabledTime:"nzDisabledTime",nzRenderExtraFooter:"nzRenderExtraFooter",nzShowToday:"nzShowToday",nzMode:"nzMode",nzShowNow:"nzShowNow",nzRanges:"nzRanges",nzDefaultPickerValue:"nzDefaultPickerValue",nzSeparator:"nzSeparator",nzSuffixIcon:"nzSuffixIcon",nzBackdrop:"nzBackdrop",nzId:"nzId",nzPlacement:"nzPlacement",nzShowWeekNumber:"nzShowWeekNumber",nzShowTime:"nzShowTime"},outputs:{nzOnPanelChange:"nzOnPanelChange",nzOnCalendarChange:"nzOnCalendarChange",nzOnOk:"nzOnOk",nzOnOpenChange:"nzOnOpenChange"},exportAs:["nzDatePicker"],standalone:!0,features:[Ve([Pt,cv,{provide:zn,multi:!0,useExisting:pn(()=>n)}]),oe,K],decls:8,vars:7,consts:[[4,"ngIf","ngIfElse"],["tplRangeInput",""],["tplRightRest",""],["inlineMode",""],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayTransformOriginOn","positionChange","detach","overlayKeydown"],[3,"class",4,"ngIf"],[4,"ngIf"],["autocomplete","off",3,"disabled","readOnly","ngModel","placeholder","size","ngModelChange","focus","focusout","keyup.enter"],["pickerInput",""],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["separatorElement",""],[4,"nzStringTemplateOutlet"],["defaultSeparator",""],["nz-icon","","nzType","swap-right","nzTheme","outline"],["autocomplete","off",3,"disabled","readOnly","size","ngModel","placeholder","click","focusout","focus","keyup.enter","ngModelChange"],["rangePickerInput",""],[3,"ngStyle"],[3,"class","click",4,"ngIf"],[3,"status",4,"ngIf"],[3,"click"],["nz-icon","","nzType","close-circle","nzTheme","fill"],["nz-icon","",3,"nzType"],[3,"status"],[3,"isRange","inline","defaultPickerValue","showWeek","panelMode","locale","showToday","showNow","showTime","dateRender","disabledDate","disabledTime","extraFooter","ranges","dir","panelModeChange","calendarChange","resultOk"],[1,"ant-picker-wrapper",2,"position","relative",3,"nzNoAnimation"]],template:function(i,r){if(i&1&&(_(0,W2,3,2,"ng-container",0)(1,U2,2,6,"ng-template",null,1,_e)(3,Q2,5,10,"ng-template",null,2,_e)(5,X2,2,36,"ng-template",null,3,_e)(7,J2,2,3,"ng-template",4),A("positionChange",function(a){return r.onPositionChange(a)})("detach",function(){return r.close()})("overlayKeydown",function(a){return r.onOverlayKeydown(a)})),i&2){let s=te(6);h("ngIf",!r.nzInline)("ngIfElse",s),f(7),h("cdkConnectedOverlayHasBackdrop",r.nzBackdrop)("cdkConnectedOverlayOrigin",r.origin)("cdkConnectedOverlayOpen",r.realOpenState)("cdkConnectedOverlayPositions",r.overlayPositions)("cdkConnectedOverlayTransformOriginOn",".ant-picker-wrapper")}},dependencies:[we,nn,Ii,Kt,Rt,Be,Ye,Ue,Ge,Fe,Zt,ro,mr,uv,oi,vr,Nr,ft],encapsulation:2,data:{animation:[Mo]},changeDetection:0});let o=n;return N([W()],o.prototype,"nzAllowClear",void 0),N([W()],o.prototype,"nzAutoFocus",void 0),N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzBorderless",void 0),N([W()],o.prototype,"nzInputReadOnly",void 0),N([W()],o.prototype,"nzInline",void 0),N([W()],o.prototype,"nzOpen",void 0),N([W()],o.prototype,"nzShowToday",void 0),N([W()],o.prototype,"nzShowNow",void 0),N([De()],o.prototype,"nzSeparator",void 0),N([De()],o.prototype,"nzSuffixIcon",void 0),N([De()],o.prototype,"nzBackdrop",void 0),N([W()],o.prototype,"nzShowWeekNumber",void 0),o})(),_T=(()=>{let n=class n{constructor(t){this.datePicker=t,this.datePicker.nzMode="month"}};n.\u0275fac=function(i){return new(i||n)(w(ps,9))},n.\u0275dir=Se({type:n,selectors:[["nz-month-picker"]],exportAs:["nzMonthPicker"],standalone:!0});let o=n;return o})(),vh=(()=>{let n=class n{constructor(t){this.datePicker=t,this.datePicker.isRange=!0}};n.\u0275fac=function(i){return new(i||n)(w(ps,9))},n.\u0275dir=Se({type:n,selectors:[["nz-range-picker"]],exportAs:["nzRangePicker"],standalone:!0});let o=n;return o})(),ST=(()=>{let n=class n{constructor(t){this.datePicker=t,this.datePicker.nzMode="week"}};n.\u0275fac=function(i){return new(i||n)(w(ps,9))},n.\u0275dir=Se({type:n,selectors:[["nz-week-picker"]],exportAs:["nzWeekPicker"],standalone:!0});let o=n;return o})(),wT=(()=>{let n=class n{constructor(t){this.datePicker=t,this.datePicker.nzMode="year"}};n.\u0275fac=function(i){return new(i||n)(w(ps,9))},n.\u0275dir=Se({type:n,selectors:[["nz-year-picker"]],exportAs:["nzYearPicker"],standalone:!0});let o=n;return o})(),Hs=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[ps,yT,CT,uv]});let o=n;return o})();var gG=["okBtn"],mG=["cancelBtn"];function vG(o,n){o&1&&(C(0,"div",15),R(1,"span",16),S())}function yG(o,n){if(o&1&&(H(0),R(1,"span",18),B()),o&2){let e=n.$implicit;f(),h("nzType",e||"exclamation-circle")}}function CG(o,n){if(o&1&&(H(0),_(1,yG,2,1,"ng-container",8),C(2,"div",17),Y(3),S(),B()),o&2){let e=m(2);f(),h("nzStringTemplateOutlet",e.nzIcon),f(2),ye(e.nzTitle)}}function _G(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.nzCancelText)}}function SG(o,n){o&1&&(H(0),Y(1),Xn(2,"nzI18n"),B()),o&2&&(f(),ye(Vi(2,1,"Modal.cancelText")))}function wG(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.nzOkText)}}function bG(o,n){o&1&&(H(0),Y(1),Xn(2,"nzI18n"),B()),o&2&&(f(),ye(Vi(2,1,"Modal.okText")))}function TG(o,n){if(o&1){let e=Q();C(0,"div",2)(1,"div",3),_(2,vG,2,0,"div",4),C(3,"div",5)(4,"div")(5,"div",6)(6,"div",7),_(7,CG,4,2,"ng-container",8),S(),C(8,"div",9)(9,"button",10,11),A("click",function(){I(e);let i=m();return P(i.onCancel())}),_(11,_G,2,1,"ng-container",12)(12,SG,3,3,"ng-container",12),S(),C(13,"button",13,14),A("click",function(){I(e);let i=m();return P(i.onConfirm())}),_(15,wG,2,1,"ng-container",12)(16,bG,3,3,"ng-container",12),S()()()()()()()}if(o&2){let e=m();k("ant-popover-rtl",e.dir==="rtl"),h("cdkTrapFocusAutoCapture",e.nzAutoFocus!==null)("ngClass",e._classMap)("ngStyle",e.nzOverlayStyle)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),f(2),h("ngIf",e.nzPopconfirmShowArrow),f(5),h("nzStringTemplateOutlet",e.nzTitle),f(2),h("nzSize","small"),ze("cdkFocusInitial",e.nzAutoFocus==="cancel"||null),f(2),h("ngIf",e.nzCancelText),f(),h("ngIf",!e.nzCancelText),f(),h("nzSize","small")("nzType",e.nzOkType!=="danger"?e.nzOkType:"primary")("nzDanger",e.nzOkDanger||e.nzOkType==="danger")("nzLoading",e.confirmLoading),ze("cdkFocusInitial",e.nzAutoFocus==="ok"||null),f(2),h("ngIf",e.nzOkText),f(),h("ngIf",!e.nzOkText)}}var EG="popconfirm",bT=(()=>{let n=class n extends Su{getProxyPropertyMap(){return V({nzOkText:["nzOkText",()=>this.nzOkText],nzOkType:["nzOkType",()=>this.nzOkType],nzOkDanger:["nzOkDanger",()=>this.nzOkDanger],nzCancelText:["nzCancelText",()=>this.nzCancelText],nzBeforeConfirm:["nzBeforeConfirm",()=>this.nzBeforeConfirm],nzCondition:["nzCondition",()=>this.nzCondition],nzIcon:["nzIcon",()=>this.nzIcon],nzPopconfirmShowArrow:["nzPopconfirmShowArrow",()=>this.nzPopconfirmShowArrow],nzPopconfirmBackdrop:["nzBackdrop",()=>this.nzPopconfirmBackdrop],nzAutoFocus:["nzAutoFocus",()=>this.nzAutofocus]},super.getProxyPropertyMap())}constructor(t,i,r,s,a){super(t,i,r,s,a),this._nzModuleName=EG,this.trigger="click",this.placement="top",this.nzCondition=!1,this.nzPopconfirmShowArrow=!0,this.nzPopconfirmBackdrop=!1,this.nzAutofocus=null,this.visibleChange=new O,this.nzOnCancel=new O,this.nzOnConfirm=new O,this.componentRef=this.hostView.createComponent(TT)}createComponent(){super.createComponent(),this.component.nzOnCancel.pipe(F(this.destroy$)).subscribe(()=>{this.nzOnCancel.emit()}),this.component.nzOnConfirm.pipe(F(this.destroy$)).subscribe(()=>{this.nzOnConfirm.emit()})}};n.\u0275fac=function(i){return new(i||n)(w(de),w(Tn),w(He),w(ft,9),w(st))},n.\u0275dir=Se({type:n,selectors:[["","nz-popconfirm",""]],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-popover-open",r.visible)},inputs:{arrowPointAtCenter:[le.None,"nzPopconfirmArrowPointAtCenter","arrowPointAtCenter"],title:[le.None,"nzPopconfirmTitle","title"],directiveTitle:[le.None,"nz-popconfirm","directiveTitle"],trigger:[le.None,"nzPopconfirmTrigger","trigger"],placement:[le.None,"nzPopconfirmPlacement","placement"],origin:[le.None,"nzPopconfirmOrigin","origin"],mouseEnterDelay:[le.None,"nzPopconfirmMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[le.None,"nzPopconfirmMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[le.None,"nzPopconfirmOverlayClassName","overlayClassName"],overlayStyle:[le.None,"nzPopconfirmOverlayStyle","overlayStyle"],visible:[le.None,"nzPopconfirmVisible","visible"],nzOkText:"nzOkText",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzCancelText:"nzCancelText",nzBeforeConfirm:"nzBeforeConfirm",nzIcon:"nzIcon",nzCondition:"nzCondition",nzPopconfirmShowArrow:"nzPopconfirmShowArrow",nzPopconfirmBackdrop:"nzPopconfirmBackdrop",nzAutofocus:"nzAutofocus"},outputs:{visibleChange:"nzPopconfirmVisibleChange",nzOnCancel:"nzOnCancel",nzOnConfirm:"nzOnConfirm"},exportAs:["nzPopconfirm"],standalone:!0,features:[Xe]});let o=n;return N([W()],o.prototype,"arrowPointAtCenter",void 0),N([W()],o.prototype,"nzOkDanger",void 0),N([W()],o.prototype,"nzCondition",void 0),N([W()],o.prototype,"nzPopconfirmShowArrow",void 0),N([De()],o.prototype,"nzPopconfirmBackdrop",void 0),N([De()],o.prototype,"nzAutofocus",void 0),o})(),TT=(()=>{let n=class n extends Ql{constructor(t,i,r,s,a){super(t,r,a),this.elementRef=i,this.nzCondition=!1,this.nzPopconfirmShowArrow=!0,this.nzOkType="primary",this.nzOkDanger=!1,this.nzAutoFocus=null,this.nzBeforeConfirm=null,this.nzOnCancel=new J,this.nzOnConfirm=new J,this._trigger="click",this.elementFocusedBeforeModalWasOpened=null,this._prefix="ant-popover",this.confirmLoading=!1,this.document=s}ngOnDestroy(){super.ngOnDestroy(),this.nzOnCancel.complete(),this.nzOnConfirm.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(){if(this.nzBeforeConfirm){let t=mp(this.nzBeforeConfirm()).pipe(xl());this.confirmLoading=!0,t.pipe(El(()=>{this.confirmLoading=!1,this.cdr.markForCheck()}),F(this.nzVisibleChange),F(this.destroy$)).subscribe(i=>{i&&this.handleConfirm()})}else this.handleConfirm()}capturePreviouslyFocusedElement(){this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement)}restoreFocus(){let t=this.elementFocusedBeforeModalWasOpened;if(t&&typeof t.focus=="function"){let i=this.document.activeElement,r=this.elementRef.nativeElement;(!i||i===this.document.body||i===r||r.contains(i))&&t.focus()}}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(de),w(Me,8),w(gi,8),w(ft,9))},n.\u0275cmp=j({type:n,selectors:[["nz-popconfirm"]],viewQuery:function(i,r){if(i&1&&(xe(gG,5,de),xe(mG,5,de)),i&2){let s;ce(s=ue())&&(r.okBtn=s),ce(s=ue())&&(r.cancelBtn=s)}},exportAs:["nzPopconfirmComponent"],standalone:!0,features:[Xe,K],decls:2,vars:6,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],["cdkTrapFocus","",1,"ant-popover",3,"cdkTrapFocusAutoCapture","ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],["class","ant-popover-arrow",4,"ngIf"],[1,"ant-popover-inner"],[1,"ant-popover-inner-content"],[1,"ant-popover-message"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-buttons"],["nz-button","",3,"nzSize","click"],["cancelBtn",""],[4,"ngIf"],["nz-button","",3,"nzSize","nzType","nzDanger","nzLoading","click"],["okBtn",""],[1,"ant-popover-arrow"],[1,"ant-popover-arrow-content"],[1,"ant-popover-message-title"],["nz-icon","","nzTheme","fill",3,"nzType"]],template:function(i,r){i&1&&(_(0,TG,17,21,"ng-template",0,1,_e),A("overlayOutsideClick",function(a){return r.onClickOutside(a)})("detach",function(){return r.hide()})("positionChange",function(a){return r.onPositionChange(a)})),i&2&&h("cdkConnectedOverlayHasBackdrop",r.nzBackdrop)("cdkConnectedOverlayOrigin",r.origin)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayOpen",r._visible)("cdkConnectedOverlayPush",r.cdkConnectedOverlayPush)("nzArrowPointAtCenter",r.nzArrowPointAtCenter)},dependencies:[Fr,oi,vr,Nr,Cp,tw,St,Zt,ft,we,Ye,Ue,Ge,Fe,Hi,eo,yi,hr,bp,wp],encapsulation:2,data:{animation:[Is]},changeDetection:0});let o=n;return o})(),rc=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[TT]});let o=n;return o})();function xG(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.nzText)}}function zG(o,n){if(o&1&&(C(0,"span",1),_(1,xG,2,1,"ng-container",2),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.nzText)}}var pv=(()=>{let n=class n{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(i,r){i&2&&k("ant-divider-horizontal",r.nzType==="horizontal")("ant-divider-vertical",r.nzType==="vertical")("ant-divider-with-text",r.nzText)("ant-divider-plain",r.nzPlain)("ant-divider-with-text-left",r.nzText&&r.nzOrientation==="left")("ant-divider-with-text-right",r.nzText&&r.nzOrientation==="right")("ant-divider-with-text-center",r.nzText&&r.nzOrientation==="center")("ant-divider-dashed",r.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],standalone:!0,features:[K],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(i,r){i&1&&_(0,zG,2,1,"span",0),i&2&&h("ngIf",r.nzText)},dependencies:[we,Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzDashed",void 0),N([W()],o.prototype,"nzPlain",void 0),o})(),oc=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[pv]});let o=n;return o})();function zT(o){if(!o)return!1;for(var n=0,e=o.length;n<e;){if(o[n]<=127){n++;continue}if(o[n]>=194&&o[n]<=223)if(o[n+1]>>6===2){n+=2;continue}else return!1;if((o[n]===224&&o[n+1]>=160&&o[n+1]<=191||o[n]===237&&o[n+1]>=128&&o[n+1]<=159)&&o[n+2]>>6===2){n+=3;continue}if((o[n]>=225&&o[n]<=236||o[n]>=238&&o[n]<=239)&&o[n+1]>>6===2&&o[n+2]>>6===2){n+=3;continue}if((o[n]===240&&o[n+1]>=144&&o[n+1]<=191||o[n]>=241&&o[n]<=243&&o[n+1]>>6===2||o[n]===244&&o[n+1]>=128&&o[n+1]<=143)&&o[n+2]>>6===2&&o[n+3]>>6===2){n+=4;continue}return!1}return!0}function OG(o,n){return(e,t,i)=>{let r=i.value;return i.value=function(...s){let l=this[n?.ngZoneName||"ngZone"];if(!l)return r.call(this,...s);let c;return l[o](()=>{c=r.call(this,...s)}),c},i}}function hv(o){return OG("runOutsideAngular",o)}var OT=(()=>{let n=class n{constructor(t){this.http=ae(NS),this.lazy=ae(HS),this.ngZone=ae($e),this.cog=t.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:i,utils:{sheet_to_json:r}}=XLSX,s={},a=new Uint8Array(t),l="array";if(!zT(a))try{t=cptable.utils.decode(936,a),l="string"}catch{}let c=i(t,{type:l});return c.SheetNames.forEach(u=>{let d=c.Sheets[u];s[u]=r(d,{header:1})}),s}import(t){return new Promise((i,r)=>{let s=a=>this.ngZone.run(()=>i(this.read(a)));this.init().then(()=>{if(typeof t=="string"){this.http.request("GET",t,{responseType:"arraybuffer"}).subscribe({next:l=>s(new Uint8Array(l)),error:l=>r(l)});return}let a=new FileReader;a.onload=l=>s(l.target.result),a.onerror=l=>r(l),a.readAsArrayBuffer(t)}).catch(()=>r("Unable to load xlsx.js"))})}export(t){return xo(this,null,function*(){return new Promise((i,r)=>{this.init().then(()=>{t=V({format:"xlsx"},t);let{writeFile:s,utils:{book_new:a,aoa_to_sheet:l,book_append_sheet:c}}=XLSX,u=a();Array.isArray(t.sheets)?t.sheets.forEach((p,g)=>{let v=l(p.data);c(u,v,p.name||`Sheet${g+1}`)}):(u.SheetNames=Object.keys(t.sheets),u.Sheets=t.sheets),t.callback&&t.callback(u);let d=t.filename||`export.${t.format}`;s(u,d,V({bookType:t.format,bookSST:!1,type:"array"},t.opts)),i({filename:d,wb:u})}).catch(s=>r(s))})})}numberToSchema(t){let r="";do--t,r=String.fromCharCode(65+t%26)+r,t=t/26>>0;while(t>0);return r}};n.\u0275fac=function(i){return new(i||n)(nt(In))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return N([hv()],o.prototype,"read",null),N([hv()],o.prototype,"export",null),o})();var fv=class{constructor(n){this.dir=n}get $implicit(){return this.dir.let}get let(){return this.dir.let}},DT=(()=>{let n=class n{constructor(t,i){t.createEmbeddedView(i,new fv(this))}static ngTemplateContextGuard(t,i){return!0}};n.\u0275fac=function(i){return new(i||n)(w(Tn),w(En))},n.\u0275dir=Se({type:n,selectors:[["","let",""]],inputs:{let:"let"},standalone:!0});let o=n;return o})();var RT=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();var RG=["*"];function IT(o){return tm(o)?o.touches[0]||o.changedTouches[0]:o}var gv=(()=>{let n=class n{constructor(t,i){this.ngZone=t,this.listeners=new Map,this.handleMouseDownOutsideAngular$=new J,this.documentMouseUpOutsideAngular$=new J,this.documentMouseMoveOutsideAngular$=new J,this.mouseEnteredOutsideAngular$=new J,this.document=i}startResizing(t){let i=tm(t);this.clearListeners();let r=i?"touchmove":"mousemove",s=i?"touchend":"mouseup",a=c=>{this.documentMouseMoveOutsideAngular$.next(c)},l=c=>{this.documentMouseUpOutsideAngular$.next(c),this.clearListeners()};this.listeners.set(r,a),this.listeners.set(s,l),this.ngZone.runOutsideAngular(()=>{this.listeners.forEach((c,u)=>{this.document.addEventListener(u,c)})})}clearListeners(){this.listeners.forEach((t,i)=>{this.document.removeEventListener(i,t)}),this.listeners.clear()}ngOnDestroy(){this.handleMouseDownOutsideAngular$.complete(),this.documentMouseUpOutsideAngular$.complete(),this.documentMouseMoveOutsideAngular$.complete(),this.mouseEnteredOutsideAngular$.complete(),this.clearListeners()}};n.\u0275fac=function(i){return new(i||n)(nt($e),nt(gi))},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),MT=(()=>{let n=class n{constructor(t,i,r,s,a,l){this.elementRef=t,this.renderer=i,this.nzResizableService=r,this.platform=s,this.ngZone=a,this.destroy$=l,this.nzBounds="parent",this.nzMinHeight=40,this.nzMinWidth=40,this.nzGridColumnCount=-1,this.nzMaxColumn=-1,this.nzMinColumn=-1,this.nzLockAspectRatio=!1,this.nzPreview=!1,this.nzDisabled=!1,this.nzResize=new O,this.nzResizeEnd=new O,this.nzResizeStart=new O,this.resizing=!1,this.currentHandleEvent=null,this.ghostElement=null,this.sizeCache=null,this.nzResizableService.handleMouseDownOutsideAngular$.pipe(F(this.destroy$)).subscribe(c=>{this.nzDisabled||(this.resizing=!0,this.nzResizableService.startResizing(c.mouseEvent),this.currentHandleEvent=c,this.nzResizeStart.observers.length&&this.ngZone.run(()=>this.nzResizeStart.emit({mouseEvent:c.mouseEvent,direction:c.direction})),this.elRect=this.el.getBoundingClientRect())}),this.nzResizableService.documentMouseUpOutsideAngular$.pipe(F(this.destroy$),Qe(Boolean)).subscribe(c=>{this.resizing&&(this.resizing=!1,this.nzResizableService.documentMouseUpOutsideAngular$.next(null),this.endResize(c))}),this.nzResizableService.documentMouseMoveOutsideAngular$.pipe(F(this.destroy$)).subscribe(c=>{this.resizing&&this.resize(c)})}setPosition(){let t=getComputedStyle(this.el).position;(t==="static"||!t)&&this.renderer.setStyle(this.el,"position","relative")}calcSize(t,i,r){let s,a,l,c,u=0,d=0,p=this.nzMinWidth,g=1/0,v=1/0;if(this.nzBounds==="parent"){let y=this.renderer.parentNode(this.el);if(y instanceof HTMLElement){let x=y.getBoundingClientRect();g=x.width,v=x.height}}else if(this.nzBounds==="window")typeof window<"u"&&(g=window.innerWidth,v=window.innerHeight);else if(this.nzBounds&&this.nzBounds.nativeElement&&this.nzBounds.nativeElement instanceof HTMLElement){let y=this.nzBounds.nativeElement.getBoundingClientRect();g=y.width,v=y.height}return l=im(this.nzMaxWidth,g),c=im(this.nzMaxHeight,v),this.nzGridColumnCount!==-1&&(d=l/this.nzGridColumnCount,p=this.nzMinColumn!==-1?d*this.nzMinColumn:p,l=this.nzMaxColumn!==-1?d*this.nzMaxColumn:l),r!==-1?/(left|right)/i.test(this.currentHandleEvent.direction)?(s=Math.min(Math.max(t,p),l),a=Math.min(Math.max(s/r,this.nzMinHeight),c),(a>=c||a<=this.nzMinHeight)&&(s=Math.min(Math.max(a*r,p),l))):(a=Math.min(Math.max(i,this.nzMinHeight),c),s=Math.min(Math.max(a*r,p),l),(s>=l||s<=p)&&(a=Math.min(Math.max(s/r,this.nzMinHeight),c))):(s=Math.min(Math.max(t,p),l),a=Math.min(Math.max(i,this.nzMinHeight),c)),this.nzGridColumnCount!==-1&&(u=Math.round(s/d),s=u*d),{col:u,width:s,height:a}}resize(t){let i=this.elRect,r=IT(t),s=IT(this.currentHandleEvent.mouseEvent),a=i.width,l=i.height,c=this.nzLockAspectRatio?a/l:-1;switch(this.currentHandleEvent.direction){case"bottomRight":a=r.clientX-i.left,l=r.clientY-i.top;break;case"bottomLeft":a=i.width+s.clientX-r.clientX,l=r.clientY-i.top;break;case"topRight":a=r.clientX-i.left,l=i.height+s.clientY-r.clientY;break;case"topLeft":a=i.width+s.clientX-r.clientX,l=i.height+s.clientY-r.clientY;break;case"top":l=i.height+s.clientY-r.clientY;break;case"right":a=r.clientX-i.left;break;case"bottom":l=r.clientY-i.top;break;case"left":a=i.width+s.clientX-r.clientX}let u=this.calcSize(a,l,c);this.sizeCache=V({},u),this.nzResize.observers.length&&this.ngZone.run(()=>{this.nzResize.emit(ot(V({},u),{mouseEvent:t,direction:this.currentHandleEvent.direction}))}),this.nzPreview&&this.previewResize(u)}endResize(t){this.removeGhostElement();let i=this.sizeCache?V({},this.sizeCache):{width:this.elRect.width,height:this.elRect.height};this.nzResizeEnd.observers.length&&this.ngZone.run(()=>{this.nzResizeEnd.emit(ot(V({},i),{mouseEvent:t,direction:this.currentHandleEvent.direction}))}),this.sizeCache=null,this.currentHandleEvent=null}previewResize({width:t,height:i}){this.createGhostElement(),this.renderer.setStyle(this.ghostElement,"width",`${t}px`),this.renderer.setStyle(this.ghostElement,"height",`${i}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(),this.ngZone.runOutsideAngular(()=>{Ke(this.el,"mouseenter").pipe(F(this.destroy$)).subscribe(()=>{this.nzResizableService.mouseEnteredOutsideAngular$.next(!0)}),Ke(this.el,"mouseleave").pipe(F(this.destroy$)).subscribe(()=>{this.nzResizableService.mouseEnteredOutsideAngular$.next(!1)})}))}ngOnDestroy(){this.ghostElement=null,this.sizeCache=null}};n.\u0275fac=function(i){return new(i||n)(w(de),w(He),w(gv),w(gn),w($e),w(Pt))},n.\u0275dir=Se({type:n,selectors:[["","nz-resizable",""]],hostAttrs:[1,"nz-resizable"],hostVars:4,hostBindings:function(i,r){i&2&&k("nz-resizable-resizing",r.resizing)("nz-resizable-disabled",r.nzDisabled)},inputs:{nzBounds:"nzBounds",nzMaxHeight:"nzMaxHeight",nzMaxWidth:"nzMaxWidth",nzMinHeight:"nzMinHeight",nzMinWidth:"nzMinWidth",nzGridColumnCount:"nzGridColumnCount",nzMaxColumn:"nzMaxColumn",nzMinColumn:"nzMinColumn",nzLockAspectRatio:"nzLockAspectRatio",nzPreview:"nzPreview",nzDisabled:"nzDisabled"},outputs:{nzResize:"nzResize",nzResizeEnd:"nzResizeEnd",nzResizeStart:"nzResizeStart"},exportAs:["nzResizable"],standalone:!0,features:[Ve([gv,Pt])]});let o=n;return N([W()],o.prototype,"nzLockAspectRatio",void 0),N([W()],o.prototype,"nzPreview",void 0),N([W()],o.prototype,"nzDisabled",void 0),o})(),mv=class{constructor(n,e){this.direction=n,this.mouseEvent=e}},PT=BS({passive:!0}),FT=(()=>{let n=class n{constructor(t,i,r,s,a){this.ngZone=t,this.nzResizableService=i,this.renderer=r,this.host=s,this.destroy$=a,this.nzDirection="bottomRight",this.nzCursorType="window",this.nzMouseDown=new O}ngOnInit(){this.nzResizableService.mouseEnteredOutsideAngular$.pipe(F(this.destroy$)).subscribe(t=>{t?this.renderer.addClass(this.host.nativeElement,"nz-resizable-handle-box-hover"):this.renderer.removeClass(this.host.nativeElement,"nz-resizable-handle-box-hover")}),this.ngZone.runOutsideAngular(()=>{_t(Ke(this.host.nativeElement,"mousedown",PT),Ke(this.host.nativeElement,"touchstart",PT)).pipe(F(this.destroy$)).subscribe(t=>{this.nzResizableService.handleMouseDownOutsideAngular$.next(new mv(this.nzDirection,t))})})}onPointerDown(t){t.target.setPointerCapture(t.pointerId)}onPointerUp(t){t.target.releasePointerCapture(t.pointerId)}};n.\u0275fac=function(i){return new(i||n)(w($e),w(gv),w(He),w(de),w(Pt))},n.\u0275cmp=j({type:n,selectors:[["nz-resize-handle"],["","nz-resize-handle",""]],hostAttrs:[1,"nz-resizable-handle"],hostVars:20,hostBindings:function(i,r){i&1&&A("pointerdown",function(a){return r.onPointerDown(a)})("pointerup",function(a){return r.onPointerUp(a)}),i&2&&k("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"],standalone:!0,features:[Ve([Pt]),K],ngContentSelectors:RG,decls:1,vars:0,template:function(i,r){i&1&&(Pe(),Ie(0))},encapsulation:2,changeDetection:0});let o=n;return o})();var AT=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();function MG(o,n){if(o&1){let e=Q();C(0,"div",5)(1,"input",6),A("ngModelChange",function(i){I(e);let r=m();return P(r.f.menus[0].value=i)})("ngModelChange",function(i){I(e);let r=m();return P(r.n.emit(i))})("keyup.enter",function(){I(e);let i=m();return P(i.confirm())}),S()()}if(o&2){let e=m();f(),h("ngModel",e.f.menus[0].value),ze("placeholder",e.f.placeholder)}}function FG(o,n){if(o&1){let e=Q();C(0,"div",7)(1,"nz-input-number",8),A("ngModelChange",function(i){I(e);let r=m();return P(r.f.menus[0].value=i)})("ngModelChange",function(i){I(e);let r=m();return P(r.n.emit(i))}),S()()}if(o&2){let e=m();f(),h("ngModel",e.f.menus[0].value)("nzMin",e.f.number.min)("nzMax",e.f.number.max)("nzStep",e.f.number.step)("nzPrecision",e.f.number.precision)("nzPlaceHolder",e.f.placeholder)}}function AG(o,n){if(o&1){let e=Q();C(0,"nz-range-picker",11),A("ngModelChange",function(i){I(e);let r=m(2);return P(r.f.menus[0].value=i)})("ngModelChange",function(i){I(e);let r=m(2);return P(r.n.emit(i))}),S()}if(o&2){let e=m(2);h("nzMode",e.f.date.mode)("ngModel",e.f.menus[0].value)("nzShowNow",e.f.date.showNow)("nzShowToday",e.f.date.showToday)("nzDisabledDate",e.f.date.disabledDate)("nzDisabledTime",e.f.date.disabledTime)}}function NG(o,n){if(o&1){let e=Q();C(0,"nz-date-picker",11),A("ngModelChange",function(i){I(e);let r=m(2);return P(r.f.menus[0].value=i)})("ngModelChange",function(i){I(e);let r=m(2);return P(r.n.emit(i))}),S()}if(o&2){let e=m(2);h("nzMode",e.f.date.mode)("ngModel",e.f.menus[0].value)("nzShowNow",e.f.date.showNow)("nzShowToday",e.f.date.showToday)("nzDisabledDate",e.f.date.disabledDate)("nzDisabledTime",e.f.date.disabledTime)}}function LG(o,n){if(o&1&&(C(0,"div",9),_(1,AG,1,6,"nz-range-picker",10)(2,NG,1,6),S()),o&2){let e=m();f(),ie(1,e.f.date.range?1:2)}}function kG(o,n){}var VG=(o,n,e)=>({$implicit:o,col:n,handle:e});function GG(o,n){if(o&1&&(C(0,"div",12),_(1,kG,0,0,"ng-template",13),S()),o&2){let e=m();f(),h("ngTemplateOutlet",e.f.custom)("ngTemplateOutletContext",iu(2,VG,e.f,e.col,e))}}function HG(o,n){if(o&1){let e=Q();C(0,"label",17),A("ngModelChange",function(i){I(e);let r=m().$implicit;return P(r.checked=i)})("ngModelChange",function(){I(e);let i=m(3);return P(i.checkboxChange())}),Y(1),S()}if(o&2){let e=m().$implicit;h("ngModel",e.checked),f(),Ne(" ",e.text," ")}}function BG(o,n){if(o&1){let e=Q();C(0,"label",18),A("ngModelChange",function(){I(e);let i=m().$implicit,r=m(2);return P(r.radioChange(i))}),Y(1),S()}if(o&2){let e=m().$implicit;h("ngModel",e.checked),f(),Ne(" ",e.text," ")}}function $G(o,n){if(o&1&&(C(0,"li",15),_(1,HG,2,2,"label",16)(2,BG,2,2),S()),o&2){let e=m(2);f(),ie(1,e.f.multiple?1:2)}}function jG(o,n){if(o&1&&(C(0,"ul",14),Cn(1,$G,3,1,"li",15,yn),S()),o&2){let e=m();f(),_n(e.f.menus)}}function WG(o,n){if(o&1){let e=Q();C(0,"div",19)(1,"a",20),A("click",function(){I(e);let i=m();return P(i.confirm())}),C(2,"span"),Y(3),S()(),C(4,"a",21),A("click",function(){I(e);let i=m();return P(i.reset())}),C(5,"span"),Y(6),S()()()}if(o&2){let e=m();f(3),ye(e.f.confirmText||e.locale.filterConfirm),f(3),ye(e.f.clearText||e.locale.filterReset)}}var UG=["table"],KG=["contextmenuTpl"];function qG(o,n){if(o&1&&R(0,"small",14),o&2){let e=m().$implicit;h("innerHTML",e.optional,Dt)}}function YG(o,n){if(o&1&&R(0,"i",15),o&2){let e=m().$implicit;h("nzTooltipTitle",e.optionalHelp)}}function QG(o,n){if(o&1&&(R(0,"span",11),_(1,qG,1,1,"small",12)(2,YG,1,1,"i",13)),o&2){let e=n.$implicit;h("innerHTML",e._text,Dt),f(),ie(1,e.optional?1:-1),f(),ie(2,e.optionalHelp?2:-1)}}function XG(o,n){if(o&1){let e=Q();C(0,"label",16),A("ngModelChange",function(i){I(e);let r=m();return P(r._allChecked=i)})("ngModelChange",function(){I(e);let i=m();return P(i.checkAll())}),S()}if(o&2){let e=n.$implicit,t=m();k("ant-table-selection-select-all-custom",e),h("nzDisabled",t._allCheckedDisabled)("ngModel",t._allChecked)("nzIndeterminate",t._indeterminate)}}function ZG(o,n){if(o&1&&R(0,"th",17),o&2){let e=m(3);h("rowSpan",e._headers.length)}}function JG(o,n){o&1&&(C(0,"nz-resize-handle",20),R(1,"i"),S())}function eH(o,n){}var yh=(o,n)=>({$implicit:o,index:n});function tH(o,n){if(o&1&&_(0,eH,0,0,"ng-template",5),o&2){let e=m().let,t=m(),i=t.$implicit,r=t.$index;h("ngTemplateOutlet",e.__renderTitle)("ngTemplateOutletContext",ri(2,yh,i.column,r))}}function nH(o,n){}var iH=()=>({$implicit:!1});function rH(o,n){if(o&1&&_(0,nH,0,0,"ng-template",5),o&2){m(7);let e=te(3);h("ngTemplateOutlet",e)("ngTemplateOutletContext",ii(2,iH))}}function oH(o,n){}function sH(o,n){if(o&1&&(C(0,"div",26)(1,"div",27),R(2,"i",28),S()()),o&2){m();let e=te(4);f(),h("nzDropdownMenu",e)}}function aH(o,n){if(o&1){let e=Q();C(0,"li",29),A("click",function(){let r=I(e).$implicit,s=m(8);return P(s._rowSelection(r))}),S()}if(o&2){let e=n.$implicit;h("innerHTML",e.text,Dt)}}var lH=()=>({$implicit:!0});function cH(o,n){if(o&1&&(C(0,"div",22),_(1,oH,0,0,"ng-template",5)(2,sH,3,1,"div",23),C(3,"nz-dropdown-menu",null,24)(5,"ul",25),Cn(6,aH,1,1,"li",30,yn),S()()()),o&2){let e=m(3).let;m(4);let t=te(3);f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",ii(3,lH)),f(),ie(2,e.selections.length?2:-1),f(4),_n(e.selections)}}function uH(o,n){if(o&1&&_(0,rH,1,3,null,5)(1,cH,8,4),o&2){let e=m(2).let;ie(0,e.selections.length===0?0:1)}}function dH(o,n){}var Bs=o=>({$implicit:o});function pH(o,n){if(o&1&&_(0,dH,0,0,"ng-template",5),o&2){let e=m(2).let;m(4);let t=te(1);h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(2,Bs,e.title))}}function hH(o,n){if(o&1&&_(0,uH,2,1)(1,pH,1,4),o&2){let e=m().let,t;ie(0,(t=e.type)==="checkbox"?0:1)}}function fH(o,n){if(o&1){let e=Q();C(0,"st-filter",31),A("n",function(i){I(e);let r=m(5);return P(r.handleFilterNotify(i))})("handle",function(i){I(e);let r=m().let,s=m(4);return P(s._handleFilter(r,i))}),S()}if(o&2){let e=m().let,t=m().$implicit,i=m(3);h("col",t.column)("f",e.filter)("locale",i.locale)}}function gH(o,n){if(o&1){let e=Q();C(0,"th",19),A("nzSortOrderChange",function(i){let s=I(e).let,a=m().$index,l=m(3);return P(l.sort(s,a,i))})("nzResizeEnd",function(i){let s=I(e).let,a=m(4);return P(a.colResize(i,s))}),_(1,JG,2,0,"nz-resize-handle",20)(2,tH,1,5,null,5)(3,hH,2,1)(4,fH,1,3,"st-filter",21),S()}if(o&2){let e=n.let,t=m(),i=t.$implicit,r=t.$index,s=t.$count,a=t.$index;k("st__has-filter",e.filter),h("colSpan",i.colSpan)("rowSpan",i.rowSpan)("nzWidth",e.width)("nzLeft",e._left)("nzRight",e._right)("ngClass",e._className)("nzShowSort",e._sort.enabled)("nzSortOrder",e._sort.default)("nzCustomFilter",!!e.filter)("nzDisabled",r===s-1||e.resizable.disabled)("nzMaxWidth",e.resizable.maxWidth)("nzMinWidth",e.resizable.minWidth)("nzBounds",e.resizable.bounds)("nzPreview",e.resizable.preview),ze("data-col",e.indexKey)("data-col-index",a),f(),ie(1,r!==s-1&&!e.resizable.disabled?1:-1),f(),ie(2,e.__renderTitle?2:3),f(2),ie(4,e.filter?4:-1)}}function mH(o,n){if(o&1&&_(0,gH,5,21,"th",18),o&2){let e=n.$implicit;h("let",e.column)}}function vH(o,n){if(o&1&&(C(0,"tr"),_(1,ZG,1,1,"th",17),Cn(2,mH,1,1,"th",32,yn),S()),o&2){let e=n.$implicit,t=n.$index,i=m(2);f(),ie(1,t===0&&i.expand?1:-1),f(),_n(e)}}function yH(o,n){if(o&1&&(C(0,"thead"),Cn(1,vH,4,1,"tr",null,yn),S()),o&2){let e=m();f(),_n(e._headers)}}function CH(o,n){}function _H(o,n){if(o&1&&_(0,CH,0,0,"ng-template",5),o&2){let e=m();h("ngTemplateOutlet",e.bodyHeader)("ngTemplateOutletContext",yt(2,Bs,e._statistical))}}function SH(o,n){if(o&1){let e=Q();C(0,"td",36),A("nzExpandChange",function(i){I(e);let r=m().$implicit,s=m();return P(s._expandChange(r,i))})("click",function(i){I(e);let r=m(2);return P(r._stopPropagation(i))}),S()}if(o&2){let e=m().$implicit,t=m();h("nzShowExpand",t.expand&&e.showExpand!==!1)("nzExpand",e.expand)}}function wH(o,n){}function bH(o,n){if(o&1&&(C(0,"span",40),_(1,wH,0,0,"ng-template",5),S()),o&2){let e=m(2).$implicit;m(2);let t=te(1);f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(2,Bs,e.title))}}function TH(o,n){if(o&1){let e=Q();C(0,"td",37),_(1,bH,2,4,"span",38),C(2,"st-td",39),A("n",function(i){I(e);let r=m(3);return P(r._handleTd(i))}),S()()}if(o&2){let e=m(),t=e.$implicit,i=e.$index,r=m(),s=r.$implicit,a=r.index,l=m();h("nzLeft",!!t._left)("nzRight",!!t._right)("ngClass",t._className),ze("data-col-index",i)("colspan",(s._values[i].props==null?null:s._values[i].props.colSpan)===1||s._values[i].props==null?null:s._values[i].props.colSpan)("rowspan",(s._values[i].props==null?null:s._values[i].props.rowSpan)===1||s._values[i].props==null?null:s._values[i].props.rowSpan),f(),ie(1,l.responsive?1:-1),f(),h("data",l._data)("i",s)("index",a)("c",t)("cIdx",i)}}function EH(o,n){if(o&1&&_(0,TH,3,12,"td",37),o&2){let e=n.$index,t=m().$implicit;ie(0,(t._values[e].props==null?null:t._values[e].props.colSpan)>0&&(t._values[e].props==null?null:t._values[e].props.rowSpan)>0?0:-1)}}function xH(o,n){}function zH(o,n){if(o&1){let e=Q();C(0,"tr",33),A("click",function(i){let r=I(e),s=r.$implicit,a=r.index,l=m();return P(l._rowClick(i,s,a,!1))})("dblclick",function(i){let r=I(e),s=r.$implicit,a=r.index,l=m();return P(l._rowClick(i,s,a,!0))}),_(1,SH,1,2,"td",34),Cn(2,EH,1,1,null,null,yn),S(),C(4,"tr",35),_(5,xH,0,0,"ng-template",5),S()}if(o&2){let e=n.$implicit,t=n.index,i=m();h("ngClass",e._rowClassName),ze("data-index",t),f(),ie(1,i.expand?1:-1),f(),_n(i._columns),f(2),h("nzExpand",e.expand),f(),h("ngTemplateOutlet",i.expand)("ngTemplateOutletContext",ri(6,yh,e,t))}}function OH(o,n){}function DH(o,n){if(o&1&&_(0,OH,0,0,"ng-template",5),o&2){let e=n.$implicit,t=n.index;m(2);let i=te(10);h("ngTemplateOutlet",i)("ngTemplateOutletContext",ri(2,yh,e,t))}}function RH(o,n){o&1&&_(0,DH,1,5,"ng-template",7)}function IH(o,n){}function PH(o,n){if(o&1&&_(0,IH,0,0,"ng-template",5),o&2){let e=n.$implicit,t=n.$index;m(2);let i=te(10);h("ngTemplateOutlet",i)("ngTemplateOutletContext",ri(2,yh,e,t))}}function MH(o,n){if(o&1&&Cn(0,PH,1,5,null,5,yn),o&2){let e=m();_n(e._data)}}function FH(o,n){}function AH(o,n){if(o&1&&_(0,FH,0,0,"ng-template",5),o&2){let e=m();h("ngTemplateOutlet",e.body)("ngTemplateOutletContext",yt(2,Bs,e._statistical))}}function NH(o,n){if(o&1&&Y(0),o&2){let e=n.range,t=n.$implicit,i=m();ye(i.renderTotal(t,e))}}function LH(o,n){if(o&1){let e=Q();C(0,"li",29),A("click",function(){I(e);let i=m().$implicit;return P(i.fn(i))}),S()}if(o&2){let e=m().$implicit;h("innerHTML",e.text,Dt)}}function kH(o,n){if(o&1){let e=Q();C(0,"li",29),A("click",function(){let r=I(e).$implicit;return P(r.fn(r))}),S()}if(o&2){let e=n.$implicit;h("innerHTML",e.text,Dt)}}function VH(o,n){if(o&1&&(C(0,"li",41)(1,"ul"),Cn(2,kH,1,1,"li",30,yn),S()()),o&2){let e=m().$implicit;h("nzTitle",e.text),f(2),_n(e.children)}}function GH(o,n){if(o&1&&_(0,LH,1,1,"li",30)(1,VH,4,1),o&2){let e=n.$implicit;ie(0,e.children.length===0?0:1)}}function HH(o,n){}function BH(o,n){if(o&1&&(C(0,"span",5),_(1,HH,0,0,"ng-template",3),S()),o&2){let e=m(),t=e.child,i=e.$implicit;m();let r=te(3);k("d-block",t)("width-100",t),h("nzTooltipTitle",i.tooltip),f(),h("ngTemplateOutlet",r)("ngTemplateOutletContext",yt(7,Bs,i))}}function $H(o,n){}function jH(o,n){if(o&1&&_(0,$H,0,0,"ng-template",3),o&2){let e=m().$implicit;m();let t=te(3);h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(2,Bs,e))}}function WH(o,n){if(o&1&&_(0,BH,2,9,"span",4)(1,jH,1,4),o&2){let e=n.$implicit;ie(0,e.tooltip?0:1)}}function UH(o,n){}function KH(o,n){if(o&1){let e=Q();C(0,"a",7),A("nzOnConfirm",function(){I(e);let i=m().$implicit,r=m();return P(r._btn(i))})("click",function(i){I(e);let r=m(2);return P(r._stopPropagation(i))}),_(1,UH,0,0,"ng-template",3),S()}if(o&2){let e=m().$implicit;m();let t=te(5);h("nzPopconfirmTitle",e.pop.title)("nzIcon",e.pop.icon)("nzCondition",e.pop.condition(e))("nzCancelText",e.pop.cancelText)("nzOkText",e.pop.okText)("nzOkType",e.pop.okType)("ngClass",e._className),f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(9,Bs,e))}}function qH(o,n){}function YH(o,n){if(o&1){let e=Q();C(0,"a",8),A("click",function(i){I(e);let r=m().$implicit,s=m();return P(s._btn(r,i))}),_(1,qH,0,0,"ng-template",3),S()}if(o&2){let e=m().$implicit;m();let t=te(5);h("ngClass",e._className),f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(3,Bs,e))}}function QH(o,n){if(o&1&&_(0,KH,2,11,"a",6)(1,YH,2,5),o&2){let e=n.$implicit;ie(0,e.pop?0:1)}}function XH(o,n){if(o&1&&R(0,"i",10),o&2){let e=m(2).$implicit;h("nzIconfont",e._icon.iconfont)}}function ZH(o,n){if(o&1&&R(0,"i",11),o&2){let e=m(2).$implicit;h("nzType",e._icon.type)("nzTheme",e._icon.theme)("nzSpin",e._icon.spin)("nzTwotoneColor",e._icon.twoToneColor)}}function JH(o,n){if(o&1&&_(0,XH,1,1,"i",10)(1,ZH,1,4),o&2){let e=m().$implicit;ie(0,e._icon.iconfont?0:1)}}var e3=o=>({"pl-xs":o});function t3(o,n){if(o&1&&(_(0,JH,2,1),R(1,"span",9)),o&2){let e=n.$implicit;ie(0,e._icon?0:-1),f(),h("innerHTML",e._text,Dt)("ngClass",yt(3,e3,e._icon))}}function n3(o,n){}var i3=(o,n,e)=>({$implicit:o,index:n,column:e});function r3(o,n){if(o&1&&_(0,n3,0,0,"ng-template",3),o&2){let e=m();h("ngTemplateOutlet",e.c.__render)("ngTemplateOutletContext",iu(2,i3,e.i,e.index,e.c))}}function o3(o,n){if(o&1){let e=Q();C(0,"label",12),A("ngModelChange",function(i){I(e);let r=m(2);return P(r._checkbox(i))}),S()}if(o&2){let e=m(2);h("nzDisabled",e.i.disabled)("ngModel",e.i.checked)}}function s3(o,n){if(o&1){let e=Q();C(0,"label",13),A("ngModelChange",function(){I(e);let i=m(2);return P(i._radio())}),S()}if(o&2){let e=m(2);h("nzDisabled",e.i.disabled)("ngModel",e.i.checked)}}function a3(o,n){if(o&1){let e=Q();C(0,"a",14),A("click",function(i){I(e);let r=m(2);return P(r._link(i))}),S()}if(o&2){let e=m(2);h("innerHTML",e.i._values[e.cIdx]._text,Dt),ze("title",e.i._values[e.cIdx].text)}}function l3(o,n){if(o&1&&(C(0,"nz-tag",15),R(1,"span",16),S()),o&2){let e=m(2);h("nzColor",e.i._values[e.cIdx].color)("nz-tooltip",e.i._values[e.cIdx].tooltip),f(),h("innerHTML",e.i._values[e.cIdx]._text,Dt)}}function c3(o,n){if(o&1&&R(0,"nz-badge",17),o&2){let e=m(2);h("nzStatus",e.i._values[e.cIdx].color)("nzText",e.i._values[e.cIdx].text)("nz-tooltip",e.i._values[e.cIdx].tooltip)}}function u3(o,n){if(o&1&&R(0,"cell",18),o&2){let e=m(2),t;h("value",e.i._values[e.cIdx].text)("options",(t=e.i._values[e.cIdx].cell)!==null&&t!==void 0?t:e.c.cell)}}function d3(o,n){}function p3(o,n){if(o&1&&_(0,d3,0,0,"ng-template",19),o&2){let e=m(2);h("record",e.i)("column",e.c)}}function h3(o,n){if(o&1&&R(0,"span",20),o&2){let e=m(3);h("innerText",e.i._values[e.cIdx]._text),ze("title",e.c._isTruncate?e.i._values[e.cIdx].text:null)}}function f3(o,n){if(o&1&&R(0,"span",16),o&2){let e=m(3);h("innerHTML",e.i._values[e.cIdx]._text,Dt),ze("title",e.c._isTruncate?e.i._values[e.cIdx].text:null)}}function g3(o,n){if(o&1&&_(0,h3,1,2,"span",20)(1,f3,1,2),o&2){let e=m(2);ie(0,e.c.safeType==="text"?0:1)}}function m3(o,n){o&1&&R(0,"li",26)}function v3(o,n){}var y3=o=>({$implicit:o,child:!0});function C3(o,n){if(o&1&&(C(0,"li",27),_(1,v3,0,0,"ng-template",3),S()),o&2){let e=m().$implicit;m(4);let t=te(1);k("st__btn-disabled",e._disabled),f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(4,y3,e))}}function _3(o,n){if(o&1&&_(0,m3,1,0,"li",26)(1,C3,2,6),o&2){let e=n.$implicit;ie(0,e.type==="divider"?0:1)}}function S3(o,n){if(o&1&&(C(0,"a",22),R(1,"span",16)(2,"i",23),S(),C(3,"nz-dropdown-menu",null,24)(5,"ul",25),Cn(6,_3,2,1,null,null,yn),S()()),o&2){let e=te(4),t=m().$implicit;h("nzDropdownMenu",e),f(),h("innerHTML",t._text,Dt),f(5),_n(t.children)}}function w3(o,n){}var b3=o=>({$implicit:o,child:!1});function T3(o,n){if(o&1&&(C(0,"span"),_(1,w3,0,0,"ng-template",3),S()),o&2){let e=m().$implicit;m(2);let t=te(1);k("st__btn-disabled",e._disabled),f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(4,b3,e))}}function E3(o,n){o&1&&R(0,"nz-divider",21)}function x3(o,n){if(o&1&&_(0,S3,8,2)(1,T3,2,6)(2,E3,1,0,"nz-divider",21),o&2){let e=n.$implicit,t=n.$index,i=n.$count;ie(0,e.children.length>0?0:1),f(2),ie(2,t!==i-1?2:-1)}}function z3(o,n){if(o&1&&(_(0,o3,1,2)(1,s3,1,2)(2,a3,1,2)(3,l3,2,3)(4,c3,1,3)(5,u3,1,2)(6,p3,1,2)(7,g3,2,1),Cn(8,x3,3,2,null,null,yn)),o&2){let e=m(),t;ie(0,(t=e.c.type)==="checkbox"?0:t==="radio"?1:t==="link"?2:t==="tag"?3:t==="badge"?4:t==="cell"?5:t==="widget"?6:7),f(8),_n(e.i._values[e.cIdx].buttons)}}var VT=(()=>{let n=class n{constructor(){this.titles={},this.rows={}}add(t,i,r){this[t==="title"?"titles":"rows"][i]=r}getTitle(t){return this.titles[t]}getRow(t){return this.rows[t]}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})();var vv=(()=>{let n=class n{constructor(){this._widgets={}}get widgets(){return this._widgets}register(t,i){this._widgets[t]=i}has(t){return this._widgets.hasOwnProperty(t)}get(t){return this._widgets[t]}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})(),NT=(()=>{let n=class n{constructor(t,i,r,s,a){this.dom=t,this.rowSource=i,this.acl=r,this.i18nSrv=s,this.stWidgetRegistry=a}setCog(t){this.cog=t}fixPop(t,i){if(t.pop==null||t.pop===!1){t.pop=!1;return}let r=V({},i);typeof t.pop=="string"?r.title=t.pop:typeof t.pop=="object"&&(r=V(V({},r),t.pop)),typeof r.condition!="function"&&(r.condition=()=>!1),t.pop=r}btnCoerce(t){if(!t)return[];let i=[],{modal:r,drawer:s,pop:a,btnIcon:l}=this.cog;for(let c of t)this.acl&&c.acl&&!this.acl.can(c.acl)||((c.type==="modal"||c.type==="static")&&(c.modal==null||c.modal.component==null?c.type="none":c.modal=V(V({paramsName:"record",size:"lg"},r),c.modal)),c.type==="drawer"&&(c.drawer==null||c.drawer.component==null?c.type="none":c.drawer=V(V({paramsName:"record",size:"lg"},s),c.drawer)),c.type==="del"&&typeof c.pop>"u"&&(c.pop=!0),this.fixPop(c,a),typeof c.icon!="function"&&(c.icon=V(V({},l),typeof c.icon=="string"?{type:c.icon}:c.icon)),c.children=c.children&&c.children.length>0?this.btnCoerce(c.children):[],c.i18n&&this.i18nSrv&&(c.text=this.i18nSrv.fanyi(c.i18n)),i.push(c));return this.btnCoerceIf(i),i}btnCoerceIf(t){for(let i of t)i.iifBehavior=i.iifBehavior||this.cog.iifBehavior,i.children&&i.children.length>0?this.btnCoerceIf(i.children):i.children=[]}fixedCoerce(t){let i=(r,s)=>r+ +s.width.toString().replace("px","");t.filter(r=>r.fixed&&r.fixed==="left"&&r.width).forEach((r,s)=>r._left=`${t.slice(0,s).reduce(i,0)}px`),t.filter(r=>r.fixed&&r.fixed==="right"&&r.width).reverse().forEach((r,s)=>r._right=`${s>0?t.slice(-s).reduce(i,0):0}px`)}sortCoerce(t){let i=this.fixSortCoerce(t);return i.reName=V(V({},this.cog.sortReName),i.reName),i}fixSortCoerce(t){if(typeof t.sort>"u")return{enabled:!1};let i={};return typeof t.sort=="string"?i.key=t.sort:typeof t.sort!="boolean"?i=t.sort:typeof t.sort=="boolean"&&(i.compare=(r,s)=>r[t.indexKey]-s[t.indexKey]),i.key||(i.key=t.indexKey),i.enabled=!0,i}filterCoerce(t){if(t.filter==null)return null;let i=t.filter;i.type=i.type||"default",i.showOPArea=i.showOPArea!==!1;let r="filter",s="fill",a=!0,l;switch(i.type){case"keyword":r="search",s="outline";break;case"number":r="search",s="outline",i.number=V({step:1,min:-1/0,max:1/0},i.number);break;case"date":r="calendar",s="outline",i.date=V({range:!1,mode:"date",showToday:!0,showNow:!1},i.date);break;case"custom":break;default:a=!1;break}if(a&&(i.menus==null||i.menus.length===0)&&(i.menus=[{value:l}]),i.menus?.length===0)return null;typeof i.multiple>"u"&&(i.multiple=!0),i.confirmText=i.confirmText||this.cog.filterConfirmText,i.clearText=i.clearText||this.cog.filterClearText,i.key=i.key||t.indexKey,i.icon=i.icon||r;let c={type:r,theme:s};return typeof i.icon=="string"?i.icon=ot(V({},c),{type:i.icon}):i.icon=V(V({},c),i.icon),this.updateDefault(i),this.acl&&(i.menus=i.menus?.filter(u=>this.acl.can(u.acl))),i.menus?.length===0?null:i}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 i=[],r=[],s=(l,c,u=0)=>{i[u]=i[u]||[];let d=c;return l.map(g=>{let v={column:g,colStart:d,hasSubColumns:!1},y=1,x=g.children;return Array.isArray(x)&&x.length>0?(y=s(x,d,u+1).reduce((E,z)=>E+z,0),v.hasSubColumns=!0):r.push(v.column.width||""),"colSpan"in g&&(y=g.colSpan),"rowSpan"in g&&(v.rowSpan=g.rowSpan),v.colSpan=y,v.colEnd=v.colStart+y-1,i[u].push(v),d+=y,y})};s(t,0);let a=i.length;for(let l=0;l<a;l+=1)i[l].forEach(c=>{!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=a-l)});return{headers:i,headerWidths:a>1?r:null}}cleanCond(t){let i=[],r=Jr(t);for(let s of r)typeof s.iif=="function"&&!s.iif(s)||this.acl&&s.acl&&!this.acl.can(s.acl)||(Array.isArray(s.children)&&s.children.length>0&&(s.children=this.cleanCond(s.children)),i.push(s));return i}mergeClass(t){let i=[];t._isTruncate&&i.push("text-truncate");let r=t.className;if(!r){let l={number:"text-right",currency:"text-right",date:"text-center"}[t.type];l&&i.push(l),t._className=i;return}let s=Array.isArray(r);if(!s&&typeof r=="object"){let l=r;i.forEach(c=>l[c]=!0),t._className=l;return}let a=s?Array.from(r):[r];a.splice(0,0,...i),t._className=[...new Set(a)].filter(l=>!!l)}process(t,i){if(!t||t.length===0)return{columns:[],headers:[],headerWidths:null};let{noIndex:r}=this.cog,s=0,a=0,l=0,c=[],u=g=>{g.index&&(Array.isArray(g.index)||(g.index=g.index.toString().split(".")),g.indexKey=g.index.join("."));let v=(typeof g.title=="string"?{text:g.title}:g.title)||{};return v.i18n&&this.i18nSrv&&(v.text=this.i18nSrv.fanyi(v.i18n)),v.text&&(v._text=this.dom.bypassSecurityTrustHtml(v.text)),g.title=v,g.type==="no"&&(g.noIndex=g.noIndex==null?r:g.noIndex),g.selections==null&&(g.selections=[]),g.type==="checkbox"&&(++s,g.width||(g.width=`${g.selections.length>0?62:50}px`)),this.acl&&(g.selections=g.selections.filter(y=>this.acl.can(y.acl))),g.type==="radio"&&(++a,g.selections=[],g.width||(g.width="50px")),g.cell!=null&&(g.type="cell"),g.type==="yn"&&(g.yn=V(V({truth:!0},this.cog.yn),g.yn)),g.type==="date"&&(g.dateFormat=g.dateFormat||this.cog.date?.format),(g.type==="link"&&typeof g.click!="function"||g.type==="badge"&&g.badge==null||g.type==="tag"&&g.tag==null||g.type==="enum"&&g.enum==null)&&(g.type=""),g._isTruncate=!!g.width&&i.widthMode.strictBehavior==="truncate"&&g.type!=="img",this.mergeClass(g),typeof g.width=="number"&&(g._width=g.width,g.width=`${g.width}px`),g._left=!1,g._right=!1,g.safeType=g.safeType??i.safeType,g._sort=this.sortCoerce(g),g.filter=this.filterCoerce(g),g.buttons=this.btnCoerce(g.buttons),this.widgetCoerce(g),this.restoreRender(g),g.resizable=V(V({disabled:!0,bounds:"window",minWidth:60,maxWidth:360,preview:!0},i.resizable),typeof g.resizable=="boolean"?{disabled:!g.resizable}:g.resizable),g.__point=l++,g},d=g=>{for(let v of g)c.push(u(v)),Array.isArray(v.children)&&d(v.children)},p=this.cleanCond(t);if(d(p),s>1)throw new Error("[st]: just only one column checkbox");if(a>1)throw new Error("[st]: just only one column radio");return this.fixedCoerce(c),V({columns:c.filter(g=>!Array.isArray(g.children)||g.children.length===0)},this.genHeaders(p))}restoreAllRender(t){t.forEach(i=>this.restoreRender(i))}updateDefault(t){return t.menus==null?this:(t.type==="default"?t.default=t.menus.findIndex(i=>i.checked)!==-1:t.default=!!t.menus[0].value,this)}cleanFilter(t){let i=t.filter;return i.default=!1,i.type==="default"?i.menus.forEach(r=>r.checked=!1):i.menus[0].value=void 0,this}};n.\u0275fac=function(i){return new(i||n)(nt(Ro),nt(VT,1),nt(pp,8),nt(Rs,8),nt(vv))},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),LT=(()=>{let n=class n{constructor(t,i,r,s,a,l){this.http=t,this.datePipe=i,this.ynPipe=r,this.numberPipe=s,this.currencySrv=a,this.dom=l,this.sortTick=0}setCog(t){this.cog=t}process(t){let i,r=!1,{data:s,res:a,total:l,page:c,pi:u,ps:d,paginator:p,columns:g}=t,v,y,x,E,z,M=c.show;return typeof s=="string"?(r=!0,i=this.getByRemote(s,t).pipe(We(G=>{z=G;let U;if(Array.isArray(G))U=G,v=U.length,y=v,M=!1;else{let se=a.reName;if(typeof se=="function"){let ve=se(G,{pi:u,ps:d,total:l});U=ve.list,v=ve.total}else{U=ou(G,se.list,[]),(U==null||!Array.isArray(U))&&(U=[]);let ve=se.total&&ou(G,se.total,null);v=ve==null?l||0:+ve}}return Jr(U)}))):s==null||Array.isArray(s)?i=Mn(s??[]):i=s,r||(i=i.pipe(We(G=>{z=G;let U=Jr(G),se=this.getSorterFn(g);return se&&(U=U.sort(se)),U}),We(G=>(g.filter(U=>U.filter).forEach(U=>{let se=U.filter,ve=this.getFilteredData(se);if(ve.length===0)return;let he=se.fn;typeof he=="function"&&(G=G.filter(be=>ve.some(Ee=>he(Ee,be))))}),G)),We(G=>{if(p&&c.front){let U=Math.ceil(G.length/d);if(E=Math.max(1,u>U?U:u),v=G.length,c.show===!0)return G.slice((E-1)*d,E*d)}return G}))),typeof a.process=="function"&&(i=i.pipe(We(G=>a.process(G,z)))),i=i.pipe(We(G=>this.optimizeData({result:G,columns:g,rowClassName:t.rowClassName}))),i.pipe(We(G=>{x=G;let U=v||l,se=y||d;return{pi:E,ps:y,total:v,list:x,statistical:this.genStatistical(g,x,z),pageShow:typeof M>"u"?U>se:M}}))}get(t,i,r){try{let s=i.safeType==="safeHtml";if(i.format){let d=i.format(t,i,r)||"";return{text:d,_text:s?this.dom.bypassSecurityTrustHtml(d):d,org:d,safeType:i.safeType}}let a=ou(t,i.index,i.default),l=a,c,u;switch(i.type){case"no":l=this.getNoIndex(t,i,r);break;case"img":l=a?`<img src="${a}" class="img">`:"";break;case"number":l=this.numberPipe.transform(a,i.numberDigits);break;case"currency":l=this.currencySrv.format(a,i.currency?.format);break;case"date":l=a===i.default?i.default:this.datePipe.transform(a,i.dateFormat);break;case"yn":l=this.ynPipe.transform(a===i.yn.truth,i.yn.yes,i.yn.no,i.yn.mode,!1);break;case"enum":l=i.enum[a];break;case"tag":case"badge":let d=i.type==="tag"?i.tag:i.badge;if(d&&d[l]){let p=d[l];l=p.text,c=p.color,u=p.tooltip}else l="";break}return l==null&&(l=""),{text:l,_text:s?this.dom.bypassSecurityTrustHtml(l):l,org:a,color:c,tooltip:u,safeType:i.safeType,buttons:[]}}catch(s){let a="INVALID DATA";return console.error("Failed to get data",t,i,s),{text:a,_text:a,org:a,buttons:[],safeType:"text"}}}getByRemote(t,i){let{req:r,page:s,paginator:a,pi:l,ps:c,singleSort:u,multiSort:d,columns:p}=i,g=(r.method||"GET").toUpperCase(),v={},y=r.reName;a&&(r.type==="page"?v={[y.pi]:s.zeroIndexed?l-1:l,[y.ps]:c}:v={[y.skip]:(l-1)*c,[y.limit]:c}),v=V(V(V(V({},v),r.params),this.getReqSortMap(u,d,p)),this.getReqFilterMap(p)),i.req.ignoreParamNull==!0&&Object.keys(v).forEach(E=>{v[E]==null&&delete v[E]});let x={params:v,body:r.body,headers:r.headers};return g==="POST"&&r.allInBody===!0&&(x={body:V(V({},r.body),v),headers:r.headers}),typeof r.process=="function"&&(x=r.process(x)),x.params instanceof Yg||(x.params=new Yg({fromObject:x.params})),typeof i.customRequest=="function"?i.customRequest({method:g,url:t,options:x}):this.http.request(g,t,x)}getCell(t,i,r){let s=typeof t.onCell=="function"?t.onCell(i,r):null,a=s?.colSpan??1,l=s?.rowSpan??1;return{colSpan:a<=0?null:a,rowSpan:l<=0?null:l}}optimizeData(t){let{result:i,columns:r,rowClassName:s}=t;for(let a=0,l=i.length;a<l;a++)i[a]._values=r.map(c=>{let u=this.getCell(c,i[a],a);if(Array.isArray(c.buttons)&&c.buttons.length>0)return{buttons:this.genButtons(c.buttons,i[a],c),_text:"",props:u};let d;return typeof c.cell=="function"&&(d=c.cell(i[a],c)),ot(V({},this.get(i[a],c,a)),{props:u,cell:d})}),i[a]._rowClassName=[s?s(i[a],a):null,i[a].className].filter(c=>!!c).join(" ");return i}getNoIndex(t,i,r){return typeof i.noIndex=="function"?i.noIndex(t,i,r):i.noIndex+r}genButtons(t,i,r){let s=c=>Jr(c).filter(u=>{let d=typeof u.iif=="function"?u.iif(i,u,r):!0,p=u.iifBehavior==="disabled";return u._result=d,u._disabled=!d&&p,u.children?.length&&(u.children=s(u.children)),d||p}),a=s(t),l=c=>{for(let u of c)u._text=typeof u.text=="function"?u.text(i,u):u.text||"",u._className=typeof u.className=="function"?u.className(i,u):u.className,u._icon=typeof u.icon=="function"?u.icon(i,u):u.icon,u.children?.length&&(u.children=l(u.children));return c};return this.fixMaxMultiple(l(a),r)}fixMaxMultiple(t,i){let r=i.maxMultipleButton,s=t.length;if(r==null||s<=0)return t;let a=V(V({},this.cog.maxMultipleButton),typeof r=="number"?{count:r}:r);if(a.count>=s)return t;let l=t.slice(0,a.count);return l.push({_text:a.text,children:t.slice(a.count)}),l}getValidSort(t){return t.filter(i=>i._sort&&i._sort.enabled&&i._sort.default).map(i=>i._sort)}getSorterFn(t){let i=this.getValidSort(t);if(i.length===0)return;let r=i[0];if(r.compare!==null&&typeof r.compare=="function")return(s,a)=>{let l=r.compare(s,a);return l!==0?r.default==="descend"?-l:l:0}}get nextSortTick(){return++this.sortTick}getReqSortMap(t,i,r){let s={},a=this.getValidSort(r);if(i){let d=V({key:"sort",separator:"-",nameSeparator:".",keepEmptyKey:!0,arrayParam:!1},i),p=a.sort((g,v)=>g.tick-v.tick).map(g=>g.key+d.nameSeparator+((g.reName||{})[g.default]||g.default));return s={[d.key]:d.arrayParam?p:p.join(d.separator)},p.length===0&&d.keepEmptyKey===!1?{}:s}if(a.length===0)return s;let l=a[0],c=l.key,u=(a[0].reName||{})[l.default]||l.default;return t&&(u=c+(t.nameSeparator||".")+u,c=t.key||"sort"),s[c]=u,s}getFilteredData(t){return t.type==="default"?t.menus.filter(i=>i.checked===!0):t.menus.slice(0,1)}getReqFilterMap(t){let i={};return t.filter(r=>r.filter&&r.filter.default===!0).forEach(r=>{let s=r.filter,a=this.getFilteredData(s),l={};s.reName?l=s.reName(s.menus,r):l[s.key]=a.map(c=>c.value).join(","),i=V(V({},i),l)}),i}genStatistical(t,i,r){let s={};return t.forEach((a,l)=>{s[a.key||a.indexKey||l]=a.statistical==null?{}:this.getStatistical(a,l,i,r)}),s}getStatistical(t,i,r,s){let a=t.statistical,l=V({digits:2,currency:void 0},typeof a=="string"?{type:a}:a),c={value:0},u=!1;if(typeof l.type=="function")c=l.type(this.getValues(i,r),t,r,s),u=!0;else switch(l.type){case"count":c.value=r.length;break;case"distinctCount":c.value=this.getValues(i,r).filter((d,p,g)=>g.indexOf(d)===p).length;break;case"sum":c.value=this.toFixed(this.getSum(i,r),l.digits),u=!0;break;case"average":c.value=this.toFixed(this.getSum(i,r)/r.length,l.digits),u=!0;break;case"max":c.value=Math.max(...this.getValues(i,r)),u=!0;break;case"min":c.value=Math.min(...this.getValues(i,r)),u=!0;break}return l.currency===!0||l.currency==null&&u===!0?c.text=this.currencySrv.format(c.value,t.currency?.format):c.text=String(c.value),c}toFixed(t,i){return isNaN(t)||!isFinite(t)?0:parseFloat(t.toFixed(i))}getValues(t,i){return i.map(r=>r._values[t].org).map(r=>r===""||r==null?0:r)}getSum(t,i){return this.getValues(t,i).reduce((r,s)=>r+=parseFloat(String(s)),0)}};n.\u0275fac=function(i){return new(i||n)(nt(mw),nt(Hl,1),nt(Op,1),nt(Rl,1),nt(Zp),nt(Ro))},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),kT=(()=>{let n=class n{constructor(){this.xlsxSrv=ae(OT,{optional:!0})}_stGet(t,i,r,s){let a={t:"s",v:""};if(i.format)a.v=i.format(t,i,r);else{let l=t._values?t._values[s].text:ou(t,i.index,"");if(a.v=l,l!=null)switch(i.type){case"currency":a.t="n";break;case"date":`${l}`.length>0&&(a.t="d",a.z=i.dateFormat);break;case"yn":let c=i.yn;a.v=l===c.truth?c.yes:c.no;break}}return a.v=a.v??"",a}genSheet(t){let i={},r=i[t.sheetname||"Sheet1"]={},s=t.data.length,a=t.columens,l=0,c=!1,u=d=>d.exported===!1||!d.index||!(!d.buttons||d.buttons.length===0);for(let[d,p]of a.entries()){if(u(p))continue;!c&&p._width!=null&&(c=!0),++l;let g=this.xlsxSrv.numberToSchema(l);r[`${g}1`]={t:"s",v:typeof p.title=="object"?p.title.text:p.title};for(let v=0;v<s;v++)r[`${g}${v+2}`]=this._stGet(t.data[v],p,v,d)}return c&&(r["!cols"]=a.filter(d=>!u(d)).map(d=>({wpx:d._width}))),l>0&&s>0&&(r["!ref"]=`A1:${this.xlsxSrv.numberToSchema(l)}${s+1}`),i}export(t){return xo(this,null,function*(){if(this.xlsxSrv==null)return Promise.reject();let i=this.genSheet(t);return this.xlsxSrv.export({sheets:i,filename:t.filename,callback:t.callback})})}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),O3=(()=>{let n=class n{constructor(){this.stWidgetRegistry=ae(vv),this.viewContainerRef=ae(Tn)}ngOnInit(){let t=this.column.widget,i=this.stWidgetRegistry.get(t.type);this.viewContainerRef.clear();let r=this.viewContainerRef.createComponent(i),{record:s,column:a}=this,l=t.params?t.params({record:s,column:a}):{record:s};Object.keys(l).forEach(c=>{r.instance[c]=l[c]})}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["","st-widget-host",""]],inputs:{record:"record",column:"column"}});let o=n;return o})(),D3={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:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",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:"\u662F",mode:"icon"},maxMultipleButton:{text:"\u66F4\u591A",count:2}},R3=(()=>{let n=class n{constructor(){this.cdr=ae(fe),this.visible=!1,this.locale={},this.n=new O,this.handle=new O}get icon(){return this.f.icon}stopPropagation(t){t.stopPropagation()}checkboxChange(){this.n.emit(this.f.menus?.filter(t=>t.checked))}radioChange(t){this.f.menus.forEach(i=>i.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}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["st-filter"]],hostVars:6,hostBindings:function(i,r){i&2&&k("ant-table-filter-trigger-container",!0)("st__filter",!0)("ant-table-filter-trigger-container-open",r.visible)},inputs:{col:"col",locale:"locale",f:"f"},outputs:{n:"n",handle:"handle"},decls:11,vars:9,consts:[["nz-dropdown","","nzTrigger","click","nzOverlayClassName","st__filter-wrap",1,"ant-table-filter-trigger",3,"nzDropdownMenu","nzClickHide","nzVisible","nzVisibleChange","click"],["nz-icon","",3,"nzType","nzTheme"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["class","ant-table-filter-dropdown-btns"],[1,"st__filter-keyword"],["type","text","nz-input","",3,"ngModel","ngModelChange","keyup.enter"],[1,"p-sm","st__filter-number"],[1,"width-100",3,"ngModel","nzMin","nzMax","nzStep","nzPrecision","nzPlaceHolder","ngModelChange"],[1,"p-sm","st__filter-date"],["nzInline","",3,"nzMode","ngModel","nzShowNow","nzShowToday","nzDisabledDate","nzDisabledTime"],["nzInline","",3,"nzMode","ngModel","nzShowNow","nzShowToday","nzDisabledDate","nzDisabledTime","ngModelChange"],[1,"st__filter-custom"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-menu",""],["nz-menu-item",""],["nz-checkbox","",3,"ngModel"],["nz-checkbox","",3,"ngModel","ngModelChange"],["nz-radio","",3,"ngModel","ngModelChange"],[1,"ant-table-filter-dropdown-btns"],[1,"ant-table-filter-dropdown-link","confirm",3,"click"],[1,"ant-table-filter-dropdown-link","clear",3,"click"]],template:function(i,r){if(i&1&&(C(0,"span",0),A("nzVisibleChange",function(a){return r.visible=a})("click",function(a){return r.stopPropagation(a)}),R(1,"i",1),S(),C(2,"nz-dropdown-menu",null,2)(4,"div",3),_(5,MG,2,2)(6,FG,2,6)(7,LG,3,1)(8,GG,2,6)(9,jG,3,0)(10,WG,7,2,"div",4),S()()),i&2){let s=te(3),a;k("active",r.visible||r.f.default),h("nzDropdownMenu",s)("nzClickHide",!1)("nzVisible",r.visible),f(),h("nzType",r.icon.type)("nzTheme",r.icon.theme),f(4),ie(5,(a=r.f.type)==="keyword"?5:a==="number"?6:a==="date"?7:a==="custom"?8:9),f(5),ie(10,r.f.showOPArea?10:-1)}},dependencies:[Be,Ii,Kt,Rt,Fe,Bi,cs,co,yr,us,ls,Fa,ic,ps,vh],encapsulation:2,changeDetection:0});let o=n;return o})(),I3=(()=>{let n=class n{get req(){return this._req}set req(t){this._req=Pl({},!0,this.cog.req,t)}get res(){return this._res}set res(t){let i=this._res=Pl({},!0,this.cog.res,t),r=i.reName;typeof r!="function"&&(Array.isArray(r.list)||(r.list=r.list.split(".")),Array.isArray(r.total)||(r.total=r.total.split("."))),this._res=i}get page(){return this._page}set page(t){this._page=V(V({},this.cog.page),t),this.updateTotalTpl()}get multiSort(){return this._multiSort}set multiSort(t){if(typeof t=="boolean"&&!it(t)||typeof t=="object"&&Object.keys(t).length===0){this._multiSort=void 0;return}this._multiSort=V({},typeof t=="object"?t:{})}set widthMode(t){this._widthMode=V(V({},this.cog.widthMode),t)}get widthMode(){return this._widthMode}set widthConfig(t){this._widthConfig=t,this.customWidthConfig=t&&t.length>0}set resizable(t){this._resizable=typeof t=="object"?t:{disabled:!it(t)}}get count(){return this._data.length}get list(){return this._data}get noColumns(){return this.columns==null}constructor(t){this.i18nSrv=ae(Rs,{optional:!0}),this.el=ae(de).nativeElement,this.cdr=ae(fe),this.doc=ae(gi),this.exportSrv=ae(kT),this.columnSource=ae(NT),this.dataSource=ae(LT),this.delonI18n=ae(cu),this.cms=ae(Ib),this.destroy$=ae(rs),this.totalTpl="",this.inied=!1,this.customWidthConfig=!1,this._widthConfig=[],this.locale={},this._loading=!1,this._data=[],this._statistical={},this._isPagination=!0,this._allChecked=!1,this._allCheckedDisabled=!1,this._indeterminate=!1,this._headers=[],this._columns=[],this.contextmenuList=[],this.ps=10,this.pi=1,this.total=0,this.loading=null,this.loadingDelay=0,this.loadingIndicator=null,this.bordered=!1,this.scroll={x:null,y:null},this.showHeader=!0,this.expandRowByClick=!1,this.expandAccordion=!1,this.expand=null,this.responsive=!0,this.error=new O,this.change=new O,this.virtualScroll=!1,this.virtualItemSize=54,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=i=>i,this.delonI18n.change.pipe(li()).subscribe(()=>{this.locale=this.delonI18n.getData("st"),this._columns.length>0&&(this.updateTotalTpl(),this.cd())}),this.i18nSrv?.change.pipe(li(),Qe(()=>this._columns.length>0)).subscribe(()=>this.refreshColumns()),this.setCog(t.merge("st",D3))}setCog(t){let i=V({},t.multiSort);delete t.multiSort,this.cog=t,Object.assign(this,t),i.global!==!1&&(this.multiSort=i),this.columnSource.setCog(t),this.dataSource.setCog(t)}cd(){return this.cdr.detectChanges(),this}refreshData(){return this._data=[...this._data],this.cd()}renderTotal(t,i){return this.totalTpl?this.totalTpl.replace("{{total}}",t).replace("{{range[0]}}",i[0]).replace("{{range[1]}}",i[1]):""}changeEmit(t,i){let r={type:t,pi:this.pi,ps:this.ps,total:this.total};i!=null&&(r[t]=i),this.change.emit(r)}get filteredData(){return this.loadData({paginator:!1}).pipe(We(t=>t.list))}updateTotalTpl(){let{total:t}=this.page;typeof t=="string"&&t.length?this.totalTpl=t:it(t)?this.totalTpl=this.locale.total:this.totalTpl=""}setLoading(t){this.loading==null&&(this._loading=t,this.cdr.detectChanges())}loadData(t){let{pi:i,ps:r,data:s,req:a,res:l,page:c,total:u,singleSort:d,multiSort:p,rowClassName:g}=this;return this.dataSource.process(V({pi:i,ps:r,total:u,data:s,req:a,res:l,page:c,columns:this._columns,singleSort:d,multiSort:p,rowClassName:g,paginator:!0,customRequest:this.customRequest||this.cog.customRequest},t)).pipe(li(this.destroy$))}loadPageData(){return this.setLoading(!0),this.loadData().pipe(El(()=>this.setLoading(!1)),lp(t=>(this.error.emit({type:"req",error:t}),pS(()=>t))),We(t=>{let i="undefined";return typeof t.pi!==i&&(this.pi=t.pi),typeof t.ps!==i&&(this.ps=t.ps),typeof t.total!==i&&(this.total=t.total),typeof t.pageShow!==i&&(this._isPagination=t.pageShow),this._data=t.list??[],this._statistical=t.statistical,this.cdkVirtualScrollViewport!=null&&Promise.resolve().then(()=>this.cdkVirtualScrollViewport?.checkViewportSize()),this._refCheck(),this.changeEmit("loaded",t.list),this}))}clear(t=!0){return t&&this.clearStatus(),this._data=[],this.cd()}clearStatus(){return this.clearCheck().clearRadio().clearFilter().clearSort()}load(t=1,i,r){return t!==-1&&(this.pi=t),typeof i<"u"&&(this.req.params=r&&r.merge?V(V({},this.req.params),i):i),this._change("pi",r),this}reload(t,i){return this.load(-1,t,i)}reset(t,i){return this.clearStatus().load(1,t,i),this}_toTop(t){if(!(t??this.page.toTop))return;let i=this.el;i.scrollIntoView(),this.doc.documentElement.scrollTop-=this.page.toTopOffset,this.scroll&&(this.cdkVirtualScrollViewport?this.cdkVirtualScrollViewport.scrollTo({top:0,left:0}):i.querySelector(".ant-table-body, .ant-table-content")?.scrollTo(0,0))}_change(t,i){(t==="pi"||t==="ps"&&this.pi<=Math.ceil(this.total/this.ps))&&this.loadPageData().subscribe(()=>this._toTop(i?.toTop)),this.changeEmit(t)}closeOtherExpand(t){this.expandAccordion!==!1&&this._data.filter(i=>i!==t).forEach(i=>i.expand=!1)}_rowClick(t,i,r,s){let a=t.target;if(a.nodeName==="INPUT")return;let{expand:l,expandRowByClick:c}=this;if(l&&i.showExpand!==!1&&c){i.expand=!i.expand,this.closeOtherExpand(i),this.changeEmit("expand",i);return}let u={e:t,item:i,index:r};s?this.changeEmit("dblClick",u):(this._clickRowClassName(a,i,r),this.changeEmit("click",u))}_clickRowClassName(t,i,r){let s=this.clickRowClassName;if(s==null)return;let a=V({exclusive:!1},typeof s=="string"?{fn:()=>s}:s),l=a.fn(i,r),c=t.closest("tr");a.exclusive&&c.parentElement.querySelectorAll("tr").forEach(u=>u.classList.remove(l)),c.classList.contains(l)?c.classList.remove(l):c.classList.add(l)}_expandChange(t,i){t.expand=i,this.closeOtherExpand(t),this.changeEmit("expand",t)}_stopPropagation(t){t.stopPropagation()}_refColAndData(){return this._columns.forEach(t=>{this._data.forEach((i,r)=>{let s=i._values;if(t.type==="no"){let a=`${this.dataSource.getNoIndex(i,t,r)}`;s[t.__point]={text:a,_text:a,org:r,safeType:"text"}}s[t.__point].props=this.dataSource.getCell(t,i,r)})}),this.refreshData()}addRow(t,i){return Array.isArray(t)||(t=[t]),this._data.splice(i?.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 r=this._data;for(var i=r.length;i--;)t.indexOf(r[i])!==-1&&r.splice(i,1)}return this._refCheck()._refColAndData()}setRow(t,i,r){return r=V({refreshSchema:!1,emitReload:!1},r),typeof t!="number"&&(t=this._data.indexOf(t)),this._data[t]=Pl(this._data[t],!1,i),this.optimizeData(),r.refreshSchema?(this.resetColumns({emitReload:r.emitReload}),this):this.refreshData()}sort(t,i,r){this.multiSort?(t._sort.default=r,t._sort.tick=this.dataSource.nextSortTick):this._columns.forEach((s,a)=>s._sort.default=a===i?r:null),this.cdr.detectChanges(),this.loadPageData().subscribe(()=>{let s={value:r,map:this.dataSource.getReqSortMap(this.singleSort,this.multiSort,this._columns),column:t};this.changeEmit("sort",s)})}clearSort(){return this._columns.forEach(t=>t._sort.default=null),this}_handleFilter(t,i){i||this.columnSource.cleanFilter(t),this.pi=1,this.columnSource.updateDefault(t.filter),this.loadPageData().subscribe(()=>this.changeEmit("filter",t))}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}clearCheck(){return this.checkAll(!1)}_refCheck(){let t=this._data.filter(s=>!s.disabled),i=t.filter(s=>s.checked===!0);this._allChecked=i.length>0&&i.length===t.length;let r=t.every(s=>!s.checked);return this._indeterminate=!this._allChecked&&!r,this._allCheckedDisabled=this._data.length===this._data.filter(s=>s.disabled).length,this.cd()}checkAll(t){return t=typeof t>"u"?this._allChecked:t,this._data.filter(i=>!i.disabled).forEach(i=>i.checked=t),this._refCheck()._checkNotify().refreshData()}_rowSelection(t){return t.select(this._data),this._refCheck()._checkNotify()}_checkNotify(){let t=this._data.filter(i=>!i.disabled&&i.checked===!0);return this.changeEmit("checkbox",t),this}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();break}}export(t,i){let r=Array.isArray(t)?this.dataSource.optimizeData({columns:this._columns,result:t}):this._data;(t===!0?this.filteredData:Mn(r)).subscribe(s=>this.exportSrv.export(ot(V({columens:this._columns},i),{data:s})))}colResize({width:t},i){i.width=`${t}px`,this.changeEmit("resize",i)}onContextmenu(t){if(!this.contextmenu)return;t.preventDefault(),t.stopPropagation();let i=t.target.closest("[data-col-index]");if(!i)return;let r=Number(i.dataset.colIndex),s=Number(i.closest("tr").dataset.index),a=isNaN(s),l=this.contextmenu({event:t,type:a?"head":"body",rowIndex:a?null:s,colIndex:r,data:a?null:this.list[s],column:this._columns[r]});(hS(l)?l:Mn(l)).pipe(li(this.destroy$),Qe(c=>c.length>0)).subscribe(c=>{this.contextmenuList=c.map(u=>(Array.isArray(u.children)||(u.children=[]),u)),this.cdr.detectChanges(),this.cms.create(t,this.contextmenuTpl)})}get cdkVirtualScrollViewport(){return this.orgTable?.cdkVirtualScrollViewport}_resetColumns(t){return t=V({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(),Mn(this))}resetColumns(t){return fS(this._resetColumns(t))}refreshColumns(){let t=this.columnSource.process(this.columns,{widthMode:this.widthMode,resizable:this._resizable,safeType:this.cog.safeType});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}),this}pureItem(t){if(typeof t=="number"&&(t=this._data[t]),!t)return null;let i=Jr(t);return["_values","_rowClassName"].forEach(r=>delete i[r]),i}ngAfterViewInit(){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())}};n.\u0275fac=function(i){return new(i||n)(w(In))},n.\u0275cmp=j({type:n,selectors:[["st"]],viewQuery:function(i,r){if(i&1&&(xe(UG,5),xe(KG,5)),i&2){let s;ce(s=ue())&&(r.orgTable=s.first),ce(s=ue())&&(r.contextmenuTpl=s.first)}},hostVars:14,hostBindings:function(i,r){i&2&&k("st",!0)("st__p-left",r.page.placement==="left")("st__p-center",r.page.placement==="center")("st__width-strict",r.widthMode.type==="strict")("st__row-class",r.rowClassName)("ant-table-rep",r.responsive)("ant-table-rep__hide-header-footer",r.responsiveHideHeaderFooter)},inputs:{req:"req",res:"res",page:"page",data:"data",columns:"columns",contextmenu:"contextmenu",ps:[le.HasDecoratorInputTransform,"ps","ps",t=>fn(t,10)],pi:[le.HasDecoratorInputTransform,"pi","pi",t=>fn(t,1)],total:[le.HasDecoratorInputTransform,"total","total",t=>fn(t,0)],loading:"loading",loadingDelay:[le.HasDecoratorInputTransform,"loadingDelay","loadingDelay",fn],loadingIndicator:"loadingIndicator",bordered:[le.HasDecoratorInputTransform,"bordered","bordered",it],size:"size",scroll:"scroll",singleSort:"singleSort",multiSort:"multiSort",rowClassName:"rowClassName",clickRowClassName:"clickRowClassName",widthMode:"widthMode",widthConfig:"widthConfig",resizable:"resizable",header:"header",showHeader:[le.HasDecoratorInputTransform,"showHeader","showHeader",it],footer:"footer",bodyHeader:"bodyHeader",body:"body",expandRowByClick:[le.HasDecoratorInputTransform,"expandRowByClick","expandRowByClick",it],expandAccordion:[le.HasDecoratorInputTransform,"expandAccordion","expandAccordion",it],expand:"expand",noResult:"noResult",responsive:[le.HasDecoratorInputTransform,"responsive","responsive",it],responsiveHideHeaderFooter:[le.HasDecoratorInputTransform,"responsiveHideHeaderFooter","responsiveHideHeaderFooter",it],virtualScroll:[le.HasDecoratorInputTransform,"virtualScroll","virtualScroll",it],virtualItemSize:[le.HasDecoratorInputTransform,"virtualItemSize","virtualItemSize",fn],virtualMaxBufferPx:[le.HasDecoratorInputTransform,"virtualMaxBufferPx","virtualMaxBufferPx",fn],virtualMinBufferPx:[le.HasDecoratorInputTransform,"virtualMinBufferPx","virtualMinBufferPx",fn],customRequest:"customRequest",virtualForTrackBy:"virtualForTrackBy"},outputs:{error:"error",change:"change"},exportAs:["st"],features:[Ve([LT,VT,NT,kT,Hl,Op,Rl]),fi,oe],decls:21,vars:34,consts:[["titleTpl",""],["chkAllTpl",""],[3,"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","nzPageIndexChange","nzPageSizeChange","contextmenu"],["table",""],[1,"st__body"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["bodyTpl",""],["nz-virtual-scroll",""],["totalTpl",""],["contextmenuTpl","nzDropdownMenu"],["nz-menu","",1,"st__contextmenu"],[3,"innerHTML"],["class","st__head-optional",3,"innerHTML"],["class","st__head-tip","nz-tooltip","","nz-icon","","nzType","question-circle",3,"nzTooltipTitle"],[1,"st__head-optional",3,"innerHTML"],["nz-tooltip","","nz-icon","","nzType","question-circle",1,"st__head-tip",3,"nzTooltipTitle"],["nz-checkbox","",1,"st__checkall",3,"nzDisabled","ngModel","nzIndeterminate","ngModelChange"],["nzWidth","50px",3,"rowSpan"],["nz-resizable","",3,"colSpan","rowSpan","nzWidth","nzLeft","nzRight","ngClass","nzShowSort","nzSortOrder","nzCustomFilter","st__has-filter","nzDisabled","nzMaxWidth","nzMinWidth","nzBounds","nzPreview","nzSortOrderChange","nzResizeEnd",4,"let"],["nz-resizable","",3,"colSpan","rowSpan","nzWidth","nzLeft","nzRight","ngClass","nzShowSort","nzSortOrder","nzCustomFilter","nzDisabled","nzMaxWidth","nzMinWidth","nzBounds","nzPreview","nzSortOrderChange","nzResizeEnd"],["nzDirection","right"],["nz-th-extra","",3,"col","f","locale"],[1,"ant-table-selection"],["class","ant-table-selection-extra"],["selectionMenu","nzDropdownMenu"],["nz-menu","",1,"ant-table-selection-menu"],[1,"ant-table-selection-extra"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down","st__checkall-selection",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["nz-menu-item","",3,"innerHTML","click"],["nz-menu-item","",3,"innerHTML"],["nz-th-extra","",3,"col","f","locale","n","handle"],["nz-resizable","",3,"colSpan","rowSpan","nzWidth","nzLeft","nzRight","ngClass","nzShowSort","nzSortOrder","nzCustomFilter","st__has-filter","nzDisabled","nzMaxWidth","nzMinWidth","nzBounds","nzPreview"],[3,"ngClass","click","dblclick"],["nzWidth","50px",3,"nzShowExpand","nzExpand"],[3,"nzExpand"],["nzWidth","50px",3,"nzShowExpand","nzExpand","nzExpandChange","click"],[3,"nzLeft","nzRight","ngClass"],["class","ant-table-rep__title"],[3,"data","i","index","c","cIdx","n"],[1,"ant-table-rep__title"],["nz-submenu","",3,"nzTitle"]],template:function(i,r){if(i&1&&(_(0,QG,3,3,"ng-template",null,0,_e)(2,XG,1,5,"ng-template",null,1,_e),C(4,"nz-table",2,3),A("nzPageIndexChange",function(a){return r.pi=a})("nzPageIndexChange",function(){return r._change("pi")})("nzPageSizeChange",function(a){return r.ps=a})("nzPageSizeChange",function(){return r._change("ps")})("contextmenu",function(a){return r.onContextmenu(a)}),_(6,yH,3,0,"thead"),C(7,"tbody",4),_(8,_H,1,4,null,5)(9,zH,6,9,"ng-template",null,6,_e)(11,RH,1,0,null,7)(12,MH,2,0)(13,AH,1,4,null,5),S(),_(14,NH,1,1,"ng-template",null,8,_e),S(),C(16,"nz-dropdown-menu",null,9)(18,"ul",10),Cn(19,GH,2,1,null,null,yn),S()()),i&2){let s=te(15);f(4),k("st__no-column",r.noColumns),h("nzData",r._data)("nzPageIndex",r.pi)("nzPageSize",r.ps)("nzTotal",r.total)("nzShowPagination",r._isPagination)("nzFrontPagination",!1)("nzBordered",r.bordered)("nzSize",r.size)("nzLoading",r.noColumns||r._loading)("nzLoadingDelay",r.loadingDelay)("nzLoadingIndicator",r.loadingIndicator)("nzTitle",r.header)("nzFooter",r.footer)("nzScroll",r.scroll)("nzVirtualItemSize",r.virtualItemSize)("nzVirtualMaxBufferPx",r.virtualMaxBufferPx)("nzVirtualMinBufferPx",r.virtualMinBufferPx)("nzVirtualForTrackBy",r.virtualForTrackBy)("nzNoResult",r.noResult)("nzPageSizeOptions",r.page.pageSizes)("nzShowQuickJumper",r.page.showQuickJumper)("nzShowSizeChanger",r.page.showSize)("nzPaginationPosition",r.page.position)("nzPaginationType",r.page.type)("nzItemRender",r.page.itemRender)("nzSimple",r.page.simple)("nzShowTotal",s)("nzWidthConfig",r._widthConfig),f(2),ie(6,r.showHeader?6:-1),f(2),ie(8,r._loading?-1:8),f(3),ie(11,r.virtualScroll?11:12),f(2),ie(13,r._loading?-1:13),f(6),_n(r.contextmenuList)}},dependencies:()=>[St,Be,Kt,Rt,DT,ev,uh,tT,Xm,Qm,rT,tv,nv,Jm,Ym,oT,Zm,Fe,Bi,cs,co,Jp,yr,us,Si,MT,FT,R3,P3],encapsulation:2,changeDetection:0});let o=n;return o})(),P3=(()=>{let n=class n{constructor(){this.stComp=ae(I3,{host:!0}),this.router=ae(mi),this.modalHelper=ae(fw),this.drawerHelper=ae(gw),this.n=new O}get routerState(){let{pi:t,ps:i,total:r}=this.stComp;return{pi:t,ps:i,total:r}}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 i=this.c.click(this.i,this.stComp);return typeof i=="string"&&this.router.navigateByUrl(i,{state:this.routerState}),!1}_stopPropagation(t){t.preventDefault(),t.stopPropagation()}_btn(t,i){i?.stopPropagation();let r=this.stComp.cog,s=this.i;if(t.type==="modal"||t.type==="static"){r.modal.pureRecoard===!0&&(s=this.stComp.pureItem(s));let a=t.modal,l={[a.paramsName]:s};this.modalHelper[t.type==="modal"?"create":"createStatic"](a.component,V(V({},l),a.params&&a.params(s)),Pl({},!0,r.modal,a)).pipe(Qe(c=>typeof c<"u")).subscribe(c=>this.btnCallback(s,t,c));return}else if(t.type==="drawer"){r.drawer.pureRecoard===!0&&(s=this.stComp.pureItem(s));let a=t.drawer,l={[a.paramsName]:s};this.drawerHelper.create(a.title,a.component,V(V({},l),a.params&&a.params(s)),Pl({},!0,r.drawer,a)).pipe(Qe(c=>typeof c<"u")).subscribe(c=>this.btnCallback(s,t,c));return}else if(t.type==="link"){let a=this.btnCallback(s,t);typeof a=="string"&&this.router.navigateByUrl(a,{state:this.routerState});return}this.btnCallback(s,t)}btnCallback(t,i,r){if(i.click)if(typeof i.click=="string")switch(i.click){case"load":this.stComp.load();break;case"reload":this.stComp.reload();break}else return i.click(t,r,this.stComp)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,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",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-tooltip","",3,"nzTooltipTitle","d-block","width-100"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-popconfirm","","class","st__btn-text",3,"nzPopconfirmTitle","nzIcon","nzCondition","nzCancelText","nzOkText","nzOkType","ngClass"],["nz-popconfirm","",1,"st__btn-text",3,"nzPopconfirmTitle","nzIcon","nzCondition","nzCancelText","nzOkText","nzOkType","ngClass","nzOnConfirm","click"],[1,"st__btn-text",3,"ngClass","click"],[3,"innerHTML","ngClass"],["nz-icon","",3,"nzIconfont"],["nz-icon","",3,"nzType","nzTheme","nzSpin","nzTwotoneColor"],["nz-checkbox","",3,"nzDisabled","ngModel","ngModelChange"],["nz-radio","",3,"nzDisabled","ngModel","ngModelChange"],[3,"innerHTML","click"],[3,"nzColor","nz-tooltip"],[3,"innerHTML"],[3,"nzStatus","nzText","nz-tooltip"],[3,"value","options"],["st-widget-host","",3,"record","column"],[3,"innerText"],["nzType","vertical"],["nz-dropdown","","nzOverlayClassName","st__btn-sub",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["btnMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-divider",""],["nz-menu-item",""]],template:function(i,r){i&1&&_(0,WH,2,1,"ng-template",null,0,_e)(2,QH,2,1,"ng-template",null,1,_e)(4,t3,2,5,"ng-template",null,2,_e)(6,r3,1,6,null,3)(7,z3,10,1),i&2&&(f(6),ie(6,r.c.__render?6:7))},dependencies:[St,Be,Kt,Rt,Hm,bT,Fe,_u,Bi,pv,cs,co,Ob,yr,Rb,us,ls,bu,Si,O3],encapsulation:2,changeDetection:0});let o=n;return o})();var Ch=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Zn,nn,su,RT,bb,rc,nc,Ge,Up,$i,oc,Lr,ec,Jl,Xp,Vs,ji,AT,Gs,Hs]});let o=n;return o})();function ome(...o){return ba([{provide:wa,multi:!0,useValue:()=>{let n=ae(vv);o.forEach(e=>n.register(e.KEY,e.type))}}])}var Aa=(()=>{let n=class n{getGutter(){let t=[null,null],i=this.nzGutter||0;return(Array.isArray(i)?i:[i,null]).forEach((s,a)=>{typeof s=="object"&&s!==null?(t[a]=null,Object.keys(xa).map(l=>{let c=l;this.mediaMatcher.matchMedia(xa[c]).matches&&s[c]&&(t[a]=s[c])})):t[a]=Number(s)||null}),t}setGutterStyle(){let[t,i]=this.getGutter();this.actualGutter$.next([t,i]);let r=(s,a)=>{let l=this.elementRef.nativeElement;a!==null&&this.renderer.setStyle(l,s,`-${a/2}px`)};r("margin-left",t),r("margin-right",t),r("margin-top",i),r("margin-bottom",i)}constructor(t,i,r,s,a,l,c){this.elementRef=t,this.renderer=i,this.mediaMatcher=r,this.ngZone=s,this.platform=a,this.breakpointService=l,this.directionality=c,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new tn(1),this.dir="ltr",this.destroy$=new J}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t}),this.setGutterStyle()}ngOnChanges(t){t.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(xa).pipe(F(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(de),w(He),w(yp),w($e),w(gn),w(Ip),w(Me,8))},n.\u0275dir=Se({type:n,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(i,r){i&2&&k("ant-row-top",r.nzAlign==="top")("ant-row-middle",r.nzAlign==="middle")("ant-row-bottom",r.nzAlign==="bottom")("ant-row-start",r.nzJustify==="start")("ant-row-end",r.nzJustify==="end")("ant-row-center",r.nzJustify==="center")("ant-row-space-around",r.nzJustify==="space-around")("ant-row-space-between",r.nzJustify==="space-between")("ant-row-space-evenly",r.nzJustify==="space-evenly")("ant-row-rtl",r.dir==="rtl")},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],standalone:!0,features:[oe]});let o=n;return o})(),sc=(()=>{let n=class n{setHostClassMap(){let t=V({"ant-col":!0,[`ant-col-${this.nzSpan}`]:ht(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:ht(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:ht(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:ht(this.nzPull),[`ant-col-push-${this.nzPush}`]:ht(this.nzPush),"ant-col-rtl":this.dir==="rtl"},this.generateClass());for(let i in this.classMap)this.classMap.hasOwnProperty(i)&&this.renderer.removeClass(this.elementRef.nativeElement,i);this.classMap=V({},t);for(let i in this.classMap)this.classMap.hasOwnProperty(i)&&this.classMap[i]&&this.renderer.addClass(this.elementRef.nativeElement,i)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(t){return typeof t=="number"?`${t} ${t} auto`:typeof t=="string"&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?`0 0 ${t}`:t}generateClass(){let t=["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],i={};return t.forEach(r=>{let s=r.replace("nz","").toLowerCase();if(ht(this[r]))if(typeof this[r]=="number"||typeof this[r]=="string")i[`ant-col-${s}-${this[r]}`]=!0;else{let a=this[r];["span","pull","push","offset","order"].forEach(c=>{let u=c==="span"?"-":`-${c}-`;i[`ant-col-${s}${u}${a[c]}`]=a&&ht(a[c])})}}),i}constructor(t,i,r,s){this.elementRef=t,this.nzRowDirective=i,this.renderer=r,this.directionality=s,this.classMap={},this.destroy$=new J,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(t){this.setHostClassMap();let{nzFlex:i}=t;i&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe(F(this.destroy$)).subscribe(([t,i])=>{let r=(s,a)=>{let l=this.elementRef.nativeElement;a!==null&&this.renderer.setStyle(l,s,`${a/2}px`)};r("padding-left",t),r("padding-right",t),r("padding-top",i),r("padding-bottom",i)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(de),w(Aa,9),w(He),w(Me,8))},n.\u0275dir=Se({type:n,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(i,r){i&2&&Re("flex",r.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],standalone:!0,features:[oe]});let o=n;return o})(),$s=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();var yv=["*"];function F3(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.innerTip)}}var A3=o=>[o],N3=o=>({$implicit:o});function L3(o,n){if(o&1&&(C(0,"div",4)(1,"div",5),_(2,F3,2,1,"ng-container",6),S()()),o&2){let e=m();h("@helpMotion",void 0),f(),h("ngClass",yt(4,A3,"ant-form-item-explain-"+e.status)),f(),h("nzStringTemplateOutlet",e.innerTip)("nzStringTemplateOutletContext",yt(6,N3,e.validateControl))}}function k3(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.nzExtra)}}function V3(o,n){if(o&1&&(C(0,"div",7),_(1,k3,2,1,"ng-container",8),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.nzExtra)}}function G3(o,n){if(o&1&&(H(0),R(1,"span",3),B()),o&2){let e=n.$implicit,t=m(2);f(),h("nzType",e)("nzTheme",t.tooltipIcon.theme)}}function H3(o,n){if(o&1&&(C(0,"span",1),_(1,G3,2,2,"ng-container",2),S()),o&2){let e=m();h("nzTooltipTitle",e.nzTooltipTitle),f(),h("nzStringTemplateOutlet",e.tooltipIcon.type)}}var Na=(()=>{let n=class n{setWithHelpViaTips(t){this.withHelpClass=t,this.cdr.markForCheck()}setStatus(t){this.status=t,this.cdr.markForCheck()}setHasFeedback(t){this.hasFeedback=t,this.cdr.markForCheck()}constructor(t){this.cdr=t,this.status="",this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new J}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(fe))},n.\u0275cmp=j({type:n,selectors:[["nz-form-item"]],hostAttrs:[1,"ant-form-item"],hostVars:12,hostBindings:function(i,r){i&2&&k("ant-form-item-has-success",r.status==="success")("ant-form-item-has-warning",r.status==="warning")("ant-form-item-has-error",r.status==="error")("ant-form-item-is-validating",r.status==="validating")("ant-form-item-has-feedback",r.hasFeedback&&r.status)("ant-form-item-with-help",r.withHelpClass)},exportAs:["nzFormItem"],standalone:!0,features:[K],ngContentSelectors:yv,decls:1,vars:0,template:function(i,r){i&1&&(Pe(),Ie(0))},encapsulation:2,changeDetection:0});let o=n;return o})(),B3="form",Cv={type:"question-circle",theme:"outline"},_h=(()=>{let n=class n{getInputObservable(t){return this.inputChanges$.pipe(Qe(i=>t in i),We(i=>i[t]))}constructor(t,i){this.nzConfigService=t,this.directionality=i,this._nzModuleName=B3,this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Cv,this.nzLabelAlign="right",this.nzLabelWrap=!1,this.dir="ltr",this.destroy$=new J,this.inputChanges$=new J,this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(r=>{this.dir=r})}ngOnChanges(t){this.inputChanges$.next(t)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(st),w(Me,8))},n.\u0275dir=Se({type:n,selectors:[["","nz-form",""]],hostAttrs:[1,"ant-form"],hostVars:8,hostBindings:function(i,r){i&2&&k("ant-form-horizontal",r.nzLayout==="horizontal")("ant-form-vertical",r.nzLayout==="vertical")("ant-form-inline",r.nzLayout==="inline")("ant-form-rtl",r.dir==="rtl")},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:"nzLabelWrap"},exportAs:["nzForm"],standalone:!0,features:[oe]});let o=n;return N([De(),W()],o.prototype,"nzNoColon",void 0),N([De()],o.prototype,"nzAutoTips",void 0),N([W()],o.prototype,"nzDisableAutoTips",void 0),N([De()],o.prototype,"nzTooltipIcon",void 0),N([De(),W()],o.prototype,"nzLabelWrap",void 0),o})(),_v=(()=>{let n=class n{get disableAutoTips(){return this.nzDisableAutoTips!=="default"?os(this.nzDisableAutoTips):this.nzFormDirective?.nzDisableAutoTips}set nzHasFeedback(t){this._hasFeedback=os(t),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this._hasFeedback}),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(t){t instanceof Ms||t instanceof Rt?(this.validateControl=t,this.validateString=null,this.watchControl()):t instanceof yu?(this.validateControl=t.control,this.validateString=null,this.watchControl()):(this.validateString=t,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe(Ot(null),F(this.destroyed$)).subscribe(()=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.innerTip=this.getInnerTip(this.status),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this.nzHasFeedback}),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(t){let i;return t==="warning"||this.validateControlStatus("INVALID","warning")?i="warning":t==="error"||this.validateControlStatus("INVALID")?i="error":t==="validating"||t==="pending"||this.validateControlStatus("PENDING")?i="validating":t==="success"||this.validateControlStatus("VALID")?i="success":i="",i}validateControlStatus(t,i){if(this.validateControl){let{dirty:r,touched:s,status:a}=this.validateControl;return(!!r||!!s)&&(i?this.validateControl.hasError(i):a===t)}else return!1}getInnerTip(t){switch(t){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){if(this.validateControl){let t=this.validateControl.errors||{},i="";for(let r in t)if(t.hasOwnProperty(r)&&(i=t[r]?.[this.localeId]??this.nzAutoTips?.[this.localeId]?.[r]??this.nzAutoTips.default?.[r]??this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[r]??this.nzFormDirective?.nzAutoTips.default?.[r]),i)break;this.autoErrorTip=i}}subscribeAutoTips(t){t?.pipe(F(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}constructor(t,i,r,s,a){this.nzFormItemComponent=t,this.cdr=i,this.nzFormDirective=s,this.nzFormStatusService=a,this._hasFeedback=!1,this.validateChanges=lr.EMPTY,this.validateString=null,this.destroyed$=new J,this.status="",this.validateControl=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",this.subscribeAutoTips(r.localeChange.pipe(CS(l=>this.localeId=l.locale))),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips")),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe(Qe(()=>this.nzDisableAutoTips==="default")))}ngOnChanges(t){let{nzDisableAutoTips:i,nzAutoTips:r,nzSuccessTip:s,nzWarningTip:a,nzErrorTip:l,nzValidatingTip:c}=t;i||r?(this.updateAutoErrorTip(),this.setStatus()):(s||a||l||c)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.defaultValidateControl instanceof Dm?this.nzValidateStatus=this.defaultValidateControl.control:this.nzValidateStatus=this.defaultValidateControl)}};n.\u0275fac=function(i){return new(i||n)(w(Na,9),w(fe),w(Di),w(_h,8),w(cn))},n.\u0275cmp=j({type:n,selectors:[["nz-form-control"]],contentQueries:function(i,r,s){if(i&1&&Ft(s,Ri,5),i&2){let a;ce(a=ue())&&(r.defaultValidateControl=a.first)}},hostAttrs:[1,"ant-form-item-control"],inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],standalone:!0,features:[Ve([cn]),oe,K],ngContentSelectors:yv,decls:5,vars:2,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(i,r){i&1&&(Pe(),C(0,"div",0)(1,"div",1),Ie(2),S()(),_(3,L3,3,8,"div",2)(4,V3,2,1,"div",3)),i&2&&(f(3),h("ngIf",r.innerTip),f(),h("ngIf",r.nzExtra))},dependencies:[St,Ye,Ue,we],encapsulation:2,data:{animation:[jl]},changeDetection:0});let o=n;return o})();function HT(o){let n=typeof o=="string"?{type:o}:o;return V(V({},Cv),n)}var $3=(()=>{let n=class n{set nzNoColon(t){this.noColon=os(t)}get nzNoColon(){return this.noColon!=="default"?this.noColon:this.nzFormDirective?.nzNoColon}set nzTooltipIcon(t){this._tooltipIcon=HT(t)}get tooltipIcon(){return this._tooltipIcon!=="default"?this._tooltipIcon:HT(this.nzFormDirective?.nzTooltipIcon||Cv)}set nzLabelAlign(t){this.labelAlign=t}get nzLabelAlign(){return this.labelAlign!=="default"?this.labelAlign:this.nzFormDirective?.nzLabelAlign||"right"}set nzLabelWrap(t){this.labelWrap=os(t)}get nzLabelWrap(){return this.labelWrap!=="default"?this.labelWrap:this.nzFormDirective?.nzLabelWrap}constructor(t,i){this.cdr=t,this.nzFormDirective=i,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.labelAlign="default",this.labelWrap="default",this.destroy$=new J,this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe(Qe(()=>this.noColon==="default"),F(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe(Qe(()=>this._tooltipIcon==="default"),F(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelAlign").pipe(Qe(()=>this.labelAlign==="default"),F(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelWrap").pipe(Qe(()=>this.labelWrap==="default"),F(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(_h,12))},n.\u0275cmp=j({type:n,selectors:[["nz-form-label"]],hostAttrs:[1,"ant-form-item-label"],hostVars:4,hostBindings:function(i,r){i&2&&k("ant-form-item-label-left",r.nzLabelAlign==="left")("ant-form-item-label-wrap",r.nzLabelWrap)},inputs:{nzFor:"nzFor",nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:"nzLabelWrap"},exportAs:["nzFormLabel"],standalone:!0,features:[K],ngContentSelectors:yv,decls:3,vars:6,consts:[["class","ant-form-item-tooltip","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(i,r){i&1&&(Pe(),C(0,"label"),Ie(1),_(2,H3,2,2,"span",0),S()),i&2&&(k("ant-form-item-no-colon",r.nzNoColon)("ant-form-item-required",r.nzRequired),ze("for",r.nzFor),f(2),h("ngIf",r.nzTooltipTitle))},dependencies:[we,Ye,Ue,Si,Ge,Fe],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzRequired",void 0),o})();var ac=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[$3,_v,$s]});let o=n;return o})();var j3=["switchElement"];function W3(o,n){o&1&&R(0,"span",8)}function U3(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.nzCheckedChildren)}}function K3(o,n){if(o&1&&(H(0),_(1,U3,2,1,"ng-container",9),B()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.nzCheckedChildren)}}function q3(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.nzUnCheckedChildren)}}function Y3(o,n){if(o&1&&_(0,q3,2,1,"ng-container",9),o&2){let e=m();h("nzStringTemplateOutlet",e.nzUnCheckedChildren)}}var Q3="switch",wv=(()=>{let n=class n{updateValue(t){this.isChecked!==t&&(this.isChecked=t,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(t,i,r,s,a,l){this.nzConfigService=t,this.host=i,this.ngZone=r,this.cdr=s,this.focusMonitor=a,this.directionality=l,this._nzModuleName=Q3,this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new J,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{Ke(this.host.nativeElement,"click").pipe(F(this.destroy$)).subscribe(t=>{t.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),Ke(this.switchElement.nativeElement,"keydown").pipe(F(this.destroy$)).subscribe(t=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;let{keyCode:i}=t;i!==37&&i!==39&&i!==32&&i!==13||(t.preventDefault(),this.ngZone.run(()=>{i===37?this.updateValue(!1):i===39?this.updateValue(!0):(i===32||i===13)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe(F(this.destroy$)).subscribe(t=>{t||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(t){this.isChecked=t,this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}};n.\u0275fac=function(i){return new(i||n)(w(st),w(de),w($e),w(fe),w(Oi),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-switch"]],viewQuery:function(i,r){if(i&1&&xe(j3,7),i&2){let s;ce(s=ue())&&(r.switchElement=s.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[Ve([{provide:zn,useExisting:pn(()=>n),multi:!0}]),K],decls:9,vars:16,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(i,r){if(i&1&&(C(0,"button",0,1)(2,"span",2),_(3,W3,1,0,"span",3),S(),C(4,"span",4),_(5,K3,2,1,"ng-container",5)(6,Y3,1,1,"ng-template",null,6,_e),S(),R(8,"div",7),S()),i&2){let s=te(7);k("ant-switch-checked",r.isChecked)("ant-switch-loading",r.nzLoading)("ant-switch-disabled",r.nzDisabled)("ant-switch-small",r.nzSize==="small")("ant-switch-rtl",r.dir==="rtl"),h("disabled",r.nzDisabled)("nzWaveExtraNode",!0),ze("id",r.nzId),f(3),h("ngIf",r.nzLoading),f(2),h("ngIf",r.isChecked)("ngIfElse",s)}},dependencies:[lw,hr,Ge,Fe,we,Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzLoading",void 0),N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzControl",void 0),N([De()],o.prototype,"nzSize",void 0),o})(),lc=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[wv]});let o=n;return o})();var xz=cS(nC(),1),zz=cS(_z(),1);var bc=class o{get treeService(){return this.service||this.parentNode&&this.parentNode.treeService}constructor(n,e=null,t=null){if(this._title="",this.level=0,this.parentNode=null,this._icon="",this._children=[],this._isLeaf=!1,this._isChecked=!1,this._isSelectable=!1,this._isDisabled=!1,this._isDisableCheckbox=!1,this._isExpanded=!1,this._isHalfChecked=!1,this._isSelected=!1,this._isLoading=!1,this.canHide=!1,this.isMatched=!1,this.service=null,n instanceof o)return n;this.service=t||null,this.origin=n,this.key=n.key,this.parentNode=e,this._title=n.title||"---",this._icon=n.icon||"",this._isLeaf=n.isLeaf||!1,this._children=[],this._isChecked=n.checked||!1,this._isSelectable=n.disabled||n.selectable!==!1,this._isDisabled=n.disabled||!1,this._isDisableCheckbox=n.disableCheckbox||!1,this._isExpanded=n.isLeaf?!1:n.expanded||!1,this._isHalfChecked=!1,this._isSelected=!n.disabled&&n.selected||!1,this._isLoading=!1,this.isMatched=!1,e?this.level=e.level+1:this.level=0,typeof n.children<"u"&&n.children!==null&&n.children.forEach(i=>{let r=this.treeService;r&&!r.isCheckStrictly&&n.checked&&!n.disabled&&!i.disabled&&!i.disableCheckbox&&(i.checked=n.checked),this._children.push(new o(i,this))})}get title(){return this._title}set title(n){this._title=n,this.update()}get icon(){return this._icon}set icon(n){this._icon=n,this.update()}get children(){return this._children}set children(n){this._children=n,this.update()}get isLeaf(){return this._isLeaf}set isLeaf(n){this._isLeaf=n,this.update()}get isChecked(){return this._isChecked}set isChecked(n){this._isChecked=n,this.origin.checked=n,this.afterValueChange("isChecked")}get isHalfChecked(){return this._isHalfChecked}set isHalfChecked(n){this._isHalfChecked=n,this.afterValueChange("isHalfChecked")}get isSelectable(){return this._isSelectable}set isSelectable(n){this._isSelectable=n,this.update()}get isDisabled(){return this._isDisabled}set isDisabled(n){this._isDisabled=n,this.update()}get isDisableCheckbox(){return this._isDisableCheckbox}set isDisableCheckbox(n){this._isDisableCheckbox=n,this.update()}get isExpanded(){return this._isExpanded}set isExpanded(n){this._isExpanded=n,this.origin.expanded=n,this.afterValueChange("isExpanded"),this.afterValueChange("reRender")}get isSelected(){return this._isSelected}set isSelected(n){this._isSelected=n,this.origin.selected=n,this.afterValueChange("isSelected")}get isLoading(){return this._isLoading}set isLoading(n){this._isLoading=n,this.update()}setSyncChecked(n=!1,e=!1){this.setChecked(n,e),this.treeService&&!this.treeService.isCheckStrictly&&this.treeService.conduct(this)}setChecked(n=!1,e=!1){this.origin.checked=n,this.isChecked=n,this.isHalfChecked=e}setExpanded(n){this._isExpanded=n,this.origin.expanded=n,this.afterValueChange("isExpanded")}getParentNode(){return this.parentNode}getChildren(){return this.children}addChildren(n,e=-1){this.isLeaf||(n.forEach(t=>{let i=s=>{s.getChildren().forEach(a=>{a.level=a.getParentNode().level+1,a.origin.level=a.level,i(a)})},r=t;r instanceof o?r.parentNode=this:r=new o(t,this),r.level=this.level+1,r.origin.level=r.level,i(r);try{e===-1?this.children.push(r):this.children.splice(e,0,r)}catch{}}),this.origin.children=this.getChildren().map(t=>t.origin),this.isLoading=!1),this.afterValueChange("addChildren"),this.afterValueChange("reRender")}clearChildren(){this.afterValueChange("clearChildren"),this.children=[],this.origin.children=[],this.afterValueChange("reRender")}remove(){let n=this.getParentNode();n&&(n.children=n.getChildren().filter(e=>e.key!==this.key),n.origin.children=n.origin.children.filter(e=>e.key!==this.key),this.afterValueChange("remove"),this.afterValueChange("reRender"))}afterValueChange(n){if(this.treeService)switch(n){case"isChecked":this.treeService.setCheckedNodeList(this);break;case"isHalfChecked":this.treeService.setHalfCheckedNodeList(this);break;case"isExpanded":this.treeService.setExpandedNodeList(this);break;case"isSelected":this.treeService.setNodeActive(this);break;case"clearChildren":this.treeService.afterRemove(this.getChildren());break;case"remove":this.treeService.afterRemove([this]);break;case"reRender":this.treeService.flattenTreeData(this.treeService.rootNodes,this.treeService.getExpandedNodeList().map(e=>e.key));break}this.update()}update(){this.component&&this.component.markForCheck()}};function cC(o){let{isDisabled:n,isDisableCheckbox:e}=o;return!!(n||e)}function Sz(o,n){return n.length>0&&n.indexOf(o)>-1}function u4(o,n){return`${o}-${n}`}function d4(o,n){return o??n}function uC(o=[],n=[]){let e=new Set(n===!0?[]:n),t=[];function i(r,s=null){return r.map((a,l)=>{let c=u4(s?s.pos:"0",l),u=d4(a.key,c);a.isStart=[...s?s.isStart:[],l===0],a.isEnd=[...s?s.isEnd:[],l===r.length-1];let d={parent:s,pos:c,children:[],data:a,isStart:[...s?s.isStart:[],l===0],isEnd:[...s?s.isEnd:[],l===r.length-1]};return t.push(d),n===!0||e.has(u)||a.isExpanded?d.children=i(a.children||[],d):d.children=[],d})}return i(o),t}var Tc=(()=>{let n=class n{constructor(){this.DRAG_SIDE_RANGE=.25,this.DRAG_MIN_GAP=2,this.isCheckStrictly=!1,this.isMultiple=!1,this.rootNodes=[],this.flattenNodes$=new ct([]),this.selectedNodeList=[],this.expandedNodeList=[],this.checkedNodeList=[],this.halfCheckedNodeList=[],this.matchedNodeList=[]}initTree(t){this.rootNodes=t,this.expandedNodeList=[],this.selectedNodeList=[],this.halfCheckedNodeList=[],this.checkedNodeList=[],this.matchedNodeList=[]}flattenTreeData(t,i=[]){this.flattenNodes$.next(uC(t,i).map(r=>r.data))}getSelectedNode(){return this.selectedNode}getSelectedNodeList(){return this.conductNodeState("select")}getCheckedNodeKeys(){let t=[],i=this.getCheckedNodeList(),r=s=>{s.forEach(a=>{t.push(a.key),!(a.children.length<1)&&r(a.children)})};return r(i),t}getCheckedNodeList(){return this.conductNodeState("check")}getHalfCheckedNodeList(){return this.conductNodeState("halfCheck")}getExpandedNodeList(){return this.conductNodeState("expand")}getMatchedNodeList(){return this.conductNodeState("match")}isArrayOfNzTreeNode(t){return t.every(i=>i instanceof bc)}setSelectedNode(t){this.selectedNode=t}setNodeActive(t){!this.isMultiple&&t.isSelected&&(this.selectedNodeList.forEach(i=>{t.key!==i.key&&(i.isSelected=!1)}),this.selectedNodeList=[]),this.setSelectedNodeList(t,this.isMultiple)}setSelectedNodeList(t,i=!1){let r=this.getIndexOfArray(this.selectedNodeList,t.key);i?t.isSelected&&r===-1&&this.selectedNodeList.push(t):t.isSelected&&r===-1&&(this.selectedNodeList=[t]),t.isSelected||(this.selectedNodeList=this.selectedNodeList.filter(s=>s.key!==t.key))}setHalfCheckedNodeList(t){let i=this.getIndexOfArray(this.halfCheckedNodeList,t.key);t.isHalfChecked&&i===-1?this.halfCheckedNodeList.push(t):!t.isHalfChecked&&i>-1&&(this.halfCheckedNodeList=this.halfCheckedNodeList.filter(r=>t.key!==r.key))}setCheckedNodeList(t){let i=this.getIndexOfArray(this.checkedNodeList,t.key);t.isChecked&&i===-1?this.checkedNodeList.push(t):!t.isChecked&&i>-1&&(this.checkedNodeList=this.checkedNodeList.filter(r=>t.key!==r.key))}conductNodeState(t="check"){let i=[];switch(t){case"select":i=this.selectedNodeList;break;case"expand":i=this.expandedNodeList;break;case"match":i=this.matchedNodeList;break;case"check":i=this.checkedNodeList;let r=s=>{let a=s.getParentNode();return a?this.checkedNodeList.findIndex(l=>l.key===a.key)>-1?!0:r(a):!1};this.isCheckStrictly||(i=this.checkedNodeList.filter(s=>!r(s)));break;case"halfCheck":this.isCheckStrictly||(i=this.halfCheckedNodeList);break}return i}setExpandedNodeList(t){if(t.isLeaf)return;let i=this.getIndexOfArray(this.expandedNodeList,t.key);t.isExpanded&&i===-1?this.expandedNodeList.push(t):!t.isExpanded&&i>-1&&this.expandedNodeList.splice(i,1)}setMatchedNodeList(t){let i=this.getIndexOfArray(this.matchedNodeList,t.key);t.isMatched&&i===-1?this.matchedNodeList.push(t):!t.isMatched&&i>-1&&this.matchedNodeList.splice(i,1)}refreshCheckState(t=!1){t||this.checkedNodeList.forEach(i=>{this.conduct(i,t)})}conduct(t,i=!1){let r=t.isChecked;t&&!i&&(this.conductUp(t),this.conductDown(t,r))}conductUp(t){let i=t.getParentNode();i&&(cC(i)||(i.children.every(r=>cC(r)||!r.isHalfChecked&&r.isChecked)?(i.isChecked=!0,i.isHalfChecked=!1):i.children.some(r=>r.isHalfChecked||r.isChecked)?(i.isChecked=!1,i.isHalfChecked=!0):(i.isChecked=!1,i.isHalfChecked=!1)),this.setCheckedNodeList(i),this.setHalfCheckedNodeList(i),this.conductUp(i))}conductDown(t,i){cC(t)||(t.isChecked=i,t.isHalfChecked=!1,this.setCheckedNodeList(t),this.setHalfCheckedNodeList(t),t.children.forEach(r=>{this.conductDown(r,i)}))}afterRemove(t){let i=r=>{this.selectedNodeList=this.selectedNodeList.filter(s=>s.key!==r.key),this.expandedNodeList=this.expandedNodeList.filter(s=>s.key!==r.key),this.checkedNodeList=this.checkedNodeList.filter(s=>s.key!==r.key),r.children&&r.children.forEach(s=>{i(s)})};t.forEach(r=>{i(r)}),this.refreshCheckState(this.isCheckStrictly)}refreshDragNode(t){t.children.length===0?this.conductUp(t):t.children.forEach(i=>{this.refreshDragNode(i)})}resetNodeLevel(t){let i=t.getParentNode();i?t.level=i.level+1:t.level=0;for(let r of t.children)this.resetNodeLevel(r)}calcDropPosition(t){let{clientY:i}=t,{top:r,bottom:s,height:a}=t.target.getBoundingClientRect(),l=Math.max(a*this.DRAG_SIDE_RANGE,this.DRAG_MIN_GAP);return i<=r+l?-1:i>=s-l?1:0}dropAndApply(t,i=-1){if(!t||i>1)return;let r=t.treeService,s=t.getParentNode(),a=this.selectedNode.getParentNode();switch(a?a.children=a.children.filter(l=>l.key!==this.selectedNode.key):this.rootNodes=this.rootNodes.filter(l=>l.key!==this.selectedNode.key),i){case 0:t.addChildren([this.selectedNode]),this.resetNodeLevel(t);break;case-1:case 1:let l=i===1?1:0;if(s){s.addChildren([this.selectedNode],s.children.indexOf(t)+l);let c=this.selectedNode.getParentNode();c&&this.resetNodeLevel(c)}else{let c=this.rootNodes.indexOf(t)+l;this.rootNodes.splice(c,0,this.selectedNode),this.rootNodes[c].parentNode=null,this.resetNodeLevel(this.rootNodes[c])}break}this.rootNodes.forEach(l=>{l.treeService||(l.service=r),this.refreshDragNode(l)})}formatEvent(t,i,r){let s={eventName:t,node:i,event:r};switch(t){case"dragstart":case"dragenter":case"dragover":case"dragleave":case"drop":case"dragend":Object.assign(s,{dragNode:this.getSelectedNode()});break;case"click":case"dblclick":Object.assign(s,{selectedKeys:this.selectedNodeList}),Object.assign(s,{nodes:this.selectedNodeList}),Object.assign(s,{keys:this.selectedNodeList.map(l=>l.key)});break;case"check":let a=this.getCheckedNodeList();Object.assign(s,{checkedKeys:a}),Object.assign(s,{nodes:a}),Object.assign(s,{keys:a.map(l=>l.key)});break;case"search":Object.assign(s,{matchedKeys:this.getMatchedNodeList()}),Object.assign(s,{nodes:this.getMatchedNodeList()}),Object.assign(s,{keys:this.getMatchedNodeList().map(l=>l.key)});break;case"expand":Object.assign(s,{nodes:this.expandedNodeList}),Object.assign(s,{keys:this.expandedNodeList.map(l=>l.key)});break}return s}getIndexOfArray(t,i){return t.findIndex(r=>r.key===i)}conductCheck(t,i){this.checkedNodeList=[],this.halfCheckedNodeList=[];let r=s=>{s.forEach(a=>{t===null?a.isChecked=!!a.origin.checked:Sz(a.key,t||[])?(a.isChecked=!0,a.isHalfChecked=!1):(a.isChecked=!1,a.isHalfChecked=!1),a.children.length>0&&r(a.children)})};r(this.rootNodes),this.refreshCheckState(i)}conductExpandedKeys(t=[]){let i=new Set(t===!0?[]:t);this.expandedNodeList=[];let r=s=>{s.forEach(a=>{a.setExpanded(t===!0||i.has(a.key)||a.isExpanded===!0),a.isExpanded&&this.setExpandedNodeList(a),a.children.length>0&&r(a.children)})};r(this.rootNodes)}conductSelectedKeys(t,i){this.selectedNodeList.forEach(s=>s.isSelected=!1),this.selectedNodeList=[];let r=s=>s.every(a=>{if(Sz(a.key,t)){if(a.isSelected=!0,this.setSelectedNodeList(a),!i)return!1}else a.isSelected=!1;return a.children.length>0?r(a.children):!0});r(this.rootNodes)}expandNodeAllParentBySearch(t){let i=r=>{if(r&&(r.canHide=!1,r.setExpanded(!0),this.setExpandedNodeList(r),r.getParentNode()))return i(r.getParentNode())};i(t.getParentNode())}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),wz=new hn("NzTreeHigherOrder"),nf=class{constructor(n){this.nzTreeService=n}coerceTreeNodes(n){let e=[];return this.nzTreeService.isArrayOfNzTreeNode(n)?e=n.map(t=>(t.service=this.nzTreeService,t)):e=n.map(t=>new bc(t,null,this.nzTreeService)),e}getTreeNodes(){return this.nzTreeService.rootNodes}getTreeNodeByKey(n){let e=[],t=i=>{e.push(i),i.getChildren().forEach(r=>{t(r)})};return this.getTreeNodes().forEach(i=>{t(i)}),e.find(i=>i.key===n)||null}getCheckedNodeList(){return this.nzTreeService.getCheckedNodeList()}getSelectedNodeList(){return this.nzTreeService.getSelectedNodeList()}getHalfCheckedNodeList(){return this.nzTreeService.getHalfCheckedNodeList()}getExpandedNodeList(){return this.nzTreeService.getExpandedNodeList()}getMatchedNodeList(){return this.nzTreeService.getMatchedNodeList()}};var bz=(()=>{let n=class n{constructor(t){this.c=t.merge("utilArray",{deepMapName:"deep",parentMapName:"parent",idMapName:"id",parentIdMapName:"parent_id",childrenMapName:"children",titleMapName:"title",checkedMapname:"checked",selectedMapname:"selected",expandedMapname:"expanded",disabledMapname:"disabled"})}treeToArr(t,i){let r=V({deepMapName:this.c.deepMapName,parentMapName:this.c.parentMapName,childrenMapName:this.c.childrenMapName,clearChildren:!0,cb:null},i),s=[],a=(l,c,u=0)=>{for(let d of l){d[r.deepMapName]=u,d[r.parentMapName]=c,r.cb&&r.cb(d,c,u),s.push(d);let p=d[r.childrenMapName];p!=null&&Array.isArray(p)&&p.length>0&&a(p,d,u+1),r.clearChildren&&delete d[r.childrenMapName]}};return a(t,null),s}arrToTree(t,i){if(!Array.isArray(t)||t.length===0)return[];let r=V({idMapName:this.c.idMapName,parentIdMapName:this.c.parentIdMapName,childrenMapName:this.c.childrenMapName,cb:null},i),s=[],a={},l=r.rootParentIdValue,c=t;if(!l){let u=c.map(p=>p[r.parentIdMapName]),d=u.findIndex(p=>p==null);l=d!==-1?u[d]:u.sort()[0]}for(let u of c){let d=u[r.idMapName],p=u[r.parentIdMapName];a[d]=a[d]||[],u[r.childrenMapName]=a[d],r.cb&&r.cb(u),p!==l?(a[p]=a[p]||[],a[p].push(u)):s.push(u)}return s}arrToTreeNode(t,i){let r=V({idMapName:this.c.idMapName,parentIdMapName:this.c.parentIdMapName,titleMapName:this.c.titleMapName,isLeafMapName:"isLeaf",checkedMapname:this.c.checkedMapname,selectedMapname:this.c.selectedMapname,expandedMapname:this.c.expandedMapname,disabledMapname:this.c.disabledMapname,cb:null},i),s=this.arrToTree(t,{idMapName:r.idMapName,parentIdMapName:r.parentIdMapName,childrenMapName:"children"});return this.visitTree(s,(a,l,c)=>{a.key=a[r.idMapName],a.title=a[r.titleMapName],a.checked=a[r.checkedMapname],a.selected=a[r.selectedMapname],a.expanded=a[r.expandedMapname],a.disabled=a[r.disabledMapname],a[r.isLeafMapName]==null?a.isLeaf=a.children.length===0:a.isLeaf=a[r.isLeafMapName],r.cb&&r.cb(a,l,c)}),s.map(a=>new bc(a))}visitTree(t,i,r){r=V({childrenMapName:this.c.childrenMapName},r);let s=(a,l,c)=>{for(let u of a){i(u,l,c);let d=u[r.childrenMapName];Array.isArray(d)&&d.length>0&&s(d,u,c+1)}};s(t,null,1)}findTree(t,i,r){let s;return this.visitTree(t,a=>{s===void 0&&i(a)&&(s=a)},r),s}getKeysByTreeNode(t,i){let r=V({includeHalfChecked:!0},i),s=[];return this.visitTree(t,(a,l,c)=>{(a.isChecked||r.includeHalfChecked&&a.isHalfChecked)&&s.push(r.cb?r.cb(a,l,c):r.keyMapName?a.origin[r.keyMapName]:a.key)}),s}baseFlat(t,i,r=[]){let s=-1;for(;++s<t.length;){let a=t[s];if(i>0&&Array.isArray(a))if(i>1)this.baseFlat(a,i-1,r);else{let l=-1,c=r.length;for(;++l<a.length;)r[c+l]=a[l]}else r[r.length]=a}return r}flat(t,i=1/0){return Array.isArray(t)?this.baseFlat(t,i):t}groupBy(t,i){return Array.isArray(t)?t.reduce((r,s)=>{let a=i(s);return Object.prototype.hasOwnProperty.call(r,a)?r[a].push(s):r[a]=[s],r},{}):{}}uniq(t,i){return Array.from(t.reduce((r,s)=>{let a=i?typeof i=="string"?s[i]:i(s):s;return r.has(a)||r.set(a,s),r},new Map).values())}};n.\u0275fac=function(i){return new(i||n)(nt(In))},n.\u0275prov=qe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();var f4=["target"];function g4(o,n){}function m4(o,n){o&1&&Xt(0)}function v4(o,n){o&1&&Ie(0)}function y4(o,n){if(o&1&&R(0,"i",10),o&2){let e=m(5);h("nzType",e._btn.submit_icon.type)("nzTheme",e._btn.submit_icon.theme)("nzTwotoneColor",e._btn.submit_icon.twoToneColor)("nzIconfont",e._btn.submit_icon.iconfont)}}function C4(o,n){if(o&1&&R(0,"i",10),o&2){let e=m(6);h("nzType",e._btn.reset_icon.type)("nzTheme",e._btn.reset_icon.theme)("nzTwotoneColor",e._btn.reset_icon.twoToneColor)("nzIconfont",e._btn.reset_icon.iconfont)}}function _4(o,n){if(o&1){let e=Q();C(0,"button",12),A("click",function(){I(e);let i=m(5);return P(i.reset(!0))}),_(1,C4,1,4,"i",10),Y(2),S()}if(o&2){let e=m(5);h("nzType",e._btn.reset_type)("nzSize",e._btn.render.size)("disabled",e.loading),f(),ie(1,e._btn.reset_icon?1:-1),f(),Ne(" ",e._btn.reset," ")}}function S4(o,n){if(o&1&&(C(0,"button",9),_(1,y4,1,4,"i",10),Y(2),S(),_(3,_4,3,5,"button",11)),o&2){let e=m(4);h("nzType",e._btn.submit_type)("nzSize",e._btn.render.size)("nzLoading",e.loading)("disabled",e.liveValidate&&!e.valid),f(),ie(1,e._btn.submit_icon?1:-1),f(),Ne(" ",e._btn.submit," "),f(),ie(3,e._btn.reset?3:-1)}}function w4(o,n){}function b4(o,n){if(o&1&&_(0,w4,0,0,"ng-template",13),o&2){m(4);let e=te(1);h("ngTemplateOutlet",e)}}function T4(o,n){if(o&1&&(C(0,"nz-form-item",5)(1,"div",6)(2,"div",7)(3,"div",8),_(4,S4,4,7)(5,b4,1,1),S()()()()),o&2){let e=m(3);h("ngClass",e._btn.render.class)("fixed-label",e._btn.render.spanLabelFixed),f(),h("nzSpan",e.btnGrid.span)("nzOffset",e.btnGrid.offset)("nzXs",e.btnGrid.xs)("nzSm",e.btnGrid.sm)("nzMd",e.btnGrid.md)("nzLg",e.btnGrid.lg)("nzXl",e.btnGrid.xl)("nzXXl",e.btnGrid.xxl),f(3),ie(4,e.button?4:5)}}function E4(o,n){if(o&1&&_(0,T4,6,11,"nz-form-item",4),o&2){let e=m(2);ie(0,e._btn&&e._btn.render?0:-1)}}function x4(o,n){}function z4(o,n){if(o&1&&_(0,x4,0,0,"ng-template",13),o&2){m(2);let e=te(1);h("ngTemplateOutlet",e)}}function O4(o,n){if(o&1&&_(0,E4,1,1)(1,z4,1,1),o&2){let e=m();ie(0,e.button!=="none"?0:1)}}function D4(o,n){if(o&1&&R(0,"sf-item",3),o&2){let e=m(),t=te(3);h("formProperty",e.rootProperty)("footer",t)}}var Oz=["*"];function R4(o,n){if(o&1&&R(0,"i",11),o&2){let e=m(4);h("nzTooltipTitle",e.oh.text)("nzTooltipPlacement",e.oh.placement)("nzTooltipTrigger",e.oh.trigger)("nzTooltipColor",e.oh.bgColor)("nzTooltipOverlayClassName",e.oh.overlayClassName)("nzTooltipOverlayStyle",e.oh.overlayStyle)("nzTooltipMouseEnterDelay",e.oh.mouseEnterDelay)("nzTooltipMouseLeaveDelay",e.oh.mouseLeaveDelay)("nzType",e.oh.icon)}}function I4(o,n){if(o&1&&(C(0,"span",10),Y(1),_(2,R4,1,9,"i",11),S()),o&2){let e=m(3);f(),Ne(" ",e.ui.optional," "),f(),ie(2,e.oh?2:-1)}}function P4(o,n){if(o&1&&(C(0,"label")(1,"span",8),Y(2),S(),_(3,I4,3,2,"span",9),S()),o&2){let e=m(2);k("ant-form-item-required",e.ui._required),ze("for",e.id),f(2),ye(e.t),f(),ie(3,e.ui.optional||e.oh?3:-1)}}function M4(o,n){if(o&1&&(C(0,"div",6),_(1,P4,4,5,"label",7),S()),o&2){let e=m();h("nzSpan",e.ui.spanLabel),f(),ie(1,e.t?1:-1)}}function F4(o,n){if(o&1&&(C(0,"div",12)(1,"div",13),Y(2),S()()),o&2){let e=m();h("@helpMotion",void 0),f(2),Ne(" ",e.error," ")}}function A4(o,n){if(o&1&&R(0,"div",14),o&2){let e=m();h("innerHTML",e.ui._description,Dt)}}function N4(o,n){if(o&1&&R(0,"i",9),o&2){let e=m(2);h("nzTooltipTitle",e.oh.text)("nzTooltipPlacement",e.oh.placement)("nzTooltipTrigger",e.oh.trigger)("nzTooltipOverlayClassName",e.oh.overlayClassName)("nzTooltipOverlayStyle",e.oh.overlayStyle)("nzTooltipMouseEnterDelay",e.oh.mouseEnterDelay)("nzTooltipMouseLeaveDelay",e.oh.mouseLeaveDelay)("nzType",e.oh.icon)}}function L4(o,n){if(o&1){let e=Q();C(0,"div",7)(1,"label"),Y(2),C(3,"span",8),Y(4),_(5,N4,1,8,"i",9),S()(),C(6,"div",10)(7,"button",11),A("click",function(){I(e);let i=m();return P(i.addItem())}),S()()()}if(o&2){let e=m();h("nzSpan",e.ui.spanLabel),f(),k("ant-form-item-required",e.ui.required),f(),Ne(" ",e.schema.title," "),f(2),Ne(" ",e.ui.optional," "),f(),ie(5,e.oh?5:-1),f(2),h("nzType",e.addType)("disabled",e.addDisabled)("innerHTML",e.addTitle,Dt)}}function k4(o,n){if(o&1){let e=Q();C(0,"span",16),A("click",function(){I(e);let i=m(2).index,r=m();return P(r.removeItem(i))}),R(1,"i",17),S()}if(o&2){let e=m(3);ze("title",e.removeTitle)}}function V4(o,n){if(o&1&&(C(0,"div",13)(1,"nz-card"),R(2,"sf-item",14),_(3,k4,2,1,"span",15),S()()),o&2){let e=m(),t=e.index,i=e.$implicit,r=m();h("nzSpan",r.arraySpan),ze("data-index",t),f(2),h("formProperty",i),f(),ie(3,r.showRemove?3:-1)}}function G4(o,n){if(o&1&&(H(0),_(1,V4,4,4,"div",12),B()),o&2){let e=n.$implicit;f(),ie(1,e.visible&&!e.ui.hidden?1:-1)}}function H4(o,n){if(o&1&&(C(0,"div",18),Y(1),S()),o&2){let e=m();f(),ye(e.error)}}function B4(o,n){if(o&1&&R(0,"div",19),o&2){let e=m();h("innerHTML",e.ui._description,Dt)}}function $4(o,n){if(o&1){let e=Q();C(0,"label",3),A("ngModelChange",function(i){I(e);let r=m(2);return P(r.allChecked=i)})("ngModelChange",function(){I(e);let i=m(2);return P(i.onAllChecked())}),Y(1),S()}if(o&2){let e=m(2);h("ngModel",e.allChecked)("nzIndeterminate",e.indeterminate),f(),Ne(" ",e.ui.checkAllText||e.l.checkAllText," ")}}function j4(o,n){if(o&1&&_(0,$4,2,3,"label",2),o&2){let e=m();ie(0,e.ui.checkAll?0:-1)}}function W4(o,n){if(o&1&&R(0,"i",7),o&2){let e=m(3);h("nzTooltipTitle",e.oh.text)("nzTooltipPlacement",e.oh.placement)("nzTooltipTrigger",e.oh.trigger)("nzTooltipOverlayClassName",e.oh.overlayClassName)("nzTooltipOverlayStyle",e.oh.overlayStyle)("nzTooltipMouseEnterDelay",e.oh.mouseEnterDelay)("nzTooltipMouseLeaveDelay",e.oh.mouseLeaveDelay)("nzType",e.oh.icon)}}function U4(o,n){if(o&1){let e=Q();C(0,"label",5),A("ngModelChange",function(i){I(e);let r=m(2);return P(r._setValue(i))}),Y(1),C(2,"span",6),Y(3),_(4,W4,1,8,"i",7),S()()}if(o&2){let e=m(2);h("nzDisabled",e.disabled)("ngModel",e.value),f(),Ne(" ",e.schema.title," "),f(2),Ne(" ",e.ui.optional," "),f(),ie(4,e.oh?4:-1)}}function K4(o,n){}function q4(o,n){if(o&1){let e=Q();_(0,K4,0,0,"ng-template",8),C(1,"nz-checkbox-group",9),A("ngModelChange",function(){I(e);let i=m(3);return P(i.notifySet())}),S()}if(o&2){let e=m(3),t=te(1);h("ngTemplateOutlet",t),f(),h("ngModel",e.data)}}function Y4(o,n){}function Q4(o,n){if(o&1&&(C(0,"div",12),_(1,Y4,0,0,"ng-template",8),S()),o&2){let e=m(4),t=te(1);h("nzSpan",e.grid_span),f(),h("ngTemplateOutlet",t)}}function X4(o,n){if(o&1&&(C(0,"div",12)(1,"label",13),Y(2),S()()),o&2){let e=n.$implicit,t=m(4);h("nzSpan",t.grid_span),f(),h("nzValue",e.value)("ngModel",e.checked)("nzDisabled",e.disabled),f(),Ne(" ",e.label," ")}}function Z4(o,n){if(o&1){let e=Q();C(0,"nz-checkbox-wrapper",10),A("nzOnChange",function(i){I(e);let r=m(3);return P(r.groupInGridChange(i))}),C(1,"div",11),_(2,Q4,2,2,"div",12),Cn(3,X4,3,5,"div",12,yn),S()()}if(o&2){let e=m(3);f(2),ie(2,e.ui.checkAll?2:-1),f(),_n(e.data)}}function J4(o,n){if(o&1&&_(0,q4,2,2)(1,Z4,5,1),o&2){let e=m(2);ie(0,e.grid_span===0?0:1)}}function e5(o,n){if(o&1&&_(0,U4,5,5,"label",4)(1,J4,2,1),o&2){let e=m();ie(0,e.data.length===0?0:1)}}function t5(o,n){}var n5=(o,n,e)=>({$implicit:o,schema:n,ui:e});function i5(o,n){if(o&1){let e=Q();C(0,"nz-year-picker",1),A("ngModelChange",function(i){I(e);let r=m();return P(r.displayValue=i)})("ngModelChange",function(i){I(e);let r=m();return P(r._change(i))})("nzOnOpenChange",function(i){I(e);let r=m();return P(r._openChange(i))}),S()}if(o&2){let e=m();h("nzId",e.id)("nzDisabled",e.disabled)("nzSize",e.ui.size)("nzFormat",e.displayFormat)("ngModel",e.displayValue)("nzAllowClear",e.i.allowClear)("ngClass",e.ui.className)("nzDisabledDate",e.ui.disabledDate)("nzLocale",e.ui.locale)("nzPlaceHolder",e.ui.placeholder)("nzPopupStyle",e.ui.popupStyle)("nzDropdownClassName",e.ui.dropdownClassName)("nzRenderExtraFooter",e.ui.renderExtraFooter)("nzInputReadOnly",e.ui.inputReadOnly)("nzInline",e.ui.inline)}}function r5(o,n){if(o&1){let e=Q();C(0,"nz-month-picker",1),A("ngModelChange",function(i){I(e);let r=m();return P(r.displayValue=i)})("ngModelChange",function(i){I(e);let r=m();return P(r._change(i))})("nzOnOpenChange",function(i){I(e);let r=m();return P(r._openChange(i))}),S()}if(o&2){let e=m();h("nzId",e.id)("nzDisabled",e.disabled)("nzSize",e.ui.size)("nzFormat",e.displayFormat)("ngModel",e.displayValue)("nzAllowClear",e.i.allowClear)("ngClass",e.ui.className)("nzDisabledDate",e.ui.disabledDate)("nzLocale",e.ui.locale)("nzPlaceHolder",e.ui.placeholder)("nzPopupStyle",e.ui.popupStyle)("nzDropdownClassName",e.ui.dropdownClassName)("nzRenderExtraFooter",e.ui.renderExtraFooter)("nzInputReadOnly",e.ui.inputReadOnly)("nzInline",e.ui.inline)}}function o5(o,n){if(o&1){let e=Q();C(0,"nz-week-picker",2),A("ngModelChange",function(i){I(e);let r=m();return P(r.displayValue=i)})("ngModelChange",function(i){I(e);let r=m();return P(r._change(i))})("nzOnOpenChange",function(i){I(e);let r=m();return P(r._openChange(i))}),S()}if(o&2){let e=m();h("nzId",e.id)("nzDisabled",e.disabled)("nzSize",e.ui.size)("nzFormat",e.displayFormat)("ngModel",e.displayValue)("nzAllowClear",e.i.allowClear)("ngClass",e.ui.className)("nzDisabledDate",e.ui.disabledDate)("nzLocale",e.ui.locale)("nzPlaceHolder",e.ui.placeholder)("nzPopupStyle",e.ui.popupStyle)("nzDropdownClassName",e.ui.dropdownClassName)("nzInputReadOnly",e.ui.inputReadOnly)("nzInline",e.ui.inline)}}function s5(o,n){if(o&1){let e=Q();C(0,"nz-range-picker",3),A("ngModelChange",function(i){I(e);let r=m();return P(r.displayValue=i)})("ngModelChange",function(i){I(e);let r=m();return P(r._change(i))})("nzOnOpenChange",function(i){I(e);let r=m();return P(r._openChange(i))})("nzOnOk",function(i){I(e);let r=m();return P(r._ok(i))}),S()}if(o&2){let e=m();h("nzId",e.id)("nzDisabled",e.disabled)("nzSize",e.ui.size)("nzFormat",e.displayFormat)("ngModel",e.displayValue)("nzAllowClear",e.i.allowClear)("ngClass",e.ui.className)("nzDisabledDate",e.ui.disabledDate)("nzLocale",e.ui.locale)("nzPlaceHolder",e.ui.placeholder)("nzPopupStyle",e.ui.popupStyle)("nzDropdownClassName",e.ui.dropdownClassName)("nzDisabledTime",e.ui.disabledTime)("nzRenderExtraFooter",e.ui.renderExtraFooter)("nzRanges",e.ui.ranges)("nzShowTime",e.ui.showTime)("nzSeparator",e.ui.separator)("nzShowWeekNumber",e.ui.showWeekNumber||!1)("nzMode",e.ui.rangeMode)("nzInputReadOnly",e.ui.inputReadOnly)("nzInline",e.ui.inline)}}function a5(o,n){if(o&1){let e=Q();C(0,"nz-date-picker",4),A("ngModelChange",function(i){I(e);let r=m();return P(r.displayValue=i)})("ngModelChange",function(i){I(e);let r=m();return P(r._change(i))})("nzOnOpenChange",function(i){I(e);let r=m();return P(r._openChange(i))})("nzOnOk",function(i){I(e);let r=m();return P(r._ok(i))}),S()}if(o&2){let e=m();h("nzId",e.id)("nzDisabled",e.disabled)("nzSize",e.ui.size)("nzFormat",e.displayFormat)("ngModel",e.displayValue)("nzAllowClear",e.i.allowClear)("ngClass",e.ui.className)("nzDisabledDate",e.ui.disabledDate)("nzLocale",e.ui.locale)("nzPlaceHolder",e.ui.placeholder)("nzPopupStyle",e.ui.popupStyle)("nzDropdownClassName",e.ui.dropdownClassName)("nzDisabledTime",e.ui.disabledTime)("nzRenderExtraFooter",e.ui.renderExtraFooter)("nzShowTime",e.ui.showTime)("nzShowToday",e.i.showToday)("nzShowWeekNumber",e.ui.showWeekNumber||!1)("nzInputReadOnly",e.ui.inputReadOnly)("nzInline",e.ui.inline)}}var l5=o=>({"ant-input-number__hide-step":o});function c5(o,n){if(o&1&&(C(0,"div",4),Y(1),S()),o&2){let e=m(2);f(),ye(e.title)}}function u5(o,n){if(o&1&&(C(0,"div",5),R(1,"sf-item",6),S()),o&2){let e=m().$implicit;h("nzSpan",e.grid.span)("nzOffset",e.grid.offset)("nzXs",e.grid.xs)("nzSm",e.grid.sm)("nzMd",e.grid.md)("nzLg",e.grid.lg)("nzXl",e.grid.xl)("nzXXl",e.grid.xxl),f(),h("formProperty",e.property)("fixed-label",e.spanLabelFixed)}}function d5(o,n){if(o&1&&_(0,u5,2,10,"div",5),o&2){let e=n.$implicit;ie(0,e.property.visible&&e.show?0:-1)}}function p5(o,n){if(o&1&&(C(0,"div",3),Cn(1,d5,1,1,null,null,yn),S()),o&2){let e=m(2);h("nzGutter",e.grid.gutter),f(),_n(e.list)}}function h5(o,n){if(o&1&&R(0,"sf-item",6),o&2){let e=m().$implicit;h("formProperty",e.property)("fixed-label",e.spanLabelFixed)}}function f5(o,n){if(o&1&&_(0,h5,1,2,"sf-item",6),o&2){let e=n.$implicit;ie(0,e.property.visible&&e.show?0:-1)}}function g5(o,n){if(o&1&&Cn(0,f5,1,1,null,null,yn),o&2){let e=m(2);_n(e.list)}}function m5(o,n){if(o&1&&_(0,c5,2,1,"div",2)(1,p5,3,1,"div",3)(2,g5,2,0),o&2){let e=n.$implicit,t=m();ie(0,!e&&t.title?0:-1),f(),ie(1,t.grid?1:2)}}function v5(o,n){if(o&1&&R(0,"i",13),o&2){let e=m(3);h("nzType",e.expand?"down":"up")}}function y5(o,n){if(o&1&&R(0,"i",15),o&2){let e=m(4);h("nzTooltipTitle",e.oh.text)("nzTooltipPlacement",e.oh.placement)("nzTooltipTrigger",e.oh.trigger)("nzTooltipColor",e.oh.bgColor)("nzTooltipOverlayClassName",e.oh.overlayClassName)("nzTooltipOverlayStyle",e.oh.overlayStyle)("nzTooltipMouseEnterDelay",e.oh.mouseEnterDelay)("nzTooltipMouseLeaveDelay",e.oh.mouseLeaveDelay)("nzType",e.oh.icon)}}function C5(o,n){if(o&1&&(C(0,"span",14),Y(1),_(2,y5,1,9,"i",15),S()),o&2){let e=m(3);f(),Ne(" ",e.ui.optional," "),f(),ie(2,e.oh?2:-1)}}function _5(o,n){if(o&1){let e=Q();C(0,"div",10),A("click",function(){I(e);let i=m(2);return P(i.changeExpand())}),_(1,v5,1,1,"i",11),Y(2),_(3,C5,3,2,"span",12),S()}if(o&2){let e=m(2);k("point",e.showExpand),f(),ie(1,e.showExpand?1:-1),f(),Ne(" ",e.title," "),f(),ie(3,e.ui.optional||e.oh?3:-1)}}function S5(o,n){}var w5=()=>[],b5=()=>({$implicit:!0});function T5(o,n){if(o&1&&(C(0,"nz-card",7),_(1,_5,4,5,"ng-template",null,8,_e)(3,S5,0,0,"ng-template",9),S()),o&2){let e=te(2),t=m(),i=te(1);k("sf__object-card-fold",!t.expand),h("nzTitle",e)("nzExtra",t.ui.cardExtra)("nzSize",t.ui.cardSize||"small")("nzActions",t.ui.cardActions||ii(11,w5))("nzBodyStyle",t.ui.cardBodyStyle)("nzBordered",t.ui.cardBordered||!0)("nzBorderless",t.ui.cardBorderless||!1),f(3),h("ngTemplateOutlet",i)("ngTemplateOutletContext",ii(12,b5))}}function E5(o,n){}function x5(o,n){if(o&1&&_(0,E5,0,0,"ng-template",16),o&2){m();let e=te(1);h("ngTemplateOutlet",e)}}function z5(o,n){if(o&1&&(C(0,"label",2),R(1,"span",3),S()),o&2){let e=n.$implicit,t=m(2);h("nzValue",e.value)("nzDisabled",t.disabled||e.disabled),f(),h("innerHTML",e.label,Dt)}}function O5(o,n){if(o&1&&Cn(0,z5,2,3,"label",2,yn),o&2){let e=m();_n(e.data)}}function D5(o,n){if(o&1&&(C(0,"label",4),R(1,"span",3),S()),o&2){let e=n.$implicit,t=m(2);h("nzValue",e.value)("nzDisabled",t.disabled||e.disabled),f(),h("innerHTML",e.label,Dt)}}function R5(o,n){if(o&1&&Cn(0,D5,2,3,"label",4,yn),o&2){let e=m();_n(e.data)}}function I5(o,n){if(o&1&&R(0,"nz-option",3),o&2){let e=n.$implicit;h("nzLabel",e.label)("nzValue",e.value)("nzHide",e.hide)("nzDisabled",e.disabled)}}function P5(o,n){if(o&1&&Cn(0,I5,1,4,"nz-option",3,yn),o&2){let e=m();_n(e.data)}}function M5(o,n){if(o&1&&R(0,"nz-option",5),o&2){let e=n.$implicit;h("nzLabel",e.label)("nzValue",e.value)("nzDisabled",e.disabled)("nzHide",e.hide)}}function F5(o,n){if(o&1&&(C(0,"nz-option-group",4),Cn(1,M5,1,4,"nz-option",5,yn),S()),o&2){let e=n.$implicit;h("nzLabel",e.label),f(),_n(e.children)}}function A5(o,n){if(o&1&&Cn(0,F5,3,1,"nz-option-group",4,yn),o&2){let e=m();_n(e.data)}}function N5(o,n){if(o&1&&(C(0,"nz-option",2),R(1,"i",6),Y(2),S()),o&2){let e=m();f(2),Ne(" ",e.ui.searchLoadingText," ")}}function L5(o,n){if(o&1){let e=Q();C(0,"input",3),A("ngModelChange",function(i){I(e);let r=m();return P(r.change(i))})("keyup.enter",function(i){I(e);let r=m();return P(r.enter(i))})("focus",function(i){I(e);let r=m();return P(r.focus(i))})("blur",function(i){I(e);let r=m();return P(r.blur(i))}),S()}if(o&2){let e=m();h("disabled",e.disabled)("nzSize",e.ui.size)("nzBorderless",e.ui.borderless)("ngModel",e.value),ze("id",e.id)("disabled",e.disabled)("maxLength",e.schema.maxLength||null)("type",e.ui.type||"text")("placeholder",e.ui.placeholder)("autocomplete",e.ui.autocomplete)("autoFocus",e.ui.autofocus)}}function k5(o,n){}function V5(o,n){if(o&1&&(C(0,"nz-input-group",2),_(1,k5,0,0,"ng-template",4),S()),o&2){let e=m(),t=te(2);h("nzAddOnBefore",e.ui.addOnBefore)("nzAddOnAfter",e.ui.addOnAfter)("nzAddOnBeforeIcon",e.ui.addOnBeforeIcon)("nzAddOnAfterIcon",e.ui.addOnAfterIcon)("nzPrefix",e.ui.prefix)("nzPrefixIcon",e.ui.prefixIcon)("nzSuffix",e.ui.suffix)("nzSuffixIcon",e.ui.suffixIcon),f(),h("ngTemplateOutlet",t)}}function G5(o,n){}function H5(o,n){if(o&1&&_(0,G5,0,0,"ng-template",4),o&2){m();let e=te(2);h("ngTemplateOutlet",e)}}function B5(o,n){if(o&1&&R(0,"span",1),o&2){let e=m();h("innerHTML",e.text,Dt)}}function $5(o,n){if(o&1&&R(0,"span",2),o&2){let e=m();h("innerText",e.text)}}function j5(o,n){if(o&1){let e=Q();C(0,"textarea",3),A("ngModelChange",function(i){I(e);let r=m();return P(r.change(i))})("focus",function(i){I(e);let r=m();return P(r.focus(i))})("blur",function(i){I(e);let r=m();return P(r.blur(i))}),Y(1," "),S()}if(o&2){let e=m();h("disabled",e.disabled)("nzSize",e.ui.size)("ngModel",e.value)("nzAutosize",e.autosize)("nzBorderless",e.ui.borderless),ze("id",e.id)("disabled",e.disabled)("maxLength",e.schema.maxLength||null)("placeholder",e.ui.placeholder)}}function W5(o,n){if(o&1){let e=Q();C(0,"nz-textarea-count",2)(1,"textarea",3),A("ngModelChange",function(i){I(e);let r=m();return P(r.change(i))})("focus",function(i){I(e);let r=m();return P(r.focus(i))})("blur",function(i){I(e);let r=m();return P(r.blur(i))}),Y(2," "),S()()}if(o&2){let e=m();h("nzMaxCharacterCount",e.ui.maxCharacterCount)("nzComputeCharacterCount",e.ui.computeCharacterCount),f(),h("disabled",e.disabled)("nzSize",e.ui.size)("ngModel",e.value)("nzAutosize",e.autosize)("nzBorderless",e.ui.borderless),ze("id",e.id)("disabled",e.disabled)("maxLength",e.schema.maxLength||null)("placeholder",e.ui.placeholder)}}function U5(o,n){}function K5(o,n){if(o&1&&_(0,U5,0,0,"ng-template",4),o&2){m();let e=te(2);h("ngTemplateOutlet",e)}}var q5={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};function gC(o){return o.merge("sf",q5)}var Vo="/";function Dz(o){return o==null}function mo(o,n){return o==null?n:`${o}`!="false"}function rf(o,...n){}function Y5(o,n){let e=/^#\/definitions\/(.*)$/.exec(o);if(e&&e[1]){let t=e[1].split(Vo),i=n;for(let r of t)if(r=r.replace(/~1/g,Vo).replace(/~0/g,"~"),i.hasOwnProperty(r))i=i[r];else throw new Error(`Could not find a definition for ${o}.`);return i}throw new Error(`Could not find a definition for ${o}.`)}function mC(o,n={}){if(o.hasOwnProperty("$ref")){let t=Y5(o.$ref,n),e=o,{$ref:i}=e,r=op(e,["$ref"]);return mC(V(V({},t),r),n)}return o}function Q5(o,n){let e=(t,i)=>{X5(t,i),Object.keys(t.properties).forEach(r=>{let s=t.properties[r],a=`$${r}`;s.items&&e(s.items,i[a].$items),s.properties&&e(s,i[a])})};e(o,n)}function X5(o,n){if(!(o.hasOwnProperty("if")&&o.hasOwnProperty("then")))return null;if(!o.if.properties)throw new Error("if: does not contain 'properties'");let e=Object.keys(o.properties),t=Object.keys(o.if.properties);dC(e,t),dC(e,o.then.required),o.required=o.required.concat(o.then.required);let i=o.hasOwnProperty("else");i&&(dC(e,o.else.required),o.required=o.required.concat(o.else.required));let r={},s={};return t.forEach(a=>{let l=o.if.properties[a].enum;r[a]=l,i&&(s[a]=c=>!l.includes(c))}),o.then.required.forEach(a=>n[`$${a}`].visibleIf=r),i&&o.else.required.forEach(a=>n[`$${a}`].visibleIf=s),o}function dC(o,n){n.forEach(e=>{if(!o.includes(e))throw new Error(`if: properties does not contain '${e}'`)})}function Z5(o,n){if(!Array.isArray(n))return o;let e=u=>u.reduce((d,p)=>(d[p]=!0,d),{}),t=u=>`property [${u.join("', '")}]`,i=e(o),r=e(n),s=n.filter(u=>u!=="*"&&!i[u]);if(s.length)throw new Error(`ui schema order list contains extraneous ${t(s)}`);let a=o.filter(u=>!r[u]),l=n.indexOf("*");if(l===-1){if(a.length)throw new Error(`ui schema order list does not contain ${t(a)}`);return n}if(l!==n.lastIndexOf("*"))throw new Error("ui schema order list contains more than one wildcard item");let c=[...n];return c.splice(l,1,...a),c}function Rz(o,n,e){return Dz(o)||!Array.isArray(o)||o.length===0?[]:(typeof o[0]!="object"&&(o=o.map(t=>({label:t,value:t}))),n&&(Array.isArray(n)||(n=[n]),o.forEach(t=>{~n.indexOf(t.value)&&(t.checked=!0)})),e&&o.forEach(t=>t.disabled=!0),o)}function J5(o,n,e){return Rz(Jr(o||[]),n,e)}function vC(o,n,e,t){return typeof n.asyncData=="function"?n.asyncData(t).pipe(We(i=>Rz(i,e,o.readOnly))):Mn(J5(o.enum,e,o.readOnly))}var of=class{constructor(n,e,t,i,r,s,a,l){this.injector=n,this._options=l,this._errors=null,this._valueChanges=new ct({path:null,pathValue:null,value:null}),this._errorsChanges=new ct(null),this._visible=!0,this._visibilityChanges=new ct(!0),this._objErrors={},this._value=null,this.schema=t,this.ui=i,this.schemaValidator=e.createValidatorFn(t,{ingoreKeywords:this.ui.ingoreKeywords,debug:i.debug}),this.formData=r||t.default,this._parent=s,s?this._root=s.root:this._root=this,this.path=a}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._errors===null||this._errors.length===0}get options(){return this._options}cd(n=!1){this.widget?.detectChanges(n)}updateValueAndValidity(n){n=V({onlySelf:!1,emitValidator:!0,emitValueEvent:!0,updatePath:"",updateValue:null},n),this._updateValue(),n.emitValueEvent&&(n.updatePath=n.updatePath||this.path,n.updateValue=n.updateValue==null?this.value:n.updateValue,this.valueChanges.next({value:this.value,path:n.updatePath,pathValue:n.updateValue})),n.emitValidator&&this.ui.liveValidate===!0&&this._runValidation(),this.parent&&!n.onlySelf&&this.parent.updateValueAndValidity(ot(V({},n),{emitValidator:!1}))}searchProperty(n){let e=this,t=null,i=null;if(n[0]===Vo)t=this.findRoot(),i=t.getProperty(n.substring(1));else for(;i===null&&e.parent!==null;)e=t=e.parent,i=t.getProperty(n);return i}findRoot(){let n=this;for(;n.parent!==null;)n=n.parent;return n}isEmptyData(n){if(Dz(n))return!0;switch(this.type){case"string":return`${n}`.length===0}return!1}_runValidation(){let n,e=this.isEmptyData(this._value);e&&this.ui._required?n=[{keyword:"required"}]:e?n=[]:n=this.schemaValidator(this._value)||[];let t=this.ui.validator;if(typeof t=="function"){let i=t(this.value,this,this.findRoot());if(i instanceof sp){i.subscribe(r=>{this.setCustomErrors(n,r),this.cd(!1)});return}this.setCustomErrors(n,i);return}this._errors=n,this.setErrors(this._errors)}setCustomErrors(n,e){let t=Array.isArray(e)&&e.length>0;t&&e.forEach(i=>{if(!i.message)throw new Error("The custom validator must contain a 'message' attribute to viewed error text");i.keyword=null}),this._errors=t?n.concat(...e):n,this.setErrors(this._errors)}setErrors(n=[],e=!0){let t=Array.isArray(n)?n:[n];if(e&&t&&!this.ui.onlyVisual){let i=this.widget&&this.widget.l.error||{};t=t.map(r=>{let s=r.keyword==null&&r.message?r.message:(this.ui.errors||{})[r.keyword]||this._options.errors[r.keyword]||i[r.keyword]||"";return s&&typeof s=="function"&&(s=s(r)),s&&(~s.indexOf("{")&&r.params&&(s=s.replace(/{([\.a-zA-Z0-9]+)}/g,(a,l)=>r.params[l]||"")),r.message=s),r})}this._errors=t,this._errorsChanges.next(t),this._parent&&this._parent.setParentAndPlatErrors(t,this.path)}setParentAndPlatErrors(n,e){this._objErrors[e]=n;let t=[];Object.keys(this._objErrors).forEach(i=>{let r=this.searchProperty(i);r&&!r.visible||t.push(...this._objErrors[i])}),this.setErrors(t,!1)}setVisible(n){return this._visible=n,this._visibilityChanges.next(n),n&&this.injector.get($e).onStable.pipe(Zr(1)).subscribe(()=>{this.resetValue(this.value,!0)}),this}_bindVisibility(){let n=this.ui.visibleIf;if(typeof n=="object"&&Object.keys(n).length===0)this.setVisible(!1);else if(n!=null){let e=[];for(let t in n)if(n.hasOwnProperty(t)){let i=this.searchProperty(t);if(i){let r=i.valueChanges.pipe(We(l=>{let c=n[t];if(typeof c=="function"){let u=c(l.value,i);if(typeof u=="object"){let d=V({show:!1,required:!1},u),p=this.parent?.schema.required;if(p&&this.propertyId){let g=p.findIndex(v=>v===this.propertyId);d.required?g===-1&&p.push(this.propertyId):g!==-1&&p.splice(g,1),this.ui._required=d.required}return d.show}return u}return c.indexOf("$ANY$")!==-1?l.value&&l.value.length>0:c.indexOf(l.value)!==-1})),s=i._visibilityChanges,a=Fn([r,s]).pipe(We(l=>l[0]&&l[1]));e.push(a)}}Fn(e).pipe(We(t=>this.ui.visibleIfLogical==="and"?t.every(i=>i):t.some(i=>i)),Bt()).subscribe(t=>this.setVisible(t))}}updateFeedback(n=""){this.ui.feedback=n,this.widget?.injector.get(cn).formStatusChanges.next({status:n,hasFeedback:!!n}),this.cd(!0)}},Ec=class o extends of{constructor(){super(...arguments),this.properties=null}getProperty(n){let e=n.indexOf(Vo),t=e!==-1?n.substring(0,e):n,i=this.properties[t];if(i!==null&&e!==-1&&i instanceof o){let r=n.substring(e+1);i=i.getProperty(r)}return i}forEachChild(n){for(let e in this.properties)if(this.properties.hasOwnProperty(e)){let t=this.properties[e];n(t,e)}}forEachChildRecursive(n){this.forEachChild(e=>{n(e),e instanceof o&&e.forEachChildRecursive(n)})}_bindVisibility(){super._bindVisibility(),this._bindVisibilityRecursive()}_bindVisibilityRecursive(){this.forEachChildRecursive(n=>{n._bindVisibility()})}isRoot(){return this===this.root}},sf=class extends Ec{get propertiesId(){return this._propertiesId}constructor(n,e,t,i,r,s,a,l,c){super(n,t,i,r,s,a,l,c),this.formPropertyFactory=e,this._propertiesId=[],this.createProperties()}createProperties(){this.properties={},this._propertiesId=[];let n;try{n=Z5(Object.keys(this.schema.properties),this.ui.order)}catch(e){console.error(`Invalid ${this.schema.title||"root"} object field configuration:`,e)}n.forEach(e=>{this.properties[e]=this.formPropertyFactory.createProperty(this.schema.properties[e],this.ui[`$${e}`],(this.formData||{})[e],this,e),this._propertiesId.push(e)})}setValue(n,e){let t=this.properties;for(let i in n)n.hasOwnProperty(i)&&t[i]&&t[i].setValue(n[i],!0);this.cd(e),this.updateValueAndValidity({onlySelf:e,emitValueEvent:!0})}resetValue(n,e){n=n||this.schema.default||{};let t=this.properties;for(let i in this.schema.properties)this.schema.properties.hasOwnProperty(i)&&t[i].resetValue(n[i],!0);this.cd(e),this.updateValueAndValidity({onlySelf:e,emitValueEvent:!0})}_hasValue(){return this.value!=null&&!!Object.keys(this.value).length}_updateValue(){let n={};this.forEachChild((e,t)=>{e.visible&&e._hasValue()&&(n[t]=e.value)}),this._value=n}},af=class extends Ec{constructor(n,e,t,i,r,s,a,l,c){super(n,t,i,r,s,a,l,c),this.formPropertyFactory=e,this.properties=[]}getProperty(n){let e=n.indexOf(Vo),t=+(e!==-1?n.substring(0,e):n),i=this.properties;if(isNaN(t)||t>=i.length)return;let r=n.substring(e+1);return i[t].getProperty(r)}setValue(n,e){this.properties=[],this.clearErrors(),this.resetProperties(n),this.cd(e),this.updateValueAndValidity({onlySelf:e,emitValueEvent:!0})}resetValue(n,e){this._value=n||this.schema.default||[],this.setValue(this._value,e)}_hasValue(){return!0}_updateValue(){let n=[];this.forEachChild(e=>{e.visible&&n.push(V(V({},this.widget?.cleanValue?null:e.formData),e.value))}),this._value=n}addProperty(n){let e=this.formPropertyFactory.createProperty(Jr(this.schema.items),Jr(this.ui.$items),n,this);return this.properties.push(e),e}resetProperties(n){for(let e of n)this.addProperty(e).resetValue(e,!0)}clearErrors(n){(n||this)._objErrors={}}add(n){let e=this.addProperty(n);return e.resetValue(n,!1),e}remove(n){let e=this.properties;this.clearErrors(),e.splice(n,1),e.forEach((t,i)=>{t.path=[t.parent.path,i].join(Vo),this.clearErrors(t),t instanceof sf&&t.forEachChild(r=>{r.updateValueAndValidity()})}),e.length===0&&this.updateValueAndValidity()}},nd=class extends of{setValue(n,e){this._value=n,this.cd(e),this.updateValueAndValidity({onlySelf:e,emitValueEvent:!0})}resetValue(n,e){n==null&&(n=this.schema.default!==void 0?this.schema.default:this.fallbackValue()),this._value=n,this.updateValueAndValidity({onlySelf:e,emitValueEvent:!0}),this.widget&&(this.widget.reset(n),this.cd(e))}_hasValue(){return this.fallbackValue()!==this.value}_updateValue(){}},pC=class extends nd{fallbackValue(){return null}},hC=class extends nd{fallbackValue(){return null}setValue(n,e){typeof n=="string"&&(n.length?n=n.indexOf(".")>-1?parseFloat(n):parseInt(n,10):n=void 0),this._value=n,this.cd(e),this.updateValueAndValidity({onlySelf:e,emitValueEvent:!0})}},fC=class extends nd{fallbackValue(){return null}setValue(n,e){this._value=n??"",this.cd(e),this.updateValueAndValidity({onlySelf:e,emitValueEvent:!0})}},id=class{constructor(n,e,t){this.injector=n,this.schemaValidatorFactory=e,this.options=gC(t)}createProperty(n,e,t,i=null,r){let s=null,a="";if(i)switch(a+=i.path,i.parent!==null&&(a+=Vo),i.type){case"object":a+=r;break;case"array":a+=i.properties.length;break;default:throw new Error(`Instanciation of a FormProperty with an unknown parent type: ${i.type}`)}else a=Vo;if(n.$ref){let l=mC(n,i.root.schema.definitions);s=this.createProperty(l,e,t,i,a)}else switch((r&&i.schema.required.indexOf(r.split(Vo).pop())!==-1||e.showRequired===!0)&&(e._required=!0),n.title==null&&(n.title=r),(n.type==="string"||n.type==="number")&&!n.format&&!e.format?e.widget==="date"?e._format=n.type==="string"?this.options.uiDateStringFormat:this.options.uiDateNumberFormat:e.widget==="time"&&(e._format=n.type==="string"?this.options.uiTimeStringFormat:this.options.uiTimeNumberFormat):e._format=e.format,n.type){case"integer":case"number":s=new hC(this.injector,this.schemaValidatorFactory,n,e,t,i,a,this.options);break;case"string":s=new fC(this.injector,this.schemaValidatorFactory,n,e,t,i,a,this.options);break;case"boolean":s=new pC(this.injector,this.schemaValidatorFactory,n,e,t,i,a,this.options);break;case"object":s=new sf(this.injector,this,this.schemaValidatorFactory,n,e,t,i,a,this.options);break;case"array":s=new af(this.injector,this,this.schemaValidatorFactory,n,e,t,i,a,this.options);break;default:throw new TypeError(`Undefined type ${n.type}`)}return s.propertyId=r,s instanceof Ec&&this.initializeRoot(s),s}initializeRoot(n){n._bindVisibility()}},rd=class{constructor(){this.onDestroy=new J}destroy(){this.onDestroy.next(!0)}},cf=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),Iz=(()=>{let n=class n extends cf{constructor(){if(super(),this.ngZone=ae($e),this.cogSrv=ae(In),!(typeof document=="object"&&document))return;this.options=gC(this.cogSrv);let t=this.options.ajv||{};this.ngZone.runOutsideAngular(()=>{this.ajv=new xz.default(ot(V({allErrors:!0,loopEnum:50},t),{formats:V({"data-url":/^data:([a-z]+\/[a-z0-9-+.]+)?;name=(.*);base64,(.*)$/,color:oo.color,mobile:oo.mobile,"id-card":oo.idCard},t.formats)})),(0,zz.default)(this.ajv)})}createValidatorFn(t,i){let r=[...this.options.ingoreKeywords,...i.ingoreKeywords||[]];return s=>{try{this.ngZone.runOutsideAngular(()=>this.ajv.validate(t,s))}catch{}let a=this.ajv.errors;return this.options&&r&&a&&(a=a.filter(l=>r.indexOf(l.keyword)===-1)),a}}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),Wa=class{constructor(){this._widgets={}}get widgets(){return this._widgets}setDefault(n){this.defaultWidget=n}register(n,e){this._widgets[n]=e}has(n){return this._widgets.hasOwnProperty(n)}getType(n){return this.has(n)?this._widgets[n]:this.defaultWidget}},Pz=(()=>{let n=class n{constructor(){this.registry=ae(Wa)}createWidget(t,i){this.registry.has(i);let r=this.registry.getType(i);return t.createComponent(r)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})(),e6=0,uf=(()=>{let n=class n{constructor(){this.widgetFactory=ae(Pz),this.terminator=ae(rd),this.destroy$=new J,this.widget=null,this.footer=null}onWidgetInstanciated(t){this.widget=t;let i=`_sf-${e6++}`,r=this.formProperty.ui;this.widget.formProperty=this.formProperty,this.widget.schema=this.formProperty.schema,this.widget.ui=r,this.widget.id=i,this.formProperty.widget=t}ngOnInit(){this.terminator.onDestroy.subscribe(()=>this.ngOnDestroy())}ngOnChanges(){let t=this.formProperty;this.ref=this.widgetFactory.createWidget(this.container,t.ui.widget||t.schema.type),this.onWidgetInstanciated(this.ref.instance)}ngOnDestroy(){let{destroy$:t}=this;t.next(),t.complete(),this.ref.destroy()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["sf-item"]],viewQuery:function(i,r){if(i&1&&xe(f4,7,Tn),i&2){let s;ce(s=ue())&&(r.container=s.first)}},hostVars:2,hostBindings:function(i,r){i&2&&k("sf__item",!0)},inputs:{formProperty:"formProperty",footer:"footer"},exportAs:["sfItem"],features:[Ve([cn]),oe],decls:3,vars:1,consts:[["target",""],[4,"ngTemplateOutlet"]],template:function(i,r){i&1&&_(0,g4,0,0,"ng-template",null,0,_e)(2,m4,1,0,"ng-container",1),i&2&&(f(2),h("ngTemplateOutlet",r.footer))},dependencies:[Be],encapsulation:2});let o=n;return o})(),Mz=(()=>{let n=class n{constructor(){this.el=ae(de).nativeElement,this.render=ae(He),this._inited=!1}init(){if(!this._inited||this.num==null||this.num<=0)return;let t=this.el,i=t.querySelector(".ant-row")||t;this.render.addClass(i,"sf__fixed");let r=i.querySelector(".ant-form-item-label"),s=i.querySelector(".ant-form-item-control-wrapper,.ant-form-item-control"),a=`${this.num}px`;r?(this.render.setStyle(r,"flex",`0 0 ${a}`),this.render.setStyle(s,"max-width",`calc(100% - ${a})`)):this.render.setStyle(s,"margin-left",a)}ngAfterViewInit(){this._inited=!0,this.init()}ngOnChanges(){this._inited&&this.init()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["","fixed-label",""]],inputs:{num:[le.HasDecoratorInputTransform,"fixed-label","num",t=>fn(t,0)]},features:[fi,oe]});let o=n;return o})();function t6(o,n,e){return new id(o,n,e)}var n6=(()=>{let n=class n{get btnGrid(){return this._btn.render.grid}set mode(t){switch(t){case"search":this.layout="inline",this.firstVisual=!1,this.liveValidate=!1,this._btn&&(this._btn.submit=this._btn.search);break;case"edit":this.layout="horizontal",this.firstVisual=!1,this.liveValidate=!0,this._btn&&(this._btn.submit=this._btn.edit);break}this._mode=t}get mode(){return this._mode}get valid(){return this._valid}get value(){return this._item}getProperty(t){return this.rootProperty?.searchProperty(t)}getValue(t){return this.getProperty(t)?.value}setValue(t,i){let r=this.getProperty(t);if(!r)throw new Error(`Invalid path: ${t}`);return r.resetValue(i,!1),this}setDisabled(t,i){let r=this.getProperty(t);if(!r)throw new Error(`Invalid path: ${t}`);return r.schema.readOnly=i,r.widget.detectChanges(),this}setRequired(t,i){let r=this.getProperty(t);if(!r)throw new Error(`Invalid path: ${t}`);let s=t.split(Vo).pop(),a=r.parent?.schema.required||[],l=a.findIndex(c=>c===s);return i?l===-1&&a.push(s):l!==-1&&a.splice(l,1),r.parent.schema.required=a,r.ui._required=i,r.widget.detectChanges(),this.validator({onlyRoot:!1}),this}updateFeedback(t,i=""){return this.getProperty(t)?.updateFeedback(i),this}onSubmit(t){t.preventDefault(),t.stopPropagation(),this.liveValidate||this.validator(),this.valid&&this.formSubmit.emit(this.value)}constructor(t){this.formPropertyFactory=ae(id),this.terminator=ae(rd),this.dom=ae(Ro),this.cdr=ae(fe),this.localeSrv=ae(cu),this.aclSrv=ae(pp,{optional:!0}),this.i18nSrv=ae(Rs,{optional:!0}),this.platform=ae(gn),this._renders=new Map,this._valid=!0,this._inited=!1,this.locale={},this.rootProperty=null,this.layout="horizontal",this.button={},this.liveValidate=!0,this.firstVisual=!0,this.onlyVisual=!1,this.compact=!1,this.loading=!1,this.disabled=!1,this.noColon=!1,this.cleanValue=!1,this.delay=!1,this.formValueChange=new O,this.formChange=new O,this.formSubmit=new O,this.formReset=new O,this.formError=new O,this.options=gC(t),this.liveValidate=this.options.liveValidate,this.firstVisual=this.options.firstVisual,this.autocomplete=this.options.autocomplete,this.delay=this.options.delay,this.localeSrv.change.pipe(li()).subscribe(()=>{this.locale=this.localeSrv.getData("sf"),this._inited&&(this.validator({emitError:!1,onlyRoot:!1}),this.coverButtonProperty(),this.cdr.markForCheck())});let i=[this.aclSrv?this.aclSrv.change:null,this.i18nSrv?this.i18nSrv.change:null].filter(r=>r!=null);i.length>0&&_t(...i).pipe(Qe(()=>this._inited),li()).subscribe(()=>this.refreshSchema())}fanyi(t){return(this.i18nSrv?this.i18nSrv.fanyi(t):"")||t}inheritUI(t){["optionalHelp"].filter(i=>!!this._defUi[i]).forEach(i=>t[i]=V(V({},this._defUi[i]),t[i]))}coverProperty(){let t=this.layout==="horizontal",i=Jr(this.schema),{definitions:r}=i,s=(a,l,c,u,d)=>{Array.isArray(a.required)||(a.required=[]),Object.keys(a.properties).forEach(p=>{let g="$",v=g+p,y=mC(a.properties[p],r),x=V(V({},y.ui),c[v]),E=V(V(V(V(ot(V(V({},this._defUi),u),{visibleIf:void 0,hidden:void 0,optional:void 0,optionalHelp:void 0,widget:y.type}),y.format&&this.options.formatMap[y.format]),typeof y.ui=="string"?{widget:y.ui}:null),!y.format&&!y.ui&&Array.isArray(y.enum)&&y.enum.length>0?{widget:"select"}:null),x);if(Object.keys(E).filter(z=>z.startsWith(g)).forEach(z=>delete E[z]),t?u.spanLabelFixed?x.spanLabelFixed||(E.spanLabelFixed=u.spanLabelFixed):(E.spanLabel||(E.spanLabel=typeof u.spanLabel>"u"?5:u.spanLabel),E.spanControl||(E.spanControl=typeof u.spanControl>"u"?19:u.spanControl),E.offsetControl||(E.offsetControl=typeof u.offsetControl>"u"?null:u.offsetControl)):(E.spanLabel=null,E.spanControl=null,E.offsetControl=null),this.layout==="inline"&&delete E.grid,this.layout!=="horizontal"&&(E.spanLabelFixed=null),E.spanLabelFixed!=null&&E.spanLabelFixed>0&&(E.spanLabel=null,E.spanControl=null),E.widget==="date"&&E.end!=null){let z=a.properties[E.end];z?z.ui=ot(V({},z.ui),{widget:E.widget,hidden:!0}):E.end=null}if(this.inheritUI(E),E.optionalHelp){typeof E.optionalHelp=="string"&&(E.optionalHelp={text:E.optionalHelp});let z=E.optionalHelp=V({text:"",icon:"question-circle",placement:"top",trigger:"hover",mouseEnterDelay:.15,mouseLeaveDelay:.1},E.optionalHelp);z.i18n&&(z.text=this.fanyi(z.i18n)),z.text||(E.optionalHelp=void 0)}if(E.i18n&&(y.title=this.fanyi(E.i18n)),E.descriptionI18n&&(y.description=this.fanyi(E.descriptionI18n)),y.description&&(E._description=this.dom.bypassSecurityTrustHtml(y.description)),E.hidden=typeof E.hidden=="boolean"?E.hidden:!1,E.hidden===!1&&E.acl&&this.aclSrv&&!this.aclSrv.can(E.acl)&&(E.hidden=!0),d[v]=E,delete y.ui,E.hidden===!0){let z=a.required.indexOf(p);z!==-1&&a.required.splice(z,1)}y.items&&(E.$items=V(V(V({},y.items.ui),c[v]),E.$items),s(y.items,y.items,c[v]?.$items??{},E.$items,E.$items)),y.properties&&Object.keys(y.properties).length&&s(y,a,c[v]||{},E,E)})};this.ui==null&&(this.ui={}),this._defUi=V(V(V({onlyVisual:this.options.onlyVisual,size:this.options.size,liveValidate:this.liveValidate},this.options.ui),i.ui),this.ui["*"]),this.onlyVisual===!0&&(this._defUi.onlyVisual=!0),this.layout==="inline"&&delete this._defUi.grid,this._ui=V({},this._defUi),s(i,i,this.ui,this.ui,this._ui),Q5(i,this._ui),this._schema=i,delete i.ui,rf(this._ui,"cover schema & ui",this._ui,i)}coverButtonProperty(){this._btn=V(V(V({render:{size:"default"}},this.locale),this.options.button),this.button);let t=Object.keys(this._ui).find(r=>r.startsWith("$")),i=this._btn.render;if(this.layout==="horizontal"){let r=t?this._ui[t]:this._defUi;i.grid||(i.grid={offset:r.spanLabel,span:r.spanControl}),i.spanLabelFixed==null&&(i.spanLabelFixed=r.spanLabelFixed),!i.class&&typeof r.spanLabelFixed=="number"&&r.spanLabelFixed>0&&(i.class="text-center")}else i.grid={};this._mode&&(this.mode=this._mode),rf(this._ui,"button property",this._btn)}ngOnInit(){this.platform.isBrowser&&(this.validator(),this._inited=!0)}ngOnChanges(t){if(!this.platform.isBrowser)return;let i=["disabled","loading"];if(Object.keys(t).every(r=>i.includes(r))){this.cdr.detectChanges();return}this.delay||this.refreshSchema()}_addTpl(t,i){this._inited&&(this._renders.has(t)||(this._renders.set(t,i),this.attachCustomRender()))}attachCustomRender(){this._renders.forEach((t,i)=>{let r=this.rootProperty?.searchProperty(i);r!=null&&(r.ui._render=t)})}validator(t={emitError:!0,onlyRoot:!0}){if(this.rootProperty==null||!this.platform.isBrowser)return!1;let i=s=>{s._runValidation(),!(!(s instanceof Ec)||!s.properties)&&(Array.isArray(s.properties)?s.properties.forEach(a=>i(a)):Object.keys(s.properties).forEach(a=>i(s.properties[a])))};t.onlyRoot?this.rootProperty._runValidation():i(this.rootProperty);let r=this.rootProperty.errors;return this._valid=!(r&&r.length),t.emitError&&!this._valid&&this.formError.emit(r),this.cdr.detectChanges(),this._valid}refreshSchema(t,i){if(!this.platform.isBrowser)return this;if(t&&(this.schema=t),i&&(this.ui=i),!this.schema||typeof this.schema.properties>"u")throw new Error("Invalid Schema");if(this.schema.ui&&typeof this.schema.ui=="string")throw new Error("Don't support string with root ui property");this.schema.type="object",this._formData=V({},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.attachCustomRender(),this.cdr.detectChanges(),this.reset();let r=!0;return this.rootProperty.valueChanges.subscribe(s=>{if(this._item=V(V({},this.cleanValue?null:this.formData),s.value),r){r=!1;return}this.formChange.emit(this._item),this.formValueChange.emit({value:this._item,path:s.path,pathValue:s.pathValue})}),this.rootProperty.errorsChanges.subscribe(s=>{this._valid=!(s&&s.length),this.formError.emit(s),this.cdr.detectChanges()}),this}reset(t=!1){return this.rootProperty==null||!this.platform.isBrowser?this:(this.rootProperty.resetValue(this.formData,!1),Promise.resolve().then(()=>this.cdr.detectChanges()),t&&this.formReset.emit(this.value),this)}cleanRootSub(){this.rootProperty&&(this.rootProperty.errorsChanges.unsubscribe(),this.rootProperty.valueChanges.unsubscribe())}ngOnDestroy(){this.cleanRootSub(),this.terminator.destroy()}};n.\u0275fac=function(i){return new(i||n)(w(In))},n.\u0275cmp=j({type:n,selectors:[["sf"],["","sf",""]],hostVars:16,hostBindings:function(i,r){i&2&&k("sf",!0)("sf__inline",r.layout==="inline")("sf__horizontal",r.layout==="horizontal")("sf__search",r.mode==="search")("sf__edit",r.mode==="edit")("sf__no-error",r.onlyVisual)("sf__no-colon",r.noColon)("sf__compact",r.compact)},inputs:{layout:"layout",schema:"schema",ui:"ui",formData:"formData",button:"button",liveValidate:[le.HasDecoratorInputTransform,"liveValidate","liveValidate",it],autocomplete:"autocomplete",firstVisual:[le.HasDecoratorInputTransform,"firstVisual","firstVisual",it],onlyVisual:[le.HasDecoratorInputTransform,"onlyVisual","onlyVisual",it],compact:[le.HasDecoratorInputTransform,"compact","compact",it],mode:"mode",loading:[le.HasDecoratorInputTransform,"loading","loading",it],disabled:[le.HasDecoratorInputTransform,"disabled","disabled",it],noColon:[le.HasDecoratorInputTransform,"noColon","noColon",it],cleanValue:[le.HasDecoratorInputTransform,"cleanValue","cleanValue",it],delay:[le.HasDecoratorInputTransform,"delay","delay",it]},outputs:{formValueChange:"formValueChange",formChange:"formChange",formSubmit:"formSubmit",formReset:"formReset",formError:"formError"},exportAs:["sf"],features:[Ve([Pz,{provide:id,useFactory:t6,deps:[$n,cf,In]},rd]),fi,oe],ngContentSelectors:Oz,decls:6,vars:3,consts:[["con",""],["btnTpl",""],["nz-form","",3,"nzLayout","submit"],[3,"formProperty","footer"],["class","sf-btns",3,"ngClass","fixed-label"],[1,"sf-btns",3,"ngClass","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"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor","nzIconfont"],["type","button","nz-button","","data-type","reset",3,"nzType","nzSize","disabled"],["type","button","nz-button","","data-type","reset",3,"nzType","nzSize","disabled","click"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&(Pe(),_(0,v4,1,0,"ng-template",null,0,_e)(2,O4,2,1,"ng-template",null,1,_e),C(4,"form",2),A("submit",function(a){return r.onSubmit(a)}),_(5,D4,1,2,"sf-item",3),S()),i&2&&(f(4),h("nzLayout",r.layout),ze("autocomplete",r.autocomplete),f(),ie(5,r.rootProperty?5:-1))},dependencies:[St,Be,ob,Zw,zm,eo,yi,hr,sc,Aa,_h,Na,Fe,uf,Mz],encapsulation:2,changeDetection:0});let o=n;return o})(),$r=(()=>{let n=class n{constructor(){this.statusSrv=ae(cn),this._showTitle=!1,this.title=null}set showTitle(t){this._showTitle=!!t}get t(){return this.title===null?this.schema.title:this.title}get oh(){return this.ui.optionalHelp}ngOnChanges(){let t=!!this.error;this.statusSrv.formStatusChanges.next({status:t?"error":"",hasFeedback:!!this.ui.feedback})}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["sf-item-wrap"]],inputs:{id:"id",schema:"schema",ui:"ui",showError:"showError",error:"error",showTitle:"showTitle",title:"title"},features:[oe],ngContentSelectors:Oz,decls:8,vars:21,consts:[["nz-col","","class","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"],["class","ant-form-item-explain ant-form-item-explain-connected"],["class","ant-form-item-extra",3,"innerHTML"],["nz-col","",1,"ant-form-item-label",3,"nzSpan"],[3,"ant-form-item-required"],[1,"sf__label-text"],["class","sf__optional"],[1,"sf__optional"],["nz-tooltip","","nz-icon","",3,"nzTooltipTitle","nzTooltipPlacement","nzTooltipTrigger","nzTooltipColor","nzTooltipOverlayClassName","nzTooltipOverlayStyle","nzTooltipMouseEnterDelay","nzTooltipMouseLeaveDelay","nzType"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",1,"ant-form-item-explain-error"],[1,"ant-form-item-extra",3,"innerHTML"]],template:function(i,r){i&1&&(Pe(),C(0,"nz-form-item"),_(1,M4,2,2,"div",0),C(2,"div",1)(3,"div",2)(4,"div",3),Ie(5),S()(),_(6,F4,3,2,"div",4)(7,A4,1,1,"div",5),S()()),i&2&&(Re("width",r.ui.width,"px"),k("ant-form-item-has-error",r.showError)("ant-form-item-with-help",r.showError)("ant-form-item-has-success",r.ui.feedback==="success")("ant-form-item-has-warning",r.ui.feedback==="warning")("ant-form-item-has-error",r.ui.feedback==="error")("ant-form-item-is-validating",r.ui.feedback==="validating")("ant-form-item-has-feedback",r.ui.feedback),f(),ie(1,r._showTitle?1:-1),f(),h("nzSpan",r.ui.spanControl)("nzOffset",r.ui.offsetControl),f(4),ie(6,!r.ui.onlyVisual&&r.showError?6:-1),f(),ie(7,r.schema.description?7:-1))},dependencies:[yi,sc,Aa,Na,Fe,Si],encapsulation:2,data:{animation:[jl]}});let o=n;return o})();var df=(()=>{let n=class n{constructor(){this.cd=ae(fe),this.injector=ae($n),this.sfItemComp=ae(uf),this.sfComp=ae(n6),this.showError=!1,this.id=""}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(Ro)}get cleanValue(){return this.sfComp?.cleanValue}ngAfterViewInit(){this.formProperty.errorsChanges.pipe(F(this.sfItemComp.destroy$)).subscribe(t=>{if(t==null)return;rf(this.ui,"errorsChanges",this.formProperty.path,t);let i=this.sfComp?.firstVisual;(i||!i&&this.sfComp?._inited)&&(this.showError=t.length>0,this.error=this.showError?t[0].message:"",this.cd.detectChanges())}),this.afterViewInit()}setValue(t){this.formProperty.setValue(t,!1),rf(this.ui,"valueChanges",this.formProperty.path,this.formProperty)}get value(){return this.formProperty.value}detectChanges(t=!1){t?this.cd.markForCheck():this.formProperty.root.widget?.cd.markForCheck()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,hostVars:2,hostBindings:function(i,r){i&2&&cr(r.cls)}});let o=n;return o})(),Fz=(()=>{let n=class n extends df{reset(t){}afterViewInit(){}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275dir=Se({type:n,features:[Xe]});let o=n;return o})(),Go=(()=>{let n=class n extends df{reset(t){}afterViewInit(){}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275dir=Se({type:n,features:[Xe]});let o=n;return o})(),i6=(()=>{let n=class n extends df{reset(t){}afterViewInit(){}ngAfterViewInit(){this.formProperty.errorsChanges.pipe(F(this.sfItemComp.destroy$)).subscribe(()=>this.cd.detectChanges())}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275dir=Se({type:n,features:[Xe]});let o=n;return o})(),r6=(()=>{let n=class n extends df{reset(t){}afterViewInit(){}ngAfterViewInit(){this.formProperty.errorsChanges.pipe(F(this.sfItemComp.destroy$)).subscribe(()=>this.cd.detectChanges())}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275dir=Se({type:n,features:[Xe]});let o=n;return o})(),o6=(()=>{let n=class n extends i6{constructor(){super(...arguments),this.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:t,addTitle:i,addType:r,removable:s,removeTitle:a}=this.ui;t&&t.arraySpan&&(this.arraySpan=t.arraySpan),this.addTitle=this.dom.bypassSecurityTrustHtml(i||this.l.addText),this.addType=r||"dashed",this.removeTitle=s===!1?null:a||this.l.removeText}reValid(){this.formProperty.updateValueAndValidity({onlySelf:!1,emitValueEvent:!1,emitValidator:!0})}addItem(){let t=this.formProperty.add({});this.reValid(),this.ui.add?.(t)}removeItem(t){this.formProperty.remove(t),this.reValid(),this.ui.remove?.(t)}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-array"]],hostVars:2,hostBindings:function(i,r){i&2&&k("sf__array",!0)},features:[Xe],decls:8,vars:10,consts:[["nz-col","","class","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"],[4,"ngFor","ngForOf"],["class","ant-form-explain"],["class","ant-form-extra",3,"innerHTML"],["nz-col","",1,"ant-form-item-label",3,"nzSpan"],[1,"sf__optional"],["nz-tooltip","","nz-icon","",3,"nzTooltipTitle","nzTooltipPlacement","nzTooltipTrigger","nzTooltipOverlayClassName","nzTooltipOverlayStyle","nzTooltipMouseEnterDelay","nzTooltipMouseLeaveDelay","nzType"],[1,"sf__array-add"],["type","button","nz-button","",3,"nzType","disabled","innerHTML","click"],["nz-col","","class","sf__array-item",3,"nzSpan"],["nz-col","",1,"sf__array-item",3,"nzSpan"],[3,"formProperty"],["class","sf__array-remove"],[1,"sf__array-remove",3,"click"],["nz-icon","","nzType","delete"],[1,"ant-form-explain"],[1,"ant-form-extra",3,"innerHTML"]],template:function(i,r){i&1&&(C(0,"nz-form-item"),_(1,L4,8,9,"div",0),C(2,"div",1)(3,"div",2)(4,"div",3),_(5,G4,2,1,"ng-container",4),S(),_(6,H4,2,1,"div",5)(7,B4,1,1,"div",6),S()()()),i&2&&(k("ant-form-item-with-help",r.showError),f(),ie(1,r.schema.title?1:-1),f(),h("nzSpan",r.ui.spanControl)("nzOffset",r.ui.offsetControl),f(),k("has-error",r.showError),f(2),h("ngForOf",r.formProperty.properties),f(),ie(6,!r.ui.onlyVisual&&r.showError?6:-1),f(),ie(7,r.schema.description?7:-1))},dependencies:[lt,eo,yi,hr,um,sc,Aa,Na,Fe,Si,uf],encapsulation:2});let o=n;return o})(),s6=(()=>{let n=class n extends Go{};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-boolean"]],features:[Xe],decls:2,vars:12,consts:[[3,"id","schema","ui","showError","error","showTitle"],[3,"ngModel","nzDisabled","nzSize","nzCheckedChildren","nzUnCheckedChildren","nzLoading","ngModelChange"]],template:function(i,r){i&1&&(C(0,"sf-item-wrap",0)(1,"nz-switch",1),A("ngModelChange",function(a){return r.setValue(a)}),S()()),i&2&&(h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title),f(),h("ngModel",r.value)("nzDisabled",r.disabled)("nzSize",r.ui.size)("nzCheckedChildren",r.ui.checkedChildren)("nzUnCheckedChildren",r.ui.unCheckedChildren)("nzLoading",r.ui.loading))},dependencies:[Kt,Rt,wv,$r],encapsulation:2});let o=n;return o})(),a6=(()=>{let n=class n extends Go{constructor(){super(...arguments),this.data=[],this.allChecked=!1,this.indeterminate=!1,this.labelTitle="",this.inited=!1}reset(t){this.inited=!1,vC(this.schema,this.ui,t).subscribe(i=>{this.data=i,this.allChecked=!1,this.indeterminate=!1,this.labelTitle=i.length===0?"":this.schema.title;let{span:r}=this.ui;this.grid_span=r&&r>0?r:0,this.updateAllChecked(),this.inited=!0,this.detectChanges()})}_setValue(t){this.setValue(t),this.detectChanges(),this.notifyChange(t)}notifySet(){let t=this.data.filter(i=>i.checked);this.updateAllChecked().setValue(t.map(i=>i.value)),this.notifyChange(t)}groupInGridChange(t){this.data.forEach(i=>i.checked=t.indexOf(i.value)!==-1),this.notifySet()}onAllChecked(){this.data.forEach(t=>t.checked=this.allChecked),this.notifySet()}updateAllChecked(){return this.data.every(t=>t.checked!==!0)?(this.allChecked=!1,this.indeterminate=!1):this.data.every(t=>t.checked===!0)?(this.allChecked=!0,this.indeterminate=!1):this.indeterminate=!0,this.detectChanges(),this}notifyChange(t){this.ui.change&&this.ui.change(t)}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-checkbox"]],features:[Xe],decls:4,vars:8,consts:[["all",""],[3,"id","schema","ui","showError","error","showTitle","title"],["nz-checkbox","","class","sf__checkbox-all mr-sm",3,"ngModel","nzIndeterminate"],["nz-checkbox","",1,"sf__checkbox-all","mr-sm",3,"ngModel","nzIndeterminate","ngModelChange"],["nz-checkbox","",3,"nzDisabled","ngModel"],["nz-checkbox","",3,"nzDisabled","ngModel","ngModelChange"],[1,"sf__optional"],["nz-tooltip","","nz-icon","",3,"nzTooltipTitle","nzTooltipPlacement","nzTooltipTrigger","nzTooltipOverlayClassName","nzTooltipOverlayStyle","nzTooltipMouseEnterDelay","nzTooltipMouseLeaveDelay","nzType"],[3,"ngTemplateOutlet"],[3,"ngModel","ngModelChange"],[1,"sf__checkbox-list",3,"nzOnChange"],["nz-row",""],["nz-col","",3,"nzSpan"],["nz-checkbox","",3,"nzValue","ngModel","nzDisabled"]],template:function(i,r){i&1&&(_(0,j4,1,1,"ng-template",null,0,_e),C(2,"sf-item-wrap",1),_(3,e5,2,1),S()),i&2&&(f(2),h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",!0)("title",r.labelTitle),f(),ie(3,r.inited?3:-1))},dependencies:[Be,Kt,Rt,yi,Bi,Pm,Im,sc,Aa,Fe,Si,$r],encapsulation:2});let o=n;return o})(),l6=(()=>{let n=class n extends Go{};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-custom"]],features:[Xe],decls:2,vars:12,consts:[[3,"id","schema","ui","showError","error","showTitle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&(C(0,"sf-item-wrap",0),_(1,t5,0,0,"ng-template",1),S()),i&2&&(h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title),f(),h("ngTemplateOutlet",r.ui._render)("ngTemplateOutletContext",iu(8,n5,r,r.schema,r.ui)))},dependencies:[Be,$r],encapsulation:2});let o=n;return o})(),c6=(()=>{let n=class n extends Go{constructor(){super(...arguments),this.flatRange=!1,this.displayValue=null}ngOnInit(){let{mode:t,end:i,displayFormat:r,allowClear:s,showToday:a}=this.ui;if(this.mode=t||"date",this.flatRange=i!=null,this.startFormat=this.ui._format,this.flatRange){this.mode="range";let l=this.endProperty.ui;this.endFormat=l.format?l._format:this.startFormat}if(r)this.displayFormat=r;else switch(this.mode){case"year":this.displayFormat="yyyy";break;case"month":this.displayFormat="yyyy-MM";break;case"week":this.displayFormat="yyyy-ww";break}this.i={allowClear:mo(s,!0),showToday:mo(a,!0)}}reset(t){let i={formatString:this.startFormat,defaultValue:null};if(Array.isArray(t)?t=t.map(r=>Ep(r,i)):t=Ep(t,i),this.flatRange){let r=Ep(this.endProperty.formData,{formatString:this.endFormat||this.startFormat,defaultValue:null});this.displayValue=t==null||r==null?[]:[t,r]}else this.displayValue=t;this.detectChanges(),this.displayValue&&setTimeout(()=>this._change(this.displayValue,!1))}_change(t,i=!0){if(i&&this.ui.change&&this.ui.change(t),t==null||Array.isArray(t)&&t.length<2){this.setValue(null),this.setEnd(null);return}let r=Array.isArray(t)?[Sp(t[0],this.startFormat),Sp(t[1],this.endFormat||this.startFormat)]:Sp(t,this.startFormat);this.flatRange?(this.setValue(r[0]),this.setEnd(r[1])):this.setValue(r)}_openChange(t){this.ui.onOpenChange&&this.ui.onOpenChange(t)}_ok(t){this.ui.onOk&&this.ui.onOk(t)}get endProperty(){return this.formProperty.parent.properties[this.ui.end]}setEnd(t){this.flatRange&&(this.endProperty.setValue(t,!0),this.endProperty.updateValueAndValidity())}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-date"]],features:[Xe],decls:6,vars:7,consts:[[3,"id","schema","ui","showError","error","showTitle"],[3,"nzId","nzDisabled","nzSize","nzFormat","ngModel","nzAllowClear","ngClass","nzDisabledDate","nzLocale","nzPlaceHolder","nzPopupStyle","nzDropdownClassName","nzRenderExtraFooter","nzInputReadOnly","nzInline","ngModelChange","nzOnOpenChange"],[3,"nzId","nzDisabled","nzSize","nzFormat","ngModel","nzAllowClear","ngClass","nzDisabledDate","nzLocale","nzPlaceHolder","nzPopupStyle","nzDropdownClassName","nzInputReadOnly","nzInline","ngModelChange","nzOnOpenChange"],[3,"nzId","nzDisabled","nzSize","nzFormat","ngModel","nzAllowClear","ngClass","nzDisabledDate","nzLocale","nzPlaceHolder","nzPopupStyle","nzDropdownClassName","nzDisabledTime","nzRenderExtraFooter","nzRanges","nzShowTime","nzSeparator","nzShowWeekNumber","nzMode","nzInputReadOnly","nzInline","ngModelChange","nzOnOpenChange","nzOnOk"],[3,"nzId","nzDisabled","nzSize","nzFormat","ngModel","nzAllowClear","ngClass","nzDisabledDate","nzLocale","nzPlaceHolder","nzPopupStyle","nzDropdownClassName","nzDisabledTime","nzRenderExtraFooter","nzShowTime","nzShowToday","nzShowWeekNumber","nzInputReadOnly","nzInline","ngModelChange","nzOnOpenChange","nzOnOk"]],template:function(i,r){if(i&1&&(C(0,"sf-item-wrap",0),_(1,i5,1,15)(2,r5,1,15)(3,o5,1,14)(4,s5,1,21)(5,a5,1,19),S()),i&2){let s;h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title),f(),ie(1,(s=r.mode)==="year"?1:s==="month"?2:s==="week"?3:s==="range"?4:5)}},dependencies:[St,Kt,Rt,ps,vh,_T,wT,ST,$r],encapsulation:2});let o=n;return o})(),Tz=(()=>{let n=class n extends Go{constructor(){super(...arguments),this.formatter=t=>t,this.parser=t=>t,this.width=""}ngOnInit(){let{minimum:t,exclusiveMinimum:i,maximum:r,exclusiveMaximum:s,multipleOf:a,type:l}=this.schema;this.step=a||1,typeof t<"u"&&(this.min=i?t+this.step:t),typeof r<"u"&&(this.max=s?r-this.step:r),l==="integer"&&(this.min=Math.trunc(this.min),this.max=Math.trunc(this.max),this.step=Math.trunc(this.step));let c=this.ui;c.prefix!=null&&(c.formatter=u=>u==null?"":`${c.prefix} ${u}`,c.parser=u=>u.replace(`${c.prefix} `,"")),c.unit!=null&&(c.formatter=u=>u==null?"":`${u} ${c.unit}`,c.parser=u=>u.replace(` ${c.unit}`,"")),c.formatter&&(this.formatter=c.formatter),c.parser&&(this.parser=c.parser),this.width=typeof c.widgetWidth=="number"?`${c.widgetWidth}px`:c.widgetWidth??"90px"}_setValue(t){this.setValue(this.schema.type==="integer"?Math.floor(t):t),this.ui.change&&this.ui.change(this.value)}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-number"]],features:[Xe],decls:2,vars:22,consts:[[3,"id","schema","ui","showError","error","showTitle"],[3,"nzId","ngModel","nzDisabled","nzSize","nzMin","nzMax","nzStep","nzFormatter","nzParser","nzPrecision","nzPlaceHolder","ngClass","ngModelChange"]],template:function(i,r){i&1&&(C(0,"sf-item-wrap",0)(1,"nz-input-number",1),A("ngModelChange",function(a){return r._setValue(a)}),S()()),i&2&&(h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title),f(),Re("width",r.width),h("nzId",r.id)("ngModel",r.value)("nzDisabled",r.disabled)("nzSize",r.ui.size)("nzMin",r.min)("nzMax",r.max)("nzStep",r.step)("nzFormatter",r.formatter)("nzParser",r.parser)("nzPrecision",r.ui.precision)("nzPlaceHolder",r.ui.placeholder||"")("ngClass",yt(20,l5,r.ui.hideStep)))},dependencies:[St,Kt,Rt,ic,$r],encapsulation:2});let o=n;return o})(),u6=(()=>{let n=class n extends r6{constructor(){super(...arguments),this.type="default",this.list=[],this.showExpand=!0,this.expand=!0}ngOnInit(){let{formProperty:t,ui:i}=this,{grid:r,showTitle:s,type:a}=i;this.showExpand=mo(i.showExpand,!0),this.expand=mo(i.expand,!0),this.type=a??"default",(this.type==="card"||!t.isRoot()&&!(t.parent instanceof af)&&s===!0)&&(this.title=this.schema.title),this.grid=r;let l=[];for(let c of t.propertiesId){let u=t.properties[c],d={property:u,grid:u.ui.grid||r||{},spanLabelFixed:u.ui.spanLabelFixed,show:u.ui.hidden===!1};l.push(d)}this.list=l}changeExpand(){this.showExpand&&(this.expand=!this.expand,this.detectChanges(!0))}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-object"]],features:[Xe],decls:4,vars:1,consts:[["default",""],["class","sf__object-card",3,"nzTitle","nzExtra","nzSize","nzActions","nzBodyStyle","nzBordered","nzBorderless","sf__object-card-fold"],["class","sf__title"],["nz-row","",3,"nzGutter"],[1,"sf__title"],["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","nzBorderless"],["cardTitleTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click"],["nz-icon","","class","mr-xs text-xs",3,"nzType"],["class","sf__optional"],["nz-icon","",1,"mr-xs","text-xs",3,"nzType"],[1,"sf__optional"],["s","","nz-tooltip","","nz-icon","",3,"nzTooltipTitle","nzTooltipPlacement","nzTooltipTrigger","nzTooltipColor","nzTooltipOverlayClassName","nzTooltipOverlayStyle","nzTooltipMouseEnterDelay","nzTooltipMouseLeaveDelay","nzType"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&_(0,m5,3,2,"ng-template",null,0,_e)(2,T5,4,13,"nz-card",1)(3,x5,1,1),i&2&&(f(2),ie(2,r.type==="card"?2:3))},dependencies:[Be,yi,um,sc,Aa,Fe,Si,uf,Mz],encapsulation:2});let o=n;return o})(),d6=(()=>{let n=class n extends Go{constructor(){super(...arguments),this.data=[]}reset(t){this.styleType=(this.ui.styleType||"default")==="default",vC(this.schema,this.ui,t).subscribe(i=>{this.data=i,this.detectChanges()})}_setValue(t){this.setValue(t),this.ui.change&&this.ui.change(t)}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-radio"]],features:[Xe],decls:4,vars:11,consts:[[3,"id","schema","ui","showError","error","showTitle"],[3,"nzSize","nzName","ngModel","nzButtonStyle","ngModelChange"],["nz-radio","",3,"nzValue","nzDisabled"],[3,"innerHTML"],["nz-radio-button","",3,"nzValue","nzDisabled"]],template:function(i,r){i&1&&(C(0,"sf-item-wrap",0)(1,"nz-radio-group",1),A("ngModelChange",function(a){return r._setValue(a)}),_(2,O5,2,0)(3,R5,2,0),S()()),i&2&&(h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title),f(),h("nzSize",r.ui.size)("nzName",r.id)("ngModel",r.value)("nzButtonStyle",r.ui.buttonStyle||"outline"),f(),ie(2,r.styleType?2:3))},dependencies:[Kt,Rt,ls,Vm,yb,$r],encapsulation:2});let o=n;return o})(),p6=(()=>{let n=class n extends Go{constructor(){super(...arguments),this.search$=new J,this.data=[],this.hasGroup=!1,this.loading=!1}checkGroup(t){this.hasGroup=(t||[]).filter(i=>i.group===!0).length>0}ngOnInit(){let{autoClearSearchValue:t,borderless:i,autoFocus:r,dropdownMatchSelectWidth:s,serverSearch:a,maxMultipleCount:l,mode:c,showSearch:u,tokenSeparators:d,maxTagCount:p,compareWith:g,optionHeightPx:v,optionOverflowSize:y,showArrow:x}=this.ui;this.i={autoClearSearchValue:mo(t,!0),borderless:mo(i,!1),autoFocus:mo(r,!1),dropdownMatchSelectWidth:mo(s,!0),serverSearch:mo(a,!1),maxMultipleCount:l||1/0,mode:c||"default",showSearch:mo(u,!0),tokenSeparators:d||[],maxTagCount:p||void 0,optionHeightPx:v||32,optionOverflowSize:y||8,showArrow:typeof x!="boolean"?void 0:x,compareWith:g||((z,M)=>z===M)};let E=this.ui.onSearch;E&&this.search$.pipe(F(this.sfItemComp.destroy$),Bt(),Sa(this.ui.searchDebounceTime||300),on(z=>E(z)),lp(()=>[])).subscribe(z=>{this.data=z,this.checkGroup(z),this.loading=!1,this.detectChanges()})}reset(t){let i=this.ui.onSearch;vC(this.schema,this.ui,t).subscribe(r=>{this._value=t,i==null&&(this.data=r),this.checkGroup(r),this.detectChanges()}),t&&i!=null&&this.search$.next(t)}change(t){this.ui.change&&this.ui.change(t,this.getOrgData(t)),this.setValue(t??void 0)}getOrgData(t){let i=this.injector.get(bz);return Array.isArray(t)?t.map(r=>i.findTree(this.data,s=>s.value===r)):i.findTree(this.data,r=>r.value===t)}openChange(t){this.ui.openChange&&this.ui.openChange(t)}scrollToBottom(){this.ui.scrollToBottom&&this.ui.scrollToBottom()}onSearch(t){this.ui.onSearch&&(this.loading=!0,this.search$.next(t))}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-select"]],features:[Xe],decls:5,vars:39,consts:[[3,"id","schema","ui","showError","error","showTitle"],[3,"nzId","nzDisabled","ngModel","nzSize","nzPlaceHolder","nzNotFoundContent","nzDropdownClassName","nzAllowClear","nzDropdownStyle","nzCustomTemplate","nzSuffixIcon","nzRemoveIcon","nzClearIcon","nzMenuItemSelectedIcon","nzMaxTagPlaceholder","nzDropdownRender","nzAutoClearSearchValue","nzBorderless","nzAutoFocus","nzDropdownMatchSelectWidth","nzServerSearch","nzMaxMultipleCount","nzMode","nzShowSearch","nzShowArrow","nzTokenSeparators","nzMaxTagCount","compareWith","nzOptionHeightPx","nzOptionOverflowSize","ngModelChange","nzOpenChange","nzOnSearch","nzScrollToBottom"],["nzDisabled","","nzCustomContent",""],[3,"nzLabel","nzValue","nzHide","nzDisabled"],[3,"nzLabel"],[3,"nzLabel","nzValue","nzDisabled","nzHide"],["nz-icon","","nzType","loading"]],template:function(i,r){i&1&&(C(0,"sf-item-wrap",0)(1,"nz-select",1),A("ngModelChange",function(a){return r._value=a})("ngModelChange",function(a){return r.change(a)})("nzOpenChange",function(a){return r.openChange(a)})("nzOnSearch",function(a){return r.onSearch(a)})("nzScrollToBottom",function(){return r.scrollToBottom()}),_(2,P5,2,0)(3,A5,2,0)(4,N5,3,1,"nz-option",2),S()()),i&2&&(h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title),f(),h("nzId",r.id)("nzDisabled",r.disabled)("ngModel",r._value)("nzSize",r.ui.size)("nzPlaceHolder",r.ui.placeholder)("nzNotFoundContent",r.ui.notFoundContent)("nzDropdownClassName",r.ui.dropdownClassName)("nzAllowClear",r.ui.allowClear)("nzDropdownStyle",r.ui.dropdownStyle)("nzCustomTemplate",r.ui.customTemplate)("nzSuffixIcon",r.ui.suffixIcon)("nzRemoveIcon",r.ui.removeIcon)("nzClearIcon",r.ui.clearIcon)("nzMenuItemSelectedIcon",r.ui.menuItemSelectedIcon)("nzMaxTagPlaceholder",r.ui.maxTagPlaceholder)("nzDropdownRender",r.ui.dropdownRender)("nzAutoClearSearchValue",r.i.autoClearSearchValue)("nzBorderless",r.i.borderless)("nzAutoFocus",r.i.autoFocus)("nzDropdownMatchSelectWidth",r.i.dropdownMatchSelectWidth)("nzServerSearch",r.i.serverSearch)("nzMaxMultipleCount",r.i.maxMultipleCount)("nzMode",r.i.mode)("nzShowSearch",r.i.showSearch)("nzShowArrow",r.i.showArrow)("nzTokenSeparators",r.i.tokenSeparators)("nzMaxTagCount",r.i.maxTagCount)("compareWith",r.i.compareWith)("nzOptionHeightPx",r.i.optionHeightPx)("nzOptionOverflowSize",r.i.optionOverflowSize),f(),ie(2,!r.loading&&!r.hasGroup?2:-1),f(),ie(3,!r.loading&&r.hasGroup?3:-1),f(),ie(4,r.loading?4:-1))},dependencies:[Kt,Rt,yi,Fe,zu,Ou,Eu,$r],encapsulation:2});let o=n;return o})(),Ez=(()=>{let n=class n extends Go{constructor(){super(...arguments),this.change$=null}ngOnInit(){let{addOnAfter:t,addOnAfterIcon:i,addOnBefore:r,addOnBeforeIcon:s,prefix:a,prefixIcon:l,suffix:c,suffixIcon:u,autofocus:d}=this.ui;this.type=t||r||i||s||a||l||c||u?"addon":"",d===!0&&setTimeout(()=>{this.injector.get(de).nativeElement.querySelector(`#${this.id}`).focus()},20),this.initChange()}reset(t){!t&&this.schema.format==="color"&&this.setValue("#000000")}initChange(){let t=this.ui.changeDebounceTime,i=this.ui.change;if(t==null||t<=0||i==null)return;this.change$=new ct(this.value);let r=this.change$.asObservable().pipe(Sa(t),F(this.sfItemComp.destroy$));this.ui.changeMap!=null&&(r=r.pipe(on(this.ui.changeMap))),r.subscribe(s=>i(s))}change(t){if(this.setValue(t),this.change$!=null){this.change$.next(t);return}this.ui.change&&this.ui.change(t)}focus(t){this.ui.focus&&this.ui.focus(t)}blur(t){this.ui.blur&&this.ui.blur(t)}enter(t){this.ui.enter&&this.ui.enter(t)}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-string"]],features:[Xe],decls:5,vars:7,consts:[[3,"id","schema","ui","showError","error","showTitle"],["ipt",""],[3,"nzAddOnBefore","nzAddOnAfter","nzAddOnBeforeIcon","nzAddOnAfterIcon","nzPrefix","nzPrefixIcon","nzSuffix","nzSuffixIcon"],["nz-input","",3,"disabled","nzSize","nzBorderless","ngModel","ngModelChange","keyup.enter","focus","blur"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&(C(0,"sf-item-wrap",0),_(1,L5,1,11,"ng-template",null,1,_e)(3,V5,2,9,"nz-input-group",2)(4,H5,1,1),S()),i&2&&(h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title),f(3),ie(3,r.type==="addon"?3:4))},dependencies:[Be,Ii,Kt,Rt,yi,Fa,iv,cT,$r],encapsulation:2});let o=n;return o})(),h6=(()=>{let n=class n extends Go{constructor(){super(...arguments),this.text=""}ngOnInit(){this.ui._required=!1,this.ui.html=mo(this.ui.html,!0)}reset(t){this.text=t||this.ui.defaultText||"-"}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-text"]],features:[Xe],decls:3,vars:9,consts:[[3,"id","schema","ui","showError","error","showTitle"],[3,"innerHTML"],[3,"innerText"]],template:function(i,r){i&1&&(C(0,"sf-item-wrap",0),_(1,B5,1,1,"span",1)(2,$5,1,1),S()),i&2&&(k("sf__text-html",r.ui.html),h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title),f(),ie(1,r.ui.html?1:2))},dependencies:[$r],encapsulation:2});let o=n;return o})(),f6=(()=>{let n=class n extends Go{constructor(){super(...arguments),this.autosize=!0}ngOnInit(){this.ui.autosize!=null&&(this.autosize=this.ui.autosize),this.ui.computeCharacterCount==null&&(this.ui.computeCharacterCount=t=>t.length)}change(t){this.setValue(t),this.ui.change&&this.ui.change(t)}focus(t){this.ui.focus&&this.ui.focus(t)}blur(t){this.ui.blur&&this.ui.blur(t)}};n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["sf-textarea"]],features:[Xe],decls:5,vars:7,consts:[[3,"id","schema","ui","showError","error","showTitle"],["ipt",""],[3,"nzMaxCharacterCount","nzComputeCharacterCount"],["nz-input","",3,"disabled","nzSize","ngModel","nzAutosize","nzBorderless","ngModelChange","focus","blur"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&(C(0,"sf-item-wrap",0),_(1,j5,2,9,"ng-template",null,1,_e)(3,W5,3,11,"nz-textarea-count",2)(4,K5,1,1),S()),i&2&&(h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title),f(3),ie(3,r.ui.maxCharacterCount?3:4))},dependencies:[Be,Ii,Kt,Rt,dT,Fa,uT,$r],encapsulation:2});let o=n;return o})(),lf=class extends Wa{constructor(){super(),this.register("object",u6),this.register("array",o6),this.register("text",h6),this.register("string",Ez),this.register("number",Tz),this.register("integer",Tz),this.register("date",c6),this.register("radio",d6),this.register("checkbox",a6),this.register("boolean",s6),this.register("textarea",f6),this.register("select",p6),this.register("custom",l6),this.setDefault(Ez)}},g6=[Hi,$l,$i,Hs,ac,$s,Ge,Vs,Gs,Gl,Jl,Ls,lc,ji];var vs=(()=>{let n=class n{static forRoot(){return{ngModule:n,providers:[{provide:cf,useClass:Iz,deps:[In,$e]},{provide:Wa,useClass:lf}]}}};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Zn,nn,lm,g6]});let o=n;return o})();function nCe(o){let n=[{provide:cf,useClass:Iz,deps:[In,$e]},{provide:Wa,useClass:lf}];return o?.widgets&&n.push({provide:wa,multi:!0,useValue:()=>{let e=ae(Wa);o?.widgets?.forEach(t=>e.register(t.KEY,t.type))}}),ba(n)}function m6(o,n){if(o&1&&(H(0),R(1,"span",1),B()),o&2){let e=n.$implicit;f(),h("nzType",e)}}function v6(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m().$implicit;f(),Ne(" ",e.tab.label," ")}}var y6=()=>({visible:!1});function C6(o,n){if(o&1){let e=Q();C(0,"li",8),A("click",function(){let r=I(e).$implicit,s=m(2);return P(s.onSelect(r))})("contextmenu",function(i){let s=I(e).$implicit,a=m(2);return P(a.onContextmenu(s,i))}),_(1,v6,2,1,"ng-container",9),S()}if(o&2){let e=n.$implicit;k("ant-tabs-dropdown-menu-item-disabled",e.disabled),h("nzSelected",e.active)("nzDisabled",e.disabled),f(),h("nzStringTemplateOutlet",e.tab.label)("nzStringTemplateOutletContext",ii(6,y6))}}function _6(o,n){if(o&1&&(C(0,"ul",6),_(1,C6,2,7,"li",7),S()),o&2){let e=m();f(),h("ngForOf",e.items)}}function S6(o,n){if(o&1){let e=Q();C(0,"button",10),A("click",function(){I(e);let i=m();return P(i.addClicked.emit())}),S()}if(o&2){let e=m();h("addIcon",e.addIcon)}}var w6=()=>({minWidth:"46px"}),b6=["navWarp"],T6=["navList"];function E6(o,n){if(o&1){let e=Q();C(0,"button",8),A("click",function(){I(e);let i=m();return P(i.addClicked.emit())}),S()}if(o&2){let e=m();h("addIcon",e.addIcon),ze("tabindex",-1)}}function x6(o,n){}function z6(o,n){if(o&1&&(C(0,"div",9),_(1,x6,0,0,"ng-template",10),S()),o&2){let e=m();f(),h("ngTemplateOutlet",e.extraTemplate)}}var O6=["*"],D6=["nz-tab-body",""];function R6(o,n){}function I6(o,n){if(o&1&&(H(0),_(1,R6,0,0,"ng-template",1),B()),o&2){let e=m();f(),h("ngTemplateOutlet",e.content)}}function P6(o,n){if(o&1&&(H(0),R(1,"span",1),B()),o&2){let e=n.$implicit;f(),h("nzType",e)}}var M6=["contentTemplate"];function F6(o,n){o&1&&Ie(0)}function A6(o,n){o&1&&Ie(0,1)}var N6=[[["","nz-tab-link",""]],"*"],L6=["[nz-tab-link]","*"];function k6(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m().$implicit;f(),ye(e.label)}}function V6(o,n){if(o&1){let e=Q();C(0,"button",10),A("click",function(i){I(e);let r=m().index,s=m(2);return P(s.onClose(r,i))}),S()}if(o&2){let e=m().$implicit;h("closeIcon",e.nzCloseIcon)}}var G6=()=>({visible:!0});function H6(o,n){if(o&1){let e=Q();C(0,"div",6),A("click",function(i){let r=I(e),s=r.$implicit,a=r.index,l=m(2);return P(l.clickNavItem(s,a,i))})("contextmenu",function(i){let s=I(e).$implicit,a=m(2);return P(a.contextmenuNavItem(s,i))}),C(1,"button",7),_(2,k6,2,1,"ng-container",8)(3,V6,1,1,"button",9),S()()}if(o&2){let e=n.$implicit,t=n.index,i=m(2);Re("margin-right",i.position==="horizontal"?i.nzTabBarGutter:null,"px")("margin-bottom",i.position==="vertical"?i.nzTabBarGutter:null,"px"),k("ant-tabs-tab-active",i.nzSelectedIndex===t)("ant-tabs-tab-disabled",e.nzDisabled),f(),h("id",i.getTabContentId(t))("disabled",e.nzDisabled)("tab",e)("active",i.nzSelectedIndex===t),ze("tabIndex",i.getTabIndex(e,t))("aria-disabled",e.nzDisabled)("aria-selected",i.nzSelectedIndex===t&&!i.nzHideAll)("aria-controls",i.getTabContentId(t)),f(),h("nzStringTemplateOutlet",e.label)("nzStringTemplateOutletContext",ii(19,G6)),f(),h("ngIf",e.nzClosable&&i.closable&&!e.nzDisabled)}}function B6(o,n){if(o&1){let e=Q();C(0,"nz-tabs-nav",4),A("tabScroll",function(i){I(e);let r=m();return P(r.nzTabListScroll.emit(i))})("selectFocusedIndex",function(i){I(e);let r=m();return P(r.setSelectedIndex(i))})("addClicked",function(){I(e);let i=m();return P(i.onAdd())}),_(1,H6,4,20,"div",5),S()}if(o&2){let e=m();h("ngStyle",e.nzTabBarStyle)("selectedIndex",e.nzSelectedIndex||0)("inkBarAnimated",e.inkBarAnimated)("addable",e.addable)("addIcon",e.nzAddIcon)("hideBar",e.nzHideAll)("position",e.position)("extraTemplate",e.nzTabBarExtraContent),f(),h("ngForOf",e.tabs)}}function $6(o,n){if(o&1&&R(0,"div",11),o&2){let e=n.$implicit,t=n.index,i=m();h("id",i.getTabContentId(t))("active",i.nzSelectedIndex===t&&!i.nzHideAll)("content",e.content)("forceRender",e.nzForceRender)("tabPaneAnimated",i.tabPaneAnimated),ze("aria-labelledby",i.getTabContentId(t))}}var hf=(()=>{let n=class n{constructor(t){this.elementRef=t,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}};n.\u0275fac=function(i){return new(i||n)(w(de))},n.\u0275cmp=j({type:n,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"},standalone:!0,features:[K],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(i,r){i&1&&_(0,m6,2,1,"ng-container",0),i&2&&h("nzStringTemplateOutlet",r.addIcon)},dependencies:[Ye,Ue,Ge,Fe],encapsulation:2});let o=n;return o})(),Nz=(()=>{let n=class n{get _animated(){return this.animationMode!=="NoopAnimations"&&this.animated}constructor(t,i,r){this.elementRef=t,this.ngZone=i,this.animationMode=r,this.position="horizontal",this.animated=!0}alignToElement(t){this.ngZone.runOutsideAngular(()=>{to(()=>this.setStyles(t))})}setStyles(t){let i=this.elementRef.nativeElement;this.position==="horizontal"?(i.style.top="",i.style.height="",i.style.left=this.getLeftPosition(t),i.style.width=this.getElementWidth(t)):(i.style.left="",i.style.width="",i.style.top=this.getTopPosition(t),i.style.height=this.getElementHeight(t))}getLeftPosition(t){return t?`${t.offsetLeft||0}px`:"0"}getElementWidth(t){return t?`${t.offsetWidth||0}px`:"0"}getTopPosition(t){return t?`${t.offsetTop||0}px`:"0"}getElementHeight(t){return t?`${t.offsetHeight||0}px`:"0"}};n.\u0275fac=function(i){return new(i||n)(w(de),w($e),w(TS,8))},n.\u0275dir=Se({type:n,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-tabs-ink-bar-animated",r._animated)},inputs:{position:"position",animated:"animated"},standalone:!0});let o=n;return o})(),Gz=(()=>{let n=class n{constructor(t){this.elementRef=t,this.disabled=!1,this.active=!1,this.el=t.nativeElement,this.parentElement=this.el.parentElement}focus(){this.el.focus()}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}};n.\u0275fac=function(i){return new(i||n)(w(de))},n.\u0275dir=Se({type:n,selectors:[["","nzTabNavItem",""]],inputs:{disabled:"disabled",tab:"tab",active:"active"},standalone:!0});let o=n;return o})(),yC=(()=>{let n=class n{constructor(t,i){this.cdr=t,this.elementRef=i,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new O,this.selected=new O,this.closeAnimationWaitTimeoutId=-1,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))}onContextmenu(t,i){t.disabled||t.tab.nzContextmenu.emit(i)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(t){t||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(de))},n.\u0275cmp=j({type:n,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-tabs-nav-operations-hidden",r.items.length===0)},inputs:{items:"items",addable:"addable",addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],standalone:!0,features:[K],decls:7,vars:6,consts:[["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement","nzVisibleChange","mouseenter"],["dropdownTrigger","nzDropdown"],["nz-icon","","nzType","ellipsis"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"nzSelected","nzDisabled","click","contextmenu"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"addIcon","click"]],template:function(i,r){if(i&1&&(C(0,"button",0,1),A("nzVisibleChange",function(a){return r.menuVisChange(a)})("mouseenter",function(){return r.showItems()}),R(2,"span",2),S(),C(3,"nz-dropdown-menu",null,3),_(5,_6,2,1,"ul",4),S(),_(6,S6,1,1,"button",5)),i&2){let s=te(4);h("nzDropdownMenu",s)("nzOverlayStyle",ii(5,w6))("nzMatchWidthElement",null),f(5),h("ngIf",r.menuOpened),f(),h("ngIf",r.addable)}},dependencies:[Ge,Fe,we,lt,Ye,Ue,hf,us,ec,cs,co,yr],encapsulation:2,changeDetection:0});let o=n;return o})(),j6=.1,Lz=.01,pf=20,kz=.995**pf,W6=(()=>{let n=class n{constructor(t,i){this.ngZone=t,this.elementRef=i,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=()=>{},this.offsetChange=new O,this.tabScroll=new O,this.onTouchEnd=r=>{if(!this.touchPosition)return;let s=this.lastOffset,a=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,s){let l=s.x/a,c=s.y/a,u=Math.abs(l),d=Math.abs(c);if(Math.max(u,d)<j6)return;let p=l,g=c;this.motion=window.setInterval(()=>{if(Math.abs(p)<Lz&&Math.abs(g)<Lz){window.clearInterval(this.motion);return}p*=kz,g*=kz,this.onOffset(p*pf,g*pf,r)},pf)}},this.onTouchMove=r=>{if(!this.touchPosition)return;r.preventDefault();let{screenX:s,screenY:a}=r.touches[0],l=s-this.touchPosition.x,c=a-this.touchPosition.y;this.onOffset(l,c,r);let u=Date.now();this.lastTimeDiff=u-this.lastTimestamp,this.lastTimestamp=u,this.lastOffset={x:l,y:c},this.touchPosition={x:s,y:a}},this.onTouchStart=r=>{let{screenX:s,screenY:a}=r.touches[0];this.touchPosition={x:s,y:a},window.clearInterval(this.motion)},this.onWheel=r=>{let{deltaX:s,deltaY:a}=r,l,c=Math.abs(s),u=Math.abs(a);c===u?l=this.lastWheelDirection==="x"?s:a:c>u?(l=s,this.lastWheelDirection="x"):(l=a,this.lastWheelDirection="y");let d=Date.now(),p=Math.abs(l);(d-this.lastWheelTimestamp>100||p-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-l,-l,r),(r.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=d,this.lastMixedWheel=p}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{let t=this.elementRef.nativeElement,i=Ke(t,"wheel"),r=Ke(t,"touchstart"),s=Ke(t,"touchmove"),a=Ke(t,"touchend"),l=new lr;return l.add(this.subscribeWrap("wheel",i,this.onWheel)),l.add(this.subscribeWrap("touchstart",r,this.onTouchStart)),l.add(this.subscribeWrap("touchmove",s,this.onTouchMove)),l.add(this.subscribeWrap("touchend",a,this.onTouchEnd)),()=>{l.unsubscribe()}})}subscribeWrap(t,i,r){return i.subscribe(s=>{this.tabScroll.emit({type:t,event:s}),s.defaultPrevented||r(s)})}onOffset(t,i,r){this.ngZone.run(()=>{this.offsetChange.emit({x:t,y:i,event:r})})}ngOnDestroy(){this.unsubscribe()}};n.\u0275fac=function(i){return new(i||n)(w($e),w(de))},n.\u0275dir=Se({type:n,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"},standalone:!0});let o=n;return o})(),U6=typeof requestAnimationFrame<"u"?uS:ap,Vz=150,CC=(()=>{let n=class n{get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let i=Qg(t);this._selectedIndex!==i&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))}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}constructor(t,i,r,s,a){this.cdr=t,this.ngZone=i,this.viewportRuler=r,this.nzResizeObserver=s,this.dir=a,this.indexFocused=new O,this.selectFocusedIndex=new O,this.addClicked=new O,this.tabScroll=new O,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new J,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1,this.lockAnimationTimeoutId=-1,this.cssTransformTimeWaitingId=-1}ngAfterViewInit(){let t=this.dir?this.dir.change.asObservable():Mn(null),i=this.viewportRuler.change(150),r=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new ew(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),to(r),_t(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe(F(this.destroy$),zs(16,U6)).subscribe(()=>{r()}),_t(t,i,this.items.changes).pipe(F(this.destroy$)).subscribe(()=>{Promise.resolve().then(r),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe(F(this.destroy$)).subscribe(s=>{this.indexFocused.emit(s),this.setTabFocus(s),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}ngOnDestroy(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}onSelectedFromMenu(t){let i=this.items.toArray().findIndex(r=>r===t);i!==-1&&(this.keyManager.updateActiveItem(i),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))}onOffsetChange(t){if(this.position==="horizontal"){if(this.lockAnimationTimeoutId===-1&&(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===-1&&(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){let i=this.navWarpRef.nativeElement.contains(t.target);if(!(Nl(t)||!i))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 i=this.items?this.items.toArray()[t]:null;return!!i&&!i.disabled}scrollToTab(t){if(!this.items.find(r=>r===t))return;let i=this.items.toArray();if(this.position==="horizontal"){let r=this.transformX;if(this.getLayoutDirection()==="rtl"){let s=i[0].left+i[0].width-t.left-t.width;s<this.transformX?r=s:s+t.width>this.transformX+this.wrapperWidth&&(r=s+t.width-this.wrapperWidth)}else t.left<-this.transformX?r=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(r=-(t.left+t.width-this.wrapperWidth));this.transformX=r,this.transformY=0,this.setTransform(r,0)}else{let r=this.transformY;t.top<-this.transformY?r=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(r=-(t.top+t.height-this.wrapperHeight)),this.transformY=r,this.transformX=0,this.setTransform(0,r)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},Vz)}lockAnimation(){this.lockAnimationTimeoutId===-1&&this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=-1},Vz)})}setTransform(t,i){this.navListRef.nativeElement.style.transform=`translate(${t}px, ${i}px)`}clampTransformX(t){let i=this.wrapperWidth-this.scrollListWidth;return this.getLayoutDirection()==="rtl"?Math.max(Math.min(i,t),0):Math.min(Math.max(i,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?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.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,i=t?t.elementRef.nativeElement:null;i&&this.inkBar.alignToElement(i.parentElement)}setPingStatus(){let t={top:!1,right:!1,bottom:!1,left:!1},i=this.navWarpRef.nativeElement;this.position==="horizontal"?this.getLayoutDirection()==="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(r=>{let s=`ant-tabs-nav-wrap-ping-${r}`;t[r]?i.classList.add(s):i.classList.remove(s)})}setVisibleRange(){let t,i,r,s,a,l,c=this.items.toArray(),u={width:0,height:0,left:0,top:0,right:0},d=z=>{let M,G=c[z]||u;return i==="right"?M=c[0].left+c[0].width-c[z].left-c[z].width:M=G[i],M};this.position==="horizontal"?(t="width",s=this.wrapperWidth,a=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),l=this.addButtonWidth,r=Math.abs(this.transformX),this.getLayoutDirection()==="rtl"?(i="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,i="left")):(t="height",s=this.wrapperHeight,a=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),l=this.addButtonHeight,i="top",r=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);let p=s;if(a+l>s&&(p=s-l),!c.length){this.hiddenItems=[],this.cdr.markForCheck();return}let g=c.length,v=g;for(let z=0;z<g;z+=1){let M=d(z),G=c[z]||u;if(M+G[t]>r+p){v=z-1;break}}let y=0;for(let z=g-1;z>=0;z-=1)if(d(z)<r){y=z+1;break}let x=c.slice(0,y),E=c.slice(v+1);this.hiddenItems=[...x,...E],this.cdr.markForCheck()}getLayoutDirection(){return this.dir&&this.dir.value==="rtl"?"rtl":"ltr"}setTabFocus(t){}ngOnChanges(t){let{position:i}=t;i&&!i.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())}};n.\u0275fac=function(i){return new(i||n)(w(fe),w($e),w(ZS),w(ds),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-tabs-nav"]],contentQueries:function(i,r,s){if(i&1&&Ft(s,Gz,5),i&2){let a;ce(a=ue())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&(xe(b6,7),xe(T6,7),xe(yC,7),xe(hf,5),xe(Nz,7)),i&2){let s;ce(s=ue())&&(r.navWarpRef=s.first),ce(s=ue())&&(r.navListRef=s.first),ce(s=ue())&&(r.operationRef=s.first),ce(s=ue())&&(r.addBtnRef=s.first),ce(s=ue())&&(r.inkBar=s.first)}},hostAttrs:[1,"ant-tabs-nav"],hostBindings:function(i,r){i&1&&A("keydown",function(a){return r.handleKeydown(a)})},inputs:{position:"position",addable:"addable",hideBar:"hideBar",addIcon:"addIcon",inkBarAnimated:"inkBarAnimated",extraTemplate:"extraTemplate",selectedIndex:"selectedIndex"},outputs:{indexFocused:"indexFocused",selectFocusedIndex:"selectFocusedIndex",addClicked:"addClicked",tabScroll:"tabScroll"},exportAs:["nzTabsNav"],standalone:!0,features:[oe,K],ngContentSelectors:O6,decls:9,vars:16,consts:[[1,"ant-tabs-nav-wrap"],["navWarp",""],["nzTabScrollList","","role","tablist",1,"ant-tabs-nav-list",3,"offsetChange","tabScroll"],["navList",""],["role","tab","nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-tabs-ink-bar","",3,"hidden","position","animated"],[3,"addIcon","addable","items","addClicked","selected"],["class","ant-tabs-extra-content",4,"ngIf"],["role","tab","nz-tab-add-button","",3,"addIcon","click"],[1,"ant-tabs-extra-content"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&(Pe(),C(0,"div",0,1)(2,"div",2,3),A("offsetChange",function(a){return r.onOffsetChange(a)})("tabScroll",function(a){return r.tabScroll.emit(a)}),Ie(4),_(5,E6,1,2,"button",4),R(6,"div",5),S()(),C(7,"nz-tab-nav-operation",6),A("addClicked",function(){return r.addClicked.emit()})("selected",function(a){return r.onSelectedFromMenu(a)}),S(),_(8,z6,2,1,"div",7)),i&2&&(k("ant-tabs-nav-wrap-ping-left",r.pingLeft)("ant-tabs-nav-wrap-ping-right",r.pingRight)("ant-tabs-nav-wrap-ping-top",r.pingTop)("ant-tabs-nav-wrap-ping-bottom",r.pingBottom),f(5),h("ngIf",r.showAddButton),f(),h("hidden",r.hideBar)("position",r.position)("animated",r.inkBarAnimated),f(),h("addIcon",r.addIcon)("addable",r.addable)("items",r.hiddenItems),f(),h("ngIf",r.extraTemplate))},dependencies:[W6,we,hf,Nz,yC,Be],encapsulation:2,changeDetection:0});let o=n;return o})(),K6=(()=>{let n=class n{constructor(){this.content=null,this.active=!1,this.tabPaneAnimated=!0,this.forceRender=!1}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:12,hostBindings:function(i,r){i&2&&(ze("tabindex",r.active?0:-1)("aria-hidden",!r.active),Re("visibility",r.tabPaneAnimated?r.active?null:"hidden":null)("height",r.tabPaneAnimated?r.active?null:0:null)("overflow-y",r.tabPaneAnimated?r.active?null:"none":null)("display",r.tabPaneAnimated||r.active?null:"none"),k("ant-tabs-tabpane-active",r.active))},inputs:{content:"content",active:"active",tabPaneAnimated:"tabPaneAnimated",forceRender:"forceRender"},exportAs:["nzTabBody"],standalone:!0,features:[K],attrs:D6,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(i,r){i&1&&_(0,I6,2,1,"ng-container",0),i&2&&h("ngIf",r.active||r.forceRender)},dependencies:[we,Be],encapsulation:2,changeDetection:0});let o=n;return o})(),Hz=(()=>{let n=class n{constructor(){this.closeIcon="close"}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},standalone:!0,features:[K],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(i,r){i&1&&_(0,P6,2,1,"ng-container",0),i&2&&h("nzStringTemplateOutlet",r.closeIcon)},dependencies:[Ye,Ue,Ge,Fe],encapsulation:2});let o=n;return o})(),q6=(()=>{let n=class n{constructor(t){this.templateRef=t}};n.\u0275fac=function(i){return new(i||n)(w(En,1))},n.\u0275dir=Se({type:n,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"],standalone:!0});let o=n;return o})(),Y6=(()=>{let n=class n{constructor(t,i){this.elementRef=t,this.routerLink=i}};n.\u0275fac=function(i){return new(i||n)(w(de),w(Po,10))},n.\u0275dir=Se({type:n,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"],standalone:!0});let o=n;return o})(),Q6=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["","nz-tab",""]],exportAs:["nzTab"],standalone:!0});let o=n;return o})(),Bz=new hn("NZ_TAB_SET"),X6=(()=>{let n=class n{get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}constructor(t){this.closestTabSet=t,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new O,this.nzDeselect=new O,this.nzClick=new O,this.nzContextmenu=new O,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new J}ngOnChanges(t){let{nzTitle:i,nzDisabled:r,nzForceRender:s}=t;(i||r||s)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}};n.\u0275fac=function(i){return new(i||n)(w(Bz))},n.\u0275cmp=j({type:n,selectors:[["nz-tab"]],contentQueries:function(i,r,s){if(i&1&&(Ft(s,q6,5),Ft(s,Q6,5,En),Ft(s,Y6,5)),i&2){let a;ce(a=ue())&&(r.nzTabLinkTemplateDirective=a.first),ce(a=ue())&&(r.template=a.first),ce(a=ue())&&(r.linkDirective=a.first)}},viewQuery:function(i,r){if(i&1&&xe(M6,7),i&2){let s;ce(s=ue())&&(r.contentTemplate=s.first)}},inputs:{nzTitle:"nzTitle",nzClosable:"nzClosable",nzCloseIcon:"nzCloseIcon",nzDisabled:"nzDisabled",nzForceRender:"nzForceRender"},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],standalone:!0,features:[oe,K],ngContentSelectors:L6,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(i,r){i&1&&(Pe(N6),_(0,F6,1,0,"ng-template",null,0,_e)(2,A6,1,0,"ng-template",null,1,_e))},encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzClosable",void 0),N([W()],o.prototype,"nzDisabled",void 0),N([W()],o.prototype,"nzForceRender",void 0),o})(),_C=class{},Z6="tabs",J6=0,e9=(()=>{let n=class n{get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(t){this.indexToSelect=Qg(t,null)}get position(){return["top","bottom"].indexOf(this.nzTabPosition)===-1?"vertical":"horizontal"}get addable(){return this.nzType==="editable-card"&&!this.nzHideAdd}get closable(){return this.nzType==="editable-card"}get line(){return this.nzType==="line"}get inkBarAnimated(){return this.line&&(typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return this.position==="horizontal"&&this.line&&(typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.tabPane)}constructor(t,i,r,s,a){this.nzConfigService=t,this.ngZone=i,this.cdr=r,this.directionality=s,this.router=a,this._nzModuleName=Z6,this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new O(!0),this.nzSelectedIndexChange=new O,this.nzTabListScroll=new O,this.nzClose=new O,this.nzAdd=new O,this.allTabs=new Kg,this.tabs=new Kg,this.dir="ltr",this.destroy$=new J,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=lr.EMPTY,this.tabsSubscription=lr.EMPTY,this.canDeactivateSubscription=lr.EMPTY,this.tabSetId=J6++}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){let i=this.tabs.toArray();for(let r=0;r<i.length;r++)if(i[r].isActive){this.indexToSelect=this.selectedIndex=r;break}}this.subscribeToTabLabels(),this.cdr.markForCheck()})}ngAfterContentChecked(){let t=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==t){let i=this.selectedIndex==null;i||this.nzSelectChange.emit(this.createChangeEvent(t)),Promise.resolve().then(()=>{this.tabs.forEach((r,s)=>r.isActive=s===t),i||this.nzSelectedIndexChange.emit(t)})}this.tabs.forEach((i,r)=>{i.position=r-t,this.selectedIndex!=null&&i.position===0&&!i.origin&&(i.origin=t-this.selectedIndex)}),this.selectedIndex!==t&&(this.selectedIndex=t,this.cdr.markForCheck())}onClose(t,i){i.preventDefault(),i.stopPropagation(),this.nzClose.emit({index:t})}onAdd(){this.nzAdd.emit()}clampTabIndex(t){return Math.min(this.tabs.length-1,Math.max(t||0,0))}createChangeEvent(t){let i=new _C;return i.index=t,this.tabs&&this.tabs.length&&(i.tab=this.tabs.toArray()[t],this.tabs.forEach((r,s)=>{s!==t&&r.nzDeselect.emit()}),i.tab.nzSelect.emit()),i}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=_t(...this.tabs.map(t=>t.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe(Ot(this.allTabs)).subscribe(t=>{this.tabs.reset(t.filter(i=>i.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(t,i){return typeof this.nzCanDeactivate=="function"?mp(this.nzCanDeactivate(t,i)).pipe(xl(),F(this.destroy$)):Mn(!0)}clickNavItem(t,i,r){t.nzDisabled||(t.nzClick.emit(),this.isRouterLinkClickEvent(i,r)||this.setSelectedIndex(i))}isRouterLinkClickEvent(t,i){let r=i.target;return this.nzLinkRouter?!!this.tabs.toArray()[t]?.linkDirective?.elementRef.nativeElement.contains(r):!1}contextmenuNavItem(t,i){t.nzDisabled||t.nzContextmenu.emit(i)}setSelectedIndex(t){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,t).subscribe(i=>{i&&(this.nzSelectedIndex=t,this.tabNavBarRef.focusIndex=t,this.cdr.markForCheck())})}getTabIndex(t,i){return t.nzDisabled?null:this.selectedIndex===i?0:-1}getTabContentId(t){return`nz-tabs-${this.tabSetId}-tab-${t}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${gp} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe(F(this.destroy$),Qe(t=>t instanceof Io),Ot(!0),Os(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){let t=this.findShouldActiveTabIndex();t!==this.selectedIndex&&this.setSelectedIndex(t),this.nzHideAll=t===-1}}findShouldActiveTabIndex(){let t=this.tabs.toArray(),i=this.isLinkActive(this.router);return t.findIndex(r=>{let s=r.linkDirective;return s?i(s.routerLink):!1})}isLinkActive(t){return i=>i?t.isActive(i.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"}):!1}getTabContentMarginValue(){return-(this.nzSelectedIndex||0)*100}getTabContentMarginLeft(){return this.tabPaneAnimated&&this.dir!=="rtl"?`${this.getTabContentMarginValue()}%`:""}getTabContentMarginRight(){return this.tabPaneAnimated&&this.dir==="rtl"?`${this.getTabContentMarginValue()}%`:""}};n.\u0275fac=function(i){return new(i||n)(w(st),w($e),w(fe),w(Me,8),w(mi,8))},n.\u0275cmp=j({type:n,selectors:[["nz-tabset"]],contentQueries:function(i,r,s){if(i&1&&Ft(s,X6,5),i&2){let a;ce(a=ue())&&(r.allTabs=a)}},viewQuery:function(i,r){if(i&1&&xe(CC,5),i&2){let s;ce(s=ue())&&(r.tabNavBarRef=s.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(i,r){i&2&&k("ant-tabs-card",r.nzType==="card"||r.nzType==="editable-card")("ant-tabs-editable",r.nzType==="editable-card")("ant-tabs-editable-card",r.nzType==="editable-card")("ant-tabs-centered",r.nzCentered)("ant-tabs-rtl",r.dir==="rtl")("ant-tabs-top",r.nzTabPosition==="top")("ant-tabs-bottom",r.nzTabPosition==="bottom")("ant-tabs-left",r.nzTabPosition==="left")("ant-tabs-right",r.nzTabPosition==="right")("ant-tabs-default",r.nzSize==="default")("ant-tabs-small",r.nzSize==="small")("ant-tabs-large",r.nzSize==="large")},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:"nzHideAdd",nzCentered:"nzCentered",nzHideAll:"nzHideAll",nzLinkRouter:"nzLinkRouter",nzLinkExact:"nzLinkExact"},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],standalone:!0,features:[Ve([{provide:Bz,useExisting:n}]),K],decls:4,vars:16,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","tabPaneAnimated",4,"ngFor","ngForOf"],[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["nz-tab-close-button","",3,"closeIcon","click"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","tabPaneAnimated"]],template:function(i,r){i&1&&(_(0,B6,2,9,"nz-tabs-nav",0),C(1,"div",1)(2,"div",2),_(3,$6,1,6,"div",3),S()()),i&2&&(h("ngIf",r.tabs.length||r.addable),f(2),Re("margin-left",r.getTabContentMarginLeft())("margin-right",r.getTabContentMarginRight()),k("ant-tabs-content-top",r.nzTabPosition==="top")("ant-tabs-content-bottom",r.nzTabPosition==="bottom")("ant-tabs-content-left",r.nzTabPosition==="left")("ant-tabs-content-right",r.nzTabPosition==="right")("ant-tabs-content-animated",r.tabPaneAnimated),f(),h("ngForOf",r.tabs))},dependencies:[CC,we,Zt,lt,Gz,Cp,nw,Ye,Ue,Hz,K6],encapsulation:2});let o=n;return N([De()],o.prototype,"nzType",void 0),N([De()],o.prototype,"nzSize",void 0),N([De()],o.prototype,"nzAnimated",void 0),N([De()],o.prototype,"nzTabBarGutter",void 0),N([W()],o.prototype,"nzHideAdd",void 0),N([W()],o.prototype,"nzCentered",void 0),N([W()],o.prototype,"nzHideAll",void 0),N([W()],o.prototype,"nzLinkRouter",void 0),N([W()],o.prototype,"nzLinkExact",void 0),o})();var ff=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[e9,CC,yC,hf,Hz]});let o=n;return o})();var xc=function(o){return o[o.Menu=0]="Menu",o[o.MenuForce=1]="MenuForce",o[o.URL=2]="URL",o}(xc||{}),n9=new hn("REUSE_TAB_CACHED_MANAGER");var i9=new hn("REUSE_TAB_STORAGE_KEY"),r9=new hn("REUSE_TAB_STORAGE_STATE");var $z=(()=>{let n=class n{get snapshot(){return this.injector.get(dp).snapshot}get inited(){return this._inited}get curUrl(){return this.getUrl(this.snapshot)}set max(t){this._max=Math.min(Math.max(t,2),100);for(let i=this.cached.list.length;i>this._max;i--)this.cached.list.pop()}set keepingScroll(t){this._keepingScroll=t,this.initScroll()}get keepingScroll(){return this._keepingScroll}get items(){return this.cached.list}get count(){return this.cached.list.length}get change(){return this._cachedChange.asObservable()}set title(t){let i=this.curUrl;typeof t=="string"&&(t={text:t}),this.cached.title[i]=t,this.di("update current tag title: ",t),this._cachedChange.next({active:"title",url:i,title:t,list:this.cached.list})}index(t){return this.cached.list.findIndex(i=>i.url===t)}exists(t){return this.index(t)!==-1}get(t){return t&&this.cached.list.find(i=>i.url===t)||null}remove(t,i){let r=typeof t=="string"?this.index(t):t,s=r!==-1?this.cached.list[r]:null;return!s||!i&&!s.closable?!1:(this.destroy(s._handle),this.cached.list.splice(r,1),delete this.cached.title[t],!0)}close(t,i=!1){return this.removeUrlBuffer=t,this.remove(t,i),this._cachedChange.next({active:"close",url:t,list:this.cached.list}),this.di("close tag",t),!0}closeRight(t,i=!1){let r=this.index(t);for(let s=this.count-1;s>r;s--)this.remove(s,i);return this.removeUrlBuffer=null,this._cachedChange.next({active:"closeRight",url:t,list:this.cached.list}),this.di("close right tages",t),!0}clear(t=!1){this.cached.list.forEach(i=>{!t&&i.closable&&this.destroy(i._handle)}),this.cached.list=this.cached.list.filter(i=>!t&&!i.closable),this.removeUrlBuffer=null,this._cachedChange.next({active:"clear",list:this.cached.list}),this.di("clear all catch")}move(t,i){let r=this.cached.list.findIndex(a=>a.url===t);if(r===-1)return;let s=this.cached.list.slice();s.splice(i<0?s.length+i:i,0,s.splice(r,1)[0]),this.cached.list=s,this._cachedChange.next({active:"move",url:t,position:i,list:this.cached.list})}replace(t){let i=this.curUrl;this.injector.get(mi).navigateByUrl(t).then(()=>{this.exists(i)?this.close(i,!0):this.removeUrlBuffer=i})}getTitle(t,i){if(this.cached.title[t])return this.cached.title[t];if(i&&i.data&&(i.data.titleI18n||i.data.title))return{text:i.data.title,i18n:i.data.titleI18n};let r=this.getMenu(t);return r?{text:r.text,i18n:r.i18n}:{text:t}}clearTitleCached(){this.cached.title={}}set closable(t){let i=this.curUrl;this.cached.closable[i]=t,this.di("update current tag closable: ",t),this._cachedChange.next({active:"closable",closable:t,list:this.cached.list})}getClosable(t,i){if(typeof this.cached.closable[t]<"u")return this.cached.closable[t];if(i&&i.data&&typeof i.data.reuseClosable=="boolean")return i.data.reuseClosable;let r=this.mode!==xc.URL?this.getMenu(t):null;return r&&typeof r.reuseClosable=="boolean"?r.reuseClosable:!0}clearClosableCached(){this.cached.closable={}}getTruthRoute(t){let i=t;for(;i.firstChild;)i=i.firstChild;return i}getUrl(t){let i=this.getTruthRoute(t),r=[];for(;i;)r.push(i.url.join("/")),i=i.parent;return`/${r.filter(a=>a).reverse().join("/")}`}can(t){let i=this.getUrl(t);if(i===this.removeUrlBuffer)return!1;if(t.data&&typeof t.data.reuse=="boolean")return t.data.reuse;if(this.mode!==xc.URL){let r=this.getMenu(i);if(!r)return!1;if(this.mode===xc.Menu){if(r.reuse===!1)return!1}else if(!r.reuse||r.reuse!==!0)return!1;return!0}return!this.isExclude(i)}isExclude(t){return this.excludes.findIndex(i=>i.test(t))!==-1}refresh(t){this._cachedChange.next({active:"refresh",data:t})}destroy(t){t&&t.componentRef&&t.componentRef.destroy&&t.componentRef.destroy()}di(...t){}constructor(){this.injector=ae($n),this.menuService=ae(xp),this.cached=ae(n9),this.stateKey=ae(i9),this.stateSrv=ae(r9),this._inited=!1,this._max=10,this._keepingScroll=!1,this._cachedChange=new ct(null),this.removeUrlBuffer=null,this.positionBuffer={},this.debug=!1,this.routeParamMatchMode="strict",this.mode=xc.Menu,this.excludes=[],this.storageState=!1,this.cached==null&&(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(t=>({title:{text:t.title},url:t.url,position:t.position})),this._cachedChange.next({active:"loadState"}))}getMenu(t){let i=this.menuService.getPathByUrl(t);return!i||i.length===0?null:i.pop()}runHook(t,i,r="init"){if(typeof i=="number"&&(i=this.cached.list[i]._handle?.componentRef),i==null||!i.instance)return;let s=i.instance,a=s[t];typeof a=="function"&&(t==="_onReuseInit"?a.call(s,r):a.call(s))}hasInValidRoute(t){return!t.routeConfig||!!t.routeConfig.loadChildren||!!t.routeConfig.children}shouldDetach(t){return this.hasInValidRoute(t)?!1:(this.di("#shouldDetach",this.can(t),this.getUrl(t)),this.can(t))}saveCache(t,i,r){let s=this.getTruthRoute(t),a=this.getUrl(t),l=this.index(a),c={title:this.getTitle(a,s),url:a,closable:this.getClosable(a,t),_snapshot:t,_handle:i};if(l<0){if(this.items.splice(r??this.items.length,0,c),this.count>this._max){let u=this.items.findIndex(d=>d.url!==a&&d.closable);if(u!==-1){let d=this.items[u];this.remove(u,!1),nu(1).pipe(Zr(1)).subscribe(()=>this._cachedChange.next({active:"close",url:d.url,list:this.cached.list}))}}}else this.items[l]=c}store(t,i){let r=this.getUrl(t),s=this.index(r);if(s===-1)return;i!=null&&this.saveCache(t,i);let a=this.cached.list,l={title:this.getTitle(r,t),closable:this.getClosable(r,t),position:this.getKeepingScroll(r,t)?this.positionBuffer[r]:null,url:r,_snapshot:t,_handle:i},c=a[s]._handle?.componentRef;i==null&&c!=null&&nu(100).pipe(Zr(1)).subscribe(()=>this.runHook("_onReuseInit",c)),a[s]=l,this.removeUrlBuffer=null,this.di("#store","[override]",r),i&&i.componentRef&&this.runHook("_onReuseDestroy",i.componentRef),this._cachedChange.next({active:"override",item:l,list:a})}shouldAttach(t){if(this.hasInValidRoute(t))return!1;let i=this.getUrl(t),r=this.get(i),s=!!(r&&r._handle);return this.di("#shouldAttach",s,i),s||this._cachedChange.next({active:"add",url:i,list:this.cached.list}),s}retrieve(t){if(this.hasInValidRoute(t))return null;let i=this.getUrl(t),r=this.get(i),s=r&&r._handle||null;return this.di("#retrieve",i,s),s}shouldReuseRoute(t,i){let r=t.routeConfig===i.routeConfig;if(!r)return!1;let s=t.routeConfig&&t.routeConfig.path||"";return s.length>0&&~s.indexOf(":")&&(this.routeParamMatchMode==="strict"?r=this.getUrl(t)===this.getUrl(i):r=s===(i.routeConfig&&i.routeConfig.path||"")),this.di("====================="),this.di("#shouldReuseRoute",r,`${this.getUrl(i)}=>${this.getUrl(t)}`,t,i),r}getKeepingScroll(t,i){if(i&&i.data&&typeof i.data.keepingScroll=="boolean")return i.data.keepingScroll;let r=this.mode!==xc.URL?this.getMenu(t):null;return r&&typeof r.keepingScroll=="boolean"?r.keepingScroll:this.keepingScroll}get isDisabledInRouter(){return this.injector.get(VS,{}).scrollPositionRestoration==="disabled"}get ss(){return this.injector.get(yw)}initScroll(){this._router$&&this._router$.unsubscribe(),this._router$=this.injector.get(mi).events.subscribe(t=>{if(t instanceof kS){let i=this.curUrl;this.getKeepingScroll(i,this.getTruthRoute(this.snapshot))?this.positionBuffer[i]=this.ss.getScrollPosition(this.keepingScrollContainer):delete this.positionBuffer[i]}else if(t instanceof Io){let i=this.curUrl,r=this.get(i);r&&r.position&&this.getKeepingScroll(i,this.getTruthRoute(this.snapshot))&&(this.isDisabledInRouter?this.ss.scrollToPosition(this.keepingScrollContainer,r.position):setTimeout(()=>this.ss.scrollToPosition(this.keepingScrollContainer,r.position),1))}})}ngOnDestroy(){let{_cachedChange:t,_router$:i}=this;this.clear(),this.cached.list=[],t.complete(),i&&i.unsubscribe()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})();var o9=["fixedEl"],s9=["*"],SC=function(o){return o.resize="resize",o.scroll="scroll",o.touchstart="touchstart",o.touchmove="touchmove",o.touchend="touchend",o.pageshow="pageshow",o.load="LOAD",o}(SC||{});function a9(o){return typeof window<"u"&&o===window}function jz(o){return a9(o)?{top:0,left:0,bottom:0}:o.getBoundingClientRect()}var l9="affix",zc="ant-affix",c9=20,wC=(()=>{let n=class n{get target(){let t=this.nzTarget;return(typeof t=="string"?this.document.querySelector(t):t)||window}constructor(t,i,r,s,a,l,c,u,d,p){this.nzConfigService=r,this.scrollSrv=s,this.ngZone=a,this.platform=l,this.renderer=c,this.nzResizeObserver=u,this.cdr=d,this.directionality=p,this._nzModuleName=l9,this.nzChange=new O,this.dir="ltr",this.positionChangeSubscription=lr.EMPTY,this.offsetChanged$=new tn(1),this.destroy$=new J,this.placeholderNode=t.nativeElement,this.document=i}ngOnInit(){this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.registerListeners(),this.updatePosition({}),this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(t){let{nzOffsetBottom:i,nzOffsetTop:r,nzTarget:s}=t;(i||r)&&this.offsetChanged$.next(),s&&this.registerListeners()}ngAfterViewInit(){this.registerListeners()}ngOnDestroy(){this.removeListeners()}registerListeners(){if(!this.platform.isBrowser)return;this.removeListeners();let t=this.target===window?this.document.body:this.target;this.positionChangeSubscription=this.ngZone.runOutsideAngular(()=>_t(...Object.keys(SC).map(i=>Ke(this.target,i)),this.offsetChanged$.pipe(We(()=>({}))),this.nzResizeObserver.observe(t)).pipe(_S(c9,void 0,{trailing:!0}),F(this.destroy$)).subscribe(i=>this.updatePosition(i))),this.timeout=setTimeout(()=>this.updatePosition({}))}removeListeners(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(!0),this.destroy$.complete()}getOffset(t,i){let r=t.getBoundingClientRect(),s=jz(i),a=this.scrollSrv.getScroll(i,!0),l=this.scrollSrv.getScroll(i,!1),c=this.document.body,u=c.clientTop||0,d=c.clientLeft||0;return{top:r.top-s.top+a-u,left:r.left-s.left+l-d,width:r.width,height:r.height}}setAffixStyle(t,i){let r=this.affixStyle,s=this.target===window;if(t.type==="scroll"&&r&&i&&s||Xg(r,i))return;let a=!!i,l=this.fixedEl.nativeElement;this.renderer.setStyle(l,"cssText",nm(i)),this.affixStyle=i,a?l.classList.add(zc):l.classList.remove(zc),this.updateRtlClass(),(i&&!r||!i&&r)&&this.nzChange.emit(a)}setPlaceholderStyle(t){let i=this.placeholderStyle;Xg(t,i)||(this.renderer.setStyle(this.placeholderNode,"cssText",nm(t)),this.placeholderStyle=t)}syncPlaceholderStyle(t){if(!this.affixStyle)return;this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;let i={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(t,V(V({},this.affixStyle),i)),this.setPlaceholderStyle(i)}updatePosition(t){if(!this.platform.isBrowser)return;let i=this.target,r=this.nzOffsetTop,s=this.scrollSrv.getScroll(i,!0),a=this.getOffset(this.placeholderNode,i),l=this.fixedEl.nativeElement,c={width:l.offsetWidth,height:l.offsetHeight},u={top:!1,bottom:!1};typeof r!="number"&&typeof this.nzOffsetBottom!="number"?(u.top=!0,r=0):(u.top=typeof r=="number",u.bottom=typeof this.nzOffsetBottom=="number");let d=jz(i),p=i.innerHeight||i.clientHeight;if(s>=a.top-r&&u.top){let g=a.width,v=d.top+r;this.setAffixStyle(t,{position:"fixed",top:v,left:d.left+a.left,width:g}),this.setPlaceholderStyle({width:g,height:c.height})}else if(s<=a.top+c.height+this.nzOffsetBottom-p&&u.bottom){let g=i===window?0:window.innerHeight-d.bottom,v=a.width;this.setAffixStyle(t,{position:"fixed",bottom:g+this.nzOffsetBottom,left:d.left+a.left,width:v}),this.setPlaceholderStyle({width:v,height:a.height})}else t.type===SC.resize&&this.affixStyle&&this.affixStyle.position==="fixed"&&this.placeholderNode.offsetWidth?this.setAffixStyle(t,ot(V({},this.affixStyle),{width:this.placeholderNode.offsetWidth})):this.setAffixStyle(t),this.setPlaceholderStyle();t.type==="resize"&&this.syncPlaceholderStyle(t)}updateRtlClass(){let t=this.fixedEl.nativeElement;this.dir==="rtl"?t.classList.contains(zc)?t.classList.add(`${zc}-rtl`):t.classList.remove(`${zc}-rtl`):t.classList.remove(`${zc}-rtl`)}};n.\u0275fac=function(i){return new(i||n)(w(de),w(gi),w(st),w(xw),w($e),w(gn),w(He),w(ds),w(fe),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-affix"]],viewQuery:function(i,r){if(i&1&&xe(o9,7),i&2){let s;ce(s=ue())&&(r.fixedEl=s.first)}},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],standalone:!0,features:[oe,K],ngContentSelectors:s9,decls:3,vars:0,consts:[["fixedEl",""]],template:function(i,r){i&1&&(Pe(),C(0,"div",null,0),Ie(2),S())},dependencies:[$S,hp],encapsulation:2,changeDetection:0});let o=n;return N([De(),ci(void 0)],o.prototype,"nzOffsetTop",void 0),N([De(),ci(void 0)],o.prototype,"nzOffsetBottom",void 0),o})(),Wz=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[wC]});let o=n;return o})();var bC=["*"];function u9(o,n){}function d9(o,n){if(o&1&&(H(0),C(1,"span",3),_(2,u9,0,0,"ng-template",4),R(3,"span",5),S(),B()),o&2){let e=m(),t=te(2);f(),h("nzDropdownMenu",e.nzOverlay),f(),h("ngTemplateOutlet",t)}}function p9(o,n){o&1&&(C(0,"span",6),Ie(1),S())}function h9(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),Ne(" ",e.nzBreadCrumbComponent.nzSeparator," ")}}function f9(o,n){if(o&1&&(C(0,"nz-breadcrumb-separator"),_(1,h9,2,1,"ng-container",7),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.nzBreadCrumbComponent.nzSeparator)}}function g9(o,n){if(o&1){let e=Q();C(0,"nz-breadcrumb-item")(1,"a",2),A("click",function(i){let s=I(e).$implicit,a=m(2);return P(a.navigate(s.url,i))}),Y(2),S()()}if(o&2){let e=n.$implicit;f(),ze("href",e.url,Do),f(),ye(e.label)}}function m9(o,n){if(o&1&&(H(0),_(1,g9,3,2,"nz-breadcrumb-item",1),B()),o&2){let e=m();f(),h("ngForOf",e.breadcrumbs)}}var v9=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-breadcrumb-separator"]],hostAttrs:[1,"ant-breadcrumb-separator"],exportAs:["nzBreadcrumbSeparator"],standalone:!0,features:[K],ngContentSelectors:bC,decls:1,vars:0,template:function(i,r){i&1&&(Pe(),Ie(0))},encapsulation:2});let o=n;return o})(),gf=class{},mf=(()=>{let n=class n{constructor(t){this.nzBreadCrumbComponent=t}};n.\u0275fac=function(i){return new(i||n)(w(gf))},n.\u0275cmp=j({type:n,selectors:[["nz-breadcrumb-item"]],inputs:{nzOverlay:"nzOverlay"},exportAs:["nzBreadcrumbItem"],standalone:!0,features:[K],ngContentSelectors:bC,decls:4,vars:3,consts:[[4,"ngIf","ngIfElse"],["noMenuTpl",""],[4,"ngIf"],["nz-dropdown","",1,"ant-breadcrumb-overlay-link",3,"nzDropdownMenu"],[3,"ngTemplateOutlet"],["nz-icon","","nzType","down"],[1,"ant-breadcrumb-link"],[4,"nzStringTemplateOutlet"]],template:function(i,r){if(i&1&&(Pe(),_(0,d9,4,2,"ng-container",0)(1,p9,2,0,"ng-template",null,1,_e)(3,f9,2,1,"nz-breadcrumb-separator",2)),i&2){let s=te(2);h("ngIf",!!r.nzOverlay)("ngIfElse",s),f(3),h("ngIf",r.nzBreadCrumbComponent.nzSeparator)}},dependencies:[we,Be,v9,Lr,yr,Ge,Fe,Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return o})(),TC=(()=>{let n=class n{constructor(t,i,r,s,a){this.injector=t,this.cdr=i,this.elementRef=r,this.renderer=s,this.directionality=a,this.nzAutoGenerate=!1,this.nzSeparator="/",this.nzRouteLabel="breadcrumb",this.nzRouteLabelFn=l=>l,this.breadcrumbs=[],this.dir="ltr",this.destroy$=new J}ngOnInit(){this.nzAutoGenerate&&this.registerRouterChange(),this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.prepareComponentForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareComponentForRtl()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}navigate(t,i){i.preventDefault(),this.injector.get(mi).navigateByUrl(t)}registerRouterChange(){try{let t=this.injector.get(mi),i=this.injector.get(dp);t.events.pipe(Qe(r=>r instanceof Io),F(this.destroy$),Ot(!0)).subscribe(()=>{this.breadcrumbs=this.getBreadcrumbs(i.root),this.cdr.markForCheck()})}catch{throw new Error(`${gp} You should import RouterModule if you want to use 'NzAutoGenerate'.`)}}getBreadcrumbs(t,i="",r=[]){let s=t.children;if(s.length===0)return r;for(let a of s)if(a.outlet===LS){let l=a.snapshot.url.map(d=>d.path).filter(d=>d).join("/"),c=l?`${i}/${l}`:i,u=this.nzRouteLabelFn(a.snapshot.data[this.nzRouteLabel]);if(l&&u){let d={label:u,params:a.snapshot.params,url:c};r.push(d)}return this.getBreadcrumbs(a,c,r)}return r}prepareComponentForRtl(){this.dir==="rtl"?this.renderer.addClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl")}};n.\u0275fac=function(i){return new(i||n)(w($n),w(fe),w(de),w(He),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-breadcrumb"]],hostAttrs:[1,"ant-breadcrumb"],inputs:{nzAutoGenerate:"nzAutoGenerate",nzSeparator:"nzSeparator",nzRouteLabel:"nzRouteLabel",nzRouteLabelFn:"nzRouteLabelFn"},exportAs:["nzBreadcrumb"],standalone:!0,features:[Ve([{provide:gf,useExisting:n}]),K],ngContentSelectors:bC,decls:2,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"click"]],template:function(i,r){i&1&&(Pe(),Ie(0),_(1,m9,2,1,"ng-container",0)),i&2&&(f(),h("ngIf",r.nzAutoGenerate&&r.breadcrumbs.length))},dependencies:[lt,we,mf],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzAutoGenerate",void 0),o})(),Uz=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[TC,mf]});let o=n;return o})();var y9=["nzType","avatar"];function C9(o,n){if(o&1&&(C(0,"div",5),R(1,"nz-skeleton-element",6),S()),o&2){let e=m(2);f(),h("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function _9(o,n){if(o&1&&R(0,"h3",7),o&2){let e=m(2);Re("width",e.toCSSUnit(e.title.width))}}function S9(o,n){if(o&1&&R(0,"li"),o&2){let e=n.index,t=m(3);Re("width",t.toCSSUnit(t.widthList[e]))}}function w9(o,n){if(o&1&&(C(0,"ul",8),_(1,S9,1,2,"li",9),S()),o&2){let e=m(2);f(),h("ngForOf",e.rowsList)}}function b9(o,n){if(o&1&&(H(0),_(1,C9,2,2,"div",1),C(2,"div",2),_(3,_9,1,2,"h3",3)(4,w9,2,1,"ul",4),S(),B()),o&2){let e=m();f(),h("ngIf",!!e.nzAvatar),f(2),h("ngIf",!!e.nzTitle),f(),h("ngIf",!!e.nzParagraph)}}function T9(o,n){o&1&&(H(0),Ie(1),B())}var E9=["*"],x9=(()=>{let n=class n{constructor(){this.nzActive=!1,this.nzBlock=!1}};n.\u0275fac=function(i){return new(i||n)},n.\u0275dir=Se({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(i,r){i&2&&k("ant-skeleton-active",r.nzActive)("ant-skeleton-block",r.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"},standalone:!0});let o=n;return N([W()],o.prototype,"nzBlock",void 0),o})();var z9=(()=>{let n=class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(t){if(t.nzSize&&typeof this.nzSize=="number"){let i=`${this.nzSize}px`;this.styleMap={width:i,height:i,"line-height":i}}else this.styleMap={}}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},standalone:!0,features:[oe,K],attrs:y9,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(i,r){i&1&&R(0,"span",0),i&2&&(k("ant-skeleton-avatar-square",r.nzShape==="square")("ant-skeleton-avatar-circle",r.nzShape==="circle")("ant-skeleton-avatar-lg",r.nzSize==="large")("ant-skeleton-avatar-sm",r.nzSize==="small"),h("ngStyle",r.styleMap))},dependencies:[Zt],encapsulation:2,changeDetection:0});let o=n;return o})();var Kz=(()=>{let n=class n{constructor(t){this.cdr=t,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[]}toCSSUnit(t=""){return Ea(t)}getTitleProps(){let t=!!this.nzAvatar,i=!!this.nzParagraph,r="";return!t&&i?r="38%":t&&i&&(r="50%"),V({width:r},this.getProps(this.nzTitle))}getAvatarProps(){let t=this.nzTitle&&!this.nzParagraph?"square":"circle";return V({shape:t,size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){let t=!!this.nzAvatar,i=!!this.nzTitle,r={};return(!t||!i)&&(r.width="61%"),!t&&i?r.rows=3:r.rows=2,V(V({},r),this.getProps(this.nzParagraph))}getProps(t){return t&&typeof t=="object"?t:{}}getWidthList(){let{width:t,rows:i}=this.paragraph,r=[];return t&&Array.isArray(t)?r=t:t&&!Array.isArray(t)&&(r=[],r[i-1]=t),r}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(t){(t.nzTitle||t.nzAvatar||t.nzParagraph)&&this.updateProps()}};n.\u0275fac=function(i){return new(i||n)(w(fe))},n.\u0275cmp=j({type:n,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(i,r){i&2&&k("ant-skeleton-with-avatar",!!r.nzAvatar)("ant-skeleton-active",r.nzActive)("ant-skeleton-round",!!r.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],standalone:!0,features:[oe,K],ngContentSelectors:E9,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(i,r){i&1&&(Pe(),_(0,b9,5,3,"ng-container",0)(1,T9,2,0,"ng-container",0)),i&2&&(h("ngIf",r.nzLoading),f(),h("ngIf",!r.nzLoading))},dependencies:[x9,z9,we,lt],encapsulation:2,changeDetection:0});let o=n;return o})(),qz=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();var O9=["conTpl"],D9=["affix"];function R9(o,n){}function I9(o,n){if(o&1&&(C(0,"nz-affix",0,2),_(2,R9,0,0,"ng-template",3),S()),o&2){let e=m(),t=te(3);h("nzOffsetTop",e.fixedOffsetTop),f(2),h("ngTemplateOutlet",t)}}function P9(o,n){}function M9(o,n){if(o&1&&_(0,P9,0,0,"ng-template",3),o&2){m();let e=te(3);h("ngTemplateOutlet",e)}}function F9(o,n){}function A9(o,n){if(o&1&&_(0,F9,0,0,"ng-template",3),o&2){let e=m(2);h("ngTemplateOutlet",e.breadcrumb)}}function N9(o,n){if(o&1&&(C(0,"a",15),Y(1),S()),o&2){let e=m().$implicit;h("routerLink",e.link),f(),ye(e.title)}}function L9(o,n){if(o&1&&Y(0),o&2){let e=m().$implicit;Ne(" ",e.title," ")}}function k9(o,n){if(o&1&&(C(0,"nz-breadcrumb-item"),_(1,N9,2,2,"a",15)(2,L9,1,1),S()),o&2){let e=n.$implicit;f(),ie(1,e.link?1:2)}}function V9(o,n){if(o&1&&(C(0,"nz-breadcrumb"),Cn(1,k9,3,1,"nz-breadcrumb-item",null,yn),S()),o&2){let e=m(3);f(),_n(e.paths)}}function G9(o,n){if(o&1&&_(0,V9,3,0,"nz-breadcrumb"),o&2){let e=m(2);ie(0,e.paths&&e.paths.length>0?0:-1)}}function H9(o,n){}function B9(o,n){if(o&1&&(C(0,"div",16),_(1,H9,0,0,"ng-template",3),S()),o&2){let e=m(2);f(),h("ngTemplateOutlet",e.logo)}}function $9(o,n){}function j9(o,n){if(o&1&&_(0,$9,0,0,"ng-template",3),o&2){let e=m(3);h("ngTemplateOutlet",e._titleTpl)}}function W9(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(5);f(),ye(e.titleSub)}}function U9(o,n){if(o&1&&(C(0,"small"),_(1,W9,2,1,"ng-container",18),S()),o&2){let e=m(4);f(),h("nzStringTemplateOutlet",e.titleSub)}}function K9(o,n){if(o&1&&(Y(0),_(1,U9,2,1,"small")),o&2){let e=m(3);Ne(" ",e._titleVal," "),f(),ie(1,e.titleSub?1:-1)}}function q9(o,n){if(o&1&&(C(0,"h1",17),_(1,j9,1,1,null,3)(2,K9,2,2),S()),o&2){let e=m(2);f(),ie(1,e._titleTpl?1:2)}}function Y9(o,n){}function Q9(o,n){if(o&1&&(C(0,"div",19),_(1,Y9,0,0,"ng-template",3),S()),o&2){let e=m(2);f(),h("ngTemplateOutlet",e.action)}}function X9(o,n){}function Z9(o,n){}function J9(o,n){if(o&1&&(C(0,"div",20),_(1,Z9,0,0,"ng-template",3),S()),o&2){let e=m(2);f(),h("ngTemplateOutlet",e.extra)}}function e8(o,n){}var t8=()=>({rows:3}),n8=()=>({size:"large",shape:"circle"});function i8(o,n){if(o&1){let e=Q();C(0,"div",4)(1,"div")(2,"nz-skeleton",5),_(3,A9,1,1,null,3)(4,G9,1,1),C(5,"div",6),_(6,B9,2,1,"div",7),C(7,"div",8)(8,"div",9),_(9,q9,3,1,"h1",10)(10,Q9,2,1,"div",11),S(),C(11,"div",9)(12,"div",12,13),A("cdkObserveContent",function(){I(e);let i=m();return P(i.checkContent())}),Ie(14),_(15,X9,0,0,"ng-template",3),S(),_(16,J9,2,1,"div",14),S()()(),_(17,e8,0,0,"ng-template",3),S()()()}if(o&2){let e=m();k("page-header-rtl",e.dir==="rtl"),f(),k("page-header__wide",e.wide),f(),h("nzLoading",e.loading)("nzTitle",!1)("nzActive",!0)("nzParagraph",ii(16,t8))("nzAvatar",ii(17,n8)),f(),ie(3,e.breadcrumb?3:4),f(3),ie(6,e.logo?6:-1),f(3),ie(9,e._titleVal||e._titleTpl?9:-1),f(),ie(10,e.action?10:-1),f(5),h("ngTemplateOutlet",e.content),f(),ie(16,e.extra?16:-1),f(),h("ngTemplateOutlet",e.tab)}}var r8=["*"],o8=(()=>{let n=class n{get menus(){return this.menuSrv.getPathByUrl(this.router.url,this.recursiveBreadcrumb)}set title(t){t instanceof En?(this._title=null,this._titleTpl=t,this._titleVal=""):(this._title=t,this._titleVal=this._title)}constructor(t,i,r){this.renderer=ae(He),this.router=ae(mi),this.cdr=ae(fe),this.menuSrv=ae(xp),this.i18nSrv=ae(Rs,{optional:!0}),this.titleSrv=ae(pw,{optional:!0}),this.reuseSrv=ae($z,{optional:!0}),this.directionality=ae(Me,{optional:!0}),this.destroy$=ae(rs),this.inited=!1,this.isBrowser=!0,this.dir="ltr",this._titleVal="",this.paths=[],this._title=null,this._titleTpl=null,this.loading=!1,this.wide=!1,this.breadcrumb=null,this.logo=null,this.action=null,this.content=null,this.extra=null,this.tab=null,this.isBrowser=r.isBrowser,i.attach(this,"pageHeader",{home:"\u9996\u9875",homeLink:"/",autoBreadcrumb:!0,recursiveBreadcrumb:!1,autoTitle:!0,syncTitle:!0,fixed:!1,fixedOffsetTop:64}),t.notify.pipe(li(),Qe(a=>this.affix&&a.type==="layout"&&a.name==="collapsed")).subscribe(()=>this.affix.updatePosition({}));let s=[this.router.events.pipe(Qe(a=>a instanceof Io))];this.menuSrv!=null&&s.push(this.menuSrv.change),this.i18nSrv!=null&&s.push(this.i18nSrv.change),_t(...s).pipe(li(),Qe(()=>this.inited)).subscribe(()=>this.refresh())}refresh(){this.setTitle().genBreadcrumb(),this.cdr.detectChanges()}genBreadcrumb(){if(this.breadcrumb||!this.autoBreadcrumb||this.menus.length<=0){this.paths=[];return}let t=[];this.menus.forEach(i=>{if(typeof i.hideInBreadcrumb<"u"&&i.hideInBreadcrumb)return;let r=i.text;i.i18n&&this.i18nSrv&&(r=this.i18nSrv.fanyi(i.i18n)),t.push({title:r,link:i.link&&[i.link]})}),this.home&&t.splice(0,0,{title:this.homeI18n&&this.i18nSrv&&this.i18nSrv.fanyi(this.homeI18n)||this.home,link:[this.homeLink]}),this.paths=t}setTitle(){if(this._title==null&&this._titleTpl==null&&this.autoTitle&&this.menus.length>0){let t=this.menus[this.menus.length-1],i=t.text;t.i18n&&this.i18nSrv&&(i=this.i18nSrv.fanyi(t.i18n)),this._titleVal=i}return this._titleVal&&this.syncTitle&&(this.titleSrv&&this.titleSrv.setTitle(this._titleVal),!this.inited&&this.reuseSrv&&(this.reuseSrv.title=this._titleVal)),this}checkContent(){Bl(this.conTpl.nativeElement)?this.renderer.setAttribute(this.conTpl.nativeElement,"hidden",""):this.renderer.removeAttribute(this.conTpl.nativeElement,"hidden")}ngOnInit(){this.dir=this.directionality?.value,this.directionality?.change.pipe(li(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.refresh(),this.inited=!0}ngAfterViewInit(){this.checkContent()}ngOnChanges(){this.inited&&this.refresh()}};n.\u0275fac=function(i){return new(i||n)(w(dw),w(In),w(gn))},n.\u0275cmp=j({type:n,selectors:[["page-header"]],viewQuery:function(i,r){if(i&1&&(xe(O9,5),xe(D9,5)),i&2){let s;ce(s=ue())&&(r.conTpl=s.first),ce(s=ue())&&(r.affix=s.first)}},inputs:{title:"title",titleSub:"titleSub",loading:[le.HasDecoratorInputTransform,"loading","loading",it],wide:[le.HasDecoratorInputTransform,"wide","wide",it],home:"home",homeLink:"homeLink",homeI18n:"homeI18n",autoBreadcrumb:[le.HasDecoratorInputTransform,"autoBreadcrumb","autoBreadcrumb",it],autoTitle:[le.HasDecoratorInputTransform,"autoTitle","autoTitle",it],syncTitle:[le.HasDecoratorInputTransform,"syncTitle","syncTitle",it],fixed:[le.HasDecoratorInputTransform,"fixed","fixed",it],fixedOffsetTop:[le.HasDecoratorInputTransform,"fixedOffsetTop","fixedOffsetTop",fn],breadcrumb:"breadcrumb",recursiveBreadcrumb:[le.HasDecoratorInputTransform,"recursiveBreadcrumb","recursiveBreadcrumb",it],logo:"logo",action:"action",content:"content",extra:"extra",tab:"tab"},exportAs:["pageHeader"],standalone:!0,features:[fi,oe,K],ngContentSelectors:r8,decls:4,vars:1,consts:[[3,"nzOffsetTop"],["phTpl",""],["affix",""],[3,"ngTemplateOutlet"],[1,"page-header"],[1,"d-block",3,"nzLoading","nzTitle","nzActive","nzParagraph","nzAvatar"],[1,"page-header__detail"],["class","page-header__logo"],[1,"page-header__main"],[1,"page-header__row"],["class","page-header__title"],["class","page-header__action"],[1,"page-header__desc",3,"cdkObserveContent"],["conTpl",""],["class","page-header__extra"],[3,"routerLink"],[1,"page-header__logo"],[1,"page-header__title"],[4,"nzStringTemplateOutlet"],[1,"page-header__action"],[1,"page-header__extra"]],template:function(i,r){i&1&&(Pe(),_(0,I9,3,2,"nz-affix",0)(1,M9,1,1)(2,i8,18,18,"ng-template",null,1,_e)),i&2&&ie(0,r.isBrowser&&r.fixed?0:1)},dependencies:[wC,Be,Kz,TC,mf,Po,Ue,Ll],encapsulation:2,changeDetection:0});let o=n;return o})(),s8=[o8],vf=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Zn,Il,vp,Wz,qz,Uz,Ye,s8]});let o=n;return o})();function l8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m();f(),ye(e.title)}}function c8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.description)}}function u8(o,n){if(o&1&&(C(0,"div",7),_(1,c8,2,1,"ng-container",3),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.description)}}function d8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.extra)}}function p8(o,n){if(o&1&&(C(0,"div",8),_(1,d8,2,1,"ng-container",3),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.extra)}}var h8=["*"],h0e=(()=>{let n=class n{constructor(){this.cdr=ae(fe),this.directionality=ae(Me,{optional:!0}),this.destroy$=ae(rs),this._type="",this._icon="",this.dir="ltr"}set type(t){switch(this._type=t,t){case"success":this._icon="check-circle";break;case"error":this._icon="close-circle";break;default:this._icon=t;break}}ngOnInit(){this.dir=this.directionality?.value,this.directionality?.change.pipe(li(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()})}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["result"]],hostVars:4,hostBindings:function(i,r){i&2&&k("result",!0)("result-rtl",r.dir==="rtl")},inputs:{type:"type",title:"title",description:"description",extra:"extra"},exportAs:["result"],standalone:!0,features:[K],ngContentSelectors:h8,decls:8,vars:7,consts:[[1,"result__icon"],["nz-icon","",3,"nzType"],[1,"result__title"],[4,"nzStringTemplateOutlet"],["class","result__desc"],["class","result__extra"],[1,"result__actions"],[1,"result__desc"],[1,"result__extra"]],template:function(i,r){i&1&&(Pe(),C(0,"div",0),R(1,"i",1),S(),C(2,"div",2),_(3,l8,2,1,"ng-container",3),S(),_(4,u8,2,1,"div",4)(5,p8,2,1,"div",5),C(6,"div",6),Ie(7),S()),i&2&&(f(),Ae("result__icon-",r._type,""),h("nzType",r._icon),f(2),h("nzStringTemplateOutlet",r.title),f(),ie(4,r.description?4:-1),f(),ie(5,r.extra?5:-1))},dependencies:[Fe,Ue],encapsulation:2,changeDetection:0});let o=n;return o})();var yf=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Zn,Ge,Ye]});let o=n;return o})();var xC=["*"];function g8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.title)}}function m8(o,n){if(o&1&&(C(0,"div",0),_(1,g8,2,1,"ng-container",1),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.title)}}var v8=["contentElement"];function y8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.label)}}function C8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(3);f(),ye(e.optional)}}function _8(o,n){if(o&1&&R(0,"i",12),o&2){let e=m(3);h("nzTooltipTitle",e.optionalHelp)("nzTooltipColor",e.optionalHelpColor)}}function S8(o,n){if(o&1&&(C(0,"span",11),_(1,C8,2,1,"ng-container",9)(2,_8,1,2,"i",12),S()),o&2){let e=m(2);k("se__label-optional-no-text",!e.optional),f(),h("nzStringTemplateOutlet",e.optional),f(),ie(2,e.optionalHelp?2:-1)}}var w8=(o,n)=>({"ant-form-item-required":o,"se__no-colon":n});function b8(o,n){if(o&1&&(C(0,"label",7)(1,"span",8),_(2,y8,2,1,"ng-container",9),S(),_(3,S8,3,4,"span",10),S()),o&2){let e=m();h("ngClass",ri(4,w8,e.required,e._noColon)),ze("for",e._id),f(2),h("nzStringTemplateOutlet",e.label),f(),ie(3,e.optional||e.optionalHelp?3:-1)}}function T8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e._error)}}function E8(o,n){if(o&1&&(C(0,"div",13)(1,"div",14),_(2,T8,2,1,"ng-container",9),S()()),o&2){let e=m();h("@helpMotion",void 0),f(2),h("nzStringTemplateOutlet",e._error)}}function x8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.extra)}}function z8(o,n){if(o&1&&(C(0,"div",15),_(1,x8,2,1,"ng-container",9),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.extra)}}var O8=(()=>{let n=class n{constructor(){if(this.parentComp=ae(Yz,{host:!0,optional:!0}),this.el=ae(de).nativeElement,this.ren=ae(He),this.parentComp==null)throw new Error("[se-title] must include 'se-container' component")}setClass(){let{el:t}=this,i=this.parentComp.gutter;this.ren.setStyle(t,"padding-left",`${i/2}px`),this.ren.setStyle(t,"padding-right",`${i/2}px`)}ngOnInit(){this.setClass()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["se-title"],["","se-title",""]],hostVars:2,hostBindings:function(i,r){i&2&&k("se__title",!0)},exportAs:["seTitle"],standalone:!0,features:[K],ngContentSelectors:xC,decls:1,vars:0,template:function(i,r){i&1&&(Pe(),Ie(0))},encapsulation:2,changeDetection:0});let o=n;return o})(),Yz=(()=>{let n=class n{get gutter(){return this.nzLayout==="horizontal"?this._gutter:0}set gutter(t){this._gutter=t}get nzLayout(){return this._nzLayout}set nzLayout(t){this._nzLayout=t,t==="inline"&&(this.size="compact")}set errors(t){this.setErrors(t)}get margin(){return-(this.gutter/2)}get errorNotify(){return this.errorNotify$.pipe(Qe(t=>t!=null))}constructor(t){this.errorNotify$=new ct(null),this.noColon=!1,this.line=!1,t.attach(this,"se",{size:"default",nzLayout:"horizontal",gutter:32,col:2,labelWidth:150,firstVisual:!1,ingoreDirty:!1})}setErrors(t){for(let i of t)this.errorNotify$.next(i)}};n.\u0275fac=function(i){return new(i||n)(w(In))},n.\u0275cmp=j({type:n,selectors:[["se-container"],["","se-container",""]],hostVars:16,hostBindings:function(i,r){i&2&&(Re("margin-left",r.margin,"px")("margin-right",r.margin,"px"),k("ant-row",!0)("se__container",!0)("se__horizontal",r.nzLayout==="horizontal")("se__vertical",r.nzLayout==="vertical")("se__inline",r.nzLayout==="inline")("se__compact",r.size==="compact"))},inputs:{colInCon:[le.HasDecoratorInputTransform,"se-container","colInCon",t=>t==null?null:fn(t)],col:[le.HasDecoratorInputTransform,"col","col",t=>t==null?null:fn(t)],labelWidth:[le.HasDecoratorInputTransform,"labelWidth","labelWidth",t=>t==null?null:fn(t)],noColon:[le.HasDecoratorInputTransform,"noColon","noColon",it],title:"title",gutter:[le.HasDecoratorInputTransform,"gutter","gutter",fn],nzLayout:"nzLayout",size:"size",firstVisual:[le.HasDecoratorInputTransform,"firstVisual","firstVisual",it],ingoreDirty:[le.HasDecoratorInputTransform,"ingoreDirty","ingoreDirty",it],line:[le.HasDecoratorInputTransform,"line","line",it],errors:"errors"},exportAs:["seContainer"],standalone:!0,features:[fi,K],ngContentSelectors:xC,decls:2,vars:1,consts:[["se-title",""],[4,"nzStringTemplateOutlet"]],template:function(i,r){i&1&&(Pe(),_(0,m8,2,1,"div",0),Ie(1)),i&2&&ie(0,r.title?0:-1)},dependencies:[O8,Ue],encapsulation:2,changeDetection:0});let o=n;return o})(),EC="se",D8=0,Qz=(()=>{let n=class n{set error(t){this.errorData=typeof t=="string"||t instanceof En?{"":t}:t}set id(t){this._id=t,this._autoId=!1}get paddingValue(){return this.parentComp.gutter/2}get showErr(){return this.invalid&&!!this._error&&!this.compact}get compact(){return this.parentComp.size==="compact"}get ngControl(){return this.ngModel||this.formControlName}constructor(){if(this.parentComp=ae(Yz,{host:!0,optional:!0}),this.el=ae(de).nativeElement,this.rep=ae(zp),this.ren=ae(He),this.cdr=ae(fe),this.statusSrv=ae(cn),this.destroy$=ae(rs),this.clsMap=[],this.inited=!1,this.onceFlag=!1,this.errorData={},this.isBindModel=!1,this.invalid=!1,this._labelWidth=null,this._noColon=null,this.optional=null,this.optionalHelp=null,this.required=!1,this.controlClass="",this.hideLabel=!1,this._id=`_se-${++D8}`,this._autoId=!0,this.parentComp==null)throw new Error("[se] must include 'se-container' component");this.parentComp.errorNotify.pipe(li(),Qe(t=>this.inited&&this.ngControl!=null&&this.ngControl.name===t.name)).subscribe(t=>{this.error=t.error,this.updateStatus(this.ngControl.invalid)})}setClass(){let{el:t,ren:i,clsMap:r,col:s,cdr:a,line:l,labelWidth:c,rep:u,noColon:d}=this,p=this.parentComp;this._noColon=d??p.noColon,this._labelWidth=p.nzLayout==="horizontal"?c??p.labelWidth:null,r.forEach(y=>i.removeClass(t,y)),r.length=0;let g=p.colInCon||p.col,v=p.nzLayout==="horizontal"?u.genCls(s??g,g):[];return r.push("ant-form-item",...v,`${EC}__item`),(l||p.line)&&r.push(`${EC}__line`),r.forEach(y=>i.addClass(t,y)),a.detectChanges(),this}bindModel(){if(!(!this.ngControl||this.isBindModel)){if(this.isBindModel=!0,this.ngControl.statusChanges.pipe(li(this.destroy$)).subscribe(t=>this.updateStatus(t==="INVALID")),this._autoId){let t=this.ngControl.valueAccessor,i=(t?.elementRef||t?._elementRef)?.nativeElement;i&&(i.id?this._id=i.id:i.id=this._id)}if(this.required!==!0){let t=this.ngControl?.control?.hasValidator(Np.required);t!==!0&&(t=(this.ngControl?._rawValidators).find(r=>r instanceof Rm)!=null),this.required=t,this.cdr.detectChanges()}}}updateStatus(t){if(this.ngControl?.disabled||this.ngControl?.isDisabled)return;this.invalid=!this.onceFlag&&t&&this.parentComp.ingoreDirty===!1&&!this.ngControl?.dirty?!1:t;let i=this.ngControl?.errors;if(i!=null&&Object.keys(i).length>0){let r=Object.keys(i)[0]||"",s=this.errorData[r];this._error=s??(this.errorData[""]||"")}this.statusSrv.formStatusChanges.next({status:this.invalid?"error":"",hasFeedback:!1}),this.cdr.detectChanges()}checkContent(){let t=this.contentElement.nativeElement,i=`${EC}__item-empty`;Bl(t)?this.ren.addClass(t,i):this.ren.removeClass(t,i)}ngAfterContentInit(){this.checkContent()}ngOnChanges(){this.onceFlag=this.parentComp.firstVisual,this.inited&&this.setClass().bindModel()}ngAfterViewInit(){this.setClass().bindModel(),this.inited=!0,this.onceFlag&&Promise.resolve().then(()=>{this.updateStatus(this.ngControl?.invalid),this.onceFlag=!1})}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["se"]],contentQueries:function(i,r,s){if(i&1&&(Ft(s,Rt,7),Ft(s,yu,7)),i&2){let a;ce(a=ue())&&(r.ngModel=a.first),ce(a=ue())&&(r.formControlName=a.first)}},viewQuery:function(i,r){if(i&1&&xe(v8,7),i&2){let s;ce(s=ue())&&(r.contentElement=s.first)}},hostVars:10,hostBindings:function(i,r){i&2&&(Re("padding-left",r.paddingValue,"px")("padding-right",r.paddingValue,"px"),k("se__hide-label",r.hideLabel)("ant-form-item-has-error",r.invalid)("ant-form-item-with-help",r.showErr))},inputs:{optional:"optional",optionalHelp:"optionalHelp",optionalHelpColor:"optionalHelpColor",error:"error",extra:"extra",label:"label",col:[le.HasDecoratorInputTransform,"col","col",t=>t==null?null:fn(t)],required:[le.HasDecoratorInputTransform,"required","required",it],controlClass:"controlClass",line:[le.HasDecoratorInputTransform,"line","line",t=>t==null?null:it(t)],labelWidth:[le.HasDecoratorInputTransform,"labelWidth","labelWidth",t=>t==null?null:fn(t)],noColon:[le.HasDecoratorInputTransform,"noColon","noColon",t=>t==null?null:it(t)],hideLabel:[le.HasDecoratorInputTransform,"hideLabel","hideLabel",it],id:"id"},exportAs:["se"],standalone:!0,features:[Ve([cn]),fi,oe,K],ngContentSelectors:xC,decls:9,vars:10,consts:[[1,"ant-form-item-label"],["class","se__label",3,"ngClass"],[1,"ant-form-item-control","se__control"],[1,"ant-form-item-control-input-content",3,"cdkObserveContent"],["contentElement",""],["class","ant-form-item-explain ant-form-item-explain-connected"],["class","ant-form-item-extra"],[1,"se__label",3,"ngClass"],[1,"se__label-text"],[4,"nzStringTemplateOutlet"],["class","se__label-optional",3,"se__label-optional-no-text"],[1,"se__label-optional"],["nz-tooltip","","nz-icon","","nzType","question-circle",3,"nzTooltipTitle","nzTooltipColor"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",1,"ant-form-item-explain-error"],[1,"ant-form-item-extra"]],template:function(i,r){i&1&&(Pe(),C(0,"div",0),_(1,b8,4,7,"label",1),S(),C(2,"div",2)(3,"div")(4,"div",3,4),A("cdkObserveContent",function(){return r.checkContent()}),Ie(6),S()(),_(7,E8,3,2,"div",5)(8,z8,2,1,"div",6),S()),i&2&&(Re("width",r._labelWidth,"px"),k("se__nolabel",r.hideLabel||!r.label),f(),ie(1,r.label?1:-1),f(2),Ae("ant-form-item-control-input ",r.controlClass,""),f(4),ie(7,r.showErr?7:-1),f(),ie(8,r.extra&&!r.compact?8:-1))},dependencies:[St,Ue,Si,Fe,Ll],encapsulation:2,data:{animation:[jl]},changeDetection:0});let o=n;return o})();var Cf=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Zn,ji,Ge,Ye]});let o=n;return o})();var OC=["*"];function R8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.title)}}function I8(o,n){if(o&1&&(C(0,"sv-title"),_(1,R8,2,1,"ng-container",1),S()),o&2){let e=m();f(),h("nzStringTemplateOutlet",e.title)}}var P8=["conEl"];function M8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.label)}}function F8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(3);f(),ye(e.optional)}}function A8(o,n){if(o&1&&R(0,"i",10),o&2){let e=m(3);h("nzTooltipTitle",e.optionalHelp)("nzTooltipColor",e.optionalHelpColor)}}function N8(o,n){if(o&1&&(C(0,"span",9),_(1,F8,2,1,"ng-container",7)(2,A8,1,2,"i",10),S()),o&2){let e=m(2);k("sv__label-optional-no-text",!e.optional),f(),h("nzStringTemplateOutlet",e.optional),f(),ie(2,e.optionalHelp?2:-1)}}function L8(o,n){if(o&1&&(C(0,"div",5)(1,"span",6),_(2,M8,2,1,"ng-container",7),S(),_(3,N8,3,4,"span",8),S()),o&2){let e=m();Re("width",e.labelWidth,"px"),k("sv__label-empty",!e.label)("sv__label-width",e.labelWidth!==null&&e.labelWidth!==void 0)("sv__no-colon",e._noColon),f(2),h("nzStringTemplateOutlet",e.label),f(),ie(3,e.optional||e.optionalHelp?3:-1)}}function k8(o,n){if(o&1&&(C(0,"span",12),Y(1),S()),o&2){let e=m(2);f(),ye(e.unit)}}function V8(o,n){if(o&1&&_(0,k8,2,1,"span",11),o&2){let e=m();h("nzStringTemplateOutlet",e.unit)}}var G8=(()=>{let n=class n{constructor(){if(this.el=ae(de).nativeElement,this.parentComp=ae(Zz,{host:!0,optional:!0}),this.ren=ae(He),this.parentComp==null)throw new Error("[sv-title] must include 'sv-container' component")}setClass(){let t=this.parentComp.gutter,i=this.el;this.ren.setStyle(i,"padding-left",`${t/2}px`),this.ren.setStyle(i,"padding-right",`${t/2}px`)}ngOnInit(){this.setClass()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["sv-title"],["","sv-title",""]],hostVars:2,hostBindings:function(i,r){i&2&&k("sv__title",!0)},exportAs:["svTitle"],standalone:!0,features:[K],ngContentSelectors:OC,decls:1,vars:0,template:function(i,r){i&1&&(Pe(),Ie(0))},encapsulation:2,changeDetection:0});let o=n;return o})(),Zz=(()=>{let n=class n{get margin(){return this.bordered?{}:{"margin-left.px":-(this.gutter/2),"margin-right.px":-(this.gutter/2)}}constructor(t){this.noColon=!1,this.bordered=!1,t.attach(this,"sv",{size:"large",gutter:32,layout:"horizontal",col:3,default:!0})}};n.\u0275fac=function(i){return new(i||n)(w(In))},n.\u0275cmp=j({type:n,selectors:[["sv-container"],["","sv-container",""]],hostVars:14,hostBindings:function(i,r){i&2&&k("sv__container",!0)("sv__horizontal",r.layout==="horizontal")("sv__vertical",r.layout==="vertical")("sv__small",r.size==="small")("sv__large",r.size==="large")("sv__bordered",r.bordered)("clearfix",!0)},inputs:{colInCon:[le.HasDecoratorInputTransform,"sv-container","colInCon",t=>t==null?null:fn(t)],title:"title",size:"size",gutter:[le.HasDecoratorInputTransform,"gutter","gutter",fn],layout:"layout",labelWidth:[le.HasDecoratorInputTransform,"labelWidth","labelWidth",fn],col:[le.HasDecoratorInputTransform,"col","col",fn],default:[le.HasDecoratorInputTransform,"default","default",it],noColon:[le.HasDecoratorInputTransform,"noColon","noColon",it],bordered:[le.HasDecoratorInputTransform,"bordered","bordered",it]},exportAs:["svContainer"],standalone:!0,features:[fi,K],ngContentSelectors:OC,decls:3,vars:2,consts:[[1,"ant-row",3,"ngStyle"],[4,"nzStringTemplateOutlet"]],template:function(i,r){i&1&&(Pe(),C(0,"div",0),_(1,I8,2,1,"sv-title"),Ie(2),S()),i&2&&(h("ngStyle",r.margin),f(),ie(1,r.title?1:-1))},dependencies:[Zt,G8,Ue],encapsulation:2,changeDetection:0});let o=n;return o})();var zC="sv",q0e=(()=>{let n=class n{get paddingValue(){return this.parentComp.bordered?null:this.parentComp.gutter/2}get labelWidth(){let{labelWidth:t,layout:i}=this.parentComp;return i==="horizontal"?t:null}constructor(){if(this.el=ae(de).nativeElement,this.parentComp=ae(Zz,{host:!0,optional:!0}),this.rep=ae(zp),this.ren=ae(He),this.clsMap=[],this._noColon=!1,this.hideLabel=!1,this.parentComp==null)throw new Error("[sv] must include 'sv-container' component")}setClass(){let{ren:t,col:i,clsMap:r,type:s,rep:a,noColon:l}=this,c=this.parentComp,u=this.el;this._noColon=c.bordered?!0:l??c.noColon,r.forEach(p=>t.removeClass(u,p)),r.length=0;let d=c.colInCon||c.col;r.push(...a.genCls(i??d,d)),r.push(`${zC}__item`),c.labelWidth&&r.push(`${zC}__item-fixed`),s&&r.push(`${zC}__type-${s}`),r.forEach(p=>t.addClass(u,p))}ngAfterViewInit(){this.setClass(),this.checkContent()}ngOnChanges(){this.setClass()}checkContent(){let{conEl:t}=this,i=this.default;if(!(i??this.parentComp?.default))return;let r=t.nativeElement,s="sv__default";r.classList.contains(s)&&r.classList.remove(s),Bl(r)&&r.classList.add(s)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["sv"],["","sv",""]],viewQuery:function(i,r){if(i&1&&xe(P8,5),i&2){let s;ce(s=ue())&&(r.conEl=s.first)}},hostVars:4,hostBindings:function(i,r){i&2&&Re("padding-left",r.paddingValue,"px")("padding-right",r.paddingValue,"px")},inputs:{optional:"optional",optionalHelp:"optionalHelp",optionalHelpColor:"optionalHelpColor",label:"label",unit:"unit",col:[le.HasDecoratorInputTransform,"col","col",t=>t==null?null:fn(t)],default:[le.HasDecoratorInputTransform,"default","default",t=>t==null?null:it(t)],type:"type",noColon:[le.HasDecoratorInputTransform,"noColon","noColon",t=>t==null?null:it(t)],hideLabel:[le.HasDecoratorInputTransform,"hideLabel","hideLabel",it]},exportAs:["sv"],standalone:!0,features:[fi,oe,K],ngContentSelectors:OC,decls:6,vars:2,consts:[["class","sv__label",3,"sv__label-empty","sv__label-width","sv__no-colon","width"],[1,"sv__detail"],[3,"cdkObserveContent"],["conEl",""],["class","sv__unit"],[1,"sv__label"],[1,"sv__label-text"],[4,"nzStringTemplateOutlet"],["class","sv__label-optional",3,"sv__label-optional-no-text"],[1,"sv__label-optional"],["nz-tooltip","","nz-icon","","nzType","question-circle",3,"nzTooltipTitle","nzTooltipColor"],["class","sv__unit",4,"nzStringTemplateOutlet"],[1,"sv__unit"]],template:function(i,r){i&1&&(Pe(),_(0,L8,4,10,"div",0),C(1,"div",1)(2,"span",2,3),A("cdkObserveContent",function(){return r.checkContent()}),Ie(4),S(),_(5,V8,1,1,"span",4),S()),i&2&&(ie(0,r.hideLabel?-1:0),f(5),ie(5,r.unit?5:-1))},dependencies:[Ue,Si,Fe,Ll],encapsulation:2,changeDetection:0});let o=n;return o})();var _f=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[Zn,vp,ji,Ge,Ye]});let o=n;return o})();function B8(o,n){o&1&&Xt(0)}function $8(o,n){if(o&1&&_(0,B8,1,0,"ng-container",7),o&2){let e=m(3);h("nzStringTemplateOutlet",e.nzIcon)}}function j8(o,n){if(o&1&&R(0,"span",8),o&2){let e=m(3);h("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function W8(o,n){if(o&1&&(C(0,"div",6),_(1,$8,1,1,"ng-container")(2,j8,1,2),S()),o&2){let e=m(2);f(),ie(1,e.nzIcon?1:2)}}function U8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(4);f(),ye(e.nzMessage)}}function K8(o,n){if(o&1&&(C(0,"span",12),_(1,U8,2,1,"ng-container",7),S()),o&2){let e=m(3);f(),h("nzStringTemplateOutlet",e.nzMessage)}}function q8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(4);f(),ye(e.nzDescription)}}function Y8(o,n){if(o&1&&(C(0,"span",13),_(1,q8,2,1,"ng-container",7),S()),o&2){let e=m(3);f(),h("nzStringTemplateOutlet",e.nzDescription)}}function Q8(o,n){if(o&1&&(C(0,"div",9),_(1,K8,2,1,"span",10)(2,Y8,2,1,"span",11),S()),o&2){let e=m(2);f(),ie(1,e.nzMessage?1:-1),f(),ie(2,e.nzDescription?2:-1)}}function X8(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(3);f(),ye(e.nzAction)}}function Z8(o,n){if(o&1&&(C(0,"div",14),_(1,X8,2,1,"ng-container",7),S()),o&2){let e=m(2);f(),h("nzStringTemplateOutlet",e.nzAction)}}function J8(o,n){if(o&1&&(H(0),C(1,"span",16),Y(2),S(),B()),o&2){let e=m(4);f(2),ye(e.nzCloseText)}}function eK(o,n){if(o&1&&_(0,J8,3,1,"ng-container",7),o&2){let e=m(3);h("nzStringTemplateOutlet",e.nzCloseText)}}function tK(o,n){o&1&&R(0,"span",17)}function nK(o,n){if(o&1){let e=Q();C(0,"button",15),A("click",function(){I(e);let i=m(2);return P(i.closeAlert())}),_(1,eK,1,1,"ng-container")(2,tK,1,0),S()}if(o&2){let e=m(2);f(),ie(1,e.nzCloseText?1:2)}}function iK(o,n){if(o&1){let e=Q();C(0,"div",1),A("@slideAlertMotion.done",function(){I(e);let i=m();return P(i.onFadeAnimationDone())}),_(1,W8,3,1,"div",2)(2,Q8,3,2,"div",3)(3,Z8,2,1,"div",4)(4,nK,3,1,"button",5),S()}if(o&2){let e=m();k("ant-alert-rtl",e.dir==="rtl")("ant-alert-success",e.nzType==="success")("ant-alert-info",e.nzType==="info")("ant-alert-warning",e.nzType==="warning")("ant-alert-error",e.nzType==="error")("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),h("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),f(),ie(1,e.nzShowIcon?1:-1),f(),ie(2,e.nzMessage||e.nzDescription?2:-1),f(),ie(3,e.nzAction?3:-1),f(),ie(4,e.nzCloseable||e.nzCloseText?4:-1)}}var Jz="alert",rK=(()=>{let n=class n{constructor(t,i,r){this.nzConfigService=t,this.cdr=i,this.directionality=r,this._nzModuleName=Jz,this.nzAction=null,this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzIcon=null,this.nzOnClose=new O,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new J,this.nzConfigService.getConfigChangeEventForComponent(Jz).pipe(F(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(t){let{nzShowIcon:i,nzDescription:r,nzType:s,nzBanner:a}=t;if(i&&(this.isShowIconSet=!0),s)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle";break}r&&(this.iconTheme=this.nzDescription?"outline":"fill"),a&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(st),w(fe),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation",nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],standalone:!0,features:[oe,K],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description"],[1,"ant-alert"],["class","ant-alert-icon"],["class","ant-alert-content"],["class","ant-alert-action"],["type","button","tabindex","0","class","ant-alert-close-icon"],[1,"ant-alert-icon"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message"],["class","ant-alert-description"],[1,"ant-alert-message"],[1,"ant-alert-description"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],[1,"ant-alert-close-text"],["nz-icon","","nzType","close"]],template:function(i,r){i&1&&_(0,iK,5,24,"div",0),i&2&&ie(0,r.closed?-1:0)},dependencies:[Ge,Fe,Ye,Ue],encapsulation:2,data:{animation:[Ew]},changeDetection:0});let o=n;return N([De(),W()],o.prototype,"nzCloseable",void 0),N([De(),W()],o.prototype,"nzShowIcon",void 0),N([W()],o.prototype,"nzBanner",void 0),N([W()],o.prototype,"nzNoAnimation",void 0),o})(),Sf=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[rK]});let o=n;return o})();var sK=["textEl"];function aK(o,n){if(o&1&&R(0,"span",0),o&2){let e=m();h("nzType",e.nzIcon)}}function lK(o,n){if(o&1){let e=Q();C(0,"img",3),A("error",function(i){I(e);let r=m();return P(r.imgError(i))}),S()}if(o&2){let e=m();h("src",e.nzSrc,Do),ze("srcset",e.nzSrcSet)("alt",e.nzAlt)}}function cK(o,n){if(o&1&&(C(0,"span",4,5),Y(2),S()),o&2){let e=m();f(2),ye(e.nzText)}}var uK="avatar",dK=(()=>{let n=class n{constructor(t,i,r,s,a){this.nzConfigService=t,this.elementRef=i,this.cdr=r,this.platform=s,this.ngZone=a,this._nzModuleName=uK,this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new O,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(t){this.nzError.emit(t),t.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;let t=this.textEl.nativeElement,i=t.offsetWidth,r=this.el.getBoundingClientRect().width,s=this.nzGap*2<r?this.nzGap*2:8,a=r-s<i?(r-s)/i:1;t.style.transform=`scale(${a}) translateX(-50%)`,t.style.lineHeight=this.customSize||""}notifyCalc(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.calcStringSize()})})}setSizeStyle(){typeof this.nzSize=="number"?this.customSize=`${this.nzSize}px`:this.customSize=null,this.cdr.markForCheck()}};n.\u0275fac=function(i){return new(i||n)(w(st),w(de),w(fe),w(gn),w($e))},n.\u0275cmp=j({type:n,selectors:[["nz-avatar"]],viewQuery:function(i,r){if(i&1&&xe(sK,5),i&2){let s;ce(s=ue())&&(r.textEl=s.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(i,r){i&2&&(Re("width",r.customSize)("height",r.customSize)("line-height",r.customSize)("font-size",r.hasIcon&&r.customSize?r.nzSize/2:null,"px"),k("ant-avatar-lg",r.nzSize==="large")("ant-avatar-sm",r.nzSize==="small")("ant-avatar-square",r.nzShape==="square")("ant-avatar-circle",r.nzShape==="circle")("ant-avatar-icon",r.nzIcon)("ant-avatar-image",r.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],standalone:!0,features:[oe,K],decls:3,vars:3,consts:[["nz-icon","",3,"nzType"],[3,"src"],["class","ant-avatar-string"],[3,"src","error"],[1,"ant-avatar-string"],["textEl",""]],template:function(i,r){i&1&&_(0,aK,1,1,"span",0)(1,lK,1,3,"img",1)(2,cK,3,1,"span",2),i&2&&(ie(0,r.nzIcon&&r.hasIcon?0:-1),f(),ie(1,r.nzSrc&&r.hasSrc?1:-1),f(),ie(2,r.nzText&&r.hasText?2:-1))},dependencies:[Ge,Fe,hp],encapsulation:2,changeDetection:0});let o=n;return N([De()],o.prototype,"nzShape",void 0),N([De()],o.prototype,"nzSize",void 0),N([De(),ci()],o.prototype,"nzGap",void 0),o})();var wf=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[dK]});let o=n;return o})();function hK(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(3);f(),ye(e.nzTitle)}}function fK(o,n){if(o&1&&(C(0,"div",10),_(1,hK,2,1,"ng-container",9),S()),o&2){let e=m(2);f(),h("nzStringTemplateOutlet",e.nzTitle)}}function gK(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=m(2);f(),ye(e.nzContent)}}function mK(o,n){if(o&1&&(C(0,"div",2)(1,"div",3)(2,"div",4),R(3,"span",5),S(),C(4,"div",6)(5,"div"),_(6,fK,2,1,"div",7),C(7,"div",8),_(8,gK,2,1,"ng-container",9),S()()()()()),o&2){let e=m();k("ant-popover-rtl",e.dir==="rtl"),h("ngClass",e._classMap)("ngStyle",e.nzOverlayStyle)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),f(6),h("ngIf",e.nzTitle),f(2),h("nzStringTemplateOutlet",e.nzContent)}}var vK="popover",jSe=(()=>{let n=class n extends Su{getProxyPropertyMap(){return V({nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop]},super.getProxyPropertyMap())}constructor(t,i,r,s,a){super(t,i,r,s,a),this._nzModuleName=vK,this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new O,this.componentRef=this.hostView.createComponent(eO)}};n.\u0275fac=function(i){return new(i||n)(w(de),w(Tn),w(He),w(ft,9),w(st))},n.\u0275dir=Se({type:n,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(i,r){i&2&&k("ant-popover-open",r.visible)},inputs:{arrowPointAtCenter:[le.None,"nzPopoverArrowPointAtCenter","arrowPointAtCenter"],title:[le.None,"nzPopoverTitle","title"],content:[le.None,"nzPopoverContent","content"],directiveTitle:[le.None,"nz-popover","directiveTitle"],trigger:[le.None,"nzPopoverTrigger","trigger"],placement:[le.None,"nzPopoverPlacement","placement"],origin:[le.None,"nzPopoverOrigin","origin"],visible:[le.None,"nzPopoverVisible","visible"],mouseEnterDelay:[le.None,"nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[le.None,"nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[le.None,"nzPopoverOverlayClassName","overlayClassName"],overlayStyle:[le.None,"nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],standalone:!0,features:[Xe]});let o=n;return N([W()],o.prototype,"arrowPointAtCenter",void 0),N([De()],o.prototype,"nzPopoverBackdrop",void 0),o})(),eO=(()=>{let n=class n extends Ql{constructor(t,i,r){super(t,i,r),this._prefix="ant-popover"}get hasBackdrop(){return this.nzTrigger==="click"?this.nzBackdrop:!1}isEmpty(){return qp(this.nzTitle)&&qp(this.nzContent)}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(Me,8),w(ft,9))},n.\u0275cmp=j({type:n,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],standalone:!0,features:[Xe,K],decls:2,vars:6,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-arrow-content"],["role","tooltip",1,"ant-popover-inner"],["class","ant-popover-title",4,"ngIf"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-title"]],template:function(i,r){i&1&&(_(0,mK,9,9,"ng-template",0,1,_e),A("overlayOutsideClick",function(a){return r.onClickOutside(a)})("detach",function(){return r.hide()})("positionChange",function(a){return r.onPositionChange(a)})),i&2&&h("cdkConnectedOverlayHasBackdrop",r.hasBackdrop)("cdkConnectedOverlayOrigin",r.origin)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayOpen",r._visible)("cdkConnectedOverlayPush",r.cdkConnectedOverlayPush)("nzArrowPointAtCenter",r.nzArrowPointAtCenter)},dependencies:[Fr,oi,vr,Nr,St,Zt,ft,we,Ye,Ue],encapsulation:2,data:{animation:[Is]},changeDetection:0});let o=n;return o})(),bf=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[eO]});let o=n;return o})();function CK(o,n){if(o&1&&(H(0),R(1,"span",8),B()),o&2){let e=m(3);f(),h("nzType",e.icon)}}function _K(o,n){if(o&1&&(H(0),Y(1),B()),o&2){let e=n.$implicit,t=m(4);f(),Ne(" ",e(t.nzPercent)," ")}}var SK=o=>({$implicit:o});function wK(o,n){if(o&1&&_(0,_K,2,1,"ng-container",9),o&2){let e=m(3);h("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",yt(2,SK,e.nzPercent))}}function bK(o,n){if(o&1&&(C(0,"span",5),_(1,CK,2,1,"ng-container",6)(2,wK,1,4,"ng-template",null,7,_e),S()),o&2){let e=te(3),t=m(2);f(),h("ngIf",(t.status==="exception"||t.status==="success")&&!t.nzFormat)("ngIfElse",e)}}function TK(o,n){if(o&1&&_(0,bK,4,2,"span",4),o&2){let e=m();h("ngIf",e.nzShowInfo)}}function EK(o,n){if(o&1&&R(0,"div",17),o&2){let e=m(4);Re("width",e.nzSuccessPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("height",e.strokeWidth,"px")}}function xK(o,n){if(o&1&&(C(0,"div",13)(1,"div",14),R(2,"div",15),_(3,EK,1,6,"div",16),S()()),o&2){let e=m(3);f(2),Re("width",e.nzPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),f(),h("ngIf",e.nzSuccessPercent||e.nzSuccessPercent===0)}}function zK(o,n){}function OK(o,n){if(o&1&&(H(0),_(1,xK,4,11,"div",11)(2,zK,0,0,"ng-template",12),B()),o&2){let e=m(2),t=te(1);f(),h("ngIf",!e.isSteps),f(),h("ngTemplateOutlet",t)}}function DK(o,n){if(o&1&&R(0,"div",20),o&2){let e=n.$implicit;h("ngStyle",e)}}function RK(o,n){}function IK(o,n){if(o&1&&(C(0,"div",18),_(1,DK,1,1,"div",19)(2,RK,0,0,"ng-template",12),S()),o&2){let e=m(2),t=te(1);f(),h("ngForOf",e.steps),f(),h("ngTemplateOutlet",t)}}function PK(o,n){if(o&1&&(C(0,"div"),_(1,OK,3,2,"ng-container",2)(2,IK,3,2,"div",10),S()),o&2){let e=m();f(),h("ngIf",!e.isSteps),f(),h("ngIf",e.isSteps)}}function MK(o,n){if(o&1&&(Oo(),R(0,"stop")),o&2){let e=n.$implicit;ze("offset",e.offset)("stop-color",e.color)}}function FK(o,n){if(o&1&&(Oo(),C(0,"defs")(1,"linearGradient",24),_(2,MK,1,2,"stop",25),S()()),o&2){let e=m(2);f(),h("id","gradient-"+e.gradientId),f(),h("ngForOf",e.circleGradient)}}function AK(o,n){if(o&1&&(Oo(),R(0,"path",26)),o&2){let e=n.$implicit,t=m(2);h("ngStyle",e.strokePathStyle),ze("d",t.pathString)("stroke-linecap",t.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",t.nzPercent?t.strokeWidth:0)}}function NK(o,n){o&1&&Oo()}function LK(o,n){if(o&1&&(C(0,"div",14),Oo(),C(1,"svg",21),_(2,FK,3,2,"defs",2),R(3,"path",22),_(4,AK,1,5,"path",23),S(),_(5,NK,0,0,"ng-template",12),S()),o&2){let e=m(),t=te(1);Re("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",e.nzWidth*.15+6,"px"),k("ant-progress-circle-gradient",e.isGradient),f(2),h("ngIf",e.isGradient),f(),h("ngStyle",e.trailPathStyle),ze("stroke-width",e.strokeWidth)("d",e.pathString),f(),h("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),f(),h("ngTemplateOutlet",t)}}function kK(o){return+o.replace("%","")}var nO=o=>{let n=[];return Object.keys(o).forEach(e=>{let t=o[e],i=kK(e);isNaN(i)||n.push({key:i,value:t})}),n=n.sort((e,t)=>e.key-t.key),n},VK=o=>nO(o).map(({key:n,value:e})=>({offset:`${n}%`,color:e})),GK=o=>{let r=o,{from:n="#1890ff",to:e="#1890ff",direction:t="to right"}=r,i=op(r,["from","to","direction"]);if(Object.keys(i).length!==0){let s=nO(i).map(({key:a,value:l})=>`${l} ${a}%`).join(", ");return`linear-gradient(${t}, ${s})`}return`linear-gradient(${t}, ${n}, ${e})`},HK=0,tO="progress",BK=new Map([["success","check"],["exception","close"]]),$K=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),jK=o=>`${o}%`,WK=(()=>{let n=class n{get formatter(){return this.nzFormat||jK}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"}constructor(t,i,r){this.cdr=t,this.nzConfigService=i,this.directionality=r,this._nzModuleName=tO,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.nzSteps=0,this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=HK++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=s=>`${s}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new J}ngOnChanges(t){let{nzSteps:i,nzGapPosition:r,nzStrokeLinecap:s,nzStrokeColor:a,nzGapDegree:l,nzType:c,nzStatus:u,nzPercent:d,nzSuccessPercent:p,nzStrokeWidth:g}=t;u&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(d||p)&&(parseInt(this.nzPercent.toString(),10)>=100?(ht(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||this.nzSuccessPercent===void 0)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(u||d||p||a)&&this.updateIcon(),a&&this.setStrokeColor(),(r||s||l||c||d||a||a)&&this.getCirclePaths(),(d||i||g)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent(tO).pipe(F(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){let t=BK.get(this.status);this.icon=t?t+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){let t=Math.floor(this.nzSteps*(this.nzPercent/100)),i=this.nzSize==="small"?2:14,r=[];for(let s=0;s<this.nzSteps;s++){let a;s<=t-1&&(a=this.nzStrokeColor);let l={backgroundColor:`${a}`,width:`${i}px`,height:`${this.strokeWidth}px`};r.push(l)}this.steps=r}getCirclePaths(){if(!this.isCircleStyle)return;let t=ht(this.nzSuccessPercent)?[this.nzSuccessPercent,this.nzPercent]:[this.nzPercent],i=50-this.strokeWidth/2,r=this.nzGapPosition||(this.nzType==="circle"?"top":"bottom"),s=Math.PI*2*i,a=this.nzGapDegree||(this.nzType==="circle"?0:75),l=0,c=-i,u=0,d=i*-2;switch(r){case"left":l=-i,c=0,u=i*2,d=0;break;case"right":l=i,c=0,u=i*-2,d=0;break;case"bottom":c=i,d=i*2;break;default:}this.pathString=`M 50,50 m ${l},${c}
  9. a ${i},${i} 0 1 1 ${u},${-d}
  10. a ${i},${i} 0 1 1 ${-u},${d}`,this.trailPathStyle={strokeDasharray:`${s-a}px ${s}px`,strokeDashoffset:`-${a/2}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},this.progressCirclePath=t.map((p,g)=>{let v=t.length===2&&g===0;return{stroke:this.isGradient&&!v?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:v?$K.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(p||0)/100*(s-a)}px ${s}px`,strokeDashoffset:`-${a/2}px`}}}).reverse()}setStrokeColor(){let t=this.nzStrokeColor,i=this.isGradient=!!t&&typeof t!="string";i&&!this.isCircleStyle?this.lineGradient=GK(t):i&&this.isCircleStyle?this.circleGradient=VK(this.nzStrokeColor):(this.lineGradient=null,this.circleGradient=[])}};n.\u0275fac=function(i){return new(i||n)(w(fe),w(st),w(Me,8))},n.\u0275cmp=j({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],standalone:!0,features:[oe,K],decls:5,vars:17,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(i,r){i&1&&(_(0,TK,1,1,"ng-template",null,0,_e),C(2,"div",1),_(3,PK,3,2,"div",2)(4,LK,6,15,"div",3),S()),i&2&&(f(2),k("ant-progress-line",r.nzType==="line")("ant-progress-small",r.nzSize==="small")("ant-progress-default",r.nzSize==="default")("ant-progress-show-info",r.nzShowInfo)("ant-progress-circle",r.isCircleStyle)("ant-progress-steps",r.isSteps)("ant-progress-rtl",r.dir==="rtl"),h("ngClass","ant-progress ant-progress-status-"+r.status),f(),h("ngIf",r.nzType==="line"),f(),h("ngIf",r.isCircleStyle))},dependencies:[we,Ge,Fe,Ye,Ue,St,Be,lt,Zt],encapsulation:2,changeDetection:0});let o=n;return N([De()],o.prototype,"nzShowInfo",void 0),N([De()],o.prototype,"nzStrokeColor",void 0),N([De()],o.prototype,"nzSize",void 0),N([ci()],o.prototype,"nzSuccessPercent",void 0),N([ci()],o.prototype,"nzPercent",void 0),N([De(),ci()],o.prototype,"nzStrokeWidth",void 0),N([De(),ci()],o.prototype,"nzGapDegree",void 0),N([De()],o.prototype,"nzGapPosition",void 0),N([De()],o.prototype,"nzStrokeLinecap",void 0),N([ci()],o.prototype,"nzSteps",void 0),o})(),Tf=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[WK]});let o=n;return o})();var KK=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qK=/([^\#-~ |!])/g;function YK(o){return o.replace(/&/g,"&amp;").replace(KK,n=>{let e=n.charCodeAt(0),t=n.charCodeAt(1);return`&#${(e-55296)*1024+(t-56320)+65536};`}).replace(qK,n=>`&#${n.charCodeAt(0)};`).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var iO=(()=>{let n=class n{constructor(){this.UNIQUE_WRAPPERS=["##==-open_tag-==##","##==-close_tag-==##"]}transform(t,i,r,s){if(!i)return t;let a=new RegExp(i.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$&"),r),l=t.replace(a,`${this.UNIQUE_WRAPPERS[0]}$&${this.UNIQUE_WRAPPERS[1]}`);return YK(l).replace(new RegExp(this.UNIQUE_WRAPPERS[0],"g"),s?`<span class="${s}">`:"<span>").replace(new RegExp(this.UNIQUE_WRAPPERS[1],"g"),"</span>")}};n.\u0275fac=function(i){return new(i||n)},n.\u0275pipe=SS({name:"nzHighlight",type:n,pure:!0,standalone:!0});let o=n;return o})(),rO=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({});let o=n;return o})();function XK(o,n){if(o&1&&R(0,"span"),o&2){let e=n.index,t=m();k("ant-tree-indent-unit",!t.nzSelectMode)("ant-select-tree-indent-unit",t.nzSelectMode)("ant-select-tree-indent-unit-start",t.nzSelectMode&&t.nzIsStart[e])("ant-tree-indent-unit-start",!t.nzSelectMode&&t.nzIsStart[e])("ant-select-tree-indent-unit-end",t.nzSelectMode&&t.nzIsEnd[e])("ant-tree-indent-unit-end",!t.nzSelectMode&&t.nzIsEnd[e])}}var oO=["builtin",""];function ZK(o,n){if(o&1&&(H(0),R(1,"span",4),B()),o&2){let e=m(3);f(),k("ant-select-tree-switcher-icon",e.nzSelectMode)("ant-tree-switcher-icon",!e.nzSelectMode)}}var DC=(o,n)=>({$implicit:o,origin:n});function JK(o,n){if(o&1&&(H(0),_(1,ZK,2,4,"ng-container",3),B()),o&2){let e=m(2);f(),h("nzStringTemplateOutlet",e.nzExpandedIcon)("nzStringTemplateOutletContext",ri(2,DC,e.context,e.context.origin))}}function e7(o,n){if(o&1&&(H(0),_(1,JK,2,5,"ng-container",2),B()),o&2){let e=m(),t=te(3);f(),h("ngIf",!e.isLoading)("ngIfElse",t)}}function t7(o,n){if(o&1&&R(0,"span",7),o&2){let e=m(4);h("nzType",e.isSwitcherOpen?"minus-square":"plus-square")}}function n7(o,n){o&1&&R(0,"span",8)}function i7(o,n){if(o&1&&(H(0),_(1,t7,1,1,"span",5)(2,n7,1,0,"span",6),B()),o&2){let e=m(3);f(),h("ngIf",e.isShowLineIcon),f(),h("ngIf",!e.isShowLineIcon)}}function r7(o,n){if(o&1&&(H(0),_(1,i7,3,2,"ng-container",3),B()),o&2){let e=m(2);f(),h("nzStringTemplateOutlet",e.nzExpandedIcon)("nzStringTemplateOutletContext",ri(2,DC,e.context,e.context.origin))}}function o7(o,n){if(o&1&&(H(0),_(1,r7,2,5,"ng-container",2),B()),o&2){let e=m(),t=te(3);f(),h("ngIf",!e.isLoading)("ngIfElse",t)}}function s7(o,n){o&1&&R(0,"span",9),o&2&&h("nzSpin",!0)}function a7(o,n){}function l7(o,n){if(o&1&&R(0,"span",6),o&2){let e=m(3);h("nzType",e.icon)}}function c7(o,n){if(o&1&&(C(0,"span")(1,"span"),_(2,l7,1,1,"span",5),S()()),o&2){let e=m(2);k("ant-tree-icon__open",e.isSwitcherOpen)("ant-tree-icon__close",e.isSwitcherClose)("ant-tree-icon_loading",e.isLoading)("ant-select-tree-iconEle",e.selectMode)("ant-tree-iconEle",!e.selectMode),f(),k("ant-select-tree-iconEle",e.selectMode)("ant-select-tree-icon__customize",e.selectMode)("ant-tree-iconEle",!e.selectMode)("ant-tree-icon__customize",!e.selectMode),f(),h("ngIf",e.icon)}}function u7(o,n){if(o&1&&(H(0),_(1,c7,3,19,"span",3),R(2,"span",4),Xn(3,"nzHighlight"),B()),o&2){let e=m();f(),h("ngIf",e.icon&&e.showIcon),f(),h("innerHTML",DS(3,2,e.title,e.matchedValue,"i","font-highlight"),Dt)}}function d7(o,n){if(o&1&&R(0,"nz-tree-drop-indicator",7),o&2){let e=m();h("dropPosition",e.dragPosition)("level",e.context.level)}}function p7(o,n){if(o&1){let e=Q();C(0,"nz-tree-node-switcher",4),A("click",function(i){I(e);let r=m();return P(r.clickExpand(i))}),S()}if(o&2){let e=m();h("nzShowExpand",e.nzShowExpand)("nzShowLine",e.nzShowLine)("nzExpandedIcon",e.nzExpandedIcon)("nzSelectMode",e.nzSelectMode)("context",e.nzTreeNode)("isLeaf",e.isLeaf)("isExpanded",e.isExpanded)("isLoading",e.isLoading)}}function h7(o,n){if(o&1){let e=Q();C(0,"nz-tree-node-checkbox",5),A("click",function(i){I(e);let r=m();return P(r.clickCheckBox(i))}),S()}if(o&2){let e=m();h("nzSelectMode",e.nzSelectMode)("isChecked",e.isChecked)("isHalfChecked",e.isHalfChecked)("isDisabled",e.isDisabled)("isDisableCheckbox",e.isDisableCheckbox)}}var f7=["nzTreeTemplate"];function g7(o,n){}var sO=o=>({$implicit:o});function m7(o,n){if(o&1&&(H(0),_(1,g7,0,0,"ng-template",10),B()),o&2){let e=n.$implicit;m(2);let t=te(9);f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(2,sO,e))}}function v7(o,n){if(o&1&&(C(0,"cdk-virtual-scroll-viewport",8),_(1,m7,2,4,"ng-container",9),S()),o&2){let e=m();Re("height",e.nzVirtualHeight),k("ant-select-tree-list-holder-inner",e.nzSelectMode)("ant-tree-list-holder-inner",!e.nzSelectMode),h("itemSize",e.nzVirtualItemSize)("minBufferPx",e.nzVirtualMinBufferPx)("maxBufferPx",e.nzVirtualMaxBufferPx),f(),h("cdkVirtualForOf",e.nzFlattenNodes)("cdkVirtualForTrackBy",e.trackByFlattenNode)}}function y7(o,n){}function C7(o,n){if(o&1&&(H(0),_(1,y7,0,0,"ng-template",10),B()),o&2){let e=n.$implicit;m(2);let t=te(9);f(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",yt(2,sO,e))}}function _7(o,n){if(o&1&&(C(0,"div",11),_(1,C7,2,4,"ng-container",12),S()),o&2){let e=m();k("ant-select-tree-list-holder-inner",e.nzSelectMode)("ant-tree-list-holder-inner",!e.nzSelectMode),h("@.disabled",e.beforeInit||!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("@treeCollapseMotion",e.nzFlattenNodes.length),f(),h("ngForOf",e.nzFlattenNodes)("ngForTrackBy",e.trackByFlattenNode)}}function S7(o,n){if(o&1){let e=Q();C(0,"nz-tree-node",13),A("nzExpandChange",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzClick",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzDblClick",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzContextMenu",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzCheckBoxChange",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzOnDragStart",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzOnDragEnter",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzOnDragOver",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzOnDragLeave",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzOnDragEnd",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))})("nzOnDrop",function(i){I(e);let r=m();return P(r.eventTriggerChanged(i))}),S()}if(o&2){let e=n.$implicit,t=m();h("icon",e.icon)("title",e.title)("isLoading",e.isLoading)("isSelected",e.isSelected)("isDisabled",e.isDisabled)("isMatched",e.isMatched)("isExpanded",e.isExpanded)("isLeaf",e.isLeaf)("isStart",e.isStart)("isEnd",e.isEnd)("isChecked",e.isChecked)("isHalfChecked",e.isHalfChecked)("isDisableCheckbox",e.isDisableCheckbox)("isSelectable",e.isSelectable)("canHide",e.canHide)("nzTreeNode",e)("nzSelectMode",t.nzSelectMode)("nzShowLine",t.nzShowLine)("nzExpandedIcon",t.nzExpandedIcon)("nzDraggable",t.nzDraggable)("nzCheckable",t.nzCheckable)("nzShowExpand",t.nzShowExpand)("nzAsyncData",t.nzAsyncData)("nzSearchValue",t.nzSearchValue)("nzHideUnMatched",t.nzHideUnMatched)("nzBeforeDrop",t.nzBeforeDrop)("nzShowIcon",t.nzShowIcon)("nzTreeTemplate",t.nzTreeTemplate||t.nzTreeTemplateChild)}}var w7=(()=>{let n=class n{constructor(t){this.cdr=t,this.level=1,this.direction="ltr",this.style={}}ngOnChanges(t){this.renderIndicator(this.dropPosition,this.direction)}renderIndicator(t,i="ltr"){let s=i==="ltr"?"left":"right",a=i==="ltr"?"right":"left",l={[s]:"4px",[a]:"0px"};switch(t){case-1:l.top="-3px";break;case 1:l.bottom="-3px";break;case 0:l.bottom="-3px",l[s]="28px";break;default:l.display="none";break}this.style=l,this.cdr.markForCheck()}};n.\u0275fac=function(i){return new(i||n)(w(fe))},n.\u0275cmp=j({type:n,selectors:[["nz-tree-drop-indicator"]],hostVars:4,hostBindings:function(i,r){i&2&&(Ol(r.style),k("ant-tree-drop-indicator",!0))},inputs:{dropPosition:"dropPosition",level:"level",direction:"direction"},exportAs:["NzTreeDropIndicator"],standalone:!0,features:[oe,K],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0});let o=n;return o})(),b7=(()=>{let n=class n{constructor(){this.nzTreeLevel=0,this.nzIsStart=[],this.nzIsEnd=[],this.nzSelectMode=!1,this.listOfUnit=[]}ngOnChanges(t){let{nzTreeLevel:i}=t;i&&(this.listOfUnit=[...new Array(i.currentValue||0)])}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-tree-indent"]],hostVars:5,hostBindings:function(i,r){i&2&&(ze("aria-hidden",!0),k("ant-tree-indent",!r.nzSelectMode)("ant-select-tree-indent",r.nzSelectMode))},inputs:{nzTreeLevel:"nzTreeLevel",nzIsStart:"nzIsStart",nzIsEnd:"nzIsEnd",nzSelectMode:"nzSelectMode"},exportAs:["nzTreeIndent"],standalone:!0,features:[oe,K],decls:1,vars:1,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",4,"ngFor","ngForOf"]],template:function(i,r){i&1&&_(0,XK,1,12,"span",0),i&2&&h("ngForOf",r.listOfUnit)},dependencies:[lt],encapsulation:2,changeDetection:0});let o=n;return o})(),T7=(()=>{let n=class n{constructor(){this.nzSelectMode=!1}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-tree-node-checkbox","builtin",""]],hostVars:16,hostBindings:function(i,r){i&2&&k("ant-select-tree-checkbox",r.nzSelectMode)("ant-select-tree-checkbox-checked",r.nzSelectMode&&r.isChecked)("ant-select-tree-checkbox-indeterminate",r.nzSelectMode&&r.isHalfChecked)("ant-select-tree-checkbox-disabled",r.nzSelectMode&&(r.isDisabled||r.isDisableCheckbox))("ant-tree-checkbox",!r.nzSelectMode)("ant-tree-checkbox-checked",!r.nzSelectMode&&r.isChecked)("ant-tree-checkbox-indeterminate",!r.nzSelectMode&&r.isHalfChecked)("ant-tree-checkbox-disabled",!r.nzSelectMode&&(r.isDisabled||r.isDisableCheckbox))},inputs:{nzSelectMode:"nzSelectMode",isChecked:"isChecked",isHalfChecked:"isHalfChecked",isDisabled:"isDisabled",isDisableCheckbox:"isDisableCheckbox"},standalone:!0,features:[K],attrs:oO,decls:1,vars:4,template:function(i,r){i&1&&R(0,"span"),i&2&&k("ant-tree-checkbox-inner",!r.nzSelectMode)("ant-select-tree-checkbox-inner",r.nzSelectMode)},encapsulation:2,changeDetection:0});let o=n;return o})(),aO=(()=>{let n=class n{constructor(){this.nzSelectMode=!1}get isShowLineIcon(){return!this.isLeaf&&!!this.nzShowLine}get isShowSwitchIcon(){return!this.isLeaf&&!this.nzShowLine}get isSwitcherOpen(){return!!this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=j({type:n,selectors:[["nz-tree-node-switcher"]],hostVars:16,hostBindings:function(i,r){i&2&&k("ant-select-tree-switcher",r.nzSelectMode)("ant-select-tree-switcher-noop",r.nzSelectMode&&r.isLeaf)("ant-select-tree-switcher_open",r.nzSelectMode&&r.isSwitcherOpen)("ant-select-tree-switcher_close",r.nzSelectMode&&r.isSwitcherClose)("ant-tree-switcher",!r.nzSelectMode)("ant-tree-switcher-noop",!r.nzSelectMode&&r.isLeaf)("ant-tree-switcher_open",!r.nzSelectMode&&r.isSwitcherOpen)("ant-tree-switcher_close",!r.nzSelectMode&&r.isSwitcherClose)},inputs:{nzShowExpand:"nzShowExpand",nzShowLine:"nzShowLine",nzExpandedIcon:"nzExpandedIcon",nzSelectMode:"nzSelectMode",context:"context",isLeaf:"isLeaf",isLoading:"isLoading",isExpanded:"isExpanded"},standalone:!0,features:[K],decls:4,vars:2,consts:[[4,"ngIf"],["loadingTemplate",""],[4,"ngIf","ngIfElse"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-icon","","nzType","caret-down"],["nz-icon","","class","ant-tree-switcher-line-icon",3,"nzType",4,"ngIf"],["nz-icon","","nzType","file","class","ant-tree-switcher-line-icon",4,"ngIf"],["nz-icon","",1,"ant-tree-switcher-line-icon",3,"nzType"],["nz-icon","","nzType","file",1,"ant-tree-switcher-line-icon"],["nz-icon","","nzType","loading",1,"ant-tree-switcher-loading-icon",3,"nzSpin"]],template:function(i,r){i&1&&_(0,e7,2,2,"ng-container",0)(1,o7,2,2,"ng-container",0)(2,s7,1,1,"ng-template",null,1,_e),i&2&&(h("ngIf",r.isShowSwitchIcon),f(),h("ngIf",r.nzShowLine))},dependencies:[Ge,Fe,we,Ye,Ue],encapsulation:2,changeDetection:0});let o=n;return o})(),lO=(()=>{let n=class n{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}constructor(t){this.cdr=t,this.treeTemplate=null,this.selectMode=!1,this.showIndicator=!0}ngOnChanges(t){let{showIndicator:i,dragPosition:r}=t;(i||r)&&this.cdr.markForCheck()}};n.\u0275fac=function(i){return new(i||n)(w(fe))},n.\u0275cmp=j({type:n,selectors:[["nz-tree-node-title"]],hostVars:21,hostBindings:function(i,r){i&2&&(ze("title",r.title)("draggable",r.canDraggable)("aria-grabbed",r.canDraggable),k("draggable",r.canDraggable)("ant-select-tree-node-content-wrapper",r.selectMode)("ant-select-tree-node-content-wrapper-open",r.selectMode&&r.isSwitcherOpen)("ant-select-tree-node-content-wrapper-close",r.selectMode&&r.isSwitcherClose)("ant-select-tree-node-selected",r.selectMode&&r.isSelected)("ant-tree-node-content-wrapper",!r.selectMode)("ant-tree-node-content-wrapper-open",!r.selectMode&&r.isSwitcherOpen)("ant-tree-node-content-wrapper-close",!r.selectMode&&r.isSwitcherClose)("ant-tree-node-selected",!r.selectMode&&r.isSelected))},inputs:{searchValue:"searchValue",treeTemplate:"treeTemplate",draggable:"draggable",showIcon:"showIcon",selectMode:"selectMode",context:"context",icon:"icon",title:"title",isLoading:"isLoading",isSelected:"isSelected",isDisabled:"isDisabled",isMatched:"isMatched",isExpanded:"isExpanded",isLeaf:"isLeaf",showIndicator:"showIndicator",dragPosition:"dragPosition"},standalone:!0,features:[oe,K],decls:3,vars:7,consts:[[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"dropPosition","level",4,"ngIf"],[3,"ant-tree-icon__open","ant-tree-icon__close","ant-tree-icon_loading","ant-select-tree-iconEle","ant-tree-iconEle",4,"ngIf"],[1,"ant-tree-title",3,"innerHTML"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"dropPosition","level"]],template:function(i,r){i&1&&_(0,a7,0,0,"ng-template",0)(1,u7,4,7,"ng-container",1)(2,d7,1,2,"nz-tree-drop-indicator",2),i&2&&(h("ngTemplateOutlet",r.treeTemplate)("ngTemplateOutletContext",ri(4,DC,r.context,r.context.origin)),f(),h("ngIf",!r.treeTemplate),f(),h("ngIf",r.showIndicator))},dependencies:[Be,we,Ge,Fe,rO,iO,w7],encapsulation:2,changeDetection:0});let o=n;return o})(),cO=(()=>{let n=class n{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(t){t.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 i=this.nzTreeService.formatEvent("expand",this.nzTreeNode,t);this.nzExpandChange.emit(i)}clickSelect(t){t.preventDefault(),this.isSelectable&&!this.isDisabled&&(this.nzTreeNode.isSelected=!this.nzTreeNode.isSelected),this.nzTreeService.setSelectedNodeList(this.nzTreeNode);let i=this.nzTreeService.formatEvent("click",this.nzTreeNode,t);this.nzClick.emit(i)}dblClick(t){t.preventDefault();let i=this.nzTreeService.formatEvent("dblclick",this.nzTreeNode,t);this.nzDblClick.emit(i)}contextMenu(t){t.preventDefault();let i=this.nzTreeService.formatEvent("contextmenu",this.nzTreeNode,t);this.nzContextMenu.emit(i)}clickCheckBox(t){if(t.preventDefault(),this.isDisabled||this.isDisableCheckbox)return;this.nzTreeNode.isChecked=!this.nzTreeNode.isChecked,this.nzTreeNode.isHalfChecked=!1,this.nzTreeService.setCheckedNodeList(this.nzTreeNode);let i=this.nzTreeService.formatEvent("check",this.nzTreeNode,t);this.nzCheckBoxChange.emit(i)}clearDragClass(){["drag-over-gap-top","drag-over-gap-bottom","drag-over","drop-target"].forEach(i=>{this.renderer.removeClass(this.elementRef.nativeElement,i)})}handleDragStart(t){try{t.dataTransfer.setData("text/plain",this.nzTreeNode.key)}catch{}this.nzTreeService.setSelectedNode(this.nzTreeNode),this.draggingKey=this.nzTreeNode.key;let i=this.nzTreeService.formatEvent("dragstart",this.nzTreeNode,t);this.nzOnDragStart.emit(i)}handleDragEnter(t){t.preventDefault(),this.showIndicator=this.nzTreeNode.key!==this.nzTreeService.getSelectedNode()?.key,this.renderIndicator(2),this.ngZone.run(()=>{let i=this.nzTreeService.formatEvent("dragenter",this.nzTreeNode,t);this.nzOnDragEnter.emit(i)})}handleDragOver(t){t.preventDefault();let i=this.nzTreeService.calcDropPosition(t);this.dragPos!==i&&(this.clearDragClass(),this.renderIndicator(i),this.dragPos===0&&this.isLeaf||(this.renderer.addClass(this.elementRef.nativeElement,this.dragPosClass[this.dragPos]),this.renderer.addClass(this.elementRef.nativeElement,"drop-target")));let r=this.nzTreeService.formatEvent("dragover",this.nzTreeNode,t);this.nzOnDragOver.emit(r)}handleDragLeave(t){t.preventDefault(),this.renderIndicator(2),this.clearDragClass();let i=this.nzTreeService.formatEvent("dragleave",this.nzTreeNode,t);this.nzOnDragLeave.emit(i)}handleDragDrop(t){t.preventDefault(),t.stopPropagation(),this.ngZone.run(()=>{this.showIndicator=!1,this.clearDragClass();let i=this.nzTreeService.getSelectedNode();if(!i||i&&i.key===this.nzTreeNode.key||this.dragPos===0&&this.isLeaf)return;let r=this.nzTreeService.formatEvent("drop",this.nzTreeNode,t),s=this.nzTreeService.formatEvent("dragend",this.nzTreeNode,t);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(r),this.nzOnDragEnd.emit(s)}):this.nzTreeNode&&(this.nzTreeService.dropAndApply(this.nzTreeNode,this.dragPos),this.nzOnDrop.emit(r))})}handleDragEnd(t){t.preventDefault(),this.ngZone.run(()=>{if(this.nzBeforeDrop)this.draggingKey=null,this.markForCheck();else{this.draggingKey=null;let i=this.nzTreeService.formatEvent("dragend",this.nzTreeNode,t);this.nzOnDragEnd.emit(i)}})}handDragEvent(){this.ngZone.runOutsideAngular(()=>{if(this.nzDraggable){let t=this.elementRef.nativeElement;this.destroy$=new J,Ke(t,"dragstart").pipe(F(this.destroy$)).subscribe(i=>this.handleDragStart(i)),Ke(t,"dragenter").pipe(F(this.destroy$)).subscribe(i=>this.handleDragEnter(i)),Ke(t,"dragover").pipe(F(this.destroy$)).subscribe(i=>this.handleDragOver(i)),Ke(t,"dragleave").pipe(F(this.destroy$)).subscribe(i=>this.handleDragLeave(i)),Ke(t,"drop").pipe(F(this.destroy$)).subscribe(i=>this.handleDragDrop(i)),Ke(t,"dragend").pipe(F(this.destroy$)).subscribe(i=>this.handleDragEnd(i))}else this.destroy$.next(!0),this.destroy$.complete()})}markForCheck(){this.cdr.markForCheck()}constructor(t,i,r,s,a,l){this.nzTreeService=t,this.ngZone=i,this.renderer=r,this.elementRef=s,this.cdr=a,this.noAnimation=l,this.icon="",this.title="",this.isLoading=!1,this.isSelected=!1,this.isDisabled=!1,this.isMatched=!1,this.isStart=[],this.isEnd=[],this.nzHideUnMatched=!1,this.nzNoAnimation=!1,this.nzSelectMode=!1,this.nzShowIcon=!1,this.nzTreeTemplate=null,this.nzSearchValue="",this.nzDraggable=!1,this.nzClick=new O,this.nzDblClick=new O,this.nzContextMenu=new O,this.nzCheckBoxChange=new O,this.nzExpandChange=new O,this.nzOnDragStart=new O,this.nzOnDragEnter=new O,this.nzOnDragOver=new O,this.nzOnDragLeave=new O,this.nzOnDrop=new O,this.nzOnDragEnd=new O,this.destroy$=new J,this.dragPos=2,this.dragPosClass={0:"drag-over",1:"drag-over-gap-bottom","-1":"drag-over-gap-top"},this.draggingKey=null,this.showIndicator=!1}ngOnInit(){this.nzTreeNode.component=this,this.ngZone.runOutsideAngular(()=>{Ke(this.elementRef.nativeElement,"mousedown").pipe(F(this.destroy$)).subscribe(t=>{this.nzSelectMode&&t.preventDefault()})})}ngOnChanges(t){let{nzDraggable:i}=t;i&&this.handDragEvent()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}renderIndicator(t){this.ngZone.run(()=>{this.showIndicator=t!==2,!(this.nzTreeNode.key===this.nzTreeService.getSelectedNode()?.key||t===0&&this.isLeaf)&&(this.dragPos=t,this.cdr.markForCheck())})}};n.\u0275fac=function(i){return new(i||n)(w(Tc),w($e),w(He),w(de),w(fe),w(ft,9))},n.\u0275cmp=j({type:n,selectors:[["nz-tree-node","builtin",""]],hostVars:36,hostBindings:function(i,r){i&2&&(Re("display",r.displayStyle),k("ant-select-tree-treenode",r.nzSelectMode)("ant-select-tree-treenode-disabled",r.nzSelectMode&&r.isDisabled)("ant-select-tree-treenode-switcher-open",r.nzSelectMode&&r.isSwitcherOpen)("ant-select-tree-treenode-switcher-close",r.nzSelectMode&&r.isSwitcherClose)("ant-select-tree-treenode-checkbox-checked",r.nzSelectMode&&r.isChecked)("ant-select-tree-treenode-checkbox-indeterminate",r.nzSelectMode&&r.isHalfChecked)("ant-select-tree-treenode-selected",r.nzSelectMode&&r.isSelected)("ant-select-tree-treenode-loading",r.nzSelectMode&&r.isLoading)("ant-tree-treenode",!r.nzSelectMode)("ant-tree-treenode-disabled",!r.nzSelectMode&&r.isDisabled)("ant-tree-treenode-switcher-open",!r.nzSelectMode&&r.isSwitcherOpen)("ant-tree-treenode-switcher-close",!r.nzSelectMode&&r.isSwitcherClose)("ant-tree-treenode-checkbox-checked",!r.nzSelectMode&&r.isChecked)("ant-tree-treenode-checkbox-indeterminate",!r.nzSelectMode&&r.isHalfChecked)("ant-tree-treenode-selected",!r.nzSelectMode&&r.isSelected)("ant-tree-treenode-loading",!r.nzSelectMode&&r.isLoading)("dragging",r.draggingKey===r.nzTreeNode.key))},inputs:{icon:"icon",title:"title",isLoading:"isLoading",isSelected:"isSelected",isDisabled:"isDisabled",isMatched:"isMatched",isExpanded:"isExpanded",isLeaf:"isLeaf",isChecked:"isChecked",isHalfChecked:"isHalfChecked",isDisableCheckbox:"isDisableCheckbox",isSelectable:"isSelectable",canHide:"canHide",isStart:"isStart",isEnd:"isEnd",nzTreeNode:"nzTreeNode",nzShowLine:"nzShowLine",nzShowExpand:"nzShowExpand",nzCheckable:"nzCheckable",nzAsyncData:"nzAsyncData",nzHideUnMatched:"nzHideUnMatched",nzNoAnimation:"nzNoAnimation",nzSelectMode:"nzSelectMode",nzShowIcon:"nzShowIcon",nzExpandedIcon:"nzExpandedIcon",nzTreeTemplate:"nzTreeTemplate",nzBeforeDrop:"nzBeforeDrop",nzSearchValue:"nzSearchValue",nzDraggable:"nzDraggable"},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"],standalone:!0,features:[oe,K],attrs:oO,decls:4,vars:22,consts:[[3,"nzTreeLevel","nzSelectMode","nzIsStart","nzIsEnd"],[3,"nzShowExpand","nzShowLine","nzExpandedIcon","nzSelectMode","context","isLeaf","isExpanded","isLoading","click",4,"ngIf"],["builtin","",3,"nzSelectMode","isChecked","isHalfChecked","isDisabled","isDisableCheckbox","click",4,"ngIf"],[3,"icon","title","isLoading","isSelected","isDisabled","isMatched","isExpanded","isLeaf","searchValue","treeTemplate","draggable","showIcon","selectMode","context","showIndicator","dragPosition","dblclick","click","contextmenu"],[3,"nzShowExpand","nzShowLine","nzExpandedIcon","nzSelectMode","context","isLeaf","isExpanded","isLoading","click"],["builtin","",3,"nzSelectMode","isChecked","isHalfChecked","isDisabled","isDisableCheckbox","click"]],template:function(i,r){i&1&&(R(0,"nz-tree-indent",0),_(1,p7,1,8,"nz-tree-node-switcher",1)(2,h7,1,5,"nz-tree-node-checkbox",2),C(3,"nz-tree-node-title",3),A("dblclick",function(a){return r.dblClick(a)})("click",function(a){return r.clickSelect(a)})("contextmenu",function(a){return r.contextMenu(a)}),S()),i&2&&(h("nzTreeLevel",r.nzTreeNode.level)("nzSelectMode",r.nzSelectMode)("nzIsStart",r.isStart)("nzIsEnd",r.isEnd),f(),h("ngIf",r.nzShowExpand),f(),h("ngIf",r.nzCheckable),f(),h("icon",r.icon)("title",r.title)("isLoading",r.isLoading)("isSelected",r.isSelected)("isDisabled",r.isDisabled)("isMatched",r.isMatched)("isExpanded",r.isExpanded)("isLeaf",r.isLeaf)("searchValue",r.nzSearchValue)("treeTemplate",r.nzTreeTemplate)("draggable",r.nzDraggable)("showIcon",r.nzShowIcon)("selectMode",r.nzSelectMode)("context",r.nzTreeNode)("showIndicator",r.showIndicator)("dragPosition",r.dragPos))},dependencies:[b7,aO,we,T7,lO],encapsulation:2,changeDetection:0});let o=n;return N([W()],o.prototype,"nzShowLine",void 0),N([W()],o.prototype,"nzShowExpand",void 0),N([W()],o.prototype,"nzCheckable",void 0),N([W()],o.prototype,"nzAsyncData",void 0),N([W()],o.prototype,"nzHideUnMatched",void 0),N([W()],o.prototype,"nzNoAnimation",void 0),N([W()],o.prototype,"nzSelectMode",void 0),N([W()],o.prototype,"nzShowIcon",void 0),o})(),uO=(()=>{let n=class n extends Tc{constructor(){super()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=qe({token:n,factory:n.\u0275fac});let o=n;return o})();function E7(){let o=ae(wz,{skipSelf:!0,optional:!0}),n=ae(uO);return o??n}var x7="tree",z7=(()=>{let n=class n extends nf{writeValue(t){this.handleNzData(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}renderTreeProperties(t){let i=!1,r=!1,{nzData:s,nzExpandedKeys:a,nzSelectedKeys:l,nzCheckedKeys:c,nzCheckStrictly:u,nzExpandAll:d,nzMultiple:p,nzSearchValue:g}=t;d&&(i=!0,r=this.nzExpandAll),p&&(this.nzTreeService.isMultiple=this.nzMultiple),u&&(this.nzTreeService.isCheckStrictly=this.nzCheckStrictly),s&&this.handleNzData(this.nzData),c&&this.handleCheckedKeys(this.nzCheckedKeys),u&&this.handleCheckedKeys(null),(a||d)&&(i=!0,this.handleExpandedKeys(r||this.nzExpandedKeys)),l&&this.handleSelectedKeys(this.nzSelectedKeys,this.nzMultiple),g&&(g.firstChange&&!this.nzSearchValue||(i=!1,this.handleSearchValue(g.currentValue,this.nzSearchFunc),this.nzSearchValueChange.emit(this.nzTreeService.formatEvent("search",null,null))));let v=this.getExpandedNodeList().map(x=>x.key),y=i?r||this.nzExpandedKeys:v;this.handleFlattenNodes(this.nzTreeService.rootNodes,y)}trackByFlattenNode(t,i){return i.key}handleNzData(t){if(Array.isArray(t)){let i=this.coerceTreeNodes(t);this.nzTreeService.initTree(i)}}handleFlattenNodes(t,i=[]){this.nzTreeService.flattenTreeData(t,i)}handleCheckedKeys(t){this.nzTreeService.conductCheck(t,this.nzCheckStrictly)}handleExpandedKeys(t=[]){this.nzTreeService.conductExpandedKeys(t)}handleSelectedKeys(t,i){this.nzTreeService.conductSelectedKeys(t,i)}handleSearchValue(t,i){let r=uC(this.nzTreeService.rootNodes,!0).map(a=>a.data),s=a=>i?i(a.origin):!(!t||!a.title.toLowerCase().includes(t.toLowerCase()));r.forEach(a=>{a.isMatched=s(a),a.canHide=!a.isMatched,a.isMatched?this.nzTreeService.expandNodeAllParentBySearch(a):(a.setExpanded(!1),this.nzTreeService.setExpandedNodeList(a)),this.nzTreeService.setMatchedNodeList(a)})}eventTriggerChanged(t){let i=t.node;switch(t.eventName){case"expand":this.renderTree(),this.nzExpandChange.emit(t);break;case"click":this.nzClick.emit(t);break;case"dblclick":this.nzDblClick.emit(t);break;case"contextmenu":this.nzContextMenu.emit(t);break;case"check":this.nzTreeService.setCheckedNodeList(i),this.nzCheckStrictly||this.nzTreeService.conduct(i);let r=this.nzTreeService.formatEvent("check",i,t.event);this.nzCheckBoxChange.emit(r);let s=this.nzTreeService.getCheckedNodeKeys();this.nzCheckedKeysChange.emit(s);break;case"dragstart":i.isExpanded&&(i.setExpanded(!i.isExpanded),this.renderTree()),this.nzOnDragStart.emit(t);break;case"dragenter":let a=this.nzTreeService.getSelectedNode();a&&a.key!==i.key&&!i.isExpanded&&!i.isLeaf&&(i.setExpanded(!0),this.renderTree()),this.nzOnDragEnter.emit(t);break;case"dragover":this.nzOnDragOver.emit(t);break;case"dragleave":this.nzOnDragLeave.emit(t);break;case"dragend":this.nzOnDragEnd.emit(t);break;case"drop":this.renderTree(),this.nzOnDrop.emit(t);break}}renderTree(){this.handleFlattenNodes(this.nzTreeService.rootNodes,this.getExpandedNodeList().map(t=>t.key)),this.cdr.markForCheck()}constructor(t,i,r,s,a){super(t),this.nzConfigService=i,this.cdr=r,this.directionality=s,this.noAnimation=a,this._nzModuleName=x7,this.nzShowIcon=!1,this.nzHideUnMatched=!1,this.nzBlockNode=!1,this.nzExpandAll=!1,this.nzSelectMode=!1,this.nzCheckStrictly=!1,this.nzShowExpand=!0,this.nzShowLine=!1,this.nzCheckable=!1,this.nzAsyncData=!1,this.nzDraggable=!1,this.nzMultiple=!1,this.nzVirtualItemSize=28,this.nzVirtualMaxBufferPx=500,this.nzVirtualMinBufferPx=28,this.nzVirtualHeight=null,this.nzData=[],this.nzExpandedKeys=[],this.nzSelectedKeys=[],this.nzCheckedKeys=[],this.nzSearchValue="",this.nzFlattenNodes=[],this.beforeInit=!0,this.dir="ltr",this.nzExpandedKeysChange=new O,this.nzSelectedKeysChange=new O,this.nzCheckedKeysChange=new O,this.nzSearchValueChange=new O,this.nzClick=new O,this.nzDblClick=new O,this.nzContextMenu=new O,this.nzCheckBoxChange=new O,this.nzExpandChange=new O,this.nzOnDragStart=new O,this.nzOnDragEnter=new O,this.nzOnDragOver=new O,this.nzOnDragLeave=new O,this.nzOnDrop=new O,this.nzOnDragEnd=new O,this.HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},this.HIDDEN_NODE_STYLE={position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"},this.destroy$=new J,this.onChange=()=>null,this.onTouched=()=>null}ngOnInit(){this.nzTreeService.flattenNodes$.pipe(F(this.destroy$)).subscribe(t=>{this.nzFlattenNodes=this.nzVirtualHeight&&this.nzHideUnMatched&&this.nzSearchValue?.length>0?t.filter(i=>!i.canHide):t,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe(F(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()})}ngOnChanges(t){this.renderTreeProperties(t)}ngAfterViewInit(){this.beforeInit=!1}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(i){return new(i||n)(w(Tc),w(st),w(fe),w(Me,8),w(ft,9))},n.\u0275cmp=j({type:n,selectors:[["nz-tree"]],contentQueries:function(i,r,s){if(i&1&&Ft(s,f7,7),i&2){let a;ce(a=ue())&&(r.nzTreeTemplateChild=a.first)}},viewQuery:function(i,r){if(i&1&&xe(ur,5,ur),i&2){let s;ce(s=ue())&&(r.cdkVirtualScrollViewport=s.first)}},hostVars:20,hostBindings:function(i,r){i&2&&k("ant-select-tree",r.nzSelectMode)("ant-select-tree-show-line",r.nzSelectMode&&r.nzShowLine)("ant-select-tree-icon-hide",r.nzSelectMode&&!r.nzShowIcon)("ant-select-tree-block-node",r.nzSelectMode&&r.nzBlockNode)("ant-tree",!r.nzSelectMode)("ant-tree-rtl",r.dir==="rtl")("ant-tree-show-line",!r.nzSelectMode&&r.nzShowLine)("ant-tree-icon-hide",!r.nzSelectMode&&!r.nzShowIcon)("ant-tree-block-node",!r.nzSelectMode&&r.nzBlockNode)("draggable-tree",r.nzDraggable)},inputs:{nzShowIcon:"nzShowIcon",nzHideUnMatched:"nzHideUnMatched",nzBlockNode:"nzBlockNode",nzExpandAll:"nzExpandAll",nzSelectMode:"nzSelectMode",nzCheckStrictly:"nzCheckStrictly",nzShowExpand:"nzShowExpand",nzShowLine:"nzShowLine",nzCheckable:"nzCheckable",nzAsyncData:"nzAsyncData",nzDraggable:"nzDraggable",nzMultiple:"nzMultiple",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",nzOnDrop:"nzOnDrop",nzOnDragEnd:"nzOnDragEnd"},exportAs:["nzTree"],standalone:!0,features:[Ve([uO,{provide:Tc,useFactory:E7},{provide:zn,useExisting:pn(()=>n),multi:!0}]),Xe,oe,K],decls:10,vars:6,consts:[[3,"ngStyle"],[1,"ant-tree-treenode",3,"ngStyle"],[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",4,"ngIf"],[3,"ant-select-tree-list-holder-inner","ant-tree-list-holder-inner","nzNoAnimation",4,"ngIf"],["nodeTemplate",""],[3,"itemSize","minBufferPx","maxBufferPx"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzNoAnimation"],[4,"ngFor","ngForOf","ngForTrackBy"],["builtin","",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","nzExpandChange","nzClick","nzDblClick","nzContextMenu","nzCheckBoxChange","nzOnDragStart","nzOnDragEnter","nzOnDragOver","nzOnDragLeave","nzOnDragEnd","nzOnDrop"]],template:function(i,r){i&1&&(C(0,"div"),R(1,"input",0),S(),C(2,"div",1)(3,"div",2),R(4,"div",3),S()(),C(5,"div",4),_(6,v7,2,11,"cdk-virtual-scroll-viewport",5)(7,_7,2,9,"div",6),S(),_(8,S7,1,28,"ng-template",null,7,_e)),i&2&&(f(),h("ngStyle",r.HIDDEN_STYLE),f(),h("ngStyle",r.HIDDEN_NODE_STYLE),f(3),k("ant-select-tree-list",r.nzSelectMode),f(),h("ngIf",r.nzVirtualHeight),f(),h("ngIf",!r.nzVirtualHeight))},dependencies:[Zt,ur,Fl,we,Al,Be,ft,lt,cO],encapsulation:2,data:{animation:[Sw]},changeDetection:0});let o=n;return N([W(),De()],o.prototype,"nzShowIcon",void 0),N([W(),De()],o.prototype,"nzHideUnMatched",void 0),N([W(),De()],o.prototype,"nzBlockNode",void 0),N([W()],o.prototype,"nzExpandAll",void 0),N([W()],o.prototype,"nzSelectMode",void 0),N([W()],o.prototype,"nzCheckStrictly",void 0),N([W()],o.prototype,"nzShowExpand",void 0),N([W()],o.prototype,"nzShowLine",void 0),N([W()],o.prototype,"nzCheckable",void 0),N([W()],o.prototype,"nzAsyncData",void 0),N([W()],o.prototype,"nzDraggable",void 0),N([W()],o.prototype,"nzMultiple",void 0),o})(),Ef=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[z7,cO,aO,lO]});let o=n;return o})();function Qo(o){return o==null||o===""?null:o}function ne(o,n){return n===void 0&&(n=!1),o!=null&&(o!==""||n)}function tt(o){return!ne(o)}function Er(o){return o==null||o.length===0}function Gd(o){return o!=null&&typeof o.toString=="function"?o.toString():null}function pa(o){if(o!==void 0){if(o===null||o==="")return null;if(typeof o=="number")return isNaN(o)?void 0:o;var n=parseInt(o,10);return isNaN(n)?void 0:n}}function ig(o){if(o!==void 0)return o===null||o===""?!1:typeof o=="boolean"?o:/true/i.test(o)}function D7(o){if(!(o==null||o===""))return o}function P_(o,n){var e=o?JSON.stringify(o):null,t=n?JSON.stringify(n):null;return e===t}function R7(o,n,e){e===void 0&&(e=!1);var t=o==null,i=n==null;if(o&&o.toNumber&&(o=o.toNumber()),n&&n.toNumber&&(n=n.toNumber()),t&&i)return 0;if(t)return-1;if(i)return 1;function r(s,a){return s>a?1:s<a?-1:0}if(typeof o!="string"||!e)return r(o,n);try{return o.localeCompare(n)}catch{return r(o,n)}}function tl(o){if(o instanceof Set||o instanceof Map){var n=[];return o.forEach(function(e){return n.push(e)}),n}return Object.values(o)}var I7=Object.freeze({__proto__:null,makeNull:Qo,exists:ne,missing:tt,missingOrEmpty:Er,toStringOrNull:Gd,attrToNumber:pa,attrToBoolean:ig,attrToString:D7,jsonEquals:P_,defaultComparator:R7,values:tl}),P7=function(){function o(){this.existingKeys={}}return o.prototype.addExistingKeys=function(n){for(var e=0;e<n.length;e++)this.existingKeys[n[e]]=!0},o.prototype.getUniqueKey=function(n,e){n=Gd(n);for(var t=0;;){var i=void 0;if(n?(i=n,t!==0&&(i+="_"+t)):e?(i=e,t!==0&&(i+="_"+t)):i=t,!this.existingKeys[i])return this.existingKeys[i]=!0,String(i);t++}},o}(),M7=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},F7=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r};function Ei(o,n){var e,t;if(o!=null){if(Array.isArray(o)){for(var i=0;i<o.length;i++)n(i.toString(),o[i]);return}try{for(var r=M7(Object.entries(o)),s=r.next();!s.done;s=r.next()){var a=F7(s.value,2),l=a[0],c=a[1];n(l,c)}}catch(u){e={error:u}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}}function J_(o){for(var n={},e=Object.keys(o),t=0;t<e.length;t++){var i=e[t],r=o[i];n[i]=r}return n}function rg(o,n){if(o){var e=o,t={};return Object.keys(e).forEach(function(i){if(!(n&&n.indexOf(i)>=0)){var r=e[i],s=og(r)&&r.constructor===Object;s?t[i]=rg(r):t[i]=r}}),t}}function fa(o){if(!o)return[];var n=Object;if(typeof n.values=="function")return n.values(o);var e=[];for(var t in o)o.hasOwnProperty(t)&&o.propertyIsEnumerable(t)&&e.push(o[t]);return e}function xr(o,n,e,t){e===void 0&&(e=!0),t===void 0&&(t=!1),ne(n)&&Ei(n,function(i,r){var s=o[i];if(s!==r){if(t){var a=s==null&&r!=null;if(a){var l=typeof r=="object"&&r.constructor===Object,c=l;c&&(s={},o[i]=s)}}og(r)&&og(s)&&!Array.isArray(s)?xr(s,r,e,t):(e||r!==void 0)&&(o[i]=r)}})}function Vc(o,n,e){if(!(!n||!o)){if(!e)return o[n];for(var t=n.split("."),i=o,r=0;r<t.length;r++){if(i==null)return;i=i[t[r]]}return i}}function zD(o,n,e){n===void 0&&(n=[]),Object.keys(o).forEach(function(s){var a=o[s];typeof a=="object"&&!n.includes(s)&&(o[s]=void 0)});var t=Object.getPrototypeOf(o),i={},r=function(s){return"AG Grid: Grid API function ".concat(s,`() cannot be called as the grid has been destroyed.
  11. It is recommended to remove local references to the grid api. Alternatively, check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
  12. To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: `).concat(e)};Object.getOwnPropertyNames(t).forEach(function(s){var a=t[s];if(typeof a=="function"&&!n.includes(s)){var l=function(){console.warn(r(s))};i[s]={value:l,writable:!0}}}),Object.defineProperties(o,i)}function og(o){return typeof o=="object"&&o!==null}var A7=Object.freeze({__proto__:null,iterateObject:Ei,cloneObject:J_,deepCloneDefinition:rg,getAllValuesInObject:fa,mergeDeep:xr,getValueUsingField:Vc,removeAllReferences:zD,isNonNullObject:og}),dO={};function nl(o,n){dO[n]||(o(),dO[n]=!0)}function Je(o){nl(function(){return console.warn("AG Grid: "+o)},o)}function yo(o){nl(function(){return console.error("AG Grid: "+o)},o)}function Tg(o){if(o.name)return o.name;var n=/function\s+([^\(]+)/.exec(o.toString());return n&&n.length===2?n[1].trim():null}function Eg(o){return!!(o&&o.constructor&&o.call&&o.apply)}function OD(o){DD(o,400)}var RC=[],IC=!1;function M_(o){RC.push(o),!IC&&(IC=!0,window.setTimeout(function(){var n=RC.slice();RC.length=0,IC=!1,n.forEach(function(e){return e()})},0))}function DD(o,n){n===void 0&&(n=0),o.length>0&&window.setTimeout(function(){return o.forEach(function(e){return e()})},n)}function zr(o,n){var e;return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=this;window.clearTimeout(e),e=window.setTimeout(function(){o.apply(r,t)},n)}}function F_(o,n){var e=0;return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=this,s=new Date().getTime();s-e<n||(e=s,o.apply(r,t))}}function e0(o,n,e,t){e===void 0&&(e=100);var i=new Date().getTime(),r=null,s=!1,a=function(){var l=new Date().getTime()-i>e;(o()||l)&&(n(),s=!0,r!=null&&(window.clearInterval(r),r=null),l&&t&&console.warn(t))};a(),s||(r=window.setInterval(a,10))}function N7(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return function(e){return o.reduce(function(t,i){return i(t)},e)}}var L7=function(){},k7=Object.freeze({__proto__:null,doOnce:nl,warnOnce:Je,errorOnce:yo,getFunctionName:Tg,isFunction:Eg,executeInAWhile:OD,executeNextVMTurn:M_,executeAfter:DD,debounce:zr,throttle:F_,waitUntil:e0,compose:N7,noop:L7}),je=function(o){return o.CommunityCoreModule="@ag-grid-community/core",o.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",o.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",o.CsvExportModule="@ag-grid-community/csv-export",o.EnterpriseCoreModule="@ag-grid-enterprise/core",o.RowGroupingModule="@ag-grid-enterprise/row-grouping",o.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",o.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",o.MenuModule="@ag-grid-enterprise/menu",o.SetFilterModule="@ag-grid-enterprise/set-filter",o.MultiFilterModule="@ag-grid-enterprise/multi-filter",o.StatusBarModule="@ag-grid-enterprise/status-bar",o.SideBarModule="@ag-grid-enterprise/side-bar",o.RangeSelectionModule="@ag-grid-enterprise/range-selection",o.MasterDetailModule="@ag-grid-enterprise/master-detail",o.RichSelectModule="@ag-grid-enterprise/rich-select",o.GridChartsModule="@ag-grid-enterprise/charts",o.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",o.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",o.ExcelExportModule="@ag-grid-enterprise/excel-export",o.ClipboardModule="@ag-grid-enterprise/clipboard",o.SparklinesModule="@ag-grid-enterprise/sparklines",o.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",o.AngularModule="@ag-grid-community/angular",o.ReactModule="@ag-grid-community/react",o.VueModule="@ag-grid-community/vue",o}(je||{}),od=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},pO=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},qt=function(){function o(){}return o.register=function(n){o.__register(n,!0,void 0)},o.registerModules=function(n){o.__registerModules(n,!0,void 0)},o.__register=function(n,e,t){o.runVersionChecks(n),t!==void 0?(o.areGridScopedModules=!0,o.gridModulesMap[t]===void 0&&(o.gridModulesMap[t]={}),o.gridModulesMap[t][n.moduleName]=n):o.globalModulesMap[n.moduleName]=n,o.setModuleBased(e)},o.__unRegisterGridModules=function(n){delete o.gridModulesMap[n]},o.__registerModules=function(n,e,t){o.setModuleBased(e),n&&n.forEach(function(i){return o.__register(i,e,t)})},o.isValidModuleVersion=function(n){var e=od(n.version.split(".")||[],2),t=e[0],i=e[1],r=od(o.currentModuleVersion.split(".")||[],2),s=r[0],a=r[1];return t===s&&i===a},o.runVersionChecks=function(n){if(o.currentModuleVersion||(o.currentModuleVersion=n.version),n.version?o.isValidModuleVersion(n)||console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '".concat(n.moduleName,"' is version ").concat(n.version," but the other modules are version ").concat(this.currentModuleVersion,". Please update all modules to the same version.")):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '".concat(n.moduleName,"' is incompatible. Please update all modules to the same version.")),n.validate){var e=n.validate();if(!e.isValid){var t=e;console.error("AG Grid: ".concat(t.message))}}},o.setModuleBased=function(n){o.moduleBased===void 0?o.moduleBased=n:o.moduleBased!==n&&nl(function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")},"ModulePackageCheck")},o.__setIsBundled=function(){o.isBundled=!0},o.__assertRegistered=function(n,e,t){var i;if(this.__isRegistered(n,t))return!0;var r=e+n,s;if(o.isBundled)s="AG Grid: unable to use ".concat(e,` as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:
  13. <script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script>
  14. For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`);else if(o.moduleBased||o.moduleBased===void 0){var a=(i=Object.entries(je).find(function(l){var c=od(l,2);c[0];var u=c[1];return u===n}))===null||i===void 0?void 0:i[0];s="AG Grid: unable to use ".concat(e," as the ").concat(a," is not registered").concat(o.areGridScopedModules?" for gridId: ".concat(t):"",`. Check if you have registered the module:
  15. import { ModuleRegistry } from '@ag-grid-community/core';
  16. import { `).concat(a," } from '").concat(n,`';
  17. ModuleRegistry.registerModules([ `).concat(a,` ]);
  18. For more info see: https://www.ag-grid.com/javascript-grid/modules/`)}else s="AG Grid: unable to use ".concat(e,` as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:
  19. import 'ag-grid-enterprise';
  20. For more info see: https://www.ag-grid.com/javascript-grid/packages/`);return nl(function(){console.warn(s)},r),!1},o.__warnEnterpriseChartDisabled=function(n){var e="ag-charts-enterprise",t=e+":"+n,i="https://ag-grid.com/javascript-data-grid/integrated-charts/",r="AG Grid: the '".concat(n,"' chart type is not supported in AG Charts Community. See ").concat(i," for more details.");nl(function(){console.warn(r)},t)},o.__isRegistered=function(n,e){var t;return!!o.globalModulesMap[n]||!!(!((t=o.gridModulesMap[e])===null||t===void 0)&&t[n])},o.__getRegisteredModules=function(n){return pO(pO([],od(tl(o.globalModulesMap)),!1),od(tl(o.gridModulesMap[n]||{})),!1)},o.__getGridRegisteredModules=function(n){var e;return tl((e=o.gridModulesMap[n])!==null&&e!==void 0?e:{})||[]},o.__isPackageBased=function(){return!o.moduleBased},o.globalModulesMap={},o.gridModulesMap={},o.areGridScopedModules=!1,o}(),V7=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},G7=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},H7=function(){function o(n,e){if(this.beanWrappers={},this.destroyed=!1,!(!n||!n.beanClasses)){this.contextParams=n,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var t=this.getBeanInstances();this.wireBeans(t),this.logger.log(">> ag-Application Context ready - component is alive")}}return o.prototype.getBeanInstances=function(){return tl(this.beanWrappers).map(function(n){return n.beanInstance})},o.prototype.createBean=function(n,e){if(!n)throw Error("Can't wire to bean since it is null");return this.wireBeans([n],e),n},o.prototype.wireBeans=function(n,e){this.autoWireBeans(n),this.methodWireBeans(n),this.callLifeCycleMethods(n,"preConstructMethods"),ne(e)&&n.forEach(e),this.callLifeCycleMethods(n,"postConstructMethods")},o.prototype.createBeans=function(){var n=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),Ei(this.beanWrappers,function(t,i){var r;i.bean.__agBeanMetaData&&i.bean.__agBeanMetaData.autowireMethods&&i.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=i.bean.__agBeanMetaData.autowireMethods.agConstructor);var s=n.getBeansForParameters(r,i.bean.name),a=new(i.bean.bind.apply(i.bean,G7([null],V7(s),!1)));i.beanInstance=a});var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: ".concat(e))},o.prototype.createBeanWrapper=function(n){var e=n.__agBeanMetaData;if(!e){var t=void 0;n.prototype.constructor?t=Tg(n.prototype.constructor):t=""+n,console.error("Context item ".concat(t," is not a bean"));return}var i={bean:n,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=i},o.prototype.autoWireBeans=function(n){var e=this;n.forEach(function(t){e.forEachMetaDataInHierarchy(t,function(i,r){var s=i.agClassAttributes;s&&s.forEach(function(a){var l=e.lookupBeanInstance(r,a.beanName,a.optional);t[a.attributeName]=l})})})},o.prototype.methodWireBeans=function(n){var e=this;n.forEach(function(t){e.forEachMetaDataInHierarchy(t,function(i,r){Ei(i.autowireMethods,function(s,a){if(s!=="agConstructor"){var l=e.getBeansForParameters(a,r);t[s].apply(t,l)}})})})},o.prototype.forEachMetaDataInHierarchy=function(n,e){for(var t=Object.getPrototypeOf(n);t!=null;){var i=t.constructor;if(i.hasOwnProperty("__agBeanMetaData")){var r=i.__agBeanMetaData,s=this.getBeanName(i);e(r,s)}t=Object.getPrototypeOf(t)}},o.prototype.getBeanName=function(n){if(n.__agBeanMetaData&&n.__agBeanMetaData.beanName)return n.__agBeanMetaData.beanName;var e=n.toString(),t=e.substring(9,e.indexOf("("));return t},o.prototype.getBeansForParameters=function(n,e){var t=this,i=[];return n&&Ei(n,function(r,s){var a=t.lookupBeanInstance(e,s);i[Number(r)]=a}),i},o.prototype.lookupBeanInstance=function(n,e,t){if(t===void 0&&(t=!1),this.destroyed)return this.logger.log("AG Grid: bean reference ".concat(e," is used after the grid is destroyed!")),null;if(e==="context")return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var i=this.beanWrappers[e];return i?i.beanInstance:(t||console.error("AG Grid: unable to find bean reference ".concat(e," while initialising ").concat(n)),null)},o.prototype.callLifeCycleMethods=function(n,e){var t=this;n.forEach(function(i){return t.callLifeCycleMethodsOnBean(i,e)})},o.prototype.callLifeCycleMethodsOnBean=function(n,e,t){var i={};this.forEachMetaDataInHierarchy(n,function(s){var a=s[e];a&&a.forEach(function(l){l!=t&&(i[l]=!0)})});var r=Object.keys(i);r.forEach(function(s){return n[s]()})},o.prototype.getBean=function(n){return this.lookupBeanInstance("getBean",n,!0)},o.prototype.destroy=function(){if(!this.destroyed){this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");var n=this.getBeanInstances();this.destroyBeans(n),this.contextParams.providedBeanInstances=null,qt.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}},o.prototype.destroyBean=function(n){n&&this.destroyBeans([n])},o.prototype.destroyBeans=function(n){var e=this;return n?(n.forEach(function(t){e.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy");var i=t;typeof i.destroy=="function"&&i.destroy()}),[]):[]},o.prototype.isDestroyed=function(){return this.destroyed},o.prototype.getGridId=function(){return this.contextParams.gridId},o}();function hO(o,n,e){var t=ll(o.constructor);t.preConstructMethods||(t.preConstructMethods=[]),t.preConstructMethods.push(n)}function pe(o,n,e){var t=ll(o.constructor);t.postConstructMethods||(t.postConstructMethods=[]),t.postConstructMethods.push(n)}function Li(o,n,e){var t=ll(o.constructor);t.preDestroyMethods||(t.preDestroyMethods=[]),t.preDestroyMethods.push(n)}function Oe(o){return function(n){var e=ll(n);e.beanName=o}}function b(o){return function(n,e,t){RD(n,o,!1,n,e,null)}}function Mt(o){return function(n,e,t){RD(n,o,!0,n,e,null)}}function RD(o,n,e,t,i,r){if(n===null){console.error("AG Grid: Autowired name should not be null");return}if(typeof r=="number"){console.error("AG Grid: Autowired should be on an attribute");return}var s=ll(o.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:i,beanName:n,optional:e})}function Ur(o){return function(n,e,t){var i=typeof n=="function"?n:n.constructor,r;if(typeof t=="number"){var s=void 0;e?(r=ll(i),s=e):(r=ll(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][t]=o}}}function ll(o){return o.hasOwnProperty("__agBeanMetaData")||(o.__agBeanMetaData={}),o.__agBeanMetaData}var fO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},xf=function(o,n){return function(e,t){n(e,t,o)}},ga=function(){function o(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return o.prototype.setBeans=function(n,e,t,i){if(t===void 0&&(t=null),i===void 0&&(i=null),this.frameworkOverrides=e,this.gridOptionsService=n,t){var r=n.useAsyncEvents();this.addGlobalListener(t,r)}i&&this.addGlobalListener(i,!1)},o.prototype.setFrameworkOverrides=function(n){this.frameworkOverrides=n},o.prototype.getListeners=function(n,e,t){var i=e?this.allAsyncListeners:this.allSyncListeners,r=i.get(n);return!r&&t&&(r=new Set,i.set(n,r)),r},o.prototype.noRegisteredListenersExist=function(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0},o.prototype.addEventListener=function(n,e,t){t===void 0&&(t=!1),this.getListeners(n,t,!0).add(e)},o.prototype.removeEventListener=function(n,e,t){t===void 0&&(t=!1);var i=this.getListeners(n,t,!1);if(i&&(i.delete(e),i.size===0)){var r=t?this.allAsyncListeners:this.allSyncListeners;r.delete(n)}},o.prototype.addGlobalListener=function(n,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(n)},o.prototype.removeGlobalListener=function(n,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(n)},o.prototype.dispatchEvent=function(n){var e=n;this.gridOptionsService&&this.gridOptionsService.addGridCommonParams(e),this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},o.prototype.dispatchEventOnce=function(n){this.firedEvents[n.type]||this.dispatchEvent(n)},o.prototype.dispatchToListeners=function(n,e){var t=this,i,r=n.type;if(e&&"event"in n){var s=n.event;s instanceof Event&&(n.eventPath=s.composedPath())}var a=function(d,p){return d.forEach(function(g){if(p.has(g)){var v=t.frameworkOverrides?function(){return t.frameworkOverrides.wrapIncoming(function(){return g(n)})}:function(){return g(n)};e?t.dispatchAsync(v):v()}})},l=(i=this.getListeners(r,e,!1))!==null&&i!==void 0?i:new Set,c=new Set(l);c.size>0&&a(c,l);var u=new Set(e?this.globalAsyncListeners:this.globalSyncListeners);u.forEach(function(d){var p=t.frameworkOverrides?function(){return t.frameworkOverrides.wrapIncoming(function(){return d(r,n)})}:function(){return d(r,n)};e?t.dispatchAsync(p):p()})},o.prototype.dispatchAsync=function(n){var e=this;this.asyncFunctionsQueue.push(n),this.scheduled||(this.frameworkOverrides.wrapIncoming(function(){window.setTimeout(e.flushAsyncQueue.bind(e),0)}),this.scheduled=!0)},o.prototype.flushAsyncQueue=function(){this.scheduled=!1;var n=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],n.forEach(function(e){return e()})},fO([xf(0,Ur("gridOptionsService")),xf(1,Ur("frameworkOverrides")),xf(2,Ur("globalEventListener")),xf(3,Ur("globalSyncEventListener"))],o.prototype,"setBeans",null),o=fO([Oe("eventService")],o),o}(),t0=function(){function o(n){this.frameworkOverrides=n,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}return o.prototype.wrap=function(n){var e=this,t=n;return this.frameworkOverrides.shouldWrapOutgoing&&(t=function(i){e.frameworkOverrides.wrapOutgoing(function(){return n(i)})},this.wrappedListeners.set(n,t)),t},o.prototype.wrapGlobal=function(n){var e=this,t=n;return this.frameworkOverrides.shouldWrapOutgoing&&(t=function(i,r){e.frameworkOverrides.wrapOutgoing(function(){return n(i,r)})},this.wrappedGlobalListeners.set(n,t)),t},o.prototype.unwrap=function(n){var e;return(e=this.wrappedListeners.get(n))!==null&&e!==void 0?e:n},o.prototype.unwrapGlobal=function(n){var e;return(e=this.wrappedGlobalListeners.get(n))!==null&&e!==void 0?e:n},o}(),sd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},B7={resizable:!0,sortable:!0},$7=0;function ID(){return $7++}var Jt=function(){function o(n,e,t,i){this.instanceId=ID(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new ga,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=n,this.userProvidedColDef=e,this.colId=t,this.primary=i,this.setState(n)}return o.prototype.getInstanceId=function(){return this.instanceId},o.prototype.setState=function(n){n.sort!==void 0?(n.sort==="asc"||n.sort==="desc")&&(this.sort=n.sort):(n.initialSort==="asc"||n.initialSort==="desc")&&(this.sort=n.initialSort);var e=n.sortIndex,t=n.initialSortIndex;e!==void 0?e!==null&&(this.sortIndex=e):t!==null&&(this.sortIndex=t);var i=n.hide,r=n.initialHide;i!==void 0?this.visible=!i:this.visible=!r,n.pinned!==void 0?this.setPinned(n.pinned):this.setPinned(n.initialPinned);var s=n.flex,a=n.initialFlex;s!==void 0?this.flex=s:a!==void 0&&(this.flex=a)},o.prototype.setColDef=function(n,e,t){this.colDef=n,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged",t))},o.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},o.prototype.setParent=function(n){this.parent=n},o.prototype.getParent=function(){return this.parent},o.prototype.setOriginalParent=function(n){this.originalParent=n},o.prototype.getOriginalParent=function(){return this.originalParent},o.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()},o.prototype.initDotNotation=function(){var n=this.gridOptionsService.get("suppressFieldDotNotation");this.fieldContainsDots=ne(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!n,this.tooltipFieldContainsDots=ne(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!n},o.prototype.initMinAndMaxWidths=function(){var n=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(n),this.maxWidth=this.columnUtils.calculateColMaxWidth(n)},o.prototype.initTooltip=function(){this.tooltipEnabled=ne(this.colDef.tooltipField)||ne(this.colDef.tooltipValueGetter)||ne(this.colDef.tooltipComponent)},o.prototype.resetActualWidth=function(n){var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,n,!0)},o.prototype.isEmptyGroup=function(){return!1},o.prototype.isRowGroupDisplayed=function(n){if(tt(this.colDef)||tt(this.colDef.showRowGroup))return!1;var e=this.colDef.showRowGroup===!0,t=this.colDef.showRowGroup===n;return e||t},o.prototype.isPrimary=function(){return this.primary},o.prototype.isFilterAllowed=function(){var n=!!this.colDef.filter;return n},o.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},o.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},o.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},o.prototype.addEventListener=function(n,e){var t,i;this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new t0(this.frameworkOverrides));var r=(i=(t=this.frameworkEventListenerService)===null||t===void 0?void 0:t.wrap(e))!==null&&i!==void 0?i:e;this.eventService.addEventListener(n,r)},o.prototype.removeEventListener=function(n,e){var t,i,r=(i=(t=this.frameworkEventListenerService)===null||t===void 0?void 0:t.unwrap(e))!==null&&i!==void 0?i:e;this.eventService.removeEventListener(n,r)},o.prototype.createColumnFunctionCallbackParams=function(n){return this.gridOptionsService.addGridCommonParams({node:n,data:n.data,column:this,colDef:this.colDef})},o.prototype.isSuppressNavigable=function(n){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){var e=this.createColumnFunctionCallbackParams(n),t=this.colDef.suppressNavigable;return t(e)}return!1},o.prototype.isCellEditable=function(n){return n.group&&!this.gridOptionsService.get("enableGroupEdit")?!1:this.isColumnFunc(n,this.colDef.editable)},o.prototype.isSuppressFillHandle=function(){return!!this.colDef.suppressFillHandle},o.prototype.isAutoHeight=function(){return!!this.colDef.autoHeight},o.prototype.isAutoHeaderHeight=function(){return!!this.colDef.autoHeaderHeight},o.prototype.isRowDrag=function(n){return this.isColumnFunc(n,this.colDef.rowDrag)},o.prototype.isDndSource=function(n){return this.isColumnFunc(n,this.colDef.dndSource)},o.prototype.isCellCheckboxSelection=function(n){return this.isColumnFunc(n,this.colDef.checkboxSelection)},o.prototype.isSuppressPaste=function(n){return this.isColumnFunc(n,this.colDef?this.colDef.suppressPaste:null)},o.prototype.isResizable=function(){return!!this.getColDefValue("resizable")},o.prototype.getColDefValue=function(n){var e;return(e=this.colDef[n])!==null&&e!==void 0?e:B7[n]},o.prototype.isColumnFunc=function(n,e){if(typeof e=="boolean")return e;if(typeof e=="function"){var t=this.createColumnFunctionCallbackParams(n),i=e;return i(t)}return!1},o.prototype.setMoving=function(n,e){this.moving=n,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",e))},o.prototype.createColumnEvent=function(n,e){return this.gridOptionsService.addGridCommonParams({type:n,column:this,columns:[this],source:e})},o.prototype.isMoving=function(){return this.moving},o.prototype.getSort=function(){return this.sort},o.prototype.setSort=function(n,e){this.sort!==n&&(this.sort=n,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",e))),this.dispatchStateUpdatedEvent("sort")},o.prototype.setMenuVisible=function(n,e){this.menuVisible!==n&&(this.menuVisible=n,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",e)))},o.prototype.isMenuVisible=function(){return this.menuVisible},o.prototype.isSortable=function(){return!!this.getColDefValue("sortable")},o.prototype.isSortAscending=function(){return this.sort==="asc"},o.prototype.isSortDescending=function(){return this.sort==="desc"},o.prototype.isSortNone=function(){return tt(this.sort)},o.prototype.isSorting=function(){return ne(this.sort)},o.prototype.getSortIndex=function(){return this.sortIndex},o.prototype.setSortIndex=function(n){this.sortIndex=n,this.dispatchStateUpdatedEvent("sortIndex")},o.prototype.setAggFunc=function(n){this.aggFunc=n,this.dispatchStateUpdatedEvent("aggFunc")},o.prototype.getAggFunc=function(){return this.aggFunc},o.prototype.getLeft=function(){return this.left},o.prototype.getOldLeft=function(){return this.oldLeft},o.prototype.getRight=function(){return this.left+this.actualWidth},o.prototype.setLeft=function(n,e){this.oldLeft=this.left,this.left!==n&&(this.left=n,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",e)))},o.prototype.isFilterActive=function(){return this.filterActive},o.prototype.setFilterActive=function(n,e,t){this.filterActive!==n&&(this.filterActive=n,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",e)));var i=this.createColumnEvent("filterChanged",e);t&&xr(i,t),this.eventService.dispatchEvent(i)},o.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},o.prototype.setPinned=function(n){n===!0||n==="left"?this.pinned="left":n==="right"?this.pinned="right":this.pinned=null,this.dispatchStateUpdatedEvent("pinned")},o.prototype.setFirstRightPinned=function(n,e){this.firstRightPinned!==n&&(this.firstRightPinned=n,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",e)))},o.prototype.setLastLeftPinned=function(n,e){this.lastLeftPinned!==n&&(this.lastLeftPinned=n,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",e)))},o.prototype.isFirstRightPinned=function(){return this.firstRightPinned},o.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},o.prototype.isPinned=function(){return this.pinned==="left"||this.pinned==="right"},o.prototype.isPinnedLeft=function(){return this.pinned==="left"},o.prototype.isPinnedRight=function(){return this.pinned==="right"},o.prototype.getPinned=function(){return this.pinned},o.prototype.setVisible=function(n,e){var t=n===!0;this.visible!==t&&(this.visible=t,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",e))),this.dispatchStateUpdatedEvent("hide")},o.prototype.isVisible=function(){return this.visible},o.prototype.isSpanHeaderHeight=function(){var n=this.getColDef();return!n.suppressSpanHeaderHeight&&!n.autoHeaderHeight},o.prototype.getColumnGroupPaddingInfo=function(){var n=this.getParent();if(!n||!n.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var e=n.getPaddingLevel()+1,t=!0;n;){if(!n.isPadding()){t=!1;break}n=n.getParent()}return{numberOfParents:e,isSpanningTotal:t}},o.prototype.getColDef=function(){return this.colDef},o.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},o.prototype.getColId=function(){return this.colId},o.prototype.getId=function(){return this.colId},o.prototype.getUniqueId=function(){return this.colId},o.prototype.getDefinition=function(){return this.colDef},o.prototype.getActualWidth=function(){return this.actualWidth},o.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},o.prototype.setAutoHeaderHeight=function(n){var e=n!==this.autoHeaderHeight;return this.autoHeaderHeight=n,e},o.prototype.createBaseColDefParams=function(n){var e=this.gridOptionsService.addGridCommonParams({node:n,data:n.data,colDef:this.colDef,column:this});return e},o.prototype.getColSpan=function(n){if(tt(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(n),t=this.colDef.colSpan(e);return Math.max(t,1)},o.prototype.getRowSpan=function(n){if(tt(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(n),t=this.colDef.rowSpan(e);return Math.max(t,1)},o.prototype.setActualWidth=function(n,e,t){t===void 0&&(t=!1),this.minWidth!=null&&(n=Math.max(n,this.minWidth)),this.maxWidth!=null&&(n=Math.min(n,this.maxWidth)),this.actualWidth!==n&&(this.actualWidth=n,this.flex&&e!=="flex"&&e!=="gridInitializing"&&(this.flex=null),t||this.fireColumnWidthChangedEvent(e)),this.dispatchStateUpdatedEvent("width")},o.prototype.fireColumnWidthChangedEvent=function(n){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",n))},o.prototype.isGreaterThanMax=function(n){return this.maxWidth!=null?n>this.maxWidth:!1},o.prototype.getMinWidth=function(){return this.minWidth},o.prototype.getMaxWidth=function(){return this.maxWidth},o.prototype.getFlex=function(){return this.flex||0},o.prototype.setFlex=function(n){this.flex!==n&&(this.flex=n),this.dispatchStateUpdatedEvent("flex")},o.prototype.setMinimum=function(n){ne(this.minWidth)&&this.setActualWidth(this.minWidth,n)},o.prototype.setRowGroupActive=function(n,e){this.rowGroupActive!==n&&(this.rowGroupActive=n,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",e))),this.dispatchStateUpdatedEvent("rowGroup")},o.prototype.isRowGroupActive=function(){return this.rowGroupActive},o.prototype.setPivotActive=function(n,e){this.pivotActive!==n&&(this.pivotActive=n,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",e))),this.dispatchStateUpdatedEvent("pivot")},o.prototype.isPivotActive=function(){return this.pivotActive},o.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},o.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},o.prototype.setValueActive=function(n,e){this.aggregationActive!==n&&(this.aggregationActive=n,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",e)))},o.prototype.isValueActive=function(){return this.aggregationActive},o.prototype.isAllowPivot=function(){return this.colDef.enablePivot===!0},o.prototype.isAllowValue=function(){return this.colDef.enableValue===!0},o.prototype.isAllowRowGroup=function(){return this.colDef.enableRowGroup===!0},o.prototype.getMenuTabs=function(n){Je("As of v31.1, 'getMenuTabs' is deprecated. Use 'getColDef().menuTabs ?? defaultValues' instead.");var e=this.getColDef().menuTabs;return e==null&&(e=n),e},o.prototype.dispatchStateUpdatedEvent=function(n){this.eventService.dispatchEvent({type:o.EVENT_STATE_UPDATED,key:n})},o.EVENT_MOVING_CHANGED="movingChanged",o.EVENT_LEFT_CHANGED="leftChanged",o.EVENT_WIDTH_CHANGED="widthChanged",o.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",o.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",o.EVENT_VISIBLE_CHANGED="visibleChanged",o.EVENT_FILTER_CHANGED="filterChanged",o.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",o.EVENT_SORT_CHANGED="sortChanged",o.EVENT_COL_DEF_CHANGED="colDefChanged",o.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",o.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",o.EVENT_PIVOT_CHANGED="columnPivotChanged",o.EVENT_VALUE_CHANGED="columnValueChanged",o.EVENT_STATE_UPDATED="columnStateUpdated",sd([b("gridOptionsService")],o.prototype,"gridOptionsService",void 0),sd([b("columnUtils")],o.prototype,"columnUtils",void 0),sd([b("columnHoverService")],o.prototype,"columnHoverService",void 0),sd([b("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),sd([pe],o.prototype,"initialise",null),o}(),j7=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Nn=function(){function o(n,e,t,i){this.localEventService=new ga,this.expandable=!1,this.instanceId=ID(),this.expandableListenerRemoveCallback=null,this.colGroupDef=n,this.groupId=e,this.expanded=!!n&&!!n.openByDefault,this.padding=t,this.level=i}return o.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},o.prototype.reset=function(n,e){this.colGroupDef=n,this.level=e,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},o.prototype.getInstanceId=function(){return this.instanceId},o.prototype.setOriginalParent=function(n){this.originalParent=n},o.prototype.getOriginalParent=function(){return this.originalParent},o.prototype.getLevel=function(){return this.level},o.prototype.isVisible=function(){return this.children?this.children.some(function(n){return n.isVisible()}):!1},o.prototype.isPadding=function(){return this.padding},o.prototype.setExpanded=function(n){this.expanded=n===void 0?!1:n;var e={type:o.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(e)},o.prototype.isExpandable=function(){return this.expandable},o.prototype.isExpanded=function(){return this.expanded},o.prototype.getGroupId=function(){return this.groupId},o.prototype.getId=function(){return this.getGroupId()},o.prototype.setChildren=function(n){this.children=n},o.prototype.getChildren=function(){return this.children},o.prototype.getColGroupDef=function(){return this.colGroupDef},o.prototype.getLeafColumns=function(){var n=[];return this.addLeafColumns(n),n},o.prototype.addLeafColumns=function(n){this.children&&this.children.forEach(function(e){e instanceof Jt?n.push(e):e instanceof o&&e.addLeafColumns(n)})},o.prototype.getColumnGroupShow=function(){var n=this.colGroupDef;if(n)return n.columnGroupShow},o.prototype.setupExpandable=function(){var n=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(function(t){return t.addEventListener("visibleChanged",e)}),this.expandableListenerRemoveCallback=function(){n.getLeafColumns().forEach(function(t){return t.removeEventListener("visibleChanged",e)}),n.expandableListenerRemoveCallback=null}},o.prototype.setExpandable=function(){if(!this.isPadding()){for(var n=!1,e=!1,t=!1,i=this.findChildrenRemovingPadding(),r=0,s=i.length;r<s;r++){var a=i[r];if(a.isVisible()){var l=a.getColumnGroupShow();l==="open"?(n=!0,t=!0):l==="closed"?(e=!0,t=!0):(n=!0,e=!0)}}var c=n&&e&&t;if(this.expandable!==c){this.expandable=c;var u={type:o.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(u)}}},o.prototype.findChildrenRemovingPadding=function(){var n=[],e=function(t){t.forEach(function(i){var r=i instanceof o&&i.isPadding();r?e(i.children):n.push(i)})};return e(this.children),n},o.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},o.prototype.addEventListener=function(n,e){this.localEventService.addEventListener(n,e)},o.prototype.removeEventListener=function(n,e){this.localEventService.removeEventListener(n,e)},o.EVENT_EXPANDED_CHANGED="expandedChanged",o.EVENT_EXPANDABLE_CHANGED="expandableChanged",j7([Li],o.prototype,"destroy",null),o}(),W7={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function U7(o){return o!=null&&o.length>0}function Nt(o){if(!(!o||!o.length))return o[o.length-1]}function bs(o,n,e){return o==null&&n==null?!0:o!=null&&n!=null&&o.length===n.length&&o.every(function(t,i){return e?e(t,n[i]):n[i]===t})}function K7(o,n){return bs(o,n)}function PD(o){return o.sort(function(n,e){return n-e})}function q7(o,n){if(o)for(var e=o.length-2;e>=0;e--){var t=o[e]===n,i=o[e+1]===n;t&&i&&o.splice(e+1,1)}}function n0(o,n){var e=o.indexOf(n);e>=0&&(o[e]=o[o.length-1],o.pop())}function ir(o,n){var e=o.indexOf(n);e>=0&&o.splice(e,1)}function MD(o,n){for(var e=0;e<n.length;e++)n0(o,n[e])}function FD(o,n){for(var e=0;e<n.length;e++)ir(o,n[e])}function Hd(o,n,e){o.splice(e,0,n)}function Y7(o,n,e){if(!(o==null||n==null))for(var t=n.length-1;t>=0;t--){var i=n[t];Hd(o,i,e)}}function A_(o,n,e){FD(o,n),n.slice().reverse().forEach(function(t){return Hd(o,t,e)})}function Co(o,n){return o.indexOf(n)>-1}function AD(o){return[].concat.apply([],o)}function N_(o,n){n==null||o==null||n.forEach(function(e){return o.push(e)})}function Q7(o){return o.map(Gd)}function X7(o,n){if(o!=null)for(var e=o.length-1;e>=0;e--)n(o[e],e)}var Z7=Object.freeze({__proto__:null,existsAndNotEmpty:U7,last:Nt,areEqual:bs,shallowCompare:K7,sortNumerically:PD,removeRepeatsFromArray:q7,removeFromUnorderedArray:n0,removeFromArray:ir,removeAllFromUnorderedArray:MD,removeAllFromArray:FD,insertIntoArray:Hd,insertArrayIntoArray:Y7,moveInArray:A_,includes:Co,flatten:AD,pushAll:N_,toStrings:Q7,forEachReverse:X7}),ND="__ag_Grid_Stop_Propagation",J7=["touchstart","touchend","touchmove","touchcancel","scroll"],PC={};function So(o){o[ND]=!0}function _o(o){return o[ND]===!0}var i0=function(){var o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},n=function(e){if(typeof PC[e]=="boolean")return PC[e];var t=document.createElement(o[e]||"div");return e="on"+e,PC[e]=e in t};return n}();function sg(o,n,e){for(var t=n;t;){var i=o.getDomData(t,e);if(i)return i;t=t.parentElement}return null}function ag(o,n){return!n||!o?!1:kD(n).indexOf(o)>=0}function LD(o){for(var n=[],e=o.target;e;)n.push(e),e=e.parentElement;return n}function kD(o){var n=o;return n.path?n.path:n.composedPath?n.composedPath():LD(n)}function VD(o,n,e,t){var i=Co(J7,e),r=i?{passive:!0}:void 0;o&&o.addEventListener&&o.addEventListener(n,e,t,r)}var eq=Object.freeze({__proto__:null,stopPropagationForAgGrid:So,isStopPropagationForAgGrid:_o,isEventSupported:i0,getCtrlForEventTarget:sg,isElementInEventPath:ag,createEventPath:LD,getEventPath:kD,addSafePassiveEventListener:VD}),Ua=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},re=function(){function o(){var n=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=function(){return!n.destroyed}}return o.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},o.prototype.getContext=function(){return this.context},o.prototype.destroy=function(){this.destroyFunctions.forEach(function(n){return n()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:o.EVENT_DESTROYED})},o.prototype.addEventListener=function(n,e){this.localEventService||(this.localEventService=new ga),this.localEventService.addEventListener(n,e)},o.prototype.removeEventListener=function(n,e){this.localEventService&&this.localEventService.removeEventListener(n,e)},o.prototype.dispatchEvent=function(n){this.localEventService&&this.localEventService.dispatchEvent(n)},o.prototype.addManagedListener=function(n,e,t){var i=this;if(!this.destroyed){n instanceof HTMLElement?VD(this.getFrameworkOverrides(),n,e,t):n.addEventListener(e,t);var r=function(){return n.removeEventListener(e,t),i.destroyFunctions=i.destroyFunctions.filter(function(s){return s!==r}),null};return this.destroyFunctions.push(r),r}},o.prototype.setupGridOptionListener=function(n,e){var t=this;this.gridOptionsService.addEventListener(n,e);var i=function(){return t.gridOptionsService.removeEventListener(n,e),t.destroyFunctions=t.destroyFunctions.filter(function(r){return r!==i}),null};return this.destroyFunctions.push(i),i},o.prototype.addManagedPropertyListener=function(n,e){return this.destroyed?function(){return null}:this.setupGridOptionListener(n,e)},o.prototype.addManagedPropertyListeners=function(n,e){var t=this;if(!this.destroyed){var i=n.join("-")+this.propertyListenerId++,r=function(s){if(s.changeSet){if(s.changeSet&&s.changeSet.id===t.lastChangeSetIdLookup[i])return;t.lastChangeSetIdLookup[i]=s.changeSet.id}var a={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};e(a)};n.forEach(function(s){return t.setupGridOptionListener(s,r)})}},o.prototype.addDestroyFunc=function(n){this.isAlive()?this.destroyFunctions.push(n):n()},o.prototype.createManagedBean=function(n,e){var t=this.createBean(n,e);return this.addDestroyFunc(this.destroyBean.bind(this,n,e)),t},o.prototype.createBean=function(n,e,t){return(e||this.getContext()).createBean(n,t)},o.prototype.destroyBean=function(n,e){return(e||this.getContext()).destroyBean(n)},o.prototype.destroyBeans=function(n,e){var t=this;return n&&n.forEach(function(i){return t.destroyBean(i,e)}),[]},o.EVENT_DESTROYED="destroyed",Ua([b("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),Ua([b("context")],o.prototype,"context",void 0),Ua([b("eventService")],o.prototype,"eventService",void 0),Ua([b("gridOptionsService")],o.prototype,"gridOptionsService",void 0),Ua([b("localeService")],o.prototype,"localeService",void 0),Ua([b("environment")],o.prototype,"environment",void 0),Ua([Li],o.prototype,"destroy",null),o}(),tq=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),zf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},nq=function(o,n){return function(e,t){n(e,t,o)}},iq=function(o){tq(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},n.prototype.createColumnTree=function(e,t,i,r){var s=new P7,a=this.extractExistingTreeData(i),l=a.existingCols,c=a.existingGroups,u=a.existingColKeys;s.addExistingKeys(u);var d=this.recursivelyCreateColumns(e,0,t,l,s,c,r),p=this.findMaxDept(d,0);this.logger.log("Number of levels for grouped columns is "+p);var g=this.balanceColumnTree(d,0,p,s),v=function(y,x){y instanceof Nn&&y.setupExpandable(),y.setOriginalParent(x)};return this.columnUtils.depthFirstOriginalTreeSearch(null,g,v),{columnTree:g,treeDept:p}},n.prototype.extractExistingTreeData=function(e){var t=[],i=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){if(s instanceof Nn){var a=s;i.push(a)}else{var l=s;r.push(l.getId()),t.push(l)}}),{existingCols:t,existingGroups:i,existingColKeys:r}},n.prototype.createForAutoGroups=function(e,t){var i=this;return e.map(function(r){return i.createAutoGroupTreeItem(t,r)})},n.prototype.createAutoGroupTreeItem=function(e,t){for(var i=this.findDepth(e),r=t,s=i-1;s>=0;s--){var a=new Nn(null,"FAKE_PATH_".concat(t.getId(),"}_").concat(s),!0,s);this.createBean(a),a.setChildren([r]),r.setOriginalParent(a),r=a}return i===0&&t.setOriginalParent(null),r},n.prototype.findDepth=function(e){for(var t=0,i=e;i&&i[0]&&i[0]instanceof Nn;)t++,i=i[0].getChildren();return t},n.prototype.balanceColumnTree=function(e,t,i,r){for(var s=[],a=0;a<e.length;a++){var l=e[a];if(l instanceof Nn){var c=l,u=this.balanceColumnTree(c.getChildren(),t+1,i,r);c.setChildren(u),s.push(c)}else{for(var d=void 0,p=void 0,g=i-1;g>=t;g--){var v=r.getUniqueKey(null,null),y=this.createMergedColGroupDef(null),x=new Nn(y,v,!0,t);this.createBean(x),p&&p.setChildren([x]),p=x,d||(d=p)}if(d&&p){s.push(d);var E=e.some(function(z){return z instanceof Nn});if(E){p.setChildren([l]);continue}else{p.setChildren(e);break}}s.push(l)}}return s},n.prototype.findMaxDept=function(e,t){for(var i=t,r=0;r<e.length;r++){var s=e[r];if(s instanceof Nn){var a=s,l=this.findMaxDept(a.getChildren(),t+1);i<l&&(i=l)}}return i},n.prototype.recursivelyCreateColumns=function(e,t,i,r,s,a,l){if(!e)return[];for(var c=new Array(e.length),u=0;u<c.length;u++){var d=e[u];this.isColumnGroup(d)?c[u]=this.createColumnGroup(i,d,t,r,s,a,l):c[u]=this.createColumn(i,d,r,s,l)}return c},n.prototype.createColumnGroup=function(e,t,i,r,s,a,l){var c=this.createMergedColGroupDef(t),u=s.getUniqueKey(c.groupId||null,null),d=new Nn(c,u,!1,i);this.createBean(d);var p=this.findExistingGroup(t,a);p&&a.splice(p.idx,1);var g=p?.group;g&&d.setExpanded(g.isExpanded());var v=this.recursivelyCreateColumns(c.children,i+1,e,r,s,a,l);return d.setChildren(v),d},n.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsService.get("defaultColGroupDef")),Object.assign(t,e),t},n.prototype.createColumn=function(e,t,i,r,s){var a=this.findExistingColumn(t,i);a&&i?.splice(a.idx,1);var l=a?.column;if(l){var u=this.addColumnDefaultAndTypes(t,l.getColId());l.setColDef(u,t,s),this.applyColumnState(l,u,s)}else{var c=r.getUniqueKey(t.colId,t.field),u=this.addColumnDefaultAndTypes(t,c);l=new Jt(u,t,c,e),this.context.createBean(l)}return this.dataTypeService.addColumnListeners(l),l},n.prototype.applyColumnState=function(e,t,i){var r=pa(t.flex);r!==void 0&&e.setFlex(r);var s=e.getFlex()<=0;if(s){var a=pa(t.width);if(a!=null)e.setActualWidth(a,i);else{var l=e.getActualWidth();e.setActualWidth(l,i)}}t.sort!==void 0&&(t.sort=="asc"||t.sort=="desc"?e.setSort(t.sort,i):e.setSort(void 0,i));var c=pa(t.sortIndex);c!==void 0&&e.setSortIndex(c);var u=ig(t.hide);u!==void 0&&e.setVisible(!u,i),t.pinned!==void 0&&e.setPinned(t.pinned)},n.prototype.findExistingColumn=function(e,t){if(t)for(var i=0;i<t.length;i++){var r=t[i].getUserProvidedColDef();if(r){var s=e.colId!=null;if(s){if(t[i].getId()===e.colId)return{idx:i,column:t[i]};continue}var a=e.field!=null;if(a){if(r.field===e.field)return{idx:i,column:t[i]};continue}if(r===e)return{idx:i,column:t[i]}}}},n.prototype.findExistingGroup=function(e,t){var i=e.groupId!=null;if(i)for(var r=0;r<t.length;r++){var s=t[r],a=s.getColGroupDef();if(a&&s.getId()===e.groupId)return{idx:r,group:s}}},n.prototype.addColumnDefaultAndTypes=function(e,t){var i={},r=this.gridOptionsService.get("defaultColDef");xr(i,r,!1,!0);var s=this.dataTypeService.updateColDefAndGetColumnType(i,e,t);s&&this.assignColumnTypes(s,i),xr(i,e,!1,!0);var a=this.gridOptionsService.get("autoGroupColumnDef"),l=this.gridOptionsService.isColumnsSortingCoupledToGroup();return e.rowGroup&&a&&l&&xr(i,{sort:a.sort,initialSort:a.initialSort},!1,!0),this.dataTypeService.validateColDef(i),i},n.prototype.assignColumnTypes=function(e,t){if(e.length){var i=Object.assign({},W7),r=this.gridOptionsService.get("columnTypes")||{};Ei(r,function(s,a){if(s in i)console.warn("AG Grid: the column type '".concat(s,"' is a default column type and cannot be overridden."));else{var l=a;l.type&&Je("Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type."),i[s]=a}}),e.forEach(function(s){var a=i[s.trim()];a?xr(t,a,!1,!0):console.warn("AG Grid: colDef.type '"+s+"' does not correspond to defined gridOptions.columnTypes")})}},n.prototype.isColumnGroup=function(e){return e.children!==void 0},zf([b("columnUtils")],n.prototype,"columnUtils",void 0),zf([b("dataTypeService")],n.prototype,"dataTypeService",void 0),zf([nq(0,Ur("loggerFactory"))],n.prototype,"setBeans",null),n=zf([Oe("columnFactory")],n),n}(re),rq=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},qn=function(){function o(n,e,t,i){this.displayedChildren=[],this.localEventService=new ga,this.groupId=e,this.partId=t,this.providedColumnGroup=n,this.pinned=i}return o.createUniqueId=function(n,e){return n+"_"+e},o.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},o.prototype.getParent=function(){return this.parent},o.prototype.setParent=function(n){this.parent=n},o.prototype.getUniqueId=function(){return o.createUniqueId(this.groupId,this.partId)},o.prototype.isEmptyGroup=function(){return this.displayedChildren.length===0},o.prototype.isMoving=function(){var n=this.getProvidedColumnGroup().getLeafColumns();return!n||n.length===0?!1:n.every(function(e){return e.isMoving()})},o.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(i){i instanceof o&&i.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsService.get("enableRtl")){var n=Nt(this.displayedChildren),e=n.getLeft();this.setLeft(e)}else{var t=this.displayedChildren[0].getLeft();this.setLeft(t)}else this.setLeft(null)},o.prototype.getLeft=function(){return this.left},o.prototype.getOldLeft=function(){return this.oldLeft},o.prototype.setLeft=function(n){this.oldLeft=this.left,this.left!==n&&(this.left=n,this.localEventService.dispatchEvent(this.createAgEvent(o.EVENT_LEFT_CHANGED)))},o.prototype.getPinned=function(){return this.pinned},o.prototype.createAgEvent=function(n){return{type:n}},o.prototype.addEventListener=function(n,e){this.localEventService.addEventListener(n,e)},o.prototype.removeEventListener=function(n,e){this.localEventService.removeEventListener(n,e)},o.prototype.getGroupId=function(){return this.groupId},o.prototype.getPartId=function(){return this.partId},o.prototype.isChildInThisGroupDeepSearch=function(n){var e=!1;return this.children.forEach(function(t){n===t&&(e=!0),t instanceof o&&t.isChildInThisGroupDeepSearch(n)&&(e=!0)}),e},o.prototype.getActualWidth=function(){var n=0;return this.displayedChildren&&this.displayedChildren.forEach(function(e){n+=e.getActualWidth()}),n},o.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var n=!1;return this.displayedChildren.forEach(function(e){e.isResizable()&&(n=!0)}),n},o.prototype.getMinWidth=function(){var n=0;return this.displayedChildren.forEach(function(e){n+=e.getMinWidth()||0}),n},o.prototype.addChild=function(n){this.children||(this.children=[]),this.children.push(n)},o.prototype.getDisplayedChildren=function(){return this.displayedChildren},o.prototype.getLeafColumns=function(){var n=[];return this.addLeafColumns(n),n},o.prototype.getDisplayedLeafColumns=function(){var n=[];return this.addDisplayedLeafColumns(n),n},o.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},o.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},o.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},o.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},o.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},o.prototype.setExpanded=function(n){this.providedColumnGroup.setExpanded(n)},o.prototype.addDisplayedLeafColumns=function(n){this.displayedChildren.forEach(function(e){e instanceof Jt?n.push(e):e instanceof o&&e.addDisplayedLeafColumns(n)})},o.prototype.addLeafColumns=function(n){this.children.forEach(function(e){e instanceof Jt?n.push(e):e instanceof o&&e.addLeafColumns(n)})},o.prototype.getChildren=function(){return this.children},o.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},o.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},o.prototype.getPaddingLevel=function(){var n=this.getParent();return!this.isPadding()||!n||!n.isPadding()?0:1+n.getPaddingLevel()},o.prototype.calculateDisplayedColumns=function(){var n=this;this.displayedChildren=[];for(var e=this;e!=null&&e.isPadding();)e=e.getParent();var t=e?e.providedColumnGroup.isExpandable():!1;if(!t){this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(o.EVENT_DISPLAYED_CHILDREN_CHANGED));return}this.children.forEach(function(i){var r=i instanceof o&&(!i.displayedChildren||!i.displayedChildren.length);if(!r){var s=i.getColumnGroupShow();switch(s){case"open":e.providedColumnGroup.isExpanded()&&n.displayedChildren.push(i);break;case"closed":e.providedColumnGroup.isExpanded()||n.displayedChildren.push(i);break;default:n.displayedChildren.push(i);break}}}),this.localEventService.dispatchEvent(this.createAgEvent(o.EVENT_DISPLAYED_CHILDREN_CHANGED))},o.EVENT_LEFT_CHANGED="leftChanged",o.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",rq([b("gridOptionsService")],o.prototype,"gridOptionsService",void 0),o}(),T=function(){function o(){}return o.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",o.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",o.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",o.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",o.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",o.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",o.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",o.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",o.EVENT_COLUMN_MOVED="columnMoved",o.EVENT_COLUMN_VISIBLE="columnVisible",o.EVENT_COLUMN_PINNED="columnPinned",o.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",o.EVENT_COLUMN_RESIZED="columnResized",o.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",o.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED="suppressMovableColumns",o.EVENT_SUPPRESS_MENU_HIDE_CHANGED="suppressMenuHide",o.EVENT_SUPPRESS_FIELD_DOT_NOTATION="suppressFieldDotNotation",o.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",o.EVENT_COLUMN_HEADER_MOUSE_OVER="columnHeaderMouseOver",o.EVENT_COLUMN_HEADER_MOUSE_LEAVE="columnHeaderMouseLeave",o.EVENT_COLUMN_HEADER_CLICKED="columnHeaderClicked",o.EVENT_COLUMN_HEADER_CONTEXT_MENU="columnHeaderContextMenu",o.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",o.EVENT_ROW_GROUP_OPENED="rowGroupOpened",o.EVENT_ROW_DATA_UPDATED="rowDataUpdated",o.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",o.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",o.EVENT_CHART_CREATED="chartCreated",o.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",o.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",o.EVENT_CHART_DESTROYED="chartDestroyed",o.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",o.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",o.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",o.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",o.EVENT_MODEL_UPDATED="modelUpdated",o.EVENT_CUT_START="cutStart",o.EVENT_CUT_END="cutEnd",o.EVENT_PASTE_START="pasteStart",o.EVENT_PASTE_END="pasteEnd",o.EVENT_FILL_START="fillStart",o.EVENT_FILL_END="fillEnd",o.EVENT_RANGE_DELETE_START="rangeDeleteStart",o.EVENT_RANGE_DELETE_END="rangeDeleteEnd",o.EVENT_UNDO_STARTED="undoStarted",o.EVENT_UNDO_ENDED="undoEnded",o.EVENT_REDO_STARTED="redoStarted",o.EVENT_REDO_ENDED="redoEnded",o.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",o.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",o.EVENT_CELL_CLICKED="cellClicked",o.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",o.EVENT_CELL_MOUSE_DOWN="cellMouseDown",o.EVENT_CELL_CONTEXT_MENU="cellContextMenu",o.EVENT_CELL_VALUE_CHANGED="cellValueChanged",o.EVENT_CELL_EDIT_REQUEST="cellEditRequest",o.EVENT_ROW_VALUE_CHANGED="rowValueChanged",o.EVENT_CELL_FOCUSED="cellFocused",o.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",o.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",o.EVENT_ROW_SELECTED="rowSelected",o.EVENT_SELECTION_CHANGED="selectionChanged",o.EVENT_TOOLTIP_SHOW="tooltipShow",o.EVENT_TOOLTIP_HIDE="tooltipHide",o.EVENT_CELL_KEY_DOWN="cellKeyDown",o.EVENT_CELL_MOUSE_OVER="cellMouseOver",o.EVENT_CELL_MOUSE_OUT="cellMouseOut",o.EVENT_FILTER_CHANGED="filterChanged",o.EVENT_FILTER_MODIFIED="filterModified",o.EVENT_FILTER_OPENED="filterOpened",o.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",o.EVENT_SORT_CHANGED="sortChanged",o.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",o.EVENT_ROW_CLICKED="rowClicked",o.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",o.EVENT_GRID_READY="gridReady",o.EVENT_GRID_PRE_DESTROYED="gridPreDestroyed",o.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",o.EVENT_VIEWPORT_CHANGED="viewportChanged",o.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",o.EVENT_FIRST_DATA_RENDERED="firstDataRendered",o.EVENT_DRAG_STARTED="dragStarted",o.EVENT_DRAG_STOPPED="dragStopped",o.EVENT_CHECKBOX_CHANGED="checkboxChanged",o.EVENT_ROW_EDITING_STARTED="rowEditingStarted",o.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",o.EVENT_CELL_EDITING_STARTED="cellEditingStarted",o.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",o.EVENT_BODY_SCROLL="bodyScroll",o.EVENT_BODY_SCROLL_END="bodyScrollEnd",o.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",o.EVENT_PAGINATION_CHANGED="paginationChanged",o.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",o.EVENT_STORE_REFRESHED="storeRefreshed",o.EVENT_STATE_UPDATED="stateUpdated",o.EVENT_COLUMN_MENU_VISIBLE_CHANGED="columnMenuVisibleChanged",o.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",o.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED="columnContainerWidthChanged",o.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",o.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",o.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",o.EVENT_FLASH_CELLS="flashCells",o.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",o.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",o.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",o.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",o.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",o.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",o.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",o.EVENT_ROW_DRAG_ENTER="rowDragEnter",o.EVENT_ROW_DRAG_MOVE="rowDragMove",o.EVENT_ROW_DRAG_LEAVE="rowDragLeave",o.EVENT_ROW_DRAG_END="rowDragEnd",o.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",o.EVENT_POPUP_TO_FRONT="popupToFront",o.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",o.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",o.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",o.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",o.EVENT_STORE_UPDATED="storeUpdated",o.EVENT_FILTER_DESTROYED="filterDestroyed",o.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",o.EVENT_ROW_COUNT_READY="rowCountReady",o.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",o.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",o.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",o.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",o.EVENT_SIDE_BAR_UPDATED="sideBarUpdated",o}(),GD=function(){function o(){this.existingIds={}}return o.prototype.getInstanceIdForKey=function(n){var e=this.existingIds[n],t;return typeof e!="number"?t=0:t=e+1,this.existingIds[n]=t,t},o}(),oq=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),MC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Bc="ag-Grid-AutoColumn",sq=function(o){oq(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.createAutoGroupColumns=function(e){var t=this,i=[],r=this.gridOptionsService.get("treeData"),s=this.gridOptionsService.isGroupMultiAutoColumn();return r&&s&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),s=!1),s?e.forEach(function(a,l){i.push(t.createOneAutoGroupColumn(a,l))}):i.push(this.createOneAutoGroupColumn()),i},n.prototype.updateAutoGroupColumns=function(e,t){var i=this;e.forEach(function(r,s){return i.updateOneAutoGroupColumn(r,s,t)})},n.prototype.createOneAutoGroupColumn=function(e,t){var i;e?i="".concat(Bc,"-").concat(e.getId()):i=Bc;var r=this.createAutoGroupColDef(i,e,t);r.colId=i;var s=new Jt(r,null,i,!0);return this.context.createBean(s),s},n.prototype.updateOneAutoGroupColumn=function(e,t,i){var r=e.getColDef(),s=typeof r.showRowGroup=="string"?r.showRowGroup:void 0,a=s!=null?this.columnModel.getPrimaryColumn(s):void 0,l=this.createAutoGroupColDef(e.getId(),a??void 0,t);e.setColDef(l,null,i),this.columnFactory.applyColumnState(e,l,i)},n.prototype.createAutoGroupColDef=function(e,t,i){var r=this.createBaseColDef(t),s=this.gridOptionsService.get("autoGroupColumnDef");if(xr(r,s),r=this.columnFactory.addColumnDefaultAndTypes(r,e),!this.gridOptionsService.get("treeData")){var a=tt(r.field)&&tt(r.valueGetter)&&tt(r.filterValueGetter)&&r.filter!=="agGroupColumnFilter";a&&(r.filter=!1)}i&&i>0&&(r.headerCheckboxSelection=!1);var l=this.gridOptionsService.isColumnsSortingCoupledToGroup(),c=r.valueGetter||r.field!=null;return l&&!c&&(r.sortIndex=void 0,r.initialSort=void 0),r},n.prototype.createBaseColDef=function(e){var t=this.gridOptionsService.get("autoGroupColumnDef"),i=this.localeService.getLocaleTextFunc(),r={headerName:i("group","Group")},s=t&&(t.cellRenderer||t.cellRendererSelector);if(s||(r.cellRenderer="agGroupCellRenderer"),e){var a=e.getColDef();Object.assign(r,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:a.headerValueGetter}),a.cellRenderer&&Object.assign(r,{cellRendererParams:{innerRenderer:a.cellRenderer,innerRendererParams:a.cellRendererParams}}),r.showRowGroup=e.getColId()}else r.showRowGroup=!0;return r},MC([b("columnModel")],n.prototype,"columnModel",void 0),MC([b("columnFactory")],n.prototype,"columnFactory",void 0),n=MC([Oe("autoGroupColService")],n),n}(re),aq=/[&<>"']/g,lq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function cq(o){var n=String.fromCharCode;function e(d){var p=[];if(!d)return[];for(var g=d.length,v=0,y,x;v<g;)y=d.charCodeAt(v++),y>=55296&&y<=56319&&v<g?(x=d.charCodeAt(v++),(x&64512)==56320?p.push(((y&1023)<<10)+(x&1023)+65536):(p.push(y),v--)):p.push(y);return p}function t(d){if(d>=55296&&d<=57343)throw Error("Lone surrogate U+"+d.toString(16).toUpperCase()+" is not a scalar value")}function i(d,p){return n(d>>p&63|128)}function r(d){if(d>=0&&d<=31&&d!==10){var p=d.toString(16).toUpperCase(),g=p.padStart(4,"0");return"_x".concat(g,"_")}if(!(d&4294967168))return n(d);var v="";return d&4294965248?d&4294901760?d&4292870144||(v=n(d>>18&7|240),v+=i(d,12),v+=i(d,6)):(t(d),v=n(d>>12&15|224),v+=i(d,6)):v=n(d>>6&31|192),v+=n(d&63|128),v}for(var s=e(o),a=s.length,l=-1,c,u="";++l<a;)c=s[l],u+=r(c);return u}function uq(o){return o[0].toUpperCase()+o.substring(1).toLowerCase()}function Yn(o,n){if(o==null)return null;var e=o.toString().toString();return n?e:e.replace(aq,function(t){return lq[t]})}function HD(o){if(!o||o==null)return null;var n=/([a-z])([A-Z])/g,e=/([A-Z]+)([A-Z])([a-z])/g,t=o.replace(n,"$1 $2").replace(e,"$1 $2$3").replace(/\./g," ").split(" ");return t.map(function(i){return i.substring(0,1).toUpperCase()+(i.length>1?i.substring(1,i.length):"")}).join(" ")}function BD(o){return o.replace(/[A-Z]/g,function(n){return"-".concat(n.toLocaleLowerCase())})}var dq=Object.freeze({__proto__:null,utf8_encode:cq,capitalise:uq,escapeString:Yn,camelCaseToHumanText:HD,camelCaseToHyphenated:BD});function ua(o){var n=new Map;return o.forEach(function(e){return n.set(e[0],e[1])}),n}function pq(o,n){var e=new Map;return o.forEach(function(t){return e.set(n(t),t)}),e}function hq(o){var n=[];return o.forEach(function(e,t){return n.push(t)}),n}var fq=Object.freeze({__proto__:null,convertToMap:ua,mapById:pq,keys:hq}),gq=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),hi=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},mq=function(o,n){return function(e,t){n(e,t,o)}},vq=function(o,n){var e={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&n.indexOf(t)<0&&(e[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(o);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(o,t[i])&&(e[t[i]]=o[t[i]]);return e},Cr=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},_r=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},FC=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},yq=function(o){gq(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.viewportRowLeft={},e.viewportRowRight={},e.viewportRowCenter={},e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.changeEventsDispatching=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.shouldQueueResizeOperations=!1,e.resizeOperationQueue=[],e}return n.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.get("suppressColumnVirtualisation");var t=this.gridOptionsService.get("pivotMode");this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],function(i){return e.buildAutoGroupColumns(Nc(i.source))}),this.addManagedPropertyListener("autoGroupColumnDef",function(i){return e.onAutoGroupColumnDefChanged(Nc(i.source))}),this.addManagedPropertyListeners(["defaultColDef","columnTypes","suppressFieldDotNotation"],function(i){return e.onSharedColDefChanged(Nc(i.source))}),this.addManagedPropertyListener("pivotMode",function(i){return e.setPivotMode(e.gridOptionsService.get("pivotMode"),Nc(i.source))}),this.addManagedListener(this.eventService,T.EVENT_FIRST_DATA_RENDERED,function(){return e.onFirstDataRendered()})},n.prototype.buildAutoGroupColumns=function(e){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns(e))},n.prototype.onAutoGroupColumnDefChanged=function(e){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e)},n.prototype.onSharedColDefChanged=function(e){this.gridColumns&&(this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e),this.createColumnsFromColumnDefs(!0,e))},n.prototype.setColumnDefs=function(e,t){var i=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(i,t)},n.prototype.recreateColumnDefs=function(e){this.onSharedColDefChanged(e)},n.prototype.destroyOldColumns=function(e,t){var i={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){i[s.getInstanceId()]=s}),t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,function(s){i[s.getInstanceId()]=null});var r=Object.values(i).filter(function(s){return s!=null});this.destroyBeans(r)}},n.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},n.prototype.createColumnsFromColumnDefs=function(e,t){var i=this,r=e?this.compareColumnStatesAndDispatchEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var s=this.primaryColumns,a=this.primaryColumnTree,l=this.columnFactory.createColumnTree(this.columnDefs,!0,a,t);this.destroyOldColumns(this.primaryColumnTree,l.columnTree),this.primaryColumnTree=l.columnTree,this.primaryHeaderRowCount=l.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(d){return i.primaryColumnsMap[d.getId()]=d}),this.extractRowGroupColumns(t,s),this.extractPivotColumns(t,s),this.extractValueColumns(t,s),this.ready=!0;var c=this.gridColsArePrimary===void 0,u=this.gridColsArePrimary||c||this.autoGroupsNeedBuilding;u&&(this.updateGridColumns(),e&&this.gridColsArePrimary&&!this.gridOptionsService.get("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),this.changeEventsDispatching=!0,r&&r(),this.changeEventsDispatching=!1,this.dispatchNewColumnsLoaded(t)},n.prototype.shouldRowModelIgnoreRefresh=function(){return this.changeEventsDispatching},n.prototype.dispatchNewColumnsLoaded=function(e){var t={type:T.EVENT_NEW_COLUMNS_LOADED,source:e};this.eventService.dispatchEvent(t),e==="gridInitializing"&&this.onColumnsReady()},n.prototype.dispatchEverythingChanged=function(e){var t={type:T.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(t)},n.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;if(t){var i=t.filter(function(s){return e.gridColumns.indexOf(s)>=0}),r=this.gridColumns.filter(function(s){return i.indexOf(s)<0});this.gridColumns=_r(_r([],Cr(r),!1),Cr(i),!1),this.gridColumns=this.placeLockedColumns(this.gridColumns)}},n.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},n.prototype.setViewport=function(){this.gridOptionsService.get("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},n.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,i=[];t!=null;)i.push(t),t=this.getDisplayedColAfter(t);return i},n.prototype.checkViewportColumns=function(e){if(e===void 0&&(e=!1),this.displayedColumnsCenter!=null){var t=this.extractViewport();if(t){var i={type:T.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(i)}}},n.prototype.setViewportPosition=function(e,t,i){i===void 0&&(i=!1),(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(i))},n.prototype.isPivotMode=function(){return this.pivotMode},n.prototype.isPivotSettingAllowed=function(e){return e&&this.gridOptionsService.get("treeData")?(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1):!0},n.prototype.setPivotMode=function(e,t){if(!(e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode))&&(this.pivotMode=e,!!this.gridColumns)){this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var i={type:T.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(i)}},n.prototype.getSecondaryPivotColumn=function(e,t){if(tt(this.secondaryColumns))return null;var i=this.getPrimaryColumn(t),r=null;return this.secondaryColumns.forEach(function(s){var a=s.getColDef().pivotKeys,l=s.getColDef().pivotValueColumn,c=bs(a,e),u=l===i;c&&u&&(r=s)}),r},n.prototype.setBeans=function(e){this.logger=e.create("columnModel")},n.prototype.setFirstRightAndLastLeftPinned=function(e){var t,i;this.gridOptionsService.get("enableRtl")?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,i=this.displayedColumnsRight?Nt(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?Nt(this.displayedColumnsLeft):null,i=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(r){r.setLastLeftPinned(r===t,e),r.setFirstRightPinned(r===i,e)})},n.prototype.autoSizeColumns=function(e){var t=this;if(this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return t.autoSizeColumns(e)});return}var i=e.columns,r=e.skipHeader,s=e.skipHeaderGroups,a=e.stopAtGroup,l=e.source,c=l===void 0?"api":l;this.animationFrameService.flushAllFrames();for(var u=[],d=-1,p=r??this.gridOptionsService.get("skipHeaderOnAutoSize"),g=s??p;d!==0;)d=0,this.actionOnGridColumns(i,function(v){if(u.indexOf(v)>=0)return!1;var y=t.autoWidthCalculator.getPreferredWidthForColumn(v,p);if(y>0){var x=t.normaliseColumnWidth(v,y);v.setActualWidth(x,c),u.push(v),d++}return!0},c);g||this.autoSizeColumnGroupsByColumns(i,c,a),this.dispatchColumnResizedEvent(u,!0,"autosizeColumns")},n.prototype.dispatchColumnResizedEvent=function(e,t,i,r){if(r===void 0&&(r=null),e&&e.length){var s={type:T.EVENT_COLUMN_RESIZED,columns:e,column:e.length===1?e[0]:null,flexColumns:r,finished:t,source:i};this.eventService.dispatchEvent(s)}},n.prototype.dispatchColumnChangedEvent=function(e,t,i){var r={type:e,columns:t,column:t&&t.length==1?t[0]:null,source:i};this.eventService.dispatchEvent(r)},n.prototype.dispatchColumnMovedEvent=function(e){var t=e.movedColumns,i=e.source,r=e.toIndex,s=e.finished,a={type:T.EVENT_COLUMN_MOVED,columns:t,column:t&&t.length===1?t[0]:null,toIndex:r,finished:s,source:i};this.eventService.dispatchEvent(a)},n.prototype.dispatchColumnPinnedEvent=function(e,t){if(e.length){var i=e.length===1?e[0]:null,r=this.getCommonValue(e,function(a){return a.getPinned()}),s={type:T.EVENT_COLUMN_PINNED,pinned:r??null,columns:e,column:i,source:t};this.eventService.dispatchEvent(s)}},n.prototype.dispatchColumnVisibleEvent=function(e,t){if(e.length){var i=e.length===1?e[0]:null,r=this.getCommonValue(e,function(a){return a.isVisible()}),s={type:T.EVENT_COLUMN_VISIBLE,visible:r,columns:e,column:i,source:t};this.eventService.dispatchEvent(s)}},n.prototype.autoSizeColumn=function(e,t,i){e&&this.autoSizeColumns({columns:[e],skipHeader:i,skipHeaderGroups:!0,source:t})},n.prototype.autoSizeColumnGroupsByColumns=function(e,t,i){var r,s,a,l,c=new Set,u=this.getGridColumns(e);u.forEach(function(M){for(var G=M.getParent();G&&G!=i;)G.isPadding()||c.add(G),G=G.getParent()});var d,p=[];try{for(var g=FC(c),v=g.next();!v.done;v=g.next()){var y=v.value;try{for(var x=(a=void 0,FC(this.ctrlsService.getHeaderRowContainerCtrls())),E=x.next();!E.done;E=x.next()){var z=E.value;if(d=z.getHeaderCtrlForColumn(y),d)break}}catch(M){a={error:M}}finally{try{E&&!E.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}d&&d.resizeLeafColumnsToFit(t)}}catch(M){r={error:M}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(r)throw r.error}}return p},n.prototype.autoSizeAllColumns=function(e,t){var i=this;if(this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return i.autoSizeAllColumns(e,t)});return}var r=this.getAllDisplayedColumns();this.autoSizeColumns({columns:r,skipHeader:t,source:e})},n.prototype.getColumnsFromTree=function(e){var t=[],i=function(r){for(var s=0;s<r.length;s++){var a=r[s];a instanceof Jt?t.push(a):a instanceof Nn&&i(a.getChildren())}};return i(e),t},n.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},n.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},n.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},n.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},n.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},n.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},n.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},n.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},n.prototype.getViewportColumns=function(){return this.viewportColumns},n.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},n.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},n.prototype.isColSpanActive=function(){return this.colSpanActive},n.prototype.getDisplayedColumnsForRow=function(e,t,i,r){for(var s=[],a=null,l=function(d){var p=t[d],g=t.length-d,v=Math.min(p.getColSpan(e),g),y=[p];if(v>1){for(var x=v-1,E=1;E<=x;E++)y.push(t[d+E]);d+=x}var z;if(i?(z=!1,y.forEach(function(G){i(G)&&(z=!0)})):z=!0,z){if(s.length===0&&a){var M=r?r(p):!1;M&&s.push(a)}s.push(p)}a=p,c=d},c,u=0;u<t.length;u++)l(u),u=c;return s},n.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var i=function(s){var a=s.getLeft();return ne(a)&&a>t.viewportLeft},r=this.isColumnVirtualisationSuppressed()?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,r,i)},n.prototype.isColumnAtEdge=function(e,t){var i=this.getAllDisplayedColumns();if(!i.length)return!1;var r=t==="first",s;if(e instanceof qn){var a=e.getDisplayedLeafColumns();if(!a.length)return!1;s=r?a[0]:Nt(a)}else s=e;return(r?i[0]:Nt(i))===s},n.prototype.getAriaColumnIndex=function(e){var t;return e instanceof qn?t=e.getLeafColumns()[0]:t=e,this.ariaOrderColumns.indexOf(t)+1},n.prototype.isColumnInHeaderViewport=function(e){return e.isAutoHeaderHeight()?!0:this.isColumnInRowViewport(e)},n.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,i=t+e.getActualWidth(),r=this.viewportLeft-200,s=this.viewportRight+200,a=t<r&&i<r,l=t>s&&i>s;return!a&&!l},n.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},n.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},n.prototype.updatePrimaryColumnList=function(e,t,i,r,s,a){var l=this;if(!(!e||Er(e))){var c=!1;if(e.forEach(function(d){if(d){var p=l.getPrimaryColumn(d);if(p){if(i){if(t.indexOf(p)>=0)return;t.push(p)}else{if(t.indexOf(p)<0)return;ir(t,p)}r(p),c=!0}}}),!!c){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a);var u={type:s,columns:t,column:t.length===1?t[0]:null,source:a};this.eventService.dispatchEvent(u)}}},n.prototype.setRowGroupColumns=function(e,t){this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,T.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),t)},n.prototype.setRowGroupActive=function(e,t,i){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,i),e&&!this.gridOptionsService.get("suppressRowGroupHidesColumns")&&this.setColumnsVisible([t],!1,i),!e&&!this.gridOptionsService.get("suppressMakeColumnVisibleAfterUnGroup")&&this.setColumnsVisible([t],!0,i))},n.prototype.addRowGroupColumns=function(e,t){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),T.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},n.prototype.removeRowGroupColumns=function(e,t){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),T.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},n.prototype.addPivotColumns=function(e,t){this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(i){return i.setPivotActive(!0,t)},T.EVENT_COLUMN_PIVOT_CHANGED,t)},n.prototype.setPivotColumns=function(e,t){this.setPrimaryColumnList(e,this.pivotColumns,T.EVENT_COLUMN_PIVOT_CHANGED,!0,function(i,r){r.setPivotActive(i,t)},t)},n.prototype.removePivotColumns=function(e,t){this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(i){return i.setPivotActive(!1,t)},T.EVENT_COLUMN_PIVOT_CHANGED,t)},n.prototype.setPrimaryColumnList=function(e,t,i,r,s,a){var l=this;if(this.gridColumns){var c=new Map;t.forEach(function(u,d){return c.set(u,d)}),t.length=0,ne(e)&&e.forEach(function(u){var d=l.getPrimaryColumn(u);d&&t.push(d)}),t.forEach(function(u,d){var p=c.get(u);if(p===void 0){c.set(u,0);return}r&&p!==d||c.delete(u)}),(this.primaryColumns||[]).forEach(function(u){var d=t.indexOf(u)>=0;s(d,u)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a),this.dispatchColumnChangedEvent(i,_r([],Cr(c.keys()),!1),a)}},n.prototype.setValueColumns=function(e,t){this.setPrimaryColumnList(e,this.valueColumns,T.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),t)},n.prototype.setValueActive=function(e,t,i){if(e!==t.isValueActive()&&(t.setValueActive(e,i),e&&!t.getAggFunc())){var r=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(r)}},n.prototype.addValueColumns=function(e,t){this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),T.EVENT_COLUMN_VALUE_CHANGED,t)},n.prototype.removeValueColumns=function(e,t){this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),T.EVENT_COLUMN_VALUE_CHANGED,t)},n.prototype.normaliseColumnWidth=function(e,t){var i=e.getMinWidth();ne(i)&&t<i&&(t=i);var r=e.getMaxWidth();return ne(r)&&e.isGreaterThanMax(t)&&(t=r),t},n.prototype.getPrimaryOrGridColumn=function(e){var t=this.getPrimaryColumn(e);return t||this.getGridColumn(e)},n.prototype.setColumnWidths=function(e,t,i,r){var s=this,a=[];e.forEach(function(l){var c=s.getPrimaryOrGridColumn(l.key);if(c){a.push({width:l.newWidth,ratios:[1],columns:[c]});var u=s.gridOptionsService.get("colResizeDefault")==="shift";if(u&&(t=!t),t){var d=s.getDisplayedColAfter(c);if(!d)return;var p=c.getActualWidth()-l.newWidth,g=d.getActualWidth()+p;a.push({width:g,ratios:[1],columns:[d]})}}}),a.length!==0&&this.resizeColumnSets({resizeSets:a,finished:i,source:r})},n.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,i=e.width,r=0,s=0,a=!0;t.forEach(function(u){var d=u.getMinWidth();r+=d||0;var p=u.getMaxWidth();ne(p)&&p>0?s+=p:a=!1});var l=i>=r,c=!a||i<=s;return l&&c},n.prototype.resizeColumnSets=function(e){var t=this,i=e.resizeSets,r=e.finished,s=e.source,a=!i||i.every(function(v){return t.checkMinAndMaxWidthsForSet(v)});if(!a){if(r){var l=i&&i.length>0?i[0].columns:null;this.dispatchColumnResizedEvent(l,r,s)}return}var c=[],u=[];i.forEach(function(v){var y=v.width,x=v.columns,E=v.ratios,z={},M={};x.forEach(function(he){return u.push(he)});for(var G=!0,U=0,se=function(){if(U++,U>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";G=!1;var he=[],be=0,Ee=y;x.forEach(function(rt,en){var dn=M[rt.getId()];if(dn)Ee-=z[rt.getId()];else{he.push(rt);var Yt=E[en];be+=Yt}});var Te=1/be;he.forEach(function(rt,en){var dn=en===he.length-1,Yt;dn?Yt=Ee:(Yt=Math.round(E[en]*y*Te),Ee-=Yt);var ni=rt.getMinWidth(),Lt=rt.getMaxWidth();ne(ni)&&Yt<ni?(Yt=ni,M[rt.getId()]=!0,G=!0):ne(Lt)&&Lt>0&&Yt>Lt&&(Yt=Lt,M[rt.getId()]=!0,G=!0),z[rt.getId()]=Yt})};G;){var ve=se();if(ve==="break")break}x.forEach(function(he){var be=z[he.getId()],Ee=he.getActualWidth();Ee!==be&&(he.setActualWidth(be,s),c.push(he))})});var d=c.length>0,p=[];d&&(p=this.refreshFlexedColumns({resizingCols:u,skipSetLeft:!0}),this.setLeftValues(s),this.updateBodyWidths(),this.checkViewportColumns());var g=u.concat(p);(d||r)&&this.dispatchColumnResizedEvent(g,r,s,p)},n.prototype.setColumnAggFunc=function(e,t,i){if(e){var r=this.getPrimaryColumn(e);r&&(r.setAggFunc(t),this.dispatchColumnChangedEvent(T.EVENT_COLUMN_VALUE_CHANGED,[r],i))}},n.prototype.moveRowGroupColumn=function(e,t,i){if(!this.isRowGroupEmpty()){var r=this.rowGroupColumns[e],s=this.rowGroupColumns.slice(e,t);this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,r);var a={type:T.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:s,column:s.length===1?s[0]:null,source:i};this.eventService.dispatchEvent(a)}},n.prototype.moveColumns=function(e,t,i,r){if(r===void 0&&(r=!0),!!this.gridColumns){if(this.columnAnimationService.start(),t>this.gridColumns.length-e.length){console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");return}var s=this.getGridColumns(e),a=!this.doesMovePassRules(s,t);a||(A_(this.gridColumns,s,t),this.updateDisplayedColumns(i),this.dispatchColumnMovedEvent({movedColumns:s,source:i,toIndex:t,finished:r}),this.columnAnimationService.finish())}},n.prototype.doesMovePassRules=function(e,t){var i=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(i)},n.prototype.doesOrderPassRules=function(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))},n.prototype.getProposedColumnOrder=function(e,t){var i=this.gridColumns.slice();return A_(i,e,t),i},n.prototype.sortColumnsLikeGridColumns=function(e){var t=this;if(!(!e||e.length<=1)){var i=e.filter(function(r){return t.gridColumns.indexOf(r)<0}).length>0;i||e.sort(function(r,s){var a=t.gridColumns.indexOf(r),l=t.gridColumns.indexOf(s);return a-l})}},n.prototype.doesMovePassLockedPositions=function(e){var t=0,i=!0,r=function(s){return s?s===!0||s==="left"?0:2:1};return e.forEach(function(s){var a=r(s.getColDef().lockPosition);a<t&&(i=!1),t=a}),i},n.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(i){if(i instanceof Nn){var r=i,s=r.getColGroupDef(),a=s&&s.marryChildren;if(a){var l=[];r.getLeafColumns().forEach(function(g){var v=e.indexOf(g);l.push(v)});var c=Math.max.apply(Math,l),u=Math.min.apply(Math,l),d=c-u,p=r.getLeafColumns().length-1;d>p&&(t=!1)}}}),t},n.prototype.moveColumnByIndex=function(e,t,i){if(this.gridColumns){var r=this.gridColumns[e];this.moveColumns([r],t,i)}},n.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort(function(i,r){return e.gridColumns.indexOf(i)-e.gridColumns.indexOf(r)}):this.lastPrimaryOrder&&t.sort(function(i,r){return e.lastPrimaryOrder.indexOf(i)-e.lastPrimaryOrder.indexOf(r)}),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},n.prototype.getBodyContainerWidth=function(){return this.bodyWidth},n.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},n.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),i=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e;var r=this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==i;if(r){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=i;var s={type:T.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED};this.eventService.dispatchEvent(s);var a={type:T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(a)}},n.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},n.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},n.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},n.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},n.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},n.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},n.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},n.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},n.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns:null},n.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns:null},n.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},n.prototype.getAllGridColumns=function(){var e;return(e=this.gridColumns)!==null&&e!==void 0?e:[]},n.prototype.isEmpty=function(){return Er(this.gridColumns)},n.prototype.isRowGroupEmpty=function(){return Er(this.rowGroupColumns)},n.prototype.setColumnsVisible=function(e,t,i){t===void 0&&(t=!1),this.applyColumnState({state:e.map(function(r){return{colId:typeof r=="string"?r:r.getColId(),hide:!t}})},i)},n.prototype.setColumnsPinned=function(e,t,i){if(this.gridColumns){if(this.gridOptionsService.isDomLayout("print")){console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'");return}this.columnAnimationService.start();var r;t===!0||t==="left"?r="left":t==="right"?r="right":r=null,this.actionOnGridColumns(e,function(s){return s.getPinned()!==r?(s.setPinned(r),!0):!1},i,function(){var s={type:T.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,source:i};return s}),this.columnAnimationService.finish()}},n.prototype.actionOnGridColumns=function(e,t,i,r){var s=this;if(!Er(e)){var a=[];if(e.forEach(function(c){if(c){var u=s.getGridColumn(c);if(u){var d=t(u);d!==!1&&a.push(u)}}}),!!a.length&&(this.updateDisplayedColumns(i),ne(r)&&r)){var l=r();l.columns=a,l.column=a.length===1?a[0]:null,this.eventService.dispatchEvent(l)}}},n.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),i=t.indexOf(e);return i>0?t[i-1]:null},n.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),i=t.indexOf(e);return i<t.length-1?t[i+1]:null},n.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},n.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},n.prototype.getDisplayedGroupAtDirection=function(e,t){for(var i=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),s=t==="After"?Nt(r):r[0],a="getDisplayedCol".concat(t);;){var l=this[a](s);if(!l)return null;var c=this.getColumnGroupAtLevel(l,i);if(c!==e)return c}},n.prototype.getColumnGroupAtLevel=function(e,t){for(var i=e.getParent(),r,s;;){var a=i.getProvidedColumnGroup();if(r=a.getLevel(),s=i.getPaddingLevel(),r+s<=t)break;i=i.getParent()}return i},n.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},n.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},n.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},n.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,i=e.isPivotActive()?this.pivotColumns.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,s=e.getSort()!=null?e.getSort():null,a=e.getSortIndex()!=null?e.getSortIndex():null,l=e.getFlex()!=null&&e.getFlex()>0?e.getFlex():null,c={colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:s,sortIndex:a,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:i,flex:l};return c},n.prototype.getColumnState=function(){if(tt(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns(),t=e.map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(t),t},n.prototype.orderColumnStateList=function(e){var t=ua(this.gridColumns.map(function(i,r){return[i.getColId(),r]}));e.sort(function(i,r){var s=t.has(i.colId)?t.get(i.colId):-1,a=t.has(r.colId)?t.get(r.colId):-1;return s-a})},n.prototype.resetColumnState=function(e){var t=this;if(!Er(this.primaryColumns)){var i=this.getColumnsFromTree(this.primaryColumnTree),r=[],s=1e3,a=1e3,l=[];this.groupAutoColumns&&(l=l.concat(this.groupAutoColumns)),i&&(l=l.concat(i)),l.forEach(function(c){var u=t.getColumnStateFromColDef(c);tt(u.rowGroupIndex)&&u.rowGroup&&(u.rowGroupIndex=s++),tt(u.pivotIndex)&&u.pivot&&(u.pivotIndex=a++),r.push(u)}),this.applyColumnState({state:r,applyOrder:!0},e)}},n.prototype.getColumnStateFromColDef=function(e){var t=function(x,E){return x??E??null},i=e.getColDef(),r=t(i.sort,i.initialSort),s=t(i.sortIndex,i.initialSortIndex),a=t(i.hide,i.initialHide),l=t(i.pinned,i.initialPinned),c=t(i.width,i.initialWidth),u=t(i.flex,i.initialFlex),d=t(i.rowGroupIndex,i.initialRowGroupIndex),p=t(i.rowGroup,i.initialRowGroup);d==null&&(p==null||p==!1)&&(d=null,p=null);var g=t(i.pivotIndex,i.initialPivotIndex),v=t(i.pivot,i.initialPivot);g==null&&(v==null||v==!1)&&(g=null,v=null);var y=t(i.aggFunc,i.initialAggFunc);return{colId:e.getColId(),sort:r,sortIndex:s,hide:a,pinned:l,width:c,flex:u,rowGroup:p,rowGroupIndex:d,pivot:v,pivotIndex:g,aggFunc:y}},n.prototype.applyColumnState=function(e,t){var i=this;if(Er(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var r=function(c,u,d){var p=i.compareColumnStatesAndDispatchEvents(t);i.autoGroupsNeedBuilding=!0;var g=u.slice(),v={},y={},x=[],E=[],z=0,M=i.rowGroupColumns.slice(),G=i.pivotColumns.slice();c.forEach(function(he){var be=he.colId||"",Ee=be.startsWith(Bc);if(Ee){x.push(he),E.push(he);return}var Te=d(be);Te?(i.syncColumnWithStateItem(Te,he,e.defaultState,v,y,!1,t),ir(g,Te)):(E.push(he),z+=1)});var U=function(he){return i.syncColumnWithStateItem(he,null,e.defaultState,v,y,!1,t)};g.forEach(U);var se=function(he,be,Ee,Te){var rt=he[Ee.getId()],en=he[Te.getId()],dn=rt!=null,Yt=en!=null;if(dn&&Yt)return rt-en;if(dn)return-1;if(Yt)return 1;var ni=be.indexOf(Ee),Lt=be.indexOf(Te),ai=ni>=0,ki=Lt>=0;return ai&&ki?ni-Lt:ai?-1:1};i.rowGroupColumns.sort(se.bind(i,v,M)),i.pivotColumns.sort(se.bind(i,y,G)),i.updateGridColumns();var ve=i.groupAutoColumns?i.groupAutoColumns.slice():[];return x.forEach(function(he){var be=i.getAutoColumn(he.colId);ir(ve,be),i.syncColumnWithStateItem(be,he,e.defaultState,null,null,!0,t)}),ve.forEach(U),i.applyOrderAfterApplyState(e),i.updateDisplayedColumns(t),i.dispatchEverythingChanged(t),p(),{unmatchedAndAutoStates:E,unmatchedCount:z}};this.columnAnimationService.start();var s=r(e.state||[],this.primaryColumns||[],function(c){return i.getPrimaryColumn(c)}),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||ne(e.defaultState))&&(l=r(a,this.secondaryColumns||[],function(c){return i.getSecondaryColumn(c)}).unmatchedCount),this.columnAnimationService.finish(),l===0},n.prototype.applyOrderAfterApplyState=function(e){var t=this;if(!(!e.applyOrder||!e.state)){var i=[],r={};e.state.forEach(function(a){if(!(!a.colId||r[a.colId])){var l=t.gridColumnsMap[a.colId];l&&(i.push(l),r[a.colId]=!0)}});var s=0;if(this.gridColumns.forEach(function(a){var l=a.getColId(),c=r[l]!=null;if(!c){var u=l.startsWith(Bc);u?Hd(i,a,s++):i.push(a)}}),i=this.placeLockedColumns(i),!this.doesMovePassMarryChildren(i)){console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");return}this.gridColumns=i}},n.prototype.compareColumnStatesAndDispatchEvents=function(e){var t=this,i={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},r=this.getColumnState(),s={};return r.forEach(function(a){s[a.colId]=a}),function(){var a=t.getPrimaryAndSecondaryAndAutoColumns(),l=function(z,M,G,U){var se=M.map(U),ve=G.map(U),he=bs(se,ve);if(!he){var be=new Set(M);G.forEach(function(rt){be.delete(rt)||be.add(rt)});var Ee=_r([],Cr(be),!1),Te={type:z,columns:Ee,column:Ee.length===1?Ee[0]:null,source:e};t.eventService.dispatchEvent(Te)}},c=function(z){var M=[];return a.forEach(function(G){var U=s[G.getColId()];U&&z(U,G)&&M.push(G)}),M},u=function(z){return z.getColId()};l(T.EVENT_COLUMN_ROW_GROUP_CHANGED,i.rowGroupColumns,t.rowGroupColumns,u),l(T.EVENT_COLUMN_PIVOT_CHANGED,i.pivotColumns,t.pivotColumns,u);var d=function(z,M){var G=z.aggFunc!=null,U=G!=M.isValueActive(),se=G&&z.aggFunc!=M.getAggFunc();return U||se},p=c(d);p.length>0&&t.dispatchColumnChangedEvent(T.EVENT_COLUMN_VALUE_CHANGED,p,e);var g=function(z,M){return z.width!=M.getActualWidth()};t.dispatchColumnResizedEvent(c(g),!0,e);var v=function(z,M){return z.pinned!=M.getPinned()};t.dispatchColumnPinnedEvent(c(v),e);var y=function(z,M){return z.hide==M.isVisible()};t.dispatchColumnVisibleEvent(c(y),e);var x=function(z,M){return z.sort!=M.getSort()||z.sortIndex!=M.getSortIndex()},E=c(x);E.length>0&&t.sortController.dispatchSortChangedEvents(e,E),t.normaliseColumnMovedEventForColumnState(r,e)}},n.prototype.getCommonValue=function(e,t){if(!(!e||e.length==0)){for(var i=t(e[0]),r=1;r<e.length;r++)if(i!==t(e[r]))return;return i}},n.prototype.normaliseColumnMovedEventForColumnState=function(e,t){var i=this,r=this.getColumnState(),s={};r.forEach(function(d){return s[d.colId]=d});var a={};e.forEach(function(d){s[d.colId]&&(a[d.colId]=!0)});var l=e.filter(function(d){return a[d.colId]}),c=r.filter(function(d){return a[d.colId]}),u=[];c.forEach(function(d,p){var g=l&&l[p];if(g&&g.colId!==d.colId){var v=i.getGridColumn(g.colId);v&&u.push(v)}}),u.length&&this.dispatchColumnMovedEvent({movedColumns:u,source:t,finished:!0})},n.prototype.syncColumnWithStateItem=function(e,t,i,r,s,a,l){if(e){var c=function(he,be){var Ee={value1:void 0,value2:void 0},Te=!1;return t&&(t[he]!==void 0&&(Ee.value1=t[he],Te=!0),ne(be)&&t[be]!==void 0&&(Ee.value2=t[be],Te=!0)),!Te&&i&&(i[he]!==void 0&&(Ee.value1=i[he]),ne(be)&&i[be]!==void 0&&(Ee.value2=i[be])),Ee},u=c("hide").value1;u!==void 0&&e.setVisible(!u,l);var d=c("pinned").value1;d!==void 0&&e.setPinned(d);var p=this.columnUtils.calculateColMinWidth(e.getColDef()),g=c("flex").value1;if(g!==void 0&&e.setFlex(g),g==null){var v=c("width").value1;v!=null&&p!=null&&v>=p&&e.setActualWidth(v,l)}var y=c("sort").value1;y!==void 0&&(y==="desc"||y==="asc"?e.setSort(y,l):e.setSort(void 0,l));var x=c("sortIndex").value1;if(x!==void 0&&e.setSortIndex(x),!(a||!e.isPrimary())){var E=c("aggFunc").value1;E!==void 0&&(typeof E=="string"?(e.setAggFunc(E),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(ne(E)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,l),ir(this.valueColumns,e))));var z=c("rowGroup","rowGroupIndex"),M=z.value1,G=z.value2;(M!==void 0||G!==void 0)&&(typeof G=="number"||M?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),r&&typeof G=="number"&&(r[e.getId()]=G)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),ir(this.rowGroupColumns,e)));var U=c("pivot","pivotIndex"),se=U.value1,ve=U.value2;(se!==void 0||ve!==void 0)&&(typeof ve=="number"||se?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),s&&typeof ve=="number"&&(s[e.getId()]=ve)):e.isPivotActive()&&(e.setPivotActive(!1,l),ir(this.pivotColumns,e)))}}},n.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},n.prototype.getColumns=function(e,t){var i=[];return e&&e.forEach(function(r){var s=t(r);s&&i.push(s)}),i},n.prototype.getColumnWithValidation=function(e){if(e==null)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},n.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},n.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},n.prototype.lookupGridColumn=function(e){return this.gridColumnsMap[e]},n.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},n.prototype.getColumn=function(e,t,i){if(!e||!i)return null;if(typeof e=="string"&&i[e])return i[e];for(var r=0;r<t.length;r++)if(this.columnsMatch(t[r],e))return t[r];return this.getAutoColumn(e)},n.prototype.getSourceColumnsForGroupColumn=function(e){var t=e.getColDef().showRowGroup;if(!t)return null;if(t===!0)return this.rowGroupColumns.slice(0);var i=this.getPrimaryColumn(t);return i?[i]:null},n.prototype.getAutoColumn=function(e){var t=this;return!this.groupAutoColumns||!ne(this.groupAutoColumns)||tt(this.groupAutoColumns)?null:this.groupAutoColumns.find(function(i){return t.columnsMatch(i,e)})||null},n.prototype.columnsMatch=function(e,t){var i=e===t,r=e.getColDef()===t,s=e.getColId()==t;return i||r||s},n.prototype.getDisplayNameForColumn=function(e,t,i){if(i===void 0&&(i=!1),!e)return null;var r=this.getHeaderName(e.getColDef(),e,null,null,t);return i?this.wrapHeaderNameWithAggFunc(e,r):r},n.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,i){var r=t?t.getColGroupDef():null;return r?this.getHeaderName(r,null,e,t,i):null},n.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},n.prototype.getHeaderName=function(e,t,i,r,s){var a=e.headerValueGetter;if(a){var l=this.gridOptionsService.addGridCommonParams({colDef:e,column:t,columnGroup:i,providedColumnGroup:r,location:s});return typeof a=="function"?a(l):typeof a=="string"?this.expressionService.evaluate(a,l):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}else{if(e.headerName!=null)return e.headerName;if(e.field)return HD(e.field)}return""},n.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsService.get("suppressAggFuncInHeader"))return t;var i=e.getColDef().pivotValueColumn,r=ne(i),s=null,a;if(r){var l=this.gridOptionsService.get("removePivotHeaderRowWhenSingleValueColumn")&&this.valueColumns.length===1,c=e.getColDef().pivotTotalColumnIds!==void 0;if(l&&!c)return t;s=i?i.getAggFunc():null,a=!0}else{var u=e.isValueActive(),d=this.pivotMode||!this.isRowGroupEmpty();u&&d?(s=e.getAggFunc(),a=!0):a=!1}if(a){var p=typeof s=="string"?s:"func",g=this.localeService.getLocaleTextFunc(),v=g(p,p);return"".concat(v,"(").concat(t,")")}return t},n.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof qn)return e;var i=this.getAllDisplayedTrees(),r=typeof t=="number",s=null;return this.columnUtils.depthFirstAllColumnTreeSearch(i,function(a){if(a instanceof qn){var l=a,c=void 0;r?c=e===l.getGroupId()&&t===l.getPartId():c=e===l.getGroupId(),c&&(s=l)}}),s},n.prototype.isReady=function(){return this.ready},n.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,function(i,r){return i.setValueActive(r,e)},function(){},function(){},function(i){var r=i.aggFunc;if(r===null||r==="")return null;if(r!==void 0)return!!r},function(i){return i.initialAggFunc!=null&&i.initialAggFunc!=""}),this.valueColumns.forEach(function(i){var r=i.getColDef();r.aggFunc!=null&&r.aggFunc!=""?i.setAggFunc(r.aggFunc):i.getAggFunc()||i.setAggFunc(r.initialAggFunc)})},n.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,function(i,r){return i.setRowGroupActive(r,e)},function(i){return i.rowGroupIndex},function(i){return i.initialRowGroupIndex},function(i){return i.rowGroup},function(i){return i.initialRowGroup})},n.prototype.extractColumns=function(e,t,i,r,s,a,l){e===void 0&&(e=[]),t===void 0&&(t=[]);var c=[],u=[];(this.primaryColumns||[]).forEach(function(g){var v=e.indexOf(g)<0,y=g.getColDef(),x=ig(a(y)),E=ig(l(y)),z=pa(r(y)),M=pa(s(y)),G,U=x!==void 0,se=z!==void 0,ve=E!==void 0,he=M!==void 0;if(U?G=x:se?z===null?G=!1:G=z>=0:v?ve?G=E:he?G=M!=null&&M>=0:G=!1:G=t.indexOf(g)>=0,G){var be=v?z!=null||M!=null:z!=null;be?c.push(g):u.push(g)}});var d=function(g){var v=r(g.getColDef()),y=s(g.getColDef());return v??y};c.sort(function(g,v){var y=d(g),x=d(v);return y===x?0:y<x?-1:1});var p=[].concat(c);return t.forEach(function(g){u.indexOf(g)>=0&&p.push(g)}),u.forEach(function(g){p.indexOf(g)<0&&p.push(g)}),t.forEach(function(g){p.indexOf(g)<0&&i(g,!1)}),p.forEach(function(g){t.indexOf(g)<0&&i(g,!0)}),p},n.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,function(i,r){return i.setPivotActive(r,e)},function(i){return i.pivotIndex},function(i){return i.initialPivotIndex},function(i){return i.pivot},function(i){return i.initialPivot})},n.prototype.resetColumnGroupState=function(e){if(this.primaryColumnTree){var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(i){if(i instanceof Nn){var r=i.getColGroupDef(),s={groupId:i.getGroupId(),open:r?r.openByDefault:void 0};t.push(s)}}),this.setColumnGroupState(t,e)}},n.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(t){t instanceof Nn&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})}),e},n.prototype.setColumnGroupState=function(e,t){var i=this;if(this.gridBalancedTree){this.columnAnimationService.start();var r=[];if(e.forEach(function(a){var l=a.groupId,c=a.open,u=i.getProvidedColumnGroup(l);u&&u.isExpanded()!==c&&(i.logger.log("columnGroupOpened("+u.getGroupId()+","+c+")"),u.setExpanded(c),r.push(u))}),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),r.length){var s={type:T.EVENT_COLUMN_GROUP_OPENED,columnGroup:Nn.length===1?r[0]:void 0,columnGroups:r};this.eventService.dispatchEvent(s)}this.columnAnimationService.finish()}},n.prototype.setColumnGroupOpened=function(e,t,i){var r;e instanceof Nn?r=e.getId():r=e||"",this.setColumnGroupState([{groupId:r,open:t}],i)},n.prototype.getProvidedColumnGroup=function(e){typeof e!="string"&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(i){i instanceof Nn&&i.getId()===e&&(t=i)}),t},n.prototype.calculateColumnsForDisplay=function(){var e=this,t;return this.pivotMode&&tt(this.secondaryColumns)?t=this.gridColumns.filter(function(i){var r=e.groupAutoColumns&&Co(e.groupAutoColumns,i),s=e.valueColumns&&Co(e.valueColumns,i);return r||s}):t=this.gridColumns.filter(function(i){var r=e.groupAutoColumns&&Co(e.groupAutoColumns,i);return r||i.isVisible()}),t},n.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach(function(i){ne(i.getColDef().colSpan)&&(t=!0)}),t},n.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var t=function(i){var r=i.getColDef(),s=r.showRowGroup;r&&ne(s)&&(e.groupDisplayColumns.push(i),typeof s=="string"?e.groupDisplayColumnsMap[s]=i:s===!0&&e.getRowGroupColumns().forEach(function(a){e.groupDisplayColumnsMap[a.getId()]=i}))};this.gridColumns.forEach(t)},n.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},n.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},n.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},n.prototype.isSecondaryColumnsPresent=function(){return ne(this.secondaryColumns)},n.prototype.setSecondaryColumns=function(e,t){var i=this;if(this.gridColumns){var r=e&&e.length>0;if(!(!r&&tt(this.secondaryColumns))){if(r){this.processSecondaryColumnDefinitions(e);var s=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0,t);this.destroyOldColumns(this.secondaryBalancedTree,s.columnTree),this.secondaryBalancedTree=s.columnTree,this.secondaryHeaderRowCount=s.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(a){return i.secondaryColumnsMap[a.getId()]=a}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}}},n.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsService.get("processPivotResultColDef"),i=this.gridOptionsService.get("processPivotResultColGroupDef");if(!(!t&&!i)){var r=function(s){s.forEach(function(a){var l=ne(a.children);if(l){var c=a;i&&i(c),r(c.children)}else{var u=a;t&&t(u)}})};e&&r(e)}},n.prototype.updateGridColumns=function(){var e=this,t=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var i=this.createGroupAutoColumnsIfNeeded();if(i){var r=ua(this.groupAutoColumns.map(function(c){return[c,!0]}));this.lastPrimaryOrder&&(this.lastPrimaryOrder=this.lastPrimaryOrder.filter(function(c){return!r.has(c)}),this.lastPrimaryOrder=_r(_r([],Cr(this.groupAutoColumns),!1),Cr(this.lastPrimaryOrder),!1)),this.lastSecondaryOrder&&(this.lastSecondaryOrder=this.lastSecondaryOrder.filter(function(c){return!r.has(c)}),this.lastSecondaryOrder=_r(_r([],Cr(this.groupAutoColumns),!1),Cr(this.lastSecondaryOrder),!1))}var s;if(this.secondaryColumns&&this.secondaryBalancedTree){var a=this.secondaryColumns.some(function(c){return e.gridColumnsMap[c.getColId()]!==void 0});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,a&&(s=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,s=this.lastPrimaryOrder);if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(s),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(c){return e.gridColumnsMap[c.getId()]=c}),this.setAutoHeightActive(),!bs(t,this.gridBalancedTree)){var l={type:T.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(l)}},n.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter(function(t){return t.isAutoHeight()}).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide");e||Je("autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}},n.prototype.orderGridColsLike=function(e){if(!tt(e)){var t=ua(e.map(function(u,d){return[u,d]})),i=!0;if(this.gridColumns.forEach(function(u){t.has(u)&&(i=!1)}),!i){var r=ua(this.gridColumns.map(function(u){return[u,!0]})),s=e.filter(function(u){return r.has(u)}),a=ua(s.map(function(u){return[u,!0]})),l=this.gridColumns.filter(function(u){return!a.has(u)}),c=s.slice();l.forEach(function(u){var d=u.getOriginalParent();if(!d){c.push(u);return}for(var p=[];!p.length&&d;){var g=d.getLeafColumns();g.forEach(function(x){var E=c.indexOf(x)>=0,z=p.indexOf(x)<0;E&&z&&p.push(x)}),d=d.getOriginalParent()}if(!p.length){c.push(u);return}var v=p.map(function(x){return c.indexOf(x)}),y=Math.max.apply(Math,_r([],Cr(v),!1));Hd(c,u,y+1)}),this.gridColumns=c}}},n.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},n.prototype.refreshQuickFilterColumns=function(){var e,t=(e=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)!==null&&e!==void 0?e:[];this.groupAutoColumns&&(t=t.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.get("includeHiddenColumnsInQuickFilter")?t:t.filter(function(i){return i.isVisible()||i.isRowGroupActive()})},n.prototype.placeLockedColumns=function(e){var t=[],i=[],r=[];return e.forEach(function(s){var a=s.getColDef().lockPosition;a==="right"?r.push(s):a==="left"||a===!0?t.push(s):i.push(s)}),_r(_r(_r([],Cr(t),!1),Cr(i),!1),Cr(r),!1)},n.prototype.addAutoGroupToGridColumns=function(){if(tt(this.groupAutoColumns)){this.destroyOldColumns(this.groupAutoColsBalancedTree),this.groupAutoColsBalancedTree=null;return}this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},n.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.ariaOrderColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},n.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:T.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)},n.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinColumnsAriaOrder(),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter(function(t){return t.isAutoHeight()})},n.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},n.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},n.prototype.joinColumnsAriaOrder=function(){var e,t,i=this.getAllGridColumns(),r=[],s=[],a=[];try{for(var l=FC(i),c=l.next();!c.done;c=l.next()){var u=c.value,d=u.getPinned();d?d===!0||d==="left"?r.push(u):a.push(u):s.push(u)}}catch(p){e={error:p}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}this.ariaOrderColumns=r.concat(s).concat(a)},n.prototype.joinDisplayedColumns=function(){this.gridOptionsService.get("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},n.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},n.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var i=this.getPrimaryAndSecondaryAndAutoColumns().slice(0),r=this.gridOptionsService.get("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(s){if(r){var a=t.getWidthOfColsInList(s);s.forEach(function(c){a-=c.getActualWidth(),c.setLeft(a,e)})}else{var l=0;s.forEach(function(c){c.setLeft(l,e),l+=c.getActualWidth()})}MD(i,s)}),i.forEach(function(s){s.setLeft(null,e)})}},n.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(t){if(t instanceof qn){var i=t;i.checkLeft()}})})},n.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(i){i instanceof Jt&&t.push(i)})},n.prototype.isColumnVirtualisationSuppressed=function(){return this.suppressColumnVirtualisation||this.viewportRight===0},n.prototype.extractViewportColumns=function(){this.isColumnVirtualisationSuppressed()?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},n.prototype.getVirtualHeaderGroupRow=function(e,t){var i;switch(e){case"left":i=this.viewportRowLeft[t];break;case"right":i=this.viewportRowRight[t];break;default:i=this.viewportRowCenter[t];break}return tt(i)&&(i=[]),i},n.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach(function(i){return e[i.getId()]=!0});var t=function(i,r,s){for(var a=!1,l=0;l<i.length;l++){var c=i[l],u=!1;if(c instanceof Jt)u=e[c.getId()]===!0;else{var d=c,p=d.getDisplayedChildren();p&&(u=t(p,r,s+1))}u&&(a=!0,r[s]||(r[s]=[]),r[s].push(c))}return a};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},n.prototype.extractViewport=function(){var e=function(r){return"".concat(r.getId(),"-").concat(r.getPinned()||"normal")};this.extractViewportColumns();var t=this.viewportColumns.map(e).join("#"),i=this.viewportColumnsHash!==t;return i&&(this.viewportColumnsHash=t,this.calculateHeaderRows()),i},n.prototype.refreshFlexedColumns=function(e){var t;e===void 0&&(e={});var i=e.source?e.source:"flex";if(e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var r=-1;if(e.resizingCols){for(var s=new Set(e.resizingCols),a=this.displayedColumnsCenter,l=a.length-1;l>=0;l--)if(s.has(a[l])){r=l;break}}for(var c=0,u=[],d=0,p=0,l=0;l<this.displayedColumnsCenter.length;l++){var g=this.displayedColumnsCenter[l].getFlex()&&l>r;g?(u.push(this.displayedColumnsCenter[l]),p+=this.displayedColumnsCenter[l].getFlex(),d+=(t=this.displayedColumnsCenter[l].getMinWidth())!==null&&t!==void 0?t:0):c+=this.displayedColumnsCenter[l].getActualWidth()}if(!u.length)return[];var v=[];c+d>this.flexViewportWidth&&(u.forEach(function(he){var be;return he.setActualWidth((be=he.getMinWidth())!==null&&be!==void 0?be:0,i)}),v=u,u=[]);var y=[],x;e:for(;;){x=this.flexViewportWidth-c;for(var E=x/p,l=0;l<u.length;l++){var z=u[l],M=E*z.getFlex(),G=0,U=z.getMinWidth(),se=z.getMaxWidth();if(ne(U)&&M<U?G=U:ne(se)&&M>se&&(G=se),G){z.setActualWidth(G,i),n0(u,z),p-=z.getFlex(),v.push(z),c+=z.getActualWidth();continue e}y[l]=Math.round(M)}break}var ve=x;return u.forEach(function(he,be){he.setActualWidth(Math.min(y[be],ve),i),v.push(he),ve-=y[be]}),e.skipSetLeft||this.setLeftValues(i),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(v,!0,i,u),u},n.prototype.sizeColumnsToFit=function(e,t,i,r){var s=this,a,l,c,u,d;if(t===void 0&&(t="sizeColumnsToFit"),this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return s.sizeColumnsToFit(e,t,i,r)});return}var p={};r&&((a=r?.columnLimits)===null||a===void 0||a.forEach(function(Lt){var ai=Lt.key,ki=vq(Lt,["key"]);p[typeof ai=="string"?ai:ai.getColId()]=ki}));var g=this.getAllDisplayedColumns(),v=e===this.getWidthOfColsInList(g);if(!(e<=0||!g.length||v)){var y=[],x=[];g.forEach(function(Lt){Lt.getColDef().suppressSizeToFit===!0?x.push(Lt):y.push(Lt)});var E=y.slice(0),z=!1,M=function(Lt){ir(y,Lt),x.push(Lt)};for(y.forEach(function(Lt){var ai,ki;Lt.resetActualWidth(t);var Rr=p?.[Lt.getId()],hl=(ai=Rr?.minWidth)!==null&&ai!==void 0?ai:r?.defaultMinWidth,qc=(ki=Rr?.maxWidth)!==null&&ki!==void 0?ki:r?.defaultMaxWidth,tp=Lt.getActualWidth();typeof hl=="number"&&tp<hl?Lt.setActualWidth(hl,t,!0):typeof qc=="number"&&tp>qc&&Lt.setActualWidth(qc,t,!0)});!z;){z=!0;var G=e-this.getWidthOfColsInList(x);if(G<=0)y.forEach(function(Lt){var ai,ki,Rr=(ki=(ai=p?.[Lt.getId()])===null||ai===void 0?void 0:ai.minWidth)!==null&&ki!==void 0?ki:r?.defaultMinWidth;if(typeof Rr=="number"){Lt.setActualWidth(Rr,t,!0);return}Lt.setMinimum(t)});else for(var U=G/this.getWidthOfColsInList(y),se=G,ve=y.length-1;ve>=0;ve--){var he=y[ve],be=p?.[he.getId()],Ee=(l=be?.minWidth)!==null&&l!==void 0?l:r?.defaultMinWidth,Te=(c=be?.maxWidth)!==null&&c!==void 0?c:r?.defaultMaxWidth,rt=(u=he.getMinWidth())!==null&&u!==void 0?u:0,en=(d=he.getMaxWidth())!==null&&d!==void 0?d:Number.MAX_VALUE,dn=typeof Ee=="number"&&Ee>rt?Ee:he.getMinWidth(),Yt=typeof Te=="number"&&Te<en?Te:he.getMaxWidth(),ni=Math.round(he.getActualWidth()*U);ne(dn)&&ni<dn?(ni=dn,M(he),z=!1):ne(Yt)&&ni>Yt?(ni=Yt,M(he),z=!1):ve===0&&(ni=se),he.setActualWidth(ni,t,!0),se-=ni}}E.forEach(function(Lt){Lt.fireColumnWidthChangedEvent(t)}),this.setLeftValues(t),this.updateBodyWidths(),!i&&this.dispatchColumnResizedEvent(E,!0,t)}},n.prototype.buildDisplayedTrees=function(e){var t=[],i=[],r=[];e.forEach(function(a){switch(a.getPinned()){case"left":t.push(a);break;case"right":i.push(a);break;default:r.push(a);break}});var s=new GD;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,s,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(i,s,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(r,s,null,this.displayedTreeCentre),this.updateDisplayedMap()},n.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(i){e.displayedColumnsAndGroupsMap[i.getUniqueId()]=i};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},n.prototype.isDisplayed=function(e){var t=this.displayedColumnsAndGroupsMap[e.getUniqueId()];return t===e},n.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(t){t instanceof qn&&t.calculateDisplayedColumns()})},n.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},n.prototype.createGroupAutoColumnsIfNeeded=function(){var e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var t=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),i=this.pivotMode?this.gridOptionsService.get("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn(),r=this.rowGroupColumns.length>0||this.gridOptionsService.get("treeData"),s=r&&!i&&!t;if(s){var a=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns),l=!this.autoColsEqual(a,this.groupAutoColumns);if(l||e)return this.groupAutoColumns=a,!0}else this.groupAutoColumns=null;return!1},n.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get("groupDisplayType"),t=e==="custom";if(t)return!0;var i=this.gridOptionsService.get("treeDataDisplayType");return i==="custom"},n.prototype.autoColsEqual=function(e,t){return bs(e,t,function(i,r){return i.getColId()===r.getColId()})},n.prototype.getWidthOfColsInList=function(e){return e.reduce(function(t,i){return t+i.getActualWidth()},0)},n.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.get("enableRtl"),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var i=0;i<t.length;i++){var r=this[t[i]]();if(r.length)return e?Nt(r):r[0]}return null},n.prototype.setColumnHeaderHeight=function(e,t){var i=e.setAutoHeaderHeight(t);if(i){var r={type:T.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(r)}},n.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},n.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),t=this.getAllDisplayedColumns().filter(function(i){return i.isAutoHeaderHeight()}).map(function(i){return i.getAutoHeaderHeight()||0});return Math.max.apply(Math,_r([e],Cr(t),!1))},n.prototype.getHeaderHeight=function(){var e;return(e=this.gridOptionsService.get("headerHeight"))!==null&&e!==void 0?e:this.environment.getFromTheme(25,"headerHeight")},n.prototype.getFloatingFiltersHeight=function(){var e;return(e=this.gridOptionsService.get("floatingFiltersHeight"))!==null&&e!==void 0?e:this.getHeaderHeight()},n.prototype.getGroupHeaderHeight=function(){var e;return(e=this.gridOptionsService.get("groupHeaderHeight"))!==null&&e!==void 0?e:this.getHeaderHeight()},n.prototype.getPivotHeaderHeight=function(){var e;return(e=this.gridOptionsService.get("pivotHeaderHeight"))!==null&&e!==void 0?e:this.getHeaderHeight()},n.prototype.getPivotGroupHeaderHeight=function(){var e;return(e=this.gridOptionsService.get("pivotGroupHeaderHeight"))!==null&&e!==void 0?e:this.getGroupHeaderHeight()},n.prototype.queueResizeOperations=function(){this.shouldQueueResizeOperations=!0},n.prototype.processResizeOperations=function(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach(function(e){return e()}),this.resizeOperationQueue=[]},n.prototype.resetColumnDefIntoColumn=function(e,t){var i=e.getUserProvidedColDef();if(!i)return!1;var r=this.columnFactory.addColumnDefaultAndTypes(i,e.getColId());return e.setColDef(r,i,t),!0},n.prototype.isColumnGroupingLocked=function(e){var t=this.gridOptionsService.get("groupLockGroupColumns");if(!e.isRowGroupActive()||t===0)return!1;if(t===-1)return!0;var i=this.rowGroupColumns.findIndex(function(r){return r.getColId()===e.getColId()});return t>i},n.prototype.generateColumnStateForRowGroupAndPivotIndexes=function(e,t){var i=this,r={},s=function(a,l,c,u,d,p){if(!l.length||!i.primaryColumns)return[];for(var g=Object.keys(a),v=new Set(g),y=new Set(g),x=new Set(l.map(function(Ee){var Te=Ee.getColId();return y.delete(Te),Te}).concat(g)),E=[],z={},M=0,G=0;G<i.primaryColumns.length;G++){var U=i.primaryColumns[G].getColId();x.has(U)&&(E.push(U),z[U]=M++)}var se=1e3,ve=!1,he=0,be=function(Ee){for(var Te=z[Ee],rt=he;rt<Te;rt++){var en=E[rt];y.has(en)&&(a[en][d]=se++,y.delete(en))}he=Te};l.forEach(function(Ee){var Te=Ee.getColId();if(v.has(Te))be(Te),a[Te][d]=se++;else{var rt=Ee.getColDef(),en=rt[d]===null||rt[d]===void 0&&rt[p]==null;if(en){if(!ve){var dn=rt[c]||rt[c]===void 0&&rt[u];dn?be(Te):(y.forEach(function(Yt){a[Yt][d]=se+z[Yt]}),se+=E.length,ve=!0)}r[Te]||(r[Te]={colId:Te}),r[Te][d]=se++}}})};return s(e,this.rowGroupColumns,"rowGroup","initialRowGroup","rowGroupIndex","initialRowGroupIndex"),s(t,this.pivotColumns,"pivot","initialPivot","pivotIndex","initialPivotIndex"),Object.values(r)},n.prototype.onColumnsReady=function(){var e=this,t=this.gridOptionsService.get("autoSizeStrategy");if(t){var i=t.type;setTimeout(function(){if(i==="fitGridWidth"){var r=t.columnLimits,s=t.defaultMinWidth,a=t.defaultMaxWidth,l=r?.map(function(c){var u=c.colId,d=c.minWidth,p=c.maxWidth;return{key:u,minWidth:d,maxWidth:p}});e.ctrlsService.getGridBodyCtrl().sizeColumnsToFit({defaultMinWidth:s,defaultMaxWidth:a,columnLimits:l})}else i==="fitProvidedWidth"&&e.sizeColumnsToFit(t.width,"sizeColumnsToFit")})}},n.prototype.onFirstDataRendered=function(){var e=this,t=this.gridOptionsService.get("autoSizeStrategy");if(t?.type==="fitCellContents"){var i=t.colIds,r=t.skipHeader;setTimeout(function(){i?e.autoSizeColumns({columns:i,skipHeader:r,source:"autosizeColumns"}):e.autoSizeAllColumns("autosizeColumns",r)})}},hi([b("expressionService")],n.prototype,"expressionService",void 0),hi([b("columnFactory")],n.prototype,"columnFactory",void 0),hi([b("displayedGroupCreator")],n.prototype,"displayedGroupCreator",void 0),hi([b("ctrlsService")],n.prototype,"ctrlsService",void 0),hi([b("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),hi([b("columnUtils")],n.prototype,"columnUtils",void 0),hi([b("columnAnimationService")],n.prototype,"columnAnimationService",void 0),hi([b("autoGroupColService")],n.prototype,"autoGroupColService",void 0),hi([Mt("aggFuncService")],n.prototype,"aggFuncService",void 0),hi([Mt("valueCache")],n.prototype,"valueCache",void 0),hi([Mt("animationFrameService")],n.prototype,"animationFrameService",void 0),hi([b("sortController")],n.prototype,"sortController",void 0),hi([b("columnDefFactory")],n.prototype,"columnDefFactory",void 0),hi([pe],n.prototype,"init",null),hi([Li],n.prototype,"destroyColumns",null),hi([mq(0,Ur("loggerFactory"))],n.prototype,"setBeans",null),n=hi([Oe("columnModel")],n),n}(re);function Nc(o){return o==="gridOptionsUpdated"?"gridOptionsChanged":o}var Cq=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),_q=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Sq=function(o){Cq(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.calculateColMinWidth=function(e){return e.minWidth!=null?e.minWidth:this.environment.getMinColWidth()},n.prototype.calculateColMaxWidth=function(e){return e.maxWidth!=null?e.maxWidth:Number.MAX_SAFE_INTEGER},n.prototype.calculateColInitialWidth=function(e){var t=this.calculateColMinWidth(e),i=this.calculateColMaxWidth(e),r,s=pa(e.width),a=pa(e.initialWidth);return s!=null?r=s:a!=null?r=a:r=200,Math.max(Math.min(r,i),t)},n.prototype.getOriginalPathForColumn=function(e,t){var i=[],r=!1,s=function(a,l){for(var c=0;c<a.length;c++){if(r)return;var u=a[c];if(u instanceof Nn){var d=u;s(d.getChildren(),l+1),i[l]=u}else u===e&&(r=!0)}};return s(t,0),r?i:null},n.prototype.depthFirstOriginalTreeSearch=function(e,t,i){var r=this;t&&t.forEach(function(s){s instanceof Nn&&r.depthFirstOriginalTreeSearch(s,s.getChildren(),i),i(s,e)})},n.prototype.depthFirstAllColumnTreeSearch=function(e,t){var i=this;e&&e.forEach(function(r){r instanceof qn&&i.depthFirstAllColumnTreeSearch(r.getChildren(),t),t(r)})},n.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var i=this;e&&e.forEach(function(r){r instanceof qn&&i.depthFirstDisplayedColumnTreeSearch(r.getDisplayedChildren(),t),t(r)})},n=_q([Oe("columnUtils")],n),n}(re),wq=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),bq=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Tq=function(o){wq(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.createDisplayedGroups=function(e,t,i,r){for(var s=this,a=this.mapOldGroupsById(r),l=[],c=e,u=function(){var d=c;c=[];for(var p=0,g=function(U){var se=p;p=U;var ve=d[se],he=ve instanceof qn?ve.getProvidedColumnGroup():ve,be=he.getOriginalParent();if(be==null){for(var Ee=se;Ee<U;Ee++)l.push(d[Ee]);return}for(var Te=s.createColumnGroup(be,t,a,i),Ee=se;Ee<U;Ee++)Te.addChild(d[Ee]);c.push(Te)},v=1;v<d.length;v++){var y=d[v],x=y instanceof qn?y.getProvidedColumnGroup():y,E=x.getOriginalParent(),z=d[p],M=z instanceof qn?z.getProvidedColumnGroup():z,G=M.getOriginalParent();E!==G&&g(v)}p<d.length&&g(d.length)};c.length;)u();return this.setupParentsIntoColumns(l,null),l},n.prototype.createColumnGroup=function(e,t,i,r){var s=e.getGroupId(),a=t.getInstanceIdForKey(s),l=qn.createUniqueId(s,a),c=i[l];return c&&c.getProvidedColumnGroup()!==e&&(c=null),ne(c)?c.reset():(c=new qn(e,s,a,r),this.context.createBean(c)),c},n.prototype.mapOldGroupsById=function(e){var t={},i=function(r){r.forEach(function(s){if(s instanceof qn){var a=s;t[s.getUniqueId()]=a,i(a.getChildren())}})};return e&&i(e),t},n.prototype.setupParentsIntoColumns=function(e,t){var i=this;e.forEach(function(r){if(r.setParent(t),r instanceof qn){var s=r;i.setupParentsIntoColumns(s.getChildren(),s)}})},n=bq([Oe("displayedGroupCreator")],n),n}(re),Zs=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},Js=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Eq={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,excludeHiddenColumnsFromQuickFilter:!0,advancedFilterModel:!0,customChartThemes:!0,chartThemeOverrides:!0,enableChartToolPanelsButton:!0,suppressChartToolPanelsButton:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressParentsInRowNodes:!0,suppressTouch:!0,suppressAsyncEvents:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,suppressAggFuncInHeader:!0,suppressAggAtRootLevel:!0,removePivotHeaderRowWhenSingleValueColumn:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,suppressGroupMaintainValueType:!0,groupLockGroupColumns:!0,rowGroupPanelSuppressSort:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,suppressServerSideInfiniteScroll:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,functionsPassive:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0},qo=function(){function o(){}return o.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu"],o.OBJECT_PROPERTIES=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterModel","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy"],o.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"],o.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","cellFlashDuration","cellFadeDuration","tabIndex"],o.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","excludeHiddenColumnsFromQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterMovesDown","enterMovesDownAfterEdit","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilterAllLevels","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","suppressGroupMaintainValueType","reactiveCustomComponents"],o.FUNCTIONAL_PROPERTIES=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher"],o.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","groupIncludeFooter","loadingCellRendererSelector","getRowId","groupAggFiltering"],o.FUNCTION_PROPERTIES=Js(Js([],Zs(o.FUNCTIONAL_PROPERTIES),!1),Zs(o.CALLBACK_PROPERTIES),!1),o.ALL_PROPERTIES=Js(Js(Js(Js(Js(Js([],Zs(o.ARRAY_PROPERTIES),!1),Zs(o.OBJECT_PROPERTIES),!1),Zs(o.STRING_PROPERTIES),!1),Zs(o.NUMBER_PROPERTIES),!1),Zs(o.FUNCTION_PROPERTIES),!1),Zs(o.BOOLEAN_PROPERTIES),!1),o}(),L_=function(){return L_=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},L_.apply(this,arguments)},gO=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},mO=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Yd=function(){function o(){}o.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)},o.getGridOptionKeys=function(){return this.ALL_PROPERTIES_AND_CALLBACKS},o.combineAttributesAndGridOptions=function(e,t){typeof e!="object"&&(e={});var i=L_({},e),r=o.getGridOptionKeys();return r.forEach(function(s){var a=t[s];typeof a<"u"&&a!==o.VUE_OMITTED_PROPERTY&&(i[s]=a)}),i},o.processOnChange=function(e,t){if(e){var i={},r=!1;if(Object.keys(e).filter(function(a){return o.ALL_PROPERTIES_AND_CALLBACKS_SET.has(a)}).forEach(function(a){i[a]=e[a],r=!0}),!!r){t.__internalUpdateGridOptions(i);var s={type:T.EVENT_COMPONENT_STATE_CHANGED};Ei(i,function(a,l){s[a]=l}),t.dispatchEvent(s)}}};var n;return n=o,o.EVENTS=tl(T),o.VUE_OMITTED_PROPERTY="AG-VUE-OMITTED-PROPERTY",o.EXCLUDED_INTERNAL_EVENTS=[T.EVENT_SCROLLBAR_WIDTH_CHANGED,T.EVENT_CHECKBOX_CHANGED,T.EVENT_HEIGHT_SCALE_CHANGED,T.EVENT_BODY_HEIGHT_CHANGED,T.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,T.EVENT_SCROLL_VISIBILITY_CHANGED,T.EVENT_COLUMN_HOVER_CHANGED,T.EVENT_FLASH_CELLS,T.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,T.EVENT_DISPLAYED_ROWS_CHANGED,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,T.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,T.EVENT_POPUP_TO_FRONT,T.EVENT_STORE_UPDATED,T.EVENT_COLUMN_PANEL_ITEM_DRAG_START,T.EVENT_COLUMN_PANEL_ITEM_DRAG_END,T.EVENT_FILL_START,T.EVENT_FILL_END,T.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,T.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,T.EVENT_FULL_WIDTH_ROW_FOCUSED,T.EVENT_HEADER_HEIGHT_CHANGED,T.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,T.EVENT_CELL_FOCUS_CLEARED,T.EVENT_GRID_STYLES_CHANGED,T.EVENT_FILTER_DESTROYED,T.EVENT_ROW_DATA_UPDATE_STARTED,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,T.EVENT_DATA_TYPES_INFERRED,T.EVENT_FIELD_VALUE_CHANGED,T.EVENT_FIELD_PICKER_VALUE_SELECTED,T.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,T.EVENT_SUPPRESS_MENU_HIDE_CHANGED,T.EVENT_SUPPRESS_FIELD_DOT_NOTATION,T.EVENT_ROW_COUNT_READY,T.EVENT_SIDE_BAR_UPDATED],o.PUBLIC_EVENTS=o.EVENTS.filter(function(e){return!Co(o.EXCLUDED_INTERNAL_EVENTS,e)}),o.EVENT_CALLBACKS=o.EVENTS.map(function(e){return o.getCallbackForEvent(e)}),o.STRING_PROPERTIES=qo.STRING_PROPERTIES,o.OBJECT_PROPERTIES=qo.OBJECT_PROPERTIES,o.ARRAY_PROPERTIES=qo.ARRAY_PROPERTIES,o.NUMBER_PROPERTIES=qo.NUMBER_PROPERTIES,o.BOOLEAN_PROPERTIES=qo.BOOLEAN_PROPERTIES,o.FUNCTION_PROPERTIES=qo.FUNCTION_PROPERTIES,o.ALL_PROPERTIES=qo.ALL_PROPERTIES,o.ALL_PROPERTIES_AND_CALLBACKS=mO(mO([],gO(n.ALL_PROPERTIES),!1),gO(n.EVENT_CALLBACKS),!1),o.ALL_PROPERTIES_AND_CALLBACKS_SET=new Set(o.ALL_PROPERTIES_AND_CALLBACKS),o}(),xq=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),zq=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Oq=function(o){xq(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.componentsMappedByName={},e}return n.prototype.setupComponents=function(e){var t=this;e&&e.forEach(function(i){return t.addComponent(i)})},n.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=t.toUpperCase();this.componentsMappedByName[i]=e.componentClass},n.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},n=zq([Oe("agStackComponentsRegistry")],n),n}(re);function Qr(o,n,e){e==null||typeof e=="string"&&e==""?r0(o,n):Xr(o,n,e)}function Xr(o,n,e){o.setAttribute($D(n),e.toString())}function r0(o,n){o.removeAttribute($D(n))}function $D(o){return"aria-".concat(o)}function Qn(o,n){n?o.setAttribute("role",n):o.removeAttribute("role")}function jD(o){var n;return o==="asc"?n="ascending":o==="desc"?n="descending":o==="mixed"?n="other":n="none",n}function Dq(o){return parseInt(o.getAttribute("aria-level"),10)}function WD(o){return parseInt(o.getAttribute("aria-posinset"),10)}function UD(o){return o.getAttribute("aria-label")}function ma(o,n){Qr(o,"label",n)}function lg(o,n){Qr(o,"labelledby",n)}function Rq(o,n){Qr(o,"describedby",n)}function o0(o,n){Qr(o,"live",n)}function KD(o,n){Qr(o,"atomic",n)}function qD(o,n){Qr(o,"relevant",n)}function YD(o,n){Qr(o,"level",n)}function s0(o,n){Qr(o,"disabled",n)}function xg(o,n){Qr(o,"hidden",n)}function a0(o,n){Qr(o,"activedescendant",n)}function Ts(o,n){Xr(o,"expanded",n)}function QD(o){r0(o,"expanded")}function l0(o,n){Xr(o,"setsize",n)}function c0(o,n){Xr(o,"posinset",n)}function XD(o,n){Xr(o,"multiselectable",n)}function ZD(o,n){Xr(o,"rowcount",n)}function u0(o,n){Xr(o,"rowindex",n)}function JD(o,n){Xr(o,"colcount",n)}function d0(o,n){Xr(o,"colindex",n)}function eR(o,n){Xr(o,"colspan",n)}function tR(o,n){Xr(o,"sort",n)}function nR(o){r0(o,"sort")}function $c(o,n){Qr(o,"selected",n)}function Iq(o,n){Xr(o,"checked",n===void 0?"mixed":n)}function p0(o,n){Qr(o,"controls",n.id),lg(n,o.id)}function h0(o,n){return n===void 0?o("ariaIndeterminate","indeterminate"):n===!0?o("ariaChecked","checked"):o("ariaUnchecked","unchecked")}var Pq=Object.freeze({__proto__:null,setAriaRole:Qn,getAriaSortState:jD,getAriaLevel:Dq,getAriaPosInSet:WD,getAriaLabel:UD,setAriaLabel:ma,setAriaLabelledBy:lg,setAriaDescribedBy:Rq,setAriaLive:o0,setAriaAtomic:KD,setAriaRelevant:qD,setAriaLevel:YD,setAriaDisabled:s0,setAriaHidden:xg,setAriaActiveDescendant:a0,setAriaExpanded:Ts,removeAriaExpanded:QD,setAriaSetSize:l0,setAriaPosInSet:c0,setAriaMultiSelectable:XD,setAriaRowCount:ZD,setAriaRowIndex:u0,setAriaColCount:JD,setAriaColIndex:d0,setAriaColSpan:eR,setAriaSort:tR,removeAriaSort:nR,setAriaSelected:$c,setAriaChecked:Iq,setAriaControls:p0,getAriaCheckboxStateName:h0}),AC,Of,NC,LC,kC,VC,k_,V_;function Zo(){return AC===void 0&&(AC=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),AC}function f0(){if(Of===void 0)if(Zo()){var o=navigator.userAgent.match(/version\/(\d+)/i);o&&(Of=o[1]!=null?parseFloat(o[1]):0)}else Of=0;return Of}function zg(){if(NC===void 0){var o=window;NC=!!o.chrome&&(!!o.chrome.webstore||!!o.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return NC}function g0(){return LC===void 0&&(LC=/(firefox)/i.test(navigator.userAgent)),LC}function m0(){return kC===void 0&&(kC=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),kC}function Es(){return VC===void 0&&(VC=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),VC}function v0(){return!Zo()||f0()>=15}function cg(o){if(!o)return null;var n=o.tabIndex,e=o.getAttribute("tabIndex");return n===-1&&(e===null||e===""&&!g0())?null:n.toString()}function iR(){if(!document.body)return-1;var o=1e6,n=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,e=document.createElement("div");for(document.body.appendChild(e);;){var t=o*2;if(e.style.height=t+"px",t>n||e.clientHeight!==t)break;o=t}return document.body.removeChild(e),o}function rR(){var o,n,e;return(n=(o=document.body)===null||o===void 0?void 0:o.clientWidth)!==null&&n!==void 0?n:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientWidth)||-1}function oR(){var o,n,e;return(n=(o=document.body)===null||o===void 0?void 0:o.clientHeight)!==null&&n!==void 0?n:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientHeight)||-1}function sR(){return V_==null&&aR(),V_}function aR(){var o=document.body,n=document.createElement("div");n.style.width=n.style.height="100px",n.style.opacity="0",n.style.overflow="scroll",n.style.msOverflowStyle="scrollbar",n.style.position="absolute",o.appendChild(n);var e=n.offsetWidth-n.clientWidth;e===0&&n.clientWidth===0&&(e=null),n.parentNode&&n.parentNode.removeChild(n),e!=null&&(V_=e,k_=e===0)}function y0(){return k_==null&&aR(),k_}var Mq=Object.freeze({__proto__:null,isBrowserSafari:Zo,getSafariVersion:f0,isBrowserChrome:zg,isBrowserFirefox:g0,isMacOsUserAgent:m0,isIOSUserAgent:Es,browserSupportsPreventScroll:v0,getTabIndex:cg,getMaxDivHeight:iR,getBodyWidth:rR,getBodyHeight:oR,getScrollbarWidth:sR,isInvisibleScrollbar:y0});function Gc(o,n){return o.toString().padStart(n,"0")}function lR(o,n){for(var e=[],t=o;t<=n;t++)e.push(t);return e}function Fq(o){return typeof o=="string"&&(o=parseInt(o,10)),typeof o=="number"?Math.floor(o):null}function Aq(o,n){for(var e="",t=0;t<n;t++)e+=String.fromCharCode(o&255),o>>>=8;return e}function Nq(o,n,e){return typeof o!="number"?"":C0(Math.round(o*100)/100,n,e)}function C0(o,n,e){return typeof o!="number"?"":o.toString().replace(".",e).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1".concat(n))}function Lq(o){return o==null?null:o.reduce(function(n,e){return n+e},0)}var kq=Object.freeze({__proto__:null,padStartWidthZeros:Gc,createArrayOfNumbers:lR,cleanNumber:Fq,decToHex:Aq,formatNumberTwoDecimalPlacesAndCommas:Nq,formatNumberCommas:C0,sum:Lq}),GC=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r};function qr(o,n,e){if(n===void 0&&(n=!0),e===void 0&&(e="-"),!o)return null;var t=[o.getFullYear(),o.getMonth()+1,o.getDate()].map(function(i){return Gc(i,2)}).join(e);return n&&(t+=" "+[o.getHours(),o.getMinutes(),o.getSeconds()].map(function(i){return Gc(i,2)}).join(":")),t}var HC=function(o){if(o>3&&o<21)return"th";var n=o%10;switch(n){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Hc(o,n){n===void 0&&(n="YYYY-MM-DD");var e=Gc(o.getFullYear(),4),t=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r={YYYY:function(){return e.slice(e.length-4,e.length)},YY:function(){return e.slice(e.length-2,e.length)},Y:function(){return"".concat(o.getFullYear())},MMMM:function(){return t[o.getMonth()]},MMM:function(){return t[o.getMonth()].slice(0,3)},MM:function(){return Gc(o.getMonth()+1,2)},Mo:function(){return"".concat(o.getMonth()+1).concat(HC(o.getMonth()+1))},M:function(){return"".concat(o.getMonth()+1)},Do:function(){return"".concat(o.getDate()).concat(HC(o.getDate()))},DD:function(){return Gc(o.getDate(),2)},D:function(){return"".concat(o.getDate())},dddd:function(){return i[o.getDay()]},ddd:function(){return i[o.getDay()].slice(0,3)},dd:function(){return i[o.getDay()].slice(0,2)},do:function(){return"".concat(o.getDay()).concat(HC(o.getDay()))},d:function(){return"".concat(o.getDay())}},s=new RegExp(Object.keys(r).join("|"),"g");return n.replace(s,function(a){return a in r?r[a]():a})}function rr(o){if(!o)return null;var n=GC(o.split(" "),2),e=n[0],t=n[1];if(!e)return null;var i=e.split("-").map(function(v){return parseInt(v,10)});if(i.filter(function(v){return!isNaN(v)}).length!==3)return null;var r=GC(i,3),s=r[0],a=r[1],l=r[2],c=new Date(s,a-1,l);if(c.getFullYear()!==s||c.getMonth()!==a-1||c.getDate()!==l)return null;if(!t||t==="00:00:00")return c;var u=GC(t.split(":").map(function(v){return parseInt(v,10)}),3),d=u[0],p=u[1],g=u[2];return d>=0&&d<24&&c.setHours(d),p>=0&&p<60&&c.setMinutes(p),g>=0&&g<60&&c.setSeconds(g),c}var Vq=Object.freeze({__proto__:null,serialiseDate:qr,dateToFormattedString:Hc,parseDateTimeFromString:rr}),Gq=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Hq=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},Df;function G_(o,n,e){for(var t=o.parentElement,i=t&&t.firstChild;i;)n&&i.classList.toggle(n,i===o),e&&i.classList.toggle(e,i!==o),i=i.nextSibling}var cR="[tabindex], input, select, button, textarea, [href]",_0="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function S0(o){var n=Element.prototype.matches||Element.prototype.msMatchesSelector,e="input, select, button, textarea",t=n.call(o,e),i=n.call(o,_0),r=Dr(o),s=t&&!i&&r;return s}function It(o,n,e){e===void 0&&(e={});var t=e.skipAriaHidden;o.classList.toggle("ag-hidden",!n),t||xg(o,!n)}function uR(o,n,e){e===void 0&&(e={});var t=e.skipAriaHidden;o.classList.toggle("ag-invisible",!n),t||xg(o,!n)}function jc(o,n){var e="disabled",t=n?function(i){return i.setAttribute(e,"")}:function(i){return i.removeAttribute(e)};t(o),O0(o.querySelectorAll("input"),function(i){return t(i)})}function il(o,n,e){for(var t=0;o;){if(o.classList.contains(n))return!0;if(o=o.parentElement,typeof e=="number"){if(++t>e)break}else if(o===e)break}return!1}function va(o){var n=window.getComputedStyle(o),e=n.height,t=n.width,i=n.borderTopWidth,r=n.borderRightWidth,s=n.borderBottomWidth,a=n.borderLeftWidth,l=n.paddingTop,c=n.paddingRight,u=n.paddingBottom,d=n.paddingLeft,p=n.marginTop,g=n.marginRight,v=n.marginBottom,y=n.marginLeft,x=n.boxSizing;return{height:parseFloat(e||"0"),width:parseFloat(t||"0"),borderTopWidth:parseFloat(i||"0"),borderRightWidth:parseFloat(r||"0"),borderBottomWidth:parseFloat(s||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(l||"0"),paddingRight:parseFloat(c||"0"),paddingBottom:parseFloat(u||"0"),paddingLeft:parseFloat(d||"0"),marginTop:parseFloat(p||"0"),marginRight:parseFloat(g||"0"),marginBottom:parseFloat(v||"0"),marginLeft:parseFloat(y||"0"),boxSizing:x}}function Qd(o){var n=va(o);return n.boxSizing==="border-box"?n.height-n.paddingTop-n.paddingBottom:n.height}function cl(o){var n=va(o);return n.boxSizing==="border-box"?n.width-n.paddingLeft-n.paddingRight:n.width}function w0(o){var n=va(o),e=n.marginBottom+n.marginTop;return Math.ceil(o.offsetHeight+e)}function Bd(o){var n=va(o),e=n.marginLeft+n.marginRight;return Math.ceil(o.offsetWidth+e)}function b0(o){var n=o.getBoundingClientRect(),e=va(o),t=e.borderTopWidth,i=e.borderLeftWidth,r=e.borderRightWidth,s=e.borderBottomWidth;return{top:n.top+(t||0),left:n.left+(i||0),right:n.right+(r||0),bottom:n.bottom+(s||0)}}function $d(){if(typeof Df=="boolean")return Df;var o=document.createElement("div");return o.style.direction="rtl",o.style.width="1px",o.style.height="1px",o.style.position="fixed",o.style.top="0px",o.style.overflow="hidden",o.dir="rtl",o.innerHTML=`<div style="width: 2px">
  21. <span style="display: inline-block; width: 1px"></span>
  22. <span style="display: inline-block; width: 1px"></span>
  23. </div>`,document.body.appendChild(o),o.scrollLeft=1,Df=Math.floor(o.scrollLeft)===0,document.body.removeChild(o),Df}function jd(o,n){var e=o.scrollLeft;return n&&(e=Math.abs(e),zg()&&!$d()&&(e=o.scrollWidth-o.clientWidth-e)),e}function Wd(o,n,e){e&&($d()?n*=-1:(Zo()||zg())&&(n=o.scrollWidth-o.clientWidth-n)),o.scrollLeft=n}function ti(o){for(;o&&o.firstChild;)o.removeChild(o.firstChild)}function Yo(o){o&&o.parentNode&&o.parentNode.removeChild(o)}function T0(o){return!!o.offsetParent}function Dr(o){var n=o;if(n.checkVisibility)return n.checkVisibility({checkVisibilityCSS:!0});var e=!T0(o)||window.getComputedStyle(o).visibility!=="visible";return!e}function or(o){var n=document.createElement("div");return n.innerHTML=(o||"").trim(),n.firstChild}function E0(o,n,e){e&&e.nextSibling===n||(e?e.nextSibling?o.insertBefore(n,e.nextSibling):o.appendChild(n):o.firstChild&&o.firstChild!==n&&o.insertAdjacentElement("afterbegin",n))}function x0(o,n){for(var e=0;e<n.length;e++){var t=n[e],i=o.children[e];i!==t&&o.insertBefore(t,i)}}function dR(o,n,e){e?e.insertAdjacentElement("afterend",n):o.firstChild?o.insertAdjacentElement("afterbegin",n):o.appendChild(n)}function z0(o,n){var e,t;if(n)try{for(var i=Gq(Object.entries(n)),r=i.next();!r.done;r=i.next()){var s=Hq(r.value,2),a=s[0],l=s[1];if(!(!a||!a.length||l==null)){var c=BD(a),u=l.toString(),d=u.replace(/\s*!important/g,""),p=d.length!=u.length?"important":void 0;o.style.setProperty(c,d,p)}}}catch(g){e={error:g}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}function pR(o){return o.clientWidth<o.scrollWidth}function hR(o){return o.clientHeight<o.scrollHeight}function Ud(o,n){n==="flex"?(o.style.removeProperty("width"),o.style.removeProperty("minWidth"),o.style.removeProperty("maxWidth"),o.style.flex="1 1 auto"):Yr(o,n)}function Yr(o,n){n=Og(n),o.style.width=n.toString(),o.style.maxWidth=n.toString(),o.style.minWidth=n.toString()}function Bq(o,n){n==="flex"?(o.style.removeProperty("height"),o.style.removeProperty("minHeight"),o.style.removeProperty("maxHeight"),o.style.flex="1 1 auto"):rl(o,n)}function rl(o,n){n=Og(n),o.style.height=n.toString(),o.style.maxHeight=n.toString(),o.style.minHeight=n.toString()}function Og(o){return typeof o=="number"?"".concat(o,"px"):o}function Xd(o){return o instanceof Node||o instanceof HTMLElement}function fR(o){if(o==null)return[];var n=[];return O0(o,function(e){return n.push(e)}),n}function gR(o,n){if(o)for(var e=0;e<o.length;e++){var t=o[e];n(t.name,t.value)}}function Xo(o,n,e){e==null?o.removeAttribute(n):o.setAttribute(n,e.toString())}function O0(o,n){if(o!=null)for(var e=0;e<o.length;e++)n(o[e])}function D0(o,n){o.then(function(e){var t=e.getGui();t!=null&&(typeof t=="object"?n.appendChild(t):n.innerHTML=t)})}var $q=Object.freeze({__proto__:null,radioCssClass:G_,FOCUSABLE_SELECTOR:cR,FOCUSABLE_EXCLUDE:_0,isFocusableFormField:S0,setDisplayed:It,setVisible:uR,setDisabled:jc,isElementChildOfClass:il,getElementSize:va,getInnerHeight:Qd,getInnerWidth:cl,getAbsoluteHeight:w0,getAbsoluteWidth:Bd,getElementRectWithOffset:b0,isRtlNegativeScroll:$d,getScrollLeft:jd,setScrollLeft:Wd,clearElement:ti,removeFromParent:Yo,isInDOM:T0,isVisible:Dr,loadTemplate:or,ensureDomOrder:E0,setDomChildOrder:x0,insertWithDomOrder:dR,addStylesToElement:z0,isHorizontalScrollShowing:pR,isVerticalScrollShowing:hR,setElementWidth:Ud,setFixedWidth:Yr,setElementHeight:Bq,setFixedHeight:rl,formatSize:Og,isNodeOrElement:Xd,copyNodeList:fR,iterateNamedNodeMap:gR,addOrRemoveAttribute:Xo,nodeListForEach:O0,bindCellRendererToHtmlElement:D0}),jq=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};function mR(o,n,e){var t={},i=o.filter(function(r){return!n.some(function(s){return s===r})});return i.length>0&&i.forEach(function(r){return t[r]=Zd(r,e).values}),t}function Zd(o,n,e,t){var i,r,s=n.map(function(v,y){return{value:v,relevance:Wq(o.toLowerCase(),v.toLocaleLowerCase()),idx:y}});if(s.sort(function(v,y){return y.relevance-v.relevance}),e&&(s=s.filter(function(v){return v.relevance!==0})),s.length>0&&t&&t>0){var a=s[0].relevance,l=a*t;s=s.filter(function(v){return l-v.relevance<0})}var c=[],u=[];try{for(var d=jq(s),p=d.next();!p.done;p=d.next()){var g=p.value;c.push(g.value),u.push(g.idx)}}catch(v){i={error:v}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}return{values:c,indices:u}}function Wq(o,n){for(var e=o.replace(/\s/g,""),t=n.replace(/\s/g,""),i=0,r=-1,s=0;s<e.length;s++){var a=t.indexOf(e[s],r+1);a!==-1&&(r=a,i+=100-r*100/1e4*100)}return i}var Uq=Object.freeze({__proto__:null,fuzzyCheckStrings:mR,fuzzySuggestions:Zd}),vR={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",menuAlt:"menu-alt",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus"};function Wr(o,n,e){var t=Gn(o,n,e);if(t){var i=t.className;if(typeof i=="string"&&i.indexOf("ag-icon")>-1||typeof i=="object"&&i["ag-icon"])return t}var r=document.createElement("span");return r.appendChild(t),r}function Gn(o,n,e,t){var i=null,r=e&&e.getColDef().icons;if(r&&(i=r[o]),n&&!i){var s=n.get("icons");s&&(i=s[o])}if(i){var a=void 0;if(typeof i=="function")a=i();else if(typeof i=="string")a=i;else throw new Error("icon from grid options needs to be a string or a function");if(typeof a=="string")return or(a);if(Xd(a))return a;console.warn("AG Grid: iconRenderer should return back a string or a dom object")}else{var l=document.createElement("span"),c=vR[o];return c||(t?c=o:(console.warn("AG Grid: Did not find icon ".concat(o)),c="")),l.setAttribute("class","ag-icon ag-icon-".concat(c)),l.setAttribute("unselectable","on"),Qn(l,"presentation"),l}}var Kq=Object.freeze({__proto__:null,iconNameClassMap:vR,createIcon:Wr,createIconNoSpan:Gn}),q=function(){function o(){}return o.BACKSPACE="Backspace",o.TAB="Tab",o.ENTER="Enter",o.ESCAPE="Escape",o.SPACE=" ",o.LEFT="ArrowLeft",o.UP="ArrowUp",o.RIGHT="ArrowRight",o.DOWN="ArrowDown",o.DELETE="Delete",o.F2="F2",o.PAGE_UP="PageUp",o.PAGE_DOWN="PageDown",o.PAGE_HOME="Home",o.PAGE_END="End",o.A="KeyA",o.C="KeyC",o.D="KeyD",o.V="KeyV",o.X="KeyX",o.Y="KeyY",o.Z="KeyZ",o}(),qq=65,Yq=67,Qq=86,Xq=68,Zq=90,Jq=89;function Dg(o){if(o.altKey||o.ctrlKey||o.metaKey)return!1;var n=o.key.length===1;return n}function ug(o,n,e,t,i){var r=t?t.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;var s=o.addGridCommonParams({event:n,editing:i,column:t,node:e,data:e.data,colDef:t.getColDef()});if(r){var a=r(s);if(a)return!0}return!1}function yR(o,n,e,t){var i=t.getDefinition(),r=i&&i.suppressHeaderKeyboardEvent;if(!ne(r))return!1;var s=o.addGridCommonParams({colDef:i,column:t,headerRowIndex:e,event:n});return!!r(s)}function CR(o){var n=o.keyCode,e;switch(n){case qq:e=q.A;break;case Yq:e=q.C;break;case Qq:e=q.V;break;case Xq:e=q.D;break;case Zq:e=q.Z;break;case Jq:e=q.Y;break;default:e=o.code}return e}function _R(o,n){return n===void 0&&(n=!1),o===q.DELETE?!0:!n&&o===q.BACKSPACE?m0():!1}var eY=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Dg,isUserSuppressingKeyboardEvent:ug,isUserSuppressingHeaderKeyboardEvent:yR,normaliseQwertyAzerty:CR,isDeleteKey:_R});function R0(o,n,e){if(e===0)return!1;var t=Math.abs(o.clientX-n.clientX),i=Math.abs(o.clientY-n.clientY);return Math.max(t,i)<=e}var tY=Object.freeze({__proto__:null,areEventsNear:R0});function nY(o,n){if(!o)return!1;for(var e=function(a,l){var c=n[a.id],u=n[l.id],d=c!==void 0,p=u!==void 0,g=d&&p,v=!d&&!p;return g?c-u:v?a.__objectId-l.__objectId:d?1:-1},t,i,r=!1,s=0;s<o.length-1;s++)if(t=o[s],i=o[s+1],e(t,i)>0){r=!0;break}return r?(o.sort(e),!0):!1}var iY=Object.freeze({__proto__:null,sortRowNodesByOrder:nY});function I0(o){var n=new Set;return o.forEach(function(e){return n.add(e)}),n}var rY=Object.freeze({__proto__:null,convertToSet:I0}),Un=function(){return Un=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Un.apply(this,arguments)},oY=Un(Un(Un(Un(Un(Un(Un(Un(Un(Un(Un(Un(Un(Un(Un(Un(Un(Un({},Pq),Z7),Mq),Vq),$q),eq),k7),Uq),I7),Kq),eY),fq),tY),kq),A7),iY),rY),dq),mt=oY,Wc=function(){function o(n,e){n===void 0&&(n=0),e===void 0&&(e=1),this.nextValue=n,this.step=e}return o.prototype.next=function(){var n=this.nextValue;return this.nextValue+=this.step,n},o.prototype.peek=function(){return this.nextValue},o.prototype.skip=function(n){this.nextValue+=n},o}(),Md=function(o){return o[o.IN_PROGRESS=0]="IN_PROGRESS",o[o.RESOLVED=1]="RESOLVED",o}(Md||{}),Ni=function(){function o(n){var e=this;this.status=Md.IN_PROGRESS,this.resolution=null,this.waiters=[],n(function(t){return e.onDone(t)},function(t){return e.onReject(t)})}return o.all=function(n){return new o(function(e){var t=n.length,i=new Array(t);n.forEach(function(r,s){r.then(function(a){i[s]=a,t--,t===0&&e(i)})})})},o.resolve=function(n){return n===void 0&&(n=null),new o(function(e){return e(n)})},o.prototype.then=function(n){var e=this;return new o(function(t){e.status===Md.RESOLVED?t(n(e.resolution)):e.waiters.push(function(i){return t(n(i))})})},o.prototype.resolveNow=function(n,e){return this.status===Md.RESOLVED?e(this.resolution):n},o.prototype.onDone=function(n){this.status=Md.RESOLVED,this.resolution=n,this.waiters.forEach(function(e){return e(n)})},o.prototype.onReject=function(n){console.warn("TBI")},o}(),xwe=function(){function o(){this.timestamp=new Date().getTime()}return o.prototype.print=function(n){var e=new Date().getTime()-this.timestamp;console.info("".concat(n," = ").concat(e)),this.timestamp=new Date().getTime()},o}(),sY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ja=function(){return Ja=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Ja.apply(this,arguments)},BC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Uo=function(o){return o[o.NOTHING=0]="NOTHING",o[o.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",o[o.SHOWING=2]="SHOWING",o}(Uo||{}),_s=function(o){return o[o.HOVER=0]="HOVER",o[o.FOCUS=1]="FOCUS",o}(_s||{}),SR=function(o){sY(n,o);function n(e,t,i){var r=o.call(this)||this;return r.parentComp=e,r.tooltipShowDelayOverride=t,r.tooltipHideDelayOverride=i,r.SHOW_QUICK_TOOLTIP_DIFF=1e3,r.FADE_OUT_TOOLTIP_TIMEOUT=1e3,r.INTERACTIVE_HIDE_DELAY=100,r.interactionEnabled=!1,r.isInteractingWithTooltip=!1,r.state=Uo.NOTHING,r.tooltipInstanceCount=0,r.tooltipMouseTrack=!1,r}return n.prototype.postConstruct=function(){this.gridOptionsService.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gridOptionsService.get("tooltipMouseTrack");var e=this.parentComp.getGui();this.tooltipTrigger===_s.HOVER&&(this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===_s.FOCUS&&(this.addManagedListener(e,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(e,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)))},n.prototype.getGridOptionsTooltipDelay=function(e){var t=this.gridOptionsService.get(e);return t<0&&Je("".concat(e," should not be lower than 0")),Math.max(200,t)},n.prototype.getTooltipDelay=function(e){var t,i;return e==="show"?(t=this.tooltipShowDelayOverride)!==null&&t!==void 0?t:this.getGridOptionsTooltipDelay("tooltipShowDelay"):(i=this.tooltipHideDelayOverride)!==null&&i!==void 0?i:this.getGridOptionsTooltipDelay("tooltipHideDelay")},n.prototype.destroy=function(){this.setToDoNothing(),o.prototype.destroy.call(this)},n.prototype.getTooltipTrigger=function(){var e=this.gridOptionsService.get("tooltipTrigger");return!e||e==="hover"?_s.HOVER:_s.FOCUS},n.prototype.onMouseEnter=function(e){var t=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Es()&&(n.isLocked?this.showTooltipTimeoutId=window.setTimeout(function(){t.prepareToShowTooltip(e)},this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(e))},n.prototype.onMouseMove=function(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===Uo.SHOWING&&this.tooltipComp&&this.positionTooltip()},n.prototype.onMouseDown=function(){this.setToDoNothing()},n.prototype.onMouseLeave=function(){this.interactionEnabled?this.lockService():this.setToDoNothing()},n.prototype.onFocusIn=function(){this.prepareToShowTooltip()},n.prototype.onFocusOut=function(e){var t,i=e.relatedTarget,r=this.parentComp.getGui(),s=(t=this.tooltipComp)===null||t===void 0?void 0:t.getGui();this.isInteractingWithTooltip||r.contains(i)||this.interactionEnabled&&s?.contains(i)||this.setToDoNothing()},n.prototype.onKeyDown=function(){this.setToDoNothing()},n.prototype.prepareToShowTooltip=function(e){if(this.state!=Uo.NOTHING||n.isLocked)return!1;var t=0;return e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=Uo.WAITING_TO_SHOW,!0},n.prototype.isLastTooltipHiddenRecently=function(){var e=new Date().getTime(),t=n.lastTooltipHideTime;return e-t<this.SHOW_QUICK_TOOLTIP_DIFF},n.prototype.setToDoNothing=function(){this.state===Uo.SHOWING&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.clearTimeouts(),this.state=Uo.NOTHING,this.lastMouseEvent=null},n.prototype.showTooltip=function(){var e=Ja({},this.parentComp.getTooltipParams());if(!ne(e.value)){this.setToDoNothing();return}this.state=Uo.SHOWING,this.tooltipInstanceCount++;var t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),i=this.userComponentFactory.getTooltipCompDetails(e);i.newAgStackInstance().then(t)},n.prototype.hideTooltip=function(e){if(!(!e&&this.isInteractingWithTooltip)){this.tooltipComp&&(this.destroyTooltipComp(),n.lastTooltipHideTime=new Date().getTime());var t={type:T.EVENT_TOOLTIP_HIDE,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(t),this.state=Uo.NOTHING}},n.prototype.newTooltipComponentCallback=function(e,t){var i=this.state!==Uo.SHOWING||this.tooltipInstanceCount!==e;if(i){this.getContext().destroyBean(t);return}var r=t.getGui();this.tooltipComp=t,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===_s.HOVER&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive");var s=this.localeService.getLocaleTextFunc(),a=this.popupService.addPopup({eChild:r,ariaLabel:s("ariaLabelTooltip","Tooltip")});a&&(this.tooltipPopupDestroyFunc=a.hideFunc),this.positionTooltip(),this.tooltipTrigger===_s.FOCUS&&(this.onBodyScrollEventCallback=this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,this.setToDoNothing.bind(this)),this.onColumnMovedEventCallback=this.addManagedListener(this.eventService,T.EVENT_COLUMN_MOVED,this.setToDoNothing.bind(this))),this.interactionEnabled&&(this.tooltipTrigger===_s.HOVER?(this.tooltipMouseEnterListener=this.addManagedListener(r,"mouseenter",this.onTooltipMouseEnter.bind(this))||null,this.tooltipMouseLeaveListener=this.addManagedListener(r,"mouseleave",this.onTooltipMouseLeave.bind(this))||null):(this.tooltipFocusInListener=this.addManagedListener(r,"focusin",this.onTooltipFocusIn.bind(this))||null,this.tooltipFocusOutListener=this.addManagedListener(r,"focusout",this.onTooltipFocusOut.bind(this))||null));var l={type:T.EVENT_TOOLTIP_SHOW,tooltipGui:r,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(l),this.startHideTimeout()},n.prototype.onTooltipMouseEnter=function(){this.isInteractingWithTooltip=!0,this.unlockService()},n.prototype.onTooltipMouseLeave=function(){this.isInteractingWithTooltip=!1,this.lockService()},n.prototype.onTooltipFocusIn=function(){this.isInteractingWithTooltip=!0},n.prototype.onTooltipFocusOut=function(e){var t,i=this.parentComp.getGui(),r=(t=this.tooltipComp)===null||t===void 0?void 0:t.getGui(),s=e.relatedTarget;r?.contains(s)||(this.isInteractingWithTooltip=!1,i.contains(s)?this.startHideTimeout():this.hideTooltip())},n.prototype.positionTooltip=function(){var e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupService.positionPopupUnderMouseEvent(Ja(Ja({},e),{mouseEvent:this.lastMouseEvent})):this.popupService.positionPopupByComponent(Ja(Ja({},e),{eventSource:this.parentComp.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))},n.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,i=this.tooltipComp,r=this.tooltipTrigger===_s.HOVER?this.FADE_OUT_TOOLTIP_TIMEOUT:0;window.setTimeout(function(){t(),e.getContext().destroyBean(i)},r),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},n.prototype.clearTooltipListeners=function(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(function(e){e&&e()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null},n.prototype.lockService=function(){var e=this;n.isLocked=!0,this.interactiveTooltipTimeoutId=window.setTimeout(function(){e.unlockService(),e.setToDoNothing()},this.INTERACTIVE_HIDE_DELAY)},n.prototype.unlockService=function(){n.isLocked=!1,this.clearInteractiveTimeout()},n.prototype.startHideTimeout=function(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))},n.prototype.clearShowTimeout=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)},n.prototype.clearHideTimeout=function(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},n.prototype.clearInteractiveTimeout=function(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)},n.prototype.clearTimeouts=function(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()},n.isLocked=!1,BC([b("popupService")],n.prototype,"popupService",void 0),BC([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),BC([pe],n.prototype,"postConstruct",null),n}(re),aY=function(){function o(n){this.cssClassStates={},this.getGui=n}return o.prototype.addCssClass=function(n){var e=this,t=(n||"").split(" ");if(t.length>1){t.forEach(function(s){return e.addCssClass(s)});return}var i=this.cssClassStates[n]!==!0;if(i&&n.length){var r=this.getGui();r&&r.classList.add(n),this.cssClassStates[n]=!0}},o.prototype.removeCssClass=function(n){var e=this,t=(n||"").split(" ");if(t.length>1){t.forEach(function(s){return e.removeCssClass(s)});return}var i=this.cssClassStates[n]!==!1;if(i&&n.length){var r=this.getGui();r&&r.classList.remove(n),this.cssClassStates[n]=!1}},o.prototype.containsCssClass=function(n){var e=this.getGui();return e?e.classList.contains(n):!1},o.prototype.addOrRemoveCssClass=function(n,e){var t=this;if(n){if(n.indexOf(" ")>=0){var i=(n||"").split(" ");if(i.length>1){i.forEach(function(a){return t.addOrRemoveCssClass(a,e)});return}}var r=this.cssClassStates[n]!==e;if(r&&n.length){var s=this.getGui();s&&s.classList.toggle(n,e),this.cssClassStates[n]=e}}},o}(),lY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),$C=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},cY=new Wc,dt=function(o){lY(n,o);function n(e){var t=o.call(this)||this;return t.displayed=!0,t.visible=!0,t.compId=cY.next(),t.cssClassManager=new aY(function(){return t.eGui}),e&&t.setTemplate(e),t}return n.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.get("enableBrowserTooltips")},n.prototype.getCompId=function(){return this.compId},n.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},n.prototype.setTooltip=function(e,t,i){var r=this,s=function(){r.usingBrowserTooltips?r.getGui().removeAttribute("title"):r.tooltipFeature=r.destroyBean(r.tooltipFeature)},a=function(){r.usingBrowserTooltips?r.getGui().setAttribute("title",r.tooltipText):r.tooltipFeature=r.createBean(new SR(r,t,i))};this.tooltipText!=e&&(this.tooltipText&&s(),e!=null&&(this.tooltipText=e,this.tooltipText&&a()))},n.prototype.createChildComponentsFromTags=function(e,t){var i=this,r=fR(e.childNodes);r.forEach(function(s){if(s instanceof HTMLElement){var a=i.createComponentFromElement(s,function(c){var u=c.getGui();u&&i.copyAttributesFromNode(s,c.getGui())},t);if(a){if(a.addItems&&s.children.length){i.createChildComponentsFromTags(s,t);var l=Array.prototype.slice.call(s.children);a.addItems(l)}i.swapComponentForNode(a,e,s)}else s.childNodes&&i.createChildComponentsFromTags(s,t)}})},n.prototype.createComponentFromElement=function(e,t,i){var r=e.nodeName,s=i?i[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(r);if(a){n.elementGettingCreated=e;var l=new a(s);return l.setParentComponent(this),this.createBean(l,null,t),l}return null},n.prototype.copyAttributesFromNode=function(e,t){gR(e.attributes,function(i,r){return t.setAttribute(i,r)})},n.prototype.swapComponentForNode=function(e,t,i){var r=e.getGui();t.replaceChild(r,i),t.insertBefore(document.createComment(i.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,i)},n.prototype.swapInComponentForQuerySelectors=function(e,t){var i=this;this.iterateOverQuerySelectors(function(r){i[r.attributeName]===t&&(i[r.attributeName]=e)})},n.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);t!=null;){var i=t.__agComponentMetaData,r=Tg(t.constructor);i&&i[r]&&i[r].querySelectors&&i[r].querySelectors.forEach(function(s){return e(s)}),t=Object.getPrototypeOf(t)}},n.prototype.activateTabIndex=function(e){var t=this.gridOptionsService.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(function(i){return i.setAttribute("tabindex",t.toString())})},n.prototype.setTemplate=function(e,t){var i=or(e);this.setTemplateFromElement(i,t)},n.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},n.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},n.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors(function(i){var r=function(l){return t[i.attributeName]=l},s=i.refSelector&&e.getAttribute("ref")===i.refSelector;if(s)r(e.eGui);else{var a=e.eGui.querySelector(i.querySelector);a&&r(a.__agComponent||a)}})}},n.prototype.getGui=function(){return this.eGui},n.prototype.getFocusableElement=function(){return this.eGui},n.prototype.getAriaElement=function(){return this.getFocusableElement()},n.prototype.setParentComponent=function(e){this.parentComponent=e},n.prototype.getParentComponent=function(){return this.parentComponent},n.prototype.setGui=function(e){this.eGui=e},n.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},n.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},n.prototype.appendChild=function(e,t){if(e!=null)if(t||(t=this.eGui),Xd(e))t.appendChild(e);else{var i=e;t.appendChild(i.getGui())}},n.prototype.isDisplayed=function(){return this.displayed},n.prototype.setVisible=function(e,t){if(t===void 0&&(t={}),e!==this.visible){this.visible=e;var i=t.skipAriaHidden;uR(this.eGui,e,{skipAriaHidden:i})}},n.prototype.setDisplayed=function(e,t){if(t===void 0&&(t={}),e!==this.displayed){this.displayed=e;var i=t.skipAriaHidden;It(this.eGui,e,{skipAriaHidden:i});var r={type:n.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(r)}},n.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),o.prototype.destroy.call(this)},n.prototype.addGuiEventListener=function(e,t,i){var r=this;this.eGui.addEventListener(e,t,i),this.addDestroyFunc(function(){return r.eGui.removeEventListener(e,t)})},n.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},n.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},n.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},n.prototype.addOrRemoveCssClass=function(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)},n.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},n.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'.concat(e,'"]'))},n.EVENT_DISPLAYED_CHANGED="displayedChanged",$C([b("agStackComponentsRegistry")],n.prototype,"agStackComponentsRegistry",void 0),$C([hO],n.prototype,"preConstructOnComponent",null),$C([hO],n.prototype,"createChildComponentsPreConstruct",null),n}(re);function Ce(o){return uY.bind(this,"[ref=".concat(o,"]"),o)}function uY(o,n,e,t,i){if(o===null){console.error("AG Grid: QuerySelector selector should not be null");return}if(typeof i=="number"){console.error("AG Grid: QuerySelector should be on an attribute");return}dY(e,"querySelectors",{attributeName:t,querySelector:o,refSelector:n})}function dY(o,n,e){var t=pY(o,Tg(o.constructor));t[n]||(t[n]=[]),t[n].push(e)}function pY(o,n){return o.__agComponentMetaData||(o.__agComponentMetaData={}),o.__agComponentMetaData[n]||(o.__agComponentMetaData[n]={}),o.__agComponentMetaData[n]}var hY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),vO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},fY=function(o){hY(n,o);function n(){return o.call(this,`
  24. <div class="ag-floating-filter-input" role="presentation">
  25. <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>
  26. </div>`)||this}return n.prototype.destroy=function(){o.prototype.destroy.call(this)},n.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),i=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel("".concat(t," ").concat(i("ariaFilterInput","Filter Input")))},n.prototype.onParentModelChanged=function(e){var t=this;if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(function(i){if(i.getModelAsString){var r=i.getModelAsString(e);t.eFloatingFilterText.setValue(r)}})},n.prototype.onParamsUpdated=function(e){this.refresh(e)},n.prototype.refresh=function(e){this.init(e)},vO([Ce("eFloatingFilterText")],n.prototype,"eFloatingFilterText",void 0),vO([b("columnModel")],n.prototype,"columnModel",void 0),n}(dt),wR=function(){function o(n,e,t,i){var r=this;this.alive=!0,this.context=n,this.eParent=i;var s=e.getDateCompDetails(t),a=s.newAgStackInstance();a.then(function(l){if(!r.alive){n.destroyBean(l);return}r.dateComp=l,l&&(i.appendChild(l.getGui()),l.afterGuiAttached&&l.afterGuiAttached(),r.tempValue&&l.setDate(r.tempValue),r.disabled!=null&&r.setDateCompDisabled(r.disabled))})}return o.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},o.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},o.prototype.setDate=function(n){this.dateComp?this.dateComp.setDate(n):this.tempValue=n},o.prototype.setDisabled=function(n){this.dateComp?this.setDateCompDisabled(n):this.disabled=n},o.prototype.setDisplayed=function(n){It(this.eParent,n)},o.prototype.setInputPlaceholder=function(n){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(n)},o.prototype.setInputAriaLabel=function(n){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(n)},o.prototype.afterGuiAttached=function(n){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(n)},o.prototype.updateParams=function(n){var e,t,i=!1;if(!((e=this.dateComp)===null||e===void 0)&&e.refresh&&typeof this.dateComp.refresh=="function"){var r=this.dateComp.refresh(n);r!==null&&(i=!0)}if(!i&&(!((t=this.dateComp)===null||t===void 0)&&t.onParamsUpdated)&&typeof this.dateComp.onParamsUpdated=="function"){var r=this.dateComp.onParamsUpdated(n);r!==null&&Je("Custom date component method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}},o.prototype.setDateCompDisabled=function(n){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(n)},o}(),bR=function(){function o(){this.customFilterOptions={}}return o.prototype.init=function(n,e){this.filterOptions=n.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(n)},o.prototype.getFilterOptions=function(){return this.filterOptions},o.prototype.mapCustomOptions=function(){var n=this;this.filterOptions&&this.filterOptions.forEach(function(e){if(typeof e!="string"){var t=[["displayKey"],["displayName"],["predicate","test"]],i=function(r){return r.some(function(s){return e[s]!=null})?!0:(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '".concat(r,"'")),!1)};if(!t.every(i)){n.filterOptions=n.filterOptions.filter(function(r){return r===e})||[];return}n.customFilterOptions[e.displayKey]=e}})},o.prototype.selectDefaultItem=function(n){if(n.defaultOption)this.defaultOption=n.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];typeof e=="string"?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},o.prototype.getDefaultOption=function(){return this.defaultOption},o.prototype.getCustomOption=function(n){return this.customFilterOptions[n]},o}(),TR={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},gY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),H_=function(){return H_=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},H_.apply(this,arguments)},yO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ul=function(o){gY(n,o);function n(e,t){t===void 0&&(t={});var i=o.call(this)||this;return i.eFocusableElement=e,i.callbacks=t,i.callbacks=H_({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(r){if(!r.defaultPrevented){var s=i.focusService.findNextFocusableElement(i.eFocusableElement,!1,r.shiftKey);s&&(s.focus(),r.preventDefault())}}},t),i}return n.prototype.postConstruct=function(){this.eFocusableElement.classList.add(n.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},n.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",function(i){if(!(i.defaultPrevented||_o(i))){if(t.callbacks.shouldStopEventPropagation(i)){So(i);return}i.key===q.TAB?t.callbacks.onTabKeyDown(i):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(i)}})},n.FOCUS_MANAGED_CLASS="ag-focus-managed",yO([b("focusService")],n.prototype,"focusService",void 0),yO([pe],n.prototype,"postConstruct",null),n}(re),mY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),jC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ER="ag-resizer-wrapper",vY='<div class="'.concat(ER,`">
  27. <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>
  28. <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>
  29. <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>
  30. <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>
  31. <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>
  32. <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>
  33. <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>
  34. <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>
  35. </div>`),xR=function(o){mY(n,o);function n(e,t){var i=o.call(this)||this;return i.element=e,i.dragStartPosition={x:0,y:0},i.position={x:0,y:0},i.lastSize={width:-1,height:-1},i.positioned=!1,i.resizersAdded=!1,i.resizeListeners=[],i.boundaryEl=null,i.isResizing=!1,i.isMoving=!1,i.resizable={},i.movable=!1,i.currentResizer=null,i.config=Object.assign({},{popup:!1},t),i}return n.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,i=e.clientWidth,r=i/2-this.getWidth()/2,s=t/2-this.getHeight()/2;this.offsetElement(r,s)},n.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,t=e.centered,i=e.forcePopupParentAsOffsetParent,r=e.minWidth,s=e.width,a=e.minHeight,l=e.height,c=e.x,u=e.y;this.offsetParent||this.setOffsetParent();var d=0,p=0,g=Dr(this.element);if(g){var v=this.findBoundaryElement(),y=window.getComputedStyle(v);if(y.minWidth!=null){var x=v.offsetWidth-this.element.offsetWidth;p=parseInt(y.minWidth,10)-x}if(y.minHeight!=null){var E=v.offsetHeight-this.element.offsetHeight;d=parseInt(y.minHeight,10)-E}}if(this.minHeight=a||d,this.minWidth=r||p,s&&this.setWidth(s),l&&this.setHeight(l),(!s||!l)&&this.refreshSize(),t)this.center();else if(c||u)this.offsetElement(c,u);else if(g&&i){var v=this.boundaryEl,z=!0;if(v||(v=this.findBoundaryElement(),z=!1),v){var M=parseFloat(v.style.top),G=parseFloat(v.style.left);z?this.offsetElement(isNaN(G)?0:G,isNaN(M)?0:M):this.setPosition(G,M)}}this.positioned=!!this.offsetParent}},n.prototype.isPositioned=function(){return this.positioned},n.prototype.getPosition=function(){return this.position},n.prototype.setMovable=function(e,t){if(!(!this.config.popup||e===this.movable)){this.movable=e;var i=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(i),this.moveElementDragListener=i):(this.dragService.removeDragSource(i),this.moveElementDragListener=void 0)}},n.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(function(i){var r=e,s=!!r[i],a=t.getResizerElement(i),l={dragStartPixels:0,eElement:a,onDragStart:function(c){return t.onResizeStart(c,i)},onDragging:t.onResize.bind(t),onDragStop:function(c){return t.onResizeEnd(c,i)}};(s||!t.isAlive()&&!s)&&(s?(t.dragService.addDragSource(l),t.resizeListeners.push(l),a.style.pointerEvents="all"):a.style.pointerEvents="none",t.resizable[i]=s)})},n.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},n.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,t=e.height,i=e.width;i!==-1&&(this.element.style.width="".concat(i,"px")),t!==-1&&(this.element.style.height="".concat(t,"px"))},n.prototype.getHeight=function(){return this.element.offsetHeight},n.prototype.setHeight=function(e){var t=this.config.popup,i=this.element,r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)rl(i,e),e=w0(i),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){var s=this.getAvailableHeight();s&&e>s&&(e=s)}this.getHeight()!==e&&(r?(i.style.maxHeight="unset",i.style.minHeight="unset"):t?rl(i,e):(i.style.height="".concat(e,"px"),i.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))},n.prototype.getAvailableHeight=function(){var e=this.config,t=e.popup,i=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var r=this.offsetParent.clientHeight;if(!r)return null;var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=t?this.position.y:s.top,c=t?0:a.top,u=0;if(i){var d=this.element.parentElement;if(d){var p=d.getBoundingClientRect().bottom;u=p-s.bottom}}var g=r+c-l-u;return g},n.prototype.getWidth=function(){return this.element.offsetWidth},n.prototype.setWidth=function(e){var t=this.element,i=this.config.popup,r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Yr(t,e),e=Bd(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var s=this.offsetParent.clientWidth,a=i?this.position.x:this.element.getBoundingClientRect().left;s&&e+a>s&&(e=s-a)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Yr(t,e):(t.style.width="".concat(e,"px"),t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))},n.prototype.offsetElement=function(e,t){e===void 0&&(e=0),t===void 0&&(t=0);var i=this.config.forcePopupParentAsOffsetParent,r=i?this.boundaryEl:this.element;r&&(this.popupService.positionPopup({ePopup:r,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:t}}}),this.setPosition(parseFloat(r.style.left),parseFloat(r.style.top)))},n.prototype.constrainSizeToAvailableHeight=function(e){var t=this;if(this.config.forcePopupParentAsOffsetParent){var i=function(){var r=t.getAvailableHeight();t.element.style.setProperty("max-height","".concat(r,"px"))};e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),i):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},n.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},n.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},n.prototype.calculateMouseMovement=function(e){var t=e.e,i=e.isLeft,r=e.isTop,s=e.anywhereWithin,a=e.topBuffer,l=t.clientX-this.dragStartPosition.x,c=t.clientY-this.dragStartPosition.y,u=this.shouldSkipX(t,!!i,!!s,l)?0:l,d=this.shouldSkipY(t,!!r,a,c)?0:c;return{movementX:u,movementY:d}},n.prototype.shouldSkipX=function(e,t,i,r){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),c=this.config.popup?this.position.x:s.left,u=c<=0&&a.left>=e.clientX||a.right<=e.clientX&&a.right<=l.right;return u?!0:(t?u=r<0&&e.clientX>c+a.left||r>0&&e.clientX<c+a.left:i?u=r<0&&e.clientX>l.right||r>0&&e.clientX<c+a.left:u=r<0&&e.clientX>l.right||r>0&&e.clientX<l.right,u)},n.prototype.shouldSkipY=function(e,t,i,r){i===void 0&&(i=0);var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),c=this.config.popup?this.position.y:s.top,u=c<=0&&a.top>=e.clientY||a.bottom<=e.clientY&&a.bottom<=l.bottom;return u?!0:(t?u=r<0&&e.clientY>c+a.top+i||r>0&&e.clientY<c+a.top:u=r<0&&e.clientY>l.bottom||r>0&&e.clientY<l.bottom,u)},n.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},n.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=new DOMParser,i=t.parseFromString(vY,"text/html").body;e.appendChild(i.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},n.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(".".concat(ER));e&&this.element.removeChild(e),this.resizersAdded=!1},n.prototype.getResizerElement=function(e){return this.resizerMap[e].element},n.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");var i=this.config,r=i.popup,s=i.forcePopupParentAsOffsetParent;!r&&!s&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},n.prototype.getSiblings=function(){var e=this.element,t=e.parentElement;return t?Array.prototype.slice.call(t.children).filter(function(i){return!i.classList.contains("ag-hidden")}):null},n.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,i=0,r=0;r<e.length;r++){var s=e[r],a=!!s.style.flex&&s.style.flex!=="0 0 auto";if(s!==this.element){var l=this.minHeight||0,c=this.minWidth||0;if(a){var u=window.getComputedStyle(s);u.minHeight&&(l=parseInt(u.minHeight,10)),u.minWidth&&(c=parseInt(u.minWidth,10))}else l=s.offsetHeight,c=s.offsetWidth;t+=l,i+=c}}return{height:t,width:i}},n.prototype.applySizeToSiblings=function(e){var t=null,i=this.getSiblings();if(i){for(var r=0;r<i.length;r++){var s=i[r];s!==t&&(e?s.style.height="".concat(s.offsetHeight,"px"):s.style.width="".concat(s.offsetWidth,"px"),s.style.flex="0 0 auto",s===this.element&&(t=i[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},n.prototype.isResizable=function(){return Object.values(this.resizable).some(function(e){return e})},n.prototype.onResize=function(e){if(!(!this.isResizing||!this.currentResizer)){var t=this.config,i=t.popup,r=t.forcePopupParentAsOffsetParent,s=this.currentResizer,a=s.isTop,l=s.isRight,c=s.isBottom,u=s.isLeft,d=l||u,p=c||a,g=this.calculateMouseMovement({e,isLeft:u,isTop:a}),v=g.movementX,y=g.movementY,x=this.position.x,E=this.position.y,z=0,M=0;if(d&&v){var G=u?-1:1,U=this.getWidth(),se=U+v*G,ve=!1;u&&(z=U-se,(x+z<=0||se<=this.minWidth)&&(ve=!0,z=0)),ve||this.setWidth(se)}if(p&&y){var G=a?-1:1,he=this.getHeight(),be=he+y*G,Ee=!1;a?(M=he-be,(E+M<=0||be<=this.minHeight)&&(Ee=!0,M=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&he<be&&this.getMinSizeOfSiblings().height+be>this.element.parentElement.offsetHeight&&(Ee=!0),Ee||this.setHeight(be)}this.updateDragStartPosition(e.clientX,e.clientY),((i||r)&&z||M)&&this.offsetElement(x+z,E+M)}},n.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var i={type:"resize"};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(i)},n.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},n.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},n.prototype.onMove=function(e){if(this.isMoving){var t=this.position,i=t.x,r=t.y,s;this.config.calculateTopBuffer&&(s=this.config.calculateTopBuffer());var a=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:s}),l=a.movementX,c=a.movementY;this.offsetElement(i+l,r+c),this.updateDragStartPosition(e.clientX,e.clientY)}},n.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},n.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},n.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element},n.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},jC([b("popupService")],n.prototype,"popupService",void 0),jC([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),jC([b("dragService")],n.prototype,"dragService",void 0),n}(re),yY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),WC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},dg=function(o){yY(n,o);function n(e){var t=o.call(this)||this;return t.filterNameKey=e,t.applyActive=!1,t.hidePopup=null,t.debouncePending=!1,t.appliedModel=null,t.buttonListeners=[],t}return n.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new ul(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new xR(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},n.prototype.handleKeyDown=function(e){},n.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},n.prototype.isFilterActive=function(){return!!this.appliedModel},n.prototype.resetTemplate=function(e){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);var i=`
  36. <form class="ag-filter-wrapper">
  37. <div class="ag-filter-body-wrapper ag-`.concat(this.getCssIdentifier(),`-body-wrapper" ref="eFilterBody">
  38. `).concat(this.createBodyTemplate(),`
  39. </div>
  40. </form>`);this.setTemplate(i,e),t=this.getGui(),t&&t.addEventListener("submit",this.onFormSubmit)},n.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},n.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()})},n.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=n.isUseApplyButton(e),this.resetButtonsPanel()},n.prototype.updateParams=function(e){var t=this;this.providedFilterParams=e,this.applyActive=n.isUseApplyButton(e),this.resetUiToActiveModel(this.getModel(),function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()})},n.prototype.resetButtonsPanel=function(){var e=this,t=this.providedFilterParams.buttons,i=t&&t.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(ti(this.eButtonsPanel),this.buttonListeners.forEach(function(a){return a?.()}),this.buttonListeners=[]):i&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!i){this.eButtonsPanel&&Yo(this.eButtonsPanel);return}var r=document.createDocumentFragment(),s=function(a){var l,c;switch(a){case"apply":l=e.translate("applyFilter"),c=function(p){return e.onBtApply(!1,!1,p)};break;case"clear":l=e.translate("clearFilter"),c=function(){return e.onBtClear()};break;case"reset":l=e.translate("resetFilter"),c=function(){return e.onBtReset()};break;case"cancel":l=e.translate("cancelFilter"),c=function(p){e.onBtCancel(p)};break;default:console.warn("AG Grid: Unknown button type specified");return}var u=a==="apply"?"submit":"button",d=or(`<button
  41. type="`.concat(u,`"
  42. ref="`).concat(a,`FilterButton"
  43. class="ag-button ag-standard-button ag-filter-apply-panel-button"
  44. >`).concat(l,`
  45. </button>`));e.buttonListeners.push(e.addManagedListener(d,"click",c)),r.append(d)};I0(t).forEach(function(a){return s(a)}),this.eButtonsPanel.append(r),this.getGui().appendChild(this.eButtonsPanel)},n.prototype.getDefaultDebounceMs=function(){return 0},n.prototype.setupOnBtApplyDebounce=function(){var e=this,t=n.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),i=zr(this.checkApplyDebounce.bind(this),t);this.onBtApplyDebounce=function(){e.debouncePending=!0,i()}},n.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},n.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},n.prototype.setModel=function(e){var t=this,i=e!=null?this.setModelIntoUi(e):this.resetUiToDefaults();return i.then(function(){t.updateUiVisibility(),t.applyModel("api")})},n.prototype.onBtCancel=function(e){var t=this;this.resetUiToActiveModel(this.getModel(),function(){t.handleCancelEnd(e)})},n.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},n.prototype.resetUiToActiveModel=function(e,t){var i=this,r=function(){i.onUiChanged(!1,"prevent"),t?.()};e!=null?this.setModelIntoUi(e).then(r):this.resetUiToDefaults().then(r)},n.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},n.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},n.prototype.applyModel=function(e){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var i=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(i,t)},n.prototype.isModelValid=function(e){return!0},n.prototype.onFormSubmit=function(e){e.preventDefault()},n.prototype.onBtApply=function(e,t,i){if(e===void 0&&(e=!1),t===void 0&&(t=!1),i&&i.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")){var r="columnFilter";this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:r})}var s=this.providedFilterParams.closeOnApply;s&&this.applyActive&&!e&&!t&&this.close(i)},n.prototype.onNewRowsLoaded=function(){},n.prototype.close=function(e){if(this.hidePopup){var t=e,i=t&&t.key,r;(i==="Enter"||i==="Space")&&(r={keyboardEvent:t}),this.hidePopup(r),this.hidePopup=null}},n.prototype.onUiChanged=function(e,t){if(e===void 0&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var i=this.isModelValid(this.getModelFromUi()),r=this.getRefElement("applyFilterButton");r&&jc(r,!i)}e&&!t||t==="immediately"?this.onBtApply(e):(!this.applyActive&&!t||t==="debounce")&&this.onBtApplyDebounce()},n.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e?.container)},n.prototype.refreshFilterResizer=function(e){if(!(!this.positionableFeature||e==="toolPanel")){var t=e==="floatingFilter"||e==="columnFilter",i=this,r=i.positionableFeature,s=i.gridOptionsService;t?(r.restoreLastSize(),r.setResizable(s.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},n.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},n.getDebounceMs=function(e,t){return n.isUseApplyButton(e)?(e.debounceMs!=null&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:t},n.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},n.prototype.refresh=function(e){return this.providedFilterParams=e,!0},n.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,o.prototype.destroy.call(this)},n.prototype.translate=function(e){var t=this.localeService.getLocaleTextFunc();return t(e,TR[e])},n.prototype.getCellValue=function(e){return this.providedFilterParams.getValue(e)},n.prototype.getPositionableElement=function(){return this.eFilterBody},WC([b("rowModel")],n.prototype,"rowModel",void 0),WC([Ce("eFilterBody")],n.prototype,"eFilterBody",void 0),WC([pe],n.prototype,"postConstruct",null),n}(dt),CY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),_Y=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},zR=function(o){CY(n,o);function n(e,t){var i=o.call(this,t)||this;return i.labelSeparator="",i.labelAlignment="left",i.disabled=!1,i.label="",i.config=e||{},i}return n.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,i=e.label,r=e.labelWidth,s=e.labelAlignment;t!=null&&this.setLabelSeparator(t),i!=null&&this.setLabel(i),r!=null&&this.setLabelWidth(r),this.setLabelAlignment(s||this.labelAlignment),this.refreshLabel()},n.prototype.refreshLabel=function(){ti(this.eLabel),typeof this.label=="string"?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),this.label===""?(It(this.eLabel,!1),Qn(this.eLabel,"presentation")):(It(this.eLabel,!0),Qn(this.eLabel,null))},n.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)},n.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-".concat(this.getCompId(),"-label"),this.eLabel.id},n.prototype.getLabel=function(){return this.label},n.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},n.prototype.setLabelAlignment=function(e){var t=this.getGui(),i=t.classList;return i.toggle("ag-label-align-left",e==="left"),i.toggle("ag-label-align-right",e==="right"),i.toggle("ag-label-align-top",e==="top"),this},n.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},n.prototype.setLabelWidth=function(e){return this.label==null?this:(Ud(this.eLabel,e),this)},n.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return jc(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},n.prototype.isDisabled=function(){return!!this.disabled},_Y([pe],n.prototype,"postConstruct",null),n}(dt),SY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),OR=function(o){SY(n,o);function n(e,t,i){var r=o.call(this,e,t)||this;return r.className=i,r}return n.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()},n.prototype.refreshAriaLabelledBy=function(){var e=this.getAriaElement(),t=this.getLabelId();UD(e)!==null?lg(e,""):lg(e,t??"")},n.prototype.setAriaLabel=function(e){return ma(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this},n.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,T.EVENT_FIELD_VALUE_CHANGED,function(){return e(t.getValue())}),this},n.prototype.getWidth=function(){return this.getGui().clientWidth},n.prototype.setWidth=function(e){return Yr(this.getGui(),e),this},n.prototype.getPreviousValue=function(){return this.previousValue},n.prototype.getValue=function(){return this.value},n.prototype.setValue=function(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchEvent({type:T.EVENT_FIELD_VALUE_CHANGED}),this)},n}(zR),wY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),ad=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},bY=`
  46. <div class="ag-picker-field" role="presentation">
  47. <div ref="eLabel"></div>
  48. <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">
  49. <div ref="eDisplayField" class="ag-picker-field-display"></div>
  50. <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
  51. </div>
  52. </div>`,DR=function(o){wY(n,o);function n(e){var t=o.call(this,e,e?.template||bY,e?.className)||this;if(t.isPickerDisplayed=!1,t.skipClick=!1,t.pickerGap=4,t.hideCurrentPicker=null,t.ariaRole=e?.ariaRole,t.onPickerFocusIn=t.onPickerFocusIn.bind(t),t.onPickerFocusOut=t.onPickerFocusOut.bind(t),!e)return t;var i=e.pickerGap,r=e.maxPickerHeight,s=e.variableWidth,a=e.minPickerWidth,l=e.maxPickerWidth;return i!=null&&(t.pickerGap=i),t.variableWidth=!!s,r!=null&&t.setPickerMaxHeight(r),a!=null&&t.setPickerMinWidth(a),l!=null&&t.setPickerMaxWidth(l),t}return n.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.setupAria();var e="ag-".concat(this.getCompId(),"-display");this.eDisplayField.setAttribute("id",e);var t=this.getAriaElement();this.addManagedListener(t,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var i=this.config.pickerIcon;if(i){var r=Gn(i,this.gridOptionsService);r&&this.eIcon.appendChild(r)}},n.prototype.setupAria=function(){var e=this.getAriaElement();e.setAttribute("tabindex",this.gridOptionsService.get("tabIndex").toString()),Ts(e,!1),this.ariaRole&&Qn(e,this.ariaRole)},n.prototype.onLabelOrWrapperMouseDown=function(e){if(e){var t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},n.prototype.onKeyDown=function(e){switch(e.key){case q.UP:case q.DOWN:case q.ENTER:case q.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case q.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}},n.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},n.prototype.renderAndPositionPicker=function(){var e=this,t=this.gridOptionsService.getDocument(),i=this.pickerComponent.getGui();this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,function(){e.hidePicker()}));var r=this.localeService.getLocaleTextFunc(),s=this.config,a=s.pickerAriaLabelKey,l=s.pickerAriaLabelValue,c=s.modalPicker,u=c===void 0?!0:c,d={modal:u,eChild:i,closeOnEsc:!0,closedCallback:function(){var M=t.activeElement===t.body;e.beforeHidePicker(),M&&e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:r(a,l)},p=this.popupService.addPopup(d),g=this,v=g.maxPickerHeight,y=g.minPickerWidth,x=g.maxPickerWidth,E=g.variableWidth;E?(y&&(i.style.minWidth=y),i.style.width=Og(Bd(this.eWrapper)),x&&(i.style.maxWidth=x)):Ud(i,x??Bd(this.eWrapper));var z=v??"".concat(Qd(this.popupService.getPopupParent()),"px");return i.style.setProperty("max-height",z),i.style.position="absolute",this.alignPickerToComponent(),p.hideFunc},n.prototype.alignPickerToComponent=function(){if(this.pickerComponent){var e=this.config.pickerType,t=this.pickerGap,i=this.gridOptionsService.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:i,keepWithinBounds:!0,nudgeY:t})}},n.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},n.prototype.toggleExpandedStyles=function(e){if(this.isAlive()){var t=this.getAriaElement();Ts(t,e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e)}},n.prototype.onPickerFocusIn=function(){this.togglePickerHasFocus(!0)},n.prototype.onPickerFocusOut=function(e){var t;!((t=this.pickerComponent)===null||t===void 0)&&t.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)},n.prototype.togglePickerHasFocus=function(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)},n.prototype.hidePicker=function(){this.hideCurrentPicker&&this.hideCurrentPicker()},n.prototype.setInputWidth=function(e){return Ud(this.eWrapper,e),this},n.prototype.getFocusableElement=function(){return this.eWrapper},n.prototype.setPickerGap=function(e){return this.pickerGap=e,this},n.prototype.setPickerMinWidth=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.minPickerWidth=e??void 0,this},n.prototype.setPickerMaxWidth=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.maxPickerWidth=e??void 0,this},n.prototype.setPickerMaxHeight=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.maxPickerHeight=e??void 0,this},n.prototype.destroy=function(){this.hidePicker(),o.prototype.destroy.call(this)},ad([b("popupService")],n.prototype,"popupService",void 0),ad([Ce("eLabel")],n.prototype,"eLabel",void 0),ad([Ce("eWrapper")],n.prototype,"eWrapper",void 0),ad([Ce("eDisplayField")],n.prototype,"eDisplayField",void 0),ad([Ce("eIcon")],n.prototype,"eIcon",void 0),n}(OR),TY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),EY=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},CO=function(o){TY(n,o);function n(e){e===void 0&&(e="default");var t=o.call(this,'<div class="ag-list ag-'.concat(e,'-list" role="listbox"></div>'))||this;return t.cssIdentifier=e,t.options=[],t.itemEls=[],t}return n.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},n.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case q.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{var i=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(i)}break;case q.DOWN:case q.UP:var r=t===q.DOWN,s=void 0;if(e.preventDefault(),!this.highlightedEl)s=this.itemEls[r?0:this.itemEls.length-1];else{var a=this.itemEls.indexOf(this.highlightedEl),l=a+(r?1:-1);l=Math.min(Math.max(l,0),this.itemEls.length-1),s=this.itemEls[l]}this.highlightItem(s);break}},n.prototype.addOptions=function(e){var t=this;return e.forEach(function(i){return t.addOption(i)}),this},n.prototype.addOption=function(e){var t=e.value,i=e.text,r=Yn(i||t);return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this},n.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(function(t,i){c0(t,i+1),l0(t,e.length)})},n.prototype.renderOption=function(e,t){var i=this,r=document.createElement("div");Qn(r,"option"),r.classList.add("ag-list-item","ag-".concat(this.cssIdentifier,"-list-item")),r.innerHTML="<span>".concat(t,"</span>"),r.tabIndex=-1,this.itemEls.push(r),this.addManagedListener(r,"mouseover",function(){return i.highlightItem(r)}),this.addManagedListener(r,"mouseleave",function(){return i.clearHighlighted()}),this.addManagedListener(r,"click",function(){return i.setValue(e)}),this.getGui().appendChild(r)},n.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(),this;var i=this.options.findIndex(function(s){return s.value===e});if(i!==-1){var r=this.options[i];this.value=r.value,this.displayValue=r.text!=null?r.text:r.value,this.highlightItem(this.itemEls[i]),t||this.fireChangeEvent()}return this},n.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},n.prototype.getValue=function(){return this.value},n.prototype.getDisplayValue=function(){return this.displayValue},n.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=this.options.findIndex(function(i){return i.value===e.value});t!==-1&&this.highlightItem(this.itemEls[t])},n.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},n.prototype.highlightItem=function(e){Dr(e)&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(n.ACTIVE_CLASS),$c(this.highlightedEl,!0),this.highlightedEl.focus())},n.prototype.clearHighlighted=function(){!this.highlightedEl||!Dr(this.highlightedEl)||(this.highlightedEl.classList.remove(n.ACTIVE_CLASS),$c(this.highlightedEl,!1),this.highlightedEl=null)},n.prototype.fireChangeEvent=function(){this.dispatchEvent({type:T.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()},n.prototype.fireItemSelected=function(){this.dispatchEvent({type:n.EVENT_ITEM_SELECTED})},n.EVENT_ITEM_SELECTED="selectedItem",n.ACTIVE_CLASS="ag-active-item",EY([pe],n.prototype,"init",null),n}(dt),xY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),B_=function(){return B_=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},B_.apply(this,arguments)},Rg=function(o){xY(n,o);function n(e){return o.call(this,B_({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"smallDown",ariaRole:"combobox"},e))||this}return n.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.createListComponent(),this.eWrapper.tabIndex=this.gridOptionsService.get("tabIndex")},n.prototype.createListComponent=function(){var e=this;this.listComponent=this.createBean(new CO("select")),this.listComponent.setParentComponent(this);var t=this.listComponent.getAriaElement(),i="ag-select-list-".concat(this.listComponent.getCompId());t.setAttribute("id",i),p0(this.getAriaElement(),t),this.listComponent.addGuiEventListener("keydown",function(r){r.key===q.TAB&&(r.preventDefault(),r.stopImmediatePropagation(),e.getGui().dispatchEvent(new KeyboardEvent("keydown",{key:r.key,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,bubbles:!0})))}),this.listComponent.addManagedListener(this.listComponent,CO.EVENT_ITEM_SELECTED,function(){e.hidePicker(),e.dispatchEvent({type:n.EVENT_ITEM_SELECTED})}),this.listComponent.addManagedListener(this.listComponent,T.EVENT_FIELD_VALUE_CHANGED,function(){e.listComponent&&(e.setValue(e.listComponent.getValue(),!1,!0),e.hidePicker())})},n.prototype.createPickerComponent=function(){return this.listComponent},n.prototype.showPicker=function(){this.listComponent&&(o.prototype.showPicker.call(this),this.listComponent.refreshHighlighted())},n.prototype.addOptions=function(e){var t=this;return e.forEach(function(i){return t.addOption(i)}),this},n.prototype.addOption=function(e){return this.listComponent.addOption(e),this},n.prototype.setValue=function(e,t,i){if(this.value===e||!this.listComponent)return this;i||this.listComponent.setValue(e,!0);var r=this.listComponent.getValue();return r===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),o.prototype.setValue.call(this,e,t))},n.prototype.destroy=function(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),o.prototype.destroy.call(this)},n.EVENT_ITEM_SELECTED="selectedItem",n}(DR),zY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),UC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},da=function(o){zY(n,o);function n(e,t,i,r){i===void 0&&(i="text"),r===void 0&&(r="input");var s=o.call(this,e,`
  53. <div role="presentation">
  54. <div ref="eLabel" class="ag-input-field-label"></div>
  55. <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
  56. <`.concat(r,' ref="eInput" class="ag-input-field-input"></').concat(r,`>
  57. </div>
  58. </div>`),t)||this;return s.inputType=i,s.displayFieldTag=r,s}return n.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add("".concat(this.className,"-label")),this.eWrapper.classList.add("".concat(this.className,"-input-wrapper")),this.eInput.classList.add("".concat(this.className,"-input")),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-".concat(this.getCompId(),"-input");var e=this.config,t=e.width,i=e.value;t!=null&&this.setWidth(t),i!=null&&this.setValue(i),this.addInputListeners(),this.activateTabIndex([this.eInput])},n.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(t){return e.setValue(t.target.value)})},n.prototype.setInputType=function(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)},n.prototype.getInputElement=function(){return this.eInput},n.prototype.setInputWidth=function(e){return Ud(this.eWrapper,e),this},n.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},n.prototype.getFocusableElement=function(){return this.eInput},n.prototype.setMaxLength=function(e){var t=this.eInput;return t.maxLength=e,this},n.prototype.setInputPlaceholder=function(e){return Xo(this.eInput,"placeholder",e),this},n.prototype.setInputAriaLabel=function(e){return ma(this.eInput,e),this.refreshAriaLabelledBy(),this},n.prototype.setDisabled=function(e){return jc(this.eInput,e),o.prototype.setDisabled.call(this,e)},n.prototype.setAutoComplete=function(e){if(e===!0)Xo(this.eInput,"autocomplete",null);else{var t=typeof e=="string"?e:"off";Xo(this.eInput,"autocomplete",t)}return this},UC([Ce("eLabel")],n.prototype,"eLabel",void 0),UC([Ce("eWrapper")],n.prototype,"eWrapper",void 0),UC([Ce("eInput")],n.prototype,"eInput",void 0),n}(OR),OY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ig=function(o){OY(n,o);function n(e,t,i){t===void 0&&(t="ag-checkbox"),i===void 0&&(i="checkbox");var r=o.call(this,e,t,i)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return n.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},n.prototype.getNextValue=function(){return this.selected===void 0?!0:!this.selected},n.prototype.setPassive=function(e){this.passive=e},n.prototype.isReadOnly=function(){return this.readOnly},n.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},n.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),o.prototype.setDisabled.call(this,e)},n.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},n.prototype.getValue=function(){return this.isSelected()},n.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},n.prototype.setName=function(e){var t=this.getInputElement();return t.name=e,this},n.prototype.isSelected=function(){return this.selected},n.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue))},n.prototype.dispatchChange=function(e,t,i){this.dispatchEvent({type:T.EVENT_FIELD_VALUE_CHANGED,selected:e,previousValue:t,event:i});var r=this.getInputElement(),s={type:T.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:t};this.eventService.dispatchEvent(s)},n.prototype.onCheckboxClick=function(e){if(!(this.passive||this.eInput.disabled)){var t=this.isSelected(),i=this.selected=e.target.checked;this.refreshSelectedClass(i),this.dispatchChange(i,t,e)}},n.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",e===!0),this.eWrapper.classList.toggle("ag-indeterminate",e==null)},n}(da),DY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),RR=function(o){DY(n,o);function n(e){return o.call(this,e,"ag-radio-button","radio")||this}return n.prototype.isSelected=function(){return this.eInput.checked},n.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},n.prototype.addInputListeners=function(){o.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,T.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},n.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},n}(Ig),RY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),IY=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},PY=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},P0=function(){function o(n,e,t){this.localeService=n,this.optionsFactory=e,this.valueFormatter=t}return o.prototype.getModelAsString=function(n){var e=this;if(!n)return null;var t=n.operator!=null,i=this.localeService.getLocaleTextFunc();if(t){var r=n,s=r.conditions;if(!s){var a=r.condition1,l=r.condition2;s=[a,l]}var c=s.map(function(E){return e.getModelAsString(E)}),u=r.operator==="AND"?"andCondition":"orCondition";return c.join(" ".concat(i(u,TR[u])," "))}else{if(n.type===On.BLANK||n.type===On.NOT_BLANK)return i(n.type,n.type);var d=n,p=this.optionsFactory.getCustomOption(d.type),g=p||{},v=g.displayKey,y=g.displayName,x=g.numberOfInputs;return v&&y&&x===0?(i(v,y),y):this.conditionToString(d,p)}},o.prototype.updateParams=function(n){this.optionsFactory=n.optionsFactory},o.prototype.formatValue=function(n){var e;return this.valueFormatter?(e=this.valueFormatter(n??null))!==null&&e!==void 0?e:"":String(n)},o}(),On=function(o){RY(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.eTypes=[],e.eJoinOperatorPanels=[],e.eJoinOperatorsAnd=[],e.eJoinOperatorsOr=[],e.eConditionBodies=[],e.listener=function(){return e.onUiChanged()},e.lastUiCompletePosition=null,e.joinOperatorId=0,e}return n.prototype.getNumberOfInputs=function(e){var t=this.optionsFactory.getCustomOption(e);if(t){var i=t.numberOfInputs;return i??1}var r=[n.EMPTY,n.NOT_BLANK,n.BLANK];return e&&r.indexOf(e)>=0?0:e===n.IN_RANGE?2:1},n.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},n.prototype.setTypeFromFloatingFilter=function(e){var t=this;this.eTypes.forEach(function(i,r){r===0?i.setValue(e,!0):i.setValue(t.optionsFactory.getDefaultOption(),!0)})},n.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},n.prototype.getConditionTypes=function(){return this.eTypes.map(function(e){return e.getValue()})},n.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},n.prototype.getJoinOperator=function(){return this.eJoinOperatorsOr.length===0?this.defaultJoinOperator:this.eJoinOperatorsOr[0].getValue()===!0?"OR":"AND"},n.prototype.areModelsEqual=function(e,t){var i=this;if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var r=!e.operator,s=!t.operator,a=!r&&s||r&&!s;if(a)return!1;var l;if(r){var c=e,u=t;l=this.areSimpleModelsEqual(c,u)}else{var d=e,p=t;l=d.operator===p.operator&&bs(d.conditions,p.conditions,function(g,v){return i.areSimpleModelsEqual(g,v)})}return l},n.prototype.shouldRefresh=function(e){var t,i,r,s=this.getModel(),a=s?(t=s.conditions)!==null&&t!==void 0?t:[s]:null,l=(r=(i=e.filterOptions)===null||i===void 0?void 0:i.map(function(u){return typeof u=="string"?u:u.displayKey}))!==null&&r!==void 0?r:this.getDefaultFilterOptions(),c=!a||a.every(function(u){return l.find(function(d){return d===u.type})!==void 0});return!(!c||typeof e.maxNumConditions=="number"&&a&&a.length>e.maxNumConditions)},n.prototype.refresh=function(e){if(!this.shouldRefresh(e))return!1;var t=o.prototype.refresh.call(this,e);return t?(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0):!1},n.prototype.setModelIntoUi=function(e){var t=this,i=e.operator;if(i){var r=e;r.conditions||(r.conditions=[r.condition1,r.condition2]);var s=this.validateAndUpdateConditions(r.conditions),a=this.getNumConditions();if(s<a)this.removeConditionsAndOperators(s);else if(s>a)for(var l=a;l<s;l++)this.createJoinOperatorPanel(),this.createOption();var c=r.operator==="OR";this.eJoinOperatorsAnd.forEach(function(d){return d.setValue(!c,!0)}),this.eJoinOperatorsOr.forEach(function(d){return d.setValue(c,!0)}),r.conditions.forEach(function(d,p){t.eTypes[p].setValue(d.type,!0),t.setConditionIntoUi(d,p)})}else{var u=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(u.type,!0),this.setConditionIntoUi(u,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),Ni.resolve()},n.prototype.validateAndUpdateConditions=function(e){var t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),Je('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),t=this.maxNumConditions),t},n.prototype.doesFilterPass=function(e){var t=this,i,r=this.getModel();if(r==null)return!0;var s=r.operator,a=[];if(s){var l=r;a.push.apply(a,PY([],IY((i=l.conditions)!==null&&i!==void 0?i:[]),!1))}else a.push(r);var c=s&&s==="OR"?"some":"every";return a[c](function(u){return t.individualConditionPasses(e,u)})},n.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new bR,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")},n.prototype.setNumConditions=function(e){var t,i;e.suppressAndOrCondition!=null&&Je('Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.'),e.alwaysShowBothConditions!=null&&Je('Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.'),this.maxNumConditions=(t=e.maxNumConditions)!==null&&t!==void 0?t:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(Je('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=(i=e.numAlwaysVisibleConditions)!==null&&i!==void 0?i:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(Je('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(Je('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)},n.prototype.createOption=function(){var e=this,t=this.createManagedBean(new Rg);this.eTypes.push(t),t.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(t.getGui());var i=this.createValueElement();this.eConditionBodies.push(i),this.eFilterBody.appendChild(i),this.putOptionsIntoDropdown(t),this.resetType(t);var r=this.getNumConditions()-1;this.forEachPositionInput(r,function(s){return e.resetInput(s)}),this.addChangedListeners(t,r)},n.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),i=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var r=this.eJoinOperatorPanels.length-1,s=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,s),this.resetJoinOperatorOr(i,r,s),this.isReadOnly()||(t.onValueChange(this.listener),i.onValueChange(this.listener))},n.prototype.createJoinOperator=function(e,t,i){var r=this.createManagedBean(new RR);return e.push(r),r.addCssClass("ag-filter-condition-operator"),r.addCssClass("ag-filter-condition-operator-".concat(i)),t.appendChild(r.getGui()),r},n.prototype.getDefaultJoinOperator=function(e){return e==="AND"||e==="OR"?e:"AND"},n.prototype.createFilterListOptions=function(){var e=this,t=this.optionsFactory.getFilterOptions();this.filterListOptions=t.map(function(i){return typeof i=="string"?e.createBoilerplateListOption(i):e.createCustomListOption(i)})},n.prototype.putOptionsIntoDropdown=function(e){this.filterListOptions.forEach(function(t){e.addOption(t)}),e.setDisabled(this.filterListOptions.length<=1)},n.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},n.prototype.createCustomListOption=function(e){var t=e.displayKey,i=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:i?this.localeService.getLocaleTextFunc()(i.displayKey,i.displayName):this.translate(t)}},n.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},n.prototype.createBodyTemplate=function(){return""},n.prototype.getCssIdentifier=function(){return"simple-filter"},n.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},n.prototype.updateNumConditions=function(){for(var e,t=-1,i=!0,r=0;r<this.getNumConditions();r++)this.isConditionUiComplete(r)?t=r:i=!1;if(this.shouldAddNewConditionAtEnd(i))this.createJoinOperatorPanel(),this.createOption();else{var s=(e=this.lastUiCompletePosition)!==null&&e!==void 0?e:this.getNumConditions()-2;if(t<s){this.removeConditionsAndOperators(s+1);var a=t+1,l=s-a;l>0&&this.removeConditionsAndOperators(a,l),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t},n.prototype.updateConditionStatusesAndValues=function(e,t){var i=this;this.eTypes.forEach(function(s,a){var l=i.isConditionDisabled(a,e);s.setDisabled(l||i.filterListOptions.length<=1),a===1&&(jc(i.eJoinOperatorPanels[0],l),i.eJoinOperatorsAnd[0].setDisabled(l),i.eJoinOperatorsOr[0].setDisabled(l))}),this.eConditionBodies.forEach(function(s,a){It(s,i.isConditionBodyVisible(a))});var r=(t??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(function(s,a){s.setValue(!r,!0)}),this.eJoinOperatorsOr.forEach(function(s,a){s.setValue(r,!0)}),this.forEachInput(function(s,a,l,c){i.setElementDisplayed(s,a<c),i.setElementDisabled(s,i.isConditionDisabled(l,e))}),this.resetPlaceholder()},n.prototype.shouldAddNewConditionAtEnd=function(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()},n.prototype.removeConditionsAndOperators=function(e,t){if(!(e>=this.getNumConditions())){this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);var i=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,i,t),this.removeComponents(this.eJoinOperatorsAnd,i,t),this.removeComponents(this.eJoinOperatorsOr,i,t)}},n.prototype.removeElements=function(e,t,i){var r=this.removeItems(e,t,i);r.forEach(function(s){return Yo(s)})},n.prototype.removeComponents=function(e,t,i){var r=this,s=this.removeItems(e,t,i);s.forEach(function(a){Yo(a.getGui()),r.destroyBean(a)})},n.prototype.removeItems=function(e,t,i){return i==null?e.splice(t):e.splice(t,i)},n.prototype.afterGuiAttached=function(e){if(o.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!e?.suppressFocus)if(this.isReadOnly())this.eFilterBody.focus();else{var t=this.getInputs(0)[0];if(!t)return;t instanceof da&&t.getInputElement().focus()}},n.prototype.afterGuiDetached=function(){o.prototype.afterGuiDetached.call(this);var e=this.getModel();this.resetUiToActiveModel(e);for(var t=-1,i=-1,r=!1,s=this.getJoinOperator(),a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))t===-1&&(t=a,i=a);else{var l=a>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1),c=a<t;(l||c)&&(this.removeConditionsAndOperators(a,1),r=!0,c&&i--)}var u=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),u=!0),this.shouldAddNewConditionAtEnd(i===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),u=!0),u&&this.updateConditionStatusesAndValues(i,s),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=i},n.prototype.getPlaceholderText=function(e,t){var i=this.translate(e);if(Eg(this.filterPlaceholder)){var r=this.filterPlaceholder,s=this.eTypes[t].getValue(),a=this.translate(s);i=r({filterOptionKey:s,filterOption:a,placeholder:i})}else typeof this.filterPlaceholder=="string"&&(i=this.filterPlaceholder);return i},n.prototype.resetPlaceholder=function(){var e=this,t=this.localeService.getLocaleTextFunc();this.forEachInput(function(i,r,s,a){if(i instanceof da){var l=r===0&&a>1?"inRangeStart":r===0?"filterOoo":"inRangeEnd",c=r===0&&a>1?t("ariaFilterFromValue","Filter from value"):r===0?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");i.setInputPlaceholder(e.getPlaceholderText(l,s)),i.setInputAriaLabel(c)}})},n.prototype.setElementValue=function(e,t,i){e instanceof da&&e.setValue(t!=null?String(t):null,!0)},n.prototype.setElementDisplayed=function(e,t){e instanceof dt&&It(e.getGui(),t)},n.prototype.setElementDisabled=function(e,t){e instanceof dt&&jc(e.getGui(),t)},n.prototype.attachElementOnChange=function(e,t){e instanceof da&&e.onValueChange(t)},n.prototype.forEachInput=function(e){var t=this;this.getConditionTypes().forEach(function(i,r){t.forEachPositionTypeInput(r,i,e)})},n.prototype.forEachPositionInput=function(e,t){var i=this.getConditionType(e);this.forEachPositionTypeInput(e,i,t)},n.prototype.forEachPositionTypeInput=function(e,t,i){for(var r=this.getNumberOfInputs(t),s=this.getInputs(e),a=0;a<s.length;a++){var l=s[a];l!=null&&i(l,a,e,r)}},n.prototype.isConditionDisabled=function(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1},n.prototype.isConditionBodyVisible=function(e){var t=this.getConditionType(e),i=this.getNumberOfInputs(t);return i>0},n.prototype.isConditionUiComplete=function(e){if(e>=this.getNumConditions())return!1;var t=this.getConditionType(e);return!(t===n.EMPTY||this.getValues(e).some(function(i){return i==null}))},n.prototype.getNumConditions=function(){return this.eTypes.length},n.prototype.getUiCompleteConditions=function(){for(var e=[],t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e},n.prototype.createMissingConditionsAndOperators=function(){if(!this.isReadOnly())for(var e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()},n.prototype.resetUiToDefaults=function(e){var t=this;return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(function(i){return t.resetType(i)}),this.eJoinOperatorsAnd.forEach(function(i,r){return t.resetJoinOperatorAnd(i,r,t.joinOperatorId+r)}),this.eJoinOperatorsOr.forEach(function(i,r){return t.resetJoinOperatorOr(i,r,t.joinOperatorId+r)}),this.joinOperatorId++,this.forEachInput(function(i){return t.resetInput(i)}),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),Ni.resolve()},n.prototype.resetType=function(e){var t=this.localeService.getLocaleTextFunc(),i=t("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(i).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)},n.prototype.resetJoinOperatorAnd=function(e,t,i){this.resetJoinOperator(e,t,this.isDefaultOperator("AND"),this.translate("andCondition"),i)},n.prototype.resetJoinOperatorOr=function(e,t,i){this.resetJoinOperator(e,t,this.isDefaultOperator("OR"),this.translate("orCondition"),i)},n.prototype.resetJoinOperator=function(e,t,i,r,s){this.updateJoinOperatorDisabled(e.setValue(i,!0).setName("ag-simple-filter-and-or-".concat(this.getCompId(),"-").concat(s)).setLabel(r),t)},n.prototype.updateJoinOperatorsDisabled=function(){var e=this;this.eJoinOperatorsAnd.forEach(function(t,i){return e.updateJoinOperatorDisabled(t,i)}),this.eJoinOperatorsOr.forEach(function(t,i){return e.updateJoinOperatorDisabled(t,i)})},n.prototype.updateJoinOperatorDisabled=function(e,t){e.setDisabled(this.isReadOnly()||t>0)},n.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},n.prototype.setConditionIntoUi=function(e,t){var i=this,r=this.mapValuesFromModel(e);this.forEachInput(function(s,a,l,c){l===t&&i.setElementValue(s,r[a]!=null?r[a]:null)})},n.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput(function(i,r,s,a){t.setElementValue(i,r===0&&s===0?e:null,!0)})},n.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},n.prototype.addChangedListeners=function(e,t){var i=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,function(r){i.attachElementOnChange(r,i.listener)}))},n.prototype.individualConditionPasses=function(e,t){var i=this.getCellValue(e.node),r=this.mapValuesFromModel(t),s=this.optionsFactory.getCustomOption(t.type),a=this.evaluateCustomFilter(s,r,i);return a??(i==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,i,t,e))},n.prototype.evaluateCustomFilter=function(e,t,i){if(e!=null){var r=e.predicate;if(r!=null&&!t.some(function(s){return s==null}))return r(t,i)}},n.prototype.isBlank=function(e){return e==null||typeof e=="string"&&e.trim().length===0},n.prototype.hasInvalidInputs=function(){return!1},n.EMPTY="empty",n.BLANK="blank",n.NOT_BLANK="notBlank",n.EQUALS="equals",n.NOT_EQUAL="notEqual",n.LESS_THAN="lessThan",n.LESS_THAN_OR_EQUAL="lessThanOrEqual",n.GREATER_THAN="greaterThan",n.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",n.IN_RANGE="inRange",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.STARTS_WITH="startsWith",n.ENDS_WITH="endsWith",n}(dg),MY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Kn=function(o){MY(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.scalarFilterParams=e},n.prototype.evaluateNullValue=function(e){switch(e){case n.EQUALS:case n.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case n.GREATER_THAN:case n.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case n.LESS_THAN:case n.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case n.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case n.BLANK:return!0;case n.NOT_BLANK:return!1}return!1},n.prototype.evaluateNonNullValue=function(e,t,i){var r=this.comparator(),s=e[0]!=null?r(e[0],t):0;switch(i.type){case n.EQUALS:return s===0;case n.NOT_EQUAL:return s!==0;case n.GREATER_THAN:return s>0;case n.GREATER_THAN_OR_EQUAL:return s>=0;case n.LESS_THAN:return s<0;case n.LESS_THAN_OR_EQUAL:return s<=0;case n.IN_RANGE:{var a=r(e[1],t);return this.scalarFilterParams.inRangeInclusive?s>=0&&a<=0:s>0&&a<0}case n.BLANK:return this.isBlank(t);case n.NOT_BLANK:return!this.isBlank(t);default:return console.warn('AG Grid: Unexpected type of filter "'+i.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},n}(On),IR=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),$_=function(){return $_=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},$_.apply(this,arguments)},FY=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},_O=1e3,SO=1/0,PR=function(o){IR(n,o);function n(e,t,i){var r=o.call(this,t,i)||this;return r.dateFilterParams=e,r}return n.prototype.conditionToString=function(e,t){var i=e.type,r=(t||{}).numberOfInputs,s=i==On.IN_RANGE||r===2,a=rr(e.dateFrom),l=rr(e.dateTo),c=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(s){var u=a!==null?Hc(a,c):"null",d=l!==null?Hc(l,c):"null";return"".concat(u,"-").concat(d)}return a!=null?Hc(a,c):"".concat(i)},n.prototype.updateParams=function(e){o.prototype.updateParams.call(this,e),this.dateFilterParams=e.dateFilterParams},n}(P0),MR=function(o){IR(n,o);function n(){var e=o.call(this,"dateFilter")||this;return e.eConditionPanelsFrom=[],e.eConditionPanelsTo=[],e.dateConditionFromComps=[],e.dateConditionToComps=[],e.minValidYear=_O,e.maxValidYear=SO,e.minValidDate=null,e.maxValidDate=null,e}return n.prototype.afterGuiAttached=function(e){o.prototype.afterGuiAttached.call(this,e),this.dateConditionFromComps[0].afterGuiAttached(e)},n.prototype.mapValuesFromModel=function(e){var t=e||{},i=t.dateFrom,r=t.dateTo,s=t.type;return[i&&rr(i)||null,r&&rr(r)||null].slice(0,this.getNumberOfInputs(s))},n.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},n.prototype.defaultComparator=function(e,t){var i=t;return t==null||i<e?-1:i>e?1:0},n.prototype.setParams=function(e){this.dateFilterParams=e,o.prototype.setParams.call(this,e);var t=function(i,r){if(e[i]!=null)if(isNaN(e[i]))console.warn("AG Grid: DateFilter ".concat(i," is not a number"));else return e[i]==null?r:Number(e[i]);return r};this.minValidYear=t("minValidYear",_O),this.maxValidYear=t("maxValidYear",SO),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:rr(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:rr(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new PR(this.dateFilterParams,this.localeService,this.optionsFactory)},n.prototype.createDateCompWrapper=function(e){var t=this,i=new wR(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc(function(){return i.destroy()}),i},n.prototype.setElementValue=function(e,t){e.setDate(t)},n.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},n.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},n.prototype.getDefaultFilterOptions=function(){return n.DEFAULT_FILTER_OPTIONS},n.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},n.prototype.createFromToElement=function(e,t,i,r){var s=document.createElement("div");s.classList.add("ag-filter-".concat(r)),s.classList.add("ag-filter-date-".concat(r)),t.push(s),e.appendChild(s),i.push(this.createDateCompWrapper(s))},n.prototype.removeValueElements=function(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)},n.prototype.removeDateComps=function(e,t,i){var r=this.removeItems(e,t,i);r.forEach(function(s){return s.destroy()})},n.prototype.isValidDateValue=function(e){if(e===null)return!1;if(this.minValidDate){if(e<this.minValidDate)return!1}else if(e.getUTCFullYear()<this.minValidYear)return!1;if(this.maxValidDate){if(e>this.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0},n.prototype.isConditionUiComplete=function(e){var t=this;if(!o.prototype.isConditionUiComplete.call(this,e))return!1;var i=!0;return this.forEachInput(function(r,s,a,l){a!==e||!i||s>=l||(i=i&&t.isValidDateValue(r.getDate()))}),i},n.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},n.prototype.getFilterType=function(){return"date"},n.prototype.createCondition=function(e){var t=this.getConditionType(e),i={},r=this.getValues(e);return r.length>0&&(i.dateFrom=qr(r[0])),r.length>1&&(i.dateTo=qr(r[1])),$_({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},i)},n.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),i=e("ariaFilterValue","Filter Value");this.forEachInput(function(r){r.setInputPlaceholder(t),r.setInputAriaLabel(i)})},n.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},n.prototype.getValues=function(e){var t=[];return this.forEachPositionInput(e,function(i,r,s,a){r<a&&t.push(i.getDate())}),t},n.prototype.translate=function(e){return e===Kn.LESS_THAN?o.prototype.translate.call(this,"before"):e===Kn.GREATER_THAN?o.prototype.translate.call(this,"after"):o.prototype.translate.call(this,e)},n.prototype.getModelAsString=function(e){var t;return(t=this.filterModelFormatter.getModelAsString(e))!==null&&t!==void 0?t:""},n.DEFAULT_FILTER_OPTIONS=[Kn.EQUALS,Kn.NOT_EQUAL,Kn.LESS_THAN,Kn.GREATER_THAN,Kn.IN_RANGE,Kn.BLANK,Kn.NOT_BLANK],FY([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),n}(Kn),AY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),FR=function(o){AY(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.getDefaultDebounceMs=function(){return 0},n.prototype.destroy=function(){o.prototype.destroy.call(this)},n.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},n.prototype.isEventFromDataChange=function(e){return e?.afterDataChange},n.prototype.getLastType=function(){return this.lastType},n.prototype.isReadOnly=function(){return this.readOnly},n.prototype.setLastTypeFromModel=function(e){if(!e){this.lastType=this.optionsFactory.getDefaultOption();return}var t=e.operator,i;if(t){var r=e;i=r.conditions[0]}else i=e;this.lastType=i.type},n.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);var t=e.operator;if(t)return!1;var i=e;return this.isTypeEditable(i.type)},n.prototype.init=function(e){this.setSimpleParams(e,!1)},n.prototype.setSimpleParams=function(e,t){t===void 0&&(t=!0),this.optionsFactory=new bR,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),t||(this.lastType=this.optionsFactory.getDefaultOption()),this.readOnly=!!e.filterParams.readOnly;var i=this.isTypeEditable(this.optionsFactory.getDefaultOption());this.setEditable(i)},n.prototype.onParamsUpdated=function(e){this.refresh(e)},n.prototype.refresh=function(e){this.setSimpleParams(e)},n.prototype.doesFilterHaveSingleInput=function(e){var t=this.optionsFactory.getCustomOption(e),i=(t||{}).numberOfInputs;return i==null||i==1},n.prototype.isTypeEditable=function(e){var t=[On.IN_RANGE,On.EMPTY,On.BLANK,On.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},n}(dt),NY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),KC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},LY=function(o){NY(n,o);function n(){return o.call(this,`
  59. <div class="ag-floating-filter-input" role="presentation">
  60. <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>
  61. <div ref="eDateWrapper" style="display: flex;"></div>
  62. </div>`)||this}return n.prototype.getDefaultFilterOptions=function(){return MR.DEFAULT_FILTER_OPTIONS},n.prototype.init=function(e){o.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new PR(this.filterParams,this.localeService,this.optionsFactory);var t=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))},n.prototype.onParamsUpdated=function(e){this.refresh(e)},n.prototype.refresh=function(e){o.prototype.refresh.call(this,e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())},n.prototype.updateCompOnModelChange=function(e){var t=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){if(e){var i=e;this.dateComp.setDate(rr(i.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)},n.prototype.setEditable=function(e){It(this.eDateWrapper,e),It(this.eReadOnlyText.getGui(),!e)},n.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(o.prototype.setLastTypeFromModel.call(this,e),this.updateCompOnModelChange(e))},n.prototype.onDateChanged=function(){var e=this,t=this.dateComp.getDate(),i=qr(t);this.params.parentFilterInstance(function(r){if(r){var s=rr(i);r.onFloatingFilterChanged(e.getLastType()||null,s)}})},n.prototype.getDateComponentParams=function(){var e=dg.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:zr(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}},n.prototype.createDateComponent=function(){var e=this;this.dateComp=new wR(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},n.prototype.updateDateComponent=function(){var e=this.gridOptionsService.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(e)},n.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},KC([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),KC([Ce("eReadOnlyText")],n.prototype,"eReadOnlyText",void 0),KC([Ce("eDateWrapper")],n.prototype,"eDateWrapper",void 0),n}(FR),kY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),VY=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},GY=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},HY=function(o){kY(n,o);function n(){return o.call(this,`
  63. <div class="ag-filter-filter">
  64. <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>
  65. </div>`)||this}return n.prototype.destroy=function(){o.prototype.destroy.call(this)},n.prototype.init=function(e){var t=this;this.params=e,this.setParams(e);var i=this.gridOptionsService.getDocument(),r=this.eDateInput.getInputElement();this.addManagedListener(r,"mousedown",function(){t.eDateInput.isDisabled()||t.usingSafariDatePicker||r.focus()}),this.addManagedListener(r,"input",function(s){s.target===i.activeElement&&(t.eDateInput.isDisabled()||t.params.onDateChanged())})},n.prototype.setParams=function(e){var t=this.eDateInput.getInputElement(),i=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=i&&Zo(),t.type=i?"date":"text";var r=e.filterParams||{},s=r.minValidYear,a=r.maxValidYear,l=r.minValidDate,c=r.maxValidDate;if(l&&s&&Je("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),c&&a&&Je("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),l&&c){var u=GY([l,c].map(function(g){return g instanceof Date?g:rr(g)}),2),d=u[0],p=u[1];d&&p&&d.getTime()>p.getTime()&&Je("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}l?l instanceof Date?t.min=Hc(l):t.min=l:s&&(t.min="".concat(s,"-01-01")),c?c instanceof Date?t.max=Hc(c):t.max=c:a&&(t.max="".concat(a,"-12-31"))},n.prototype.onParamsUpdated=function(e){this.refresh(e)},n.prototype.refresh=function(e){this.params=e,this.setParams(e)},n.prototype.getDate=function(){return rr(this.eDateInput.getValue())},n.prototype.setDate=function(e){this.eDateInput.setValue(qr(e,!1))},n.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},n.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},n.prototype.afterGuiAttached=function(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()},n.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:zg()||g0()||Zo()&&f0()>=14.1},VY([Ce("eDateInput")],n.prototype,"eDateInput",void 0),n}(dt),BY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),dl=function(o){BY(n,o);function n(e,t,i){return t===void 0&&(t="ag-text-field"),i===void 0&&(i="text"),o.call(this,e,t,i)||this}return n.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},n.prototype.setValue=function(e,t){return this.eInput.value!==e&&(this.eInput.value=ne(e)?e:""),o.prototype.setValue.call(this,e,t)},n.prototype.setStartValue=function(e){this.setValue(e,!0)},n.prototype.preventDisallowedCharacters=function(){var e=new RegExp("[".concat(this.config.allowedCharPattern,"]")),t=function(i){Dg(i)&&i.key&&!e.test(i.key)&&i.preventDefault()};this.addManagedListener(this.eInput,"keydown",t),this.addManagedListener(this.eInput,"paste",function(i){var r,s=(r=i.clipboardData)===null||r===void 0?void 0:r.getData("text");s&&s.split("").some(function(a){return!e.test(a)})&&i.preventDefault()})},n}(da),$Y=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),M0=function(o){$Y(n,o);function n(e){return o.call(this,e,"ag-number-field","number")||this}return n.prototype.postConstruct=function(){var e=this;o.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",function(){var t=parseFloat(e.eInput.value),i=isNaN(t)?"":e.normalizeValue(t.toString());e.value!==i&&e.setValue(i)}),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},n.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},n.prototype.normalizeValue=function(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));var t=parseFloat(e);return this.min!=null&&t<this.min?e=this.min.toString():this.max!=null&&t>this.max&&(e=this.max.toString()),e},n.prototype.adjustPrecision=function(e,t){if(this.precision==null)return e;if(t){var i=parseFloat(e).toFixed(this.precision);return parseFloat(i).toString()}var r=String(e).split(".");if(r.length>1){if(r[1].length<=this.precision)return e;if(this.precision>0)return"".concat(r[0],".").concat(r[1].slice(0,this.precision))}return r[0]},n.prototype.setMin=function(e){return this.min===e?this:(this.min=e,Xo(this.eInput,"min",e),this)},n.prototype.setMax=function(e){return this.max===e?this:(this.max=e,Xo(this.eInput,"max",e),this)},n.prototype.setPrecision=function(e){return this.precision=e,this},n.prototype.setStep=function(e){return this.step===e?this:(this.step=e,Xo(this.eInput,"step",e),this)},n.prototype.setValue=function(e,t){var i=this;return this.setValueOrInputValue(function(r){return o.prototype.setValue.call(i,r,t)},function(){return i},e)},n.prototype.setStartValue=function(e){var t=this;return this.setValueOrInputValue(function(i){return o.prototype.setValue.call(t,i,!0)},function(i){t.eInput.value=i},e)},n.prototype.setValueOrInputValue=function(e,t,i){if(ne(i)){var r=this.isScientificNotation(i);if(r&&this.eInput.validity.valid)return e(i);if(!r){i=this.adjustPrecision(i);var s=this.normalizeValue(i);r=i!=s}if(r)return t(i)}return e(i)},n.prototype.getValue=function(){if(this.eInput.validity.valid){var e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):o.prototype.getValue.call(this)}},n.prototype.isScientificNotation=function(e){return typeof e=="string"&&e.includes("e")},n}(dl),AR=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),NR=function(o){AR(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.conditionToString=function(e,t){var i=(t||{}).numberOfInputs,r=e.type==On.IN_RANGE||i===2;return r?"".concat(this.formatValue(e.filter),"-").concat(this.formatValue(e.filterTo)):e.filter!=null?this.formatValue(e.filter):"".concat(e.type)},n}(P0);function j_(o){var n=(o??{}).allowedCharPattern;return n??null}var LR=function(o){AR(n,o);function n(){var e=o.call(this,"numberFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return n.prototype.refresh=function(e){return this.numberFilterParams.allowedCharPattern!==e.allowedCharPattern?!1:o.prototype.refresh.call(this,e)},n.prototype.mapValuesFromModel=function(e){var t=e||{},i=t.filter,r=t.filterTo,s=t.type;return[this.processValue(i),this.processValue(r)].slice(0,this.getNumberOfInputs(s))},n.prototype.getDefaultDebounceMs=function(){return 500},n.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},n.prototype.setParams=function(e){this.numberFilterParams=e,o.prototype.setParams.call(this,e),this.filterModelFormatter=new NR(this.localeService,this.optionsFactory,this.numberFilterParams.numberFormatter)},n.prototype.getDefaultFilterOptions=function(){return n.DEFAULT_FILTER_OPTIONS},n.prototype.setElementValue=function(e,t,i){var r=!i&&this.numberFilterParams.numberFormatter?this.numberFilterParams.numberFormatter(t??null):t;o.prototype.setElementValue.call(this,e,r)},n.prototype.createValueElement=function(){var e=j_(this.numberFilterParams),t=document.createElement("div");return t.classList.add("ag-filter-body"),Qn(t,"presentation"),this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t},n.prototype.createFromToElement=function(e,t,i,r){var s=this.createManagedBean(r?new dl({allowedCharPattern:r}):new M0);s.addCssClass("ag-filter-".concat(i)),s.addCssClass("ag-filter-filter"),t.push(s),e.appendChild(s.getGui())},n.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},n.prototype.getValues=function(e){var t=this,i=[];return this.forEachPositionInput(e,function(r,s,a,l){s<l&&i.push(t.processValue(t.stringToFloat(r.getValue())))}),i},n.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},n.prototype.getFilterType=function(){return"number"},n.prototype.processValue=function(e){return e==null||isNaN(e)?null:e},n.prototype.stringToFloat=function(e){if(typeof e=="number")return e;var t=Qo(e);return t!=null&&t.trim()===""&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):t==null||t.trim()==="-"?null:parseFloat(t)},n.prototype.createCondition=function(e){var t=this.getConditionType(e),i={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(i.filter=r[0]),r.length>1&&(i.filterTo=r[1]),i},n.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},n.prototype.getModelAsString=function(e){var t;return(t=this.filterModelFormatter.getModelAsString(e))!==null&&t!==void 0?t:""},n.prototype.hasInvalidInputs=function(){var e=!1;return this.forEachInput(function(t){if(!t.getInputElement().validity.valid){e=!0;return}}),e},n.DEFAULT_FILTER_OPTIONS=[Kn.EQUALS,Kn.NOT_EQUAL,Kn.GREATER_THAN,Kn.GREATER_THAN_OR_EQUAL,Kn.LESS_THAN,Kn.LESS_THAN_OR_EQUAL,Kn.IN_RANGE,Kn.BLANK,Kn.NOT_BLANK],n}(Kn),kR=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),pg=function(){return pg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},pg.apply(this,arguments)},VR=function(o){kR(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.conditionToString=function(e,t){var i=(t||{}).numberOfInputs,r=e.type==On.IN_RANGE||i===2;return r?"".concat(e.filter,"-").concat(e.filterTo):e.filter!=null?"".concat(e.filter):"".concat(e.type)},n}(P0),F0=function(o){kR(n,o);function n(){var e=o.call(this,"textFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return n.trimInput=function(e){var t=e&&e.trim();return t===""?e:t},n.prototype.getDefaultDebounceMs=function(){return 500},n.prototype.setParams=function(e){this.textFilterParams=e,o.prototype.setParams.call(this,e),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?n.DEFAULT_FORMATTER:n.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new VR(this.localeService,this.optionsFactory)},n.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(mt.warnOnce("textCustomComparator is deprecated, use textMatcher instead."),function(t){var i=t.filterOption,r=t.value,s=t.filterText;return e(i,r,s)}):this.textFilterParams.textMatcher||n.DEFAULT_MATCHER},n.prototype.createCondition=function(e){var t=this.getConditionType(e),i={filterType:this.getFilterType(),type:t},r=this.getValuesWithSideEffects(e,!0);return r.length>0&&(i.filter=r[0]),r.length>1&&(i.filterTo=r[1]),i},n.prototype.getFilterType=function(){return"text"},n.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},n.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},n.prototype.getValues=function(e){return this.getValuesWithSideEffects(e,!1)},n.prototype.getValuesWithSideEffects=function(e,t){var i=this,r=[];return this.forEachPositionInput(e,function(s,a,l,c){var u;if(a<c){var d=Qo(s.getValue());t&&i.textFilterParams.trimInput&&(d=(u=n.trimInput(d))!==null&&u!==void 0?u:null,s.setValue(d,!0)),r.push(d)}}),r},n.prototype.getDefaultFilterOptions=function(){return n.DEFAULT_FILTER_OPTIONS},n.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),Qn(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e},n.prototype.createFromToElement=function(e,t,i){var r=this.createManagedBean(new dl);r.addCssClass("ag-filter-".concat(i)),r.addCssClass("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())},n.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},n.prototype.mapValuesFromModel=function(e){var t=e||{},i=t.filter,r=t.filterTo,s=t.type;return[i||null,r||null].slice(0,this.getNumberOfInputs(s))},n.prototype.evaluateNullValue=function(e){var t=[On.NOT_EQUAL,On.NOT_CONTAINS,On.BLANK];return e?t.indexOf(e)>=0:!1},n.prototype.evaluateNonNullValue=function(e,t,i,r){var s=this,a=e.map(function(E){return s.formatter(E)})||[],l=this.formatter(t),c=this.textFilterParams,u=c.api,d=c.colDef,p=c.column,g=c.columnApi,v=c.context,y=c.textFormatter;if(i.type===On.BLANK)return this.isBlank(t);if(i.type===On.NOT_BLANK)return!this.isBlank(t);var x={api:u,colDef:d,column:p,columnApi:g,context:v,node:r.node,data:r.data,filterOption:i.type,value:l,textFormatter:y};return a.some(function(E){return s.matcher(pg(pg({},x),{filterText:E}))})},n.prototype.getModelAsString=function(e){var t;return(t=this.filterModelFormatter.getModelAsString(e))!==null&&t!==void 0?t:""},n.DEFAULT_FILTER_OPTIONS=[On.CONTAINS,On.NOT_CONTAINS,On.EQUALS,On.NOT_EQUAL,On.STARTS_WITH,On.ENDS_WITH,On.BLANK,On.NOT_BLANK],n.DEFAULT_FORMATTER=function(e){return e},n.DEFAULT_LOWERCASE_FORMATTER=function(e){return e==null?null:e.toString().toLowerCase()},n.DEFAULT_MATCHER=function(e){var t=e.filterOption,i=e.value,r=e.filterText;if(r==null)return!1;switch(t){case n.CONTAINS:return i.indexOf(r)>=0;case n.NOT_CONTAINS:return i.indexOf(r)<0;case n.EQUALS:return i===r;case n.NOT_EQUAL:return i!=r;case n.STARTS_WITH:return i.indexOf(r)===0;case n.ENDS_WITH:var s=i.lastIndexOf(r);return s>=0&&s===i.length-r.length;default:return!1}},n}(On),GR=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),qC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},HR=function(o){GR(n,o);function n(e){var t=o.call(this)||this;return t.params=e,t.valueChangedListener=function(){},t}return n.prototype.setupGui=function(e){var t=this,i;this.eFloatingFilterTextInput=this.createManagedBean(new dl((i=this.params)===null||i===void 0?void 0:i.config));var r=this.eFloatingFilterTextInput.getGui();e.appendChild(r),this.addManagedListener(r,"input",function(s){return t.valueChangedListener(s)}),this.addManagedListener(r,"keydown",function(s){return t.valueChangedListener(s)})},n.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},n.prototype.setAutoComplete=function(e){this.eFloatingFilterTextInput.setAutoComplete(e)},n.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},n.prototype.setValue=function(e,t){this.eFloatingFilterTextInput.setValue(e,t)},n.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},n.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},n.prototype.setAriaLabel=function(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)},n}(re),BR=function(o){GR(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){this.setTemplate(`
  66. <div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>
  67. `)},n.prototype.getDefaultDebounceMs=function(){return 500},n.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},n.prototype.init=function(e){this.setupFloatingFilterInputService(e),o.prototype.init.call(this,e),this.setTextInputParams(e)},n.prototype.setupFloatingFilterInputService=function(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},n.prototype.setTextInputParams=function(e){var t;this.params=e;var i=(t=e.browserAutoComplete)!==null&&t!==void 0?t:!1;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:i}),this.applyActive=dg.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var r=dg.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),s=zr(this.syncUpWithParentFilter.bind(this),r);this.floatingFilterInputService.setValueChangedListener(s)}},n.prototype.onParamsUpdated=function(e){this.refresh(e)},n.prototype.refresh=function(e){o.prototype.refresh.call(this,e),this.setTextInputParams(e)},n.prototype.recreateFloatingFilterInputService=function(e){var t=this.floatingFilterInputService.getValue();ti(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(t,!0)},n.prototype.getAriaLabel=function(e){var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),i=this.localeService.getLocaleTextFunc();return"".concat(t," ").concat(i("ariaFilterInput","Filter Input"))},n.prototype.syncUpWithParentFilter=function(e){var t=this,i=e.key===q.ENTER;if(!(this.applyActive&&!i)){var r=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(r=F0.trimInput(r),this.floatingFilterInputService.setValue(r,!0)),this.params.parentFilterInstance(function(s){s&&s.onFloatingFilterChanged(t.getLastType()||null,r||null)})}},n.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},qC([b("columnModel")],n.prototype,"columnModel",void 0),qC([Ce("eFloatingFilterInputContainer")],n.prototype,"eFloatingFilterInputContainer",void 0),qC([pe],n.prototype,"postConstruct",null),n}(FR),$R=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),jY=function(o){$R(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.valueChangedListener=function(){},e.numberInputActive=!0,e}return n.prototype.setupGui=function(e){var t=this;this.eFloatingFilterNumberInput=this.createManagedBean(new M0),this.eFloatingFilterTextInput=this.createManagedBean(new dl),this.eFloatingFilterTextInput.setDisabled(!0);var i=this.eFloatingFilterNumberInput.getGui(),r=this.eFloatingFilterTextInput.getGui();e.appendChild(i),e.appendChild(r),this.setupListeners(i,function(s){return t.valueChangedListener(s)}),this.setupListeners(r,function(s){return t.valueChangedListener(s)})},n.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},n.prototype.setAutoComplete=function(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)},n.prototype.getValue=function(){return this.getActiveInputElement().getValue()},n.prototype.setValue=function(e,t){this.getActiveInputElement().setValue(e,t)},n.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},n.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},n.prototype.setupListeners=function(e,t){this.addManagedListener(e,"input",t),this.addManagedListener(e,"keydown",t)},n.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},n.prototype.setAriaLabel=function(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)},n}(re),WY=function(o){$R(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.init=function(e){var t;o.prototype.init.call(this,e),this.filterModelFormatter=new NR(this.localeService,this.optionsFactory,(t=e.filterParams)===null||t===void 0?void 0:t.numberFormatter)},n.prototype.onParamsUpdated=function(e){this.refresh(e)},n.prototype.refresh=function(e){var t=j_(e.filterParams);t!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),o.prototype.refresh.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},n.prototype.getDefaultFilterOptions=function(){return LR.DEFAULT_FILTER_OPTIONS},n.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},n.prototype.createFloatingFilterInputService=function(e){return this.allowedCharPattern=j_(e.filterParams),this.allowedCharPattern?this.createManagedBean(new HR({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new jY)},n}(BR),UY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),KY=function(o){UY(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.init=function(e){o.prototype.init.call(this,e),this.filterModelFormatter=new VR(this.localeService,this.optionsFactory)},n.prototype.onParamsUpdated=function(e){this.refresh(e)},n.prototype.refresh=function(e){o.prototype.refresh.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},n.prototype.getDefaultFilterOptions=function(){return F0.DEFAULT_FILTER_OPTIONS},n.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},n.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new HR)},n}(BR),xi=function(){function o(n,e){e===void 0&&(e=!1);var t=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new ga,this.eElement=n,this.preventMouseClick=e;var i=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",i,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push(function(){t.eElement.removeEventListener("touchstart",i,{passive:!0}),t.eElement.removeEventListener("touchmove",r,{passive:!0}),t.eElement.removeEventListener("touchend",s,{passive:!1})})}return o.prototype.getActiveTouch=function(n){for(var e=0;e<n.length;e++){var t=n[e].identifier===this.touchStart.identifier;if(t)return n[e]}return null},o.prototype.addEventListener=function(n,e){this.eventService.addEventListener(n,e)},o.prototype.removeEventListener=function(n,e){this.eventService.removeEventListener(n,e)},o.prototype.onTouchStart=function(n){var e=this;if(!this.touching){this.touchStart=n.touches[0],this.touching=!0,this.moved=!1;var t=this.touchStart;window.setTimeout(function(){var i=e.touchStart===t;if(e.touching&&i&&!e.moved){e.moved=!0;var r={type:o.EVENT_LONG_TAP,touchStart:e.touchStart,touchEvent:n};e.eventService.dispatchEvent(r)}},500)}},o.prototype.onTouchMove=function(n){if(this.touching){var e=this.getActiveTouch(n.touches);if(e){var t=!R0(e,this.touchStart,4);t&&(this.moved=!0)}}},o.prototype.onTouchEnd=function(n){if(this.touching){if(!this.moved){var e={type:o.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(e),this.checkForDoubleTap()}this.preventMouseClick&&n.cancelable&&n.preventDefault(),this.touching=!1}},o.prototype.checkForDoubleTap=function(){var n=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0){var e=n-this.lastTapTime;if(e>o.DOUBLE_TAP_MILLIS){var t={type:o.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(t),this.lastTapTime=null}else this.lastTapTime=n}else this.lastTapTime=n},o.prototype.destroy=function(){this.destroyFuncs.forEach(function(n){return n()})},o.EVENT_TAP="tap",o.EVENT_DOUBLE_TAP="doubleTap",o.EVENT_LONG_TAP="longTap",o.DOUBLE_TAP_MILLIS=500,o}(),qY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ka=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},A0=function(o){qY(n,o);function n(e){var t=o.call(this)||this;return e||t.setTemplate(n.TEMPLATE),t}return n.prototype.attachCustomElements=function(e,t,i,r,s){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=i,this.eSortMixed=r,this.eSortNone=s},n.prototype.setupSort=function(e,t){var i=this;t===void 0&&(t=!1),this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),this.column.isSortable()&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedPropertyListener("unSortIcon",function(){return i.updateIcons()}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return i.updateIcons()}),this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,function(){return i.onSortChanged()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return i.onSortChanged()}),this.onSortChanged())},n.prototype.addInIcon=function(e,t,i){if(t!=null){var r=Gn(e,this.gridOptionsService,i);r&&t.appendChild(r)}},n.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},n.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var t=e==="asc";It(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){var i=e==="desc";It(this.eSortDesc,i,{skipAriaHidden:!0})}if(this.eSortNone){var r=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.get("unSortIcon"),s=e==null;It(this.eSortNone,!r&&s,{skipAriaHidden:!0})}},n.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var t=this.column.getColDef().showRowGroup,i=this.gridOptionsService.isColumnsSortingCoupledToGroup();i&&t&&(this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},n.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e=this.sortController.getDisplaySortForColumn(this.column)==="mixed";It(this.eSortMixed,e,{skipAriaHidden:!0})}},n.prototype.updateSortOrder=function(){var e=this,t;if(this.eSortOrder){var i=this.sortController.getColumnsWithSortingOrdered(),r=(t=this.sortController.getDisplaySortIndexForColumn(this.column))!==null&&t!==void 0?t:-1,s=i.some(function(l){var c;return(c=e.sortController.getDisplaySortIndexForColumn(l))!==null&&c!==void 0?c:-1>=1}),a=r>=0&&s;It(this.eSortOrder,a,{skipAriaHidden:!0}),r>=0?this.eSortOrder.textContent=(r+1).toString():ti(this.eSortOrder)}},n.TEMPLATE=`<span class="ag-sort-indicator-container">
  68. <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>
  69. <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>
  70. <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>
  71. <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>
  72. <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>
  73. </span>`,Ka([Ce("eSortOrder")],n.prototype,"eSortOrder",void 0),Ka([Ce("eSortAsc")],n.prototype,"eSortAsc",void 0),Ka([Ce("eSortDesc")],n.prototype,"eSortDesc",void 0),Ka([Ce("eSortMixed")],n.prototype,"eSortMixed",void 0),Ka([Ce("eSortNone")],n.prototype,"eSortNone",void 0),Ka([b("columnModel")],n.prototype,"columnModel",void 0),Ka([b("sortController")],n.prototype,"sortController",void 0),n}(dt),YY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),qi=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},W_=function(o){YY(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return n.prototype.destroy=function(){o.prototype.destroy.call(this)},n.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||this.workOutSort()!=this.currentSort||this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide?!1:(this.setDisplayName(e),!0)},n.prototype.workOutTemplate=function(){var e,t=(e=this.params.template)!==null&&e!==void 0?e:n.TEMPLATE;return t=t&&t.trim?t.trim():t,t},n.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.setDisplayName(e)},n.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=Yn(this.currentDisplayName,!0);this.eText&&(this.eText.textContent=t)}},n.prototype.addInIcon=function(e,t,i){if(t!=null){var r=Gn(e,this.gridOptionsService,i);r&&t.appendChild(r)}},n.prototype.setupTap=function(){var e=this,t=this.gridOptionsService;if(!t.get("suppressTouch")){var i=new xi(this.getGui(),!0),r=this.shouldSuppressMenuHide(),s=r&&ne(this.eMenu),a=s?new xi(this.eMenu,!0):i;if(this.params.enableMenu){var l=s?"EVENT_TAP":"EVENT_LONG_TAP",c=function(p){return e.params.showColumnMenuAfterMouseClick(p.touchStart)};this.addManagedListener(a,xi[l],c)}if(this.params.enableSorting){var u=function(p){var g,v,y=p.touchStart.target;r&&(!((g=e.eMenu)===null||g===void 0)&&g.contains(y)||!((v=e.eFilterButton)===null||v===void 0)&&v.contains(y))||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")};this.addManagedListener(i,xi.EVENT_TAP,u)}if(this.params.enableFilterButton){var d=new xi(this.eFilterButton,!0);this.addManagedListener(d,"tap",function(){return e.params.showFilter(e.eFilterButton)}),this.addDestroyFunc(function(){return d.destroy()})}this.addDestroyFunc(function(){return i.destroy()}),s&&this.addDestroyFunc(function(){return a.destroy()})}},n.prototype.workOutShowMenu=function(){return this.params.enableMenu&&this.menuService.isHeaderMenuButtonEnabled()},n.prototype.shouldSuppressMenuHide=function(){return this.menuService.isHeaderMenuButtonAlwaysShowEnabled()},n.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){Yo(this.eMenu),this.eMenu=void 0;return}var t=this.menuService.isLegacyMenuEnabled();this.addInIcon(t?"menu":"menuAlt",this.eMenu,this.params.column),this.eMenu.classList.toggle("ag-header-menu-icon",!t),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedListener(this.eMenu,"click",function(){return e.params.showColumnMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",this.currentSuppressMenuHide)}},n.prototype.onMenuKeyboardShortcut=function(e){var t,i,r,s,a=this.params.column,l=this.menuService.isLegacyMenuEnabled();if(e&&!l){if(this.menuService.isFilterMenuInHeaderEnabled(a))return this.params.showFilter((i=(t=this.eFilterButton)!==null&&t!==void 0?t:this.eMenu)!==null&&i!==void 0?i:this.getGui()),!0}else if(this.params.enableMenu)return this.params.showColumnMenu((s=(r=this.eMenu)!==null&&r!==void 0?r:this.eFilterButton)!==null&&s!==void 0?s:this.getGui()),!0;return!1},n.prototype.workOutSort=function(){return this.params.enableSorting},n.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new A0(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),!!this.currentSort){this.addManagedListener(this.params.column,Jt.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=new Date().getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(i){var r=e.params.column.isMoving(),s=new Date().getTime(),a=s-e.lastMovingChanged<50,l=r||a;if(!l){var c=e.gridOptionsService.get("multiSortKey")==="ctrl",u=c?i.ctrlKey||i.metaKey:i.shiftKey;e.params.progressSort(u)}});var t=function(){if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var i=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),r=i?.every(function(a){return e.params.column.getSort()==a.getSort()}),s=!r;e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",s)}};this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,t),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,t)}},n.prototype.setupFilterIcon=function(){this.eFilter&&this.configureFilter(this.params.enableFilterIcon,this.eFilter,this.onFilterChangedIcon.bind(this))},n.prototype.setupFilterButton=function(){var e=this;if(this.eFilterButton){var t=this.configureFilter(this.params.enableFilterButton,this.eFilterButton,this.onFilterChangedButton.bind(this));t?this.addManagedListener(this.eFilterButton,"click",function(){return e.params.showFilter(e.eFilterButton)}):this.eFilterButton=void 0}},n.prototype.configureFilter=function(e,t,i){if(!e)return Yo(t),!1;var r=this.params.column;return this.addInIcon("filter",t,r),this.addManagedListener(r,Jt.EVENT_FILTER_CHANGED,i),i(),!0},n.prototype.onFilterChangedIcon=function(){var e=this.params.column.isFilterActive();It(this.eFilter,e,{skipAriaHidden:!0})},n.prototype.onFilterChangedButton=function(){var e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)},n.prototype.getAnchorElementForMenu=function(e){var t,i,r,s;return e?(i=(t=this.eFilterButton)!==null&&t!==void 0?t:this.eMenu)!==null&&i!==void 0?i:this.getGui():(s=(r=this.eMenu)!==null&&r!==void 0?r:this.eFilterButton)!==null&&s!==void 0?s:this.getGui()},n.TEMPLATE=`<div class="ag-cell-label-container" role="presentation">
  74. <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
  75. <span ref="eFilterButton" class="ag-header-icon ag-header-cell-filter-button" aria-hidden="true"></span>
  76. <div ref="eLabel" class="ag-header-cell-label" role="presentation">
  77. <span ref="eText" class="ag-header-cell-text"></span>
  78. <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
  79. <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>
  80. </div>
  81. </div>`,qi([b("sortController")],n.prototype,"sortController",void 0),qi([b("menuService")],n.prototype,"menuService",void 0),qi([b("columnModel")],n.prototype,"columnModel",void 0),qi([Ce("eFilter")],n.prototype,"eFilter",void 0),qi([Ce("eFilterButton")],n.prototype,"eFilterButton",void 0),qi([Ce("eSortIndicator")],n.prototype,"eSortIndicator",void 0),qi([Ce("eMenu")],n.prototype,"eMenu",void 0),qi([Ce("eLabel")],n.prototype,"eLabel",void 0),qi([Ce("eText")],n.prototype,"eText",void 0),qi([Ce("eSortOrder")],n.prototype,"eSortOrder",void 0),qi([Ce("eSortAsc")],n.prototype,"eSortAsc",void 0),qi([Ce("eSortDesc")],n.prototype,"eSortDesc",void 0),qi([Ce("eSortMixed")],n.prototype,"eSortMixed",void 0),qi([Ce("eSortNone")],n.prototype,"eSortNone",void 0),n}(dt),QY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),YC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},XY=function(o){QY(n,o);function n(){return o.call(this,n.TEMPLATE)||this}return n.prototype.destroy=function(){o.prototype.destroy.call(this)},n.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},n.prototype.checkWarnings=function(){var e=this.params;e.template&&Je("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},n.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(s){if(!_o(s)){var a=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),a,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var i=function(s){So(s)};this.addManagedListener(this.eCloseIcon,"dblclick",i),this.addManagedListener(this.eOpenIcon,"dblclick",i),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var r=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(r,Nn.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,Nn.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},n.prototype.addTouchAndClickListeners=function(e,t){var i=new xi(e,!0);this.addManagedListener(i,xi.EVENT_TAP,t),this.addDestroyFunc(function(){return i.destroy()}),this.addManagedListener(e,"click",t)},n.prototype.updateIconVisibility=function(){var e=this.params.columnGroup;if(e.isExpandable()){var t=this.params.columnGroup.isExpanded();It(this.eOpenIcon,t),It(this.eCloseIcon,!t)}else It(this.eOpenIcon,!1),It(this.eCloseIcon,!1)},n.prototype.addInIcon=function(e,t){var i=Gn(e,this.gridOptionsService,null);i&&this.getRefElement(t).appendChild(i)},n.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable()){It(this.eOpenIcon,!1),It(this.eCloseIcon,!1);return}},n.prototype.setupLabel=function(){var e,t=this.params,i=t.displayName,r=t.columnGroup;if(ne(i)){var s=Yn(i,!0);this.getRefElement("agLabel").textContent=s}this.addOrRemoveCssClass("ag-sticky-label",!(!((e=r.getColGroupDef())===null||e===void 0)&&e.suppressStickyLabel))},n.TEMPLATE=`<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">
  82. <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>
  83. <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
  84. <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
  85. </div>`,YC([b("columnModel")],n.prototype,"columnModel",void 0),YC([Ce("agOpened")],n.prototype,"eOpenIcon",void 0),YC([Ce("agClosed")],n.prototype,"eCloseIcon",void 0),n}(dt),ZY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),pl=function(o){ZY(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.isPopup=function(){return!0},n.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),o.prototype.setParentComponent.call(this,e)},n.prototype.destroy=function(){var e=this.parentComponent,t=e&&e.isAlive();t&&e.getGui().classList.remove("ag-has-popup"),o.prototype.destroy.call(this)},n}(dt),JY=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),eQ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},tQ=function(o){JY(n,o);function n(){return o.call(this,n.TEMPLATE)||this}return n.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),ne(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()},n.prototype.onKeyDown=function(e){var t=e.key;(t===q.LEFT||t===q.UP||t===q.RIGHT||t===q.DOWN||e.shiftKey&&t===q.ENTER)&&e.stopPropagation()},n.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},n.prototype.getValue=function(){var e=this.eTextArea.getValue();return!ne(e)&&!ne(this.params.value)?this.params.value:this.params.parseValue(e)},n.TEMPLATE=`<div class="ag-large-text">
  86. <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
  87. </div>`,eQ([Ce("eTextArea")],n.prototype,"eTextArea",void 0),n}(pl),nQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),wO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},iQ=function(o){nQ(n,o);function n(){var e=o.call(this,`<div class="ag-cell-edit-wrapper">
  88. <ag-select class="ag-cell-editor" ref="eSelect"></ag-select>
  89. </div>`)||this;return e.startedByEnter=!1,e}return n.prototype.init=function(e){this.focusAfterAttached=e.cellStartedEdit;var t=this,i=t.eSelect,r=t.valueFormatterService,s=t.gridOptionsService,a=e.values,l=e.value,c=e.eventKey;if(tt(a)){console.warn("AG Grid: no values found for select cellEditor");return}this.startedByEnter=c!=null?c===q.ENTER:!1;var u=!1;a.forEach(function(v){var y={value:v},x=r.formatValue(e.column,null,v),E=x!=null;y.text=E?x:v,i.addOption(y),u=u||l===v}),u?i.setValue(e.value,!0):e.values.length&&i.setValue(e.values[0],!0);var d=e.valueListGap,p=e.valueListMaxWidth,g=e.valueListMaxHeight;d!=null&&i.setPickerGap(d),g!=null&&i.setPickerMaxHeight(g),p!=null&&i.setPickerMaxWidth(p),s.get("editType")!=="fullRow"&&this.addManagedListener(this.eSelect,Rg.EVENT_ITEM_SELECTED,function(){return e.stopEditing()})},n.prototype.afterGuiAttached=function(){var e=this;this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(function(){e.isAlive()&&e.eSelect.showPicker()})},n.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},n.prototype.getValue=function(){return this.eSelect.getValue()},n.prototype.isPopup=function(){return!1},wO([b("valueFormatterService")],n.prototype,"valueFormatterService",void 0),wO([Ce("eSelect")],n.prototype,"eSelect",void 0),n}(pl),rQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),oQ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Pg=function(o){rQ(n,o);function n(e){var t=o.call(this,`
  90. <div class="ag-cell-edit-wrapper">
  91. `.concat(e.getTemplate(),`
  92. </div>`))||this;return t.cellEditorInput=e,t}return n.prototype.init=function(e){this.params=e;var t=this.eInput;this.cellEditorInput.init(t,e);var i;if(e.cellStartedEdit){this.focusAfterAttached=!0;var r=e.eventKey;r===q.BACKSPACE||e.eventKey===q.DELETE?i="":r&&r.length===1?i=r:(i=this.cellEditorInput.getStartValue(),r!==q.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,i=this.cellEditorInput.getStartValue();i!=null&&t.setStartValue(i),this.addManagedListener(t.getGui(),"keydown",function(s){var a=s.key;(a===q.PAGE_UP||a===q.PAGE_DOWN)&&s.preventDefault()})},n.prototype.afterGuiAttached=function(){var e,t,i=this.localeService.getLocaleTextFunc(),r=this.eInput;if(r.setInputAriaLabel(i("ariaInputEditor","Input Editor")),!!this.focusAfterAttached){Zo()||r.getFocusableElement().focus();var s=r.getInputElement();this.highlightAllOnFocus?s.select():(t=(e=this.cellEditorInput).setCaret)===null||t===void 0||t.call(e)}},n.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),i=e.getInputElement();t.focus(),i.select()},n.prototype.getValue=function(){return this.cellEditorInput.getValue()},n.prototype.isPopup=function(){return!1},oQ([Ce("eInput")],n.prototype,"eInput",void 0),n}(pl),sQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),aQ=function(){function o(){}return o.prototype.getTemplate=function(){return'<ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>'},o.prototype.init=function(n,e){this.eInput=n,this.params=e,e.maxLength!=null&&n.setMaxLength(e.maxLength)},o.prototype.getValue=function(){var n=this.eInput.getValue();return!ne(n)&&!ne(this.params.value)?this.params.value:this.params.parseValue(n)},o.prototype.getStartValue=function(){var n=this.params.useFormatter||this.params.column.getColDef().refData;return n?this.params.formatValue(this.params.value):this.params.value},o.prototype.setCaret=function(){var n=this.eInput.getValue(),e=ne(n)&&n.length||0;e&&this.eInput.getInputElement().setSelectionRange(e,e)},o}(),bO=function(o){sQ(n,o);function n(){return o.call(this,new aQ)||this}return n}(Pg),lQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),cQ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},uQ="\u2191",dQ="\u2193",pQ=function(o){lQ(n,o);function n(){var e=o.call(this)||this;e.refreshCount=0;var t=document.createElement("span"),i=document.createElement("span");i.setAttribute("class","ag-value-change-delta");var r=document.createElement("span");return r.setAttribute("class","ag-value-change-value"),t.appendChild(i),t.appendChild(r),e.setTemplateFromElement(t),e}return n.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e,!0)},n.prototype.showDelta=function(e,t){var i=Math.abs(t),r=e.formatValue(i),s=ne(r)?r:i,a=t>=0;a?this.eDelta.textContent=uQ+s:this.eDelta.textContent=dQ+s,this.eDelta.classList.toggle("ag-value-change-delta-up",a),this.eDelta.classList.toggle("ag-value-change-delta-down",!a)},n.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){t===e.refreshCount&&e.hideDeltaValue()},2e3)})},n.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),ti(this.eDelta)},n.prototype.refresh=function(e,t){t===void 0&&(t=!1);var i=e.value;if(i===this.lastValue||(ne(e.valueFormatted)?this.eValue.textContent=e.valueFormatted:ne(e.value)?this.eValue.textContent=i:ti(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof i=="number"&&typeof this.lastValue=="number"){var r=i-this.lastValue;this.showDelta(e,r)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=i,!0},cQ([b("filterManager")],n.prototype,"filterManager",void 0),n}(dt),hQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),fQ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},gQ=function(o){hQ(n,o);function n(){var e=o.call(this)||this;e.refreshCount=0;var t=document.createElement("span"),i=document.createElement("span");return i.setAttribute("class","ag-value-slide-current"),t.appendChild(i),e.setTemplateFromElement(t),e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return n.prototype.init=function(e){this.refresh(e,!0)},n.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);var i=document.createElement("span");i.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=i,this.ePrevious.textContent=this.eCurrent.textContent,this.getGui().insertBefore(this.ePrevious,this.eCurrent),this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){t===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)})},n.prototype.refresh=function(e,t){t===void 0&&(t=!1);var i=e.value;return tt(i)&&(i=""),i===this.lastValue||this.filterManager.isSuppressFlashingCellsBecauseFiltering()?!1:(t||this.addSlideAnimation(),this.lastValue=i,ne(e.valueFormatted)?this.eCurrent.textContent=e.valueFormatted:ne(e.value)?this.eCurrent.textContent=i:ti(this.eCurrent),!0)},fQ([b("filterManager")],n.prototype,"filterManager",void 0),n}(dt),Lc=function(){return Lc=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Lc.apply(this,arguments)},gt=function(){function o(n){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=o.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=n}return o.prototype.setData=function(n){this.setDataCommon(n,!1)},o.prototype.updateData=function(n){this.setDataCommon(n,!0)},o.prototype.setDataCommon=function(n,e){var t=this.data;this.data=n,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();var i=this.createDataChangedEvent(n,t,e);this.dispatchLocalEvent(i)},o.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},o.prototype.createDataChangedEvent=function(n,e,t){return{type:o.EVENT_DATA_CHANGED,node:this,oldData:e,newData:n,update:t}},o.prototype.createLocalRowEvent=function(n){return{type:n,node:this}},o.prototype.getRowIndexString=function(){return this.rowPinned==="top"?"t-"+this.rowIndex:this.rowPinned==="bottom"?"b-"+this.rowIndex:this.rowIndex.toString()},o.prototype.createDaemonNode=function(){var n=new o(this.beans);return n.id=this.id,n.data=this.data,n.__daemon=!0,n.selected=this.selected,n.level=this.level,n},o.prototype.setDataAndId=function(n,e){var t=ne(this.id)?this.createDaemonNode():null,i=this.data;this.data=n,this.updateDataOnDetailNode(),this.setId(e),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,t);var r=this.createDataChangedEvent(n,i,!1);this.dispatchLocalEvent(r)},o.prototype.checkRowSelectable=function(){var n=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(n?n(this):!0)},o.prototype.setRowSelectable=function(n,e){if(this.selectable!==n){if(this.selectable=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_SELECTABLE_CHANGED)),e)return;var t=this.beans.gridOptionsService.get("groupSelectsChildren");if(t){var i=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:i??!1,source:"selectableChanged"});return}this.isSelected()&&!this.selectable&&this.setSelectedParams({newValue:!1,source:"selectableChanged"})}},o.prototype.setId=function(n){var e=this.beans.gridOptionsService.getCallback("getRowId");if(e)if(this.data){var t=this.getGroupKeys(!0);this.id=e({data:this.data,parentKeys:t.length>0?t:void 0,level:this.level}),this.id!==null&&typeof this.id=="string"&&this.id.startsWith(o.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with ".concat(o.ID_PREFIX_ROW_GROUP,", this is a reserved prefix for AG Grid's row grouping feature.")),this.id!==null&&typeof this.id!="string"&&(this.id=""+this.id)}else this.id=void 0;else this.id=n},o.prototype.getGroupKeys=function(n){n===void 0&&(n=!1);var e=[],t=this;for(n&&(t=t.parent);t&&t.level>=0;)e.push(t.key),t=t.parent;return e.reverse(),e},o.prototype.isPixelInRange=function(n){return!ne(this.rowTop)||!ne(this.rowHeight)?!1:n>=this.rowTop&&n<this.rowTop+this.rowHeight},o.prototype.setFirstChild=function(n){this.firstChild!==n&&(this.firstChild=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_FIRST_CHILD_CHANGED)))},o.prototype.setLastChild=function(n){this.lastChild!==n&&(this.lastChild=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_LAST_CHILD_CHANGED)))},o.prototype.setChildIndex=function(n){this.childIndex!==n&&(this.childIndex=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_CHILD_INDEX_CHANGED)))},o.prototype.setRowTop=function(n){this.oldRowTop=this.rowTop,this.rowTop!==n&&(this.rowTop=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_TOP_CHANGED)),this.setDisplayed(n!==null))},o.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},o.prototype.setDisplayed=function(n){this.displayed!==n&&(this.displayed=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_DISPLAYED_CHANGED)))},o.prototype.setDragging=function(n){this.dragging!==n&&(this.dragging=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_DRAGGING_CHANGED)))},o.prototype.setHighlighted=function(n){n!==this.highlighted&&(this.highlighted=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_HIGHLIGHT_CHANGED)))},o.prototype.setHovered=function(n){this.hovered!==n&&(this.hovered=n)},o.prototype.isHovered=function(){return this.hovered},o.prototype.setAllChildrenCount=function(n){this.allChildrenCount!==n&&(this.allChildrenCount=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},o.prototype.setMaster=function(n){this.master!==n&&(this.master&&!n&&(this.expanded=!1),this.master=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_MASTER_CHANGED)))},o.prototype.setGroup=function(n){this.group!==n&&(this.group&&!n&&(this.expanded=!1),this.group=n,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_GROUP_CHANGED)))},o.prototype.setRowHeight=function(n,e){e===void 0&&(e=!1),this.rowHeight=n,this.rowHeightEstimated=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_HEIGHT_CHANGED))},o.prototype.setRowAutoHeight=function(n,e){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[e.getId()]=n,n!=null&&(this.checkAutoHeightsDebounced==null&&(this.checkAutoHeightsDebounced=zr(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},o.prototype.checkAutoHeights=function(){var n=this,e=!1,t=!0,i=0,r=this.__autoHeights;if(r!=null){var s=this.beans.columnModel.getAllDisplayedAutoHeightCols();if(s.forEach(function(l){var c=r[l.getId()];if(c==null)if(n.beans.columnModel.isColSpanActive()){var u=[];switch(l.getPinned()){case"left":u=n.beans.columnModel.getDisplayedLeftColumnsForRow(n);break;case"right":u=n.beans.columnModel.getDisplayedRightColumnsForRow(n);break;case null:u=n.beans.columnModel.getViewportCenterColumnsForRow(n);break}if(u.includes(l)){e=!0;return}c=-1}else{e=!0;return}else t=!1;c>i&&(i=c)}),!e&&((t||i<10)&&(i=this.beans.gridOptionsService.getRowHeightForNode(this).height),i!=this.rowHeight)){this.setRowHeight(i);var a=this.beans.rowModel;a.onRowHeightChangedDebounced&&a.onRowHeightChangedDebounced()}}},o.prototype.setRowIndex=function(n){this.rowIndex!==n&&(this.rowIndex=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_ROW_INDEX_CHANGED)))},o.prototype.setUiLevel=function(n){this.uiLevel!==n&&(this.uiLevel=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_UI_LEVEL_CHANGED)))},o.prototype.setExpanded=function(n,e){if(this.expanded!==n){this.expanded=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_EXPANDED_CHANGED));var t=Object.assign({},this.createGlobalRowEvent(T.EVENT_ROW_GROUP_OPENED),{expanded:n,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(t),this.sibling&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},o.prototype.createGlobalRowEvent=function(n){return this.beans.gridOptionsService.addGridCommonParams({type:n,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned})},o.prototype.dispatchLocalEvent=function(n){this.eventService&&this.eventService.dispatchEvent(n)},o.prototype.setDataValue=function(n,e,t){var i=this,r=function(){var c;return typeof n!="string"?n:(c=i.beans.columnModel.getGridColumn(n))!==null&&c!==void 0?c:i.beans.columnModel.getPrimaryColumn(n)},s=r(),a=this.getValueFromValueService(s);if(this.beans.gridOptionsService.get("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(s,a,e,t),!1;var l=this.beans.valueService.setValue(this,s,e,t);return this.dispatchCellChangedEvent(s,e,a),this.checkRowSelectable(),l},o.prototype.getValueFromValueService=function(n){var e=this.leafGroup&&this.beans.columnModel.isPivotMode(),t=this.group&&this.expanded&&!this.footer&&!e,i=this.beans.gridOptionsService.getGroupIncludeFooter(),r=i({node:this}),s=this.beans.gridOptionsService.get("groupSuppressBlankHeader"),a=t&&r&&!s,l=this.beans.valueService.getValue(n,this,!1,a);return l},o.prototype.dispatchEventForSaveValueReadOnly=function(n,e,t,i){var r=this.beans.gridOptionsService.addGridCommonParams({type:T.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:n,colDef:n.getColDef(),data:this.data,node:this,oldValue:e,newValue:t,value:t,source:i});this.beans.eventService.dispatchEvent(r)},o.prototype.setGroupValue=function(n,e){var t=this.beans.columnModel.getGridColumn(n);tt(this.groupData)&&(this.groupData={});var i=t.getColId(),r=this.groupData[i];r!==e&&(this.groupData[i]=e,this.dispatchCellChangedEvent(t,e,r))},o.prototype.setAggData=function(n){var e=this,t=this.aggData;if(this.aggData=n,this.eventService){var i=function(s){var a=e.aggData?e.aggData[s]:void 0,l=t?t[s]:void 0;if(a!==l){var c=e.beans.columnModel.lookupGridColumn(s);c&&e.dispatchCellChangedEvent(c,a,l)}};for(var r in this.aggData)i(r);for(var r in n)r in this.aggData||i(r)}},o.prototype.updateHasChildren=function(){var n=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0,e=this.beans.gridOptionsService.isRowModelType("serverSide");if(e){var t=this.beans.gridOptionsService.get("treeData"),i=this.beans.gridOptionsService.get("isServerSideGroup");n=!this.stub&&!this.footer&&(t?!!i&&i(this.data):!!this.group)}n!==this.__hasChildren&&(this.__hasChildren=!!n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_HAS_CHILDREN_CHANGED)))},o.prototype.hasChildren=function(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren},o.prototype.isEmptyRowGroupNode=function(){return this.group&&Er(this.childrenAfterGroup)},o.prototype.dispatchCellChangedEvent=function(n,e,t){var i={type:o.EVENT_CELL_CHANGED,node:this,column:n,newValue:e,oldValue:t};this.dispatchLocalEvent(i)},o.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},o.prototype.isExpandable=function(){return this.footer?!1:this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master},o.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},o.prototype.depthFirstSearch=function(n){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(n)}),n(this)},o.prototype.calculateSelectedFromChildren=function(){var n,e=!1,t=!1,i=!1;if(!(!((n=this.childrenAfterGroup)===null||n===void 0)&&n.length))return this.selectable?this.selected:null;for(var r=0;r<this.childrenAfterGroup.length;r++){var s=this.childrenAfterGroup[r],a=s.isSelected();if(!s.selectable){var l=s.calculateSelectedFromChildren();if(l===null)continue;a=l}switch(a){case!0:e=!0;break;case!1:t=!0;break;default:i=!0;break}}if(!(i||e&&t))return e?!0:t?!1:this.selectable?this.selected:null},o.prototype.setSelectedInitialValue=function(n){this.selected=n},o.prototype.selectThisNode=function(n,e,t){t===void 0&&(t="api");var i=!this.selectable&&n,r=this.selected===n;if(i||r)return!1;if(this.selected=n,this.eventService){this.dispatchLocalEvent(this.createLocalRowEvent(o.EVENT_ROW_SELECTED));var s=this.sibling;s&&s.footer&&s.dispatchLocalEvent(s.createLocalRowEvent(o.EVENT_ROW_SELECTED))}var a=Lc(Lc({},this.createGlobalRowEvent(T.EVENT_ROW_SELECTED)),{event:e||null,source:t});return this.beans.eventService.dispatchEvent(a),!0},o.prototype.setSelected=function(n,e,t){if(e===void 0&&(e=!1),t===void 0&&(t="api"),typeof t=="boolean"){console.warn("AG Grid: since version v30, rowNode.setSelected() property `suppressFinishActions` has been removed, please use `gridApi.setNodesSelected()` for bulk actions, and the event `source` property for ignoring events instead.");return}this.setSelectedParams({newValue:n,clearSelection:e,rangeSelect:!1,source:t})},o.prototype.setSelectedParams=function(n){return this.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),0):this.id===void 0?(console.warn("AG Grid: cannot select node until id for node is known"),0):this.beans.selectionService.setNodesSelected(Lc(Lc({},n),{nodes:[this.footer?this.sibling:this]}))},o.prototype.isRowPinned=function(){return this.rowPinned==="top"||this.rowPinned==="bottom"},o.prototype.isParentOfNode=function(n){for(var e=this.parent;e;){if(e===n)return!0;e=e.parent}return!1},o.prototype.addEventListener=function(n,e){var t,i;this.eventService||(this.eventService=new ga),this.beans.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.beans.frameworkOverrides),this.frameworkEventListenerService=new t0(this.beans.frameworkOverrides));var r=(i=(t=this.frameworkEventListenerService)===null||t===void 0?void 0:t.wrap(e))!==null&&i!==void 0?i:e;this.eventService.addEventListener(n,r)},o.prototype.removeEventListener=function(n,e){var t,i;if(this.eventService){var r=(i=(t=this.frameworkEventListenerService)===null||t===void 0?void 0:t.unwrap(e))!==null&&i!==void 0?i:e;this.eventService.removeEventListener(n,r),this.eventService.noRegisteredListenersExist()&&(this.eventService=null)}},o.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(o.EVENT_MOUSE_ENTER))},o.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(o.EVENT_MOUSE_LEAVE))},o.prototype.getFirstChildOfFirstChild=function(n){for(var e=this,t=!0,i=!1,r=null;t&&!i;){var s=e.parent,a=ne(s)&&e.firstChild;a?s.rowGroupColumn===n&&(i=!0,r=s):t=!1,e=s}return i?r:null},o.prototype.isFullWidthCell=function(){if(this.detail)return!0;var n=this.beans.gridOptionsService.getCallback("isFullWidthRow");return n?n({rowNode:this}):!1},o.prototype.getRoute=function(){if(this.key!=null){for(var n=[],e=this;e.key!=null;)n.push(e.key),e=e.parent;return n.reverse()}},o.prototype.createFooter=function(){var n=this;if(!this.sibling){var e=new Set(["eventService","__objectId","sticky"]),t=new o(this.beans);Object.keys(this).forEach(function(i){e.has(i)||(t[i]=n[i])}),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,t.id="rowGroupFooter_"+this.id,t.sibling=this,this.sibling=t}},o.prototype.destroyFooter=function(){this.sibling&&(this.sibling.setRowTop(null),this.sibling.setRowIndex(null),this.sibling=void 0)},o.ID_PREFIX_ROW_GROUP="row-group-",o.ID_PREFIX_TOP_PINNED="t-",o.ID_PREFIX_BOTTOM_PINNED="b-",o.OBJECT_ID_SEQUENCE=0,o.EVENT_ROW_SELECTED="rowSelected",o.EVENT_DATA_CHANGED="dataChanged",o.EVENT_CELL_CHANGED="cellChanged",o.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",o.EVENT_MASTER_CHANGED="masterChanged",o.EVENT_GROUP_CHANGED="groupChanged",o.EVENT_MOUSE_ENTER="mouseEnter",o.EVENT_MOUSE_LEAVE="mouseLeave",o.EVENT_HEIGHT_CHANGED="heightChanged",o.EVENT_TOP_CHANGED="topChanged",o.EVENT_DISPLAYED_CHANGED="displayedChanged",o.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",o.EVENT_LAST_CHILD_CHANGED="lastChildChanged",o.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",o.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",o.EVENT_EXPANDED_CHANGED="expandedChanged",o.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",o.EVENT_SELECTABLE_CHANGED="selectableChanged",o.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",o.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",o.EVENT_DRAGGING_CHANGED="draggingChanged",o}(),mQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),hg=function(){return hg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},hg.apply(this,arguments)},TO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},jR=function(o){mQ(n,o);function n(){return o.call(this,`
  93. <div class="ag-selection-checkbox" role="presentation">
  94. <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
  95. </div>`)||this}return n.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},n.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},n.prototype.onDataChanged=function(){this.onSelectionChanged()},n.prototype.onSelectableChanged=function(){this.showOrHideSelect()},n.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();this.eCheckbox.setValue(e,!0)},n.prototype.onClicked=function(e,t,i){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:i.shiftKey,groupSelectsFiltered:t,event:i,source:"checkboxSelected"})},n.prototype.init=function(e){var t=this;this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(a){So(a)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(a){So(a);var l=t.gridOptionsService.get("groupSelectsFiltered"),c=t.eCheckbox.getValue();if(t.shouldHandleIndeterminateState(c,l)){var u=t.onClicked(!0,l,a||{});u===0&&t.onClicked(!1,l,a)}else c?t.onClicked(!1,l,a):t.onClicked(!0,l,a||{})}),this.addManagedListener(this.rowNode,gt.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this));var i=this.gridOptionsService.get("isRowSelectable"),r=i||typeof this.getIsVisible()=="function";if(r){var s=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,s),this.addManagedListener(this.rowNode,gt.EVENT_DATA_CHANGED,s),this.addManagedListener(this.rowNode,gt.EVENT_CELL_CHANGED,s),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},n.prototype.shouldHandleIndeterminateState=function(e,t){return t&&(this.eCheckbox.getPreviousValue()===void 0||e===void 0)&&this.gridOptionsService.isRowModelType("clientSide")},n.prototype.showOrHideSelect=function(){var e,t,i,r,s=this.rowNode.selectable,a=this.getIsVisible();if(s)if(typeof a=="function"){var l=(e=this.overrides)===null||e===void 0?void 0:e.callbackParams,c=(t=this.column)===null||t===void 0?void 0:t.createColumnFunctionCallbackParams(this.rowNode);s=c?a(hg(hg({},l),c)):!1}else s=a??!1;var u=(i=this.column)===null||i===void 0?void 0:i.getColDef().showDisabledCheckboxes;if(u){this.eCheckbox.setDisabled(!s),this.setVisible(!0),this.setDisplayed(!0);return}if(!((r=this.overrides)===null||r===void 0)&&r.removeHidden){this.setDisplayed(s);return}this.setVisible(s)},n.prototype.getIsVisible=function(){var e,t;return this.overrides?this.overrides.isVisible:(t=(e=this.column)===null||e===void 0?void 0:e.getColDef())===null||t===void 0?void 0:t.checkboxSelection},TO([Ce("eCheckbox")],n.prototype,"eCheckbox",void 0),TO([pe],n.prototype,"postConstruct",null),n}(dt),Kd=function(o){return o[o.Up=0]="Up",o[o.Down=1]="Down",o}(Kd||{}),Kr=function(o){return o[o.Left=0]="Left",o[o.Right=1]="Right",o}(Kr||{}),vQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),qa=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Rf=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Or=function(o){return o[o.ToolPanel=0]="ToolPanel",o[o.HeaderCell=1]="HeaderCell",o[o.RowDrag=2]="RowDrag",o[o.ChartPanel=3]="ChartPanel",o[o.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",o}(Or||{}),Jn=function(o){vQ(n,o);function n(){var t=o!==null&&o.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}e=n,n.prototype.init=function(){this.ePinnedIcon=Wr("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Wr("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Wr("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Wr("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Wr("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Wr("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Wr("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Wr("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Wr("dropNotAllowed",this.gridOptionsService,null)},n.prototype.addDragSource=function(t,i){i===void 0&&(i=!1);var r={eElement:t.eElement,dragStartPixels:t.dragStartPixels,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:i};this.dragSourceAndParamsList.push({params:r,dragSource:t}),this.dragService.addDragSource(r)},n.prototype.removeDragSource=function(t){var i=this.dragSourceAndParamsList.find(function(r){return r.dragSource===t});i&&(this.dragService.removeDragSource(i.params),ir(this.dragSourceAndParamsList,i))},n.prototype.clearDragSourceParamsList=function(){var t=this;this.dragSourceAndParamsList.forEach(function(i){return t.dragService.removeDragSource(i.params)}),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},n.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},n.prototype.onDragStart=function(t,i){this.dragging=!0,this.dragSource=t,this.eventLastTime=i,this.dragItem=this.dragSource.getDragItem(),this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},n.prototype.onDragStop=function(t){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var i=this.createDropTargetEvent(this.lastDropTarget,t,null,null,!1);this.lastDropTarget.onDragStop(i)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},n.prototype.onDragging=function(t,i){var r=this,s,a,l,c,u=this.getHorizontalDirection(t),d=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var p=this.dropTargets.filter(function(y){return r.isMouseOnDropTarget(t,y)}),g=this.findCurrentDropTarget(t,p);if(g!==this.lastDropTarget)this.leaveLastTargetIfExists(t,u,d,i),this.lastDropTarget!==null&&g===null&&((a=(s=this.dragSource).onGridExit)===null||a===void 0||a.call(s,this.dragItem)),this.lastDropTarget===null&&g!==null&&((c=(l=this.dragSource).onGridEnter)===null||c===void 0||c.call(l,this.dragItem)),this.enterDragTargetIfExists(g,t,u,d,i),this.lastDropTarget=g;else if(g&&g.onDragging){var v=this.createDropTargetEvent(g,t,u,d,i);g.onDragging(v)}},n.prototype.getAllContainersFromDropTarget=function(t){var i=t.getSecondaryContainers?t.getSecondaryContainers():null,r=[[t.getContainer()]];return i?r.concat(i):r},n.prototype.allContainersIntersect=function(t,i){var r,s;try{for(var a=Rf(i),l=a.next();!l.done;l=a.next()){var c=l.value,u=c.getBoundingClientRect();if(u.width===0||u.height===0)return!1;var d=t.clientX>=u.left&&t.clientX<u.right,p=t.clientY>=u.top&&t.clientY<u.bottom;if(!d||!p)return!1}}catch(g){r={error:g}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(r)throw r.error}}return!0},n.prototype.isMouseOnDropTarget=function(t,i){var r,s,a=this.getAllContainersFromDropTarget(i),l=!1;try{for(var c=Rf(a),u=c.next();!u.done;u=c.next()){var d=u.value;if(this.allContainersIntersect(t,d)){l=!0;break}}}catch(p){r={error:p}}finally{try{u&&!u.done&&(s=c.return)&&s.call(c)}finally{if(r)throw r.error}}return i.targetContainsSource&&!i.getContainer().contains(this.dragSource.eElement)?!1:l&&i.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},n.prototype.findCurrentDropTarget=function(t,i){var r,s,a,l,c=i.length;if(c===0)return null;if(c===1)return i[0];var u=this.gridOptionsService.getRootNode(),d=u.elementsFromPoint(t.clientX,t.clientY);try{for(var p=Rf(d),g=p.next();!g.done;g=p.next()){var v=g.value;try{for(var y=(a=void 0,Rf(i)),x=y.next();!x.done;x=y.next()){var E=x.value,z=AD(this.getAllContainersFromDropTarget(E));if(z.indexOf(v)!==-1)return E}}catch(M){a={error:M}}finally{try{x&&!x.done&&(l=y.return)&&l.call(y)}finally{if(a)throw a.error}}}}catch(M){r={error:M}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(r)throw r.error}}return null},n.prototype.enterDragTargetIfExists=function(t,i,r,s,a){if(t){if(t.onDragEnter){var l=this.createDropTargetEvent(t,i,r,s,a);t.onDragEnter(l)}this.setGhostIcon(t.getIconName?t.getIconName():null)}},n.prototype.leaveLastTargetIfExists=function(t,i,r,s){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var a=this.createDropTargetEvent(this.lastDropTarget,t,i,r,s);this.lastDropTarget.onDragLeave(a)}this.setGhostIcon(null)}},n.prototype.addDropTarget=function(t){this.dropTargets.push(t)},n.prototype.removeDropTarget=function(t){this.dropTargets=this.dropTargets.filter(function(i){return i.getContainer()!==t.getContainer()})},n.prototype.hasExternalDropZones=function(){return this.dropTargets.some(function(t){return t.external})},n.prototype.findExternalZone=function(t){var i=this.dropTargets.filter(function(r){return r.external});return i.find(function(r){return r.getContainer()===t.getContainer()})||null},n.prototype.getHorizontalDirection=function(t){var i=this.eventLastTime&&this.eventLastTime.clientX,r=t.clientX;return i===r?null:i>r?Kr.Left:Kr.Right},n.prototype.getVerticalDirection=function(t){var i=this.eventLastTime&&this.eventLastTime.clientY,r=t.clientY;return i===r?null:i>r?Kd.Up:Kd.Down},n.prototype.createDropTargetEvent=function(t,i,r,s,a){var l=t.getContainer(),c=l.getBoundingClientRect(),u=this,d=u.gridApi,p=u.columnApi,g=u.dragItem,v=u.dragSource,y=i.clientX-c.left,x=i.clientY-c.top;return{event:i,x:y,y:x,vDirection:s,hDirection:r,dragSource:v,fromNudge:a,dragItem:g,api:d,columnApi:p,dropZoneTarget:l}},n.prototype.positionGhost=function(t){var i=this.eGhost;if(i){var r=i.getBoundingClientRect(),s=r.height,a=rR()-2,l=oR()-2,c=b0(i.offsetParent),u=t.clientY,d=t.clientX,p=u-c.top-s/2,g=d-c.left-10,v=this.gridOptionsService.getDocument(),y=v.defaultView||window,x=y.pageYOffset||v.documentElement.scrollTop,E=y.pageXOffset||v.documentElement.scrollLeft;a>0&&g+i.clientWidth>a+E&&(g=a+E-i.clientWidth),g<0&&(g=0),l>0&&p+i.clientHeight>l+x&&(p=l+x-i.clientHeight),p<0&&(p=0),i.style.left="".concat(g,"px"),i.style.top="".concat(p,"px")}},n.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},n.prototype.createGhost=function(){this.eGhost=or(e.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var t=this.environment.getTheme().theme;t&&this.eGhost.classList.add(t),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var i=this.eGhost.querySelector(".ag-dnd-ghost-label"),r=this.dragSource.dragItemName;Eg(r)&&(r=r()),i.innerHTML=Yn(r)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var s=this.gridOptionsService.getDocument(),a=null,l=null;try{a=s.fullscreenElement}catch{}finally{a||(a=this.gridOptionsService.getRootNode());var c=a.querySelector("body");c?l=c:a instanceof ShadowRoot?l=a:a instanceof Document?l=a?.documentElement:l=a}this.eGhostParent=l,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},n.prototype.setGhostIcon=function(t,i){i===void 0&&(i=!1),ti(this.eGhostIcon);var r=null;switch(t||(t=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():e.ICON_NOT_ALLOWED),t){case e.ICON_PINNED:r=this.ePinnedIcon;break;case e.ICON_MOVE:r=this.eMoveIcon;break;case e.ICON_LEFT:r=this.eLeftIcon;break;case e.ICON_RIGHT:r=this.eRightIcon;break;case e.ICON_GROUP:r=this.eGroupIcon;break;case e.ICON_AGGREGATE:r=this.eAggregateIcon;break;case e.ICON_PIVOT:r=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:r=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:r=this.eHideIcon;break}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",i),!(r===this.eHideIcon&&this.gridOptionsService.get("suppressDragLeaveHidesColumns"))&&r&&this.eGhostIcon.appendChild(r)};var e;return n.ICON_PINNED="pinned",n.ICON_MOVE="move",n.ICON_LEFT="left",n.ICON_RIGHT="right",n.ICON_GROUP="group",n.ICON_AGGREGATE="aggregate",n.ICON_PIVOT="pivot",n.ICON_NOT_ALLOWED="notAllowed",n.ICON_HIDE="hide",n.GHOST_TEMPLATE=`<div class="ag-dnd-ghost ag-unselectable">
  96. <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
  97. <div class="ag-dnd-ghost-label"></div>
  98. </div>`,qa([b("dragService")],n.prototype,"dragService",void 0),qa([b("mouseEventService")],n.prototype,"mouseEventService",void 0),qa([b("columnApi")],n.prototype,"columnApi",void 0),qa([b("gridApi")],n.prototype,"gridApi",void 0),qa([pe],n.prototype,"init",null),qa([Li],n.prototype,"clearDragSourceParamsList",null),n=e=qa([Oe("dragAndDropService")],n),n}(re),Mg=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Nd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},fg=function(o){Mg(n,o);function n(e,t,i,r,s,a){var l=o.call(this)||this;return l.cellValueFn=e,l.rowNode=t,l.column=i,l.customGui=r,l.dragStartPixels=s,l.suppressVisibilityChange=a,l.dragSource=null,l}return n.prototype.isCustomGui=function(){return this.customGui!=null},n.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Gn("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.gridOptionsService.get("rowDragManaged")?new CQ(this,this.beans,this.rowNode,this.column):new yQ(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},n.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},n.prototype.getSelectedNodes=function(){var e=this.gridOptionsService.get("rowDragMultiRow");if(!e)return[this.rowNode];var t=this.beans.selectionService.getSelectedNodes();return t.indexOf(this.rowNode)!==-1?t:[this.rowNode]},n.prototype.checkCompatibility=function(){var e=this.gridOptionsService.get("rowDragManaged"),t=this.gridOptionsService.get("treeData");t&&e&&Je("If using row drag with tree data, you cannot have rowDragManaged=true")},n.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},n.prototype.getRowDragText=function(e){if(e){var t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gridOptionsService.get("rowDragText")},n.prototype.addDragSource=function(e){var t=this;e===void 0&&(e=4),this.dragSource&&this.removeDragSource();var i=this.localeService.getLocaleTextFunc();this.dragSource={type:Or.RowDrag,eElement:this.getGui(),dragItemName:function(){var r,s=t.getDragItem(),a=((r=s.rowNodes)===null||r===void 0?void 0:r.length)||1,l=t.getRowDragText(t.column);return l?l(s,a):a===1?t.cellValueFn():"".concat(a," ").concat(i("rowDragRows","rows"))},getDragItem:function(){return t.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},n.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},Nd([b("beans")],n.prototype,"beans",void 0),Nd([pe],n.prototype,"postConstruct",null),Nd([Li],n.prototype,"removeDragSource",null),n}(dt),WR=function(o){Mg(n,o);function n(e,t,i){var r=o.call(this)||this;return r.parent=e,r.rowNode=t,r.column=i,r}return n.prototype.setDisplayedOrVisible=function(e){var t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{var i=!0,r=!1;this.column&&(i=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),r=Eg(this.column.getColDef().rowDrag)),r?(this.parent.setDisplayed(!0,t),this.parent.setVisible(i,t)):(this.parent.setDisplayed(i,t),this.parent.setVisible(!0,t))}},n}(re),yQ=function(o){Mg(n,o);function n(e,t,i,r){var s=o.call(this,e,i,r)||this;return s.beans=t,s}return n.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},n.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},n.prototype.workOutVisibility=function(){var e=this.gridOptionsService.get("suppressRowDrag");this.setDisplayedOrVisible(e)},Nd([pe],n.prototype,"postConstruct",null),n}(WR),CQ=function(o){Mg(n,o);function n(e,t,i,r){var s=o.call(this,e,i,r)||this;return s.beans=t,s}return n.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,T.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},n.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},n.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl(),t=e.getRowDragFeature(),i=t&&t.shouldPreventRowMove(),r=this.gridOptionsService.get("suppressRowDrag"),s=this.beans.dragAndDropService.hasExternalDropZones(),a=i&&!s||r;this.setDisplayedOrVisible(a)},Nd([pe],n.prototype,"postConstruct",null),n}(WR),_Q=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),gg=function(){return gg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},gg.apply(this,arguments)},ld=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},SQ=function(o){_Q(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.init=function(e,t,i,r,s,a,l){var c,u,d,p;this.params=l,this.eGui=t,this.eCheckbox=i,this.eExpanded=r,this.eContracted=s,this.comp=e,this.compClass=a;var g=l.node;l.value;var v=l.colDef,y=this.isTopLevelFooter();if(!y){var x=this.isEmbeddedRowMismatch();if(x)return;if(g.footer&&this.gridOptionsService.get("groupHideOpenParents")){var E=v&&v.showRowGroup,z=g.rowGroupColumn&&g.rowGroupColumn.getColId();if(E!==z)return}}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!y){var M=l.node.footer&&l.node.rowGroupIndex===this.columnModel.getRowGroupColumns().findIndex(function(Ee){var Te;return Ee.getColId()===((Te=l.colDef)===null||Te===void 0?void 0:Te.showRowGroup)}),G=this.gridOptionsService.get("groupDisplayType")!="multipleColumns"||this.gridOptionsService.get("treeData"),U=G||this.gridOptionsService.get("showOpenedGroup")&&!l.node.footer&&(!l.node.group||l.node.rowGroupIndex!=null&&l.node.rowGroupIndex>this.columnModel.getRowGroupColumns().findIndex(function(Ee){var Te;return Ee.getColId()===((Te=l.colDef)===null||Te===void 0?void 0:Te.showRowGroup)})),se=!g.group&&(((c=this.params.colDef)===null||c===void 0?void 0:c.field)||((u=this.params.colDef)===null||u===void 0?void 0:u.valueGetter)),ve=this.isExpandable(),he=this.columnModel.isPivotMode()&&g.leafGroup&&((d=g.rowGroupColumn)===null||d===void 0?void 0:d.getColId())===((p=l.column)===null||p===void 0?void 0:p.getColDef().showRowGroup),be=!this.showingValueForOpenedParent&&!ve&&!se&&!U&&!M&&!he;if(be)return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()},n.prototype.getCellAriaRole=function(){var e,t,i=(e=this.params.colDef)===null||e===void 0?void 0:e.cellAriaRole,r=(t=this.params.column)===null||t===void 0?void 0:t.getColDef().cellAriaRole;return i||r||"gridcell"},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.expandListener=null},n.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,i=e.eGridCell;if(this.expandListener&&(this.expandListener=this.expandListener()),!this.isExpandable()){QD(i);return}var r=function(){Ts(i,!!t.expanded)};this.expandListener=this.addManagedListener(t,gt.EVENT_EXPANDED_CHANGED,r)||null,r()},n.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.get("groupIncludeTotalFooter")||this.params.value!=null||this.params.node.level!=-1)return!1;var e=this.params.colDef,t=e==null;if(t||e.showRowGroup===!0)return!0;var i=this.columnModel.getRowGroupColumns();if(!i||i.length===0)return!0;var r=i[0];return r.getId()===e.showRowGroup},n.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.get("embedFullWidthRows"))return!1;var e=this.params.pinned==="left",t=this.params.pinned==="right",i=!e&&!t;return this.gridOptionsService.get("enableRtl")?this.columnModel.isPinningLeft()?!t:!i:this.columnModel.isPinningLeft()?!e:!i},n.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var i=t.parent;i!=null;){if(i.rowGroupColumn&&e.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroupNode=i;break}i=i.parent}tt(this.displayedGroupNode)&&(this.displayedGroupNode=t)},n.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(!this.gridOptionsService.get("groupHideOpenParents")){this.showingValueForOpenedParent=!1;return}if(!e.groupData){this.showingValueForOpenedParent=!1;return}var i=e.rowGroupColumn!=null;if(i){var r=e.rowGroupColumn.getId(),s=t.isRowGroupDisplayed(r);if(s){this.showingValueForOpenedParent=!1;return}}var a=e.groupData[t.getId()]!=null;this.showingValueForOpenedParent=a},n.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},n.prototype.addGroupValue=function(){var e,t=this.adjustParamsWithDetailsFromRelatedColumn(),i=this.getInnerCompDetails(t),r=t.valueFormatted,s=t.value,a=r;if(a==null){var l=this.displayedGroupNode.rowGroupColumn&&((e=this.params.column)===null||e===void 0?void 0:e.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));if(this.displayedGroupNode.key===""&&this.displayedGroupNode.group&&l){var c=this.localeService.getLocaleTextFunc();a=c("blanks","(Blanks)")}else a=s??null}this.comp.setInnerRenderer(i,a)},n.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;var i=t!=null;if(i){var r=t.isRowGroupDisplayed(e.getId());if(!r)return this.params}var s=this.params,a=this.params,l=a.value,c=a.node,u=this.valueFormatterService.formatValue(e,c,l),d=gg(gg({},s),{valueFormatted:u});return d},n.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var i=J_(this.params);i.value=this.params.value,typeof e=="function"?t=e(i):typeof e=="string"?t=this.expressionService.evaluate(e,i):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else{var r=this.localeService.getLocaleTextFunc(),s=r("footerTotal","Total");t=s+" "+(this.params.value!=null?this.params.value:"")}var a=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(a,t)},n.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var i=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(u){return u&&u.componentClass==t.compClass};if(i&&!r(i))return i;var s=this.displayedGroupNode.rowGroupColumn,a=s?s.getColDef():void 0;if(a){var l=this.userComponentFactory.getCellRendererDetails(a,e);if(l&&!r(l))return l;if(r(l)&&a.cellRendererParams&&a.cellRendererParams.innerRenderer){var c=this.userComponentFactory.getInnerRendererDetails(a.cellRendererParams,e);return c}}},n.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,gt.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},n.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow(),i=t&&e!=null&&e>=0,r=i?"(".concat(e,")"):"";this.comp.setChildCount(r)},n.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.get("treeData"))return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column,i=t==null||t.isRowGroupDisplayed(e.getId());return i},n.prototype.addExpandAndContract=function(){var e,t=this.params,i=Gn("groupExpanded",this.gridOptionsService,null),r=Gn("groupContracted",this.gridOptionsService,null);i&&this.eExpanded.appendChild(i),r&&this.eContracted.appendChild(r);var s=t.eGridCell,a=((e=this.params.column)===null||e===void 0?void 0:e.isCellEditable(t.node))&&this.gridOptionsService.get("enableGroupEdit");!a&&this.isExpandable()&&!t.suppressDoubleClickExpand&&this.addManagedListener(s,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(s,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,gt.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var l=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,gt.EVENT_ALL_CHILDREN_COUNT_CHANGED,l),this.addManagedListener(this.displayedGroupNode,gt.EVENT_MASTER_CHANGED,l),this.addManagedListener(this.displayedGroupNode,gt.EVENT_GROUP_CHANGED,l),this.addManagedListener(this.displayedGroupNode,gt.EVENT_HAS_CHILDREN_CHANGED,l)},n.prototype.onExpandClicked=function(e){_o(e)||(So(e),this.onExpandOrContract(e))},n.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,i=!t.expanded;!i&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(i,e)},n.prototype.scrollToStickyNode=function(e){var t=this.ctrlsService.getGridBodyCtrl(),i=t.getScrollFeature();i.setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},n.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup,i=e.isExpandable()&&!e.footer&&!t;if(!i)return!1;var r=this.params.column,s=r!=null&&typeof r.getColDef().showRowGroup=="string";if(s){var a=this.isShowRowGroupForThisRow();return a}return!0},n.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,i=e.displayedGroupNode,r=e.columnModel,s=t.node,a=this.isExpandable();if(a){var l=this.showingValueForOpenedParent?!0:s.expanded;this.comp.setExpandedDisplayed(l),this.comp.setContractedDisplayed(!l)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var c=r.isPivotMode(),u=c&&i.leafGroup,d=a&&!u,p=s.footer&&s.level===-1;this.comp.addOrRemoveCssClass("ag-cell-expandable",d),this.comp.addOrRemoveCssClass("ag-row-group",d),c?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",u):p||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!d)},n.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},n.prototype.setupIndent=function(){var e=this.params.node,t=this.params.suppressPadding;t||(this.addManagedListener(e,gt.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},n.prototype.setIndent=function(){if(!this.gridOptionsService.get("groupHideOpenParents")){var e=this.params,t=e.node,i=!!e.colDef,r=this.gridOptionsService.get("treeData"),s=!i||r||e.colDef.showRowGroup===!0,a=s?t.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+a,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},n.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(!(!this.params.fullWidth||!this.params.rowDrag)){var t=new fg(function(){return e.params.value},this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},n.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return typeof e=="function"||e===!0},n.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,i=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(i){var r=new jR;this.getContext().createBean(r),r.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(r)})}this.comp.setCheckboxVisible(i)},n.prototype.onKeyDown=function(e){var t=e.key===q.ENTER;if(!(!t||this.params.suppressEnterExpand)){var i=this.params.column&&this.params.column.isCellEditable(this.params.node);i||this.onExpandOrContract(e)}},n.prototype.onCellDblClicked=function(e){if(!_o(e)){var t=ag(this.eExpanded,e)||ag(this.eContracted,e);t||this.onExpandOrContract(e)}},ld([b("expressionService")],n.prototype,"expressionService",void 0),ld([b("valueFormatterService")],n.prototype,"valueFormatterService",void 0),ld([b("columnModel")],n.prototype,"columnModel",void 0),ld([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ld([b("ctrlsService")],n.prototype,"ctrlsService",void 0),n}(re),wQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),cd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},EO=function(o){wQ(n,o);function n(){return o.call(this,n.TEMPLATE)||this}return n.prototype.init=function(e){var t=this,i={setInnerRenderer:function(l,c){return t.setRenderDetails(l,c)},setChildCount:function(l){return t.eChildCount.textContent=l},addOrRemoveCssClass:function(l,c){return t.addOrRemoveCssClass(l,c)},setContractedDisplayed:function(l){return It(t.eContracted,l)},setExpandedDisplayed:function(l){return It(t.eExpanded,l)},setCheckboxVisible:function(l){return t.eCheckbox.classList.toggle("ag-invisible",!l)}},r=this.createManagedBean(new SQ),s=!e.colDef,a=this.getGui();r.init(i,a,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),s&&Qn(a,r.getCellAriaRole())},n.prototype.setRenderDetails=function(e,t){var i=this;if(e){var r=e.newAgStackInstance();if(!r)return;r.then(function(s){if(s){var a=function(){return i.context.destroyBean(s)};i.isAlive()?(i.eValue.appendChild(s.getGui()),i.addDestroyFunc(a)):a()}})}else this.eValue.innerText=t},n.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),o.prototype.destroy.call(this)},n.prototype.refresh=function(){return!1},n.TEMPLATE=`<span class="ag-cell-wrapper">
  99. <span class="ag-group-expanded" ref="eExpanded"></span>
  100. <span class="ag-group-contracted" ref="eContracted"></span>
  101. <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>
  102. <span class="ag-group-value" ref="eValue"></span>
  103. <span class="ag-group-child-count" ref="eChildCount"></span>
  104. </span>`,cd([Ce("eExpanded")],n.prototype,"eExpanded",void 0),cd([Ce("eContracted")],n.prototype,"eContracted",void 0),cd([Ce("eCheckbox")],n.prototype,"eCheckbox",void 0),cd([Ce("eValue")],n.prototype,"eValue",void 0),cd([Ce("eChildCount")],n.prototype,"eChildCount",void 0),n}(dt),bQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),xO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},TQ=function(o){bQ(n,o);function n(){return o.call(this,n.TEMPLATE)||this}return n.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},n.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},n.prototype.setupLoading=function(){var e=Gn("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},n.prototype.refresh=function(e){return!1},n.prototype.destroy=function(){o.prototype.destroy.call(this)},n.TEMPLATE=`<div class="ag-loading">
  105. <span class="ag-loading-icon" ref="eLoadingIcon"></span>
  106. <span class="ag-loading-text" ref="eLoadingText"></span>
  107. </div>`,xO([Ce("eLoadingIcon")],n.prototype,"eLoadingIcon",void 0),xO([Ce("eLoadingText")],n.prototype,"eLoadingText",void 0),n}(dt),EQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),xQ=function(o){EQ(n,o);function n(){return o.call(this)||this}return n.prototype.destroy=function(){o.prototype.destroy.call(this)},n.prototype.init=function(e){var t=this,i=this.gridOptionsService.get("overlayLoadingTemplate");if(this.setTemplate(i??n.DEFAULT_LOADING_OVERLAY_TEMPLATE),!i){var r=this.localeService.getLocaleTextFunc();setTimeout(function(){t.getGui().textContent=r("loadingOoo","Loading...")})}},n.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span aria-live="polite" aria-atomic="true" class="ag-overlay-loading-center"></span>',n}(dt),zQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),OQ=function(o){zQ(n,o);function n(){return o.call(this)||this}return n.prototype.destroy=function(){o.prototype.destroy.call(this)},n.prototype.init=function(e){var t=this,i=this.gridOptionsService.get("overlayNoRowsTemplate");if(this.setTemplate(i??n.DEFAULT_NO_ROWS_TEMPLATE),!i){var r=this.localeService.getLocaleTextFunc();setTimeout(function(){t.getGui().textContent=r("noRowsToShow","No Rows To Show")})}},n.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center"></span>',n}(dt),DQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),RQ=function(o){DQ(n,o);function n(){return o.call(this,'<div class="ag-tooltip"></div>')||this}return n.prototype.init=function(e){var t=e.value;this.getGui().textContent=Yn(t,!0)},n}(pl),IQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),PQ=function(){function o(){}return o.prototype.getTemplate=function(){return'<ag-input-number-field class="ag-cell-editor" ref="eInput"></ag-input-number-field>'},o.prototype.init=function(n,e){this.eInput=n,this.params=e,e.max!=null&&n.setMax(e.max),e.min!=null&&n.setMin(e.min),e.precision!=null&&n.setPrecision(e.precision),e.step!=null&&n.setStep(e.step);var t=n.getInputElement();e.preventStepping?n.addManagedListener(t,"keydown",this.preventStepping):e.showStepperButtons&&t.classList.add("ag-number-field-input-stepper")},o.prototype.preventStepping=function(n){(n.key===q.UP||n.key===q.DOWN)&&n.preventDefault()},o.prototype.getValue=function(){var n=this.eInput.getValue();if(!ne(n)&&!ne(this.params.value))return this.params.value;var e=this.params.parseValue(n);if(e==null)return e;if(typeof e=="string"){if(e==="")return null;e=Number(e)}return isNaN(e)?null:e},o.prototype.getStartValue=function(){return this.params.value},o}(),MQ=function(o){IQ(n,o);function n(){return o.call(this,new PQ)||this}return n}(Pg),FQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),AQ=function(){function o(){}return o.prototype.getTemplate=function(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'},o.prototype.init=function(n,e){this.eInput=n,this.params=e,e.min!=null&&n.setMin(e.min),e.max!=null&&n.setMax(e.max),e.step!=null&&n.setStep(e.step)},o.prototype.getValue=function(){var n=this.eInput.getDate();return!ne(n)&&!ne(this.params.value)?this.params.value:n??null},o.prototype.getStartValue=function(){var n=this.params.value;if(n instanceof Date)return qr(n,!1)},o}(),NQ=function(o){FQ(n,o);function n(){return o.call(this,new AQ)||this}return n}(Pg),LQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),kQ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},VQ=function(){function o(n){this.getDataTypeService=n}return o.prototype.getTemplate=function(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'},o.prototype.init=function(n,e){this.eInput=n,this.params=e,e.min!=null&&n.setMin(e.min),e.max!=null&&n.setMax(e.max),e.step!=null&&n.setStep(e.step)},o.prototype.getValue=function(){var n=this.formatDate(this.eInput.getDate());return!ne(n)&&!ne(this.params.value)?this.params.value:this.params.parseValue(n??"")},o.prototype.getStartValue=function(){var n,e;return qr((e=this.parseDate((n=this.params.value)!==null&&n!==void 0?n:void 0))!==null&&e!==void 0?e:null,!1)},o.prototype.parseDate=function(n){return this.getDataTypeService().getDateParserFunction(this.params.column)(n)},o.prototype.formatDate=function(n){return this.getDataTypeService().getDateFormatterFunction(this.params.column)(n)},o}(),GQ=function(o){LQ(n,o);function n(){var e=o.call(this,new VQ(function(){return e.dataTypeService}))||this;return e}return kQ([b("dataTypeService")],n.prototype,"dataTypeService",void 0),n}(Pg),HQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),BQ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},$Q=function(o){HQ(n,o);function n(){return o.call(this,n.TEMPLATE)||this}return n.prototype.init=function(e){var t=this;this.params=e,this.updateCheckbox(e);var i=this.eCheckbox.getInputElement();i.setAttribute("tabindex","-1"),o0(i,"polite"),this.addManagedListener(i,"click",function(s){if(So(s),!t.eCheckbox.isDisabled()){var a=t.eCheckbox.getValue();t.onCheckboxChanged(a)}}),this.addManagedListener(i,"dblclick",function(s){So(s)});var r=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",function(s){if(s.key===q.SPACE&&!t.eCheckbox.isDisabled()){t.params.eGridCell===r.activeElement&&t.eCheckbox.toggle();var a=t.eCheckbox.getValue();t.onCheckboxChanged(a),s.preventDefault()}})},n.prototype.refresh=function(e){return this.params=e,this.updateCheckbox(e),!0},n.prototype.updateCheckbox=function(e){var t,i,r,s,a=!0;if(e.node.group&&e.column){var l=e.column.getColId();l.startsWith(Bc)?s=e.value==null||e.value===""?void 0:e.value==="true":e.node.aggData&&e.node.aggData[l]!==void 0?s=(t=e.value)!==null&&t!==void 0?t:void 0:a=!1}else s=(i=e.value)!==null&&i!==void 0?i:void 0;if(!a){this.eCheckbox.setDisplayed(!1);return}this.eCheckbox.setValue(s);var c=e.disabled!=null?e.disabled:!(!((r=e.column)===null||r===void 0)&&r.isCellEditable(e.node));this.eCheckbox.setDisabled(c);var u=this.localeService.getLocaleTextFunc(),d=h0(u,s),p=c?d:"".concat(u("ariaToggleCellValue","Press SPACE to toggle cell value")," (").concat(d,")");this.eCheckbox.setInputAriaLabel(p)},n.prototype.onCheckboxChanged=function(e){var t=this.params,i=t.column,r=t.node,s=t.rowIndex,a=t.value,l={type:T.EVENT_CELL_EDITING_STARTED,column:i,colDef:i?.getColDef(),data:r.data,node:r,rowIndex:s,rowPinned:r.rowPinned,value:a};this.eventService.dispatchEvent(l);var c=this.params.node.setDataValue(this.params.column,e,"edit"),u={type:T.EVENT_CELL_EDITING_STOPPED,column:i,colDef:i?.getColDef(),data:r.data,node:r,rowIndex:s,rowPinned:r.rowPinned,value:a,oldValue:a,newValue:e,valueChanged:c};this.eventService.dispatchEvent(u)},n.TEMPLATE=`
  108. <div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
  109. <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
  110. </div>`,BQ([Ce("eCheckbox")],n.prototype,"eCheckbox",void 0),n}(dt),jQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),WQ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},UQ=function(o){jQ(n,o);function n(){return o.call(this,`
  111. <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
  112. <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
  113. </div>`)||this}return n.prototype.init=function(e){var t=this,i;this.params=e;var r=(i=e.value)!==null&&i!==void 0?i:void 0;this.eCheckbox.setValue(r);var s=this.eCheckbox.getInputElement();s.setAttribute("tabindex","-1"),this.setAriaLabel(r),this.addManagedListener(this.eCheckbox,T.EVENT_FIELD_VALUE_CHANGED,function(a){return t.setAriaLabel(a.selected)})},n.prototype.getValue=function(){return this.eCheckbox.getValue()},n.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},n.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},n.prototype.isPopup=function(){return!1},n.prototype.setAriaLabel=function(e){var t=this.localeService.getLocaleTextFunc(),i=h0(t,e),r=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel("".concat(r," (").concat(i,")"))},WQ([Ce("eCheckbox")],n.prototype,"eCheckbox",void 0),n}(pl),KQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),qQ=function(o){KQ(n,o);function n(){var e=o.call(this)||this;return e.setTemplate("<div></div>"),e}return n.prototype.init=function(e){var t;this.params=e,this.cssClassPrefix=(t=this.params.cssClassPrefix)!==null&&t!==void 0?t:"ag-menu-option",this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()},n.prototype.configureDefaults=function(){return!0},n.prototype.addIcon=function(){if(!this.params.isCompact){var e=or('<span ref="eIcon" class="'.concat(this.getClassName("part")," ").concat(this.getClassName("icon"),'" role="presentation"></span>'));this.params.checked?e.appendChild(Gn("check",this.gridOptionsService)):this.params.icon&&(Xd(this.params.icon)?e.appendChild(this.params.icon):typeof this.params.icon=="string"?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},n.prototype.addName=function(){var e=or('<span ref="eName" class="'.concat(this.getClassName("part")," ").concat(this.getClassName("text"),'">').concat(this.params.name||"","</span>"));this.getGui().appendChild(e)},n.prototype.addShortcut=function(){if(!this.params.isCompact){var e=or('<span ref="eShortcut" class="'.concat(this.getClassName("part")," ").concat(this.getClassName("shortcut"),'">').concat(this.params.shortcut||"","</span>"));this.getGui().appendChild(e)}},n.prototype.addSubMenu=function(){var e=or('<span ref="ePopupPointer" class="'.concat(this.getClassName("part")," ").concat(this.getClassName("popup-pointer"),'"></span>')),t=this.getGui();if(this.params.subMenu){var i=this.gridOptionsService.get("enableRtl")?"smallLeft":"smallRight";Ts(t,!1),e.appendChild(Gn(i,this.gridOptionsService))}t.appendChild(e)},n.prototype.getClassName=function(e){return"".concat(this.cssClassPrefix,"-").concat(e)},n.prototype.destroy=function(){o.prototype.destroy.call(this)},n}(dt),YQ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),QC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},zO=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},OO=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},QQ=function(o){YQ(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:HY,agColumnHeader:W_,agColumnGroupHeader:XY,agSortIndicator:A0,agTextColumnFloatingFilter:KY,agNumberColumnFloatingFilter:WY,agDateColumnFloatingFilter:LY,agReadOnlyFloatingFilter:fY,agAnimateShowChangeCellRenderer:pQ,agAnimateSlideCellRenderer:gQ,agGroupCellRenderer:EO,agGroupRowRenderer:EO,agLoadingCellRenderer:TQ,agCheckboxCellRenderer:$Q,agCellEditor:bO,agTextCellEditor:bO,agNumberCellEditor:MQ,agDateCellEditor:NQ,agDateStringCellEditor:GQ,agSelectCellEditor:iQ,agLargeTextCellEditor:tQ,agCheckboxCellEditor:UQ,agTextColumnFilter:F0,agNumberColumnFilter:LR,agDateColumnFilter:MR,agLoadingOverlay:xQ,agNoRowsOverlay:OQ,agTooltipComponent:RQ,agMenuItem:qQ},e.enterpriseAgDefaultCompsModule={agSetColumnFilter:je.SetFilterModule,agSetColumnFloatingFilter:je.SetFilterModule,agMultiColumnFilter:je.MultiFilterModule,agMultiColumnFloatingFilter:je.MultiFilterModule,agGroupColumnFilter:je.RowGroupingModule,agGroupColumnFloatingFilter:je.RowGroupingModule,agRichSelect:je.RichSelectModule,agRichSelectCellEditor:je.RichSelectModule,agDetailCellRenderer:je.MasterDetailModule,agSparklineCellRenderer:je.SparklinesModule},e.jsComps={},e}return n.prototype.init=function(){var e=this;this.gridOptions.components!=null&&Ei(this.gridOptions.components,function(t,i){return e.registerJsComponent(t,i)})},n.prototype.registerDefaultComponent=function(e,t){if(this.agGridDefaults[e]){console.error("Trying to overwrite a default component. You should call registerComponent");return}this.agGridDefaults[e]=t},n.prototype.registerJsComponent=function(e,t){this.jsComps[e]=t},n.prototype.retrieve=function(e,t){var i=this,r=function(d,p){return{componentFromFramework:p,component:d}},s=this.getFrameworkOverrides().frameworkComponent(t,this.gridOptions.components);if(s!=null)return r(s,!0);var a=this.jsComps[t];if(a){var l=this.getFrameworkOverrides().isFrameworkComponent(a);return r(a,l)}var c=this.agGridDefaults[t];if(c)return r(c,!1);var u=this.enterpriseAgDefaultCompsModule[t];return u?qt.__assertRegistered(u,"AG Grid '".concat(e,"' component: ").concat(t),this.context.getGridId()):nl(function(){i.warnAboutMissingComponent(e,t)},"MissingComp"+t),null},n.prototype.warnAboutMissingComponent=function(e,t){var i=OO(OO([],zO(Object.keys(this.agGridDefaults).filter(function(s){return!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(s)})),!1),zO(Object.keys(this.jsComps)),!1),r=Zd(t,i,!0,.8).values;console.warn("AG Grid: Could not find '".concat(t,`' component. It was configured as "`).concat(e,": '").concat(t,`'" but it wasn't found in the list of registered components.`)),r.length>0&&console.warn(" Did you mean: [".concat(r.slice(0,3),"]?")),console.warn("If using a custom component check it has been registered as described in: ".concat(this.getFrameworkOverrides().getDocLink("components/")))},QC([b("gridOptions")],n.prototype,"gridOptions",void 0),QC([pe],n.prototype,"init",null),n=QC([Oe("userComponentRegistry")],n),n}(re),XQ={propertyName:"dateComponent",cellRenderer:!1},ZQ={propertyName:"headerComponent",cellRenderer:!1},JQ={propertyName:"headerGroupComponent",cellRenderer:!1},DO={propertyName:"cellRenderer",cellRenderer:!0},eX={propertyName:"cellEditor",cellRenderer:!1},RO={propertyName:"innerRenderer",cellRenderer:!0},tX={propertyName:"loadingOverlayComponent",cellRenderer:!1},nX={propertyName:"noRowsOverlayComponent",cellRenderer:!1},iX={propertyName:"tooltipComponent",cellRenderer:!1},U_={propertyName:"filter",cellRenderer:!1},rX={propertyName:"floatingFilterComponent",cellRenderer:!1},oX={propertyName:"toolPanel",cellRenderer:!1},sX={propertyName:"statusPanel",cellRenderer:!1},aX={propertyName:"fullWidthCellRenderer",cellRenderer:!0},lX={propertyName:"loadingCellRenderer",cellRenderer:!0},cX={propertyName:"groupRowRenderer",cellRenderer:!0},uX={propertyName:"detailCellRenderer",cellRenderer:!0},dX={propertyName:"menuItem",cellRenderer:!1},pX=function(){function o(){}return o.getFloatingFilterType=function(n){return this.filterToFloatingFilterMapping[n]},o.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},o}(),hX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Oc=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},fX=function(o){hX(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,ZQ,"agColumnHeader",t)},n.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,JQ,"agColumnGroupHeader",e)},n.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,aX,null,e,!0)},n.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,lX,"agLoadingCellRenderer",e,!0)},n.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,cX,"agGroupRowRenderer",e,!0)},n.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,uX,"agDetailCellRenderer",e,!0)},n.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,RO,null,t)},n.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,RO,null,t)},n.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,DO,null,t)},n.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,eX,"agCellEditor",t,!0)},n.prototype.getFilterDetails=function(e,t,i){return this.getCompDetails(e,U_,i,t,!0)},n.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,XQ,"agDateInput",e,!0)},n.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,tX,"agLoadingOverlay",e,!0)},n.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,nX,"agNoRowsOverlay",e,!0)},n.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,iX,"agTooltipComponent",e,!0)},n.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,DO,null,t)},n.prototype.getFloatingFilterCompDetails=function(e,t,i){return this.getCompDetails(e,rX,i,t)},n.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,oX,null,t,!0)},n.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,sX,null,t,!0)},n.prototype.getMenuItemCompDetails=function(e,t){return this.getCompDetails(e,dX,"agMenuItem",t,!0)},n.prototype.getCompDetails=function(e,t,i,r,s){var a=this;s===void 0&&(s=!1);var l=t.propertyName,c=t.cellRenderer,u=this.getCompKeys(e,t,r),d=u.compName,p=u.jsComp,g=u.fwComp,v=u.paramsFromSelector,y=u.popupFromSelector,x=u.popupPositionFromSelector,E=function(U){var se=a.userComponentRegistry.retrieve(l,U);se&&(p=se.componentFromFramework?void 0:se.component,g=se.componentFromFramework?se.component:void 0)};if(d!=null&&E(d),p==null&&g==null&&i!=null&&E(i),p&&c&&!this.agComponentUtils.doesImplementIComponent(p)&&(p=this.agComponentUtils.adaptFunction(l,p)),!p&&!g){s&&console.error("AG Grid: Could not find component ".concat(d,", did you forget to configure this component?"));return}var z=this.mergeParamsWithApplicationProvidedParams(e,t,r,v),M=p==null,G=p||g;return{componentFromFramework:M,componentClass:G,params:z,type:t,popupFromSelector:y,popupPositionFromSelector:x,newAgStackInstance:function(){return a.newAgStackInstance(G,M,z,t)}}},n.prototype.getCompKeys=function(e,t,i){var r=this,s=t.propertyName,a,l,c,u,d,p;if(e){var g=e,v=g[s+"Selector"],y=v?v(i):null,x=function(E){if(typeof E=="string")a=E;else if(E!=null&&E!==!0){var z=r.getFrameworkOverrides().isFrameworkComponent(E);z?c=E:l=E}};y?(x(y.component),u=y.params,d=y.popup,p=y.popupPosition):x(g[s])}return{compName:a,jsComp:l,fwComp:c,paramsFromSelector:u,popupFromSelector:d,popupPositionFromSelector:p}},n.prototype.newAgStackInstance=function(e,t,i,r){var s=r.propertyName,a=!t,l;if(a)l=new e;else{var c=this.componentMetadataProvider.retrieve(s);l=this.frameworkComponentWrapper.wrap(e,c.mandatoryMethodList,c.optionalMethodList,r)}var u=this.initComponent(l,i);return u==null?Ni.resolve(l):u.then(function(){return l})},n.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,i,r){r===void 0&&(r=null);var s=this.gridOptionsService.getGridCommonParams();xr(s,i);var a=e,l=a&&a[t.propertyName+"Params"];if(typeof l=="function"){var c=l(i);xr(s,c)}else typeof l=="object"&&xr(s,l);return xr(s,r),s},n.prototype.initComponent=function(e,t){if(this.context.createBean(e),e.init!=null)return e.init(t)},n.prototype.getDefaultFloatingFilterType=function(e,t){if(e==null)return null;var i=null,r=this.getCompKeys(e,U_),s=r.compName,a=r.jsComp,l=r.fwComp;if(s)i=pX.getFloatingFilterType(s);else{var c=a==null&&l==null&&e.filter===!0;c&&(i=t())}return i},Oc([b("gridOptions")],n.prototype,"gridOptions",void 0),Oc([b("agComponentUtils")],n.prototype,"agComponentUtils",void 0),Oc([b("componentMetadataProvider")],n.prototype,"componentMetadataProvider",void 0),Oc([b("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),Oc([Mt("frameworkComponentWrapper")],n.prototype,"frameworkComponentWrapper",void 0),n=Oc([Oe("userComponentFactory")],n),n}(re),gX=function(){function o(){}return o.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0},o.ALL_PROPERTIES=Object.keys(o.ColDefPropertyMap),o}(),K_=function(o){return o[o.SINGLE_SHEET=0]="SINGLE_SHEET",o[o.MULTI_SHEET=1]="MULTI_SHEET",o}(K_||{}),mX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),XC=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},vX=function(o){mX(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return n.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},n.prototype.removeListener=function(e){var t=e.dragSource.eElement,i=e.mouseDownListener;if(t.removeEventListener("mousedown",i),e.touchEnabled){var r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}},n.prototype.removeDragSource=function(e){var t=this.dragSources.find(function(i){return i.dragSource===e});t&&(this.removeListener(t),ir(this.dragSources,t))},n.prototype.isDragging=function(){return this.dragging},n.prototype.addDragSource=function(e){var t=this,i=this.onMouseDown.bind(this,e),r=e.eElement,s=e.includeTouch,a=e.stopPropagationForTouch;r.addEventListener("mousedown",i);var l=null,c=this.gridOptionsService.get("suppressTouch");s&&!c&&(l=function(u){S0(u.target)||(u.cancelable&&(u.preventDefault(),a&&u.stopPropagation()),t.onTouchStart(e,u))},r.addEventListener("touchstart",l,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:i,touchStartListener:l,touchEnabled:!!s})},n.prototype.getStartTarget=function(){return this.startTarget},n.prototype.onTouchStart=function(e,t){var i=this;this.currentDragParams=e,this.dragging=!1;var r=t.touches[0];this.touchLastTime=r,this.touchStart=r;var s=function(d){return i.onTouchMove(d,e.eElement)},a=function(d){return i.onTouchUp(d,e.eElement)},l=function(d){d.cancelable&&d.preventDefault()},c=t.target,u=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:l,options:{passive:!1}},{target:c,type:"touchmove",listener:s,options:{passive:!0}},{target:c,type:"touchend",listener:a,options:{passive:!0}},{target:c,type:"touchcancel",listener:a,options:{passive:!0}}];this.addTemporaryEvents(u),e.dragStartPixels===0&&this.onCommonMove(r,this.touchStart,e.eElement)},n.prototype.onMouseDown=function(e,t){var i=this,r=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t))&&!r._alreadyProcessedByDragService&&(r._alreadyProcessedByDragService=!0,t.button===0)){this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;var s=function(d){return i.onMouseMove(d,e.eElement)},a=function(d){return i.onMouseUp(d,e.eElement)},l=function(d){return d.preventDefault()},c=this.gridOptionsService.getRootNode(),u=[{target:c,type:"mousemove",listener:s},{target:c,type:"mouseup",listener:a},{target:c,type:"contextmenu",listener:l}];this.addTemporaryEvents(u),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}},n.prototype.addTemporaryEvents=function(e){e.forEach(function(t){var i=t.target,r=t.type,s=t.listener,a=t.options;i.addEventListener(r,s,a)}),this.dragEndFunctions.push(function(){e.forEach(function(t){var i=t.target,r=t.type,s=t.listener,a=t.options;i.removeEventListener(r,s,a)})})},n.prototype.isEventNearStartEvent=function(e,t){var i=this.currentDragParams.dragStartPixels,r=ne(i)?i:4;return R0(e,t,r)},n.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},n.prototype.onCommonMove=function(e,t,i){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var r={type:T.EVENT_DRAG_STARTED,target:i};this.eventService.dispatchEvent(r),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},n.prototype.onTouchMove=function(e,t){var i=this.getFirstActiveTouch(e.touches);i&&this.onCommonMove(i,this.touchStart,t)},n.prototype.onMouseMove=function(e,t){var i;if(Zo()){var r=this.gridOptionsService.getDocument();(i=r.getSelection())===null||i===void 0||i.removeAllRanges()}this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},n.prototype.shouldPreventMouseEvent=function(e){var t=this.gridOptionsService.get("enableCellTextSelection"),i=e.type==="mousemove";return t&&i&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)},n.prototype.isOverFormFieldElement=function(e){var t=e.target,i=t?.tagName.toLocaleLowerCase();return!!i?.match("^a$|textarea|input|select|button")},n.prototype.onTouchUp=function(e,t){var i=this.getFirstActiveTouch(e.changedTouches);i||(i=this.touchLastTime),this.onUpCommon(i,t)},n.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},n.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var i={type:T.EVENT_DRAG_STOPPED,target:t};this.eventService.dispatchEvent(i)}this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(r){return r()}),this.dragEndFunctions.length=0},XC([b("mouseEventService")],n.prototype,"mouseEventService",void 0),XC([Li],n.prototype,"removeAllListeners",null),n=XC([Oe("dragService")],n),n}(re),UR=function(){function o(n){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=n.scrollContainer,this.scrollHorizontally=n.scrollAxis.indexOf("x")!==-1,this.scrollVertically=n.scrollAxis.indexOf("y")!==-1,this.scrollByTick=n.scrollByTick!=null?n.scrollByTick:20,n.onScrollCallback&&(this.onScrollCallback=n.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=n.getVerticalPosition,this.setVerticalPosition=n.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=n.getHorizontalPosition,this.setHorizontalPosition=n.setHorizontalPosition),this.shouldSkipVerticalScroll=n.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=n.shouldSkipHorizontalScroll||function(){return!1}}return o.prototype.check=function(n,e){e===void 0&&(e=!1);var t=e||this.shouldSkipVerticalScroll();if(!(t&&this.shouldSkipHorizontalScroll())){var i=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=n.clientX<i.left+r,this.tickRight=n.clientX>i.right-r,this.tickUp=n.clientY<i.top+r&&!t,this.tickDown=n.clientY>i.bottom-r&&!t,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},o.prototype.ensureTickingStarted=function(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},o.prototype.doTick=function(){this.tickCount++;var n;if(n=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-n),this.tickDown&&this.setVerticalPosition(e+n)}if(this.scrollHorizontally){var t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-n),this.tickRight&&this.setHorizontalPosition(t+n)}this.onScrollCallback&&this.onScrollCallback()},o.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},o}(),yX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),IO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ZC="ag-list-item-hovered",zwe=function(o){yX(n,o);function n(e,t,i){var r=o.call(this)||this;return r.comp=e,r.virtualList=t,r.params=i,r.currentDragValue=null,r.lastHoveredListItem=null,r}return n.prototype.postConstruct=function(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},n.prototype.listItemDragStart=function(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)},n.prototype.listItemDragEnd=function(){var e=this;window.setTimeout(function(){e.currentDragValue=null,e.moveBlocked=!1},10)},n.prototype.createDropTarget=function(){var e=this,t={isInterestedIn:function(i){return i===e.params.dragSourceType},getIconName:function(){return e.moveBlocked?Jn.ICON_PINNED:Jn.ICON_MOVE},getContainer:function(){return e.comp.getGui()},onDragging:function(i){return e.onDragging(i)},onDragStop:function(){return e.onDragStop()},onDragLeave:function(){return e.onDragLeave()}};this.dragAndDropService.addDropTarget(t)},n.prototype.createAutoScrollService=function(){var e=this.virtualList.getGui();this.autoScrollService=new UR({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(t){return e.scrollTop=t}})},n.prototype.onDragging=function(e){if(!(!this.currentDragValue||this.moveBlocked)){var t=this.getListDragItem(e),i=this.virtualList.getComponentAt(t.rowIndex);if(i){var r=i.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===t.rowIndex&&this.lastHoveredListItem.position===t.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=t,G_(r,ZC),G_(r,"ag-item-highlight-".concat(t.position)))}}},n.prototype.getListDragItem=function(e){var t=this.virtualList.getGui(),i=parseFloat(window.getComputedStyle(t).paddingTop),r=this.virtualList.getRowHeight(),s=this.virtualList.getScrollTop(),a=Math.max(0,(e.y-i+s)/r),l=this.params.getNumRows(this.comp)-1,c=Math.min(l,a)|0;return{rowIndex:c,position:Math.round(a)>a||a>l?"bottom":"top",component:this.virtualList.getComponentAt(c)}},n.prototype.onDragStop=function(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())},n.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},n.prototype.clearHoveredItems=function(){var e=this.virtualList.getGui();e.querySelectorAll(".".concat(ZC)).forEach(function(t){[ZC,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(function(i){t.classList.remove(i)})}),this.lastHoveredListItem=null},IO([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),IO([pe],n.prototype,"postConstruct",null),n}(re),ha=function(o){return o[o.Above=0]="Above",o[o.Below=1]="Below",o}(ha||{}),xt=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r};function el(o){var n=o,e=n!=null&&n.getFrameworkComponentInstance!=null;return e?n.getFrameworkComponentInstance():o}var KR=function(){function o(){this.detailGridInfoMap={},this.destroyCalled=!1}return o.prototype.init=function(){var n=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel;break}this.ctrlsService.whenReady(function(){n.gridBodyCtrl=n.ctrlsService.getGridBodyCtrl()})},o.prototype.__getAlignedGridService=function(){return this.alignedGridsService},o.prototype.__getContext=function(){return this.context},o.prototype.__getModel=function(){return this.rowModel},o.prototype.getGridId=function(){return this.context.getGridId()},o.prototype.addDetailGridInfo=function(n,e){this.detailGridInfoMap[n]=e},o.prototype.removeDetailGridInfo=function(n){this.detailGridInfoMap[n]=void 0},o.prototype.getDetailGridInfo=function(n){return this.detailGridInfoMap[n]},o.prototype.forEachDetailGridInfo=function(n){var e=0;Ei(this.detailGridInfoMap,function(t,i){ne(i)&&(n(i,e),e++)})},o.prototype.getDataAsCsv=function(n){if(qt.__assertRegistered(je.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(n)},o.prototype.exportDataAsCsv=function(n){qt.__assertRegistered(je.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(n)},o.prototype.assertNotExcelMultiSheet=function(n,e){return qt.__assertRegistered(je.ExcelExportModule,"api."+n,this.context.getGridId())?this.excelCreator.getFactoryMode()===K_.MULTI_SHEET?(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1):!0:!1},o.prototype.getDataAsExcel=function(n){if(this.assertNotExcelMultiSheet("getDataAsExcel",n))return this.excelCreator.getDataAsExcel(n)},o.prototype.exportDataAsExcel=function(n){this.assertNotExcelMultiSheet("exportDataAsExcel",n)&&this.excelCreator.exportDataAsExcel(n)},o.prototype.getSheetDataForExcel=function(n){if(qt.__assertRegistered(je.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId()))return this.excelCreator.setFactoryMode(K_.MULTI_SHEET),this.excelCreator.getSheetDataForExcel(n)},o.prototype.getMultipleSheetsAsExcel=function(n){if(qt.__assertRegistered(je.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(n)},o.prototype.exportMultipleSheetsAsExcel=function(n){qt.__assertRegistered(je.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId())&&this.excelCreator.exportMultipleSheetsAsExcel(n)},o.prototype.setGridAriaProperty=function(n,e){if(n){var t=this.ctrlsService.getGridBodyCtrl().getGui(),i="aria-".concat(n);e===null?t.removeAttribute(i):t.setAttribute(i,e)}},o.prototype.logMissingRowModel=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];console.error("AG Grid: api.".concat(n," can only be called when gridOptions.rowModelType is ").concat(e.join(" or ")))},o.prototype.logDeprecation=function(n,e,t,i){Je("Since ".concat(n," api.").concat(e," is deprecated. Please use ").concat(t," instead. ").concat(i))},o.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},o.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},o.prototype.getPinnedTopRow=function(n){return this.pinnedRowModel.getPinnedTopRow(n)},o.prototype.getPinnedBottomRow=function(n){return this.pinnedRowModel.getPinnedBottomRow(n)},o.prototype.expireValueCache=function(){this.valueCache.expire()},o.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},o.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},o.prototype.refreshCells=function(n){var e=this;n===void 0&&(n={}),this.frameworkOverrides.wrapIncoming(function(){return e.rowRenderer.refreshCells(n)})},o.prototype.flashCells=function(n){var e=this;n===void 0&&(n={});var t=function(i){return Je("Since v31.1 api.flashCells parameter '".concat(i,"Delay' is deprecated. Please use '").concat(i,"Duration' instead."))};ne(n.fadeDelay)&&t("fade"),ne(n.flashDelay)&&t("flash"),this.frameworkOverrides.wrapIncoming(function(){return e.rowRenderer.flashCells(n)})},o.prototype.redrawRows=function(n){var e=this;n===void 0&&(n={});var t=n?n.rowNodes:void 0;this.frameworkOverrides.wrapIncoming(function(){return e.rowRenderer.redrawRows(t)})},o.prototype.refreshHeader=function(){var n=this;this.frameworkOverrides.wrapIncoming(function(){return n.ctrlsService.getHeaderRowContainerCtrls().forEach(function(e){return e.refresh()})})},o.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},o.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},o.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},o.prototype.getModel=function(){return Je("Since v31.1 getModel() is deprecated. Please use the appropriate grid API methods instead."),this.rowModel},o.prototype.setRowNodeExpanded=function(n,e,t){this.expansionService.setRowNodeExpanded(n,e,t)},o.prototype.onGroupExpandedOrCollapsed=function(){if(tt(this.clientSideRowModel)){this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide");return}this.expansionService.onGroupExpandedOrCollapsed()},o.prototype.refreshClientSideRowModel=function(n){if(tt(this.clientSideRowModel)){this.logMissingRowModel("refreshClientSideRowModel","clientSide");return}this.clientSideRowModel.refreshModel(n)},o.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},o.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},o.prototype.getRowNode=function(n){return this.rowModel.getRowNode(n)},o.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gos.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},o.prototype.expandAll=function(){this.clientSideRowModel||this.serverSideRowModel?this.expansionService.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")},o.prototype.collapseAll=function(){this.clientSideRowModel||this.serverSideRowModel?this.expansionService.expandAll(!1):this.logMissingRowModel("collapseAll","clientSide","serverSide")},o.prototype.addRenderedRowListener=function(n,e,t){this.rowRenderer.addRenderedRowListener(n,e,t)},o.prototype.getQuickFilter=function(){return this.gos.get("quickFilterText")},o.prototype.getAdvancedFilterModel=function(){return qt.__assertRegistered(je.AdvancedFilterModule,"api.getAdvancedFilterModel",this.context.getGridId())?this.filterManager.getAdvancedFilterModel():null},o.prototype.setAdvancedFilterModel=function(n){this.filterManager.setAdvancedFilterModel(n)},o.prototype.showAdvancedFilterBuilder=function(){qt.__assertRegistered(je.AdvancedFilterModule,"api.setAdvancedFilterModel",this.context.getGridId())&&this.filterManager.showAdvancedFilterBuilder("api")},o.prototype.setNodesSelected=function(n){var e=n.nodes.every(function(a){return a.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),!1):a.id===void 0?(console.warn("AG Grid: cannot select node until id for node is known"),!1):!0});if(e){var t=n.nodes,i=n.source,r=n.newValue,s=t;this.selectionService.setNodesSelected({nodes:s,source:i??"api",newValue:r})}},o.prototype.selectAll=function(n){n===void 0&&(n="apiSelectAll"),this.selectionService.selectAllRowNodes({source:n})},o.prototype.deselectAll=function(n){n===void 0&&(n="apiSelectAll"),this.selectionService.deselectAllRowNodes({source:n})},o.prototype.selectAllFiltered=function(n){n===void 0&&(n="apiSelectAllFiltered"),this.selectionService.selectAllRowNodes({source:n,justFiltered:!0})},o.prototype.deselectAllFiltered=function(n){n===void 0&&(n="apiSelectAllFiltered"),this.selectionService.deselectAllRowNodes({source:n,justFiltered:!0})},o.prototype.getServerSideSelectionState=function(){return tt(this.serverSideRowModel)?(this.logMissingRowModel("getServerSideSelectionState","serverSide"),null):this.selectionService.getSelectionState()},o.prototype.setServerSideSelectionState=function(n){if(tt(this.serverSideRowModel)){this.logMissingRowModel("setServerSideSelectionState","serverSide");return}this.selectionService.setSelectionState(n,"api")},o.prototype.selectAllOnCurrentPage=function(n){n===void 0&&(n="apiSelectAllCurrentPage"),this.selectionService.selectAllRowNodes({source:n,justCurrentPage:!0})},o.prototype.deselectAllOnCurrentPage=function(n){n===void 0&&(n="apiSelectAllCurrentPage"),this.selectionService.deselectAllRowNodes({source:n,justCurrentPage:!0})},o.prototype.showLoadingOverlay=function(){this.overlayService.showLoadingOverlay()},o.prototype.showNoRowsOverlay=function(){this.overlayService.showNoRowsOverlay()},o.prototype.hideOverlay=function(){this.overlayService.hideOverlay()},o.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},o.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},o.prototype.getBestCostNodeSelection=function(){if(tt(this.clientSideRowModel)){this.logMissingRowModel("getBestCostNodeSelection","clientSide");return}return this.selectionService.getBestCostNodeSelection()},o.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},o.prototype.ensureColumnVisible=function(n,e){var t=this;e===void 0&&(e="auto"),this.frameworkOverrides.wrapIncoming(function(){return t.gridBodyCtrl.getScrollFeature().ensureColumnVisible(n,e)},"ensureVisible")},o.prototype.ensureIndexVisible=function(n,e){var t=this;this.frameworkOverrides.wrapIncoming(function(){return t.gridBodyCtrl.getScrollFeature().ensureIndexVisible(n,e)},"ensureVisible")},o.prototype.ensureNodeVisible=function(n,e){var t=this;e===void 0&&(e=null),this.frameworkOverrides.wrapIncoming(function(){return t.gridBodyCtrl.getScrollFeature().ensureNodeVisible(n,e)},"ensureVisible")},o.prototype.forEachLeafNode=function(n){if(tt(this.clientSideRowModel)){this.logMissingRowModel("forEachLeafNode","clientSide");return}this.clientSideRowModel.forEachLeafNode(n)},o.prototype.forEachNode=function(n,e){this.rowModel.forEachNode(n,e)},o.prototype.forEachNodeAfterFilter=function(n){if(tt(this.clientSideRowModel)){this.logMissingRowModel("forEachNodeAfterFilter","clientSide");return}this.clientSideRowModel.forEachNodeAfterFilter(n)},o.prototype.forEachNodeAfterFilterAndSort=function(n){if(tt(this.clientSideRowModel)){this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide");return}this.clientSideRowModel.forEachNodeAfterFilterAndSort(n)},o.prototype.getFilterInstance=function(n,e){return Je("'getFilterInstance' is deprecated. To get/set individual filter models, use 'getColumnFilterModel' or 'setColumnFilterModel' instead. To get hold of the filter instance, use 'getColumnFilterInstance' which returns the instance asynchronously."),this.filterManager.getFilterInstance(n,e)},o.prototype.getColumnFilterInstance=function(n){return this.filterManager.getColumnFilterInstance(n)},o.prototype.destroyFilter=function(n){var e=this.columnModel.getPrimaryColumn(n);if(e)return this.filterManager.destroyFilter(e,"api")},o.prototype.getStatusPanel=function(n){if(qt.__assertRegistered(je.StatusBarModule,"api.getStatusPanel",this.context.getGridId())){var e=this.statusBarService.getStatusPanel(n);return el(e)}},o.prototype.getColumnDef=function(n){var e=this.columnModel.getPrimaryColumn(n);return e?e.getColDef():null},o.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},o.prototype.onFilterChanged=function(n){n===void 0&&(n="api"),this.filterManager.onFilterChanged({source:n})},o.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},o.prototype.setFilterModel=function(n){var e=this;this.frameworkOverrides.wrapIncoming(function(){return e.filterManager.setFilterModel(n)})},o.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},o.prototype.getColumnFilterModel=function(n){return this.filterManager.getColumnFilterModel(n)},o.prototype.setColumnFilterModel=function(n,e){return this.filterManager.setColumnFilterModel(n,e)},o.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},o.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},o.prototype.setFocusedCell=function(n,e,t){this.focusService.setFocusedCell({rowIndex:n,column:e,rowPinned:t,forceBrowserFocus:!0})},o.prototype.addRowDropZone=function(n){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(n)},o.prototype.removeRowDropZone=function(n){var e=this.dragAndDropService.findExternalZone(n);e&&this.dragAndDropService.removeDropTarget(e)},o.prototype.getRowDropZoneParams=function(n){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(n)},o.prototype.assertSideBarLoaded=function(n){return qt.__assertRegistered(je.SideBarModule,"api."+n,this.context.getGridId())},o.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarService.getSideBarComp().isDisplayed()},o.prototype.setSideBarVisible=function(n){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarService.getSideBarComp().setDisplayed(n)},o.prototype.setSideBarPosition=function(n){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarService.getSideBarComp().setSideBarPosition(n)},o.prototype.openToolPanel=function(n){this.assertSideBarLoaded("openToolPanel")&&this.sideBarService.getSideBarComp().openToolPanel(n,"api")},o.prototype.closeToolPanel=function(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarService.getSideBarComp().close("api")},o.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarService.getSideBarComp().openedItem():null},o.prototype.refreshToolPanel=function(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarService.getSideBarComp().refresh()},o.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarService.getSideBarComp().isToolPanelShowing()},o.prototype.getToolPanelInstance=function(n){if(this.assertSideBarLoaded("getToolPanelInstance")){var e=this.sideBarService.getSideBarComp().getToolPanelInstance(n);return el(e)}},o.prototype.getSideBar=function(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarService.getSideBarComp().getDef()},o.prototype.resetRowHeights=function(){if(ne(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive()){console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");return}this.clientSideRowModel.resetRowHeights()}},o.prototype.setRowCount=function(n,e){if(this.serverSideRowModel){if(this.columnModel.isRowGroupEmpty()){this.serverSideRowModel.setRowCount(n,e);return}console.error("AG Grid: setRowCount cannot be used while using row grouping.");return}if(this.infiniteRowModel){this.infiniteRowModel.setRowCount(n,e);return}this.logMissingRowModel("setRowCount","infinite","serverSide")},o.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},o.prototype.getValue=function(n,e){var t=this.columnModel.getPrimaryColumn(n);return tt(t)&&(t=this.columnModel.getGridColumn(n)),tt(t)?null:this.valueService.getValue(t,e)},o.prototype.addEventListener=function(n,e){this.apiEventService.addEventListener(n,e)},o.prototype.addGlobalListener=function(n){this.apiEventService.addGlobalListener(n)},o.prototype.removeEventListener=function(n,e){this.apiEventService.removeEventListener(n,e)},o.prototype.removeGlobalListener=function(n){this.apiEventService.removeGlobalListener(n)},o.prototype.dispatchEvent=function(n){this.eventService.dispatchEvent(n)},o.prototype.destroy=function(){var n="See ".concat(this.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed"));if(!this.destroyCalled){var e={type:T.EVENT_GRID_PRE_DESTROYED,state:this.getState()};this.dispatchEvent(e),this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy(),zD(this,["isDestroyed"],n)}},o.prototype.isDestroyed=function(){return this.destroyCalled},o.prototype.resetQuickFilter=function(){this.filterManager.resetQuickFilterCache()},o.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(qt.__assertRegistered(je.RangeSelectionModule,"api.getCellRanges",this.context.getGridId()),null)},o.prototype.addCellRange=function(n){if(this.rangeService){this.rangeService.addCellRange(n);return}qt.__assertRegistered(je.RangeSelectionModule,"api.addCellRange",this.context.getGridId())},o.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),qt.__assertRegistered(je.RangeSelectionModule,"gridApi.clearRangeSelection",this.context.getGridId())},o.prototype.undoCellEditing=function(){this.undoRedoService.undo("api")},o.prototype.redoCellEditing=function(){this.undoRedoService.redo("api")},o.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},o.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},o.prototype.assertChart=function(n,e){if(qt.__assertRegistered(je.GridChartsModule,"api."+n,this.context.getGridId()))return this.frameworkOverrides.wrapIncoming(function(){return e()})},o.prototype.getChartModels=function(){var n=this;return this.assertChart("getChartModels",function(){return n.chartService.getChartModels()})},o.prototype.getChartRef=function(n){var e=this;return this.assertChart("getChartRef",function(){return e.chartService.getChartRef(n)})},o.prototype.getChartImageDataURL=function(n){var e=this;return this.assertChart("getChartImageDataURL",function(){return e.chartService.getChartImageDataURL(n)})},o.prototype.downloadChart=function(n){var e=this;return this.assertChart("downloadChart",function(){return e.chartService.downloadChart(n)})},o.prototype.openChartToolPanel=function(n){var e=this;return this.assertChart("openChartToolPanel",function(){return e.chartService.openChartToolPanel(n)})},o.prototype.closeChartToolPanel=function(n){var e=this;return this.assertChart("closeChartToolPanel",function(){return e.chartService.closeChartToolPanel(n.chartId)})},o.prototype.createRangeChart=function(n){var e=this;return this.assertChart("createRangeChart",function(){return e.chartService.createRangeChart(n)})},o.prototype.createPivotChart=function(n){var e=this;return this.assertChart("createPivotChart",function(){return e.chartService.createPivotChart(n)})},o.prototype.createCrossFilterChart=function(n){var e=this;return this.assertChart("createCrossFilterChart",function(){return e.chartService.createCrossFilterChart(n)})},o.prototype.updateChart=function(n){var e=this;return this.assertChart("updateChart",function(){return e.chartService.updateChart(n)})},o.prototype.restoreChart=function(n,e){var t=this;return this.assertChart("restoreChart",function(){return t.chartService.restoreChart(n,e)})},o.prototype.assertClipboard=function(n,e){qt.__assertRegistered(je.ClipboardModule,"api"+n,this.context.getGridId())&&e()},o.prototype.copyToClipboard=function(n){var e=this;this.assertClipboard("copyToClipboard",function(){return e.clipboardService.copyToClipboard(n)})},o.prototype.cutToClipboard=function(n){var e=this;this.assertClipboard("cutToClipboard",function(){return e.clipboardService.cutToClipboard(n)})},o.prototype.copySelectedRowsToClipboard=function(n){var e=this;this.assertClipboard("copySelectedRowsToClipboard",function(){return e.clipboardService.copySelectedRowsToClipboard(n)})},o.prototype.copySelectedRangeToClipboard=function(n){var e=this;this.assertClipboard("copySelectedRangeToClipboard",function(){return e.clipboardService.copySelectedRangeToClipboard(n)})},o.prototype.copySelectedRangeDown=function(){var n=this;this.assertClipboard("copySelectedRangeDown",function(){return n.clipboardService.copyRangeDown()})},o.prototype.pasteFromClipboard=function(){var n=this;this.assertClipboard("pasteFromClipboard",function(){return n.clipboardService.pasteFromClipboard()})},o.prototype.showColumnMenuAfterButtonClick=function(n,e){Je("'showColumnMenuAfterButtonClick' is deprecated. Use 'IHeaderParams.showColumnMenu' within a header component, or 'api.showColumnMenu' elsewhere.");var t=this.columnModel.getGridColumn(n);this.menuService.showColumnMenu({column:t,buttonElement:e,positionBy:"button"})},o.prototype.showColumnMenuAfterMouseClick=function(n,e){Je("'showColumnMenuAfterMouseClick' is deprecated. Use 'IHeaderParams.showColumnMenuAfterMouseClick' within a header component, or 'api.showColumnMenu' elsewhere.");var t=this.columnModel.getGridColumn(n);if(t||(t=this.columnModel.getPrimaryColumn(n)),!t){console.error("AG Grid: column '".concat(n,"' not found"));return}this.menuService.showColumnMenu({column:t,mouseEvent:e,positionBy:"mouse"})},o.prototype.showColumnChooser=function(n){this.menuService.showColumnChooser({chooserParams:n})},o.prototype.showColumnFilter=function(n){var e=this.columnModel.getGridColumn(n);if(!e){console.error("AG Grid: column '".concat(n,"' not found"));return}this.menuService.showFilterMenu({column:e,containerType:"columnFilter",positionBy:"auto"})},o.prototype.showColumnMenu=function(n){var e=this.columnModel.getGridColumn(n);if(!e){console.error("AG Grid: column '".concat(n,"' not found"));return}this.menuService.showColumnMenu({column:e,positionBy:"auto"})},o.prototype.hidePopupMenu=function(){this.menuService.hidePopupMenu()},o.prototype.hideColumnChooser=function(){this.menuService.hideColumnChooser()},o.prototype.tabToNextCell=function(n){return this.navigationService.tabToNextCell(!1,n)},o.prototype.tabToPreviousCell=function(n){return this.navigationService.tabToNextCell(!0,n)},o.prototype.getCellRendererInstances=function(n){n===void 0&&(n={});var e=this.rowRenderer.getCellRendererInstances(n),t=e.map(el);return t},o.prototype.getCellEditorInstances=function(n){n===void 0&&(n={});var e=this.rowRenderer.getCellEditorInstances(n),t=e.map(el);return t},o.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},o.prototype.stopEditing=function(n){n===void 0&&(n=!1),this.rowRenderer.stopEditing(n)},o.prototype.startEditingCell=function(n){var e=this.columnModel.getGridColumn(n.colKey);if(!e){console.warn("AG Grid: no column found for ".concat(n.colKey));return}var t={rowIndex:n.rowIndex,rowPinned:n.rowPinned||null,column:e},i=n.rowPinned==null;i&&this.ensureIndexVisible(n.rowIndex),this.ensureColumnVisible(n.colKey);var r=this.navigationService.getCellByPosition(t);r&&(this.focusService.isCellFocused(t)||this.focusService.setFocusedCell(t),r.startRowOrCellEdit(n.key))},o.prototype.addAggFunc=function(n,e){this.logDeprecation("v31.1","addAggFunc(key, func)","addAggFuncs({ key: func })"),this.aggFuncService&&this.aggFuncService.addAggFuncs({key:e})},o.prototype.addAggFuncs=function(n){this.aggFuncService&&this.aggFuncService.addAggFuncs(n)},o.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},o.prototype.applyServerSideTransaction=function(n){if(!this.serverSideTransactionManager){this.logMissingRowModel("applyServerSideTransaction","serverSide");return}return this.serverSideTransactionManager.applyTransaction(n)},o.prototype.applyServerSideTransactionAsync=function(n,e){if(!this.serverSideTransactionManager){this.logMissingRowModel("applyServerSideTransactionAsync","serverSide");return}return this.serverSideTransactionManager.applyTransactionAsync(n,e)},o.prototype.applyServerSideRowData=function(n){var e,t,i=(e=n.startRow)!==null&&e!==void 0?e:0,r=(t=n.route)!==null&&t!==void 0?t:[];if(i<0){console.warn("AG Grid: invalid value ".concat(n.startRow," for startRow, the value should be >= 0"));return}this.serverSideRowModel?this.serverSideRowModel.applyRowData(n.successParams,i,r):this.logMissingRowModel("setServerSideDatasource","serverSide")},o.prototype.retryServerSideLoads=function(){if(!this.serverSideRowModel){this.logMissingRowModel("retryServerSideLoads","serverSide");return}this.serverSideRowModel.retryLoads()},o.prototype.flushServerSideAsyncTransactions=function(){if(!this.serverSideTransactionManager){this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide");return}return this.serverSideTransactionManager.flushAsyncTransactions()},o.prototype.applyTransaction=function(n){var e=this;if(!this.clientSideRowModel){this.logMissingRowModel("applyTransaction","clientSide");return}return this.frameworkOverrides.wrapIncoming(function(){return e.clientSideRowModel.updateRowData(n)})},o.prototype.applyTransactionAsync=function(n,e){var t=this;if(!this.clientSideRowModel){this.logMissingRowModel("applyTransactionAsync","clientSide");return}this.frameworkOverrides.wrapIncoming(function(){return t.clientSideRowModel.batchUpdateRowData(n,e)})},o.prototype.flushAsyncTransactions=function(){var n=this;if(!this.clientSideRowModel){this.logMissingRowModel("flushAsyncTransactions","clientSide");return}this.frameworkOverrides.wrapIncoming(function(){return n.clientSideRowModel.flushAsyncTransactions()})},o.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},o.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},o.prototype.refreshServerSide=function(n){if(!this.serverSideRowModel){this.logMissingRowModel("refreshServerSide","serverSide");return}this.serverSideRowModel.refreshStore(n)},o.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},o.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},o.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},o.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},o.prototype.getFirstDisplayedRow=function(){return this.logDeprecation("v31.1","getFirstDisplayedRow","getFirstDisplayedRowIndex"),this.getFirstDisplayedRowIndex()},o.prototype.getFirstDisplayedRowIndex=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},o.prototype.getLastDisplayedRow=function(){return this.logDeprecation("v31.1","getLastDisplayedRow","getLastDisplayedRowIndex"),this.getLastDisplayedRowIndex()},o.prototype.getLastDisplayedRowIndex=function(){return this.rowRenderer.getLastVirtualRenderedRow()},o.prototype.getDisplayedRowAtIndex=function(n){return this.rowModel.getRow(n)},o.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},o.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},o.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},o.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},o.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},o.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},o.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},o.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},o.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},o.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},o.prototype.paginationGoToPage=function(n){this.paginationProxy.goToPage(n)},o.prototype.sizeColumnsToFit=function(n){typeof n=="number"?this.columnModel.sizeColumnsToFit(n,"api"):this.gridBodyCtrl.sizeColumnsToFit(n)},o.prototype.setColumnGroupOpened=function(n,e){this.columnModel.setColumnGroupOpened(n,e,"api")},o.prototype.getColumnGroup=function(n,e){return this.columnModel.getColumnGroup(n,e)},o.prototype.getProvidedColumnGroup=function(n){return this.columnModel.getProvidedColumnGroup(n)},o.prototype.getDisplayNameForColumn=function(n,e){return this.columnModel.getDisplayNameForColumn(n,e)||""},o.prototype.getDisplayNameForColumnGroup=function(n,e){return this.columnModel.getDisplayNameForColumnGroup(n,e)||""},o.prototype.getColumn=function(n){return this.columnModel.getPrimaryColumn(n)},o.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},o.prototype.applyColumnState=function(n){return this.columnModel.applyColumnState(n,"api")},o.prototype.getColumnState=function(){return this.columnModel.getColumnState()},o.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},o.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},o.prototype.setColumnGroupState=function(n){this.columnModel.setColumnGroupState(n,"api")},o.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},o.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},o.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},o.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},o.prototype.getDisplayedColAfter=function(n){return this.columnModel.getDisplayedColAfter(n)},o.prototype.getDisplayedColBefore=function(n){return this.columnModel.getDisplayedColBefore(n)},o.prototype.setColumnVisible=function(n,e){this.logDeprecation("v31.1","setColumnVisible(key,visible)","setColumnsVisible([key],visible)"),this.columnModel.setColumnsVisible([n],e,"api")},o.prototype.setColumnsVisible=function(n,e){this.columnModel.setColumnsVisible(n,e,"api")},o.prototype.setColumnPinned=function(n,e){this.logDeprecation("v31.1","setColumnPinned(key,pinned)","setColumnsPinned([key],pinned)"),this.columnModel.setColumnsPinned([n],e,"api")},o.prototype.setColumnsPinned=function(n,e){this.columnModel.setColumnsPinned(n,e,"api")},o.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},o.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},o.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},o.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},o.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},o.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},o.prototype.moveColumn=function(n,e){this.logDeprecation("v31.1","moveColumn(key, toIndex)","moveColumns([key], toIndex)"),this.columnModel.moveColumns([n],e,"api")},o.prototype.moveColumnByIndex=function(n,e){this.columnModel.moveColumnByIndex(n,e,"api")},o.prototype.moveColumns=function(n,e){this.columnModel.moveColumns(n,e,"api")},o.prototype.moveRowGroupColumn=function(n,e){this.columnModel.moveRowGroupColumn(n,e,"api")},o.prototype.setColumnAggFunc=function(n,e){this.columnModel.setColumnAggFunc(n,e,"api")},o.prototype.setColumnWidth=function(n,e,t,i){t===void 0&&(t=!0),i===void 0&&(i="api"),this.logDeprecation("v31.1","setColumnWidth(col, width)","setColumnWidths([{key: col, newWidth: width}])"),this.columnModel.setColumnWidths([{key:n,newWidth:e}],!1,t,i)},o.prototype.setColumnWidths=function(n,e,t){e===void 0&&(e=!0),t===void 0&&(t="api"),this.columnModel.setColumnWidths(n,!1,e,t)},o.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},o.prototype.getPivotResultColumn=function(n,e){return this.columnModel.getSecondaryPivotColumn(n,e)},o.prototype.setValueColumns=function(n){this.columnModel.setValueColumns(n,"api")},o.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},o.prototype.removeValueColumn=function(n){this.logDeprecation("v31.1","removeValueColumn(colKey)","removeValueColumns([colKey])"),this.columnModel.removeValueColumns([n],"api")},o.prototype.removeValueColumns=function(n){this.columnModel.removeValueColumns(n,"api")},o.prototype.addValueColumn=function(n){this.logDeprecation("v31.1","addValueColumn(colKey)","addValueColumns([colKey])"),this.columnModel.addValueColumns([n],"api")},o.prototype.addValueColumns=function(n){this.columnModel.addValueColumns(n,"api")},o.prototype.setRowGroupColumns=function(n){this.columnModel.setRowGroupColumns(n,"api")},o.prototype.removeRowGroupColumn=function(n){this.logDeprecation("v31.1","removeRowGroupColumn(colKey)","removeRowGroupColumns([colKey])"),this.columnModel.removeRowGroupColumns([n],"api")},o.prototype.removeRowGroupColumns=function(n){this.columnModel.removeRowGroupColumns(n,"api")},o.prototype.addRowGroupColumn=function(n){this.logDeprecation("v31.1","addRowGroupColumn(colKey)","addRowGroupColumns([colKey])"),this.columnModel.addRowGroupColumns([n],"api")},o.prototype.addRowGroupColumns=function(n){this.columnModel.addRowGroupColumns(n,"api")},o.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},o.prototype.setPivotColumns=function(n){this.columnModel.setPivotColumns(n,"api")},o.prototype.removePivotColumn=function(n){this.logDeprecation("v31.1","removePivotColumn(colKey)","removePivotColumns([colKey])"),this.columnModel.removePivotColumns([n],"api")},o.prototype.removePivotColumns=function(n){this.columnModel.removePivotColumns(n,"api")},o.prototype.addPivotColumn=function(n){this.logDeprecation("v31.1","addPivotColumn(colKey)","addPivotColumns([colKey])"),this.columnModel.addPivotColumns([n],"api")},o.prototype.addPivotColumns=function(n){this.columnModel.addPivotColumns(n,"api")},o.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},o.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},o.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},o.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},o.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},o.prototype.autoSizeColumn=function(n,e){return this.logDeprecation("v31.1","autoSizeColumn(key, skipHeader)","autoSizeColumns([key], skipHeader)"),this.columnModel.autoSizeColumns({columns:[n],skipHeader:e,source:"api"})},o.prototype.autoSizeColumns=function(n,e){this.columnModel.autoSizeColumns({columns:n,skipHeader:e,source:"api"})},o.prototype.autoSizeAllColumns=function(n){this.columnModel.autoSizeAllColumns("api",n)},o.prototype.setPivotResultColumns=function(n){this.columnModel.setSecondaryColumns(n,"api")},o.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},o.prototype.getState=function(){return this.stateService.getState()},o.prototype.getGridOption=function(n){return this.gos.get(n)},o.prototype.setGridOption=function(n,e){var t;this.updateGridOptions((t={},t[n]=e,t))},o.prototype.updateGridOptions=function(n){this.gos.updateGridOptions({options:n})},o.prototype.__internalUpdateGridOptions=function(n){this.gos.updateGridOptions({options:n,source:"gridOptionsUpdated"})},o.prototype.deprecatedUpdateGridOption=function(n,e){Je("set".concat(n.charAt(0).toUpperCase()).concat(n.slice(1,n.length)," is deprecated. Please use 'api.setGridOption('").concat(n,"', newValue)' or 'api.updateGridOptions({ ").concat(n,": newValue })' instead.")),this.setGridOption(n,e)},o.prototype.setPivotMode=function(n){this.deprecatedUpdateGridOption("pivotMode",n)},o.prototype.setPinnedTopRowData=function(n){this.deprecatedUpdateGridOption("pinnedTopRowData",n)},o.prototype.setPinnedBottomRowData=function(n){this.deprecatedUpdateGridOption("pinnedBottomRowData",n)},o.prototype.setPopupParent=function(n){this.deprecatedUpdateGridOption("popupParent",n)},o.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(n){this.deprecatedUpdateGridOption("suppressModelUpdateAfterUpdateTransaction",n)},o.prototype.setDataTypeDefinitions=function(n){this.deprecatedUpdateGridOption("dataTypeDefinitions",n)},o.prototype.setPagination=function(n){this.deprecatedUpdateGridOption("pagination",n)},o.prototype.paginationSetPageSize=function(n){this.deprecatedUpdateGridOption("paginationPageSize",n)},o.prototype.setSideBar=function(n){this.deprecatedUpdateGridOption("sideBar",n)},o.prototype.setSuppressClipboardPaste=function(n){this.deprecatedUpdateGridOption("suppressClipboardPaste",n)},o.prototype.setGroupRemoveSingleChildren=function(n){this.deprecatedUpdateGridOption("groupRemoveSingleChildren",n)},o.prototype.setGroupRemoveLowestSingleChildren=function(n){this.deprecatedUpdateGridOption("groupRemoveLowestSingleChildren",n)},o.prototype.setGroupDisplayType=function(n){this.deprecatedUpdateGridOption("groupDisplayType",n)},o.prototype.setGroupIncludeFooter=function(n){this.deprecatedUpdateGridOption("groupIncludeFooter",n)},o.prototype.setGroupIncludeTotalFooter=function(n){this.deprecatedUpdateGridOption("groupIncludeTotalFooter",n)},o.prototype.setRowClass=function(n){this.deprecatedUpdateGridOption("rowClass",n)},o.prototype.setDeltaSort=function(n){this.deprecatedUpdateGridOption("deltaSort",n)},o.prototype.setSuppressRowDrag=function(n){this.deprecatedUpdateGridOption("suppressRowDrag",n)},o.prototype.setSuppressMoveWhenRowDragging=function(n){this.deprecatedUpdateGridOption("suppressMoveWhenRowDragging",n)},o.prototype.setSuppressRowClickSelection=function(n){this.deprecatedUpdateGridOption("suppressRowClickSelection",n)},o.prototype.setEnableAdvancedFilter=function(n){this.deprecatedUpdateGridOption("enableAdvancedFilter",n)},o.prototype.setIncludeHiddenColumnsInAdvancedFilter=function(n){this.deprecatedUpdateGridOption("includeHiddenColumnsInAdvancedFilter",n)},o.prototype.setAdvancedFilterParent=function(n){this.deprecatedUpdateGridOption("advancedFilterParent",n)},o.prototype.setAdvancedFilterBuilderParams=function(n){this.deprecatedUpdateGridOption("advancedFilterBuilderParams",n)},o.prototype.setQuickFilter=function(n){Je("setQuickFilter is deprecated. Please use 'api.setGridOption('quickFilterText', newValue)' or 'api.updateGridOptions({ quickFilterText: newValue })' instead."),this.gos.updateGridOptions({options:{quickFilterText:n}})},o.prototype.setExcludeHiddenColumnsFromQuickFilter=function(n){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",!n)},o.prototype.setIncludeHiddenColumnsInQuickFilter=function(n){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",n)},o.prototype.setQuickFilterParser=function(n){this.deprecatedUpdateGridOption("quickFilterParser",n)},o.prototype.setQuickFilterMatcher=function(n){this.deprecatedUpdateGridOption("quickFilterMatcher",n)},o.prototype.setAlwaysShowHorizontalScroll=function(n){this.deprecatedUpdateGridOption("alwaysShowHorizontalScroll",n)},o.prototype.setAlwaysShowVerticalScroll=function(n){this.deprecatedUpdateGridOption("alwaysShowVerticalScroll",n)},o.prototype.setFunctionsReadOnly=function(n){this.deprecatedUpdateGridOption("functionsReadOnly",n)},o.prototype.setColumnDefs=function(n,e){e===void 0&&(e="api"),Je("setColumnDefs is deprecated. Please use 'api.setGridOption('columnDefs', newValue)' or 'api.updateGridOptions({ columnDefs: newValue })' instead."),this.gos.updateGridOptions({options:{columnDefs:n},source:e})},o.prototype.setAutoGroupColumnDef=function(n,e){e===void 0&&(e="api"),Je("setAutoGroupColumnDef is deprecated. Please use 'api.setGridOption('autoGroupColumnDef', newValue)' or 'api.updateGridOptions({ autoGroupColumnDef: newValue })' instead."),this.gos.updateGridOptions({options:{autoGroupColumnDef:n},source:e})},o.prototype.setDefaultColDef=function(n,e){e===void 0&&(e="api"),Je("setDefaultColDef is deprecated. Please use 'api.setGridOption('defaultColDef', newValue)' or 'api.updateGridOptions({ defaultColDef: newValue })' instead."),this.gos.updateGridOptions({options:{defaultColDef:n},source:e})},o.prototype.setColumnTypes=function(n,e){e===void 0&&(e="api"),Je("setColumnTypes is deprecated. Please use 'api.setGridOption('columnTypes', newValue)' or 'api.updateGridOptions({ columnTypes: newValue })' instead."),this.gos.updateGridOptions({options:{columnTypes:n},source:e})},o.prototype.setTreeData=function(n){this.deprecatedUpdateGridOption("treeData",n)},o.prototype.setServerSideDatasource=function(n){this.deprecatedUpdateGridOption("serverSideDatasource",n)},o.prototype.setCacheBlockSize=function(n){this.deprecatedUpdateGridOption("cacheBlockSize",n)},o.prototype.setDatasource=function(n){this.deprecatedUpdateGridOption("datasource",n)},o.prototype.setViewportDatasource=function(n){this.deprecatedUpdateGridOption("viewportDatasource",n)},o.prototype.setRowData=function(n){this.deprecatedUpdateGridOption("rowData",n)},o.prototype.setEnableCellTextSelection=function(n){this.deprecatedUpdateGridOption("enableCellTextSelection",n)},o.prototype.setHeaderHeight=function(n){this.deprecatedUpdateGridOption("headerHeight",n)},o.prototype.setDomLayout=function(n){this.deprecatedUpdateGridOption("domLayout",n)},o.prototype.setFillHandleDirection=function(n){this.deprecatedUpdateGridOption("fillHandleDirection",n)},o.prototype.setGroupHeaderHeight=function(n){this.deprecatedUpdateGridOption("groupHeaderHeight",n)},o.prototype.setFloatingFiltersHeight=function(n){this.deprecatedUpdateGridOption("floatingFiltersHeight",n)},o.prototype.setPivotHeaderHeight=function(n){this.deprecatedUpdateGridOption("pivotHeaderHeight",n)},o.prototype.setPivotGroupHeaderHeight=function(n){this.deprecatedUpdateGridOption("pivotGroupHeaderHeight",n)},o.prototype.setAnimateRows=function(n){this.deprecatedUpdateGridOption("animateRows",n)},o.prototype.setIsExternalFilterPresent=function(n){this.deprecatedUpdateGridOption("isExternalFilterPresent",n)},o.prototype.setDoesExternalFilterPass=function(n){this.deprecatedUpdateGridOption("doesExternalFilterPass",n)},o.prototype.setNavigateToNextCell=function(n){this.deprecatedUpdateGridOption("navigateToNextCell",n)},o.prototype.setTabToNextCell=function(n){this.deprecatedUpdateGridOption("tabToNextCell",n)},o.prototype.setTabToNextHeader=function(n){this.deprecatedUpdateGridOption("tabToNextHeader",n)},o.prototype.setNavigateToNextHeader=function(n){this.deprecatedUpdateGridOption("navigateToNextHeader",n)},o.prototype.setRowGroupPanelShow=function(n){this.deprecatedUpdateGridOption("rowGroupPanelShow",n)},o.prototype.setGetGroupRowAgg=function(n){this.deprecatedUpdateGridOption("getGroupRowAgg",n)},o.prototype.setGetBusinessKeyForNode=function(n){this.deprecatedUpdateGridOption("getBusinessKeyForNode",n)},o.prototype.setGetChildCount=function(n){this.deprecatedUpdateGridOption("getChildCount",n)},o.prototype.setProcessRowPostCreate=function(n){this.deprecatedUpdateGridOption("processRowPostCreate",n)},o.prototype.setGetRowId=function(n){Je("getRowId is a static property and can no longer be updated.")},o.prototype.setGetRowClass=function(n){this.deprecatedUpdateGridOption("getRowClass",n)},o.prototype.setIsFullWidthRow=function(n){this.deprecatedUpdateGridOption("isFullWidthRow",n)},o.prototype.setIsRowSelectable=function(n){this.deprecatedUpdateGridOption("isRowSelectable",n)},o.prototype.setIsRowMaster=function(n){this.deprecatedUpdateGridOption("isRowMaster",n)},o.prototype.setPostSortRows=function(n){this.deprecatedUpdateGridOption("postSortRows",n)},o.prototype.setGetDocument=function(n){this.deprecatedUpdateGridOption("getDocument",n)},o.prototype.setGetContextMenuItems=function(n){this.deprecatedUpdateGridOption("getContextMenuItems",n)},o.prototype.setGetMainMenuItems=function(n){this.deprecatedUpdateGridOption("getMainMenuItems",n)},o.prototype.setProcessCellForClipboard=function(n){this.deprecatedUpdateGridOption("processCellForClipboard",n)},o.prototype.setSendToClipboard=function(n){this.deprecatedUpdateGridOption("sendToClipboard",n)},o.prototype.setProcessCellFromClipboard=function(n){this.deprecatedUpdateGridOption("processCellFromClipboard",n)},o.prototype.setProcessPivotResultColDef=function(n){this.deprecatedUpdateGridOption("processPivotResultColDef",n)},o.prototype.setProcessPivotResultColGroupDef=function(n){this.deprecatedUpdateGridOption("processPivotResultColGroupDef",n)},o.prototype.setPostProcessPopup=function(n){this.deprecatedUpdateGridOption("postProcessPopup",n)},o.prototype.setInitialGroupOrderComparator=function(n){this.deprecatedUpdateGridOption("initialGroupOrderComparator",n)},o.prototype.setGetChartToolbarItems=function(n){this.deprecatedUpdateGridOption("getChartToolbarItems",n)},o.prototype.setPaginationNumberFormatter=function(n){this.deprecatedUpdateGridOption("paginationNumberFormatter",n)},o.prototype.setGetServerSideGroupLevelParams=function(n){this.deprecatedUpdateGridOption("getServerSideGroupLevelParams",n)},o.prototype.setIsServerSideGroupOpenByDefault=function(n){this.deprecatedUpdateGridOption("isServerSideGroupOpenByDefault",n)},o.prototype.setIsApplyServerSideTransaction=function(n){this.deprecatedUpdateGridOption("isApplyServerSideTransaction",n)},o.prototype.setIsServerSideGroup=function(n){this.deprecatedUpdateGridOption("isServerSideGroup",n)},o.prototype.setGetServerSideGroupKey=function(n){this.deprecatedUpdateGridOption("getServerSideGroupKey",n)},o.prototype.setGetRowStyle=function(n){this.deprecatedUpdateGridOption("getRowStyle",n)},o.prototype.setGetRowHeight=function(n){this.deprecatedUpdateGridOption("getRowHeight",n)},xt([Mt("csvCreator")],o.prototype,"csvCreator",void 0),xt([Mt("excelCreator")],o.prototype,"excelCreator",void 0),xt([b("rowRenderer")],o.prototype,"rowRenderer",void 0),xt([b("navigationService")],o.prototype,"navigationService",void 0),xt([b("filterManager")],o.prototype,"filterManager",void 0),xt([b("columnModel")],o.prototype,"columnModel",void 0),xt([b("selectionService")],o.prototype,"selectionService",void 0),xt([b("gridOptionsService")],o.prototype,"gos",void 0),xt([b("valueService")],o.prototype,"valueService",void 0),xt([b("alignedGridsService")],o.prototype,"alignedGridsService",void 0),xt([b("eventService")],o.prototype,"eventService",void 0),xt([b("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),xt([b("context")],o.prototype,"context",void 0),xt([b("rowModel")],o.prototype,"rowModel",void 0),xt([b("sortController")],o.prototype,"sortController",void 0),xt([b("paginationProxy")],o.prototype,"paginationProxy",void 0),xt([b("focusService")],o.prototype,"focusService",void 0),xt([b("dragAndDropService")],o.prototype,"dragAndDropService",void 0),xt([Mt("rangeService")],o.prototype,"rangeService",void 0),xt([Mt("clipboardService")],o.prototype,"clipboardService",void 0),xt([Mt("aggFuncService")],o.prototype,"aggFuncService",void 0),xt([b("menuService")],o.prototype,"menuService",void 0),xt([b("valueCache")],o.prototype,"valueCache",void 0),xt([b("animationFrameService")],o.prototype,"animationFrameService",void 0),xt([Mt("statusBarService")],o.prototype,"statusBarService",void 0),xt([Mt("chartService")],o.prototype,"chartService",void 0),xt([Mt("undoRedoService")],o.prototype,"undoRedoService",void 0),xt([Mt("rowNodeBlockLoader")],o.prototype,"rowNodeBlockLoader",void 0),xt([Mt("ssrmTransactionManager")],o.prototype,"serverSideTransactionManager",void 0),xt([b("ctrlsService")],o.prototype,"ctrlsService",void 0),xt([b("overlayService")],o.prototype,"overlayService",void 0),xt([Mt("sideBarService")],o.prototype,"sideBarService",void 0),xt([b("stateService")],o.prototype,"stateService",void 0),xt([b("expansionService")],o.prototype,"expansionService",void 0),xt([b("apiEventService")],o.prototype,"apiEventService",void 0),xt([b("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),xt([pe],o.prototype,"init",null),o=xt([Oe("gridApi")],o),o}(),CX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),ud=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},qR=function(o){CX(n,o);function n(){var t=o!==null&&o.apply(this,arguments)||this;return t.quickFilter=null,t.quickFilterParts=null,t}e=n,n.prototype.postConstruct=function(){var t=this;this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return t.resetQuickFilterCache()}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return t.resetQuickFilterCache()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return t.resetQuickFilterCache()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,function(){t.gridOptionsService.get("includeHiddenColumnsInQuickFilter")||t.resetQuickFilterCache()}),this.addManagedPropertyListener("quickFilterText",function(i){return t.setQuickFilter(i.currentValue)}),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",function(){return t.onIncludeHiddenColumnsInQuickFilterChanged()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.parser=this.gridOptionsService.get("quickFilterParser"),this.matcher=this.gridOptionsService.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],function(){return t.setQuickFilterParserAndMatcher()})},n.prototype.isQuickFilterPresent=function(){return this.quickFilter!==null},n.prototype.doesRowPassQuickFilter=function(t){var i=this,r=this.gridOptionsService.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(r,t):this.quickFilterParts.every(function(s){return r?i.doesRowPassQuickFilterCache(t,s):i.doesRowPassQuickFilterNoCache(t,s)})},n.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode(function(t){return t.quickFilterAggregateText=null})},n.prototype.setQuickFilterParts=function(){var t=this,i=t.quickFilter,r=t.parser;i?this.quickFilterParts=r?r(i):i.split(" "):this.quickFilterParts=null},n.prototype.parseQuickFilter=function(t){return ne(t)?this.gridOptionsService.isRowModelType("clientSide")?t.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},n.prototype.setQuickFilter=function(t){if(t!=null&&typeof t!="string"){console.warn("AG Grid - Grid option quickFilterText only supports string inputs, received: ".concat(typeof t));return}var i=this.parseQuickFilter(t);this.quickFilter!==i&&(this.quickFilter=i,this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},n.prototype.setQuickFilterParserAndMatcher=function(){var t=this.gridOptionsService.get("quickFilterParser"),i=this.gridOptionsService.get("quickFilterMatcher"),r=t!==this.parser||i!==this.matcher;this.parser=t,this.matcher=i,r&&(this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},n.prototype.onIncludeHiddenColumnsInQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED})},n.prototype.doesRowPassQuickFilterNoCache=function(t,i){var r=this,s=this.columnModel.getAllColumnsForQuickFilter();return s.some(function(a){var l=r.getQuickFilterTextForColumn(a,t);return ne(l)&&l.indexOf(i)>=0})},n.prototype.doesRowPassQuickFilterCache=function(t,i){return this.checkGenerateQuickFilterAggregateText(t),t.quickFilterAggregateText.indexOf(i)>=0},n.prototype.doesRowPassQuickFilterMatcher=function(t,i){var r;t?(this.checkGenerateQuickFilterAggregateText(i),r=i.quickFilterAggregateText):r=this.getQuickFilterAggregateText(i);var s=this,a=s.quickFilterParts,l=s.matcher;return l(a,r)},n.prototype.checkGenerateQuickFilterAggregateText=function(t){t.quickFilterAggregateText||(t.quickFilterAggregateText=this.getQuickFilterAggregateText(t))},n.prototype.getQuickFilterTextForColumn=function(t,i){var r=this.valueService.getValue(t,i,!0),s=t.getColDef();if(s.getQuickFilterText){var a=this.gridOptionsService.addGridCommonParams({value:r,node:i,data:i.data,column:t,colDef:s});r=s.getQuickFilterText(a)}return ne(r)?r.toString().toUpperCase():null},n.prototype.getQuickFilterAggregateText=function(t){var i=this,r=[],s=this.columnModel.getAllColumnsForQuickFilter();return s.forEach(function(a){var l=i.getQuickFilterTextForColumn(a,t);ne(l)&&r.push(l)}),r.join(e.QUICK_FILTER_SEPARATOR)};var e;return n.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",n.QUICK_FILTER_SEPARATOR=`
  114. `,ud([b("valueService")],n.prototype,"valueService",void 0),ud([b("columnModel")],n.prototype,"columnModel",void 0),ud([b("rowModel")],n.prototype,"rowModel",void 0),ud([pe],n.prototype,"postConstruct",null),n=e=ud([Oe("quickFilterService")],n),n}(re),_X=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ko=function(){return Ko=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Ko.apply(this,arguments)},Ho=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},SX=function(o){_X(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.allColumnListeners=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.processingFilterChange=!1,e.filterModelUpdateQueue=[],e.columnFilterModelUpdateQueue=[],e.advancedFilterModelUpdateQueue=[],e}return n.prototype.init=function(){var e=this,t,i,r;this.addManagedListener(this.eventService,T.EVENT_GRID_COLUMNS_CHANGED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VALUE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,T.EVENT_ROW_DATA_UPDATED,function(){return e.onNewRowsLoaded("rowDataUpdated")}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],function(){e.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",function(){e.updateAggFiltering(),e.onFilterChanged()}),this.addManagedPropertyListener("advancedFilterModel",function(s){return e.setAdvancedFilterModel(s.currentValue)}),this.addManagedListener(this.eventService,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,function(s){var a=s.enabled;return e.onAdvancedFilterEnabledChanged(a)}),this.addManagedListener(this.eventService,T.EVENT_DATA_TYPES_INFERRED,function(){return e.processFilterModelUpdateQueue()}),this.addManagedListener(this.quickFilterService,qR.EVENT_QUICK_FILTER_CHANGED,function(){return e.onFilterChanged({source:"quickFilter"})}),this.initialFilterModel=Ko({},(r=(i=(t=this.gridOptionsService.get("initialState"))===null||t===void 0?void 0:t.filter)===null||i===void 0?void 0:i.filterModel)!==null&&r!==void 0?r:{})},n.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return typeof e=="function"?e({}):!1},n.prototype.doesExternalFilterPass=function(e){var t=this.gridOptionsService.get("doesExternalFilterPass");return typeof t=="function"?t(e):!1},n.prototype.setFilterModel=function(e,t){var i=this;if(t===void 0&&(t="api"),this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}if(this.dataTypeService.isPendingInference()){this.filterModelUpdateQueue.push({model:e,source:t});return}var r=[],s=this.getFilterModel();if(e){var a=I0(Object.keys(e));this.allColumnFilters.forEach(function(l,c){var u=e[c];r.push(i.setModelOnFilterWrapper(l.filterPromise,u)),a.delete(c)}),a.forEach(function(l){var c=i.columnModel.getPrimaryColumn(l)||i.columnModel.getGridColumn(l);if(!c){console.warn("AG Grid: setFilterModel() - no column found for colId: "+l);return}if(!c.isFilterAllowed()){console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+l);return}var u=i.getOrCreateFilterWrapper(c,"NO_UI");if(!u){console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+l);return}r.push(i.setModelOnFilterWrapper(u.filterPromise,e[l]))})}else this.allColumnFilters.forEach(function(l){r.push(i.setModelOnFilterWrapper(l.filterPromise,null))});Ni.all(r).then(function(){var l=i.getFilterModel(),c=[];i.allColumnFilters.forEach(function(u,d){var p=s?s[d]:null,g=l?l[d]:null;mt.jsonEquals(p,g)||c.push(u.column)}),c.length>0&&i.onFilterChanged({columns:c,source:t})})},n.prototype.setModelOnFilterWrapper=function(e,t){return new Ni(function(i){e.then(function(r){typeof r.setModel!="function"&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),i()),(r.setModel(t)||Ni.resolve()).then(function(){return i()})})})},n.prototype.getFilterModel=function(){var e=this,t={};return this.allColumnFilters.forEach(function(i,r){var s=e.getModelFromFilterWrapper(i);ne(s)&&(t[r]=s)}),t},n.prototype.getModelFromFilterWrapper=function(e){var t,i=e.filterPromise,r=i.resolveNow(null,function(s){return s});return r==null?(t=this.initialFilterModel[e.column.getColId()])!==null&&t!==void 0?t:null:typeof r.getModel!="function"?(console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel"),null):r.getModel()},n.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},n.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},n.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},n.prototype.isChildFilterPresent=function(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},n.prototype.isAdvancedFilterPresent=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()},n.prototype.onAdvancedFilterEnabledChanged=function(e){var t=this,i;e?this.allColumnFilters.size&&(this.allColumnFilters.forEach(function(r){return t.disposeFilterWrapper(r,"advancedFilterEnabled")}),this.onFilterChanged({source:"advancedFilter"})):!((i=this.advancedFilterService)===null||i===void 0)&&i.isFilterPresent()&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))},n.prototype.isAdvancedFilterEnabled=function(){var e;return(e=this.advancedFilterService)===null||e===void 0?void 0:e.isEnabled()},n.prototype.isAdvancedFilterHeaderActive=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()},n.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},n.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(s){return s?s.isFilterActive?s.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1):!1},i=!!this.gridOptionsService.getGroupAggFiltering(),r=function(s){var a=!s.isPrimary();if(a)return!0;var l=!e.columnModel.isPivotActive(),c=s.isValueActive();return!c||!l?!1:e.columnModel.isPivotMode()?!0:i};this.allColumnFilters.forEach(function(s){if(s.filterPromise.resolveNow(!1,t)){var a=s.filterPromise.resolveNow(null,function(l){return l});r(s.column)?e.activeAggregateFilters.push(a):e.activeColumnFilters.push(a)}})},n.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach(function(i){var r=i.filterPromise.resolveNow(!1,function(s){return s.isFilterActive()});i.column.setFilterActive(r,e,t)})},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},n.prototype.doColumnFiltersPass=function(e,t,i){for(var r=e.data,s=e.aggData,a=i?this.activeAggregateFilters:this.activeColumnFilters,l=i?s:r,c=0;c<a.length;c++){var u=a[c];if(!(u==null||u===t)){if(typeof u.doesFilterPass!="function")throw new Error("Filter is missing method doesFilterPass");if(!u.doesFilterPass({node:e,data:l}))return!1}}return!0},n.prototype.resetQuickFilterCache=function(){this.quickFilterService.resetQuickFilterCache()},n.prototype.refreshFiltersForAggregations=function(){var e=this.gridOptionsService.getGroupAggFiltering();e&&this.onFilterChanged()},n.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this,i=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(i,0):i()},n.prototype.onFilterChanged=function(e){e===void 0&&(e={});var t=e.source,i=e.filterInstance,r=e.additionalEventAttributes,s=e.columns;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",r),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach(function(l){l.filterPromise&&l.filterPromise.then(function(c){c&&c!==i&&c.onAnyFilterChanged&&c.onAnyFilterChanged()})});var a={source:t,type:T.EVENT_FILTER_CHANGED,columns:s||[]};r&&xr(a,r),this.processingFilterChange=!0,this.eventService.dispatchEvent(a),this.processingFilterChange=!1},n.prototype.isSuppressFlashingCellsBecauseFiltering=function(){var e,t=(e=this.gridOptionsService.get("allowShowChangeAfterFilter"))!==null&&e!==void 0?e:!1;return!t&&this.processingFilterChange},n.prototype.isQuickFilterPresent=function(){return this.quickFilterService.isQuickFilterPresent()},n.prototype.updateAggFiltering=function(){this.aggFiltering=!!this.gridOptionsService.getGroupAggFiltering()},n.prototype.isAggregateQuickFilterPresent=function(){return this.isQuickFilterPresent()&&(this.aggFiltering||this.columnModel.isPivotMode())},n.prototype.isNonAggregateQuickFilterPresent=function(){return this.isQuickFilterPresent()&&!(this.aggFiltering||this.columnModel.isPivotMode())},n.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},n.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},n.prototype.doesRowPassFilter=function(e){return!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)||this.isAdvancedFilterPresent()&&!this.advancedFilterService.doesFilterPass(e.rowNode))},n.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach(function(t){t.filterPromise.then(function(i){i.onNewRowsLoaded&&i.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()},n.prototype.createValueGetter=function(e){var t=this;return function(i){var r=i.node;return t.valueService.getValue(e,r,!0)}},n.prototype.createGetValue=function(e){var t=this;return function(i,r){var s=r?t.columnModel.getGridColumn(r):e;return s?t.valueService.getValue(s,i,!0):void 0}},n.prototype.getFilterComponent=function(e,t,i){var r;if(i===void 0&&(i=!0),i)return((r=this.getOrCreateFilterWrapper(e,t))===null||r===void 0?void 0:r.filterPromise)||null;var s=this.cachedFilter(e);return s?s.filterPromise:null},n.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,function(i){return i.isFilterActive()})},n.prototype.getOrCreateFilterWrapper=function(e,t){if(!e.isFilterAllowed())return null;var i=this.cachedFilter(e);return i?t!=="NO_UI"&&this.putIntoGui(i,t):(i=this.createFilterWrapper(e,t),this.setColumnFilterWrapper(e,i)),i},n.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},n.prototype.getDefaultFilter=function(e){var t;if(qt.__isRegistered(je.SetFilterModule,this.context.getGridId()))t="agSetColumnFilter";else{var i=this.dataTypeService.getBaseDataType(e);i==="number"?t="agNumberColumnFilter":i==="date"||i==="dateString"?t="agDateColumnFilter":t="agTextColumnFilter"}return t},n.prototype.getDefaultFloatingFilter=function(e){var t;if(qt.__isRegistered(je.SetFilterModule,this.context.getGridId()))t="agSetColumnFloatingFilter";else{var i=this.dataTypeService.getBaseDataType(e);i==="number"?t="agNumberColumnFloatingFilter":i==="date"||i==="dateString"?t="agDateColumnFloatingFilter":t="agTextColumnFloatingFilter"}return t},n.prototype.createFilterInstance=function(e){var t=this,i=this.getDefaultFilter(e),r=e.getColDef(),s,a=Ko(Ko({},this.createFilterParams(e,r)),{filterModifiedCallback:function(){return t.filterModifiedCallbackFactory(s,e)()},filterChangedCallback:function(c){return t.filterChangedCallbackFactory(s,e)(c)},doesRowPassOtherFilter:function(c){return t.doesRowPassOtherFilters(s,c)}}),l=this.userComponentFactory.getFilterDetails(r,a,i);return l?{filterPromise:function(){var c=l.newAgStackInstance();return c&&c.then(function(u){return s=u}),c},compDetails:l}:{filterPromise:null,compDetails:null}},n.prototype.createFilterParams=function(e,t){var i=this.gridOptionsService.addGridCommonParams({column:e,colDef:J_(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),getValue:this.createGetValue(e),doesRowPassOtherFilter:function(){return!0}});return i},n.prototype.createFilterWrapper=function(e,t){var i,r={column:e,filterPromise:null,compiledElement:null,guiPromise:Ni.resolve(null),compDetails:null},s=this.createFilterInstance(e),a=s.filterPromise,l=s.compDetails;return r.filterPromise=(i=a?.())!==null&&i!==void 0?i:null,r.compDetails=l,a&&this.putIntoGui(r,t),r},n.prototype.putIntoGui=function(e,t){var i=this,r=document.createElement("div");r.className="ag-filter",e.guiPromise=new Ni(function(s){e.filterPromise.then(function(a){var l=a.getGui();ne(l)||console.warn("AG Grid: getGui method from filter returned ".concat(l,", it should be a DOM element or an HTML template string.")),typeof l=="string"&&(l=or(l)),r.appendChild(l),s(r);var c={type:T.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:r};i.eventService.dispatchEvent(c)})})},n.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach(function(i,r){var s;i.column.isPrimary()?s=e.columnModel.getPrimaryColumn(r):s=e.columnModel.getGridColumn(r),!s&&(t.push(i.column),e.disposeFilterWrapper(i,"columnChanged"),e.disposeColumnListener(r))}),t.length>0?this.onFilterChanged({columns:t,source:"api"}):this.updateDependantFilters()},n.prototype.updateDependantFilters=function(){var e=this,t=this.columnModel.getGroupAutoColumns();t?.forEach(function(i){i.getColDef().filter==="agGroupColumnFilter"&&e.getOrCreateFilterWrapper(i,"NO_UI")})},n.prototype.isFilterAllowed=function(e){var t,i;if(this.isAdvancedFilterEnabled())return!1;var r=e.isFilterAllowed();if(!r)return!1;var s=this.allColumnFilters.get(e.getColId());return(i=(t=s?.filterPromise)===null||t===void 0?void 0:t.resolveNow(!0,function(a){return typeof a?.isFilterAllowed=="function"?a?.isFilterAllowed():!0}))!==null&&i!==void 0?i:!0},n.prototype.getFloatingFilterCompDetails=function(e,t){var i=this,r=function(d){var p=i.getFilterComponent(e,"NO_UI");p?.then(function(g){d(el(g))})},s=e.getColDef(),a=Ko(Ko({},this.createFilterParams(e,s)),{filterChangedCallback:function(){return r(function(d){return i.filterChangedCallbackFactory(d,e)()})}}),l=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(s,U_,a),c=this.userComponentFactory.getDefaultFloatingFilterType(s,function(){return i.getDefaultFloatingFilter(e)});c==null&&(c="agReadOnlyFloatingFilter");var u={column:e,filterParams:l,currentParentModel:function(){return i.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:r,showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(s,u,c)},n.prototype.getCurrentFloatingFilterParentModel=function(e){var t=this.getFilterComponent(e,"NO_UI",!1);return t?t.resolveNow(null,function(i){return i&&i.getModel()}):null},n.prototype.destroyFilter=function(e,t){t===void 0&&(t="api");var i=e.getColId(),r=this.allColumnFilters.get(i);this.disposeColumnListener(i),delete this.initialFilterModel[i],r&&(this.disposeFilterWrapper(r,t),this.onFilterChanged({columns:[e],source:"api"}))},n.prototype.disposeColumnListener=function(e){var t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())},n.prototype.disposeFilterWrapper=function(e,t){var i=this;e.filterPromise.then(function(r){i.getContext().destroyBean(r),e.column.setFilterActive(!1,"filterDestroyed"),i.allColumnFilters.delete(e.column.getColId());var s={type:T.EVENT_FILTER_DESTROYED,source:t,column:e.column};i.eventService.dispatchEvent(s)})},n.prototype.filterModifiedCallbackFactory=function(e,t){var i=this;return function(){var r={type:T.EVENT_FILTER_MODIFIED,column:t,filterInstance:e};i.eventService.dispatchEvent(r)}},n.prototype.filterChangedCallbackFactory=function(e,t){var i=this;return function(r){var s,a=(s=r?.source)!==null&&s!==void 0?s:"api",l={filter:e,additionalEventAttributes:r,columns:[t],source:a};i.callOnFilterChangedOutsideRenderCycle(l)}},n.prototype.checkDestroyFilter=function(e){var t=this,i=this.allColumnFilters.get(e);if(i){var r=i.column,s=(r.isFilterAllowed()?this.createFilterInstance(r):{compDetails:null}).compDetails;if(this.areFilterCompsDifferent(i.compDetails,s)){this.destroyFilter(r,"paramsUpdated");return}var a=r.getColDef().filterParams;if(!i.filterPromise){this.destroyFilter(r,"paramsUpdated");return}i.filterPromise.then(function(l){var c=l?.refresh?l.refresh(Ko(Ko(Ko({},t.createFilterParams(r,r.getColDef())),{filterModifiedCallback:t.filterModifiedCallbackFactory(l,r),filterChangedCallback:t.filterChangedCallbackFactory(l,r),doesRowPassOtherFilter:function(u){return t.doesRowPassOtherFilters(l,u)}}),a)):!0;c===!1&&t.destroyFilter(r,"paramsUpdated")})}},n.prototype.setColumnFilterWrapper=function(e,t){var i=this,r=e.getColId();this.allColumnFilters.set(r,t),this.allColumnListeners.set(r,this.addManagedListener(e,Jt.EVENT_COL_DEF_CHANGED,function(){return i.checkDestroyFilter(r)}))},n.prototype.areFilterCompsDifferent=function(e,t){if(!t||!e)return!0;var i=e.componentClass,r=t.componentClass,s=i===r||i?.render&&r?.render&&i.render===r.render;return!s},n.prototype.getAdvancedFilterModel=function(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null},n.prototype.setAdvancedFilterModel=function(e){if(this.isAdvancedFilterEnabled()){if(this.dataTypeService.isPendingInference()){this.advancedFilterModelUpdateQueue.push(e);return}this.advancedFilterService.setModel(e??null),this.onFilterChanged({source:"advancedFilter"})}},n.prototype.showAdvancedFilterBuilder=function(e){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(e,!0)},n.prototype.updateAdvancedFilterColumns=function(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})},n.prototype.hasFloatingFilters=function(){if(this.isAdvancedFilterEnabled())return!1;var e=this.columnModel.getAllGridColumns();return e.some(function(t){return t.getColDef().floatingFilter})},n.prototype.getFilterInstance=function(e,t){if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}var i=this.getFilterInstanceImpl(e,function(s){if(t){var a=el(s);t(a)}}),r=el(i);return r},n.prototype.getColumnFilterInstance=function(e){var t=this;return new Promise(function(i){t.getFilterInstance(e,function(r){i(r)})})},n.prototype.getFilterInstanceImpl=function(e,t){var i=this.columnModel.getPrimaryColumn(e);if(i){var r=this.getFilterComponent(i,"NO_UI"),s=r&&r.resolveNow(null,function(a){return a});return s?setTimeout(t,0,s):r&&r.then(function(a){t(a)}),s}},n.prototype.warnAdvancedFilters=function(){Je("Column Filter API methods have been disabled as Advanced Filters are enabled.")},n.prototype.setupAdvancedFilterHeaderComp=function(e){var t;(t=this.advancedFilterService)===null||t===void 0||t.getCtrl().setupHeaderComp(e)},n.prototype.getHeaderRowCount=function(){return this.isAdvancedFilterHeaderActive()?1:0},n.prototype.getHeaderHeight=function(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0},n.prototype.processFilterModelUpdateQueue=function(){var e=this;this.filterModelUpdateQueue.forEach(function(t){var i=t.model,r=t.source;return e.setFilterModel(i,r)}),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(function(t){var i=t.key,r=t.model,s=t.resolve;e.setColumnFilterModel(i,r).then(function(){return s()})}),this.columnFilterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue.forEach(function(t){return e.setAdvancedFilterModel(t)}),this.advancedFilterModelUpdateQueue=[]},n.prototype.getColumnFilterModel=function(e){var t=this.getFilterWrapper(e);return t?this.getModelFromFilterWrapper(t):null},n.prototype.setColumnFilterModel=function(e,t){if(this.isAdvancedFilterEnabled())return this.warnAdvancedFilters(),Promise.resolve();if(this.dataTypeService.isPendingInference()){var i=function(){},r=new Promise(function(c){i=c});return this.columnFilterModelUpdateQueue.push({key:e,model:t,resolve:i}),r}var s=this.columnModel.getPrimaryColumn(e),a=s?this.getOrCreateFilterWrapper(s,"NO_UI"):null,l=function(c){return new Promise(function(u){c.then(function(d){return u(d)})})};return a?l(this.setModelOnFilterWrapper(a.filterPromise,t)):Promise.resolve()},n.prototype.getFilterWrapper=function(e){var t,i=this.columnModel.getPrimaryColumn(e);return i&&(t=this.cachedFilter(i))!==null&&t!==void 0?t:null},n.prototype.destroy=function(){var e=this;o.prototype.destroy.call(this),this.allColumnFilters.forEach(function(t){return e.disposeFilterWrapper(t,"gridDestroyed")}),this.allColumnListeners.clear()},Ho([b("valueService")],n.prototype,"valueService",void 0),Ho([b("columnModel")],n.prototype,"columnModel",void 0),Ho([b("rowModel")],n.prototype,"rowModel",void 0),Ho([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Ho([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Ho([b("dataTypeService")],n.prototype,"dataTypeService",void 0),Ho([b("quickFilterService")],n.prototype,"quickFilterService",void 0),Ho([Mt("advancedFilterService")],n.prototype,"advancedFilterService",void 0),Ho([pe],n.prototype,"init",null),n=Ho([Oe("filterManager")],n),n}(re),wX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),N0=function(o){wX(n,o);function n(e,t){var i=o.call(this,e)||this;return i.ctrl=t,i}return n.prototype.getCtrl=function(){return this.ctrl},n}(dt),bX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),dd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},TX=function(o){bX(n,o);function n(e){return o.call(this,n.TEMPLATE,e)||this}return n.prototype.postConstruct=function(){var e=this,t=this.getGui(),i={addOrRemoveCssClass:function(r,s){return e.addOrRemoveCssClass(r,s)},addOrRemoveBodyCssClass:function(r,s){return e.eFloatingFilterBody.classList.toggle(r,s)},setButtonWrapperDisplayed:function(r){return It(e.eButtonWrapper,r)},setCompDetails:function(r){return e.setCompDetails(r)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(r){return t.style.width=r},setMenuIcon:function(r){return e.eButtonShowMainFilter.appendChild(r)}};this.ctrl.setComp(i,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},n.prototype.setCompDetails=function(e){var t=this;if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(i){return t.afterCompCreated(i)})},n.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},n.prototype.afterCompCreated=function(e){if(e){if(!this.isAlive()){this.destroyBean(e);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()}},n.TEMPLATE=`<div class="ag-header-cell ag-floating-filter" role="gridcell">
  115. <div ref="eFloatingFilterBody" role="presentation"></div>
  116. <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">
  117. <button type="button" class="ag-button ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>
  118. </div>
  119. </div>`,dd([Ce("eFloatingFilterBody")],n.prototype,"eFloatingFilterBody",void 0),dd([Ce("eButtonWrapper")],n.prototype,"eButtonWrapper",void 0),dd([Ce("eButtonShowMainFilter")],n.prototype,"eButtonShowMainFilter",void 0),dd([pe],n.prototype,"postConstruct",null),dd([Li],n.prototype,"destroyFloatingFilterComp",null),n}(N0),EX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),xX=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ei=function(o){return o.AUTO_HEIGHT="ag-layout-auto-height",o.NORMAL="ag-layout-normal",o.PRINT="ag-layout-print",o}(ei||{}),L0=function(o){EX(n,o);function n(e){var t=o.call(this)||this;return t.view=e,t}return n.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},n.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},i=t.autoHeight?ei.AUTO_HEIGHT:t.print?ei.PRINT:ei.NORMAL;this.view.updateLayoutClasses(i,t)},n.prototype.getDomLayout=function(){var e,t=(e=this.gridOptionsService.get("domLayout"))!==null&&e!==void 0?e:"normal",i=["normal","print","autoHeight"];return i.indexOf(t)===-1?(Je("".concat(t," is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")),"normal"):t},xX([pe],n.prototype,"postConstruct",null),n}(re),zX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),mg=function(){return mg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},mg.apply(this,arguments)},ea=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Ai=function(o){return o[o.Vertical=0]="Vertical",o[o.Horizontal=1]="Horizontal",o}(Ai||{}),tr=function(o){return o[o.Container=0]="Container",o[o.FakeContainer=1]="FakeContainer",o}(tr||{}),OX=function(o){zX(n,o);function n(e){var t=o.call(this)||this;return t.lastScrollSource=[null,null],t.scrollLeft=-1,t.nextScrollTop=-1,t.scrollTop=-1,t.lastOffsetHeight=-1,t.lastScrollTop=-1,t.eBodyViewport=e,t.resetLastHScrollDebounced=zr(function(){return t.lastScrollSource[Ai.Horizontal]=null},500),t.resetLastVScrollDebounced=zr(function(){return t.lastScrollSource[Ai.Vertical]=null},500),t}return n.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.get("enableRtl"),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},n.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),t=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),e.onScrollCallback(this.onFakeHScroll.bind(this));var i=this.gridOptionsService.get("debounceVerticalScrollbar"),r=i?zr(this.onVScroll.bind(this),100):this.onVScroll.bind(this),s=i?zr(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",r),t.onScrollCallback(s)},n.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},n.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){var t=this.centerRowContainerCtrl==null;if(!t){e===void 0&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var i=this.enableRtl?e:-e,r=this.ctrlsService.getTopCenterRowContainerCtrl(),s=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),a=this.ctrlsService.getBottomCenterRowContainerCtrl(),l=this.ctrlsService.getFakeHScrollComp(),c=this.ctrlsService.getHeaderRowContainerCtrl();c.setHorizontalScroll(-i),a.setContainerTranslateX(i),r.setContainerTranslateX(i),s.setContainerTranslateX(i);var u=this.centerRowContainerCtrl.getViewportElement(),d=this.lastScrollSource[Ai.Horizontal]===tr.Container;e=Math.abs(e),d?l.setScrollPosition(e):Wd(u,e,this.enableRtl)}},n.prototype.isControllingScroll=function(e,t){return this.lastScrollSource[t]==null?(this.lastScrollSource[t]=e,!0):this.lastScrollSource[t]===e},n.prototype.onFakeHScroll=function(){this.isControllingScroll(tr.FakeContainer,Ai.Horizontal)&&this.onHScrollCommon(tr.FakeContainer)},n.prototype.onHScroll=function(){this.isControllingScroll(tr.Container,Ai.Horizontal)&&this.onHScrollCommon(tr.Container)},n.prototype.onHScrollCommon=function(e){var t=this.centerRowContainerCtrl.getViewportElement(),i=t.scrollLeft;if(!this.shouldBlockScrollUpdate(Ai.Horizontal,i,!0)){var r;e===tr.Container?r=jd(t,this.enableRtl):r=this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(r)),this.resetLastHScrollDebounced()}},n.prototype.onFakeVScroll=function(){this.isControllingScroll(tr.FakeContainer,Ai.Vertical)&&this.onVScrollCommon(tr.FakeContainer)},n.prototype.onVScroll=function(){this.isControllingScroll(tr.Container,Ai.Vertical)&&this.onVScrollCommon(tr.Container)},n.prototype.onVScrollCommon=function(e){var t;e===tr.Container?t=this.eBodyViewport.scrollTop:t=this.ctrlsService.getFakeVScrollComp().getScrollPosition(),!this.shouldBlockScrollUpdate(Ai.Vertical,t,!0)&&(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,e===tr.Container?this.ctrlsService.getFakeVScrollComp().setScrollPosition(t):this.eBodyViewport.scrollTop=t,this.gridOptionsService.get("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},n.prototype.doHorizontalScroll=function(e){var t=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(Ai.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},n.prototype.fireScrollEvent=function(e){var t=this,i={type:T.EVENT_BODY_SCROLL,direction:e===Ai.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(i),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var r=mg(mg({},i),{type:T.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(r)},100)},n.prototype.shouldBlockScrollUpdate=function(e,t,i){return i===void 0&&(i=!1),i&&!Es()?!1:e===Ai.Vertical?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)},n.prototype.shouldBlockVerticalScroll=function(e){var t=Qd(this.eBodyViewport),i=this.eBodyViewport.scrollHeight;return e<0||e+t>i},n.prototype.shouldBlockHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getCenterWidth(),i=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&$d()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>i},n.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(Ai.Vertical)},n.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(tr.Container)},n.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},n.prototype.setHorizontalScrollPosition=function(e,t){t===void 0&&(t=!1);var i=0,r=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(Ai.Horizontal,e)&&(this.enableRtl&&$d()?e=e>0?0:r:e=Math.min(Math.max(e,i),r)),Wd(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},n.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},n.prototype.getVScrollPosition=function(){this.lastScrollTop=this.eBodyViewport.scrollTop,this.lastOffsetHeight=this.eBodyViewport.offsetHeight;var e={top:this.lastScrollTop,bottom:this.lastScrollTop+this.lastOffsetHeight};return e},n.prototype.getApproximateVScollPosition=function(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()},n.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},n.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},n.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},n.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},n.prototype.ensureNodeVisible=function(e,t){t===void 0&&(t=null);for(var i=this.rowModel.getRowCount(),r=-1,s=0;s<i;s++){var a=this.rowModel.getRow(s);if(typeof e=="function"){var l=e;if(a&&l(a)){r=s;break}}else if(e===a||e===a.data){r=s;break}}r>=0&&this.ensureIndexVisible(r,t)},n.prototype.ensureIndexVisible=function(e,t){var i=this;if(!this.gridOptionsService.isDomLayout("print")){var r=this.paginationProxy.getRowCount();if(typeof e!="number"||e<0||e>=r){console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);return}var s=this.gridOptionsService.get("pagination"),a=s&&!this.gridOptionsService.get("suppressPaginationPanel");this.getFrameworkOverrides().wrapIncoming(function(){a||i.paginationProxy.goToPageWithIndex(e);var l=i.ctrlsService.getGridBodyCtrl(),c=l.getStickyTopHeight(),u=i.paginationProxy.getRow(e),d;do{var p=u.rowTop,g=u.rowHeight,v=i.paginationProxy.getPixelOffset(),y=u.rowTop-v,x=y+u.rowHeight,E=i.getVScrollPosition(),z=i.heightScaler.getDivStretchOffset(),M=E.top+z,G=E.bottom+z,U=G-M,se=i.heightScaler.getScrollPositionForPixel(y),ve=i.heightScaler.getScrollPositionForPixel(x-U),he=Math.min((se+ve)/2,y),be=M+c>y,Ee=G<x,Te=null;t==="top"?Te=se:t==="bottom"?Te=ve:t==="middle"?Te=he:be?Te=se-c:Ee&&(Te=ve),Te!==null&&(i.setVerticalScrollPosition(Te),i.rowRenderer.redraw({afterScroll:!0})),d=p!==u.rowTop||g!==u.rowHeight}while(d);i.animationFrameService.flushAllFrames()})}},n.prototype.ensureColumnVisible=function(e,t){var i=this;t===void 0&&(t="auto");var r=this.columnModel.getGridColumn(e);if(r&&!r.isPinned()&&this.columnModel.isColumnDisplayed(r)){var s=this.getPositionedHorizontalScroll(r,t);this.getFrameworkOverrides().wrapIncoming(function(){s!==null&&i.centerRowContainerCtrl.setCenterViewportScrollLeft(s),i.centerRowContainerCtrl.onHorizontalViewportChanged(),i.animationFrameService.flushAllFrames()})}},n.prototype.setScrollPosition=function(e,t){var i=this;this.getFrameworkOverrides().wrapIncoming(function(){i.centerRowContainerCtrl.setCenterViewportScrollLeft(t),i.setVerticalScrollPosition(e),i.rowRenderer.redraw({afterScroll:!0}),i.animationFrameService.flushAllFrames()})},n.prototype.getPositionedHorizontalScroll=function(e,t){var i=this.isColumnOutsideViewport(e),r=i.columnBeforeStart,s=i.columnAfterEnd,a=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),l=this.centerRowContainerCtrl.getCenterWidth(),c=this.enableRtl,u=(c?r:s)||a,d=c?s:r;t!=="auto"&&(u=t==="start",d=t==="end");var p=t==="middle";if(u||d||p){var g=this.getColumnBounds(e),v=g.colLeft,y=g.colMiddle,x=g.colRight;return p?y-l/2:u?c?x:v:c?v-l:x-l}return null},n.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),i=t.start,r=t.end,s=this.getColumnBounds(e),a=s.colLeft,l=s.colRight,c=this.enableRtl,u=c?i>l:r<l,d=c?r<a:i>a;return{columnBeforeStart:u,columnAfterEnd:d}},n.prototype.getColumnBounds=function(e){var t=this.enableRtl,i=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),s=e.getLeft(),a=t?-1:1,l=t?i-s:s,c=l+r*a,u=l+r/2*a;return{colLeft:l,colMiddle:u,colRight:c}},n.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft(),i=t,r=e+t;return{start:i,end:r,width:e}},ea([b("ctrlsService")],n.prototype,"ctrlsService",void 0),ea([b("animationFrameService")],n.prototype,"animationFrameService",void 0),ea([b("paginationProxy")],n.prototype,"paginationProxy",void 0),ea([b("rowModel")],n.prototype,"rowModel",void 0),ea([b("rowContainerHeightService")],n.prototype,"heightScaler",void 0),ea([b("rowRenderer")],n.prototype,"rowRenderer",void 0),ea([b("columnModel")],n.prototype,"columnModel",void 0),ea([pe],n.prototype,"postConstruct",null),n}(re),DX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),q_=function(){return q_=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},q_.apply(this,arguments)},jr=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},RX=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},IX=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},PX=function(o){DX(n,o);function n(e){var t=o.call(this)||this;return t.isMultiRowDrag=!1,t.eContainer=e,t}return n.prototype.postConstruct=function(){var e=this;this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady(function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new UR({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(i){return t.getScrollFeature().setVerticalScrollPosition(i)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},n.prototype.getContainer=function(){return this.eContainer},n.prototype.isInterestedIn=function(e){return e===Or.RowDrag},n.prototype.getIconName=function(){var e=this.gridOptionsService.get("rowDragManaged");return e&&this.shouldPreventRowMove()?Jn.ICON_NOT_ALLOWED:Jn.ICON_MOVE},n.prototype.shouldPreventRowMove=function(){var e=this.columnModel.getRowGroupColumns();if(e.length)return!0;var t=this.filterManager.isAnyFilterPresent();if(t)return!0;var i=this.sortController.isSortActive();return!!i},n.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var i=this.gridOptionsService.get("rowDragMultiRow"),r=IX([],RX(this.selectionService.getSelectedNodes()),!1).sort(function(a,l){return a.rowIndex==null||l.rowIndex==null?0:t.getRowIndexNumber(a)-t.getRowIndexNumber(l)}),s=e.dragItem.rowNode;return i&&r.indexOf(s)!==-1?(this.isMultiRowDrag=!0,r):(this.isMultiRowDrag=!1,[s])},n.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(T.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach(function(t){t.setDragging(!0)}),this.onEnterOrDragging(e)},n.prototype.onDragging=function(e){this.onEnterOrDragging(e)},n.prototype.isFromThisGrid=function(e){var t=e.dragSource.dragSourceDomDataKey;return t===this.gridOptionsService.getDomDataKey()},n.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl(),i=t.getGui(),r=e.dropZoneTarget;return!i.contains(r)},n.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(T.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y,i=this.gridOptionsService.get("rowDragManaged");i&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},n.prototype.doManagedDrag=function(e,t){var i=this.isFromThisGrid(e),r=this.gridOptionsService.get("rowDragManaged"),s=e.dragItem.rowNodes;r&&this.shouldPreventRowMove()||(this.gridOptionsService.get("suppressMoveWhenRowDragging")||!i?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(s[0],t):this.moveRows(s,t))},n.prototype.getRowIndexNumber=function(e){return parseInt(Nt(e.getRowIndexString().split("-")),10)},n.prototype.moveRowAndClearHighlight=function(e){var t=this,i=this.clientSideRowModel.getLastHighlightedRowNode(),r=i&&i.highlighted===ha.Below,s=this.mouseEventService.getNormalisedPosition(e).y,a=e.dragItem.rowNodes,l=r?1:0;if(this.isFromThisGrid(e))a.forEach(function(d){d.rowTop<s&&(l-=1)}),this.moveRows(a,s,l);else{var c=this.gridOptionsService.getCallback("getRowId"),u=this.clientSideRowModel.getRowIndexAtPixel(s)+1;this.clientSideRowModel.getHighlightPosition(s)===ha.Above&&u--,this.clientSideRowModel.updateRowData({add:a.map(function(d){return d.data}).filter(function(d){return!t.clientSideRowModel.getRowNode(c?c({data:d,level:0}):d.id)}),addIndex:u})}this.clearRowHighlight()},n.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},n.prototype.moveRows=function(e,t,i){i===void 0&&(i=0);var r=this.clientSideRowModel.ensureRowsAtPixel(e,t,i);r&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},n.prototype.addRowDropZone=function(e){var t=this;if(!e.getContainer()){Je("addRowDropZone - A container target needs to be provided");return}if(this.dragAndDropService.findExternalZone(e)){console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");return}var i={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,i=e):(e.onDragEnter&&(i.onDragEnter=function(r){e.onDragEnter(t.draggingToRowDragEvent(T.EVENT_ROW_DRAG_ENTER,r))}),e.onDragLeave&&(i.onDragLeave=function(r){e.onDragLeave(t.draggingToRowDragEvent(T.EVENT_ROW_DRAG_LEAVE,r))}),e.onDragging&&(i.onDragging=function(r){e.onDragging(t.draggingToRowDragEvent(T.EVENT_ROW_DRAG_MOVE,r))}),e.onDragStop&&(i.onDragStop=function(r){e.onDragStop(t.draggingToRowDragEvent(T.EVENT_ROW_DRAG_END,r))})),this.dragAndDropService.addDropTarget(q_({isInterestedIn:function(r){return r===Or.RowDrag},getIconName:function(){return Jn.ICON_MOVE},external:!0},i))},n.prototype.getRowDropZone=function(e){var t=this,i=this.getContainer.bind(this),r=this.onDragEnter.bind(this),s=this.onDragLeave.bind(this),a=this.onDragging.bind(this),l=this.onDragStop.bind(this);return e?{getContainer:i,onDragEnter:e.onDragEnter?function(c){r(c),e.onDragEnter(t.draggingToRowDragEvent(T.EVENT_ROW_DRAG_ENTER,c))}:r,onDragLeave:e.onDragLeave?function(c){s(c),e.onDragLeave(t.draggingToRowDragEvent(T.EVENT_ROW_DRAG_LEAVE,c))}:s,onDragging:e.onDragging?function(c){a(c),e.onDragging(t.draggingToRowDragEvent(T.EVENT_ROW_DRAG_MOVE,c))}:a,onDragStop:e.onDragStop?function(c){l(c),e.onDragStop(t.draggingToRowDragEvent(T.EVENT_ROW_DRAG_END,c))}:l,fromGrid:!0}:{getContainer:i,onDragEnter:r,onDragLeave:s,onDragging:a,onDragStop:l,fromGrid:!0}},n.prototype.draggingToRowDragEvent=function(e,t){var i=this.mouseEventService.getNormalisedPosition(t).y,r=i>this.paginationProxy.getCurrentPageHeight(),s=-1,a;r||(s=this.rowModel.getRowIndexAtPixel(i),a=this.rowModel.getRow(s));var l;switch(t.vDirection){case Kd.Down:l="down";break;case Kd.Up:l="up";break;default:l=null;break}var c=this.gridOptionsService.addGridCommonParams({type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:s,overNode:a,y:i,vDirection:l});return c},n.prototype.dispatchGridEvent=function(e,t){var i=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(i)},n.prototype.onDragLeave=function(e){this.dispatchGridEvent(T.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},n.prototype.onDragStop=function(e){this.dispatchGridEvent(T.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&(this.gridOptionsService.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},n.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(t){t.setDragging(!1)})},jr([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),jr([b("rowModel")],n.prototype,"rowModel",void 0),jr([b("paginationProxy")],n.prototype,"paginationProxy",void 0),jr([b("columnModel")],n.prototype,"columnModel",void 0),jr([b("focusService")],n.prototype,"focusService",void 0),jr([b("sortController")],n.prototype,"sortController",void 0),jr([b("filterManager")],n.prototype,"filterManager",void 0),jr([b("selectionService")],n.prototype,"selectionService",void 0),jr([b("mouseEventService")],n.prototype,"mouseEventService",void 0),jr([b("ctrlsService")],n.prototype,"ctrlsService",void 0),jr([Mt("rangeService")],n.prototype,"rangeService",void 0),jr([pe],n.prototype,"postConstruct",null),n}(re),MX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Yi=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},qd=function(o){return o.ANIMATION_ON="ag-row-animation",o.ANIMATION_OFF="ag-row-no-animation",o}(qd||{}),YR="ag-force-vertical-scroll",FX="ag-selectable",AX="ag-column-moving",NX=function(o){MX(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return n.prototype.getScrollFeature=function(){return this.bodyScrollFeature},n.prototype.getBodyViewportElement=function(){return this.eBodyViewport},n.prototype.setComp=function(e,t,i,r,s,a){var l=this;this.comp=e,this.eGridBody=t,this.eBodyViewport=i,this.eTop=r,this.eBottom=s,this.eStickyTop=a,this.setCellTextSelection(this.gridOptionsService.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",function(c){return l.setCellTextSelection(c.currentValue)}),this.createManagedBean(new L0(this.comp)),this.bodyScrollFeature=this.createManagedBean(new OX(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,i,s,a]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(r),this.ctrlsService.registerGridBodyCtrl(this)},n.prototype.getComp=function(){return this.comp},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,T.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},n.prototype.addFocusListeners=function(e){var t=this;e.forEach(function(i){t.addManagedListener(i,"focusin",function(r){var s=r.target,a=il(s,"ag-root",i);i.classList.toggle("ag-has-focus",!a)}),t.addManagedListener(i,"focusout",function(r){var s=r.target,a=r.relatedTarget,l=i.contains(a),c=il(a,"ag-root",i),u=il(s,"ag-root",i);u||(!l||c)&&i.classList.remove("ag-has-focus")})})},n.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(AX,e)},n.prototype.setCellTextSelection=function(e){e===void 0&&(e=!1),this.comp.setCellSelectableCss(FX,e)},n.prototype.onScrollVisibilityChanged=function(){var e=this,t=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(t),this.setStickyTopWidth(t);var i=t&&this.gridOptionsService.getScrollbarWidth()||0,r=y0()?16:0,s="calc(100% + ".concat(i+r,"px)");this.animationFrameService.requestAnimationFrame(function(){return e.comp.setBodyViewportWidth(s)})},n.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e.length)},n.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.get("stopEditingWhenCellsLoseFocus")){var t=function(r){var s=r.relatedTarget;if(cg(s)===null){e.rowRenderer.stopEditing();return}var a=i.some(function(c){return c.contains(s)})&&e.mouseEventService.isElementInThisGrid(s);if(!a){var l=e.popupService;a=l.getActivePopups().some(function(c){return c.contains(s)})||l.isElementWithinCustomPopup(s)}a||e.rowRenderer.stopEditing()},i=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];i.forEach(function(r){return e.addManagedListener(r,"focusout",t)})}},n.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,i=t===-1?-1:e+t;this.comp.setRowCount(i)},n.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},n.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.get("alwaysShowVerticalScroll"),t=e?YR:null,i=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||i&&hR(this.eBodyViewport)},n.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var i=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),r=i?qd.ANIMATION_ON:qd.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(r,i)};t(),this.addManagedListener(this.eventService,T.EVENT_HEIGHT_SCALE_CHANGED,t),this.addManagedPropertyListener("animateRows",t)},n.prototype.getGridBodyElement=function(){return this.eGridBody},n.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},n.prototype.addFullWidthContainerWheelListener=function(){var e=this,t=this.eBodyViewport.querySelector(".ag-full-width-container"),i=this.eBodyViewport.querySelector(".ag-center-cols-viewport");t&&i&&this.addManagedListener(t,"wheel",function(r){return e.onFullWidthContainerWheel(r,i)})},n.prototype.onFullWidthContainerWheel=function(e,t){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||!this.mouseEventService.isEventFromThisGrid(e)||(e.preventDefault(),t.scrollBy({left:e.deltaX}))},n.prototype.onBodyViewportContextMenu=function(e,t,i){if(!(!e&&!i)){if(this.gridOptionsService.get("preventDefaultOnContextMenu")){var r=e||i;r.preventDefault()}var s=(e||t).target;(s===this.eBodyViewport||s===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&this.menuService.showContextMenu({mouseEvent:e,touchEvent:i,value:null,anchorToElement:this.eGridBody})}},n.prototype.mockContextMenuForIPad=function(e){if(Es()){var t=new xi(this.eBodyViewport),i=function(r){e(void 0,r.touchStart,r.touchEvent)};this.addManagedListener(t,xi.EVENT_LONG_TAP,i),this.addDestroyFunc(function(){return t.destroy()})}},n.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},n.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},n.prototype.getGui=function(){return this.eGridBody},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new PX(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},n.prototype.getRowDragFeature=function(){return this.rowDragFeature},n.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},n.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight(),i=e.getPinnedBottomTotalHeight();this.comp.setTopHeight(t),this.comp.setBottomHeight(i),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(i?"inherit":"none"),this.setStickyTopOffsetTop()},n.prototype.setStickyTopHeight=function(e){e===void 0&&(e=0),this.comp.setStickyTopHeight("".concat(e,"px")),this.stickyTopHeight=e},n.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},n.prototype.setStickyTopWidth=function(e){if(!e)this.comp.setStickyTopWidth("100%");else{var t=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - ".concat(t,"px)"))}},n.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},n.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl(),t=e.getHeaderHeight()+this.filterManager.getHeaderHeight(),i=this.pinnedRowModel.getPinnedTopTotalHeight(),r=0;t>0&&(r+=t+1),i>0&&(r+=i+1),this.comp.setStickyTopTop("".concat(r,"px"))},n.prototype.sizeColumnsToFit=function(e,t){var i=this,r=this.isVerticalScrollShowing(),s=r?this.gridOptionsService.getScrollbarWidth():0,a=cl(this.eGridBody),l=a-s;if(l>0){this.columnModel.sizeColumnsToFit(l,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(function(){i.sizeColumnsToFit(e,100)},0):t===100?window.setTimeout(function(){i.sizeColumnsToFit(e,500)},100):t===500?window.setTimeout(function(){i.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Yi([b("animationFrameService")],n.prototype,"animationFrameService",void 0),Yi([b("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),Yi([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Yi([b("columnModel")],n.prototype,"columnModel",void 0),Yi([b("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Yi([b("menuService")],n.prototype,"menuService",void 0),Yi([b("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Yi([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Yi([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Yi([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Yi([b("popupService")],n.prototype,"popupService",void 0),Yi([b("mouseEventService")],n.prototype,"mouseEventService",void 0),Yi([b("rowModel")],n.prototype,"rowModel",void 0),Yi([b("filterManager")],n.prototype,"filterManager",void 0),n}(re),Y_=function(o){return o[o.FILL=0]="FILL",o[o.RANGE=1]="RANGE",o}(Y_||{}),Fd=function(o){return o[o.VALUE=0]="VALUE",o[o.DIMENSION=1]="DIMENSION",o}(Fd||{}),pd="ag-cell-range-selected",LX="ag-cell-range-chart",kX="ag-cell-range-single-cell",VX="ag-cell-range-chart-category",GX="ag-cell-range-handle",HX="ag-cell-range-top",BX="ag-cell-range-right",$X="ag-cell-range-bottom",jX="ag-cell-range-left",WX=function(){function o(n,e){this.beans=n,this.cellCtrl=e}return o.prototype.setComp=function(n,e){this.cellComp=n,this.eGui=e,this.onRangeSelectionChanged()},o.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(pd,this.rangeCount!==0),this.cellComp.addOrRemoveCssClass("".concat(pd,"-1"),this.rangeCount===1),this.cellComp.addOrRemoveCssClass("".concat(pd,"-2"),this.rangeCount===2),this.cellComp.addOrRemoveCssClass("".concat(pd,"-3"),this.rangeCount===3),this.cellComp.addOrRemoveCssClass("".concat(pd,"-4"),this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(LX,this.hasChartRange),$c(this.eGui,this.rangeCount>0?!0:void 0),this.cellComp.addOrRemoveCssClass(kX,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},o.prototype.updateRangeBorders=function(){var n=this.getRangeBorders(),e=this.isSingleCell(),t=!e&&n.top,i=!e&&n.right,r=!e&&n.bottom,s=!e&&n.left;this.cellComp.addOrRemoveCssClass(HX,t),this.cellComp.addOrRemoveCssClass(BX,i),this.cellComp.addOrRemoveCssClass($X,r),this.cellComp.addOrRemoveCssClass(jX,s)},o.prototype.isSingleCell=function(){var n=this.beans.rangeService;return this.rangeCount===1&&n&&!n.isMoreThanOneCell()},o.prototype.getHasChartRange=function(){var n=this.beans.rangeService;if(!this.rangeCount||!n)return!1;var e=n.getCellRanges();return e.length>0&&e.every(function(t){return Co([Fd.DIMENSION,Fd.VALUE],t.type)})},o.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},o.prototype.getRangeBorders=function(){var n=this,e=this.beans.gridOptionsService.get("enableRtl"),t=!1,i=!1,r=!1,s=!1,a=this.cellCtrl.getCellPosition().column,l=this.beans,c=l.rangeService,u=l.columnModel,d,p;e?(d=u.getDisplayedColAfter(a),p=u.getDisplayedColBefore(a)):(d=u.getDisplayedColBefore(a),p=u.getDisplayedColAfter(a));var g=c.getCellRanges().filter(function(z){return c.isCellInSpecificRange(n.cellCtrl.getCellPosition(),z)});d||(s=!0),p||(i=!0);for(var v=0;v<g.length&&!(t&&i&&r&&s);v++){var y=g[v],x=c.getRangeStartRow(y),E=c.getRangeEndRow(y);!t&&this.beans.rowPositionUtils.sameRow(x,this.cellCtrl.getCellPosition())&&(t=!0),!r&&this.beans.rowPositionUtils.sameRow(E,this.cellCtrl.getCellPosition())&&(r=!0),!s&&d&&y.columns.indexOf(d)<0&&(s=!0),!i&&p&&y.columns.indexOf(p)<0&&(i=!0)}return{top:t,right:i,bottom:r,left:s}},o.prototype.refreshHandle=function(){if(!(!this.beans.rangeService||this.beans.context.isDestroyed())){var n=this.shouldHaveSelectionHandle();this.selectionHandle&&!n&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),n&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(GX,!!this.selectionHandle)}},o.prototype.shouldHaveSelectionHandle=function(){var n=this.beans,e=n.gridOptionsService,t=n.rangeService,i=t.getCellRanges(),r=i.length;if(this.rangeCount<1||r<1)return!1;var s=Nt(i),a=this.cellCtrl.getCellPosition(),l=e.get("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),c=e.get("enableRangeHandle"),u=r===1&&!this.cellCtrl.isEditing()&&(l||c);if(this.hasChartRange){var d=i[0].type===Fd.DIMENSION,p=d&&t.isCellInSpecificRange(a,i[0]);this.cellComp.addOrRemoveCssClass(VX,p),u=s.type===Fd.VALUE}return u&&s.endRow!=null&&t.isContiguousRange(s)&&t.isBottomRightCell(s,a)},o.prototype.addSelectionHandle=function(){var n=this.beans,e=n.gridOptionsService,t=n.rangeService,i=Nt(t.getCellRanges()).type,r=e.get("enableFillHandle")&&tt(i),s=r?Y_.FILL:Y_.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==s&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(s)),this.selectionHandle.refresh(this.cellCtrl)},o.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},o}(),UX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),KX=function(o){UX(n,o);function n(e,t){var i=o.call(this)||this;return i.cellCtrl=e,i.beans=t,i.column=e.getColumn(),i.rowNode=e.getRowNode(),i.setupColSpan(),i.setupRowSpan(),i}return n.prototype.setupRowSpan=function(){var e=this;this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListener(this.beans.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return e.onNewColumnsLoaded()})},n.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},n.prototype.onNewColumnsLoaded=function(){var e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this.applyRowSpan(!0))},n.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();bs(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},n.prototype.setupColSpan=function(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},n.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width="".concat(e,"px")}},n.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce(function(e,t){return e+t.getActualWidth()},0):this.column.getActualWidth()},n.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(e===1)t.push(this.column);else for(var i=this.column,r=this.column.getPinned(),s=0;i&&s<e&&(t.push(i),i=this.beans.columnModel.getDisplayedColAfter(i),!(!i||tt(i)||r!==i.getPinned()));s++);return t},n.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},n.prototype.getCellLeft=function(){var e;return this.beans.gridOptionsService.get("enableRtl")&&this.colsSpanning?e=Nt(this.colsSpanning):e=this.column,e.getLeft()},n.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()==="left")return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(this.column.getPinned()==="right"){var i=this.beans.columnModel.getBodyContainerWidth();return t+i+(e||0)}return t+(e||0)},n.prototype.applyRowSpan=function(e){if(!(this.rowSpan===1&&!e)){var t=this.beans.gridOptionsService.getRowHeightAsNumber(),i=t*this.rowSpan;this.eGui.style.height="".concat(i,"px"),this.eGui.style.zIndex="1"}},n.prototype.destroy=function(){o.prototype.destroy.call(this)},n}(re),qX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),YX=function(o){qX(n,o);function n(e,t){var i=o.call(this)||this;return i.staticClasses=[],i.cellCtrl=e,i.beans=t,i.column=e.getColumn(),i.rowNode=e.getRowNode(),i}return n.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},n.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),i=t.cellClassRules,r=this.beans.gridOptionsService.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,column:this.column,rowIndex:this.rowNode.rowIndex});this.beans.stylingService.processClassRules(i===this.cellClassRules?void 0:this.cellClassRules,i,r,function(s){return e.cellComp.addOrRemoveCssClass(s,!0)},function(s){return e.cellComp.addOrRemoveCssClass(s,!1)}),this.cellClassRules=i},n.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if(typeof e.cellStyle=="function"){var i=this.beans.gridOptionsService.addGridCommonParams({column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex}),r=e.cellStyle;t=r(i)}else t=e.cellStyle;t&&this.cellComp.setUserStyles(t)}},n.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),i=this.beans.gridOptionsService.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:t,rowIndex:this.rowNode.rowIndex});this.staticClasses.length&&this.staticClasses.forEach(function(r){return e.cellComp.addOrRemoveCssClass(r,!1)}),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,i),this.staticClasses.length&&this.staticClasses.forEach(function(r){return e.cellComp.addOrRemoveCssClass(r,!0)})},n.prototype.destroy=function(){o.prototype.destroy.call(this)},n}(re),QX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Fg=function(o){QX(n,o);function n(e,t){var i=o.call(this)||this;return i.ctrl=e,i.beans=t,i}return n.prototype.setComp=function(e){this.eGui=e,this.setupTooltip()},n.prototype.setBrowserTooltip=function(e){var t="title";e!=null&&e!=""?this.eGui.setAttribute(t,e):this.eGui.removeAttribute(t)},n.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?this.setBrowserTooltip(this.tooltip):this.createTooltipFeatureIfNeeded()},n.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},n.prototype.createTooltipFeatureIfNeeded=function(){var e=this,t,i,r,s;if(this.genericTooltipFeature==null){var a={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new SR(a,(i=(t=this.ctrl).getTooltipShowDelayOverride)===null||i===void 0?void 0:i.call(t),(s=(r=this.ctrl).getTooltipHideDelayOverride)===null||s===void 0?void 0:s.call(r)),this.beans.context)}},n.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.setBrowserTooltip(this.tooltip)},n.prototype.getTooltipParams=function(){var e=this,t=this.ctrl,i=t.getColumn?t.getColumn():void 0,r=t.getColDef?t.getColDef():void 0,s=t.getRowNode?t.getRowNode():void 0;return{location:t.getLocation(),colDef:r,column:i,rowIndex:t.getRowIndex?t.getRowIndex():void 0,node:s,data:s?s.data:void 0,value:this.getTooltipText(),valueFormatted:t.getValueFormatted?t.getValueFormatted():void 0,hideTooltipCallback:function(){return e.genericTooltipFeature.hideTooltip(!0)}}},n.prototype.getTooltipText=function(){return this.tooltip},n.prototype.destroy=function(){o.prototype.destroy.call(this)},n}(re),at=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},QR=function(){function o(){}return o.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},at([b("resizeObserverService")],o.prototype,"resizeObserverService",void 0),at([b("paginationProxy")],o.prototype,"paginationProxy",void 0),at([b("context")],o.prototype,"context",void 0),at([b("columnApi")],o.prototype,"columnApi",void 0),at([b("gridApi")],o.prototype,"gridApi",void 0),at([b("gridOptionsService")],o.prototype,"gridOptionsService",void 0),at([b("expressionService")],o.prototype,"expressionService",void 0),at([b("environment")],o.prototype,"environment",void 0),at([b("rowRenderer")],o.prototype,"rowRenderer",void 0),at([b("templateService")],o.prototype,"templateService",void 0),at([b("valueService")],o.prototype,"valueService",void 0),at([b("eventService")],o.prototype,"eventService",void 0),at([b("columnModel")],o.prototype,"columnModel",void 0),at([b("headerNavigationService")],o.prototype,"headerNavigationService",void 0),at([b("navigationService")],o.prototype,"navigationService",void 0),at([b("columnAnimationService")],o.prototype,"columnAnimationService",void 0),at([Mt("rangeService")],o.prototype,"rangeService",void 0),at([b("focusService")],o.prototype,"focusService",void 0),at([b("popupService")],o.prototype,"popupService",void 0),at([b("valueFormatterService")],o.prototype,"valueFormatterService",void 0),at([b("stylingService")],o.prototype,"stylingService",void 0),at([b("columnHoverService")],o.prototype,"columnHoverService",void 0),at([b("userComponentFactory")],o.prototype,"userComponentFactory",void 0),at([b("userComponentRegistry")],o.prototype,"userComponentRegistry",void 0),at([b("animationFrameService")],o.prototype,"animationFrameService",void 0),at([b("dragService")],o.prototype,"dragService",void 0),at([b("dragAndDropService")],o.prototype,"dragAndDropService",void 0),at([b("sortController")],o.prototype,"sortController",void 0),at([b("filterManager")],o.prototype,"filterManager",void 0),at([b("rowContainerHeightService")],o.prototype,"rowContainerHeightService",void 0),at([b("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),at([b("cellPositionUtils")],o.prototype,"cellPositionUtils",void 0),at([b("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),at([b("selectionService")],o.prototype,"selectionService",void 0),at([Mt("selectionHandleFactory")],o.prototype,"selectionHandleFactory",void 0),at([b("rowCssClassCalculator")],o.prototype,"rowCssClassCalculator",void 0),at([b("rowModel")],o.prototype,"rowModel",void 0),at([b("ctrlsService")],o.prototype,"ctrlsService",void 0),at([b("ctrlsFactory")],o.prototype,"ctrlsFactory",void 0),at([b("agStackComponentsRegistry")],o.prototype,"agStackComponentsRegistry",void 0),at([b("valueCache")],o.prototype,"valueCache",void 0),at([b("rowNodeEventThrottle")],o.prototype,"rowNodeEventThrottle",void 0),at([b("localeService")],o.prototype,"localeService",void 0),at([b("valueParserService")],o.prototype,"valueParserService",void 0),at([b("syncService")],o.prototype,"syncService",void 0),at([b("ariaAnnouncementService")],o.prototype,"ariaAnnouncementService",void 0),at([pe],o.prototype,"postConstruct",null),o=at([Oe("beans")],o),o}(),XX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),ZX=function(o){XX(n,o);function n(e,t,i){var r=o.call(this)||this;return r.cellCtrl=e,r.beans=t,r.column=i,r}return n.prototype.onMouseEvent=function(e,t){if(!_o(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}},n.prototype.onCellClicked=function(e){var t=this;if(this.isDoubleClickOnIPad()){this.onCellDoubleClicked(e),e.preventDefault();return}var i=this.beans,r=i.eventService,s=i.rangeService,a=i.gridOptionsService,l=e.ctrlKey||e.metaKey;s&&l&&s.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&s.intersectLastRange(!0);var c=this.cellCtrl.createEvent(e,T.EVENT_CELL_CLICKED);r.dispatchEvent(c);var u=this.column.getColDef();u.onCellClicked&&window.setTimeout(function(){t.beans.frameworkOverrides.wrapOutgoing(function(){u.onCellClicked(c)})},0);var d=(a.get("singleClickEdit")||u.singleClickEdit)&&!a.get("suppressClickEdit");d&&!(e.shiftKey&&s?.getCellRanges().length!=0)&&this.cellCtrl.startRowOrCellEdit()},n.prototype.isDoubleClickOnIPad=function(){if(!Es()||i0("dblclick"))return!1;var e=new Date().getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},n.prototype.onCellDoubleClicked=function(e){var t=this,i=this.column.getColDef(),r=this.cellCtrl.createEvent(e,T.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(r),typeof i.onCellDoubleClicked=="function"&&window.setTimeout(function(){t.beans.frameworkOverrides.wrapOutgoing(function(){i.onCellDoubleClicked(r)})},0);var s=!this.beans.gridOptionsService.get("singleClickEdit")&&!this.beans.gridOptionsService.get("suppressClickEdit");s&&this.cellCtrl.startRowOrCellEdit(null,e)},n.prototype.onMouseDown=function(e){var t=e.ctrlKey,i=e.metaKey,r=e.shiftKey,s=e.target,a=this,l=a.cellCtrl,c=a.beans,u=c.eventService,d=c.rangeService,p=c.focusService;if(!this.isRightClickInExistingRange(e)){var g=d&&d.getCellRanges().length!=0;if(!r||!g){var v=Zo()&&!l.isEditing()&&!S0(s);l.focusCell(v)}if(r&&g&&!p.isCellFocused(l.getCellPosition())){e.preventDefault();var y=p.getFocusedCell();if(y){var x=y.column,E=y.rowIndex,z=y.rowPinned,M=c.rowRenderer.getRowByPosition({rowIndex:E,rowPinned:z}),G=M?.getCellCtrl(x);G?.isEditing()&&G.stopEditing(),p.setFocusedCell({column:x,rowIndex:E,rowPinned:z,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(s)){if(d){var U=this.cellCtrl.getCellPosition();if(r)d.extendLatestRangeToCell(U);else{var se=t||i;d.setRangeToCell(U,se)}}u.dispatchEvent(this.cellCtrl.createEvent(e,T.EVENT_CELL_MOUSE_DOWN))}}},n.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t){var i=t.isCellInAnyRange(this.cellCtrl.getCellPosition()),r=e.button===2||e.ctrlKey&&this.beans.gridOptionsService.get("allowContextMenuWithControlKey");if(i&&r)return!0}return!1},n.prototype.containsWidget=function(e){return il(e,"ag-selection-checkbox",3)},n.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,T.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},n.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,T.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},n.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),i=t.contains(e.target),r=t.contains(e.relatedTarget);return i&&r},n.prototype.destroy=function(){},n}(QR),JX=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),eZ=function(o){JX(n,o);function n(e,t,i,r,s){var a=o.call(this)||this;return a.cellCtrl=e,a.beans=t,a.rowNode=r,a.rowCtrl=s,a}return n.prototype.setComp=function(e){this.eGui=e},n.prototype.onKeyDown=function(e){var t=e.key;switch(t){case q.ENTER:this.onEnterKeyDown(e);break;case q.F2:this.onF2KeyDown(e);break;case q.ESCAPE:this.onEscapeKeyDown(e);break;case q.TAB:this.onTabKeyDown(e);break;case q.BACKSPACE:case q.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case q.DOWN:case q.UP:case q.RIGHT:case q.LEFT:this.onNavigationKeyDown(e,t);break}},n.prototype.onNavigationKeyDown=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},n.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},n.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},n.prototype.onBackspaceOrDeleteKeyDown=function(e,t){var i=this,r=i.cellCtrl,s=i.beans,a=i.rowNode,l=s.gridOptionsService,c=s.rangeService,u=s.eventService;r.isEditing()||(u.dispatchEvent({type:T.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),_R(e,l.get("enableCellEditingOnBackspace"))?c&&l.get("enableRangeSelection")?c.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):r.isCellEditable()&&a.setDataValue(r.getColumn(),null,"cellClear"):r.startRowOrCellEdit(e,t),u.dispatchEvent({type:T.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},n.prototype.onEnterKeyDown=function(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gridOptionsService.get("enterNavigatesVertically")){var t=e.shiftKey?q.UP:q.DOWN;this.beans.navigationService.navigateToNextCell(null,t,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(q.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()},n.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(q.F2,e)},n.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},n.prototype.processCharacter=function(e){var t=e.target,i=t!==this.eGui;if(!(i||this.cellCtrl.isEditing())){var r=e.key;r===" "?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(r,e),e.preventDefault())}},n.prototype.onSpaceKeyDown=function(e){var t=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var i=this.rowNode.isSelected(),r=!i;if(r||!t.get("suppressRowDeselection")){var s=this.beans.gridOptionsService.get("groupSelectsFiltered"),a=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:s,event:e,source:"spaceKey"});i===void 0&&a===0&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:s,event:e,source:"spaceKey"})}}e.preventDefault()},n.prototype.destroy=function(){o.prototype.destroy.call(this)},n}(re),tZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),nZ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},iZ=function(o){tZ(n,o);function n(e,t,i){var r=o.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return r.rowNode=e,r.column=t,r.eCell=i,r}return n.prototype.postConstruct=function(){var e=this.getGui();e.appendChild(Gn("rowDrag",this.gridOptionsService,null)),this.addGuiEventListener("mousedown",function(t){t.stopPropagation()}),this.addDragSource(),this.checkVisibility()},n.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},n.prototype.onDragStart=function(e){var t=this,i=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);var r=function(){try{var a=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",a),e.dataTransfer.setData("text/plain",a)}catch{}};if(i){var s=this.gridOptionsService.addGridCommonParams({rowNode:this.rowNode,dragEvent:e});i(s)}else r()},n.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},nZ([pe],n.prototype,"postConstruct",null),n}(dt),rZ=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},oZ=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},sZ="ag-column-first",aZ="ag-column-last",Ag=function(){function o(){}return o.getHeaderClassesFromColDef=function(n,e,t,i){return tt(n)?[]:this.getColumnClassesFromCollDef(n.headerClass,n,e,t,i)},o.getToolPanelClassesFromColDef=function(n,e,t,i){return tt(n)?[]:this.getColumnClassesFromCollDef(n.toolPanelClass,n,e,t,i)},o.refreshFirstAndLastStyles=function(n,e,t){n.addOrRemoveCssClass(sZ,t.isColumnAtEdge(e,"first")),n.addOrRemoveCssClass(aZ,t.isColumnAtEdge(e,"last"))},o.getClassParams=function(n,e,t,i){return e.addGridCommonParams({colDef:n,column:t,columnGroup:i})},o.getColumnClassesFromCollDef=function(n,e,t,i,r){if(tt(n))return[];var s;if(typeof n=="function"){var a=this.getClassParams(e,t,i,r);s=n(a)}else s=n;return typeof s=="string"?[s]:Array.isArray(s)?oZ([],rZ(s),!1):[]},o}(),lZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),vg=function(){return vg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},vg.apply(this,arguments)},cZ="ag-cell",uZ="ag-cell-auto-height",dZ="ag-cell-normal-height",pZ="ag-cell-focus",hZ="ag-cell-first-right-pinned",fZ="ag-cell-last-left-pinned",gZ="ag-cell-not-inline-editing",mZ="ag-column-hover",vZ="ag-cell-wrap-text",yZ=0,ol=function(o){lZ(n,o);function n(e,t,i,r){var s=o.call(this)||this;return s.cellRangeFeature=null,s.cellPositionFeature=null,s.cellCustomStyleFeature=null,s.tooltipFeature=null,s.cellMouseListenerFeature=null,s.cellKeyboardListenerFeature=null,s.suppressRefreshCell=!1,s.onCellCompAttachedFuncs=[],s.column=e,s.rowNode=t,s.beans=i,s.rowCtrl=r,s.instanceId=e.getId()+"-"+yZ++,s.colIdSanitised=Yn(s.column.getId()),i.gridOptionsService.get("suppressCellFocus")||(s.tabIndex=-1),s.createCellPosition(),s.addFeatures(),s.updateAndFormatValue(!1),s}return n.prototype.shouldRestoreFocus=function(){return this.beans.focusService.shouldRestoreFocus(this.cellPosition)},n.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new KX(this,this.beans),this.addDestroyFunc(function(){var i;(i=e.cellPositionFeature)===null||i===void 0||i.destroy(),e.cellPositionFeature=null}),this.cellCustomStyleFeature=new YX(this,this.beans),this.addDestroyFunc(function(){var i;(i=e.cellCustomStyleFeature)===null||i===void 0||i.destroy(),e.cellCustomStyleFeature=null}),this.cellMouseListenerFeature=new ZX(this,this.beans,this.column),this.addDestroyFunc(function(){var i;(i=e.cellMouseListenerFeature)===null||i===void 0||i.destroy(),e.cellMouseListenerFeature=null}),this.cellKeyboardListenerFeature=new eZ(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc(function(){var i;(i=e.cellKeyboardListenerFeature)===null||i===void 0||i.destroy(),e.cellKeyboardListenerFeature=null}),this.column.isTooltipEnabled()&&(this.enableTooltipFeature(),this.addDestroyFunc(function(){e.disableTooltipFeature()}));var t=this.beans.rangeService&&this.beans.gridOptionsService.get("enableRangeSelection");t&&(this.cellRangeFeature=new WX(this.beans,this),this.addDestroyFunc(function(){var i;(i=e.cellRangeFeature)===null||i===void 0||i.destroy(),e.cellRangeFeature=null}))},n.prototype.enableTooltipFeature=function(){var e=this,t=function(){var r=e.column.getColDef(),s=e.rowNode.data;if(r.tooltipField&&ne(s))return Vc(s,r.tooltipField,e.column.isTooltipFieldContainsDots());var a=r.tooltipValueGetter;return a?a(e.beans.gridOptionsService.addGridCommonParams({location:"cell",colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted})):null},i={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:t,getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new Fg(i,this.beans)},n.prototype.disableTooltipFeature=function(){this.tooltipFeature&&(this.tooltipFeature.destroy(),this.tooltipFeature=null)},n.prototype.setComp=function(e,t,i,r,s){var a,l,c,u;this.cellComp=e,this.eGui=t,this.printLayout=r,this.addDomData(),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(i),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),(a=this.cellPositionFeature)===null||a===void 0||a.setComp(t),(l=this.cellCustomStyleFeature)===null||l===void 0||l.setComp(e),(c=this.tooltipFeature)===null||c===void 0||c.setComp(t),(u=this.cellKeyboardListenerFeature)===null||u===void 0||u.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),s&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(function(d){return d()}),this.onCellCompAttachedFuncs=[])},n.prototype.setupAutoHeight=function(e){var t=this;if(this.isAutoHeight=this.column.isAutoHeight(),!(!this.isAutoHeight||!e)){var i=e.parentElement,r=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,s=function(c){if(!t.editing&&t.isAlive()){var u=va(i),d=u.paddingTop,p=u.paddingBottom,g=u.borderBottomWidth,v=u.borderTopWidth,y=d+p+g+v,x=e.offsetHeight,E=x+y;if(c<5){var z=t.beans.gridOptionsService.getDocument(),M=!z||!z.contains(e),G=E==0;if(M||G){window.setTimeout(function(){return s(c+1)},0);return}}var U=Math.max(E,r);t.rowNode.setRowAutoHeight(U,t.column)}},a=function(){return s(0)};a();var l=this.beans.resizeObserverService.observeResize(e,a);this.addDestroyFunc(function(){l(),t.rowNode.setRowAutoHeight(void 0,t.column)})}},n.prototype.getCellAriaRole=function(){var e;return(e=this.column.getColDef().cellAriaRole)!==null&&e!==void 0?e:"gridcell"},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.getIncludeSelection=function(){return this.includeSelection},n.prototype.getIncludeRowDrag=function(){return this.includeRowDrag},n.prototype.getIncludeDndSource=function(){return this.includeDndSource},n.prototype.getColumnIdSanitised=function(){return this.colIdSanitised},n.prototype.getTabIndex=function(){return this.tabIndex},n.prototype.isCellRenderer=function(){var e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null},n.prototype.getValueToDisplay=function(){return this.valueFormatted!=null?this.valueFormatted:this.value},n.prototype.showValue=function(e){e===void 0&&(e=!1);var t=this.getValueToDisplay(),i;if(this.isCellRenderer()){var r=this.createCellRendererParams();i=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),r)}this.cellComp.setRenderDetails(i,t,e),this.refreshHandle()},n.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},n.prototype.isForceWrapper=function(){var e=this.beans.gridOptionsService.get("enableCellTextSelection")||this.column.isAutoHeight();return e},n.prototype.isIncludeControl=function(e){var t=this.rowNode.rowPinned!=null,i=typeof e=="function",r=t?!1:i||e===!0;return r},n.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),i=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||i||r},n.prototype.startEditing=function(e,t,i){var r=this;if(e===void 0&&(e=null),t===void 0&&(t=!1),i===void 0&&(i=null),!(!this.isCellEditable()||this.editing)){if(!this.cellComp){this.onCellCompAttachedFuncs.push(function(){r.startEditing(e,t,i)});return}var s=this.createCellEditorParams(e,t),a=this.column.getColDef(),l=this.beans.userComponentFactory.getCellEditorDetails(a,s);this.editCompDetails=l;var c=l?.popupFromSelector!=null?l.popupFromSelector:!!a.cellEditorPopup,u=l?.popupPositionFromSelector!=null?l.popupPositionFromSelector:a.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(l,c,u,this.beans.gridOptionsService.get("reactiveCustomComponents"));var d=this.createEvent(i,T.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(d)}},n.prototype.setEditing=function(e){this.editing!==e&&(this.editing=e,this.refreshHandle())},n.prototype.stopRowOrCellEdit=function(e){e===void 0&&(e=!1),this.beans.gridOptionsService.get("editType")==="fullRow"?this.rowCtrl.stopEditing(e):this.stopEditing(e)},n.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},n.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var i=this.cellComp.getCellEditor();if(!i)return t;var r=i.isCancelAfterEnd&&i.isCancelAfterEnd();if(r)return t;var s=i.getValue();return{newValue:s,newValueExists:!0}},n.prototype.saveNewValue=function(e,t){if(t===e)return!1;this.suppressRefreshCell=!0;var i=this.rowNode.setDataValue(this.column,t,"edit");return this.suppressRefreshCell=!1,i},n.prototype.stopEditing=function(e){if(e===void 0&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),i=t.newValue,r=t.newValueExists,s=this.rowNode.getValueFromValueService(this.column),a=!1;return r&&(a=this.saveNewValue(s,i)),this.setEditing(!1),this.cellComp.setEditDetails(),this.editCompDetails=void 0,this.updateAndFormatValue(!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(s,i,!e&&!!a),a},n.prototype.dispatchEditingStoppedEvent=function(e,t,i){var r=vg(vg({},this.createEvent(null,T.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t,valueChanged:i});this.beans.eventService.dispatchEvent(r)},n.prototype.createCellEditorParams=function(e,t){return this.beans.gridOptionsService.addGridCommonParams({value:this.rowNode.getValueFromValueService(this.column),eventKey:e,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,cellStartedEdit:t,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)})},n.prototype.createCellRendererParams=function(){var e=this,t=this.beans.gridOptionsService.addGridCommonParams({value:this.value,valueFormatted:this.valueFormatted,getValue:function(){return e.rowNode.getValueFromValueService(e.column)},setValue:function(i){return e.beans.valueService.setValue(e.rowNode,e.column,i)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(i,r,s,a){return e.registerRowDragger(i,r,a)}});return t},n.prototype.parseValue=function(e){return this.beans.valueParserService.parseValue(this.column,this.rowNode,e,this.getValue())},n.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},n.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},n.prototype.onCellChanged=function(e){var t=e.column===this.column;t&&this.refreshCell({})},n.prototype.refreshOrDestroyCell=function(e){var t;this.refreshShouldDestroy()?(t=this.rowCtrl)===null||t===void 0||t.refreshCell(this):this.refreshCell(e)},n.prototype.refreshCell=function(e){var t,i,r;if(!(this.suppressRefreshCell||this.editing)){var s=this.column.getColDef(),a=e!=null&&!!e.newData,l=e!=null&&!!e.suppressFlash||!!s.suppressCellFlash,c=s.field==null&&s.valueGetter==null&&s.showRowGroup==null,u=e&&e.forceRefresh||c||a,d=!!this.cellComp,p=this.updateAndFormatValue(d),g=u||p;if(d){if(g){this.showValue(a);var v=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering(),y=!l&&!v&&(this.beans.gridOptionsService.get("enableCellChangeFlash")||s.enableCellChangeFlash);y&&this.flashCell(),(t=this.cellCustomStyleFeature)===null||t===void 0||t.applyUserStyles(),(i=this.cellCustomStyleFeature)===null||i===void 0||i.applyClassesFromColDef()}this.refreshToolTip(),(r=this.cellCustomStyleFeature)===null||r===void 0||r.applyCellClassRules()}}},n.prototype.stopEditingAndFocus=function(e,t){e===void 0&&(e=!1),t===void 0&&(t=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit(t)},n.prototype.navigateAfterEdit=function(e){var t=this.beans.gridOptionsService.get("enterNavigatesVerticallyAfterEdit");if(t){var i=e?q.UP:q.DOWN;this.beans.navigationService.navigateToNextCell(null,i,this.getCellPosition(),!1)}},n.prototype.flashCell=function(e){var t,i,r=(t=e?.flashDuration)!==null&&t!==void 0?t:e?.flashDelay,s=(i=e?.fadeDuration)!==null&&i!==void 0?i:e?.fadeDelay;this.animateCell("data-changed",r,s)},n.prototype.animateCell=function(e,t,i){var r=this;if(this.cellComp){var s="ag-cell-".concat(e),a="ag-cell-".concat(e,"-animation"),l=this.beans.gridOptionsService;t||(t=l.get("cellFlashDuration")),ne(i)||(i=l.get("cellFadeDuration")),this.cellComp.addOrRemoveCssClass(s,!0),this.cellComp.addOrRemoveCssClass(a,!1),this.beans.frameworkOverrides.wrapIncoming(function(){window.setTimeout(function(){r.isAlive()&&(r.cellComp.addOrRemoveCssClass(s,!1),r.cellComp.addOrRemoveCssClass(a,!0),r.eGui.style.transition="background-color ".concat(i,"ms"),window.setTimeout(function(){r.isAlive()&&(r.cellComp.addOrRemoveCssClass(a,!1),r.eGui.style.transition="")},i))},t)})}},n.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition()),i=e.cells[t];i&&this.animateCell("highlight")}},n.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},n.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},n.prototype.formatValue=function(e){var t;return(t=this.callValueFormatter(e))!==null&&t!==void 0?t:e},n.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},n.prototype.updateAndFormatValue=function(e){var t=this.value,i=this.valueFormatted;return this.value=this.rowNode.getValueFromValueService(this.column),this.valueFormatted=this.callValueFormatter(this.value),e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=i:!0},n.prototype.valuesAreEqual=function(e,t){var i=this.column.getColDef();return i.equals?i.equals(e,t):e===t},n.prototype.getComp=function(){return this.cellComp},n.prototype.getValue=function(){return this.value},n.prototype.getValueFormatted=function(){return this.valueFormatted},n.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsService.setDomData(t,n.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc(function(){return e.beans.gridOptionsService.setDomData(t,n.DOM_DATA_KEY_CELL_CTRL,null)})},n.prototype.createEvent=function(e,t){var i=this.beans.gridOptionsService.addGridCommonParams({type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex});return i},n.prototype.processCharacter=function(e){var t;(t=this.cellKeyboardListenerFeature)===null||t===void 0||t.processCharacter(e)},n.prototype.onKeyDown=function(e){var t;(t=this.cellKeyboardListenerFeature)===null||t===void 0||t.onKeyDown(e)},n.prototype.onMouseEvent=function(e,t){var i;(i=this.cellMouseListenerFeature)===null||i===void 0||i.onMouseEvent(e,t)},n.prototype.getGui=function(){return this.eGui},n.prototype.refreshToolTip=function(){var e;(e=this.tooltipFeature)===null||e===void 0||e.refreshToolTip()},n.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},n.prototype.onLeftChanged=function(){var e;this.cellComp&&((e=this.cellPositionFeature)===null||e===void 0||e.onLeftChanged())},n.prototype.onDisplayedColumnsChanged=function(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())},n.prototype.refreshFirstAndLastStyles=function(){var e=this,t=e.cellComp,i=e.column,r=e.beans;Ag.refreshFirstAndLastStyles(t,i,r.columnModel)},n.prototype.refreshAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);d0(this.getGui(),e)},n.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},n.prototype.onWidthChanged=function(){var e;return(e=this.cellPositionFeature)===null||e===void 0?void 0:e.onWidthChanged()},n.prototype.getColumn=function(){return this.column},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getBeans=function(){return this.beans},n.prototype.isPrintLayout=function(){return this.printLayout},n.prototype.appendChild=function(e){this.eGui.appendChild(e)},n.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},n.prototype.getCellPosition=function(){return this.cellPosition},n.prototype.isEditing=function(){return this.editing},n.prototype.startRowOrCellEdit=function(e,t){var i=this;if(t===void 0&&(t=null),!this.cellComp){this.onCellCompAttachedFuncs.push(function(){i.startRowOrCellEdit(e,t)});return}this.beans.gridOptionsService.get("editType")==="fullRow"?this.rowCtrl.startRowEditing(e,this):this.startEditing(e,!0,t)},n.prototype.getRowCtrl=function(){return this.rowCtrl},n.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},n.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},n.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},n.prototype.isRangeSelectionEnabled=function(){return this.cellRangeFeature!=null},n.prototype.focusCell=function(e){e===void 0&&(e=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})},n.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},n.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(hZ,e)}},n.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(fZ,e)}},n.prototype.onCellFocused=function(e){if(!this.beans.gridOptionsService.get("suppressCellFocus")){var t=this.beans.focusService.isCellFocused(this.cellPosition);if(!this.cellComp){t&&e?.forceBrowserFocus&&(this.focusEventToRestore=e);return}if(this.focusEventToRestore=void 0,this.cellComp.addOrRemoveCssClass(pZ,t),t&&e&&e.forceBrowserFocus){var i=this.cellComp.getFocusableElement();i.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}var r=this.beans.gridOptionsService.get("editType")==="fullRow";!t&&!r&&this.editing&&this.stopRowOrCellEdit(),t&&this.rowCtrl.announceDescription()}},n.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:Qo(this.rowNode.rowPinned),column:this.column}},n.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass(cZ,!0),this.cellComp.addOrRemoveCssClass(gZ,!0);var e=this.column.isAutoHeight()==!0;this.cellComp.addOrRemoveCssClass(uZ,e),this.cellComp.addOrRemoveCssClass(dZ,!e)},n.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsService.get("columnHoverHighlight")){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(mZ,e)}},n.prototype.onColDefChanged=function(){var e,t;if(this.cellComp){var i=this.column.isAutoHeight();i!==this.isAutoHeight&&((e=this.rowCtrl)===null||e===void 0||e.refreshCell(this));var r=this.column.isTooltipEnabled();if(r?(this.disableTooltipFeature(),this.enableTooltipFeature(),(t=this.tooltipFeature)===null||t===void 0||t.setComp(this.eGui)):this.disableTooltipFeature(),this.setWrapText(),!this.editing)this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0});else{var s=this.getCellEditor();if(s?.refresh){var a=this.editCompDetails.params,l=a.eventKey,c=a.cellStartedEdit,u=this.createCellEditorParams(l,c),d=this.column.getColDef(),p=this.beans.userComponentFactory.getCellEditorDetails(d,u);s.refresh(p.params)}}}},n.prototype.setWrapText=function(){var e=this.column.getColDef().wrapText==!0;this.cellComp.addOrRemoveCssClass(vZ,e)},n.prototype.dispatchCellContextMenuEvent=function(e){var t=this,i=this.column.getColDef(),r=this.createEvent(e,T.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(r),i.onCellContextMenu&&window.setTimeout(function(){t.beans.frameworkOverrides.wrapOutgoing(function(){i.onCellContextMenu(r)})},0)},n.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},n.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},n.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],o.prototype.destroy.call(this)},n.prototype.createSelectionCheckbox=function(){var e=new jR;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},n.prototype.createDndSource=function(){var e=new iZ(this.rowNode,this.column,this.eGui);return this.beans.context.createBean(e),e},n.prototype.registerRowDragger=function(e,t,i){var r=this;if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}var s=this.createRowDragComp(e,t,i);s&&(this.customRowDragComp=s,this.addDestroyFunc(function(){r.beans.context.destroyBean(s),r.customRowDragComp=null}))},n.prototype.createRowDragComp=function(e,t,i){var r=this,s=this.beans.gridOptionsService.get("pagination"),a=this.beans.gridOptionsService.get("rowDragManaged"),l=this.beans.gridOptionsService.isRowModelType("clientSide");if(a){if(!l){Je("managed row dragging is only allowed in the Client Side Row Model");return}if(s){Je("managed row dragging is not possible when doing pagination");return}}var c=new fg(function(){return r.value},this.rowNode,this.column,e,t,i);return this.beans.context.createBean(c),c},n.DOM_DATA_KEY_CELL_CTRL="cellCtrl",n}(re),CZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),_Z=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},JC=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},e_=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Tr=function(o){return o.Normal="Normal",o.FullWidth="FullWidth",o.FullWidthLoading="FullWidthLoading",o.FullWidthGroup="FullWidthGroup",o.FullWidthDetail="FullWidthDetail",o}(Tr||{}),SZ=0,sl=function(o){CZ(n,o);function n(e,t,i,r,s){var a=o.call(this)||this;return a.allRowGuis=[],a.active=!0,a.centerCellCtrls={list:[],map:{}},a.leftCellCtrls={list:[],map:{}},a.rightCellCtrls={list:[],map:{}},a.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},a.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},a.rowDragComps=[],a.lastMouseDownOnDragger=!1,a.emptyStyle={},a.updateColumnListsPending=!1,a.rowId=null,a.businessKeySanitised=null,a.beans=t,a.gridOptionsService=t.gridOptionsService,a.rowNode=e,a.paginationPage=t.paginationProxy.getCurrentPage(),a.useAnimationFrameForCreate=r,a.printLayout=s,a.suppressRowTransform=a.gridOptionsService.get("suppressRowTransform"),a.instanceId=e.id+"-"+SZ++,a.rowId=Yn(e.id),a.initRowBusinessKey(),a.rowFocused=t.focusService.isRowFocused(a.rowNode.rowIndex,a.rowNode.rowPinned),a.rowLevel=t.rowCssClassCalculator.calculateRowLevel(a.rowNode),a.setRowType(),a.setAnimateFlags(i),a.rowStyles=a.processStylesFromGridOptions(),a.isFullWidth()&&!a.gridOptionsService.get("suppressCellFocus")&&(a.tabIndex=-1),a.addListeners(),a}return n.prototype.initRowBusinessKey=function(){this.businessKeyForNodeFunc=this.gridOptionsService.get("getBusinessKeyForNode"),this.updateRowBusinessKey()},n.prototype.updateRowBusinessKey=function(){if(typeof this.businessKeyForNodeFunc=="function"){var e=this.businessKeyForNodeFunc(this.rowNode);this.businessKeySanitised=Yn(e)}},n.prototype.getRowId=function(){return this.rowId},n.prototype.getRowStyles=function(){return this.rowStyles},n.prototype.getTabIndex=function(){return this.tabIndex},n.prototype.isSticky=function(){return this.rowNode.sticky},n.prototype.getBeans=function(){return this.beans},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e,t,i){var r={rowComp:e,element:t,containerType:i};this.allRowGuis.push(r),i===si.LEFT?this.leftGui=r:i===si.RIGHT?this.rightGui=r:i===si.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r,this.initialiseRowComp(r),this.rowType!=="FullWidthLoading"&&!this.rowNode.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},n.prototype.unsetComp=function(e){switch(this.allRowGuis=this.allRowGuis.filter(function(t){return t.containerType!==e}),e){case si.LEFT:this.leftGui=void 0;break;case si.RIGHT:this.rightGui=void 0;break;case si.FULL_WIDTH:this.fullWidthGui=void 0;break;case si.CENTER:this.centerGui=void 0;break}},n.prototype.isCacheable=function(){return this.rowType===Tr.FullWidthDetail&&this.gridOptionsService.get("keepDetailRows")},n.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach(function(i){return i.element.style.display=t})},n.prototype.initialiseRowComp=function(e){var t=this,i=this.gridOptionsService;this.listenOnDomOrder(e),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights(),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),i.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);var r=e.rowComp,s=this.getInitialRowClasses(e.containerType);s.forEach(function(a){return r.addOrRemoveCssClass(a,!0)}),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&Ts(e.element,this.rowNode.expanded==!0),this.setRowCompRowId(r),this.setRowCompRowBusinessKey(r),i.setDomData(e.element,n.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc(function(){return i.setDomData(e.element,n.DOM_DATA_KEY_ROW_CTRL,null)}),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,e.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(e.element),this.isFullWidth()&&this.setupFullWidth(e),i.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask(function(){t.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()},n.prototype.setRowCompRowBusinessKey=function(e){this.businessKeySanitised!=null&&e.setRowBusinessKey(this.businessKeySanitised)},n.prototype.getBusinessKey=function(){return this.businessKeySanitised},n.prototype.setRowCompRowId=function(e){this.rowId=Yn(this.rowNode.id),this.rowId!=null&&e.setRowId(this.rowId)},n.prototype.executeSlideAndFadeAnimations=function(e){var t=this,i=e.containerType,r=this.slideInAnimation[i];r&&(M_(function(){t.onTopChanged()}),this.slideInAnimation[i]=!1);var s=this.fadeInAnimation[i];s&&(M_(function(){e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[i]=!1)},n.prototype.addRowDraggerToRow=function(e){if(this.gridOptionsService.get("enableRangeSelection")){Je("Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`");return}var t=this.beans.localeService.getLocaleTextFunc(),i=new fg(function(){return"1 ".concat(t("rowDragRow","row"))},this.rowNode,void 0,e.element,void 0,!0),r=this.createBean(i,this.beans.context);this.rowDragComps.push(r)},n.prototype.setupFullWidth=function(e){var t=this.getPinnedForContainer(e.containerType),i=this.createFullWidthParams(e.element,t);if(!(this.rowType==Tr.FullWidthDetail&&!qt.__assertRegistered(je.MasterDetailModule,"cell renderer 'agDetailCellRenderer' (for master detail)",this.beans.context.getGridId()))){var r;switch(this.rowType){case Tr.FullWidthDetail:r=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(i);break;case Tr.FullWidthGroup:r=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(i);break;case Tr.FullWidthLoading:r=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(i);break;default:r=this.beans.userComponentFactory.getFullWidthCellRendererDetails(i);break}e.rowComp.showFullWidth(r)}},n.prototype.isPrintLayout=function(){return this.printLayout},n.prototype.getFullWidthCellRenderers=function(){var e,t;return this.gridOptionsService.get("embedFullWidthRows")?this.allRowGuis.map(function(i){var r;return(r=i?.rowComp)===null||r===void 0?void 0:r.getFullWidthCellRenderer()}):[(t=(e=this.fullWidthGui)===null||e===void 0?void 0:e.rowComp)===null||t===void 0?void 0:t.getFullWidthCellRenderer()]},n.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},n.prototype.executeProcessRowPostCreateFunc=function(){var e=this.gridOptionsService.getCallback("processRowPostCreate");if(!(!e||!this.areAllContainersReady())){var t={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}},n.prototype.areAllContainersReady=function(){var e=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),t=!!this.centerGui,i=!!this.rightGui||!this.beans.columnModel.isPinningRight();return e&&t&&i},n.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),i=this.gridOptionsService.get("masterDetail")&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),s=!!this.rowNode.group&&!this.rowNode.footer,a=s&&this.gridOptionsService.isGroupUseEntireRow(r);e?this.rowType=Tr.FullWidthLoading:i?this.rowType=Tr.FullWidthDetail:t?this.rowType=Tr.FullWidth:a?this.rowType=Tr.FullWidthGroup:this.rowType=Tr.Normal},n.prototype.updateColumnLists=function(e,t){var i=this;if(e===void 0&&(e=!1),t===void 0&&(t=!1),!this.isFullWidth()){var r=e||this.gridOptionsService.get("suppressAnimationFrame")||this.printLayout;if(r){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){i.active&&i.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},n.prototype.createCellCtrls=function(e,t,i){var r=this;i===void 0&&(i=null);var s={list:[],map:{}},a=function(l,c){s.list.push(c),s.map[l]=c};return t.forEach(function(l){var c=l.getInstanceId(),u=e.map[c];u||(u=new ol(l,r.rowNode,r.beans,r)),a(c,u)}),e.list.forEach(function(l){var c=s.map[l.getColumn().getInstanceId()]!=null;if(!c){var u=!r.isCellEligibleToBeRemoved(l,i);if(u){a(l.getColumn().getInstanceId(),l);return}l.destroy()}}),s},n.prototype.updateColumnListsImpl=function(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)},n.prototype.setCellCtrls=function(e){var t=this;this.allRowGuis.forEach(function(i){var r=t.getCellCtrlsForContainer(i.containerType);i.rowComp.setCellCtrls(r,e)})},n.prototype.getCellCtrlsForContainer=function(e){switch(e){case si.LEFT:return this.leftCellCtrls.list;case si.RIGHT:return this.rightCellCtrls.list;case si.FULL_WIDTH:return[];case si.CENTER:return this.centerCellCtrls.list;default:var t=e;throw new Error("Unhandled case: ".concat(t))}},n.prototype.createAllCellCtrls=function(){var e=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,e.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var t=e.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t);var i=e.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,i,"left");var r=e.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,r,"right")}},n.prototype.isCellEligibleToBeRemoved=function(e,t){var i=!0,r=!1,s=e.getColumn();if(s.getPinned()!=t)return i;var a=e.isEditing(),l=this.beans.focusService.isCellFocused(e.getCellPosition()),c=a||l;if(c){var u=e.getColumn(),d=this.beans.columnModel.getAllDisplayedColumns(),p=d.indexOf(u)>=0;return p?r:i}return i},n.prototype.getDomOrder=function(){var e=this.gridOptionsService.get("ensureDomOrder");return e||this.gridOptionsService.isDomLayout("print")},n.prototype.listenOnDomOrder=function(e){var t=this,i=function(){e.rowComp.setDomOrder(t.getDomOrder())};this.addManagedPropertyListener("domLayout",i),this.addManagedPropertyListener("ensureDomOrder",i)},n.prototype.setAnimateFlags=function(e){if(!(this.isSticky()||!e)){var t=ne(this.rowNode.oldRowTop),i=this.beans.columnModel.isPinningLeft(),r=this.beans.columnModel.isPinningRight();if(t){if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows")){this.slideInAnimation.fullWidth=!0;return}this.slideInAnimation.center=!0,this.slideInAnimation.left=i,this.slideInAnimation.right=r}else{if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows")){this.fadeInAnimation.fullWidth=!0;return}this.fadeInAnimation.center=!0,this.fadeInAnimation.left=i,this.fadeInAnimation.right=r}}},n.prototype.isEditing=function(){return this.editingRow},n.prototype.isFullWidth=function(){return this.rowType!==Tr.Normal},n.prototype.getRowType=function(){return this.rowType},n.prototype.refreshFullWidth=function(){var e=this,t=function(c,u){return c?c.rowComp.refreshFullWidth(function(){return e.createFullWidthParams(c.element,u)}):!0},i=t(this.fullWidthGui,null),r=t(this.centerGui,null),s=t(this.leftGui,"left"),a=t(this.rightGui,"right"),l=i&&r&&s&&a;return l},n.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,gt.EVENT_HEIGHT_CHANGED,function(){return e.onRowHeightChanged()}),this.addManagedListener(this.rowNode,gt.EVENT_ROW_SELECTED,function(){return e.onRowSelected()}),this.addManagedListener(this.rowNode,gt.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,gt.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_CELL_CHANGED,this.postProcessCss.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_DRAGGING_CHANGED,this.postProcessRowDragging.bind(this)),this.addManagedListener(this.rowNode,gt.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,T.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,T.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,T.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,T.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(t,T.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusChanged.bind(this)),this.addManagedListener(t,T.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,T.EVENT_MODEL_UPDATED,this.refreshFirstAndLastRowStyles.bind(this)),this.addManagedListener(t,T.EVENT_COLUMN_MOVED,this.updateColumnLists.bind(this)),this.addDestroyFunc(function(){e.destroyBeans(e.rowDragComps,e.beans.context)}),this.addManagedPropertyListeners(["rowDragEntireRow"],function(){var i=e.gridOptionsService.get("rowDragEntireRow");if(i){e.allRowGuis.forEach(function(r){e.addRowDraggerToRow(r)});return}e.destroyBeans(e.rowDragComps,e.beans.context),e.rowDragComps=[]}),this.addListenersForCellComps()},n.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,gt.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(t){return t.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,gt.EVENT_CELL_CHANGED,function(t){e.getAllCellCtrls().forEach(function(i){return i.onCellChanged(t)})})},n.prototype.onRowNodeDataChanged=function(e){var t=this,i=this.isFullWidth()!==!!this.rowNode.isFullWidthCell();if(i){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){var r=this.refreshFullWidth();r||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(function(s){return s.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.allRowGuis.forEach(function(s){t.setRowCompRowId(s.rowComp),t.updateRowBusinessKey(),t.setRowCompRowBusinessKey(s.rowComp)}),this.onRowSelected(),this.postProcessCss()},n.prototype.postProcessCss=function(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(t){var i=e===ha.Above,r=e===ha.Below;t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",i),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)})},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},n.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=this.rowNode.expanded==!0;this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass("ag-row-group",e),i.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),i.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),Ts(i.element,e&&t)})},n.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},n.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},n.prototype.getRowPosition=function(){return{rowPinned:Qo(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},n.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find(function(c){return c.element.contains(e.target)}),i=t?t.element:null,r=i===e.target;if(r){var s=this.rowNode,a=this.beans.focusService.getFocusedCell(),l={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:a&&a.column};this.beans.navigationService.navigateToNextCell(e,e.key,l,!0),e.preventDefault()}},n.prototype.onTabKeyDown=function(e){if(!(e.defaultPrevented||_o(e))){var t=this.allRowGuis.find(function(a){return a.element.contains(e.target)}),i=t?t.element:null,r=i===e.target,s=null;r||(s=this.beans.focusService.findNextFocusableElement(i,!1,e.shiftKey)),(this.isFullWidth()&&r||!s)&&this.beans.navigationService.onTabKeyDown(this,e)}},n.prototype.onFullWidthRowFocused=function(e){var t,i=this.rowNode,r=e?this.isFullWidth()&&e.rowIndex===i.rowIndex&&e.rowPinned==i.rowPinned:!1,s=this.fullWidthGui?this.fullWidthGui.element:(t=this.centerGui)===null||t===void 0?void 0:t.element;s&&(s.classList.toggle("ag-full-width-focus",r),r&&s.focus({preventScroll:!0}))},n.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},n.prototype.removeCellCtrl=function(e,t){var i={list:[],map:{}};return e.list.forEach(function(r){r!==t&&(i.list.push(r),i.map[r.getInstanceId()]=r)}),i},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t);break}},n.prototype.createRowEvent=function(e,t){return this.gridOptionsService.addGridCommonParams({type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,event:t})},n.prototype.createRowEventWithSource=function(e,t){var i=this.createRowEvent(e,t);return i.source=this,i},n.prototype.onRowDblClick=function(e){if(!_o(e)){var t=this.createRowEventWithSource(T.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=il(e.target,"ag-row-drag",3),!!this.isFullWidth()){var t=this.rowNode,i=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:i.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}},n.prototype.onRowClick=function(e){var t=_o(e)||this.lastMouseDownOnDragger;if(!t){var i=this.createRowEventWithSource(T.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(i);var r=e.ctrlKey||e.metaKey,s=e.shiftKey,a=this.gridOptionsService.get("groupSelectsChildren");if(!(a&&this.rowNode.group||this.isRowSelectionBlocked()||this.gridOptionsService.get("suppressRowClickSelection"))){var l=this.gridOptionsService.get("rowMultiSelectWithClick"),c=!this.gridOptionsService.get("suppressRowDeselection"),u="rowClicked";if(this.rowNode.isSelected())l?this.rowNode.setSelectedParams({newValue:!1,event:e,source:u}):r?c&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:u}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!s,rangeSelect:s,event:e,source:u});else{var d=l?!1:!r;this.rowNode.setSelectedParams({newValue:!0,clearSelection:d,rangeSelect:s,event:e,source:u})}}}},n.prototype.isRowSelectionBlocked=function(){return!this.rowNode.selectable||!!this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()},n.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===Tr.FullWidthDetail&&this.gridOptionsService.get("detailRowAutoHeight")){var i=function(){var s=e.clientHeight;if(s!=null&&s>0){var a=function(){t.rowNode.setRowHeight(s),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()};window.setTimeout(a,0)}},r=this.beans.resizeObserverService.observeResize(e,i);this.addDestroyFunc(r),i()}},n.prototype.createFullWidthParams=function(e,t){var i=this,r=this.gridOptionsService.addGridCommonParams({fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(s,a,l,c){return i.addFullWidthRowDragging(s,a,l,c)}});return r},n.prototype.addFullWidthRowDragging=function(e,t,i,r){if(i===void 0&&(i=""),!!this.isFullWidth()){var s=new fg(function(){return i},this.rowNode,void 0,e,t,r);this.createManagedBean(s,this.beans.context)}},n.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,i="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass(t,!0),r.rowComp.addOrRemoveCssClass(i,!1)})}this.rowLevel=e},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass("ag-row-last",t)}))},n.prototype.stopEditing=function(e){var t,i;if(e===void 0&&(e=!1),!this.stoppingRowEdit){var r=this.getAllCellCtrls(),s=this.editingRow;this.stoppingRowEdit=!0;var a=!1;try{for(var l=_Z(r),c=l.next();!c.done;c=l.next()){var u=c.value,d=u.stopEditing(e);s&&!e&&!a&&d&&(a=!0)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}if(a){var p=this.createRowEvent(T.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(p)}s&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},n.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},n.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var t=e?this.createRowEvent(T.EVENT_ROW_EDITING_STARTED):this.createRowEvent(T.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,i){if(e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=null),!this.editingRow){var r=this.getAllCellCtrls().reduce(function(s,a){var l=a===t;return l?a.startEditing(e,l,i):a.startEditing(null,l,i),s?!0:a.isEditing()},!1);r&&this.setEditingRow(!0)}},n.prototype.getAllCellCtrls=function(){if(this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0)return this.centerCellCtrls.list;var e=e_(e_(e_([],JC(this.centerCellCtrls.list),!1),JC(this.leftCellCtrls.list),!1),JC(this.rightCellCtrls.list),!1);return e},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);!t||!t.length||t.forEach(function(i){e.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass(i,!0)})})},n.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,function(t){e.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass(t,!0)})},function(t){e.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass(t,!1)})})},n.prototype.setStylesFromGridOptions=function(e,t){var i=this;e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,function(r){return r.rowComp.setUserStyles(i.rowStyles)})},n.prototype.getPinnedForContainer=function(e){var t=e===si.LEFT?"left":e===si.RIGHT?"right":null;return t},n.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),i={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(i)},n.prototype.processStylesFromGridOptions=function(){var e=this.gridOptionsService.get("rowStyle");if(e&&typeof e=="function"){console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");return}var t=this.gridOptionsService.getCallback("getRowStyle"),i;if(t){var r={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex};i=t(r)}return i||e?Object.assign({},e,i):this.emptyStyle},n.prototype.onRowSelected=function(e){var t=this,i=this.beans.gridOptionsService.getDocument(),r=!!this.rowNode.isSelected();this.forEachGui(e,function(s){s.rowComp.addOrRemoveCssClass("ag-row-selected",r),$c(s.element,r);var a=s.element.contains(i.activeElement);a&&(s===t.centerGui||s===t.fullWidthGui)&&t.announceDescription()})},n.prototype.announceDescription=function(){if(!this.isRowSelectionBlocked()){var e=this.rowNode.isSelected();if(!(e&&this.beans.gridOptionsService.get("suppressRowDeselection"))){var t=this.beans.localeService.getLocaleTextFunc(),i=t(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to ".concat(e?"deselect":"select"," this row."));this.beans.ariaAnnouncementService.announceValue(i)}}},n.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",function(){return t.rowNode.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return t.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,gt.EVENT_MOUSE_ENTER,function(){!t.beans.dragService.isDragging()&&!t.gridOptionsService.get("suppressRowHoverHighlight")&&(e.classList.add("ag-row-hover"),t.rowNode.setHovered(!0))}),this.addManagedListener(this.rowNode,gt.EVENT_MOUSE_LEAVE,function(){e.classList.remove("ag-row-hover"),t.rowNode.setHovered(!1)}))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getApproximateVScollPosition(),i=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(i,e),r)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.forEachGui=function(e,t){e?t(e):this.allRowGuis.forEach(t)},n.prototype.onRowHeightChanged=function(e){if(this.rowNode.rowHeight!=null){var t=this.rowNode.rowHeight,i=this.beans.environment.getDefaultRowHeight(),r=this.gridOptionsService.isGetRowHeightFunction(),s=r?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,a=s?"".concat(Math.min(i,s)-2,"px"):void 0;this.forEachGui(e,function(l){l.element.style.height="".concat(t,"px"),a&&l.element.style.setProperty("--ag-line-height",a)})}},n.prototype.addEventListener=function(e,t){o.prototype.addEventListener.call(this,e,t)},n.prototype.removeEventListener=function(e,t){o.prototype.removeEventListener.call(this,e,t)},n.prototype.destroyFirstPass=function(e){if(e===void 0&&(e=!1),this.active=!1,!e&&this.gridOptionsService.isAnimateRows()&&!this.isSticky()){var t=this.rowNode.rowTop!=null;if(t){var i=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(i)}else this.allRowGuis.forEach(function(s){return s.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)})}this.rowNode.setHovered(!1);var r=this.createRowEvent(T.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(r),this.beans.eventService.dispatchEvent(r),o.prototype.destroy.call(this)},n.prototype.destroySecondPass=function(){this.allRowGuis.length=0,this.stopEditing();var e=function(t){return t.list.forEach(function(i){return i.destroy()}),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},n.prototype.setFocusedClasses=function(e){var t=this;this.forEachGui(e,function(i){i.rowComp.addOrRemoveCssClass("ag-row-focus",t.rowFocused),i.rowComp.addOrRemoveCssClass("ag-row-no-focus",!t.rowFocused)})},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},n.prototype.applyPaginationOffset=function(e,t){if(t===void 0&&(t=!1),this.rowNode.isRowPinned()||this.rowNode.sticky)return e;var i=this.beans.paginationProxy.getPixelOffset(),r=t?1:-1;return e+i*r},n.prototype.setRowTop=function(e){if(!this.printLayout&&ne(e)){var t=this.applyPaginationOffset(e),i=this.rowNode.isRowPinned()||this.rowNode.sticky,r=i?t:this.beans.rowContainerHeightService.getRealPixelPosition(t),s="".concat(r,"px");this.setRowTopStyle(s)}},n.prototype.getInitialRowTop=function(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0},n.prototype.getInitialTransform=function(e){return this.suppressRowTransform?void 0:"translateY(".concat(this.getInitialRowTopShared(e),")")},n.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var i=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,r=this.applyPaginationOffset(i);t=this.rowNode.isRowPinned()?r:this.beans.rowContainerHeightService.getRealPixelPosition(r)}return t+"px"},n.prototype.setRowTopStyle=function(e){var t=this;this.allRowGuis.forEach(function(i){return t.suppressRowTransform?i.rowComp.setTop(e):i.rowComp.setTransform("translateY(".concat(e,")"))})},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach(function(i){i.getColumn()==e&&(t=i)}),t!=null||this.getAllCellCtrls().forEach(function(i){i.getColSpanningList().indexOf(e)>=0&&(t=i)}),t},n.prototype.onRowIndexChanged=function(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},n.prototype.getRowIndex=function(){return this.rowNode.getRowIndexString()},n.prototype.updateRowIndexes=function(e){var t=this.rowNode.getRowIndexString(),i=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),r=this.rowNode.rowIndex%2===0,s=i+this.rowNode.rowIndex+1;this.forEachGui(e,function(a){a.rowComp.setRowIndex(t),a.rowComp.addOrRemoveCssClass("ag-row-even",r),a.rowComp.addOrRemoveCssClass("ag-row-odd",!r),u0(a.element,s)})},n.DOM_DATA_KEY_ROW_CTRL="renderedRow",n}(re),wZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Sr=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},bZ=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},TZ=function(o){wZ(n,o);function n(e){var t=o.call(this)||this;return t.element=e,t}return n.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},n.prototype.addKeyboardListeners=function(){var e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedListener(this.element,e,t)},n.prototype.addMouseListeners=function(){var e=this,t=i0("touchstart")?"touchstart":"mousedown",i=["dblclick","contextmenu","mouseover","mouseout","click",t];i.forEach(function(r){var s=e.processMouseEvent.bind(e,r);e.addManagedListener(e.element,r,s)})},n.prototype.processMouseEvent=function(e,t){if(!(!this.mouseEventService.isEventFromThisGrid(t)||_o(t))){var i=this.getRowForEvent(t),r=this.mouseEventService.getRenderedCellForEvent(t);e==="contextmenu"?this.handleContextMenuMouseEvent(t,void 0,i,r):(r&&r.onMouseEvent(e,t),i&&i.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;if(Es()){var t=new xi(this.element),i=function(r){var s=e.getRowForEvent(r.touchEvent),a=e.mouseEventService.getRenderedCellForEvent(r.touchEvent);e.handleContextMenuMouseEvent(void 0,r.touchEvent,s,a)};this.addManagedListener(t,xi.EVENT_LONG_TAP,i),this.addDestroyFunc(function(){return t.destroy()})}},n.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var i=this.gridOptionsService.getDomData(t,sl.DOM_DATA_KEY_ROW_CTRL);if(i)return i;t=t.parentElement}return null},n.prototype.handleContextMenuMouseEvent=function(e,t,i,r){var s=i?i.getRowNode():null,a=r?r.getColumn():null,l=null;if(a){var c=e||t;r.dispatchCellContextMenuEvent(c??null),l=this.valueService.getValue(a,s)}var u=this.ctrlsService.getGridBodyCtrl(),d=r?r.getGui():u.getGridBodyElement();this.menuService.showContextMenu({mouseEvent:e,touchEvent:t,rowNode:s,column:a,value:l,anchorToElement:d})},n.prototype.getControlsForEventTarget=function(e){return{cellCtrl:sg(this.gridOptionsService,e,ol.DOM_DATA_KEY_CELL_CTRL),rowCtrl:sg(this.gridOptionsService,e,sl.DOM_DATA_KEY_ROW_CTRL)}},n.prototype.processKeyboardEvent=function(e,t){var i=this.getControlsForEventTarget(t.target),r=i.cellCtrl,s=i.rowCtrl;t.defaultPrevented||(r?this.processCellKeyboardEvent(r,e,t):s&&s.isFullWidth()&&this.processFullWidthRowKeyboardEvent(s,e,t))},n.prototype.processCellKeyboardEvent=function(e,t,i){var r=e.getRowNode(),s=e.getColumn(),a=e.isEditing(),l=!ug(this.gridOptionsService,i,r,s,a);if(l&&t==="keydown"){var c=!a&&this.navigationService.handlePageScrollingKey(i);c||e.onKeyDown(i),this.doGridOperations(i,e.isEditing()),Dg(i)&&e.processCharacter(i)}if(t==="keydown"){var u=e.createEvent(i,T.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(u)}},n.prototype.processFullWidthRowKeyboardEvent=function(e,t,i){var r=e.getRowNode(),s=this.focusService.getFocusedCell(),a=s&&s.column,l=!ug(this.gridOptionsService,i,r,a,!1);if(l){var c=i.key;if(t==="keydown")switch(c){case q.PAGE_HOME:case q.PAGE_END:case q.PAGE_UP:case q.PAGE_DOWN:this.navigationService.handlePageScrollingKey(i,!0);break;case q.UP:case q.DOWN:e.onKeyboardNavigate(i);break;case q.TAB:e.onTabKeyDown(i);break}}if(t==="keydown"){var u=e.createRowEvent(T.EVENT_CELL_KEY_DOWN,i);this.eventService.dispatchEvent(u)}},n.prototype.doGridOperations=function(e,t){if(!(!e.ctrlKey&&!e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e)){var i=CR(e);if(i===q.A)return this.onCtrlAndA(e);if(i===q.C)return this.onCtrlAndC(e);if(i===q.D)return this.onCtrlAndD(e);if(i===q.V)return this.onCtrlAndV(e);if(i===q.X)return this.onCtrlAndX(e);if(i===q.Y)return this.onCtrlAndY();if(i===q.Z)return this.onCtrlAndZ(e)}},n.prototype.onCtrlAndA=function(e){var t=this,i=t.pinnedRowModel,r=t.paginationProxy,s=t.rangeService;if(s&&r.isRowsToRender()){var a=bZ([i.isEmpty("top"),i.isEmpty("bottom")],2),l=a[0],c=a[1],u=l?null:"top",d=void 0,p=void 0;c?(d=null,p=this.paginationProxy.getRowCount()-1):(d="bottom",p=i.getPinnedBottomRowData().length-1);var g=this.columnModel.getAllDisplayedColumns();if(Er(g))return;s.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:p,rowEndPinned:d,columnStart:g[0],columnEnd:Nt(g)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){if(!(!this.clipboardService||this.gridOptionsService.get("enableCellTextSelection"))){var t=this.getControlsForEventTarget(e.target),i=t.cellCtrl,r=t.rowCtrl;i?.isEditing()||r?.isEditing()||(e.preventDefault(),this.clipboardService.copyToClipboard())}},n.prototype.onCtrlAndX=function(e){if(!(!this.clipboardService||this.gridOptionsService.get("enableCellTextSelection")||this.gridOptionsService.get("suppressCutToClipboard"))){var t=this.getControlsForEventTarget(e.target),i=t.cellCtrl,r=t.rowCtrl;i?.isEditing()||r?.isEditing()||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},n.prototype.onCtrlAndV=function(e){var t=this.getControlsForEventTarget(e.target),i=t.cellCtrl,r=t.rowCtrl;i?.isEditing()||r?.isEditing()||this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},n.prototype.onCtrlAndZ=function(e){this.gridOptionsService.get("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},n.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},Sr([b("mouseEventService")],n.prototype,"mouseEventService",void 0),Sr([b("valueService")],n.prototype,"valueService",void 0),Sr([b("menuService")],n.prototype,"menuService",void 0),Sr([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Sr([b("navigationService")],n.prototype,"navigationService",void 0),Sr([b("focusService")],n.prototype,"focusService",void 0),Sr([b("undoRedoService")],n.prototype,"undoRedoService",void 0),Sr([b("columnModel")],n.prototype,"columnModel",void 0),Sr([b("paginationProxy")],n.prototype,"paginationProxy",void 0),Sr([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Sr([Mt("rangeService")],n.prototype,"rangeService",void 0),Sr([Mt("clipboardService")],n.prototype,"clipboardService",void 0),Sr([pe],n.prototype,"postConstruct",null),n}(re),EZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),hd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},PO=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},MO=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},xZ=function(o){EZ(n,o);function n(e){var t=o.call(this)||this;return t.centerContainerCtrl=e,t}return n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,T.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this)),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],function(){e.checkViewportAndScrolls()})},n.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},n.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},n.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportInTheDOMTree()){this.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},n.prototype.keepPinnedColumnsNarrowerThanViewport=function(){var e=this.gridBodyCtrl.getBodyViewportElement(),t=cl(e);if(!(t<=50)){var i=this.getPinnedColumnsOverflowingViewport(t-50),r=this.gridOptionsService.getCallback("processUnpinnedColumns");if(i.length){if(r){var s={columns:i,viewportWidth:t};i=r(s)}this.columnModel.setColumnsPinned(i,null,"viewportSizeFeature")}}},n.prototype.getPinnedColumnsOverflowingViewport=function(e){var t=this.pinnedWidthService.getPinnedRightWidth(),i=this.pinnedWidthService.getPinnedLeftWidth(),r=t+i;if(r<e)return[];for(var s=MO([],PO(this.columnModel.getDisplayedLeftColumns()),!1),a=MO([],PO(this.columnModel.getDisplayedRightColumns()),!1),l=0,c=0,u=0,d=[],p=r-u-e;(c<s.length||l<a.length)&&p>0;){if(l<a.length){var g=a[l++];p-=g.getActualWidth(),d.push(g)}if(c<s.length&&p>0){var g=s[c++];p-=g.getActualWidth(),d.push(g)}}return d},n.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},n.prototype.getBodyHeight=function(){return this.bodyHeight},n.prototype.checkBodyHeight=function(){var e=this.gridBodyCtrl.getBodyViewportElement(),t=Qd(e);if(this.bodyHeight!==t){this.bodyHeight=t;var i={type:T.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(i)}},n.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},n.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)},n.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},n.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},hd([b("ctrlsService")],n.prototype,"ctrlsService",void 0),hd([b("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),hd([b("columnModel")],n.prototype,"columnModel",void 0),hd([b("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),hd([pe],n.prototype,"postConstruct",null),n}(re),zZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),FO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},OZ=function(o){zZ(n,o);function n(e){var t=o.call(this)||this;return t.element=e,t}return n.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},n.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;It(this.element,t),Yr(this.element,e)},n.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},FO([b("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),FO([pe],n.prototype,"postConstruct",null),n}(re),DZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),AO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},RZ=function(o){DZ(n,o);function n(e){var t=o.call(this)||this;return t.element=e,t}return n.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},n.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;It(this.element,t),Yr(this.element,e)},n.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},AO([b("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),AO([pe],n.prototype,"postConstruct",null),n}(re),IZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),NO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},XR=function(o){IZ(n,o);function n(e,t){var i=o.call(this)||this;return i.eContainer=e,i.eViewport=t,i}return n.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},n.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=e!=null?"".concat(e,"px"):"";this.eContainer.style.height=t,this.eViewport&&(this.eViewport.style.height=t)},NO([b("rowContainerHeightService")],n.prototype,"maxDivHeightScaler",void 0),NO([pe],n.prototype,"postConstruct",null),n}(re),PZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),t_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},MZ=function(o){PZ(n,o);function n(e){var t=o.call(this)||this;return t.eContainer=e,t}return n.prototype.postConstruct=function(){var e=this;if(!tt(this.rangeService)){this.params={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)},this.addManagedPropertyListener("enableRangeSelection",function(i){var r=i.currentValue;if(r){e.enableFeature();return}e.disableFeature()}),this.addDestroyFunc(function(){return e.disableFeature()});var t=this.gridOptionsService.get("enableRangeSelection");t&&this.enableFeature()}},n.prototype.enableFeature=function(){this.dragService.addDragSource(this.params)},n.prototype.disableFeature=function(){this.dragService.removeDragSource(this.params)},t_([Mt("rangeService")],n.prototype,"rangeService",void 0),t_([b("dragService")],n.prototype,"dragService",void 0),t_([pe],n.prototype,"postConstruct",null),n}(re),FZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),n_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},k0=function(o){FZ(n,o);function n(e,t){t===void 0&&(t=!1);var i=o.call(this)||this;return i.callback=e,i.addSpacer=t,i}return n.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,T.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},n.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsService.isDomLayout("print"),i=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),s=e.getDisplayedColumnsRightWidth(),a;if(t)a=i+r+s;else if(a=i,this.addSpacer){var l=this.gridOptionsService.get("enableRtl")?r:s;l===0&&this.scrollVisibleService.isVerticalScrollShowing()&&(a+=this.gridOptionsService.getScrollbarWidth())}this.callback(a)},n_([b("columnModel")],n.prototype,"columnModel",void 0),n_([b("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),n_([pe],n.prototype,"postConstruct",null),n}(re),AZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Dc=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},If=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},Pf=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},ee=function(o){return o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth",o.TOP_LEFT="topLeft",o.TOP_RIGHT="topRight",o.TOP_CENTER="topCenter",o.TOP_FULL_WIDTH="topFullWidth",o.STICKY_TOP_LEFT="stickyTopLeft",o.STICKY_TOP_RIGHT="stickyTopRight",o.STICKY_TOP_CENTER="stickyTopCenter",o.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",o.BOTTOM_LEFT="bottomLeft",o.BOTTOM_RIGHT="bottomRight",o.BOTTOM_CENTER="bottomCenter",o.BOTTOM_FULL_WIDTH="bottomFullWidth",o}(ee||{}),si=function(o){return o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth",o}(si||{});function NZ(o){switch(o){case ee.CENTER:case ee.TOP_CENTER:case ee.STICKY_TOP_CENTER:case ee.BOTTOM_CENTER:return si.CENTER;case ee.LEFT:case ee.TOP_LEFT:case ee.STICKY_TOP_LEFT:case ee.BOTTOM_LEFT:return si.LEFT;case ee.RIGHT:case ee.TOP_RIGHT:case ee.STICKY_TOP_RIGHT:case ee.BOTTOM_RIGHT:return si.RIGHT;case ee.FULL_WIDTH:case ee.TOP_FULL_WIDTH:case ee.STICKY_TOP_FULL_WIDTH:case ee.BOTTOM_FULL_WIDTH:return si.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}var LZ=ua([[ee.CENTER,"ag-center-cols-container"],[ee.LEFT,"ag-pinned-left-cols-container"],[ee.RIGHT,"ag-pinned-right-cols-container"],[ee.FULL_WIDTH,"ag-full-width-container"],[ee.TOP_CENTER,"ag-floating-top-container"],[ee.TOP_LEFT,"ag-pinned-left-floating-top"],[ee.TOP_RIGHT,"ag-pinned-right-floating-top"],[ee.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[ee.STICKY_TOP_CENTER,"ag-sticky-top-container"],[ee.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[ee.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[ee.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[ee.BOTTOM_CENTER,"ag-floating-bottom-container"],[ee.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[ee.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[ee.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),kZ=ua([[ee.CENTER,"ag-center-cols-viewport"],[ee.TOP_CENTER,"ag-floating-top-viewport"],[ee.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[ee.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),ZR=function(o){AZ(n,o);function n(e){var t=o.call(this)||this;return t.visible=!0,t.EMPTY_CTRLS=[],t.name=e,t.isFullWithContainer=t.name===ee.TOP_FULL_WIDTH||t.name===ee.STICKY_TOP_FULL_WIDTH||t.name===ee.BOTTOM_FULL_WIDTH||t.name===ee.FULL_WIDTH,t}return n.getRowContainerCssClasses=function(e){var t=LZ.get(e),i=kZ.get(e);return{container:t,viewport:i}},n.getPinned=function(e){switch(e){case ee.BOTTOM_LEFT:case ee.TOP_LEFT:case ee.STICKY_TOP_LEFT:case ee.LEFT:return"left";case ee.BOTTOM_RIGHT:case ee.TOP_RIGHT:case ee.STICKY_TOP_RIGHT:case ee.RIGHT:return"right";default:return null}},n.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.get("enableRtl"),this.forContainers([ee.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new xZ(e))})},n.prototype.registerWithCtrlsService=function(){switch(this.name){case ee.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case ee.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case ee.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case ee.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case ee.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case ee.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case ee.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case ee.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case ee.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case ee.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case ee.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case ee.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this);break}},n.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},n.prototype.getContainerElement=function(){return this.eContainer},n.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},n.prototype.setComp=function(e,t,i){var r=this;this.comp=e,this.eContainer=t,this.eViewport=i,this.createManagedBean(new TZ(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var s=[ee.TOP_CENTER,ee.TOP_LEFT,ee.TOP_RIGHT],a=[ee.STICKY_TOP_CENTER,ee.STICKY_TOP_LEFT,ee.STICKY_TOP_RIGHT],l=[ee.BOTTOM_CENTER,ee.BOTTOM_LEFT,ee.BOTTOM_RIGHT],c=[ee.CENTER,ee.LEFT,ee.RIGHT],u=Pf(Pf(Pf(Pf([],If(s),!1),If(l),!1),If(c),!1),If(a),!1),d=[ee.CENTER,ee.LEFT,ee.RIGHT,ee.FULL_WIDTH],p=[ee.CENTER,ee.TOP_CENTER,ee.STICKY_TOP_CENTER,ee.BOTTOM_CENTER],g=[ee.LEFT,ee.BOTTOM_LEFT,ee.TOP_LEFT,ee.STICKY_TOP_LEFT],v=[ee.RIGHT,ee.BOTTOM_RIGHT,ee.TOP_RIGHT,ee.STICKY_TOP_RIGHT];this.forContainers(g,function(){r.pinnedWidthFeature=r.createManagedBean(new OZ(r.eContainer)),r.addManagedListener(r.eventService,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,function(){return r.onPinnedWidthChanged()})}),this.forContainers(v,function(){r.pinnedWidthFeature=r.createManagedBean(new RZ(r.eContainer)),r.addManagedListener(r.eventService,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,function(){return r.onPinnedWidthChanged()})}),this.forContainers(d,function(){return r.createManagedBean(new XR(r.eContainer,r.name===ee.CENTER?i:void 0))}),this.forContainers(u,function(){return r.createManagedBean(new MZ(r.eContainer))}),this.forContainers(p,function(){return r.createManagedBean(new k0(function(y){return r.comp.setContainerWidth("".concat(y,"px"))}))}),this.addListeners(),this.registerWithCtrlsService()},n.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.onDisplayedColumnsChanged()}),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){return e.onDisplayedColumnsWidthChanged()}),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_ROWS_CHANGED,function(t){return e.onDisplayedRowsChanged(t.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},n.prototype.listenOnDomOrder=function(){var e=this,t=[ee.STICKY_TOP_CENTER,ee.STICKY_TOP_LEFT,ee.STICKY_TOP_RIGHT,ee.STICKY_TOP_FULL_WIDTH],i=t.indexOf(this.name)>=0;if(i){this.comp.setDomOrder(!0);return}var r=function(){var s=e.gridOptionsService.get("ensureDomOrder"),a=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(s||a)};this.addManagedPropertyListener("domLayout",r),r()},n.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([ee.TOP_CENTER,ee.STICKY_TOP_CENTER,ee.BOTTOM_CENTER],function(){var t=function(){return e.eViewport.scrollLeft=0};e.addManagedListener(e.eViewport,"scroll",t)})},n.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([ee.CENTER],function(){return e.onHorizontalViewportChanged()})},n.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([ee.CENTER],function(){return e.onHorizontalViewportChanged()})},n.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(i){e.dragService.isDragging()&&i.cancelable&&i.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",t)})},n.prototype.onHorizontalViewportChanged=function(e){e===void 0&&(e=!1);var t=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(t,i,e)},n.prototype.getCenterWidth=function(){return cl(this.eViewport)},n.prototype.getCenterViewportScrollLeft=function(){return jd(this.eViewport,this.enableRtl)},n.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return t()})},n.prototype.isViewportInTheDOMTree=function(){return T0(this.eViewport)},n.prototype.getViewportScrollLeft=function(){return jd(this.eViewport,this.enableRtl)},n.prototype.isHorizontalScrollShowing=function(){var e=this.gridOptionsService.get("alwaysShowHorizontalScroll");return e||pR(this.eViewport)},n.prototype.getViewportElement=function(){return this.eViewport},n.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX(".concat(e,"px)")},n.prototype.getHScrollPosition=function(){var e={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return e},n.prototype.setCenterViewportScrollLeft=function(e){Wd(this.eViewport,e,this.enableRtl)},n.prototype.isContainerVisible=function(){var e=n.getPinned(this.name);return!e||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},n.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())},n.prototype.onDisplayedRowsChanged=function(e){var t=this;if(e===void 0&&(e=!1),!this.visible){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}var i=this.gridOptionsService.isDomLayout("print"),r=this.gridOptionsService.get("embedFullWidthRows"),s=r||i,a=this.getRowCtrls().filter(function(l){var c=l.isFullWidth(),u=t.isFullWithContainer?!s&&c:s||!c;return u});this.comp.setRowCtrls({rowCtrls:a,useFlushSync:e})},n.prototype.getRowCtrls=function(){switch(this.name){case ee.TOP_CENTER:case ee.TOP_LEFT:case ee.TOP_RIGHT:case ee.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case ee.STICKY_TOP_CENTER:case ee.STICKY_TOP_LEFT:case ee.STICKY_TOP_RIGHT:case ee.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case ee.BOTTOM_CENTER:case ee.BOTTOM_LEFT:case ee.BOTTOM_RIGHT:case ee.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},Dc([b("dragService")],n.prototype,"dragService",void 0),Dc([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Dc([b("columnModel")],n.prototype,"columnModel",void 0),Dc([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Dc([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Dc([pe],n.prototype,"postConstruct",null),n}(re),VZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),ys=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},GZ=`<div class="ag-root ag-unselectable" role="treegrid">
  120. <ag-header-root ref="gridHeader"></ag-header-root>
  121. <div class="ag-floating-top" ref="eTop" role="presentation">
  122. <ag-row-container ref="topLeftContainer" name="`.concat(ee.TOP_LEFT,`"></ag-row-container>
  123. <ag-row-container ref="topCenterContainer" name="`).concat(ee.TOP_CENTER,`"></ag-row-container>
  124. <ag-row-container ref="topRightContainer" name="`).concat(ee.TOP_RIGHT,`"></ag-row-container>
  125. <ag-row-container ref="topFullWidthContainer" name="`).concat(ee.TOP_FULL_WIDTH,`"></ag-row-container>
  126. </div>
  127. <div class="ag-body" ref="eBody" role="presentation">
  128. <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">
  129. <ag-row-container ref="leftContainer" name="`).concat(ee.LEFT,`"></ag-row-container>
  130. <ag-row-container ref="centerContainer" name="`).concat(ee.CENTER,`"></ag-row-container>
  131. <ag-row-container ref="rightContainer" name="`).concat(ee.RIGHT,`"></ag-row-container>
  132. <ag-row-container ref="fullWidthContainer" name="`).concat(ee.FULL_WIDTH,`"></ag-row-container>
  133. </div>
  134. <ag-fake-vertical-scroll></ag-fake-vertical-scroll>
  135. </div>
  136. <div class="ag-sticky-top" ref="eStickyTop" role="presentation">
  137. <ag-row-container ref="stickyTopLeftContainer" name="`).concat(ee.STICKY_TOP_LEFT,`"></ag-row-container>
  138. <ag-row-container ref="stickyTopCenterContainer" name="`).concat(ee.STICKY_TOP_CENTER,`"></ag-row-container>
  139. <ag-row-container ref="stickyTopRightContainer" name="`).concat(ee.STICKY_TOP_RIGHT,`"></ag-row-container>
  140. <ag-row-container ref="stickyTopFullWidthContainer" name="`).concat(ee.STICKY_TOP_FULL_WIDTH,`"></ag-row-container>
  141. </div>
  142. <div class="ag-floating-bottom" ref="eBottom" role="presentation">
  143. <ag-row-container ref="bottomLeftContainer" name="`).concat(ee.BOTTOM_LEFT,`"></ag-row-container>
  144. <ag-row-container ref="bottomCenterContainer" name="`).concat(ee.BOTTOM_CENTER,`"></ag-row-container>
  145. <ag-row-container ref="bottomRightContainer" name="`).concat(ee.BOTTOM_RIGHT,`"></ag-row-container>
  146. <ag-row-container ref="bottomFullWidthContainer" name="`).concat(ee.BOTTOM_FULL_WIDTH,`"></ag-row-container>
  147. </div>
  148. <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
  149. <ag-overlay-wrapper></ag-overlay-wrapper>
  150. </div>`),HZ=function(o){VZ(n,o);function n(){return o.call(this,GZ)||this}return n.prototype.init=function(){var e=this,t=function(r,s){var a="".concat(r,"px");s.style.minHeight=a,s.style.height=a},i={setRowAnimationCssOnBodyViewport:function(r,s){return e.setRowAnimationCssOnBodyViewport(r,s)},setColumnCount:function(r){return JD(e.getGui(),r)},setRowCount:function(r){return ZD(e.getGui(),r)},setTopHeight:function(r){return t(r,e.eTop)},setBottomHeight:function(r){return t(r,e.eBottom)},setTopDisplay:function(r){return e.eTop.style.display=r},setBottomDisplay:function(r){return e.eBottom.style.display=r},setStickyTopHeight:function(r){return e.eStickyTop.style.height=r},setStickyTopTop:function(r){return e.eStickyTop.style.top=r},setStickyTopWidth:function(r){return e.eStickyTop.style.width=r},setColumnMovingCss:function(r,s){return e.addOrRemoveCssClass(r,s)},updateLayoutClasses:function(r,s){var a=[e.eBodyViewport.classList,e.eBody.classList];a.forEach(function(l){l.toggle(ei.AUTO_HEIGHT,s.autoHeight),l.toggle(ei.NORMAL,s.normal),l.toggle(ei.PRINT,s.print)}),e.addOrRemoveCssClass(ei.AUTO_HEIGHT,s.autoHeight),e.addOrRemoveCssClass(ei.NORMAL,s.normal),e.addOrRemoveCssClass(ei.PRINT,s.print)},setAlwaysVerticalScrollClass:function(r,s){return e.eBodyViewport.classList.toggle(YR,s)},registerBodyViewportResizeListener:function(r){var s=e.resizeObserverService.observeResize(e.eBodyViewport,r);e.addDestroyFunc(function(){return s()})},setPinnedTopBottomOverflowY:function(r){return e.eTop.style.overflowY=e.eBottom.style.overflowY=r},setCellSelectableCss:function(r,s){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(a){return a.classList.toggle(r,s)})},setBodyViewportWidth:function(r){return e.eBodyViewport.style.width=r}};this.ctrl=this.createManagedBean(new NX),this.ctrl.setComp(i,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService&&this.gridOptionsService.get("enableRangeSelection")||this.gridOptionsService.get("rowSelection")==="multiple")&&XD(this.getGui(),!0)},n.prototype.setRowAnimationCssOnBodyViewport=function(e,t){var i=this.eBodyViewport.classList;i.toggle(qd.ANIMATION_ON,t),i.toggle(qd.ANIMATION_OFF,!t)},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},ys([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),ys([Mt("rangeService")],n.prototype,"rangeService",void 0),ys([Ce("eBodyViewport")],n.prototype,"eBodyViewport",void 0),ys([Ce("eStickyTop")],n.prototype,"eStickyTop",void 0),ys([Ce("eTop")],n.prototype,"eTop",void 0),ys([Ce("eBottom")],n.prototype,"eBottom",void 0),ys([Ce("gridHeader")],n.prototype,"headerRootComp",void 0),ys([Ce("eBody")],n.prototype,"eBody",void 0),ys([pe],n.prototype,"init",null),n}(dt),BZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Mf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},$Z=function(o){BZ(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},n.prototype.onDisplayedColumnsChanged=function(){this.update()},n.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},n.prototype.update=function(){var e=this;this.columnAnimationService.isActive()?this.columnAnimationService.executeLaterVMTurn(function(){e.columnAnimationService.executeLaterVMTurn(function(){return e.updateImpl()})}):this.updateImpl()},n.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(!(!e||this.columnAnimationService.isActive())){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},n.prototype.setScrollsVisible=function(e){var t=this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing;if(t){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var i={type:T.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(i)}},n.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},n.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Mf([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Mf([b("columnAnimationService")],n.prototype,"columnAnimationService",void 0),Mf([pe],n.prototype,"postConstruct",null),n=Mf([Oe("scrollVisibleService")],n),n}(re),jZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),LO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},WZ=function(o){jZ(n,o);function n(){var t=o!==null&&o.apply(this,arguments)||this;return t.gridInstanceId=e.gridInstanceSequence.next(),t}e=n,n.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[e.GRID_DOM_KEY]=this.gridInstanceId},n.prototype.getRenderedCellForEvent=function(t){return sg(this.gridOptionsService,t.target,ol.DOM_DATA_KEY_CELL_CTRL)},n.prototype.isEventFromThisGrid=function(t){var i=this.isElementInThisGrid(t.target);return i},n.prototype.isElementInThisGrid=function(t){for(var i=t;i;){var r=i[e.GRID_DOM_KEY];if(ne(r)){var s=r===this.gridInstanceId;return s}i=i.parentElement}return!1},n.prototype.getCellPositionForEvent=function(t){var i=this.getRenderedCellForEvent(t);return i?i.getCellPosition():null},n.prototype.getNormalisedPosition=function(t){var i=this.gridOptionsService.isDomLayout("normal"),r=t,s,a;if(r.clientX!=null||r.clientY!=null?(s=r.clientX,a=r.clientY):(s=r.x,a=r.y),i){var l=this.ctrlsService.getGridBodyCtrl(),c=l.getScrollFeature().getVScrollPosition(),u=l.getScrollFeature().getHScrollPosition();s+=u.left,a+=c.top}return{x:s,y:a}};var e;return n.gridInstanceSequence=new Wc,n.GRID_DOM_KEY="__ag_grid_instance",LO([b("ctrlsService")],n.prototype,"ctrlsService",void 0),n=e=LO([Oe("mouseEventService")],n),n}(re),UZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),yg=function(){return yg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},yg.apply(this,arguments)},Qi=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},KZ=function(o){UZ(n,o);function n(){var e=o.call(this)||this;return e.onPageDown=F_(e.onPageDown,100),e.onPageUp=F_(e.onPageUp,100),e}return n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.gridBodyCon=t.gridBodyCtrl})},n.prototype.handlePageScrollingKey=function(e,t){t===void 0&&(t=!1);var i=e.key,r=e.altKey,s=e.ctrlKey||e.metaKey,a=!!this.rangeService&&e.shiftKey,l=this.mouseEventService.getCellPositionForEvent(e),c=!1;switch(i){case q.PAGE_HOME:case q.PAGE_END:!s&&!r&&(this.onHomeOrEndKey(i),c=!0);break;case q.LEFT:case q.RIGHT:case q.UP:case q.DOWN:if(!l)return!1;s&&!r&&!a&&(this.onCtrlUpDownLeftRight(i,l),c=!0);break;case q.PAGE_DOWN:case q.PAGE_UP:!s&&!r&&(c=this.handlePageUpDown(i,l,t));break}return c&&e.preventDefault(),c},n.prototype.handlePageUpDown=function(e,t,i){return i&&(t=this.focusService.getFocusedCell()),t?(e===q.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1},n.prototype.navigateTo=function(e){var t=e.scrollIndex,i=e.scrollType,r=e.scrollColumn,s=e.focusIndex,a=e.focusColumn;if(ne(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),ne(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,i),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(s),this.focusService.setFocusedCell({rowIndex:s,column:a,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:s,rowPinned:null,column:a};this.rangeService.setRangeToCell(l)}},n.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl(),i=t.getScrollFeature().getVScrollPosition(),r=this.getViewportHeight(),s=this.paginationProxy.getPixelOffset(),a=i.top+r,l=this.paginationProxy.getRowIndexAtPixel(a+s);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l):this.navigateToNextPage(e,l)},n.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl(),i=t.getScrollFeature().getVScrollPosition(),r=this.paginationProxy.getPixelOffset(),s=i.top,a=this.paginationProxy.getRowIndexAtPixel(s+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,a,!0):this.navigateToNextPage(e,a,!0)},n.prototype.navigateToNextPage=function(e,t,i){i===void 0&&(i=!1);var r=this.getViewportHeight(),s=this.paginationProxy.getPageFirstRow(),a=this.paginationProxy.getPageLastRow(),l=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getRow(e.rowIndex),u=i?c?.rowHeight-r-l:r-l,d=c?.rowTop+u,p=this.paginationProxy.getRowIndexAtPixel(d+l);if(p===e.rowIndex){var g=i?-1:1;t=p=e.rowIndex+g}var v;i?(v="bottom",p<s&&(p=s),t<s&&(t=s)):(v="top",p>a&&(p=a),t>a&&(t=a)),this.isRowTallerThanView(p)&&(t=p,v="top"),this.navigateTo({scrollIndex:t,scrollType:v,scrollColumn:null,focusIndex:p,focusColumn:e.column})},n.prototype.navigateToNextPageWithAutoHeight=function(e,t,i){var r=this;i===void 0&&(i=!1),this.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(function(){var s=r.getNextFocusIndexForAutoHeight(e,i);r.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:s,focusColumn:e.column,isAsync:!0})},50)},n.prototype.getNextFocusIndexForAutoHeight=function(e,t){var i;t===void 0&&(t=!1);for(var r=t?-1:1,s=this.getViewportHeight(),a=this.paginationProxy.getPageLastRow(),l=0,c=e.rowIndex;c>=0&&c<=a;){var u=this.paginationProxy.getRow(c);if(u){var d=(i=u.rowHeight)!==null&&i!==void 0?i:0;if(l+d>s)break;l+=d}c+=r}return Math.max(0,Math.min(c,a))},n.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),t=e.getScrollFeature().getVScrollPosition(),i=this.gridOptionsService.getScrollbarWidth(),r=t.bottom-t.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(r-=i),r},n.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var i=t.rowHeight;return typeof i!="number"?!1:i>this.getViewportHeight()},n.prototype.onCtrlUpDownLeftRight=function(e,t){var i=this.cellNavigationService.getNextCellToFocus(e,t,!0),r=i.rowIndex,s=i.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:s,focusIndex:r,focusColumn:s})},n.prototype.onHomeOrEndKey=function(e){var t=e===q.PAGE_HOME,i=this.columnModel.getAllDisplayedColumns(),r=t?i[0]:Nt(i),s=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:r,focusIndex:s,focusColumn:r})},n.prototype.onTabKeyDown=function(e,t){var i=t.shiftKey,r=this.tabToNextCellCommon(e,i,t);if(r){t.preventDefault();return}if(i){var s=e.getRowPosition(),a=s.rowIndex,l=s.rowPinned,c=l?a===0:a===this.paginationProxy.getPageFirstRow();c&&(this.gridOptionsService.get("headerHeight")===0||this.gridOptionsService.get("suppressHeaderFocus")?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusPreviousFromFirstCell(t)))}else e instanceof ol&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(i)&&t.preventDefault()},n.prototype.tabToNextCell=function(e,t){var i=this.focusService.getFocusedCell();if(!i)return!1;var r=this.getCellByPosition(i);return!r&&(r=this.rowRenderer.getRowByPosition(i),!r||!r.isFullWidth())?!1:this.tabToNextCellCommon(r,e,t)},n.prototype.tabToNextCellCommon=function(e,t,i){var r=e.isEditing();if(!r&&e instanceof ol){var s=e,a=s.getRowCtrl();a&&(r=a.isEditing())}var l;return r?this.gridOptionsService.get("editType")==="fullRow"?l=this.moveToNextEditingRow(e,t,i):l=this.moveToNextEditingCell(e,t,i):l=this.moveToNextCellNotEditing(e,t),l||!!this.focusService.getFocusedHeader()},n.prototype.moveToNextEditingCell=function(e,t,i){i===void 0&&(i=null);var r=e.getCellPosition();e.getGui().focus(),e.stopEditing();var s=this.findNextCellToFocusOn(r,t,!0);return s==null?!1:(s.startEditing(null,!0,i),s.focusCell(!1),!0)},n.prototype.moveToNextEditingRow=function(e,t,i){i===void 0&&(i=null);var r=e.getCellPosition(),s=this.findNextCellToFocusOn(r,t,!0);if(s==null)return!1;var a=s.getCellPosition(),l=this.isCellEditable(r),c=this.isCellEditable(a),u=a&&r.rowIndex===a.rowIndex&&r.rowPinned===a.rowPinned;if(l&&e.setFocusOutOnEditor(),!u){var d=e.getRowCtrl();d.stopEditing();var p=s.getRowCtrl();p.startRowEditing(void 0,void 0,i)}return c?(s.setFocusInOnEditor(),s.focusCell()):s.focusCell(!0),!0},n.prototype.moveToNextCellNotEditing=function(e,t){var i=this.columnModel.getAllDisplayedColumns(),r;e instanceof sl?r=yg(yg({},e.getRowPosition()),{column:t?i[0]:Nt(i)}):r=e.getCellPosition();var s=this.findNextCellToFocusOn(r,t,!1);if(s instanceof ol)s.focusCell(!0);else if(s)return this.tryToFocusFullWidthRow(s.getRowPosition(),t);return ne(s)},n.prototype.findNextCellToFocusOn=function(e,t,i){for(var r=e;;){e!==r&&(e=r),t||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,t);var s=this.gridOptionsService.getCallback("tabToNextCell");if(ne(s)){var a={backwards:t,editing:i,previousCellPosition:e,nextCellPosition:r||null},l=s(a);ne(l)?(l.floating&&(Je("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),l.rowPinned=l.floating),r={rowIndex:l.rowIndex,column:l.column,rowPinned:l.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+r.rowIndex,column:r.column},fromCell:!0}),null}var u=this.gridOptionsService.get("editType")==="fullRow";if(i&&!u){var d=this.isCellEditable(r);if(!d)continue}this.ensureCellVisible(r);var p=this.getCellByPosition(r);if(!p){var g=this.rowRenderer.getRowByPosition(r);if(!g||!g.isFullWidth()||i)continue;return g}if(!p.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),p}},n.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1},n.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},n.prototype.lookupRowNodeForCell=function(e){return e.rowPinned==="top"?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned==="bottom"?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},n.prototype.navigateToNextCell=function(e,t,i,r){for(var s=i,a=!1;s&&(s===i||!this.isValidNavigateCell(s));)this.gridOptionsService.get("enableRtl")?t===q.LEFT&&(s=this.getLastCellOfColSpan(s)):t===q.RIGHT&&(s=this.getLastCellOfColSpan(s)),s=this.cellNavigationService.getNextCellToFocus(t,s),a=tt(s);if(a&&e&&e.key===q.UP&&(s={rowIndex:-1,rowPinned:null,column:i.column}),r){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(ne(l)){var c={key:t,previousCellPosition:i,nextCellPosition:s||null,event:e},u=l(c);ne(u)?(u.floating&&(Je("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s){if(s.rowIndex<0){var d=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:d+s.rowIndex,column:i.column},event:e||void 0,fromCell:!0});return}var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},n.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},n.prototype.tryToFocusFullWidthRow=function(e,t){t===void 0&&(t=!1);var i=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;var s=this.focusService.getFocusedCell(),a={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?Nt(i):i[0])};this.focusPosition(a);var l=s!=null?this.rowPositionUtils.before(a,s):!1,c={type:T.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:a.column,isFullWidthCell:!0,floating:a.rowPinned,fromBelow:l};return this.eventService.dispatchEvent(c),!0},n.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},n.prototype.isValidNavigateCell=function(e){var t=this.rowPositionUtils.getRowNode(e);return!!t},n.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var i=t.getColSpanningList();return i.length===1?e:{rowIndex:e.rowIndex,column:Nt(i),rowPinned:e.rowPinned}},n.prototype.ensureCellVisible=function(e){var t=this.gridOptionsService.isGroupRowsSticky(),i=this.rowModel.getRow(e.rowIndex),r=t&&i?.sticky;!r&&tt(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},Qi([b("mouseEventService")],n.prototype,"mouseEventService",void 0),Qi([b("paginationProxy")],n.prototype,"paginationProxy",void 0),Qi([b("focusService")],n.prototype,"focusService",void 0),Qi([Mt("rangeService")],n.prototype,"rangeService",void 0),Qi([b("columnModel")],n.prototype,"columnModel",void 0),Qi([b("rowModel")],n.prototype,"rowModel",void 0),Qi([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Qi([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Qi([b("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Qi([b("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),Qi([b("cellNavigationService")],n.prototype,"cellNavigationService",void 0),Qi([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Qi([pe],n.prototype,"postConstruct",null),n=Qi([Oe("navigationService")],n),n}(re),qZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),YZ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},QZ=function(o){qZ(n,o);function n(e){var t=o.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return t.params=e,t}return n.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),n.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},n.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),i=this.params,r=function(s){ug(e.gridOptionsService,s,i.node,i.column,!0)||i.onKeyDown(s)};this.addManagedListener(t,"keydown",r)},n.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",YZ([pe],n.prototype,"postConstruct",null),n}(pl),XZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),ZZ=function(o){XZ(n,o);function n(e,t,i,r,s){var a=o.call(this)||this;a.rendererVersion=0,a.editorVersion=0,a.beans=e,a.column=t.getColumn(),a.rowNode=t.getRowNode(),a.rowCtrl=t.getRowCtrl(),a.eRow=r,a.cellCtrl=t;var l=document.createElement("div");l.setAttribute("comp-id","".concat(a.getCompId())),a.setTemplateFromElement(l);var c=a.getGui();a.forceWrapper=t.isForceWrapper(),a.refreshWrapper(!1);var u=function(g,v){v!=null&&v!=""?c.setAttribute(g,v):c.removeAttribute(g)};Qn(c,t.getCellAriaRole()),u("col-id",t.getColumnIdSanitised());var d=t.getTabIndex();d!==void 0&&u("tabindex",d.toString());var p={addOrRemoveCssClass:function(g,v){return a.addOrRemoveCssClass(g,v)},setUserStyles:function(g){return z0(c,g)},getFocusableElement:function(){return a.getFocusableElement()},setIncludeSelection:function(g){return a.includeSelection=g},setIncludeRowDrag:function(g){return a.includeRowDrag=g},setIncludeDndSource:function(g){return a.includeDndSource=g},setRenderDetails:function(g,v,y){return a.setRenderDetails(g,v,y)},setEditDetails:function(g,v,y){return a.setEditDetails(g,v,y)},getCellEditor:function(){return a.cellEditor||null},getCellRenderer:function(){return a.cellRenderer||null},getParentOfValue:function(){return a.getParentOfValue()}};return t.setComp(p,a.getGui(),a.eCellWrapper,i,s),a}return n.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},n.prototype.setRenderDetails=function(e,t,i){var r=this.cellEditor&&!this.cellEditorPopupWrapper;if(!r){this.firstRender=this.firstRender==null;var s=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e){var a=i||s,l=a?!1:this.refreshCellRenderer(e);l||(this.destroyRenderer(),this.createCellRendererInstance(e))}else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},n.prototype.setEditDetails=function(e,t,i){e?this.createCellEditorInstance(e,t,i):this.destroyEditor()},n.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},n.prototype.refreshWrapper=function(e){var t=this.includeRowDrag||this.includeDndSource||this.includeSelection,i=t||this.forceWrapper,r=i&&this.eCellWrapper==null;if(r){var s=document.createElement("div");s.setAttribute("role","presentation"),s.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=s,this.getGui().appendChild(this.eCellWrapper)}var a=!i&&this.eCellWrapper!=null;a&&(Yo(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!i);var l=!e&&i,c=l&&this.eCellValue==null;if(c){var u=document.createElement("span");u.setAttribute("role","presentation"),u.setAttribute("class","ag-cell-value"),this.eCellValue=u,this.eCellWrapper.appendChild(this.eCellValue)}var d=!l&&this.eCellValue!=null;d&&(Yo(this.eCellValue),this.eCellValue=void 0);var p=r||a||c||d;return p&&this.removeControls(),e||t&&this.addControls(),p},n.prototype.addControls=function(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},n.prototype.createCellEditorInstance=function(e,t,i){var r=this,s=this.editorVersion,a=e.newAgStackInstance();if(a){var l=e.params;a.then(function(u){return r.afterCellEditorCreated(s,u,l,t,i)});var c=tt(this.cellEditor);c&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},n.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();ti(t);var i=e!=null?Yn(e,!0):null;i!=null&&(t.textContent=i)},n.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},n.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),Yo(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},n.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Yo(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},n.prototype.refreshCellRenderer=function(e){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return t===!0||t===void 0},n.prototype.createCellRendererInstance=function(e){var t=this,i=this.beans.gridOptionsService.get("suppressAnimationFrame"),r=!i,s=this.rendererVersion,a=e.componentClass,l=function(){var c=t.rendererVersion!==s||!t.isAlive();if(!c){var u=e.newAgStackInstance(),d=t.afterCellRendererCreated.bind(t,s,a);u&&u.then(d)}};r&&this.firstRender?this.beans.animationFrameService.createTask(l,this.rowNode.rowIndex,"createTasksP2"):l()},n.prototype.getCtrl=function(){return this.cellCtrl},n.prototype.getRowCtrl=function(){return this.rowCtrl},n.prototype.getCellRenderer=function(){return this.cellRenderer},n.prototype.getCellEditor=function(){return this.cellEditor},n.prototype.afterCellRendererCreated=function(e,t,i){var r=!this.isAlive()||e!==this.rendererVersion;if(r){this.beans.context.destroyBean(i);return}if(this.cellRenderer=i,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){var s=this.getParentOfValue();ti(s),s.appendChild(this.cellRendererGui)}},n.prototype.afterCellEditorCreated=function(e,t,i,r,s){var a=e!==this.editorVersion;if(a){this.beans.context.destroyBean(t);return}var l=t.isCancelBeforeStart&&t.isCancelBeforeStart();if(l){this.beans.context.destroyBean(t),this.cellCtrl.stopEditing(!0);return}if(!t.getGui){console.warn("AG Grid: cellEditor for column ".concat(this.column.getId()," is missing getGui() method")),this.beans.context.destroyBean(t);return}this.cellEditor=t,this.cellEditorGui=t.getGui();var c=r||t.isPopup!==void 0&&t.isPopup();c?this.addPopupCellEditor(i,s):this.addInCellEditor(),this.refreshEditStyles(!0,c),t.afterGuiAttached&&t.afterGuiAttached()},n.prototype.refreshEditStyles=function(e,t){var i;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!t),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!t),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!t),(i=this.rowCtrl)===null||i===void 0||i.setInlineEditingCss(e)},n.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();if(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui){var i=this.getParentOfValue();i.appendChild(this.cellEditorGui)}},n.prototype.addPopupCellEditor=function(e,t){var i=this;this.beans.gridOptionsService.get("editType")==="fullRow"&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new QZ(e));var s=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&s.appendChild(this.cellEditorGui);var a=this.beans.popupService,l=this.beans.gridOptionsService.get("stopEditingWhenCellsLoseFocus"),c=t??(r.getPopupPosition?r.getPopupPosition():"over"),u=this.beans.gridOptionsService.get("enableRtl"),d={ePopup:s,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:c,alignSide:u?"right":"left",keepWithinBounds:!0},p=a.positionPopupByComponent.bind(a,d),g=this.beans.localeService.getLocaleTextFunc(),v=a.addPopup({modal:l,eChild:s,closeOnEsc:!0,closedCallback:function(){i.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:p,ariaLabel:g("ariaLabelCellEditor","Cell Editor")});v&&(this.hideEditorPopup=v.hideFunc)},n.prototype.detach=function(){this.eRow.removeChild(this.getGui())},n.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),o.prototype.destroy.call(this)},n.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();e.contains(t.activeElement)&&v0()&&e.focus({preventScroll:!0}),ti(this.getParentOfValue())},n}(dt),JZ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),eJ=function(o){JZ(n,o);function n(e,t,i){var r=o.call(this)||this;r.cellComps={},r.beans=t,r.rowCtrl=e;var s=document.createElement("div");s.setAttribute("comp-id","".concat(r.getCompId())),s.setAttribute("style",r.getInitialStyle(i)),r.setTemplateFromElement(s);var a=r.getGui(),l=a.style;r.domOrder=r.rowCtrl.getDomOrder(),Qn(a,"row");var c=r.rowCtrl.getTabIndex();c!=null&&a.setAttribute("tabindex",c.toString());var u={setDomOrder:function(d){return r.domOrder=d},setCellCtrls:function(d){return r.setCellCtrls(d)},showFullWidth:function(d){return r.showFullWidth(d)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(d,p){return r.addOrRemoveCssClass(d,p)},setUserStyles:function(d){return z0(a,d)},setTop:function(d){return l.top=d},setTransform:function(d){return l.transform=d},setRowIndex:function(d){return a.setAttribute("row-index",d)},setRowId:function(d){return a.setAttribute("row-id",d)},setRowBusinessKey:function(d){return a.setAttribute("row-business-key",d)},refreshFullWidth:function(d){return r.refreshFullWidth(d)}};return e.setComp(u,r.getGui(),i),r.addDestroyFunc(function(){e.unsetComp(i)}),r}return n.prototype.getInitialStyle=function(e){var t=this.rowCtrl.getInitialTransform(e);return t?"transform: ".concat(t):"top: ".concat(this.rowCtrl.getInitialRowTop(e))},n.prototype.showFullWidth=function(e){var t=this,i=function(s){if(t.isAlive()){var a=s.getGui();t.getGui().appendChild(a),t.rowCtrl.setupDetailRowAutoHeight(a),t.setFullWidthRowComp(s)}else t.beans.context.destroyBean(s)},r=e.newAgStackInstance();r&&r.then(i)},n.prototype.setCellCtrls=function(e){var t=this,i=Object.assign({},this.cellComps);e.forEach(function(s){var a=s.getInstanceId(),l=t.cellComps[a];l==null?t.newCellComp(s):i[a]=null});var r=fa(i).filter(function(s){return s!=null});this.destroyCells(r),this.ensureDomOrder(e)},n.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var i=[];e.forEach(function(r){var s=t.cellComps[r.getInstanceId()];s&&i.push(s.getGui())}),x0(this.getGui(),i)}},n.prototype.newCellComp=function(e){var t=new ZZ(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.destroyAllCells()},n.prototype.destroyAllCells=function(){var e=fa(this.cellComps).filter(function(t){return t!=null});this.destroyCells(e)},n.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)})},n.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},n.prototype.destroyCells=function(e){var t=this;e.forEach(function(i){if(i){var r=i.getCtrl().getInstanceId();t.cellComps[r]===i&&(i.detach(),i.destroy(),t.cellComps[r]=null)}})},n.prototype.refreshFullWidth=function(e){var t=this.fullWidthCellRenderer;if(!t||!t.refresh)return!1;var i=e();return t.refresh(i)},n}(dt),tJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Q_=function(){return Q_=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Q_.apply(this,arguments)},fd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r};function nJ(){var o=dt.elementGettingCreated.getAttribute("name"),n=ZR.getRowContainerCssClasses(o),e,t=o===ee.CENTER||o===ee.TOP_CENTER||o===ee.STICKY_TOP_CENTER||o===ee.BOTTOM_CENTER;return t?e='<div class="'.concat(n.viewport,`" ref="eViewport" role="presentation">
  151. <div class="`).concat(n.container,`" ref="eContainer"></div>
  152. </div>`):e='<div class="'.concat(n.container,'" ref="eContainer"></div>'),e}var iJ=function(o){tJ(n,o);function n(){var e=o.call(this,nJ())||this;return e.rowComps={},e.name=dt.elementGettingCreated.getAttribute("name"),e.type=NZ(e.name),e}return n.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(r){return e.eViewport.style.height=r},setRowCtrls:function(r){var s=r.rowCtrls;return e.setRowCtrls(s)},setDomOrder:function(r){e.domOrder=r},setContainerWidth:function(r){return e.eContainer.style.width=r}},i=this.createManagedBean(new ZR(this.name));i.setComp(t,this.eContainer,this.eViewport)},n.prototype.preDestroy=function(){this.setRowCtrls([])},n.prototype.setRowCtrls=function(e){var t=this,i=Q_({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;var r=function(s){var a=s.getInstanceId(),l=i[a];if(l)t.rowComps[a]=l,delete i[a],t.ensureDomOrder(l.getGui());else{if(!s.getRowNode().displayed)return;var c=new eJ(s,t.beans,t.type);t.rowComps[a]=c,t.appendRow(c.getGui())}};e.forEach(r),fa(i).forEach(function(s){t.eContainer.removeChild(s.getGui()),s.destroy()}),Qn(this.eContainer,"rowgroup")},n.prototype.appendRow=function(e){this.domOrder?dR(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},n.prototype.ensureDomOrder=function(e){this.domOrder&&(E0(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},fd([b("beans")],n.prototype,"beans",void 0),fd([Ce("eViewport")],n.prototype,"eViewport",void 0),fd([Ce("eContainer")],n.prototype,"eContainer",void 0),fd([pe],n.prototype,"postConstruct",null),fd([Li],n.prototype,"preDestroy",null),n}(dt),kO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},rJ=function(){function o(n){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=n}return o.prototype.onDragEnter=function(n){var e=this;if(this.clearColumnsList(),!this.gridOptionsService.get("functionsReadOnly")){var t=n.dragItem.columns;t&&t.forEach(function(i){i.isPrimary()&&(i.isAnyFunctionActive()||(i.isAllowValue()?e.columnsToAggregate.push(i):i.isAllowRowGroup()?e.columnsToGroup.push(i):i.isAllowPivot()&&e.columnsToPivot.push(i)))})}},o.prototype.getIconName=function(){var n=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return n>0?this.pinned?Jn.ICON_PINNED:Jn.ICON_MOVE:null},o.prototype.onDragLeave=function(n){this.clearColumnsList()},o.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},o.prototype.onDragging=function(n){},o.prototype.onDragStop=function(n){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},kO([b("columnModel")],o.prototype,"columnModel",void 0),kO([b("gridOptionsService")],o.prototype,"gridOptionsService",void 0),o}(),oJ=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},al=function(){function o(){}return o.attemptMoveColumns=function(n){var e=n.isFromHeader,t=n.hDirection,i=n.xPosition,r=n.fromEnter,s=n.fakeEvent,a=n.pinned,l=n.gridOptionsService,c=n.columnModel,u=t===Kr.Left,d=t===Kr.Right,p=n.allMovingColumns;if(e){var g=[];p.forEach(function(Te){for(var rt,en=null,dn=Te.getParent();dn!=null&&dn.getDisplayedLeafColumns().length===1;)en=dn,dn=dn.getParent();if(en!=null){var Yt=!!(!((rt=en.getColGroupDef())===null||rt===void 0)&&rt.marryChildren),ni=Yt?en.getProvidedColumnGroup().getLeafColumns():en.getLeafColumns();ni.forEach(function(Lt){g.includes(Lt)||g.push(Lt)})}else g.includes(Te)||g.push(Te)}),p=g}var v=p.slice();c.sortColumnsLikeGridColumns(v);var y=this.calculateValidMoves({movingCols:v,draggingRight:d,xPosition:i,pinned:a,gridOptionsService:l,columnModel:c}),x=this.calculateOldIndex(v,c);if(y.length!==0){var E=y[0],z=x!==null&&!r;if(e&&(z=x!==null),!(z&&!s&&(u&&E>=x||d&&E<=x))){for(var M=c.getAllDisplayedColumns(),G=[],U=null,se=0;se<y.length;se++){var ve=y[se],he=c.getProposedColumnOrder(v,ve);if(c.doesOrderPassRules(he)){var be=he.filter(function(Te){return M.includes(Te)});if(U===null)U=be;else if(!bs(be,U))break;var Ee=this.groupFragCount(he);G.push({move:ve,fragCount:Ee})}}if(G.length!==0)return G.sort(function(Te,rt){return Te.fragCount-rt.fragCount}),this.moveColumns(p,G[0].move,"uiColumnMoved",!1,c)}}},o.moveColumns=function(n,e,t,i,r){return r.moveColumns(n,e,t,i),i?null:{columns:n,toIndex:e}},o.calculateOldIndex=function(n,e){var t=e.getAllGridColumns(),i=PD(n.map(function(c){return t.indexOf(c)})),r=i[0],s=Nt(i),a=s-r,l=a!==i.length-1;return l?null:r},o.groupFragCount=function(n){function e(s){for(var a=[],l=s.getOriginalParent();l!=null;)a.push(l),l=l.getOriginalParent();return a}for(var t=0,i=function(s){var a,l=e(n[s]),c=e(n[s+1]);a=oJ(l.length>c.length?[l,c]:[c,l],2),l=a[0],c=a[1],l.forEach(function(u){c.indexOf(u)===-1&&t++})},r=0;r<n.length-1;r++)i(r);return t},o.calculateValidMoves=function(n){var e=n.movingCols,t=n.draggingRight,i=n.xPosition,r=n.pinned,s=n.gridOptionsService,a=n.columnModel,l=s.get("suppressMovableColumns")||e.some(function(Te){return Te.getColDef().suppressMovable});if(l)return[];var c=a.getDisplayedColumns(r),u=a.getAllGridColumns(),d=c.filter(function(Te){return Co(e,Te)}),p=c.filter(function(Te){return!Co(e,Te)}),g=u.filter(function(Te){return!Co(e,Te)}),v=0,y=i;if(t){var x=0;d.forEach(function(Te){return x+=Te.getActualWidth()}),y-=x}if(y>0){for(var E=0;E<p.length;E++){var z=p[E];if(y-=z.getActualWidth(),y<0)break;v++}t&&v++}var M;if(v>0){var G=p[v-1];M=g.indexOf(G)+1}else M=g.indexOf(p[0]),M===-1&&(M=0);var U=[M],se=function(Te,rt){return Te-rt};if(t){for(var ve=M+1,he=u.length-1;ve<=he;)U.push(ve),ve++;U.sort(se)}else{for(var ve=M,he=u.length-1,be=u[ve];ve<=he&&c.indexOf(be)<0;)ve++,U.push(ve),be=u[ve];ve=M-1;for(var Ee=0;ve>=Ee;)U.push(ve),ve--;U.sort(se).reverse()}return U},o.normaliseX=function(n,e,t,i,r){var s=r.getHeaderRowContainerCtrl(e).getViewport();if(t&&(n-=s.getBoundingClientRect().left),i.get("enableRtl")){var a=s.clientWidth;n=a-n}return e==null&&(n+=r.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),n},o}(),gd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},sJ=function(){function o(n,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=n,this.eContainer=e,this.centerContainer=!ne(n)}return o.prototype.init=function(){var n=this;this.ctrlsService.whenReady(function(){n.gridBodyCon=n.ctrlsService.getGridBodyCtrl()})},o.prototype.getIconName=function(){return this.pinned?Jn.ICON_PINNED:Jn.ICON_MOVE},o.prototype.onDragEnter=function(n){var e=n.dragItem.columns,t=n.dragSource.type===Or.ToolPanel;if(t)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var i=n.dragItem.visibleState,r=(e||[]).filter(function(s){return i[s.getId()]});this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(n,!0,!0)},o.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},o.prototype.setColumnsVisible=function(n,e,t){if(n){var i=n.filter(function(r){return!r.getColDef().lockVisible});this.columnModel.setColumnsVisible(i,e,t)}},o.prototype.setColumnsPinned=function(n,e,t){if(n){var i=n.filter(function(r){return!r.getColDef().lockPinned});this.columnModel.setColumnsPinned(i,e,t)}},o.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},o.prototype.checkCenterForScrolling=function(n){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),t=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.get("enableRtl")?(this.needToMoveRight=n<e+50,this.needToMoveLeft=n>t-50):(this.needToMoveLeft=n<e+50,this.needToMoveRight=n>t-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},o.prototype.onDragging=function(n,e,t,i){var r=this,s;if(n===void 0&&(n=this.lastDraggingEvent),e===void 0&&(e=!1),t===void 0&&(t=!1),i===void 0&&(i=!1),i){if(this.lastMovedInfo){var a=this.lastMovedInfo,l=a.columns,c=a.toIndex;al.moveColumns(l,c,"uiColumnMoved",!0,this.columnModel)}return}if(this.lastDraggingEvent=n,!tt(n.hDirection)){var u=al.normaliseX(n.x,this.pinned,!1,this.gridOptionsService,this.ctrlsService);e||this.checkCenterForScrolling(u);var d=this.normaliseDirection(n.hDirection),p=n.dragSource.type,g=((s=n.dragSource.getDragItem().columns)===null||s===void 0?void 0:s.filter(function(y){return y.getColDef().lockPinned?y.getPinned()==r.pinned:!0}))||[],v=al.attemptMoveColumns({allMovingColumns:g,isFromHeader:p===Or.HeaderCell,hDirection:d,xPosition:u,pinned:this.pinned,fromEnter:e,fakeEvent:t,gridOptionsService:this.gridOptionsService,columnModel:this.columnModel});v&&(this.lastMovedInfo=v)}},o.prototype.normaliseDirection=function(n){if(this.gridOptionsService.get("enableRtl"))switch(n){case Kr.Left:return Kr.Right;case Kr.Right:return Kr.Left;default:console.error("AG Grid: Unknown direction ".concat(n))}else return n},o.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(Jn.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Jn.ICON_RIGHT,!0))},o.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Jn.ICON_MOVE))},o.prototype.moveInterval=function(){var n;this.intervalCount++,n=10+this.intervalCount*5,n>100&&(n=100);var e=null,t=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=t.scrollHorizontally(-n):this.needToMoveRight&&(e=t.scrollHorizontally(n)),e!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var i=this.lastDraggingEvent.dragItem.columns,r=i.filter(function(a){return!a.getColDef().lockPinned});if(r.length>0&&(this.dragAndDropService.setGhostIcon(Jn.ICON_PINNED),this.failedMoveAttempts>7)){var s=this.needToMoveLeft?"left":"right";this.setColumnsPinned(r,s,"uiColumnDragged"),this.dragAndDropService.nudge()}}},gd([b("columnModel")],o.prototype,"columnModel",void 0),gd([b("dragAndDropService")],o.prototype,"dragAndDropService",void 0),gd([b("gridOptionsService")],o.prototype,"gridOptionsService",void 0),gd([b("ctrlsService")],o.prototype,"ctrlsService",void 0),gd([pe],o.prototype,"init",null),o}(),aJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),md=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},lJ=function(o){aJ(n,o);function n(e,t){var i=o.call(this)||this;return i.pinned=e,i.eContainer=t,i}return n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){switch(e.pinned){case"left":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]];break}})},n.prototype.isInterestedIn=function(e){return e===Or.HeaderCell||e===Or.ToolPanel&&this.gridOptionsService.get("allowDragFromColumnsToolPanel")},n.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},n.prototype.getContainer=function(){return this.eContainer},n.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new sJ(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new rJ(this.pinned)),this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===Or.ToolPanel},n.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},n.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},n.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},n.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},md([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),md([b("columnModel")],n.prototype,"columnModel",void 0),md([b("ctrlsService")],n.prototype,"ctrlsService",void 0),md([pe],n.prototype,"postConstruct",null),md([pe],n.prototype,"init",null),n}(re),cJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ff=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},uJ=function(o){cJ(n,o);function n(e){var t=o.call(this,n.TEMPLATE,e)||this;return t.headerCompVersion=0,t.column=e.getColumnGroupChild(),t.pinned=e.getPinned(),t}return n.prototype.postConstruct=function(){var e=this,t=this.getGui(),i=function(a,l){l!=null&&l!=""?t.setAttribute(a,l):t.removeAttribute(a)};i("col-id",this.column.getColId());var r={setWidth:function(a){return t.style.width=a},addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},setAriaSort:function(a){return a?tR(t,a):nR(t)},setUserCompDetails:function(a){return e.setUserCompDetails(a)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper);var s=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",s)},n.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},n.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var i=this.headerCompVersion;e.newAgStackInstance().then(function(r){return t.afterCompCreated(i,r)})},n.prototype.afterCompCreated=function(e,t){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(t);return}this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())},n.TEMPLATE=`<div class="ag-header-cell" role="columnheader">
  153. <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
  154. <div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
  155. </div>`,Ff([Ce("eResize")],n.prototype,"eResize",void 0),Ff([Ce("eHeaderCompWrapper")],n.prototype,"eHeaderCompWrapper",void 0),Ff([pe],n.prototype,"postConstruct",null),Ff([Li],n.prototype,"destroyHeaderComp",null),n}(N0),dJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),VO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},pJ=function(o){dJ(n,o);function n(e){return o.call(this,n.TEMPLATE,e)||this}return n.prototype.postConstruct=function(){var e=this,t=this.getGui(),i=function(s,a){return a!=null?t.setAttribute(s,a):t.removeAttribute(s)};t.setAttribute("col-id",this.ctrl.getColId());var r={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setResizableDisplayed:function(s){return It(e.eResize,s)},setWidth:function(s){return t.style.width=s},setAriaExpanded:function(s){return i("aria-expanded",s)},setUserCompDetails:function(s){return e.setUserCompDetails(s)},getUserCompInstance:function(){return e.headerGroupComp}};this.ctrl.setComp(r,t,this.eResize)},n.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then(function(i){return t.afterHeaderCompCreated(i)})},n.prototype.afterHeaderCompCreated=function(e){var t=this,i=function(){return t.destroyBean(e)};if(!this.isAlive()){i();return}var r=this.getGui(),s=e.getGui();r.appendChild(s),this.addDestroyFunc(i),this.headerGroupComp=e,this.ctrl.setDragSource(r)},n.TEMPLATE=`<div class="ag-header-group-cell" role="columnheader">
  156. <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
  157. </div>`,VO([Ce("eResize")],n.prototype,"eResize",void 0),VO([pe],n.prototype,"postConstruct",null),n}(N0),hJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),GO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},zi=function(o){return o.COLUMN_GROUP="group",o.COLUMN="column",o.FLOATING_FILTER="filter",o}(zi||{}),fJ=function(o){hJ(n,o);function n(e){var t=o.call(this)||this;return t.headerComps={},t.ctrl=e,t.setTemplate('<div class="'.concat(t.ctrl.getHeaderRowClass(),'" role="row"></div>')),t}return n.prototype.init=function(){var e=this;u0(this.getGui(),this.ctrl.getAriaRowIndex());var t={setHeight:function(i){return e.getGui().style.height=i},setTop:function(i){return e.getGui().style.top=i},setHeaderCtrls:function(i,r){return e.setHeaderCtrls(i,r)},setWidth:function(i){return e.getGui().style.width=i}};this.ctrl.setComp(t)},n.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},n.prototype.setHeaderCtrls=function(e,t){var i=this;if(this.isAlive()){var r=this.headerComps;if(this.headerComps={},e.forEach(function(l){var c=l.getInstanceId(),u=r[c];delete r[c],u==null&&(u=i.createHeaderComp(l),i.getGui().appendChild(u.getGui())),i.headerComps[c]=u}),Ei(r,function(l,c){i.getGui().removeChild(c.getGui()),i.destroyBean(c)}),t){var s=fa(this.headerComps);s.sort(function(l,c){var u=l.getCtrl().getColumnGroupChild().getLeft(),d=c.getCtrl().getColumnGroupChild().getLeft();return u-d});var a=s.map(function(l){return l.getGui()});x0(this.getGui(),a)}}},n.prototype.createHeaderComp=function(e){var t;switch(this.ctrl.getType()){case zi.COLUMN_GROUP:t=new pJ(e);break;case zi.FLOATING_FILTER:t=new TX(e);break;default:t=new uJ(e);break}return this.createBean(t),t.setParentComponent(this),t},GO([pe],n.prototype,"init",null),GO([Li],n.prototype,"destroyHeaderCtrls",null),n}(dt),gJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ya=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},mJ=0,Ng=function(o){gJ(n,o);function n(e,t,i){var r=o.call(this)||this;return r.resizeToggleTimeout=0,r.resizeMultiplier=1,r.resizeFeature=null,r.lastFocusEvent=null,r.dragSource=null,r.columnGroupChild=e,r.parentRowCtrl=i,r.beans=t,r.instanceId=e.getUniqueId()+"-"+mJ++,r}return n.prototype.postConstruct=function(){var e=this;this.addManagedPropertyListeners(["suppressHeaderFocus"],function(){return e.refreshTabIndex()})},n.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),i=t.headerRowIndex,r=t.column;return yR(this.gridOptionsService,e,i,r)},n.prototype.getWrapperHasFocus=function(){var e=this.gridOptionsService.getDocument(),t=e.activeElement;return t===this.eGui},n.prototype.setGui=function(e){this.eGui=e,this.addDomData(),this.addManagedListener(this.beans.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onDisplayedColumnsChanged(),this.refreshTabIndex()},n.prototype.onDisplayedColumnsChanged=function(){!this.comp||!this.column||(this.refreshFirstAndLastStyles(),this.refreshAriaColIndex())},n.prototype.refreshFirstAndLastStyles=function(){var e=this,t=e.comp,i=e.column,r=e.beans;Ag.refreshFirstAndLastStyles(t,i,r.columnModel)},n.prototype.refreshAriaColIndex=function(){var e=this,t=e.beans,i=e.column,r=t.columnModel.getAriaColumnIndex(i);d0(this.eGui,r)},n.prototype.addResizeAndMoveKeyboardListeners=function(){this.resizeFeature&&(this.addManagedListener(this.eGui,"keydown",this.onGuiKeyDown.bind(this)),this.addManagedListener(this.eGui,"keyup",this.onGuiKeyUp.bind(this)))},n.prototype.refreshTabIndex=function(){var e=this.gridOptionsService.get("suppressHeaderFocus");e?this.eGui.removeAttribute("tabindex"):this.eGui.setAttribute("tabindex","-1")},n.prototype.onGuiKeyDown=function(e){var t,i=this.gridOptionsService.getDocument(),r=i.activeElement,s=e.key===q.LEFT||e.key===q.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),!(r!==this.eGui||!e.shiftKey&&!e.altKey)&&((this.isResizing||s)&&(e.preventDefault(),e.stopImmediatePropagation()),!!s)){var a=e.key===q.LEFT!==this.gridOptionsService.get("enableRtl"),l=Kr[a?"Left":"Right"];if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;var c=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(c,e.shiftKey),(t=this.resizeFeature)===null||t===void 0||t.toggleColumnResizing(!0)}else this.moveHeader(l)}},n.prototype.getViewportAdjustedResizeDiff=function(e){var t=this.getResizeDiff(e),i=this.column.getPinned();if(i){var r=this.pinnedWidthService.getPinnedLeftWidth(),s=this.pinnedWidthService.getPinnedRightWidth(),a=cl(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(r+s+t>a)if(a>r+s)t=a-r-s;else return 0}return t},n.prototype.getResizeDiff=function(e){var t=e.key===q.LEFT!==this.gridOptionsService.get("enableRtl"),i=this.column.getPinned(),r=this.gridOptionsService.get("enableRtl");return i&&r!==(i==="right")&&(t=!t),(t?-1:1)*this.resizeMultiplier},n.prototype.onGuiKeyUp=function(){var e=this;this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=setTimeout(function(){var t;(t=e.resizeFeature)===null||t===void 0||t.toggleColumnResizing(!1)},150))},n.prototype.handleKeyDown=function(e){var t=this.getWrapperHasFocus();switch(e.key){case q.PAGE_DOWN:case q.PAGE_UP:case q.PAGE_HOME:case q.PAGE_END:t&&e.preventDefault()}},n.prototype.addDomData=function(){var e=this,t=n.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,t,this),this.addDestroyFunc(function(){return e.gridOptionsService.setDomData(e.eGui,t,null)})},n.prototype.getGui=function(){return this.eGui},n.prototype.focus=function(e){return this.eGui?(this.lastFocusEvent=e||null,this.eGui.focus(),!0):!1},n.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},n.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},n.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.getColumnGroupChild=function(){return this.columnGroupChild},n.prototype.removeDragSource=function(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)},n.prototype.handleContextMenuMouseEvent=function(e,t,i){var r=e??t;this.gridOptionsService.get("preventDefaultOnContextMenu")&&r.preventDefault();var s=i instanceof Jt?i:void 0;this.menuService.isHeaderContextMenuEnabled(s)&&this.menuService.showHeaderContextMenu(s,e,t),this.dispatchColumnMouseEvent(T.EVENT_COLUMN_HEADER_CONTEXT_MENU,i)},n.prototype.dispatchColumnMouseEvent=function(e,t){var i={type:e,column:t};this.eventService.dispatchEvent(i)},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.removeDragSource(),this.comp=null,this.column=null,this.resizeFeature=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null,this.eGui=null},n.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Ya([b("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),Ya([b("focusService")],n.prototype,"focusService",void 0),Ya([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Ya([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Ya([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Ya([b("menuService")],n.prototype,"menuService",void 0),Ya([pe],n.prototype,"postConstruct",null),n}(re),vJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),yJ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},V0=function(o){vJ(n,o);function n(e,t,i,r){var s=o.call(this)||this;return s.columnOrGroup=e,s.eCell=t,s.ariaEl=s.eCell.querySelector("[role=columnheader]")||s.eCell,s.colsSpanning=r,s.beans=i,s}return n.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},n.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.get("enableRtl")&&this.colsSpanning?Nt(this.colsSpanning):this.columnOrGroup},n.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,Jt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},n.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.get("suppressColumnMoveAnimation"),t=ne(this.columnOrGroup.getOldLeft()),i=this.beans.columnAnimationService.isActive()&&t&&!e;i?this.animateInLeft():this.onLeftChanged()},n.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),i=t.getLeft(),r=t.getOldLeft(),s=this.modifyLeftForPrintLayout(t,r),a=this.modifyLeftForPrintLayout(t,i);this.setLeft(s),this.actualLeft=a,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===a&&e.setLeft(a)})},n.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},n.prototype.modifyLeftForPrintLayout=function(e,t){var i=this.beans.gridOptionsService.isDomLayout("print");if(!i||e.getPinned()==="left")return t;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(e.getPinned()==="right"){var s=this.beans.columnModel.getBodyContainerWidth();return r+s+t}return r+t},n.prototype.setLeft=function(e){if(ne(e)&&(this.eCell.style.left="".concat(e,"px")),this.columnOrGroup instanceof Jt)this.columnOrGroup;else{var t=this.columnOrGroup,i=t.getLeafColumns();if(!i.length)return;i.length>1&&eR(this.ariaEl,i.length),i[0]}},yJ([pe],n.prototype,"postConstruct",null),n}(re),CJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),HO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},G0=function(o){CJ(n,o);function n(e,t){var i=o.call(this)||this;return i.columns=e,i.element=t,i}return n.prototype.postConstruct=function(){this.gridOptionsService.get("columnHoverHighlight")&&this.addMouseHoverListeners()},n.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},n.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},n.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},HO([b("columnHoverService")],n.prototype,"columnHoverService",void 0),HO([pe],n.prototype,"postConstruct",null),n}(re),_J=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),SJ=function(o){_J(n,o);function n(e,t,i){var r=o.call(this,e,t,i)||this;return r.iconCreated=!1,r.column=e,r}return n.prototype.setComp=function(e,t,i,r){this.comp=e,this.eButtonShowMainFilter=i,this.eFloatingFilterBody=r,this.setGui(t),this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,Jt.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},n.prototype.resizeHeader=function(){},n.prototype.moveHeader=function(){},n.prototype.setupActive=function(){var e=this.column.getColDef(),t=!!e.filter,i=!!e.floatingFilter;this.active=t&&i},n.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!(!this.active||this.iconCreated)){var e=Gn("filter",this.gridOptionsService,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}},n.prototype.setupFocus=function(){this.createManagedBean(new ul(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},n.prototype.setupAria=function(){var e=this.localeService.getLocaleTextFunc();ma(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))},n.prototype.onTabKeyDown=function(e){var t=this.gridOptionsService.getDocument(),i=t.activeElement,r=i===this.eGui;if(!r){var s=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(s){this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),s.focus();return}var a=this.findNextColumnWithFloatingFilter(e.shiftKey);a&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:a},event:e})&&e.preventDefault()}},n.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,i=this.column;do if(i=e?t.getDisplayedColBefore(i):t.getDisplayedColAfter(i),!i)break;while(!i.getColDef().filter||!i.getColDef().floatingFilter);return i},n.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var t=this.getWrapperHasFocus();switch(e.key){case q.UP:case q.DOWN:t||e.preventDefault();case q.LEFT:case q.RIGHT:if(t)return;e.stopPropagation();case q.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case q.ESCAPE:t||this.eGui.focus()}},n.prototype.onFocusIn=function(e){var t=this.eGui.contains(e.relatedTarget);if(!t){var i=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&il(e.relatedTarget,"ag-floating-filter");if(i&&r&&e.target===this.eGui){var s=this.lastFocusEvent,a=!!(s&&s.key===q.TAB);if(s&&a){var l=s.shiftKey;this.focusService.focusInto(this.eGui,l)}}var c=this.getRowIndex();this.beans.focusService.setFocusedHeader(c,this.column)}},n.prototype.setupHover=function(){var e=this;this.createManagedBean(new G0([this.column],this.eGui));var t=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var i=e.beans.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",i)}};this.addManagedListener(this.eventService,T.EVENT_COLUMN_HOVER_CHANGED,t),t()},n.prototype.setupLeft=function(){var e=new V0(this.column,this.eGui,this.beans);this.createManagedBean(e)},n.prototype.setupFilterButton=function(){this.suppressFilterButton=!this.menuService.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!this.menuService.isLegacyMenuEnabled()},n.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.beans.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()});t&&this.setCompDetails(t)}},n.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setCompDetails(e)},n.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})},n.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=this.beans.filterManager,i=function(r){var s=e.comp.getFloatingFilterComp();s&&s.then(function(a){if(a){var l=t.getCurrentFloatingFilterParentModel(e.column);a.onParentModelChanged(l,r)}})};this.destroySyncListener=this.addManagedListener(this.column,Jt.EVENT_FILTER_CHANGED,i),t.isFilterActive(this.column)&&i(null)}},n.prototype.setupWidth=function(){var e=this,t=function(){var i="".concat(e.column.getActualWidth(),"px");e.comp.setWidth(i)};this.addManagedListener(this.column,Jt.EVENT_WIDTH_CHANGED,t),t()},n.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,Jt.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)),this.updateFilterButton())},n.prototype.updateFilterButton=function(){if(!this.suppressFilterButton&&this.comp){var e=this.beans.filterManager.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}},n.prototype.onColDefChanged=function(){var e=this,t,i,r=this.active;this.setupActive();var s=!r&&this.active;r&&!this.active&&((t=this.destroySyncListener)===null||t===void 0||t.call(this),(i=this.destroyFilterChangedListener)===null||i===void 0||i.call(this));var a=this.active?this.beans.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()}):null,l=this.comp.getFloatingFilterComp();!l||!a?this.updateCompDetails(a,s):l.then(function(c){var u;!c||e.beans.filterManager.areFilterCompsDifferent((u=e.userCompDetails)!==null&&u!==void 0?u:null,a)?e.updateCompDetails(a,s):e.updateFloatingFilterParams(a)})},n.prototype.updateCompDetails=function(e,t){this.isAlive()&&(this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),t&&(this.setupSyncWithFilter(),this.setupFilterChangedListener()))},n.prototype.updateFloatingFilterParams=function(e){var t;if(e){var i=e.params;(t=this.comp.getFloatingFilterComp())===null||t===void 0||t.then(function(r){var s=!1;if(r?.refresh&&typeof r.refresh=="function"){var a=r.refresh(i);a!==null&&(s=!0)}if(!s&&r?.onParamsUpdated&&typeof r.onParamsUpdated=="function"){var a=r.onParamsUpdated(i);a!==null&&Je("Custom floating filter method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}})}},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.destroySyncListener=null,this.destroyFilterChangedListener=null},n}(Ng),wJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),vd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},bJ=function(o){wJ(n,o);function n(e,t,i,r,s){var a=o.call(this)||this;return a.pinned=e,a.column=t,a.eResize=i,a.comp=r,a.ctrl=s,a}return n.prototype.postConstruct=function(){var e=this,t=[],i,r,s=function(){if(It(e.eResize,i),!!i){var c=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(t.push(c),r){var u=e.gridOptionsService.get("skipHeaderOnAutoSize"),d=function(){e.columnModel.autoSizeColumn(e.column,"uiColumnResized",u)};e.eResize.addEventListener("dblclick",d);var p=new xi(e.eResize);p.addEventListener(xi.EVENT_DOUBLE_TAP,d),t.push(function(){e.eResize.removeEventListener("dblclick",d),p.removeEventListener(xi.EVENT_DOUBLE_TAP,d),p.destroy()})}}},a=function(){t.forEach(function(c){return c()}),t.length=0},l=function(){var c=e.column.isResizable(),u=!e.gridOptionsService.get("suppressAutoSize")&&!e.column.getColDef().suppressAutoSize,d=c!==i||u!==r;d&&(i=c,r=u,a(),s())};l(),this.addDestroyFunc(a),this.ctrl.addRefreshFunction(l)},n.prototype.onResizing=function(e,t){var i=this,r=i.column,s=i.lastResizeAmount,a=i.resizeStartWidth,l=this.normaliseResizeAmount(t),c=a+l,u=[{key:r,newWidth:c}];if(this.column.getPinned()){var d=this.pinnedWidthService.getPinnedLeftWidth(),p=this.pinnedWidthService.getPinnedRightWidth(),g=cl(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(d+p+(l-s)>g)return}this.lastResizeAmount=l,this.columnModel.setColumnWidths(u,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)},n.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)},n.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},n.prototype.normaliseResizeAmount=function(e){var t=e,i=this.pinned!=="left",r=this.pinned==="right";return this.gridOptionsService.get("enableRtl")?i&&(t*=-1):r&&(t*=-1),t},vd([b("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),vd([b("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),vd([b("ctrlsService")],n.prototype,"ctrlsService",void 0),vd([b("columnModel")],n.prototype,"columnModel",void 0),vd([pe],n.prototype,"postConstruct",null),n}(re),TJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),BO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},EJ=function(o){TJ(n,o);function n(e){var t=o.call(this)||this;return t.cbSelectAllVisible=!1,t.processingEventFromCheckbox=!1,t.column=e,t}return n.prototype.onSpaceKeyDown=function(e){var t=this.cbSelectAll,i=this.gridOptionsService.getDocument();t.isDisplayed()&&!t.getGui().contains(i.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},n.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},n.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Ig),this.cbSelectAll.addCssClass("ag-header-select-all"),Qn(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,T.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),xg(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},n.prototype.onNewColumnsLoaded=function(){this.showOrHideSelectAll()},n.prototype.onDisplayedColumnsChanged=function(){this.isAlive()&&this.showOrHideSelectAll()},n.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},n.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},n.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},n.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e);var t=this.selectionService.hasNodesToSelect(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setDisabled(!t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},n.prototype.refreshSelectAllLabel=function(){var e=this.localeService.getLocaleTextFunc(),t=this.cbSelectAll.getValue(),i=t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll","".concat(r," (").concat(i,")")):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel("".concat(r," (").concat(i,")")),this.headerCellCtrl.announceAriaDescription()},n.prototype.checkSelectionType=function(e){var t=this.gridOptionsService.get("rowSelection")==="multiple";return t?!0:(console.warn("AG Grid: ".concat(e," is only available if using 'multiple' rowSelection.")),!1)},n.prototype.checkRightRowModelType=function(e){var t=this.rowModel.getType(),i=t==="clientSide"||t==="serverSide";return i?!0:(console.warn("AG Grid: ".concat(e," is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ").concat(t,".")),!1)},n.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),t=this.isFilteredOnly(),i=this.isCurrentPageOnly(),r="uiSelectAll";i?r="uiSelectAllCurrentPage":t&&(r="uiSelectAllFiltered");var s={source:r,justFiltered:t,justCurrentPage:i};e?this.selectionService.selectAllRowNodes(s):this.selectionService.deselectAllRowNodes(s)}},n.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;if(typeof e=="function"){var t=e,i=this.gridOptionsService.addGridCommonParams({column:this.column,colDef:this.column.getColDef()});e=t(i)}return e?this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection"):!1},n.prototype.isFilteredOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionFilteredOnly},n.prototype.isCurrentPageOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly},BO([b("rowModel")],n.prototype,"rowModel",void 0),BO([b("selectionService")],n.prototype,"selectionService",void 0),n}(re),xJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),zJ=function(o){xJ(n,o);function n(e,t,i){var r=o.call(this,e,t,i)||this;return r.refreshFunctions=[],r.userHeaderClasses=new Set,r.ariaDescriptionProperties=new Map,r.column=e,r}return n.prototype.setComp=function(e,t,i,r){var s=this;this.comp=e,this.setGui(t),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(r),this.addColumnHoverListener(),this.setupFilterClass(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.resizeFeature=this.createManagedBean(new bJ(this.getPinned(),this.column,i,e,this)),this.createManagedBean(new G0([this.column],t)),this.createManagedBean(new V0(this.column,t,this.beans)),this.createManagedBean(new ul(t,{shouldStopEventPropagation:function(a){return s.shouldStopEventPropagation(a)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(),this.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],this.refresh.bind(this)),this.addManagedListener(this.column,Jt.EVENT_COL_DEF_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},n.prototype.resizeHeader=function(e,t){var i,r;if(this.column.isResizable()){var s=this.column.getActualWidth(),a=(i=this.column.getMinWidth())!==null&&i!==void 0?i:0,l=(r=this.column.getMaxWidth())!==null&&r!==void 0?r:Number.MAX_SAFE_INTEGER,c=Math.min(Math.max(s+e,a),l);this.beans.columnModel.setColumnWidths([{key:this.column,newWidth:c}],t,!0,"uiColumnResized")}},n.prototype.moveHeader=function(e){var t=this,i=t.eGui,r=t.column,s=t.gridOptionsService,a=t.ctrlsService,l=this.getPinned(),c=i.getBoundingClientRect().left,u=r.getActualWidth(),d=s.get("enableRtl"),p=e===Kr.Left!==d,g=al.normaliseX(p?c-20:c+u+20,l,!0,s,a);al.attemptMoveColumns({allMovingColumns:[r],isFromHeader:!0,hDirection:e,xPosition:g,pinned:l,fromEnter:!1,fakeEvent:!1,gridOptionsService:s,columnModel:this.beans.columnModel}),a.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(r,"auto")},n.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},n.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},n.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},n.prototype.createParams=function(){var e=this,t=this.gridOptionsService.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&this.menuService.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!this.openFilterEnabled||this.menuService.isLegacyMenuEnabled(),showColumnMenu:function(i){e.menuService.showColumnMenu({column:e.column,buttonElement:i,positionBy:"button"})},showColumnMenuAfterMouseClick:function(i){e.menuService.showColumnMenu({column:e.column,mouseEvent:i,positionBy:"mouse"})},showFilter:function(i){e.menuService.showFilterMenu({column:e.column,buttonElement:i,containerType:"columnFilter",positionBy:"button"})},progressSort:function(i){e.beans.sortController.progressSort(e.column,!!i,"uiColumnSorted")},setSort:function(i,r){e.beans.sortController.setSortForColumn(e.column,i,!!r,"uiColumnSorted")},eGridHeader:this.getGui()});return t},n.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new EJ(this.column)),this.selectAllFeature.setComp(this)},n.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},n.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e),e.key===q.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===q.ENTER&&this.onEnterKeyDown(e),e.key===q.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)},n.prototype.onEnterKeyDown=function(e){if(e.ctrlKey||e.metaKey)this.showMenuOnKeyPress(e,!0);else if(this.sortable){var t=e.shiftKey;this.beans.sortController.progressSort(this.column,t,"uiColumnSorted")}},n.prototype.showMenuOnKeyPress=function(e,t){var i=this.comp.getUserCompInstance();!i||!(i instanceof W_)||i.onMenuKeyboardShortcut(t)&&e.preventDefault()},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column),this.announceAriaDescription()}this.focusService.isKeyboardMode()&&this.setActiveHeader(!0)},n.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},n.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){var r=e.column.getColDef().headerTooltip;return r}},i=this.createManagedBean(new Fg(t,this.beans));i.setComp(this.eGui),this.refreshFunctions.push(function(){return i.refreshToolTip()})},n.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var i=e.column.getColDef(),r=Ag.getHeaderClassesFromColDef(i,e.gridOptionsService,e.column,null),s=e.userHeaderClasses;e.userHeaderClasses=new Set(r),r.forEach(function(a){s.has(a)?s.delete(a):e.comp.addOrRemoveCssClass(a,!0)}),s.forEach(function(a){return e.comp.addOrRemoveCssClass(a,!1)})};this.refreshFunctions.push(t),t()},n.prototype.setDragSource=function(e){var t=this;if(this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)){var i=this,r=i.column,s=i.beans,a=i.displayName,l=i.dragAndDropService,c=i.gridOptionsService,u=s.columnModel,d=!this.gridOptionsService.get("suppressDragLeaveHidesColumns"),p=this.dragSource={type:Or.HeaderCell,eElement:e,getDefaultIconName:function(){return d?Jn.ICON_HIDE:Jn.ICON_NOT_ALLOWED},getDragItem:function(){return t.createDragItem(r)},dragItemName:a,onDragStarted:function(){d=!c.get("suppressDragLeaveHidesColumns"),r.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return r.setMoving(!1,"uiColumnMoved")},onGridEnter:function(g){var v;if(d){var y=((v=g?.columns)===null||v===void 0?void 0:v.filter(function(x){return!x.getColDef().lockVisible}))||[];u.setColumnsVisible(y,!0,"uiColumnMoved")}},onGridExit:function(g){var v;if(d){var y=((v=g?.columns)===null||v===void 0?void 0:v.filter(function(x){return!x.getColDef().lockVisible}))||[];u.setColumnsVisible(y,!1,"uiColumnMoved")}}};l.addDragSource(p,!0)}},n.prototype.createDragItem=function(e){var t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t}},n.prototype.updateState=function(){this.menuEnabled=this.menuService.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=this.menuService.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},n.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},n.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},n.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails(),t=this.comp.getUserCompInstance(),i=t!=null&&this.userCompDetails.componentClass==e.componentClass,r=i?this.attemptHeaderCompRefresh(e.params):!1;r?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},n.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();if(!t||!t.refresh)return!1;var i=t.refresh(e);return i},n.prototype.calculateDisplayName=function(){return this.beans.columnModel.getDisplayNameForColumn(this.column,"header",!0)},n.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},n.prototype.workOutDraggable=function(){var e=this.column.getColDef(),t=this.gridOptionsService.get("suppressMovableColumns"),i=!t&&!e.suppressMovable&&!e.lockPosition;return!!i||!!e.enableRowGroup||!!e.enablePivot},n.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},n.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},n.prototype.onColumnValueChanged=function(){this.checkDisplayName()},n.prototype.setupWidth=function(){var e=this,t=function(){var i=e.column.getActualWidth();e.comp.setWidth("".concat(i,"px"))};this.addManagedListener(this.column,Jt.EVENT_WIDTH_CHANGED,t),t()},n.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,Jt.EVENT_MOVING_CHANGED,t),t()},n.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,Jt.EVENT_MENU_VISIBLE_CHANGED,t),t()},n.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.eventService,Jt.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},n.prototype.setupFilterClass=function(){var e=this,t=function(){var i=e.column.isFilterActive();e.comp.addOrRemoveCssClass("ag-header-cell-filtered",i),e.refreshAria()};this.addManagedListener(this.column,Jt.EVENT_FILTER_ACTIVE_CHANGED,t),t()},n.prototype.setupWrapTextClass=function(){var e=this,t=function(){var i=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",i)};t(),this.addRefreshFunction(t)},n.prototype.onDisplayedColumnsChanged=function(){o.prototype.onDisplayedColumnsChanged.call(this),this.isAlive()&&this.onHeaderHeightChanged()},n.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},n.prototype.refreshSpanHeaderHeight=function(){var e=this,t=e.eGui,i=e.column,r=e.comp,s=e.beans;if(!i.isSpanHeaderHeight()){t.style.removeProperty("top"),t.style.removeProperty("height"),r.addOrRemoveCssClass("ag-header-span-height",!1),r.addOrRemoveCssClass("ag-header-span-total",!1);return}var a=this.column.getColumnGroupPaddingInfo(),l=a.numberOfParents,c=a.isSpanningTotal;r.addOrRemoveCssClass("ag-header-span-height",l>0);var u=s.columnModel,d=u.getColumnHeaderRowHeight();if(l===0){r.addOrRemoveCssClass("ag-header-span-total",!1),t.style.setProperty("top","0px"),t.style.setProperty("height","".concat(d,"px"));return}r.addOrRemoveCssClass("ag-header-span-total",c);var p=u.isPivotMode(),g=p?u.getPivotGroupHeaderHeight():u.getGroupHeaderHeight(),v=l*g;t.style.setProperty("top","".concat(-v,"px")),t.style.setProperty("height","".concat(d+v,"px"))},n.prototype.setupAutoHeight=function(e){var t=this,i=this.beans,r=i.columnModel,s=i.resizeObserverService,a=function(g){if(t.isAlive()){var v=va(t.getGui()),y=v.paddingTop,x=v.paddingBottom,E=v.borderBottomWidth,z=v.borderTopWidth,M=y+x+E+z,G=e.offsetHeight,U=G+M;if(g<5){var se=t.beans.gridOptionsService.getDocument(),ve=!se||!se.contains(e),he=U==0;if(ve||he){window.setTimeout(function(){return a(g+1)},0);return}}r.setColumnHeaderHeight(t.column,U)}},l=!1,c,u=function(){var g=t.column.isAutoHeaderHeight();g&&!l&&d(),!g&&l&&p()},d=function(){l=!0,a(0),t.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),c=s.observeResize(e,function(){return a(0)})},p=function(){l=!1,c&&c(),t.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),c=void 0};u(),this.addDestroyFunc(function(){return p()}),this.addManagedListener(this.column,Jt.EVENT_WIDTH_CHANGED,function(){return l&&a(0)}),this.addManagedListener(this.eventService,Jt.EVENT_SORT_CHANGED,function(){l&&window.setTimeout(function(){return a(0)})}),this.addRefreshFunction(u)},n.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),t=this.beans.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(jD(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},n.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)},n.prototype.refreshAriaFilterButton=function(){if(this.openFilterEnabled&&!this.menuService.isLegacyMenuEnabled()){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)},n.prototype.refreshAriaFiltered=function(){var e=this.localeService.getLocaleTextFunc(),t=this.column.isFilterActive();t?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)},n.prototype.setAriaDescriptionProperty=function(e,t){t!=null?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},n.prototype.announceAriaDescription=function(){var e=this,t=this.beans.gridOptionsService.getDocument();if(this.eGui.contains(t.activeElement)){var i=Array.from(this.ariaDescriptionProperties.keys()).sort(function(r,s){return r==="filter"?-1:s.charCodeAt(0)-r.charCodeAt(0)}).map(function(r){return e.ariaDescriptionProperties.get(r)}).join(". ");this.beans.ariaAnnouncementService.announceValue(i)}},n.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()},n.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var i=e.beans.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",i)}};this.addManagedListener(this.eventService,T.EVENT_COLUMN_HOVER_CHANGED,t),t()},n.prototype.getColId=function(){return this.column.getColId()},n.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(s){return e.handleMouseOverChange(s.type==="mouseenter")},i=function(){return e.dispatchColumnMouseEvent(T.EVENT_COLUMN_HEADER_CLICKED,e.column)},r=function(s){return e.handleContextMenuMouseEvent(s,void 0,e.column)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t),this.addManagedListener(this.getGui(),"click",i),this.addManagedListener(this.getGui(),"contextmenu",r)},n.prototype.handleMouseOverChange=function(e){this.setActiveHeader(e);var t=e?T.EVENT_COLUMN_HEADER_MOUSE_OVER:T.EVENT_COLUMN_HEADER_MOUSE_LEAVE,i={type:t,column:this.column};this.eventService.dispatchEvent(i)},n.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},n.prototype.getAnchorElementForMenu=function(e){var t=this.comp.getUserCompInstance();return t instanceof W_?t.getAnchorElementForMenu(e):this.getGui()},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.refreshFunctions=null,this.selectAllFeature=null,this.dragSourceElement=null,this.userCompDetails=null,this.userHeaderClasses=null,this.ariaDescriptionProperties=null},n}(Ng),OJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Af=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},DJ=function(o){OJ(n,o);function n(e,t,i,r){var s=o.call(this)||this;return s.eResize=t,s.comp=e,s.pinned=i,s.columnGroup=r,s}return n.prototype.postConstruct=function(){var e=this;if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsService.get("suppressAutoSize")){var i=this.gridOptionsService.get("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",function(){var r=[],s=e.columnGroup.getDisplayedLeafColumns();s.forEach(function(a){a.getColDef().suppressAutoSize||r.push(a.getColId())}),r.length>0&&e.columnModel.autoSizeColumns({columns:r,skipHeader:i,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit("uiColumnResized")})}},n.prototype.onResizeStart=function(e){var t=this.getInitialValues(e);this.storeLocalValues(t),this.toggleColumnResizing(!0)},n.prototype.onResizing=function(e,t,i){i===void 0&&(i="uiColumnResized");var r=this.normaliseDragChange(t),s=this.resizeStartWidth+r;this.resizeColumnsFromLocalValues(s,i,e)},n.prototype.getInitialValues=function(e){var t=this.getColumnsToResize(),i=this.getInitialSizeOfColumns(t),r=this.getSizeRatiosOfColumns(t,i),s={columnsToResize:t,resizeStartWidth:i,resizeRatios:r},a=null;if(e&&(a=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),a){var l=a.getDisplayedLeafColumns(),c=s.groupAfterColumns=l.filter(function(d){return d.isResizable()}),u=s.groupAfterStartWidth=this.getInitialSizeOfColumns(c);s.groupAfterRatios=this.getSizeRatiosOfColumns(c,u)}else s.groupAfterColumns=void 0,s.groupAfterStartWidth=void 0,s.groupAfterRatios=void 0;return s},n.prototype.storeLocalValues=function(e){var t=e.columnsToResize,i=e.resizeStartWidth,r=e.resizeRatios,s=e.groupAfterColumns,a=e.groupAfterStartWidth,l=e.groupAfterRatios;this.resizeCols=t,this.resizeStartWidth=i,this.resizeRatios=r,this.resizeTakeFromCols=s,this.resizeTakeFromStartWidth=a,this.resizeTakeFromRatios=l},n.prototype.clearLocalValues=function(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0},n.prototype.resizeLeafColumnsToFit=function(e){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),i=this.getInitialValues();t>i.resizeStartWidth&&this.resizeColumns(i,t,e,!0)},n.prototype.resizeColumnsFromLocalValues=function(e,t,i){var r,s,a;if(i===void 0&&(i=!0),!(!this.resizeCols||!this.resizeRatios)){var l={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:(r=this.resizeTakeFromCols)!==null&&r!==void 0?r:void 0,groupAfterStartWidth:(s=this.resizeTakeFromStartWidth)!==null&&s!==void 0?s:void 0,groupAfterRatios:(a=this.resizeTakeFromRatios)!==null&&a!==void 0?a:void 0};this.resizeColumns(l,e,t,i)}},n.prototype.resizeColumns=function(e,t,i,r){r===void 0&&(r=!0);var s=e.columnsToResize,a=e.resizeStartWidth,l=e.resizeRatios,c=e.groupAfterColumns,u=e.groupAfterStartWidth,d=e.groupAfterRatios,p=[];if(p.push({columns:s,ratios:l,width:t}),c){var g=t-a;p.push({columns:c,ratios:d,width:u-g})}this.columnModel.resizeColumnSets({resizeSets:p,finished:r,source:i}),r&&this.toggleColumnResizing(!1)},n.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},n.prototype.getColumnsToResize=function(){var e=this.columnGroup.getDisplayedLeafColumns();return e.filter(function(t){return t.isResizable()})},n.prototype.getInitialSizeOfColumns=function(e){return e.reduce(function(t,i){return t+i.getActualWidth()},0)},n.prototype.getSizeRatiosOfColumns=function(e,t){return e.map(function(i){return i.getActualWidth()/t})},n.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsService.get("enableRtl")?this.pinned!=="left"&&(t*=-1):this.pinned==="right"&&(t*=-1),t},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.clearLocalValues()},Af([b("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Af([b("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),Af([b("columnModel")],n.prototype,"columnModel",void 0),Af([pe],n.prototype,"postConstruct",null),n}(re),RJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),IJ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},PJ=function(o){RJ(n,o);function n(e,t){var i=o.call(this)||this;return i.removeChildListenersFuncs=[],i.columnGroup=t,i.comp=e,i}return n.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,qn.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},n.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(i){i.addEventListener("widthChanged",t),i.addEventListener("visibleChanged",t),e.removeChildListenersFuncs.push(function(){i.removeEventListener("widthChanged",t),i.removeEventListener("visibleChanged",t)})})},n.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},n.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},n.prototype.onWidthChanged=function(){var e=this.columnGroup.getActualWidth();this.comp.setWidth("".concat(e,"px")),this.comp.addOrRemoveCssClass("ag-hidden",e===0)},IJ([pe],n.prototype,"postConstruct",null),n}(re),MJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Cg=function(){return Cg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Cg.apply(this,arguments)},FJ=function(o){MJ(n,o);function n(e,t,i){var r=o.call(this,e,t,i)||this;return r.onSuppressColMoveChange=function(){if(!r.isAlive()||r.isSuppressMoving())r.removeDragSource();else if(!r.dragSource){var s=r.getGui();r.setDragSource(s)}},r.column=e,r}return n.prototype.setComp=function(e,t,i){this.comp=e,this.setGui(t),this.displayName=this.beans.columnModel.getDisplayNameForColumnGroup(this.column,"header"),this.addClasses(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp(),this.addHeaderMouseListeners();var r=this.getParentRowCtrl().getPinned(),s=this.column.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new G0(s,t)),this.createManagedBean(new V0(this.column,t,this.beans)),this.createManagedBean(new PJ(e,this.column)),this.resizeFeature=this.createManagedBean(new DJ(e,i,r,this.column)),this.createManagedBean(new ul(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addManagedPropertyListener(T.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners()},n.prototype.resizeHeader=function(e,t){if(this.resizeFeature){var i=this.resizeFeature.getInitialValues(t);this.resizeFeature.resizeColumns(i,i.resizeStartWidth+e,"uiColumnResized",!0)}},n.prototype.moveHeader=function(e){var t=this,i=t.beans,r=t.eGui,s=t.column,a=t.gridOptionsService,l=t.ctrlsService,c=a.get("enableRtl"),u=e===Kr.Left,d=this.getPinned(),p=r.getBoundingClientRect(),g=p.left,v=p.width,y=al.normaliseX(u!==c?g-20:g+v+20,d,!0,a,l),x=s.getGroupId(),E=this.focusService.getFocusedHeader();al.attemptMoveColumns({allMovingColumns:this.column.getLeafColumns(),isFromHeader:!0,hDirection:e,xPosition:y,pinned:d,fromEnter:!1,fakeEvent:!1,gridOptionsService:a,columnModel:i.columnModel});var z=s.getDisplayedLeafColumns(),M=u?z[0]:Nt(z);this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(M,"auto"),!this.isAlive()&&E&&this.restoreFocus(x,s,E)},n.prototype.restoreFocus=function(e,t,i){var r=t.getLeafColumns();if(r.length){var s=r[0].getParent();if(s){var a=this.findGroupWidthId(s,e);a&&this.focusService.focusHeaderPosition({headerPosition:Cg(Cg({},i),{column:a})})}}},n.prototype.findGroupWidthId=function(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}return null},n.prototype.resizeLeafColumnsToFit=function(e){this.resizeFeature&&this.resizeFeature.resizeLeafColumnsToFit(e)},n.prototype.setupUserComp=function(){var e=this,t=this.gridOptionsService.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:function(r){e.beans.columnModel.setColumnGroupOpened(e.column.getProvidedColumnGroup(),r,"gridInitializing")}}),i=this.userComponentFactory.getHeaderGroupCompDetails(t);this.comp.setUserCompDetails(i)},n.prototype.addHeaderMouseListeners=function(){var e=this,t=function(s){return e.handleMouseOverChange(s.type==="mouseenter")},i=function(){return e.dispatchColumnMouseEvent(T.EVENT_COLUMN_HEADER_CLICKED,e.column.getProvidedColumnGroup())},r=function(s){return e.handleContextMenuMouseEvent(s,void 0,e.column.getProvidedColumnGroup())};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t),this.addManagedListener(this.getGui(),"click",i),this.addManagedListener(this.getGui(),"contextmenu",r)},n.prototype.handleMouseOverChange=function(e){var t=e?T.EVENT_COLUMN_HEADER_MOUSE_OVER:T.EVENT_COLUMN_HEADER_MOUSE_LEAVE,i={type:t,column:this.column.getProvidedColumnGroup()};this.eventService.dispatchEvent(i)},n.prototype.setupTooltip=function(){var e=this,t=this.column.getColGroupDef(),i={getColumn:function(){return e.column},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(i.getColDef=function(){return t});var r=this.createManagedBean(new Fg(i,this.beans));r.setComp(this.eGui)},n.prototype.setupExpandable=function(){var e=this.column.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,Nn.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,Nn.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},n.prototype.refreshExpanded=function(){var e=this.column;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},n.prototype.getColId=function(){return this.column.getUniqueId()},n.prototype.addClasses=function(){var e=this,t=this.column.getColGroupDef(),i=Ag.getHeaderClassesFromColDef(t,this.gridOptionsService,null,this.column);if(this.column.isPadding()){i.push("ag-header-group-cell-no-group");var r=this.column.getLeafColumns();r.every(function(s){return s.isSpanHeaderHeight()})&&i.push("ag-header-span-height")}else i.push("ag-header-group-cell-with-group");i.forEach(function(s){return e.comp.addOrRemoveCssClass(s,!0)})},n.prototype.setupMovingCss=function(){var e=this,t=this.column.getProvidedColumnGroup(),i=t.getLeafColumns(),r=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};i.forEach(function(s){e.addManagedListener(s,Jt.EVENT_MOVING_CHANGED,r)}),r()},n.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.column)}},n.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var t=this.getWrapperHasFocus();if(!(!this.expandable||!t)&&e.key===q.ENTER){var i=this.column,r=!i.isExpanded();this.beans.columnModel.setColumnGroupOpened(i.getProvidedColumnGroup(),r,"uiColumnExpanded")}},n.prototype.setDragSource=function(e){var t=this;if(!(!this.isAlive()||this.isSuppressMoving())&&(this.removeDragSource(),!!e)){var i=this,r=i.beans,s=i.column,a=i.displayName,l=i.gridOptionsService,c=i.dragAndDropService,u=r.columnModel,d=s.getProvidedColumnGroup().getLeafColumns(),p=!l.get("suppressDragLeaveHidesColumns"),g=this.dragSource={type:Or.HeaderCell,eElement:e,getDefaultIconName:function(){return p?Jn.ICON_HIDE:Jn.ICON_NOT_ALLOWED},dragItemName:a,getDragItem:function(){return t.getDragItemForGroup(s)},onDragStarted:function(){p=!l.get("suppressDragLeaveHidesColumns"),d.forEach(function(v){return v.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return d.forEach(function(v){return v.setMoving(!1,"uiColumnDragged")})},onGridEnter:function(v){var y;if(p){var x=((y=v?.columns)===null||y===void 0?void 0:y.filter(function(E){return!E.getColDef().lockVisible}))||[];u.setColumnsVisible(x,!0,"uiColumnMoved")}},onGridExit:function(v){var y;if(p){var x=((y=v?.columns)===null||y===void 0?void 0:y.filter(function(E){return!E.getColDef().lockVisible}))||[];u.setColumnsVisible(x,!1,"uiColumnMoved")}}};c.addDragSource(g,!0)}},n.prototype.getDragItemForGroup=function(e){var t=e.getProvidedColumnGroup().getLeafColumns(),i={};t.forEach(function(s){return i[s.getId()]=s.isVisible()});var r=[];return this.beans.columnModel.getAllDisplayedColumns().forEach(function(s){t.indexOf(s)>=0&&(r.push(s),ir(t,s))}),t.forEach(function(s){return r.push(s)}),{columns:r,visibleState:i}},n.prototype.isSuppressMoving=function(){var e=!1;this.column.getLeafColumns().forEach(function(i){(i.getColDef().suppressMovable||i.getColDef().lockPosition)&&(e=!0)});var t=e||this.gridOptionsService.get("suppressMovableColumns");return t},n}(Ng),AJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),$O=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},jO=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},NJ=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},LJ=0,i_=function(o){AJ(n,o);function n(e,t,i){var r=o.call(this)||this;r.instanceId=LJ++,r.rowIndex=e,r.pinned=t,r.type=i;var s=i==zi.COLUMN_GROUP?"ag-header-row-column-group":i==zi.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return r.headerRowClass="ag-header-row ".concat(s),r}return n.prototype.postConstruct=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.isEnsureDomOrder=this.gridOptionsService.get("ensureDomOrder")},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e,t){t===void 0&&(t=!0),this.comp=e,t&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()},n.prototype.getHeaderRowClass=function(){return this.headerRowClass},n.prototype.getAriaRowIndex=function(){return this.rowIndex+1},n.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_VIRTUAL_COLUMNS_CHANGED,function(t){return e.onVirtualColumnsChanged(t.afterScroll)}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",function(t){return e.isEnsureDomOrder=t.currentValue}),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},n.prototype.getHeaderCellCtrl=function(e){if(this.headerCellCtrls)return tl(this.headerCellCtrls).find(function(t){return t.getColumnGroupChild()===e})},n.prototype.onDisplayedColumnsChanged=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},n.prototype.getType=function(){return this.type},n.prototype.onColumnResized=function(){this.setWidth()},n.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth("".concat(e,"px"))},n.prototype.getWidthForRow=function(){var e=this.beans.columnModel;if(this.isPrintLayout){var t=this.pinned!=null;return t?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null)}return e.getContainerWidth(this.pinned)},n.prototype.onRowHeightChanged=function(){var e=this.getTopAndHeight(),t=e.topOffset,i=e.rowHeight;this.comp.setTop(t+"px"),this.comp.setHeight(i+"px")},n.prototype.getTopAndHeight=function(){var e=this.beans,t=e.columnModel,i=e.filterManager,r=t.getHeaderRowCount(),s=[],a=0;i.hasFloatingFilters()&&(r++,a=1);for(var l=t.getColumnGroupHeaderRowHeight(),c=t.getColumnHeaderRowHeight(),u=1+a,d=r-u,p=0;p<d;p++)s.push(l);s.push(c);for(var p=0;p<a;p++)s.push(t.getFloatingFiltersHeight());for(var g=0,p=0;p<this.rowIndex;p++)g+=s[p];var v=s[this.rowIndex];return{topOffset:g,rowHeight:v}},n.prototype.getPinned=function(){return this.pinned},n.prototype.getRowIndex=function(){return this.rowIndex},n.prototype.onVirtualColumnsChanged=function(e){e===void 0&&(e=!1);var t=this.getHeaderCtrls(),i=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,i,e)},n.prototype.getHeaderCtrls=function(){var e,t,i,r,s=this,a=this.headerCellCtrls;this.headerCellCtrls=new Map;var l=this.getColumnsInViewport();try{for(var c=jO(l),u=c.next();!u.done;u=c.next()){var d=u.value;this.recycleAndCreateHeaderCtrls(d,a)}}catch(G){e={error:G}}finally{try{u&&!u.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}var p=function(G){var U=s.beans,se=U.focusService,ve=U.columnModel,he=se.isHeaderWrapperFocused(G);if(!he)return!1;var be=ve.isDisplayed(G.getColumnGroupChild());return be};if(a)try{for(var g=jO(a),v=g.next();!v.done;v=g.next()){var y=NJ(v.value,2),x=y[0],E=y[1],z=p(E);z?this.headerCellCtrls.set(x,E):this.destroyBean(E)}}catch(G){i={error:G}}finally{try{v&&!v.done&&(r=g.return)&&r.call(g)}finally{if(i)throw i.error}}var M=Array.from(this.headerCellCtrls.values());return M},n.prototype.recycleAndCreateHeaderCtrls=function(e,t){if(this.headerCellCtrls&&!e.isEmptyGroup()){var i=e.getUniqueId(),r;t&&(r=t.get(i),t.delete(i));var s=r&&r.getColumnGroupChild()!=e;if(s&&(this.destroyBean(r),r=void 0),r==null)switch(this.type){case zi.FLOATING_FILTER:r=this.createBean(new SJ(e,this.beans,this));break;case zi.COLUMN_GROUP:r=this.createBean(new FJ(e,this.beans,this));break;default:r=this.createBean(new zJ(e,this.beans,this));break}this.headerCellCtrls.set(i,r)}},n.prototype.getColumnsInViewport=function(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},n.prototype.getColumnsInViewportPrintLayout=function(){if(this.pinned!=null)return[];var e=[],t=this.getActualDepth(),i=this.beans.columnModel;return["left",null,"right"].forEach(function(r){var s=i.getVirtualHeaderGroupRow(r,t);e=e.concat(s)}),e},n.prototype.getActualDepth=function(){return this.type==zi.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},n.prototype.getColumnsInViewportNormalLayout=function(){return this.beans.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},n.prototype.focusHeader=function(e,t){if(!this.headerCellCtrls)return!1;var i=Array.from(this.headerCellCtrls.values()),r=i.find(function(s){return s.getColumnGroupChild()==e});return r?r.focus(t):!1},n.prototype.destroy=function(){var e=this;this.headerCellCtrls&&this.headerCellCtrls.forEach(function(t){e.destroyBean(t)}),this.headerCellCtrls=void 0,o.prototype.destroy.call(this)},$O([b("beans")],n.prototype,"beans",void 0),$O([pe],n.prototype,"postConstruct",null),n}(re),kJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Rc=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},VJ=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},GJ=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},HJ=function(o){kJ(n,o);function n(e){var t=o.call(this)||this;return t.hidden=!1,t.includeFloatingFilter=!1,t.groupsRowCtrls=[],t.pinned=e,t}return n.prototype.setComp=function(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,T.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},n.prototype.setupDragAndDrop=function(e){var t=new lJ(this.pinned,e);this.createManagedBean(t)},n.prototype.refresh=function(e){var t=this;e===void 0&&(e=!1);var i=new Wc,r=this.focusService.getFocusHeaderToUseAfterRefresh(),s=function(){var u=t.columnModel.getHeaderRowCount()-1;t.groupsRowCtrls=t.destroyBeans(t.groupsRowCtrls);for(var d=0;d<u;d++){var p=t.createBean(new i_(i.next(),t.pinned,zi.COLUMN_GROUP));t.groupsRowCtrls.push(p)}},a=function(){var u=i.next(),d=!t.hidden&&(t.columnsRowCtrl==null||!e||t.columnsRowCtrl.getRowIndex()!==u),p=d||t.hidden;p&&(t.columnsRowCtrl=t.destroyBean(t.columnsRowCtrl)),d&&(t.columnsRowCtrl=t.createBean(new i_(u,t.pinned,zi.COLUMN)))},l=function(){t.includeFloatingFilter=t.filterManager.hasFloatingFilters()&&!t.hidden;var u=function(){t.filtersRowCtrl=t.destroyBean(t.filtersRowCtrl)};if(!t.includeFloatingFilter){u();return}var d=i.next();if(t.filtersRowCtrl){var p=t.filtersRowCtrl.getRowIndex()!==d;(!e||p)&&u()}t.filtersRowCtrl||(t.filtersRowCtrl=t.createBean(new i_(d,t.pinned,zi.FLOATING_FILTER)))};s(),a(),l();var c=this.getAllCtrls();this.comp.setCtrls(c),this.restoreFocusOnHeader(r)},n.prototype.restoreFocusOnHeader=function(e){e==null||e.column.getPinned()!=this.pinned||this.focusService.focusHeaderPosition({headerPosition:e})},n.prototype.getAllCtrls=function(){var e=GJ([],VJ(this.groupsRowCtrls),!1);return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},n.prototype.onGridColumnsChanged=function(){this.refresh(!0)},n.prototype.onDisplayedColumnsChanged=function(){var e=this.filterManager.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==e&&this.refresh(!0)},n.prototype.setupCenterWidth=function(){var e=this;this.pinned==null&&this.createManagedBean(new k0(function(t){return e.comp.setCenterWidth("".concat(t,"px"))},!0))},n.prototype.setHorizontalScroll=function(e){this.comp.setViewportScrollLeft(e)},n.prototype.setupPinnedWidth=function(){var e=this;if(this.pinned!=null){var t=this.pinned==="left",i=this.pinned==="right";this.hidden=!0;var r=function(){var s=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(s!=null){var a=s==0,l=e.hidden!==a,c=e.gridOptionsService.get("enableRtl"),u=e.gridOptionsService.getScrollbarWidth(),d=e.scrollVisibleService.isVerticalScrollShowing()&&(c&&t||!c&&i),p=d?s+u:s;e.comp.setPinnedContainerWidth("".concat(p,"px")),e.comp.setDisplayed(!a),l&&(e.hidden=a,e.refresh())}};this.addManagedListener(this.eventService,T.EVENT_LEFT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,T.EVENT_RIGHT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,r),this.addManagedListener(this.eventService,T.EVENT_SCROLLBAR_WIDTH_CHANGED,r)}},n.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof Jt)return this.columnsRowCtrl?this.columnsRowCtrl.getHeaderCellCtrl(e):void 0;if(this.groupsRowCtrls.length!==0)for(var t=0;t<this.groupsRowCtrls.length;t++){var i=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(i)return i}},n.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},n.prototype.getRowType=function(e){var t=this.getAllCtrls(),i=t[e];return i?i.getType():void 0},n.prototype.focusHeader=function(e,t,i){var r=this.getAllCtrls(),s=r[e];return s?s.focusHeader(t,i):!1},n.prototype.getViewport=function(){return this.eViewport},n.prototype.getRowCount=function(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)},n.prototype.destroy=function(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),o.prototype.destroy.call(this)},Rc([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Rc([b("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Rc([b("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),Rc([b("columnModel")],n.prototype,"columnModel",void 0),Rc([b("focusService")],n.prototype,"focusService",void 0),Rc([b("filterManager")],n.prototype,"filterManager",void 0),n}(re),BJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),r_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},o_=function(o){BJ(n,o);function n(e){var t=o.call(this)||this;return t.headerRowComps={},t.rowCompsList=[],t.pinned=e,t}return n.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={setDisplayed:function(r){return e.setDisplayed(r)},setCtrls:function(r){return e.setCtrls(r)},setCenterWidth:function(r){return e.eCenterContainer.style.width=r},setViewportScrollLeft:function(r){return e.getGui().scrollLeft=r},setPinnedContainerWidth:function(r){var s=e.getGui();s.style.width=r,s.style.maxWidth=r,s.style.minWidth=r}},i=this.createManagedBean(new HJ(this.pinned));i.setComp(t,this.getGui())},n.prototype.selectAndSetTemplate=function(){var e=this.pinned=="left",t=this.pinned=="right",i=e?n.PINNED_LEFT_TEMPLATE:t?n.PINNED_RIGHT_TEMPLATE:n.CENTER_TEMPLATE;this.setTemplate(i),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},n.prototype.destroyRowComps=function(){this.setCtrls([])},n.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},n.prototype.setCtrls=function(e){var t=this,i=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];var r,s=function(a){var l=a.getGui(),c=l.parentElement!=t.eRowContainer;c&&t.eRowContainer.appendChild(l),r&&E0(t.eRowContainer,l,r),r=l};e.forEach(function(a){var l=a.getInstanceId(),c=i[l];delete i[l];var u=c||t.createBean(new fJ(a));t.headerRowComps[l]=u,t.rowCompsList.push(u),s(u)}),fa(i).forEach(function(a){return t.destroyRowComp(a)})},n.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="rowgroup"></div>',n.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="rowgroup"></div>',n.CENTER_TEMPLATE=`<div class="ag-header-viewport" role="presentation">
  158. <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>
  159. </div>`,r_([Ce("eCenterContainer")],n.prototype,"eCenterContainer",void 0),r_([pe],n.prototype,"init",null),r_([Li],n.prototype,"destroyRowComps",null),n}(dt),$J=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),yd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ws=function(o){return o[o.UP=0]="UP",o[o.DOWN=1]="DOWN",o[o.LEFT=2]="LEFT",o[o.RIGHT=3]="RIGHT",o}(ws||{}),jJ=function(o){$J(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.currentHeaderRowWithoutSpan=-1,e}return n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.gridBodyCon=i.gridBodyCtrl});var t=this.gridOptionsService.getDocument();this.addManagedListener(t,"mousedown",function(){return e.setCurrentHeaderRowWithoutSpan(-1)})},n.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},n.prototype.navigateVertically=function(e,t,i){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;var r=t.headerRowIndex,s=t.column,a=this.getHeaderRowCount(),l=e===ws.UP,c=l?this.headerPositionUtils.getColumnVisibleParent(s,r):this.headerPositionUtils.getColumnVisibleChild(s,r),u=c.headerRowIndex,d=c.column,p=c.headerRowIndexWithoutSpan,g=!1;return u<0&&(u=0,d=s,g=!0),u>=a?(u=-1,this.setCurrentHeaderRowWithoutSpan(-1)):p!==void 0&&(this.currentHeaderRowWithoutSpan=p),!g&&!d?!1:this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u,column:d},allowUserOverride:!0,event:i})},n.prototype.setCurrentHeaderRowWithoutSpan=function(e){this.currentHeaderRowWithoutSpan=e},n.prototype.navigateHorizontally=function(e,t,i){t===void 0&&(t=!1);var r=this.focusService.getFocusedHeader(),s=e===ws.LEFT,a=this.gridOptionsService.get("enableRtl"),l,c;return this.currentHeaderRowWithoutSpan!==-1?r.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=r.headerRowIndex,s!==a?(c="Before",l=this.headerPositionUtils.findHeader(r,c)):(c="After",l=this.headerPositionUtils.findHeader(r,c)),l||!t?this.focusService.focusHeaderPosition({headerPosition:l,direction:c,fromTab:t,allowUserOverride:!0,event:i}):this.focusNextHeaderRow(r,c,i)},n.prototype.focusNextHeaderRow=function(e,t,i){var r=e.headerRowIndex,s=null,a;if(t==="Before"?r>0&&(a=r-1,this.currentHeaderRowWithoutSpan-=1,s=this.headerPositionUtils.findColAtEdgeForHeaderRow(a,"end")):(a=r+1,this.currentHeaderRowWithoutSpan<this.getHeaderRowCount()?this.currentHeaderRowWithoutSpan+=1:this.setCurrentHeaderRowWithoutSpan(-1),s=this.headerPositionUtils.findColAtEdgeForHeaderRow(a,"start")),!s)return!1;var l=this.headerPositionUtils.getHeaderIndexToFocus(s.column,s?.headerRowIndex),c=l.column,u=l.headerRowIndex;return this.focusService.focusHeaderPosition({headerPosition:{column:c,headerRowIndex:u},direction:t,fromTab:!0,allowUserOverride:!0,event:i})},n.prototype.scrollToColumn=function(e,t){if(t===void 0&&(t="After"),!e.getPinned()){var i;if(e instanceof qn){var r=e.getDisplayedLeafColumns();i=t==="Before"?Nt(r):r[0]}else i=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(i)}},yd([b("focusService")],n.prototype,"focusService",void 0),yd([b("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),yd([b("ctrlsService")],n.prototype,"ctrlsService",void 0),yd([pe],n.prototype,"postConstruct",null),n=yd([Oe("headerNavigationService")],n),n}(re),WJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ic=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},UJ=function(o){WJ(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.setComp=function(e,t,i){this.comp=e,this.eGui=t,this.createManagedBean(new ul(i,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight();var r=this.onHeaderContextMenu.bind(this);this.addManagedListener(this.eGui,"contextmenu",r),this.mockContextMenuForIPad(r),this.ctrlsService.registerGridHeaderCtrl(this)},n.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("pivotHeaderHeight",e),this.addManagedPropertyListener("groupHeaderHeight",e),this.addManagedPropertyListener("pivotGroupHeaderHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,e)},n.prototype.getHeaderHeight=function(){return this.headerHeight},n.prototype.setHeaderHeight=function(){var e=this.columnModel,t=0,i=e.getHeaderRowCount(),r,s=this.filterManager.hasFloatingFilters();s&&(i++,t=1);var a=this.columnModel.getColumnGroupHeaderRowHeight(),l=this.columnModel.getColumnHeaderRowHeight(),c=1+t,u=i-c;if(r=t*e.getFloatingFiltersHeight(),r+=u*a,r+=l,this.headerHeight!==r){this.headerHeight=r;var d="".concat(r+1,"px");this.comp.setHeightAndMinHeight(d),this.eventService.dispatchEvent({type:T.EVENT_HEADER_HEIGHT_CHANGED})}},n.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},n.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns(),t=e.some(function(i){return i.isSpanHeaderHeight()});this.comp.addOrRemoveCssClass("ag-header-allow-overflow",t)},n.prototype.onTabKeyDown=function(e){var t=this.gridOptionsService.get("enableRtl"),i=e.shiftKey!==t?ws.LEFT:ws.RIGHT;(this.headerNavigationService.navigateHorizontally(i,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},n.prototype.handleKeyDown=function(e){var t=null;switch(e.key){case q.LEFT:t=ws.LEFT;case q.RIGHT:ne(t)||(t=ws.RIGHT),this.headerNavigationService.navigateHorizontally(t,!1,e);break;case q.UP:t=ws.UP;case q.DOWN:ne(t)||(t=ws.DOWN),this.headerNavigationService.navigateVertically(t,null,e)&&e.preventDefault();break;default:return}},n.prototype.onFocusOut=function(e){var t=this.gridOptionsService.getDocument(),i=e.relatedTarget;!i&&this.eGui.contains(t.activeElement)||this.eGui.contains(i)||this.focusService.clearFocusedHeader()},n.prototype.onHeaderContextMenu=function(e,t,i){if(!(!e&&!i||!this.menuService.isHeaderContextMenuEnabled())){var r=(e??t).target;(r===this.eGui||r===this.ctrlsService.getHeaderRowContainerCtrl().getViewport())&&this.menuService.showHeaderContextMenu(void 0,e,i)}},n.prototype.mockContextMenuForIPad=function(e){if(Es()){var t=new xi(this.eGui),i=function(r){e(void 0,r.touchStart,r.touchEvent)};this.addManagedListener(t,xi.EVENT_LONG_TAP,i),this.addDestroyFunc(function(){return t.destroy()})}},Ic([b("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Ic([b("focusService")],n.prototype,"focusService",void 0),Ic([b("columnModel")],n.prototype,"columnModel",void 0),Ic([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Ic([b("filterManager")],n.prototype,"filterManager",void 0),Ic([b("menuService")],n.prototype,"menuService",void 0),n}(re),KJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),qJ=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},YJ=function(o){KJ(n,o);function n(){return o.call(this,n.TEMPLATE)||this}return n.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setHeightAndMinHeight:function(s){e.getGui().style.height=s,e.getGui().style.minHeight=s}},i=this.createManagedBean(new UJ);i.setComp(t,this.getGui(),this.getFocusableElement());var r=function(s){e.createManagedBean(s),e.appendChild(s)};r(new o_("left")),r(new o_(null)),r(new o_("right"))},n.TEMPLATE='<div class="ag-header" role="presentation"/>',qJ([pe],n.prototype,"postConstruct",null),n}(dt),QJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),s_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},XJ=function(o){QJ(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.addResizeBar=function(e){var t=this,i={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0};this.dragService.addDragSource(i);var r=function(){return t.dragService.removeDragSource(i)};return r},n.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var i=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(i)},n.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},n.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},n.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},n.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},s_([b("dragService")],n.prototype,"dragService",void 0),s_([b("ctrlsService")],n.prototype,"ctrlsService",void 0),n=s_([Oe("horizontalResizeService")],n),n}(re),ZJ=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Pc=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},JJ=function(o){ZJ(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},n.prototype.showMenuAfterMouseEvent=function(e,t,i){var r=this;this.showPopup(e,function(s){r.popupService.positionPopupUnderMouseEvent({column:e,type:i,mouseEvent:t,ePopup:s})},i,t.target,this.menuService.isLegacyMenuEnabled())},n.prototype.showMenuAfterButtonClick=function(e,t,i){var r=this,s=-1,a="left",l=this.menuService.isLegacyMenuEnabled();!l&&this.gridOptionsService.get("enableRtl")&&(s=1,a="right");var c=l?void 0:4*s,u=l?void 0:4;this.showPopup(e,function(d){r.popupService.positionPopupByComponent({type:i,eventSource:t,ePopup:d,nudgeX:c,nudgeY:u,alignSide:a,keepWithinBounds:!0,position:"under",column:e})},i,t,l)},n.prototype.showPopup=function(e,t,i,r,s){var a=this,l=e?this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"):void 0;if(!l||!e)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var c=document.createElement("div");Qn(c,"presentation"),c.classList.add("ag-menu"),s||c.classList.add("ag-filter-menu"),this.tabListener=this.addManagedListener(c,"keydown",function(E){return a.trapFocusWithin(E,c)}),l.guiPromise.then(function(E){return c.appendChild(E)});var u,d=function(){var E;return(E=l.filterPromise)===null||E===void 0?void 0:E.then(function(z){var M;return(M=z?.afterGuiDetached)===null||M===void 0?void 0:M.call(z)})},p=this.menuService.isColumnMenuAnchoringEnabled()?r??this.ctrlsService.getGridBodyCtrl().getGui():void 0,g=function(E){e.setMenuVisible(!1,"contextMenu");var z=E instanceof KeyboardEvent;if(a.tabListener&&(a.tabListener=a.tabListener()),z&&r&&Dr(r)){var M=a.focusService.findTabbableParent(r);M&&M.focus()}d(),a.dispatchVisibleChangedEvent(!1,i,e)},v=this.localeService.getLocaleTextFunc(),y=s&&i!=="columnFilter"?v("ariaLabelColumnMenu","Column Menu"):v("ariaLabelColumnFilter","Column Filter"),x=this.popupService.addPopup({modal:!0,eChild:c,closeOnEsc:!0,closedCallback:g,positionCallback:function(){return t(c)},anchorToElement:p,ariaLabel:y});x&&(this.hidePopup=u=x.hideFunc),l.filterPromise.then(function(E){t(c),E.afterGuiAttached&&E.afterGuiAttached({container:i,hidePopup:u})}),e.setMenuVisible(!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,i,e)},n.prototype.trapFocusWithin=function(e,t){e.key!==q.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},n.prototype.dispatchVisibleChangedEvent=function(e,t,i){var r={type:T.EVENT_COLUMN_MENU_VISIBLE_CHANGED,visible:e,switchingTab:!1,key:t,column:i??null};this.eventService.dispatchEvent(r)},n.prototype.isMenuEnabled=function(e){var t;return e.isFilterAllowed()&&((t=e.getColDef().menuTabs)!==null&&t!==void 0?t:["filterMenuTab"]).includes("filterMenuTab")},n.prototype.showMenuAfterContextMenuEvent=function(){},Pc([b("filterManager")],n.prototype,"filterManager",void 0),Pc([b("popupService")],n.prototype,"popupService",void 0),Pc([b("focusService")],n.prototype,"focusService",void 0),Pc([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Pc([b("menuService")],n.prototype,"menuService",void 0),n=Pc([Oe("filterMenuFactory")],n),n}(re),eee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),WO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Ld=function(o){return o.TAB_GUARD="ag-tab-guard",o.TAB_GUARD_TOP="ag-tab-guard-top",o.TAB_GUARD_BOTTOM="ag-tab-guard-bottom",o}(Ld||{}),tee=function(o){eee(n,o);function n(e){var t=o.call(this)||this;t.skipTabGuardFocus=!1,t.forcingFocusOut=!1;var i=e.comp,r=e.eTopGuard,s=e.eBottomGuard,a=e.focusTrapActive,l=e.forceFocusOutWhenTabGuardsAreEmpty,c=e.focusInnerElement,u=e.onFocusIn,d=e.onFocusOut,p=e.shouldStopEventPropagation,g=e.onTabKeyDown,v=e.handleKeyDown,y=e.eFocusableElement;return t.comp=i,t.eTopGuard=r,t.eBottomGuard=s,t.providedFocusInnerElement=c,t.eFocusableElement=y,t.focusTrapActive=!!a,t.forceFocusOutWhenTabGuardsAreEmpty=!!l,t.providedFocusIn=u,t.providedFocusOut=d,t.providedShouldStopEventPropagation=p,t.providedOnTabKeyDown=g,t.providedHandleKeyDown=v,t}return n.prototype.postConstruct=function(){var e=this;this.createManagedBean(new ul(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))})},n.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},n.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},n.prototype.shouldStopEventPropagation=function(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1},n.prototype.activateTabGuards=function(){if(!this.forcingFocusOut){var e=this.gridOptionsService.get("tabIndex");this.comp.setTabIndex(e.toString())}},n.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},n.prototype.onFocus=function(e){if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty){var t=this.focusService.findFocusableElements(this.eFocusableElement,".ag-tab-guard").length===0;if(t){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}}var i=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(i):this.focusInnerElement(i)},n.prototype.findNextElementOutsideAndFocus=function(e){var t=this.gridOptionsService.getDocument(),i=this.focusService.findFocusableElements(t.body,null,!0),r=i.indexOf(e?this.eTopGuard:this.eBottomGuard);if(r!==-1){var s,a;e?(s=0,a=r):(s=r+1,a=i.length);var l=i.slice(s,a),c=this.gridOptionsService.get("tabIndex");l.sort(function(u,d){var p=parseInt(u.getAttribute("tabindex")||"0"),g=parseInt(d.getAttribute("tabindex")||"0");return g===c?1:p===c?-1:p===0?1:g===0?-1:p-g}),l[e?l.length-1:0].focus()}},n.prototype.onFocusIn=function(e){this.focusTrapActive||(this.providedFocusIn&&this.providedFocusIn(e),this.deactivateTabGuards())},n.prototype.onFocusOut=function(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())},n.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(!this.focusTrapActive&&!e.defaultPrevented){var i=this.tabGuardsAreActive();i&&this.deactivateTabGuards();var r=this.getNextFocusableElement(e.shiftKey);i&&setTimeout(function(){return t.activateTabGuards()},0),r&&(r.focus(),e.preventDefault())}},n.prototype.focusInnerElement=function(e){e===void 0&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})},n.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},n.prototype.forceFocusOutOfContainer=function(e){var t=this;if(e===void 0&&(e=!1),!this.forcingFocusOut){var i=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,i.focus(),window.setTimeout(function(){t.forcingFocusOut=!1,t.activateTabGuards()})}},n.prototype.isTabGuard=function(e){return e===this.eTopGuard||e===this.eBottomGuard},WO([b("focusService")],n.prototype,"focusService",void 0),WO([pe],n.prototype,"postConstruct",null),n}(re),nee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),iee=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},ree=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Jd=function(o){nee(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],i={setTabIndex:function(r){t.forEach(function(s){return r!=null?s.setAttribute("tabindex",r):s.removeAttribute("tabindex")})}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new tee({comp:i,focusTrapActive:!!e.focusTrapActive,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation,forceFocusOutWhenTabGuardsAreEmpty:e.forceFocusOutWhenTabGuardsAreEmpty}))},n.prototype.createTabGuard=function(e){var t=document.createElement("div"),i=e==="top"?Ld.TAB_GUARD_TOP:Ld.TAB_GUARD_BOTTOM;return t.classList.add(Ld.TAB_GUARD,i),Qn(t,"presentation"),t},n.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)},n.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];ti(this.getFocusableElement()),this.addTabGuards.apply(this,ree([],iee(e),!1))},n.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},n.prototype.appendChild=function(e,t){Xd(e)||(e=e.getGui());var i=this.eBottomGuard;i?i.insertAdjacentElement("beforebegin",e):o.prototype.appendChild.call(this,e,t)},n}(dt),oee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Nf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Owe=function(o){oee(n,o);function n(e){var t=o.call(this,n.getTemplate(e.cssClass))||this;return t.items=[],t.tabbedItemScrollMap=new Map,t.params=e,e.items&&e.items.forEach(function(i){return t.addItem(i)}),t}return n.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),focusInnerElement:this.focusInnerElement.bind(this),focusTrapActive:!0}),this.addDestroyFunc(function(){var t,i,r;return(r=(i=(t=e.activeItem)===null||t===void 0?void 0:t.tabbedItem)===null||i===void 0?void 0:i.afterDetachedCallback)===null||r===void 0?void 0:r.call(i)})},n.getTemplate=function(e){return'<div class="ag-tabs '.concat(e,`">
  160. <div ref="eHeader" role="tablist" class="ag-tabs-header `).concat(e?"".concat(e,"-header"):"",`"></div>
  161. <div ref="eBody" role="presentation" class="ag-tabs-body `).concat(e?"".concat(e,"-body"):"",`"></div>
  162. </div>`)},n.prototype.handleKeyDown=function(e){var t=this.gridOptionsService.getDocument();switch(e.key){case q.RIGHT:case q.LEFT:if(!this.eHeader.contains(t.activeElement))return;var i=e.key===q.RIGHT,r=this.gridOptionsService.get("enableRtl"),s=this.items.indexOf(this.activeItem),a=i!==r?Math.min(s+1,this.items.length-1):Math.max(s-1,0);if(s===a)return;e.preventDefault();var l=this.items[a];this.showItemWrapper(l),l.eHeaderButton.focus();break;case q.UP:case q.DOWN:e.stopPropagation();break}},n.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,i=t.focusService,r=t.eHeader,s=t.eBody,a=t.activeItem,l=this.gridOptionsService.getDocument(),c=l.activeElement,u=e.target;if(e.preventDefault(),r.contains(c)){this.focusBody(e.shiftKey);return}var d=null;i.isTargetUnderManagedComponent(s,u)&&(e.shiftKey&&(d=this.focusService.findFocusableElementBeforeTabGuard(s,u)),d||(d=a.eHeaderButton)),!d&&s.contains(c)&&(d=i.findNextFocusableElement(s,!1,e.shiftKey),d||this.focusHeader()),d&&d.focus()}},n.prototype.focusInnerElement=function(e){e?this.focusHeader():this.focusBody(!0)},n.prototype.focusHeader=function(){this.activeItem.eHeaderButton.focus()},n.prototype.focusBody=function(e){this.focusService.focusInto(this.eBody,e)},n.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},n.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},n.prototype.addItem=function(e){var t=document.createElement("span");Qn(t,"tab"),t.setAttribute("tabindex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),ma(t,e.titleLabel);var i={tabbedItem:e,eHeaderButton:t};this.items.push(i),t.addEventListener("click",this.showItemWrapper.bind(this,i))},n.prototype.showItem=function(e){var t=this.items.find(function(i){return i.tabbedItem===e});t&&this.showItemWrapper(t)},n.prototype.showItemWrapper=function(e){var t=this,i,r,s,a,l,c,u=e.tabbedItem,d=e.eHeaderButton;if((r=(i=this.params).onItemClicked)===null||r===void 0||r.call(i,{item:u}),this.activeItem===e){(a=(s=this.params).onActiveItemClicked)===null||a===void 0||a.call(s);return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),ti(this.eBody),u.bodyPromise.then(function(p){t.eBody.appendChild(p);var g=!t.focusService.isKeyboardMode();if(t.focusService.focusInto(t.eBody,!1,g),u.afterAttachedCallback&&u.afterAttachedCallback(t.afterAttachedParams),t.params.keepScrollPosition){var v=u.getScrollableContainer&&u.getScrollableContainer()||p;t.lastScrollListener=t.addManagedListener(v,"scroll",function(){t.tabbedItemScrollMap.set(u.name,v.scrollTop)});var y=t.tabbedItemScrollMap.get(u.name);y!==void 0&&setTimeout(function(){v.scrollTop=y},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),(c=(l=this.activeItem.tabbedItem).afterDetachedCallback)===null||c===void 0||c.call(l)),d.classList.add("ag-tab-selected"),this.activeItem=e},Nf([b("focusService")],n.prototype,"focusService",void 0),Nf([Ce("eHeader")],n.prototype,"eHeader",void 0),Nf([Ce("eBody")],n.prototype,"eBody",void 0),Nf([pe],n.prototype,"postConstruct",null),n}(Jd),see=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),aee=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},lee=50,cee=function(o){see(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return n.prototype.observeResize=function(e,t){var i=this,r=this.gridOptionsService.getWindow(),s=function(){var u=new r.ResizeObserver(t);return u.observe(e),function(){return u.disconnect()}},a=function(){var u,d,p=(u=e?.clientWidth)!==null&&u!==void 0?u:0,g=(d=e?.clientHeight)!==null&&d!==void 0?d:0,v=!0,y=function(){var x,E;if(v){var z=(x=e?.clientWidth)!==null&&x!==void 0?x:0,M=(E=e?.clientHeight)!==null&&E!==void 0?E:0,G=z!==p||M!==g;G&&(p=z,g=M,t()),i.doNextPolyfillTurn(y)}};return y(),function(){return v=!1}},l=this.gridOptionsService.get("suppressBrowserResizeObserver"),c=!!r.ResizeObserver;return c&&!l?s():this.getFrameworkOverrides().wrapIncoming(function(){return a()},"resize-observer")},n.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},n.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){var t=function(){var i=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],i.forEach(function(r){return r()})};this.polyfillScheduled=!0,window.setTimeout(t,lee)}},n=aee([Oe("resizeObserverService")],n),n}(re),uee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Lf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},dee=function(o){uee(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastPage=0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return n.prototype.setScrollTop=function(e){var t=this.gridOptionsService.get("pagination");if(this.scrollGoingDown=e>=this.lastScrollTop,t&&e===0){var i=this.paginationProxy.getCurrentPage();i!==this.lastPage&&(this.lastPage=i,this.scrollGoingDown=!0)}this.lastScrollTop=e},n.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.get("suppressAnimationFrame")},n.prototype.isOn=function(){return this.useAnimationFrame},n.prototype.verifyAnimationFrameOn=function(e){this.useAnimationFrame===!1&&console.warn("AG Grid: AnimationFrameService.".concat(e," called but animation frames are off"))},n.prototype.createTask=function(e,t,i){this.verifyAnimationFrameOn(i);var r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[i],r),this.schedule()},n.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},n.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},n.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort(function(i,r){return i.index!==r.index?t*(r.index-i.index):r.createOrder-i.createOrder}),e.sorted=!0}},n.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},n.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,i=t.list,r=this.createTasksP2,s=r.list,a=this.destroyTasks,l=new Date().getTime(),c=new Date().getTime()-l,u=e<=0,d=this.ctrlsService.getGridBodyCtrl();u||c<e;){var p=d.getScrollFeature().scrollGridIfNeeded();if(!p){var g=void 0;if(i.length)this.sortTaskList(t),g=i.pop().task;else if(s.length)this.sortTaskList(r),g=s.pop().task;else if(a.length)g=a.pop();else{this.cancelledTasks.clear();break}this.cancelledTasks.has(g)||g()}c=new Date().getTime()-l}i.length||s.length||a.length?this.requestFrame():this.stopTicking()},n.prototype.stopTicking=function(){this.ticking=!1},n.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},n.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},n.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);this.requestAnimationFrame(e)},n.prototype.requestAnimationFrame=function(e){var t=this.gridOptionsService.getWindow();t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)},n.prototype.isQueueEmpty=function(){return!this.ticking},n.prototype.debounce=function(e){var t=this,i=!1;return function(){if(!t.isOn()){window.setTimeout(e,0);return}i||(i=!0,t.addDestroyTask(function(){i=!1,e()}))}},Lf([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Lf([b("paginationProxy")],n.prototype,"paginationProxy",void 0),Lf([pe],n.prototype,"init",null),n=Lf([Oe("animationFrameService")],n),n}(re),zt=function(o){return o.EVERYTHING="group",o.FILTER="filter",o.SORT="sort",o.MAP="map",o.AGGREGATE="aggregate",o.FILTER_AGGREGATES="filter_aggregates",o.PIVOT="pivot",o.NOTHING="nothing",o}(zt||{}),pee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),a_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},hee=function(o){pee(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){this.isClientSideRowModel=this.rowModel.getType()==="clientSide"},n.prototype.expandRows=function(e){if(this.isClientSideRowModel){var t=new Set(e);this.rowModel.forEachNode(function(i){i.id&&t.has(i.id)&&(i.expanded=!0)}),this.onGroupExpandedOrCollapsed()}},n.prototype.getExpandedRows=function(){var e=[];return this.rowModel.forEachNode(function(t){var i=t.expanded,r=t.id;i&&r&&e.push(r)}),e},n.prototype.expandAll=function(e){this.isClientSideRowModel&&this.rowModel.expandOrCollapseAll(e)},n.prototype.setRowNodeExpanded=function(e,t,i){e&&(i&&e.parent&&e.parent.level!==-1&&this.setRowNodeExpanded(e.parent,t,i),e.setExpanded(t))},n.prototype.onGroupExpandedOrCollapsed=function(){this.isClientSideRowModel&&this.rowModel.refreshModel({step:zt.MAP})},a_([b("rowModel")],n.prototype,"rowModel",void 0),a_([pe],n.prototype,"postConstruct",null),n=a_([Oe("expansionService")],n),n}(re),fee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Cs=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},gee=function(o){fee(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){var e;this.activeMenuFactory=(e=this.enterpriseMenuFactory)!==null&&e!==void 0?e:this.filterMenuFactory},n.prototype.showColumnMenu=function(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")},n.prototype.showFilterMenu=function(e){var t=this.enterpriseMenuFactory&&this.isLegacyMenuEnabled()?this.enterpriseMenuFactory:this.filterMenuFactory;this.showColumnMenuCommon(t,e,e.containerType,!0)},n.prototype.showHeaderContextMenu=function(e,t,i){this.activeMenuFactory.showMenuAfterContextMenuEvent(e,t,i)},n.prototype.showContextMenu=function(e){var t,i,r,s=e.column,a=e.anchorToElement,l=e.rowNode,c=e.value;(t=this.contextMenuFactory)===null||t===void 0||t.onContextMenu((i=e.mouseEvent)!==null&&i!==void 0?i:null,(r=e.touchEvent)!==null&&r!==void 0?r:null,l??null,s??null,c,a)},n.prototype.showColumnChooser=function(e){var t;(t=this.columnChooserFactory)===null||t===void 0||t.showColumnChooser(e)},n.prototype.hidePopupMenu=function(){var e;(e=this.contextMenuFactory)===null||e===void 0||e.hideActiveMenu(),this.activeMenuFactory.hideActiveMenu()},n.prototype.hideColumnChooser=function(){var e;(e=this.columnChooserFactory)===null||e===void 0||e.hideActiveColumnChooser()},n.prototype.isColumnMenuInHeaderEnabled=function(e){var t=e.getColDef(),i=t.suppressMenu,r=t.suppressHeaderMenuButton,s=r??i;return!s&&this.activeMenuFactory.isMenuEnabled(e)&&(this.isLegacyMenuEnabled()||!!this.enterpriseMenuFactory)},n.prototype.isFilterMenuInHeaderEnabled=function(e){return!e.getColDef().suppressHeaderFilterButton&&this.filterManager.isFilterAllowed(e)},n.prototype.isHeaderContextMenuEnabled=function(e){return!e?.getColDef().suppressHeaderContextMenu&&this.getColumnMenuType()==="new"},n.prototype.isHeaderMenuButtonAlwaysShowEnabled=function(){return this.isSuppressMenuHide()},n.prototype.isHeaderMenuButtonEnabled=function(){var e=!this.isSuppressMenuHide(),t=Es()&&e;return!t},n.prototype.isHeaderFilterButtonEnabled=function(e){return this.isFilterMenuInHeaderEnabled(e)&&!this.isLegacyMenuEnabled()&&!this.isFloatingFilterButtonDisplayed(e)},n.prototype.isFilterMenuItemEnabled=function(e){return this.filterManager.isFilterAllowed(e)&&!this.isLegacyMenuEnabled()&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)},n.prototype.isColumnMenuAnchoringEnabled=function(){return!this.isLegacyMenuEnabled()},n.prototype.areAdditionalColumnMenuItemsEnabled=function(){return this.getColumnMenuType()==="new"},n.prototype.isLegacyMenuEnabled=function(){return this.getColumnMenuType()==="legacy"},n.prototype.isFloatingFilterButtonEnabled=function(e){var t,i=e.getColDef(),r=(t=i.floatingFilterComponentParams)===null||t===void 0?void 0:t.suppressFilterButton;return r!=null&&Je("As of v31.1, 'colDef.floatingFilterComponentParams.suppressFilterButton' is deprecated. Use 'colDef.suppressFloatingFilterButton' instead."),i.suppressFloatingFilterButton==null?!r:!i.suppressFloatingFilterButton},n.prototype.getColumnMenuType=function(){var e;return(e=this.gridOptionsService.get("columnMenu"))!==null&&e!==void 0?e:"legacy"},n.prototype.isFloatingFilterButtonDisplayed=function(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)},n.prototype.isSuppressMenuHide=function(){var e=this.gridOptionsService.get("suppressMenuHide");return this.isLegacyMenuEnabled()||this.gridOptionsService.exists("suppressMenuHide")?e:!0},n.prototype.showColumnMenuCommon=function(e,t,i,r){var s=this,a=t.column,l=t.positionBy;if(l==="button"){var c=t.buttonElement;e.showMenuAfterButtonClick(a,c,i,r)}else if(l==="mouse"){var u=t.mouseEvent;e.showMenuAfterMouseEvent(a,u,i,r)}else a&&(this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(a,"auto"),this.animationFrameService.requestAnimationFrame(function(){var d=s.ctrlsService.getHeaderRowContainerCtrl(a.getPinned()).getHeaderCtrlForColumn(a);e.showMenuAfterButtonClick(a,d.getAnchorElementForMenu(r),i,!0)}))},Cs([Mt("enterpriseMenuFactory")],n.prototype,"enterpriseMenuFactory",void 0),Cs([b("filterMenuFactory")],n.prototype,"filterMenuFactory",void 0),Cs([Mt("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Cs([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Cs([b("animationFrameService")],n.prototype,"animationFrameService",void 0),Cs([Mt("columnChooserFactory")],n.prototype,"columnChooserFactory",void 0),Cs([b("filterManager")],n.prototype,"filterManager",void 0),Cs([pe],n.prototype,"postConstruct",null),n=Cs([Oe("menuService")],n),n}(re),mee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Cd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},vee=function(o){mee(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl})},n.prototype.getPreferredWidthForColumn=function(e,t){var i=this.getHeaderCellForColumn(e);if(!i)return-1;var r=this.rowRenderer.getAllCellsForColumn(e);return t||r.push(i),this.addElementsToContainerAndGetWidth(r)},n.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},n.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,i=document.createElement("form");i.style.position="fixed";var r=this.centerRowContainerCtrl.getContainerElement();e.forEach(function(l){return t.cloneItemIntoDummy(l,i)}),r.appendChild(i);var s=i.offsetWidth;r.removeChild(i);var a=this.getAutoSizePadding();return s+a},n.prototype.getAutoSizePadding=function(){return this.gridOptionsService.get("autoSizePadding")},n.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(i){var r=i.getHtmlElementForColumnHeader(e);r!=null&&(t=r)}),t},n.prototype.cloneItemIntoDummy=function(e,t){var i=e.cloneNode(!0);i.style.width="",i.style.position="static",i.style.left="";var r=document.createElement("div"),s=r.classList,a=["ag-header-cell","ag-header-group-cell"].some(function(p){return i.classList.contains(p)});a?(s.add("ag-header","ag-header-row"),r.style.position="static"):s.add("ag-row");for(var l=e.parentElement;l;){var c=["ag-header-row","ag-row"].some(function(p){return l.classList.contains(p)});if(c){for(var u=0;u<l.classList.length;u++){var d=l.classList[u];d!="ag-row-position-absolute"&&s.add(d)}break}l=l.parentElement}r.appendChild(i),t.appendChild(r)},Cd([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Cd([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Cd([b("rowCssClassCalculator")],n.prototype,"rowCssClassCalculator",void 0),Cd([pe],n.prototype,"postConstruct",null),n=Cd([Oe("autoWidthCalculator")],n),n}(re),yee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),kf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Cee=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},_ee=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},See=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},wee=function(o){yee(n,o);function n(e,t){var i=o.call(this)||this;return i.createRowCon=e,i.destroyRowCtrls=t,i.stickyRowCtrls=[],i.containerHeight=0,i}return n.prototype.postConstruct=function(){var e=this;this.isClientSide=this.rowModel.getType()==="clientSide",this.ctrlsService.whenReady(function(t){e.gridBodyCtrl=t.gridBodyCtrl})},n.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},n.prototype.checkStickyRows=function(){var e=this,t=0;if(!this.gridOptionsService.isGroupRowsSticky())return this.refreshNodesAndContainerHeight([],t);for(var i=[],r=this.rowRenderer.getFirstVisibleVerticalPixel(),s=function(v){var y,x,E;i.push(v);var z;if(e.isClientSide){for(var M=v;M.isExpandable()&&M.expanded;)if(M.master)M=M.detailNode;else if(M.childrenAfterSort){if(M.childrenAfterSort.length===0)break;M=Nt(M.childrenAfterSort)}z=M.rowTop+M.rowHeight}else if(v.master)z=v.detailNode.rowTop+v.detailNode.rowHeight;else{var G=(y=v.childStore)===null||y===void 0?void 0:y.getStoreBounds();z=((x=G?.heightPx)!==null&&x!==void 0?x:0)+((E=G?.topPx)!==null&&E!==void 0?E:0)}var U=r+t+v.rowHeight;z<U?v.stickyRowTop=t+(z-U):v.stickyRowTop=t,t=0,i.forEach(function(se){var ve=se.stickyRowTop+se.rowHeight;t<ve&&(t=ve)})},a=0;;){var l=r+t,c=this.rowModel.getRowIndexAtPixel(l),u=this.rowModel.getRow(c);if(u==null||u.level<0||a++===100)break;for(var d=[],p=u.parent;p.level>=0;)d.push(p),p=p.parent;var g=d.reverse().find(function(v){return i.indexOf(v)<0&&v.displayed});if(g){s(g);continue}if(u.isExpandable()&&u.expanded&&u.rowTop<l){s(u);continue}break}return this.refreshNodesAndContainerHeight(i,t)},n.prototype.refreshStickyNode=function(e){for(var t=[],i=0;i<this.stickyRowCtrls.length;i++){var r=this.stickyRowCtrls[i].getRowNode();r!==e&&t.push(r)}this.refreshNodesAndContainerHeight(t,this.containerHeight)&&this.checkStickyRows()},n.prototype.refreshNodesAndContainerHeight=function(e,t){var i,r,s,a=this,l=!1,c=this.stickyRowCtrls.filter(function(x){return e.indexOf(x.getRowNode())===-1}),u=e.filter(function(x){return a.stickyRowCtrls.findIndex(function(E){return E.getRowNode()===x})===-1});(c.length||u.length)&&(l=!0);var d={};c.forEach(function(x){d[x.getRowNode().id]=x,a.stickyRowCtrls=a.stickyRowCtrls.filter(function(E){return E!==x})});try{for(var p=Cee(Object.values(d)),g=p.next();!g.done;g=p.next()){var v=g.value;v.getRowNode().sticky=!1}}catch(x){i={error:x}}finally{try{g&&!g.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}this.destroyRowCtrls(d,!1);var y=u.map(function(x){return x.sticky=!0,a.createRowCon(x,!1,!1)});return(s=this.stickyRowCtrls).push.apply(s,See([],_ee(y),!1)),this.stickyRowCtrls.forEach(function(x){return x.setRowTop(x.getRowNode().stickyRowTop)}),this.stickyRowCtrls.sort(function(x,E){return E.getRowNode().rowIndex-x.getRowNode().rowIndex}),this.containerHeight!==t&&(this.containerHeight=t,this.gridBodyCtrl.setStickyTopHeight(t),l=!0),l},kf([b("rowModel")],n.prototype,"rowModel",void 0),kf([b("rowRenderer")],n.prototype,"rowRenderer",void 0),kf([b("ctrlsService")],n.prototype,"ctrlsService",void 0),kf([pe],n.prototype,"postConstruct",null),n}(re),bee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),vo=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ta=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},na=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Tee=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Eee=function(o){bee(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCtrlsByRowIndex={},e.zombieRowCtrls={},e.allRowCtrls=[],e.topRowCtrls=[],e.bottomRowCtrls=[],e.refreshInProgress=!1,e.dataFirstRenderedFired=!1,e.setupRangeSelectionListeners=function(){var t=function(){e.getAllCellCtrls().forEach(function(l){return l.onRangeSelectionChanged()})},i=function(){e.getAllCellCtrls().forEach(function(l){return l.updateRangeBordersIfRangeCount()})},r=function(){e.eventService.addEventListener(T.EVENT_RANGE_SELECTION_CHANGED,t),e.eventService.addEventListener(T.EVENT_COLUMN_MOVED,i),e.eventService.addEventListener(T.EVENT_COLUMN_PINNED,i),e.eventService.addEventListener(T.EVENT_COLUMN_VISIBLE,i)},s=function(){e.eventService.removeEventListener(T.EVENT_RANGE_SELECTION_CHANGED,t),e.eventService.removeEventListener(T.EVENT_COLUMN_MOVED,i),e.eventService.removeEventListener(T.EVENT_COLUMN_PINNED,i),e.eventService.removeEventListener(T.EVENT_COLUMN_VISIBLE,i)};e.addDestroyFunc(function(){return s()}),e.addManagedPropertyListener("enableRangeSelection",function(l){var c=l.currentValue;c?r():s()});var a=e.gridOptionsService.get("enableRangeSelection");a&&r()},e}return n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()})},n.prototype.initialise=function(){var e=this;if(this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,T.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,T.EVENT_BODY_HEIGHT_CHANGED,this.redraw.bind(this)),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],function(){return e.onDomLayoutChanged()}),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],function(){return e.redraw()}),this.addManagedPropertyListeners(["suppressCellFocus","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],function(){return e.redrawRows()}),this.gridOptionsService.isGroupRowsSticky()){var t=this.rowModel.getType();(t==="clientSide"||t==="serverSide")&&(this.stickyRowFeature=this.createManagedBean(new wee(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this))))}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.get("embedFullWidthRows"),this.redrawAfterModelUpdate()},n.prototype.initialiseCache=function(){if(this.gridOptionsService.get("keepDetailRows")){var e=this.getKeepDetailRowsCount(),t=e??3;this.cachedRowCtrls=new xee(t)}},n.prototype.getKeepDetailRowsCount=function(){return this.gridOptionsService.get("keepDetailRowsCount")},n.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},n.prototype.updateAllRowCtrls=function(){var e=fa(this.rowCtrlsByRowIndex),t=fa(this.zombieRowCtrls),i=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];t.length>0||i.length>0?this.allRowCtrls=na(na(na([],ta(e),!1),ta(t),!1),ta(i),!1):this.allRowCtrls=e},n.prototype.onCellFocusChanged=function(e){this.getAllCellCtrls().forEach(function(t){return t.onCellFocused(e)}),this.getFullWidthRowCtrls().forEach(function(t){return t.onFullWidthRowFocused(e)})},n.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_CELL_FOCUSED,function(t){e.onCellFocusChanged(t)}),this.addManagedListener(this.eventService,T.EVENT_CELL_FOCUS_CLEARED,function(){e.onCellFocusChanged()}),this.addManagedListener(this.eventService,T.EVENT_FLASH_CELLS,function(t){e.getAllCellCtrls().forEach(function(i){return i.onFlashCells(t)})}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_HOVER_CHANGED,function(){e.getAllCellCtrls().forEach(function(t){return t.onColumnHover()})}),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){e.getAllCellCtrls().forEach(function(t){return t.onDisplayedColumnsChanged()})}),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){e.printLayout&&e.getAllCellCtrls().forEach(function(t){return t.onLeftChanged()})}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,T.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},n.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach(function(e){return e()}),this.destroyFuncsForColumnListeners.length=0},n.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t.forEach(function(i){var r=function(d){e.getAllCellCtrls().forEach(function(p){p.getColumn()===i&&d(p)})},s=function(){r(function(d){return d.onLeftChanged()})},a=function(){r(function(d){return d.onWidthChanged()})},l=function(){r(function(d){return d.onFirstRightPinnedChanged()})},c=function(){r(function(d){return d.onLastLeftPinnedChanged()})},u=function(){r(function(d){return d.onColDefChanged()})};i.addEventListener("leftChanged",s),i.addEventListener("widthChanged",a),i.addEventListener("firstRightPinnedChanged",l),i.addEventListener("lastLeftPinnedChanged",c),i.addEventListener("colDefChanged",u),e.destroyFuncsForColumnListeners.push(function(){i.removeEventListener("leftChanged",s),i.removeEventListener("widthChanged",a),i.removeEventListener("firstRightPinnedChanged",l),i.removeEventListener("lastLeftPinnedChanged",c),i.removeEventListener("colDefChanged",u)})})},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsService.isDomLayout("print"),t=e||this.gridOptionsService.get("embedFullWidthRows"),i=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,i&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},n.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},n.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},n.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach(function(i){var r=i.getCellElement(e);r&&t.push(r)}),t},n.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},n.prototype.getTopRowCtrls=function(){return this.topRowCtrls},n.prototype.getCentreRowCtrls=function(){return this.allRowCtrls},n.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},n.prototype.refreshFloatingRows=function(e,t){var i=this;e.forEach(function(r){r.destroyFirstPass(),r.destroySecondPass()}),e.length=0,t&&t.forEach(function(r){var s=new sl(r,i.beans,!1,!1,i.printLayout);e.push(s)})},n.prototype.onPinnedRowDataChanged=function(){var e={recycleRows:!0};this.redrawAfterModelUpdate(e)},n.prototype.redrawRow=function(e,t){var i=this,r;if(t===void 0&&(t=!1),e.sticky)this.stickyRowFeature.refreshStickyNode(e);else if(!((r=this.cachedRowCtrls)===null||r===void 0)&&r.has(e)){this.cachedRowCtrls.removeRow(e);return}else{var s=function(a){var l=a[e.rowIndex];l&&l.getRowNode()===e&&(l.destroyFirstPass(),l.destroySecondPass(),a[e.rowIndex]=i.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":s(this.topRowCtrls);break;case"bottom":s(this.bottomRowCtrls);break;default:s(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)},n.prototype.redrawRows=function(e){var t=this,i=e!=null;if(i){e?.forEach(function(r){return t.redrawRow(r,!0)}),this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()},n.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e?.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(t==null)return null;var i=this.gridOptionsService.getDocument(),r=i.activeElement,s=this.gridOptionsService.getDomData(r,ol.DOM_DATA_KEY_CELL_CTRL),a=this.gridOptionsService.getDomData(r,sl.DOM_DATA_KEY_ROW_CTRL),l=s||a;return l?t:null},n.prototype.redrawAfterModelUpdate=function(e){e===void 0&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var i=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&this.gridOptionsService.isAnimateRows(),s=i?this.getRowsToRecycle():null;i||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows(),this.recycleRows(s,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()},n.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,i=this.gridOptionsService.get("suppressScrollOnNewData");t&&!i&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},n.prototype.updateContainerHeights=function(){if(this.printLayout){this.rowContainerHeightService.setModelHeight(null);return}var e=this.paginationProxy.getCurrentPageHeight();e===0&&(e=1),this.rowContainerHeightService.setModelHeight(e)},n.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},n.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},n.prototype.isRefreshInProgress=function(){return this.refreshInProgress},n.prototype.restoreFocusedCell=function(e){e&&(this.focusService.setRestoreFocusedCell(e),this.onCellFocusChanged(this.beans.gridOptionsService.addGridCommonParams({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"mock"})))},n.prototype.stopEditing=function(e){e===void 0&&(e=!1),this.getAllRowCtrls().forEach(function(t){t.stopEditing(e)})},n.prototype.getAllCellCtrls=function(){for(var e=[],t=this.getAllRowCtrls(),i=t.length,r=0;r<i;r++)for(var s=t[r].getAllCellCtrls(),a=s.length,l=0;l<a;l++)e.push(s[l]);return e},n.prototype.getAllRowCtrls=function(){var e,t,i=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],r=na(na(na([],ta(this.topRowCtrls),!1),ta(this.bottomRowCtrls),!1),ta(i),!1);try{for(var s=Tee(Object.keys(this.rowCtrlsByRowIndex)),a=s.next();!a.done;a=s.next()){var l=a.value;r.push(this.rowCtrlsByRowIndex[l])}}catch(c){e={error:c}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return r},n.prototype.addRenderedRowListener=function(e,t,i){var r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,i)},n.prototype.flashCells=function(e){e===void 0&&(e={}),this.getCellCtrls(e.rowNodes,e.columns).forEach(function(t){return t.flashCell(e)})},n.prototype.refreshCells=function(e){var t=this;e===void 0&&(e={});var i={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach(function(r){return r.refreshOrDestroyCell(i)}),e.rowNodes&&(this.getRowCtrls(e.rowNodes).forEach(function(r){if(r.isFullWidth()){var s=r.refreshFullWidth();s||t.redrawRow(r.getRowNode(),!0)}}),this.dispatchDisplayedRowsChanged(!1))},n.prototype.getCellRendererInstances=function(e){var t=this,i,r=this.getCellCtrls(e.rowNodes,e.columns).map(function(l){return l.getCellRenderer()}).filter(function(l){return l!=null});if(!((i=e.columns)===null||i===void 0)&&i.length)return r;var s=[],a=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach(function(l){if(!(a&&!t.isRowInMap(l.getRowNode(),a))&&l.isFullWidth())for(var c=l.getFullWidthCellRenderers(),u=0;u<c.length;u++){var d=c[u];d!=null&&s.push(d)}}),na(na([],ta(s),!1),ta(r),!1)},n.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach(function(i){var r=i.getCellEditor();r&&t.push(r)}),t},n.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach(function(t){if(t.isEditing()){var i=t.getCellPosition();e.push(i)}}),e},n.prototype.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach(function(i){var r=i.id;i.rowPinned==="top"?t.top[r]=i:i.rowPinned==="bottom"?t.bottom[r]=i:t.normal[r]=i}),t}},n.prototype.isRowInMap=function(e,t){var i=e.id,r=e.rowPinned;return r==="bottom"?t.bottom[i]!=null:r==="top"?t.top[i]!=null:t.normal[i]!=null},n.prototype.getRowCtrls=function(e){var t=this,i=this.mapRowNodes(e),r=this.getAllRowCtrls();return!e||!i?r:r.filter(function(s){var a=s.getRowNode();return t.isRowInMap(a,i)})},n.prototype.getCellCtrls=function(e,t){var i=this,r;ne(t)&&(r={},t.forEach(function(a){var l=i.columnModel.getGridColumn(a);ne(l)&&(r[l.getId()]=!0)}));var s=[];return this.getRowCtrls(e).forEach(function(a){a.getAllCellCtrls().forEach(function(l){var c=l.getColumn().getId(),u=r&&!r[c];u||s.push(l)})}),s},n.prototype.destroy=function(){this.removeAllRowComps(),o.prototype.destroy.call(this)},n.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},n.prototype.getRowsToRecycle=function(){var e=[];Ei(this.rowCtrlsByRowIndex,function(i,r){var s=r.getRowNode().id==null;s&&e.push(i)}),this.removeRowCtrls(e);var t={};return Ei(this.rowCtrlsByRowIndex,function(i,r){var s=r.getRowNode();t[s.id]=r}),this.rowCtrlsByRowIndex={},t},n.prototype.removeRowCtrls=function(e,t){var i=this;t===void 0&&(t=!1),e.forEach(function(r){var s=i.rowCtrlsByRowIndex[r];s&&(s.destroyFirstPass(t),s.destroySecondPass()),delete i.rowCtrlsByRowIndex[r]})},n.prototype.onBodyScroll=function(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})},n.prototype.redraw=function(e){e===void 0&&(e={});var t=e.afterScroll,i;this.stickyRowFeature&&v0()&&(i=this.getCellToRestoreFocusToAfterRefresh()||void 0);var r=this.firstRenderedRow,s=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();var a=!1;this.stickyRowFeature&&(a=this.stickyRowFeature.checkStickyRows());var l=this.firstRenderedRow!==r||this.lastRenderedRow!==s;if(!(t&&!a&&!l)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,t),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(t&&!a),i!=null)){var c=this.getCellToRestoreFocusToAfterRefresh();i!=null&&c==null&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(i))}},n.prototype.removeRowCompsNotToDraw=function(e,t){var i={};e.forEach(function(a){return i[a]=!0});var r=Object.keys(this.rowCtrlsByRowIndex),s=r.filter(function(a){return!i[a]});this.removeRowCtrls(s,t)},n.prototype.calculateIndexesToDraw=function(e){var t=this,i=lR(this.firstRenderedRow,this.lastRenderedRow),r=function(u,d){var p=d.getRowNode().rowIndex;p!=null&&(p<t.firstRenderedRow||p>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(d)&&i.push(p)};Ei(this.rowCtrlsByRowIndex,r),Ei(e,r),i.sort(function(u,d){return u-d});for(var s=[],a=0;a<i.length;a++){var l=i[a],c=this.paginationProxy.getRow(l);c&&!c.sticky&&s.push(l)}return s},n.prototype.recycleRows=function(e,t,i){var r=this;t===void 0&&(t=!1),i===void 0&&(i=!1);var s=this.calculateIndexesToDraw(e);if((this.printLayout||i)&&(t=!1),this.removeRowCompsNotToDraw(s,!t),s.forEach(function(l){var c=r.createOrUpdateRowCtrl(l,e,t,i);ne(c)}),e){var a=i&&!this.gridOptionsService.get("suppressAnimationFrame")&&!this.printLayout;a?this.beans.animationFrameService.addDestroyTask(function(){r.destroyRowCtrls(e,t),r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()},n.prototype.dispatchDisplayedRowsChanged=function(e){e===void 0&&(e=!1);var t={type:T.EVENT_DISPLAYED_ROWS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(t)},n.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight(),i=this.pinningLeft!==e||t!==this.pinningRight;i&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},n.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach(function(t){var i=t.getRowNode().rowIndex;e.push(i.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})},n.prototype.getFullWidthRowCtrls=function(e){var t=this,i=this.mapRowNodes(e);return this.getAllRowCtrls().filter(function(r){if(!r.isFullWidth())return!1;var s=r.getRowNode();return!(i!=null&&!t.isRowInMap(s,i))})},n.prototype.createOrUpdateRowCtrl=function(e,t,i,r){var s,a=this.rowCtrlsByRowIndex[e];a||(s=this.paginationProxy.getRow(e),ne(s)&&ne(t)&&t[s.id]&&s.alreadyRendered&&(a=t[s.id],t[s.id]=null));var l=!a;if(l)if(s||(s=this.paginationProxy.getRow(e)),ne(s))a=this.createRowCon(s,i,r);else return;return s&&(s.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=a,a},n.prototype.destroyRowCtrls=function(e,t){var i=this,r=[];Ei(e,function(s,a){if(a){if(i.cachedRowCtrls&&a.isCacheable()){i.cachedRowCtrls.addRow(a);return}a.destroyFirstPass(!t),t?(i.zombieRowCtrls[a.getInstanceId()]=a,r.push(function(){a.destroySecondPass(),delete i.zombieRowCtrls[a.getInstanceId()]})):a.destroySecondPass()}}),t&&(r.push(function(){i.updateAllRowCtrls(),i.dispatchDisplayedRowsChanged()}),OD(r))},n.prototype.getRowBuffer=function(){return this.gridOptionsService.get("rowBuffer")},n.prototype.getRowBufferInPixels=function(){var e=this.getRowBuffer(),t=this.gridOptionsService.getRowHeightAsNumber();return e*t},n.prototype.workOutFirstAndLastRowsToRender=function(){this.rowContainerHeightService.updateOffset();var e,t;if(!this.paginationProxy.isRowsToRender())e=0,t=-1;else if(this.printLayout)this.environment.refreshRowHeightVariable(),e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var i=this.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),s=this.gridOptionsService.get("suppressRowVirtualisation"),a=!1,l=void 0,c=void 0;do{var u=this.paginationProxy.getPixelOffset(),d=this.paginationProxy.getCurrentPagePixelRange(),p=d.pageFirstPixel,g=d.pageLastPixel,v=this.rowContainerHeightService.getDivStretchOffset(),y=r.getScrollFeature().getVScrollPosition(),x=y.top,E=y.bottom;s?(l=p+v,c=g+v):(l=Math.max(x+u-i,p)+v,c=Math.min(E+u+i,g)+v),this.firstVisibleVPixel=Math.max(x+u,p)+v,a=this.ensureAllRowsInRangeHaveHeightsCalculated(l,c)}while(a);var z=this.paginationProxy.getRowIndexAtPixel(l),M=this.paginationProxy.getRowIndexAtPixel(c),G=this.paginationProxy.getPageFirstRow(),U=this.paginationProxy.getPageLastRow();z<G&&(z=G),M>U&&(M=U),e=z,t=M}var se=this.gridOptionsService.isDomLayout("normal"),ve=this.gridOptionsService.get("suppressMaxRenderedRowRestriction"),he=Math.max(this.getRowBuffer(),500);se&&!ve&&t-e>he&&(t=e+he);var be=e!==this.firstRenderedRow,Ee=t!==this.lastRenderedRow;if(be||Ee){this.firstRenderedRow=e,this.lastRenderedRow=t;var Te={type:T.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t};this.eventService.dispatchEvent(Te)}},n.prototype.dispatchFirstDataRenderedEvent=function(){var e=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var t={type:T.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame(function(){e.beans.eventService.dispatchEvent(t)})}},n.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var i=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return i&&this.updateContainerHeights(),i},n.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},n.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},n.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},n.prototype.doNotUnVirtualiseRow=function(e){var t=!1,i=!0,r=e.getRowNode(),s=this.focusService.isRowNodeFocused(r),a=e.isEditing(),l=r.detail,c=s||a||l;if(!c)return t;var u=this.paginationProxy.isRowPresent(r);return u?i:t},n.prototype.createRowCon=function(e,t,i){var r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(r)return r;var s=this.gridOptionsService.get("suppressAnimationFrame"),a=i&&!s&&!this.printLayout,l=new sl(e,this.beans,t,a,this.printLayout);return l},n.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map(function(t){return e[t].getRowNode()})},n.prototype.getRowByPosition=function(e){var t,i=e.rowIndex;switch(e.rowPinned){case"top":t=this.topRowCtrls[i];break;case"bottom":t=this.bottomRowCtrls[i];break;default:t=this.rowCtrlsByRowIndex[i],t||(t=this.getStickyTopRowCtrls().find(function(r){return r.getRowNode().rowIndex===i})||null);break}return t},n.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},n.prototype.isRangeInRenderedViewport=function(e,t){var i=e==null||t==null;if(i)return!1;var r=e>this.lastRenderedRow,s=t<this.firstRenderedRow,a=!s&&!r;return a},vo([b("animationFrameService")],n.prototype,"animationFrameService",void 0),vo([b("paginationProxy")],n.prototype,"paginationProxy",void 0),vo([b("columnModel")],n.prototype,"columnModel",void 0),vo([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),vo([b("rowModel")],n.prototype,"rowModel",void 0),vo([b("focusService")],n.prototype,"focusService",void 0),vo([b("beans")],n.prototype,"beans",void 0),vo([b("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),vo([b("ctrlsService")],n.prototype,"ctrlsService",void 0),vo([pe],n.prototype,"postConstruct",null),n=vo([Oe("rowRenderer")],n),n}(re),xee=function(){function o(n){this.entriesMap={},this.entriesList=[],this.maxCount=n}return o.prototype.addRow=function(n){if(this.entriesMap[n.getRowNode().id]=n,this.entriesList.push(n),n.setCached(!0),this.entriesList.length>this.maxCount){var e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}},o.prototype.getRow=function(n){if(n==null||n.id==null)return null;var e=this.entriesMap[n.id];if(!e)return null;this.removeFromCache(e),e.setCached(!1);var t=e.getRowNode()!=n;return t?null:e},o.prototype.has=function(n){return this.entriesMap[n.id]!=null},o.prototype.removeRow=function(n){var e=n.id,t=this.entriesMap[e];delete this.entriesMap[e],ir(this.entriesList,t)},o.prototype.removeFromCache=function(n){var e=n.getRowNode().id;delete this.entriesMap[e],ir(this.entriesList,n)},o.prototype.getEntries=function(){return this.entriesList},o}(),zee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),UO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Oee=function(o){zee(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.formatValue=function(e,t,i,r,s){s===void 0&&(s=!0);var a=null,l,c=e.getColDef();if(r?l=r:s&&(l=c.valueFormatter),l){var u=this.gridOptionsService.addGridCommonParams({value:i,node:t,data:t?t.data:null,colDef:c,column:e});typeof l=="function"?a=l(u):a=this.expressionService.evaluate(l,u)}else if(c.refData)return c.refData[i]||"";return a==null&&Array.isArray(i)&&(a=i.join(", ")),a},UO([b("expressionService")],n.prototype,"expressionService",void 0),n=UO([Oe("valueFormatterService")],n),n}(re),Dee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),l_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Ree=function(o){Dee(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.init=function(){var e=this;this.setPinnedTopRowData(),this.setPinnedBottomRowData(),this.addManagedPropertyListener("pinnedTopRowData",function(){return e.setPinnedTopRowData()}),this.addManagedPropertyListener("pinnedBottomRowData",function(){return e.setPinnedBottomRowData()})},n.prototype.isEmpty=function(e){var t=e==="top"?this.pinnedTopRows:this.pinnedBottomRows;return Er(t)},n.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},n.prototype.getRowAtPixel=function(e,t){var i=t==="top"?this.pinnedTopRows:this.pinnedBottomRows;if(Er(i))return 0;for(var r=0;r<i.length;r++){var s=i[r],a=s.rowTop+s.rowHeight-1;if(a>=e)return r}return i.length-1},n.prototype.setPinnedTopRowData=function(){var e=this.gridOptionsService.get("pinnedTopRowData");this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:T.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},n.prototype.setPinnedBottomRowData=function(){var e=this.gridOptionsService.get("pinnedBottomRowData");this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:T.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},n.prototype.createNodesFromData=function(e,t){var i=this,r=[];if(e){var s=0;e.forEach(function(a,l){var c=new gt(i.beans);c.data=a;var u=t?gt.ID_PREFIX_TOP_PINNED:gt.ID_PREFIX_BOTTOM_PINNED;c.id=u+l,c.rowPinned=t?"top":"bottom",c.setRowTop(s),c.setRowHeight(i.gridOptionsService.getRowHeightForNode(c).height),c.setRowIndex(l),s+=c.rowHeight,r.push(c)})}return r},n.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},n.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},n.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},n.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},n.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},n.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},n.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},n.prototype.forEachPinnedTopRow=function(e){Er(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},n.prototype.forEachPinnedBottomRow=function(e){Er(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},n.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},n.prototype.getTotalHeight=function(e){if(!e||e.length===0)return 0;var t=Nt(e);return t.rowTop+t.rowHeight},l_([b("beans")],n.prototype,"beans",void 0),l_([pe],n.prototype,"init",null),n=l_([Oe("pinnedRowModel")],n),n}(re);var Lg=function(){function o(n,e){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=n,this.pathRoot={rowNode:e,children:null},this.mapToItems[e.id]=this.pathRoot}return o.prototype.setInactive=function(){this.active=!1},o.prototype.isActive=function(){return this.active},o.prototype.depthFirstSearchChangedPath=function(n,e){if(n.children)for(var t=0;t<n.children.length;t++)this.depthFirstSearchChangedPath(n.children[t],e);e(n.rowNode)},o.prototype.depthFirstSearchEverything=function(n,e,t){if(n.childrenAfterGroup)for(var i=0;i<n.childrenAfterGroup.length;i++){var r=n.childrenAfterGroup[i];r.childrenAfterGroup?this.depthFirstSearchEverything(n.childrenAfterGroup[i],e,t):t&&e(r)}e(n)},o.prototype.forEachChangedNodeDepthFirst=function(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1),this.active&&!t?this.depthFirstSearchChangedPath(this.pathRoot,n):this.depthFirstSearchEverything(this.pathRoot.rowNode,n,e)},o.prototype.executeFromRootNode=function(n){n(this.pathRoot.rowNode)},o.prototype.createPathItems=function(n){for(var e=n,t=0;!this.mapToItems[e.id];){var i={rowNode:e,children:null};this.mapToItems[e.id]=i,t++,e=e.parent}return t},o.prototype.populateColumnsMap=function(n,e){var t=this;if(!(!this.keepingColumns||!e))for(var i=n;i;)this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={}),e.forEach(function(r){return t.nodeIdsToColumns[i.id][r.getId()]=!0}),i=i.parent},o.prototype.linkPathItems=function(n,e){for(var t=n,i=0;i<e;i++){var r=this.mapToItems[t.id],s=this.mapToItems[t.parent.id];s.children||(s.children=[]),s.children.push(r),t=t.parent}},o.prototype.addParentNode=function(n,e){if(!(!n||n.isRowPinned())){var t=this.createPathItems(n);this.linkPathItems(n,t),this.populateColumnsMap(n,e)}},o.prototype.canSkip=function(n){return this.active&&!this.mapToItems[n.id]},o.prototype.getValueColumnsForNode=function(n,e){if(!this.keepingColumns)return e;var t=this.nodeIdsToColumns[n.id],i=e.filter(function(r){return t[r.getId()]});return i},o.prototype.getNotValueColumnsForNode=function(n,e){if(!this.keepingColumns)return null;var t=this.nodeIdsToColumns[n.id],i=e.filter(function(r){return!t[r.getId()]});return i},o}(),Iee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),X_=function(o){Iee(n,o);function n(e){var t=o.call(this)||this;return t.state=n.STATE_WAITING_TO_LOAD,t.version=0,t.id=e,t}return n.prototype.getId=function(){return this.id},n.prototype.load=function(){this.state=n.STATE_LOADING,this.loadFromDatasource()},n.prototype.getVersion=function(){return this.version},n.prototype.setStateWaitingToLoad=function(){this.version++,this.state=n.STATE_WAITING_TO_LOAD},n.prototype.getState=function(){return this.state},n.prototype.pageLoadFailed=function(e){var t=this.isRequestMostRecentAndLive(e);t&&(this.state=n.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},n.prototype.success=function(e,t){this.successCommon(e,t)},n.prototype.pageLoaded=function(e,t,i){this.successCommon(e,{rowData:t,rowCount:i})},n.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,i=this.isAlive();return t&&i},n.prototype.successCommon=function(e,t){this.dispatchLoadCompleted();var i=this.isRequestMostRecentAndLive(e);i&&(this.state=n.STATE_LOADED,this.processServerResult(t))},n.prototype.dispatchLoadCompleted=function(e){e===void 0&&(e=!0);var t={type:n.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(t)},n.EVENT_LOAD_COMPLETE="loadComplete",n.STATE_WAITING_TO_LOAD="needsLoading",n.STATE_LOADING="loading",n.STATE_LOADED="loaded",n.STATE_FAILED="failed",n}(re),Pee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Vf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Mee=function(o,n){return function(e,t){n(e,t,o)}},Fee=function(o){Pee(n,o);function n(){var t=o!==null&&o.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}e=n,n.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var t=this.gridOptionsService.get("blockLoadDebounceMillis");t&&t>0&&(this.checkBlockToLoadDebounce=mt.debounce(this.performCheckBlocksToLoad.bind(this),t))},n.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},n.prototype.getMaxConcurrentDatasourceRequests=function(){var t=this.gridOptionsService.get("maxConcurrentDatasourceRequests");if(t==null)return 2;if(!(t<=0))return t},n.prototype.addBlock=function(t){this.blocks.push(t),t.addEventListener(X_.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},n.prototype.removeBlock=function(t){mt.removeFromArray(this.blocks,t)},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.active=!1},n.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:e.BLOCK_LOADED_EVENT}),this.activeBlockLoadsCount==0&&this.dispatchEvent({type:e.BLOCK_LOADER_FINISHED_EVENT})},n.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},n.prototype.performCheckBlocksToLoad=function(){if(this.active){if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){this.logger.log("checkBlockToLoad: max loads exceeded");return}var t=this.getAvailableLoadingCount(),i=this.blocks.filter(function(r){return r.getState()===X_.STATE_WAITING_TO_LOAD}).slice(0,t);this.registerLoads(i.length),i.forEach(function(r){return r.load()}),this.printCacheStatus()}},n.prototype.getBlockState=function(){if(this.gridOptionsService.isRowModelType("serverSide")){var t=this.rowModel;return t.getBlockStates()}var i={};return this.blocks.forEach(function(r){var s=r.getBlockStateJson(),a=s.id,l=s.state;i[a]=l}),i},n.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = ".concat(this.activeBlockLoadsCount,",")+" blocks = ".concat(JSON.stringify(this.getBlockState())))},n.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},n.prototype.registerLoads=function(t){this.activeBlockLoadsCount+=t},n.prototype.getAvailableLoadingCount=function(){return this.maxConcurrentRequests!==void 0?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0};var e;return n.BLOCK_LOADED_EVENT="blockLoaded",n.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Vf([b("rowModel")],n.prototype,"rowModel",void 0),Vf([pe],n.prototype,"postConstruct",null),Vf([Mee(0,Ur("loggerFactory"))],n.prototype,"setBeans",null),n=e=Vf([Oe("rowNodeBlockLoader")],n),n}(re),Aee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),c_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Nee=function(o){Aee(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return n.prototype.postConstruct=function(){this.active=this.gridOptionsService.get("pagination"),this.pageSizeFromGridOptions=this.gridOptionsService.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,T.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this)),this.onModelUpdated()},n.prototype.ensureRowHeightsValid=function(e,t,i,r){var s=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return s&&this.calculatePages(),s},n.prototype.isPaginateChildRows=function(){var e=this.gridOptionsService.get("groupRemoveSingleChildren")||this.gridOptionsService.get("groupRemoveLowestSingleChildren");return e?!0:this.gridOptionsService.get("paginateChildRows")},n.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:T.EVENT_PAGINATION_CHANGED,animate:e?e.animate:!1,newData:e?e.newData:!1,newPage:e?e.newPage:!1,newPageSize:e?e.newPageSize:!1,keepRenderedRows:e?e.keepRenderedRows:!1};this.eventService.dispatchEvent(t)},n.prototype.onPaginationGridOptionChanged=function(){this.active=this.gridOptionsService.get("pagination"),this.calculatePages();var e={type:T.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,newPageSize:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)},n.prototype.onPageSizeGridOptionChanged=function(){this.setPageSize(this.gridOptionsService.get("paginationPageSize"),"gridOptions")},n.prototype.goToPage=function(e){if(!(!this.active||this.currentPage===e||typeof this.currentPage!="number")){this.currentPage=e;var t={type:T.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,newPageSize:!1};this.onModelUpdated(t)}},n.prototype.getPixelOffset=function(){return this.pixelOffset},n.prototype.getRow=function(e){return this.rowModel.getRow(e)},n.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},n.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},n.prototype.getCurrentPageHeight=function(){return tt(this.topRowBounds)||tt(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},n.prototype.getCurrentPagePixelRange=function(){var e=this.topRowBounds?this.topRowBounds.rowTop:0,t=this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0;return{pageFirstPixel:e,pageLastPixel:t}},n.prototype.isRowPresent=function(e){if(!this.rowModel.isRowPresent(e))return!1;var t=e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex;return t},n.prototype.isEmpty=function(){return this.rowModel.isEmpty()},n.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},n.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},n.prototype.forEachNodeOnPage=function(e){for(var t=this.getPageFirstRow(),i=this.getPageLastRow(),r=t;r<=i;r++){var s=this.getRow(r);s&&e(s)}},n.prototype.getType=function(){return this.rowModel.getType()},n.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},n.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},n.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},n.prototype.getRowCount=function(){return this.rowModel.getRowCount()},n.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},n.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},n.prototype.isRowInPage=function(e){if(!this.active)return!0;var t=this.getPageForIndex(e.rowIndex);return t===this.currentPage},n.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},n.prototype.getCurrentPage=function(){return this.currentPage},n.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},n.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},n.prototype.goToFirstPage=function(){this.goToPage(0)},n.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},n.prototype.getPageSize=function(){return this.pageSize},n.prototype.getTotalPages=function(){return this.totalPages},n.prototype.setPage=function(e){this.currentPage=e},Object.defineProperty(n.prototype,"pageSize",{get:function(){return ne(this.pageSizeAutoCalculated)?this.pageSizeAutoCalculated:ne(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:ne(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:ne(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize},enumerable:!1,configurable:!0}),n.prototype.unsetAutoCalculatedPageSize=function(){if(this.pageSizeAutoCalculated!==void 0){var e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&this.onModelUpdated({type:T.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1,newPageSize:!0})}},n.prototype.setPageSize=function(e,t){var i=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}if(i!==this.pageSize){var r={type:T.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1,newPageSize:!0};this.onModelUpdated(r)}},n.prototype.calculatePages=function(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(ne(this.topRowBounds)?this.topRowBounds.rowTop:0)},n.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:T.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},n.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},n.prototype.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)},n.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0){this.setZeroRows();return}var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();var t=this.pageSize*this.currentPage,i=this.pageSize*(this.currentPage+1)-1;if(i>e&&(i=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),i===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var r=this.rowModel.getTopLevelRowDisplayedIndex(i+1);this.bottomDisplayedRowIndex=r-1}},n.prototype.getMasterRowCount=function(){return this.masterRowCount},n.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),this.masterRowCount===0){this.setZeroRows();return}var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)},n.prototype.calculatedPagesNotActive=function(){this.setPageSize(this.masterRowCount,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},c_([b("rowModel")],n.prototype,"rowModel",void 0),c_([pe],n.prototype,"postConstruct",null),n=c_([Oe("paginationProxy")],n),n}(re),Lee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),KO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},kee=function(o){Lee(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.processAllCellClasses=function(e,t,i,r){this.processClassRules(void 0,e.cellClassRules,t,i,r),this.processStaticCellClasses(e,t,i)},n.prototype.processClassRules=function(e,t,i,r,s){if(!(t==null&&e==null)){var a={},l={},c=function(v,y){v.split(" ").forEach(function(x){x.trim()!=""&&y(x)})};if(t)for(var u=Object.keys(t),d=function(v){var y=u[v],x=t[y],E;typeof x=="string"?E=p.expressionService.evaluate(x,i):typeof x=="function"&&(E=x(i)),c(y,function(z){E?a[z]=!0:l[z]=!0})},p=this,g=0;g<u.length;g++)d(g);e&&s&&Object.keys(e).forEach(function(v){return c(v,function(y){a[y]||(l[y]=!0)})}),s&&Object.keys(l).forEach(s),Object.keys(a).forEach(r)}},n.prototype.getStaticCellClasses=function(e,t){var i=e.cellClass;if(!i)return[];var r;if(typeof i=="function"){var s=i;r=s(t)}else r=i;return typeof r=="string"&&(r=[r]),r||[]},n.prototype.processStaticCellClasses=function(e,t,i){var r=this.getStaticCellClasses(e,t);r.forEach(function(s){i(s)})},KO([b("expressionService")],n.prototype,"expressionService",void 0),n=KO([Oe("stylingService")],n),n}(re),Vee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Gee=function(o){Vee(n,o);function n(e){return o.call(this,e,"ag-toggle-button")||this}return n.prototype.setValue=function(e,t){return o.prototype.setValue.call(this,e,t),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},n}(Ig),Hee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Bee=function(o){Hee(n,o);function n(e){return o.call(this,e,"ag-text-area",null,"textarea")||this}return n.prototype.setValue=function(e,t){var i=o.prototype.setValue.call(this,e,t);return this.eInput.value=e,i},n.prototype.setCols=function(e){return this.eInput.cols=e,this},n.prototype.setRows=function(e){return this.eInput.rows=e,this},n}(da),$ee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),jee=function(o){$ee(n,o);function n(e){return o.call(this,e,"ag-date-field","date")||this}return n.prototype.postConstruct=function(){var e=this;o.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this));var t=Zo();this.addManagedListener(this.eInput,"mousedown",function(){e.isDisabled()||t||e.eInput.focus()}),this.eInput.step="any"},n.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},n.prototype.setMin=function(e){var t,i=e instanceof Date?(t=qr(e??null,!1))!==null&&t!==void 0?t:void 0:e;return this.min===i?this:(this.min=i,Xo(this.eInput,"min",i),this)},n.prototype.setMax=function(e){var t,i=e instanceof Date?(t=qr(e??null,!1))!==null&&t!==void 0?t:void 0:e;return this.max===i?this:(this.max=i,Xo(this.eInput,"max",i),this)},n.prototype.setStep=function(e){return this.step===e?this:(this.step=e,Xo(this.eInput,"step",e),this)},n.prototype.getDate=function(){var e;if(this.eInput.validity.valid)return(e=rr(this.getValue()))!==null&&e!==void 0?e:void 0},n.prototype.setDate=function(e,t){this.setValue(qr(e??null,!1),t)},n}(dl),Wee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Uee=function(o){Wee(n,o);function n(e){return o.call(this,e,"ag-range-field","range")||this}return n.prototype.postConstruct=function(){o.prototype.postConstruct.call(this);var e=this.config,t=e.min,i=e.max,r=e.step;t!=null&&this.setMinValue(t),i!=null&&this.setMaxValue(i),this.setStep(r||1)},n.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(t){var i=t.target.value;e.setValue(i)})},n.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},n.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},n.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},n.prototype.setValue=function(e,t){this.min!=null&&(e=Math.max(parseFloat(e),this.min).toString()),this.max!=null&&(e=Math.min(parseFloat(e),this.max).toString());var i=o.prototype.setValue.call(this,e,t);return this.eInput.value=e,i},n}(da),Kee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),qO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},qee=function(o){Kee(n,o);function n(e,t){var i=o.call(this,'<div class="ag-rich-select-row" role="presentation"></div>')||this;return i.params=e,i.wrapperEl=t,i}return n.prototype.postConstruct=function(){this.addManagedListener(this.getGui(),"click",this.onClick.bind(this))},n.prototype.setState=function(e){var t="";this.params.valueFormatter&&(t=this.params.valueFormatter(e));var i=this.populateWithRenderer(e,t);i||this.populateWithoutRenderer(e,t),this.value=e},n.prototype.highlightString=function(e){var t=this.parsedValue;if(!(this.params.cellRenderer||!ne(t))){var i=ne(e);if(i){var r=t?.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(r>=0){var s=r+e.length,a=Yn(t.slice(0,r),!0),l=Yn(t.slice(r,s),!0),c=Yn(t.slice(s));this.renderValueWithoutRenderer("".concat(a,'<span class="ag-rich-select-row-text-highlight">').concat(l,"</span>").concat(c))}else i=!1}i||this.renderValueWithoutRenderer(t)}},n.prototype.updateHighlighted=function(e){var t,i=this.getGui(),r="ag-rich-select-row-".concat(this.getCompId());if((t=i.parentElement)===null||t===void 0||t.setAttribute("id",r),e){var s=this.getParentComponent().getAriaElement();a0(s,r),this.wrapperEl.setAttribute("data-active-option",r)}$c(i.parentElement,e),this.addOrRemoveCssClass("ag-rich-select-row-selected",e)},n.prototype.populateWithoutRenderer=function(e,t){var i=this.gridOptionsService.getDocument(),r=this.getGui(),s=i.createElement("span");s.style.overflow="hidden",s.style.textOverflow="ellipsis";var a=Yn(ne(t)?t:e,!0);this.parsedValue=ne(a)?a:null,r.appendChild(s),this.renderValueWithoutRenderer(a)},n.prototype.renderValueWithoutRenderer=function(e){var t=this.getGui().querySelector("span");t&&(t.innerHTML=ne(e)?e:"&nbsp;")},n.prototype.populateWithRenderer=function(e,t){var i=this,r,s;return this.params.cellRenderer&&(s=this.userComponentFactory.getCellRendererDetails(this.params,{value:e,valueFormatted:t})),s&&(r=s.newAgStackInstance()),r&&D0(r,this.getGui()),r?(r.then(function(a){i.addDestroyFunc(function(){i.getContext().destroyBean(a)})}),!0):!1},n.prototype.onClick=function(){var e=this.getParentComponent(),t={type:T.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:!1,value:this.value};e?.dispatchEvent(t)},qO([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),qO([pe],n.prototype,"postConstruct",null),n}(dt),Yee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Gf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},JR=function(o){Yee(n,o);function n(e){var t=o.call(this,n.getTemplate(e?.cssIdentifier||"default"))||this;t.renderedRows=new Map,t.rowHeight=20;var i=e||{},r=i.cssIdentifier,s=r===void 0?"default":r,a=i.ariaRole,l=a===void 0?"listbox":a,c=i.listName;return t.cssIdentifier=s,t.ariaRole=l,t.listName=c,t}return n.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}}),this.setAriaProperties(),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))},n.prototype.onGridStylesChanged=function(){this.rowHeight=this.getItemHeight(),this.refresh()},n.prototype.setAriaProperties=function(){var e=this.localeService.getLocaleTextFunc(),t=e("ariaDefaultListName",this.listName||"List"),i=this.eContainer;Qn(i,this.ariaRole),ma(i,t)},n.prototype.addResizeObserver=function(){var e=this,t=function(){return e.animationFrameService.requestAnimationFrame(function(){return e.drawVirtualRows()})},i=this.resizeObserverService.observeResize(this.getGui(),t);this.addDestroyFunc(i)},n.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},n.prototype.onFocusIn=function(e){var t=e.target;t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=WD(t)-1)},n.prototype.onFocusOut=function(e){this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)},n.prototype.handleKeyDown=function(e){switch(e.key){case q.UP:case q.DOWN:this.navigate(e.key===q.UP)&&e.preventDefault();break}},n.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():(So(e),this.forceFocusOutOfContainer(e.shiftKey))},n.prototype.navigate=function(e){if(this.lastFocusedRowIndex==null)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return t<0||t>=this.model.getRowCount()?!1:(this.focusRow(t),!0)},n.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},n.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout(function(){if(t.isAlive()){var i=t.renderedRows.get(e);i&&i.eDiv.focus()}},10)},n.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},n.prototype.forEachRenderedRow=function(e){this.renderedRows.forEach(function(t,i){return e(t.rowComponent,i)})},n.getTemplate=function(e){return'<div class="ag-virtual-list-viewport ag-'.concat(e,`-virtual-list-viewport" role="presentation">
  163. <div class="ag-virtual-list-container ag-`).concat(e,`-virtual-list-container" ref="eContainer"></div>
  164. </div>`)},n.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},n.prototype.ensureIndexVisible=function(e,t){t===void 0&&(t=!0);var i=this.model.getRowCount();if(typeof e!="number"||e<0||e>=i)return console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e),!1;var r=e*this.rowHeight,s=r+this.rowHeight,a=this.getGui(),l=a.scrollTop,c=a.offsetHeight,u=l+c,d=t?0:this.rowHeight,p=l>r+d,g=u<s-d;if(p)return a.scrollTop=r,!0;if(g){var v=s-c;return a.scrollTop=v,!0}return!1},n.prototype.setComponentCreator=function(e){this.componentCreator=e},n.prototype.setComponentUpdater=function(e){this.componentUpdater=e},n.prototype.getRowHeight=function(){return this.rowHeight},n.prototype.getScrollTop=function(){return this.getGui().scrollTop},n.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},n.prototype.refresh=function(e){var t=this;if(!(this.model==null||!this.isAlive())){var i=this.model.getRowCount();this.eContainer.style.height="".concat(i*this.rowHeight,"px"),e0(function(){return t.eContainer.clientHeight>=i*t.rowHeight},function(){t.isAlive()&&(t.canSoftRefresh(e)?t.drawVirtualRows(!0):(t.clearVirtualRows(),t.drawVirtualRows()))})}},n.prototype.canSoftRefresh=function(e){return!!(e&&this.renderedRows.size&&typeof this.model.areRowsEqual=="function"&&this.componentUpdater)},n.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(t,i){return e.removeRow(i)})},n.prototype.drawVirtualRows=function(e){if(!(!this.isAlive()||!this.model)){var t=this.getGui(),i=t.scrollTop,r=i+t.offsetHeight,s=Math.floor(i/this.rowHeight),a=Math.floor(r/this.rowHeight);this.ensureRowsRendered(s,a,e)}},n.prototype.ensureRowsRendered=function(e,t,i){var r=this;this.renderedRows.forEach(function(a,l){(l<e||l>t)&&l!==r.lastFocusedRowIndex&&r.removeRow(l)}),i&&this.refreshRows();for(var s=e;s<=t;s++)this.renderedRows.has(s)||s<this.model.getRowCount()&&this.insertRow(s)},n.prototype.insertRow=function(e){var t=this,i=this.model.getRow(e),r=document.createElement("div");r.classList.add("ag-virtual-list-item","ag-".concat(this.cssIdentifier,"-virtual-list-item")),Qn(r,this.ariaRole==="tree"?"treeitem":"option"),l0(r,this.model.getRowCount()),c0(r,e+1),r.setAttribute("tabindex","-1"),r.style.height="".concat(this.rowHeight,"px"),r.style.top="".concat(this.rowHeight*e,"px");var s=this.componentCreator(i,r);s.addGuiEventListener("focusin",function(){return t.lastFocusedRowIndex=e}),r.appendChild(s.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",r):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",r):this.eContainer.appendChild(r),this.renderedRows.set(e,{rowComponent:s,eDiv:r,value:i})},n.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},n.prototype.refreshRows=function(){var e=this,t=this.model.getRowCount();this.renderedRows.forEach(function(i,r){var s,a;if(r>=t)e.removeRow(r);else{var l=e.model.getRow(r);!((a=(s=e.model).areRowsEqual)===null||a===void 0)&&a.call(s,i.value,l)?e.componentUpdater(l,i.rowComponent):e.removeRow(r)}})},n.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){return e.drawVirtualRows()},{passive:!0})},n.prototype.setModel=function(e){this.model=e},n.prototype.getAriaElement=function(){return this.eContainer},n.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),o.prototype.destroy.call(this))},Gf([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Gf([b("animationFrameService")],n.prototype,"animationFrameService",void 0),Gf([Ce("eContainer")],n.prototype,"eContainer",void 0),Gf([pe],n.prototype,"postConstruct",null),n}(Jd),Qee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),_g=function(){return _g=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},_g.apply(this,arguments)},YO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Xee=`
  165. <div class="ag-picker-field" role="presentation">
  166. <div ref="eLabel"></div>
  167. <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed">
  168. <div ref="eDisplayField" class="ag-picker-field-display"></div>
  169. <ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>
  170. <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
  171. </div>
  172. </div>`,Zee=function(o){Qee(n,o);function n(e){var t=this,i,r;t=o.call(this,_g(_g({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"smallDown",ariaRole:"combobox",template:(i=e?.template)!==null&&i!==void 0?i:Xee,modalPicker:!1},e),{maxPickerHeight:(r=e?.maxPickerHeight)!==null&&r!==void 0?r:"calc(var(--ag-row-height) * 6.5)"}))||this,t.searchString="",t.highlightedItem=-1,t.lastRowHovered=-1,t.searchStringCreator=null;var s=e||{},a=s.cellRowHeight,l=s.value,c=s.valueList,u=s.searchStringCreator;return a!=null&&(t.cellRowHeight=a),l!==void 0&&(t.value=l),c!=null&&(t.values=c),u&&(t.searchStringCreator=u),t}return n.prototype.postConstruct=function(){var e=this;o.prototype.postConstruct.call(this),this.createLoadingElement(),this.createListComponent();var t=this.config,i=t.allowTyping,r=t.placeholder;i?(this.eInput.setAutoComplete(!1).setInputPlaceholder(r),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.eWrapper.tabIndex=this.gridOptionsService.get("tabIndex");var s=this.config.searchDebounceDelay,a=s===void 0?300:s;this.clearSearchString=zr(this.clearSearchString,a),this.renderSelectedValue(),i&&(this.eInput.onValueChange(function(l){return e.searchTextFromString(l)}),this.addManagedListener(this.eWrapper,"focus",this.onWrapperFocus.bind(this))),this.addManagedListener(this.eWrapper,"focusout",this.onWrapperFocusOut.bind(this))},n.prototype.createLoadingElement=function(){var e=this.gridOptionsService.getDocument(),t=this.localeService.getLocaleTextFunc(),i=e.createElement("div");i.classList.add("ag-loading-text"),i.innerText=t("loadingOoo","Loading..."),this.eLoading=i},n.prototype.createListComponent=function(){var e=this;this.listComponent=this.createBean(new JR({cssIdentifier:"rich-select"})),this.listComponent.setComponentCreator(this.createRowComponent.bind(this));var t=function(u,d){};this.listComponent.setComponentUpdater(t),this.listComponent.setParentComponent(this),this.addManagedListener(this.listComponent,T.EVENT_FIELD_PICKER_VALUE_SELECTED,function(u){e.onListValueSelected(u.value,u.fromEnterKey)});var i=this.cellRowHeight;i&&this.listComponent.setRowHeight(i);var r=this.listComponent.getGui(),s=this.listComponent.getAriaElement();this.addManagedListener(r,"mousemove",this.onPickerMouseMove.bind(this)),this.addManagedListener(r,"mousedown",function(u){return u.preventDefault()}),r.classList.add("ag-rich-select-list");var a="ag-rich-select-list-".concat(this.listComponent.getCompId());s.setAttribute("id",a);var l=this.localeService.getLocaleTextFunc(),c=l(this.config.pickerAriaLabelKey,this.config.pickerAriaLabelValue);ma(s,c),p0(this.eWrapper,s)},n.prototype.renderSelectedValue=function(){var e=this,t=this,i=t.value,r=t.eDisplayField,s=t.config,a=this.config,l=a.allowTyping,c=a.initialInputValue,u=this.config.valueFormatter?this.config.valueFormatter(i):i;if(l){this.eInput.setValue(c??u);return}var d;s.cellRenderer&&(d=this.userComponentFactory.getCellRendererDetails(this.config,{value:i,valueFormatted:u}));var p;if(d&&(p=d.newAgStackInstance()),p)ti(r),D0(p,r),p.then(function(v){e.addDestroyFunc(function(){return e.getContext().destroyBean(v)})});else if(ne(this.value))r.innerText=u,r.classList.remove("ag-display-as-placeholder");else{var g=s.placeholder;ne(g)?(r.innerHTML="".concat(Yn(g)),r.classList.add("ag-display-as-placeholder")):ti(r)}},n.prototype.getCurrentValueIndex=function(){var e=this,t=e.currentList,i=e.value;if(i==null||!t)return-1;for(var r=0;r<t.length;r++)if(t[r]===i)return r;return-1},n.prototype.highlightFilterMatch=function(){var e=this,t;(t=this.listComponent)===null||t===void 0||t.forEachRenderedRow(function(i,r){i.highlightString(e.searchString)})},n.prototype.highlightSelectedValue=function(e){var t=this,i;e==null&&(e=this.getCurrentValueIndex()),this.highlightedItem=e,(i=this.listComponent)===null||i===void 0||i.forEachRenderedRow(function(r,s){var a=e===-1?!1:t.highlightedItem===s;r.updateHighlighted(a)})},n.prototype.setRowHeight=function(e){e!==this.cellRowHeight&&(this.cellRowHeight=e),this.listComponent&&this.listComponent.setRowHeight(e)},n.prototype.createPickerComponent=function(){var e=this.values;return e&&this.setValueList({valueList:e}),this.listComponent},n.prototype.setSearchStringCreator=function(e){this.searchStringCreator=e},n.prototype.setValueList=function(e){var t=e.valueList,i=e.refresh;this.listComponent&&this.currentList!==t&&(this.currentList=t,this.listComponent.setModel({getRowCount:function(){return t.length},getRow:function(r){return t[r]},areRowsEqual:function(r,s){return r===s}}),i&&(this.values?this.listComponent.refresh(!0):(this.values=t,this.isPickerDisplayed&&this.showCurrentValueInPicker())))},n.prototype.showPicker=function(){o.prototype.showPicker.call(this),this.showCurrentValueInPicker(),this.displayOrHidePicker()},n.prototype.showCurrentValueInPicker=function(){var e,t;if(this.listComponent){if(!this.currentList){this.isPickerDisplayed&&this.eLoading&&this.listComponent.appendChild(this.eLoading);return}!((e=this.eLoading)===null||e===void 0)&&e.offsetParent&&((t=this.eLoading.parentElement)===null||t===void 0||t.removeChild(this.eLoading));var i=this.getCurrentValueIndex();i!==-1?(this.listComponent.refresh(),this.listComponent.ensureIndexVisible(i),this.listComponent.refresh(!0),this.highlightSelectedValue(i)):this.listComponent.refresh()}},n.prototype.beforeHidePicker=function(){this.highlightedItem=-1,o.prototype.beforeHidePicker.call(this)},n.prototype.onWrapperFocus=function(){if(this.eInput){var e=this.eInput.getFocusableElement();e.focus(),e.select()}},n.prototype.onWrapperFocusOut=function(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()},n.prototype.buildSearchStringFromKeyboardEvent=function(e){var t=e.key;if(t===q.BACKSPACE)this.searchString=this.searchString.slice(0,-1),t="";else if(!Dg(e))return;e.preventDefault(),this.searchTextFromCharacter(t)},n.prototype.searchTextFromCharacter=function(e){this.searchString+=e,this.runSearch(),this.clearSearchString()},n.prototype.searchTextFromString=function(e){e==null&&(e=""),this.searchString=e,this.runSearch()},n.prototype.buildSearchStrings=function(e){var t=this.config.valueFormatter,i=t===void 0?function(s){return s}:t,r;return typeof e[0]=="number"||typeof e[0]=="string"?r=e.map(function(s){return i(s)}):typeof e[0]=="object"&&this.searchStringCreator&&(r=this.searchStringCreator(e)),r},n.prototype.getSuggestionsAndFilteredValues=function(e,t){var i=this,r=[],s=[];if(!e.length)return{suggestions:r,filteredValues:s};var a=this.config,l=a.searchType,c=l===void 0?"fuzzy":l,u=a.filterList;if(c==="fuzzy"){var d=Zd(this.searchString,t,!0);r=d.values;var p=d.indices;if(u&&p.length)for(var g=0;g<p.length;g++)s.push(this.values[p[g]])}else r=t.filter(function(v,y){var x=v.toLocaleLowerCase(),E=i.searchString.toLocaleLowerCase(),z=c==="match"?x.startsWith(E):x.indexOf(E)!==-1;return u&&z&&s.push(i.values[y]),z});return{suggestions:r,filteredValues:s}},n.prototype.filterListModel=function(e){var t=this.config.filterList;t&&(this.setValueList({valueList:e,refresh:!0}),this.alignPickerToComponent())},n.prototype.runSearch=function(){var e,t,i=this.values,r=this.buildSearchStrings(i);if(!r){this.highlightSelectedValue(-1);return}var s=this.getSuggestionsAndFilteredValues(this.searchString,r),a=s.suggestions,l=s.filteredValues,c=this.config,u=c.filterList,d=c.highlightMatch,p=c.searchType,g=p===void 0?"fuzzy":p,v=l.length,y=!!(u&&this.searchString!=="");if(this.filterListModel(y?l:i),a.length){var x=y?0:r.indexOf(a[0]);this.selectListItem(x)}else if(this.highlightSelectedValue(-1),!y||v)(e=this.listComponent)===null||e===void 0||e.ensureIndexVisible(0);else if(y){this.getAriaElement().removeAttribute("data-active-option");var E=(t=this.listComponent)===null||t===void 0?void 0:t.getAriaElement();E&&a0(E,null)}d&&g!=="fuzzy"&&this.highlightFilterMatch(),this.displayOrHidePicker()},n.prototype.displayOrHidePicker=function(){var e,t=(e=this.listComponent)===null||e===void 0?void 0:e.getGui(),i=this.currentList?this.currentList.length===0:!1;t?.classList.toggle("ag-hidden",i)},n.prototype.clearSearchString=function(){this.searchString=""},n.prototype.selectListItem=function(e,t){if(!(!this.isPickerDisplayed||!this.currentList||!this.listComponent||e<0||e>=this.currentList.length)){var i=this.listComponent.ensureIndexVisible(e,!t);i&&!t&&this.listComponent.refresh(!0),this.highlightSelectedValue(e)}},n.prototype.setValue=function(e,t,i){var r=this.currentList?this.currentList.indexOf(e):-1;return r===-1?this:(this.value=e,i||this.selectListItem(r),this.renderSelectedValue(),o.prototype.setValue.call(this,e,t))},n.prototype.createRowComponent=function(e){var t=new qee(this.config,this.eWrapper);t.setParentComponent(this.listComponent),this.getContext().createBean(t),t.setState(e);var i=this.config,r=i.highlightMatch,s=i.searchType,a=s===void 0?"fuzzy":s;return r&&a!=="fuzzy"&&t.highlightString(this.searchString),t},n.prototype.getRowForMouseEvent=function(e){var t=this.listComponent;if(!t)return-1;var i=t?.getGui(),r=i.getBoundingClientRect(),s=t.getScrollTop(),a=e.clientY-r.top+s;return Math.floor(a/t.getRowHeight())},n.prototype.onPickerMouseMove=function(e){if(this.listComponent){var t=this.getRowForMouseEvent(e);t!==-1&&t!=this.lastRowHovered&&(this.lastRowHovered=t,this.selectListItem(t,!0))}},n.prototype.onNavigationKeyDown=function(e,t){e.preventDefault();var i=t===q.DOWN;if(!this.isPickerDisplayed&&i){this.showPicker();return}var r=this.highlightedItem,s=i?1:-1,a=r===-1?0:r+s;this.selectListItem(a)},n.prototype.onEnterKeyDown=function(e){this.isPickerDisplayed&&(e.preventDefault(),this.currentList&&this.onListValueSelected(this.currentList[this.highlightedItem],!0))},n.prototype.onTabKeyDown=function(){!this.isPickerDisplayed||!this.currentList||this.setValue(this.currentList[this.highlightedItem],!1,!0)},n.prototype.onListValueSelected=function(e,t){this.setValue(e,!1,!0),this.dispatchPickerEvent(e,t),this.hidePicker()},n.prototype.dispatchPickerEvent=function(e,t){var i={type:T.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:t,value:e};this.dispatchEvent(i)},n.prototype.getFocusableElement=function(){var e=this.config.allowTyping;return e?this.eInput.getFocusableElement():o.prototype.getFocusableElement.call(this)},n.prototype.onKeyDown=function(e){var t=e.key,i=this.config.allowTyping;switch(t){case q.LEFT:case q.RIGHT:case q.PAGE_HOME:case q.PAGE_END:i||e.preventDefault();break;case q.PAGE_UP:case q.PAGE_DOWN:e.preventDefault();break;case q.DOWN:case q.UP:this.onNavigationKeyDown(e,t);break;case q.ESCAPE:this.isPickerDisplayed&&(Dr(this.listComponent.getGui())&&(e.preventDefault(),So(e)),this.hidePicker());break;case q.ENTER:this.onEnterKeyDown(e);break;case q.TAB:this.onTabKeyDown();break;default:i||this.buildSearchStringFromKeyboardEvent(e)}},n.prototype.destroy=function(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),this.eLoading=void 0,o.prototype.destroy.call(this)},YO([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),YO([Ce("eInput")],n.prototype,"eInput",void 0),n}(DR),Jee=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Hf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ete=function(o){Jee(n,o);function n(e){var t=o.call(this,e,n.TEMPLATE)||this;return t.labelAlignment="top",t}return n.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},n.prototype.onValueChange=function(e){var t=this,i=T.EVENT_FIELD_VALUE_CHANGED;return this.addManagedListener(this.eText,i,function(){var r=parseFloat(t.eText.getValue());t.eSlider.setValue(r.toString(),!0),e(r||0)}),this.addManagedListener(this.eSlider,i,function(){var r=t.eSlider.getValue();t.eText.setValue(r,!0),e(parseFloat(r))}),this},n.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},n.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},n.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},n.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},n.prototype.getValue=function(){return this.eText.getValue()},n.prototype.setValue=function(e){return this.getValue()===e?this:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:T.EVENT_FIELD_VALUE_CHANGED}),this)},n.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},n.TEMPLATE=`<div class="ag-slider">
  173. <label ref="eLabel"></label>
  174. <div class="ag-wrapper ag-slider-wrapper">
  175. <ag-input-range ref="eSlider"></ag-input-range>
  176. <ag-input-number-field ref="eText"></ag-input-number-field>
  177. </div>
  178. </div>`,Hf([Ce("eLabel")],n.prototype,"eLabel",void 0),Hf([Ce("eSlider")],n.prototype,"eSlider",void 0),Hf([Ce("eText")],n.prototype,"eText",void 0),Hf([pe],n.prototype,"init",null),n}(zR),tte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),ia=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},nte=function(o){tte(n,o);function n(e){e===void 0&&(e={});var t=o.call(this,n.getTemplate(e))||this;t.suppressEnabledCheckbox=!0,t.suppressOpenCloseIcons=!1;var i=e.title,r=e.enabled,s=e.items,a=e.suppressEnabledCheckbox,l=e.suppressOpenCloseIcons;return t.title=i,t.cssIdentifier=e.cssIdentifier||"default",t.enabled=r??!0,t.items=s||[],t.alignItems=e.alignItems||"center",a!=null&&(t.suppressEnabledCheckbox=a),l!=null&&(t.suppressOpenCloseIcons=l),t}return n.getTemplate=function(e){var t=e.cssIdentifier||"default",i=e.direction||"vertical";return'<div class="ag-group ag-'.concat(t,`-group" role="presentation">
  179. <div class="ag-group-title-bar ag-`).concat(t,`-group-title-bar ag-unselectable" ref="eTitleBar" role="button">
  180. <span class="ag-group-title-bar-icon ag-`).concat(t,`-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>
  181. <span class="ag-group-title-bar-icon ag-`).concat(t,`-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>
  182. <span ref="eTitle" class="ag-group-title ag-`).concat(t,`-group-title"></span>
  183. </div>
  184. <div ref="eToolbar" class="ag-group-toolbar ag-`).concat(t,`-group-toolbar">
  185. <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>
  186. </div>
  187. <div ref="eContainer" class="ag-group-container ag-group-container-`).concat(i," ag-").concat(t,`-group-container"></div>
  188. </div>`)},n.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},n.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Wr("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Wr("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(t){switch(t.key){case q.ENTER:case q.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case q.RIGHT:case q.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===q.RIGHT);break}})},n.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Ts(this.eTitleBar,this.expanded)},n.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;It(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),It(this.eGroupOpenedIcon,e&&this.expanded),It(this.eGroupClosedIcon,e&&!this.expanded)},n.prototype.isExpanded=function(){return this.expanded},n.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-".concat(this.alignItems)),this.alignItems=e;var t="ag-group-item-alignment-".concat(this.alignItems);return this.addCssClass(t),this},n.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),It(this.eContainer,!0),this):(e=e??!this.expanded,this.expanded===e?this:(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),It(this.eContainer,e),this.dispatchEvent({type:this.expanded?n.EVENT_EXPANDED:n.EVENT_COLLAPSED}),this))},n.prototype.addItems=function(e){var t=this;e.forEach(function(i){return t.addItem(i)})},n.prototype.prependItem=function(e){this.insertItem(e,this.eContainer.firstChild)},n.prototype.addItem=function(e){this.insertItem(e,null)},n.prototype.insertItem=function(e,t){var i=this.eContainer,r=e instanceof dt?e.getGui():e;r.classList.add("ag-group-item","ag-".concat(this.cssIdentifier,"-group-item")),i.insertBefore(r,t),this.items.push(r)},n.prototype.hideItem=function(e,t){var i=this.items[t];It(i,!e)},n.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},n.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},n.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},n.prototype.isEnabled=function(){return this.enabled},n.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange(function(i){t.setEnabled(i,!0),e(i)}),this},n.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},n.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},n.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},n.EVENT_EXPANDED="expanded",n.EVENT_COLLAPSED="collapsed",ia([Ce("eTitleBar")],n.prototype,"eTitleBar",void 0),ia([Ce("eGroupOpenedIcon")],n.prototype,"eGroupOpenedIcon",void 0),ia([Ce("eGroupClosedIcon")],n.prototype,"eGroupClosedIcon",void 0),ia([Ce("eToolbar")],n.prototype,"eToolbar",void 0),ia([Ce("cbGroupEnabled")],n.prototype,"cbGroupEnabled",void 0),ia([Ce("eTitle")],n.prototype,"eTitle",void 0),ia([Ce("eContainer")],n.prototype,"eContainer",void 0),ia([pe],n.prototype,"postConstruct",null),n}(dt),ite=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),QO=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},rte=function(o){ite(n,o);function n(e,t){e===void 0&&(e=0);var i=o.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return i.level=e,i.menuItems=[],i.params=t??{column:null,node:null,value:null},i}return n.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.handleFocusIn(t)},onFocusOut:function(t){return e.handleFocusOut(t)}})},n.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),i=t&&t.getGui(),r=i&&i.classList.contains("ag-focus-managed");r||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},n.prototype.handleKeyDown=function(e){switch(e.key){case q.UP:case q.RIGHT:case q.DOWN:case q.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case q.ESCAPE:this.closeIfIsChild()&&So(e);break}},n.prototype.handleFocusIn=function(e){var t,i,r=e.relatedTarget;!this.tabGuardCtrl.isTabGuard(r)&&(this.getGui().contains(r)||!((i=(t=this.activeMenuItem)===null||t===void 0?void 0:t.getSubMenuGui())===null||i===void 0)&&i.contains(r))||(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())},n.prototype.handleFocusOut=function(e){var t,i=e.relatedTarget;!this.activeMenuItem||this.getGui().contains(i)||!((t=this.activeMenuItem.getSubMenuGui())===null||t===void 0)&&t.contains(i)||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()},n.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},n.prototype.addMenuItems=function(e){var t=this;e!=null&&Ni.all(e.map(function(i){return i==="separator"?Ni.resolve({eGui:t.createSeparator()}):typeof i=="string"?(console.warn("AG Grid: unrecognised menu item ".concat(i)),Ni.resolve({eGui:null})):t.addItem(i)})).then(function(i){i.forEach(function(r){r?.eGui&&(t.appendChild(r.eGui),r.comp&&t.menuItems.push(r.comp))})})},n.prototype.addItem=function(e){var t=this,i=this.createManagedBean(new Bf);return i.init({menuItemDef:e,isAnotherSubMenuOpen:function(){return t.menuItems.some(function(r){return r.isSubMenuOpen()})},level:this.level,contextParams:this.params}).then(function(){return i.setParentComponent(t),t.addManagedListener(i,Bf.EVENT_CLOSE_MENU,function(r){t.dispatchEvent(r)}),t.addManagedListener(i,Bf.EVENT_MENU_ITEM_ACTIVATED,function(r){t.activeMenuItem&&t.activeMenuItem!==r.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=r.menuItem}),{comp:i,eGui:i.getGui()}})},n.prototype.activateFirstItem=function(){var e=this.menuItems.filter(function(t){return!t.isDisabled()})[0];e&&e.activate()},n.prototype.createSeparator=function(){var e=`
  189. <div class="ag-menu-separator" aria-hidden="true">
  190. <div class="ag-menu-separator-part"></div>
  191. <div class="ag-menu-separator-part"></div>
  192. <div class="ag-menu-separator-part"></div>
  193. <div class="ag-menu-separator-part"></div>
  194. </div>`;return or(e)},n.prototype.handleNavKey=function(e){switch(e){case q.UP:case q.DOWN:var t=this.findNextItem(e===q.UP);t&&t!==this.activeMenuItem&&t.activate();return}var i=this.gridOptionsService.get("enableRtl")?q.RIGHT:q.LEFT;e===i?this.closeIfIsChild():this.openChild()},n.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();return t&&t instanceof Bf?(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus(),!0):!1},n.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},n.prototype.findNextItem=function(e){var t=this.menuItems.filter(function(l){return!l.isDisabled()});if(t.length){if(!this.activeMenuItem)return e?Nt(t):t[0];e&&t.reverse();for(var i,r=!1,s=0;s<t.length;s++){var a=t[s];if(!r){a===this.activeMenuItem&&(r=!0);continue}i=a;break}return r&&!i?t[0]:i||this.activeMenuItem}},n.prototype.destroy=function(){this.clearActiveItem(),o.prototype.destroy.call(this)},QO([b("focusService")],n.prototype,"focusService",void 0),QO([pe],n.prototype,"postConstruct",null),n}(Jd),ote=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),ste=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ate=function(o){ote(n,o);function n(e){var t=o.call(this)||this;return t.wrappedComponent=e,t.setTemplateFromElement(e.getGui()),t}return n.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},n.prototype.handleKeyDown=function(e){e.key===q.ESCAPE&&this.closePanel()},n.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},n.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},ste([pe],n.prototype,"postConstruct",null),n}(Jd),lte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),kd=function(){return kd=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},kd.apply(this,arguments)},u_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Bf=function(o){lte(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.isActive=!1,e.subMenuIsOpen=!1,e.subMenuIsOpening=!1,e.suppressRootStyles=!0,e.suppressAria=!0,e.suppressFocus=!0,e}return n.prototype.init=function(e){var t=this,i,r,s=e.menuItemDef,a=e.isAnotherSubMenuOpen,l=e.level,c=e.childComponent,u=e.contextParams;this.params=e.menuItemDef,this.level=l,this.isAnotherSubMenuOpen=a,this.childComponent=c,this.contextParams=u,this.cssClassPrefix=(r=(i=this.params.menuItemParams)===null||i===void 0?void 0:i.cssClassPrefix)!==null&&r!==void 0?r:"ag-menu-option";var d=this.userComponentFactory.getMenuItemCompDetails(this.params,kd(kd({},s),{level:l,isAnotherSubMenuOpen:a,openSubMenu:function(p){return t.openSubMenu(p)},closeSubMenu:function(){return t.closeSubMenu()},closeMenu:function(p){return t.closeMenu(p)},updateTooltip:function(p){return t.updateTooltip(p)},onItemActivated:function(){return t.onItemActivated()}}));return d.newAgStackInstance().then(function(p){var g;t.menuItemComp=p;var v=(g=p.configureDefaults)===null||g===void 0?void 0:g.call(p);v&&t.configureDefaults(v===!0?void 0:v)})},n.prototype.addListeners=function(e,t){var i=this;t?.suppressClick||this.addManagedListener(e,"click",function(r){return i.onItemSelected(r)}),t?.suppressKeyboardSelect||this.addManagedListener(e,"keydown",function(r){(r.key===q.ENTER||r.key===q.SPACE)&&(r.preventDefault(),i.onItemSelected(r))}),t?.suppressMouseDown||this.addManagedListener(e,"mousedown",function(r){r.stopPropagation(),r.preventDefault()}),t?.suppressMouseOver||(this.addManagedListener(e,"mouseenter",function(){return i.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return i.onMouseLeave()}))},n.prototype.isDisabled=function(){return!!this.params.disabled},n.prototype.openSubMenu=function(e){var t=this,i,r;if(e===void 0&&(e=!1),this.closeSubMenu(),!!this.params.subMenu){this.subMenuIsOpening=!0;var s=or('<div class="ag-menu" role="presentation"></div>');this.eSubMenuGui=s;var a,l=function(){t.subMenuIsOpening=!1};if(this.childComponent){var c=this.createBean(new ate(this.childComponent));c.setParentComponent(this);var u=c.getGui(),d="mouseenter",p=function(){return t.cancelDeactivate()};u.addEventListener(d,p),a=function(){return u.removeEventListener(d,p)},s.appendChild(u),this.childComponent.afterGuiAttached&&(l=function(){t.childComponent.afterGuiAttached(),t.subMenuIsOpening=!1})}else if(this.params.subMenu){var g=this.createBean(new rte(this.level+1,this.contextParams));g.setParentComponent(this),g.addMenuItems(this.params.subMenu),s.appendChild(g.getGui()),this.addManagedListener(g,n.EVENT_CLOSE_MENU,function(E){return t.dispatchEvent(E)}),g.addGuiEventListener("mouseenter",function(){return t.cancelDeactivate()}),a=function(){return t.destroyBean(g)},e&&(l=function(){g.activateFirstItem(),t.subMenuIsOpening=!1})}var v=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:this.eGui,ePopup:s}),y=this.localeService.getLocaleTextFunc(),x=this.popupService.addPopup({modal:!0,eChild:s,positionCallback:v,anchorToElement:this.eGui,ariaLabel:y("ariaLabelSubMenu","SubMenu"),afterGuiAttached:l});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=function(){var E,z;x&&x.hideFunc(),t.subMenuIsOpen=!1,t.setAriaExpanded(!1),a(),(z=(E=t.menuItemComp).setExpanded)===null||z===void 0||z.call(E,!1),t.eSubMenuGui=void 0},(r=(i=this.menuItemComp).setExpanded)===null||r===void 0||r.call(i,!0)}},n.prototype.setAriaExpanded=function(e){this.suppressAria||Ts(this.eGui,e)},n.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))},n.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},n.prototype.isSubMenuOpening=function(){return this.subMenuIsOpening},n.prototype.activate=function(e){var t=this,i,r;this.cancelActivate(),!this.params.disabled&&(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add("".concat(this.cssClassPrefix,"-active")),(r=(i=this.menuItemComp).setActive)===null||r===void 0||r.call(i,!0),this.suppressFocus||this.eGui.focus({preventScroll:!0}),e&&this.params.subMenu&&window.setTimeout(function(){t.isAlive()&&t.isActive&&t.openSubMenu()},300),this.onItemActivated())},n.prototype.deactivate=function(){var e,t;this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove("".concat(this.cssClassPrefix,"-active")),(t=(e=this.menuItemComp).setActive)===null||t===void 0||t.call(e,!1),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},n.prototype.getGui=function(){return this.menuItemComp.getGui()},n.prototype.getParentComponent=function(){return this.parentComponent},n.prototype.setParentComponent=function(e){this.parentComponent=e},n.prototype.getSubMenuGui=function(){return this.eSubMenuGui},n.prototype.onItemSelected=function(e){var t=this,i,r;(r=(i=this.menuItemComp).select)===null||r===void 0||r.call(i),this.params.action?this.getFrameworkOverrides().wrapOutgoing(function(){return t.params.action(t.gridOptionsService.addGridCommonParams(kd({},t.contextParams)))}):this.openSubMenu(e&&e.type==="keydown"),!(this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect)&&this.closeMenu(e)},n.prototype.closeMenu=function(e){var t={type:n.EVENT_CLOSE_MENU,event:e};this.dispatchEvent(t)},n.prototype.onItemActivated=function(){var e={type:n.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},n.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},n.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},n.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(function(){return e.activate(!0)},n.ACTIVATION_DELAY):this.activate(!0)},n.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(function(){return e.deactivate()},n.ACTIVATION_DELAY):this.deactivate()},n.prototype.configureDefaults=function(e){var t=this,i,r,s;if(this.tooltip=this.params.tooltip,!this.menuItemComp){setTimeout(function(){return t.configureDefaults(e)});return}var a=this.menuItemComp.getGui(),l=(r=(i=this.menuItemComp).getRootElement)===null||r===void 0?void 0:r.call(i);l&&(e?.suppressRootStyles||a.classList.add("ag-menu-option-custom"),a=l),this.eGui=a,this.suppressRootStyles=!!e?.suppressRootStyles,this.suppressRootStyles||(a.classList.add(this.cssClassPrefix),(s=this.params.cssClasses)===null||s===void 0||s.forEach(function(c){return a.classList.add(c)}),this.params.disabled&&a.classList.add("".concat(this.cssClassPrefix,"-disabled"))),e?.suppressTooltip||this.setTooltip(),this.suppressAria=!!e?.suppressAria,this.suppressAria||(Qn(a,"treeitem"),YD(a,this.level+1),this.params.disabled&&s0(a,!0)),e?.suppressTabIndex||a.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(a,e),this.suppressFocus=!!e?.suppressFocus},n.prototype.updateTooltip=function(e){this.tooltip=e,!this.tooltipFeature&&this.menuItemComp&&this.setTooltip()},n.prototype.setTooltip=function(){var e=this;this.tooltip&&(this.tooltipFeature=this.createManagedBean(new Fg({getGui:function(){return e.getGui()},getTooltipValue:function(){return e.tooltip},getLocation:function(){return"menu"}},this.beans)),this.tooltipFeature.setComp(this.getGui()))},n.EVENT_CLOSE_MENU="closeMenu",n.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",n.ACTIVATION_DELAY=80,u_([b("popupService")],n.prototype,"popupService",void 0),u_([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),u_([b("beans")],n.prototype,"beans",void 0),n}(re),cte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),_d=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ute=function(o){cte(n,o);function n(e){var t=o.call(this,n.getTemplate(e))||this;return t.config=e,t.closable=!0,t}return n.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-panel ag-'.concat(t,`-panel" tabindex="-1">
  195. <div ref="eTitleBar" class="ag-panel-title-bar ag-`).concat(t,`-panel-title-bar ag-unselectable">
  196. <span ref="eTitle" class="ag-panel-title-bar-title ag-`).concat(t,`-panel-title-bar-title"></span>
  197. <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-`).concat(t,`-panel-title-bar-buttons"></div>
  198. </div>
  199. <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-`).concat(t,`-panel-content-wrapper"></div>
  200. </div>`)},n.prototype.postConstruct=function(){var e=this,t=this.config,i=t.component,r=t.closable,s=t.hideTitleBar,a=t.title,l=t.minWidth,c=l===void 0?250:l,u=t.width,d=t.minHeight,p=d===void 0?250:d,g=t.height,v=t.centered,y=t.popup,x=t.x,E=t.y;this.positionableFeature=new xR(this.getGui(),{minWidth:c,width:u,minHeight:p,height:g,centered:v,x,y:E,popup:y,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var z=this.getGui();i&&this.setBodyComponent(i),s?It(this.eTitleBar,!1):(a&&this.setTitle(a),this.setClosable(r??this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(M){var G=e.gridOptionsService.getDocument();if(z.contains(M.relatedTarget)||z.contains(G.activeElement)||e.eTitleBarButtons.contains(M.target)){M.preventDefault();return}var U=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");U&&U.focus()}),!(y&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},n.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},n.prototype.getHeight=function(){return this.positionableFeature.getHeight()},n.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},n.prototype.getWidth=function(){return this.positionableFeature.getWidth()},n.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},n.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var t=this.closeButtonComp=new dt(n.CLOSE_BTN_TEMPLATE);this.getContext().createBean(t);var i=t.getGui(),r=Gn("close",this.gridOptionsService);r.classList.add("ag-panel-title-bar-button-icon"),i.appendChild(r),this.addTitleBarButton(t),t.addManagedListener(i,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var i=this.closeButtonComp.getGui();i.parentElement.removeChild(i),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},n.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},n.prototype.addTitleBarButton=function(e,t){var i=this.eTitleBarButtons,r=i.children,s=r.length;t==null&&(t=s),t=Math.max(0,Math.min(t,s)),e.addCssClass("ag-panel-title-bar-button");var a=e.getGui();t===0?i.insertAdjacentElement("afterbegin",a):t===s?i.insertAdjacentElement("beforeend",a):r[t-1].insertAdjacentElement("afterend",a),e.setParentComponent(this)},n.prototype.getBodyHeight=function(){return Qd(this.eContentWrapper)},n.prototype.getBodyWidth=function(){return cl(this.eContentWrapper)},n.prototype.setTitle=function(e){this.eTitle.innerText=e},n.prototype.onBtClose=function(){this.close()},n.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&Dr(e)&&this.close(),o.prototype.destroy.call(this)},n.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',_d([Ce("eContentWrapper")],n.prototype,"eContentWrapper",void 0),_d([Ce("eTitleBar")],n.prototype,"eTitleBar",void 0),_d([Ce("eTitleBarButtons")],n.prototype,"eTitleBarButtons",void 0),_d([Ce("eTitle")],n.prototype,"eTitle",void 0),_d([pe],n.prototype,"postConstruct",null),n}(dt),dte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Sg=function(){return Sg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Sg.apply(this,arguments)},pte=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Dwe=function(o){dte(n,o);function n(e){var t=o.call(this,Sg(Sg({},e),{popup:!0}))||this;return t.isMaximizable=!1,t.isMaximized=!1,t.maximizeListeners=[],t.resizeListenerDestroy=null,t.lastPosition={x:0,y:0,width:0,height:0},t}return n.prototype.postConstruct=function(){var e=this,t=this.getGui(),i=this.config,r=i.movable,s=i.resizable,a=i.maximizable;this.addCssClass("ag-dialog"),o.prototype.postConstruct.call(this),this.addManagedListener(t,"focusin",function(l){t.contains(l.relatedTarget)||e.popupService.bringPopupToFront(t)}),r&&this.setMovable(r),a&&this.setMaximizable(a),s&&this.setResizable(s)},n.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,i=t.alwaysOnTop,r=t.modal,s=t.title,a=t.afterGuiAttached,l=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:r,eChild:e,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:i,ariaLabel:s||l("ariaLabelDialog","Dialog"),afterGuiAttached:a});c&&(this.close=c.hideFunc)},n.prototype.onClosed=function(e){var t,i;this.destroy(),(i=(t=this.config).closedCallback)===null||i===void 0||i.call(t,e)},n.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,i=t.x,r=t.y,s=t.width,a=t.height;this.setWidth(s),this.setHeight(a),this.positionableFeature.offsetElement(i,r)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},n.prototype.refreshMaximizeIcon=function(){It(this.maximizeIcon,!this.isMaximized),It(this.minimizeIcon,this.isMaximized)},n.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},n.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),o.prototype.destroy.call(this)},n.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},n.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},n.prototype.setMaximizable=function(e){var t=this;if(!e){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}var i=this.eTitleBar;if(!(!i||e===this.isMaximizable)){var r=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),r.addManagedListener(r.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(r,0),this.maximizeListeners.push(this.addManagedListener(i,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){t.isMaximized=!1,t.refreshMaximizeIcon()})}},n.prototype.buildMaximizeAndMinimizeElements=function(){var e=this.maximizeButtonComp=this.createBean(new dt('<div class="ag-dialog-button"></span>')),t=e.getGui();return this.maximizeIcon=Gn("maximize",this.gridOptionsService),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=Gn("minimize",this.gridOptionsService),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e},pte([b("popupService")],n.prototype,"popupService",void 0),n}(ute),hte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),wg=function(){return wg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},wg.apply(this,arguments)},Sd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},XO=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},ZO=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},JO=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Za=function(o){return o[o.vertical=0]="vertical",o[o.horizontal=1]="horizontal",o}(Za||{}),fte=0,gte=function(o){hte(n,o);function n(){var t=o!==null&&o.apply(this,arguments)||this;return t.popupList=[],t}e=n,n.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady(function(i){t.gridCtrl=i.gridCtrl}),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,this.handleThemeChange.bind(this))},n.prototype.getPopupParent=function(){var t=this.gridOptionsService.get("popupParent");return t||this.gridCtrl.getGui()},n.prototype.positionPopupForMenu=function(t){var i=t.eventSource,r=t.ePopup,s=this.getPopupIndex(r);if(s!==-1){var a=this.popupList[s];a.alignedToElement=i}var l=i.getBoundingClientRect(),c=this.getParentRect(),u=this.keepXYWithinBounds(r,l.top-c.top,Za.vertical),d=r.clientWidth>0?r.clientWidth:200;r.style.minWidth="".concat(d,"px");var p=c.right-c.left,g=p-d,v;this.gridOptionsService.get("enableRtl")?(v=x(),v<0&&(v=y(),this.setAlignedStyles(r,"left")),v>g&&(v=0,this.setAlignedStyles(r,"right"))):(v=y(),v>g&&(v=x(),this.setAlignedStyles(r,"right")),v<0&&(v=0,this.setAlignedStyles(r,"left"))),r.style.left="".concat(v,"px"),r.style.top="".concat(u,"px");function y(){return l.right-c.left-2}function x(){return l.left-c.left-d}},n.prototype.positionPopupUnderMouseEvent=function(t){var i=this,r=t.ePopup,s=t.nudgeX,a=t.nudgeY,l=t.skipObserver;this.positionPopup({ePopup:r,nudgeX:s,nudgeY:a,keepWithinBounds:!0,skipObserver:l,updatePosition:function(){return i.calculatePointerAlign(t.mouseEvent)},postProcessCallback:function(){return i.callPostProcessPopup(t.type,t.ePopup,null,t.mouseEvent,t.column,t.rowNode)}})},n.prototype.calculatePointerAlign=function(t){var i=this.getParentRect();return{x:t.clientX-i.left,y:t.clientY-i.top}},n.prototype.positionPopupByComponent=function(t){var i=this,r=t.ePopup,s=t.nudgeX,a=t.nudgeY,l=t.keepWithinBounds,c=t.eventSource,u=t.alignSide,d=u===void 0?"left":u,p=t.position,g=p===void 0?"over":p,v=t.column,y=t.rowNode,x=t.type,E=c.getBoundingClientRect(),z=this.getParentRect(),M=this.getPopupIndex(r);if(M!==-1){var G=this.popupList[M];G.alignedToElement=c}var U=function(){var se=E.left-z.left;d==="right"&&(se-=r.offsetWidth-E.width);var ve;if(g==="over")ve=E.top-z.top,i.setAlignedStyles(r,"over");else{i.setAlignedStyles(r,"under");var he=i.shouldRenderUnderOrAbove(r,E,z,t.nudgeY||0);he==="under"?ve=E.top-z.top+E.height:ve=E.top-r.offsetHeight-(a||0)*2-z.top}return{x:se,y:ve}};this.positionPopup({ePopup:r,nudgeX:s,nudgeY:a,keepWithinBounds:l,updatePosition:U,postProcessCallback:function(){return i.callPostProcessPopup(x,r,c,null,v,y)}})},n.prototype.shouldRenderUnderOrAbove=function(t,i,r,s){var a=r.bottom-i.bottom,l=i.top-r.top,c=t.offsetHeight+s;return a>c?"under":l>c||l>a?"above":"under"},n.prototype.setAlignedStyles=function(t,i){var r=this.getPopupIndex(t);if(r!==-1){var s=this.popupList[r],a=s.alignedToElement;if(a){var l=["right","left","over","above","under"];l.forEach(function(c){a.classList.remove("ag-has-popup-positioned-".concat(c)),t.classList.remove("ag-popup-positioned-".concat(c))}),i&&(a.classList.add("ag-has-popup-positioned-".concat(i)),t.classList.add("ag-popup-positioned-".concat(i)))}}},n.prototype.callPostProcessPopup=function(t,i,r,s,a,l){var c=this.gridOptionsService.getCallback("postProcessPopup");if(c){var u={column:a,rowNode:l,ePopup:i,type:t,eventSource:r,mouseEvent:s};c(u)}},n.prototype.positionPopup=function(t){var i=this,r=t.ePopup,s=t.keepWithinBounds,a=t.nudgeX,l=t.nudgeY,c=t.skipObserver,u=t.updatePosition,d={width:0,height:0},p=function(v){v===void 0&&(v=!1);var y=u(),x=y.x,E=y.y;v&&r.clientWidth===d.width&&r.clientHeight===d.height||(d.width=r.clientWidth,d.height=r.clientHeight,a&&(x+=a),l&&(E+=l),s&&(x=i.keepXYWithinBounds(r,x,Za.horizontal),E=i.keepXYWithinBounds(r,E,Za.vertical)),r.style.left="".concat(x,"px"),r.style.top="".concat(E,"px"),t.postProcessCallback&&t.postProcessCallback())};if(p(),!c){var g=this.resizeObserverService.observeResize(r,function(){return p(!0)});setTimeout(function(){return g()},e.WAIT_FOR_POPUP_CONTENT_RESIZE)}},n.prototype.getActivePopups=function(){return this.popupList.map(function(t){return t.element})},n.prototype.getPopupList=function(){return this.popupList},n.prototype.getParentRect=function(){var t=this.gridOptionsService.getDocument(),i=this.getPopupParent();return i===t.body?i=t.documentElement:getComputedStyle(i).position==="static"&&(i=i.offsetParent),b0(i)},n.prototype.keepXYWithinBounds=function(t,i,r){var s=r===Za.vertical,a=s?"clientHeight":"clientWidth",l=s?"top":"left",c=s?"offsetHeight":"offsetWidth",u=s?"scrollTop":"scrollLeft",d=this.gridOptionsService.getDocument(),p=d.documentElement,g=this.getPopupParent(),v=g.getBoundingClientRect(),y=d.documentElement.getBoundingClientRect(),x=g===d.body,E=t[c],z=s?w0:Bd,M=x?z(p)+p[u]:g[a];x&&(M-=Math.abs(y[l]-v[l]));var G=M-E;return Math.min(Math.max(i,0),Math.abs(G))},n.prototype.addPopup=function(t){var i=this.gridOptionsService.getDocument(),r=t.eChild,s=t.ariaLabel,a=t.alwaysOnTop,l=t.positionCallback,c=t.anchorToElement;if(!i)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){}};var u=this.getPopupIndex(r);if(u!==-1){var d=this.popupList[u];return{hideFunc:d.hideFunc}}this.initialisePopupPosition(r);var p=this.createPopupWrapper(r,s,!!a),g=this.addEventListenersToPopup(wg(wg({},t),{wrapperEl:p}));return l&&l(),this.addPopupToPopupList(r,p,g,c),{hideFunc:g}},n.prototype.initialisePopupPosition=function(t){var i=this.getPopupParent(),r=i.getBoundingClientRect();ne(t.style.top)||(t.style.top="".concat(r.top*-1,"px")),ne(t.style.left)||(t.style.left="".concat(r.left*-1,"px"))},n.prototype.createPopupWrapper=function(t,i,r){var s,a=this.getPopupParent(),l=document.createElement("div"),c=this.environment.getTheme().allThemes;return c.length&&(s=l.classList).add.apply(s,ZO([],XO(c),!1)),l.classList.add("ag-popup"),t.classList.add(this.gridOptionsService.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),t.hasAttribute("role")||Qn(t,"dialog"),ma(t,i),l.appendChild(t),a.appendChild(l),r?this.setAlwaysOnTop(t,!0):this.bringPopupToFront(t),l},n.prototype.handleThemeChange=function(){var t,i,r,s,a,l=this.environment.getTheme().allThemes;try{for(var c=JO(this.popupList),u=c.next();!u.done;u=c.next()){var d=u.value;try{for(var p=(r=void 0,JO(Array.from(d.wrapper.classList))),g=p.next();!g.done;g=p.next()){var v=g.value;v.startsWith("ag-theme-")&&d.wrapper.classList.remove(v)}}catch(y){r={error:y}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(r)throw r.error}}l.length&&(a=d.wrapper.classList).add.apply(a,ZO([],XO(l),!1))}}catch(y){t={error:y}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}},n.prototype.addEventListenersToPopup=function(t){var i=this,r=this.gridOptionsService.getDocument(),s=this.getPopupParent(),a=t.wrapperEl,l=t.eChild;t.click;var c=t.closedCallback,u=t.afterGuiAttached,d=t.closeOnEsc,p=t.modal,g=!1,v=function(z){if(a.contains(r.activeElement)){var M=z.key;M===q.ESCAPE&&!_o(z)&&E({keyboardEvent:z})}},y=function(z){return E({mouseEvent:z})},x=function(z){return E({touchEvent:z})},E=function(z){z===void 0&&(z={});var M=z.mouseEvent,G=z.touchEvent,U=z.keyboardEvent;i.isEventFromCurrentPopup({mouseEvent:M,touchEvent:G},l)||g||(g=!0,s.removeChild(a),r.removeEventListener("keydown",v),r.removeEventListener("mousedown",y),r.removeEventListener("touchstart",x),r.removeEventListener("contextmenu",y),i.eventService.removeEventListener(T.EVENT_DRAG_STARTED,y),c&&c(M||G||U),i.removePopupFromPopupList(l))};return u&&u({hidePopup:E}),window.setTimeout(function(){d&&r.addEventListener("keydown",v),p&&(r.addEventListener("mousedown",y),i.eventService.addEventListener(T.EVENT_DRAG_STARTED,y),r.addEventListener("touchstart",x),r.addEventListener("contextmenu",y))},0),E},n.prototype.addPopupToPopupList=function(t,i,r,s){this.popupList.push({element:t,wrapper:i,hideFunc:r,instanceId:fte++,isAnchored:!!s}),s&&this.setPopupPositionRelatedToElement(t,s)},n.prototype.getPopupIndex=function(t){return this.popupList.findIndex(function(i){return i.element===t})},n.prototype.setPopupPositionRelatedToElement=function(t,i){var r=this.getPopupIndex(t);if(r!==-1){var s=this.popupList[r];if(s.stopAnchoringPromise&&s.stopAnchoringPromise.then(function(l){return l&&l()}),s.stopAnchoringPromise=void 0,s.isAnchored=!1,!!i){var a=this.keepPopupPositionedRelativeTo({element:i,ePopup:t,hidePopup:s.hideFunc});return s.stopAnchoringPromise=a,s.isAnchored=!0,a}}},n.prototype.removePopupFromPopupList=function(t){this.setAlignedStyles(t,null),this.setPopupPositionRelatedToElement(t,null),this.popupList=this.popupList.filter(function(i){return i.element!==t})},n.prototype.keepPopupPositionedRelativeTo=function(t){var i=this,r=this.getPopupParent(),s=r.getBoundingClientRect(),a=t.element,l=t.ePopup,c=a.getBoundingClientRect(),u=s.top-c.top,d=s.left-c.left,p=u,g=d,v=l.style.top,y=parseInt(v.substring(0,v.length-1),10),x=l.style.left,E=parseInt(x.substring(0,x.length-1),10);return new Ni(function(z){i.getFrameworkOverrides().setInterval(function(){var M=r.getBoundingClientRect(),G=a.getBoundingClientRect(),U=G.top==0&&G.left==0&&G.height==0&&G.width==0;if(U){t.hidePopup();return}var se=M.top-G.top;if(se!=p){var ve=i.keepXYWithinBounds(l,y+u-se,Za.vertical);l.style.top="".concat(ve,"px")}p=se;var he=M.left-G.left;if(he!=g){var be=i.keepXYWithinBounds(l,E+d-he,Za.horizontal);l.style.left="".concat(be,"px")}g=he},200).then(function(M){var G=function(){M!=null&&window.clearInterval(M)};z(G)})})},n.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(t){return t.isAnchored})},n.prototype.isEventFromCurrentPopup=function(t,i){var r=t.mouseEvent,s=t.touchEvent,a=r||s;if(!a)return!1;var l=this.getPopupIndex(i);if(l===-1)return!1;for(var c=l;c<this.popupList.length;c++){var u=this.popupList[c];if(ag(u.element,a))return!0}return this.isElementWithinCustomPopup(a.target)},n.prototype.isElementWithinCustomPopup=function(t){for(var i=this.gridOptionsService.getDocument();t&&t!==i.body;){if(t.classList.contains("ag-custom-component-popup")||t.parentElement===null)return!0;t=t.parentElement}return!1},n.prototype.getWrapper=function(t){for(;!t.classList.contains("ag-popup")&&t.parentElement;)t=t.parentElement;return t.classList.contains("ag-popup")?t:null},n.prototype.setAlwaysOnTop=function(t,i){var r=this.getWrapper(t);r&&(r.classList.toggle("ag-always-on-top",!!i),i&&this.bringPopupToFront(r))},n.prototype.bringPopupToFront=function(t){var i=this.getPopupParent(),r=Array.prototype.slice.call(i.querySelectorAll(".ag-popup")),s=r.length,a=Array.prototype.slice.call(i.querySelectorAll(".ag-popup.ag-always-on-top")),l=a.length,c=this.getWrapper(t);if(!(!c||s<=1||!i.contains(t))){var u=r.indexOf(c),d=c.querySelectorAll("div"),p=[];if(d.forEach(function(x){x.scrollTop!==0&&p.push([x,x.scrollTop])}),l){var g=c.classList.contains("ag-always-on-top");g?u!==s-1&&Nt(a).insertAdjacentElement("afterend",c):u!==s-l-1&&a[0].insertAdjacentElement("beforebegin",c)}else u!==s-1&&Nt(r).insertAdjacentElement("afterend",c);for(;p.length;){var v=p.pop();v[0].scrollTop=v[1]}var y={type:"popupToFront",eWrapper:c};this.eventService.dispatchEvent(y)}};var e;return n.WAIT_FOR_POPUP_CONTENT_RESIZE=200,Sd([b("focusService")],n.prototype,"focusService",void 0),Sd([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Sd([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Sd([pe],n.prototype,"postConstruct",null),n=e=Sd([Oe("popupService")],n),n}(re),mte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),vte=function(o){mte(n,o);function n(){var e=o.call(this,`
  201. <div class="ag-autocomplete-row" role="presentation">
  202. <div class="ag-autocomplete-row-label"></div>
  203. </div>`)||this;return e.hasHighlighting=!1,e}return n.prototype.setState=function(e,t){this.value=e,this.render(),this.updateSelected(t)},n.prototype.updateSelected=function(e){this.addOrRemoveCssClass("ag-autocomplete-row-selected",e)},n.prototype.setSearchString=function(e){var t,i=!1;if(ne(e)){var r=(t=this.value)===null||t===void 0?void 0:t.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(r>=0){i=!0,this.hasHighlighting=!0;var s=r+e.length,a=Yn(this.value.slice(0,r)),l=Yn(this.value.slice(r,s)),c=Yn(this.value.slice(s));this.getGui().lastElementChild.innerHTML="".concat(a,"<b>").concat(l,"</b>").concat(c)}}!i&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())},n.prototype.render=function(){var e;this.getGui().lastElementChild.innerHTML=(e=Yn(this.value))!==null&&e!==void 0?e:"&nbsp;"},n}(dt),yte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),eD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Cte=function(o){yte(n,o);function n(e){var t=o.call(this,n.TEMPLATE)||this;return t.params=e,t.searchString="",t}return n.prototype.destroy=function(){o.prototype.destroy.call(this)},n.prototype.init=function(){var e=this;this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new JR({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:function(){return e.autocompleteEntries.length},getRow:function(i){return e.autocompleteEntries[i]}});var t=this.virtualList.getGui();this.addManagedListener(t,"click",function(){return e.params.onConfirmed()}),this.addManagedListener(t,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(t,"mousedown",function(i){return i.preventDefault()}),this.setSelectedValue(0)},n.prototype.onNavigationKeyDown=function(e,t){e.preventDefault();var i=this.autocompleteEntries.indexOf(this.selectedValue),r=t===q.UP?i-1:i+1;this.checkSetSelectedValue(r)},n.prototype.setSearch=function(e){this.searchString=e,ne(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()},n.prototype.runContainsSearch=function(e,t){var i,r=!1,s=e.toLocaleLowerCase(),a=t.filter(function(l){var c=l.toLocaleLowerCase(),u=c.indexOf(s),d=u===0,p=u>=0;return p&&(!i||!r&&d||r===d&&l.length<i.length)&&(i=l,r=d),p});return!i&&a.length&&(i=a[0]),{topMatch:i,allMatches:a}},n.prototype.runSearch=function(){var e,t,i=this.params.autocompleteEntries,r=i.map(function(d){var p;return(p=d.displayValue)!==null&&p!==void 0?p:d.key}),s,a;if(this.params.useFuzzySearch)s=Zd(this.searchString,r,!0).values,a=s.length?s[0]:void 0;else{var l=this.runContainsSearch(this.searchString,r);s=l.allMatches,a=l.topMatch}var c=i.filter(function(d){var p=d.key,g=d.displayValue;return s.includes(g??p)});if(!c.length&&this.selectedValue&&(!((t=(e=this.params)===null||e===void 0?void 0:e.forceLastSelection)===null||t===void 0)&&t.call(e,this.selectedValue,this.searchString))&&(c=[this.selectedValue]),this.autocompleteEntries=c,this.virtualList.refresh(),!!a){var u=s.indexOf(a);this.checkSetSelectedValue(u)}},n.prototype.updateSearchInList=function(){var e=this;this.virtualList.forEachRenderedRow(function(t){return t.setSearchString(e.searchString)})},n.prototype.checkSetSelectedValue=function(e){e>=0&&e<this.autocompleteEntries.length&&this.setSelectedValue(e)},n.prototype.setSelectedValue=function(e){var t=this.autocompleteEntries[e];this.selectedValue!==t&&(this.selectedValue=t,this.virtualList.ensureIndexVisible(e),this.virtualList.forEachRenderedRow(function(i,r){i.updateSelected(e===r)}))},n.prototype.createRowComponent=function(e){var t,i=new vte;return this.getContext().createBean(i),i.setState((t=e.displayValue)!==null&&t!==void 0?t:e.key,e===this.selectedValue),i},n.prototype.onMouseMove=function(e){var t=this.virtualList.getGui().getBoundingClientRect(),i=this.virtualList.getScrollTop(),r=e.clientY-t.top+i,s=Math.floor(r/this.virtualList.getRowHeight());this.checkSetSelectedValue(s)},n.prototype.afterGuiAttached=function(){this.virtualList.refresh()},n.prototype.getSelectedValue=function(){var e;return this.autocompleteEntries.length&&(e=this.selectedValue)!==null&&e!==void 0?e:null},n.TEMPLATE=`<div class="ag-autocomplete-list-popup">
  204. <div ref="eList" class="ag-autocomplete-list"></div>
  205. <div>`,eD([Ce("eList")],n.prototype,"eList",void 0),eD([pe],n.prototype,"init",null),n}(pl),_te=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),d_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Ste=function(o){_te(n,o);function n(){var e=o.call(this,`
  206. <div class="ag-autocomplete" role="presentation">
  207. <ag-input-text-field ref="eAutocompleteInput"></ag-input-text-field>
  208. </div>`)||this;return e.isListOpen=!1,e.lastPosition=0,e.valid=!0,e}return n.prototype.postConstruct=function(){var e=this;this.eAutocompleteInput.onValueChange(function(t){return e.onValueChanged(t)}),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(function(){e.destroyBean(e.autocompleteList)}),this.addGuiEventListener("focusout",function(){return e.onFocusOut()})},n.prototype.onValueChanged=function(e){var t=Qo(e);this.updateValue(t),this.updateAutocompleteList(t)},n.prototype.updateValue=function(e){this.updateLastPosition(),this.dispatchEvent({type:n.EVENT_VALUE_CHANGED,value:e}),this.validate(e)},n.prototype.updateAutocompleteList=function(e){var t,i,r,s,a=(i=(t=this.listGenerator)===null||t===void 0?void 0:t.call(this,e,this.lastPosition))!==null&&i!==void 0?i:{enabled:!1};if((!a.type||a.type!==((r=this.autocompleteListParams)===null||r===void 0?void 0:r.type))&&this.isListOpen&&this.closeList(),this.autocompleteListParams=a,!((s=this.autocompleteListParams)===null||s===void 0)&&s.enabled){this.isListOpen||this.openList();var l=this.autocompleteListParams.searchString;this.autocompleteList.setSearch(l??"")}else this.isListOpen&&this.closeList()},n.prototype.onKeyDown=function(e){var t=this,i=e.key;switch(this.updateLastPosition(),i){case q.ENTER:this.onEnterKeyDown(e);break;case q.TAB:this.onTabKeyDown(e);break;case q.DOWN:case q.UP:this.onUpDownKeyDown(e,i);break;case q.LEFT:case q.RIGHT:case q.PAGE_HOME:case q.PAGE_END:setTimeout(function(){t.updatePositionAndList()});break;case q.ESCAPE:this.onEscapeKeyDown(e);break;case q.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList());break}},n.prototype.confirmSelection=function(){var e,t=(e=this.autocompleteList)===null||e===void 0?void 0:e.getSelectedValue();t&&(this.closeList(),this.dispatchEvent({type:n.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:t,autocompleteType:this.autocompleteListParams.type}))},n.prototype.onTabKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())},n.prototype.onEnterKeyDown=function(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()},n.prototype.onUpDownKeyDown=function(e,t){var i;e.preventDefault(),this.isListOpen?(i=this.autocompleteList)===null||i===void 0||i.onNavigationKeyDown(e,t):this.forceOpenList()},n.prototype.onEscapeKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))},n.prototype.onFocusOut=function(){this.isListOpen&&this.closeList()},n.prototype.updatePositionAndList=function(){var e;this.updateLastPosition(),this.updateAutocompleteList((e=this.eAutocompleteInput.getValue())!==null&&e!==void 0?e:null)},n.prototype.setCaret=function(e,t){var i=this.gridOptionsService.getDocument();t&&i.activeElement===i.body&&this.eAutocompleteInput.getFocusableElement().focus();var r=this.eAutocompleteInput.getInputElement();r.setSelectionRange(e,e),e===r.value.length&&(r.scrollLeft=r.scrollWidth)},n.prototype.forceOpenList=function(){this.onValueChanged(this.eAutocompleteInput.getValue())},n.prototype.updateLastPosition=function(){var e;this.lastPosition=(e=this.eAutocompleteInput.getInputElement().selectionStart)!==null&&e!==void 0?e:0},n.prototype.validate=function(e){var t;this.validator&&(this.validationMessage=this.validator(e),this.eAutocompleteInput.getInputElement().setCustomValidity((t=this.validationMessage)!==null&&t!==void 0?t:""),this.valid=!this.validationMessage,this.dispatchEvent({type:n.EVENT_VALID_CHANGED,isValid:this.valid,validationMessage:this.validationMessage}))},n.prototype.openList=function(){var e=this;this.isListOpen=!0,this.autocompleteList=this.createBean(new Cte({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:function(){return e.confirmSelection()},forceLastSelection:this.forceLastSelection}));var t=this.autocompleteList.getGui(),i={ePopup:t,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gridOptionsService.get("enableRtl")?"right":"left",keepWithinBounds:!0},r=this.popupService.addPopup({eChild:t,anchorToElement:this.getGui(),positionCallback:function(){return e.popupService.positionPopupByComponent(i)},ariaLabel:this.listAriaLabel});this.hidePopup=r.hideFunc,this.autocompleteList.afterGuiAttached()},n.prototype.closeList=function(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null},n.prototype.onCompleted=function(){this.isListOpen&&this.closeList(),this.dispatchEvent({type:n.EVENT_VALUE_CONFIRMED,value:this.getValue(),isValid:this.isValid()})},n.prototype.getValue=function(){return Qo(this.eAutocompleteInput.getValue())},n.prototype.setInputPlaceholder=function(e){return this.eAutocompleteInput.setInputPlaceholder(e),this},n.prototype.setInputAriaLabel=function(e){return this.eAutocompleteInput.setInputAriaLabel(e),this},n.prototype.setListAriaLabel=function(e){return this.listAriaLabel=e,this},n.prototype.setListGenerator=function(e){return this.listGenerator=e,this},n.prototype.setValidator=function(e){return this.validator=e,this},n.prototype.isValid=function(){return this.valid},n.prototype.setValue=function(e){var t=e.value,i=e.position,r=e.silent,s=e.updateListOnlyIfOpen,a=e.restoreFocus;this.eAutocompleteInput.setValue(t,!0),this.setCaret(i??this.lastPosition,a),r||this.updateValue(t),(!s||this.isListOpen)&&this.updateAutocompleteList(t)},n.prototype.setForceLastSelection=function(e){return this.forceLastSelection=e,this},n.prototype.setInputDisabled=function(e){return this.eAutocompleteInput.setDisabled(e),this},n.EVENT_VALUE_CHANGED="eventValueChanged",n.EVENT_VALUE_CONFIRMED="eventValueConfirmed",n.EVENT_OPTION_SELECTED="eventOptionSelected",n.EVENT_VALID_CHANGED="eventValidChanged",d_([b("popupService")],n.prototype,"popupService",void 0),d_([Ce("eAutocompleteInput")],n.prototype,"eAutocompleteInput",void 0),d_([pe],n.prototype,"postConstruct",null),n}(dt),wte=["touchstart","touchend","touchmove","touchcancel"],H0=function(){function o(n){n===void 0&&(n="javascript"),this.frameworkName=n,this.renderingEngine="vanilla",this.wrapIncoming=function(e){return e()},this.wrapOutgoing=function(e){return e()}}return o.prototype.setInterval=function(n,e){return new Ni(function(t){t(window.setInterval(n,e))})},o.prototype.addEventListener=function(n,e,t,i){var r=Co(wte,e);n.addEventListener(e,t,{capture:!!i,passive:r})},Object.defineProperty(o.prototype,"shouldWrapOutgoing",{get:function(){return!1},enumerable:!1,configurable:!0}),o.prototype.frameworkComponent=function(n){return null},o.prototype.isFrameworkComponent=function(n){return!1},o.prototype.getDocLink=function(n){var e=this.frameworkName==="solid"?"react":this.frameworkName;return"https://www.ag-grid.com/".concat(e,"-data-grid").concat(n?"/".concat(n):"")},o}(),bte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Mc=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Tte=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},Ete=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},xte=function(o){bte(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.getNextCellToFocus=function(e,t,i){return i===void 0&&(i=!1),i?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},n.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var i=e===q.UP,r=e===q.DOWN,s=e===q.LEFT,a,l;if(i||r)l=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),a=t.column;else{var c=this.columnModel.getAllDisplayedColumns(),u=this.gridOptionsService.get("enableRtl");l=t.rowIndex,a=s!==u?c[0]:Nt(c)}return{rowIndex:l,rowPinned:null,column:a}},n.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var i=t,r=!1;!r;){switch(e){case q.UP:i=this.getCellAbove(i);break;case q.DOWN:i=this.getCellBelow(i);break;case q.RIGHT:this.gridOptionsService.get("enableRtl")?i=this.getCellToLeft(i):i=this.getCellToRight(i);break;case q.LEFT:this.gridOptionsService.get("enableRtl")?i=this.getCellToRight(i):i=this.getCellToLeft(i);break;default:i=null,console.warn("AG Grid: unknown key for navigation "+e);break}i?r=this.isCellGoodToFocusOn(i):r=!0}return i},n.prototype.isCellGoodToFocusOn=function(e){var t=e.column,i;switch(e.rowPinned){case"top":i=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case"bottom":i=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:i=this.rowModel.getRow(e.rowIndex);break}if(!i)return!1;var r=t.isSuppressNavigable(i);return!r},n.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},n.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},n.prototype.getRowBelow=function(e){var t=e.rowIndex,i=e.rowPinned;if(this.isLastRowInContainer(e))switch(i){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var r=this.rowModel.getRow(e.rowIndex),s=this.getNextStickyPosition(r);return s||{rowIndex:t+1,rowPinned:i}},n.prototype.getNextStickyPosition=function(e,t){if(!(!this.gridOptionsService.isGroupRowsSticky()||!e||!e.sticky)){var i=Ete([],Tte(this.rowRenderer.getStickyTopRowCtrls()),!1).sort(function(l,c){return l.getRowNode().rowIndex-c.getRowNode().rowIndex}),r=t?-1:1,s=i.findIndex(function(l){return l.getRowNode().rowIndex===e.rowIndex}),a=i[s+r];if(a)return{rowIndex:a.getRowNode().rowIndex,rowPinned:null}}},n.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},n.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,i=e.rowIndex;if(t==="top"){var r=this.pinnedRowModel.getPinnedTopRowData().length-1;return r<=i}if(t==="bottom"){var s=this.pinnedRowModel.getPinnedBottomRowData().length-1;return s<=i}var a=this.paginationProxy.getPageLastRow();return a<=i},n.prototype.getRowAbove=function(e){var t=e.rowIndex,i=e.rowPinned,r=i?t===0:t===this.paginationProxy.getPageFirstRow();if(r)return i==="top"?null:i?this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null:this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var s=this.rowModel.getRow(e.rowIndex),a=this.getNextStickyPosition(s,!0);return a||{rowIndex:t-1,rowPinned:i}},n.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},n.prototype.getLastBodyCell=function(){var e=this.paginationProxy.getPageLastRow();return{rowIndex:e,rowPinned:null}},n.prototype.getLastFloatingTopRow=function(){var e=this.pinnedRowModel.getPinnedTopRowData().length-1;return{rowIndex:e,rowPinned:"top"}},n.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},n.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),i=e.rowIndex,r=e.rowPinned,s=this.columnModel.getDisplayedColAfter(e.column);if(!s){s=t[0];var a=this.getRowBelow(e);if(tt(a)||!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;i=a?a.rowIndex:null,r=a?a.rowPinned:null}return{rowIndex:i,column:s,rowPinned:r}},n.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),i=e.rowIndex,r=e.rowPinned,s=this.columnModel.getDisplayedColBefore(e.column);if(!s){s=Nt(t);var a=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(tt(a)||!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;i=a?a.rowIndex:null,r=a?a.rowPinned:null}return{rowIndex:i,column:s,rowPinned:r}},Mc([b("columnModel")],n.prototype,"columnModel",void 0),Mc([b("rowModel")],n.prototype,"rowModel",void 0),Mc([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Mc([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Mc([b("paginationProxy")],n.prototype,"paginationProxy",void 0),n=Mc([Oe("cellNavigationService")],n),n}(re),zte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),wd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Ote=function(o,n){return function(e,t){n(e,t,o)}},Dte=function(o){zte(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.consuming=!1,e}return n.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},n.prototype.getAlignedGridApis=function(){var e=this,t,i=(t=this.gridOptionsService.get("alignedGrids"))!==null&&t!==void 0?t:[],r=typeof i=="function";typeof i=="function"&&(i=i());var s=function(){return"See ".concat(e.getFrameworkOverrides().getDocLink("aligned-grids"))},a=i.map(function(l){var c;if(!l){yo("alignedGrids contains an undefined option."),r||yo(`You may want to configure via a callback to avoid setup race conditions:
  209. "alignedGrids: () => [linkedGrid]"`),yo(s());return}if(l instanceof KR)return l;var u=l;return"current"in u?(c=u.current)===null||c===void 0?void 0:c.api:(u.api||yo("alignedGrids - No api found on the linked grid. If you are passing gridOptions to alignedGrids since v31 this is no longer valid. ".concat(s())),u.api)}).filter(function(l){return!!l&&!l.isDestroyed()});return a},n.prototype.init=function(){this.addManagedListener(this.eventService,T.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},n.prototype.fireEvent=function(e){this.consuming||this.getAlignedGridApis().forEach(function(t){var i=t.__getAlignedGridService();e(i)})},n.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},n.prototype.fireColumnEvent=function(e){this.fireEvent(function(t){t.onColumnEvent(e)})},n.prototype.fireScrollEvent=function(e){e.direction==="horizontal"&&this.fireEvent(function(t){t.onScrollEvent(e)})},n.prototype.onScrollEvent=function(e){var t=this;this.onEvent(function(){var i=t.ctrlsService.getGridBodyCtrl();i.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})},n.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach(function(i){t.push(i)}):e.column&&t.push(e.column),t},n.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach(function(i){t.push(i.getColId())}):e.column&&t.push(e.column.getColId()),t},n.prototype.onColumnEvent=function(e){var t=this;this.onEvent(function(){switch(e.type){case T.EVENT_COLUMN_MOVED:case T.EVENT_COLUMN_VISIBLE:case T.EVENT_COLUMN_PINNED:case T.EVENT_COLUMN_RESIZED:var i=e;t.processColumnEvent(i);break;case T.EVENT_COLUMN_GROUP_OPENED:var r=e;t.processGroupOpenedEvent(r);break;case T.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.");break}})},n.prototype.processGroupOpenedEvent=function(e){var t=this;e.columnGroups.forEach(function(i){var r=null;if(i){var s=i.getGroupId();r=t.columnModel.getProvidedColumnGroup(s)}i&&!r||(t.logger.log("onColumnEvent-> processing "+e+" expanded = "+i.isExpanded()),t.columnModel.setColumnGroupOpened(r,i.isExpanded(),"alignedGridChanged"))})},n.prototype.processColumnEvent=function(e){var t=this,i,r=e.column,s=null;if(r&&(s=this.columnModel.getPrimaryColumn(r.getColId())),!(r&&!s)){var a=this.getMasterColumns(e);switch(e.type){case T.EVENT_COLUMN_MOVED:{var l=e,c=e.api.getColumnState(),u=c.map(function(E){return{colId:E.colId}});this.columnModel.applyColumnState({state:u,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," toIndex = ").concat(l.toIndex))}break;case T.EVENT_COLUMN_VISIBLE:{var d=e,c=e.api.getColumnState(),u=c.map(function(M){return{colId:M.colId,hide:M.hide}});this.columnModel.applyColumnState({state:u},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," visible = ").concat(d.visible))}break;case T.EVENT_COLUMN_PINNED:{var p=e,c=e.api.getColumnState(),u=c.map(function(M){return{colId:M.colId,pinned:M.pinned}});this.columnModel.applyColumnState({state:u},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," pinned = ").concat(p.pinned))}break;case T.EVENT_COLUMN_RESIZED:var g=e,v={};a.forEach(function(E){t.logger.log("onColumnEvent-> processing ".concat(e.type," actualWidth = ").concat(E.getActualWidth())),v[E.getId()]={key:E.getColId(),newWidth:E.getActualWidth()}}),(i=g.flexColumns)===null||i===void 0||i.forEach(function(E){v[E.getId()]&&delete v[E.getId()]}),this.columnModel.setColumnWidths(Object.values(v),!1,g.finished,"alignedGridChanged");break}var y=this.ctrlsService.getGridBodyCtrl(),x=y.isVerticalScrollShowing();this.getAlignedGridApis().forEach(function(E){E.setGridOption("alwaysShowVerticalScroll",x)})}},wd([b("columnModel")],n.prototype,"columnModel",void 0),wd([b("ctrlsService")],n.prototype,"ctrlsService",void 0),wd([Ote(0,Ur("loggerFactory"))],n.prototype,"setBeans",null),wd([pe],n.prototype,"init",null),n=wd([Oe("alignedGridsService")],n),n}(re),Rte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),$f=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},eI=function(o){Rte(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.selectedNodes=new Map,e.lastRowNode=null,e}return n.prototype.init=function(){var e=this;this.rowSelection=this.gridOptionsService.get("rowSelection"),this.groupSelectsChildren=this.gridOptionsService.get("groupSelectsChildren"),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],function(){e.groupSelectsChildren=e.gridOptionsService.get("groupSelectsChildren"),e.rowSelection=e.gridOptionsService.get("rowSelection"),e.deselectAllRowNodes({source:"api"})}),this.addManagedListener(this.eventService,T.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.resetNodes(),this.lastRowNode=null},n.prototype.isMultiselect=function(){return this.rowSelection==="multiple"},n.prototype.setNodesSelected=function(e){var t,i=e.newValue,r=e.clearSelection,s=e.suppressFinishActions,a=e.rangeSelect,l=e.nodes,c=e.event,u=e.source,d=u===void 0?"api":u;if(l.length===0)return 0;if(l.length>1&&!this.isMultiselect())return console.warn("AG Grid: cannot multi select while rowSelection='single'"),0;var p=this.groupSelectsChildren&&e.groupSelectsFiltered===!0,g=l.map(function(he){return he.footer?he.sibling:he});if(a){if(l.length>1)return console.warn("AG Grid: cannot range select while selecting multiple rows"),0;var v=null;if(d==="checkboxSelected"&&i===!1&&this.lastRowNode&&(this.lastRowNode.id?v=this.lastRowNode:this.lastRowNode=null),v==null&&(v=this.getLastSelectedNode()),v){var y=g[0],x=y!==v;if(x&&this.isMultiselect())return this.selectRange(y,v,i,d)}}this.lastRowNode=i?null:g[0];for(var E=0,z=0;z<g.length;z++){var M=g[z],G=p&&M.group;if(!G){var U=M.selectThisNode(i,c,d);U&&E++}this.groupSelectsChildren&&(!((t=M.childrenAfterGroup)===null||t===void 0)&&t.length)&&(E+=this.selectChildren(M,i,p,d))}if(!s){var se=i&&(r||!this.isMultiselect());if(se&&(E+=this.clearOtherNodes(g[0],d)),E>0){this.updateGroupsFromChildrenSelections(d);var ve={type:T.EVENT_SELECTION_CHANGED,source:d};this.eventService.dispatchEvent(ve)}}return E},n.prototype.selectRange=function(e,t,i,r){var s=this;i===void 0&&(i=!0);var a=this.rowModel.getNodesInRangeForSelection(e,t),l=0;a.forEach(function(u){if(!(u.group&&s.groupSelectsChildren)){var d=u.selectThisNode(i,void 0,r);d&&l++}}),this.updateGroupsFromChildrenSelections(r);var c={type:T.EVENT_SELECTION_CHANGED,source:r};return this.eventService.dispatchEvent(c),l},n.prototype.selectChildren=function(e,t,i,r){var s=i?e.childrenAfterAggFilter:e.childrenAfterGroup;return tt(s)?0:this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:i,source:r,nodes:s})},n.prototype.getLastSelectedNode=function(){var e=Array.from(this.selectedNodes.keys());if(e.length==0)return null;var t=this.selectedNodes.get(Nt(e));return t||null},n.prototype.getSelectedNodes=function(){var e=[];return this.selectedNodes.forEach(function(t){t&&e.push(t)}),e},n.prototype.getSelectedRows=function(){var e=[];return this.selectedNodes.forEach(function(t){t&&t.data&&e.push(t.data)}),e},n.prototype.getSelectionCount=function(){return this.selectedNodes.size},n.prototype.filterFromSelection=function(e){var t=new Map;this.selectedNodes.forEach(function(i,r){var s=i&&e(i);s&&t.set(r,i)}),this.selectedNodes=t},n.prototype.updateGroupsFromChildrenSelections=function(e,t){if(!this.groupSelectsChildren||this.rowModel.getType()!=="clientSide")return!1;var i=this.rowModel,r=i.getRootNode();t||(t=new Lg(!0,r),t.setInactive());var s=!1;return t.forEachChangedNodeDepthFirst(function(a){if(a!==r){var l=a.calculateSelectedFromChildren();s=a.selectThisNode(l===null?!1:l,void 0,e)||s}}),s},n.prototype.clearOtherNodes=function(e,t){var i=this,r=new Map,s=0;return this.selectedNodes.forEach(function(a){if(a&&a.id!==e.id){var l=i.selectedNodes.get(a.id);s+=l.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:t}),i.groupSelectsChildren&&a.parent&&r.set(a.parent.id,a.parent)}}),r.forEach(function(a){var l=a.calculateSelectedFromChildren();a.selectThisNode(l===null?!1:l,void 0,t)}),s},n.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))},n.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},n.prototype.syncInOldRowNode=function(e,t){var i=ne(t)&&e.id!==t.id;if(i&&t){var r=t.id,s=this.selectedNodes.get(r)==e;s&&this.selectedNodes.set(t.id,t)}},n.prototype.syncInNewRowNode=function(e){this.selectedNodes.has(e.id)?(e.setSelectedInitialValue(!0),this.selectedNodes.set(e.id,e)):e.setSelectedInitialValue(!1)},n.prototype.reset=function(e){var t=this.getSelectionCount();if(this.resetNodes(),t){var i={type:T.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(i)}},n.prototype.resetNodes=function(){var e;(e=this.selectedNodes)===null||e===void 0||e.clear()},n.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()!=="clientSide")return;var e=this.rowModel,t=e.getTopLevelNodes();if(t===null)return;var i=[];function r(s){for(var a=0,l=s.length;a<l;a++){var c=s[a];if(c.isSelected())i.push(c);else{var u=c;u.group&&u.children&&r(u.children)}}}return r(t),i},n.prototype.isEmpty=function(){var e=0;return this.selectedNodes.forEach(function(t){t&&e++}),e===0},n.prototype.deselectAllRowNodes=function(e){var t=function(c){return c.selectThisNode(!1,void 0,r)},i=this.rowModel.getType()==="clientSide",r=e.source,s=e.justFiltered,a=e.justCurrentPage;if(a||s){if(!i){console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");return}this.getNodesToSelect(s,a).forEach(t)}else this.selectedNodes.forEach(function(c){c&&t(c)}),this.reset(r);i&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(r);var l={type:T.EVENT_SELECTION_CHANGED,source:r};this.eventService.dispatchEvent(l)},n.prototype.getSelectedCounts=function(e,t){var i=this,r=0,s=0,a=function(l){i.groupSelectsChildren&&l.group||(l.isSelected()?r++:l.selectable&&s++)};return this.getNodesToSelect(e,t).forEach(a),{selectedCount:r,notSelectedCount:s}},n.prototype.getSelectAllState=function(e,t){var i=this.getSelectedCounts(e,t),r=i.selectedCount,s=i.notSelectedCount;return r===0&&s===0?!1:r>0&&s>0?null:r>0},n.prototype.hasNodesToSelect=function(e,t){return e===void 0&&(e=!1),t===void 0&&(t=!1),this.getNodesToSelect(e,t).filter(function(i){return i.selectable}).length>0},n.prototype.getNodesToSelect=function(e,t){var i=this;if(e===void 0&&(e=!1),t===void 0&&(t=!1),this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not ".concat(this.rowModel.getType()));var r=[];if(t)return this.paginationProxy.forEachNodeOnPage(function(a){if(!a.group){r.push(a);return}if(!a.expanded){var l=function(c){var u;r.push(c),!((u=c.childrenAfterFilter)===null||u===void 0)&&u.length&&c.childrenAfterFilter.forEach(l)};l(a);return}i.groupSelectsChildren||r.push(a)}),r;var s=this.rowModel;return e?(s.forEachNodeAfterFilter(function(a){r.push(a)}),r):(s.forEachNode(function(a){r.push(a)}),r)},n.prototype.selectAllRowNodes=function(e){if(this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not ".concat(this.rowModel.getType()));var t=e.source,i=e.justFiltered,r=e.justCurrentPage,s=function(l){return l.selectThisNode(!0,void 0,t)};this.getNodesToSelect(i,r).forEach(s),this.rowModel.getType()==="clientSide"&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t);var a={type:T.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(a)},n.prototype.getSelectionState=function(){var e=[];return this.selectedNodes.forEach(function(t){t?.id&&e.push(t.id)}),e.length?e:null},n.prototype.setSelectionState=function(e,t){if(Array.isArray(e)){var i=new Set(e),r=[];this.rowModel.forEachNode(function(s){i.has(s.id)&&r.push(s)}),this.setNodesSelected({newValue:!0,nodes:r,source:t})}},$f([b("rowModel")],n.prototype,"rowModel",void 0),$f([b("paginationProxy")],n.prototype,"paginationProxy",void 0),$f([pe],n.prototype,"init",null),n=$f([Oe("selectionService")],n),n}(re),tD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Ite=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},Pte=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},ep=function(){function o(n){var e=this;this.viaApi=function(t){for(var i,r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];return Je("Since v31, 'columnApi.".concat(t,"' is deprecated and moved to 'api.").concat(t,"'.")),(i=e.api)[t].apply(i,Pte([],Ite(r),!1))},this.api=n}return o.prototype.sizeColumnsToFit=function(n){this.viaApi("sizeColumnsToFit",n)},o.prototype.setColumnGroupOpened=function(n,e){this.viaApi("setColumnGroupOpened",n,e)},o.prototype.getColumnGroup=function(n,e){return this.viaApi("getColumnGroup",n,e)},o.prototype.getProvidedColumnGroup=function(n){return this.viaApi("getProvidedColumnGroup",n)},o.prototype.getDisplayNameForColumn=function(n,e){return this.viaApi("getDisplayNameForColumn",n,e)},o.prototype.getDisplayNameForColumnGroup=function(n,e){return this.viaApi("getDisplayNameForColumnGroup",n,e)},o.prototype.getColumn=function(n){return this.viaApi("getColumn",n)},o.prototype.getColumns=function(){return this.viaApi("getColumns")},o.prototype.applyColumnState=function(n){return this.viaApi("applyColumnState",n)},o.prototype.getColumnState=function(){return this.viaApi("getColumnState")},o.prototype.resetColumnState=function(){this.viaApi("resetColumnState")},o.prototype.getColumnGroupState=function(){return this.viaApi("getColumnGroupState")},o.prototype.setColumnGroupState=function(n){this.viaApi("setColumnGroupState",n)},o.prototype.resetColumnGroupState=function(){this.viaApi("resetColumnGroupState")},o.prototype.isPinning=function(){return this.viaApi("isPinning")},o.prototype.isPinningLeft=function(){return this.viaApi("isPinningLeft")},o.prototype.isPinningRight=function(){return this.viaApi("isPinningRight")},o.prototype.getDisplayedColAfter=function(n){return this.viaApi("getDisplayedColAfter",n)},o.prototype.getDisplayedColBefore=function(n){return this.viaApi("getDisplayedColBefore",n)},o.prototype.setColumnVisible=function(n,e){this.viaApi("setColumnVisible",n,e)},o.prototype.setColumnsVisible=function(n,e){this.viaApi("setColumnsVisible",n,e)},o.prototype.setColumnPinned=function(n,e){this.viaApi("setColumnPinned",n,e)},o.prototype.setColumnsPinned=function(n,e){this.viaApi("setColumnsPinned",n,e)},o.prototype.getAllGridColumns=function(){return this.viaApi("getAllGridColumns")},o.prototype.getDisplayedLeftColumns=function(){return this.viaApi("getDisplayedLeftColumns")},o.prototype.getDisplayedCenterColumns=function(){return this.viaApi("getDisplayedCenterColumns")},o.prototype.getDisplayedRightColumns=function(){return this.viaApi("getDisplayedRightColumns")},o.prototype.getAllDisplayedColumns=function(){return this.viaApi("getAllDisplayedColumns")},o.prototype.getAllDisplayedVirtualColumns=function(){return this.viaApi("getAllDisplayedVirtualColumns")},o.prototype.moveColumn=function(n,e){this.viaApi("moveColumn",n,e)},o.prototype.moveColumnByIndex=function(n,e){this.viaApi("moveColumnByIndex",n,e)},o.prototype.moveColumns=function(n,e){this.viaApi("moveColumns",n,e)},o.prototype.moveRowGroupColumn=function(n,e){this.viaApi("moveRowGroupColumn",n,e)},o.prototype.setColumnAggFunc=function(n,e){this.viaApi("setColumnAggFunc",n,e)},o.prototype.setColumnWidth=function(n,e,t,i){t===void 0&&(t=!0),this.viaApi("setColumnWidth",n,e,t,i)},o.prototype.setColumnWidths=function(n,e,t){e===void 0&&(e=!0),this.viaApi("setColumnWidths",n,e,t)},o.prototype.setPivotMode=function(n){this.viaApi("setPivotMode",n)},o.prototype.isPivotMode=function(){return this.viaApi("isPivotMode")},o.prototype.getPivotResultColumn=function(n,e){return this.viaApi("getPivotResultColumn",n,e)},o.prototype.setValueColumns=function(n){this.viaApi("setValueColumns",n)},o.prototype.getValueColumns=function(){return this.viaApi("getValueColumns")},o.prototype.removeValueColumn=function(n){this.viaApi("removeValueColumn",n)},o.prototype.removeValueColumns=function(n){this.viaApi("removeValueColumns",n)},o.prototype.addValueColumn=function(n){this.viaApi("addValueColumn",n)},o.prototype.addValueColumns=function(n){this.viaApi("addValueColumns",n)},o.prototype.setRowGroupColumns=function(n){this.viaApi("setRowGroupColumns",n)},o.prototype.removeRowGroupColumn=function(n){this.viaApi("removeRowGroupColumn",n)},o.prototype.removeRowGroupColumns=function(n){this.viaApi("removeRowGroupColumns",n)},o.prototype.addRowGroupColumn=function(n){this.viaApi("addRowGroupColumn",n)},o.prototype.addRowGroupColumns=function(n){this.viaApi("addRowGroupColumns",n)},o.prototype.getRowGroupColumns=function(){return this.viaApi("getRowGroupColumns")},o.prototype.setPivotColumns=function(n){this.viaApi("setPivotColumns",n)},o.prototype.removePivotColumn=function(n){this.viaApi("removePivotColumn",n)},o.prototype.removePivotColumns=function(n){this.viaApi("removePivotColumns",n)},o.prototype.addPivotColumn=function(n){this.viaApi("addPivotColumn",n)},o.prototype.addPivotColumns=function(n){this.viaApi("addPivotColumns",n)},o.prototype.getPivotColumns=function(){return this.viaApi("getPivotColumns")},o.prototype.getLeftDisplayedColumnGroups=function(){return this.viaApi("getLeftDisplayedColumnGroups")},o.prototype.getCenterDisplayedColumnGroups=function(){return this.viaApi("getCenterDisplayedColumnGroups")},o.prototype.getRightDisplayedColumnGroups=function(){return this.viaApi("getRightDisplayedColumnGroups")},o.prototype.getAllDisplayedColumnGroups=function(){return this.viaApi("getAllDisplayedColumnGroups")},o.prototype.autoSizeColumn=function(n,e){return this.viaApi("autoSizeColumn",n,e)},o.prototype.autoSizeColumns=function(n,e){this.viaApi("autoSizeColumns",n,e)},o.prototype.autoSizeAllColumns=function(n){this.viaApi("autoSizeAllColumns",n)},o.prototype.setPivotResultColumns=function(n){this.viaApi("setPivotResultColumns",n)},o.prototype.getPivotResultColumns=function(){return this.viaApi("getPivotResultColumns")},tD([b("gridApi")],o.prototype,"api",void 0),o=tD([Oe("columnApi")],o),o}(),Mte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Fc=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Fte=function(o){Mte(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.initialised=!1,e.isSsrm=!1,e}return n.prototype.init=function(){var e=this;this.isSsrm=this.gridOptionsService.isRowModelType("serverSide"),this.cellExpressions=this.gridOptionsService.get("enableCellExpressions"),this.isTreeData=this.gridOptionsService.get("treeData"),this.initialised=!0;var t=function(r){return e.callColumnCellValueChangedHandler(r)},i=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(T.EVENT_CELL_VALUE_CHANGED,t,i),this.addDestroyFunc(function(){return e.eventService.removeEventListener(T.EVENT_CELL_VALUE_CHANGED,t,i)}),this.addManagedPropertyListener("treeData",function(r){return e.isTreeData=r.currentValue})},n.prototype.getValue=function(e,t,i,r){if(i===void 0&&(i=!1),r===void 0&&(r=!1),this.initialised||this.init(),!!t){var s=e.getColDef(),a=s.field,l=e.getColId(),c=t.data,u,d=t.groupData&&t.groupData[l]!==void 0,p=!r&&t.aggData&&t.aggData[l]!==void 0,g=this.isSsrm&&r&&!!e.getColDef().aggFunc,v=this.isSsrm&&t.footer&&t.field&&(e.getColDef().showRowGroup===!0||e.getColDef().showRowGroup===t.field);if(i&&s.filterValueGetter?u=this.executeFilterValueGetter(s.filterValueGetter,c,e,t):this.isTreeData&&p?u=t.aggData[l]:this.isTreeData&&s.valueGetter?u=this.executeValueGetter(s.valueGetter,c,e,t):this.isTreeData&&a&&c?u=Vc(c,a,e.isFieldContainsDots()):d?u=t.groupData[l]:p?u=t.aggData[l]:s.valueGetter?u=this.executeValueGetter(s.valueGetter,c,e,t):v?u=Vc(c,t.field,e.isFieldContainsDots()):a&&c&&!g&&(u=Vc(c,a,e.isFieldContainsDots())),this.cellExpressions&&typeof u=="string"&&u.indexOf("=")===0){var y=u.substring(1);u=this.executeValueGetter(y,c,e,t)}if(u==null){var x=this.getOpenedGroup(t,e);if(x!=null)return x}return u}},n.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsService.get("showOpenedGroup")){var i=t.getColDef();if(i.showRowGroup)for(var r=t.getColDef().showRowGroup,s=e.parent;s!=null;){if(s.rowGroupColumn&&(r===!0||r===s.rowGroupColumn.getColId()))return s.key;s=s.parent}}},n.prototype.setValue=function(e,t,i,r){var s=this.columnModel.getPrimaryColumn(t);if(!e||!s)return!1;tt(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,c=a.valueSetter;if(tt(l)&&tt(c))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;if(!this.dataTypeService.checkType(s,i))return console.warn("AG Grid: Data type of the new value does not match the cell data type of the column"),!1;var u=this.gridOptionsService.addGridCommonParams({node:e,data:e.data,oldValue:this.getValue(s,e),newValue:i,colDef:s.getColDef(),column:s});u.newValue=i;var d;if(ne(c)?typeof c=="function"?d=c(u):d=this.expressionService.evaluate(c,u):d=this.setValueUsingField(e.data,l,i,s.isFieldContainsDots()),d===void 0&&(d=!0),!d)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),u.newValue=this.getValue(s,e);var p={type:T.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:u.column,api:u.api,columnApi:u.columnApi,colDef:u.colDef,context:u.context,data:e.data,node:e,oldValue:u.oldValue,newValue:u.newValue,value:u.newValue,source:r};return this.eventService.dispatchEvent(p),!0},n.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;typeof t=="function"&&this.getFrameworkOverrides().wrapOutgoing(function(){t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})})},n.prototype.setValueUsingField=function(e,t,i,r){if(!t)return!1;var s=!1;if(!r)s=e[t]===i,s||(e[t]=i);else for(var a=t.split("."),l=e;a.length>0&&l;){var c=a.shift();a.length===0?(s=l[c]===i,s||(l[c]=i)):l=l[c]}return!s},n.prototype.executeFilterValueGetter=function(e,t,i,r){var s=this.gridOptionsService.addGridCommonParams({data:t,node:r,column:i,colDef:i.getColDef(),getValue:this.getValueCallback.bind(this,r)});return typeof e=="function"?e(s):this.expressionService.evaluate(e,s)},n.prototype.executeValueGetter=function(e,t,i,r){var s=i.getColId(),a=this.valueCache.getValue(r,s);if(a!==void 0)return a;var l=this.gridOptionsService.addGridCommonParams({data:t,node:r,column:i,colDef:i.getColDef(),getValue:this.getValueCallback.bind(this,r)}),c;return typeof e=="function"?c=e(l):c=this.expressionService.evaluate(e,l),this.valueCache.setValue(r,s,c),c},n.prototype.getValueCallback=function(e,t){var i=this.columnModel.getPrimaryColumn(t);return i?this.getValue(i,e):null},n.prototype.getKeyForNode=function(e,t){var i=this.getValue(e,t),r=e.getColDef().keyCreator,s=i;if(r){var a=this.gridOptionsService.addGridCommonParams({value:i,colDef:e.getColDef(),column:e,node:t,data:t.data});s=r(a)}return typeof s=="string"||s==null||(s=String(s),s==="[object Object]"&&Je("a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")),s},Fc([b("expressionService")],n.prototype,"expressionService",void 0),Fc([b("columnModel")],n.prototype,"columnModel",void 0),Fc([b("valueCache")],n.prototype,"valueCache",void 0),Fc([b("dataTypeService")],n.prototype,"dataTypeService",void 0),Fc([pe],n.prototype,"init",null),n=Fc([Oe("valueService")],n),n}(re),Ate=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),nD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Nte=function(o,n){return function(e,t){n(e,t,o)}},Lte=function(o){Ate(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return n.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},n.prototype.evaluate=function(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);console.error("AG Grid: value should be either a string or a function",e)},n.prototype.evaluateExpression=function(e,t){try{var i=this.createExpressionFunction(e),r=i(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup);return r}catch(s){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+s),null}},n.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),i=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=i,i},n.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},nD([Nte(0,Ur("loggerFactory"))],n.prototype,"setBeans",null),n=nD([Oe("expressionService")],n),n}(re),kte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Vte=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Gte=function(o){kte(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return n.prototype.getTemplate=function(e,t){var i=this.templateCache[e];if(i)return i;var r=this.waitingCallbacks[e],s=this;if(!r){r=[],this.waitingCallbacks[e]=r;var a=new XMLHttpRequest;a.onload=function(){s.handleHttpResult(this,e)},a.open("GET",e),a.send()}return t&&r.push(t),null},n.prototype.handleHttpResult=function(e,t){if(e.status!==200||e.response===null){console.warn("AG Grid: Unable to get template error ".concat(e.status," - ").concat(t));return}this.templateCache[t]=e.response||e.responseText;for(var i=this.waitingCallbacks[t],r=0;r<i.length;r++){var s=i[r];s()}},n=Vte([Oe("templateService")],n),n}(re),Hte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),iD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Bte=function(o,n){return function(e,t){n(e,t,o)}},$te=function(o){Hte(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.setBeans=function(e){this.logging=e.get("debug")},n.prototype.create=function(e){return new B0(e,this.isLogging.bind(this))},n.prototype.isLogging=function(){return this.logging},iD([Bte(0,Ur("gridOptionsService"))],n.prototype,"setBeans",null),n=iD([Oe("loggerFactory")],n),n}(re),B0=function(){function o(n,e){this.name=n,this.isLoggingFunc=e}return o.prototype.isLogging=function(){return this.isLoggingFunc()},o.prototype.log=function(n){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+n)},o}(),jte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ac=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Wte=function(o){jte(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.setComp=function(e,t,i){var r=this;this.view=e,this.eGridHostDiv=t,this.eGui=i,this.eGui.setAttribute("grid-id",this.context.getGridId()),this.dragAndDropService.addDropTarget({getContainer:function(){return r.eGui},isInterestedIn:function(a){return a===Or.HeaderCell||a===Or.ToolPanel},getIconName:function(){return Jn.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new L0(this.view)),this.addRtlSupport();var s=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return s()}),this.ctrlsService.registerGridCtrl(this)},n.prototype.isDetailGrid=function(){var e,t=this.focusService.findTabbableParent(this.getGui());return((e=t?.getAttribute("row-id"))===null||e===void 0?void 0:e.startsWith("detail"))||!1},n.prototype.showDropZones=function(){return qt.__isRegistered(je.RowGroupingModule,this.context.getGridId())},n.prototype.showSideBar=function(){return qt.__isRegistered(je.SideBarModule,this.context.getGridId())},n.prototype.showStatusBar=function(){return qt.__isRegistered(je.StatusBarModule,this.context.getGridId())},n.prototype.showWatermark=function(){return qt.__isRegistered(je.EnterpriseCoreModule,this.context.getGridId())},n.prototype.onGridSizeChanged=function(){var e={type:T.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsService.get("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},n.prototype.destroyGridUi=function(){this.view.destroyGridUi()},n.prototype.getGui=function(){return this.eGui},n.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},n.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},n.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsService.getDocument(),i=this.view.getFocusableContainers(),r=i.findIndex(function(a){return a.contains(t.activeElement)}),s=r+(e?-1:1);return s<=0||s>=i.length?!1:this.focusService.focusInto(i[s])},n.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers(),i=this.columnModel.getAllDisplayedColumns();if(e){if(t.length>1)return this.focusService.focusInto(Nt(t),!0);var r=Nt(i);if(this.focusService.focusGridView(r,!0))return!0}if(this.gridOptionsService.get("headerHeight")===0||this.gridOptionsService.get("suppressHeaderFocus")){if(this.focusService.focusGridView(i[0]))return!0;for(var s=1;s<t.length;s++)if(this.focusService.focusInto(t[s]))return!0;return!1}return this.focusService.focusFirstHeader()},n.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1),this.view.forceFocusOutOfContainer(e)},Ac([b("focusService")],n.prototype,"focusService",void 0),Ac([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Ac([b("columnModel")],n.prototype,"columnModel",void 0),Ac([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Ac([b("mouseEventService")],n.prototype,"mouseEventService",void 0),Ac([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),n}(re),Ute=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),bd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},tI=function(o){Ute(n,o);function n(e){var t=o.call(this)||this;return t.eGridDiv=e,t}return n.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(r){return e.addCssClass(r)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(r){e.getGui().style.userSelect=r??"",e.getGui().style.webkitUserSelect=r??""},setCursor:function(r){e.getGui().style.cursor=r??""}};this.ctrl=this.createManagedBean(new Wte);var i=this.createTemplate();this.setTemplate(i),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(r){return e.ctrl.focusInnerElement(r)},forceFocusOutWhenTabGuardsAreEmpty:!0})},n.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc(function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")})},n.prototype.updateLayoutClasses=function(e,t){var i=this.eRootWrapperBody.classList;i.toggle(ei.AUTO_HEIGHT,t.autoHeight),i.toggle(ei.NORMAL,t.normal),i.toggle(ei.PRINT,t.print),this.addOrRemoveCssClass(ei.AUTO_HEIGHT,t.autoHeight),this.addOrRemoveCssClass(ei.NORMAL,t.normal),this.addOrRemoveCssClass(ei.PRINT,t.print)},n.prototype.createTemplate=function(){var e=this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",t=this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"",i=this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"",r=this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"",s=`<div class="ag-root-wrapper" role="presentation">
  210. `.concat(e,`
  211. <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">
  212. <ag-grid-body ref="gridBody"></ag-grid-body>
  213. `).concat(t,`
  214. </div>
  215. `).concat(i,`
  216. <ag-pagination></ag-pagination>
  217. `).concat(r,`
  218. </div>`);return s},n.prototype.getFocusableElement=function(){return this.eRootWrapperBody},n.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter(function(t){return Dr(t)})},bd([b("loggerFactory")],n.prototype,"loggerFactory",void 0),bd([Ce("gridBody")],n.prototype,"gridBodyComp",void 0),bd([Ce("sideBar")],n.prototype,"sideBarComp",void 0),bd([Ce("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),bd([pe],n.prototype,"postConstruct",null),n}(Jd),Kte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),rD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Bo=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},ra=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},qte=function(o){Kte(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}e=n,n.prototype.progressSort=function(t,i,r){var s=this.getNextSortDirection(t);this.setSortForColumn(t,s,i,r)},n.prototype.setSortForColumn=function(t,i,r,s){i!=="asc"&&i!=="desc"&&(i=null);var a=this.gridOptionsService.isColumnsSortingCoupledToGroup(),l=[t];if(a&&t.getColDef().showRowGroup){var c=this.columnModel.getSourceColumnsForGroupColumn(t),u=c?.filter(function(v){return v.isSortable()});u&&(l=ra([t],Bo(u),!1))}l.forEach(function(v){return v.setSort(i,s)});var d=(r||this.gridOptionsService.get("alwaysMultiSort"))&&!this.gridOptionsService.get("suppressMultiSort"),p=[];if(!d){var g=this.clearSortBarTheseColumns(l,s);p.push.apply(p,ra([],Bo(g),!1))}this.updateSortIndex(t),p.push.apply(p,ra([],Bo(l),!1)),this.dispatchSortChangedEvents(s,p)},n.prototype.updateSortIndex=function(t){var i=this.gridOptionsService.isColumnsSortingCoupledToGroup(),r=this.columnModel.getGroupDisplayColumnForGroup(t.getId()),s=i&&r||t,a=this.getColumnsWithSortingOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(u){return u.setSortIndex(null)});var l=a.filter(function(u){return i&&u.getColDef().showRowGroup?!1:u!==s}),c=s.getSort()?ra(ra([],Bo(l),!1),[s],!1):l;c.forEach(function(u,d){u.setSortIndex(d)})},n.prototype.onSortChanged=function(t,i){this.dispatchSortChangedEvents(t,i)},n.prototype.isSortActive=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),i=t.filter(function(r){return!!r.getSort()});return i&&i.length>0},n.prototype.dispatchSortChangedEvents=function(t,i){var r={type:T.EVENT_SORT_CHANGED,source:t};i&&(r.columns=i),this.eventService.dispatchEvent(r)},n.prototype.clearSortBarTheseColumns=function(t,i){var r=[];return this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(s){t.includes(s)||(s.getSort()&&r.push(s),s.setSort(void 0,i))}),r},n.prototype.getNextSortDirection=function(t){var i;if(t.getColDef().sortingOrder?i=t.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?i=this.gridOptionsService.get("sortingOrder"):i=e.DEFAULT_SORTING_ORDER,!Array.isArray(i)||i.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's ".concat(i)),null;var r=i.indexOf(t.getSort()),s=r<0,a=r==i.length-1,l;return s||a?l=i[0]:l=i[r+1],e.DEFAULT_SORTING_ORDER.indexOf(l)<0?(console.warn("AG Grid: invalid sort type "+l),null):l},n.prototype.getIndexedSortMap=function(){var t=this,i=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(u){return!!u.getSort()});if(this.columnModel.isPivotMode()){var r=this.gridOptionsService.isColumnsSortingCoupledToGroup();i=i.filter(function(u){var d=!!u.getAggFunc(),p=!u.isPrimary(),g=r?t.columnModel.getGroupDisplayColumnForGroup(u.getId()):u.getColDef().showRowGroup;return d||p||g})}var s=this.columnModel.getRowGroupColumns().filter(function(u){return!!u.getSort()}),a=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!s.length;a&&(i=ra([],Bo(new Set(i.map(function(u){var d;return(d=t.columnModel.getGroupDisplayColumnForGroup(u.getId()))!==null&&d!==void 0?d:u}))),!1));var l={};i.forEach(function(u,d){return l[u.getId()]=d}),i.sort(function(u,d){var p=u.getSortIndex(),g=d.getSortIndex();if(p!=null&&g!=null)return p-g;if(p==null&&g==null){var v=l[u.getId()],y=l[d.getId()];return v>y?1:-1}else return g==null?-1:1});var c=new Map;return i.forEach(function(u,d){return c.set(u,d)}),a&&s.forEach(function(u){var d=t.columnModel.getGroupDisplayColumnForGroup(u.getId());c.set(u,c.get(d))}),c},n.prototype.getColumnsWithSortingOrdered=function(){return ra([],Bo(this.getIndexedSortMap().entries()),!1).sort(function(t,i){var r=Bo(t,2);r[0];var s=r[1],a=Bo(i,2);a[0];var l=a[1];return s-l}).map(function(t){var i=Bo(t,1),r=i[0];return r})},n.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().filter(function(t){return t.getSort()}).map(function(t){return{sort:t.getSort(),colId:t.getId()}})},n.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().filter(function(t){return t.getSort()}).map(function(t){return{sort:t.getSort(),column:t}})},n.prototype.canColumnDisplayMixedSort=function(t){var i=this.gridOptionsService.isColumnsSortingCoupledToGroup(),r=!!t.getColDef().showRowGroup;return i&&r},n.prototype.getDisplaySortForColumn=function(t){var i=this.columnModel.getSourceColumnsForGroupColumn(t);if(!this.canColumnDisplayMixedSort(t)||!i?.length)return t.getSort();var r=t.getColDef().field!=null||!!t.getColDef().valueGetter,s=r?ra([t],Bo(i),!1):i,a=s[0].getSort(),l=s.every(function(c){return c.getSort()==a});return l?a:"mixed"},n.prototype.getDisplaySortIndexForColumn=function(t){return this.getIndexedSortMap().get(t)};var e;return n.DEFAULT_SORTING_ORDER=["asc","desc",null],rD([b("columnModel")],n.prototype,"columnModel",void 0),n=e=rD([Oe("sortController")],n),n}(re),Yte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Vd=function(){return Vd=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Vd.apply(this,arguments)},Xi=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Qte=function(o){Yte(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}e=n,n.addKeyboardModeEvents=function(t){this.instanceCount>0||(t.addEventListener("keydown",e.toggleKeyboardMode),t.addEventListener("mousedown",e.toggleKeyboardMode))},n.removeKeyboardModeEvents=function(t){this.instanceCount>0||(t.addEventListener("keydown",e.toggleKeyboardMode),t.addEventListener("mousedown",e.toggleKeyboardMode))},n.toggleKeyboardMode=function(t){var i=e.keyboardModeActive,r=t.type==="keydown";r&&(t.ctrlKey||t.metaKey||t.altKey)||i!==r&&(e.keyboardModeActive=r)},n.unregisterGridCompController=function(t){e.removeKeyboardModeEvents(t)},n.prototype.init=function(){var t=this,i=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,i),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_GROUP_OPENED,i),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,i),this.registerKeyboardFocusEvents(),this.ctrlsService.whenReady(function(r){t.gridCtrl=r.gridCtrl})},n.prototype.registerKeyboardFocusEvents=function(){var t=this.gridOptionsService.getDocument();e.addKeyboardModeEvents(t),e.instanceCount++,this.addDestroyFunc(function(){e.instanceCount--,e.unregisterGridCompController(t)})},n.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,i=this.columnModel.getGridColumn(t.getId());t!==i&&this.clearFocusedCell()}},n.prototype.isKeyboardMode=function(){return e.keyboardModeActive},n.prototype.getFocusCellToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.get("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(t.activeElement,sl.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},n.prototype.getFocusHeaderToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.get("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(t.activeElement,Ng.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},n.prototype.isDomDataMissingInHierarchy=function(t,i){for(var r=t;r;){var s=this.gridOptionsService.getDomData(r,i);if(s)return!1;r=r.parentNode}return!0},n.prototype.getFocusedCell=function(){return this.focusedCellPosition},n.prototype.shouldRestoreFocus=function(t){var i=this;return this.isCellRestoreFocused(t)?(setTimeout(function(){i.restoredFocusedCellPosition=null},0),!0):!1},n.prototype.isCellRestoreFocused=function(t){return this.restoredFocusedCellPosition==null?!1:this.cellPositionUtils.equals(t,this.restoredFocusedCellPosition)},n.prototype.setRestoreFocusedCell=function(t){this.getFrameworkOverrides().renderingEngine==="react"&&(this.restoredFocusedCellPosition=t)},n.prototype.getFocusEventParams=function(){var t=this.focusedCellPosition,i=t.rowIndex,r=t.rowPinned,s=t.column,a={rowIndex:i,rowPinned:r,column:s,isFullWidthCell:!1},l=this.rowRenderer.getRowByPosition({rowIndex:i,rowPinned:r});return l&&(a.isFullWidthCell=l.isFullWidth()),a},n.prototype.clearFocusedCell=function(){if(this.restoredFocusedCellPosition=null,this.focusedCellPosition!=null){var t=Vd({type:T.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(t)}},n.prototype.setFocusedCell=function(t){var i=t.column,r=t.rowIndex,s=t.rowPinned,a=t.forceBrowserFocus,l=a===void 0?!1:a,c=t.preventScrollOnBrowserFocus,u=c===void 0?!1:c,d=this.columnModel.getGridColumn(i);if(!d){this.focusedCellPosition=null;return}this.focusedCellPosition=d?{rowIndex:r,rowPinned:Qo(s),column:d}:null;var p=Vd(Vd({type:T.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:l,preventScrollOnBrowserFocus:u,floating:null});this.eventService.dispatchEvent(p)},n.prototype.isCellFocused=function(t){return this.focusedCellPosition==null?!1:this.cellPositionUtils.equals(t,this.focusedCellPosition)},n.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},n.prototype.isHeaderWrapperFocused=function(t){if(this.focusedHeaderPosition==null)return!1;var i=t.getColumnGroupChild(),r=t.getRowIndex(),s=t.getPinned(),a=this.focusedHeaderPosition,l=a.column,c=a.headerRowIndex;return i===l&&r===c&&s==l.getPinned()},n.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},n.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},n.prototype.setFocusedHeader=function(t,i){this.focusedHeaderPosition={headerRowIndex:t,column:i}},n.prototype.focusHeaderPosition=function(t){if(this.gridOptionsService.get("suppressHeaderFocus"))return!1;var i=t.direction,r=t.fromTab,s=t.allowUserOverride,a=t.event,l=t.fromCell,c=t.rowWithoutSpanValue,u=t.headerPosition;if(l&&this.filterManager.isAdvancedFilterHeaderActive())return this.focusAdvancedFilter(u);if(s){var d=this.getFocusedHeader(),p=this.headerNavigationService.getHeaderRowCount();if(r){var g=this.gridOptionsService.getCallback("tabToNextHeader");if(g){var v={backwards:i==="Before",previousHeaderPosition:d,nextHeaderPosition:u,headerRowCount:p};u=g(v)}}else{var g=this.gridOptionsService.getCallback("navigateToNextHeader");if(g&&a){var y={key:a.key,previousHeaderPosition:d,nextHeaderPosition:u,headerRowCount:p,event:a};u=g(y)}}}if(!u)return!1;if(u.headerRowIndex===-1)return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(u):this.focusGridView(u.column);this.headerNavigationService.scrollToColumn(u.column,i);var x=this.ctrlsService.getHeaderRowContainerCtrl(u.column.getPinned()),E=x.focusHeader(u.headerRowIndex,u.column,a);return E&&(c!=null||l)&&this.headerNavigationService.setCurrentHeaderRowWithoutSpan(c??-1),E},n.prototype.focusFirstHeader=function(){var t=this.columnModel.getAllDisplayedColumns()[0];if(!t)return!1;t.getParent()&&(t=this.columnModel.getColumnGroupAtLevel(t,0));var i=this.headerPositionUtils.getHeaderIndexToFocus(t,0);return this.focusHeaderPosition({headerPosition:i,rowWithoutSpanValue:0})},n.prototype.focusLastHeader=function(t){var i=this.headerNavigationService.getHeaderRowCount()-1,r=Nt(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:i,column:r},rowWithoutSpanValue:-1,event:t})},n.prototype.focusPreviousFromFirstCell=function(t){return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(t)},n.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},n.prototype.isRowFocused=function(t,i){return this.focusedCellPosition==null?!1:this.focusedCellPosition.rowIndex===t&&this.focusedCellPosition.rowPinned===Qo(i)},n.prototype.findFocusableElements=function(t,i,r){r===void 0&&(r=!1);var s=cR,a=_0;i&&(a+=", "+i),r&&(a+=', [tabindex="-1"]');var l=Array.prototype.slice.apply(t.querySelectorAll(s)).filter(function(d){return Dr(d)}),c=Array.prototype.slice.apply(t.querySelectorAll(a));if(!c.length)return l;var u=function(d,p){return d.filter(function(g){return p.indexOf(g)===-1})};return u(l,c)},n.prototype.focusInto=function(t,i,r){i===void 0&&(i=!1),r===void 0&&(r=!1);var s=this.findFocusableElements(t,null,r),a=i?Nt(s):s[0];return a?(a.focus({preventScroll:!0}),!0):!1},n.prototype.findFocusableElementBeforeTabGuard=function(t,i){if(!i)return null;var r=this.findFocusableElements(t),s=r.indexOf(i);if(s===-1)return null;for(var a=-1,l=s-1;l>=0;l--)if(r[l].classList.contains(Ld.TAB_GUARD_TOP)){a=l;break}return a<=0?null:r[a-1]},n.prototype.findNextFocusableElement=function(t,i,r){t===void 0&&(t=this.eGridDiv);var s=this.findFocusableElements(t,i?':not([tabindex="-1"])':null),a=this.gridOptionsService.getDocument(),l=a.activeElement,c;i?c=s.findIndex(function(d){return d.contains(l)}):c=s.indexOf(l);var u=c+(r?-1:1);return u<0||u>=s.length?null:s[u]},n.prototype.isTargetUnderManagedComponent=function(t,i){if(!i)return!1;var r=t.querySelectorAll(".".concat(ul.FOCUS_MANAGED_CLASS));if(!r.length)return!1;for(var s=0;s<r.length;s++)if(r[s].contains(i))return!0;return!1},n.prototype.findTabbableParent=function(t,i){i===void 0&&(i=5);for(var r=0;t&&cg(t)===null&&++r<=i;)t=t.parentElement;return cg(t)===null?null:t},n.prototype.focusGridView=function(t,i){if(this.gridOptionsService.get("suppressCellFocus"))return i?this.gridOptionsService.get("suppressHeaderFocus")?this.focusNextGridCoreContainer(!0,!0):this.focusLastHeader():this.focusNextGridCoreContainer(!1);var r=i?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!r)return!1;var s=r.rowIndex,a=r.rowPinned,l=this.getFocusedHeader();if(!t&&l&&(t=l.column),s==null||!t)return!1;if(this.navigationService.ensureCellVisible({rowIndex:s,column:t,rowPinned:a}),this.setFocusedCell({rowIndex:s,column:t,rowPinned:Qo(a),forceBrowserFocus:!0}),this.rangeService){var c={rowIndex:s,rowPinned:a,column:t};this.rangeService.setRangeToCell(c)}return!0},n.prototype.focusNextGridCoreContainer=function(t,i){return i===void 0&&(i=!1),!i&&this.gridCtrl.focusNextInnerContainer(t)?!0:((i||!t&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(t),!1)},n.prototype.focusAdvancedFilter=function(t){return this.advancedFilterFocusColumn=t?.column,this.advancedFilterService.getCtrl().focusHeaderComp()},n.prototype.focusNextFromAdvancedFilter=function(t,i){var r,s,a=(r=i?void 0:this.advancedFilterFocusColumn)!==null&&r!==void 0?r:(s=this.columnModel.getAllDisplayedColumns())===null||s===void 0?void 0:s[0];return t?this.focusHeaderPosition({headerPosition:{column:a,headerRowIndex:this.headerNavigationService.getHeaderRowCount()-1}}):this.focusGridView(a)},n.prototype.clearAdvancedFilterColumn=function(){this.advancedFilterFocusColumn=void 0};var e;return n.keyboardModeActive=!1,n.instanceCount=0,Xi([b("eGridDiv")],n.prototype,"eGridDiv",void 0),Xi([b("columnModel")],n.prototype,"columnModel",void 0),Xi([b("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Xi([b("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),Xi([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Xi([b("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),Xi([b("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),Xi([Mt("rangeService")],n.prototype,"rangeService",void 0),Xi([b("navigationService")],n.prototype,"navigationService",void 0),Xi([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Xi([b("filterManager")],n.prototype,"filterManager",void 0),Xi([Mt("advancedFilterService")],n.prototype,"advancedFilterService",void 0),Xi([pe],n.prototype,"init",null),n=e=Xi([Oe("focusService")],n),n}(re),Xte=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Zte=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Jte=function(o){Xte(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:T.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},n.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:T.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},n.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},n=Zte([Oe("columnHoverService")],n),n}(re),ene=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),p_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},tne=function(o){ene(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.suppressAnimation=!1,e.animationThreadCount=0,e}return n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){return e.gridBodyCtrl=t.gridBodyCtrl})},n.prototype.isActive=function(){return this.active&&!this.suppressAnimation},n.prototype.setSuppressAnimation=function(e){this.suppressAnimation=e},n.prototype.start=function(){this.active||this.gridOptionsService.get("suppressColumnMoveAnimation")||this.gridOptionsService.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0)},n.prototype.finish=function(){var e=this;this.active&&this.flush(function(){e.active=!1})},n.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},n.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},n.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push(function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)})},n.prototype.flush=function(e){var t=this;if(this.executeNextFuncs.length===0&&this.executeLaterFuncs.length===0){e();return}var i=function(r){for(;r.length;){var s=r.pop();s&&s()}};this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){return i(t.executeNextFuncs)},0),window.setTimeout(function(){i(t.executeLaterFuncs),e()},200)})},p_([b("ctrlsService")],n.prototype,"ctrlsService",void 0),p_([pe],n.prototype,"postConstruct",null),n=p_([Oe("columnAnimationService")],n),n}(re),nne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),jf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ine=function(o){nne(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,T.EVENT_BODY_HEIGHT_CHANGED,e.checkPageSize.bind(e)),e.addManagedListener(e.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,e.checkPageSize.bind(e)),e.addManagedPropertyListener("paginationAutoPageSize",e.onPaginationAutoSizeChanged.bind(e)),e.checkPageSize()})},n.prototype.notActive=function(){return!this.gridOptionsService.get("paginationAutoPageSize")||this.centerRowContainerCon==null},n.prototype.onPaginationAutoSizeChanged=function(){this.notActive()?this.paginationProxy.unsetAutoCalculatedPageSize():this.checkPageSize()},n.prototype.checkPageSize=function(){var e=this;if(!this.notActive()){var t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var i=function(){var r=e.gridOptionsService.getRowHeightAsNumber(),s=Math.floor(t/r);e.paginationProxy.setPageSize(s,"autoCalculated")};this.isBodyRendered?zr(function(){return i()},50)():(i(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},jf([b("ctrlsService")],n.prototype,"ctrlsService",void 0),jf([b("paginationProxy")],n.prototype,"paginationProxy",void 0),jf([pe],n.prototype,"postConstruct",null),n=jf([Oe("paginationAutoPageSizeService")],n),n}(re),rne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),oD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},one=function(o){rne(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.cacheVersion=0,e}return n.prototype.init=function(){this.active=this.gridOptionsService.get("valueCache"),this.neverExpires=this.gridOptionsService.get("valueCacheNeverExpires")},n.prototype.onDataChanged=function(){this.neverExpires||this.expire()},n.prototype.expire=function(){this.cacheVersion++},n.prototype.setValue=function(e,t,i){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=i)},n.prototype.getValue=function(e,t){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[t]},oD([pe],n.prototype,"init",null),n=oD([Oe("valueCache")],n),n}(re),sne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Wf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ane="paste",lne=function(o){sne(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.init=function(){this.rowModel.getType()==="clientSide"&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,T.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},n.prototype.onCellValueChanged=function(e){e.source!==ane&&this.doChangeDetection(e.node,e.column)},n.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsService.get("suppressChangeDetection")){var i=[e];if(this.clientSideRowModel&&!e.isRowPinned()){var r=this.gridOptionsService.get("aggregateOnlyChangedColumns"),s=new Lg(r,this.clientSideRowModel.getRootNode());s.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(s),s.forEachChangedNodeDepthFirst(function(a){i.push(a)})}this.rowRenderer.refreshCells({rowNodes:i})}},Wf([b("rowModel")],n.prototype,"rowModel",void 0),Wf([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Wf([pe],n.prototype,"init",null),n=Wf([Oe("changeDetectionService")],n),n}(re),cne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),sD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},une=function(o){cne(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.adaptFunction=function(e,t){var i=this.componentMetadataProvider.retrieve(e);return i&&i.functionAdapter?i.functionAdapter(t):null},n.prototype.adaptCellRendererFunction=function(e){var t=function(){function i(){}return i.prototype.refresh=function(r){return!1},i.prototype.getGui=function(){return this.eGui},i.prototype.init=function(r){var s=e(r),a=typeof s;if(a==="string"||a==="number"||a==="boolean"){this.eGui=or("<span>"+s+"</span>");return}if(s==null){this.eGui=or("<span></span>");return}this.eGui=s},i}();return t},n.prototype.doesImplementIComponent=function(e){return e?e.prototype&&"getGui"in e.prototype:!1},sD([b("componentMetadataProvider")],n.prototype,"componentMetadataProvider",void 0),n=sD([Oe("agComponentUtils")],n),n}(re),dne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),h_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},pne=function(o){dne(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","onParamsUpdated","refresh"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached","onParamsUpdated","refresh"]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["refresh"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","getState"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]},menuItem:{mandatoryMethodList:[],optionalMethodList:["setActive","select","setExpanded","configureDefaults"]}}},n.prototype.retrieve=function(e){return this.componentMetaData[e]},h_([b("agComponentUtils")],n.prototype,"agComponentUtils",void 0),h_([pe],n.prototype,"postConstruct",null),n=h_([Oe("componentMetadataProvider")],n),n}(re),hne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),f_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},fne=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},gne=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},mne=25,aD=10,g_=8,vne=4,m_=4,v_=6,yne=16,lD=14,y_=8,Cne={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:vne*5,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:g_*7,headerCellMinWidth:48,listItemHeight:g_*4,rowHeight:g_*6,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:m_*8,headerCellMinWidth:24,listItemHeight:m_*6,rowHeight:m_*7,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:v_*8,headerCellMinWidth:36,listItemHeight:v_*4,rowHeight:v_*7,chartMenuPanelWidth:240},"ag-theme-quartz":{headerHeight:lD+y_*4.25,headerCellMinWidth:36,listItemHeight:yne+y_,rowHeight:lD+y_*3.5,chartMenuPanelWidth:260}},cD={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},_ne=function(o){hne(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.calculatedSizes={},e}return n.prototype.postConstruct=function(){var e=this,t,i=(t=this.getTheme().el)!==null&&t!==void 0?t:this.eGridDiv;this.addManagedPropertyListener("rowHeight",function(){return e.refreshRowHeightVariable()}),this.mutationObserver=new MutationObserver(function(){e.calculatedSizes={},e.fireGridStylesChangedEvent()}),this.mutationObserver.observe(i||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})},n.prototype.fireGridStylesChangedEvent=function(){var e={type:T.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(e)},n.prototype.getSassVariable=function(e){var t=this.getTheme(),i=t.themeFamily,r=t.el;if(!(!i||i.indexOf("ag-theme")!==0)){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[i]||(this.calculatedSizes[i]={});var s=this.calculatedSizes[i][e];return s??(this.calculatedSizes[i][e]=this.calculateValueForSassProperty(e,i,r),this.calculatedSizes[i][e])}},n.prototype.calculateValueForSassProperty=function(e,t,i){var r,s="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),a=Cne[s][e],l=this.gridOptionsService.getDocument();if(i||(i=this.eGridDiv),!cD[e])return a;var c=cD[e],u=l.createElement("div"),d=Array.from(i.classList);(r=u.classList).add.apply(r,gne([t],fne(d),!1)),u.style.position="absolute";var p=c.reduce(function(y,x){var E=l.createElement("div");return E.style.position="static",E.classList.add(x),y.appendChild(E),E},u),g=0;if(l.body){l.body.appendChild(u);var v=e.toLowerCase().indexOf("height")!==-1?"height":"width";g=parseInt(window.getComputedStyle(p)[v],10),l.body.removeChild(u)}return g||a},n.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},n.prototype.chartMenuPanelWidth=function(){return this.getSassVariable("chartMenuPanelWidth")},n.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/g,t=this.eGridDiv,i=null,r=[];t;)if(i=e.exec(t.className),!i)t=t.parentElement||void 0;else{var s=t.className.match(e);s&&(r=s);break}if(!i)return{allThemes:r};var a=i[0];return{theme:a,el:t,themeFamily:a.replace(/-dark$/,""),allThemes:r}},n.prototype.getFromTheme=function(e,t){var i;return(i=this.getSassVariable(t))!==null&&i!==void 0?i:e},n.prototype.getDefaultRowHeight=function(){return this.getFromTheme(mne,"rowHeight")},n.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},n.prototype.refreshRowHeightVariable=function(){var e=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),t=this.gridOptionsService.get("rowHeight");if(t==null||isNaN(t)||!isFinite(t))return e!==null&&this.eGridDiv.style.setProperty("--ag-line-height",null),-1;var i="".concat(t,"px");return e!=i?(this.eGridDiv.style.setProperty("--ag-line-height",i),t):e!=""?parseFloat(e):-1},n.prototype.getMinColWidth=function(){var e=this.getFromTheme(null,"headerCellMinWidth");return ne(e)?Math.max(e,aD):aD},n.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),o.prototype.destroy.call(this)},f_([b("eGridDiv")],n.prototype,"eGridDiv",void 0),f_([pe],n.prototype,"postConstruct",null),n=f_([Oe("environment")],n),n}(re),Sne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Uf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},wne=function(o,n){return function(e,t){n(e,t,o)}},bne=function(o){Sne(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return n.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},n.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=iR(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},n.prototype.isStretching=function(){return this.stretching},n.prototype.getDivStretchOffset=function(){return this.divStretchOffset},n.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl(),t=e.getScrollFeature().getVScrollPosition().top,i=this.getUiBodyHeight(),r=t!==this.scrollY||i!==this.uiBodyHeight;r&&(this.scrollY=t,this.uiBodyHeight=i,this.calculateOffset())}},n.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = ".concat(t," (").concat(this.pixelsToShave," * ").concat(e,")")),this.setDivStretchOffset(t)},n.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:T.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},n.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},n.prototype.setDivStretchOffset=function(e){var t=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:T.EVENT_HEIGHT_SCALE_CHANGED}))},n.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},n.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},n.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},n.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),t=e.getScrollFeature().getVScrollPosition();return t.bottom-t.top},n.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=this.modelHeight-this.getUiBodyHeight(),i=e/t,r=this.maxScrollY*i;return r},Uf([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Uf([wne(0,Ur("loggerFactory"))],n.prototype,"agWire",null),Uf([pe],n.prototype,"postConstruct",null),n=Uf([Oe("rowContainerHeightService")],n),n}(re),Tne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Kf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Ene=function(o){Tne(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.init=function(){var e=this;this.addManagedPropertyListener("isRowSelectable",function(){return e.updateSelectable()})},n.prototype.updateSelectableAfterGrouping=function(){this.updateSelectable(!0)},n.prototype.updateSelectable=function(e){e===void 0&&(e=!1);var t=!!this.gridOptionsService.get("rowSelection"),i=this.gridOptionsService.get("isRowSelectable");if(!(!t||!i)){var r=this.gridOptionsService.get("groupSelectsChildren"),s=this.rowModel.getType()==="clientSide"&&r,a=[],l=function(d){if(!(e&&!d.group)){if(s&&d.group){var p=d.childrenAfterGroup.some(function(v){return v.selectable===!0});d.setRowSelectable(p,!0);return}var g=i?i(d):!0;d.setRowSelectable(g,!0),!g&&d.isSelected()&&a.push(d)}};if(s){var c=this.rowModel,u=new Lg(!1,c.getRootNode());u.forEachChangedNodeDepthFirst(l,!0,!0)}else this.rowModel.forEachNode(l);a.length&&this.selectionService.setNodesSelected({nodes:a,newValue:!1,source:"selectableChanged"}),s&&this.selectionService instanceof eI&&this.selectionService.updateGroupsFromChildrenSelections("selectableChanged")}},Kf([b("rowModel")],n.prototype,"rowModel",void 0),Kf([b("selectionService")],n.prototype,"selectionService",void 0),Kf([pe],n.prototype,"init",null),n=Kf([Oe("selectableService")],n),n}(re),xne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),wr=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},zne=function(o){xne(n,o);function n(){var e=o.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e.areListenersSetup=!1,e}return n.prototype.postConstruct=function(){var e=this,t=this.gridOptionsService.get("enableRtl");this.setTemplate(this.getTemplate());var i=this,r=i.btFirst,s=i.btPrevious,a=i.btNext,l=i.btLast;i.pageSizeComp,this.activateTabIndex([r,s,a,l]),r.insertAdjacentElement("afterbegin",Gn(t?"last":"first",this.gridOptionsService)),s.insertAdjacentElement("afterbegin",Gn(t?"next":"previous",this.gridOptionsService)),a.insertAdjacentElement("afterbegin",Gn(t?"previous":"next",this.gridOptionsService)),l.insertAdjacentElement("afterbegin",Gn(t?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],function(){return e.onPageSizeRelatedOptionsChange()}),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.onPaginationChanged()},n.prototype.onPaginationChanged=function(){var e=this.gridOptionsService.get("pagination"),t=e&&!this.gridOptionsService.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels(),this.onPageSizeRelatedOptionsChange())},n.prototype.onPageSizeRelatedOptionsChange=function(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())},n.prototype.setupListeners=function(){var e=this;this.areListenersSetup||(this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(function(t){var i=t.el,r=t.fn;e.addManagedListener(i,"click",r),e.addManagedListener(i,"keydown",function(s){(s.key===q.ENTER||s.key===q.SPACE)&&(s.preventDefault(),r())})}),this.areListenersSetup=!0)},n.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},n.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),i=e?t+1:0;this.lbCurrent.textContent=this.formatNumber(i)},n.prototype.formatNumber=function(e){var t=this.gridOptionsService.getCallback("paginationNumberFormatter");if(t){var i={value:e};return t(i)}var r=this.localeService.getLocaleTextFunc(),s=r("thousandSeparator",","),a=r("decimalSeparator",".");return C0(e,s,a)},n.prototype.getTemplate=function(){var e=this.localeService.getLocaleTextFunc(),t=e("page","Page"),i=e("to","to"),r=e("of","of"),s=e("firstPage","First Page"),a=e("previousPage","Previous Page"),l=e("nextPage","Next Page"),c=e("lastPage","Last Page"),u=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'.concat(u,`">
  219. <ag-page-size-selector ref="pageSizeComp"></ag-page-size-selector>
  220. <span class="ag-paging-row-summary-panel" role="status">
  221. <span id="ag-`).concat(u,`-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
  222. <span id="ag-`).concat(u,'-to">').concat(i,`</span>
  223. <span id="ag-`).concat(u,`-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
  224. <span id="ag-`).concat(u,'-of">').concat(r,`</span>
  225. <span id="ag-`).concat(u,`-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
  226. </span>
  227. <span class="ag-paging-page-summary-panel" role="presentation">
  228. <div ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="`).concat(s,`"></div>
  229. <div ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="`).concat(a,`"></div>
  230. <span class="ag-paging-description" role="status">
  231. <span id="ag-`).concat(u,'-start-page">').concat(t,`</span>
  232. <span id="ag-`).concat(u,`-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>
  233. <span id="ag-`).concat(u,'-of-page">').concat(r,`</span>
  234. <span id="ag-`).concat(u,`-of-page-number" ref="lbTotal" class="ag-paging-number"></span>
  235. </span>
  236. <div ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="`).concat(l,`"></div>
  237. <div ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="`).concat(c,`"></div>
  238. </span>
  239. </div>`)},n.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},n.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},n.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},n.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var r=this.isZeroPagesToDisplay(),s=e===i-1;this.nextButtonDisabled=s||r,this.lastButtonDisabled=!t||r||e===i-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},n.prototype.toggleButtonDisabled=function(e,t){s0(e,t),e.classList.toggle("ag-disabled",t)},n.prototype.updateRowLabels=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.getPageSize(),i=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null,s,a;if(this.isZeroPagesToDisplay()?s=a=0:(s=t*e+1,a=s+t-1,i&&a>r&&(a=r)),this.lbFirstRowOnPage.textContent=this.formatNumber(s),this.rowNodeBlockLoader.isLoading()){var l=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=l("pageLastRowUnknown","?")}else this.lbLastRowOnPage.textContent=this.formatNumber(a)},n.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&t===0},n.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),i=e?this.paginationProxy.getMasterRowCount():null;if(i===1){var r=this.paginationProxy.getRow(0),s=r&&r.group&&!(r.groupData||r.aggData);if(s){this.setTotalLabelsToZero();return}}if(e)this.lbTotal.textContent=this.formatNumber(t),this.lbRecordCount.textContent=this.formatNumber(i);else{var a=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=a,this.lbRecordCount.innerHTML=a}},n.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.textContent=this.formatNumber(0),this.lbCurrent.textContent=this.formatNumber(0),this.lbLastRowOnPage.textContent=this.formatNumber(0),this.lbTotal.textContent=this.formatNumber(0),this.lbRecordCount.textContent=this.formatNumber(0)},wr([b("paginationProxy")],n.prototype,"paginationProxy",void 0),wr([b("rowNodeBlockLoader")],n.prototype,"rowNodeBlockLoader",void 0),wr([Ce("btFirst")],n.prototype,"btFirst",void 0),wr([Ce("btPrevious")],n.prototype,"btPrevious",void 0),wr([Ce("btNext")],n.prototype,"btNext",void 0),wr([Ce("btLast")],n.prototype,"btLast",void 0),wr([Ce("lbRecordCount")],n.prototype,"lbRecordCount",void 0),wr([Ce("lbFirstRowOnPage")],n.prototype,"lbFirstRowOnPage",void 0),wr([Ce("lbLastRowOnPage")],n.prototype,"lbLastRowOnPage",void 0),wr([Ce("lbCurrent")],n.prototype,"lbCurrent",void 0),wr([Ce("lbTotal")],n.prototype,"lbTotal",void 0),wr([Ce("pageSizeComp")],n.prototype,"pageSizeComp",void 0),wr([pe],n.prototype,"postConstruct",null),n}(dt),One=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),C_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Dne=function(o){One(n,o);function n(){var e=o.call(this,n.TEMPLATE)||this;return e.inProgress=!1,e.destroyRequested=!1,e}return n.prototype.updateLayoutClasses=function(e,t){var i=this.eOverlayWrapper.classList;i.toggle(ei.AUTO_HEIGHT,t.autoHeight),i.toggle(ei.NORMAL,t.normal),i.toggle(ei.PRINT,t.print)},n.prototype.postConstruct=function(){this.createManagedBean(new L0(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.overlayService.registerOverlayWrapperComp(this)},n.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;this.activeOverlayWrapperCssClass&&t.toggle(this.activeOverlayWrapperCssClass,!1),this.activeOverlayWrapperCssClass=e,t.toggle(e,!0)},n.prototype.showOverlay=function(e,t,i){var r=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then(function(s){r.inProgress=!1,r.eOverlayWrapper.appendChild(s.getGui()),r.activeOverlay=s,r.updateListenerDestroyFunc=i,r.destroyRequested&&(r.destroyRequested=!1,r.destroyActiveOverlay())}),this.setDisplayed(!0,{skipAriaHidden:!0}))},n.prototype.destroyActiveOverlay=function(){var e;if(this.inProgress){this.destroyRequested=!0;return}this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),(e=this.updateListenerDestroyFunc)===null||e===void 0||e.call(this),ti(this.eOverlayWrapper))},n.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},n.prototype.destroy=function(){this.destroyActiveOverlay(),o.prototype.destroy.call(this)},n.TEMPLATE=`
  240. <div class="ag-overlay" role="presentation">
  241. <div class="ag-overlay-panel" role="presentation">
  242. <div class="ag-overlay-wrapper" ref="eOverlayWrapper" role="presentation"></div>
  243. </div>
  244. </div>`,C_([b("overlayService")],n.prototype,"overlayService",void 0),C_([Ce("eOverlayWrapper")],n.prototype,"eOverlayWrapper",void 0),C_([pe],n.prototype,"postConstruct",null),n}(dt),Rne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),qf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Ine=function(o){Rne(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.getFirstRow=function(){var e=0,t;return this.pinnedRowModel.getPinnedTopRowCount()?t="top":this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t="bottom"),t===void 0?null:{rowIndex:e,rowPinned:t}},n.prototype.getLastRow=function(){var e,t=null,i=this.pinnedRowModel.getPinnedBottomRowCount(),r=this.pinnedRowModel.getPinnedTopRowCount();return i?(t="bottom",e=i-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):r&&(t="top",e=r-1),e===void 0?null:{rowIndex:e,rowPinned:t}},n.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},n.prototype.sameRow=function(e,t){return!e&&!t?!0:e&&!t||!e&&t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned},n.prototype.before=function(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(ne(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex},n.prototype.rowMax=function(e){var t=this,i;return e.forEach(function(r){(i===void 0||t.before(i,r))&&(i=r)}),i},n.prototype.rowMin=function(e){var t=this,i;return e.forEach(function(r){(i===void 0||t.before(r,i))&&(i=r)}),i},qf([b("rowModel")],n.prototype,"rowModel",void 0),qf([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),qf([b("paginationProxy")],n.prototype,"paginationProxy",void 0),n=qf([Oe("rowPositionUtils")],n),n}(re),Pne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Mne=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Fne=function(o){Pne(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.createId=function(e){var t=e.rowIndex,i=e.rowPinned,r=e.column;return this.createIdFromValues({rowIndex:t,column:r,rowPinned:i})},n.prototype.createIdFromValues=function(e){var t=e.rowIndex,i=e.rowPinned,r=e.column;return"".concat(t,".").concat(i??"null",".").concat(r.getId())},n.prototype.equals=function(e,t){var i=e.column===t.column,r=e.rowPinned===t.rowPinned,s=e.rowIndex===t.rowIndex;return i&&r&&s},n=Mne([Oe("cellPositionUtils")],n),n}(re),Ane=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ad=function(){function o(n){this.cellValueChanges=n}return o}(),__=function(o){Ane(n,o);function n(e,t,i,r){var s=o.call(this,e)||this;return s.initialRange=t,s.finalRange=i,s.ranges=r,s}return n}(Ad),uD=function(){function o(n){this.actionStack=[],this.maxStackSize=n||o.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return o.prototype.pop=function(){return this.actionStack.pop()},o.prototype.push=function(n){var e=n.cellValueChanges&&n.cellValueChanges.length>0;e&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(n))},o.prototype.clear=function(){this.actionStack=[]},o.prototype.getCurrentStackSize=function(){return this.actionStack.length},o.DEFAULT_STACK_SIZE=10,o}(),Nne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),bg=function(){return bg=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},bg.apply(this,arguments)},$o=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Lne=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},kne=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Vne=function(o){Nne(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isRangeInAction=!1,e.onCellValueChanged=function(t){var i={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned},r=e.activeCellEdit!==null&&e.cellPositionUtils.equals(e.activeCellEdit,i),s=e.activeRowEdit!==null&&e.rowPositionUtils.sameRow(e.activeRowEdit,i),a=r||s||e.isPasting||e.isRangeInAction;if(a){var l=t.rowPinned,c=t.rowIndex,u=t.column,d=t.oldValue,p=t.value,g={rowPinned:l,rowIndex:c,columnId:u.getColId(),newValue:p,oldValue:d};e.cellValueChanges.push(g)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return n.prototype.init=function(){var e=this;if(this.gridOptionsService.get("undoRedoCellEditing")){var t=this.gridOptionsService.get("undoRedoCellEditingLimit");t<=0||(this.undoStack=new uD(t),this.redoStack=new uD(t),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,T.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,T.EVENT_MODEL_UPDATED,function(i){i.keepUndoRedoStack||e.clearStacks()}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,T.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))}},n.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},n.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},n.prototype.undo=function(e){var t={type:T.EVENT_UNDO_STARTED,source:e};this.eventService.dispatchEvent(t);var i=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),r={type:T.EVENT_UNDO_ENDED,source:e,operationPerformed:i};this.eventService.dispatchEvent(r)},n.prototype.redo=function(e){var t={type:T.EVENT_REDO_STARTED,source:e};this.eventService.dispatchEvent(t);var i=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),r={type:T.EVENT_REDO_ENDED,source:e,operationPerformed:i};this.eventService.dispatchEvent(r)},n.prototype.undoRedo=function(e,t,i,r,s){if(!e)return!1;var a=e.pop();return!a||!a.cellValueChanges?!1:(this.processAction(a,function(l){return l[r]},s),a instanceof __?this.processRange(a.ranges||[a[i]]):this.processCell(a.cellValueChanges),t.push(a),!0)},n.prototype.processAction=function(e,t,i){var r=this;e.cellValueChanges.forEach(function(s){var a=s.rowIndex,l=s.rowPinned,c=s.columnId,u={rowIndex:a,rowPinned:l},d=r.getRowNode(u);d.displayed&&d.setDataValue(c,t(s),i)})},n.prototype.processRange=function(e){var t=this,i;this.rangeService.removeAllCellRanges(!0),e.forEach(function(r,s){if(r){var a=r.startRow,l=r.endRow;s===e.length-1&&(i={rowPinned:a.rowPinned,rowIndex:a.rowIndex,columnId:r.startColumn.getColId()},t.setLastFocusedCell(i));var c={rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,rowEndIndex:l.rowIndex,rowEndPinned:l.rowPinned,columnStart:r.startColumn,columns:r.columns};t.rangeService.addCellRange(c)}})},n.prototype.processCell=function(e){var t=e[0],i=t.rowIndex,r=t.rowPinned,s={rowIndex:i,rowPinned:r},a=this.getRowNode(s),l={rowPinned:t.rowPinned,rowIndex:a.rowIndex,columnId:t.columnId};this.setLastFocusedCell(l,!!this.rangeService)},n.prototype.setLastFocusedCell=function(e,t){var i=e.rowIndex,r=e.columnId,s=e.rowPinned,a=this.gridBodyCtrl.getScrollFeature(),l=this.columnModel.getGridColumn(r);if(l){a.ensureIndexVisible(i),a.ensureColumnVisible(l);var c={rowIndex:i,column:l,rowPinned:s};this.focusService.setFocusedCell(bg(bg({},c),{forceBrowserFocus:!0})),t&&this.rangeService.setRangeToCell(c)}},n.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_ROW_EDITING_STARTED,function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}}),this.addManagedListener(this.eventService,T.EVENT_ROW_EDITING_STOPPED,function(){var t=new Ad(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null})},n.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_CELL_EDITING_STARTED,function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}}),this.addManagedListener(this.eventService,T.EVENT_CELL_EDITING_STOPPED,function(t){e.activeCellEdit=null;var i=t.valueChanged&&!e.activeRowEdit&&!e.isPasting&&!e.isRangeInAction;if(i){var r=new Ad(e.cellValueChanges);e.pushActionsToUndoStack(r)}})},n.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_PASTE_START,function(){e.isPasting=!0}),this.addManagedListener(this.eventService,T.EVENT_PASTE_END,function(){var t=new Ad(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1})},n.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_FILL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,T.EVENT_FILL_END,function(t){var i=new __(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(i),e.isRangeInAction=!1})},n.prototype.addCellKeyListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,T.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,function(){var t;e.rangeService&&e.gridOptionsService.get("enableRangeSelection")?t=new __(e.cellValueChanges,void 0,void 0,kne([],Lne(e.rangeService.getCellRanges()),!1)):t=new Ad(e.cellValueChanges),e.pushActionsToUndoStack(t),e.isRangeInAction=!1})},n.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},n.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},$o([b("focusService")],n.prototype,"focusService",void 0),$o([b("ctrlsService")],n.prototype,"ctrlsService",void 0),$o([b("rowModel")],n.prototype,"rowModel",void 0),$o([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),$o([b("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),$o([b("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),$o([b("columnModel")],n.prototype,"columnModel",void 0),$o([Mt("rangeService")],n.prototype,"rangeService",void 0),$o([pe],n.prototype,"init",null),n=$o([Oe("undoRedoService")],n),n}(re),Gne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),S_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Hne=function(o){Gne(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.findHeader=function(e,t){var i,r,s;if(e.column instanceof qn?(r="getDisplayedGroup".concat(t),i=this.columnModel[r](e.column)):(s="getDisplayedCol".concat(t),i=this.columnModel[s](e.column)),!!i){var a=e.headerRowIndex;if(this.getHeaderRowType(a)!==zi.FLOATING_FILTER){for(var l=[i];i.getParent();)i=i.getParent(),l.push(i);i=l[l.length-1-a]}var c=this.getHeaderIndexToFocus(i,a),u=c.column,d=c.headerRowIndex;return{column:u,headerRowIndex:d}}},n.prototype.getHeaderIndexToFocus=function(e,t){var i;if(e instanceof qn&&this.isAnyChildSpanningHeaderHeight(e)&&e.isPadding()){var r=e;i=r.getLeafColumns()[0];for(var s=i;s!==r;)t++,s=s.getParent()}return{column:i||e,headerRowIndex:t}},n.prototype.isAnyChildSpanningHeaderHeight=function(e){return e?e.getLeafColumns().some(function(t){return t.isSpanHeaderHeight()}):!1},n.prototype.getColumnVisibleParent=function(e,t){var i=this.getHeaderRowType(t),r=i===zi.FLOATING_FILTER,s=i===zi.COLUMN,a=r?e:e.getParent(),l=t-1,c=l;if(s&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;a&&a.isPadding();)a=a.getParent(),l--;c=l,l<0&&(a=e,l=t,c=void 0)}return{column:a,headerRowIndex:l,headerRowIndexWithoutSpan:c}},n.prototype.getColumnVisibleChild=function(e,t,i){i===void 0&&(i="After");var r=this.getHeaderRowType(t),s=e,a=t+1,l=a;if(r===zi.COLUMN_GROUP){for(var c=e.getDisplayedLeafColumns(),u=i==="After"?c[0]:Nt(c),d=[],p=u;p.getParent()!==e;)p=p.getParent(),d.push(p);if(s=u,u.isSpanHeaderHeight())for(var g=d.length-1;g>=0;g--){var v=d[g];if(!v.isPadding()){s=v;break}a++}else s=Nt(d),s||(s=u)}return{column:s,headerRowIndex:a,headerRowIndexWithoutSpan:l}},n.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},n.prototype.findColAtEdgeForHeaderRow=function(e,t){var i=this.columnModel.getAllDisplayedColumns(),r=i[t==="start"?0:i.length-1];if(r){var s=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()),a=s.getRowType(e);if(a==zi.COLUMN_GROUP){var l=this.columnModel.getColumnGroupAtLevel(r,e);return{headerRowIndex:e,column:l}}return{headerRowIndex:a==null?-1:e,column:r}}},S_([b("columnModel")],n.prototype,"columnModel",void 0),S_([b("ctrlsService")],n.prototype,"ctrlsService",void 0),n=S_([Oe("headerPositionUtils")],n),n}(re),Bne=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},$ne=function(){function o(){}return o.prototype.buildColumnDefs=function(n,e,t){var i=this,r=[],s={};return n.forEach(function(a){for(var l=i.createDefFromColumn(a,e,t),c=!0,u=l,d=a.getOriginalParent(),p=null;d;){var g=null;if(d.isPadding()){d=d.getOriginalParent();continue}var v=s[d.getGroupId()];if(v){v.children.push(u),c=!1;break}if(g=i.createDefFromGroup(d),g&&(g.children=[u],s[g.groupId]=g,u=g,d=d.getOriginalParent()),d!=null&&p===d){c=!1;break}p=d}c&&r.push(u)}),r},o.prototype.createDefFromGroup=function(n){var e=rg(n.getColGroupDef(),["children"]);return e&&(e.groupId=n.getGroupId()),e},o.prototype.createDefFromColumn=function(n,e,t){var i=rg(n.getColDef());return i.colId=n.getColId(),i.width=n.getActualWidth(),i.rowGroup=n.isRowGroupActive(),i.rowGroupIndex=n.isRowGroupActive()?e.indexOf(n):null,i.pivot=n.isPivotActive(),i.pivotIndex=n.isPivotActive()?t.indexOf(n):null,i.aggFunc=n.isValueActive()?n.getAggFunc():null,i.hide=n.isVisible()?void 0:!0,i.pinned=n.isPinned()?n.getPinned():null,i.sort=n.getSort()?n.getSort():null,i.sortIndex=n.getSortIndex()!=null?n.getSortIndex():null,i},o=Bne([Oe("columnDefFactory")],o),o}(),w_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},jne=function(){function o(){}return o.prototype.getInitialRowClasses=function(n){var e=[];return ne(n.extraCssClass)&&e.push(n.extraCssClass),e.push("ag-row"),e.push(n.rowFocused?"ag-row-focus":"ag-row-no-focus"),n.fadeRowIn&&e.push("ag-opacity-zero"),e.push(n.rowIsEven?"ag-row-even":"ag-row-odd"),n.rowNode.isRowPinned()&&e.push("ag-row-pinned"),n.rowNode.isSelected()&&e.push("ag-row-selected"),n.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+n.rowLevel),n.rowNode.stub&&e.push("ag-row-loading"),n.fullWidthRow&&e.push("ag-full-width-row"),n.expandable&&(e.push("ag-row-group"),e.push(n.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),n.rowNode.dragging&&e.push("ag-row-dragging"),N_(e,this.processClassesFromGridOptions(n.rowNode)),N_(e,this.preProcessRowClassRules(n.rowNode)),e.push(n.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),n.firstRowOnPage&&e.push("ag-row-first"),n.lastRowOnPage&&e.push("ag-row-last"),n.fullWidthRow&&(n.pinned==="left"&&e.push("ag-cell-last-left-pinned"),n.pinned==="right"&&e.push("ag-cell-first-right-pinned")),e},o.prototype.processClassesFromGridOptions=function(n){var e=[],t=function(l){typeof l=="string"?e.push(l):Array.isArray(l)&&l.forEach(function(c){return e.push(c)})},i=this.gridOptionsService.get("rowClass");if(i){if(typeof i=="function")return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];t(i)}var r=this.gridOptionsService.getCallback("getRowClass");if(r){var s={data:n.data,node:n,rowIndex:n.rowIndex},a=r(s);t(a)}return e},o.prototype.preProcessRowClassRules=function(n){var e=[];return this.processRowClassRules(n,function(t){e.push(t)},function(t){}),e},o.prototype.processRowClassRules=function(n,e,t){var i=this.gridOptionsService.addGridCommonParams({data:n.data,node:n,rowIndex:n.rowIndex});this.stylingService.processClassRules(void 0,this.gridOptionsService.get("rowClassRules"),i,e,t)},o.prototype.calculateRowLevel=function(n){return n.group?n.level:n.parent?n.parent.level+1:0},w_([b("stylingService")],o.prototype,"stylingService",void 0),w_([b("gridOptionsService")],o.prototype,"gridOptionsService",void 0),o=w_([Oe("rowCssClassCalculator")],o),o}(),Wne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Yf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Une=function(o){Wne(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.init=function(){var e=this;this.isAccentedSort=this.gridOptionsService.get("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",function(t){return e.isAccentedSort=t.currentValue}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.primaryColumnsSortGroups=e.gridOptionsService.isColumnsSortingCoupledToGroup()})},n.prototype.doFullSort=function(e,t){var i=function(s,a){return{currentPos:a,rowNode:s}},r=e.map(i);return r.sort(this.compareRowNodes.bind(this,t)),r.map(function(s){return s.rowNode})},n.prototype.compareRowNodes=function(e,t,i){for(var r=t.rowNode,s=i.rowNode,a=0,l=e.length;a<l;a++){var c=e[a],u=c.sort==="desc",d=this.getValue(r,c.column),p=this.getValue(s,c.column),g=void 0,v=this.getComparator(c,r);v?g=v(d,p,r,s,u):g=mt.defaultComparator(d,p,this.isAccentedSort);var y=!isNaN(g);if(y&&g!==0)return c.sort==="asc"?g:g*-1}return t.currentPos-i.currentPos},n.prototype.getComparator=function(e,t){var i=e.column,r=i.getColDef().comparator;if(r!=null)return r;if(i.getColDef().showRowGroup){var s=!t.group&&i.getColDef().field;if(s){var a=this.columnModel.getPrimaryColumn(s);if(a)return a.getColDef().comparator}}},n.prototype.getValue=function(e,t){var i,r;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(t,e,!1,!1);var s=e.rowGroupColumn===t;if(s){var a=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive());if(a){var l=(i=e.allLeafChildren)===null||i===void 0?void 0:i[0];return l?this.valueService.getValue(t,l,!1,!1):void 0}var c=this.columnModel.getGroupDisplayColumnForGroup(t.getId());return c?(r=e.groupData)===null||r===void 0?void 0:r[c.getId()]:void 0}if(!(e.group&&t.getColDef().showRowGroup))return this.valueService.getValue(t,e,!1,!1)},Yf([b("valueService")],n.prototype,"valueService",void 0),Yf([b("columnModel")],n.prototype,"columnModel",void 0),Yf([pe],n.prototype,"init",null),n=Yf([Oe("rowNodeSorter")],n),n}(re),Kne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),qne=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Yne=function(o){Kne(n,o);function n(){var t=o!==null&&o.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}e=n,n.prototype.checkReady=function(){if(this.ready=this.gridCtrl!=null&&this.gridBodyCtrl!=null&&this.centerRowContainerCtrl!=null&&this.leftRowContainerCtrl!=null&&this.rightRowContainerCtrl!=null&&this.bottomCenterRowContainerCtrl!=null&&this.bottomLeftRowContainerCtrl!=null&&this.bottomRightRowContainerCtrl!=null&&this.topCenterRowContainerCtrl!=null&&this.topLeftRowContainerCtrl!=null&&this.topRightRowContainerCtrl!=null&&this.stickyTopCenterRowContainerCtrl!=null&&this.stickyTopLeftRowContainerCtrl!=null&&this.stickyTopRightRowContainerCtrl!=null&&this.centerHeaderRowContainerCtrl!=null&&this.leftHeaderRowContainerCtrl!=null&&this.rightHeaderRowContainerCtrl!=null&&this.fakeHScrollComp!=null&&this.fakeVScrollComp!=null&&this.gridHeaderCtrl!=null,this.ready){var t=this.createReadyParams();this.readyCallbacks.forEach(function(i){return i(t)}),this.readyCallbacks.length=0}},n.prototype.whenReady=function(t){this.ready?t(this.createReadyParams()):this.readyCallbacks.push(t)},n.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},n.prototype.registerFakeHScrollComp=function(t){this.fakeHScrollComp=t,this.checkReady()},n.prototype.registerFakeVScrollComp=function(t){this.fakeVScrollComp=t,this.checkReady()},n.prototype.registerGridHeaderCtrl=function(t){this.gridHeaderCtrl=t,this.checkReady()},n.prototype.registerCenterRowContainerCtrl=function(t){this.centerRowContainerCtrl=t,this.checkReady()},n.prototype.registerLeftRowContainerCtrl=function(t){this.leftRowContainerCtrl=t,this.checkReady()},n.prototype.registerRightRowContainerCtrl=function(t){this.rightRowContainerCtrl=t,this.checkReady()},n.prototype.registerTopCenterRowContainerCtrl=function(t){this.topCenterRowContainerCtrl=t,this.checkReady()},n.prototype.registerTopLeftRowContainerCon=function(t){this.topLeftRowContainerCtrl=t,this.checkReady()},n.prototype.registerTopRightRowContainerCtrl=function(t){this.topRightRowContainerCtrl=t,this.checkReady()},n.prototype.registerStickyTopCenterRowContainerCtrl=function(t){this.stickyTopCenterRowContainerCtrl=t,this.checkReady()},n.prototype.registerStickyTopLeftRowContainerCon=function(t){this.stickyTopLeftRowContainerCtrl=t,this.checkReady()},n.prototype.registerStickyTopRightRowContainerCtrl=function(t){this.stickyTopRightRowContainerCtrl=t,this.checkReady()},n.prototype.registerBottomCenterRowContainerCtrl=function(t){this.bottomCenterRowContainerCtrl=t,this.checkReady()},n.prototype.registerBottomLeftRowContainerCtrl=function(t){this.bottomLeftRowContainerCtrl=t,this.checkReady()},n.prototype.registerBottomRightRowContainerCtrl=function(t){this.bottomRightRowContainerCtrl=t,this.checkReady()},n.prototype.registerHeaderContainer=function(t,i){switch(i){case"left":this.leftHeaderRowContainerCtrl=t;break;case"right":this.rightHeaderRowContainerCtrl=t;break;default:this.centerHeaderRowContainerCtrl=t;break}this.checkReady()},n.prototype.registerGridBodyCtrl=function(t){this.gridBodyCtrl=t,this.checkReady()},n.prototype.registerGridCtrl=function(t){this.gridCtrl=t,this.checkReady()},n.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},n.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},n.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},n.prototype.getGridCtrl=function(){return this.gridCtrl},n.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},n.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},n.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},n.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},n.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},n.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},n.prototype.getHeaderRowContainerCtrl=function(t){switch(t){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}};var e;return n.NAME="ctrlsService",n=e=qne([Oe(e.NAME)],n),n}(re),Qne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Xne=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Zne=function(o){Qne(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.registry={},e}return n.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},n.prototype.getInstance=function(e){var t=this.registry[e];if(t!=null)return new t},n=Xne([Oe("ctrlsFactory")],n),n}(re),Jne=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Td=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},nI=function(o){Jne(n,o);function n(e,t){var i=o.call(this,e)||this;return i.direction=t,i.hideTimeout=null,i}return n.prototype.postConstruct=function(){this.addManagedListener(this.eventService,T.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",m0()||Es())},n.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=y0(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},n.prototype.addActiveListenerToggles=function(){var e=this,t=["mouseenter","mousedown","touchstart"],i=["mouseleave","touchend"],r=this.getGui();t.forEach(function(s){return e.addManagedListener(r,s,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),i.forEach(function(s){return e.addManagedListener(r,s,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},n.prototype.onScrollVisibilityChanged=function(){var e=this;this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame(function(){return e.setScrollVisible()})},n.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL,function(t){t.direction===e.direction&&(e.hideTimeout!==null&&(window.clearTimeout(e.hideTimeout),e.hideTimeout=null),e.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))}),this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL_END,function(){e.hideTimeout=window.setTimeout(function(){e.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),e.hideTimeout=null},400)})},n.prototype.attemptSettingScrollPosition=function(e){var t=this,i=this.getViewport();e0(function(){return Dr(i)},function(){return t.setScrollPosition(e)},100)},n.prototype.getViewport=function(){return this.eViewport},n.prototype.getContainer=function(){return this.eContainer},n.prototype.onScrollCallback=function(e){this.addManagedListener(this.getViewport(),"scroll",e)},Td([Ce("eViewport")],n.prototype,"eViewport",void 0),Td([Ce("eContainer")],n.prototype,"eContainer",void 0),Td([b("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Td([b("ctrlsService")],n.prototype,"ctrlsService",void 0),Td([b("animationFrameService")],n.prototype,"animationFrameService",void 0),n}(dt),eie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Ed=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},tie=function(o){eie(n,o);function n(){return o.call(this,n.TEMPLATE,"horizontal")||this}return n.prototype.postConstruct=function(){var e=this;o.prototype.postConstruct.call(this);var t=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedListener(this.eventService,T.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",t),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new k0(function(i){return e.eContainer.style.width="".concat(i,"px")})),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))},n.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gridOptionsService.get("enableRtl"),o.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},n.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},n.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom="".concat(e,"px")}},n.prototype.onScrollVisibilityChanged=function(){o.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},n.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),i=!this.enableRtl&&e,r=this.gridOptionsService.getScrollbarWidth();i&&(t+=r),Yr(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);var s=this.columnModel.getDisplayedColumnsLeftWidth(),a=this.enableRtl&&e;a&&(s+=r),Yr(this.eLeftSpacer,s),this.eLeftSpacer.classList.toggle("ag-scroller-corner",s<=r)},n.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,i=this.gridOptionsService.get("suppressHorizontalScroll"),r=e&&this.gridOptionsService.getScrollbarWidth()||0,s=r===0&&t?16:r,a=i?0:s;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),rl(this.getGui(),a),rl(this.eViewport,a),rl(this.eContainer,a),this.setDisplayed(e,{skipAriaHidden:!0})},n.prototype.getScrollPosition=function(){return jd(this.getViewport(),this.enableRtl)},n.prototype.setScrollPosition=function(e){Dr(this.getViewport())||this.attemptSettingScrollPosition(e),Wd(this.getViewport(),e,this.enableRtl)},n.TEMPLATE=`<div class="ag-body-horizontal-scroll" aria-hidden="true">
  245. <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>
  246. <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">
  247. <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>
  248. </div>
  249. <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>
  250. </div>`,Ed([Ce("eLeftSpacer")],n.prototype,"eLeftSpacer",void 0),Ed([Ce("eRightSpacer")],n.prototype,"eRightSpacer",void 0),Ed([b("columnModel")],n.prototype,"columnModel",void 0),Ed([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Ed([pe],n.prototype,"postConstruct",null),n}(nI),nie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),b_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},iie=function(o){nie(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,T.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener("domLayout",e)},n.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout("print"),t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),i=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:T.EVENT_LEFT_PINNED_WIDTH_CHANGED})),i!=this.rightWidth&&(this.rightWidth=i,this.eventService.dispatchEvent({type:T.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},n.prototype.getPinnedRightWidth=function(){return this.rightWidth},n.prototype.getPinnedLeftWidth=function(){return this.leftWidth},b_([b("columnModel")],n.prototype,"columnModel",void 0),b_([pe],n.prototype,"postConstruct",null),n=b_([Oe("pinnedWidthService")],n),n}(re),rie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Qf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},oie=function(o){rie(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.events=[],e}return n.prototype.postConstruct=function(){this.rowModel.getType()=="clientSide"&&(this.clientSideRowModel=this.rowModel)},n.prototype.dispatchExpanded=function(e){var t=this;if(this.clientSideRowModel==null){this.eventService.dispatchEvent(e);return}this.events.push(e);var i=function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach(function(r){return t.eventService.dispatchEvent(r)}),t.events=[]};this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(i)),this.dispatchExpandedDebounced()},Qf([b("animationFrameService")],n.prototype,"animationFrameService",void 0),Qf([b("rowModel")],n.prototype,"rowModel",void 0),Qf([pe],n.prototype,"postConstruct",null),n=Qf([Oe("rowNodeEventThrottle")],n),n}(re),sie={columnsMenuParams:{version:"31.1",message:"Use `columnChooserParams` instead."},suppressMenu:{version:"31.1",message:"Use `suppressHeaderMenuButton` instead."}},oa=function(o,n){var e;return((e=n.rowModelType)!==null&&e!==void 0?e:"clientSide")==="clientSide"?{module:je.RowGroupingModule}:null},aie={enableRowGroup:oa,rowGroup:oa,rowGroupIndex:oa,enablePivot:oa,enableValue:oa,pivot:oa,pivotIndex:oa,aggFunc:oa,cellEditor:function(o){return o.cellEditor==="agRichSelect"||o.cellEditor==="agRichSelectCellEditor"?{module:je.RichSelectModule}:null},menuTabs:function(o){var n,e=["columnsMenuTab","generalMenuTab"];return!((n=o.menuTabs)===null||n===void 0)&&n.some(function(t){return e.includes(t)})?{module:je.MenuModule}:null},columnsMenuParams:{module:[je.MenuModule,je.ColumnsToolPanelModule]},columnChooserParams:{module:[je.MenuModule,je.ColumnsToolPanelModule]},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],dependencies:function(o,n){var e=n.rowSelection;return e==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"}},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],dependencies:function(o,n){var e=n.rowSelection;return e==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"}},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],dependencies:function(o,n){var e=n.rowSelection;return e==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"}},children:function(){return kc}},kc={objectName:"colDef",allProperties:gX.ALL_PROPERTIES,docsUrl:"column-properties/",deprecations:sie,validations:aie},dD=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},pD=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},lie={enableChartToolPanelsButton:{version:"29",message:"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true."},functionsPassive:{version:"29.2"},onColumnRowGroupChangeRequest:{version:"29.2"},onColumnPivotChangeRequest:{version:"29.2"},onColumnValueChangeRequest:{version:"29.2"},onColumnAggFuncChangeRequest:{version:"29.2"},serverSideFilterAllLevels:{version:"30",message:"All server-side group levels are now filtered by default. This can be toggled using `serverSideOnlyRefreshFilteredGroups`."},suppressAggAtRootLevel:{version:"30",message:"The root level aggregation is now suppressed by default. This can be toggled using `alwaysAggregateAtRootLevel`."},excludeHiddenColumnsFromQuickFilter:{version:"30",message:"Hidden columns are now excluded from the Quick Filter by default. This can be toggled using `includeHiddenColumnsInQuickFilter`."},enterMovesDown:{version:"30",renamed:"enterNavigatesVertically"},enterMovesDownAfterEdit:{version:"30",renamed:"enterNavigatesVerticallyAfterEdit"},suppressParentsInRowNodes:{version:"30.2",message:"Using suppressParentsInRowNodes is no longer recommended. To serialize nodes it is now recommended to instead remove the parent node reference before serialization."},advancedFilterModel:{version:"31",message:"Use `initialState.filter.advancedFilterModel` instead."},suppressAsyncEvents:{version:"31",message:"Events should be handled asynchronously."},cellFadeDelay:{version:"31.1",renamed:"cellFadeDuration"},cellFlashDelay:{version:"31.1",renamed:"cellFlashDuration"},suppressServerSideInfiniteScroll:{version:"31.1"},serverSideSortOnServer:{version:"31.1"},serverSideFilterOnServer:{version:"31.1"}},cie={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!1,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,suppressChartToolPanelsButton:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressAsyncEvents:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,enableCellChangeFlash:!1,cellFlashDelay:500,cellFlashDuration:500,cellFadeDelay:1e3,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupIncludeTotalFooter:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,suppressServerSideInfiniteScroll:!1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSideSortOnServer:!1,serverSideFilterOnServer:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,suppressGroupMaintainValueType:!1,functionsPassive:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1},uie={sideBar:{module:je.SideBarModule},statusBar:{module:je.StatusBarModule},enableCharts:{module:je.GridChartsModule},getMainMenuItems:{module:je.MenuModule},getContextMenuItems:{module:je.MenuModule},allowContextMenuWithControlKey:{module:je.MenuModule},enableAdvancedFilter:{module:je.AdvancedFilterModule},treeData:{supportedRowModels:["clientSide","serverSide"],module:je.RowGroupingModule,dependencies:function(o){var n,e=(n=o.rowModelType)!==null&&n!==void 0?n:"clientSide";switch(e){case"clientSide":var t="treeData requires 'getDataPath' in the ".concat(e," row model.");return o.getDataPath?null:t;case"serverSide":var i="treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ".concat(e," row model.");return o.isServerSideGroup&&o.getServerSideGroupKey?null:i}return null}},masterDetail:{module:je.MasterDetailModule},enableRangeSelection:{module:je.RangeSelectionModule},enableRangeHandle:{dependencies:{enableRangeSelection:[!0]}},enableFillHandle:{dependencies:{enableRangeSelection:[!0]}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupIncludeFooter:{supportedRowModels:["clientSide","serverSide"],dependencies:function(o){var n,e=(n=o.rowModelType)!==null&&n!==void 0?n:"clientSide";switch(e){case"clientSide":return null;case"serverSide":var t="groupIncludeFooter is not supported alongside suppressServerSideInfiniteScroll";return o.suppressServerSideInfiniteScroll?t:null}return null}},groupIncludeTotalFooter:{supportedRowModels:["clientSide"]},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveLowestSingleChildren:[void 0,!1]}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveSingleChildren:[void 0,!1]}},groupSelectsChildren:{dependencies:{rowSelection:["multiple"]}},suppressParentsInRowNodes:{dependencies:{groupSelectsChildren:[void 0,!1]}},viewportDatasource:{supportedRowModels:["viewport"],module:je.ViewportRowModelModule},serverSideDatasource:{supportedRowModels:["serverSide"],module:je.ServerSideRowModelModule},cacheBlockSize:{supportedRowModels:["serverSide","infinite"]},datasource:{supportedRowModels:["infinite"],module:je.InfiniteRowModelModule},rowData:{supportedRowModels:["clientSide"],module:je.ClientSideRowModelModule},columnDefs:function(){return kc},defaultColDef:function(){return kc},defaultColGroupDef:function(){return kc},autoGroupColumnDef:function(){return kc}},die={objectName:"gridOptions",allProperties:pD(pD([],dD(qo.ALL_PROPERTIES),!1),dD(Yd.EVENT_CALLBACKS),!1),propertyExceptions:["api","columnApi"],docsUrl:"grid-options/",deprecations:lie,validations:uie},jo=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Xf=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},T_=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},iI=function(){function o(){var e=this;this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new ga,this.globalEventHandlerFactory=function(t){return function(i,r){if(!e.destroyed){var s=n.alwaysSyncGlobalEvents.has(i);if(!(s&&!t||!s&&t)){var a=Yd.getCallbackForEvent(i),l=e.gridOptions[a];typeof l=="function"&&e.frameworkOverrides.wrapOutgoing(function(){l(r)})}}}}}n=o,Object.defineProperty(o.prototype,"context",{get:function(){return this.gridOptions.context},enumerable:!1,configurable:!0}),o.prototype.init=function(){this.columnApi=new ep(this.api);var e=!this.get("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandlerFactory().bind(this),e),this.eventService.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propertyEventService.setFrameworkOverrides(this.frameworkOverrides),this.getScrollbarWidth()},o.prototype.destroy=function(){this.destroyed=!0,this.columnApi=void 0},o.prototype.get=function(e){var t;return(t=this.gridOptions[e])!==null&&t!==void 0?t:cie[e]},o.prototype.getCallback=function(e){return this.mergeGridCommonParams(this.gridOptions[e])},o.prototype.exists=function(e){return ne(this.gridOptions[e])},o.prototype.mergeGridCommonParams=function(e){var t=this;if(e){var i=function(r){var s=r;return s.api=t.api,s.columnApi=t.columnApi,s.context=t.context,e(s)};return i}return e},o.toBoolean=function(e){return typeof e=="boolean"?e:typeof e=="string"?e.toUpperCase()==="TRUE"||e=="":!1},o.toNumber=function(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseInt(e);return isNaN(t)?void 0:t}},o.toConstrainedNum=function(e,t){return function(i){var r=n.toNumber(i);if(!(r==null||r<e||r>t))return r}},o.getCoercedValue=function(e,t){var i=n.PROPERTY_COERCIONS.get(e);return i?i(t):t},o.getCoercedGridOptions=function(e){var t={};return Object.entries(e).forEach(function(i){var r=Xf(i,2),s=r[0],a=r[1],l=n.getCoercedValue(s,a);t[s]=l}),t},o.prototype.updateGridOptions=function(e){var t=this,i=e.options,r=e.source,s=r===void 0?"api":r,a={id:n.changeSetId++,properties:[]},l=[];Object.entries(i).forEach(function(c){var u=Xf(c,2),d=u[0],p=u[1];s==="api"&&Eq[d]&&Je("".concat(d," is an initial property and cannot be updated."));var g=n.getCoercedValue(d,p),v=typeof g=="object"&&s==="api",y=t.gridOptions[d];if(v||y!==g){t.gridOptions[d]=g;var x={type:d,currentValue:g,previousValue:y,changeSet:a,source:s};l.push(x)}}),this.validationService.processGridOptions(this.gridOptions),a.properties=l.map(function(c){return c.type}),l.forEach(function(c){t.gridOptions.debug&&console.log("AG Grid: Updated property ".concat(c.type," from "),c.previousValue," to ",c.currentValue),t.propertyEventService.dispatchEvent(c)})},o.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},o.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},o.prototype.getScrollbarWidth=function(){if(this.scrollbarWidth==null){var e=typeof this.gridOptions.scrollbarWidth=="number"&&this.gridOptions.scrollbarWidth>=0,t=e?this.gridOptions.scrollbarWidth:sR();t!=null&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:T.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},o.prototype.isRowModelType=function(e){return this.gridOptions.rowModelType===e||e==="clientSide"&&tt(this.gridOptions.rowModelType)},o.prototype.isDomLayout=function(e){var t,i=(t=this.gridOptions.domLayout)!==null&&t!==void 0?t:"normal";return i===e},o.prototype.isRowSelection=function(){return this.gridOptions.rowSelection==="single"||this.gridOptions.rowSelection==="multiple"},o.prototype.useAsyncEvents=function(){return!this.get("suppressAsyncEvents")},o.prototype.isGetRowHeightFunction=function(){return typeof this.gridOptions.getRowHeight=="function"},o.prototype.getRowHeightForNode=function(e,t,i){if(t===void 0&&(t=!1),i==null&&(i=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:i,estimated:!0};var r={node:e,data:e.data},s=this.getCallback("getRowHeight")(r);if(this.isNumeric(s))return s===0&&Je("The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead."),{height:Math.max(1,s),estimated:!1}}if(e.detail&&this.get("masterDetail"))return this.getMasterDetailRowHeight();var a=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:i;return{height:a,estimated:!1}},o.prototype.getMasterDetailRowHeight=function(){return this.get("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},o.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||tt(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var e=this.environment.refreshRowHeightVariable();return e!==-1?e:(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},o.prototype.isNumeric=function(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)},o.prototype.getDomDataKey=function(){return this.domDataKey},o.prototype.getDomData=function(e,t){var i=e[this.getDomDataKey()];return i?i[t]:void 0},o.prototype.setDomData=function(e,t,i){var r=this.getDomDataKey(),s=e[r];tt(s)&&(s={},e[r]=s),s[t]=i},o.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&ne(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&ne(e)?e:document},o.prototype.getWindow=function(){var e=this.getDocument();return e.defaultView||window},o.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},o.prototype.getAsyncTransactionWaitMillis=function(){return ne(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},o.prototype.isAnimateRows=function(){return this.get("ensureDomOrder")?!1:this.get("animateRows")},o.prototype.isGroupRowsSticky=function(){return!(this.get("suppressGroupRowsSticky")||this.get("paginateChildRows")||this.get("groupHideOpenParents")||this.isDomLayout("print"))},o.prototype.isColumnsSortingCoupledToGroup=function(){var e=this.gridOptions.autoGroupColumnDef;return!e?.comparator&&!this.get("treeData")},o.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;if(typeof e=="function")return this.getCallback("groupAggFiltering");if(e===!0)return function(){return!0}},o.prototype.isGroupIncludeFooterTrueOrCallback=function(){var e=this.gridOptions.groupIncludeFooter;return e===!0||typeof e=="function"},o.prototype.getGroupIncludeFooter=function(){var e=this.gridOptions.groupIncludeFooter;return typeof e=="function"?this.getCallback("groupIncludeFooter"):e===!0?function(){return!0}:function(){return!1}},o.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.gridOptions.groupDisplayType==="multipleColumns":this.get("groupHideOpenParents")},o.prototype.isGroupUseEntireRow=function(e){return e?!1:this.gridOptions.groupDisplayType==="groupRows"},o.prototype.getGridCommonParams=function(){return{api:this.api,columnApi:this.columnApi,context:this.context}},o.prototype.addGridCommonParams=function(e){var t=e;return t.api=this.api,t.columnApi=this.columnApi,t.context=this.context,t};var n;return o.alwaysSyncGlobalEvents=new Set([T.EVENT_GRID_PRE_DESTROYED]),o.PROPERTY_COERCIONS=new Map(T_(T_(T_([],Xf(qo.BOOLEAN_PROPERTIES.map(function(e){return[e,n.toBoolean]})),!1),Xf(qo.NUMBER_PROPERTIES.map(function(e){return[e,n.toNumber]})),!1),[["groupAggFiltering",function(e){return typeof e=="function"?e:n.toBoolean(e)}],["pageSize",n.toConstrainedNum(1,Number.MAX_VALUE)],["autoSizePadding",n.toConstrainedNum(0,Number.MAX_VALUE)],["keepDetailRowsCount",n.toConstrainedNum(1,Number.MAX_VALUE)],["rowBuffer",n.toConstrainedNum(0,Number.MAX_VALUE)],["infiniteInitialRowCount",n.toConstrainedNum(1,Number.MAX_VALUE)],["cacheOverflowSize",n.toConstrainedNum(1,Number.MAX_VALUE)],["cacheBlockSize",n.toConstrainedNum(1,Number.MAX_VALUE)],["serverSideInitialRowCount",n.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelPageSize",n.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelBufferSize",n.toConstrainedNum(0,Number.MAX_VALUE)]],!1)),o.changeSetId=0,jo([b("gridOptions")],o.prototype,"gridOptions",void 0),jo([b("eventService")],o.prototype,"eventService",void 0),jo([b("environment")],o.prototype,"environment",void 0),jo([b("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),jo([b("eGridDiv")],o.prototype,"eGridDiv",void 0),jo([b("validationService")],o.prototype,"validationService",void 0),jo([b("gridApi")],o.prototype,"api",void 0),jo([pe],o.prototype,"init",null),jo([Li],o.prototype,"destroy",null),o=n=jo([Oe("gridOptionsService")],o),o}(),pie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),hie=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},fie=function(o){pie(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.getLocaleTextFunc=function(){var e=this.gridOptionsService.getCallback("getLocaleText");if(e)return function(i,r,s){var a={key:i,defaultValue:r,variableValues:s};return e(a)};var t=this.gridOptionsService.get("localeText");return function(i,r,s){var a=t&&t[i];if(a&&s&&s.length)for(var l=0;!(l>=s.length);){var c=a.indexOf("${variable}");if(c===-1)break;a=a.replace("${variable}",s[l++])}return a??r}},n=hie([Oe("localeService")],n),n}(re),gie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),mie=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},vie=function(o){gie(n,o);function n(){return o.call(this,n.TEMPLATE,"vertical")||this}return n.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.createManagedBean(new XR(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this),this.addManagedListener(this.eventService,T.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onRowContainerHeightChanged.bind(this))},n.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.invisibleScrollbar,i=e&&this.gridOptionsService.getScrollbarWidth()||0,r=i===0&&t?16:i;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),Yr(this.getGui(),r),Yr(this.eViewport,r),Yr(this.eContainer,r),this.setDisplayed(e,{skipAriaHidden:!0})},n.prototype.onRowContainerHeightChanged=function(){var e=this.ctrlsService,t=e.getGridBodyCtrl(),i=t.getBodyViewportElement(),r=this.getScrollPosition(),s=i.scrollTop;r!=s&&this.setScrollPosition(s,!0)},n.prototype.getScrollPosition=function(){return this.getViewport().scrollTop},n.prototype.setScrollPosition=function(e,t){!t&&!Dr(this.getViewport())&&this.attemptSettingScrollPosition(e),this.getViewport().scrollTop=e},n.TEMPLATE=`<div class="ag-body-vertical-scroll" aria-hidden="true">
  251. <div class="ag-body-vertical-scroll-viewport" ref="eViewport">
  252. <div class="ag-body-vertical-scroll-container" ref="eContainer"></div>
  253. </div>
  254. </div>`,mie([pe],n.prototype,"postConstruct",null),n}(nI),yie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),nr=function(){return nr=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},nr.apply(this,arguments)},Qa=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Wo=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},xd=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},hD={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},fD=["january","february","march","april","may","june","july","august","september","october","november","december"],Cie=function(o){yie(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.dataTypeDefinitions={},e.isWaitingForRowData=!1,e.isColumnTypeOverrideInDataTypeDefinitions=!1,e.columnStateUpdatesPendingInference={},e.columnStateUpdateListenerDestroyFuncs=[],e}return n.prototype.init=function(){var e=this;this.groupHideOpenParents=this.gridOptionsService.get("groupHideOpenParents"),this.addManagedPropertyListener("groupHideOpenParents",function(){e.groupHideOpenParents=e.gridOptionsService.get("groupHideOpenParents")}),this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",function(t){e.processDataTypeDefinitions(),e.columnModel.recreateColumnDefs(Nc(t.source))})},n.prototype.processDataTypeDefinitions=function(){var e=this,t,i=this.getDefaultDataTypes();this.dataTypeDefinitions={},Object.entries(i).forEach(function(s){var a=Wo(s,2),l=a[0],c=a[1];e.dataTypeDefinitions[l]=nr(nr({},c),{groupSafeValueFormatter:e.createGroupSafeValueFormatter(c)})});var r=(t=this.gridOptionsService.get("dataTypeDefinitions"))!==null&&t!==void 0?t:{};this.dataTypeMatchers={},Object.entries(r).forEach(function(s){var a=Wo(s,2),l=a[0],c=a[1],u=e.processDataTypeDefinition(c,r,[l],i);u&&(e.dataTypeDefinitions[l]=u,c.dataTypeMatcher&&(e.dataTypeMatchers[l]=c.dataTypeMatcher))}),this.checkObjectValueHandlers(i),["dateString","text","number","boolean","date"].forEach(function(s){var a=e.dataTypeMatchers[s];a&&delete e.dataTypeMatchers[s],e.dataTypeMatchers[s]=a??i[s].dataTypeMatcher})},n.prototype.mergeDataTypeDefinitions=function(e,t){var i=nr(nr({},e),t);return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(i.columnTypes=xd(xd([],Wo(this.convertColumnTypes(e.columnTypes)),!1),Wo(this.convertColumnTypes(t.columnTypes)),!1)),i},n.prototype.processDataTypeDefinition=function(e,t,i,r){var s,a=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){var l=r[a],c=t[a];if(l&&c&&(l=c),!this.validateDataTypeDefinition(e,l,a))return;s=this.mergeDataTypeDefinitions(l,e)}else{if(i.includes(a)){Je('Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.');return}var u=t[a];if(!this.validateDataTypeDefinition(e,u,a))return;var d=this.processDataTypeDefinition(u,t,xd(xd([],Wo(i),!1),[a],!1),r);if(!d)return;s=this.mergeDataTypeDefinitions(d,e)}return nr(nr({},s),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(s)})},n.prototype.validateDataTypeDefinition=function(e,t,i){return t?t.baseDataType!==e.baseDataType?(Je('The "baseDataType" property of a data type definition must match that of its parent.'),!1):!0:(Je("The data type definition ".concat(i," does not exist.")),!1)},n.prototype.createGroupSafeValueFormatter=function(e){var t=this;if(e.valueFormatter)return function(i){var r,s;if(!((r=i.node)===null||r===void 0)&&r.group){var a=i.column.getAggFunc();if(a){if(a==="first"||a==="last")return e.valueFormatter(i);if(e.baseDataType==="number"&&a!=="count"){if(typeof i.value=="number")return e.valueFormatter(i);if(typeof i.value=="object"){if(!i.value)return;if("toNumber"in i.value)return e.valueFormatter(nr(nr({},i),{value:i.value.toNumber()}));if("value"in i.value)return e.valueFormatter(nr(nr({},i),{value:i.value.value}))}}}if(!t.gridOptionsService.get("suppressGroupMaintainValueType"))return}else if(t.groupHideOpenParents&&i.column.isRowGroupActive()){if(typeof i.value!="string"||!((s=e.dataTypeMatcher)===null||s===void 0)&&s.call(e,i.value))return e.valueFormatter(i);if(!t.gridOptionsService.get("suppressGroupMaintainValueType"))return}return e.valueFormatter(i)}},n.prototype.updateColDefAndGetDataTypeDefinitionColumnType=function(e,t,i){var r=t.cellDataType,s=t.field;if(r===void 0&&(r=e.cellDataType),(r==null||r===!0)&&(r=this.canInferCellDataType(e,t)?this.inferCellDataType(s,i):!1),!r){e.cellDataType=!1;return}var a=this.dataTypeDefinitions[r];if(!a){Je('Missing data type definition - "'.concat(r,'"'));return}return e.cellDataType=r,a.groupSafeValueFormatter&&(e.valueFormatter=a.groupSafeValueFormatter),a.valueParser&&(e.valueParser=a.valueParser),a.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,a,i),a.columnTypes},n.prototype.updateColDefAndGetColumnType=function(e,t,i){var r,s,a=this.updateColDefAndGetDataTypeDefinitionColumnType(e,t,i),l=(s=(r=t.type)!==null&&r!==void 0?r:a)!==null&&s!==void 0?s:e.type;return e.type=l,l?this.convertColumnTypes(l):void 0},n.prototype.addColumnListeners=function(e){if(this.isWaitingForRowData){var t=this.columnStateUpdatesPendingInference[e.getColId()];if(t){var i=function(r){t.add(r.key)};e.addEventListener(Jt.EVENT_STATE_UPDATED,i),this.columnStateUpdateListenerDestroyFuncs.push(function(){return e.removeEventListener(Jt.EVENT_STATE_UPDATED,i)})}}},n.prototype.canInferCellDataType=function(e,t){var i=this,r;if(this.rowModel.getType()!=="clientSide")return!1;var s={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(this.doColDefPropsPreventInference(t,s))return!1;var a=t.type===null?e.type:t.type;if(a){var l=(r=this.gridOptionsService.get("columnTypes"))!==null&&r!==void 0?r:{},c=this.convertColumnTypes(a).some(function(u){var d=l[u.trim()];return d&&i.doColDefPropsPreventInference(d,s)});if(c)return!1}return!this.doColDefPropsPreventInference(e,s)},n.prototype.doColDefPropsPreventInference=function(e,t){var i=this;return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(function(r){var s=Wo(r,2),a=s[0],l=s[1];return i.doesColDefPropPreventInference(e,t,a,l)})},n.prototype.doesColDefPropPreventInference=function(e,t,i,r){if(!t[i])return!1;var s=e[i];return s===null?(t[i]=!1,!1):r===void 0?!!s:s===r},n.prototype.inferCellDataType=function(e,t){var i;if(e){var r,s=this.getInitialData();if(s){var a=e.indexOf(".")>=0&&!this.gridOptionsService.get("suppressFieldDotNotation");r=Vc(s,e,a)}else this.initWaitForRowData(t);if(r!=null){var l=Wo((i=Object.entries(this.dataTypeMatchers).find(function(u){var d=Wo(u,2);d[0];var p=d[1];return p(r)}))!==null&&i!==void 0?i:["object"],1),c=l[0];return c}}},n.prototype.getInitialData=function(){var e=this.gridOptionsService.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;var t=this.rowModel.getRootNode().allLeafChildren;return t?.length?t[0].data:null},n.prototype.initWaitForRowData=function(e){var t=this;if(this.columnStateUpdatesPendingInference[e]=new Set,!this.isWaitingForRowData){this.isWaitingForRowData=!0;var i=this.isColumnTypeOverrideInDataTypeDefinitions;i&&this.columnModel.queueResizeOperations();var r=this.addManagedListener(this.eventService,T.EVENT_ROW_DATA_UPDATE_STARTED,function(s){var a=s.firstRowData;if(a){r?.(),t.isWaitingForRowData=!1,t.processColumnsPendingInference(a,i),t.columnStateUpdatesPendingInference={},i&&t.columnModel.processResizeOperations();var l={type:T.EVENT_DATA_TYPES_INFERRED};t.eventService.dispatchEvent(l)}})}},n.prototype.isPendingInference=function(){return this.isWaitingForRowData},n.prototype.processColumnsPendingInference=function(e,t){var i=this;this.initialData=e;var r=[];this.columnStateUpdateListenerDestroyFuncs.forEach(function(l){return l()}),this.columnStateUpdateListenerDestroyFuncs=[];var s={},a={};Object.entries(this.columnStateUpdatesPendingInference).forEach(function(l){var c=Wo(l,2),u=c[0],d=c[1],p=i.columnModel.getGridColumn(u);if(p){var g=p.getColDef();if(i.columnModel.resetColumnDefIntoColumn(p,"cellDataTypeInferred")){var v=p.getColDef();if(t&&v.type&&v.type!==g.type){var y=i.getUpdatedColumnState(p,d);y.rowGroup&&y.rowGroupIndex==null&&(s[u]=y),y.pivot&&y.pivotIndex==null&&(a[u]=y),r.push(y)}}}}),t&&r.push.apply(r,xd([],Wo(this.columnModel.generateColumnStateForRowGroupAndPivotIndexes(s,a)),!1)),r.length&&this.columnModel.applyColumnState({state:r},"cellDataTypeInferred"),this.initialData=null},n.prototype.getUpdatedColumnState=function(e,t){var i=this.columnModel.getColumnStateFromColDef(e);return t.forEach(function(r){delete i[r],r==="rowGroup"?delete i.rowGroupIndex:r==="pivot"&&delete i.pivotIndex}),i},n.prototype.checkObjectValueHandlers=function(e){var t=this.dataTypeDefinitions.object,i=e.object;this.hasObjectValueParser=t.valueParser!==i.valueParser,this.hasObjectValueFormatter=t.valueFormatter!==i.valueFormatter},n.prototype.convertColumnTypes=function(e){var t=[];if(e instanceof Array){var i=e.some(function(r){return typeof r!="string"});i?console.warn("if colDef.type is supplied an array it should be of type 'string[]'"):t=e}else typeof e=="string"?t=e.split(","):console.warn("colDef.type should be of type 'string' | 'string[]'");return t},n.prototype.getDateStringTypeDefinition=function(e){var t;return e?(t=this.getDataTypeDefinition(e))!==null&&t!==void 0?t:this.dataTypeDefinitions.dateString:this.dataTypeDefinitions.dateString},n.prototype.getDateParserFunction=function(e){return this.getDateStringTypeDefinition(e).dateParser},n.prototype.getDateFormatterFunction=function(e){return this.getDateStringTypeDefinition(e).dateFormatter},n.prototype.getDataTypeDefinition=function(e){var t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]},n.prototype.getBaseDataType=function(e){var t;return(t=this.getDataTypeDefinition(e))===null||t===void 0?void 0:t.baseDataType},n.prototype.checkType=function(e,t){var i;if(t==null)return!0;var r=(i=this.getDataTypeDefinition(e))===null||i===void 0?void 0:i.dataTypeMatcher;return r?r(t):!0},n.prototype.validateColDef=function(e){e.cellDataType==="object"&&(e.valueFormatter===this.dataTypeDefinitions.object.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&Je('Cell data type is "object" but no value formatter has been provided. Please either provide an object data type definition with a value formatter, or set "colDef.valueFormatter"'),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&Je('Cell data type is "object" but no value parser has been provided. Please either provide an object data type definition with a value parser, or set "colDef.valueParser"'))},n.prototype.setColDefPropertiesForBaseDataType=function(e,t,i){var r=this,s=function(d,p,g){var v=d.getColDef().valueFormatter;return v===t.groupSafeValueFormatter&&(v=t.valueFormatter),r.valueFormatterService.formatValue(d,p,g,v)},a=qt.__isRegistered(je.SetFilterModule,this.context.getGridId()),l=this.localeService.getLocaleTextFunc(),c=function(d){var p=e.filterParams;e.filterParams=typeof p=="object"?nr(nr({},p),d):d};switch(t.baseDataType){case"number":{e.cellEditor="agNumberCellEditor",a&&c({comparator:function(d,p){var g=d==null?0:parseInt(d),v=p==null?0:parseInt(p);return g===v?0:g>v?1:-1}});break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.suppressKeyboardEvent=function(d){return!!d.colDef.editable&&d.event.key===q.SPACE},c(a?{valueFormatter:function(d){return ne(d.value)?l(String(d.value),d.value?"True":"False"):l("blanks","(Blanks)")}}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:function(d,p){return p},numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:function(d,p){return p===!1},numberOfInputs:0}]});break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=function(d){return s(d.column,d.node,d.value)},a&&c({valueFormatter:function(d){var p=s(d.column,d.node,d.value);return ne(p)?p:l("blanks","(Blanks)")},treeList:!0,treeListFormatter:function(d,p){if(p===1&&d!=null){var g=fD[Number(d)-1];return l(g,hD[g])}return d??l("blanks","(Blanks)")}});break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=function(d){return s(d.column,d.node,d.value)};var u=t.dateParser;c(a?{valueFormatter:function(d){var p=s(d.column,d.node,d.value);return ne(p)?p:l("blanks","(Blanks)")},treeList:!0,treeListPathGetter:function(d){var p=u(d??void 0);return p?[String(p.getFullYear()),String(p.getMonth()+1),String(p.getDate())]:null},treeListFormatter:function(d,p){if(p===1&&d!=null){var g=fD[Number(d)-1];return l(g,hD[g])}return d??l("blanks","(Blanks)")}}:{comparator:function(d,p){var g=u(p);return p==null||g<d?-1:g>d?1:0}});break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=function(d,p){var g=r.columnModel.getPrimaryColumn(i),v=g?.getColDef();if(!g||!v)return 0;var y=d==null?"":s(g,null,d),x=p==null?"":s(g,null,p);return y===x?0:y>x?1:-1},e.keyCreator=function(d){return s(d.column,d.node,d.value)},a?c({valueFormatter:function(d){var p=s(d.column,d.node,d.value);return ne(p)?p:l("blanks","(Blanks)")}}):e.filterValueGetter=function(d){return s(d.column,d.node,r.valueService.getValue(d.column,d.node))};break}}},n.prototype.getDefaultDataTypes=function(){var e=function(i){return!!i.match("^\\d{4}-\\d{2}-\\d{2}$")},t=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:function(i){var r,s;return((s=(r=i.newValue)===null||r===void 0?void 0:r.trim)===null||s===void 0?void 0:s.call(r))===""?null:Number(i.newValue)},valueFormatter:function(i){return i.value==null?"":typeof i.value!="number"||isNaN(i.value)?t("invalidNumber","Invalid Number"):String(i.value)},dataTypeMatcher:function(i){return typeof i=="number"}},text:{baseDataType:"text",valueParser:function(i){return i.newValue===""?null:Gd(i.newValue)},dataTypeMatcher:function(i){return typeof i=="string"}},boolean:{baseDataType:"boolean",valueParser:function(i){var r,s;return i.newValue==null?i.newValue:((s=(r=i.newValue)===null||r===void 0?void 0:r.trim)===null||s===void 0?void 0:s.call(r))===""?null:String(i.newValue).toLowerCase()==="true"},valueFormatter:function(i){return i.value==null?"":String(i.value)},dataTypeMatcher:function(i){return typeof i=="boolean"}},date:{baseDataType:"date",valueParser:function(i){return rr(i.newValue==null?null:String(i.newValue))},valueFormatter:function(i){var r;return i.value==null?"":!(i.value instanceof Date)||isNaN(i.value.getTime())?t("invalidDate","Invalid Date"):(r=qr(i.value,!1))!==null&&r!==void 0?r:""},dataTypeMatcher:function(i){return i instanceof Date}},dateString:{baseDataType:"dateString",dateParser:function(i){var r;return(r=rr(i))!==null&&r!==void 0?r:void 0},dateFormatter:function(i){var r;return(r=qr(i??null,!1))!==null&&r!==void 0?r:void 0},valueParser:function(i){return e(String(i.newValue))?i.newValue:null},valueFormatter:function(i){return e(String(i.value))?i.value:""},dataTypeMatcher:function(i){return typeof i=="string"&&e(i)}},object:{baseDataType:"object",valueParser:function(){return null},valueFormatter:function(i){var r;return(r=Gd(i.value))!==null&&r!==void 0?r:""}}}},Qa([b("rowModel")],n.prototype,"rowModel",void 0),Qa([b("columnModel")],n.prototype,"columnModel",void 0),Qa([b("columnUtils")],n.prototype,"columnUtils",void 0),Qa([b("valueService")],n.prototype,"valueService",void 0),Qa([b("valueFormatterService")],n.prototype,"valueFormatterService",void 0),Qa([pe],n.prototype,"init",null),n=Qa([Oe("dataTypeService")],n),n}(re),_ie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),gD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Sie=function(o){_ie(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.parseValue=function(e,t,i,r){var s=e.getColDef(),a=this.gridOptionsService.addGridCommonParams({node:t,data:t?.data,oldValue:r,newValue:i,colDef:s,column:e}),l=s.valueParser;return ne(l)?typeof l=="function"?l(a):this.expressionService.evaluate(l,a):i},gD([b("expressionService")],n.prototype,"expressionService",void 0),n=gD([Oe("valueParserService")],n),n}(re),wie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),zd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},bie=function(o){wie(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.waitingForColumns=!1,e}return n.prototype.postConstruct=function(){var e=this;this.addManagedPropertyListener("columnDefs",function(t){return e.setColumnDefs(t)})},n.prototype.start=function(){var e=this;this.ctrlsService.whenReady(function(){var t=e.gridOptionsService.get("columnDefs");t?e.setColumnsAndData(t):e.waitingForColumns=!0,e.gridReady()})},n.prototype.setColumnsAndData=function(e){this.columnModel.setColumnDefs(e??[],"gridInitializing"),this.rowModel.start()},n.prototype.gridReady=function(){var e=this;this.dispatchGridReadyEvent();var t=qt.__isRegistered(je.EnterpriseCoreModule,this.context.getGridId()),i=new B0("AG Grid",function(){return e.gridOptionsService.get("debug")});i.log("initialised successfully, enterprise = ".concat(t))},n.prototype.dispatchGridReadyEvent=function(){var e={type:T.EVENT_GRID_READY};this.eventService.dispatchEvent(e)},n.prototype.setColumnDefs=function(e){var t=this.gridOptionsService.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.columnModel.setColumnDefs(t,Nc(e.source))}},zd([b("ctrlsService")],n.prototype,"ctrlsService",void 0),zd([b("columnModel")],n.prototype,"columnModel",void 0),zd([b("rowModel")],n.prototype,"rowModel",void 0),zd([pe],n.prototype,"postConstruct",null),n=zd([Oe("syncService")],n),n}(re),Tie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Z_=function(){return Z_=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Z_.apply(this,arguments)},Od=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Eie=function(o){Tie(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.manuallyDisplayed=!1,e}return n.prototype.postConstruct=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_ROW_DATA_UPDATED,function(){return e.onRowDataUpdated()}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return e.onNewColumnsLoaded()})},n.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e,(!this.gridOptionsService.get("columnDefs")||this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData"))&&this.showLoadingOverlay()},n.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.get("suppressLoadingOverlay")){var e={},t=this.userComponentFactory.getLoadingOverlayCompDetails(e);this.showOverlay(t,"ag-overlay-loading-wrapper","loadingOverlayComponentParams")}},n.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.get("suppressNoRowsOverlay")){var e={},t=this.userComponentFactory.getNoRowsOverlayCompDetails(e);this.showOverlay(t,"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams")}},n.prototype.showOverlay=function(e,t,i){var r=this,s=e.newAgStackInstance(),a=this.addManagedPropertyListener(i,function(l){var c=l.currentValue;s.then(function(u){u.refresh&&u.refresh(r.gridOptionsService.addGridCommonParams(Z_({},c??{})))})});this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.overlayWrapperComp.showOverlay(s,t,a)},n.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.overlayWrapperComp.hideOverlay()},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsService.get("suppressNoRowsOverlay");e&&!t?this.showNoRowsOverlay():this.hideOverlay()},n.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},n.prototype.onNewColumnsLoaded=function(){this.columnModel.isReady()&&!this.paginationProxy.isEmpty()&&!this.manuallyDisplayed&&this.hideOverlay()},Od([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Od([b("paginationProxy")],n.prototype,"paginationProxy",void 0),Od([b("columnModel")],n.prototype,"columnModel",void 0),Od([pe],n.prototype,"postConstruct",null),n=Od([Oe("overlayService")],n),n}(re),xie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),ca=function(){return ca=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},ca.apply(this,arguments)},br=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},zie=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Oie=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},Die=function(o){xie(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.suppressEvents=!0,e.queuedUpdateSources=new Set,e.dispatchStateUpdateEventDebounced=zr(function(){return e.dispatchQueuedStateUpdateEvents()},0),e}return n.prototype.postConstruct=function(){var e=this,t;this.isClientSideRowModel=this.rowModel.getType()==="clientSide",this.cachedState=(t=this.gridOptionsService.get("initialState"))!==null&&t!==void 0?t:{},this.ctrlsService.whenReady(function(){return e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnGridReady()})});var i=this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(a){var l=a.source;l==="gridInitializing"&&(i?.(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnColumnsInitialised()}))}),r=this.addManagedListener(this.eventService,T.EVENT_ROW_COUNT_READY,function(){r?.(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnRowCountReady()})}),s=this.addManagedListener(this.eventService,T.EVENT_FIRST_DATA_RENDERED,function(){s?.(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnFirstDataRendered()})})},n.prototype.getState=function(){return this.cachedState},n.prototype.setupStateOnGridReady=function(){var e=this;this.updateCachedState("sideBar",this.getSideBarState()),this.addManagedListener(this.eventService,T.EVENT_TOOL_PANEL_VISIBLE_CHANGED,function(){return e.updateCachedState("sideBar",e.getSideBarState())}),this.addManagedListener(this.eventService,T.EVENT_SIDE_BAR_UPDATED,function(){return e.updateCachedState("sideBar",e.getSideBarState())})},n.prototype.setupStateOnColumnsInitialised=function(){var e=this,t,i=(t=this.gridOptionsService.get("initialState"))!==null&&t!==void 0?t:{};this.setColumnState(i),this.setColumnGroupState(i),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState()),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VALUE_CHANGED,function(){return e.updateColumnState(["aggregation"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_MOVED,function(){return e.updateColumnState(["columnOrder"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PINNED,function(){return e.updateColumnState(["columnPinning"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_RESIZED,function(){return e.updateColumnState(["columnSizing"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VISIBLE,function(){return e.updateColumnState(["columnVisibility"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.updateColumnState(["pivot"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.updateColumnState(["pivot"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateColumnState(["rowGroup"])}),this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,function(){return e.updateColumnState(["sort"])}),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"])}),this.addManagedListener(this.eventService,T.EVENT_COLUMN_GROUP_OPENED,function(){return e.updateCachedState("columnGroup",e.getColumnGroupState())})},n.prototype.setupStateOnRowCountReady=function(){var e=this,t,i=(t=this.gridOptionsService.get("initialState"))!==null&&t!==void 0?t:{},r=i.filter,s=i.rowGroupExpansion,a=i.rowSelection,l=i.pagination,c=this.gridOptionsService.get("advancedFilterModel");(r||c)&&this.setFilterState(r,c),s&&this.setRowGroupExpansionState(s),a&&this.setRowSelectionState(a),l&&this.setPaginationState(l),this.updateCachedState("filter",this.getFilterState()),this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowSelection",this.getRowSelectionState()),this.updateCachedState("pagination",this.getPaginationState()),this.addManagedListener(this.eventService,T.EVENT_FILTER_CHANGED,function(){return e.updateCachedState("filter",e.getFilterState())}),this.addManagedListener(this.eventService,T.EVENT_ROW_GROUP_OPENED,function(){return e.updateCachedState("rowGroupExpansion",e.getRowGroupExpansionState())}),this.addManagedListener(this.eventService,T.EVENT_EXPAND_COLLAPSE_ALL,function(){return e.updateCachedState("rowGroupExpansion",e.getRowGroupExpansionState())}),this.addManagedListener(this.eventService,T.EVENT_SELECTION_CHANGED,function(){return e.updateCachedState("rowSelection",e.getRowSelectionState())}),this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,function(u){(u.newPage||u.newPageSize)&&e.updateCachedState("pagination",e.getPaginationState())})},n.prototype.setupStateOnFirstDataRendered=function(){var e=this,t,i=(t=this.gridOptionsService.get("initialState"))!==null&&t!==void 0?t:{},r=i.scroll,s=i.rangeSelection,a=i.focusedCell,l=i.columnOrder;a&&this.setFocusedCellState(a),s&&this.setRangeSelectionState(s),r&&this.setScrollState(r),this.setColumnPivotState(!!l?.orderedColIds),this.updateCachedState("sideBar",this.getSideBarState()),this.updateCachedState("focusedCell",this.getFocusedCellState()),this.updateCachedState("rangeSelection",this.getRangeSelectionState()),this.updateCachedState("scroll",this.getScrollState()),this.addManagedListener(this.eventService,T.EVENT_CELL_FOCUSED,function(){return e.updateCachedState("focusedCell",e.getFocusedCellState())}),this.addManagedListener(this.eventService,T.EVENT_RANGE_SELECTION_CHANGED,function(c){c.finished&&e.updateCachedState("rangeSelection",e.getRangeSelectionState())}),this.addManagedListener(this.eventService,T.EVENT_BODY_SCROLL_END,function(){return e.updateCachedState("scroll",e.getScrollState())})},n.prototype.getColumnState=function(){for(var e=this.columnModel.isPivotMode(),t=[],i=[],r=[],s=[],a=[],l=[],c=[],u=[],d=[],p=this.columnModel.getColumnState(),g=0;g<p.length;g++){var v=p[g],y=v.colId,x=v.sort,E=v.sortIndex,z=v.rowGroup,M=v.rowGroupIndex,G=v.aggFunc,U=v.pivot,se=v.pivotIndex,ve=v.pinned,he=v.hide,be=v.width,Ee=v.flex;d.push(y),x&&(t[E??0]={colId:y,sort:x}),z&&(i[M??0]=y),typeof G=="string"&&r.push({colId:y,aggFunc:G}),U&&(s[se??0]=y),ve&&(ve==="right"?l:a).push(y),he&&c.push(y),(Ee||be)&&u.push({colId:y,flex:Ee??void 0,width:be})}return{sort:t.length?{sortModel:t}:void 0,rowGroup:i.length?{groupColIds:i}:void 0,aggregation:r.length?{aggregationModel:r}:void 0,pivot:s.length||e?{pivotMode:e,pivotColIds:s}:void 0,columnPinning:a.length||l.length?{leftColIds:a,rightColIds:l}:void 0,columnVisibility:c.length?{hiddenColIds:c}:void 0,columnSizing:u.length?{columnSizingModel:u}:void 0,columnOrder:d.length?{orderedColIds:d}:void 0}},n.prototype.setColumnState=function(e){var t=e.sort,i=e.rowGroup,r=e.aggregation,s=e.pivot,a=e.columnPinning,l=e.columnVisibility,c=e.columnSizing,u=e.columnOrder,d={},p=function(E){var z=d[E];return z||(z={colId:E},d[E]=z,z)};t&&t.sortModel.forEach(function(E,z){var M=E.colId,G=E.sort,U=p(M);U.sort=G,U.sortIndex=z}),i&&i.groupColIds.forEach(function(E,z){var M=p(E);M.rowGroup=!0,M.rowGroupIndex=z}),r&&r.aggregationModel.forEach(function(E){var z=E.colId,M=E.aggFunc;p(z).aggFunc=M}),s&&(s.pivotColIds.forEach(function(E,z){var M=p(E);M.pivot=!0,M.pivotIndex=z}),this.gridOptionsService.updateGridOptions({options:{pivotMode:s.pivotMode},source:"gridInitializing"})),a&&(a.leftColIds.forEach(function(E){p(E).pinned="left"}),a.rightColIds.forEach(function(E){p(E).pinned="right"})),l&&l.hiddenColIds.forEach(function(E){p(E).hide=!0}),c&&c.columnSizingModel.forEach(function(E){var z=E.colId,M=E.flex,G=E.width,U=p(z);U.flex=M??null,U.width=G});var g=u?.orderedColIds,v=!!g?.length,y=v?g.map(function(E){return p(E)}):Object.values(d);if(y.length){this.columnStates=y;var x={sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};this.columnModel.applyColumnState({state:y,applyOrder:v,defaultState:x},"gridInitializing")}},n.prototype.setColumnPivotState=function(e){var t,i,r=this.columnStates;this.columnStates=void 0;var s=this.columnGroupStates;if(this.columnGroupStates=void 0,!!this.columnModel.isSecondaryColumnsPresent()){if(r){var a=[];try{for(var l=zie(r),c=l.next();!c.done;c=l.next()){var u=c.value;this.columnModel.getSecondaryColumn(u.colId)&&a.push(u)}}catch(d){t={error:d}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}this.columnModel.applyColumnState({state:a,applyOrder:e},"gridInitializing")}s&&this.columnModel.setColumnGroupState(s,"gridInitializing")}},n.prototype.getColumnGroupState=function(){var e=this.columnModel.getColumnGroupState(),t=[];return e.forEach(function(i){var r=i.groupId,s=i.open;s&&t.push(r)}),t.length?{openColumnGroupIds:t}:void 0},n.prototype.setColumnGroupState=function(e){var t;if(e.hasOwnProperty("columnGroup")){var i=new Set((t=e.columnGroup)===null||t===void 0?void 0:t.openColumnGroupIds),r=this.columnModel.getColumnGroupState(),s=r.map(function(a){var l=a.groupId,c=i.has(l);return c&&i.delete(l),{groupId:l,open:c}});i.forEach(function(a){s.push({groupId:a,open:!0})}),s.length&&(this.columnGroupStates=s),this.columnModel.setColumnGroupState(s,"gridInitializing")}},n.prototype.getFilterState=function(){var e,t=this.filterManager.getFilterModel();t&&Object.keys(t).length===0&&(t=void 0);var i=(e=this.filterManager.getAdvancedFilterModel())!==null&&e!==void 0?e:void 0;return t||i?{filterModel:t,advancedFilterModel:i}:void 0},n.prototype.setFilterState=function(e,t){var i=e??{advancedFilterModel:t},r=i.filterModel,s=i.advancedFilterModel;r&&this.filterManager.setFilterModel(r,"columnFilter"),s&&this.filterManager.setAdvancedFilterModel(s)},n.prototype.getRangeSelectionState=function(){var e,t=(e=this.rangeService)===null||e===void 0?void 0:e.getCellRanges().map(function(i){var r=i.id,s=i.type,a=i.startRow,l=i.endRow,c=i.columns,u=i.startColumn;return{id:r,type:s,startRow:a,endRow:l,colIds:c.map(function(d){return d.getColId()}),startColId:u.getColId()}});return t?.length?{cellRanges:t}:void 0},n.prototype.setRangeSelectionState=function(e){var t=this,i;if(this.gridOptionsService.get("enableRangeSelection")){var r=e.cellRanges.map(function(s){return ca(ca({},s),{columns:s.colIds.map(function(a){return t.columnModel.getGridColumn(a)}),startColumn:t.columnModel.getGridColumn(s.startColId)})});(i=this.rangeService)===null||i===void 0||i.setCellRanges(r)}},n.prototype.getScrollState=function(){var e,t,i;if(this.isClientSideRowModel){var r=(e=this.ctrlsService.getGridBodyCtrl())===null||e===void 0?void 0:e.getScrollFeature(),s=((t=r?.getHScrollPosition())!==null&&t!==void 0?t:{left:0}).left,a=((i=r?.getVScrollPosition())!==null&&i!==void 0?i:{top:0}).top;return a||s?{top:a,left:s}:void 0}},n.prototype.setScrollState=function(e){var t;if(this.isClientSideRowModel){var i=e.top,r=e.left;(t=this.ctrlsService.getGridBodyCtrl())===null||t===void 0||t.getScrollFeature().setScrollPosition(i,r)}},n.prototype.getSideBarState=function(){var e,t;return(t=(e=this.sideBarService)===null||e===void 0?void 0:e.getSideBarComp())===null||t===void 0?void 0:t.getState()},n.prototype.getFocusedCellState=function(){if(this.isClientSideRowModel){var e=this.focusService.getFocusedCell();if(e){var t=e.column,i=e.rowIndex,r=e.rowPinned;return{colId:t.getColId(),rowIndex:i,rowPinned:r}}}},n.prototype.setFocusedCellState=function(e){if(this.isClientSideRowModel){var t=e.colId,i=e.rowIndex,r=e.rowPinned;this.focusService.setFocusedCell({column:this.columnModel.getGridColumn(t),rowIndex:i,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}},n.prototype.getPaginationState=function(){var e=this.paginationProxy.getCurrentPage(),t=this.gridOptionsService.get("paginationAutoPageSize")?void 0:this.paginationProxy.getPageSize();if(!(!e&&!t))return{page:e,pageSize:t}},n.prototype.setPaginationState=function(e){e.pageSize&&!this.gridOptionsService.get("paginationAutoPageSize")&&this.paginationProxy.setPageSize(e.pageSize,"initialState"),typeof e.page=="number"&&this.paginationProxy.setPage(e.page)},n.prototype.getRowSelectionState=function(){var e,t=this.selectionService.getSelectionState(),i=!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!(!((e=t?.toggledNodes)===null||e===void 0)&&e.length);return i?void 0:t},n.prototype.setRowSelectionState=function(e){this.selectionService.setSelectionState(e,"gridInitializing")},n.prototype.getRowGroupExpansionState=function(){var e=this.expansionService.getExpandedRows();return e.length?{expandedRowGroupIds:e}:void 0},n.prototype.setRowGroupExpansionState=function(e){this.expansionService.expandRows(e.expandedRowGroupIds)},n.prototype.updateColumnState=function(e){var t=this,i=this.getColumnState(),r=!1;Object.entries(i).forEach(function(s){var a=Oie(s,2),l=a[0],c=a[1];P_(c,t.cachedState[l])||(r=!0)}),this.cachedState=ca(ca({},this.cachedState),i),r&&this.dispatchStateUpdateEvent(e)},n.prototype.updateCachedState=function(e,t){var i,r=this.cachedState[e];this.cachedState=ca(ca({},this.cachedState),(i={},i[e]=t,i)),P_(t,r)||this.dispatchStateUpdateEvent([e])},n.prototype.dispatchStateUpdateEvent=function(e){var t=this;this.suppressEvents||(e.forEach(function(i){return t.queuedUpdateSources.add(i)}),this.dispatchStateUpdateEventDebounced())},n.prototype.dispatchQueuedStateUpdateEvents=function(){var e=Array.from(this.queuedUpdateSources);this.queuedUpdateSources.clear();var t={type:T.EVENT_STATE_UPDATED,sources:e,state:this.cachedState};this.eventService.dispatchEvent(t)},n.prototype.suppressEventsAndDispatchInitEvent=function(e){var t=this;this.suppressEvents=!0,this.columnAnimationService.setSuppressAnimation(!0),e(),setTimeout(function(){t.suppressEvents=!1,t.queuedUpdateSources.clear(),t.isAlive()&&(t.columnAnimationService.setSuppressAnimation(!1),t.dispatchStateUpdateEvent(["gridInitializing"]))})},br([b("filterManager")],n.prototype,"filterManager",void 0),br([Mt("rangeService")],n.prototype,"rangeService",void 0),br([b("ctrlsService")],n.prototype,"ctrlsService",void 0),br([Mt("sideBarService")],n.prototype,"sideBarService",void 0),br([b("focusService")],n.prototype,"focusService",void 0),br([b("columnModel")],n.prototype,"columnModel",void 0),br([b("paginationProxy")],n.prototype,"paginationProxy",void 0),br([b("rowModel")],n.prototype,"rowModel",void 0),br([b("selectionService")],n.prototype,"selectionService",void 0),br([b("expansionService")],n.prototype,"expansionService",void 0),br([b("columnAnimationService")],n.prototype,"columnAnimationService",void 0),br([pe],n.prototype,"postConstruct",null),n=br([Oe("stateService")],n),n}(re),Rie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),E_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Xa=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},Dd=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Iie=function(o){Rie(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.init=function(){this.processGridOptions(this.gridOptions)},n.prototype.processGridOptions=function(e){this.processOptions(e,die)},n.prototype.processColumnDefs=function(e){this.processOptions(e,kc)},n.prototype.processOptions=function(e,t){var i=this,r=t.validations,s=t.deprecations,a=t.allProperties,l=t.propertyExceptions,c=t.objectName,u=t.docsUrl;a&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,Dd(Dd([],Xa(l??[]),!1),Xa(Object.keys(s)),!1),a,c,u);var d=new Set,p=Object.keys(e);p.forEach(function(g){var v,y=s[g];if(y)if("renamed"in y){var x=y.renamed,E=y.version;d.add("As of v".concat(E,", ").concat(String(g)," is deprecated. Please use ").concat(String(x)," instead.")),e[x]=e[g]}else{var z=y.message,E=y.version;d.add("As of v".concat(E,", ").concat(String(g)," is deprecated. ").concat(z??""))}var M=e[g];if(!(M==null||M===!1)){var G=r[g],U;if(G)if(typeof G=="function"){var se=G(e,i.gridOptions);if(!se)return;if("objectName"in se){var ve=e[g];if(Array.isArray(ve)){ve.forEach(function(Yt){i.processOptions(Yt,se)});return}i.processOptions(e[g],se);return}U=se}else U=G;else return;var he=U.module,be=U.dependencies,Ee=U.supportedRowModels;if(Ee){var Te=(v=i.gridOptions.rowModelType)!==null&&v!==void 0?v:"clientSide";if(!Ee.includes(Te)){d.add("".concat(String(g)," is not supported with the '").concat(Te,"' row model."));return}}if(he){var rt=Array.isArray(he)?he:[he],en=!0;if(rt.forEach(function(Yt){qt.__assertRegistered(Yt,String(g),i.context.getGridId())||(en=!1,d.add("".concat(String(g)," is only available when ").concat(Yt," is loaded.")))}),!en)return}if(be){var dn=i.checkForWarning(g,be,e);if(dn){d.add(dn);return}}}}),d.size>0&&d.forEach(function(g){Je(g)})},n.prototype.checkForWarning=function(e,t,i){if(typeof t=="function")return t(i,this.gridOptions);var r=Object.entries(t),s=r.find(function(u){var d=Xa(u,2),p=d[0],g=d[1],v=i[p];return!g.includes(v)});if(!s)return null;var a=Xa(s,2),l=a[0],c=a[1];return c.length>1?"'".concat(String(e),"' requires '").concat(l,"' to be one of [").concat(c.join(", "),"]."):"'".concat(String(e),"' requires '").concat(l,"' to be ").concat(c[0],".")},n.prototype.checkProperties=function(e,t,i,r,s){var a=["__ob__","__v_skip","__metadata__"],l=mR(Object.getOwnPropertyNames(e),Dd(Dd(Dd([],Xa(a),!1),Xa(t),!1),Xa(i),!1),i);if(Ei(l,function(u,d){Je("invalid ".concat(r," property '").concat(u,"' did you mean any of these: ").concat(d.slice(0,8).join(", ")))}),Object.keys(l).length>0&&s){var c=this.getFrameworkOverrides().getDocLink(s);Je("to see all the valid ".concat(r," properties please check: ").concat(c))}},E_([b("gridOptions")],n.prototype,"gridOptions",void 0),E_([pe],n.prototype,"init",null),n=E_([Oe("validationService")],n),n}(re),Pie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),mD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Mie=function(o){Pie(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.syncEventListeners=new Map,e.asyncEventListeners=new Map,e.syncGlobalEventListeners=new Set,e.asyncGlobalEventListeners=new Set,e}return n.prototype.postConstruct=function(){this.frameworkEventWrappingService=new t0(this.getFrameworkOverrides())},n.prototype.addEventListener=function(e,t){var i=this.frameworkEventWrappingService.wrap(t),r=this.gridOptionsService.useAsyncEvents(),s=r?this.asyncEventListeners:this.syncEventListeners;s.has(e)||s.set(e,new Set),s.get(e).add(i),this.eventService.addEventListener(e,i,r)},n.prototype.addGlobalListener=function(e){var t=this.frameworkEventWrappingService.wrapGlobal(e),i=this.gridOptionsService.useAsyncEvents(),r=i?this.asyncGlobalEventListeners:this.syncGlobalEventListeners;r.add(t),this.eventService.addGlobalListener(t,i)},n.prototype.removeEventListener=function(e,t){var i,r=this.frameworkEventWrappingService.unwrap(t),s=this.asyncEventListeners.get(e),a=!!s?.delete(r);a||(i=this.asyncEventListeners.get(e))===null||i===void 0||i.delete(r),this.eventService.removeEventListener(e,r,a)},n.prototype.removeGlobalListener=function(e){var t=this.frameworkEventWrappingService.unwrapGlobal(e),i=this.asyncGlobalEventListeners.delete(t);i||this.syncGlobalEventListeners.delete(t),this.eventService.removeGlobalListener(t,i)},n.prototype.destroyEventListeners=function(e,t){var i=this;e.forEach(function(r,s){r.forEach(function(a){return i.eventService.removeEventListener(s,a,t)}),r.clear()}),e.clear()},n.prototype.destroyGlobalListeners=function(e,t){var i=this;e.forEach(function(r){return i.eventService.removeGlobalListener(r,t)}),e.clear()},n.prototype.destroy=function(){o.prototype.destroy.call(this),this.destroyEventListeners(this.syncEventListeners,!1),this.destroyEventListeners(this.asyncEventListeners,!0),this.destroyGlobalListeners(this.syncGlobalEventListeners,!1),this.destroyGlobalListeners(this.asyncGlobalEventListeners,!0)},mD([pe],n.prototype,"postConstruct",null),n=mD([Oe("apiEventService")],n),n}(re),Fie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Zf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Aie=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},Nie=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Lie=function(o){Fie(n,o);function n(){var e=o.call(this,'<span class="ag-paging-page-size"></span>')||this;return e.hasEmptyOption=!1,e.handlePageSizeItemSelected=function(){if(e.selectPageSizeComp){var t=e.selectPageSizeComp.getValue();if(t){var i=Number(t);isNaN(i)||i<1||i===e.paginationProxy.getPageSize()||(e.paginationProxy.setPageSize(i,"pageSizeSelector"),e.hasEmptyOption&&e.toggleSelectDisplay(!0),e.selectPageSizeComp.getFocusableElement().focus())}}},e}return n.prototype.init=function(){var e=this;this.addManagedPropertyListener("paginationPageSizeSelector",function(){e.onPageSizeSelectorValuesChange()}),this.addManagedListener(this.eventService,T.EVENT_PAGINATION_CHANGED,function(t){return e.handlePaginationChanged(t)})},n.prototype.handlePaginationChanged=function(e){if(!(!this.selectPageSizeComp||!e?.newPageSize)){var t=this.paginationProxy.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}},n.prototype.toggleSelectDisplay=function(e){this.selectPageSizeComp&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp&&this.appendChild(this.selectPageSizeComp))},n.prototype.reset=function(){ti(this.getGui()),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0)},n.prototype.onPageSizeSelectorValuesChange=function(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()},n.prototype.shouldShowPageSizeSelector=function(){return this.gridOptionsService.get("pagination")&&!this.gridOptionsService.get("suppressPaginationPanel")&&!this.gridOptionsService.get("paginationAutoPageSize")&&this.gridOptionsService.get("paginationPageSizeSelector")!==!1},n.prototype.reloadPageSizesSelector=function(){var e=this,t=this.getPageSizeSelectorValues(),i=this.paginationProxy.getPageSize(),r=!i||!t.includes(i);r&&(t.unshift(""),Je(`The paginationPageSize grid option is set to a value that is not in the list of page size options.
  255. Please make sure that the paginationPageSize grid option is set to one of the values in the
  256. paginationPageSizeSelector array, or set the paginationPageSizeSelector to false to hide the page size selector.`)),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0);var s=this.localeService.getLocaleTextFunc(),a=s("pageSizeSelectorLabel","Page Size:"),l=t.map(function(u){return{value:String(u),text:String(u)}}),c=s("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Rg).addOptions(l).setValue(String(r?"":i)).setAriaLabel(c).setLabel(a).onValueChange(function(){return e.handlePageSizeItemSelected()}),this.hasEmptyOption=r},n.prototype.getPageSizeSelectorValues=function(){var e=[20,50,100],t=this.gridOptionsService.get("paginationPageSizeSelector");return!Array.isArray(t)||!this.validateValues(t)?e:Nie([],Aie(t),!1).sort(function(i,r){return i-r})},n.prototype.validateValues=function(e){if(!e.length)return Je(`The paginationPageSizeSelector grid option is an empty array. This is most likely a mistake.
  257. If you want to hide the page size selector, please set the paginationPageSizeSelector to false.`),!1;for(var t=0;t<e.length;t++){var i=e[t],r=typeof i=="number",s=i>0;if(!r)return Je(`The paginationPageSizeSelector grid option contains a non-numeric value.
  258. Please make sure that all values in the paginationPageSizeSelector array are numbers.`),!1;if(!s)return Je(`The paginationPageSizeSelector grid option contains a negative number or zero.
  259. Please make sure that all values in the paginationPageSizeSelector array are positive.`),!1}return!0},n.prototype.destroy=function(){this.toggleSelectDisplay(!1),o.prototype.destroy.call(this)},Zf([b("localeService")],n.prototype,"localeService",void 0),Zf([b("gridOptionsService")],n.prototype,"gridOptionsService",void 0),Zf([b("paginationProxy")],n.prototype,"paginationProxy",void 0),Zf([pe],n.prototype,"init",null),n}(dt),kie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),x_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Vie=function(o){kie(n,o);function n(){var e=o.call(this)||this;return e.descriptionContainer=null,e.announceValue=zr(e.announceValue.bind(e),200),e}return n.prototype.postConstruct=function(){var e=this.gridOptionsService.getDocument(),t=this.descriptionContainer=e.createElement("div");t.classList.add("ag-aria-description-container"),o0(t,"polite"),qD(t,"additions text"),KD(t,!0),this.eGridDiv.appendChild(t)},n.prototype.announceValue=function(e){var t=this;this.descriptionContainer&&(this.descriptionContainer.textContent="",setTimeout(function(){t.descriptionContainer.textContent=e},50))},n.prototype.destroy=function(){o.prototype.destroy.call(this);var e=this.descriptionContainer;e&&(ti(e),e.parentElement&&e.parentElement.removeChild(e)),this.descriptionContainer=null,this.eGridDiv=null},x_([b("eGridDiv")],n.prototype,"eGridDiv",void 0),x_([pe],n.prototype,"postConstruct",null),n=x_([Oe("ariaAnnouncementService")],n),n}(re),vD=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},yD=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))};function rI(o,n,e){if(!n)return yo("No gridOptions provided to createGrid"),{};var t=iI.getCoercedGridOptions(n),i=new oI().create(o,t,function(s){var a=new tI(o);s.createBean(a)},void 0,e);if(!Object.isFrozen(n)&&!e?.frameworkOverrides){var r="https://ag-grid.com/javascript-data-grid/grid-interface/#grid-api";Object.defineProperty(n,"api",{get:function(){yo("gridOptions.api is no longer supported. See ".concat(r,"."))},configurable:!0}),Object.defineProperty(n,"columnApi",{get:function(){yo("gridOptions.columnApi is no longer supported and all methods moved to the grid api. See ".concat(r,"."))},configurable:!0})}return i}var Rwe=function(){function o(n,e,t){var i=this;if(Je("Since v31 new Grid(...) is deprecated. Use createGrid instead: `const gridApi = createGrid(...)`. The grid api is returned from createGrid and will not be available on gridOptions."),!e){yo("No gridOptions provided to the grid");return}this.gridOptions=e;var r=new oI().create(n,e,function(s){var a=new tI(n),l=s.createBean(a);l.addDestroyFunc(function(){i.destroy()})},void 0,t);this.gridOptions.api=r,this.gridOptions.columnApi=new ep(r)}return o.prototype.destroy=function(){var n;this.gridOptions&&((n=this.gridOptions.api)===null||n===void 0||n.destroy(),delete this.gridOptions.api,delete this.gridOptions.columnApi)},o}(),Gie=1,oI=function(){function o(){}return o.prototype.create=function(n,e,t,i,r){var s,a=!!e.debug,l=(s=e.gridId)!==null&&s!==void 0?s:String(Gie++),c=this.getRegisteredModules(r,l),u=this.createBeansList(e.rowModelType,c,l),d=this.createProvidedBeans(n,e,r);if(!u){yo("Failed to create grid.");return}var p={providedBeanInstances:d,beanClasses:u,debug:a,gridId:l},g=new B0("Context",function(){return p.debug}),v=new H7(p,g),y=v.getBean("beans");return this.registerModuleUserComponents(y,c),this.registerStackComponents(y,c),this.registerControllers(y,c),t(v),y.syncService.start(),i&&i(v),y.gridApi},o.prototype.registerControllers=function(n,e){e.forEach(function(t){t.controllers&&t.controllers.forEach(function(i){return n.ctrlsFactory.register(i)})})},o.prototype.registerStackComponents=function(n,e){var t=this.createAgStackComponentsList(e);n.agStackComponentsRegistry.setupComponents(t)},o.prototype.getRegisteredModules=function(n,e){var t=n?n.modules:null,i=qt.__getRegisteredModules(e),r=[],s={},a=function(l,c,u){var d=function(p){s[p.moduleName]||(s[p.moduleName]=!0,r.push(p),qt.__register(p,l,u))};d(c),c.dependantModules&&c.dependantModules.forEach(function(p){return a(l,p,u)})};return t&&t.forEach(function(l){return a(!0,l,e)}),i&&i.forEach(function(l){return a(!qt.__isPackageBased(),l,void 0)}),r},o.prototype.registerModuleUserComponents=function(n,e){var t=this.extractModuleEntity(e,function(i){return i.userComponents?i.userComponents:[]});t.forEach(function(i){n.userComponentRegistry.registerDefaultComponent(i.componentName,i.componentClass)})},o.prototype.createProvidedBeans=function(n,e,t){var i=t?t.frameworkOverrides:null;tt(i)&&(i=new H0);var r={gridOptions:e,eGridDiv:n,globalEventListener:t?t.globalEventListener:null,globalSyncEventListener:t?t.globalSyncEventListener:null,frameworkOverrides:i};return t&&t.providedBeanInstances&&Object.assign(r,t.providedBeanInstances),r},o.prototype.createAgStackComponentsList=function(n){var e=[{componentName:"AgCheckbox",componentClass:Ig},{componentName:"AgRadioButton",componentClass:RR},{componentName:"AgToggleButton",componentClass:Gee},{componentName:"AgInputTextField",componentClass:dl},{componentName:"AgInputTextArea",componentClass:Bee},{componentName:"AgInputNumberField",componentClass:M0},{componentName:"AgInputDateField",componentClass:jee},{componentName:"AgInputRange",componentClass:Uee},{componentName:"AgRichSelect",componentClass:Zee},{componentName:"AgSelect",componentClass:Rg},{componentName:"AgSlider",componentClass:ete},{componentName:"AgGridBody",componentClass:HZ},{componentName:"AgHeaderRoot",componentClass:YJ},{componentName:"AgSortIndicator",componentClass:A0},{componentName:"AgPagination",componentClass:zne},{componentName:"AgPageSizeSelector",componentClass:Lie},{componentName:"AgOverlayWrapper",componentClass:Dne},{componentName:"AgGroupComponent",componentClass:nte},{componentName:"AgRowContainer",componentClass:iJ},{componentName:"AgFakeHorizontalScroll",componentClass:tie},{componentName:"AgFakeVerticalScroll",componentClass:vie},{componentName:"AgAutocomplete",componentClass:Ste}],t=this.extractModuleEntity(n,function(i){return i.agStackComponents?i.agStackComponents:[]});return e=e.concat(t),e},o.prototype.createBeansList=function(n,e,t){n===void 0&&(n="clientSide");var i=e.filter(function(c){return!c.rowModel||c.rowModel===n}),r={clientSide:je.ClientSideRowModelModule,infinite:je.InfiniteRowModelModule,serverSide:je.ServerSideRowModelModule,viewport:je.ViewportRowModelModule};if(!r[n]){yo("Could not find row model for rowModelType = "+n);return}if(qt.__assertRegistered(r[n],"rowModelType = '".concat(n,"'"),t)){var s=[QR,Ine,Fne,Hne,ine,KR,QQ,une,pne,cee,fX,bne,XJ,fie,Iie,Ree,vX,Tq,ga,iI,gte,eI,SX,yq,jJ,Nee,Eee,Lte,iq,Gte,Dte,KZ,one,Fte,$te,Sq,vee,JJ,Jn,ep,Qte,WZ,_ne,xte,Oee,kee,$Z,qte,Jte,tne,Ene,sq,lne,dee,Vne,Oq,$ne,jne,Fee,Une,Yne,iie,oie,Zne,Cie,Sie,qR,bie,Eie,Die,hee,Mie,Vie,gee],a=this.extractModuleEntity(i,function(c){return c.beans?c.beans:[]});s.push.apply(s,yD([],vD(a),!1));var l=[];return s.forEach(function(c){l.indexOf(c)<0&&l.push(c)}),l}},o.prototype.extractModuleEntity=function(n,e){return[].concat.apply([],yD([],vD(n.map(e)),!1))},o}(),sI=function(){function o(){}return o.prototype.wrap=function(n,e,t,i){var r=this;t===void 0&&(t=[]);var s=this.createWrapper(n,i);return e.forEach(function(a){r.createMethod(s,a,!0)}),t.forEach(function(a){r.createMethod(s,a,!1)}),s},o.prototype.unwrap=function(n){return n},o.prototype.createMethod=function(n,e,t){n.addMethod(e,this.createMethodProxy(n,e,t))},o.prototype.createMethodProxy=function(n,e,t){return function(){return n.hasMethod(e)?n.callMethod(e,arguments):(t&&console.warn("AG Grid: Framework component is missing the method "+e+"()"),null)}},o}();var Kc=typeof global>"u"?{}:global;Kc.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement;Kc.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement;Kc.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement;Kc.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement;Kc.Node=typeof Node>"u"?{}:Node;Kc.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var Rd=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},Id=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Hie=function(){function o(n,e,t,i,r,s){this.nextId=0,this.rowCountReady=!1,this.allNodesMap={},this.rootNode=n,this.gridOptionsService=e,this.eventService=t,this.columnModel=i,this.beans=s,this.selectionService=r,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=o.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[]}return o.prototype.getCopyOfNodesMap=function(){return mt.cloneObject(this.allNodesMap)},o.prototype.getRowNode=function(n){return this.allNodesMap[n]},o.prototype.setRowData=function(n){var e=this;if(typeof n=="string"){console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first");return}this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(n);var t=this.rootNode,i=this.rootNode.sibling;t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.nextId=0,this.allNodesMap={},n?t.allLeafChildren=n.map(function(r){return e.createNode(r,e.rootNode,o.TOP_LEVEL)}):(t.allLeafChildren=[],t.childrenAfterGroup=[]),i&&(i.childrenAfterFilter=t.childrenAfterFilter,i.childrenAfterGroup=t.childrenAfterGroup,i.childrenAfterAggFilter=t.childrenAfterAggFilter,i.childrenAfterSort=t.childrenAfterSort,i.childrenMapped=t.childrenMapped,i.allLeafChildren=t.allLeafChildren)},o.prototype.updateRowData=function(n,e){this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(n.add);var t={remove:[],update:[],add:[]},i=[];return this.executeRemove(n,t,i),this.executeUpdate(n,t,i),this.executeAdd(n,t),this.updateSelection(i,"rowDataChanged"),e&&mt.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),t},o.prototype.isRowCountReady=function(){return this.rowCountReady},o.prototype.dispatchRowDataUpdateStartedEvent=function(n){var e={type:T.EVENT_ROW_DATA_UPDATE_STARTED,firstRowData:n?.length?n[0]:null};this.eventService.dispatchEvent(e)},o.prototype.updateSelection=function(n,e){var t=n.length>0;if(t&&this.selectionService.setNodesSelected({newValue:!1,nodes:n,suppressFinishActions:!0,source:e}),this.selectionService.updateGroupsFromChildrenSelections(e),t){var i={type:T.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(i)}},o.prototype.executeAdd=function(n,e){var t=this,i,r=n.add,s=n.addIndex;if(!mt.missingOrEmpty(r)){var a=r.map(function(y){return t.createNode(y,t.rootNode,o.TOP_LEVEL)});if(typeof s=="number"&&s>=0){var l=this.rootNode.allLeafChildren,c=l.length,u=s,d=this.gridOptionsService.get("treeData");if(d&&s>0&&c>0){for(var p=0;p<c;p++)if(((i=l[p])===null||i===void 0?void 0:i.rowIndex)==s-1){u=p+1;break}}var g=l.slice(0,u),v=l.slice(u,l.length);this.rootNode.allLeafChildren=Id(Id(Id([],Rd(g),!1),Rd(a),!1),Rd(v),!1)}else this.rootNode.allLeafChildren=Id(Id([],Rd(this.rootNode.allLeafChildren),!1),Rd(a),!1);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),e.add=a}},o.prototype.executeRemove=function(n,e,t){var i=this,r=n.remove;if(!mt.missingOrEmpty(r)){var s={};r.forEach(function(a){var l=i.lookupRowNode(a);l&&(l.isSelected()&&t.push(l),l.clearRowTopAndRowIndex(),s[l.id]=!0,delete i.allNodesMap[l.id],e.remove.push(l))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(a){return!s[a.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},o.prototype.executeUpdate=function(n,e,t){var i=this,r=n.update;mt.missingOrEmpty(r)||r.forEach(function(s){var a=i.lookupRowNode(s);a&&(a.updateData(s),!a.selectable&&a.isSelected()&&t.push(a),i.setMasterForRow(a,s,o.TOP_LEVEL,!1),e.update.push(a))})},o.prototype.lookupRowNode=function(n){var e=this.gridOptionsService.getCallback("getRowId"),t;if(e){var i=e({data:n,level:0});if(t=this.allNodesMap[i],!t)return console.error("AG Grid: could not find row id=".concat(i,", data item was not found for this id")),null}else if(t=this.rootNode.allLeafChildren.find(function(r){return r.data===n}),!t)return console.error("AG Grid: could not find data item as object was not found",n),console.error("Consider using getRowId to help the Grid find matching row data"),null;return t||null},o.prototype.createNode=function(n,e,t){var i=new gt(this.beans);i.group=!1,this.setMasterForRow(i,n,t,!0);var r=this.gridOptionsService.get("suppressParentsInRowNodes");return e&&!r&&(i.parent=e),i.level=t,i.setDataAndId(n,this.nextId.toString()),this.allNodesMap[i.id]&&console.warn("AG Grid: duplicate node id '".concat(i.id,"' detected from getRowId callback, this could cause issues in your grid.")),this.allNodesMap[i.id]=i,this.nextId++,i},o.prototype.setMasterForRow=function(n,e,t,i){var r=this.gridOptionsService.get("treeData");if(r)n.setMaster(!1),i&&(n.expanded=!1);else{var s=this.gridOptionsService.get("masterDetail");if(s){var a=this.gridOptionsService.get("isRowMaster");a?n.setMaster(a(e)):n.setMaster(!0)}else n.setMaster(!1);if(i){var l=this.columnModel.getRowGroupColumns(),c=l?l.length:0,u=t+c;n.expanded=n.master?this.isExpanded(u):!1}}},o.prototype.isExpanded=function(n){var e=this.gridOptionsService.get("groupDefaultExpanded");return e===-1?!0:n<e},o.TOP_LEVEL=0,o.ROOT_NODE_ID="ROOT_NODE_ID",o}(),Bie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Zi=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Ji=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},er=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Ss=function(o){return o[o.Normal=0]="Normal",o[o.AfterFilter=1]="AfterFilter",o[o.AfterFilterAndSort=2]="AfterFilterAndSort",o[o.PivotNodes=3]="PivotNodes",o}(Ss||{}),$ie=function(o){Bie(n,o);function n(){var e=o!==null&&o.apply(this,arguments)||this;return e.onRowHeightChanged_debounced=mt.debounce(e.onRowHeightChanged.bind(e),100),e.rowsToDisplay=[],e.hasStarted=!1,e.shouldSkipSettingDataOnStart=!1,e.isRefreshingModel=!1,e.rowCountReady=!1,e}return n.prototype.init=function(){var e=this,t=this.refreshModel.bind(this,{step:zt.EVERYTHING}),i=!this.gridOptionsService.get("suppressAnimationFrame"),r=this.refreshModel.bind(this,{step:zt.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:i});this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,r),this.addManagedListener(this.eventService,T.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.addManagedListener(this.eventService,T.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:zt.PIVOT})),this.addManagedListener(this.eventService,T.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,T.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanges.bind(this)),this.addManagedListener(this.eventService,T.EVENT_GRID_READY,function(){return e.onGridReady()}),this.addPropertyListeners(),this.rootNode=new gt(this.beans),this.nodeManager=new Hie(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans)},n.prototype.addPropertyListeners=function(){var e=this,t=new Set(["treeData","masterDetail"]),i=new Set(["suppressParentsInRowNodes","groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType"]),r=new Set(["excludeChildrenWhenTreeDataFiltering"]),s=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),a=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","groupIncludeTotalFooter","suppressAggFilteredOnly"]),l=new Set(["postSortRows","groupDisplayType","accentedSort"]),c=new Set([]),u=new Set(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter"]),d=er(er(er(er(er(er(er(er(er([],Ji(t),!1),Ji(i),!1),Ji(r),!1),Ji(s),!1),Ji(s),!1),Ji(a),!1),Ji(l),!1),Ji(c),!1),Ji(u),!1);this.addManagedPropertyListeners(d,function(p){var g,v=(g=p.changeSet)===null||g===void 0?void 0:g.properties;if(v){var y=function(x){return v.some(function(E){return x.has(E)})};if(y(t)){e.setRowData(e.rootNode.allLeafChildren.map(function(x){return x.data}));return}if(y(i)){e.refreshModel({step:zt.EVERYTHING});return}if(y(r)){e.refreshModel({step:zt.FILTER});return}if(y(s)){e.refreshModel({step:zt.PIVOT});return}if(y(a)){e.refreshModel({step:zt.AGGREGATE});return}if(y(l)){e.refreshModel({step:zt.SORT});return}if(y(c)){e.refreshModel({step:zt.FILTER_AGGREGATES});return}y(u)&&e.refreshModel({step:zt.MAP})}}),this.addManagedPropertyListener("rowHeight",function(){return e.resetRowHeights()})},n.prototype.start=function(){this.hasStarted=!0,this.shouldSkipSettingDataOnStart?this.dispatchUpdateEventsAndRefresh():this.setInitialData()},n.prototype.setInitialData=function(){var e=this.gridOptionsService.get("rowData");e&&(this.shouldSkipSettingDataOnStart=!0,this.setRowData(e))},n.prototype.ensureRowHeightsValid=function(e,t,i,r){var s,a=!1;do{s=!1;for(var l=this.getRowIndexAtPixel(e),c=this.getRowIndexAtPixel(t),u=Math.max(l,i),d=Math.min(c,r),p=u;p<=d;p++){var g=this.getRow(p);if(g.rowHeightEstimated){var v=this.gridOptionsService.getRowHeightForNode(g);g.setRowHeight(v.height),s=!0,a=!0}}s&&this.setRowTopAndRowIndex()}while(s);return a},n.prototype.setRowTopAndRowIndex=function(){for(var e=this.environment.getDefaultRowHeight(),t=0,i=new Set,r=this.gridOptionsService.isDomLayout("normal"),s=0;s<this.rowsToDisplay.length;s++){var a=this.rowsToDisplay[s];if(a.id!=null&&i.add(a.id),a.rowHeight==null){var l=this.gridOptionsService.getRowHeightForNode(a,r,e);a.setRowHeight(l.height,l.estimated)}a.setRowTop(t),a.setRowIndex(s),t+=a.rowHeight}return i},n.prototype.clearRowTopAndRowIndex=function(e,t){var i=e.isActive(),r=function(a){a&&a.id!=null&&!t.has(a.id)&&a.clearRowTopAndRowIndex()},s=function(a){if(r(a),r(a.detailNode),r(a.sibling),a.hasChildren()&&a.childrenAfterGroup){var l=a.level==-1,c=i&&!l&&!a.expanded;c||a.childrenAfterGroup.forEach(s)}};s(this.rootNode)},n.prototype.ensureRowsAtPixel=function(e,t,i){var r=this;i===void 0&&(i=0);var s=this.getRowIndexAtPixel(t),a=this.getRow(s),l=!this.gridOptionsService.get("suppressAnimationFrame");return a===e[0]?!1:(e.forEach(function(c){mt.removeFromArray(r.rootNode.allLeafChildren,c)}),e.forEach(function(c,u){mt.insertIntoArray(r.rootNode.allLeafChildren,c,Math.max(s+i,0)+u)}),this.refreshModel({step:zt.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:l}),!0)},n.prototype.highlightRowAtPixel=function(e,t){var i=t!=null?this.getRowIndexAtPixel(t):null,r=i!=null?this.getRow(i):null;if(!r||!e||r===e||t==null){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null);return}var s=this.getHighlightPosition(t,r);this.lastHighlightedRow&&this.lastHighlightedRow!==r&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),r.setHighlighted(s),this.lastHighlightedRow=r},n.prototype.getHighlightPosition=function(e,t){if(!t){var i=this.getRowIndexAtPixel(e);if(t=this.getRow(i||0),!t)return ha.Below}var r=t.rowTop,s=t.rowHeight;return e-r<s/2?ha.Above:ha.Below},n.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},n.prototype.isLastRowIndexKnown=function(){return!0},n.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},n.prototype.getTopLevelRowCount=function(){var e=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(e)return 1;var t=this.rootNode.childrenAfterAggFilter;return t?t.length:0},n.prototype.getTopLevelRowDisplayedIndex=function(e){var t=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(t)return e;var i=this.rootNode.childrenAfterSort[e];if(this.gridOptionsService.get("groupHideOpenParents"))for(;i.expanded&&i.childrenAfterSort&&i.childrenAfterSort.length>0;)i=i.childrenAfterSort[0];return i.rowIndex},n.prototype.getRowBounds=function(e){if(mt.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},n.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:zt.MAP,keepRenderedRows:!0,animate:e})},n.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsService.isAnimateRows(),i=e.columns.length===0||e.columns.some(function(s){return s.isPrimary()}),r=i?zt.FILTER:zt.FILTER_AGGREGATES;this.refreshModel({step:r,keepRenderedRows:!0,animate:t})}},n.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:zt.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},n.prototype.getType=function(){return"clientSide"},n.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:zt.PIVOT}):this.refreshModel({step:zt.AGGREGATE})},n.prototype.createChangePath=function(e){var t=mt.missingOrEmpty(e),i=new Lg(!1,this.rootNode);return(t||this.gridOptionsService.get("treeData"))&&i.setInactive(),i},n.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.get("suppressModelUpdateAfterUpdateTransaction")||e.rowNodeTransactions==null)return!1;var t=e.rowNodeTransactions.filter(function(r){return r.add!=null&&r.add.length>0||r.remove!=null&&r.remove.length>0}),i=t==null||t.length==0;return i},n.prototype.buildRefreshModelParams=function(e){var t=zt.EVERYTHING,i={everything:zt.EVERYTHING,group:zt.EVERYTHING,filter:zt.FILTER,map:zt.MAP,aggregate:zt.AGGREGATE,sort:zt.SORT,pivot:zt.PIVOT};if(mt.exists(e)&&(t=i[e]),mt.missing(t)){console.error("AG Grid: invalid step ".concat(e,", available steps are ").concat(Object.keys(i).join(", ")));return}var r=!this.gridOptionsService.get("suppressAnimationFrame"),s={step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:r};return s},n.prototype.refreshModel=function(e){if(!(!this.hasStarted||this.isRefreshingModel||this.columnModel.shouldRowModelIgnoreRefresh())){var t=typeof e=="object"&&"step"in e?e:this.buildRefreshModelParams(e);if(t&&!this.isSuppressModelUpdateAfterUpdateTransaction(t)){var i=this.createChangePath(t.rowNodeTransactions);switch(this.isRefreshingModel=!0,t.step){case zt.EVERYTHING:this.doRowGrouping(t.rowNodeTransactions,t.rowNodeOrder,i,!!t.afterColumnsChanged);case zt.FILTER:this.doFilter(i);case zt.PIVOT:this.doPivot(i);case zt.AGGREGATE:this.doAggregate(i);case zt.FILTER_AGGREGATES:this.doFilterAggregates(i);case zt.SORT:this.doSort(t.rowNodeTransactions,i);case zt.MAP:this.doRowsToDisplay()}var r=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(i,r),this.isRefreshingModel=!1;var s={type:T.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(s)}}},n.prototype.isEmpty=function(){var e=mt.missing(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return mt.missing(this.rootNode)||e||!this.columnModel.isReady()},n.prototype.isRowsToRender=function(){return mt.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},n.prototype.getNodesInRangeForSelection=function(e,t){var i=!t,r=!1,s=[],a=this.gridOptionsService.get("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort(function(l){if(!r){if(i&&(l===t||l===e)&&(r=!0,l.group&&a)){s.push.apply(s,er([],Ji(l.allLeafChildren),!1));return}if(!i){if(l!==t&&l!==e)return;i=!0}var c=!l.group||!a;if(c){s.push(l);return}}}),s},n.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},n.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},n.prototype.getRootNode=function(){return this.rootNode},n.prototype.getRow=function(e){return this.rowsToDisplay[e]},n.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},n.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||this.rowsToDisplay.length===0)return-1;var t=0,i=this.rowsToDisplay.length-1;if(e<=0)return 0;var r=mt.last(this.rowsToDisplay);if(r.rowTop<=e)return this.rowsToDisplay.length-1;for(var s=-1,a=-1;;){var l=Math.floor((t+i)/2),c=this.rowsToDisplay[l];if(this.isRowInPixel(c,e))return l;c.rowTop<e?t=l+1:c.rowTop>e&&(i=l-1);var u=s===t&&a===i;if(u)return l;s=t,a=i}},n.prototype.isRowInPixel=function(e,t){var i=e.rowTop,r=e.rowTop+e.rowHeight,s=i<=t&&r>t;return s},n.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(t,i){return e(t,i)})},n.prototype.forEachNode=function(e,t){t===void 0&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:er([],Ji(this.rootNode.childrenAfterGroup||[]),!1),callback:e,recursionType:Ss.Normal,index:0,includeFooterNodes:t})},n.prototype.forEachNodeAfterFilter=function(e,t){t===void 0&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:er([],Ji(this.rootNode.childrenAfterAggFilter||[]),!1),callback:e,recursionType:Ss.AfterFilter,index:0,includeFooterNodes:t})},n.prototype.forEachNodeAfterFilterAndSort=function(e,t){t===void 0&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:er([],Ji(this.rootNode.childrenAfterSort||[]),!1),callback:e,recursionType:Ss.AfterFilterAndSort,index:0,includeFooterNodes:t})},n.prototype.forEachPivotNode=function(e,t){t===void 0&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:Ss.PivotNodes,index:0,includeFooterNodes:t})},n.prototype.recursivelyWalkNodesAndCallback=function(e){for(var t,i=e.nodes,r=e.callback,s=e.recursionType,a=e.includeFooterNodes,l=e.index,c=0;c<i.length;c++){var u=i[c];if(r(u,l++),u.hasChildren()&&!u.footer){var d=null;switch(s){case Ss.Normal:d=u.childrenAfterGroup;break;case Ss.AfterFilter:d=u.childrenAfterAggFilter;break;case Ss.AfterFilterAndSort:d=u.childrenAfterSort;break;case Ss.PivotNodes:d=u.leafGroup?null:u.childrenAfterSort;break}d&&(l=this.recursivelyWalkNodesAndCallback({nodes:er([],Ji(d),!1),callback:r,recursionType:s,index:l,includeFooterNodes:a}))}}var p=(t=i[0])===null||t===void 0?void 0:t.parent;if(!a||!p)return l;var g=p===this.rootNode;if(g){var v=this.gridOptionsService.get("groupIncludeTotalFooter");if(!v)return l}else{var y=this.gridOptionsService.getGroupIncludeFooter();if(!y({node:p}))return l}return p.createFooter(),r(p.sibling,l++),l},n.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},n.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsService.get("treeData"),i=this.columnModel.isPivotActive(),r=function(l){l&&l.forEach(function(c){var u=function(){c.expanded=e,r(c.childrenAfterGroup)};if(t){var d=mt.exists(c.childrenAfterGroup);d&&u();return}if(i){var p=!c.leafGroup;p&&u();return}var g=c.group;g&&u()})};this.rootNode&&r(this.rootNode.childrenAfterGroup),this.refreshModel({step:zt.MAP});var s=e?"expandAll":"collapseAll",a={type:T.EVENT_EXPAND_COLLAPSE_ALL,source:s};this.eventService.dispatchEvent(a)},n.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},n.prototype.doRowGrouping=function(e,t,i,r){if(this.groupStage){if(e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodeOrder:t,changedPath:i}):this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:r}),this.gridOptionsService.get("groupSelectsChildren")){var s=this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",i);if(s){var a={type:T.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(a)}}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren();this.nodeManager.isRowCountReady()&&(this.rowCountReady=!0,this.eventService.dispatchEventOnce({type:T.EVENT_ROW_COUNT_READY}))},n.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},n.prototype.getRowNode=function(e){var t=typeof e=="string"&&e.indexOf(gt.ID_PREFIX_ROW_GROUP)==0;if(t){var i=void 0;return this.forEachNode(function(r){r.id===e&&(i=r)}),i}return this.nodeManager.getRowNode(e)},n.prototype.setRowData=function(e){this.selectionService.reset("rowDataChanged"),this.nodeManager.setRowData(e),this.hasStarted&&this.dispatchUpdateEventsAndRefresh()},n.prototype.dispatchUpdateEventsAndRefresh=function(){var e={type:T.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(e),this.refreshModel({step:zt.EVERYTHING,newData:!0})},n.prototype.batchUpdateRowData=function(e,t){var i=this;if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];var r=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){i.executeBatchUpdateRowData()},r)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},n.prototype.flushAsyncTransactions=function(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},n.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],i=[],r=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(a){var l=e.nodeManager.updateRowData(a.rowDataTransaction,void 0);i.push(l),a.callback&&t.push(a.callback.bind(null,l)),typeof a.rowDataTransaction.addIndex=="number"&&(r=!0)}),this.commonUpdateRowData(i,void 0,r),t.length>0&&window.setTimeout(function(){t.forEach(function(a){return a()})},0),i.length>0){var s={type:T.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:i};this.eventService.dispatchEvent(s)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},n.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var i=this.nodeManager.updateRowData(e,t),r=typeof e.addIndex=="number";return this.commonUpdateRowData([i],t,r),i},n.prototype.createRowNodeOrder=function(){var e=this.gridOptionsService.get("suppressMaintainUnsortedOrder");if(!e){var t={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var i=0;i<this.rootNode.allLeafChildren.length;i++){var r=this.rootNode.allLeafChildren[i];t[r.id]=i}return t}},n.prototype.commonUpdateRowData=function(e,t,i){if(this.hasStarted){var r=!this.gridOptionsService.get("suppressAnimationFrame");i&&(t=this.createRowNodeOrder());var s={type:T.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(s),this.refreshModel({step:zt.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,keepEditingRows:!0,animate:r})}},n.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},n.prototype.onRowHeightChanged=function(){this.refreshModel({step:zt.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},n.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},n.prototype.resetRowHeights=function(){var e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),this.rootNode.sibling&&this.rootNode.sibling.setRowHeight(this.rootNode.sibling.rowHeight,!0),e&&this.onRowHeightChanged()},n.prototype.resetRowHeightsForAllRowNodes=function(){var e=!1;return this.forEachNode(function(t){t.setRowHeight(t.rowHeight,!0);var i=t.detailNode;i&&i.setRowHeight(i.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0}),e},n.prototype.onGridStylesChanges=function(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()},n.prototype.onGridReady=function(){this.hasStarted||this.setInitialData()},n.prototype.isRowDataLoaded=function(){return this.rowCountReady},Zi([b("columnModel")],n.prototype,"columnModel",void 0),Zi([b("selectionService")],n.prototype,"selectionService",void 0),Zi([b("filterManager")],n.prototype,"filterManager",void 0),Zi([b("valueCache")],n.prototype,"valueCache",void 0),Zi([b("beans")],n.prototype,"beans",void 0),Zi([b("filterStage")],n.prototype,"filterStage",void 0),Zi([b("sortStage")],n.prototype,"sortStage",void 0),Zi([b("flattenStage")],n.prototype,"flattenStage",void 0),Zi([Mt("groupStage")],n.prototype,"groupStage",void 0),Zi([Mt("aggregationStage")],n.prototype,"aggregationStage",void 0),Zi([Mt("pivotStage")],n.prototype,"pivotStage",void 0),Zi([Mt("filterAggregatesStage")],n.prototype,"filterAggregatesStage",void 0),Zi([pe],n.prototype,"init",null),n=Zi([Oe("rowModel")],n),n}(re),jie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),CD=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Wie=function(o){jie(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},CD([b("filterService")],n.prototype,"filterService",void 0),n=CD([Oe("filterStage")],n),n}(re),Uie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),z_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Kie=function(o){Uie(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.execute=function(e){var t=this,i=this.sortController.getSortOptions(),r=mt.exists(i)&&i.length>0,s=r&&mt.exists(e.rowNodeTransactions)&&this.gridOptionsService.get("deltaSort"),a=i.some(function(l){var c=t.gridOptionsService.isColumnsSortingCoupledToGroup();return c?l.column.isPrimary()&&l.column.isRowGroupActive():!!l.column.getColDef().showRowGroup});this.sortService.sort(i,r,s,e.rowNodeTransactions,e.changedPath,a)},z_([b("sortService")],n.prototype,"sortService",void 0),z_([b("sortController")],n.prototype,"sortController",void 0),n=z_([Oe("sortStage")],n),n}(re),qie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),O_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Yie=function(o){qie(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.execute=function(e){var t=e.rowNode,i=[],r=this.columnModel.isPivotMode(),s=r&&t.leafGroup,a=s?[t]:t.childrenAfterSort,l=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(l,a,i,r,0);var c=i.length>0,u=!s&&c&&l.groupIncludeTotalFooter;return u&&(t.createFooter(),this.addRowNodeToRowsToDisplay(l,t.sibling,i,0)),i},n.prototype.getFlattenDetails=function(){var e=this.gridOptionsService.get("groupRemoveSingleChildren"),t=!e&&this.gridOptionsService.get("groupRemoveLowestSingleChildren");return{groupRemoveLowestSingleChildren:t,groupRemoveSingleChildren:e,isGroupMultiAutoColumn:this.gridOptionsService.isGroupMultiAutoColumn(),hideOpenParents:this.gridOptionsService.get("groupHideOpenParents"),groupIncludeTotalFooter:this.gridOptionsService.get("groupIncludeTotalFooter"),getGroupIncludeFooter:this.gridOptionsService.getGroupIncludeFooter()}},n.prototype.recursivelyAddToRowsToDisplay=function(e,t,i,r,s){if(!mt.missingOrEmpty(t))for(var a=0;a<t.length;a++){var l=t[a],c=l.hasChildren(),u=r&&!c,d=e.groupRemoveSingleChildren&&c&&l.childrenAfterGroup.length===1,p=e.groupRemoveLowestSingleChildren&&c&&l.leafGroup&&l.childrenAfterGroup.length===1,g=r&&l.leafGroup,v=e.hideOpenParents&&l.expanded&&!l.master&&!g,y=!u&&!v&&!d&&!p;if(y&&this.addRowNodeToRowsToDisplay(e,l,i,s),!(r&&l.leafGroup)){if(c){var x=d||p;if(l.expanded||x){var E=x?s:s+1;this.recursivelyAddToRowsToDisplay(e,l.childrenAfterSort,i,r,E);var z=e.getGroupIncludeFooter({node:l});z?(l.createFooter(),this.addRowNodeToRowsToDisplay(e,l.sibling,i,E)):l.destroyFooter()}}else if(l.master&&l.expanded){var M=this.createDetailNode(l);this.addRowNodeToRowsToDisplay(e,M,i,s)}}}},n.prototype.addRowNodeToRowsToDisplay=function(e,t,i,r){i.push(t),t.setUiLevel(e.isGroupMultiAutoColumn?0:r)},n.prototype.createDetailNode=function(e){if(mt.exists(e.detailNode))return e.detailNode;var t=new gt(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,mt.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},O_([b("columnModel")],n.prototype,"columnModel",void 0),O_([b("beans")],n.prototype,"beans",void 0),n=O_([Oe("flattenStage")],n),n}(re),Qie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),D_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Xie=function(o){Qie(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.sort=function(e,t,i,r,s,a){var l=this,c=this.gridOptionsService.get("groupMaintainOrder"),u=this.columnModel.getAllGridColumns().some(function(y){return y.isRowGroupActive()}),d={};i&&r&&(d=this.calculateDirtyNodes(r));var p=this.columnModel.isPivotMode(),g=this.gridOptionsService.getCallback("postSortRows"),v=function(y){var x;l.pullDownGroupDataForHideOpenParents(y.childrenAfterAggFilter,!0);var E=p&&y.leafGroup,z=c&&u&&!y.leafGroup&&!a;if(z){var M=(x=l.columnModel.getRowGroupColumns())===null||x===void 0?void 0:x[y.level+1],G=M?.getSort()===null,U=y.childrenAfterAggFilter.slice(0);if(y.childrenAfterSort&&!G){var se={};y.childrenAfterSort.forEach(function(he,be){se[he.id]=be}),U.sort(function(he,be){var Ee,Te;return((Ee=se[he.id])!==null&&Ee!==void 0?Ee:0)-((Te=se[be.id])!==null&&Te!==void 0?Te:0)})}y.childrenAfterSort=U}else!t||E?y.childrenAfterSort=y.childrenAfterAggFilter.slice(0):i?y.childrenAfterSort=l.doDeltaSort(y,d,s,e):y.childrenAfterSort=l.rowNodeSorter.doFullSort(y.childrenAfterAggFilter,e);if(y.sibling&&(y.sibling.childrenAfterSort=y.childrenAfterSort),l.updateChildIndexes(y),g){var ve={nodes:y.childrenAfterSort};g(ve)}};s&&s.forEachChangedNodeDepthFirst(v),this.updateGroupDataForHideOpenParents(s)},n.prototype.calculateDirtyNodes=function(e){var t={},i=function(r){r&&r.forEach(function(s){return t[s.id]=!0})};return e&&e.forEach(function(r){i(r.add),i(r.update),i(r.remove)}),t},n.prototype.doDeltaSort=function(e,t,i,r){var s=this,a=e.childrenAfterAggFilter,l=e.childrenAfterSort;if(!l)return this.rowNodeSorter.doFullSort(a,r);var c={},u=[];a.forEach(function(v){t[v.id]||!i.canSkip(v)?u.push(v):c[v.id]=!0});var d=l.filter(function(v){return c[v.id]}),p=function(v,y){return{currentPos:y,rowNode:v}},g=u.map(p).sort(function(v,y){return s.rowNodeSorter.compareRowNodes(r,v,y)});return this.mergeSortedArrays(r,g,d.map(p)).map(function(v){var y=v.rowNode;return y})},n.prototype.mergeSortedArrays=function(e,t,i){for(var r=[],s=0,a=0;s<t.length&&a<i.length;){var l=this.rowNodeSorter.compareRowNodes(e,t[s],i[a]);l<0?r.push(t[s++]):r.push(i[a++])}for(;s<t.length;)r.push(t[s++]);for(;a<i.length;)r.push(i[a++]);return r},n.prototype.updateChildIndexes=function(e){if(!mt.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,i=0;i<t.length;i++){var r=t[i],s=i===0,a=i===e.childrenAfterSort.length-1;r.setFirstChild(s),r.setLastChild(a),r.setChildIndex(i)}},n.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsService.get("groupHideOpenParents")){if(this.gridOptionsService.get("treeData"))return mt.warnOnce("The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them."),!1;var i=function(r){t.pullDownGroupDataForHideOpenParents(r.childrenAfterSort,!1),r.childrenAfterSort.forEach(function(s){s.hasChildren()&&i(s)})};e&&e.executeFromRootNode(function(r){return i(r)})}},n.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var i=this;!this.gridOptionsService.get("groupHideOpenParents")||mt.missing(e)||e.forEach(function(r){var s=i.columnModel.getGroupDisplayColumns();s.forEach(function(a){var l=a.getColDef().showRowGroup;if(typeof l!="string"){console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");return}var c=l,u=i.columnModel.getPrimaryColumn(c),d=u===r.rowGroupColumn;if(!d)if(t)r.setGroupValue(a.getId(),void 0);else{var p=r.getFirstChildOfFirstChild(u);p&&r.setGroupValue(a.getId(),p.key)}})})},D_([b("columnModel")],n.prototype,"columnModel",void 0),D_([b("rowNodeSorter")],n.prototype,"rowNodeSorter",void 0),n=D_([Oe("sortService")],n),n}(re),Zie=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),_D=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Jie=function(o){Zie(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.filter=function(e){var t=this.filterManager.isChildFilterPresent();this.filterNodes(t,e)},n.prototype.filterNodes=function(e,t){var i=this,r=function(c,u){c.hasChildren()&&e&&!u?c.childrenAfterFilter=c.childrenAfterGroup.filter(function(d){var p=d.childrenAfterFilter&&d.childrenAfterFilter.length>0,g=d.data&&i.filterManager.doesRowPassFilter({rowNode:d});return p||g}):c.childrenAfterFilter=c.childrenAfterGroup,c.sibling&&(c.sibling.childrenAfterFilter=c.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var s=function(c,u){if(c.childrenAfterGroup)for(var d=0;d<c.childrenAfterGroup.length;d++){var p=c.childrenAfterGroup[d],g=u||i.filterManager.doesRowPassFilter({rowNode:p});p.childrenAfterGroup?s(c.childrenAfterGroup[d],g):r(p,g)}r(c,u)},a=function(c){return s(c,!1)};t.executeFromRootNode(a)}else{var l=function(c){return r(c,!1)};t.forEachChangedNodeDepthFirst(l,!0)}},n.prototype.doingTreeDataFiltering=function(){return this.gridOptionsService.get("treeData")&&!this.gridOptionsService.get("excludeChildrenWhenTreeDataFiltering")},_D([b("filterManager")],n.prototype,"filterManager",void 0),n=_D([Oe("filterService")],n),n}(re),ere=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Pd=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},tre=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},nre=function(o){ere(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){var e=this;this.rowModel.getType()==="clientSide"&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",function(){return e.onRowDataUpdated()}))},n.prototype.isActive=function(){var e=this.gridOptionsService.exists("getRowId"),t=this.gridOptionsService.get("resetRowDataOnUpdate");return t?!1:e},n.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var i=tre(t,2),r=i[0],s=i[1];this.clientSideRowModel.updateRowData(r,s)}},n.prototype.createTransactionForRowData=function(e){if(mt.missing(this.clientSideRowModel)){console.error("AG Grid: ImmutableService only works with ClientSideRowModel");return}var t=this.gridOptionsService.getCallback("getRowId");if(t==null){console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!");return}var i={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),s=this.gridOptionsService.get("suppressMaintainUnsortedOrder"),a=s?void 0:{};return mt.exists(e)&&e.forEach(function(l,c){var u=t({data:l,level:0}),d=r[u];if(a&&(a[u]=c),d){var p=d.data!==l;p&&i.update.push(l),r[u]=void 0}else i.add.push(l)}),mt.iterateObject(r,function(l,c){c&&i.remove.push(c.data)}),[i,a]},n.prototype.onRowDataUpdated=function(){var e=this.gridOptionsService.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))},Pd([b("rowModel")],n.prototype,"rowModel",void 0),Pd([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Pd([b("selectionService")],n.prototype,"selectionService",void 0),Pd([pe],n.prototype,"postConstruct",null),n=Pd([Oe("immutableService")],n),n}(re),ire="31.1.1",rre={version:ire,moduleName:je.ClientSideRowModelModule,rowModel:"clientSide",beans:[$ie,Wie,Kie,Yie,Xie,Jie,nre]},ore=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),R_=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},SD=function(o){ore(n,o);function n(e,t,i){var r=o.call(this,e)||this;return r.parentCache=t,r.params=i,r.startRow=e*i.blockSize,r.endRow=r.startRow+i.blockSize,r}return n.prototype.postConstruct=function(){this.createRowNodes()},n.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},n.prototype.setDataAndId=function(e,t,i){mt.exists(t)?e.setDataAndId(t,i.toString()):e.setDataAndId(void 0,void 0)},n.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();if(mt.missing(this.params.datasource.getRows)){console.warn("AG Grid: datasource is missing getRows method");return}window.setTimeout(function(){e.params.datasource.getRows(t)},0)},n.prototype.processServerFail=function(){},n.prototype.createLoadParams=function(){var e={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.getGridCommonParams().context};return e},n.prototype.forEachNode=function(e,t,i){var r=this;this.rowNodes.forEach(function(s,a){var l=r.startRow+a;l<i&&e(s,t.next())})},n.prototype.getLastAccessed=function(){return this.lastAccessed},n.prototype.getRow=function(e,t){t===void 0&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var i=e-this.startRow;return this.rowNodes[i]},n.prototype.getStartRow=function(){return this.startRow},n.prototype.getEndRow=function(){return this.endRow},n.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,i=new gt(this.beans);i.setRowHeight(this.params.rowHeight),i.uiLevel=0,i.setRowIndex(t),i.setRowTop(this.params.rowHeight*t),this.rowNodes.push(i)}},n.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach(function(r,s){var a=e.rowData?e.rowData[s]:void 0;!r.id&&r.alreadyRendered&&a&&(t.rowNodes[s]=new gt(t.beans),t.rowNodes[s].setRowIndex(r.rowIndex),t.rowNodes[s].setRowTop(r.rowTop),t.rowNodes[s].setRowHeight(r.rowHeight),r.clearRowTopAndRowIndex()),t.setDataAndId(t.rowNodes[s],a,t.startRow+s)});var i=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,i)},n.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},R_([b("beans")],n.prototype,"beans",void 0),R_([pe],n.prototype,"postConstruct",null),R_([Li],n.prototype,"destroyRowNodes",null),n}(X_),sre=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),Jf=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},are=function(o,n){return function(e,t){n(e,t,o)}},lre=function(o){sre(n,o);function n(e){var t=o.call(this)||this;return t.lastRowIndexKnown=!1,t.blocks={},t.blockCount=0,t.rowCount=e.initialRowCount,t.params=e,t}return n.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},n.prototype.getRow=function(e,t){t===void 0&&(t=!1);var i=Math.floor(e/this.params.blockSize),r=this.blocks[i];if(!r){if(t)return;r=this.createBlock(i)}return r.getRow(e)},n.prototype.createBlock=function(e){var t=this.createBean(new SD(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},n.prototype.refreshCache=function(){var e=this.blockCount==0;if(e){this.purgeCache();return}this.getBlocksInOrder().forEach(function(t){return t.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad()},n.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(t){return e.destroyBlock(t)})},n.prototype.getRowCount=function(){return this.rowCount},n.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},n.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = ".concat(e.getId(),", lastRow = ").concat(t)),this.checkRowCount(e,t),this.onCacheUpdated())},n.prototype.purgeBlocksIfNeeded=function(e){var t=this,i=this.getBlocksInOrder().filter(function(c){return c!=e}),r=function(c,u){return u.getLastAccessed()-c.getLastAccessed()};i.sort(r);var s=this.params.maxBlocksInCache>0,a=s?this.params.maxBlocksInCache-1:null,l=n.MAX_EMPTY_BLOCKS_TO_KEEP-1;i.forEach(function(c,u){var d=c.getState()===SD.STATE_WAITING_TO_LOAD&&u>=l,p=s?u>=a:!1;if(d||p){if(t.isBlockCurrentlyDisplayed(c)||t.isBlockFocused(c))return;t.removeBlockFromCache(c)}})},n.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;var i=e.getStartRow(),r=e.getEndRow(),s=t.rowIndex>=i&&t.rowIndex<r;return s},n.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),i=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,i)},n.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},n.prototype.checkRowCount=function(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var i=(e.getId()+1)*this.params.blockSize,r=i+this.params.overflowSize;this.rowCount<r&&(this.rowCount=r)}},n.prototype.setRowCount=function(e,t){this.rowCount=e,mt.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},n.prototype.forEachNodeDeep=function(e){var t=this,i=new Wc;this.getBlocksInOrder().forEach(function(r){return r.forEachNode(e,i,t.rowCount)})},n.prototype.getBlocksInOrder=function(){var e=function(i,r){return i.getId()-r.getId()},t=mt.getAllValuesInObject(this.blocks).sort(e);return t},n.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},n.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:T.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},n.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach(function(i){var r=i.getId()*e.params.blockSize;r>=e.rowCount&&t.push(i)}),t.length>0&&t.forEach(function(i){return e.destroyBlock(i)})},n.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(t){return e.removeBlockFromCache(t)}),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},n.prototype.getRowNodesInRange=function(e,t){var i=this,r=[],s=-1,a=!1,l=new Wc;mt.missing(e)&&(a=!0);var c=!1;this.getBlocksInOrder().forEach(function(d){if(!c){if(a&&s+1!==d.getId()){c=!0;return}s=d.getId(),d.forEachNode(function(p){var g=p===e||p===t;(a||g)&&r.push(p),g&&(a=!a)},l,i.rowCount)}});var u=c||a;return u?[]:r},n.MAX_EMPTY_BLOCKS_TO_KEEP=2,Jf([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Jf([b("focusService")],n.prototype,"focusService",void 0),Jf([are(0,Ur("loggerFactory"))],n.prototype,"setBeans",null),Jf([Li],n.prototype,"destroyAllBlocks",null),n}(re),cre=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),sa=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},ure=function(o){cre(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},n.prototype.ensureRowHeightsValid=function(e,t,i,r){return!1},n.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},n.prototype.verifyProps=function(){this.gridOptionsService.exists("initialGroupOrderComparator")&&mt.warnOnce("initialGroupOrderComparator cannot be used with Infinite Row Model as sorting is done on the server side")},n.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},n.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},n.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,T.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,T.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,T.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this)),this.addManagedPropertyListener("datasource",function(){return e.setDatasource(e.gridOptionsService.get("datasource"))}),this.addManagedPropertyListener("cacheBlockSize",function(){return e.resetCache()}),this.addManagedPropertyListener("rowHeight",function(){e.rowHeight=e.gridOptionsService.getRowHeightAsNumber(),e.cacheParams.rowHeight=e.rowHeight,e.updateRowHeights()})},n.prototype.onFilterChanged=function(){this.reset()},n.prototype.onSortChanged=function(){this.reset()},n.prototype.onColumnEverything=function(){var e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()},n.prototype.isSortModelDifferent=function(){return!mt.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},n.prototype.getType=function(){return"infinite"},n.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},n.prototype.isEmpty=function(){return!this.infiniteCache},n.prototype.isRowsToRender=function(){return!!this.infiniteCache},n.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},n.prototype.reset=function(){if(this.datasource){var e=this.gridOptionsService.getCallback("getRowId"),t=e!=null;t||this.selectionService.reset("rowDataChanged"),this.resetCache()}},n.prototype.createModelUpdatedEvent=function(){return{type:T.EVENT_MODEL_UPDATED,newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1}},n.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.gridOptionsService.get("infiniteInitialRowCount"),maxBlocksInCache:this.gridOptionsService.get("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.gridOptionsService.get("cacheOverflowSize"),blockSize:this.gridOptionsService.get("cacheBlockSize"),lastAccessedSequence:new Wc},this.infiniteCache=this.createBean(new lre(this.cacheParams)),this.eventService.dispatchEventOnce({type:T.EVENT_ROW_COUNT_READY});var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},n.prototype.updateRowHeights=function(){var e=this;this.forEachNode(function(i){i.setRowHeight(e.rowHeight),i.setRowTop(e.rowHeight*i.rowIndex)});var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)},n.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},n.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},n.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},n.prototype.getRowNode=function(e){var t;return this.forEachNode(function(i){i.id===e&&(t=i)}),t},n.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},n.prototype.getTopLevelRowCount=function(){return this.getRowCount()},n.prototype.getTopLevelRowDisplayedIndex=function(e){return e},n.prototype.getRowIndexAtPixel=function(e){if(this.rowHeight!==0){var t=Math.floor(e/this.rowHeight),i=this.getRowCount()-1;return t>i?i:t}return 0},n.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},n.prototype.isRowPresent=function(e){var t=this.getRowNode(e.id);return!!t},n.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},n.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},n.prototype.isLastRowIndexKnown=function(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1},n.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},sa([b("filterManager")],n.prototype,"filterManager",void 0),sa([b("sortController")],n.prototype,"sortController",void 0),sa([b("selectionService")],n.prototype,"selectionService",void 0),sa([b("rowRenderer")],n.prototype,"rowRenderer",void 0),sa([b("rowNodeBlockLoader")],n.prototype,"rowNodeBlockLoader",void 0),sa([pe],n.prototype,"init",null),sa([Li],n.prototype,"destroyDatasource",null),n=sa([Oe("rowModel")],n),n}(re),dre="31.1.1",pre={version:dre,moduleName:je.InfiniteRowModelModule,rowModel:"infinite",beans:[ure]},hre=function(){function o(){}return o.prototype.setBeans=function(n){this.beans=n},o.prototype.getFileName=function(n){var e=this.getDefaultFileExtension();return(n==null||!n.length)&&(n=this.getDefaultFileName()),n.indexOf(".")===-1?"".concat(n,".").concat(e):n},o.prototype.getData=function(n){var e=this.createSerializingSession(n);return this.beans.gridSerializer.serialize(e,n)},o.prototype.getDefaultFileName=function(){return"export.".concat(this.getDefaultFileExtension())},o}(),fre=function(){function o(n){this.groupColumns=[];var e=n.columnModel,t=n.valueService,i=n.gridOptionsService,r=n.valueFormatterService,s=n.valueParserService,a=n.processCellCallback,l=n.processHeaderCallback,c=n.processGroupHeaderCallback,u=n.processRowGroupCallback;this.columnModel=e,this.valueService=t,this.gridOptionsService=i,this.valueFormatterService=r,this.valueParserService=s,this.processCellCallback=a,this.processHeaderCallback=l,this.processGroupHeaderCallback=c,this.processRowGroupCallback=u}return o.prototype.prepare=function(n){this.groupColumns=n.filter(function(e){return!!e.getColDef().showRowGroup})},o.prototype.extractHeaderValue=function(n){var e=this.getHeaderName(this.processHeaderCallback,n);return e??""},o.prototype.extractRowCellValue=function(n,e,t,i,r){var s=this.gridOptionsService.get("groupHideOpenParents"),a=(!s||r.footer)&&this.shouldRenderGroupSummaryCell(r,n,e)?this.createValueForGroupNode(n,r):this.valueService.getValue(n,r),l=this.processCell({accumulatedRowIndex:t,rowNode:r,column:n,value:a,processCellCallback:this.processCellCallback,type:i});return l},o.prototype.shouldRenderGroupSummaryCell=function(n,e,t){var i,r=n&&n.group;if(!r)return!1;var s=this.groupColumns.indexOf(e);if(s!==-1){if(((i=n.groupData)===null||i===void 0?void 0:i[e.getId()])!=null||this.gridOptionsService.isRowModelType("serverSide")&&n.group)return!0;if(n.footer&&n.level===-1){var a=e.getColDef(),l=a==null||a.showRowGroup===!0;return l||a.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var c=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return t===0&&c},o.prototype.getHeaderName=function(n,e){return n?n(this.gridOptionsService.addGridCommonParams({column:e})):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},o.prototype.createValueForGroupNode=function(n,e){var t=this;if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gridOptionsService.addGridCommonParams({column:n,node:e}));var i=this.gridOptionsService.get("treeData"),r=this.gridOptionsService.get("suppressGroupMaintainValueType"),s=function(u){var d,p;if(i||r)return u.key;var g=(d=u.groupData)===null||d===void 0?void 0:d[n.getId()];return!g||!u.rowGroupColumn||u.rowGroupColumn.getColDef().useValueFormatterForExport===!1?g:(p=t.valueFormatterService.formatValue(u.rowGroupColumn,u,g))!==null&&p!==void 0?p:g},a=e.footer,l=[s(e)];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,l.push(s(e));var c=l.reverse().join(" -> ");return a?"Total ".concat(c):c},o.prototype.processCell=function(n){var e=this,t,i=n.accumulatedRowIndex,r=n.rowNode,s=n.column,a=n.value,l=n.processCellCallback,c=n.type;return l?{value:(t=l(this.gridOptionsService.addGridCommonParams({accumulatedRowIndex:i,column:s,node:r,value:a,type:c,parseValue:function(u){return e.valueParserService.parseValue(s,r,u,e.valueService.getValue(s,r))},formatValue:function(u){var d;return(d=e.valueFormatterService.formatValue(s,r,u))!==null&&d!==void 0?d:u}})))!==null&&t!==void 0?t:""}:s.getColDef().useValueFormatterForExport!==!1?{value:a??"",valueFormatted:this.valueFormatterService.formatValue(s,r,a)}:{value:a??""}},o}(),gre=function(){function o(){}return o.download=function(n,e){var t=document.defaultView||window;if(!t){console.warn("AG Grid: There is no `window` associated with the current `document`");return}var i=document.createElement("a"),r=t.URL.createObjectURL(e);i.setAttribute("href",r),i.setAttribute("download",n),i.style.display="none",document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:t})),document.body.removeChild(i),t.setTimeout(function(){t.URL.revokeObjectURL(r)},0)},o}(),mre=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),wD=`\r
  260. `,vre=function(o){mre(n,o);function n(e){var t=o.call(this,e)||this;t.isFirstLine=!0,t.result="";var i=e.suppressQuotes,r=e.columnSeparator;return t.suppressQuotes=i,t.columnSeparator=r,t}return n.prototype.addCustomContent=function(e){var t=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,wD),this.result+=e):e.forEach(function(i){t.beginNewLine(),i.forEach(function(r,s){s!==0&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(r.data.value||""),r.mergeAcross&&t.appendEmptyCells(r.mergeAcross)})}))},n.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},n.prototype.onNewHeaderGroupingRowColumn=function(e,t,i,r){i!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)},n.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},n.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},n.prototype.onNewHeaderRowColumn=function(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},n.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},n.prototype.onNewBodyRowColumn=function(e,t,i){var r;t!=0&&(this.result+=this.columnSeparator);var s=this.extractRowCellValue(e,t,t,"csv",i);this.result+=this.putInQuotes((r=s.valueFormatted)!==null&&r!==void 0?r:s.value)},n.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var t;typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t="");var i=t.replace(/"/g,'""');return'"'+i+'"'},n.prototype.parse=function(){return this.result},n.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=wD),this.isFirstLine=!1},n}(fre),yre=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),aa=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r},Cre=function(o){yre(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},n.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},t,e)},n.prototype.export=function(e){if(this.isExportSuppressed()){console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");return}var t=this.getMergedParams(e),i=this.getData(t),r=new Blob(["\uFEFF",i],{type:"text/plain"}),s=typeof t.fileName=="function"?t.fileName(this.gridOptionsService.getGridCommonParams()):t.fileName;gre.download(this.getFileName(s),r)},n.prototype.exportDataAsCsv=function(e){this.export(e)},n.prototype.getDataAsCsv=function(e,t){t===void 0&&(t=!1);var i=t?Object.assign({},e):this.getMergedParams(e);return this.getData(i)},n.prototype.getDefaultFileExtension=function(){return"csv"},n.prototype.createSerializingSession=function(e){var t=this,i=t.columnModel,r=t.valueService,s=t.gridOptionsService,a=t.valueFormatterService,l=t.valueParserService,c=e,u=c.processCellCallback,d=c.processHeaderCallback,p=c.processGroupHeaderCallback,g=c.processRowGroupCallback,v=c.suppressQuotes,y=c.columnSeparator;return new vre({columnModel:i,valueService:r,gridOptionsService:s,valueFormatterService:a,valueParserService:l,processCellCallback:u||void 0,processHeaderCallback:d||void 0,processGroupHeaderCallback:p||void 0,processRowGroupCallback:g||void 0,suppressQuotes:v||!1,columnSeparator:y||","})},n.prototype.isExportSuppressed=function(){return this.gridOptionsService.get("suppressCsvExport")},aa([b("columnModel")],n.prototype,"columnModel",void 0),aa([b("valueService")],n.prototype,"valueService",void 0),aa([b("gridSerializer")],n.prototype,"gridSerializer",void 0),aa([b("gridOptionsService")],n.prototype,"gridOptionsService",void 0),aa([b("valueFormatterService")],n.prototype,"valueFormatterService",void 0),aa([b("valueParserService")],n.prototype,"valueParserService",void 0),aa([pe],n.prototype,"postConstruct",null),n=aa([Oe("csvCreator")],n),n}(hre),_re=function(){var o=function(n,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},o(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),la=function(o,n,e,t){var i=arguments.length,r=i<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,e):t,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,e,t);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(i<3?s(r):i>3?s(n,e,r):s(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r};var Sre=function(o){_re(n,o);function n(){return o!==null&&o.apply(this,arguments)||this}return n.prototype.serialize=function(e,t){t===void 0&&(t={});var i=t.allColumns,r=t.columnKeys,s=t.skipRowGroups,a=this.getColumnsToExport(i,s,r),l=mt.compose(this.prepareSession(a),this.prependContent(t),this.exportColumnGroups(t,a),this.exportHeaders(t,a),this.processPinnedTopRows(t,a),this.processRows(t,a),this.processPinnedBottomRows(t,a),this.appendContent(t));return l(e).parse()},n.prototype.processRow=function(e,t,i,r){var s=t.shouldRowBeSkipped||function(){return!1},a=this.gridOptionsService.get("groupRemoveSingleChildren"),l=this.gridOptionsService.get("groupRemoveLowestSingleChildren"),c=t.rowPositions!=null,u=c||!!t.onlySelected,d=this.gridOptionsService.get("groupHideOpenParents")&&!u,p=this.columnModel.isPivotMode()?r.leafGroup:!r.group,g=!!r.footer;t.skipRowGroups;var v=l&&r.leafGroup,y=r.allChildrenCount===1&&(a||v);if(!(!p&&!g&&(t.skipRowGroups||y||d)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&r.rowPinned==="top"||t.skipPinnedBottom&&r.rowPinned==="bottom")){var x=r.level===-1;if(!(x&&!p&&!g)){var E=s(this.gridOptionsService.addGridCommonParams({node:r}));if(!E){var z=e.onNewBodyRow(r);if(i.forEach(function(G,U){z.onColumn(G,U,r)}),t.getCustomContentBelowRow){var M=t.getCustomContentBelowRow(this.gridOptionsService.addGridCommonParams({node:r}));M&&e.addCustomContent(M)}}}}},n.prototype.appendContent=function(e){return function(t){var i=e.appendContent;return i&&t.addCustomContent(i),t}},n.prototype.prependContent=function(e){return function(t){var i=e.prependContent;return i&&t.addCustomContent(i),t}},n.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},n.prototype.exportColumnGroups=function(e,t){var i=this;return function(r){if(!e.skipColumnGroupHeaders){var s=new GD,a=i.displayedGroupCreator.createDisplayedGroups(t,s,null);i.recursivelyAddHeaderGroups(a,r,e.processGroupHeaderCallback)}return r}},n.prototype.exportHeaders=function(e,t){return function(i){if(!e.skipColumnHeaders){var r=i.onNewHeaderRow();t.forEach(function(s,a){r.onColumn(s,a,void 0)})}return i}},n.prototype.processPinnedTopRows=function(e,t){var i=this;return function(r){var s=i.processRow.bind(i,r,e,t);return e.rowPositions?e.rowPositions.filter(function(a){return a.rowPinned==="top"}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return i.pinnedRowModel.getPinnedTopRow(a.rowIndex)}).forEach(s):i.pinnedRowModel.forEachPinnedTopRow(s),r}},n.prototype.processRows=function(e,t){var i=this;return function(r){var s=i.rowModel,a=s.getType(),l=a==="clientSide",c=a==="serverSide",u=!l&&e.onlySelected,d=i.processRow.bind(i,r,e,t),p=e.exportedRows,g=p===void 0?"filteredAndSorted":p;if(e.rowPositions)e.rowPositions.filter(function(y){return y.rowPinned==null}).sort(function(y,x){return y.rowIndex-x.rowIndex}).map(function(y){return s.getRow(y.rowIndex)}).forEach(d);else if(i.columnModel.isPivotMode())l?s.forEachPivotNode(d,!0):c?s.forEachNodeAfterFilterAndSort(d,!0):s.forEachNode(d);else if(e.onlySelectedAllPages||u){var v=i.selectionService.getSelectedNodes();i.replicateSortedOrder(v),v.forEach(d)}else g==="all"?s.forEachNode(d):l||c?s.forEachNodeAfterFilterAndSort(d,!0):s.forEachNode(d);return r}},n.prototype.replicateSortedOrder=function(e){var t=this,i=this.sortController.getSortOptions(),r=function(s,a){var l,c,u,d;return s.rowIndex!=null&&a.rowIndex!=null?s.rowIndex-a.rowIndex:s.level===a.level?((l=s.parent)===null||l===void 0?void 0:l.id)===((c=a.parent)===null||c===void 0?void 0:c.id)?t.rowNodeSorter.compareRowNodes(i,{rowNode:s,currentPos:(u=s.rowIndex)!==null&&u!==void 0?u:-1},{rowNode:a,currentPos:(d=a.rowIndex)!==null&&d!==void 0?d:-1}):r(s.parent,a.parent):s.level>a.level?r(s.parent,a):r(s,a.parent)};e.sort(r)},n.prototype.processPinnedBottomRows=function(e,t){var i=this;return function(r){var s=i.processRow.bind(i,r,e,t);return e.rowPositions?e.rowPositions.filter(function(a){return a.rowPinned==="bottom"}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return i.pinnedRowModel.getPinnedBottomRow(a.rowIndex)}).forEach(s):i.pinnedRowModel.forEachPinnedBottomRow(s),r}},n.prototype.getColumnsToExport=function(e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=this.columnModel.isPivotMode();if(i&&i.length)return this.columnModel.getGridColumns(i);var s=this.gridOptionsService.get("treeData"),a=[];return e&&!r?a=this.columnModel.getAllGridColumns():a=this.columnModel.getAllDisplayedColumns(),t&&!s&&(a=a.filter(function(l){return l.getColId()!==Bc})),a},n.prototype.recursivelyAddHeaderGroups=function(e,t,i){var r=[];e.forEach(function(s){var a=s;a.getChildren&&a.getChildren().forEach(function(l){return r.push(l)})}),e.length>0&&e[0]instanceof qn&&this.doAddHeaderHeader(t,e,i),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,i)},n.prototype.doAddHeaderHeader=function(e,t,i){var r=this,s=e.onNewHeaderGroupingRow(),a=0;t.forEach(function(l){var c=l,u;i?u=i(r.gridOptionsService.addGridCommonParams({columnGroup:c})):u=r.columnModel.getDisplayNameForColumnGroup(c,"header");var d=c.getLeafColumns().reduce(function(p,g,v,y){var x=mt.last(p),E=g.getColumnGroupShow()==="open";return E?(!x||x[1]!=null)&&(x=[v],p.push(x)):x&&x[1]==null&&(x[1]=v-1),v===y.length-1&&x&&x[1]==null&&(x[1]=v),p},[]);s.onColumn(c,u||"",a++,c.getLeafColumns().length-1,d)})},la([b("displayedGroupCreator")],n.prototype,"displayedGroupCreator",void 0),la([b("columnModel")],n.prototype,"columnModel",void 0),la([b("rowModel")],n.prototype,"rowModel",void 0),la([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),la([b("selectionService")],n.prototype,"selectionService",void 0),la([b("rowNodeSorter")],n.prototype,"rowNodeSorter",void 0),la([b("sortController")],n.prototype,"sortController",void 0),n=la([Oe("gridSerializer")],n),n}(re),wre="31.1.1",bre={version:wre,moduleName:je.CsvExportModule,beans:[Cre,Sre]},eg=`\r
  261. `,Iwe=function(){function o(){}return o.createHeader=function(n){n===void 0&&(n={});var e="<?",t="?>",i=["version"];n.version||(n.version="1.0"),n.encoding&&i.push("encoding"),n.standalone&&i.push("standalone");var r=i.map(function(s){return"".concat(s,'="').concat(n[s],'"')}).join(" ");return"".concat(e,"xml ").concat(r," ").concat(t)},o.createXml=function(n,e){var t=this,i="";n.properties&&(n.properties.prefixedAttributes&&n.properties.prefixedAttributes.forEach(function(s){Object.keys(s.map).forEach(function(a){i+=t.returnAttributeIfPopulated(s.prefix+a,s.map[a],e)})}),n.properties.rawMap&&Object.keys(n.properties.rawMap).forEach(function(s){i+=t.returnAttributeIfPopulated(s,n.properties.rawMap[s],e)}));var r="<"+n.name+i;return!n.children&&n.textNode==null?r+"/>"+eg:n.textNode!=null?r+">"+n.textNode+"</"+n.name+">"+eg:(r+=">"+eg,n.children&&n.children.forEach(function(s){r+=t.createXml(s,e)}),r+"</"+n.name+">"+eg)},o.returnAttributeIfPopulated=function(n,e,t){if(!e&&e!==""&&e!==0)return"";var i=e;return typeof e=="boolean"&&t&&(i=t(e))," ".concat(n,'="').concat(i,'"')},o}(),Tre=function(o){var n=o.getHours();return n<<=6,n=n|o.getMinutes(),n<<=5,n=n|o.getSeconds()/2,n},Ere=function(o){var n=o.getFullYear()-1980;return n<<=4,n=n|o.getMonth()+1,n<<=5,n=n|o.getDate(),n};function Ti(o,n){for(var e="",t=0;t<n;t++)e+=String.fromCharCode(o&255),o>>>=8;return e}var bD=function(o){if(!o.length)return 0;for(var n=-1,e=0,t=0,i=0,r=0;r<o.length;r++)e=o[r],t=(n^e)&255,i=xre[t],n=n>>>8^i;return n^-1},TD=function(o){return o.length?bD(typeof o=="string"?new TextEncoder().encode(o):o):0},xre=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),aI=function(o,n,e,t){function i(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function a(u){try{c(t.next(u))}catch(d){s(d)}}function l(u){try{c(t.throw(u))}catch(d){s(d)}}function c(u){u.done?r(u.value):i(u.value).then(a,l)}c((t=t.apply(o,n||[])).next())})},lI=function(o,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,i&&(r=c[0]&2?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,i=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=n.call(o,e)}catch(u){c=[6,u],i=0}finally{t=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},zre=function(o){return aI(void 0,void 0,void 0,function(){var n,e,t,i,r;return lI(this,function(s){switch(s.label){case 0:return n=0,e=[],t=new WritableStream({write:function(a){e.push(a),n+=a.length}}),i=new ReadableStream({start:function(a){var l=new FileReader;l.onload=function(c){var u;!((u=c.target)===null||u===void 0)&&u.result&&a.enqueue(c.target.result),a.close()},l.readAsArrayBuffer(o)}}),r=new window.CompressionStream("deflate-raw"),[4,i.pipeThrough(r).pipeTo(t)];case 1:return s.sent(),[2,{size:n,content:new Blob(e)}]}})})},Ore=function(o){return aI(void 0,void 0,void 0,function(){var n,e,t,i,r,s;return lI(this,function(a){switch(a.label){case 0:return n=new Blob([o]),[4,zre(n)];case 1:return e=a.sent(),t=e.size,i=e.content,s=Uint8Array.bind,[4,i.arrayBuffer()];case 2:return r=new(s.apply(Uint8Array,[void 0,a.sent()])),[2,{size:t,content:r}]}})})},Uc=function(){return Uc=Object.assign||function(o){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},Uc.apply(this,arguments)},Dre=function(o,n,e,t){function i(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function a(u){try{c(t.next(u))}catch(d){s(d)}}function l(u){try{c(t.throw(u))}catch(d){s(d)}}function c(u){u.done?r(u.value):i(u.value).then(a,l)}c((t=t.apply(o,n||[])).next())})},Rre=function(o,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,i&&(r=c[0]&2?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,i=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=n.call(o,e)}catch(u){c=[6,u],i=0}finally{t=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ire=mt.utf8_encode,Pre=function(o,n){return Dre(void 0,void 0,void 0,function(){var e,t,i,r,s,a,l,c,u,d;return Rre(this,function(p){switch(p.label){case 0:return e=o.content,t=e?uI(e):{size:0,content:Uint8Array.from([])},i=t.size,r=t.content,s=void 0,a=void 0,l=!1,c=o.type==="file"&&r&&i>0,c?[4,Ore(r)]:[3,2];case 1:u=p.sent(),s=u.content,a=u.size,l=!0,p.label=2;case 2:return d=cI(o,l,n,i,r,a),[2,Uc(Uc({},d),{content:s||r,isCompressed:l})]}})})},Mre=function(o,n){var e=o.content,t=(e?uI(e):{content:Uint8Array.from([])}).content,i=cI(o,!1,n,t.length,t,void 0);return Uc(Uc({},i),{content:t,isCompressed:!1})},cI=function(o,n,e,t,i,r){var s=o.content,a=o.path,l=o.created,c=Tre(l),u=Ere(l),d=TD(i),p=r!==void 0?r:t,g=Ire(a),v=g!==a,y="";if(v){var x=Ti(1,1)+Ti(TD(g),4)+g;y="up"+Ti(x.length,2)+x}var E="\0"+(v?"\0\b":"\0\0")+Ti(n?8:0,2)+Ti(c,2)+Ti(u,2)+Ti(p?d:0,4)+Ti(r??t,4)+Ti(t,4)+Ti(g.length,2)+Ti(y.length,2),z="PK"+E+g+y,M="PK\0"+E+"\0\0\0\0\0\0"+(s?"\0\0\0\0":"\0\0\0")+Ti(e,4)+g+y;return{localFileHeader:Uint8Array.from(z,function(G){return G.charCodeAt(0)}),centralDirectoryHeader:Uint8Array.from(M,function(G){return G.charCodeAt(0)})}},Fre=function(o,n,e){var t="PK\0\0\0\0"+Ti(o,2)+Ti(o,2)+Ti(n,4)+Ti(e,4)+"\0\0";return Uint8Array.from(t,function(i){return i.charCodeAt(0)})},Are=function(o){for(var n=new Uint8Array(o.length),e=0;e<o.length;e++)n[e]=o.charCodeAt(e);return n},uI=function(o){var n;if(typeof o=="string"){var e=atob(o.split(";base64,")[1]);n=Are(e)}else n=o;return{size:n.length,content:n}},ED=function(o,n,e,t){function i(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function a(u){try{c(t.next(u))}catch(d){s(d)}}function l(u){try{c(t.throw(u))}catch(d){s(d)}}function c(u){u.done?r(u.value):i(u.value).then(a,l)}c((t=t.apply(o,n||[])).next())})},xD=function(o,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,i&&(r=c[0]&2?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,i=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=n.call(o,e)}catch(u){c=[6,u],i=0}finally{t=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},I_=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&o[n],t=0;if(e)return e.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&t>=o.length&&(o=void 0),{value:o&&o[t++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},tg=function(o,n){var e=typeof Symbol=="function"&&o[Symbol.iterator];if(!e)return o;var t=e.call(o),i,r=[],s;try{for(;(n===void 0||n-- >0)&&!(i=t.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return r},ng=function(o,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,r;t<i;t++)(r||!(t in n))&&(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return o.concat(r||Array.prototype.slice.call(n))},Pwe=function(){function o(){}return o.addFolders=function(n){n.forEach(this.addFolder.bind(this))},o.addFolder=function(n){this.folders.push({path:n,created:new Date,isBase64:!1,type:"folder"})},o.addFile=function(n,e,t){t===void 0&&(t=!1),this.files.push({path:n,created:new Date,content:t?e:new TextEncoder().encode(e),isBase64:t,type:"file"})},o.getZipFile=function(n){return n===void 0&&(n="application/zip"),ED(this,void 0,void 0,function(){var e;return xD(this,function(t){switch(t.label){case 0:return[4,this.buildCompressedFileStream()];case 1:return e=t.sent(),this.clearStream(),[2,new Blob([e],{type:n})]}})})},o.getUncompressedZipFile=function(n){n===void 0&&(n="application/zip");var e=this.buildFileStream();return this.clearStream(),new Blob([e],{type:n})},o.clearStream=function(){this.folders=[],this.files=[]},o.packageFiles=function(n){var e,t,i=new Uint8Array(0),r=new Uint8Array(0),s=0,a=0;try{for(var l=I_(n),c=l.next();!c.done;c=l.next()){var u=c.value,d=u.localFileHeader,p=u.centralDirectoryHeader,g=u.content,v=new Uint8Array(i.length+d.length);v.set(i),v.set(d,i.length),i=v;var y=new Uint8Array(i.length+g.length);y.set(i),y.set(g,i.length),i=y;var x=new Uint8Array(r.length+p.length);x.set(r),x.set(p,r.length),r=x,s+=d.length+g.length,a+=p.length}}catch(M){e={error:M}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}var E=Fre(n.length,a,s),z=new Uint8Array(i.length+r.length+E.length);return z.set(i),z.set(r,i.length),z.set(E,i.length+r.length),z},o.buildCompressedFileStream=function(){return ED(this,void 0,void 0,function(){var n,e,t,i,r,s,a,l,c,u,d,p;return xD(this,function(g){switch(g.label){case 0:n=ng(ng([],tg(this.folders),!1),tg(this.files),!1),e=[],t=0,g.label=1;case 1:g.trys.push([1,6,7,8]),i=I_(n),r=i.next(),g.label=2;case 2:return r.done?[3,5]:(s=r.value,[4,Pre(s,t)]);case 3:a=g.sent(),l=a.localFileHeader,c=a.content,e.push(a),t+=l.length+c.length,g.label=4;case 4:return r=i.next(),[3,2];case 5:return[3,8];case 6:return u=g.sent(),d={error:u},[3,8];case 7:try{r&&!r.done&&(p=i.return)&&p.call(i)}finally{if(d)throw d.error}return[7];case 8:return[2,this.packageFiles(e)]}})})},o.buildFileStream=function(){var n,e,t=ng(ng([],tg(this.folders),!1),tg(this.files),!1),i=[],r=0;try{for(var s=I_(t),a=s.next();!a.done;a=s.next()){var l=a.value,c=Mre(l,r),u=c.localFileHeader,d=c.content;i.push(c),r+=u.length+d.length}}catch(p){n={error:p}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(n)throw n.error}}return this.packageFiles(i)},o.folders=[],o.files=[],o}(),Nre=[rre,pre,bre];qt.registerModules(Nre);var dI=(()=>{class o extends H0{constructor(e){super("angular"),this._ngZone=e,this.isRunningWithinTestZone=!1,this.wrapIncoming=(t,i)=>this.runOutside(t,i),this.wrapOutgoing=t=>this.runInsideAngular(t),this.isRunningWithinTestZone=window?.AG_GRID_UNDER_TEST??!!window?.Zone?.AsyncTestZoneSpec,this._ngZone?this.isRunningWithinTestZone?this.runOutside=(t,i)=>i==="resize-observer"?this._ngZone.runOutsideAngular(t):t():this.runOutside=t=>this._ngZone.runOutsideAngular(t):this.runOutside=t=>t()}get shouldWrapOutgoing(){return this._ngZone&&$e.isInAngularZone()}isFrameworkComponent(e){if(!e)return!1;let t=e.prototype;return t&&"agInit"in t}runInsideAngular(e){return this._ngZone?this._ngZone.run(e):e()}runOutsideAngular(e,t){return this.runOutside(e,t)}}return o.\u0275fac=function(e){return new(e||o)(nt($e))},o.\u0275prov=qe({token:o,factory:o.\u0275fac}),o})(),pI=(()=>{class o extends sI{setViewContainerRef(e,t){this.viewContainerRef=e,this.angularFrameworkOverrides=t}createWrapper(e,t){let i=this.angularFrameworkOverrides,r=this;class s extends $0{init(c){i.runInsideAngular(()=>{super.init(c),this._componentRef.changeDetectorRef.detectChanges()})}createComponent(){return i.runInsideAngular(()=>r.createComponent(e))}hasMethod(c){return a.getFrameworkComponentInstance()[c]!=null}callMethod(c,u){let d=this.getFrameworkComponentInstance();return i.runInsideAngular(()=>a.getFrameworkComponentInstance()[c].apply(d,u))}addMethod(c,u){a[c]=u}}let a=new s;return a}createComponent(e){return this.viewContainerRef.createComponent(e)}}return o.\u0275fac=(()=>{let n;return function(t){return(n||(n=Ut(o)))(t||o)}})(),o.\u0275prov=qe({token:o,factory:o.\u0275fac}),o})(),$0=class{init(n){this._params=n,this._componentRef=this.createComponent(),this._agAwareComponent=this._componentRef.instance,this._frameworkComponentInstance=this._componentRef.instance,this._eGui=this._componentRef.location.nativeElement,this._agAwareComponent.agInit(this._params)}getGui(){return this._eGui}getRootElement(){return this._eGui.firstChild}destroy(){this._frameworkComponentInstance&&typeof this._frameworkComponentInstance.destroy=="function"&&this._frameworkComponentInstance.destroy(),this._componentRef&&this._componentRef.destroy()}getFrameworkComponentInstance(){return this._frameworkComponentInstance}},Lre=(()=>{class o{constructor(e,t,i,r){this.viewContainerRef=t,this.angularFrameworkOverrides=i,this.frameworkComponentWrapper=r,this._initialised=!1,this._destroyed=!1,this._fullyReady=Ni.resolve(!0),this.statusBar=void 0,this.sideBar=void 0,this.suppressContextMenu=void 0,this.preventDefaultOnContextMenu=void 0,this.allowContextMenuWithControlKey=void 0,this.columnMenu=void 0,this.suppressMenuHide=void 0,this.enableBrowserTooltips=void 0,this.tooltipTrigger=void 0,this.tooltipShowDelay=void 0,this.tooltipHideDelay=void 0,this.tooltipMouseTrack=void 0,this.tooltipInteraction=void 0,this.popupParent=void 0,this.copyHeadersToClipboard=void 0,this.copyGroupHeadersToClipboard=void 0,this.clipboardDelimiter=void 0,this.suppressCopyRowsToClipboard=void 0,this.suppressCopySingleCellRanges=void 0,this.suppressLastEmptyLineOnPaste=void 0,this.suppressClipboardPaste=void 0,this.suppressClipboardApi=void 0,this.suppressCutToClipboard=void 0,this.columnDefs=void 0,this.defaultColDef=void 0,this.defaultColGroupDef=void 0,this.columnTypes=void 0,this.dataTypeDefinitions=void 0,this.maintainColumnOrder=void 0,this.suppressFieldDotNotation=void 0,this.headerHeight=void 0,this.groupHeaderHeight=void 0,this.floatingFiltersHeight=void 0,this.pivotHeaderHeight=void 0,this.pivotGroupHeaderHeight=void 0,this.allowDragFromColumnsToolPanel=void 0,this.suppressMovableColumns=void 0,this.suppressColumnMoveAnimation=void 0,this.suppressDragLeaveHidesColumns=void 0,this.suppressRowGroupHidesColumns=void 0,this.colResizeDefault=void 0,this.suppressAutoSize=void 0,this.autoSizePadding=void 0,this.skipHeaderOnAutoSize=void 0,this.autoSizeStrategy=void 0,this.components=void 0,this.editType=void 0,this.singleClickEdit=void 0,this.suppressClickEdit=void 0,this.readOnlyEdit=void 0,this.stopEditingWhenCellsLoseFocus=void 0,this.enterMovesDown=void 0,this.enterMovesDownAfterEdit=void 0,this.enterNavigatesVertically=void 0,this.enterNavigatesVerticallyAfterEdit=void 0,this.enableCellEditingOnBackspace=void 0,this.undoRedoCellEditing=void 0,this.undoRedoCellEditingLimit=void 0,this.defaultCsvExportParams=void 0,this.suppressCsvExport=void 0,this.defaultExcelExportParams=void 0,this.suppressExcelExport=void 0,this.excelStyles=void 0,this.quickFilterText=void 0,this.cacheQuickFilter=void 0,this.excludeHiddenColumnsFromQuickFilter=void 0,this.includeHiddenColumnsInQuickFilter=void 0,this.quickFilterParser=void 0,this.quickFilterMatcher=void 0,this.excludeChildrenWhenTreeDataFiltering=void 0,this.enableAdvancedFilter=void 0,this.advancedFilterModel=void 0,this.includeHiddenColumnsInAdvancedFilter=void 0,this.advancedFilterParent=void 0,this.advancedFilterBuilderParams=void 0,this.enableCharts=void 0,this.chartThemes=void 0,this.customChartThemes=void 0,this.chartThemeOverrides=void 0,this.enableChartToolPanelsButton=void 0,this.suppressChartToolPanelsButton=void 0,this.chartToolPanelsDef=void 0,this.loadingCellRenderer=void 0,this.loadingCellRendererParams=void 0,this.loadingCellRendererSelector=void 0,this.localeText=void 0,this.masterDetail=void 0,this.keepDetailRows=void 0,this.keepDetailRowsCount=void 0,this.detailCellRenderer=void 0,this.detailCellRendererParams=void 0,this.detailRowHeight=void 0,this.detailRowAutoHeight=void 0,this.context=void 0,this.alignedGrids=void 0,this.tabIndex=void 0,this.rowBuffer=void 0,this.valueCache=void 0,this.valueCacheNeverExpires=void 0,this.enableCellExpressions=void 0,this.suppressParentsInRowNodes=void 0,this.suppressTouch=void 0,this.suppressFocusAfterRefresh=void 0,this.suppressAsyncEvents=void 0,this.suppressBrowserResizeObserver=void 0,this.suppressPropertyNamesCheck=void 0,this.suppressChangeDetection=void 0,this.debug=void 0,this.overlayLoadingTemplate=void 0,this.loadingOverlayComponent=void 0,this.loadingOverlayComponentParams=void 0,this.suppressLoadingOverlay=void 0,this.overlayNoRowsTemplate=void 0,this.noRowsOverlayComponent=void 0,this.noRowsOverlayComponentParams=void 0,this.suppressNoRowsOverlay=void 0,this.pagination=void 0,this.paginationPageSize=void 0,this.paginationPageSizeSelector=void 0,this.paginationAutoPageSize=void 0,this.paginateChildRows=void 0,this.suppressPaginationPanel=void 0,this.pivotMode=void 0,this.pivotPanelShow=void 0,this.pivotDefaultExpanded=void 0,this.pivotColumnGroupTotals=void 0,this.pivotRowTotals=void 0,this.pivotSuppressAutoColumn=void 0,this.suppressExpandablePivotGroups=void 0,this.functionsReadOnly=void 0,this.aggFuncs=void 0,this.suppressAggFuncInHeader=void 0,this.alwaysAggregateAtRootLevel=void 0,this.suppressAggAtRootLevel=void 0,this.aggregateOnlyChangedColumns=void 0,this.suppressAggFilteredOnly=void 0,this.removePivotHeaderRowWhenSingleValueColumn=void 0,this.animateRows=void 0,this.enableCellChangeFlash=void 0,this.cellFlashDuration=void 0,this.cellFlashDelay=void 0,this.cellFadeDuration=void 0,this.cellFadeDelay=void 0,this.allowShowChangeAfterFilter=void 0,this.domLayout=void 0,this.ensureDomOrder=void 0,this.enableRtl=void 0,this.suppressColumnVirtualisation=void 0,this.suppressMaxRenderedRowRestriction=void 0,this.suppressRowVirtualisation=void 0,this.rowDragManaged=void 0,this.suppressRowDrag=void 0,this.suppressMoveWhenRowDragging=void 0,this.rowDragEntireRow=void 0,this.rowDragMultiRow=void 0,this.rowDragText=void 0,this.fullWidthCellRenderer=void 0,this.fullWidthCellRendererParams=void 0,this.embedFullWidthRows=void 0,this.suppressGroupMaintainValueType=void 0,this.groupDisplayType=void 0,this.groupDefaultExpanded=void 0,this.autoGroupColumnDef=void 0,this.groupMaintainOrder=void 0,this.groupSelectsChildren=void 0,this.groupLockGroupColumns=void 0,this.groupAggFiltering=void 0,this.groupIncludeFooter=void 0,this.groupIncludeTotalFooter=void 0,this.groupSuppressBlankHeader=void 0,this.groupSelectsFiltered=void 0,this.showOpenedGroup=void 0,this.groupRemoveSingleChildren=void 0,this.groupRemoveLowestSingleChildren=void 0,this.groupHideOpenParents=void 0,this.groupAllowUnbalanced=void 0,this.rowGroupPanelShow=void 0,this.groupRowRenderer=void 0,this.groupRowRendererParams=void 0,this.suppressMakeColumnVisibleAfterUnGroup=void 0,this.treeData=void 0,this.rowGroupPanelSuppressSort=void 0,this.suppressGroupRowsSticky=void 0,this.pinnedTopRowData=void 0,this.pinnedBottomRowData=void 0,this.rowModelType=void 0,this.rowData=void 0,this.asyncTransactionWaitMillis=void 0,this.suppressModelUpdateAfterUpdateTransaction=void 0,this.datasource=void 0,this.cacheOverflowSize=void 0,this.infiniteInitialRowCount=void 0,this.serverSideInitialRowCount=void 0,this.suppressServerSideInfiniteScroll=void 0,this.cacheBlockSize=void 0,this.maxBlocksInCache=void 0,this.maxConcurrentDatasourceRequests=void 0,this.blockLoadDebounceMillis=void 0,this.purgeClosedRowNodes=void 0,this.serverSideDatasource=void 0,this.serverSideSortAllLevels=void 0,this.serverSideEnableClientSideSort=void 0,this.serverSideOnlyRefreshFilteredGroups=void 0,this.serverSideFilterAllLevels=void 0,this.serverSideSortOnServer=void 0,this.serverSideFilterOnServer=void 0,this.serverSidePivotResultFieldSeparator=void 0,this.viewportDatasource=void 0,this.viewportRowModelPageSize=void 0,this.viewportRowModelBufferSize=void 0,this.alwaysShowHorizontalScroll=void 0,this.alwaysShowVerticalScroll=void 0,this.debounceVerticalScrollbar=void 0,this.suppressHorizontalScroll=void 0,this.suppressScrollOnNewData=void 0,this.suppressScrollWhenPopupsAreOpen=void 0,this.suppressAnimationFrame=void 0,this.suppressMiddleClickScrolls=void 0,this.suppressPreventDefaultOnMouseWheel=void 0,this.scrollbarWidth=void 0,this.rowSelection=void 0,this.rowMultiSelectWithClick=void 0,this.suppressRowDeselection=void 0,this.suppressRowClickSelection=void 0,this.suppressCellFocus=void 0,this.suppressHeaderFocus=void 0,this.suppressMultiRangeSelection=void 0,this.enableCellTextSelection=void 0,this.enableRangeSelection=void 0,this.enableRangeHandle=void 0,this.enableFillHandle=void 0,this.fillHandleDirection=void 0,this.suppressClearOnFillReduction=void 0,this.sortingOrder=void 0,this.accentedSort=void 0,this.unSortIcon=void 0,this.suppressMultiSort=void 0,this.alwaysMultiSort=void 0,this.multiSortKey=void 0,this.suppressMaintainUnsortedOrder=void 0,this.icons=void 0,this.rowHeight=void 0,this.rowStyle=void 0,this.rowClass=void 0,this.rowClassRules=void 0,this.suppressRowHoverHighlight=void 0,this.suppressRowTransform=void 0,this.columnHoverHighlight=void 0,this.gridId=void 0,this.deltaSort=void 0,this.treeDataDisplayType=void 0,this.functionsPassive=void 0,this.enableGroupEdit=void 0,this.initialState=void 0,this.getContextMenuItems=void 0,this.getMainMenuItems=void 0,this.postProcessPopup=void 0,this.processUnpinnedColumns=void 0,this.processCellForClipboard=void 0,this.processHeaderForClipboard=void 0,this.processGroupHeaderForClipboard=void 0,this.processCellFromClipboard=void 0,this.sendToClipboard=void 0,this.processDataFromClipboard=void 0,this.isExternalFilterPresent=void 0,this.doesExternalFilterPass=void 0,this.getChartToolbarItems=void 0,this.createChartContainer=void 0,this.navigateToNextHeader=void 0,this.tabToNextHeader=void 0,this.navigateToNextCell=void 0,this.tabToNextCell=void 0,this.getLocaleText=void 0,this.getDocument=void 0,this.paginationNumberFormatter=void 0,this.getGroupRowAgg=void 0,this.isGroupOpenByDefault=void 0,this.initialGroupOrderComparator=void 0,this.processPivotResultColDef=void 0,this.processPivotResultColGroupDef=void 0,this.getDataPath=void 0,this.getChildCount=void 0,this.getServerSideGroupLevelParams=void 0,this.isServerSideGroupOpenByDefault=void 0,this.isApplyServerSideTransaction=void 0,this.isServerSideGroup=void 0,this.getServerSideGroupKey=void 0,this.getBusinessKeyForNode=void 0,this.getRowId=void 0,this.resetRowDataOnUpdate=void 0,this.processRowPostCreate=void 0,this.isRowSelectable=void 0,this.isRowMaster=void 0,this.fillOperation=void 0,this.postSortRows=void 0,this.getRowStyle=void 0,this.getRowClass=void 0,this.getRowHeight=void 0,this.isFullWidthRow=void 0,this.toolPanelVisibleChanged=new O,this.toolPanelSizeChanged=new O,this.columnMenuVisibleChanged=new O,this.cutStart=new O,this.cutEnd=new O,this.pasteStart=new O,this.pasteEnd=new O,this.columnVisible=new O,this.columnPinned=new O,this.columnResized=new O,this.columnMoved=new O,this.columnValueChanged=new O,this.columnPivotModeChanged=new O,this.columnPivotChanged=new O,this.columnGroupOpened=new O,this.newColumnsLoaded=new O,this.gridColumnsChanged=new O,this.displayedColumnsChanged=new O,this.virtualColumnsChanged=new O,this.columnEverythingChanged=new O,this.columnHeaderMouseOver=new O,this.columnHeaderMouseLeave=new O,this.columnHeaderClicked=new O,this.columnHeaderContextMenu=new O,this.componentStateChanged=new O,this.cellValueChanged=new O,this.cellEditRequest=new O,this.rowValueChanged=new O,this.cellEditingStarted=new O,this.cellEditingStopped=new O,this.rowEditingStarted=new O,this.rowEditingStopped=new O,this.undoStarted=new O,this.undoEnded=new O,this.redoStarted=new O,this.redoEnded=new O,this.rangeDeleteStart=new O,this.rangeDeleteEnd=new O,this.filterOpened=new O,this.filterChanged=new O,this.filterModified=new O,this.advancedFilterBuilderVisibleChanged=new O,this.chartCreated=new O,this.chartRangeSelectionChanged=new O,this.chartOptionsChanged=new O,this.chartDestroyed=new O,this.cellKeyDown=new O,this.gridReady=new O,this.gridPreDestroyed=new O,this.firstDataRendered=new O,this.gridSizeChanged=new O,this.modelUpdated=new O,this.virtualRowRemoved=new O,this.viewportChanged=new O,this.bodyScroll=new O,this.bodyScrollEnd=new O,this.dragStarted=new O,this.dragStopped=new O,this.stateUpdated=new O,this.paginationChanged=new O,this.rowDragEnter=new O,this.rowDragMove=new O,this.rowDragLeave=new O,this.rowDragEnd=new O,this.columnRowGroupChanged=new O,this.rowGroupOpened=new O,this.expandOrCollapseAll=new O,this.pinnedRowDataChanged=new O,this.rowDataUpdated=new O,this.asyncTransactionsFlushed=new O,this.storeRefreshed=new O,this.cellClicked=new O,this.cellDoubleClicked=new O,this.cellFocused=new O,this.cellMouseOver=new O,this.cellMouseOut=new O,this.cellMouseDown=new O,this.rowClicked=new O,this.rowDoubleClicked=new O,this.rowSelected=new O,this.selectionChanged=new O,this.cellContextMenu=new O,this.rangeSelectionChanged=new O,this.tooltipShow=new O,this.tooltipHide=new O,this.sortChanged=new O,this.columnRowGroupChangeRequest=new O,this.columnPivotChangeRequest=new O,this.columnValueChangeRequest=new O,this.columnAggFuncChangeRequest=new O,this._nativeElement=e.nativeElement}ngAfterViewInit(){this.angularFrameworkOverrides.runOutsideAngular(()=>{this.frameworkComponentWrapper.setViewContainerRef(this.viewContainerRef,this.angularFrameworkOverrides);let e=Yd.combineAttributesAndGridOptions(this.gridOptions,this);this.gridParams={globalEventListener:this.globalEventListener.bind(this),frameworkOverrides:this.angularFrameworkOverrides,providedBeanInstances:{frameworkComponentWrapper:this.frameworkComponentWrapper},modules:this.modules||[]};let t=rI(this._nativeElement,e,this.gridParams);t&&(this.api=t,this.columnApi=new ep(t));let i=this.gridPreDestroyed;(i.observed??i.observers.length>0)&&console.warn('AG Grid: gridPreDestroyed event listener registered via (gridPreDestroyed)="method($event)" will be ignored! Please assign via gridOptions.gridPreDestroyed and pass to the grid as [gridOptions]="gridOptions"'),this._initialised=!0,this._fullyReady.resolveNow(null,r=>r)})}ngOnChanges(e){this._initialised&&this.angularFrameworkOverrides.runOutsideAngular(()=>{let t={};Object.entries(e).forEach(([i,r])=>{t[i]=r.currentValue}),Yd.processOnChange(t,this.api)})}ngOnDestroy(){this._initialised&&(this._destroyed=!0,this.api?.destroy())}isEmitterUsed(e){let i=this[e],r=i?.observed??i?.observers?.length>0,s=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`,a=!!this.gridOptions&&!!this.gridOptions[s];return r||a}globalEventListener(e,t){if(this._destroyed)return;let i=this[e];if(i&&this.isEmitterUsed(e)){let r=()=>this.angularFrameworkOverrides.runInsideAngular(()=>i.emit(t));e==="gridReady"?this._fullyReady.then(()=>r()):r()}}}return o.\u0275fac=function(e){return new(e||o)(w(de),w(Tn),w(dI),w(pI))},o.\u0275cmp=j({type:o,selectors:[["ag-grid-angular"]],inputs:{gridOptions:"gridOptions",modules:"modules",statusBar:"statusBar",sideBar:"sideBar",suppressContextMenu:"suppressContextMenu",preventDefaultOnContextMenu:"preventDefaultOnContextMenu",allowContextMenuWithControlKey:"allowContextMenuWithControlKey",columnMenu:"columnMenu",suppressMenuHide:"suppressMenuHide",enableBrowserTooltips:"enableBrowserTooltips",tooltipTrigger:"tooltipTrigger",tooltipShowDelay:"tooltipShowDelay",tooltipHideDelay:"tooltipHideDelay",tooltipMouseTrack:"tooltipMouseTrack",tooltipInteraction:"tooltipInteraction",popupParent:"popupParent",copyHeadersToClipboard:"copyHeadersToClipboard",copyGroupHeadersToClipboard:"copyGroupHeadersToClipboard",clipboardDelimiter:"clipboardDelimiter",suppressCopyRowsToClipboard:"suppressCopyRowsToClipboard",suppressCopySingleCellRanges:"suppressCopySingleCellRanges",suppressLastEmptyLineOnPaste:"suppressLastEmptyLineOnPaste",suppressClipboardPaste:"suppressClipboardPaste",suppressClipboardApi:"suppressClipboardApi",suppressCutToClipboard:"suppressCutToClipboard",columnDefs:"columnDefs",defaultColDef:"defaultColDef",defaultColGroupDef:"defaultColGroupDef",columnTypes:"columnTypes",dataTypeDefinitions:"dataTypeDefinitions",maintainColumnOrder:"maintainColumnOrder",suppressFieldDotNotation:"suppressFieldDotNotation",headerHeight:"headerHeight",groupHeaderHeight:"groupHeaderHeight",floatingFiltersHeight:"floatingFiltersHeight",pivotHeaderHeight:"pivotHeaderHeight",pivotGroupHeaderHeight:"pivotGroupHeaderHeight",allowDragFromColumnsToolPanel:"allowDragFromColumnsToolPanel",suppressMovableColumns:"suppressMovableColumns",suppressColumnMoveAnimation:"suppressColumnMoveAnimation",suppressDragLeaveHidesColumns:"suppressDragLeaveHidesColumns",suppressRowGroupHidesColumns:"suppressRowGroupHidesColumns",colResizeDefault:"colResizeDefault",suppressAutoSize:"suppressAutoSize",autoSizePadding:"autoSizePadding",skipHeaderOnAutoSize:"skipHeaderOnAutoSize",autoSizeStrategy:"autoSizeStrategy",components:"components",editType:"editType",singleClickEdit:"singleClickEdit",suppressClickEdit:"suppressClickEdit",readOnlyEdit:"readOnlyEdit",stopEditingWhenCellsLoseFocus:"stopEditingWhenCellsLoseFocus",enterMovesDown:"enterMovesDown",enterMovesDownAfterEdit:"enterMovesDownAfterEdit",enterNavigatesVertically:"enterNavigatesVertically",enterNavigatesVerticallyAfterEdit:"enterNavigatesVerticallyAfterEdit",enableCellEditingOnBackspace:"enableCellEditingOnBackspace",undoRedoCellEditing:"undoRedoCellEditing",undoRedoCellEditingLimit:"undoRedoCellEditingLimit",defaultCsvExportParams:"defaultCsvExportParams",suppressCsvExport:"suppressCsvExport",defaultExcelExportParams:"defaultExcelExportParams",suppressExcelExport:"suppressExcelExport",excelStyles:"excelStyles",quickFilterText:"quickFilterText",cacheQuickFilter:"cacheQuickFilter",excludeHiddenColumnsFromQuickFilter:"excludeHiddenColumnsFromQuickFilter",includeHiddenColumnsInQuickFilter:"includeHiddenColumnsInQuickFilter",quickFilterParser:"quickFilterParser",quickFilterMatcher:"quickFilterMatcher",excludeChildrenWhenTreeDataFiltering:"excludeChildrenWhenTreeDataFiltering",enableAdvancedFilter:"enableAdvancedFilter",advancedFilterModel:"advancedFilterModel",includeHiddenColumnsInAdvancedFilter:"includeHiddenColumnsInAdvancedFilter",advancedFilterParent:"advancedFilterParent",advancedFilterBuilderParams:"advancedFilterBuilderParams",enableCharts:"enableCharts",chartThemes:"chartThemes",customChartThemes:"customChartThemes",chartThemeOverrides:"chartThemeOverrides",enableChartToolPanelsButton:"enableChartToolPanelsButton",suppressChartToolPanelsButton:"suppressChartToolPanelsButton",chartToolPanelsDef:"chartToolPanelsDef",loadingCellRenderer:"loadingCellRenderer",loadingCellRendererParams:"loadingCellRendererParams",loadingCellRendererSelector:"loadingCellRendererSelector",localeText:"localeText",masterDetail:"masterDetail",keepDetailRows:"keepDetailRows",keepDetailRowsCount:"keepDetailRowsCount",detailCellRenderer:"detailCellRenderer",detailCellRendererParams:"detailCellRendererParams",detailRowHeight:"detailRowHeight",detailRowAutoHeight:"detailRowAutoHeight",context:"context",alignedGrids:"alignedGrids",tabIndex:"tabIndex",rowBuffer:"rowBuffer",valueCache:"valueCache",valueCacheNeverExpires:"valueCacheNeverExpires",enableCellExpressions:"enableCellExpressions",suppressParentsInRowNodes:"suppressParentsInRowNodes",suppressTouch:"suppressTouch",suppressFocusAfterRefresh:"suppressFocusAfterRefresh",suppressAsyncEvents:"suppressAsyncEvents",suppressBrowserResizeObserver:"suppressBrowserResizeObserver",suppressPropertyNamesCheck:"suppressPropertyNamesCheck",suppressChangeDetection:"suppressChangeDetection",debug:"debug",overlayLoadingTemplate:"overlayLoadingTemplate",loadingOverlayComponent:"loadingOverlayComponent",loadingOverlayComponentParams:"loadingOverlayComponentParams",suppressLoadingOverlay:"suppressLoadingOverlay",overlayNoRowsTemplate:"overlayNoRowsTemplate",noRowsOverlayComponent:"noRowsOverlayComponent",noRowsOverlayComponentParams:"noRowsOverlayComponentParams",suppressNoRowsOverlay:"suppressNoRowsOverlay",pagination:"pagination",paginationPageSize:"paginationPageSize",paginationPageSizeSelector:"paginationPageSizeSelector",paginationAutoPageSize:"paginationAutoPageSize",paginateChildRows:"paginateChildRows",suppressPaginationPanel:"suppressPaginationPanel",pivotMode:"pivotMode",pivotPanelShow:"pivotPanelShow",pivotDefaultExpanded:"pivotDefaultExpanded",pivotColumnGroupTotals:"pivotColumnGroupTotals",pivotRowTotals:"pivotRowTotals",pivotSuppressAutoColumn:"pivotSuppressAutoColumn",suppressExpandablePivotGroups:"suppressExpandablePivotGroups",functionsReadOnly:"functionsReadOnly",aggFuncs:"aggFuncs",suppressAggFuncInHeader:"suppressAggFuncInHeader",alwaysAggregateAtRootLevel:"alwaysAggregateAtRootLevel",suppressAggAtRootLevel:"suppressAggAtRootLevel",aggregateOnlyChangedColumns:"aggregateOnlyChangedColumns",suppressAggFilteredOnly:"suppressAggFilteredOnly",removePivotHeaderRowWhenSingleValueColumn:"removePivotHeaderRowWhenSingleValueColumn",animateRows:"animateRows",enableCellChangeFlash:"enableCellChangeFlash",cellFlashDuration:"cellFlashDuration",cellFlashDelay:"cellFlashDelay",cellFadeDuration:"cellFadeDuration",cellFadeDelay:"cellFadeDelay",allowShowChangeAfterFilter:"allowShowChangeAfterFilter",domLayout:"domLayout",ensureDomOrder:"ensureDomOrder",enableRtl:"enableRtl",suppressColumnVirtualisation:"suppressColumnVirtualisation",suppressMaxRenderedRowRestriction:"suppressMaxRenderedRowRestriction",suppressRowVirtualisation:"suppressRowVirtualisation",rowDragManaged:"rowDragManaged",suppressRowDrag:"suppressRowDrag",suppressMoveWhenRowDragging:"suppressMoveWhenRowDragging",rowDragEntireRow:"rowDragEntireRow",rowDragMultiRow:"rowDragMultiRow",rowDragText:"rowDragText",fullWidthCellRenderer:"fullWidthCellRenderer",fullWidthCellRendererParams:"fullWidthCellRendererParams",embedFullWidthRows:"embedFullWidthRows",suppressGroupMaintainValueType:"suppressGroupMaintainValueType",groupDisplayType:"groupDisplayType",groupDefaultExpanded:"groupDefaultExpanded",autoGroupColumnDef:"autoGroupColumnDef",groupMaintainOrder:"groupMaintainOrder",groupSelectsChildren:"groupSelectsChildren",groupLockGroupColumns:"groupLockGroupColumns",groupAggFiltering:"groupAggFiltering",groupIncludeFooter:"groupIncludeFooter",groupIncludeTotalFooter:"groupIncludeTotalFooter",groupSuppressBlankHeader:"groupSuppressBlankHeader",groupSelectsFiltered:"groupSelectsFiltered",showOpenedGroup:"showOpenedGroup",groupRemoveSingleChildren:"groupRemoveSingleChildren",groupRemoveLowestSingleChildren:"groupRemoveLowestSingleChildren",groupHideOpenParents:"groupHideOpenParents",groupAllowUnbalanced:"groupAllowUnbalanced",rowGroupPanelShow:"rowGroupPanelShow",groupRowRenderer:"groupRowRenderer",groupRowRendererParams:"groupRowRendererParams",suppressMakeColumnVisibleAfterUnGroup:"suppressMakeColumnVisibleAfterUnGroup",treeData:"treeData",rowGroupPanelSuppressSort:"rowGroupPanelSuppressSort",suppressGroupRowsSticky:"suppressGroupRowsSticky",pinnedTopRowData:"pinnedTopRowData",pinnedBottomRowData:"pinnedBottomRowData",rowModelType:"rowModelType",rowData:"rowData",asyncTransactionWaitMillis:"asyncTransactionWaitMillis",suppressModelUpdateAfterUpdateTransaction:"suppressModelUpdateAfterUpdateTransaction",datasource:"datasource",cacheOverflowSize:"cacheOverflowSize",infiniteInitialRowCount:"infiniteInitialRowCount",serverSideInitialRowCount:"serverSideInitialRowCount",suppressServerSideInfiniteScroll:"suppressServerSideInfiniteScroll",cacheBlockSize:"cacheBlockSize",maxBlocksInCache:"maxBlocksInCache",maxConcurrentDatasourceRequests:"maxConcurrentDatasourceRequests",blockLoadDebounceMillis:"blockLoadDebounceMillis",purgeClosedRowNodes:"purgeClosedRowNodes",serverSideDatasource:"serverSideDatasource",serverSideSortAllLevels:"serverSideSortAllLevels",serverSideEnableClientSideSort:"serverSideEnableClientSideSort",serverSideOnlyRefreshFilteredGroups:"serverSideOnlyRefreshFilteredGroups",serverSideFilterAllLevels:"serverSideFilterAllLevels",serverSideSortOnServer:"serverSideSortOnServer",serverSideFilterOnServer:"serverSideFilterOnServer",serverSidePivotResultFieldSeparator:"serverSidePivotResultFieldSeparator",viewportDatasource:"viewportDatasource",viewportRowModelPageSize:"viewportRowModelPageSize",viewportRowModelBufferSize:"viewportRowModelBufferSize",alwaysShowHorizontalScroll:"alwaysShowHorizontalScroll",alwaysShowVerticalScroll:"alwaysShowVerticalScroll",debounceVerticalScrollbar:"debounceVerticalScrollbar",suppressHorizontalScroll:"suppressHorizontalScroll",suppressScrollOnNewData:"suppressScrollOnNewData",suppressScrollWhenPopupsAreOpen:"suppressScrollWhenPopupsAreOpen",suppressAnimationFrame:"suppressAnimationFrame",suppressMiddleClickScrolls:"suppressMiddleClickScrolls",suppressPreventDefaultOnMouseWheel:"suppressPreventDefaultOnMouseWheel",scrollbarWidth:"scrollbarWidth",rowSelection:"rowSelection",rowMultiSelectWithClick:"rowMultiSelectWithClick",suppressRowDeselection:"suppressRowDeselection",suppressRowClickSelection:"suppressRowClickSelection",suppressCellFocus:"suppressCellFocus",suppressHeaderFocus:"suppressHeaderFocus",suppressMultiRangeSelection:"suppressMultiRangeSelection",enableCellTextSelection:"enableCellTextSelection",enableRangeSelection:"enableRangeSelection",enableRangeHandle:"enableRangeHandle",enableFillHandle:"enableFillHandle",fillHandleDirection:"fillHandleDirection",suppressClearOnFillReduction:"suppressClearOnFillReduction",sortingOrder:"sortingOrder",accentedSort:"accentedSort",unSortIcon:"unSortIcon",suppressMultiSort:"suppressMultiSort",alwaysMultiSort:"alwaysMultiSort",multiSortKey:"multiSortKey",suppressMaintainUnsortedOrder:"suppressMaintainUnsortedOrder",icons:"icons",rowHeight:"rowHeight",rowStyle:"rowStyle",rowClass:"rowClass",rowClassRules:"rowClassRules",suppressRowHoverHighlight:"suppressRowHoverHighlight",suppressRowTransform:"suppressRowTransform",columnHoverHighlight:"columnHoverHighlight",gridId:"gridId",deltaSort:"deltaSort",treeDataDisplayType:"treeDataDisplayType",functionsPassive:"functionsPassive",enableGroupEdit:"enableGroupEdit",initialState:"initialState",getContextMenuItems:"getContextMenuItems",getMainMenuItems:"getMainMenuItems",postProcessPopup:"postProcessPopup",processUnpinnedColumns:"processUnpinnedColumns",processCellForClipboard:"processCellForClipboard",processHeaderForClipboard:"processHeaderForClipboard",processGroupHeaderForClipboard:"processGroupHeaderForClipboard",processCellFromClipboard:"processCellFromClipboard",sendToClipboard:"sendToClipboard",processDataFromClipboard:"processDataFromClipboard",isExternalFilterPresent:"isExternalFilterPresent",doesExternalFilterPass:"doesExternalFilterPass",getChartToolbarItems:"getChartToolbarItems",createChartContainer:"createChartContainer",navigateToNextHeader:"navigateToNextHeader",tabToNextHeader:"tabToNextHeader",navigateToNextCell:"navigateToNextCell",tabToNextCell:"tabToNextCell",getLocaleText:"getLocaleText",getDocument:"getDocument",paginationNumberFormatter:"paginationNumberFormatter",getGroupRowAgg:"getGroupRowAgg",isGroupOpenByDefault:"isGroupOpenByDefault",initialGroupOrderComparator:"initialGroupOrderComparator",processPivotResultColDef:"processPivotResultColDef",processPivotResultColGroupDef:"processPivotResultColGroupDef",getDataPath:"getDataPath",getChildCount:"getChildCount",getServerSideGroupLevelParams:"getServerSideGroupLevelParams",isServerSideGroupOpenByDefault:"isServerSideGroupOpenByDefault",isApplyServerSideTransaction:"isApplyServerSideTransaction",isServerSideGroup:"isServerSideGroup",getServerSideGroupKey:"getServerSideGroupKey",getBusinessKeyForNode:"getBusinessKeyForNode",getRowId:"getRowId",resetRowDataOnUpdate:"resetRowDataOnUpdate",processRowPostCreate:"processRowPostCreate",isRowSelectable:"isRowSelectable",isRowMaster:"isRowMaster",fillOperation:"fillOperation",postSortRows:"postSortRows",getRowStyle:"getRowStyle",getRowClass:"getRowClass",getRowHeight:"getRowHeight",isFullWidthRow:"isFullWidthRow"},outputs:{toolPanelVisibleChanged:"toolPanelVisibleChanged",toolPanelSizeChanged:"toolPanelSizeChanged",columnMenuVisibleChanged:"columnMenuVisibleChanged",cutStart:"cutStart",cutEnd:"cutEnd",pasteStart:"pasteStart",pasteEnd:"pasteEnd",columnVisible:"columnVisible",columnPinned:"columnPinned",columnResized:"columnResized",columnMoved:"columnMoved",columnValueChanged:"columnValueChanged",columnPivotModeChanged:"columnPivotModeChanged",columnPivotChanged:"columnPivotChanged",columnGroupOpened:"columnGroupOpened",newColumnsLoaded:"newColumnsLoaded",gridColumnsChanged:"gridColumnsChanged",displayedColumnsChanged:"displayedColumnsChanged",virtualColumnsChanged:"virtualColumnsChanged",columnEverythingChanged:"columnEverythingChanged",columnHeaderMouseOver:"columnHeaderMouseOver",columnHeaderMouseLeave:"columnHeaderMouseLeave",columnHeaderClicked:"columnHeaderClicked",columnHeaderContextMenu:"columnHeaderContextMenu",componentStateChanged:"componentStateChanged",cellValueChanged:"cellValueChanged",cellEditRequest:"cellEditRequest",rowValueChanged:"rowValueChanged",cellEditingStarted:"cellEditingStarted",cellEditingStopped:"cellEditingStopped",rowEditingStarted:"rowEditingStarted",rowEditingStopped:"rowEditingStopped",undoStarted:"undoStarted",undoEnded:"undoEnded",redoStarted:"redoStarted",redoEnded:"redoEnded",rangeDeleteStart:"rangeDeleteStart",rangeDeleteEnd:"rangeDeleteEnd",filterOpened:"filterOpened",filterChanged:"filterChanged",filterModified:"filterModified",advancedFilterBuilderVisibleChanged:"advancedFilterBuilderVisibleChanged",chartCreated:"chartCreated",chartRangeSelectionChanged:"chartRangeSelectionChanged",chartOptionsChanged:"chartOptionsChanged",chartDestroyed:"chartDestroyed",cellKeyDown:"cellKeyDown",gridReady:"gridReady",gridPreDestroyed:"gridPreDestroyed",firstDataRendered:"firstDataRendered",gridSizeChanged:"gridSizeChanged",modelUpdated:"modelUpdated",virtualRowRemoved:"virtualRowRemoved",viewportChanged:"viewportChanged",bodyScroll:"bodyScroll",bodyScrollEnd:"bodyScrollEnd",dragStarted:"dragStarted",dragStopped:"dragStopped",stateUpdated:"stateUpdated",paginationChanged:"paginationChanged",rowDragEnter:"rowDragEnter",rowDragMove:"rowDragMove",rowDragLeave:"rowDragLeave",rowDragEnd:"rowDragEnd",columnRowGroupChanged:"columnRowGroupChanged",rowGroupOpened:"rowGroupOpened",expandOrCollapseAll:"expandOrCollapseAll",pinnedRowDataChanged:"pinnedRowDataChanged",rowDataUpdated:"rowDataUpdated",asyncTransactionsFlushed:"asyncTransactionsFlushed",storeRefreshed:"storeRefreshed",cellClicked:"cellClicked",cellDoubleClicked:"cellDoubleClicked",cellFocused:"cellFocused",cellMouseOver:"cellMouseOver",cellMouseOut:"cellMouseOut",cellMouseDown:"cellMouseDown",rowClicked:"rowClicked",rowDoubleClicked:"rowDoubleClicked",rowSelected:"rowSelected",selectionChanged:"selectionChanged",cellContextMenu:"cellContextMenu",rangeSelectionChanged:"rangeSelectionChanged",tooltipShow:"tooltipShow",tooltipHide:"tooltipHide",sortChanged:"sortChanged",columnRowGroupChangeRequest:"columnRowGroupChangeRequest",columnPivotChangeRequest:"columnPivotChangeRequest",columnValueChangeRequest:"columnValueChangeRequest",columnAggFuncChangeRequest:"columnAggFuncChangeRequest"},standalone:!0,features:[Ve([dI,pI]),oe,K],decls:0,vars:0,template:function(e,t){},encapsulation:2}),o})(),j0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=me({type:o}),o.\u0275inj=ge({imports:[Lre]}),o})();var kre=new hn("AUTO_ERROR_TIP_MAP"),Vre=new hn("AUTO_ERROR_TIP_KEY"),Gre="errorTip",Zwe=(()=>{let n=class n{constructor(t,i,r,s,a){this.nzFormControl=t,this.nzFormItemComponent=i,this.seControl=a,this.errorTipKey=r||Gre,this.errorTipMap=V({},s||{})}ngAfterContentInit(){(this.nzFormControl||this.seControl)&&this.ngControl&&this.ngControl.statusChanges.pipe(Qe(t=>t==="INVALID")).subscribe(()=>{let t=this.ngControl.errors||{};Object.entries(t).some(([i,r])=>{let s=r[this.errorTipKey];return s&&(this.nzFormControl&&(this.nzFormControl.innerTip=s,this.nzFormControl.nzErrorTip=s),this.seControl&&(this.seControl.error=s)),!!s}),this.nzFormControl&&this.nzFormItemComponent&&this.nzFormItemComponent.setWithHelpViaTips(!!this.nzFormControl.innerTip)})}};n.\u0275fac=function(i){return new(i||n)(w(_v,10),w(Na,9),w(Vre,8),w(kre,8),w(Qz,10))},n.\u0275dir=Se({type:n,selectors:[["","autoErrorTip",""]],contentQueries:function(i,r,s){if(i&1&&Ft(s,Ri,5),i&2){let a;ce(a=ue())&&(r.ngControl=a.first)}}});let o=n;return o})();var kg=[vf,Ch,Cf,_f,yf,vs];var Vg=[Fp,Hs,oc,Ef,lc,ac,$s,Hi,Vs,Gs,Sf,Tf,Ls,wf,$l,Lr,rc,nc,bf,Tp,Gl,ff,ji,Ge,$i,ah];var Hre=[];var qbe=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ge({imports:[j0,Zn,nn,Il,Cu,cm,su,vs,kg,Vg,Hre,j0,Zn,nn,Cu,Il,cm,su,vs,vf,Ch,Cf,_f,yf,vs,Fp,Hs,oc,Ef,lc,ac,$s,Hi,Vs,Gs,Sf,Tf,Ls,wf,$l,Lr,rc,nc,bf,Tp,Gl,ff,ji,Ge,$i,ah]});let o=n;return o})();var W0=(()=>{let n=class n extends Fz{ngOnInit(){console.warn("init test widget")}};n.KEY="test",n.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ut(n)))(r||n)}})(),n.\u0275cmp=j({type:n,selectors:[["test"]],standalone:!0,features:[Xe,K],decls:2,vars:6,consts:[[3,"id","schema","ui","showError","error","showTitle"]],template:function(i,r){i&1&&(C(0,"sf-item-wrap",0),Y(1," test widget "),S()),i&2&&h("id",r.id)("schema",r.schema)("ui",r.ui)("showError",r.showError)("error",r.error)("showTitle",r.schema.title)},dependencies:[vs,$r],encapsulation:2,changeDetection:0});let o=n;return o})();var Jbe=[{KEY:W0.KEY,type:W0}];var tTe=[];var iTe=[];var pTe=[nn,Cu,Po,Be,St,Zt,hw,Hl,...kg,...Vg];export{Mo as a,Pt as b,Soe as c,woe as d,Fp as e,Hoe as f,zn as g,Ii as h,Np as i,Kt as j,Zw as k,Ul as l,gu as m,Rt as n,ob as o,XP as p,yu as q,nM as r,vm as s,ase as t,nn as u,Cu as v,pb as w,_u as x,Up as y,Bi as z,$i as A,Si as B,ji as C,Sb as D,WM as E,xle as F,zle as G,Ole as H,Dle as I,Rle as J,Ile as K,Ple as L,dce as M,hv as N,co as O,cs as P,Ob as Q,ec as R,yr as S,Rb as T,us as U,Lr as V,Tu as W,nh as X,zu as Y,Ou as Z,Ls as _,Um as $,Ub as aa,qb as ba,ah as ca,tT as da,Qm as ea,uh as fa,Xm as ga,ev as ha,tv as ia,nv as ja,rT as ka,nc as la,Fa as ma,cT as na,iv as oa,Vs as pa,ic as qa,Gs as ra,ps as sa,Hs as ta,rc as ua,pv as va,oc as wa,I3 as xa,Ch as ya,ome as za,Aa,sc as Ba,$s as Ca,Na as Da,_h as Ea,_v as Fa,ac as Ga,wv as Ha,lc as Ia,of as Ja,n6 as Ka,vs as La,nCe as Ma,X6 as Na,e9 as Oa,ff as Pa,$z as Qa,o8 as Ra,vf as Sa,h0e as Ta,yf as Ua,Yz as Va,Qz as Wa,Cf as Xa,G8 as Ya,Zz as Za,q0e as _a,_f as $a,rK as ab,Sf as bb,dK as cb,wf as db,jSe as eb,bf as fb,WK as gb,Tf as hb,z7 as ib,Ef as jb,Lre as kb,Zwe as lb,qbe as mb,Jbe as nb,tTe as ob,iTe as pb};