110 lines
680 KiB
JavaScript
110 lines
680 KiB
JavaScript
import{$ as se,$a as De,$b as tc,A as Vi,Aa as jl,Ab as nt,Ac as Os,B as Fl,Ba as $l,Bb as Ge,Bc as Wi,C as an,Ca as Gl,Cb as Ie,Cc as Rs,D as Nr,Da as Wl,Db as We,E as Ii,Ea as Kl,Eb as G,F as ys,Fa as ql,Fb as W,G as kl,Ga as Hi,Gb as Te,H as Gt,Ha as xi,Hb as qt,I as Br,Ia as zi,Ib as xt,J as Wt,Ja as Yl,Jb as rt,K as ue,Ka as Zl,Kb as E,L as Pi,La as c,Lb as N,M as wt,Ma as Ui,Mb as ce,N as q,Na as Ql,Nb as Pe,O as ie,Oa as Ur,Ob as qr,P as Al,Pa as Wn,Pb as Yt,Q as pe,Qa as jr,Qb as Zt,R as re,Ra as ji,Rb as Qt,S as B,Sa as $r,Sb as Ue,T as Ni,Ta as Me,Tb as Qe,U as Ll,Ua as C,Ub as Q,V as Vt,Va as Gr,Vb as Se,W as It,Wa as Ti,Wb as ft,X as v,Xa as Xl,Xb as pi,Y as b,Ya as Wr,Yb as Si,Z as ee,Za as O,Zb as $i,_ as Kt,_a as ne,_b as ec,a as F,aa as ln,ab as Jl,ac as qn,b as be,ba as Vl,bb as Z,bc as Es,ca as S,cb as p,cc as Ms,d as Be,da as ke,db as xs,dc as Le,e as xl,ea as vs,eb as Kn,ec as ic,f as Tl,fa as Gn,fb as Ts,fc as nc,g as Lr,ga as ze,gb as Ss,gc as Xt,h as He,ha as Pl,hb as Kr,hc as rc,i as kt,ia as Nl,ib as Ds,ic as oc,j as At,ja as Hr,jb as g,jc as sc,k as _t,ka as dt,kb as l,kc as ge,l as fe,la as Xe,lb as f,lc as ac,m as Sl,ma as Y,mb as m,mc as lc,n as gs,na as bs,nb as x,nc as cc,o as Dl,oa as de,ob as U,oc as I,p as Ze,pa as Bl,pb as j,pc as X,q as _s,qa as Cs,qb as $,qc as dc,r as oi,ra as Hl,rb as A,s as $n,sa as $e,sb as L,t as El,ta as zl,tb as P,tc as Nt,u as Vr,ua as ws,ub as H,uc as ut,v as Ml,va as Is,vb as Ee,w as Ol,wa as zr,wb as Pt,wc as Je,x as Rl,xa as Bi,xb as it,xc as Yn,y as Lt,ya as cn,yb as M,yc as ot,z as Pr,za as Ul,zb as d,zc as Gi}from"./chunk-IMH4GOJN.js";var uc=null;function Bt(){return uc}function Fs(i){uc??=i}var Zn=class{},hi=(()=>{class i{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:()=>B(pc),providedIn:"platform"})}return i})(),ks=new pe(""),pc=(()=>{class i extends hi{_location;_history;_doc=B(se);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Bt().getBaseHref(this._doc)}onPopState(e){let t=Bt().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){let t=Bt().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,t,n){this._history.pushState(e,t,n)}replaceState(e,t,n){this._history.replaceState(e,t,n)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:()=>new i,providedIn:"platform"})}return i})();function Yr(i,r){return i?r?i.endsWith("/")?r.startsWith("/")?i+r.slice(1):i+r:r.startsWith("/")?i+r:`${i}/${r}`:i:r}function hc(i){let r=i.search(/#|\?|$/);return i[r-1]==="/"?i.slice(0,r-1)+i.slice(r):i}function Jt(i){return i&&i[0]!=="?"?`?${i}`:i}var ei=(()=>{class i{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:()=>B(Qr),providedIn:"root"})}return i})(),Zr=new pe(""),Qr=(()=>{class i extends ei{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,t){super(),this._platformLocation=e,this._baseHref=t??this._platformLocation.getBaseHrefFromDOM()??B(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Yr(this._baseHref,e)}path(e=!1){let t=this._platformLocation.pathname+Jt(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,o){let s=this.prepareExternalUrl(n+Jt(o));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,o){let s=this.prepareExternalUrl(n+Jt(o));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(t){return new(t||i)(re(hi),re(Zr,8))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Di=(()=>{class i{_subject=new He;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let t=this._locationStrategy.getBaseHref();this._basePath=fp(hc(mc(t))),this._locationStrategy.onPopState(n=>{this._subject.next({url:this.path(!0),pop:!0,state:n.state,type:n.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+Jt(t))}normalize(e){return i.stripTrailingSlash(mp(this._basePath,mc(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._locationStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Jt(t)),n)}replaceState(e,t="",n=null){this._locationStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Jt(t)),n)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}),()=>{let t=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(t,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t??void 0,complete:n??void 0})}static normalizeQueryParams=Jt;static joinWithSlash=Yr;static stripTrailingSlash=hc;static \u0275fac=function(t){return new(t||i)(re(ei))};static \u0275prov=q({token:i,factory:()=>hp(),providedIn:"root"})}return i})();function hp(){return new Di(re(ei))}function mp(i,r){if(!i||!r.startsWith(i))return r;let e=r.substring(i.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function mc(i){return i.replace(/\/index.html$/,"")}function fp(i){if(new RegExp("^(https?:)?//").test(i)){let[,e]=i.split(/\/\/[^\/]+/);return e}return i}var Ns=(()=>{class i extends ei{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,t){super(),this._platformLocation=e,t!=null&&(this._baseHref=t)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash??"#";return t.length>0?t.substring(1):t}prepareExternalUrl(e){let t=Yr(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,o){let s=this.prepareExternalUrl(n+Jt(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,o){let s=this.prepareExternalUrl(n+Jt(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(t){return new(t||i)(re(hi),re(Zr,8))};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})();var yt=(function(i){return i[i.Format=0]="Format",i[i.Standalone=1]="Standalone",i})(yt||{}),Ae=(function(i){return i[i.Narrow=0]="Narrow",i[i.Abbreviated=1]="Abbreviated",i[i.Wide=2]="Wide",i[i.Short=3]="Short",i})(Ae||{}),Tt=(function(i){return i[i.Short=0]="Short",i[i.Medium=1]="Medium",i[i.Long=2]="Long",i[i.Full=3]="Full",i})(Tt||{}),fi={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function vc(i){return Pt(i)[it.LocaleId]}function bc(i,r,e){let t=Pt(i),n=[t[it.DayPeriodsFormat],t[it.DayPeriodsStandalone]],o=Ht(n,r);return Ht(o,e)}function Cc(i,r,e){let t=Pt(i),n=[t[it.DaysFormat],t[it.DaysStandalone]],o=Ht(n,r);return Ht(o,e)}function wc(i,r,e){let t=Pt(i),n=[t[it.MonthsFormat],t[it.MonthsStandalone]],o=Ht(n,r);return Ht(o,e)}function Ic(i,r){let t=Pt(i)[it.Eras];return Ht(t,r)}function Qn(i,r){let e=Pt(i);return Ht(e[it.DateFormat],r)}function Xn(i,r){let e=Pt(i);return Ht(e[it.TimeFormat],r)}function Jn(i,r){let t=Pt(i)[it.DateTimeFormat];return Ht(t,r)}function er(i,r){let e=Pt(i),t=e[it.NumberSymbols][r];if(typeof t>"u"){if(r===fi.CurrencyDecimal)return e[it.NumberSymbols][fi.Decimal];if(r===fi.CurrencyGroup)return e[it.NumberSymbols][fi.Group]}return t}function xc(i){if(!i[it.ExtraData])throw new ue(2303,!1)}function Tc(i){let r=Pt(i);return xc(r),(r[it.ExtraData][2]||[]).map(t=>typeof t=="string"?As(t):[As(t[0]),As(t[1])])}function Sc(i,r,e){let t=Pt(i);xc(t);let n=[t[it.ExtraData][0],t[it.ExtraData][1]],o=Ht(n,r)||[];return Ht(o,e)||[]}function Ht(i,r){for(let e=r;e>-1;e--)if(typeof i[e]<"u")return i[e];throw new ue(2304,!1)}function As(i){let[r,e]=i.split(":");return{hours:+r,minutes:+e}}var gp=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Xr={},_p=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Dc(i,r,e,t){let n=Sp(i);r=mi(e,r)||r;let s=[],a;for(;r;)if(a=_p.exec(r),a){s=s.concat(a.slice(1));let y=s.pop();if(!y)break;r=y}else{s.push(r);break}let u=n.getTimezoneOffset();t&&(u=Mc(t,u),n=Tp(n,t));let h="";return s.forEach(y=>{let w=Ip(y);h+=w?w(n,e,u):y==="''"?"'":y.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}function no(i,r,e){let t=new Date(0);return t.setFullYear(i,r,e),t.setHours(0,0,0),t}function mi(i,r){let e=vc(i);if(Xr[e]??={},Xr[e][r])return Xr[e][r];let t="";switch(r){case"shortDate":t=Qn(i,Tt.Short);break;case"mediumDate":t=Qn(i,Tt.Medium);break;case"longDate":t=Qn(i,Tt.Long);break;case"fullDate":t=Qn(i,Tt.Full);break;case"shortTime":t=Xn(i,Tt.Short);break;case"mediumTime":t=Xn(i,Tt.Medium);break;case"longTime":t=Xn(i,Tt.Long);break;case"fullTime":t=Xn(i,Tt.Full);break;case"short":let n=mi(i,"shortTime"),o=mi(i,"shortDate");t=Jr(Jn(i,Tt.Short),[n,o]);break;case"medium":let s=mi(i,"mediumTime"),a=mi(i,"mediumDate");t=Jr(Jn(i,Tt.Medium),[s,a]);break;case"long":let u=mi(i,"longTime"),h=mi(i,"longDate");t=Jr(Jn(i,Tt.Long),[u,h]);break;case"full":let y=mi(i,"fullTime"),w=mi(i,"fullDate");t=Jr(Jn(i,Tt.Full),[y,w]);break}return t&&(Xr[e][r]=t),t}function Jr(i,r){return r&&(i=i.replace(/\{([^}]+)}/g,function(e,t){return r!=null&&t in r?r[t]:e})),i}function ti(i,r,e="-",t,n){let o="";(i<0||n&&i<=0)&&(n?i=-i+1:(i=-i,o=e));let s=String(i);for(;s.length<r;)s="0"+s;return t&&(s=s.slice(s.length-r)),o+s}function yp(i,r){return ti(i,3).substring(0,r)}function et(i,r,e=0,t=!1,n=!1){return function(o,s){let a=vp(i,o);if((e>0||a>-e)&&(a+=e),i===3)a===0&&e===-12&&(a=12);else if(i===6)return yp(a,r);let u=er(s,fi.MinusSign);return ti(a,r,u,t,n)}}function vp(i,r){switch(i){case 0:return r.getFullYear();case 1:return r.getMonth();case 2:return r.getDate();case 3:return r.getHours();case 4:return r.getMinutes();case 5:return r.getSeconds();case 6:return r.getMilliseconds();case 7:return r.getDay();default:throw new ue(2301,!1)}}function Ne(i,r,e=yt.Format,t=!1){return function(n,o){return bp(n,o,i,r,e,t)}}function bp(i,r,e,t,n,o){switch(e){case 2:return wc(r,n,t)[i.getMonth()];case 1:return Cc(r,n,t)[i.getDay()];case 0:let s=i.getHours(),a=i.getMinutes();if(o){let h=Tc(r),y=Sc(r,n,t),w=h.findIndex(T=>{if(Array.isArray(T)){let[D,k]=T,z=s>=D.hours&&a>=D.minutes,V=s<k.hours||s===k.hours&&a<k.minutes;if(D.hours<k.hours){if(z&&V)return!0}else if(z||V)return!0}else if(T.hours===s&&T.minutes===a)return!0;return!1});if(w!==-1)return y[w]}return bc(r,n,t)[s<12?0:1];case 3:return Ic(r,t)[i.getFullYear()<=0?0:1];default:let u=e;throw new ue(2302,!1)}}function eo(i){return function(r,e,t){let n=-1*t,o=er(e,fi.MinusSign),s=n>0?Math.floor(n/60):Math.ceil(n/60);switch(i){case 0:return(n>=0?"+":"")+ti(s,2,o)+ti(Math.abs(n%60),2,o);case 1:return"GMT"+(n>=0?"+":"")+ti(s,1,o);case 2:return"GMT"+(n>=0?"+":"")+ti(s,2,o)+":"+ti(Math.abs(n%60),2,o);case 3:return t===0?"Z":(n>=0?"+":"")+ti(s,2,o)+":"+ti(Math.abs(n%60),2,o);default:throw new ue(2310,!1)}}}var Cp=0,io=4;function wp(i){let r=no(i,Cp,1).getDay();return no(i,0,1+(r<=io?io:io+7)-r)}function Ec(i){let r=i.getDay(),e=r===0?-3:io-r;return no(i.getFullYear(),i.getMonth(),i.getDate()+e)}function Ls(i,r=!1){return function(e,t){let n;if(r){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();n=1+Math.floor((s+o)/7)}else{let o=Ec(e),s=wp(o.getFullYear()),a=o.getTime()-s.getTime();n=1+Math.round(a/6048e5)}return ti(n,i,er(t,fi.MinusSign))}}function to(i,r=!1){return function(e,t){let o=Ec(e).getFullYear();return ti(o,i,er(t,fi.MinusSign),r)}}var Vs={};function Ip(i){if(Vs[i])return Vs[i];let r;switch(i){case"G":case"GG":case"GGG":r=Ne(3,Ae.Abbreviated);break;case"GGGG":r=Ne(3,Ae.Wide);break;case"GGGGG":r=Ne(3,Ae.Narrow);break;case"y":r=et(0,1,0,!1,!0);break;case"yy":r=et(0,2,0,!0,!0);break;case"yyy":r=et(0,3,0,!1,!0);break;case"yyyy":r=et(0,4,0,!1,!0);break;case"Y":r=to(1);break;case"YY":r=to(2,!0);break;case"YYY":r=to(3);break;case"YYYY":r=to(4);break;case"M":case"L":r=et(1,1,1);break;case"MM":case"LL":r=et(1,2,1);break;case"MMM":r=Ne(2,Ae.Abbreviated);break;case"MMMM":r=Ne(2,Ae.Wide);break;case"MMMMM":r=Ne(2,Ae.Narrow);break;case"LLL":r=Ne(2,Ae.Abbreviated,yt.Standalone);break;case"LLLL":r=Ne(2,Ae.Wide,yt.Standalone);break;case"LLLLL":r=Ne(2,Ae.Narrow,yt.Standalone);break;case"w":r=Ls(1);break;case"ww":r=Ls(2);break;case"W":r=Ls(1,!0);break;case"d":r=et(2,1);break;case"dd":r=et(2,2);break;case"c":case"cc":r=et(7,1);break;case"ccc":r=Ne(1,Ae.Abbreviated,yt.Standalone);break;case"cccc":r=Ne(1,Ae.Wide,yt.Standalone);break;case"ccccc":r=Ne(1,Ae.Narrow,yt.Standalone);break;case"cccccc":r=Ne(1,Ae.Short,yt.Standalone);break;case"E":case"EE":case"EEE":r=Ne(1,Ae.Abbreviated);break;case"EEEE":r=Ne(1,Ae.Wide);break;case"EEEEE":r=Ne(1,Ae.Narrow);break;case"EEEEEE":r=Ne(1,Ae.Short);break;case"a":case"aa":case"aaa":r=Ne(0,Ae.Abbreviated);break;case"aaaa":r=Ne(0,Ae.Wide);break;case"aaaaa":r=Ne(0,Ae.Narrow);break;case"b":case"bb":case"bbb":r=Ne(0,Ae.Abbreviated,yt.Standalone,!0);break;case"bbbb":r=Ne(0,Ae.Wide,yt.Standalone,!0);break;case"bbbbb":r=Ne(0,Ae.Narrow,yt.Standalone,!0);break;case"B":case"BB":case"BBB":r=Ne(0,Ae.Abbreviated,yt.Format,!0);break;case"BBBB":r=Ne(0,Ae.Wide,yt.Format,!0);break;case"BBBBB":r=Ne(0,Ae.Narrow,yt.Format,!0);break;case"h":r=et(3,1,-12);break;case"hh":r=et(3,2,-12);break;case"H":r=et(3,1);break;case"HH":r=et(3,2);break;case"m":r=et(4,1);break;case"mm":r=et(4,2);break;case"s":r=et(5,1);break;case"ss":r=et(5,2);break;case"S":r=et(6,1);break;case"SS":r=et(6,2);break;case"SSS":r=et(6,3);break;case"Z":case"ZZ":case"ZZZ":r=eo(0);break;case"ZZZZZ":r=eo(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=eo(1);break;case"OOOO":case"ZZZZ":case"zzzz":r=eo(2);break;default:return null}return Vs[i]=r,r}function Mc(i,r){i=i.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(e)?r:e}function xp(i,r){return i=new Date(i.getTime()),i.setMinutes(i.getMinutes()+r),i}function Tp(i,r,e){let n=i.getTimezoneOffset(),o=Mc(r,n);return xp(i,-1*(o-n))}function Sp(i){if(fc(i))return i;if(typeof i=="number"&&!isNaN(i))return new Date(i);if(typeof i=="string"){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){let[n,o=1,s=1]=i.split("-").map(a=>+a);return no(n,o-1,s)}let e=parseFloat(i);if(!isNaN(i-e))return new Date(e);let t;if(t=i.match(gp))return Dp(t)}let r=new Date(i);if(!fc(r))throw new ue(2311,!1);return r}function Dp(i){let r=new Date(0),e=0,t=0,n=i[8]?r.setUTCFullYear:r.setFullYear,o=i[8]?r.setUTCHours:r.setHours;i[9]&&(e=Number(i[9]+i[10]),t=Number(i[9]+i[11])),n.call(r,Number(i[1]),Number(i[2])-1,Number(i[3]));let s=Number(i[4]||0)-e,a=Number(i[5]||0)-t,u=Number(i[6]||0),h=Math.floor(parseFloat("0."+(i[7]||0))*1e3);return o.call(r,s,a,u,h),r}function fc(i){return i instanceof Date&&!isNaN(i.valueOf())}var Ps=/\s+/,gc=[],ye=(()=>{class i{_ngEl;_renderer;initialClasses=gc;rawClass;stateMap=new Map;constructor(e,t){this._ngEl=e,this._renderer=t}set klass(e){this.initialClasses=e!=null?e.trim().split(Ps):gc}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Ps):e}ngDoCheck(){for(let t of this.initialClasses)this._updateState(t,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let t of e)this._updateState(t,!0);else if(e!=null)for(let t of Object.keys(e))this._updateState(t,!!e[t]);this._applyStateDiff()}_updateState(e,t){let n=this.stateMap.get(e);n!==void 0?(n.enabled!==t&&(n.changed=!0,n.enabled=t),n.touched=!0):this.stateMap.set(e,{enabled:t,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let t=e[0],n=e[1];n.changed?(this._toggleClass(t,n.enabled),n.changed=!1):n.touched||(n.enabled&&this._toggleClass(t,!1),this.stateMap.delete(t)),n.touched=!1}}_toggleClass(e,t){e=e.trim(),e.length>0&&e.split(Ps).forEach(n=>{t?this._renderer.addClass(this._ngEl.nativeElement,n):this._renderer.removeClass(this._ngEl.nativeElement,n)})}static \u0275fac=function(t){return new(t||i)(C(de),C(Me))};static \u0275dir=De({type:i,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return i})();var ro=class{$implicit;ngForOf;index;count;constructor(r,e,t,n){this.$implicit=r,this.ngForOf=e,this.index=t,this.count=n}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ke=(()=>{class i{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let t=this._viewContainer;e.forEachOperation((n,o,s)=>{if(n.previousIndex==null)t.createEmbeddedView(this._template,new ro(n.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)t.remove(o===null?void 0:o);else if(o!==null){let a=t.get(o);t.move(a,s),_c(a,n)}});for(let n=0,o=t.length;n<o;n++){let a=t.get(n).context;a.index=n,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(n=>{let o=t.get(n.currentIndex);_c(o,n)})}static ngTemplateContextGuard(e,t){return!0}static \u0275fac=function(t){return new(t||i)(C(Ti),C(ji),C(ac))};static \u0275dir=De({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return i})();function _c(i,r){i.context.$implicit=r.item}var _e=(()=>{class i{_viewContainer;_context=new oo;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,t){this._viewContainer=e,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){yc(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){yc(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,t){return!0}static \u0275fac=function(t){return new(t||i)(C(Ti),C(ji))};static \u0275dir=De({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return i})(),oo=class{$implicit=null;ngIf=null};function yc(i,r){if(i&&!i.createEmbeddedView)throw new ue(2020,!1)}var we=(()=>{class i{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){let[n,o]=e.split("."),s=n.indexOf("-")===-1?void 0:Ui.DashCase;t!=null?this._renderer.setStyle(this._ngEl.nativeElement,n,o?`${t}${o}`:t,s):this._renderer.removeStyle(this._ngEl.nativeElement,n,s)}_applyChanges(e){e.forEachRemovedItem(t=>this._setStyle(t.key,null)),e.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),e.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}static \u0275fac=function(t){return new(t||i)(C(de),C(lc),C(Me))};static \u0275dir=De({type:i,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return i})(),Ce=(()=>{class i{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let t=this._viewContainerRef;if(this._viewRef&&t.remove(t.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let n=this._createContextForwardProxy();this._viewRef=t.createEmbeddedView(this.ngTemplateOutlet,n,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,n)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,t,n):!1,get:(e,t,n)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,n)}})}static \u0275fac=function(t){return new(t||i)(C(Ti))};static \u0275dir=De({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Xe]})}return i})();function Ep(i,r){return new ue(2100,!1)}var Mp="mediumDate",Oc=new pe(""),Rc=new pe(""),Bs=(()=>{class i{locale;defaultTimezone;defaultOptions;constructor(e,t,n){this.locale=e,this.defaultTimezone=t,this.defaultOptions=n}transform(e,t,n,o){if(e==null||e===""||e!==e)return null;try{let s=t??this.defaultOptions?.dateFormat??Mp,a=n??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Dc(e,s,o||this.locale,a)}catch(s){throw Ep(i,s.message)}}static \u0275fac=function(t){return new(t||i)(C(nc,16),C(Oc,24),C(Rc,24))};static \u0275pipe=Jl({name:"date",type:i,pure:!0})}return i})();var oe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({})}return i})();function tr(i,r){r=encodeURIComponent(r);for(let e of i.split(";")){let t=e.indexOf("="),[n,o]=t==-1?[e,""]:[e.slice(0,t),e.slice(t+1)];if(n.trim()===r)return decodeURIComponent(o)}return null}var Ki=class{};var zs="browser";function Ve(i){return i===zs}var Us=(()=>{class i{static \u0275prov=q({token:i,providedIn:"root",factory:()=>new Hs(B(se),window)})}return i})(),Hs=class{document;window;offset=()=>[0,0];constructor(r,e){this.document=r,this.window=e}setOffset(r){Array.isArray(r)?this.offset=()=>r:this.offset=r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r,e){this.window.scrollTo(be(F({},e),{left:r[0],top:r[1]}))}scrollToAnchor(r,e){let t=kp(this.document,r);t&&(this.scrollToElement(t,e),t.focus())}setHistoryScrollRestoration(r){try{this.window.history.scrollRestoration=r}catch{console.warn(Pi(2400,!1))}}scrollToElement(r,e){let t=r.getBoundingClientRect(),n=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(be(F({},e),{left:n-s[0],top:o-s[1]}))}};function kp(i,r){let e=i.getElementById(r)||i.getElementsByName(r)[0];if(e)return e;if(typeof i.createTreeWalker=="function"&&i.body&&typeof i.body.attachShadow=="function"){let t=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT),n=t.currentNode;for(;n;){let o=n.shadowRoot;if(o){let s=o.getElementById(r)||o.querySelector(`[name="${r}"]`);if(s)return s}n=t.nextNode()}}return null}var ir=class{_doc;constructor(r){this._doc=r}manager},so=(()=>{class i extends ir{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n,o){return e.addEventListener(t,n,o),()=>this.removeEventListener(e,t,n,o)}removeEventListener(e,t,n,o){return e.removeEventListener(t,n,o)}static \u0275fac=function(t){return new(t||i)(re(se))};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),co=new pe(""),Ws=(()=>{class i{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(s=>{s.manager=this});let n=e.filter(s=>!(s instanceof so));this._plugins=n.slice().reverse();let o=e.find(s=>s instanceof so);o&&this._plugins.push(o)}addEventListener(e,t,n,o){return this._findPluginFor(t).addEventListener(e,t,n,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||i)(re(co),re(ke))};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),js="ng-app-id";function kc(i){for(let r of i)r.remove()}function Ac(i,r){let e=r.createElement("style");return e.textContent=i,e}function Ap(i,r,e,t){let n=i.head?.querySelectorAll(`style[${js}="${r}"],link[${js}="${r}"]`);if(n)for(let o of n)o.removeAttribute(js),o instanceof HTMLLinkElement?t.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Gs(i,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",i),e}var Ks=(()=>{class i{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,n,o={}){this.doc=e,this.appId=t,this.nonce=n,Ap(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let n of e)this.addUsage(n,this.inline,Ac);t?.forEach(n=>this.addUsage(n,this.external,Gs))}removeStyles(e,t){for(let n of e)this.removeUsage(n,this.inline);t?.forEach(n=>this.removeUsage(n,this.external))}addUsage(e,t,n){let o=t.get(e);o?o.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(kc(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])kc(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,Ac(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,Gs(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||i)(re(se),re(Cs),re(ws,8),re($e))};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),$s={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},qs=/%COMP%/g;var Vc="%COMP%",Lp=`_nghost-${Vc}`,Vp=`_ngcontent-${Vc}`,Pp=!0,Np=new pe("",{factory:()=>Pp});function Bp(i){return Vp.replace(qs,i)}function Hp(i){return Lp.replace(qs,i)}function Pc(i,r){return r.map(e=>e.replace(qs,i))}var or=(()=>{class i{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,t,n,o,s,a,u=null,h=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=u,this.tracingService=h,this.defaultRenderer=new nr(e,s,a,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let n=this.getOrCreateRenderer(e,t);return n instanceof lo?n.applyToHost(e):n instanceof rr&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,o=n.get(t.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,h=this.sharedStylesHost,y=this.removeStylesOnCompDestroy,w=this.tracingService;switch(t.encapsulation){case zr.Emulated:o=new lo(u,h,t,this.appId,y,s,a,w);break;case zr.ShadowDom:return new ao(u,e,t,s,a,this.nonce,w,h);case zr.ExperimentalIsolatedShadowDom:return new ao(u,e,t,s,a,this.nonce,w);default:o=new rr(u,h,t,y,s,a,w);break}n.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||i)(re(Ws),re(Ks),re(Cs),re(Np),re(se),re(ke),re(ws),re(Ur,8))};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),nr=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,t,n){this.eventManager=r,this.doc=e,this.ngZone=t,this.tracingService=n}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS($s[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Lc(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Lc(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){e.remove()}selectRootElement(r,e){let t=typeof r=="string"?this.doc.querySelector(r):r;if(!t)throw new ue(-5104,!1);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,n){if(n){e=n+":"+e;let o=$s[n];o?r.setAttributeNS(o,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){let n=$s[t];n?r.removeAttributeNS(n,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,n){n&(Ui.DashCase|Ui.Important)?r.style.setProperty(e,t,n&Ui.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&Ui.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r!=null&&(r[e]=t)}setValue(r,e){r.nodeValue=e}listen(r,e,t,n){if(typeof r=="string"&&(r=Bt().getGlobalEventTarget(this.doc,r),!r))throw new ue(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,n)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;r(e)===!1&&e.preventDefault()}}};function Lc(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var ao=class extends nr{hostEl;sharedStylesHost;shadowRoot;constructor(r,e,t,n,o,s,a,u){super(r,n,o,a),this.hostEl=e,this.sharedStylesHost=u,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let h=t.styles;h=Pc(t.id,h);for(let w of h){let T=document.createElement("style");s&&T.setAttribute("nonce",s),T.textContent=w,this.shadowRoot.appendChild(T)}let y=t.getExternalStyles?.();if(y)for(let w of y){let T=Gs(w,n);s&&T.setAttribute("nonce",s),this.shadowRoot.appendChild(T)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,t){return super.insertBefore(this.nodeOrShadowRoot(r),e,t)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},rr=class extends nr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,t,n,o,s,a,u){super(r,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=n;let h=t.styles;this.styles=u?Pc(u,h):h,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Ql.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},lo=class extends rr{contentAttr;hostAttr;constructor(r,e,t,n,o,s,a,u){let h=n+"-"+t.id;super(r,e,t,o,s,a,u,h),this.contentAttr=Bp(h),this.hostAttr=Hp(h)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}};var uo=class i extends Zn{supportsDOMEvents=!0;static makeCurrent(){Fs(new i)}onAndCancel(r,e,t,n){return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=Up();return e==null?null:jp(e)}resetBaseElement(){sr=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return tr(document.cookie,r)}},sr=null;function Up(){return sr=sr||document.head.querySelector("base"),sr?sr.getAttribute("href"):null}function jp(i){return new URL(i,document.baseURI).pathname}var $p=(()=>{class i{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),Nc=["alt","control","meta","shift"],Gp={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Wp={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},Bc=(()=>{class i extends ir{constructor(e){super(e)}supports(e){return i.parseEventName(e)!=null}addEventListener(e,t,n,o){let s=i.parseEventName(t),a=i.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Bt().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let t=e.toLowerCase().split("."),n=t.shift();if(t.length===0||!(n==="keydown"||n==="keyup"))return null;let o=i._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),Nc.forEach(h=>{let y=t.indexOf(h);y>-1&&(t.splice(y,1),s+=h+".")}),s+=o,t.length!=0||o.length===0)return null;let u={};return u.domEventName=n,u.fullKey=s,u}static matchEventFullKeyCode(e,t){let n=Gp[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(n=e.code,o="code."),n==null||!n?!1:(n=n.toLowerCase(),n===" "?n="space":n==="."&&(n="dot"),Nc.forEach(s=>{if(s!==n){let a=Wp[s];a(e)&&(o+=s+".")}}),o+=n,o===t)}static eventCallback(e,t,n){return o=>{i.matchEventFullKeyCode(o,e)&&n.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||i)(re(se))};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})();function Ys(i,r,e){return Be(this,null,function*(){let t=F({rootComponent:i},Kp(r,e));return cc(t)})}function Kp(i,r){return{platformRef:r?.platformRef,appProviders:[...Xp,...i?.providers??[]],platformProviders:Qp}}function qp(){uo.makeCurrent()}function Yp(){return new vs}function Zp(){return Bl(document),document}var Qp=[{provide:$e,useValue:zs},{provide:Hl,useValue:qp,multi:!0},{provide:se,useFactory:Zp}];var Xp=[{provide:Ll,useValue:"root"},{provide:vs,useFactory:Yp},{provide:co,useClass:so,multi:!0},{provide:co,useClass:Bc,multi:!0},or,Ks,Ws,{provide:$r,useExisting:or},{provide:Ki,useClass:$p},[]];var Ei=class i{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
|
|
`).forEach(e=>{let t=e.indexOf(":");if(t>0){let n=e.slice(0,t),o=e.slice(t+1).trim();this.addHeaderEntry(n,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,t)=>{this.addHeaderEntry(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let t=r.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(r.name,e);let n=(r.op==="a"?this.headers.get(e):void 0)||[];n.push(...t),this.headers.set(e,n);break;case"d":let o=r.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(r,e){let t=r.toLowerCase();this.maybeSetNormalizedName(r,t),this.headers.has(t)?this.headers.get(t).push(e):this.headers.set(t,[e])}setHeaderEntries(r,e){let t=(Array.isArray(e)?e:[e]).map(o=>o.toString()),n=r.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(r,n)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var ho=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}},mo=class{encodeKey(r){return Hc(r)}encodeValue(r){return Hc(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function Jp(i,r){let e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[s,a]=o==-1?[r.decodeKey(n),""]:[r.decodeKey(n.slice(0,o)),r.decodeValue(n.slice(o+1))],u=e.get(s)||[];u.push(a),e.set(s,u)}),e}var eh=/%(\d[a-f0-9])/gi,th={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Hc(i){return encodeURIComponent(i).replace(eh,(r,e)=>th[e]??r)}function po(i){return`${i}`}var gi=class i{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new mo,r.fromString){if(r.fromObject)throw new ue(2805,!1);this.map=Jp(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let t=r.fromObject[e],n=Array.isArray(t)?t.map(po):[po(t)];this.map.set(e,n)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(t=>{let n=r[t];Array.isArray(n)?n.forEach(o=>{e.push({param:t,value:o,op:"a"})}):e.push({param:t,value:n,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(po(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let t=this.map.get(r.param)||[],n=t.indexOf(po(r.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(r.param,t):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};function ih(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function zc(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function Uc(i){return typeof Blob<"u"&&i instanceof Blob}function jc(i){return typeof FormData<"u"&&i instanceof FormData}function nh(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var $c="Content-Type",Gc="Accept",Wc="text/plain",Kc="application/json",rh=`${Kc}, ${Wc}, */*`,dn=class i{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(r,e,t,n){this.url=e,this.method=r.toUpperCase();let o;if(ih(this.method)||n?(this.body=t!==void 0?t:null,o=n):o=t,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ue(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),o.referrerPolicy&&(this.referrerPolicy=o.referrerPolicy),this.transferCache=o.transferCache}if(this.headers??=new Ei,this.context??=new ho,!this.params)this.params=new gi,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),u=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+u+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||zc(this.body)||Uc(this.body)||jc(this.body)||nh(this.body)?this.body:this.body instanceof gi?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||jc(this.body)?null:Uc(this.body)?this.body.type||null:zc(this.body)?null:typeof this.body=="string"?Wc:this.body instanceof gi?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Kc:null}clone(r={}){let e=r.method||this.method,t=r.url||this.url,n=r.responseType||this.responseType,o=r.keepalive??this.keepalive,s=r.priority||this.priority,a=r.cache||this.cache,u=r.mode||this.mode,h=r.redirect||this.redirect,y=r.credentials||this.credentials,w=r.referrer||this.referrer,T=r.integrity||this.integrity,D=r.referrerPolicy||this.referrerPolicy,k=r.transferCache??this.transferCache,z=r.timeout??this.timeout,V=r.body!==void 0?r.body:this.body,J=r.withCredentials??this.withCredentials,le=r.reportProgress??this.reportProgress,Oe=r.headers||this.headers,xe=r.params||this.params,ct=r.context??this.context;return r.setHeaders!==void 0&&(Oe=Object.keys(r.setHeaders).reduce((gt,Ft)=>gt.set(Ft,r.setHeaders[Ft]),Oe)),r.setParams&&(xe=Object.keys(r.setParams).reduce((gt,Ft)=>gt.set(Ft,r.setParams[Ft]),xe)),new i(e,t,V,{params:xe,headers:Oe,context:ct,reportProgress:le,responseType:n,withCredentials:J,transferCache:k,keepalive:o,cache:a,priority:s,timeout:z,mode:u,redirect:h,credentials:y,referrer:w,integrity:T,referrerPolicy:D})}},ii=(function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i})(ii||{}),pn=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(r,e=200,t="OK"){this.headers=r.headers||new Ei,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||t,this.url=r.url||null,this.redirected=r.redirected,this.responseType=r.responseType,this.ok=this.status>=200&&this.status<300}},fo=class i extends pn{constructor(r={}){super(r)}type=ii.ResponseHeader;clone(r={}){return new i({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},ar=class i extends pn{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=ii.Response;clone(r={}){return new i({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0,redirected:r.redirected??this.redirected,responseType:r.responseType??this.responseType})}},un=class extends pn{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},oh=200,sh=204;var ah=new pe("");var lh=/^\)\]\}',?\n/;var Qs=(()=>{class i{xhrFactory;tracingService=B(Ur,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ue(-2800,!1);let t=this.xhrFactory;return fe(null).pipe(Gt(()=>new Lr(o=>{let s=t.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((V,J)=>s.setRequestHeader(V,J.join(","))),e.headers.has(Gc)||s.setRequestHeader(Gc,rh),!e.headers.has($c)){let V=e.detectContentTypeHeader();V!==null&&s.setRequestHeader($c,V)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let V=e.responseType.toLowerCase();s.responseType=V!=="json"?V:"text"}let a=e.serializeBody(),u=null,h=()=>{if(u!==null)return u;let V=s.statusText||"OK",J=new Ei(s.getAllResponseHeaders()),le=s.responseURL||e.url;return u=new fo({headers:J,status:s.status,statusText:V,url:le}),u},y=this.maybePropagateTrace(()=>{let{headers:V,status:J,statusText:le,url:Oe}=h(),xe=null;J!==sh&&(xe=typeof s.response>"u"?s.responseText:s.response),J===0&&(J=xe?oh:0);let ct=J>=200&&J<300;if(e.responseType==="json"&&typeof xe=="string"){let gt=xe;xe=xe.replace(lh,"");try{xe=xe!==""?JSON.parse(xe):null}catch(Ft){xe=gt,ct&&(ct=!1,xe={error:Ft,text:xe})}}ct?(o.next(new ar({body:xe,headers:V,status:J,statusText:le,url:Oe||void 0})),o.complete()):o.error(new un({error:xe,headers:V,status:J,statusText:le,url:Oe||void 0}))}),w=this.maybePropagateTrace(V=>{let{url:J}=h(),le=new un({error:V,status:s.status||0,statusText:s.statusText||"Unknown Error",url:J||void 0});o.error(le)}),T=w;e.timeout&&(T=this.maybePropagateTrace(V=>{let{url:J}=h(),le=new un({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:J||void 0});o.error(le)}));let D=!1,k=this.maybePropagateTrace(V=>{D||(o.next(h()),D=!0);let J={type:ii.DownloadProgress,loaded:V.loaded};V.lengthComputable&&(J.total=V.total),e.responseType==="text"&&s.responseText&&(J.partialText=s.responseText),o.next(J)}),z=this.maybePropagateTrace(V=>{let J={type:ii.UploadProgress,loaded:V.loaded};V.lengthComputable&&(J.total=V.total),o.next(J)});return s.addEventListener("load",y),s.addEventListener("error",w),s.addEventListener("timeout",T),s.addEventListener("abort",w),e.reportProgress&&(s.addEventListener("progress",k),a!==null&&s.upload&&s.upload.addEventListener("progress",z)),s.send(a),o.next({type:ii.Sent}),()=>{s.removeEventListener("error",w),s.removeEventListener("abort",w),s.removeEventListener("load",y),s.removeEventListener("timeout",T),e.reportProgress&&(s.removeEventListener("progress",k),a!==null&&s.upload&&s.upload.removeEventListener("progress",z)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(t){return new(t||i)(re(Ki))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function ch(i,r){return r(i)}function dh(i,r,e){return(t,n)=>It(e,()=>r(t,o=>i(o,n)))}var qc=new pe("",{factory:()=>[]}),Yc=new pe(""),Zc=new pe("",{factory:()=>!0});var Xs=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:function(t){let n=null;return t?n=new(t||i):n=re(Qs),n},providedIn:"root"})}return i})();var go=(()=>{class i{backend;injector;chain=null;pendingTasks=B(Nl);contributeToStability=B(Zc);constructor(e,t){this.backend=e,this.injector=t}handle(e){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(qc),...this.injector.get(Yc,[])]));this.chain=t.reduceRight((n,o)=>dh(n,o,this.injector),ch)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,n=>this.backend.handle(n)).pipe(Nr(t))}else return this.chain(e,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||i)(re(Xs),re(Vt))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Js=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:function(t){let n=null;return t?n=new(t||i):n=re(go),n},providedIn:"root"})}return i})();function Zs(i,r){return{body:r,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,credentials:i.credentials,transferCache:i.transferCache,timeout:i.timeout,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,integrity:i.integrity,referrer:i.referrer,referrerPolicy:i.referrerPolicy}}var si=(()=>{class i{handler;constructor(e){this.handler=e}request(e,t,n={}){let o;if(e instanceof dn)o=e;else{let u;n.headers instanceof Ei?u=n.headers:u=new Ei(n.headers);let h;n.params&&(n.params instanceof gi?h=n.params:h=new gi({fromObject:n.params})),o=new dn(e,t,n.body!==void 0?n.body:null,{headers:u,context:n.context,params:h,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials,transferCache:n.transferCache,keepalive:n.keepalive,priority:n.priority,cache:n.cache,mode:n.mode,redirect:n.redirect,credentials:n.credentials,referrer:n.referrer,referrerPolicy:n.referrerPolicy,integrity:n.integrity,timeout:n.timeout})}let s=fe(o).pipe(Vi(u=>this.handler.handle(u)));if(e instanceof dn||n.observe==="events")return s;let a=s.pipe(Lt(u=>u instanceof ar));switch(n.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Ze(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new ue(2806,!1);return u.body}));case"blob":return a.pipe(Ze(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new ue(2807,!1);return u.body}));case"text":return a.pipe(Ze(u=>{if(u.body!==null&&typeof u.body!="string")throw new ue(2808,!1);return u.body}));default:return a.pipe(Ze(u=>u.body))}case"response":return a;default:throw new ue(2809,!1)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new gi().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Zs(n,t))}post(e,t,n={}){return this.request("POST",e,Zs(n,t))}put(e,t,n={}){return this.request("PUT",e,Zs(n,t))}static \u0275fac=function(t){return new(t||i)(re(Js))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var uh=new pe("",{factory:()=>!0}),ph="XSRF-TOKEN",hh=new pe("",{factory:()=>ph}),mh="X-XSRF-TOKEN",fh=new pe("",{factory:()=>mh}),gh=(()=>{class i{cookieName=B(hh);doc=B(se);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=tr(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Qc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:function(t){let n=null;return t?n=new(t||i):n=re(gh),n},providedIn:"root"})}return i})();function _h(i,r){if(!B(uh)||i.method==="GET"||i.method==="HEAD")return r(i);try{let n=B(hi).href,{origin:o}=new URL(n),{origin:s}=new URL(i.url,o);if(o!==s)return r(i)}catch{return r(i)}let e=B(Qc).getToken(),t=B(fh);return e!=null&&!i.headers.has(t)&&(i=i.clone({headers:i.headers.set(t,e)})),r(i)}function ea(...i){let r=[si,go,{provide:Js,useExisting:go},{provide:Xs,useFactory:()=>B(ah,{optional:!0})??B(Qs)},{provide:qc,useValue:_h,multi:!0}];for(let e of i)r.push(...e.\u0275providers);return Ni(r)}var Xc=(()=>{class i{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||i)(re(se))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ta=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:function(t){let n=null;return t?n=new(t||i):n=re(vh),n},providedIn:"root"})}return i})(),vh=(()=>{class i extends ta{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case Hi.NONE:return t;case Hi.HTML:return cn(t,"HTML")?Bi(t):ql(this._doc,String(t)).toString();case Hi.STYLE:return cn(t,"Style")?Bi(t):t;case Hi.SCRIPT:if(cn(t,"Script"))return Bi(t);throw new ue(5200,!1);case Hi.URL:return cn(t,"URL")?Bi(t):Kl(String(t));case Hi.RESOURCE_URL:if(cn(t,"ResourceURL"))return Bi(t);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return Ul(e)}bypassSecurityTrustStyle(e){return jl(e)}bypassSecurityTrustScript(e){return $l(e)}bypassSecurityTrustUrl(e){return Gl(e)}bypassSecurityTrustResourceUrl(e){return Wl(e)}static \u0275fac=function(t){return new(t||i)(re(se))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var he="primary",_r=Symbol("RouteTitle"),sa=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zi(i){return new sa(i)}function ia(i,r,e){for(let t=0;t<i.length;t++){let n=i[t],o=r[t];if(n[0]===":")e[n.substring(1)]=o;else if(n!==o.path)return!1}return!0}function ld(i,r,e){let t=e.path.split("/"),n=t.indexOf("**");if(n===-1){if(t.length>i.length||e.pathMatch==="full"&&(r.hasChildren()||t.length<i.length))return null;let u={},h=i.slice(0,t.length);return ia(t,h,u)?{consumed:h,posParams:u}:null}if(n!==t.lastIndexOf("**"))return null;let o=t.slice(0,n),s=t.slice(n+1);if(o.length+s.length>i.length||e.pathMatch==="full"&&r.hasChildren()&&e.path!=="**")return null;let a={};return!ia(o,i.slice(0,o.length),a)||!ia(s,i.slice(i.length-s.length),a)?null:{consumed:i,posParams:a}}function Io(i){return new Promise((r,e)=>{i.pipe(Ii()).subscribe({next:t=>r(t),error:t=>e(t)})})}function bh(i,r){if(i.length!==r.length)return!1;for(let e=0;e<i.length;++e)if(!ai(i[e],r[e]))return!1;return!0}function ai(i,r){let e=i?aa(i):void 0,t=r?aa(r):void 0;if(!e||!t||e.length!=t.length)return!1;let n;for(let o=0;o<e.length;o++)if(n=e[o],!cd(i[n],r[n]))return!1;return!0}function aa(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}function cd(i,r){if(Array.isArray(i)&&Array.isArray(r)){if(i.length!==r.length)return!1;let e=[...i].sort(),t=[...r].sort();return e.every((n,o)=>t[o]===n)}else return i===r}function Ch(i){return i.length>0?i[i.length-1]:null}function Xi(i){return gs(i)?i:Kn(i)?_t(Promise.resolve(i)):fe(i)}function dd(i){return gs(i)?Io(i):Promise.resolve(i)}var wh={exact:pd,subset:hd},ud={exact:Ih,subset:xh,ignored:()=>!0};function Ca(i,r,e){let t=i instanceof Mt?i:r.parseUrl(i);return Xt(()=>la(r.lastSuccessfulNavigation()?.finalUrl??new Mt,t,e))}function la(i,r,e){return wh[e.paths](i.root,r.root,e.matrixParams)&&ud[e.queryParams](i.queryParams,r.queryParams)&&!(e.fragment==="exact"&&i.fragment!==r.fragment)}function Ih(i,r){return ai(i,r)}function pd(i,r,e){if(!qi(i.segments,r.segments)||!bo(i.segments,r.segments,e)||i.numberOfChildren!==r.numberOfChildren)return!1;for(let t in r.children)if(!i.children[t]||!pd(i.children[t],r.children[t],e))return!1;return!0}function xh(i,r){return Object.keys(r).length<=Object.keys(i).length&&Object.keys(r).every(e=>cd(i[e],r[e]))}function hd(i,r,e){return md(i,r,r.segments,e)}function md(i,r,e,t){if(i.segments.length>e.length){let n=i.segments.slice(0,e.length);return!(!qi(n,e)||r.hasChildren()||!bo(n,e,t))}else if(i.segments.length===e.length){if(!qi(i.segments,e)||!bo(i.segments,e,t))return!1;for(let n in r.children)if(!i.children[n]||!hd(i.children[n],r.children[n],t))return!1;return!0}else{let n=e.slice(0,i.segments.length),o=e.slice(i.segments.length);return!qi(i.segments,n)||!bo(i.segments,n,t)||!i.children[he]?!1:md(i.children[he],r,o,t)}}function bo(i,r,e){return r.every((t,n)=>ud[e](i[n].parameters,t.parameters))}var Mt=class{root;queryParams;fragment;_queryParamMap;constructor(r=new Re([],{}),e={},t=null){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Zi(this.queryParams),this._queryParamMap}toString(){return Dh.serialize(this)}},Re=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Co(this)}},Mi=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Zi(this.parameters),this._parameterMap}toString(){return gd(this)}};function Th(i,r){return qi(i,r)&&i.every((e,t)=>ai(e.parameters,r[t].parameters))}function qi(i,r){return i.length!==r.length?!1:i.every((e,t)=>e.path===r[t].path)}function Sh(i,r){let e=[];return Object.entries(i.children).forEach(([t,n])=>{t===he&&(e=e.concat(r(n,t)))}),Object.entries(i.children).forEach(([t,n])=>{t!==he&&(e=e.concat(r(n,t)))}),e}var Ji=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:()=>new yi,providedIn:"root"})}return i})(),yi=class{parse(r){let e=new da(r);return new Mt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${lr(r.root,!0)}`,t=Oh(r.queryParams),n=typeof r.fragment=="string"?`#${Eh(r.fragment)}`:"";return`${e}${t}${n}`}},Dh=new yi;function Co(i){return i.segments.map(r=>gd(r)).join("/")}function lr(i,r){if(!i.hasChildren())return Co(i);if(r){let e=i.children[he]?lr(i.children[he],!1):"",t=[];return Object.entries(i.children).forEach(([n,o])=>{n!==he&&t.push(`${n}:${lr(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=Sh(i,(t,n)=>n===he?[lr(i.children[he],!1)]:[`${n}:${lr(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[he]!=null?`${Co(i)}/${e[0]}`:`${Co(i)}/(${e.join("//")})`}}function fd(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yo(i){return fd(i).replace(/%3B/gi,";")}function Eh(i){return encodeURI(i)}function ca(i){return fd(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wo(i){return decodeURIComponent(i)}function ed(i){return wo(i.replace(/\+/g,"%20"))}function gd(i){return`${ca(i.path)}${Mh(i.parameters)}`}function Mh(i){return Object.entries(i).map(([r,e])=>`;${ca(r)}=${ca(e)}`).join("")}function Oh(i){let r=Object.entries(i).map(([e,t])=>Array.isArray(t)?t.map(n=>`${yo(e)}=${yo(n)}`).join("&"):`${yo(e)}=${yo(t)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Rh=/^[^\/()?;#]+/;function na(i){let r=i.match(Rh);return r?r[0]:""}var Fh=/^[^\/()?;=#]+/;function kh(i){let r=i.match(Fh);return r?r[0]:""}var Ah=/^[^=?&#]+/;function Lh(i){let r=i.match(Ah);return r?r[0]:""}var Vh=/^[^&#]+/;function Ph(i){let r=i.match(Vh);return r?r[0]:""}var da=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[he]=new Re(r,e)),t}parseSegment(){let r=na(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(r),new Mi(wo(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=kh(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let n=na(this.remaining);n&&(t=n,this.capture(t))}r[wo(e)]=wo(t)}parseQueryParam(r){let e=Lh(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=Ph(this.remaining);s&&(t=s,this.capture(t))}let n=ed(e),o=ed(t);if(r.hasOwnProperty(n)){let s=r[n];Array.isArray(s)||(s=[s],r[n]=s),s.push(o)}else r[n]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=na(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new ue(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=he);let s=this.parseChildren();e[o??he]=Object.keys(s).length===1&&s[he]?s[he]:new Re([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new ue(4011,!1)}};function _d(i){return i.segments.length>0?new Re([],{[he]:i}):i}function yd(i){let r={};for(let[t,n]of Object.entries(i.children)){let o=yd(n);if(t===he&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[t]=o)}let e=new Re(i.segments,r);return Nh(e)}function Nh(i){if(i.numberOfChildren===1&&i.children[he]){let r=i.children[he];return new Re(i.segments.concat(r.segments),r.children)}return i}function Oi(i){return i instanceof Mt}function vd(i,r,e=null,t=null,n=new yi){let o=bd(i);return Cd(o,r,e,t,n)}function bd(i){let r;function e(o){let s={};for(let u of o.children){let h=e(u);s[u.outlet]=h}let a=new Re(o.url,s);return o===i&&(r=a),a}let t=e(i.root),n=_d(t);return r??n}function Cd(i,r,e,t,n){let o=i;for(;o.parent;)o=o.parent;if(r.length===0)return ra(o,o,o,e,t,n);let s=Bh(r);if(s.toRoot())return ra(o,o,new Re([],{}),e,t,n);let a=Hh(s,o,i),u=a.processChildren?dr(a.segmentGroup,a.index,s.commands):Id(a.segmentGroup,a.index,s.commands);return ra(o,a.segmentGroup,u,e,t,n)}function xo(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function pr(i){return typeof i=="object"&&i!=null&&i.outlets}function td(i,r,e){i||="\u0275";let t=new Mt;return t.queryParams={[i]:r},e.parse(e.serialize(t)).queryParams[i]}function ra(i,r,e,t,n,o){let s={};for(let[h,y]of Object.entries(t??{}))s[h]=Array.isArray(y)?y.map(w=>td(h,w,o)):td(h,y,o);let a;i===r?a=e:a=wd(i,r,e);let u=_d(yd(a));return new Mt(u,s,n)}function wd(i,r,e){let t={};return Object.entries(i.children).forEach(([n,o])=>{o===r?t[n]=e:t[n]=wd(o,r,e)}),new Re(i.segments,t)}var To=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&xo(t[0]))throw new ue(4003,!1);let n=t.find(pr);if(n&&n!==Ch(t))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bh(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new To(!0,0,i);let r=0,e=!1,t=i.reduce((n,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,h])=>{a[u]=typeof h=="string"?h.split("/"):h}),[...n,{outlets:a}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?r++:a!=""&&n.push(a))}),n):[...n,o]},[]);return new To(e,r,t)}var mn=class{segmentGroup;processChildren;index;constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}};function Hh(i,r,e){if(i.isAbsolute)return new mn(r,!0,0);if(!e)return new mn(r,!1,NaN);if(e.parent===null)return new mn(e,!0,0);let t=xo(i.commands[0])?0:1,n=e.segments.length-1+t;return zh(e,n,i.numberOfDoubleDots)}function zh(i,r,e){let t=i,n=r,o=e;for(;o>n;){if(o-=n,t=t.parent,!t)throw new ue(4005,!1);n=t.segments.length}return new mn(t,!1,n-o)}function Uh(i){return pr(i[0])?i[0].outlets:{[he]:i}}function Id(i,r,e){if(i??=new Re([],{}),i.segments.length===0&&i.hasChildren())return dr(i,r,e);let t=jh(i,r,e),n=e.slice(t.commandIndex);if(t.match&&t.pathIndex<i.segments.length){let o=new Re(i.segments.slice(0,t.pathIndex),{});return o.children[he]=new Re(i.segments.slice(t.pathIndex),i.children),dr(o,0,n)}else return t.match&&n.length===0?new Re(i.segments,{}):t.match&&!i.hasChildren()?ua(i,r,e):t.match?dr(i,0,n):ua(i,r,e)}function dr(i,r,e){if(e.length===0)return new Re(i.segments,{});{let t=Uh(e),n={};if(Object.keys(t).some(o=>o!==he)&&i.children[he]&&i.numberOfChildren===1&&i.children[he].segments.length===0){let o=dr(i.children[he],r,e);return new Re(i.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(n[o]=Id(i.children[o],r,s))}),Object.entries(i.children).forEach(([o,s])=>{t[o]===void 0&&(n[o]=s)}),new Re(i.segments,n)}}function jh(i,r,e){let t=0,n=r,o={match:!1,pathIndex:0,commandIndex:0};for(;n<i.segments.length;){if(t>=e.length)return o;let s=i.segments[n],a=e[t];if(pr(a))break;let u=`${a}`,h=t<e.length-1?e[t+1]:null;if(n>0&&u===void 0)break;if(u&&h&&typeof h=="object"&&h.outlets===void 0){if(!nd(u,h,s))return o;t+=2}else{if(!nd(u,{},s))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function ua(i,r,e){let t=i.segments.slice(0,r),n=0;for(;n<e.length;){let o=e[n];if(pr(o)){let u=$h(o.outlets);return new Re(t,u)}if(n===0&&xo(e[0])){let u=i.segments[r];t.push(new Mi(u.path,id(e[0]))),n++;continue}let s=pr(o)?o.outlets[he]:`${o}`,a=n<e.length-1?e[n+1]:null;s&&a&&xo(a)?(t.push(new Mi(s,id(a))),n+=2):(t.push(new Mi(s,{})),n++)}return new Re(t,{})}function $h(i){let r={};return Object.entries(i).forEach(([e,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(r[e]=ua(new Re([],{}),0,t))}),r}function id(i){let r={};return Object.entries(i).forEach(([e,t])=>r[e]=`${t}`),r}function nd(i,r,e){return i==e.path&&ai(r,e.parameters)}var fn="imperative",at=(function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i})(at||{}),Ot=class{id;url;constructor(r,e){this.id=r,this.url=e}},Ri=class extends Ot{type=at.NavigationStart;navigationTrigger;restoredState;constructor(r,e,t="imperative",n=null){super(r,e),this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Rt=class extends Ot{urlAfterRedirects;type=at.NavigationEnd;constructor(r,e,t){super(r,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},vt=(function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i[i.Aborted=4]="Aborted",i})(vt||{}),_n=(function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i})(_n||{}),zt=class extends Ot{reason;code;type=at.NavigationCancel;constructor(r,e,t,n){super(r,e),this.reason=t,this.code=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function xd(i){return i instanceof zt&&(i.code===vt.Redirect||i.code===vt.SupersededByNewNavigation)}var li=class extends Ot{reason;code;type=at.NavigationSkipped;constructor(r,e,t,n){super(r,e),this.reason=t,this.code=n}},Qi=class extends Ot{error;target;type=at.NavigationError;constructor(r,e,t,n){super(r,e),this.error=t,this.target=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},yn=class extends Ot{urlAfterRedirects;state;type=at.RoutesRecognized;constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},So=class extends Ot{urlAfterRedirects;state;type=at.GuardsCheckStart;constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Do=class extends Ot{urlAfterRedirects;state;shouldActivate;type=at.GuardsCheckEnd;constructor(r,e,t,n,o){super(r,e),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Eo=class extends Ot{urlAfterRedirects;state;type=at.ResolveStart;constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mo=class extends Ot{urlAfterRedirects;state;type=at.ResolveEnd;constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oo=class{route;type=at.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ro=class{route;type=at.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fo=class{snapshot;type=at.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ko=class{snapshot;type=at.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ao=class{snapshot;type=at.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lo=class{snapshot;type=at.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vn=class{routerEvent;position;anchor;scrollBehavior;type=at.Scroll;constructor(r,e,t,n){this.routerEvent=r,this.position=e,this.anchor=t,this.scrollBehavior=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},bn=class{},Cn=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Gh(i){return!(i instanceof bn)&&!(i instanceof Cn)}var Vo=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new en(this.rootInjector)}},en=(()=>{class i{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Vo(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||i)(re(Vt))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Po=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=pa(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){let e=pa(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=ha(r,this._root);return e.length<2?[]:e[e.length-2].children.map(n=>n.value).filter(n=>n!==r)}pathFromRoot(r){return ha(r,this._root).map(e=>e.value)}};function pa(i,r){if(i===r.value)return r;for(let e of r.children){let t=pa(i,e);if(t)return t}return null}function ha(i,r){if(i===r.value)return[r];for(let e of r.children){let t=ha(i,e);if(t.length)return t.unshift(r),t}return[]}var Et=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function hn(i){let r={};return i&&i.children.forEach(e=>r[e.value.outlet]=e),r}var hr=class extends Po{snapshot;constructor(r,e){super(r),this.snapshot=e,wa(this,r)}toString(){return this.snapshot.toString()}};function Td(i,r){let e=Wh(i,r),t=new kt([new Mi("",{})]),n=new kt({}),o=new kt({}),s=new kt({}),a=new kt(""),u=new ci(t,n,s,a,o,he,i,e.root);return u.snapshot=e.root,new hr(new Et(u,[]),e)}function Wh(i,r){let e={},t={},n={},s=new Yi([],e,n,"",t,he,i,null,{},r);return new mr("",new Et(s,[]))}var ci=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,t,n,o,s,a,u){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(Ze(h=>h[_r]))??fe(void 0),this.url=r,this.params=e,this.queryParams=t,this.fragment=n,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Ze(r=>Zi(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Ze(r=>Zi(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function No(i,r,e="emptyOnly"){let t,{routeConfig:n}=i;return r!==null&&(e==="always"||n?.path===""||!r.component&&!r.routeConfig?.loadComponent)?t={params:F(F({},r.params),i.params),data:F(F({},r.data),i.data),resolve:F(F(F(F({},i.data),r.data),n?.data),i._resolvedData)}:t={params:F({},i.params),data:F({},i.data),resolve:F(F({},i.data),i._resolvedData??{})},n&&Dd(n)&&(t.resolve[_r]=n.title),t}var Yi=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[_r]}constructor(r,e,t,n,o,s,a,u,h,y){this.url=r,this.params=e,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=h,this._environmentInjector=y}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Zi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zi(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},mr=class extends Po{url;constructor(r,e){super(e),this.url=r,wa(this,e)}toString(){return Sd(this._root)}};function wa(i,r){r.value._routerState=i,r.children.forEach(e=>wa(i,e))}function Sd(i){let r=i.children.length>0?` { ${i.children.map(Sd).join(", ")} } `:"";return`${i.value}${r}`}function oa(i){if(i.snapshot){let r=i.snapshot,e=i._futureSnapshot;i.snapshot=e,ai(r.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),ai(r.params,e.params)||i.paramsSubject.next(e.params),bh(r.url,e.url)||i.urlSubject.next(e.url),ai(r.data,e.data)||i.dataSubject.next(e.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function ma(i,r){let e=ai(i.params,r.params)&&Th(i.url,r.url),t=!i.parent!=!r.parent;return e&&!t&&(!i.parent||ma(i.parent,r.parent))}function Dd(i){return typeof i.title=="string"||i.title===null}var Ed=new pe(""),tn=(()=>{class i{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=he;activateEvents=new S;deactivateEvents=new S;attachEvents=new S;detachEvents=new S;routerOutletData=oc();parentContexts=B(en);location=B(Ti);changeDetector=B(ge);inputBinder=B(yr,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:n}=e.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;let n=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new fa(e,a,n.injector,this.routerOutletData);this.activated=n.createComponent(s,{index:n.length,injector:u,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=De({type:i,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Xe]})}return i})(),fa=class{route;childContexts;parent;outletData;constructor(r,e,t,n){this.route=r,this.childContexts=e,this.parent=t,this.outletData=n}get(r,e){return r===ci?this.route:r===en?this.childContexts:r===Ed?this.outletData:this.parent.get(r,e)}},yr=new pe(""),Ia=(()=>{class i{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,n=_s([t.queryParams,t.params,t.data]).pipe(Gt(([o,s,a],u)=>(a=F(F(F({},o),s),a),u===0?fe(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let s=dc(t.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,n)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),xa=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=O({type:i,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,n){t&1&&x(0,"router-outlet")},dependencies:[tn],encapsulation:2})}return i})();function Ta(i){let r=i.children&&i.children.map(Ta),e=r?be(F({},i),{children:r}):F({},i);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==he&&(e.component=xa),e}function Kh(i,r,e){let t=fr(i,r._root,e?e._root:void 0);return new hr(t,r)}function fr(i,r,e){if(e&&i.shouldReuseRoute(r.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=r.value;let n=qh(i,r,e);return new Et(t,n)}else{if(i.shouldAttach(r.value)){let o=i.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>fr(i,a)),s}}let t=Yh(r.value),n=r.children.map(o=>fr(i,o));return new Et(t,n)}}function qh(i,r,e){return r.children.map(t=>{for(let n of e.children)if(i.shouldReuseRoute(t.value,n.value.snapshot))return fr(i,t,n);return fr(i,t)})}function Yh(i){return new ci(new kt(i.url),new kt(i.params),new kt(i.queryParams),new kt(i.fragment),new kt(i.data),i.outlet,i.component,i)}var wn=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Md="ngNavigationCancelingError";function Bo(i,r){let{redirectTo:e,navigationBehaviorOptions:t}=Oi(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,n=Od(!1,vt.Redirect);return n.url=e,n.navigationBehaviorOptions=t,n}function Od(i,r){let e=new Error(`NavigationCancelingError: ${i||""}`);return e[Md]=!0,e.cancellationCode=r,e}function Zh(i){return Rd(i)&&Oi(i.url)}function Rd(i){return!!i&&i[Md]}var ga=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,t,n,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),oa(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){let n=hn(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,n[s],t),delete n[s]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(r,e,t){let n=r.value,o=e?e.value:null;if(n===o)if(n.component){let s=t.getContext(n.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let t=e.getContext(r.value.outlet),n=t&&r.value.component?t.children:e,o=hn(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let t=e.getContext(r.value.outlet),n=t&&r.value.component?t.children:e,o=hn(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(r,e,t){let n=hn(e);r.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new Lo(o.value.snapshot))}),r.children.length&&this.forwardEvent(new ko(r.value.snapshot))}activateRoutes(r,e,t){let n=r.value,o=e?e.value:null;if(oa(n),n===o)if(n.component){let s=t.getOrCreateContext(n.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,t);else if(n.component){let s=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),oa(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=n,s.outlet&&s.outlet.activateWith(n,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,t)}},Ho=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},gn=class{component;route;constructor(r,e){this.component=r,this.route=e}};function Qh(i,r,e){let t=i._root,n=r?r._root:null;return cr(t,n,e,[t.value])}function Xh(i){let r=i.routeConfig?i.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:i,guards:r}}function xn(i,r){let e=Symbol(),t=r.get(i,e);return t===e?typeof i=="function"&&!Al(i)?i:r.get(i):t}function cr(i,r,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=hn(r);return i.children.forEach(s=>{Jh(s,o[s.value.outlet],e,t.concat([s.value]),n),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ur(a,e.getContext(s),n)),n}function Jh(i,r,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,s=r?r.value:null,a=e?e.getContext(i.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=em(s,o,o.routeConfig.runGuardsAndResolvers);u?n.canActivateChecks.push(new Ho(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?cr(i,r,a?a.children:null,t,n):cr(i,r,e,t,n),u&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new gn(a.outlet.component,s))}else s&&ur(r,a,n),n.canActivateChecks.push(new Ho(t)),o.component?cr(i,null,a?a.children:null,t,n):cr(i,null,e,t,n);return n}function em(i,r,e){if(typeof e=="function")return It(r._environmentInjector,()=>e(i,r));switch(e){case"pathParamsChange":return!qi(i.url,r.url);case"pathParamsOrQueryParamsChange":return!qi(i.url,r.url)||!ai(i.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ma(i,r)||!ai(i.queryParams,r.queryParams);default:return!ma(i,r)}}function ur(i,r,e){let t=hn(i),n=i.value;Object.entries(t).forEach(([o,s])=>{n.component?r?ur(s,r.children.getContext(o),e):ur(s,null,e):ur(s,r,e)}),n.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new gn(r.outlet.component,n)):e.canDeactivateChecks.push(new gn(null,n)):e.canDeactivateChecks.push(new gn(null,n))}function vr(i){return typeof i=="function"}function tm(i){return typeof i=="boolean"}function im(i){return i&&vr(i.canLoad)}function nm(i){return i&&vr(i.canActivate)}function rm(i){return i&&vr(i.canActivateChild)}function om(i){return i&&vr(i.canDeactivate)}function sm(i){return i&&vr(i.canMatch)}function Fd(i){return i instanceof Dl||i?.name==="EmptyError"}var vo=Symbol("INITIAL_VALUE");function In(){return Gt(i=>_s(i.map(r=>r.pipe(an(1),kl(vo)))).pipe(Ze(r=>{for(let e of r)if(e!==!0){if(e===vo)return vo;if(e===!1||am(e))return e}return!0}),Lt(r=>r!==vo),an(1)))}function am(i){return Oi(i)||i instanceof wn}function kd(i){return i.aborted?fe(void 0).pipe(an(1)):new Lr(r=>{let e=()=>{r.next(),r.complete()};return i.addEventListener("abort",e),()=>i.removeEventListener("abort",e)})}function Ad(i){return Br(kd(i))}function lm(i){return oi(r=>{let{targetSnapshot:e,currentSnapshot:t,guards:{canActivateChecks:n,canDeactivateChecks:o}}=r;return o.length===0&&n.length===0?fe(be(F({},r),{guardsResult:!0})):cm(o,e,t).pipe(oi(s=>s&&tm(s)?dm(e,n,i):fe(s)),Ze(s=>be(F({},r),{guardsResult:s})))})}function cm(i,r,e){return _t(i).pipe(oi(t=>fm(t.component,t.route,e,r)),Ii(t=>t!==!0,!0))}function dm(i,r,e){return _t(r).pipe(Vi(t=>El(pm(t.route.parent,e),um(t.route,e),mm(i,t.path),hm(i,t.route))),Ii(t=>t!==!0,!0))}function um(i,r){return i!==null&&r&&r(new Ao(i)),fe(!0)}function pm(i,r){return i!==null&&r&&r(new Fo(i)),fe(!0)}function hm(i,r){let e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||e.length===0)return fe(!0);let t=e.map(n=>Vr(()=>{let o=r._environmentInjector,s=xn(n,o),a=nm(s)?s.canActivate(r,i):It(o,()=>s(r,i));return Xi(a).pipe(Ii())}));return fe(t).pipe(In())}function mm(i,r){let e=r[r.length-1],n=r.slice(0,r.length-1).reverse().map(o=>Xh(o)).filter(o=>o!==null).map(o=>Vr(()=>{let s=o.guards.map(a=>{let u=o.node._environmentInjector,h=xn(a,u),y=rm(h)?h.canActivateChild(e,i):It(u,()=>h(e,i));return Xi(y).pipe(Ii())});return fe(s).pipe(In())}));return fe(n).pipe(In())}function fm(i,r,e,t){let n=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!n||n.length===0)return fe(!0);let o=n.map(s=>{let a=r._environmentInjector,u=xn(s,a),h=om(u)?u.canDeactivate(i,r,e,t):It(a,()=>u(i,r,e,t));return Xi(h).pipe(Ii())});return fe(o).pipe(In())}function gm(i,r,e,t,n){let o=r.canLoad;if(o===void 0||o.length===0)return fe(!0);let s=o.map(a=>{let u=xn(a,i),h=im(u)?u.canLoad(r,e):It(i,()=>u(r,e)),y=Xi(h);return n?y.pipe(Ad(n)):y});return fe(s).pipe(In(),Ld(t))}function Ld(i){return Tl(Wt(r=>{if(typeof r!="boolean")throw Bo(i,r)}),Ze(r=>r===!0))}function _m(i,r,e,t,n){let o=r.canMatch;if(!o||o.length===0)return fe(!0);let s=o.map(a=>{let u=xn(a,i),h=sm(u)?u.canMatch(r,e):It(i,()=>u(r,e));return Xi(h).pipe(Ad(n))});return fe(s).pipe(In(),Ld(t))}var _i=class i extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,i.prototype)}},gr=class i extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,i.prototype)}};function ym(i){throw new ue(4e3,!1)}function vm(i){throw Od(!1,vt.GuardRejected)}var _a=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){return Be(this,null,function*(){let t=[],n=e.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return t;if(n.numberOfChildren>1||!n.children[he])throw ym(`${r.redirectTo}`);n=n.children[he]}})}applyRedirectCommands(r,e,t,n,o){return Be(this,null,function*(){let s=yield bm(e,n,o);if(s instanceof Mt)throw new gr(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,t);if(s[0]==="/")throw new gr(a);return a})}applyRedirectCreateUrlTree(r,e,t,n){let o=this.createSegmentGroup(r,e.root,t,n);return new Mt(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let t={};return Object.entries(r).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);t[n]=e[a]}else t[n]=o}),t}createSegmentGroup(r,e,t,n){let o=this.createSegments(r,e.segments,t,n),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(r,u,t,n)}),new Re(o,s)}createSegments(r,e,t,n){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,n):this.findOrReturn(o,t))}findPosParam(r,e,t){let n=t[e.path.substring(1)];if(!n)throw new ue(4001,!1);return n}findOrReturn(r,e){let t=0;for(let n of e){if(n.path===r.path)return e.splice(t),n;t++}return r}};function bm(i,r,e){if(typeof i=="string")return Promise.resolve(i);let t=i,{queryParams:n,fragment:o,routeConfig:s,url:a,outlet:u,params:h,data:y,title:w,paramMap:T,queryParamMap:D}=r;return Io(Xi(It(e,()=>t({params:h,data:y,queryParams:n,fragment:o,routeConfig:s,url:a,outlet:u,title:w,paramMap:T,queryParamMap:D}))))}function Cm(i,r){return i.providers&&!i._injector&&(i._injector=Wr(i.providers,r,`Route: ${i.path}`)),i._injector??r}function ni(i){return i.outlet||he}function wm(i,r){let e=i.filter(t=>ni(t)===r);return e.push(...i.filter(t=>ni(t)!==r)),e}var ya={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Im(i,r,e,t,n,o){let s=Vd(i,r,e);return s.matched?(t=Cm(r,t),_m(t,r,e,n,o).pipe(Ze(a=>a===!0?s:F({},ya)))):fe(s)}function Vd(i,r,e){if(r.path==="")return r.pathMatch==="full"&&(i.hasChildren()||e.length>0)?F({},ya):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let n=(r.matcher||ld)(e,i,r);if(!n)return F({},ya);let o={};Object.entries(n.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=n.consumed.length>0?F(F({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:e.slice(n.consumed.length),parameters:s,positionalParamSegments:n.posParams??{}}}function rd(i,r,e,t){return e.length>0&&Sm(i,e,t)?{segmentGroup:new Re(r,Tm(t,new Re(e,i.children))),slicedSegments:[]}:e.length===0&&Dm(i,e,t)?{segmentGroup:new Re(i.segments,xm(i,e,t,i.children)),slicedSegments:e}:{segmentGroup:new Re(i.segments,i.children),slicedSegments:e}}function xm(i,r,e,t){let n={};for(let o of e)if(Uo(i,r,o)&&!t[ni(o)]){let s=new Re([],{});n[ni(o)]=s}return F(F({},t),n)}function Tm(i,r){let e={};e[he]=r;for(let t of i)if(t.path===""&&ni(t)!==he){let n=new Re([],{});e[ni(t)]=n}return e}function Sm(i,r,e){return e.some(t=>Uo(i,r,t)&&ni(t)!==he)}function Dm(i,r,e){return e.some(t=>Uo(i,r,t))}function Uo(i,r,e){return(i.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Em(i,r,e){return r.length===0&&!i.children[e]}var va=class{};function Mm(i,r,e,t,n,o,s="emptyOnly",a){return Be(this,null,function*(){return new ba(i,r,e,t,n,s,o,a).recognize()})}var Om=31,ba=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,t,n,o,s,a,u){this.injector=r,this.configLoader=e,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=u,this.applyRedirects=new _a(this.urlSerializer,this.urlTree)}noMatchError(r){return new ue(4002,`'${r.segmentGroup}'`)}recognize(){return Be(this,null,function*(){let r=rd(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:t}=yield this.match(r),n=new Et(t,e),o=new mr("",n),s=vd(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(r){return Be(this,null,function*(){let e=new Yi([],Object.freeze({}),Object.freeze(F({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),he,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,r,he,e),rootSnapshot:e}}catch(t){if(t instanceof gr)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof _i?this.noMatchError(t):t}})}processSegmentGroup(r,e,t,n,o){return Be(this,null,function*(){if(t.segments.length===0&&t.hasChildren())return this.processChildren(r,e,t,o);let s=yield this.processSegment(r,e,t,t.segments,n,!0,o);return s instanceof Et?[s]:[]})}processChildren(r,e,t,n){return Be(this,null,function*(){let o=[];for(let u of Object.keys(t.children))u==="primary"?o.unshift(u):o.push(u);let s=[];for(let u of o){let h=t.children[u],y=wm(e,u),w=yield this.processSegmentGroup(r,y,h,u,n);s.push(...w)}let a=Pd(s);return Rm(a),a})}processSegment(r,e,t,n,o,s,a){return Be(this,null,function*(){for(let u of e)try{return yield this.processSegmentAgainstRoute(u._injector??r,e,u,t,n,o,s,a)}catch(h){if(h instanceof _i||Fd(h))continue;throw h}if(Em(t,n,o))return new va;throw new _i(t)})}processSegmentAgainstRoute(r,e,t,n,o,s,a,u){return Be(this,null,function*(){if(ni(t)!==s&&(s===he||!Uo(n,o,t)))throw new _i(n);if(t.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,n,t,o,s,u);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(r,n,e,t,o,s,u);throw new _i(n)})}expandSegmentAgainstRouteUsingRedirect(r,e,t,n,o,s,a){return Be(this,null,function*(){let{matched:u,parameters:h,consumedSegments:y,positionalParamSegments:w,remainingSegments:T}=Vd(e,n,o);if(!u)throw new _i(e);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Om&&(this.allowRedirects=!1));let D=new Yi(o,h,Object.freeze(F({},this.urlTree.queryParams)),this.urlTree.fragment,od(n),ni(n),n.component??n._loadedComponent??null,n,sd(n),r),k=No(D,a,this.paramsInheritanceStrategy);if(D.params=Object.freeze(k.params),D.data=Object.freeze(k.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(y,n.redirectTo,w,D,r),V=yield this.applyRedirects.lineralizeSegments(n,z);return this.processSegment(r,t,e,V.concat(T),s,!1,a)})}matchSegmentAgainstRoute(r,e,t,n,o,s){return Be(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=yield Io(Im(e,t,n,r,this.urlSerializer,this.abortSignal));if(t.path==="**"&&(e.children={}),!a?.matched)throw new _i(e);r=t._injector??r;let{routes:u}=yield this.getChildConfig(r,t,n),h=t._loadedInjector??r,{parameters:y,consumedSegments:w,remainingSegments:T}=a,D=new Yi(w,y,Object.freeze(F({},this.urlTree.queryParams)),this.urlTree.fragment,od(t),ni(t),t.component??t._loadedComponent??null,t,sd(t),r),k=No(D,s,this.paramsInheritanceStrategy);D.params=Object.freeze(k.params),D.data=Object.freeze(k.data);let{segmentGroup:z,slicedSegments:V}=rd(e,w,T,u);if(V.length===0&&z.hasChildren()){let Oe=yield this.processChildren(h,u,z,D);return new Et(D,Oe)}if(u.length===0&&V.length===0)return new Et(D,[]);let J=ni(t)===o,le=yield this.processSegment(h,u,z,V,J?he:o,!0,D);return new Et(D,le instanceof Et?[le]:[])})}getChildConfig(r,e,t){return Be(this,null,function*(){if(e.children)return{routes:e.children,injector:r};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(r).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Io(gm(r,e,t,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(r,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw vm(e)}return{routes:[],injector:r}})}};function Rm(i){i.sort((r,e)=>r.value.outlet===he?-1:e.value.outlet===he?1:r.value.outlet.localeCompare(e.value.outlet))}function Fm(i){let r=i.value.routeConfig;return r&&r.path===""}function Pd(i){let r=[],e=new Set;for(let t of i){if(!Fm(t)){r.push(t);continue}let n=r.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),e.add(n)):r.push(t)}for(let t of e){let n=Pd(t.children);r.push(new Et(t.value,n))}return r.filter(t=>!e.has(t))}function od(i){return i.data||{}}function sd(i){return i.resolve||{}}function km(i,r,e,t,n,o,s){return oi(a=>Be(null,null,function*(){let{state:u,tree:h}=yield Mm(i,r,e,t,a.extractedUrl,n,o,s);return be(F({},a),{targetSnapshot:u,urlAfterRedirects:h})}))}function Am(i){return oi(r=>{let{targetSnapshot:e,guards:{canActivateChecks:t}}=r;if(!t.length)return fe(r);let n=new Set(t.map(a=>a.route)),o=new Set;for(let a of n)if(!o.has(a))for(let u of Nd(a))o.add(u);let s=0;return _t(o).pipe(Vi(a=>n.has(a)?Lm(a,e,i):(a.data=No(a,a.parent,i).resolve,fe(void 0))),Wt(()=>s++),ys(1),oi(a=>s===o.size?fe(r):At))})}function Nd(i){let r=i.children.map(e=>Nd(e)).flat();return[i,...r]}function Lm(i,r,e){let t=i.routeConfig,n=i._resolve;return t?.title!==void 0&&!Dd(t)&&(n[_r]=t.title),Vr(()=>(i.data=No(i,i.parent,e).resolve,Vm(n,i,r).pipe(Ze(o=>(i._resolvedData=o,i.data=F(F({},i.data),o),null)))))}function Vm(i,r,e){let t=aa(i);if(t.length===0)return fe({});let n={};return _t(t).pipe(oi(o=>Pm(i[o],r,e).pipe(Ii(),Wt(s=>{if(s instanceof wn)throw Bo(new yi,s);n[o]=s}))),ys(1),Ze(()=>n),Pr(o=>Fd(o)?At:Sl(o)))}function Pm(i,r,e){let t=r._environmentInjector,n=xn(i,t),o=n.resolve?n.resolve(r,e):It(t,()=>n(r,e));return Xi(o)}function ad(i){return Gt(r=>{let e=i(r);return e?_t(e).pipe(Ze(()=>r)):fe(r)})}var Sa=(()=>{class i{buildTitle(e){let t,n=e.root;for(;n!==void 0;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find(o=>o.outlet===he);return t}getResolvedTitleForRoute(e){return e.data[_r]}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:()=>B(Bd),providedIn:"root"})}return i})(),Bd=(()=>{class i extends Sa{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||i)(re(Xc))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Fi=new pe("",{factory:()=>({})}),nn=new pe(""),jo=(()=>{class i{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=B(ic);loadComponent(e,t){return Be(this,null,function*(){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Promise.resolve(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=Be(this,null,function*(){try{let o=yield dd(It(e,()=>t.loadComponent())),s=yield Ud(zd(o));return this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s,s}finally{this.componentLoaders.delete(t)}});return this.componentLoaders.set(t,n),n})}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return Promise.resolve({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let n=Be(this,null,function*(){try{let o=yield Hd(t,this.compiler,e,this.onLoadEndListener);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(t)}});return this.childrenLoaders.set(t,n),n}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Hd(i,r,e,t){return Be(this,null,function*(){let n=yield dd(It(e,()=>i.loadChildren())),o=yield Ud(zd(n)),s;o instanceof Xl||Array.isArray(o)?s=o:s=yield r.compileModuleAsync(o),t&&t(i);let a,u,h=!1,y;return Array.isArray(s)?(u=s,h=!0):(a=s.create(e).injector,y=s,u=a.get(nn,[],{optional:!0,self:!0}).flat()),{routes:u.map(Ta),injector:a,factory:y}})}function Nm(i){return i&&typeof i=="object"&&"default"in i}function zd(i){return Nm(i)?i.default:i}function Ud(i){return Be(this,null,function*(){return i})}var $o=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:()=>B(Bm),providedIn:"root"})}return i})(),Bm=(()=>{class i{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Da=new pe(""),Ea=new pe("");function jd(i,r,e){let t=i.get(Ea),n=i.get(se);if(!n.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(h=>setTimeout(h));let o,s=new Promise(h=>{o=h}),a=n.startViewTransition(()=>(o(),Hm(i)));a.updateCallbackDone.catch(h=>{}),a.ready.catch(h=>{}),a.finished.catch(h=>{});let{onViewTransitionCreated:u}=t;return u&&It(i,()=>u({transition:a,from:r,to:e})),s}function Hm(i){return new Promise(r=>{jr({read:()=>setTimeout(r)},{injector:i})})}var zm=()=>{},Ma=new pe(""),Go=(()=>{class i{currentNavigation=ze(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=ze(null);events=new He;transitionAbortWithErrorSubject=new He;configLoader=B(jo);environmentInjector=B(Vt);destroyRef=B(ln);urlSerializer=B(Ji);rootContexts=B(en);location=B(Di);inputBindingEnabled=B(yr,{optional:!0})!==null;titleStrategy=B(Sa);options=B(Fi,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=B($o);createViewTransition=B(Da,{optional:!0});navigationErrorHandler=B(Ma,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>fe(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=n=>this.events.next(new Oo(n)),t=n=>this.events.next(new Ro(n));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;dt(()=>{this.transitions?.next(be(F({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:t}))})}setupNavigations(e){return this.transitions=new kt(null),this.transitions.pipe(Lt(t=>t!==null),Gt(t=>{let n=!1,o=new AbortController,s=()=>!n&&this.currentTransition?.id===t.id;return fe(t).pipe(Gt(a=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",vt.SupersededByNewNavigation),At;this.currentTransition=t;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:u?be(F({},u),{previousNavigation:null}):null,abort:()=>o.abort()});let h=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),y=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!h&&y!=="reload")return this.events.next(new li(a.id,this.urlSerializer.serialize(a.rawUrl),"",_n.IgnoredSameUrlNavigation)),a.resolve(!1),At;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return fe(a).pipe(Gt(w=>(this.events.next(new Ri(w.id,this.urlSerializer.serialize(w.extractedUrl),w.source,w.restoredState)),w.id!==this.navigationId?At:Promise.resolve(w))),km(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),Wt(w=>{t.targetSnapshot=w.targetSnapshot,t.urlAfterRedirects=w.urlAfterRedirects,this.currentNavigation.update(D=>(D.finalUrl=w.urlAfterRedirects,D));let T=new yn(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot);this.events.next(T)}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:w,extractedUrl:T,source:D,restoredState:k,extras:z}=a,V=new Ri(w,this.urlSerializer.serialize(T),D,k);this.events.next(V);let J=Td(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=t=be(F({},a),{targetSnapshot:J,urlAfterRedirects:T,extras:be(F({},z),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(le=>(le.finalUrl=T,le)),fe(t)}else return this.events.next(new li(a.id,this.urlSerializer.serialize(a.extractedUrl),"",_n.IgnoredByUrlHandlingStrategy)),a.resolve(!1),At}),Ze(a=>{let u=new So(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(u),this.currentTransition=t=be(F({},a),{guards:Qh(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),t}),lm(a=>this.events.next(a)),Gt(a=>{if(t.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Bo(this.urlSerializer,a.guardsResult);let u=new Do(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(u),!s())return At;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",vt.GuardRejected),At;if(a.guards.canActivateChecks.length===0)return fe(a);let h=new Eo(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(h),!s())return At;let y=!1;return fe(a).pipe(Am(this.paramsInheritanceStrategy),Wt({next:()=>{y=!0;let w=new Mo(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(w)},complete:()=>{y||this.cancelNavigationTransition(a,"",vt.NoDataFromResolver)}}))}),ad(a=>{let u=y=>{let w=[];if(y.routeConfig?._loadedComponent)y.component=y.routeConfig?._loadedComponent;else if(y.routeConfig?.loadComponent){let T=y._environmentInjector;w.push(this.configLoader.loadComponent(T,y.routeConfig).then(D=>{y.component=D}))}for(let T of y.children)w.push(...u(T));return w},h=u(a.targetSnapshot.root);return h.length===0?fe(a):_t(Promise.all(h).then(()=>a))}),ad(()=>this.afterPreactivation()),Gt(()=>{let{currentSnapshot:a,targetSnapshot:u}=t,h=this.createViewTransition?.(this.environmentInjector,a.root,u.root);return h?_t(h).pipe(Ze(()=>t)):fe(t)}),an(1),Ze(a=>{let u=Kh(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=t=a=be(F({},a),{targetRouterState:u}),this.currentNavigation.update(h=>(h.targetRouterState=u,h)),this.events.next(new bn),s()&&(new ga(e.routeReuseStrategy,t.targetRouterState,t.currentRouterState,h=>this.events.next(h),this.inputBindingEnabled).activate(this.rootContexts),s()&&(n=!0,this.currentNavigation.update(h=>(h.abort=zm,h)),this.lastSuccessfulNavigation.set(dt(this.currentNavigation)),this.events.next(new Rt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)))}),Br(kd(o.signal).pipe(Lt(()=>!n&&!t.targetRouterState),Wt(()=>{this.cancelNavigationTransition(t,o.signal.reason+"",vt.Aborted)}))),Wt({complete:()=>{n=!0}}),Br(this.transitionAbortWithErrorSubject.pipe(Wt(a=>{throw a}))),Nr(()=>{o.abort(),n||this.cancelNavigationTransition(t,"",vt.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Pr(a=>{if(n=!0,this.destroyed)return t.resolve(!1),At;if(Rd(a))this.events.next(new zt(t.id,this.urlSerializer.serialize(t.extractedUrl),a.message,a.cancellationCode)),Zh(a)?this.events.next(new Cn(a.url,a.navigationBehaviorOptions)):t.resolve(!1);else{let u=new Qi(t.id,this.urlSerializer.serialize(t.extractedUrl),a,t.targetSnapshot??void 0);try{let h=It(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(h instanceof wn){let{message:y,cancellationCode:w}=Bo(this.urlSerializer,h);this.events.next(new zt(t.id,this.urlSerializer.serialize(t.extractedUrl),y,w)),this.events.next(new Cn(h.redirectTo,h.navigationBehaviorOptions))}else throw this.events.next(u),a}catch(h){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(h)}}return At}))}))}cancelNavigationTransition(e,t,n){let o=new zt(e.id,this.urlSerializer.serialize(e.extractedUrl),t,n);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=dt(this.currentNavigation),n=t?.targetBrowserUrl??t?.extractedUrl;return e.toString()!==n?.toString()&&!t?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Um(i){return i!==fn}var $d=new pe("");var Gd=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:()=>B(jm),providedIn:"root"})}return i})(),zo=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}shouldDestroyInjector(r){return!0}},jm=(()=>{class i extends zo{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Oa=(()=>{class i{urlSerializer=B(Ji);options=B(Fi,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=B(Di);urlHandlingStrategy=B($o);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Mt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:t,targetBrowserUrl:n}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,t):t,s=n??o;return s instanceof Mt?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:t,initialUrl:n}){t&&e?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,n),this.routerState=e):this.rawUrlTree=n}routerState=Td(null,B(Vt));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:()=>B($m),providedIn:"root"})}return i})(),$m=(()=>{class i extends Oa{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{e(t.url,t.state,"popstate")})})}handleRouterEvent(e,t){e instanceof Ri?this.updateStateMemento():e instanceof li?this.commitTransition(t):e instanceof yn?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof bn?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof zt&&!xd(e)?this.restoreHistory(t):e instanceof Qi?this.restoreHistory(t,!0):e instanceof Rt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:t,id:n}){let{replaceUrl:o,state:s}=t;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=F(F({},s),this.generateNgRouterState(n,a));this.location.replaceState(e,"",u)}else{let a=F(F({},s),this.generateNgRouterState(n,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,o=this.currentPageId-n;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Wo(i,r){i.events.pipe(Lt(e=>e instanceof Rt||e instanceof zt||e instanceof Qi||e instanceof li),Ze(e=>e instanceof Rt||e instanceof li?0:(e instanceof zt?e.code===vt.Redirect||e.code===vt.SupersededByNewNavigation:!1)?2:1),Lt(e=>e!==2),an(1)).subscribe(()=>{r()})}var Ra={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fa={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bt=(()=>{class i{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=B(xs);stateManager=B(Oa);options=B(Fi,{optional:!0})||{};pendingTasks=B(Vl);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=B(Go);urlSerializer=B(Ji);location=B(Di);urlHandlingStrategy=B($o);injector=B(Vt);_events=new He;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=B(Gd);injectorCleanup=B($d,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=B(nn,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!B(yr,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new xl;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let n=this.navigationTransitions.currentTransition,o=dt(this.navigationTransitions.currentNavigation);if(n!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof zt&&t.code!==vt.Redirect&&t.code!==vt.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof Rt)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(t instanceof Cn){let s=t.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(t.url,n.currentRawUrl),u=F({scroll:n.extras.scroll,browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Um(n.source)},s);this.scheduleNavigation(a,fn,null,u,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}Gh(t)&&this._events.next(t)}catch(n){this.navigationTransitions.transitionAbortWithErrorSubject.next(n)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),fn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t,n)=>{this.navigateToSyncWithBrowser(e,n,t)})}navigateToSyncWithBrowser(e,t,n){let o={replaceUrl:!0},s=n?.navigationId?n:null;if(n){let u=F({},n);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,t,s,o).catch(u=>{this.disposed||this.injector.get(Gn)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return dt(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ta),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:n,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=t,h=u?this.currentUrlTree.fragment:s,y=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":y=F(F({},this.currentUrlTree.queryParams),o);break;case"preserve":y=this.currentUrlTree.queryParams;break;default:y=o||null}y!==null&&(y=this.removeEmptyProps(y));let w;try{let T=n?n.snapshot:this.routerState.snapshot.root;w=bd(T)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),w=this.currentUrlTree.root}return Cd(w,e,y,h??null,this.urlSerializer)}navigateByUrl(e,t={skipLocationChange:!1}){let n=Oi(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,fn,null,t)}navigate(e,t={skipLocationChange:!1}){return Gm(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Pi(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,t){let n;if(t===!0?n=F({},Ra):t===!1?n=F({},Fa):n=t,Oi(e))return la(this.currentUrlTree,e,n);let o=this.parseUrl(e);return la(this.currentUrlTree,o,n)}removeEmptyProps(e){return Object.entries(e).reduce((t,[n,o])=>(o!=null&&(t[n]=o),t),{})}scheduleNavigation(e,t,n,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,h;s?(a=s.resolve,u=s.reject,h=s.promise):h=new Promise((w,T)=>{a=w,u=T});let y=this.pendingTasks.add();return Wo(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(y))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:u,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(w=>Promise.reject(w))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Gm(i){for(let r=0;r<i.length;r++)if(i[r]==null)throw new ue(4008,!1)}var Tn=(()=>{class i{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=ze(null);get href(){return dt(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new He;applicationErrorHandler=B(Gn);options=B(Fi,{optional:!0});constructor(e,t,n,o,s,a){this.router=e,this.route=t,this.tabIndexAttribute=n,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(B(new rc("href"),{optional:!0}));let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area"||!!(typeof customElements=="object"&&customElements.get(u)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(e=>{e instanceof Rt&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Oi(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,n,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||t||n||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u)?.catch(h=>{this.applicationErrorHandler(h)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,t){let n=this.renderer,o=this.el.nativeElement;t!==null?n.setAttribute(o,e,t):n.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Oi(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||i)(C(bt),C(ci),bs("tabindex"),C(Me),C(de),C(ei))};static \u0275dir=De({type:i,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(t,n){t&1&&M("click",function(s){return n.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),t&2&&g("href",n.reactiveHref(),Yl)("target",n.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",I],skipLocationChange:[2,"skipLocationChange","skipLocationChange",I],replaceUrl:[2,"replaceUrl","replaceUrl",I],routerLink:"routerLink"},features:[Xe]})}return i})(),Aa=(()=>{class i{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new S;link=B(Tn,{optional:!0});constructor(e,t,n,o){this.router=e,this.element=t,this.renderer=n,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof Rt&&this.update()})}ngAfterContentInit(){fe(this.links.changes,fe(null)).pipe($n()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=_t(e).pipe($n()).subscribe(t=>{this._isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(e){let t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(n=>!!n)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let t=Wm(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?F({},Ra):F({},Fa);return n=>{let o=n.urlTree;return o?dt(Ca(o,e,t)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(t){return new(t||i)(C(bt),C(de),C(Me),C(ge))};static \u0275dir=De({type:i,selectors:[["","routerLinkActive",""]],contentQueries:function(t,n,o){if(t&1&&Ie(o,Tn,5),t&2){let s;G(s=W())&&(n.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Xe]})}return i})();function Wm(i){return!!i.paths}var br=class{};var Wd=(()=>{class i{router;injector;preloadingStrategy;loader;subscription;constructor(e,t,n,o){this.router=e,this.injector=t,this.preloadingStrategy=n,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Lt(e=>e instanceof Rt),Vi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,t){let n=[];for(let o of t){o.providers&&!o._injector&&(o._injector=Wr(o.providers,e,""));let s=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&n.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&n.push(this.processRoutes(a,o.children??o._loadedRoutes))}return _t(n).pipe($n())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{if(e.destroyed)return fe(null);let n;t.loadChildren&&t.canLoad===void 0?n=_t(this.loader.loadChildren(e,t)):n=fe(null);let o=n.pipe(oi(s=>s===null?fe(void 0):(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,t._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??e,s.routes))));if(t.loadComponent&&!t._loadedComponent){let s=this.loader.loadComponent(e,t);return _t([o,s]).pipe($n())}else return o})}static \u0275fac=function(t){return new(t||i)(re(bt),re(Vt),re(br),re(jo))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Kd=new pe(""),Km=(()=>{class i{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=fn;restoredId=0;store={};urlSerializer=B(Ji);zone=B(ke);viewportScroller=B(Us);transitions=B(Go);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ri?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Rt?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof li&&e.code===_n.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof vn)||e.scrollBehavior==="manual")return;let t={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],t):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,t):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,t){let n=dt(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>Be(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new vn(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,t,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(t){Gr()};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})();function La(i,...r){return Ni([{provide:nn,multi:!0,useValue:i},[],{provide:ci,useFactory:qd},{provide:Ss,multi:!0,useFactory:Yd},r.map(e=>e.\u0275providers)])}function qd(){return B(bt).routerState.root}function Cr(i,r){return{\u0275kind:i,\u0275providers:r}}function Yd(){let i=B(Kt);return r=>{let e=i.get(Kr);if(r!==e.components[0])return;let t=i.get(bt),n=i.get(Zd);i.get(Va)===1&&t.initialNavigation(),i.get(Jd,null,{optional:!0})?.setUpPreloading(),i.get(Kd,null,{optional:!0})?.init(),t.resetRootComponentType(e.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Zd=new pe("",{factory:()=>new He}),Va=new pe("",{factory:()=>1});function Qd(){let i=[{provide:Is,useValue:!0},{provide:Va,useValue:0},Ts(()=>{let r=B(Kt);return r.get(ks,Promise.resolve()).then(()=>new Promise(t=>{let n=r.get(bt),o=r.get(Zd);Wo(n,()=>{t(!0)}),r.get(Go).afterPreactivation=()=>(t(!0),o.closed?fe(void 0):o),n.initialNavigation()}))})];return Cr(2,i)}function Xd(){let i=[Ts(()=>{B(bt).setUpLocationChangeListener()}),{provide:Va,useValue:2}];return Cr(3,i)}var Jd=new pe("");function eu(i){return Cr(0,[{provide:Jd,useExisting:Wd},{provide:br,useExisting:i}])}function tu(){return Cr(8,[Ia,{provide:yr,useExisting:Ia}])}function iu(i){Wn("NgRouterViewTransitions");let r=[{provide:Da,useValue:jd},{provide:Ea,useValue:F({skipNextTransition:!!i?.skipInitialTransition},i)}];return Cr(9,r)}var nu=[Di,{provide:Ji,useClass:yi},bt,en,{provide:ci,useFactory:qd},jo,[]],Sn=(()=>{class i{constructor(){}static forRoot(e,t){return{ngModule:i,providers:[nu,[],{provide:nn,multi:!0,useValue:e},[],t?.errorHandler?{provide:Ma,useValue:t.errorHandler}:[],{provide:Fi,useValue:t||{}},t?.useHash?Ym():Zm(),qm(),t?.preloadingStrategy?eu(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?Qm(t):[],t?.bindToComponentInputs?tu().\u0275providers:[],t?.enableViewTransitions?iu().\u0275providers:[],Xm()]}}static forChild(e){return{ngModule:i,providers:[{provide:nn,multi:!0,useValue:e}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({})}return i})();function qm(){return{provide:Kd,useFactory:()=>{let i=B(Us),r=B(Fi);return r.scrollOffset&&i.setOffset(r.scrollOffset),new Km(r)}}}function Ym(){return{provide:ei,useClass:Ns}}function Zm(){return{provide:ei,useClass:Qr}}function Qm(i){return[i.initialNavigation==="disabled"?Xd().\u0275providers:[],i.initialNavigation==="enabledBlocking"?Qd().\u0275providers:[]]}var ka=new pe("");function Xm(){return[{provide:ka,useFactory:Yd},{provide:Ss,multi:!0,useExisting:ka}]}var Jm="@",ef=(()=>{class i{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=B(Kt);loadingSchedulerFn=B(tf,{optional:!0});_engine;constructor(e,t,n,o,s){this.doc=e,this.delegate=t,this.zone=n,this.animationType=o,this.moduleImpl=s}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-7ZSHD5DS.js").then(n=>n),t;return this.loadingSchedulerFn?t=this.loadingSchedulerFn(e):t=e(),t.catch(n=>{throw new ue(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:o})=>{this._engine=n(this.animationType,this.doc);let s=new o(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let o=new Pa(n);return t?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let a=s.createRenderer(e,t);o.use(a),this.scheduler??=this.injector.get(Pl,null,{optional:!0}),this.scheduler?.notify(10)}).catch(s=>{o.use(n)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(t){Gr()};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),Pa=class{delegate;replay=[];\u0275type=1;constructor(r){this.delegate=r}use(r){if(this.delegate=r,this.replay!==null){for(let e of this.replay)e(r);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}get destroyNode(){return this.delegate.destroyNode}appendChild(r,e){this.delegate.appendChild(r,e)}insertBefore(r,e,t,n){this.delegate.insertBefore(r,e,t,n)}removeChild(r,e,t,n){this.delegate.removeChild(r,e,t,n)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,n){this.delegate.setAttribute(r,e,t,n)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,n){this.delegate.setStyle(r,e,t,n)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(r,e,t)),this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t,n){return this.shouldReplay(e)&&this.replay.push(o=>o.listen(r,e,t,n)),this.delegate.listen(r,e,t,n)}shouldReplay(r){return this.replay!==null&&r.startsWith(Jm)}},tf=new pe("");function ru(i="animations"){return Wn("NgAsyncAnimations"),Ni([{provide:$r,useFactory:()=>new ef(B(se),B(or),B(ke),i)},{provide:zl,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}])}var pu=(()=>{class i{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(t){return new(t||i)(C(Me),C(de))};static \u0275dir=De({type:i})}return i})(),nf=(()=>{class i extends pu{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275dir=De({type:i,features:[Z]})}return i})(),St=new pe("");var rf={provide:St,useExisting:wt(()=>Mn),multi:!0};function of(){let i=Bt()?Bt().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var sf=new pe(""),Mn=(()=>{class i extends pu{_compositionMode;_composing=!1;constructor(e,t,n){super(e,t),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!of())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(t){return new(t||i)(C(Me),C(de),C(sf,8))};static \u0275dir=De({type:i,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(t,n){t&1&&M("input",function(s){return n._handleInput(s.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(s){return n._compositionEnd(s.target.value)})},standalone:!1,features:[Ue([rf]),Z]})}return i})();var af=new pe(""),lf=new pe("");function hu(i){return i!=null}function mu(i){return Kn(i)?_t(i):i}function fu(i){let r={};return i.forEach(e=>{r=e!=null?F(F({},r),e):r}),Object.keys(r).length===0?null:r}function gu(i,r){return r.map(e=>e(i))}function cf(i){return!i.validate}function _u(i){return i.map(r=>cf(r)?r:e=>r.validate(e))}function df(i){if(!i)return null;let r=i.filter(hu);return r.length==0?null:function(e){return fu(gu(e,r))}}function yu(i){return i!=null?df(_u(i)):null}function uf(i){if(!i)return null;let r=i.filter(hu);return r.length==0?null:function(e){let t=gu(e,r).map(mu);return Ml(t).pipe(Ze(fu))}}function vu(i){return i!=null?uf(_u(i)):null}function ou(i,r){return i===null?[r]:Array.isArray(i)?[...i,r]:[i,r]}function pf(i){return i._rawValidators}function hf(i){return i._rawAsyncValidators}function Na(i){return i?Array.isArray(i)?i:[i]:[]}function qo(i,r){return Array.isArray(i)?i.includes(r):i===r}function su(i,r){let e=Na(r);return Na(i).forEach(n=>{qo(e,n)||e.push(n)}),e}function au(i,r){return Na(r).filter(e=>!qo(i,e))}var Yo=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=yu(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=vu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r=void 0){this.control&&this.control.reset(r)}hasError(r,e){return this.control?this.control.hasError(r,e):!1}getError(r,e){return this.control?this.control.getError(r,e):null}},Ba=class extends Yo{name;get formDirective(){return null}get path(){return null}},vi=class extends Yo{_parent=null;name=null;valueAccessor=null},Ha=class{_cd;constructor(r){this._cd=r}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var On=(()=>{class i extends Ha{constructor(e){super(e)}static \u0275fac=function(t){return new(t||i)(C(vi,2))};static \u0275dir=De({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){t&2&&xt("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[Z]})}return i})();var Ir="VALID",Ko="INVALID",Dn="PENDING",xr="DISABLED",rn=class{},Zo=class extends rn{value;source;constructor(r,e){super(),this.value=r,this.source=e}},Tr=class extends rn{pristine;source;constructor(r,e){super(),this.pristine=r,this.source=e}},Sr=class extends rn{touched;source;constructor(r,e){super(),this.touched=r,this.source=e}},En=class extends rn{status;source;constructor(r,e){super(),this.status=r,this.source=e}};var za=class extends rn{source;constructor(r){super(),this.source=r}};function mf(i){return(Qo(i)?i.validators:i)||null}function ff(i){return Array.isArray(i)?yu(i):i||null}function gf(i,r){return(Qo(r)?r.asyncValidators:i)||null}function _f(i){return Array.isArray(i)?vu(i):i||null}function Qo(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}var Ua=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(r,e){this._assignValidators(r),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get status(){return dt(this.statusReactive)}set status(r){dt(()=>this.statusReactive.set(r))}_status=Xt(()=>this.statusReactive());statusReactive=ze(void 0);get valid(){return this.status===Ir}get invalid(){return this.status===Ko}get pending(){return this.status==Dn}get disabled(){return this.status===xr}get enabled(){return this.status!==xr}errors;get pristine(){return dt(this.pristineReactive)}set pristine(r){dt(()=>this.pristineReactive.set(r))}_pristine=Xt(()=>this.pristineReactive());pristineReactive=ze(!0);get dirty(){return!this.pristine}get touched(){return dt(this.touchedReactive)}set touched(r){dt(()=>this.touchedReactive.set(r))}_touched=Xt(()=>this.touchedReactive());touchedReactive=ze(!1);get untouched(){return!this.touched}_events=new He;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._assignValidators(r)}setAsyncValidators(r){this._assignAsyncValidators(r)}addValidators(r){this.setValidators(su(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(su(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(au(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(au(r,this._rawAsyncValidators))}hasValidator(r){return qo(this._rawValidators,r)}hasAsyncValidator(r){return qo(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){let e=this.touched===!1;this.touched=!0;let t=r.sourceControl??this;this._parent&&!r.onlySelf&&this._parent.markAsTouched(be(F({},r),{sourceControl:t})),e&&r.emitEvent!==!1&&this._events.next(new Sr(!0,t))}markAllAsDirty(r={}){this.markAsDirty({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(r))}markAllAsTouched(r={}){this.markAsTouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(r))}markAsUntouched(r={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=r.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:t})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r,t),e&&r.emitEvent!==!1&&this._events.next(new Sr(!1,t))}markAsDirty(r={}){let e=this.pristine===!0;this.pristine=!1;let t=r.sourceControl??this;this._parent&&!r.onlySelf&&this._parent.markAsDirty(be(F({},r),{sourceControl:t})),e&&r.emitEvent!==!1&&this._events.next(new Tr(!1,t))}markAsPristine(r={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=r.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:r.emitEvent})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r,t),e&&r.emitEvent!==!1&&this._events.next(new Tr(!0,t))}markAsPending(r={}){this.status=Dn;let e=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new En(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.markAsPending(be(F({},r),{sourceControl:e}))}disable(r={}){let e=this._parentMarkedDirty(r.onlySelf);this.status=xr,this.errors=null,this._forEachChild(n=>{n.disable(be(F({},r),{onlySelf:!0}))}),this._updateValue();let t=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new Zo(this.value,t)),this._events.next(new En(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(be(F({},r),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(r={}){let e=this._parentMarkedDirty(r.onlySelf);this.status=Ir,this._forEachChild(t=>{t.enable(be(F({},r),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors(be(F({},r),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r,e){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ir||this.status===Dn)&&this._runAsyncValidator(t,r.emitEvent)}let e=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new Zo(this.value,e)),this._events.next(new En(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(be(F({},r),{sourceControl:e}))}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xr:Ir}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r,e){if(this.asyncValidator){this.status=Dn,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:r!==!1};let t=mu(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:r})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let r=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,r}return!1}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(r){let e=r;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,n)=>t&&t._find(n),this)}getError(r,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r,e,t){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),(r||t)&&this._events.next(new En(this.status,e)),this._parent&&this._parent._updateControlsErrors(r,e,t)}_initObservables(){this.valueChanges=new S,this.statusChanges=new S}_calculateStatus(){return this._allControlsDisabled()?xr:this.errors?Ko:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dn)?Dn:this._anyControlsHaveStatus(Ko)?Ko:Ir}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r,e){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!r.onlySelf&&this._parent._updatePristine(r,e),n&&this._events.next(new Tr(this.pristine,e))}_updateTouched(r={},e){this.touched=this._anyControlsTouched(),this._events.next(new Sr(this.touched,e)),this._parent&&!r.onlySelf&&this._parent._updateTouched(r,e)}_onDisabledChange=[];_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Qo(r)&&r.updateOn!=null&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){let e=this._parent&&this._parent.dirty;return!r&&!!e&&!this._parent._anyControlsDirty()}_find(r){return null}_assignValidators(r){this._rawValidators=Array.isArray(r)?r.slice():r,this._composedValidatorFn=ff(this._rawValidators)}_assignAsyncValidators(r){this._rawAsyncValidators=Array.isArray(r)?r.slice():r,this._composedAsyncValidatorFn=_f(this._rawAsyncValidators)}};var bu=new pe("",{factory:()=>ja}),ja="always";function yf(i,r){return[...r.path,i]}function vf(i,r,e=ja){Cf(i,r),r.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&r.valueAccessor.setDisabledState?.(i.disabled),wf(i,r),xf(i,r),If(i,r),bf(i,r)}function lu(i,r){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function bf(i,r){if(r.valueAccessor.setDisabledState){let e=t=>{r.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),r._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function Cf(i,r){let e=pf(i);r.validator!==null?i.setValidators(ou(e,r.validator)):typeof e=="function"&&i.setValidators([e]);let t=hf(i);r.asyncValidator!==null?i.setAsyncValidators(ou(t,r.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();lu(r._rawValidators,n),lu(r._rawAsyncValidators,n)}function wf(i,r){r.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Cu(i,r)})}function If(i,r){r.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Cu(i,r),i.updateOn!=="submit"&&i.markAsTouched()})}function Cu(i,r){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function xf(i,r){let e=(t,n)=>{r.valueAccessor.writeValue(t),n&&r.viewToModelUpdate(t)};i.registerOnChange(e),r._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function Tf(i,r){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(r,e.currentValue)}function Sf(i){return Object.getPrototypeOf(i.constructor)===nf}function Df(i,r){if(!r)return null;Array.isArray(r);let e,t,n;return r.forEach(o=>{o.constructor===Mn?e=o:Sf(o)?t=o:n=o}),n||t||e||null}function cu(i,r){let e=i.indexOf(r);e>-1&&i.splice(e,1)}function du(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Ef=class extends Ua{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(r=null,e,t){super(mf(e),gf(t,e)),this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Qo(e)&&(e.nonNullable||e.initialValueIsDefault)&&(du(r)?this.defaultValue=r.value:this.defaultValue=r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new za(this))}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){cu(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){cu(this._onDisabledChange,r)}_forEachChild(r){}_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(r){du(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}};var Mf={provide:vi,useExisting:wt(()=>ri)},uu=Promise.resolve(),ri=(()=>{class i extends vi{_changeDetectorRef;callSetDisabledState;control=new Ef;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new S;constructor(e,t,n,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Df(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Tf(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){vf(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){uu.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,n=t!==0&&I(t);uu.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?yf(e,this._parent):[e]}static \u0275fac=function(t){return new(t||i)(C(Ba,9),C(af,10),C(lf,10),C(St,10),C(ge,8),C(bu,8))};static \u0275dir=De({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Ue([Mf]),Z,Xe]})}return i})();var Of=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({})}return i})();var bi=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:bu,useValue:e.callSetDisabledState??ja}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[Of]})}return i})();var R=class i{static isArray(r,e=!0){return Array.isArray(r)&&(e||r.length!==0)}static isObject(r,e=!0){return typeof r=="object"&&!Array.isArray(r)&&r!=null&&(e||Object.keys(r).length!==0)}static equals(r,e,t){return t?this.resolveFieldData(r,t)===this.resolveFieldData(e,t):this.equalsByValue(r,e)}static equalsByValue(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){var t=Array.isArray(r),n=Array.isArray(e),o,s,a;if(t&&n){if(s=r.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.equalsByValue(r[o],e[o]))return!1;return!0}if(t!=n)return!1;var u=this.isDate(r),h=this.isDate(e);if(u!=h)return!1;if(u&&h)return r.getTime()==e.getTime();var y=r instanceof RegExp,w=e instanceof RegExp;if(y!=w)return!1;if(y&&w)return r.toString()==e.toString();var T=Object.keys(r);if(s=T.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,T[o]))return!1;for(o=s;o--!==0;)if(a=T[o],!this.equalsByValue(r[a],e[a]))return!1;return!0}return r!==r&&e!==e}static resolveFieldData(r,e){if(r&&e){if(this.isFunction(e))return e(r);if(e.indexOf(".")==-1)return r[e];{let t=e.split("."),n=r;for(let o=0,s=t.length;o<s;++o){if(n==null)return null;n=n[t[o]]}return n}}else return null}static isFunction(r){return!!(r&&r.constructor&&r.call&&r.apply)}static reorderArray(r,e,t){let n;r&&e!==t&&(t>=r.length&&(t%=r.length,e%=r.length),r.splice(t,0,r.splice(e,1)[0]))}static insertIntoOrderedArray(r,e,t,n){if(t.length>0){let o=!1;for(let s=0;s<t.length;s++)if(this.findIndexInList(t[s],n)>e){t.splice(s,0,r),o=!0;break}o||t.push(r)}else t.push(r)}static findIndexInList(r,e){let t=-1;if(e){for(let n=0;n<e.length;n++)if(e[n]==r){t=n;break}}return t}static contains(r,e){if(r!=null&&e&&e.length){for(let t of e)if(this.equals(r,t))return!0}return!1}static removeAccents(r){return r&&(r=r.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),r}static isDate(r){return Object.prototype.toString.call(r)==="[object Date]"}static isEmpty(r){return r==null||r===""||Array.isArray(r)&&r.length===0||!this.isDate(r)&&typeof r=="object"&&Object.keys(r).length===0}static isNotEmpty(r){return!this.isEmpty(r)}static compare(r,e,t,n=1){let o=-1,s=this.isEmpty(r),a=this.isEmpty(e);return s&&a?o=0:s?o=n:a?o=-n:typeof r=="string"&&typeof e=="string"?o=r.localeCompare(e,t,{numeric:!0}):o=r<e?-1:r>e?1:0,o}static sort(r,e,t=1,n,o=1){let s=i.compare(r,e,n,t),a=t;return(i.isEmpty(r)||i.isEmpty(e))&&(a=o===1?t:o),a*s}static merge(r,e){if(!(r==null&&e==null)){{if((r==null||typeof r=="object")&&(e==null||typeof e=="object"))return F(F({},r||{}),e||{});if((r==null||typeof r=="string")&&(e==null||typeof e=="string"))return[r||"",e||""].join(" ")}return e||r}}static isPrintableCharacter(r=""){return this.isNotEmpty(r)&&r.length===1&&r.match(/\S| /)}static getItemValue(r,...e){return this.isFunction(r)?r(...e):r}static findLastIndex(r,e){let t=-1;if(this.isNotEmpty(r))try{t=r.findLastIndex(e)}catch{t=r.lastIndexOf([...r].reverse().find(e))}return t}static findLast(r,e){let t;if(this.isNotEmpty(r))try{t=r.findLast(e)}catch{t=[...r].reverse().find(e)}return t}static deepEquals(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){var t=Array.isArray(r),n=Array.isArray(e),o,s,a;if(t&&n){if(s=r.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.deepEquals(r[o],e[o]))return!1;return!0}if(t!=n)return!1;var u=r instanceof Date,h=e instanceof Date;if(u!=h)return!1;if(u&&h)return r.getTime()==e.getTime();var y=r instanceof RegExp,w=e instanceof RegExp;if(y!=w)return!1;if(y&&w)return r.toString()==e.toString();var T=Object.keys(r);if(s=T.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,T[o]))return!1;for(o=s;o--!==0;)if(a=T[o],!this.deepEquals(r[a],e[a]))return!1;return!0}return r!==r&&e!==e}},wu=0;function ae(i="pn_id_"){return wu++,`${i}${wu}`}function Rf(){let i=[],r=(o,s)=>{let a=i.length>0?i[i.length-1]:{key:o,value:s},u=a.value+(a.key===o?0:s)+2;return i.push({key:o,value:u}),u},e=o=>{i=i.filter(s=>s.value!==o)},t=()=>i.length>0?i[i.length-1].value:0,n=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:n,set:(o,s,a)=>{s&&(s.style.zIndex=String(r(o,a)))},clear:o=>{o&&(e(n(o)),o.style.zIndex="")},getCurrent:()=>t()}}var qe=Rf();var Iu=["*"];var pt=(()=>{class i{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return i})(),$a=(()=>{class i{static AND="and";static OR="or"}return i})(),Xo=(()=>{class i{filter(e,t,n,o,s){let a=[];if(e)for(let u of e)for(let h of t){let y=R.resolveFieldData(u,h);if(this.filters[o](y,n,s)){a.push(u);break}}return a}filters={startsWith:(e,t,n)=>{if(t==null||t.trim()==="")return!0;if(e==null)return!1;let o=R.removeAccents(t.toString()).toLocaleLowerCase(n);return R.removeAccents(e.toString()).toLocaleLowerCase(n).slice(0,o.length)===o},contains:(e,t,n)=>{if(t==null||typeof t=="string"&&t.trim()==="")return!0;if(e==null)return!1;let o=R.removeAccents(t.toString()).toLocaleLowerCase(n);return R.removeAccents(e.toString()).toLocaleLowerCase(n).indexOf(o)!==-1},notContains:(e,t,n)=>{if(t==null||typeof t=="string"&&t.trim()==="")return!0;if(e==null)return!1;let o=R.removeAccents(t.toString()).toLocaleLowerCase(n);return R.removeAccents(e.toString()).toLocaleLowerCase(n).indexOf(o)===-1},endsWith:(e,t,n)=>{if(t==null||t.trim()==="")return!0;if(e==null)return!1;let o=R.removeAccents(t.toString()).toLocaleLowerCase(n),s=R.removeAccents(e.toString()).toLocaleLowerCase(n);return s.indexOf(o,s.length-o.length)!==-1},equals:(e,t,n)=>t==null||typeof t=="string"&&t.trim()===""?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()===t.getTime():e==t?!0:R.removeAccents(e.toString()).toLocaleLowerCase(n)==R.removeAccents(t.toString()).toLocaleLowerCase(n),notEquals:(e,t,n)=>t==null||typeof t=="string"&&t.trim()===""?!1:e==null?!0:e.getTime&&t.getTime?e.getTime()!==t.getTime():e==t?!1:R.removeAccents(e.toString()).toLocaleLowerCase(n)!=R.removeAccents(t.toString()).toLocaleLowerCase(n),in:(e,t)=>{if(t==null||t.length===0)return!0;for(let n=0;n<t.length;n++)if(R.equals(e,t[n]))return!0;return!1},between:(e,t)=>t==null||t[0]==null||t[1]==null?!0:e==null?!1:e.getTime?t[0].getTime()<=e.getTime()&&e.getTime()<=t[1].getTime():t[0]<=e&&e<=t[1],lt:(e,t,n)=>t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()<t.getTime():e<t,lte:(e,t,n)=>t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()<=t.getTime():e<=t,gt:(e,t,n)=>t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()>t.getTime():e>t,gte:(e,t,n)=>t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()>=t.getTime():e>=t,is:(e,t,n)=>this.filters.equals(e,t,n),isNot:(e,t,n)=>this.filters.notEquals(e,t,n),before:(e,t,n)=>this.filters.lt(e,t,n),after:(e,t,n)=>this.filters.gt(e,t,n),dateIs:(e,t)=>t==null?!0:e==null?!1:e.toDateString()===t.toDateString(),dateIsNot:(e,t)=>t==null?!0:e==null?!1:e.toDateString()!==t.toDateString(),dateBefore:(e,t)=>t==null?!0:e==null?!1:e.getTime()<t.getTime(),dateAfter:(e,t)=>{if(t==null)return!0;if(e==null)return!1;let n=new Date(e);return n.setHours(0,0,0,0),n.getTime()>t.getTime()}};register(e,t){this.filters[e]=t}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Ct=(()=>{class i{messageSource=new He;clearSource=new He;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),Rn=(()=>{class i{clickSource=new He;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Fe=(()=>{class i{ripple=!1;inputStyle=ze("outlined");overlayOptions={};csp=ze({nonce:void 0});filterMatchModeOptions={text:[pt.STARTS_WITH,pt.CONTAINS,pt.NOT_CONTAINS,pt.ENDS_WITH,pt.EQUALS,pt.NOT_EQUALS],numeric:[pt.EQUALS,pt.NOT_EQUALS,pt.LESS_THAN,pt.LESS_THAN_OR_EQUAL_TO,pt.GREATER_THAN,pt.GREATER_THAN_OR_EQUAL_TO],date:[pt.DATE_IS,pt.DATE_IS_NOT,pt.DATE_BEFORE,pt.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new He;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation=F(F({},this.translation),e),this.translationSource.next(this.translation)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Jo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=O({type:i,selectors:[["p-header"]],ngContentSelectors:Iu,decls:1,vars:0,template:function(t,n){t&1&&(nt(),Ge(0))},encapsulation:2})}return i})(),es=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=O({type:i,selectors:[["p-footer"]],ngContentSelectors:Iu,decls:1,vars:0,template:function(t,n){t&1&&(nt(),Ge(0))},encapsulation:2})}return i})(),me=(()=>{class i{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(t){return new(t||i)(C(ji))};static \u0275dir=De({type:i,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return i})(),ve=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({})}return i})(),je=(()=>{class i{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return i})();var Ff=["*",[["p-header"]],[["p-footer"]]],kf=["*","p-header","p-footer"];function Af(i,r){i&1&&P(0)}function Lf(i,r){if(i&1&&(f(0,"div",8),Ge(1,1),p(2,Af,1,0,"ng-container",6),m()),i&2){let e=d();c(2),l("ngTemplateOutlet",e.headerTemplate)}}function Vf(i,r){i&1&&P(0)}function Pf(i,r){if(i&1&&(f(0,"div",9),N(1),p(2,Vf,1,0,"ng-container",6),m()),i&2){let e=d();c(),Pe(" ",e.header," "),c(),l("ngTemplateOutlet",e.titleTemplate)}}function Nf(i,r){i&1&&P(0)}function Bf(i,r){if(i&1&&(f(0,"div",10),N(1),p(2,Nf,1,0,"ng-container",6),m()),i&2){let e=d();c(),Pe(" ",e.subheader," "),c(),l("ngTemplateOutlet",e.subtitleTemplate)}}function Hf(i,r){i&1&&P(0)}function zf(i,r){i&1&&P(0)}function Uf(i,r){if(i&1&&(f(0,"div",11),Ge(1,2),p(2,zf,1,0,"ng-container",6),m()),i&2){let e=d();c(2),l("ngTemplateOutlet",e.footerTemplate)}}var xu=(()=>{class i{el;header;subheader;set style(e){R.equals(this._style(),e)||this._style.set(e)}styleClass;headerFacet;footerFacet;templates;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_style=ze(null);constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.template;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}getBlockableElement(){return this.el.nativeElement.children[0]}static \u0275fac=function(t){return new(t||i)(C(de))};static \u0275cmp=O({type:i,selectors:[["p-card"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,Jo,5)(o,es,5)(o,me,4),t&2){let s;G(s=W())&&(n.headerFacet=s.first),G(s=W())&&(n.footerFacet=s.first),G(s=W())&&(n.templates=s)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},standalone:!1,ngContentSelectors:kf,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(t,n){t&1&&(nt(Ff),f(0,"div",0),p(1,Lf,3,1,"div",1),f(2,"div",2),p(3,Pf,3,2,"div",3)(4,Bf,3,2,"div",4),f(5,"div",5),Ge(6),p(7,Hf,1,0,"ng-container",6),m(),p(8,Uf,3,1,"div",7),m()()),t&2&&(E(n.styleClass),l("ngClass","p-card p-component")("ngStyle",n._style()),g("data-pc-name","card"),c(),l("ngIf",n.headerFacet||n.headerTemplate),c(2),l("ngIf",n.header||n.titleTemplate),c(),l("ngIf",n.subheader||n.subtitleTemplate),c(3),l("ngTemplateOutlet",n.contentTemplate),c(),l("ngIf",n.footerFacet||n.footerTemplate))},dependencies:[ye,_e,Ce,we],styles:[`@layer primeng{.p-card-header img{width:100%}}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Tu=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ve]})}return i})();var ts=(()=>{class i{el;ngModel;cd;config;variant="outlined";filled;constructor(e,t,n,o){this.el=e,this.ngModel=t,this.cd=n,this.config=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(t){return new(t||i)(C(de),C(ri,8),C(ge),C(Fe))};static \u0275dir=De({type:i,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function(t,n){t&1&&M("input",function(s){return n.onInput(s)}),t&2&&xt("p-filled",n.filled)("p-variant-filled",n.variant==="filled"||n.config.inputStyle()==="filled")},inputs:{variant:"variant"},standalone:!1})}return i})(),Fn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe]})}return i})();var _=(()=>{class i{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)}static addMultipleClasses(e,t){if(e&&t)if(e.classList){let n=t.trim().split(" ");for(let o=0;o<n.length;o++)e.classList.add(n[o])}else{let n=t.split(" ");for(let o=0;o<n.length;o++)e.className+=" "+n[o]}}static removeClass(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(e,t){e&&t&&[t].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(o=>this.removeClass(e,o)))}static hasClass(e,t){return e&&t?e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className):!1}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(t){return t!==e})}static find(e,t){return Array.from(e.querySelectorAll(t))}static findSingle(e,t){return this.isElement(e)?e.querySelector(t):null}static index(e){let t=e.parentNode.childNodes,n=0;for(var o=0;o<t.length;o++){if(t[o]==e)return n;t[o].nodeType==1&&n++}return-1}static indexWithinGroup(e,t){let n=e.parentNode?e.parentNode.childNodes:[],o=0;for(var s=0;s<n.length;s++){if(n[s]==e)return o;n[s].attributes&&n[s].attributes[t]&&n[s].nodeType==1&&o++}return-1}static appendOverlay(e,t,n="self"){n!=="self"&&e&&t&&this.appendChild(e,t)}static alignOverlay(e,t,n="self",o=!0){e&&t&&(o&&(e.style.minWidth=`${i.getOuterWidth(t)}px`),n==="self"?this.relativePosition(e,t):this.absolutePosition(e,t))}static relativePosition(e,t,n=!0){let o=le=>{if(le)return getComputedStyle(le).getPropertyValue("position")==="relative"?le:o(le.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=t.offsetHeight,u=t.getBoundingClientRect(),h=this.getWindowScrollTop(),y=this.getWindowScrollLeft(),w=this.getViewport(),D=o(e)?.getBoundingClientRect()||{top:-1*h,left:-1*y},k,z;u.top+a+s.height>w.height?(k=u.top-D.top-s.height,e.style.transformOrigin="bottom",u.top+k<0&&(k=-1*u.top)):(k=a+u.top-D.top,e.style.transformOrigin="top");let V=u.left+s.width-w.width,J=u.left-D.left;s.width>w.width?z=(u.left-D.left)*-1:V>0?z=J-V:z=u.left-D.left,e.style.top=k+"px",e.style.left=z+"px",n&&(e.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(e,t,n=!0){let o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,a=o.width,u=t.offsetHeight,h=t.offsetWidth,y=t.getBoundingClientRect(),w=this.getWindowScrollTop(),T=this.getWindowScrollLeft(),D=this.getViewport(),k,z;y.top+u+s>D.height?(k=y.top+w-s,e.style.transformOrigin="bottom",k<0&&(k=w)):(k=u+y.top+w,e.style.transformOrigin="top"),y.left+a>D.width?z=Math.max(0,y.left+T+h-a):z=y.left+T,e.style.top=k+"px",e.style.left=z+"px",n&&(e.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(e,t=[]){return e.parentNode===null?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}static getScrollableParents(e){let t=[];if(e){let n=this.getParents(e),o=/(auto|scroll)/,s=a=>{let u=window.getComputedStyle(a,null);return o.test(u.getPropertyValue("overflow"))||o.test(u.getPropertyValue("overflowX"))||o.test(u.getPropertyValue("overflowY"))};for(let a of n){let u=a.nodeType===1&&a.dataset.scrollselectors;if(u){let h=u.split(",");for(let y of h){let w=this.findSingle(a,y);w&&s(w)&&t.push(w)}}a.nodeType!==9&&s(a)&&t.push(a)}}return t}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementDimensions(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}static scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=n?parseFloat(n):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,u=e.getBoundingClientRect(),y=t.getBoundingClientRect().top+document.body.scrollTop-(u.top+document.body.scrollTop)-o-a,w=e.scrollTop,T=e.clientHeight,D=this.getOuterHeight(t);y<0?e.scrollTop=w+y:y+D>T&&(e.scrollTop=w+y-T+D)}static fadeIn(e,t){e.style.opacity=0;let n=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+(new Date().getTime()-n)/t,e.style.opacity=o,n=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,t){var n=1,o=50,s=t,a=o/s;let u=setInterval(()=>{n=n-a,n<=0&&(n=0,clearInterval(u)),e.style.opacity=n},o)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,t){var n=Element.prototype,o=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(s){return[].indexOf.call(document.querySelectorAll(s),this)!==-1};return o.call(e,t)}static getOuterWidth(e,t){let n=e.offsetWidth;if(t){let o=getComputedStyle(e);n+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return n}static getHorizontalPadding(e){let t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)}static getHorizontalMargin(e){let t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)}static innerWidth(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}static width(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}static getInnerHeight(e){let t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),t}static getOuterHeight(e,t){let n=e.offsetHeight;if(t){let o=getComputedStyle(e);n+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return n}static getHeight(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}static getWidth(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}static getViewport(){let e=window,t=document,n=t.documentElement,o=t.getElementsByTagName("body")[0],s=e.innerWidth||n.clientWidth||o.clientWidth,a=e.innerHeight||n.clientHeight||o.clientHeight;return{width:s,height:a}}static getOffset(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,t){let n=e.parentNode;if(!n)throw"Can't replace element";return n.replaceChild(t,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return!0;var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return!0}var s=e.indexOf("Edge/");return s>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,t){if(this.isElement(t))t.appendChild(e);else if(t&&t.el&&t.el.nativeElement)t.el.nativeElement.appendChild(e);else throw"Cannot append "+t+" to "+e}static removeChild(e,t){if(this.isElement(t))t.removeChild(e);else if(t.el&&t.el.nativeElement)t.el.nativeElement.removeChild(e);else throw"Cannot remove "+e+" from "+t}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}static calculateScrollbarWidth(e){if(e){let t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let n=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),this.calculatedScrollbarWidth=n,n}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t}static invokeElementMethod(e,t,n){e[t].apply(e,n)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||e.offsetParent===null}static isVisible(e){return e&&e.offsetParent!=null}static isExist(e){return e!==null&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,t){e&&document.activeElement!==e&&e.focus(t)}static getFocusableSelectorString(e=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
.p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
|
|
.p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`}static getFocusableElements(e,t=""){let n=this.find(e,this.getFocusableSelectorString(t)),o=[];for(let s of n){let a=getComputedStyle(s);this.isVisible(s)&&a.display!="none"&&a.visibility!="hidden"&&o.push(s)}return o}static getFocusableElement(e,t=""){let n=this.findSingle(e,this.getFocusableSelectorString(t));if(n){let o=getComputedStyle(n);if(this.isVisible(n)&&o.display!="none"&&o.visibility!="hidden")return n}return null}static getFirstFocusableElement(e,t=""){let n=this.getFocusableElements(e,t);return n.length>0?n[0]:null}static getLastFocusableElement(e,t){let n=this.getFocusableElements(e,t);return n.length>0?n[n.length-1]:null}static getNextFocusableElement(e,t=!1){let n=i.getFocusableElements(e),o=0;if(n&&n.length>0){let s=n.indexOf(n[0].ownerDocument.activeElement);t?s==-1||s===0?o=n.length-1:o=s-1:s!=-1&&s!==n.length-1&&(o=s+1)}return n[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,t){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return t?.nextElementSibling;case"@prev":return t?.previousElementSibling;case"@parent":return t?.parentElement;case"@grandparent":return t?.parentElement.parentElement;default:let n=typeof e;if(n==="string")return document.querySelector(e);if(n==="object"&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;let s=(a=>!!(a&&a.constructor&&a.call&&a.apply))(e)?e():e;return s&&s.nodeType===9||this.isExist(s)?s:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,t){if(e){let n=e.getAttribute(t);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}static createElement(e,t={},...n){if(e){let o=document.createElement(e);return this.setAttributes(o,t),o.append(...n),o}}static setAttribute(e,t="",n){this.isElement(e)&&n!==null&&n!==void 0&&e.setAttribute(t,n)}static setAttributes(e,t={}){if(this.isElement(e)){let n=(o,s)=>{let a=e?.$attrs?.[o]?[e?.$attrs?.[o]]:[];return[s].flat().reduce((u,h)=>{if(h!=null){let y=typeof h;if(y==="string"||y==="number")u.push(h);else if(y==="object"){let w=Array.isArray(h)?n(o,h):Object.entries(h).map(([T,D])=>o==="style"&&(D||D===0)?`${T.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${D}`:D?T:void 0);u=w.length?u.concat(w.filter(T=>!!T)):u}}return u},a)};Object.entries(t).forEach(([o,s])=>{if(s!=null){let a=o.match(/^on(.+)/);a?e.addEventListener(a[1].toLowerCase(),s):o==="pBind"?this.setAttributes(e,s):(s=o==="class"?[...new Set(n("class",s))].join(" ").trim():o==="style"?n("style",s).join(";").trim():s,(e.$attrs=e.$attrs||{})&&(e.$attrs[o]=s),e.setAttribute(o,s))}})}}static isFocusableElement(e,t=""){return this.isElement(e)?e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`):!1}}return i})(),Ci=class{element;listener;scrollableParents;constructor(r,e=()=>{}){this.element=r,this.listener=e}bindScrollListener(){this.scrollableParents=_.getScrollableParents(this.element);for(let r=0;r<this.scrollableParents.length;r++)this.scrollableParents[r].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let r=0;r<this.scrollableParents.length;r++)this.scrollableParents[r].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}};var Ut=(()=>{class i{autofocus=!1;focused=!1;platformId=B($e);document=B(se);host=B(de);ngAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}ngAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){Ve(this.platformId)&&this.autofocus&&setTimeout(()=>{let e=_.getFocusableElements(this.host?.nativeElement);e.length===0&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=De({type:i,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:[2,"autofocus","autofocus",I]}})}return i})(),di=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({})}return i})();var $f=["*"],te=(()=>{class i{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){let e=R.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=O({type:i,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:[2,"spin","spin",I],styleClass:"styleClass"},ngContentSelectors:$f,decls:1,vars:0,template:function(t,n){t&1&&(nt(),Ge(0))},encapsulation:2,changeDetection:0})}return i})();var ki=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["SpinnerIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var tt=(()=>{class i{document;platformId;renderer;el;zone;config;constructor(e,t,n,o,s,a){this.document=e,this.platformId=t,this.renderer=n,this.el=o,this.zone=s,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){Ve(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let t=this.getInk();if(!t||this.document.defaultView?.getComputedStyle(t,null).display==="none")return;if(_.removeClass(t,"p-ink-active"),!_.getHeight(t)&&!_.getWidth(t)){let a=Math.max(_.getOuterWidth(this.el.nativeElement),_.getOuterHeight(this.el.nativeElement));t.style.height=a+"px",t.style.width=a+"px"}let n=_.getOffset(this.el.nativeElement),o=e.pageX-n.left+this.document.body.scrollTop-_.getWidth(t)/2,s=e.pageY-n.top+this.document.body.scrollLeft-_.getHeight(t)/2;this.renderer.setStyle(t,"top",s+"px"),this.renderer.setStyle(t,"left",o+"px"),_.addClass(t,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&_.removeClass(a,"p-ink-active")},401)}getInk(){let e=this.el.nativeElement.children;for(let t=0;t<e.length;t++)if(typeof e[t].className=="string"&&e[t].className.indexOf("p-ink")!==-1)return e[t];return null}resetInk(){let e=this.getInk();e&&_.removeClass(e,"p-ink-active")}onAnimationEnd(e){this.timeout&&clearTimeout(this.timeout),_.removeClass(e.currentTarget,"p-ink-active")}create(){let e=this.renderer.createElement("span");this.renderer.addClass(e,"p-ink"),this.renderer.appendChild(this.el.nativeElement,e),this.renderer.setAttribute(e,"aria-hidden","true"),this.renderer.setAttribute(e,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(e,"animationend",this.onAnimationEnd.bind(this)))}remove(){let e=this.getInk();e&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,_.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}static \u0275fac=function(t){return new(t||i)(C(se),C($e),C(Me),C(de),C(ke),C(Fe,8))};static \u0275dir=De({type:i,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]})}return i})(),ht=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({})}return i})();var Gf=["*"],Du=i=>({class:i});function Wf(i,r){i&1&&P(0)}function Kf(i,r){if(i&1&&x(0,"span",8),i&2){let e=d(3);l("ngClass",e.iconClass()),g("aria-hidden",!0)("data-pc-section","loadingicon")}}function qf(i,r){if(i&1&&x(0,"SpinnerIcon",9),i&2){let e=d(3);l("styleClass",e.spinnerIconClass())("spin",!0),g("aria-hidden",!0)("data-pc-section","loadingicon")}}function Yf(i,r){if(i&1&&(A(0),p(1,Kf,1,3,"span",6)(2,qf,1,4,"SpinnerIcon",7),L()),i&2){let e=d(2);c(),l("ngIf",e.loadingIcon),c(),l("ngIf",!e.loadingIcon)}}function Zf(i,r){}function Qf(i,r){if(i&1&&p(0,Zf,0,0,"ng-template",10),i&2){let e=d(2);l("ngIf",e.loadingIconTemplate)}}function Xf(i,r){if(i&1&&(A(0),p(1,Yf,3,2,"ng-container",2)(2,Qf,1,1,null,5),L()),i&2){let e=d();c(),l("ngIf",!e.loadingIconTemplate),c(),l("ngTemplateOutlet",e.loadingIconTemplate)("ngTemplateOutletContext",Q(3,Du,e.iconClass()))}}function Jf(i,r){if(i&1&&x(0,"span",8),i&2){let e=d(2);E(e.icon),l("ngClass",e.iconClass()),g("data-pc-section","icon")}}function e0(i,r){}function t0(i,r){if(i&1&&p(0,e0,0,0,"ng-template",10),i&2){let e=d(2);l("ngIf",!e.icon&&e.iconTemplate)}}function i0(i,r){if(i&1&&(A(0),p(1,Jf,1,4,"span",11)(2,t0,1,1,null,5),L()),i&2){let e=d();c(),l("ngIf",e.icon&&!e.iconTemplate),c(),l("ngTemplateOutlet",e.iconTemplate)("ngTemplateOutletContext",Q(3,Du,e.iconClass()))}}function n0(i,r){if(i&1&&(f(0,"span",12),N(1),m()),i&2){let e=d();g("aria-hidden",e.icon&&!e.label)("data-pc-section","label"),c(),ce(e.label)}}function r0(i,r){if(i&1&&(f(0,"span",8),N(1),m()),i&2){let e=d();E(e.badgeClass),l("ngClass",e.badgeStyleClass()),g("data-pc-section","badge"),c(),ce(e.badge)}}var Ai={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"},jt=(()=>{class i{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}severity;raised=!1;rounded=!1;text=!1;outlined=!1;size=null;plain=!1;_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(Ai);spinnerIcon=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" class="p-icon-spin">
|
|
<g clip-path="url(#clip0_417_21408)">
|
|
<path
|
|
d="M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z"
|
|
fill="currentColor"
|
|
/>
|
|
</g>
|
|
<defs>
|
|
<clipPath id="clip0_417_21408">
|
|
<rect width="14" height="14" fill="white" />
|
|
</clipPath>
|
|
</defs>
|
|
</svg>`;constructor(e,t){this.el=e,this.document=t}ngAfterViewInit(){_.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let e=[Ai.button,Ai.component];return this.icon&&!this.label&&R.isEmpty(this.htmlElement.textContent)&&e.push(Ai.iconOnly),this.loading&&(e.push(Ai.disabled,Ai.loading),!this.icon&&this.label&&e.push(Ai.labelOnly),this.icon&&!this.label&&!R.isEmpty(this.htmlElement.textContent)&&e.push(Ai.iconOnly)),this.text&&e.push("p-button-text"),this.severity&&e.push(`p-button-${this.severity}`),this.plain&&e.push("p-button-plain"),this.raised&&e.push("p-button-raised"),this.size&&e.push(`p-button-${this.size}`),this.outlined&&e.push("p-button-outlined"),this.rounded&&e.push("p-button-rounded"),this.size==="small"&&e.push("p-button-sm"),this.size==="large"&&e.push("p-button-lg"),e}setStyleClass(){let e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(!_.findSingle(this.htmlElement,".p-button-label")&&this.label){let t=this.document.createElement("span");this.icon&&!this.label&&t.setAttribute("aria-hidden","true"),t.className="p-button-label",t.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(t)}}createIcon(){if(!_.findSingle(this.htmlElement,".p-button-icon")&&(this.icon||this.loading)){let t=this.document.createElement("span");t.className="p-button-icon",t.setAttribute("aria-hidden","true");let n=this.label?"p-button-icon-"+this.iconPos:null;n&&_.addClass(t,n);let o=this.getIconClass();o&&_.addMultipleClasses(t,o),!this.loadingIcon&&this.loading&&(t.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(t,this.htmlElement.firstChild)}}updateLabel(){let e=_.findSingle(this.htmlElement,".p-button-label");if(!this.label){e&&this.htmlElement.removeChild(e);return}e?e.textContent=this.label:this.createLabel()}updateIcon(){let e=_.findSingle(this.htmlElement,".p-button-icon"),t=_.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?this.iconPos?e.className="p-button-icon "+(t?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():e.className="p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(t){return new(t||i)(C(de),C(se))};static \u0275dir=De({type:i,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading",severity:"severity",raised:[2,"raised","raised",I],rounded:[2,"rounded","rounded",I],text:[2,"text","text",I],outlined:[2,"outlined","outlined",I],size:"size",plain:[2,"plain","plain",I]}})}return i})(),Mr=(()=>{class i{el;type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;style;styleClass;badgeClass;ariaLabel;autofocus;onClick=new S;onFocus=new S;onBlur=new S;contentTemplate;loadingIconTemplate;iconTemplate;templates;constructor(e){this.el=e}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,e])=>!!e).reduce((e,[t])=>e+` ${t}`,"p-button-loading-icon")}iconClass(){return{[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]:this.loading,"p-button-icon":!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label}}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":(this.iconPos==="top"||this.iconPos==="bottom")&&this.label,"p-disabled":this.disabled||this.loading,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&this.iconPos==="left","p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":this.size==="small","p-button-lg":this.size==="large","p-button-plain":this.plain,[`${this.styleClass}`]:this.styleClass}}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"icon":this.iconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&String(this.badge).length===1}}static \u0275fac=function(t){return new(t||i)(C(de))};static \u0275cmp=O({type:i,selectors:[["p-button"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},hostAttrs:[1,"p-element"],hostVars:2,hostBindings:function(t,n){t&2&&xt("p-disabled",n.disabled)},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[2,"disabled","disabled",I],loading:[2,"loading","loading",I],loadingIcon:"loadingIcon",raised:[2,"raised","raised",I],rounded:[2,"rounded","rounded",I],text:[2,"text","text",I],plain:[2,"plain","plain",I],severity:"severity",outlined:[2,"outlined","outlined",I],link:[2,"link","link",I],tabindex:[2,"tabindex","tabindex",X],size:"size",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",I]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:Gf,decls:7,vars:14,consts:[["pRipple","","pAutoFocus","",3,"click","focus","blur","ngStyle","disabled","ngClass","autofocus"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[3,"ngIf"],[3,"class","ngClass",4,"ngIf"],[1,"p-button-label"]],template:function(t,n){t&1&&(nt(),f(0,"button",0),M("click",function(s){return n.onClick.emit(s)})("focus",function(s){return n.onFocus.emit(s)})("blur",function(s){return n.onBlur.emit(s)}),Ge(1),p(2,Wf,1,0,"ng-container",1)(3,Xf,3,5,"ng-container",2)(4,i0,3,5,"ng-container",2)(5,n0,2,3,"span",3)(6,r0,2,5,"span",4),m()),t&2&&(l("ngStyle",n.style)("disabled",n.disabled||n.loading)("ngClass",n.buttonClass)("autofocus",n.autofocus),g("type",n.type)("aria-label",n.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",n.tabindex),c(2),l("ngTemplateOutlet",n.contentTemplate),c(),l("ngIf",n.loading),c(),l("ngIf",!n.loading),c(),l("ngIf",!n.contentTemplate&&n.label),c(),l("ngIf",!n.contentTemplate&&n.badge))},dependencies:[_e,Ce,we,ye,tt,Ut,ki],encapsulation:2,changeDetection:0})}return i})(),mt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[Mr,ve]})}return i})();var Dt=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["CheckIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var kn=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["ExclamationTriangleIcon"]],features:[Z],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1)(3,"path",2)(4,"path",3),j(),U(5,"defs")(6,"clipPath",4),$(7,"rect",5),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(5),Ee("id",n.pathId))},encapsulation:2})}return i})();var An=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["InfoCircleIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Ye=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["TimesIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var Ln=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["TimesCircleIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Eu=["container"],o0=i=>[i,"p-toast-message"],s0=(i,r,e,t)=>({showTransformParams:i,hideTransformParams:r,showTransitionParams:e,hideTransitionParams:t}),a0=i=>({value:"visible",params:i}),l0=(i,r)=>({$implicit:i,closeFn:r}),c0=i=>({$implicit:i});function d0(i,r){i&1&&P(0)}function u0(i,r){if(i&1&&(A(0),p(1,d0,1,0,"ng-container",4),L()),i&2){let e=d();c(),l("ngTemplateOutlet",e.headlessTemplate)("ngTemplateOutletContext",Se(2,l0,e.message,e.onCloseIconClick))}}function p0(i,r){if(i&1&&x(0,"span"),i&2){let e=d(3);E("p-toast-message-icon pi "+e.message.icon)}}function h0(i,r){i&1&&x(0,"CheckIcon"),i&2&&g("aria-hidden",!0)("data-pc-section","icon")}function m0(i,r){i&1&&x(0,"InfoCircleIcon"),i&2&&g("aria-hidden",!0)("data-pc-section","icon")}function f0(i,r){i&1&&x(0,"TimesCircleIcon"),i&2&&g("aria-hidden",!0)("data-pc-section","icon")}function g0(i,r){i&1&&x(0,"ExclamationTriangleIcon"),i&2&&g("aria-hidden",!0)("data-pc-section","icon")}function _0(i,r){if(i&1&&(f(0,"span",13),A(1),p(2,h0,1,2,"CheckIcon",6)(3,m0,1,2,"InfoCircleIcon",6)(4,f0,1,2,"TimesCircleIcon",6)(5,g0,1,2,"ExclamationTriangleIcon",6),L(),m()),i&2){let e=d(3);g("aria-hidden",!0)("data-pc-section","icon"),c(2),l("ngIf",e.message.severity==="success"),c(),l("ngIf",e.message.severity==="info"),c(),l("ngIf",e.message.severity==="error"),c(),l("ngIf",e.message.severity==="warn")}}function y0(i,r){if(i&1&&(A(0),p(1,p0,1,2,"span",8)(2,_0,6,6,"span",9),f(3,"div",10)(4,"div",11),N(5),m(),f(6,"div",12),N(7),m()(),L()),i&2){let e=d(2);c(),l("ngIf",e.message.icon),c(),l("ngIf",!e.message.icon),c(),g("data-pc-section","text"),c(),g("data-pc-section","summary"),c(),ce(e.message.summary),c(),g("data-pc-section","detail"),c(),ce(e.message.detail)}}function v0(i,r){i&1&&P(0)}function b0(i,r){if(i&1&&x(0,"span"),i&2){let e=d(3);E("pt-1 text-base p-toast-message-icon pi "+e.message.closeIcon)}}function C0(i,r){i&1&&x(0,"TimesIcon",16),i&2&&(l("styleClass","p-toast-icon-close-icon"),g("aria-hidden",!0)("data-pc-section","closeicon"))}function w0(i,r){if(i&1){let e=H();f(0,"button",14),M("click",function(n){v(e);let o=d(2);return b(o.onCloseIconClick(n))})("keydown.enter",function(n){v(e);let o=d(2);return b(o.onCloseIconClick(n))}),p(1,b0,1,2,"span",8)(2,C0,1,3,"TimesIcon",15),m()}if(i&2){let e=d(2);g("aria-label",e.closeAriaLabel)("data-pc-section","closebutton"),c(),l("ngIf",e.message.closeIcon),c(),l("ngIf",!e.message.closeIcon)}}function I0(i,r){if(i&1&&(f(0,"div",5),p(1,y0,8,7,"ng-container",6)(2,v0,1,0,"ng-container",4)(3,w0,3,4,"button",7),m()),i&2){let e=d();l("ngClass",e.message==null?null:e.message.contentStyleClass),g("data-pc-section","content"),c(),l("ngIf",!e.template),c(),l("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Q(6,c0,e.message)),c(),l("ngIf",(e.message==null?null:e.message.closable)!==!1)}}function x0(i,r){if(i&1){let e=H();f(0,"p-toastItem",3),M("onClose",function(n){v(e);let o=d();return b(o.onMessageClose(n))})("@toastAnimation.start",function(n){v(e);let o=d();return b(o.onAnimationStart(n))})("@toastAnimation.done",function(n){v(e);let o=d();return b(o.onAnimationEnd(n))}),m()}if(i&2){let e=r.$implicit,t=r.index,n=d();l("message",e)("index",t)("life",n.life)("template",n.template)("headlessTemplate",n.headlessTemplate)("@toastAnimation",void 0)("showTransformOptions",n.showTransformOptions)("hideTransformOptions",n.hideTransformOptions)("showTransitionOptions",n.showTransitionOptions)("hideTransitionOptions",n.hideTransitionOptions)}}var T0=(()=>{class i{zone;config;message;index;life;template;headlessTemplate;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new S;containerViewChild;timeout;constructor(e,t){this.zone=e,this.config=t}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message?.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message?.life||this.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick=e=>{this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),e.preventDefault()};get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}ngOnDestroy(){this.clearTimeout()}static \u0275fac=function(t){return new(t||i)(C(ke),C(Fe))};static \u0275cmp=O({type:i,selectors:[["p-toastItem"]],viewQuery:function(t,n){if(t&1&&We(Eu,5),t&2){let o;G(o=W())&&(n.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:[2,"index","index",X],life:[2,"life","life",X],template:"template",headlessTemplate:"headlessTemplate",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},standalone:!1,decls:5,vars:18,consts:[["container",""],["notHeadless",""],["role","alert","aria-live","assertive","aria-atomic","true",3,"mouseenter","mouseleave","ngClass"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"class",4,"ngIf"],["class","p-toast-message-icon",4,"ngIf"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],[1,"p-toast-message-icon"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(t,n){if(t&1){let o=H();f(0,"div",2,0),M("mouseenter",function(){return v(o),b(n.onMouseEnter())})("mouseleave",function(){return v(o),b(n.onMouseLeave())}),p(2,u0,2,5,"ng-container",3)(3,I0,4,8,"ng-template",null,1,Le),m()}if(t&2){let o=Te(4);E(n.message==null?null:n.message.styleClass),l("ngClass",Q(9,o0,"p-toast-message-"+(n.message==null?null:n.message.severity)))("@messageState",Q(16,a0,pi(11,s0,n.showTransformOptions,n.hideTransformOptions,n.showTransitionOptions,n.hideTransitionOptions))),g("id",n.message==null?null:n.message.id)("data-pc-name","toast")("data-pc-section","root"),c(2),l("ngIf",n.headlessTemplate)("ngIfElse",o)}},dependencies:()=>[ye,_e,Ce,tt,Dt,An,Ln,kn,Ye],encapsulation:2,data:{animation:[Nt("messageState",[Yn("visible",Je({transform:"translateY(0)",opacity:1})),ot("void => *",[Je({transform:"{{showTransformParams}}",opacity:0}),ut("{{showTransitionParams}}")]),ot("* => void",[ut("{{hideTransitionParams}}",Je({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return i})(),Vn=(()=>{class i{document;renderer;messageService;cd;config;key;autoZIndex=!0;baseZIndex=0;life=3e3;style;styleClass;get position(){return this._position}set position(e){this._position=e,this.cd.markForCheck()}preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";hideTransitionOptions="250ms ease-in";breakpoints;onClose=new S;containerViewChild;templates;messageSubscription;clearSubscription;messages;messagesArchieve;template;headlessTemplate;_position="top-right";constructor(e,t,n,o,s){this.document=e,this.renderer=t,this.messageService=n,this.cd=o,this.config=s}styleElement;id=ae();ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(Array.isArray(e)){let t=e.filter(n=>this.canAdd(n));this.add(t)}else this.canAdd(e)&&this.add([e])}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(e){this.messages=this.messages?[...this.messages,...e]:[...e],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...e]:[...e]),this.cd.markForCheck()}canAdd(e){let t=this.key===e.key;return t&&this.preventOpenDuplicates&&(t=!this.containsMessage(this.messages,e)),t&&this.preventDuplicates&&(t=!this.containsMessage(this.messagesArchieve,e)),t}containsMessage(e,t){return e?e.find(n=>n.summary===t.summary&&n.detail==t.detail&&n.severity===t.severity)!=null:!1}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"message":this.template=e.template;break;case"headless":this.headlessTemplate=e.template;break;default:this.template=e.template;break}})}onMessageClose(e){this.messages?.splice(e.index,1),this.onClose.emit({message:e.message}),this.cd.detectChanges()}onAnimationStart(e){e.fromState==="void"&&(this.renderer.setAttribute(this.containerViewChild?.nativeElement,this.id,""),this.autoZIndex&&this.containerViewChild?.nativeElement.style.zIndex===""&&qe.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){e.toState==="void"&&this.autoZIndex&&R.isEmpty(this.messages)&&qe.clear(this.containerViewChild?.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let t in this.breakpoints){let n="";for(let o in this.breakpoints[t])n+=o+":"+this.breakpoints[t][o]+" !important;";e+=`
|
|
@media screen and (max-width: ${t}) {
|
|
.p-toast[${this.id}] {
|
|
${n}
|
|
}
|
|
}
|
|
`}this.renderer.setProperty(this.styleElement,"innerHTML",e),_.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&qe.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}static \u0275fac=function(t){return new(t||i)(C(se),C(Me),C(Ct),C(ge),C(Fe))};static \u0275cmp=O({type:i,selectors:[["p-toast"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(Eu,5),t&2){let o;G(o=W())&&(n.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",I],baseZIndex:[2,"baseZIndex","baseZIndex",X],life:[2,"life","life",X],style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:[2,"preventOpenDuplicates","preventOpenDuplicates",I],preventDuplicates:[2,"preventDuplicates","preventDuplicates",I],showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},standalone:!1,decls:3,vars:5,consts:[["container",""],[1,"p-toast","p-component",3,"ngClass","ngStyle"],[3,"message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"onClose","message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions"]],template:function(t,n){t&1&&(f(0,"div",1,0),p(2,x0,1,10,"p-toastItem",2),m()),t&2&&(E(n.styleClass),l("ngClass","p-toast-"+n._position)("ngStyle",n.style),c(2),l("ngForOf",n.messages))},dependencies:[ye,Ke,we,T0],styles:[`@layer primeng{.p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;flex:none}.p-toast-icon-close.p-link{cursor:pointer}}
|
|
`],encapsulation:2,data:{animation:[Nt("toastAnimation",[ot(":enter, :leave",[Rs("@*",Os())])])]},changeDetection:0})}return i})(),Pn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ht,Dt,An,Ln,kn,Ye,ve]})}return i})();var Li=class i{constructor(r,e){this.http=r;this.router=e}apiUrl="/ocrb/api";login(r,e){return this.http.post(`${this.apiUrl}/login`,{username:r,password:e}).pipe(Wt(t=>{t.token&&localStorage.setItem("token",t.token)}))}logout(){localStorage.removeItem("token"),this.router.navigate(["/login"])}isLoggedIn(){return!!localStorage.getItem("token")}static \u0275fac=function(e){return new(e||i)(re(si),re(bt))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})};var S0=()=>({width:"360px"}),is=class i{constructor(r,e,t){this.auth=r;this.router=e;this.messageService=t}username="";password="";onLogin(){this.auth.login(this.username,this.password).subscribe({next:()=>{this.router.navigate(["/"])},error:()=>{this.messageService.add({severity:"error",summary:"Error",detail:"Invalid Credentials"})}})}static \u0275fac=function(e){return new(e||i)(C(Li),C(bt),C(Ct))};static \u0275cmp=O({type:i,selectors:[["app-login"]],features:[Ue([Ct])],decls:15,vars:5,consts:[[1,"login-container"],["header","OCR Admin Login","styleClass","p-card-shadow"],[1,"field","mt-4"],[1,"p-float-label"],["id","username","type","text","pInputText","",1,"w-full",3,"ngModelChange","ngModel"],["for","username"],["id","password","type","password","pInputText","",1,"w-full",3,"ngModelChange","ngModel"],["for","password"],[1,"mt-4"],["label","Sign In","icon","pi pi-user","styleClass","w-full",3,"onClick"]],template:function(e,t){e&1&&(f(0,"div",0)(1,"p-card",1)(2,"div",2)(3,"span",3)(4,"input",4),Qt("ngModelChange",function(o){return Zt(t.username,o)||(t.username=o),o}),m(),f(5,"label",5),N(6,"Username"),m()()(),f(7,"div",2)(8,"span",3)(9,"input",6),Qt("ngModelChange",function(o){return Zt(t.password,o)||(t.password=o),o}),m(),f(10,"label",7),N(11,"Password"),m()()(),f(12,"div",8)(13,"p-button",9),M("onClick",function(){return t.onLogin()}),m()()(),x(14,"p-toast"),m()),e&2&&(c(),rt(Qe(4,S0)),c(3),Yt("ngModel",t.username),c(5),Yt("ngModel",t.password))},dependencies:[oe,bi,Mn,On,ri,Tu,xu,Fn,ts,mt,Mr,Pn,Vn],styles:[".login-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100vh;background:var(--surface-card)}.w-full[_ngcontent-%COMP%]{width:100%}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem}"]})};var Nn=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["AngleDownIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var Bn=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["AngleRightIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var Ka=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["BarsIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var rs=(()=>{class i{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:ae()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,t,n,o,s,a){this.platformId=e,this.el=t,this.zone=n,this.config=o,this.renderer=s,this.viewContainer=a}ngAfterViewInit(){Ve(this.platformId)&&this.zone.runOutsideAngular(()=>{let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),e==="focus"||e==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let t=this.el.nativeElement.querySelector(".p-component");t||(t=this.getTarget(this.el.nativeElement)),t.addEventListener("focus",this.focusListener),t.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions=F(F({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.isAutoHide()?this.deactivate():!(_.hasClass(e.relatedTarget,"p-tooltip")||_.hasClass(e.relatedTarget,"p-tooltip-text")||_.hasClass(e.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?_.appendChild(this.container,this.el.nativeElement):_.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let e=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(e,"mouseleave",t=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&this.align()},100):this.align(),_.fadeIn(this.container,250),this.getOption("tooltipZIndex")==="auto"?qe.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&qe.clear(this.container),this.remove()}updateText(){let e=this.getOption("tooltipLabel");if(e instanceof ji){let t=this.viewContainer.createEmbeddedView(e);t.detectChanges(),t.rootNodes.forEach(n=>this.tooltipText.appendChild(n))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break}}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let e=this.el.nativeElement.getBoundingClientRect(),t=e.left+_.getWindowScrollLeft(),n=e.top+_.getWindowScrollTop();return{left:t,top:n}}else return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.activeElement,t=this.getHostOffset(),n=t.left+_.getOuterWidth(e),o=t.top+(_.getOuterHeight(e)-_.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}get activeElement(){return this.el.nativeElement.nodeName.includes("P-")?_.findSingle(this.el.nativeElement,".p-component")||this.el.nativeElement:this.el.nativeElement}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),t=e.left-_.getOuterWidth(this.container),n=e.top+(_.getOuterHeight(this.el.nativeElement)-_.getOuterHeight(this.container))/2;this.container.style.left=t+this.getOption("positionLeft")+"px",this.container.style.top=n+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),t=e.left+(_.getOuterWidth(this.el.nativeElement)-_.getOuterWidth(this.container))/2,n=e.top-_.getOuterHeight(this.container);this.container.style.left=t+this.getOption("positionLeft")+"px",this.container.style.top=n+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),t=e.left+(_.getOuterWidth(this.el.nativeElement)-_.getOuterWidth(this.container))/2,n=e.top+_.getOuterHeight(this.el.nativeElement);this.container.style.left=t+this.getOption("positionLeft")+"px",this.container.style.top=n+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=F(F({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return _.hasClass(e,"p-inputwrapper")?_.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let t="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?t+" "+this.getOption("tooltipStyleClass"):t}isOutOfBounds(){let e=this.container.getBoundingClientRect(),t=e.top,n=e.left,o=_.getOuterWidth(this.container),s=_.getOuterHeight(this.container),a=_.getViewport();return n+o>a.width||n<0||t<0||t+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ci(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),e==="focus"||e==="both"){let t=this.el.nativeElement.querySelector(".p-component");t||(t=this.getTarget(this.el.nativeElement)),t.removeEventListener("focus",this.focusListener),t.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):_.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&qe.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(t){return new(t||i)(C($e),C(de),C(ke),C(Fe),C(Me),C(Ti))};static \u0275dir=De({type:i,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(t,n){t&1&&M("keydown.escape",function(s){return n.onPressEscape(s)},Zl)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",I],showDelay:[2,"showDelay","showDelay",X],hideDelay:[2,"hideDelay","hideDelay",X],life:[2,"life","life",X],positionTop:[2,"positionTop","positionTop",X],positionLeft:[2,"positionLeft","positionLeft",X],autoHide:[2,"autoHide","autoHide",I],fitContent:[2,"fitContent","fitContent",I],hideOnEscape:[2,"hideOnEscape","hideOnEscape",I],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},standalone:!1,features:[Xe]})}return i})(),Or=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe]})}return i})();var D0=["menubar"],E0=(i,r)=>({"p-submenu-list":i,"p-menubar-root-list":r}),Ou=i=>({"p-menuitem-link":!0,"p-disabled":i}),M0=()=>({exact:!1}),O0=(i,r)=>({$implicit:i,root:r});function R0(i,r){if(i&1&&x(0,"li",8),i&2){let e=d().$implicit,t=d();rt(t.getItemProp(e,"style")),l("ngClass",t.getSeparatorItemClass(e)),g("id",t.getItemId(e))("data-pc-section","separator")}}function F0(i,r){if(i&1&&x(0,"span",19),i&2){let e=d(4).$implicit,t=d();l("ngClass",t.getItemProp(e,"icon"))("ngStyle",t.getItemProp(e,"iconStyle")),g("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function k0(i,r){if(i&1&&(f(0,"span",20),N(1),m()),i&2){let e=d(4).$implicit,t=d();l("id",t.getItemLabelId(e)),g("data-pc-section","label"),c(),Pe(" ",t.getItemLabel(e)," ")}}function A0(i,r){if(i&1&&x(0,"span",21),i&2){let e=d(4).$implicit,t=d();l("innerHTML",t.getItemLabel(e),xi)("id",t.getItemLabelId(e)),g("data-pc-section","label")}}function L0(i,r){if(i&1&&(f(0,"span",22),N(1),m()),i&2){let e=d(4).$implicit,t=d();l("ngClass",t.getItemProp(e,"badgeStyleClass")),c(),ce(t.getItemProp(e,"badge"))}}function V0(i,r){i&1&&x(0,"AngleDownIcon",25),i&2&&(l("styleClass","p-submenu-icon"),g("data-pc-section","submenuicon")("aria-hidden",!0))}function P0(i,r){i&1&&x(0,"AngleRightIcon",25),i&2&&(l("styleClass","p-submenu-icon"),g("data-pc-section","submenuicon")("aria-hidden",!0))}function N0(i,r){if(i&1&&(A(0),p(1,V0,1,3,"AngleDownIcon",24)(2,P0,1,3,"AngleRightIcon",24),L()),i&2){let e=d(6);c(),l("ngIf",e.root),c(),l("ngIf",!e.root)}}function B0(i,r){}function H0(i,r){i&1&&p(0,B0,0,0,"ng-template",26),i&2&&(l("data-pc-section","submenuicon"),Ds("aria-hidden",!0))}function z0(i,r){if(i&1&&(A(0),p(1,N0,3,2,"ng-container",11)(2,H0,1,2,null,23),L()),i&2){let e=d(5);c(),l("ngIf",!e.submenuIconTemplate),c(),l("ngTemplateOutlet",e.submenuIconTemplate)}}function U0(i,r){if(i&1&&(f(0,"a",15),p(1,F0,1,5,"span",16)(2,k0,2,3,"span",17)(3,A0,1,3,"ng-template",null,2,Le)(5,L0,2,2,"span",18)(6,z0,3,2,"ng-container",11),m()),i&2){let e=Te(4),t=d(3).$implicit,n=d();l("target",n.getItemProp(t,"target"))("ngClass",Q(12,Ou,n.getItemProp(t,"disabled"))),g("href",n.getItemProp(t,"url"),zi)("aria-hidden",!0)("data-automationid",n.getItemProp(t,"automationId"))("data-pc-section","action")("tabindex",-1),c(),l("ngIf",n.getItemProp(t,"icon")),c(),l("ngIf",n.getItemProp(t,"escape"))("ngIfElse",e),c(3),l("ngIf",n.getItemProp(t,"badge")),c(),l("ngIf",n.isItemGroup(t))}}function j0(i,r){if(i&1&&x(0,"span",19),i&2){let e=d(4).$implicit,t=d();l("ngClass",t.getItemProp(e,"icon"))("ngStyle",t.getItemProp(e,"iconStyle")),g("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function $0(i,r){if(i&1&&(f(0,"span",29),N(1),m()),i&2){let e=d(4).$implicit,t=d();c(),ce(t.getItemLabel(e))}}function G0(i,r){if(i&1&&x(0,"span",30),i&2){let e=d(4).$implicit,t=d();l("innerHTML",t.getItemLabel(e),xi),g("data-pc-section","label")}}function W0(i,r){if(i&1&&(f(0,"span",22),N(1),m()),i&2){let e=d(4).$implicit,t=d();l("ngClass",t.getItemProp(e,"badgeStyleClass")),c(),ce(t.getItemProp(e,"badge"))}}function K0(i,r){i&1&&x(0,"AngleDownIcon",25),i&2&&(l("styleClass","p-submenu-icon"),g("data-pc-section","submenuicon")("aria-hidden",!0))}function q0(i,r){i&1&&x(0,"AngleRightIcon",25),i&2&&(l("styleClass","p-submenu-icon"),g("data-pc-section","submenuicon")("aria-hidden",!0))}function Y0(i,r){if(i&1&&(A(0),p(1,K0,1,3,"AngleDownIcon",24)(2,q0,1,3,"AngleRightIcon",24),L()),i&2){let e=d(6);c(),l("ngIf",e.root),c(),l("ngIf",!e.root)}}function Z0(i,r){}function Q0(i,r){i&1&&p(0,Z0,0,0,"ng-template",26),i&2&&(l("data-pc-section","submenuicon"),Ds("aria-hidden",!0))}function X0(i,r){if(i&1&&(A(0),p(1,Y0,3,2,"ng-container",11)(2,Q0,1,2,null,23),L()),i&2){d(5);let e=Te(1);c(),l("ngIf",!e.submenuIconTemplate),c(),l("ngTemplateOutlet",e.submenuIconTemplate)}}function J0(i,r){if(i&1&&(f(0,"a",27),p(1,j0,1,5,"span",16)(2,$0,2,1,"span",28)(3,G0,1,2,"ng-template",null,3,Le)(5,W0,2,2,"span",18)(6,X0,3,2,"ng-container",11),m()),i&2){let e=Te(4),t=d(3).$implicit,n=d();l("routerLink",n.getItemProp(t,"routerLink"))("queryParams",n.getItemProp(t,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.getItemProp(t,"routerLinkActiveOptions")||Qe(21,M0))("target",n.getItemProp(t,"target"))("ngClass",Q(22,Ou,n.getItemProp(t,"disabled")))("fragment",n.getItemProp(t,"fragment"))("queryParamsHandling",n.getItemProp(t,"queryParamsHandling"))("preserveFragment",n.getItemProp(t,"preserveFragment"))("skipLocationChange",n.getItemProp(t,"skipLocationChange"))("replaceUrl",n.getItemProp(t,"replaceUrl"))("state",n.getItemProp(t,"state")),g("data-automationid",n.getItemProp(t,"automationId"))("tabindex",-1)("aria-hidden",!0)("data-pc-section","action"),c(),l("ngIf",n.getItemProp(t,"icon")),c(),l("ngIf",n.getItemProp(t,"escape"))("ngIfElse",e),c(3),l("ngIf",n.getItemProp(t,"badge")),c(),l("ngIf",n.isItemGroup(t))}}function eg(i,r){if(i&1&&(A(0),p(1,U0,7,14,"a",13)(2,J0,7,24,"a",14),L()),i&2){let e=d(2).$implicit,t=d();c(),l("ngIf",!t.getItemProp(e,"routerLink")),c(),l("ngIf",t.getItemProp(e,"routerLink"))}}function tg(i,r){}function ig(i,r){i&1&&p(0,tg,0,0,"ng-template")}function ng(i,r){if(i&1&&(A(0),p(1,ig,1,0,null,31),L()),i&2){let e=d(2).$implicit,t=d();c(),l("ngTemplateOutlet",t.itemTemplate)("ngTemplateOutletContext",Se(2,O0,e.item,t.root))}}function rg(i,r){if(i&1){let e=H();f(0,"p-menubarSub",32),M("itemClick",function(n){v(e);let o=d(3);return b(o.itemClick.emit(n))})("itemMouseEnter",function(n){v(e);let o=d(3);return b(o.onItemMouseEnter(n))}),m()}if(i&2){let e=d(2).$implicit,t=d();l("itemTemplate",t.itemTemplate)("items",e.items)("mobileActive",t.mobileActive)("autoDisplay",t.autoDisplay)("menuId",t.menuId)("activeItemPath",t.activeItemPath)("focusedItemId",t.focusedItemId)("level",t.level+1)("ariaLabelledBy",t.getItemLabelId(e))}}function og(i,r){if(i&1){let e=H();f(0,"li",9,1)(2,"div",10),M("click",function(n){v(e);let o=d().$implicit,s=d();return b(s.onItemClick(n,o))})("mouseenter",function(n){v(e);let o=d().$implicit,s=d();return b(s.onItemMouseEnter({$event:n,processedItem:o}))}),p(3,eg,3,2,"ng-container",11)(4,ng,2,5,"ng-container",11),m(),p(5,rg,1,9,"p-menubarSub",12),m()}if(i&2){let e=d(),t=e.$implicit,n=e.index,o=d();E(o.getItemProp(t,"styleClass")),l("ngStyle",o.getItemProp(t,"style"))("ngClass",o.getItemClass(t))("tooltipOptions",o.getItemProp(t,"tooltipOptions")),g("id",o.getItemId(t))("data-pc-section","menuitem")("data-p-highlight",o.isItemActive(t))("data-p-focused",o.isItemFocused(t))("data-p-disabled",o.isItemDisabled(t))("aria-label",o.getItemLabel(t))("aria-disabled",o.isItemDisabled(t)||void 0)("aria-haspopup",o.isItemGroup(t)&&!o.getItemProp(t,"to")?"menu":void 0)("aria-expanded",o.isItemGroup(t)?o.isItemActive(t):void 0)("aria-level",o.level+1)("aria-setsize",o.getAriaSetSize())("aria-posinset",o.getAriaPosInset(n)),c(2),g("data-pc-section","content"),c(),l("ngIf",!o.itemTemplate),c(),l("ngIf",o.itemTemplate),c(),l("ngIf",o.isItemVisible(t)&&o.isItemGroup(t))}}function sg(i,r){if(i&1&&p(0,R0,1,5,"li",6)(1,og,6,21,"li",7),i&2){let e=r.$implicit,t=d();l("ngIf",t.isItemVisible(e)&&t.getItemProp(e,"separator")),c(),l("ngIf",t.isItemVisible(e)&&!t.getItemProp(e,"separator"))}}var ag=["menubutton"],lg=["rootmenu"],cg=["*"],dg=i=>({"p-menubar p-component":!0,"p-menubar-mobile-active":i});function ug(i,r){i&1&&P(0)}function pg(i,r){if(i&1&&(f(0,"div",8),p(1,ug,1,0,"ng-container",9),m()),i&2){let e=d();c(),l("ngTemplateOutlet",e.startTemplate)}}function hg(i,r){i&1&&x(0,"BarsIcon")}function mg(i,r){}function fg(i,r){i&1&&p(0,mg,0,0,"ng-template")}function gg(i,r){if(i&1){let e=H();f(0,"a",10,2),M("click",function(n){v(e);let o=d();return b(o.menuButtonClick(n))})("keydown",function(n){v(e);let o=d();return b(o.menuButtonKeydown(n))}),p(2,hg,1,0,"BarsIcon",11)(3,fg,1,0,null,9),m()}if(i&2){let e=d();g("aria-haspopup",!!(e.model.length&&e.model.length>0))("aria-expanded",e.mobileActive)("aria-controls",e.id)("aria-label",e.config.translation.aria.navigation)("data-pc-section","button"),c(2),l("ngIf",!e.menuIconTemplate),c(),l("ngTemplateOutlet",e.menuIconTemplate)}}function _g(i,r){i&1&&P(0)}function yg(i,r){if(i&1&&(f(0,"div",12),p(1,_g,1,0,"ng-container",9),m()),i&2){let e=d();c(),l("ngTemplateOutlet",e.endTemplate)}}function vg(i,r){i&1&&(f(0,"div",12),Ge(1),m())}var qa=(()=>{class i{autoHide;autoHideDelay;mouseLeaves=new He;mouseLeft$=this.mouseLeaves.pipe(Fl(()=>Rl(this.autoHideDelay)),Lt(e=>this.autoHide&&e));static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),bg=(()=>{class i{el;renderer;cd;menubarService;items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;mobileActive;autoDisplay;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;submenuIconTemplate;itemClick=new S;itemMouseEnter=new S;menuFocus=new S;menuBlur=new S;menuKeydown=new S;menubarViewChild;mouseLeaveSubscriber;constructor(e,t,n,o){this.el=e,this.renderer=t,this.cd=n,this.menubarService=o}ngOnInit(){this.mouseLeaveSubscriber=this.menubarService.mouseLeft$.subscribe(()=>{this.cd.markForCheck()})}onItemClick(e,t){this.getItemProp(t,"command",{originalEvent:e,item:t.item}),this.itemClick.emit({originalEvent:e,processedItem:t,isFocus:!0})}getItemProp(e,t,n=null){return e&&e.item?R.getItemValue(e.item[t],n):void 0}getItemId(e){return e.item&&e.item?.id?e.item.id:`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemLabelId(e){return`${this.menuId}_${e.key}_label`}getItemClass(e){return be(F({},this.getItemProp(e,"class")),{"p-menuitem":!0,"p-highlight":this.isItemActive(e),"p-menuitem-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)})}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return be(F({},this.getItemProp(e,"class")),{"p-menuitem-separator":!0})}isItemVisible(e){return this.getItemProp(e,"visible")!==!1}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(t=>t.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return R.isNotEmpty(e.items)}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(t=>this.isItemVisible(t)&&this.getItemProp(t,"separator")).length+1}onItemMouseLeave(){this.menubarService.mouseLeaves.next(!0)}onItemMouseEnter(e){if(this.autoDisplay){this.menubarService.mouseLeaves.next(!1);let{event:t,processedItem:n}=e;this.itemMouseEnter.emit({originalEvent:t,processedItem:n})}}ngOnDestroy(){this.mouseLeaveSubscriber?.unsubscribe()}static \u0275fac=function(t){return new(t||i)(C(de),C(Me),C(ge),C(qa))};static \u0275cmp=O({type:i,selectors:[["p-menubarSub"]],viewQuery:function(t,n){if(t&1&&We(D0,7),t&2){let o;G(o=W())&&(n.menubarViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{items:"items",itemTemplate:"itemTemplate",root:[2,"root","root",I],autoZIndex:[2,"autoZIndex","autoZIndex",I],baseZIndex:[2,"baseZIndex","baseZIndex",X],mobileActive:[2,"mobileActive","mobileActive",I],autoDisplay:[2,"autoDisplay","autoDisplay",I],menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:[2,"level","level",X],focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",submenuIconTemplate:"submenuIconTemplate"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},standalone:!1,decls:3,vars:11,consts:[["menubar",""],["listItem",""],["htmlLabel",""],["htmlRouteLabel",""],["role","menubar",3,"focus","blur","keydown","ngClass","tabindex"],["ngFor","",3,"ngForOf"],["role","separator",3,"style","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"ngClass"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],[1,"p-menuitem-content",3,"click","mouseenter"],[4,"ngIf"],[3,"itemTemplate","items","mobileActive","autoDisplay","menuId","activeItemPath","focusedItemId","level","ariaLabelledBy","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",3,"id",4,"ngIf","ngIfElse"],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text",3,"id"],[1,"p-menuitem-text",3,"innerHTML","id"],[1,"p-menuitem-badge",3,"ngClass"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[3,"data-pc-section","aria-hidden"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"itemClick","itemMouseEnter","itemTemplate","items","mobileActive","autoDisplay","menuId","activeItemPath","focusedItemId","level","ariaLabelledBy"]],template:function(t,n){if(t&1){let o=H();f(0,"ul",4,0),M("focus",function(a){return v(o),b(n.menuFocus.emit(a))})("blur",function(a){return v(o),b(n.menuBlur.emit(a))})("keydown",function(a){return v(o),b(n.menuKeydown.emit(a))}),p(2,sg,2,2,"ng-template",5),m()}t&2&&(l("ngClass",Se(8,E0,!n.root,n.root))("tabindex",0),g("data-pc-section","menu")("aria-label",n.ariaLabel)("aria-labelledBy",n.ariaLabelledBy)("id",n.root?n.menuId:null)("aria-activedescendant",n.focusedItemId),c(2),l("ngForOf",n.items))},dependencies:()=>[ye,Ke,_e,Ce,we,Tn,Aa,tt,rs,Nn,Bn,i],encapsulation:2})}return i})(),Ru=(()=>{class i{document;platformId;el;renderer;cd;config;menubarService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}style;styleClass;autoZIndex=!0;baseZIndex=0;autoDisplay=!0;autoHide;autoHideDelay=100;id;ariaLabel;ariaLabelledBy;onFocus=new S;onBlur=new S;templates;menubutton;rootmenu;startTemplate;endTemplate;menuIconTemplate;submenuIconTemplate;itemTemplate;mobileActive;outsideClickListener;resizeListener;mouseLeaveSubscriber;dirty=!1;focused=!1;activeItemPath=ze([]);number=ze(0);focusedItemInfo=ze({index:-1,level:0,parentKey:"",item:null});searchValue="";searchTimeout;_processedItems;_model;get visibleItems(){let e=this.activeItemPath().find(t=>t.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){let e=this.focusedItemInfo();return e.item&&e.item?.id?e.item.id:e.index!==-1?`${this.id}${R.isNotEmpty(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e,t,n,o,s,a,u){this.document=e,this.platformId=t,this.el=n,this.renderer=o,this.cd=s,this.config=a,this.menubarService=u,Hr(()=>{let h=this.activeItemPath();R.isNotEmpty(h)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener())})}ngOnInit(){this.menubarService.autoHide=this.autoHide,this.menubarService.autoHideDelay=this.autoHideDelay,this.mouseLeaveSubscriber=this.menubarService.mouseLeft$.subscribe(()=>this.unbindOutsideClickListener()),this.id=this.id||ae()}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"start":this.startTemplate=e.template;break;case"end":this.endTemplate=e.template;break;case"menuicon":this.menuIconTemplate=e.template;break;case"submenuicon":this.submenuIconTemplate=e.template;break;case"item":this.itemTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}createProcessedItems(e,t=0,n={},o=""){let s=[];return e&&e.forEach((a,u)=>{let h=(o!==""?o+"_":"")+u,y={item:a,index:u,level:t,key:h,parent:n,parentKey:o};y.items=this.createProcessedItems(a.items,t+1,y,h),s.push(y)}),s}getItemProp(e,t){return e?R.getItemValue(e[t]):void 0}menuButtonClick(e){this.toggle(e)}menuButtonKeydown(e){(e.code==="Enter"||e.code==="Space")&&this.menuButtonClick(e)}onItemClick(e){let{originalEvent:t,processedItem:n}=e,o=this.isProcessedItemGroup(n),s=R.isEmpty(n.parent);if(this.isSelected(n)){let{index:u,key:h,level:y,parentKey:w,item:T}=n;this.activeItemPath.set(this.activeItemPath().filter(D=>h!==D.key&&h.startsWith(D.key))),this.focusedItemInfo.set({index:u,level:y,parentKey:w,item:T}),this.dirty=!s,_.focus(this.rootmenu.menubarViewChild.nativeElement)}else if(o)this.onItemChange(e);else{let u=s?n:this.activeItemPath().find(h=>h.parentKey==="");this.hide(t),this.changeFocusedItemIndex(t,u?u.index:-1),this.mobileActive=!1,_.focus(this.rootmenu.menubarViewChild.nativeElement)}}onItemMouseEnter(e){_.isTouchDevice()||this.mobileActive||this.onItemChange(e)}changeFocusedItemIndex(e,t){let n=this.findVisibleItem(t);if(this.focusedItemInfo().index!==t){let o=this.focusedItemInfo();this.focusedItemInfo.set(be(F({},o),{item:n.item,index:t})),this.scrollInView()}}scrollInView(e=-1){let t=e!==-1?`${this.id}_${e}`:this.focusedItemId,n=_.findSingle(this.rootmenu.el.nativeElement,`li[id="${t}"]`);n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"})}onItemChange(e){let{processedItem:t,isFocus:n}=e;if(R.isEmpty(t))return;let{index:o,key:s,level:a,parentKey:u,items:h,item:y}=t,w=R.isNotEmpty(h),T=this.activeItemPath().filter(D=>D.parentKey!==u&&D.parentKey!==s);w&&T.push(t),this.focusedItemInfo.set({index:o,level:a,parentKey:u,item:y}),this.activeItemPath.set(T),w&&(this.dirty=!0),n&&_.focus(this.rootmenu.menubarViewChild.nativeElement)}toggle(e){this.mobileActive?(this.mobileActive=!1,qe.clear(this.rootmenu.el.nativeElement),this.hide()):(this.mobileActive=!0,qe.set("menu",this.rootmenu.el.nativeElement,this.config.zIndex.menu),setTimeout(()=>{this.show()},0)),this.cd.markForCheck(),this.bindOutsideClickListener(),e.preventDefault()}hide(e,t){this.mobileActive&&setTimeout(()=>{_.focus(this.menubutton.nativeElement)},0),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),t&&_.focus(this.rootmenu?.menubarViewChild.nativeElement),this.dirty=!1}show(){let e=this.findVisibleItem(this.findFirstFocusedItemIndex());this.focusedItemInfo.set({index:this.findFirstFocusedItemIndex(),level:0,parentKey:"",item:e?.item}),_.focus(this.rootmenu?.menubarViewChild.nativeElement)}onMenuFocus(e){this.focused=!0;let t=this.findVisibleItem(this.findFirstFocusedItemIndex()),n=this.focusedItemInfo().index!==-1?this.focusedItemInfo():{index:this.findFirstFocusedItemIndex(),level:0,parentKey:"",item:t?.item};this.focusedItemInfo.set(n),this.onFocus.emit(e)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue="",this.dirty=!1,this.onBlur.emit(e)}onKeyDown(e){let t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!t&&R.isPrintableCharacter(e.key)&&this.searchItems(e,e.key);break}}findVisibleItem(e){return R.isNotEmpty(this.visibleItems)?this.visibleItems[e]:null}findFirstFocusedItemIndex(){let e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}isProcessedItemGroup(e){return e&&R.isNotEmpty(e.items)}isSelected(e){return this.activeItemPath().some(t=>t.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&R.isNotEmpty(e.items)}searchItems(e,t){this.searchValue=(this.searchValue||"")+t;let n=-1,o=!1;return this.focusedItemInfo().index!==-1?(n=this.visibleItems.slice(this.focusedItemInfo().index).findIndex(s=>this.isItemMatched(s)),n=n===-1?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(s=>this.isItemMatched(s)):n+this.focusedItemInfo().index):n=this.visibleItems.findIndex(s=>this.isItemMatched(s)),n!==-1&&(o=!0),n===-1&&this.focusedItemInfo().index===-1&&(n=this.findFirstFocusedItemIndex()),n!==-1&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}onArrowDownKey(e){let t=this.visibleItems[this.focusedItemInfo().index];if(t?R.isEmpty(t.parent):null)this.isProccessedItemGroup(t)&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo.set({index:-1,parentKey:t.key,item:t.item}),this.onArrowRightKey(e));else{let o=this.focusedItemInfo().index!==-1?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}}onArrowRightKey(e){let t=this.visibleItems[this.focusedItemInfo().index];if(t?this.activeItemPath().find(o=>o.key===t.parentKey):null)this.isProccessedItemGroup(t)&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo.set({index:-1,parentKey:t.key,item:t.item}),this.onArrowDownKey(e));else{let o=this.focusedItemInfo().index!==-1?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}}onArrowUpKey(e){let t=this.visibleItems[this.focusedItemInfo().index];if(R.isEmpty(t.parent)){if(this.isProccessedItemGroup(t)){this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo.set({index:-1,parentKey:t.key,item:t.item});let s=this.findLastItemIndex();this.changeFocusedItemIndex(e,s)}}else{let o=this.activeItemPath().find(s=>s.key===t.parentKey);if(this.focusedItemInfo().index===0){this.focusedItemInfo.set({index:-1,parentKey:o?o.parentKey:"",item:t.item}),this.searchValue="",this.onArrowLeftKey(e);let s=this.activeItemPath().filter(a=>a.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(s)}else{let s=this.focusedItemInfo().index!==-1?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,s)}}e.preventDefault()}onArrowLeftKey(e){let t=this.visibleItems[this.focusedItemInfo().index],n=t?this.activeItemPath().find(o=>o.key===t.parentKey):null;if(n){this.onItemChange({originalEvent:e,processedItem:n});let o=this.activeItemPath().filter(s=>s.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(o),e.preventDefault()}else{let o=this.focusedItemInfo().index!==-1?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide(e,!0),this.focusedItemInfo().index=this.findFirstFocusedItemIndex(),e.preventDefault()}onTabKey(e){if(this.focusedItemInfo().index!==-1){let t=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.hide()}onEnterKey(e){if(this.focusedItemInfo().index!==-1){let t=_.findSingle(this.rootmenu.el.nativeElement,`li[id="${`${this.focusedItemId}`}"]`),n=t&&_.findSingle(t,'a[data-pc-section="action"]');n?n.click():t&&t.click()}e.preventDefault()}findLastFocusedItemIndex(){let e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return R.findLastIndex(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){let t=e>0?R.findLastIndex(this.visibleItems.slice(0,e),n=>this.isValidItem(n)):-1;return t>-1?t:e}findNextItemIndex(e){let t=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(n=>this.isValidItem(n)):-1;return t>-1?t+e+1:e}bindResizeListener(){Ve(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{_.isTouchDevice()||this.hide(e,!0),this.mobileActive=!1})))}bindOutsideClickListener(){Ve(this.platformId)&&(this.outsideClickListener||(this.outsideClickListener=this.renderer.listen(this.document,"click",e=>{let t=this.rootmenu.el.nativeElement!==e.target&&!this.rootmenu.el.nativeElement.contains(e.target),n=this.mobileActive&&this.menubutton.nativeElement!==e.target&&!this.menubutton.nativeElement.contains(e.target);t&&(n?this.mobileActive=!1:this.hide())})))}unbindOutsideClickListener(){this.outsideClickListener&&(this.outsideClickListener(),this.outsideClickListener=null)}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}ngOnDestroy(){this.mouseLeaveSubscriber?.unsubscribe(),this.unbindOutsideClickListener(),this.unbindResizeListener()}static \u0275fac=function(t){return new(t||i)(C(se),C($e),C(de),C(Me),C(ge),C(Fe),C(qa))};static \u0275cmp=O({type:i,selectors:[["p-menubar"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(ag,5)(lg,5),t&2){let o;G(o=W())&&(n.menubutton=o.first),G(o=W())&&(n.rootmenu=o.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",autoZIndex:[2,"autoZIndex","autoZIndex",I],baseZIndex:[2,"baseZIndex","baseZIndex",X],autoDisplay:[2,"autoDisplay","autoDisplay",I],autoHide:[2,"autoHide","autoHide",I],autoHideDelay:[2,"autoHideDelay","autoHideDelay",X],id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onFocus:"onFocus",onBlur:"onBlur"},standalone:!1,features:[Ue([qa])],ngContentSelectors:cg,decls:8,vars:25,consts:[["rootmenu",""],["legacy",""],["menubutton",""],[3,"ngClass","ngStyle"],["class","p-menubar-start",4,"ngIf"],["tabindex","0","role","button","class","p-menubar-button",3,"click","keydown",4,"ngIf"],[3,"itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter","items","itemTemplate","menuId","root","baseZIndex","autoZIndex","mobileActive","autoDisplay","ariaLabel","ariaLabelledBy","focusedItemId","submenuIconTemplate","activeItemPath"],["class","p-menubar-end",4,"ngIf","ngIfElse"],[1,"p-menubar-start"],[4,"ngTemplateOutlet"],["tabindex","0","role","button",1,"p-menubar-button",3,"click","keydown"],[4,"ngIf"],[1,"p-menubar-end"]],template:function(t,n){if(t&1){let o=H();nt(),f(0,"div",3),p(1,pg,2,1,"div",4)(2,gg,4,7,"a",5),f(3,"p-menubarSub",6,0),M("itemClick",function(a){return v(o),b(n.onItemClick(a))})("menuFocus",function(a){return v(o),b(n.onMenuFocus(a))})("menuBlur",function(a){return v(o),b(n.onMenuBlur(a))})("menuKeydown",function(a){return v(o),b(n.onKeyDown(a))})("itemMouseEnter",function(a){return v(o),b(n.onItemMouseEnter(a))}),m(),p(5,yg,2,1,"div",7)(6,vg,2,0,"ng-template",null,1,Le),m()}if(t&2){let o=Te(7);E(n.styleClass),l("ngClass",Q(23,dg,n.mobileActive))("ngStyle",n.style),g("data-pc-section","root")("data-pc-name","menubar"),c(),l("ngIf",n.startTemplate),c(),l("ngIf",n.model&&n.model.length>0),c(),l("items",n.processedItems)("itemTemplate",n.itemTemplate)("menuId",n.id)("root",!0)("baseZIndex",n.baseZIndex)("autoZIndex",n.autoZIndex)("mobileActive",n.mobileActive)("autoDisplay",n.autoDisplay)("ariaLabel",n.ariaLabel)("ariaLabelledBy",n.ariaLabelledBy)("focusedItemId",n.focused?n.focusedItemId:void 0)("submenuIconTemplate",n.submenuIconTemplate)("activeItemPath",n.activeItemPath()),c(2),l("ngIf",n.endTemplate)("ngIfElse",o)}},dependencies:()=>[ye,_e,Ce,we,Ka,bg],styles:[`@layer primeng{.p-menubar{display:flex;align-items:center}.p-menubar ul{margin:0;padding:0;list-style:none}.p-menubar .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menubar .p-menuitem-text{line-height:1}.p-menubar .p-menuitem{position:relative}.p-menubar-root-list{display:flex;align-items:center;flex-wrap:wrap}.p-menubar-root-list>li ul{display:none;z-index:1}.p-menubar-root-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block}.p-menubar .p-submenu-list{display:none;position:absolute;z-index:2}.p-menubar .p-submenu-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block;left:100%;top:0}.p-menubar .p-submenu-list .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-menubar .p-menubar-root-list .p-icon-wrapper,.p-menubar .p-submenu-list .p-menuitem-link .p-icon-wrapper{margin-left:auto}.p-menubar .p-menubar-custom,.p-menubar .p-menubar-end{margin-left:auto;align-self:center}.p-menubar-button{display:none;cursor:pointer;align-items:center;justify-content:center}}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Fu=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,Sn,ht,Or,ve,Ka,Nn,Bn,Sn,Or,ve]})}return i})();function wg(i,r){if(i&1){let e=H();f(0,"button",4),M("click",function(){v(e);let n=d();return b(n.logout())}),m()}}var os=class i{constructor(r){this.auth=r}items=[];ngOnInit(){this.items=[{label:"Home",icon:"pi pi-home",routerLink:"/"},{label:"OCR Module",icon:"pi pi-search",items:[{label:"Upload",icon:"pi pi-upload",routerLink:"/ocr"},{label:"History",icon:"pi pi-history"}]},{label:"Mailbox",icon:"pi pi-envelope",routerLink:"/mailbox"},{label:"Settings",icon:"pi pi-cog",items:[{label:"Profile",icon:"pi pi-user"},{label:"Preferences",icon:"pi pi-sliders-h"}]}]}logout(){this.auth.logout()}static \u0275fac=function(e){return new(e||i)(C(Li))};static \u0275cmp=O({type:i,selectors:[["app-admin-layout"]],decls:5,vars:1,consts:[[1,"layout-wrapper"],[3,"model"],["pTemplate","end"],[1,"layout-content","p-4"],["pButton","","label","Logout","icon","pi pi-power-off",1,"p-button-text",3,"click"]],template:function(e,t){e&1&&(f(0,"div",0)(1,"p-menubar",1),p(2,wg,1,0,"ng-template",2),m(),f(3,"div",3),x(4,"router-outlet"),m()()),e&2&&(c(),l("model",t.items))},dependencies:[oe,Sn,tn,Fu,Ru,me,mt,jt],encapsulation:2})};var Rr=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["PlusIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Ya=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["UploadIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Ig=(i,r)=>({showTransitionParams:i,hideTransitionParams:r}),xg=i=>({value:"visible",params:i});function Tg(i,r){if(i&1&&x(0,"span"),i&2){let e=d().$implicit;E("p-message-icon pi "+e.icon),g("data-pc-section","icon")}}function Sg(i,r){i&1&&x(0,"CheckIcon"),i&2&&g("data-pc-section","icon")}function Dg(i,r){i&1&&x(0,"InfoCircleIcon"),i&2&&g("data-pc-section","icon")}function Eg(i,r){i&1&&x(0,"TimesCircleIcon"),i&2&&g("data-pc-section","icon")}function Mg(i,r){i&1&&x(0,"ExclamationTriangleIcon"),i&2&&g("data-pc-section","icon")}function Og(i,r){if(i&1&&(f(0,"span",10),A(1),p(2,Sg,1,1,"CheckIcon",11)(3,Dg,1,1,"InfoCircleIcon",11)(4,Eg,1,1,"TimesCircleIcon",11)(5,Mg,1,1,"ExclamationTriangleIcon",11),L(),m()),i&2){let e=d().$implicit;c(2),l("ngIf",e.severity==="success"),c(),l("ngIf",e.severity==="info"),c(),l("ngIf",e.severity==="error"),c(),l("ngIf",e.severity==="warn")}}function Rg(i,r){if(i&1&&x(0,"span",14),i&2){let e=d(2).$implicit;l("innerHTML",e.summary,xi),g("data-pc-section","summary")}}function Fg(i,r){if(i&1&&x(0,"span",15),i&2){let e=d(2).$implicit;l("innerHTML",e.detail,xi),g("data-pc-section","detail")}}function kg(i,r){if(i&1&&(A(0),p(1,Rg,1,2,"span",12)(2,Fg,1,2,"span",13),L()),i&2){let e=d().$implicit;c(),l("ngIf",e.summary),c(),l("ngIf",e.detail)}}function Ag(i,r){if(i&1&&(f(0,"span",18),N(1),m()),i&2){let e=d(2).$implicit;g("data-pc-section","summary"),c(),ce(e.summary)}}function Lg(i,r){if(i&1&&(f(0,"span",19),N(1),m()),i&2){let e=d(2).$implicit;g("data-pc-section","detail"),c(),ce(e.detail)}}function Vg(i,r){if(i&1&&p(0,Ag,2,2,"span",16)(1,Lg,2,2,"span",17),i&2){let e=d().$implicit;l("ngIf",e.summary),c(),l("ngIf",e.detail)}}function Pg(i,r){if(i&1){let e=H();f(0,"button",20),M("click",function(){v(e);let n=d().index,o=d(2);return b(o.removeMessage(n))}),x(1,"TimesIcon",21),m()}if(i&2){let e=d(3);g("aria-label",e.closeAriaLabel)("data-pc-section","closebutton"),c(),l("styleClass","p-message-close-icon"),g("data-pc-section","closeicon")}}function Ng(i,r){if(i&1&&(f(0,"div",5)(1,"div",6),p(2,Tg,1,3,"span",7)(3,Og,6,4,"span",8)(4,kg,3,2,"ng-container",3)(5,Vg,2,2,"ng-template",null,1,Le)(7,Pg,2,4,"button",9),m()()),i&2){let e=r.$implicit,t=Te(6),n=d(2);E("p-message p-message-"+e.severity),l("@messageAnimation",Q(13,xg,Se(10,Ig,n.showTransitionOptions,n.hideTransitionOptions))),c(),g("data-pc-section","wrapper")("id",e.id||null),c(),l("ngIf",e.icon),c(),l("ngIf",!e.icon),c(),l("ngIf",!n.escape)("ngIfElse",t),c(3),l("ngIf",n.closable&&(e.closable??!0))}}function Bg(i,r){if(i&1&&(A(0),p(1,Ng,8,15,"div",4),L()),i&2){let e=d();c(),l("ngForOf",e.messages)}}function Hg(i,r){i&1&&P(0)}function zg(i,r){if(i&1&&(f(0,"div",22)(1,"div",6),p(2,Hg,1,0,"ng-container",23),m()()),i&2){let e=d();l("ngClass","p-message p-message-"+e.severity),c(2),l("ngTemplateOutlet",e.contentTemplate)}}var ku=(()=>{class i{messageService;el;cd;config;set value(e){this.messages=e,this.startMessageLifes(this.messages)}closable=!0;style;styleClass;enableService=!0;key;escape=!0;severity;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";valueChange=new S;onClose=new S;templates;messages;messageSubscription;clearSubscription;timerSubscriptions=[];contentTemplate;constructor(e,t,n,o){this.messageService=e,this.el=t,this.cd=n,this.config=o}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this.contentTemplate=e.template:this.contentTemplate=e.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e){Array.isArray(e)||(e=[e]);let t=e.filter(n=>this.key===n.key);this.messages=this.messages?[...this.messages,...t]:[...t],this.startMessageLifes(t),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let e=this.el.nativeElement.parentElement;return e&&e.offsetParent?this.contentTemplate!=null||this.messages&&this.messages.length>0:!1}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(e){let t=this.messages[e];this.messages=this.messages?.filter((n,o)=>o!==e),t&&this.onClose.emit(t),this.valueChange.emit(this.messages)}get icon(){let e=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(e){case"success":return"pi-check";case"info":return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle";default:return"pi-info-circle"}return null}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(e=>e.unsubscribe())}startMessageLifes(e){e?.forEach(t=>t.life&&this.startMessageLife(t))}startMessageLife(e){let t=Ol(e.life).subscribe(()=>{this.messages=this.messages?.filter(n=>n!==e),this.timerSubscriptions=this.timerSubscriptions?.filter(n=>n!==t),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(t)}static \u0275fac=function(t){return new(t||i)(C(Ct,8),C(de),C(ge),C(Fe))};static \u0275cmp=O({type:i,selectors:[["p-messages"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:[2,"closable","closable",I],style:"style",styleClass:"styleClass",enableService:[2,"enableService","enableService",I],key:"key",escape:[2,"escape","escape",I],severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange",onClose:"onClose"},standalone:!1,decls:4,vars:8,consts:[["staticMessage",""],["escapeOut",""],["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"class",4,"ngIf"],["class","p-message-icon",4,"ngIf"],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-message-icon"],[4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[3,"styleClass"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(f(0,"div",2),p(1,Bg,2,1,"ng-container",3)(2,zg,3,2,"ng-template",null,0,Le),m()),t&2){let o=Te(3);E(n.styleClass),l("ngStyle",n.style),g("aria-atomic",!0)("aria-live","assertive")("data-pc-name","message"),c(),l("ngIf",!n.contentTemplate)("ngIfElse",o)}},dependencies:()=>[ye,Ke,_e,Ce,we,tt,Dt,An,Ln,kn,Ye],styles:[`@layer primeng{.p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center;flex:none}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}}
|
|
`],encapsulation:2,data:{animation:[Nt("messageAnimation",[ot(":enter",[Je({opacity:0,transform:"translateY(-25%)"}),ut("{{showTransitionParams}}")]),ot(":leave",[ut("{{hideTransitionParams}}",Je({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0})}return i})(),Za=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ht,Dt,An,Ln,kn,Ye]})}return i})();var jg=(i,r)=>({"p-progressbar p-component":!0,"p-progressbar-determinate":i,"p-progressbar-indeterminate":r}),$g=i=>({$implicit:i});function Gg(i,r){if(i&1&&(f(0,"div"),N(1),m()),i&2){let e=d(2);qt("display",e.value!=null&&e.value!==0?"flex":"none"),g("data-pc-section","label"),c(),qr("",e.value,"",e.unit)}}function Wg(i,r){i&1&&P(0)}function Kg(i,r){if(i&1&&(f(0,"div",3)(1,"div",4),p(2,Gg,2,5,"div",5)(3,Wg,1,0,"ng-container",6),m()()),i&2){let e=d();qt("width",e.value+"%")("background",e.color),g("data-pc-section","value"),c(2),l("ngIf",e.showValue&&!e.contentTemplate),c(),l("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Q(8,$g,e.value))}}function qg(i,r){if(i&1&&(f(0,"div",7),x(1,"div",8),m()),i&2){let e=d();g("data-pc-section","container"),c(),qt("background",e.color),g("data-pc-section","value")}}var Hn=(()=>{class i{value;showValue=!0;styleClass;style;unit="%";mode="determinate";color;templates;contentTemplate;ngAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this.contentTemplate=e.template:this.contentTemplate=e.template})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=O({type:i,selectors:[["p-progressBar"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},hostAttrs:[1,"p-element"],inputs:{value:[2,"value","value",X],showValue:[2,"showValue","showValue",I],styleClass:"styleClass",style:"style",unit:"unit",mode:"mode",color:"color"},standalone:!1,decls:3,vars:14,consts:[["role","progressbar",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width","background",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],[1,"p-progressbar-label"],[3,"display",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(t,n){t&1&&(f(0,"div",0),p(1,Kg,4,10,"div",1)(2,qg,2,4,"div",2),m()),t&2&&(E(n.styleClass),l("ngStyle",n.style)("ngClass",Se(11,jg,n.mode==="determinate",n.mode==="indeterminate")),g("aria-valuemin",0)("aria-valuenow",n.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root"),c(),l("ngIf",n.mode==="determinate"),c(),l("ngIf",n.mode==="indeterminate"))},dependencies:[ye,_e,Ce,we],styles:[`@layer primeng{.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;-webkit-animation-delay:1.15s;animation-delay:1.15s}}@-webkit-keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@-webkit-keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),sn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe]})}return i})();var Yg=["advancedfileinput"],Zg=["basicfileinput"],Qg=["content"],Xg=(i,r,e,t,n)=>({$implicit:i,uploadedFiles:r,chooseCallback:e,clearCallback:t,uploadCallback:n}),Jg=(i,r,e,t,n,o,s,a)=>({$implicit:i,uploadedFiles:r,chooseCallback:e,clearCallback:t,removeUploadedFileCallback:n,removeFileCallback:o,progress:s,messages:a}),e_=(i,r)=>({"p-focus":i,"p-disabled":r}),t_=(i,r,e,t)=>({"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":i,"p-fileupload-choose-selected":r,"p-focus":e,"p-disabled":t});function i_(i,r){if(i&1&&x(0,"span",21),i&2){let e=d(3);E(e.chooseIcon),l("ngClass","p-button-icon p-button-icon-left"),g("aria-label",!0)("data-pc-section","chooseicon")}}function n_(i,r){i&1&&x(0,"PlusIcon",24),i&2&&(l("styleClass","p-button-icon p-button-icon-left"),g("aria-label",!0)("data-pc-section","chooseicon"))}function r_(i,r){}function o_(i,r){i&1&&p(0,r_,0,0,"ng-template")}function s_(i,r){if(i&1&&(f(0,"span",25),p(1,o_,1,0,null,11),m()),i&2){let e=d(4);g("aria-label",!0)("data-pc-section","chooseicon"),c(),l("ngTemplateOutlet",e.chooseIconTemplate)}}function a_(i,r){if(i&1&&(A(0),p(1,n_,1,3,"PlusIcon",22)(2,s_,2,3,"span",23),L()),i&2){let e=d(3);c(),l("ngIf",!e.chooseIconTemplate),c(),l("ngIf",e.chooseIconTemplate)}}function l_(i,r){if(i&1&&x(0,"span",28),i&2){let e=d(4);l("ngClass",e.uploadIcon),g("aria-hidden",!0)}}function c_(i,r){i&1&&x(0,"UploadIcon",24),i&2&&l("styleClass","p-button-icon p-button-icon-left")}function d_(i,r){}function u_(i,r){i&1&&p(0,d_,0,0,"ng-template")}function p_(i,r){if(i&1&&(f(0,"span",25),p(1,u_,1,0,null,11),m()),i&2){let e=d(5);g("aria-hidden",!0),c(),l("ngTemplateOutlet",e.uploadIconTemplate)}}function h_(i,r){if(i&1&&(A(0),p(1,c_,1,1,"UploadIcon",22)(2,p_,2,2,"span",23),L()),i&2){let e=d(4);c(),l("ngIf",!e.uploadIconTemplate),c(),l("ngIf",e.uploadIconTemplate)}}function m_(i,r){if(i&1){let e=H();f(0,"p-button",26),M("onClick",function(){v(e);let n=d(3);return b(n.upload())}),p(1,l_,1,2,"span",27)(2,h_,3,2,"ng-container",9),m()}if(i&2){let e=d(3);l("label",e.uploadButtonLabel)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass",e.uploadStyleClass),c(),l("ngIf",e.uploadIcon),c(),l("ngIf",!e.uploadIcon)}}function f_(i,r){if(i&1&&x(0,"span",28),i&2){let e=d(4);l("ngClass",e.cancelIcon)}}function g_(i,r){i&1&&x(0,"TimesIcon",24),i&2&&(l("styleClass","p-button-icon p-button-icon-left"),g("aria-hidden",!0))}function __(i,r){}function y_(i,r){i&1&&p(0,__,0,0,"ng-template")}function v_(i,r){if(i&1&&(f(0,"span",25),p(1,y_,1,0,null,11),m()),i&2){let e=d(5);g("aria-hidden",!0),c(),l("ngTemplateOutlet",e.cancelIconTemplate)}}function b_(i,r){if(i&1&&(A(0),p(1,g_,1,2,"TimesIcon",22)(2,v_,2,2,"span",23),L()),i&2){let e=d(4);c(),l("ngIf",!e.cancelIconTemplate),c(),l("ngIf",e.cancelIconTemplate)}}function C_(i,r){if(i&1){let e=H();f(0,"p-button",26),M("onClick",function(){v(e);let n=d(3);return b(n.clear())}),p(1,f_,1,1,"span",27)(2,b_,3,2,"ng-container",9),m()}if(i&2){let e=d(3);l("label",e.cancelButtonLabel)("disabled",!e.hasFiles()||e.uploading)("styleClass",e.cancelStyleClass),c(),l("ngIf",e.cancelIcon),c(),l("ngIf",!e.cancelIcon)}}function w_(i,r){if(i&1){let e=H();A(0),f(1,"span",17),M("focus",function(){v(e);let n=d(2);return b(n.onFocus())})("blur",function(){v(e);let n=d(2);return b(n.onBlur())})("click",function(){v(e);let n=d(2);return b(n.choose())})("keydown.enter",function(){v(e);let n=d(2);return b(n.choose())}),f(2,"input",7,0),M("change",function(n){v(e);let o=d(2);return b(o.onFileSelect(n))}),m(),p(4,i_,1,5,"span",18)(5,a_,3,2,"ng-container",9),f(6,"span",19),N(7),m()(),p(8,m_,3,5,"p-button",20)(9,C_,3,5,"p-button",20),L()}if(i&2){let e=d(2);c(),E(e.chooseStyleClass),l("ngClass",Se(16,e_,e.focus,e.disabled||e.isChooseDisabled())),g("data-pc-section","choosebutton"),c(),l("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),g("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),c(2),l("ngIf",e.chooseIcon),c(),l("ngIf",!e.chooseIcon),c(),g("data-pc-section","choosebuttonlabel"),c(),ce(e.chooseButtonLabel),c(),l("ngIf",!e.auto&&e.showUploadButton),c(),l("ngIf",!e.auto&&e.showCancelButton)}}function I_(i,r){i&1&&P(0)}function x_(i,r){i&1&&P(0)}function T_(i,r){if(i&1&&x(0,"p-progressBar",29),i&2){let e=d(2);l("value",e.progress)("showValue",!1)}}function S_(i,r){if(i&1){let e=H();f(0,"div")(1,"img",35),M("error",function(n){v(e);let o=d(5);return b(o.imageError(n))}),m()()}if(i&2){let e=d().$implicit,t=d(4);c(),l("src",e.objectURL,zi)("width",t.previewWidth)}}function D_(i,r){i&1&&x(0,"TimesIcon")}function E_(i,r){}function M_(i,r){i&1&&p(0,E_,0,0,"ng-template")}function O_(i,r){if(i&1){let e=H();f(0,"div",32),p(1,S_,2,2,"div",9),f(2,"div",33),N(3),m(),f(4,"div"),N(5),m(),f(6,"div")(7,"button",34),M("click",function(n){let o=v(e).index,s=d(4);return b(s.remove(n,o))}),p(8,D_,1,0,"TimesIcon",9)(9,M_,1,0,null,11),m()()()}if(i&2){let e=r.$implicit,t=d(4);c(),l("ngIf",t.isImage(e)),c(2),ce(e.name),c(2),ce(t.formatSize(e.size)),c(2),E(t.removeStyleClass),l("disabled",t.uploading),c(),l("ngIf",!t.cancelIconTemplate),c(),l("ngTemplateOutlet",t.cancelIconTemplate)}}function R_(i,r){if(i&1&&(f(0,"div"),p(1,O_,10,8,"div",31),m()),i&2){let e=d(3);c(),l("ngForOf",e.files)}}function F_(i,r){}function k_(i,r){if(i&1&&(f(0,"div"),p(1,F_,0,0,"ng-template",36),m()),i&2){let e=d(3);c(),l("ngForOf",e.files)("ngForTemplate",e.fileTemplate)}}function A_(i,r){if(i&1&&(f(0,"div",30),p(1,R_,2,1,"div",9)(2,k_,2,2,"div",9),m()),i&2){let e=d(2);c(),l("ngIf",!e.fileTemplate),c(),l("ngIf",e.fileTemplate)}}function L_(i,r){i&1&&P(0)}function V_(i,r){i&1&&P(0)}function P_(i,r){if(i&1&&(f(0,"div",37),p(1,V_,1,0,"ng-container",11),m()),i&2){let e=d(2);c(),l("ngTemplateOutlet",e.emptyTemplate)}}function N_(i,r){if(i&1){let e=H();f(0,"div",6)(1,"input",7,0),M("change",function(n){v(e);let o=d();return b(o.onFileSelect(n))}),m(),f(3,"div",8),p(4,w_,10,19,"ng-container",9)(5,I_,1,0,"ng-container",10)(6,x_,1,0,"ng-container",11),m(),f(7,"div",12,1),M("dragenter",function(n){v(e);let o=d();return b(o.onDragEnter(n))})("dragleave",function(n){v(e);let o=d();return b(o.onDragLeave(n))})("drop",function(n){v(e);let o=d();return b(o.onDrop(n))}),p(9,T_,1,2,"p-progressBar",13),x(10,"p-messages",14),p(11,A_,3,2,"div",15)(12,L_,1,0,"ng-container",10)(13,P_,2,1,"div",16),m()()}if(i&2){let e=d();E(e.styleClass),l("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),g("data-pc-name","fileupload")("data-pc-section","root"),c(),qt("display","none"),l("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),g("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),c(2),g("data-pc-section","buttonbar"),c(),l("ngIf",!e.headerTemplate),c(),l("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",Si(27,Xg,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.upload.bind(e))),c(),l("ngTemplateOutlet",e.toolbarTemplate),c(),g("data-pc-section","content"),c(2),l("ngIf",e.hasFiles()),c(),l("value",e.msgs)("enableService",!1),c(),l("ngIf",e.hasFiles()),c(),l("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",tc(33,Jg,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.removeUploadedFile.bind(e),e.remove.bind(e),e.progress,e.msgs)),c(),l("ngIf",e.emptyTemplate&&!e.hasFiles()&&!e.hasUploadedFiles())}}function B_(i,r){if(i&1&&x(0,"span",28),i&2){let e=d(3);l("ngClass",e.uploadIcon)}}function H_(i,r){i&1&&x(0,"UploadIcon",24),i&2&&l("styleClass","p-button-icon p-button-icon-left")}function z_(i,r){}function U_(i,r){i&1&&p(0,z_,0,0,"ng-template")}function j_(i,r){if(i&1&&(f(0,"span",25),p(1,U_,1,0,null,11),m()),i&2){let e=d(4);c(),l("ngTemplateOutlet",e.uploadIconTemplate)}}function $_(i,r){if(i&1&&(A(0),p(1,H_,1,1,"UploadIcon",22)(2,j_,2,1,"span",23),L()),i&2){let e=d(3);c(),l("ngIf",!e.uploadIconTemplate),c(),l("ngIf",e.uploadIconTemplate)}}function G_(i,r){if(i&1&&(A(0),p(1,B_,1,1,"span",27)(2,$_,3,2,"ng-container",9),L()),i&2){let e=d(2);c(),l("ngIf",e.uploadIcon),c(),l("ngIf",!e.uploadIcon)}}function W_(i,r){if(i&1&&x(0,"span",44),i&2){let e=d(3);l("ngClass",e.chooseIcon)}}function K_(i,r){i&1&&x(0,"PlusIcon",24),i&2&&(l("styleClass","p-button-icon p-button-icon-left pi"),g("aria-hidden",!0)("data-pc-section","uploadicon"))}function q_(i,r){}function Y_(i,r){i&1&&p(0,q_,0,0,"ng-template")}function Z_(i,r){if(i&1&&(f(0,"span",46),p(1,Y_,1,0,null,11),m()),i&2){let e=d(4);g("aria-hidden",!0)("data-pc-section","uploadicon"),c(),l("ngTemplateOutlet",e.chooseIconTemplate)}}function Q_(i,r){if(i&1&&(A(0),p(1,K_,1,3,"PlusIcon",22)(2,Z_,2,3,"span",45),L()),i&2){let e=d(3);c(),l("ngIf",!e.chooseIconTemplate),c(),l("ngIf",e.chooseIconTemplate)}}function X_(i,r){if(i&1&&p(0,W_,1,1,"span",43)(1,Q_,3,2,"ng-container",9),i&2){let e=d(2);l("ngIf",e.chooseIcon),c(),l("ngIf",!e.chooseIcon)}}function J_(i,r){if(i&1&&(f(0,"span",19),N(1),m()),i&2){let e=d(2);g("data-pc-section","label"),c(),ce(e.basicButtonLabel)}}function e1(i,r){if(i&1){let e=H();f(0,"input",47,3),M("change",function(n){v(e);let o=d(2);return b(o.onFileSelect(n))})("focus",function(){v(e);let n=d(2);return b(n.onFocus())})("blur",function(){v(e);let n=d(2);return b(n.onBlur())}),m()}if(i&2){let e=d(2);l("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled),g("aria-label",e.browseFilesLabel)("data-pc-section","input")}}function t1(i,r){if(i&1){let e=H();f(0,"div",38),x(1,"p-messages",14),f(2,"span",39),M("click",function(){v(e);let n=d();return b(n.onBasicUploaderClick())})("keydown",function(n){v(e);let o=d();return b(o.onBasicKeydown(n))}),p(3,G_,3,2,"ng-container",40)(4,X_,2,2,"ng-template",null,2,Le)(6,J_,2,2,"span",41)(7,e1,2,5,"input",42),m()()}if(i&2){let e=Te(5),t=d();g("data-pc-name","fileupload"),c(),l("value",t.msgs)("enableService",!1),c(),E(t.styleClass),l("ngClass",pi(12,t_,!t.basicButtonLabel,t.hasFiles(),t.focus,t.disabled))("ngStyle",t.style),g("data-pc-section","choosebutton"),c(),l("ngIf",t.hasFiles()&&!t.auto)("ngIfElse",e),c(3),l("ngIf",t.basicButtonLabel),c(),l("ngIf",!t.hasFiles())}}var Au=(()=>{class i{document;platformId;renderer;el;sanitizer;zone;http;cd;config;name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;onBeforeUpload=new S;onSend=new S;onUpload=new S;onError=new S;onClear=new S;onRemove=new S;onSelect=new S;onProgress=new S;uploadHandler=new S;onImageError=new S;onRemoveUploadedFile=new S;templates;advancedFileInput;basicFileInput;content;set files(e){this._files=[];for(let t=0;t<e.length;t++){let n=e[t];this.validate(n)&&(this.isImage(n)&&(n.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e[t]))),this._files.push(e[t]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;fileTemplate;headerTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;uploadIconTemplate;cancelIconTemplate;emptyTemplate;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;uploadedFiles=[];constructor(e,t,n,o,s,a,u,h,y){this.document=e,this.platformId=t,this.renderer=n,this.el=o,this.sanitizer=s,this.zone=a,this.http=u,this.cd=h,this.config=y}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"file":this.fileTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"toolbar":this.toolbarTemplate=e.template;break;case"chooseicon":this.chooseIconTemplate=e.template;break;case"uploadicon":this.uploadIconTemplate=e.template;break;case"cancelicon":this.cancelIconTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;default:this.fileTemplate=e.template;break}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){Ve(this.platformId)&&this.mode==="advanced"&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}getTranslation(e){return this.config.getTranslation(e)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(e){if(e.type!=="drop"&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.msgs=[],this.multiple||(this.files=[]);let t=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let n=0;n<t.length;n++){let o=t[n];this.isFileSelected(o)||this.validate(o)&&(this.isImage(o)&&(o.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(t[n]))),this.files.push(t[n]))}this.onSelect.emit({originalEvent:e,files:t,currentFiles:this.files}),this.checkFileLimit(t),this.hasFiles()&&this.auto&&(this.mode!=="advanced"||!this.isFileLimitExceeded())&&this.upload(),e.type!=="drop"&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(e){for(let t of this.files)if(t.name+t.type+t.size===e.name+e.type+e.size)return!0;return!1}isIE11(){if(Ve(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(e){return this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(e)?(this.msgs.push({severity:"error",summary:this.invalidFileTypeMessageSummary.replace("{0}",e.name),detail:this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}),!1):this.maxFileSize&&e.size>this.maxFileSize?(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",e.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),!1):!0}isFileTypeValid(e){let t=this.accept?.split(",").map(n=>n.trim());for(let n of t)if(this.isWildcard(n)?this.getTypeClass(e.type)===this.getTypeClass(n):e.type==n||this.getFileExtension(e).toLowerCase()===n.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return e.indexOf("*")!==-1}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let t=0;t<this.files.length;t++)e.append(this.name,this.files[t],this.files[t].name);this.http.request(this.method,this.url,{body:e,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(t=>{switch(t.type){case ii.Sent:this.onSend.emit({originalEvent:t,formData:e});break;case ii.Response:this.uploading=!1,this.progress=0,t.status>=200&&t.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:t,files:this.files})):this.onError.emit({files:this.files}),this.uploadedFiles.push(...this.files),this.clear();break;case ii.UploadProgress:{t.loaded&&(this.progress=Math.round(t.loaded*100/t.total)),this.onProgress.emit({originalEvent:t,progress:this.progress});break}}this.cd.markForCheck()},t=>{this.uploading=!1,this.onError.emit({files:this.files,error:t})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(e,t){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[t]}),this.files.splice(t,1),this.checkFileLimit(this.files)}removeUploadedFile(e){let t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=[...this.uploadedFiles],this.onRemoveUploadedFile.emit({file:t,files:this.uploadedFiles})}isFileLimitExceeded(){let t=this.auto?this.files.length:this.files.length+this.uploadedFileCount;return this.fileLimit&&this.fileLimit<=t&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<t}isChooseDisabled(){return this.auto?this.fileLimit&&this.fileLimit<=this.files.length:this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(e){this.msgs??=[];let t=this.msgs.length>0&&this.fileLimit<e.length;(this.isFileLimitExceeded()||t)&&this.msgs.push({severity:"error",summary:this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString()),detail:this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())})}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}hasUploadedFiles(){return this.uploadedFiles&&this.uploadedFiles.length>0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(_.addClass(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||_.removeClass(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){_.removeClass(this.content?.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let t=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||t&&t.length===1)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){let o=this.getTranslation(je.FILE_SIZE_TYPES);if(e===0)return`0 ${o[0]}`;let s=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,s)).toFixed(3)} ${o[s]}`}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput?.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault();break}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(je.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(je.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(je.CANCEL)}get browseFilesLabel(){return this.config.getTranslation(je.ARIA)[je.BROWSE_FILES]}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||i)(C(se),C($e),C(Me),C(de),C(ta),C(ke),C(si),C(ge),C(Fe))};static \u0275cmp=O({type:i,selectors:[["p-fileUpload"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(Yg,5)(Zg,5)(Qg,5),t&2){let o;G(o=W())&&(n.advancedFileInput=o.first),G(o=W())&&(n.basicFileInput=o.first),G(o=W())&&(n.content=o.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:[2,"multiple","multiple",I],accept:"accept",disabled:[2,"disabled","disabled",I],auto:[2,"auto","auto",I],withCredentials:[2,"withCredentials","withCredentials",I],maxFileSize:[2,"maxFileSize","maxFileSize",X],invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:[2,"previewWidth","previewWidth",X],chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:[2,"showUploadButton","showUploadButton",I],showCancelButton:[2,"showCancelButton","showCancelButton",I],mode:"mode",headers:"headers",customUpload:[2,"customUpload","customUpload",I],fileLimit:[2,"fileLimit","fileLimit",e=>X(e,null)],uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError",onRemoveUploadedFile:"onRemoveUploadedFile"},standalone:!1,decls:2,vars:2,consts:[["advancedfileinput",""],["content",""],["chooseSection",""],["basicfileinput",""],[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],["type","file",3,"change","multiple","accept","disabled"],[1,"p-fileupload-buttonbar"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],["class","p-fileupload-empty",4,"ngIf"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"focus","blur","click","keydown.enter","ngClass"],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],["type","button",3,"label","disabled","styleClass","onClick",4,"ngIf"],[3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-button-icon p-button-icon-left",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon","p-button-icon-left"],["type","button",3,"onClick","label","disabled","styleClass"],["class","p-button-icon p-button-icon-left",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left",3,"ngClass"],[3,"value","showValue"],[1,"p-fileupload-files"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[1,"p-fileupload-filename"],["type","button","pButton","",1,"p-button-icon-only",3,"click","disabled"],[3,"error","src","width"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload-empty"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"click","keydown","ngClass","ngStyle"],[4,"ngIf","ngIfElse"],["class","p-button-label",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["class","p-button-icon p-button-icon-left pi",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["class","p-button-icon p-button-icon-left pi",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi"],["type","file",3,"change","focus","blur","accept","multiple","disabled"]],template:function(t,n){t&1&&p(0,N_,14,42,"div",4)(1,t1,8,17,"div",5),t&2&&(l("ngIf",n.mode==="advanced"),c(),l("ngIf",n.mode==="basic"))},dependencies:()=>[ye,Ke,_e,Ce,we,jt,Mr,Hn,ku,tt,Rr,Ya,Ye],styles:[`@layer primeng{.p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Lu=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ve,mt,sn,Za,ht,Rr,Ya,Ye,ve,mt,sn,Za]})}return i})();var Vu=(()=>{class i{el;ngModel;control;cd;config;autoResize;variant="outlined";onResize=new S;filled;cachedScrollHeight;ngModelSubscription;ngControlSubscription;constructor(e,t,n,o,s){this.el=e,this.ngModel=t,this.control=n,this.cd=o,this.config=s}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||i)(C(de),C(ri,8),C(vi,8),C(ge),C(Fe))};static \u0275dir=De({type:i,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:6,hostBindings:function(t,n){t&1&&M("input",function(s){return n.onInput(s)}),t&2&&xt("p-filled",n.filled)("p-inputtextarea-resizable",n.autoResize)("p-variant-filled",n.variant==="filled"||n.config.inputStyle()==="filled")},inputs:{autoResize:[2,"autoResize","autoResize",I],variant:"variant"},outputs:{onResize:"onResize"},standalone:!1})}return i})(),Pu=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe]})}return i})();var ss=class i{constructor(r){this.http=r}apiUrl="/ocrb/api/ocr";extractText(r){let e=new FormData;return e.append("file",r),this.http.post(`${this.apiUrl}/extract`,e)}extractWithAI(r,e,t){return this.http.post("/ocrb/api/extract/ai",{text:r,file_path:e,model_type:t})}saveDocument(r){return this.http.post("/ocrb/api/documents/save",r)}static \u0275fac=function(e){return new(e||i)(re(si))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})};var o1=()=>({height:"6px"});function s1(i,r){i&1&&(f(0,"div",3),x(1,"p-progressBar",4),m()),i&2&&(c(),rt(Qe(2,o1)))}function a1(i,r){if(i&1){let e=H();f(0,"div",3)(1,"h3"),N(2,"Extracted Text Result:"),m(),f(3,"textarea",5),Qt("ngModelChange",function(n){v(e);let o=d();return Zt(o.extractedText,n)||(o.extractedText=n),b(n)}),N(4," "),m()()}if(i&2){let e=d();c(3),l("autoResize",!0),Yt("ngModel",e.extractedText)}}var as=class i{constructor(r,e){this.ocrService=r;this.messageService=e}extractedText=null;loading=!1;onUpload(r){this.loading=!0;let e=r.files[0];this.ocrService.extractText(e).subscribe({next:t=>{this.extractedText=t.text,this.loading=!1,this.messageService.add({severity:"success",summary:"Success",detail:"Text Extracted Successfully"})},error:t=>{console.error(t),this.loading=!1,this.messageService.add({severity:"error",summary:"Error",detail:"Extraction Failed"})}})}onClear(){this.extractedText=null}static \u0275fac=function(e){return new(e||i)(C(ss),C(Ct))};static \u0275cmp=O({type:i,selectors:[["app-ocr"]],features:[Ue([Ct])],decls:7,vars:3,consts:[[1,"card"],["mode","advanced","chooseLabel","Select PDF or Image","uploadLabel","Extract Text","cancelLabel","Clear","accept",".pdf,image/*","maxFileSize","10000000",3,"uploadHandler","onClear","customUpload"],["class","mt-4",4,"ngIf"],[1,"mt-4"],["mode","indeterminate"],["pInputTextarea","","readonly","",1,"w-full",2,"min-height","300px","width","100%","border-color","#d1d5db","font-family","monospace",3,"ngModelChange","autoResize","ngModel"]],template:function(e,t){e&1&&(f(0,"div",0)(1,"h2"),N(2,"OCR Extraction"),m(),f(3,"p-fileUpload",1),M("uploadHandler",function(o){return t.onUpload(o)})("onClear",function(){return t.onClear()}),m(),p(4,s1,2,3,"div",2)(5,a1,5,2,"div",2),x(6,"p-toast"),m()),e&2&&(c(3),l("customUpload",!0),c(),l("ngIf",t.loading),c(),l("ngIf",t.extractedText!==null))},dependencies:[oe,_e,bi,Mn,On,ri,Lu,Au,Hn,sn,Pu,Vu,Pn,Vn],styles:[".card[_ngcontent-%COMP%]{background:var(--surface-card);padding:2rem;border-radius:12px;margin-bottom:2rem}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem}"]})};var Xa=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["ChevronLeftIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var Ja=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["ChevronRightIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var el=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["ChevronUpIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var zn=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["ChevronDownIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var tl=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["CalendarIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var l1=["container"],c1=["inputfield"],d1=["contentWrapper"],u1=[[["p-header"]],[["p-footer"]]],p1=["p-header","p-footer"],h1=(i,r,e,t,n)=>({"p-calendar":!0,"p-input-icon-right":i,"p-calendar-w-btn":r,"p-calendar-timeonly":e,"p-calendar-disabled":t,"p-focus":n}),m1=i=>({clickCallBack:i}),f1=i=>({"p-datepicker-icon":i}),g1=(i,r,e,t,n,o)=>({"p-datepicker p-component":!0,"p-datepicker-inline":i,"p-disabled":r,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":t,"p-datepicker-monthpicker":n,"p-datepicker-touch-ui":o}),Nu=(i,r)=>({showTransitionParams:i,hideTransitionParams:r}),_1=i=>({value:"visibleTouchUI",params:i}),y1=i=>({value:"visible",params:i}),il=i=>({$implicit:i}),v1=(i,r)=>({"p-datepicker-other-month":i,"p-datepicker-today":r}),nl=(i,r)=>({"p-highlight":i,"p-disabled":r}),Bu=i=>[i];function b1(i,r){if(i&1){let e=H();f(0,"TimesIcon",11),M("click",function(){v(e);let n=d(3);return b(n.clear())}),m()}i&2&&l("styleClass","p-calendar-clear-icon")}function C1(i,r){}function w1(i,r){i&1&&p(0,C1,0,0,"ng-template")}function I1(i,r){if(i&1){let e=H();f(0,"span",12),M("click",function(){v(e);let n=d(3);return b(n.clear())}),p(1,w1,1,0,null,13),m()}if(i&2){let e=d(3);c(),l("ngTemplateOutlet",e.clearIconTemplate)}}function x1(i,r){if(i&1&&(A(0),p(1,b1,1,1,"TimesIcon",9)(2,I1,2,1,"span",10),L()),i&2){let e=d(2);c(),l("ngIf",!e.clearIconTemplate),c(),l("ngIf",e.clearIconTemplate)}}function T1(i,r){if(i&1&&x(0,"span",16),i&2){let e=d(3);l("ngClass",e.icon)}}function S1(i,r){i&1&&x(0,"CalendarIcon")}function D1(i,r){}function E1(i,r){i&1&&p(0,D1,0,0,"ng-template")}function M1(i,r){if(i&1&&(A(0),p(1,S1,1,0,"CalendarIcon",7)(2,E1,1,0,null,13),L()),i&2){let e=d(3);c(),l("ngIf",!e.triggerIconTemplate),c(),l("ngTemplateOutlet",e.triggerIconTemplate)}}function O1(i,r){if(i&1){let e=H();f(0,"button",14),M("click",function(n){v(e),d();let o=Te(1),s=d();return b(s.onButtonClick(n,o))}),p(1,T1,1,1,"span",15)(2,M1,3,2,"ng-container",7),m()}if(i&2){let e=d(2);l("disabled",e.disabled),g("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null),c(),l("ngIf",e.icon),c(),l("ngIf",!e.icon)}}function R1(i,r){if(i&1){let e=H();f(0,"CalendarIcon",19),M("click",function(n){v(e);let o=d(3);return b(o.onButtonClick(n))}),m()}if(i&2){let e=d(3);l("ngClass",Q(1,f1,e.showOnFocus))}}function F1(i,r){i&1&&P(0)}function k1(i,r){if(i&1&&(A(0),p(1,R1,1,3,"CalendarIcon",17)(2,F1,1,0,"ng-container",18),L()),i&2){let e=d(2);c(),l("ngIf",!e.inputIconTemplate),c(),l("ngTemplateOutlet",e.inputIconTemplate)("ngTemplateOutletContext",Q(3,m1,e.onButtonClick.bind(e)))}}function A1(i,r){if(i&1){let e=H();f(0,"input",6,1),M("focus",function(n){v(e);let o=d();return b(o.onInputFocus(n))})("keydown",function(n){v(e);let o=d();return b(o.onInputKeydown(n))})("click",function(){v(e);let n=d();return b(n.onInputClick())})("blur",function(n){v(e);let o=d();return b(o.onInputBlur(n))})("input",function(n){v(e);let o=d();return b(o.onUserInput(n))}),m(),p(2,x1,3,2,"ng-container",7)(3,O1,3,6,"button",8)(4,k1,3,5,"ng-container",7)}if(i&2){let e=d();E(e.inputStyleClass),l("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass",e.inputClass)("autofocus",e.autofocus),g("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),c(2),l("ngIf",e.showClear&&!e.disabled&&e.value!=null),c(),l("ngIf",e.showIcon&&e.iconDisplay==="button"),c(),l("ngIf",e.iconDisplay==="input"&&e.showIcon)}}function L1(i,r){i&1&&P(0)}function V1(i,r){i&1&&x(0,"ChevronLeftIcon",40),i&2&&l("styleClass","p-datepicker-prev-icon")}function P1(i,r){}function N1(i,r){i&1&&p(0,P1,0,0,"ng-template")}function B1(i,r){if(i&1&&(f(0,"span",41),p(1,N1,1,0,null,13),m()),i&2){let e=d(5);c(),l("ngTemplateOutlet",e.previousIconTemplate)}}function H1(i,r){if(i&1){let e=H();f(0,"button",38),M("keydown",function(n){v(e);let o=d(4);return b(o.onContainerButtonKeydown(n))})("click",function(n){v(e);let o=d(4);return b(o.onPrevButtonClick(n))}),p(1,V1,1,1,"ChevronLeftIcon",35)(2,B1,2,1,"span",39),m()}if(i&2){let e=d(4);g("aria-label",e.prevIconAriaLabel),c(),l("ngIf",!e.previousIconTemplate),c(),l("ngIf",e.previousIconTemplate)}}function z1(i,r){if(i&1){let e=H();f(0,"button",42),M("click",function(n){v(e);let o=d(4);return b(o.switchToMonthView(n))})("keydown",function(n){v(e);let o=d(4);return b(o.onContainerButtonKeydown(n))}),N(1),m()}if(i&2){let e=d().$implicit,t=d(3);l("disabled",t.switchViewButtonDisabled()),g("aria-label",t.getTranslation("chooseMonth")),c(),Pe(" ",t.getMonthName(e.month)," ")}}function U1(i,r){if(i&1){let e=H();f(0,"button",43),M("click",function(n){v(e);let o=d(4);return b(o.switchToYearView(n))})("keydown",function(n){v(e);let o=d(4);return b(o.onContainerButtonKeydown(n))}),N(1),m()}if(i&2){let e=d().$implicit,t=d(3);l("disabled",t.switchViewButtonDisabled()),g("aria-label",t.getTranslation("chooseYear")),c(),Pe(" ",t.getYear(e)," ")}}function j1(i,r){if(i&1&&(A(0),N(1),L()),i&2){let e=d(5);c(),qr("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1])}}function $1(i,r){i&1&&P(0)}function G1(i,r){if(i&1&&(f(0,"span",44),p(1,j1,2,2,"ng-container",7)(2,$1,1,0,"ng-container",18),m()),i&2){let e=d(4);c(),l("ngIf",!e.decadeTemplate),c(),l("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",Q(3,il,e.yearPickerValues))}}function W1(i,r){i&1&&x(0,"ChevronRightIcon",40),i&2&&l("styleClass","p-datepicker-next-icon")}function K1(i,r){}function q1(i,r){i&1&&p(0,K1,0,0,"ng-template")}function Y1(i,r){if(i&1&&(f(0,"span",45),p(1,q1,1,0,null,13),m()),i&2){let e=d(4);c(),l("ngTemplateOutlet",e.nextIconTemplate)}}function Z1(i,r){if(i&1&&(f(0,"th",51)(1,"span"),N(2),m()()),i&2){let e=d(5);c(2),ce(e.getTranslation("weekHeader"))}}function Q1(i,r){if(i&1&&(f(0,"th",52)(1,"span"),N(2),m()()),i&2){let e=r.$implicit;c(2),ce(e)}}function X1(i,r){if(i&1&&(f(0,"td",55)(1,"span",56),N(2),m()()),i&2){let e=d().index,t=d(2).$implicit;c(2),Pe(" ",t.weekNumbers[e]," ")}}function J1(i,r){if(i&1&&(A(0),N(1),L()),i&2){let e=d(2).$implicit;c(),ce(e.day)}}function ey(i,r){i&1&&P(0)}function ty(i,r){if(i&1&&(A(0),p(1,ey,1,0,"ng-container",18),L()),i&2){let e=d(2).$implicit,t=d(6);c(),l("ngTemplateOutlet",t.dateTemplate)("ngTemplateOutletContext",Q(2,il,e))}}function iy(i,r){i&1&&P(0)}function ny(i,r){if(i&1&&(A(0),p(1,iy,1,0,"ng-container",18),L()),i&2){let e=d(2).$implicit,t=d(6);c(),l("ngTemplateOutlet",t.disabledDateTemplate)("ngTemplateOutletContext",Q(2,il,e))}}function ry(i,r){if(i&1&&(f(0,"div",59),N(1),m()),i&2){let e=d(2).$implicit;c(),Pe(" ",e.day," ")}}function oy(i,r){if(i&1){let e=H();A(0),f(1,"span",57),M("click",function(n){v(e);let o=d().$implicit,s=d(6);return b(s.onDateSelect(n,o))})("keydown",function(n){v(e);let o=d().$implicit,s=d(3).index,a=d(3);return b(a.onDateCellKeydown(n,o,s))}),p(2,J1,2,1,"ng-container",7)(3,ty,2,4,"ng-container",7)(4,ny,2,4,"ng-container",7),m(),p(5,ry,2,1,"div",58),L()}if(i&2){let e=d().$implicit,t=d(6);c(),l("ngClass",Se(6,nl,t.isSelected(e)&&e.selectable,!e.selectable)),g("data-date",t.formatDateKey(t.formatDateMetaToDate(e))),c(),l("ngIf",!t.dateTemplate&&(e.selectable||!t.disabledDateTemplate)),c(),l("ngIf",e.selectable||!t.disabledDateTemplate),c(),l("ngIf",!e.selectable),c(),l("ngIf",t.isSelected(e))}}function sy(i,r){if(i&1&&(f(0,"td",16),p(1,oy,6,9,"ng-container",7),m()),i&2){let e=r.$implicit,t=d(6);l("ngClass",Se(3,v1,e.otherMonth,e.today)),g("aria-label",e.day),c(),l("ngIf",e.otherMonth?t.showOtherMonths:!0)}}function ay(i,r){if(i&1&&(f(0,"tr"),p(1,X1,3,1,"td",53)(2,sy,2,6,"td",54),m()),i&2){let e=r.$implicit,t=d(5);c(),l("ngIf",t.showWeek),c(),l("ngForOf",e)}}function ly(i,r){if(i&1&&(f(0,"div",46)(1,"table",47)(2,"thead")(3,"tr"),p(4,Z1,3,1,"th",48)(5,Q1,3,1,"th",49),m()(),f(6,"tbody"),p(7,ay,3,2,"tr",50),m()()()),i&2){let e=d().$implicit,t=d(3);c(4),l("ngIf",t.showWeek),c(),l("ngForOf",t.weekDays),c(2),l("ngForOf",e.dates)}}function cy(i,r){if(i&1){let e=H();f(0,"div",27)(1,"div",28),p(2,H1,3,3,"button",29),f(3,"div",30),p(4,z1,2,3,"button",31)(5,U1,2,3,"button",32)(6,G1,3,5,"span",33),m(),f(7,"button",34),M("keydown",function(n){v(e);let o=d(3);return b(o.onContainerButtonKeydown(n))})("click",function(n){v(e);let o=d(3);return b(o.onNextButtonClick(n))}),p(8,W1,1,1,"ChevronRightIcon",35)(9,Y1,2,1,"span",36),m()(),p(10,ly,8,3,"div",37),m()}if(i&2){let e=r.index,t=d(3);c(2),l("ngIf",e===0),c(2),l("ngIf",t.currentView==="date"),c(),l("ngIf",t.currentView!=="year"),c(),l("ngIf",t.currentView==="year"),c(),qt("display",t.numberOfMonths===1||e===t.numberOfMonths-1?"inline-flex":"none"),g("aria-label",t.nextIconAriaLabel),c(),l("ngIf",!t.nextIconTemplate),c(),l("ngIf",t.nextIconTemplate),c(),l("ngIf",t.currentView==="date")}}function dy(i,r){if(i&1&&(f(0,"div",59),N(1),m()),i&2){let e=d().$implicit;c(),Pe(" ",e," ")}}function uy(i,r){if(i&1){let e=H();f(0,"span",62),M("click",function(n){let o=v(e).index,s=d(4);return b(s.onMonthSelect(n,o))})("keydown",function(n){let o=v(e).index,s=d(4);return b(s.onMonthCellKeydown(n,o))}),N(1),p(2,dy,2,1,"div",58),m()}if(i&2){let e=r.$implicit,t=r.index,n=d(4);l("ngClass",Se(3,nl,n.isMonthSelected(t),n.isMonthDisabled(t))),c(),Pe(" ",e," "),c(),l("ngIf",n.isMonthSelected(t))}}function py(i,r){if(i&1&&(f(0,"div",60),p(1,uy,3,6,"span",61),m()),i&2){let e=d(3);c(),l("ngForOf",e.monthPickerValues())}}function hy(i,r){if(i&1&&(f(0,"div",59),N(1),m()),i&2){let e=d().$implicit;c(),Pe(" ",e," ")}}function my(i,r){if(i&1){let e=H();f(0,"span",65),M("click",function(n){let o=v(e).$implicit,s=d(4);return b(s.onYearSelect(n,o))})("keydown",function(n){let o=v(e).$implicit,s=d(4);return b(s.onYearCellKeydown(n,o))}),N(1),p(2,hy,2,1,"div",58),m()}if(i&2){let e=r.$implicit,t=d(4);l("ngClass",Se(3,nl,t.isYearSelected(e),t.isYearDisabled(e))),c(),Pe(" ",e," "),c(),l("ngIf",t.isYearSelected(e))}}function fy(i,r){if(i&1&&(f(0,"div",63),p(1,my,3,6,"span",64),m()),i&2){let e=d(3);c(),l("ngForOf",e.yearPickerValues())}}function gy(i,r){if(i&1&&(A(0),f(1,"div",23),p(2,cy,11,10,"div",24),m(),p(3,py,2,1,"div",25)(4,fy,2,1,"div",26),L()),i&2){let e=d(2);c(2),l("ngForOf",e.months),c(),l("ngIf",e.currentView==="month"),c(),l("ngIf",e.currentView==="year")}}function _y(i,r){i&1&&x(0,"ChevronUpIcon")}function yy(i,r){}function vy(i,r){i&1&&p(0,yy,0,0,"ng-template")}function by(i,r){i&1&&(A(0),N(1,"0"),L())}function Cy(i,r){i&1&&x(0,"ChevronDownIcon")}function wy(i,r){}function Iy(i,r){i&1&&p(0,wy,0,0,"ng-template")}function xy(i,r){i&1&&x(0,"ChevronUpIcon")}function Ty(i,r){}function Sy(i,r){i&1&&p(0,Ty,0,0,"ng-template")}function Dy(i,r){i&1&&(A(0),N(1,"0"),L())}function Ey(i,r){i&1&&x(0,"ChevronDownIcon")}function My(i,r){}function Oy(i,r){i&1&&p(0,My,0,0,"ng-template")}function Ry(i,r){if(i&1&&(f(0,"div",69)(1,"span"),N(2),m()()),i&2){let e=d(3);c(2),ce(e.timeSeparator)}}function Fy(i,r){i&1&&x(0,"ChevronUpIcon")}function ky(i,r){}function Ay(i,r){i&1&&p(0,ky,0,0,"ng-template")}function Ly(i,r){i&1&&(A(0),N(1,"0"),L())}function Vy(i,r){i&1&&x(0,"ChevronDownIcon")}function Py(i,r){}function Ny(i,r){i&1&&p(0,Py,0,0,"ng-template")}function By(i,r){if(i&1){let e=H();f(0,"div",74)(1,"button",68),M("keydown",function(n){v(e);let o=d(3);return b(o.onContainerButtonKeydown(n))})("keydown.enter",function(n){v(e);let o=d(3);return b(o.incrementSecond(n))})("keydown.space",function(n){v(e);let o=d(3);return b(o.incrementSecond(n))})("mousedown",function(n){v(e);let o=d(3);return b(o.onTimePickerElementMouseDown(n,2,1))})("mouseup",function(n){v(e);let o=d(3);return b(o.onTimePickerElementMouseUp(n))})("keyup.enter",function(n){v(e);let o=d(3);return b(o.onTimePickerElementMouseUp(n))})("keyup.space",function(n){v(e);let o=d(3);return b(o.onTimePickerElementMouseUp(n))})("mouseleave",function(){v(e);let n=d(3);return b(n.onTimePickerElementMouseLeave())}),p(2,Fy,1,0,"ChevronUpIcon",7)(3,Ay,1,0,null,13),m(),f(4,"span"),p(5,Ly,2,0,"ng-container",7),N(6),m(),f(7,"button",68),M("keydown",function(n){v(e);let o=d(3);return b(o.onContainerButtonKeydown(n))})("keydown.enter",function(n){v(e);let o=d(3);return b(o.decrementSecond(n))})("keydown.space",function(n){v(e);let o=d(3);return b(o.decrementSecond(n))})("mousedown",function(n){v(e);let o=d(3);return b(o.onTimePickerElementMouseDown(n,2,-1))})("mouseup",function(n){v(e);let o=d(3);return b(o.onTimePickerElementMouseUp(n))})("keyup.enter",function(n){v(e);let o=d(3);return b(o.onTimePickerElementMouseUp(n))})("keyup.space",function(n){v(e);let o=d(3);return b(o.onTimePickerElementMouseUp(n))})("mouseleave",function(){v(e);let n=d(3);return b(n.onTimePickerElementMouseLeave())}),p(8,Vy,1,0,"ChevronDownIcon",7)(9,Ny,1,0,null,13),m()()}if(i&2){let e=d(3);c(),g("aria-label",e.getTranslation("nextSecond")),c(),l("ngIf",!e.incrementIconTemplate),c(),l("ngTemplateOutlet",e.incrementIconTemplate),c(2),l("ngIf",e.currentSecond<10),c(),ce(e.currentSecond),c(),g("aria-label",e.getTranslation("prevSecond")),c(),l("ngIf",!e.decrementIconTemplate),c(),l("ngTemplateOutlet",e.decrementIconTemplate)}}function Hy(i,r){i&1&&x(0,"ChevronUpIcon")}function zy(i,r){}function Uy(i,r){i&1&&p(0,zy,0,0,"ng-template")}function jy(i,r){i&1&&x(0,"ChevronDownIcon")}function $y(i,r){}function Gy(i,r){i&1&&p(0,$y,0,0,"ng-template")}function Wy(i,r){if(i&1){let e=H();f(0,"div",75)(1,"button",76),M("keydown",function(n){v(e);let o=d(3);return b(o.onContainerButtonKeydown(n))})("click",function(n){v(e);let o=d(3);return b(o.toggleAMPM(n))})("keydown.enter",function(n){v(e);let o=d(3);return b(o.toggleAMPM(n))}),p(2,Hy,1,0,"ChevronUpIcon",7)(3,Uy,1,0,null,13),m(),f(4,"span"),N(5),m(),f(6,"button",76),M("keydown",function(n){v(e);let o=d(3);return b(o.onContainerButtonKeydown(n))})("click",function(n){v(e);let o=d(3);return b(o.toggleAMPM(n))})("keydown.enter",function(n){v(e);let o=d(3);return b(o.toggleAMPM(n))}),p(7,jy,1,0,"ChevronDownIcon",7)(8,Gy,1,0,null,13),m()()}if(i&2){let e=d(3);c(),g("aria-label",e.getTranslation("am")),c(),l("ngIf",!e.incrementIconTemplate),c(),l("ngTemplateOutlet",e.incrementIconTemplate),c(2),ce(e.pm?"PM":"AM"),c(),g("aria-label",e.getTranslation("pm")),c(),l("ngIf",!e.decrementIconTemplate),c(),l("ngTemplateOutlet",e.decrementIconTemplate)}}function Ky(i,r){if(i&1){let e=H();f(0,"div",66)(1,"div",67)(2,"button",68),M("keydown",function(n){v(e);let o=d(2);return b(o.onContainerButtonKeydown(n))})("keydown.enter",function(n){v(e);let o=d(2);return b(o.incrementHour(n))})("keydown.space",function(n){v(e);let o=d(2);return b(o.incrementHour(n))})("mousedown",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseDown(n,0,1))})("mouseup",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("keyup.enter",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("keyup.space",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("mouseleave",function(){v(e);let n=d(2);return b(n.onTimePickerElementMouseLeave())}),p(3,_y,1,0,"ChevronUpIcon",7)(4,vy,1,0,null,13),m(),f(5,"span"),p(6,by,2,0,"ng-container",7),N(7),m(),f(8,"button",68),M("keydown",function(n){v(e);let o=d(2);return b(o.onContainerButtonKeydown(n))})("keydown.enter",function(n){v(e);let o=d(2);return b(o.decrementHour(n))})("keydown.space",function(n){v(e);let o=d(2);return b(o.decrementHour(n))})("mousedown",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseDown(n,0,-1))})("mouseup",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("keyup.enter",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("keyup.space",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("mouseleave",function(){v(e);let n=d(2);return b(n.onTimePickerElementMouseLeave())}),p(9,Cy,1,0,"ChevronDownIcon",7)(10,Iy,1,0,null,13),m()(),f(11,"div",69)(12,"span"),N(13),m()(),f(14,"div",70)(15,"button",68),M("keydown",function(n){v(e);let o=d(2);return b(o.onContainerButtonKeydown(n))})("keydown.enter",function(n){v(e);let o=d(2);return b(o.incrementMinute(n))})("keydown.space",function(n){v(e);let o=d(2);return b(o.incrementMinute(n))})("mousedown",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseDown(n,1,1))})("mouseup",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("keyup.enter",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("keyup.space",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("mouseleave",function(){v(e);let n=d(2);return b(n.onTimePickerElementMouseLeave())}),p(16,xy,1,0,"ChevronUpIcon",7)(17,Sy,1,0,null,13),m(),f(18,"span"),p(19,Dy,2,0,"ng-container",7),N(20),m(),f(21,"button",68),M("keydown",function(n){v(e);let o=d(2);return b(o.onContainerButtonKeydown(n))})("keydown.enter",function(n){v(e);let o=d(2);return b(o.decrementMinute(n))})("keydown.space",function(n){v(e);let o=d(2);return b(o.decrementMinute(n))})("mousedown",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseDown(n,1,-1))})("mouseup",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("keyup.enter",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("keyup.space",function(n){v(e);let o=d(2);return b(o.onTimePickerElementMouseUp(n))})("mouseleave",function(){v(e);let n=d(2);return b(n.onTimePickerElementMouseLeave())}),p(22,Ey,1,0,"ChevronDownIcon",7)(23,Oy,1,0,null,13),m()(),p(24,Ry,3,1,"div",71)(25,By,10,8,"div",72)(26,Wy,9,7,"div",73),m()}if(i&2){let e=d(2);c(2),g("aria-label",e.getTranslation("nextHour")),c(),l("ngIf",!e.incrementIconTemplate),c(),l("ngTemplateOutlet",e.incrementIconTemplate),c(2),l("ngIf",e.currentHour<10),c(),ce(e.currentHour),c(),g("aria-label",e.getTranslation("prevHour")),c(),l("ngIf",!e.decrementIconTemplate),c(),l("ngTemplateOutlet",e.decrementIconTemplate),c(3),ce(e.timeSeparator),c(2),g("aria-label",e.getTranslation("nextMinute")),c(),l("ngIf",!e.incrementIconTemplate),c(),l("ngTemplateOutlet",e.incrementIconTemplate),c(2),l("ngIf",e.currentMinute<10),c(),ce(e.currentMinute),c(),g("aria-label",e.getTranslation("prevMinute")),c(),l("ngIf",!e.decrementIconTemplate),c(),l("ngTemplateOutlet",e.decrementIconTemplate),c(),l("ngIf",e.showSeconds),c(),l("ngIf",e.showSeconds),c(),l("ngIf",e.hourFormat=="12")}}function qy(i,r){if(i&1){let e=H();f(0,"div",77)(1,"button",78),M("keydown",function(n){v(e);let o=d(2);return b(o.onContainerButtonKeydown(n))})("click",function(n){v(e);let o=d(2);return b(o.onTodayButtonClick(n))}),m(),f(2,"button",78),M("keydown",function(n){v(e);let o=d(2);return b(o.onContainerButtonKeydown(n))})("click",function(n){v(e);let o=d(2);return b(o.onClearButtonClick(n))}),m()()}if(i&2){let e=d(2);c(),l("label",e.getTranslation("today"))("ngClass",Q(4,Bu,e.todayButtonStyleClass)),c(),l("label",e.getTranslation("clear"))("ngClass",Q(6,Bu,e.clearButtonStyleClass))}}function Yy(i,r){i&1&&P(0)}function Zy(i,r){if(i&1){let e=H();f(0,"div",20,2),M("@overlayAnimation.start",function(n){v(e);let o=d();return b(o.onOverlayAnimationStart(n))})("@overlayAnimation.done",function(n){v(e);let o=d();return b(o.onOverlayAnimationDone(n))})("click",function(n){v(e);let o=d();return b(o.onOverlayClick(n))}),Ge(2),p(3,L1,1,0,"ng-container",13)(4,gy,5,3,"ng-container",7)(5,Ky,27,20,"div",21)(6,qy,3,8,"div",22),Ge(7,1),p(8,Yy,1,0,"ng-container",13),m()}if(i&2){let e=d();E(e.panelStyleClass),l("ngStyle",e.panelStyle)("ngClass",$i(15,g1,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,e.view==="month",e.touchUI))("@overlayAnimation",e.touchUI?Q(25,_1,Se(22,Nu,e.showTransitionOptions,e.hideTransitionOptions)):Q(30,y1,Se(27,Nu,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0),g("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),c(3),l("ngTemplateOutlet",e.headerTemplate),c(),l("ngIf",!e.timeOnly),c(),l("ngIf",(e.showTime||e.timeOnly)&&e.currentView==="date"),c(),l("ngIf",e.showButtonBar),c(2),l("ngTemplateOutlet",e.footerTemplate)}}var Qy={provide:St,useExisting:wt(()=>Xy),multi:!0},Xy=(()=>{class i{document;el;renderer;cd;zone;config;overlayService;iconDisplay="button";style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepYearPicker=10;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;variant="outlined";get minDate(){return this._minDate}set minDate(e){this._minDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){let t=e.split(":"),n=parseInt(t[0]),o=parseInt(t[1]);this.populateYearOptions(n,o)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){let t=e||new Date;this.currentMonth=t.getMonth(),this.currentYear=t.getFullYear(),this.initTime(t),this.createMonths(this.currentMonth,this.currentYear)}}get inputClass(){return{"p-inputtext p-component":!0,"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled"}}onFocus=new S;onBlur=new S;onClose=new S;onSelect=new S;onClear=new S;onInput=new S;onTodayClick=new S;onClearClick=new S;onMonthChange=new S;onYearChange=new S;onClickOutside=new S;onShow=new S;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(e,t,n,o,s,a,u){this.document=e,this.el=t,this.renderer=n,this.cd=o,this.zone=s,this.config=a,this.overlayService=u,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=ae(),this.panelId=this.attributeSelector+"_panel";let e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"inputicon":this.inputIconTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;default:this.dateTemplate=e.template;break}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.disabled&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=_.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,t){this.yearOptions=[];for(let n=e;n<=t;n++)this.yearOptions.push(n)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),t=this.getTranslation(je.DAY_NAMES_MIN);for(let n=0;n<7;n++)this.weekDays.push(t[e]),e=e==6?0:++e}monthPickerValues(){let e=[];for(let t=0;t<=11;t++)e.push(this.config.getTranslation("monthNamesShort")[t]);return e}yearPickerValues(){let e=[],t=this.currentYear-this.currentYear%this.stepYearPicker;for(let n=0;n<this.stepYearPicker;n++)e.push(t+n);return e}createMonths(e,t){this.months=this.months=[];for(let n=0;n<this.numberOfMonths;n++){let o=e+n,s=t;o>11&&(o=o%11-1,s=t+1),this.months.push(this.createMonth(o,s))}}getWeekNumber(e){let t=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let o=+this.getFirstDateOfWeek();t.setDate(t.getDate()+6+o-t.getDay())}else t.setDate(t.getDate()+4-(t.getDay()||7));let n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t.getTime())/864e5)/7)+1}createMonth(e,t){let n=[],o=this.getFirstDayOfMonthIndex(e,t),s=this.getDaysCountInMonth(e,t),a=this.getDaysCountInPrevMonth(e,t),u=1,h=new Date,y=[],w=Math.ceil((s+o)/7);for(let T=0;T<w;T++){let D=[];if(T==0){for(let z=a-o+1;z<=a;z++){let V=this.getPreviousMonthAndYear(e,t);D.push({day:z,month:V.month,year:V.year,otherMonth:!0,today:this.isToday(h,z,V.month,V.year),selectable:this.isSelectable(z,V.month,V.year,!0)})}let k=7-D.length;for(let z=0;z<k;z++)D.push({day:u,month:e,year:t,today:this.isToday(h,u,e,t),selectable:this.isSelectable(u,e,t,!1)}),u++}else for(let k=0;k<7;k++){if(u>s){let z=this.getNextMonthAndYear(e,t);D.push({day:u-s,month:z.month,year:z.year,otherMonth:!0,today:this.isToday(h,u-s,z.month,z.year),selectable:this.isSelectable(u-s,z.month,z.year,!0)})}else D.push({day:u,month:e,year:t,today:this.isToday(h,u,e,t),selectable:this.isSelectable(u,e,t,!1)});u++}this.showWeek&&y.push(this.getWeekNumber(new Date(D[0].year,D[0].month,D[0].day))),n.push(D)}return{month:e,year:t,dates:n,weekNumbers:y}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){if(this.disabled){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementYearPickerStep(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(e){if(this.disabled){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementYearPickerStep(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear<e[0]){let t=e[e.length-1]-e[0];this.populateYearOptions(e[0]-t,e[e.length-1]-t)}}decrementYearPickerStep(){this.currentYear=this.currentYear-this.stepYearPicker}incrementYearPickerStep(){this.currentYear=this.currentYear+this.stepYearPicker}incrementYear(){this.currentYear++;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear>e[e.length-1]){let t=e[e.length-1]-e[0];this.populateYearOptions(e[0]+t,e[e.length-1]+t)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,t){if(this.disabled||!t.selectable){e.preventDefault();return}this.isMultipleSelection()&&this.isSelected(t)?(this.value=this.value.filter((n,o)=>!this.isDateEquals(n,t)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(t)&&this.selectDate(t),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()}shouldSelectDate(e){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(e,t){this.view==="month"?this.onDateSelect(e,{year:this.currentYear,month:t,day:1,selectable:!0}):(this.currentMonth=t,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,t){this.view==="year"?this.onDateSelect(e,{year:t,month:0,day:1,selectable:!0}):(this.currentYear=t,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value){if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let t=0;t<this.value.length;t++){let n=this.formatDateTime(this.value[t]);e+=n,t!==this.value.length-1&&(e+=this.multipleSeparator+" ")}else if(this.isRangeSelection()&&this.value&&this.value.length){let t=this.value[0],n=this.value[1];e=this.formatDateTime(t),n&&(e+=" "+this.rangeSeparator+" "+this.formatDateTime(n))}}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let t=this.keepInvalid?e:null,n=this.isValidDateForTimeConstraints(e);return this.isValidDate(e)?this.timeOnly?t=this.formatTime(e):(t=this.formatDate(e,this.getDateFormat()),this.showTime&&(t+=" "+this.formatTime(e))):this.dataType==="string"&&(t=e),t=n?t:"",t}formatDateMetaToDate(e){return new Date(e.year,e.month,e.day)}formatDateKey(e){return`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`}setCurrentHourPM(e){this.hourFormat=="12"?(this.pm=e>11,e>=12?this.currentHour=e==12?12:e-12:this.currentHour=e==0?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let t=this.formatDateMetaToDate(e);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?t.setHours(this.pm?12:0):t.setHours(this.pm?this.currentHour+12:this.currentHour):t.setHours(this.currentHour),t.setMinutes(this.currentMinute),t.setSeconds(this.currentSecond)),this.minDate&&this.minDate>t&&(t=this.minDate,this.setCurrentHourPM(t.getHours()),this.currentMinute=t.getMinutes(),this.currentSecond=t.getSeconds()),this.maxDate&&this.maxDate<t&&(t=this.maxDate,this.setCurrentHourPM(t.getHours()),this.currentMinute=t.getMinutes(),this.currentSecond=t.getSeconds()),this.isSingleSelection())this.updateModel(t);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,t]:[t]);else if(this.isRangeSelection())if(this.value&&this.value.length){let n=this.value[0],o=this.value[1];!o&&t.getTime()>=n.getTime()?o=t:(n=t,o=null),this.updateModel([n,o])}else this.updateModel([t,null]);this.onSelect.emit(t)}updateModel(e){if(this.value=e,this.dataType=="date")this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let t=null;Array.isArray(this.value)&&(t=this.value.map(n=>this.formatDateTime(n))),this.onModelChange(t)}}getFirstDayOfMonthIndex(e,t){let n=new Date;n.setDate(1),n.setMonth(e),n.setFullYear(t);let o=n.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,t){return 32-this.daylightSavingAdjust(new Date(t,e,32)).getDate()}getDaysCountInPrevMonth(e,t){let n=this.getPreviousMonthAndYear(e,t);return this.getDaysCountInMonth(n.month,n.year)}getPreviousMonthAndYear(e,t){let n,o;return e===0?(n=11,o=t-1):(n=e-1,o=t),{month:n,year:o}}getNextMonthAndYear(e,t){let n,o;return e===11?(n=0,o=t+1):(n=e+1,o=t),{month:n,year:o}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let t=!1;for(let n of this.value)if(t=this.isDateEquals(n,e),t)break;return t}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){let[t,n]=this.isRangeSelection()?this.value:[this.value,this.value],o=new Date(this.currentYear,e,1);return o>=t&&o<=(n??t)}return!1}isMonthDisabled(e,t){let n=t??this.currentYear;for(let o=1;o<this.getDaysCountInMonth(e,n)+1;o++)if(this.isSelectable(o,e,n,!1))return!1;return!0}isYearDisabled(e){return Array(12).fill(0).every((t,n)=>this.isMonthDisabled(n,e))}isYearSelected(e){if(this.isComparable()){let t=this.isRangeSelection()?this.value[0]:this.value;return this.isMultipleSelection()?!1:t.getFullYear()===e}return!1}isDateEquals(e,t){return e&&R.isDate(e)?e.getDate()===t.day&&e.getMonth()===t.month&&e.getFullYear()===t.year:!1}isDateBetween(e,t,n){let o=!1;if(R.isDate(e)&&R.isDate(t)){let s=this.formatDateMetaToDate(n);return e.getTime()<=s.getTime()&&t.getTime()>=s.getTime()}return o}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(e,t,n,o){return e.getDate()===t&&e.getMonth()===n&&e.getFullYear()===o}isSelectable(e,t,n,o){let s=!0,a=!0,u=!0,h=!0;return o&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>n||this.minDate.getFullYear()===n&&this.currentView!="year"&&(this.minDate.getMonth()>t||this.minDate.getMonth()===t&&this.minDate.getDate()>e))&&(s=!1),this.maxDate&&(this.maxDate.getFullYear()<n||this.maxDate.getFullYear()===n&&(this.maxDate.getMonth()<t||this.maxDate.getMonth()===t&&this.maxDate.getDate()<e))&&(a=!1),this.disabledDates&&(u=!this.isDateDisabled(e,t,n)),this.disabledDays&&(h=!this.isDayDisabled(e,t,n)),s&&a&&u&&h)}isDateDisabled(e,t,n){if(this.disabledDates){for(let o of this.disabledDates)if(o.getFullYear()===n&&o.getMonth()===t&&o.getDate()===e)return!0}return!1}isDayDisabled(e,t,n){if(this.disabledDays){let s=new Date(n,t,e).getDay();return this.disabledDays.indexOf(s)!==-1}return!1}onInputFocus(e){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(e)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(e){this.focus=!1,this.onBlur.emit(e),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(e,t=this.inputfieldViewChild?.nativeElement){this.overlayVisible?this.hideOverlay():(t.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return this.config.getTranslation("monthNames")[e]}getYear(e){return this.currentView==="month"?this.currentYear:e.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:if(this.inline||this.trapFocus(e),this.inline){let t=_.findSingle(this.containerViewChild?.nativeElement,".p-datepicker-header"),n=e.target;if(this.timeOnly)return;n==t.children[t?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;default:break}}onInputKeydown(e){this.isKeydown=!0,e.keyCode===40&&this.contentViewChild?this.trapFocus(e):e.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):e.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):e.keyCode===9&&this.contentViewChild&&(_.getFocusableElements(this.contentViewChild.nativeElement).forEach(t=>t.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,t,n){let o=e.currentTarget,s=o.parentElement,a=this.formatDateMetaToDate(t);switch(e.which){case 40:{o.tabIndex="-1";let k=_.index(s),z=s.parentElement.nextElementSibling;if(z){let V=z.children[k].children[0];_.hasClass(V,"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(z.children[k].children[0].tabIndex="0",z.children[k].children[0].focus())}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break}case 38:{o.tabIndex="-1";let k=_.index(s),z=s.parentElement.previousElementSibling;if(z){let V=z.children[k].children[0];_.hasClass(V,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(V.tabIndex="0",V.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let k=s.previousElementSibling;if(k){let z=k.children[0];_.hasClass(z,"p-disabled")||_.hasClass(z.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,n):(z.tabIndex="0",z.focus())}else this.navigateToMonth(!0,n);e.preventDefault();break}case 39:{o.tabIndex="-1";let k=s.nextElementSibling;if(k){let z=k.children[0];_.hasClass(z,"p-disabled")?this.navigateToMonth(!1,n):(z.tabIndex="0",z.focus())}else this.navigateToMonth(!1,n);e.preventDefault();break}case 13:case 32:{this.onDateSelect(e,t),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}case 33:{o.tabIndex="-1";let k=new Date(a.getFullYear(),a.getMonth()-1,a.getDate()),z=this.formatDateKey(k);this.navigateToMonth(!0,n,`span[data-date='${z}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 34:{o.tabIndex="-1";let k=new Date(a.getFullYear(),a.getMonth()+1,a.getDate()),z=this.formatDateKey(k);this.navigateToMonth(!1,n,`span[data-date='${z}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 36:o.tabIndex="-1";let u=new Date(a.getFullYear(),a.getMonth(),1),h=this.formatDateKey(u),y=_.findSingle(o.offsetParent,`span[data-date='${h}']:not(.p-disabled):not(.p-ink)`);y&&(y.tabIndex="0",y.focus()),e.preventDefault();break;case 35:o.tabIndex="-1";let w=new Date(a.getFullYear(),a.getMonth()+1,0),T=this.formatDateKey(w),D=_.findSingle(o.offsetParent,`span[data-date='${T}']:not(.p-disabled):not(.p-ink)`);w&&(D.tabIndex="0",D.focus()),e.preventDefault();break;default:break}}onMonthCellKeydown(e,t){let n=e.currentTarget;switch(e.which){case 38:case 40:{n.tabIndex="-1";var o=n.parentElement.children,s=_.index(n);let a=o[e.which===40?s+3:s-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{n.tabIndex="-1";let a=n.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{n.tabIndex="-1";let a=n.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onMonthSelect(e,t),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}default:break}}onYearCellKeydown(e,t){let n=e.currentTarget;switch(e.which){case 38:case 40:{n.tabIndex="-1";var o=n.parentElement.children,s=_.index(n);let a=o[e.which===40?s+2:s-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{n.tabIndex="-1";let a=n.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{n.tabIndex="-1";let a=n.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onYearSelect(e,t),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.trapFocus(e);break}default:break}}navigateToMonth(e,t,n){if(e)if(this.numberOfMonths===1||t===0)this.navigationState={backward:!0},this._focusKey=n,this.navBackward(event);else{let o=this.contentViewChild.nativeElement.children[t-1];if(n){let s=_.findSingle(o,n);s.tabIndex="0",s.focus()}else{let s=_.find(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),a=s[s.length-1];a.tabIndex="0",a.focus()}}else if(this.numberOfMonths===1||t===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=n,this.navForward(event);else{let o=this.contentViewChild.nativeElement.children[t+1];if(n){let s=_.findSingle(o,n);s.tabIndex="0",s.focus()}else{let s=_.findSingle(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?_.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():_.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let t;this.currentView==="month"?t=_.find(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):this.currentView==="year"?t=_.find(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):t=_.find(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),t&&t.length>0&&(e=t[t.length-1])}else this.currentView==="month"?e=_.findSingle(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):this.currentView==="year"?e=_.findSingle(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):e=_.findSingle(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell();this.alignOverlay()}initFocusableCell(){let e=this.contentViewChild?.nativeElement,t;if(this.currentView==="month"){let n=_.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),o=_.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");n.forEach(s=>s.tabIndex=-1),t=o||n[0],n.length===0&&_.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(this.currentView==="year"){let n=_.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),o=_.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");n.forEach(s=>s.tabIndex=-1),t=o||n[0],n.length===0&&_.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(t=_.findSingle(e,"span.p-highlight"),!t){let n=_.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");n?t=n:t=_.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}t&&(t.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||t.focus()},1),this.preventFocus=!1)}trapFocus(e){let t=_.getFocusableElements(this.contentViewChild.nativeElement);if(t&&t.length>0)if(!t[0].ownerDocument.activeElement)t[0].focus();else{let n=t.indexOf(t[0].ownerDocument.activeElement);if(e.shiftKey)if(n==-1||n===0)if(this.focusTrap)t[t.length-1].focus();else{if(n===-1)return this.hideOverlay();if(n===0)return}else t[n-1].focus();else if(n==-1)if(this.timeOnly)t[0].focus();else{let o=0;for(let s=0;s<t.length;s++)t[s].tagName==="SPAN"&&(o=s);t[o].focus()}else if(n===t.length-1){if(!this.focusTrap&&n!=-1)return this.hideOverlay();t[0].focus()}else t[n+1].focus()}e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour(e,t){return this.hourFormat=="12"?e===12?t?12:0:t?e+12:e:e}constrainTime(e,t,n,o){let s=[e,t,n],a,u=this.value,h=this.convertTo24Hour(e,o),y=this.isRangeSelection(),w=this.isMultipleSelection();(y||w)&&(this.value||(this.value=[new Date,new Date]),y&&(u=this.value[1]||this.value[0]),w&&(u=this.value[this.value.length-1]));let D=u?u.toDateString():null,k=this.minDate&&D&&this.minDate.toDateString()===D,z=this.maxDate&&D&&this.maxDate.toDateString()===D;switch(k&&(a=this.minDate.getHours()>=12),!0){case(k&&a&&this.minDate.getHours()===12&&this.minDate.getHours()>h):s[0]=11;case(k&&this.minDate.getHours()===h&&this.minDate.getMinutes()>t):s[1]=this.minDate.getMinutes();case(k&&this.minDate.getHours()===h&&this.minDate.getMinutes()===t&&this.minDate.getSeconds()>n):s[2]=this.minDate.getSeconds();break;case(k&&!a&&this.minDate.getHours()-1===h&&this.minDate.getHours()>h):s[0]=11,this.pm=!0;case(k&&this.minDate.getHours()===h&&this.minDate.getMinutes()>t):s[1]=this.minDate.getMinutes();case(k&&this.minDate.getHours()===h&&this.minDate.getMinutes()===t&&this.minDate.getSeconds()>n):s[2]=this.minDate.getSeconds();break;case(k&&a&&this.minDate.getHours()>h&&h!==12):this.setCurrentHourPM(this.minDate.getHours()),s[0]=this.currentHour;case(k&&this.minDate.getHours()===h&&this.minDate.getMinutes()>t):s[1]=this.minDate.getMinutes();case(k&&this.minDate.getHours()===h&&this.minDate.getMinutes()===t&&this.minDate.getSeconds()>n):s[2]=this.minDate.getSeconds();break;case(k&&this.minDate.getHours()>h):s[0]=this.minDate.getHours();case(k&&this.minDate.getHours()===h&&this.minDate.getMinutes()>t):s[1]=this.minDate.getMinutes();case(k&&this.minDate.getHours()===h&&this.minDate.getMinutes()===t&&this.minDate.getSeconds()>n):s[2]=this.minDate.getSeconds();break;case(z&&this.maxDate.getHours()<h):s[0]=this.maxDate.getHours();case(z&&this.maxDate.getHours()===h&&this.maxDate.getMinutes()<t):s[1]=this.maxDate.getMinutes();case(z&&this.maxDate.getHours()===h&&this.maxDate.getMinutes()===t&&this.maxDate.getSeconds()<n):s[2]=this.maxDate.getSeconds();break}return s}incrementHour(e){let t=this.currentHour??0,n=(this.currentHour??0)+this.stepHour,o=this.pm;this.hourFormat=="24"?n=n>=24?n-24:n:this.hourFormat=="12"&&(t<12&&n>11&&(o=!this.pm),n=n>=13?n-12:n),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(n,this.currentMinute,this.currentSecond,o),e.preventDefault()}toggleAMPMIfNotMinDate(e){let t=this.value,n=t?t.toDateString():null;this.minDate&&n&&this.minDate.toDateString()===n&&this.minDate.getHours()>=12?this.pm=!0:this.pm=e}onTimePickerElementMouseDown(e,t,n){this.disabled||(this.repeat(e,null,t,n),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,t,n,o){let s=t||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,n,o),this.cd.markForCheck()},s),n){case 0:o===1?this.incrementHour(e):this.decrementHour(e);break;case 1:o===1?this.incrementMinute(e):this.decrementMinute(e);break;case 2:o===1?this.incrementSecond(e):this.decrementSecond(e);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let t=(this.currentHour??0)-this.stepHour,n=this.pm;this.hourFormat=="24"?t=t<0?24+t:t:this.hourFormat=="12"&&(this.currentHour===12&&(n=!this.pm),t=t<=0?12+t:t),this.toggleAMPMIfNotMinDate(n),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(t,this.currentMinute,this.currentSecond,n),e.preventDefault()}incrementMinute(e){let t=(this.currentMinute??0)+this.stepMinute;t=t>59?t-60:t,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,t,this.currentSecond,this.pm),e.preventDefault()}decrementMinute(e){let t=(this.currentMinute??0)-this.stepMinute;t=t<0?60+t:t,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,t,this.currentSecond,this.pm),e.preventDefault()}incrementSecond(e){let t=this.currentSecond+this.stepSecond;t=t>59?t-60:t,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,t,this.pm),e.preventDefault()}decrementSecond(e){let t=this.currentSecond-this.stepSecond;t=t<0?60+t:t,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,t,this.pm),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?e.setHours(this.pm?12:0):e.setHours(this.pm?this.currentHour+12:this.currentHour):e.setHours(this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?e=[this.value[0],e]:e=[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){let t=!this.pm;this.pm=t,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,this.currentSecond,t),this.updateTime(),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let t=e.target.value;try{let n=this.parseValueFromString(t);this.isValidSelection(n)?(this.updateModel(n),this.updateUI()):this.keepInvalid&&this.updateModel(n)}catch{let o=this.keepInvalid?t:null;this.updateModel(o)}this.filled=t!=null&&t.length,this.onInput.emit(e)}isValidSelection(e){if(this.isSingleSelection())return this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1);let t=e.every(n=>this.isSelectable(n.getDate(),n.getMonth(),n.getFullYear(),!1));return t&&this.isRangeSelection()&&(t=e.length===1||e.length>1&&e[1]>=e[0]),t}parseValueFromString(e){if(!e||e.trim().length===0)return null;let t;if(this.isSingleSelection())t=this.parseDateTime(e);else if(this.isMultipleSelection()){let n=e.split(this.multipleSeparator);t=[];for(let o of n)t.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let n=e.split(" "+this.rangeSeparator+" ");t=[];for(let o=0;o<n.length;o++)t[o]=this.parseDateTime(n[o].trim())}return t}parseDateTime(e){let t,n=e.split(" ");if(this.timeOnly)t=new Date,this.populateTime(t,n[0],n[1]);else{let o=this.getDateFormat();if(this.showTime){let s=this.hourFormat=="12"?n.pop():null,a=n.pop();t=this.parseDate(n.join(" "),o),this.populateTime(t,a,s)}else t=this.parseDate(e,o)}return t}populateTime(e,t,n){if(this.hourFormat=="12"&&!n)throw"Invalid Time";this.pm=n==="PM"||n==="pm";let o=this.parseTime(t);e.setHours(o.hour),e.setMinutes(o.minute),e.setSeconds(o.second)}isValidDate(e){return R.isDate(e)&&R.isNotEmpty(e)}updateUI(){let e=this.value;Array.isArray(e)&&(e=e.length===2?e[1]:e[0]);let t=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new Date;this.currentMonth=t.getMonth(),this.currentYear=t.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(t.getHours()),this.currentMinute=t.getMinutes(),this.currentSecond=t.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=e.element,this.overlay?.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?qe.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):qe.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(e));break;case"void":this.onOverlayHide(),this.onClose.emit(e);break}}onOverlayAnimationDone(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&qe.clear(e.element);break}}appendOverlay(){this.appendTo&&(this.appendTo==="body"?this.document.body.appendChild(this.overlay):_.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?(this.view==="date"?(this.overlay.style.width=_.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=_.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px"):this.overlay.style.width=_.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px",_.absolutePosition(this.overlay,this.inputfieldViewChild?.nativeElement)):_.relativePosition(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(e){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(e.style.zIndex)-1)),_.addMultipleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",n=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),_.blockBodyScroll())}disableModality(){this.mask&&(_.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let e=this.document.body.children,t;for(let n=0;n<e.length;n++){let o=e[n];if(_.hasClass(o,"p-datepicker-mask-scrollblocker")){t=!0;break}}t||_.unblockBodyScroll(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}writeValue(e){if(this.value=e,this.value&&typeof this.value=="string")try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=e)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(je.FIRST_DAY_OF_WEEK)}formatDate(e,t){if(!e)return"";let n,o=y=>{let w=n+1<t.length&&t.charAt(n+1)===y;return w&&n++,w},s=(y,w,T)=>{let D=""+w;if(o(y))for(;D.length<T;)D="0"+D;return D},a=(y,w,T,D)=>o(y)?D[w]:T[w],u="",h=!1;if(e)for(n=0;n<t.length;n++)if(h)t.charAt(n)==="'"&&!o("'")?h=!1:u+=t.charAt(n);else switch(t.charAt(n)){case"d":u+=s("d",e.getDate(),2);break;case"D":u+=a("D",e.getDay(),this.getTranslation(je.DAY_NAMES_SHORT),this.getTranslation(je.DAY_NAMES));break;case"o":u+=s("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=s("m",e.getMonth()+1,2);break;case"M":u+=a("M",e.getMonth(),this.getTranslation(je.MONTH_NAMES_SHORT),this.getTranslation(je.MONTH_NAMES));break;case"y":u+=o("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=e.getTime()*1e4+this.ticksTo1970;break;case"'":o("'")?u+="'":h=!0;break;default:u+=t.charAt(n)}return u}formatTime(e){if(!e)return"";let t="",n=e.getHours(),o=e.getMinutes(),s=e.getSeconds();return this.hourFormat=="12"&&n>11&&n!=12&&(n-=12),this.hourFormat=="12"?t+=n===0?12:n<10?"0"+n:n:t+=n<10?"0"+n:n,t+=":",t+=o<10?"0"+o:o,this.showSeconds&&(t+=":",t+=s<10?"0"+s:s),this.hourFormat=="12"&&(t+=e.getHours()>11?" PM":" AM"),t}parseTime(e){let t=e.split(":"),n=this.showSeconds?3:2;if(t.length!==n)throw"Invalid time";let o=parseInt(t[0]),s=parseInt(t[1]),a=this.showSeconds?parseInt(t[2]):null;if(isNaN(o)||isNaN(s)||o>23||s>59||this.hourFormat=="12"&&o>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return this.hourFormat=="12"&&(o!==12&&this.pm?o+=12:!this.pm&&o===12&&(o-=12)),{hour:o,minute:s,second:a}}parseDate(e,t){if(t==null||e==null)throw"Invalid arguments";if(e=typeof e=="object"?e.toString():e+"",e==="")return null;let n,o,s,a=0,u=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),h=-1,y=-1,w=-1,T=-1,D=!1,k,z=Oe=>{let xe=n+1<t.length&&t.charAt(n+1)===Oe;return xe&&n++,xe},V=Oe=>{let xe=z(Oe),ct=Oe==="@"?14:Oe==="!"?20:Oe==="y"&&xe?4:Oe==="o"?3:2,gt=Oe==="y"?ct:1,Ft=new RegExp("^\\d{"+gt+","+ct+"}"),ui=e.substring(a).match(Ft);if(!ui)throw"Missing number at position "+a;return a+=ui[0].length,parseInt(ui[0],10)},J=(Oe,xe,ct)=>{let gt=-1,Ft=z(Oe)?ct:xe,ui=[];for(let $t=0;$t<Ft.length;$t++)ui.push([$t,Ft[$t]]);ui.sort(($t,jn)=>-($t[1].length-jn[1].length));for(let $t=0;$t<ui.length;$t++){let jn=ui[$t][1];if(e.substr(a,jn.length).toLowerCase()===jn.toLowerCase()){gt=ui[$t][0],a+=jn.length;break}}if(gt!==-1)return gt+1;throw"Unknown name at position "+a},le=()=>{if(e.charAt(a)!==t.charAt(n))throw"Unexpected literal at position "+a;a++};for(this.view==="month"&&(w=1),n=0;n<t.length;n++)if(D)t.charAt(n)==="'"&&!z("'")?D=!1:le();else switch(t.charAt(n)){case"d":w=V("d");break;case"D":J("D",this.getTranslation(je.DAY_NAMES_SHORT),this.getTranslation(je.DAY_NAMES));break;case"o":T=V("o");break;case"m":y=V("m");break;case"M":y=J("M",this.getTranslation(je.MONTH_NAMES_SHORT),this.getTranslation(je.MONTH_NAMES));break;case"y":h=V("y");break;case"@":k=new Date(V("@")),h=k.getFullYear(),y=k.getMonth()+1,w=k.getDate();break;case"!":k=new Date((V("!")-this.ticksTo1970)/1e4),h=k.getFullYear(),y=k.getMonth()+1,w=k.getDate();break;case"'":z("'")?le():D=!0;break;default:le()}if(a<e.length&&(s=e.substr(a),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(h===-1?h=new Date().getFullYear():h<100&&(h+=new Date().getFullYear()-new Date().getFullYear()%100+(h<=u?0:-100)),T>-1){y=1,w=T;do{if(o=this.getDaysCountInMonth(h,y-1),w<=o)break;y++,w-=o}while(!0)}if(this.view==="year"&&(y=y===-1?1:y,w=w===-1?1:w),k=this.daylightSavingAdjust(new Date(h,y-1,w)),k.getFullYear()!==h||k.getMonth()+1!==y||k.getDate()!==w)throw"Invalid date";return k}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&this.inputFieldValue!=""}isValidDateForTimeConstraints(e){return this.keepInvalid?!0:(!this.minDate||e>=this.minDate)&&(!this.maxDate||e<=this.maxDate)}onTodayButtonClick(e){let t=new Date,n={day:t.getDate(),month:t.getMonth(),year:t.getFullYear(),otherMonth:t.getMonth()!==this.currentMonth||t.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(t.getMonth(),t.getFullYear()),this.onDateSelect(e,n),this.onTodayClick.emit(t)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let t=[...this.responsiveOptions].filter(n=>!!(n.breakpoint&&n.numMonths)).sort((n,o)=>-1*n.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let n=0;n<t.length;n++){let{breakpoint:o,numMonths:s}=t[n],a=`
|
|
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${s}) .p-datepicker-next {
|
|
display: inline-flex !important;
|
|
}
|
|
`;for(let u=s;u<this.numberOfMonths;u++)a+=`
|
|
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${u+1}) {
|
|
display: none !important;
|
|
}
|
|
`;e+=`
|
|
@media screen and (max-width: ${o}) {
|
|
${a}
|
|
}
|
|
`}}this.responsiveStyleElement.innerHTML=e,_.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(e,"mousedown",t=>{this.isOutsideClicked(t)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(t),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ci(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return _.hasClass(e.target,"p-datepicker-prev")||_.hasClass(e.target,"p-datepicker-prev-icon")||_.hasClass(e.target,"p-datepicker-next")||_.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!_.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&qe.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(t){return new(t||i)(C(se),C(de),C(Me),C(ge),C(ke),C(Fe),C(Rn))};static \u0275cmp=O({type:i,selectors:[["p-calendar"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(l1,5)(c1,5)(d1,5),t&2){let o;G(o=W())&&(n.containerViewChild=o.first),G(o=W())&&(n.inputfieldViewChild=o.first),G(o=W())&&(n.content=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(t,n){t&2&&xt("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus)("p-calendar-clearable",n.showClear&&!n.disabled)},inputs:{iconDisplay:"iconDisplay",style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:[2,"disabled","disabled",I],dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",I],showOtherMonths:[2,"showOtherMonths","showOtherMonths",I],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",I],showIcon:[2,"showIcon","showIcon",I],icon:"icon",appendTo:"appendTo",readonlyInput:[2,"readonlyInput","readonlyInput",I],shortYearCutoff:"shortYearCutoff",monthNavigator:[2,"monthNavigator","monthNavigator",I],yearNavigator:[2,"yearNavigator","yearNavigator",I],hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",I],stepYearPicker:[2,"stepYearPicker","stepYearPicker",X],stepHour:[2,"stepHour","stepHour",X],stepMinute:[2,"stepMinute","stepMinute",X],stepSecond:[2,"stepSecond","stepSecond",X],showSeconds:[2,"showSeconds","showSeconds",I],required:[2,"required","required",I],showOnFocus:[2,"showOnFocus","showOnFocus",I],showWeek:[2,"showWeek","showWeek",I],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",I],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",X],showButtonBar:[2,"showButtonBar","showButtonBar",I],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",I],autoZIndex:[2,"autoZIndex","autoZIndex",I],baseZIndex:[2,"baseZIndex","baseZIndex",X],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",I],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",I],touchUI:[2,"touchUI","touchUI",I],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",I],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",X],variant:"variant",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},standalone:!1,features:[Ue([Qy])],ngContentSelectors:p1,decls:4,vars:12,consts:[["container",""],["inputfield",""],["contentWrapper",""],[3,"ngClass","ngStyle"],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off","pAutoFocus","",3,"focus","keydown","click","blur","input","value","readonly","ngStyle","placeholder","disabled","ngClass","autofocus"],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngClass"],[3,"click","ngStyle","ngClass"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"click","keydown","disabled"],["type","button",1,"p-datepicker-year","p-link",3,"click","keydown","disabled"],[1,"p-datepicker-decade"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"click","keydown","ngClass"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"click","keydown","ngClass"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"click","keydown","ngClass"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"keydown","click","label","ngClass"]],template:function(t,n){t&1&&(nt(u1),f(0,"span",3,0),p(2,A1,5,22,"ng-template",4)(3,Zy,9,32,"div",5),m()),t&2&&(E(n.styleClass),l("ngClass",Si(6,h1,n.showIcon&&n.iconDisplay==="input",n.showIcon&&n.iconDisplay==="button",n.timeOnly,n.disabled,n.focus||n.overlayVisible))("ngStyle",n.style),c(2),l("ngIf",!n.inline),c(),l("ngIf",n.inline||n.overlayVisible))},dependencies:()=>[ye,Ke,_e,Ce,we,jt,tt,Xa,Ja,el,zn,Ye,tl,Ut],styles:[`@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%;text-overflow:ellipsis}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-datepicker-icon{pointer-events:none}.p-calendar-clearable{position:relative}}
|
|
`],encapsulation:2,data:{animation:[Nt("overlayAnimation",[Yn("visibleTouchUI",Je({transform:"translate(-50%,-50%)",opacity:1})),ot("void => visible",[Je({opacity:0,transform:"scaleY(0.8)"}),ut("{{showTransitionParams}}",Je({opacity:1,transform:"*"}))]),ot("visible => void",[ut("{{hideTransitionParams}}",Je({opacity:0}))]),ot("void => visibleTouchUI",[Je({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),ut("{{showTransitionParams}}")]),ot("visibleTouchUI => void",[ut("{{hideTransitionParams}}",Je({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return i})(),Hu=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,mt,ve,ht,Xa,Ja,el,zn,Ye,tl,di,mt,ve]})}return i})();var Jy=["overlay"],ev=["content"],tv=["*"],iv=(i,r,e,t,n,o,s,a,u,h,y,w,T,D)=>({"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":i,"p-overlay-center":r,"p-overlay-top":e,"p-overlay-top-start":t,"p-overlay-top-end":n,"p-overlay-bottom":o,"p-overlay-bottom-start":s,"p-overlay-bottom-end":a,"p-overlay-left":u,"p-overlay-left-start":h,"p-overlay-left-end":y,"p-overlay-right":w,"p-overlay-right-start":T,"p-overlay-right-end":D}),nv=(i,r,e)=>({showTransitionParams:i,hideTransitionParams:r,transform:e}),rv=i=>({value:"visible",params:i}),ov=i=>({mode:i}),sv=i=>({$implicit:i});function av(i,r){i&1&&P(0)}function lv(i,r){if(i&1){let e=H();f(0,"div",3,1),M("click",function(n){v(e);let o=d(2);return b(o.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){v(e);let o=d(2);return b(o.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){v(e);let o=d(2);return b(o.onOverlayContentAnimationDone(n))}),Ge(2),p(3,av,1,0,"ng-container",4),m()}if(i&2){let e=d(2);E(e.contentStyleClass),l("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",Q(11,rv,ft(7,nv,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),c(3),l("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Q(15,sv,Q(13,ov,e.overlayMode)))}}function cv(i,r){if(i&1){let e=H();f(0,"div",3,0),M("click",function(){v(e);let n=d();return b(n.onOverlayClick())}),p(2,lv,4,17,"div",2),m()}if(i&2){let e=d();E(e.styleClass),l("ngStyle",e.style)("ngClass",qn(5,iv,[e.modal,e.modal&&e.overlayResponsiveDirection==="center",e.modal&&e.overlayResponsiveDirection==="top",e.modal&&e.overlayResponsiveDirection==="top-start",e.modal&&e.overlayResponsiveDirection==="top-end",e.modal&&e.overlayResponsiveDirection==="bottom",e.modal&&e.overlayResponsiveDirection==="bottom-start",e.modal&&e.overlayResponsiveDirection==="bottom-end",e.modal&&e.overlayResponsiveDirection==="left",e.modal&&e.overlayResponsiveDirection==="left-start",e.modal&&e.overlayResponsiveDirection==="left-end",e.modal&&e.overlayResponsiveDirection==="right",e.modal&&e.overlayResponsiveDirection==="right-start",e.modal&&e.overlayResponsiveDirection==="right-end"])),c(2),l("ngIf",e.visible)}}var dv={provide:St,useExisting:wt(()=>rl),multi:!0},uv=Gi([Je({transform:"{{transform}}",opacity:0}),ut("{{showTransitionParams}}")]),pv=Gi([ut("{{hideTransitionParams}}",Je({transform:"{{transform}}",opacity:0}))]),rl=(()=>{class i{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return R.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return R.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return R.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return R.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new S;onBeforeShow=new S;onShow=new S;onBeforeHide=new S;onHide=new S;onAnimationStart=new S;onAnimationDone=new S;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(Ve(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return F(F({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return F(F({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return _.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,t,n,o,s,a,u,h){this.document=e,this.platformId=t,this.el=n,this.renderer=o,this.config=s,this.overlayService=a,this.cd=u,this.zone=h,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this.contentTemplate=e.template:this.contentTemplate=e.template})}show(e,t=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),t&&_.focus(this.targetEl),this.modal&&_.addClass(this.document?.body,"p-overflow-hidden")}hide(e,t=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),t&&_.focus(this.targetEl),this.modal&&_.removeClass(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&_.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&qe.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),_.appendOverlay(this.overlayEl,this.appendTo==="body"?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&_.addClass(this.overlayEl,"p-component-overlay-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let t=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(t,!0),this.bindListeners();break;case"void":this.hide(t,!0),this.unbindListeners(),_.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),qe.clear(t),this.modalVisible=!1,this.cd.markForCheck();break}this.handleEvents("onAnimationDone",e)}handleEvents(e,t){this[e].emit(t),this.options&&this.options[e]&&this.options[e](t),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](t)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ci(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let n=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&n}):n)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!_.isTouchDevice()}):!_.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!_.isTouchDevice()}):!_.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(_.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),qe.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(t){return new(t||i)(C(se),C($e),C(de),C(Me),C(Fe),C(Rn),C(ge),C(ke))};static \u0275cmp=O({type:i,selectors:[["p-overlay"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(Jy,5)(ev,5),t&2){let o;G(o=W())&&(n.overlayViewChild=o.first),G(o=W())&&(n.contentViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},standalone:!1,features:[Ue([dv])],ngContentSelectors:tv,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"click","ngStyle","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&(nt(),p(0,cv,3,20,"div",2)),t&2&&l("ngIf",n.modalVisible)},dependencies:[ye,_e,Ce,we],styles:[`@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}
|
|
`],encapsulation:2,data:{animation:[Nt("overlayContentAnimation",[ot(":enter",[Wi(uv)]),ot(":leave",[Wi(pv)])])]},changeDetection:0})}return i})(),ol=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ve,ve]})}return i})();var mv=["element"],fv=["content"],gv=["*"],_v=(i,r,e)=>({"p-scroller":!0,"p-scroller-inline":i,"p-both-scroll":r,"p-horizontal-scroll":e}),sl=(i,r)=>({$implicit:i,options:r}),yv=i=>({"p-scroller-loading":i}),vv=i=>({"p-component-overlay":i}),bv=i=>({numCols:i}),zu=i=>({options:i}),Cv=()=>({styleClass:"p-scroller-loading-icon"}),wv=(i,r)=>({rows:i,columns:r});function Iv(i,r){i&1&&P(0)}function xv(i,r){if(i&1&&(A(0),p(1,Iv,1,0,"ng-container",10),L()),i&2){let e=d(2);c(),l("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Se(2,sl,e.loadedItems,e.getContentOptions()))}}function Tv(i,r){i&1&&P(0)}function Sv(i,r){if(i&1&&(A(0),p(1,Tv,1,0,"ng-container",10),L()),i&2){let e=r.$implicit,t=r.index,n=d(3);c(),l("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",Se(2,sl,e,n.getOptions(t)))}}function Dv(i,r){if(i&1&&(f(0,"div",11,3),p(2,Sv,2,5,"ng-container",12),m()),i&2){let e=d(2);l("ngClass",Q(5,yv,e.d_loading))("ngStyle",e.contentStyle),g("data-pc-section","content"),c(2),l("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function Ev(i,r){if(i&1&&x(0,"div",13),i&2){let e=d(2);l("ngStyle",e.spacerStyle),g("data-pc-section","spacer")}}function Mv(i,r){i&1&&P(0)}function Ov(i,r){if(i&1&&(A(0),p(1,Mv,1,0,"ng-container",10),L()),i&2){let e=r.index,t=d(4);c(),l("ngTemplateOutlet",t.loaderTemplate)("ngTemplateOutletContext",Q(4,zu,t.getLoaderOptions(e,t.both&&Q(2,bv,t._numItemsInViewport.cols))))}}function Rv(i,r){if(i&1&&(A(0),p(1,Ov,2,6,"ng-container",15),L()),i&2){let e=d(3);c(),l("ngForOf",e.loaderArr)}}function Fv(i,r){i&1&&P(0)}function kv(i,r){if(i&1&&(A(0),p(1,Fv,1,0,"ng-container",10),L()),i&2){let e=d(4);c(),l("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",Q(3,zu,Qe(2,Cv)))}}function Av(i,r){i&1&&x(0,"SpinnerIcon",16),i&2&&(l("styleClass","p-scroller-loading-icon pi-spin"),g("data-pc-section","loadingIcon"))}function Lv(i,r){if(i&1&&p(0,kv,2,5,"ng-container",6)(1,Av,1,2,"ng-template",null,5,Le),i&2){let e=Te(2),t=d(3);l("ngIf",t.loaderIconTemplate)("ngIfElse",e)}}function Vv(i,r){if(i&1&&(f(0,"div",14),p(1,Rv,2,1,"ng-container",6)(2,Lv,3,2,"ng-template",null,4,Le),m()),i&2){let e=Te(3),t=d(2);l("ngClass",Q(4,vv,!t.loaderTemplate)),g("data-pc-section","loader"),c(),l("ngIf",t.loaderTemplate)("ngIfElse",e)}}function Pv(i,r){if(i&1){let e=H();A(0),f(1,"div",7,1),M("scroll",function(n){v(e);let o=d();return b(o.onContainerScroll(n))}),p(3,xv,2,5,"ng-container",6)(4,Dv,3,7,"ng-template",null,2,Le)(6,Ev,1,2,"div",8)(7,Vv,4,6,"div",9),m(),L()}if(i&2){let e=Te(5),t=d();c(),E(t._styleClass),l("ngStyle",t._style)("ngClass",ft(12,_v,t.inline,t.both,t.horizontal)),g("id",t._id)("tabindex",t.tabindex)("data-pc-name","scroller")("data-pc-section","root"),c(2),l("ngIf",t.contentTemplate)("ngIfElse",e),c(3),l("ngIf",t._showSpacer),c(),l("ngIf",!t.loaderDisabled&&t._showLoader&&t.d_loading)}}function Nv(i,r){i&1&&P(0)}function Bv(i,r){if(i&1&&(A(0),p(1,Nv,1,0,"ng-container",10),L()),i&2){let e=d(2);c(),l("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Se(5,sl,e.items,Se(2,wv,e._items,e.loadedColumns)))}}function Hv(i,r){if(i&1&&(Ge(0),p(1,Bv,2,8,"ng-container",17)),i&2){let e=d();c(),l("ngIf",e.contentTemplate)}}var ls=(()=>{class i{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&Object.entries(e).forEach(([t,n])=>this[`_${t}`]!==n&&(this[`_${t}`]=n))}onLazyLoad=new S;onScroll=new S;onScrollIndexChange=new S;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}constructor(e,t,n,o,s){this.document=e,this.platformId=t,this.renderer=n,this.cd=o,this.zone=s}ngOnInit(){this.setInitialState()}ngOnChanges(e){let t=!1;if(e.loading){let{previousValue:n,currentValue:o}=e.loading;this.lazy&&n!==o&&o!==this.d_loading&&(this.d_loading=o,t=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:n,currentValue:o}=e.numToleratedItems;n!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){let{previousValue:n,currentValue:o}=e.options;this.lazy&&n?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,t=!0),n?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!t&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Ve(this.platformId)&&!this.initialized&&_.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=_.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=_.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=_.getWidth(this.contentEl),this.defaultContentHeight=_.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||_.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,t="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:s=0,scrollLeft:a=0}=this.elementViewChild?.nativeElement,{numToleratedItems:u}=this.calculateNumItems(),h=this.getContentPosition(),y=this.itemSize,w=(J=0,le)=>J<=le?0:J,T=(J,le,Oe)=>J*le+Oe,D=(J=0,le=0)=>this.scrollTo({left:J,top:le,behavior:t}),k=this.both?{rows:0,cols:0}:0,z=!1,V=!1;this.both?(k={rows:w(e[0],u[0]),cols:w(e[1],u[1])},D(T(k.cols,y[1],h.left),T(k.rows,y[0],h.top)),V=this.lastScrollPos.top!==s||this.lastScrollPos.left!==a,z=k.rows!==o.rows||k.cols!==o.cols):(k=w(e,u),this.horizontal?D(T(k,y,h.left),s):D(a,T(k,y,h.top)),V=this.lastScrollPos!==(this.horizontal?a:s),z=k!==o),this.isRangeChanged=z,V&&(this.first=k)}}scrollInView(e,t,n="auto"){if(t){let{first:o,viewport:s}=this.getRenderedRange(),a=(y=0,w=0)=>this.scrollTo({left:y,top:w,behavior:n}),u=t==="to-start",h=t==="to-end";if(u){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){let y=(s.first-1)*this._itemSize;this.horizontal?a(y,0):a(0,y)}}else if(h){if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){let y=(s.first+1)*this._itemSize;this.horizontal?a(y,0):a(0,y)}}}else this.scrollToIndex(e,n)}getRenderedRange(){let e=(o,s)=>s||o?Math.floor(o/(s||o)):0,t=this.first,n=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)t={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},n={rows:t.rows+this.numItemsInViewport.rows,cols:t.cols+this.numItemsInViewport.cols};else{let a=this.horizontal?s:o;t=e(a,this._itemSize),n=t+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:t,last:n}}}calculateNumItems(){let e=this.getContentPosition(),t=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(h,y)=>y||h?Math.ceil(h/(y||h)):0,s=h=>Math.ceil(h/2),a=this.both?{rows:o(n,this._itemSize[0]),cols:o(t,this._itemSize[1])}:o(this.horizontal?t:n,this._itemSize),u=this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a));return{numItemsInViewport:a,numToleratedItems:u}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:t}=this.calculateNumItems(),n=(a,u,h,y=!1)=>this.getLast(a+u+(a<h?2:3)*h,y),o=this.first,s=this.both?{rows:n(this.first.rows,e.rows,t[0]),cols:n(this.first.cols,e.cols,t[1],!0)}:n(this.first,e,t);this.last=s,this.numItemsInViewport=e,this.d_numToleratedItems=t,this.showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,t]=[_.getWidth(this.contentEl),_.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),t!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[n,o]=[_.getWidth(this.elementViewChild.nativeElement),_.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=n<this.defaultWidth?n+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=o<this.defaultHeight?o+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(e=0,t=!1){return this._items?Math.min(t?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){let e=getComputedStyle(this.contentEl),t=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),n=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),o=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),s=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:t,right:n,top:o,bottom:s,x:t+n,y:o+s}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let e=this.elementViewChild.nativeElement.parentElement.parentElement,t=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||e.offsetWidth}px`,n=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||e.offsetHeight}px`,o=(s,a)=>this.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(o("height",n),o("width",t)):o("height",n)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),t=(n,o,s,a=0)=>this.spacerStyle=be(F({},this.spacerStyle),{[`${n}`]:(o||[]).length*s+a+"px"});this.both?(t("height",this._items,this._itemSize[0],e.y),t("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?t("width",this._columns||this._items,this._itemSize,e.x):t("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let t=e?e.first:this.first,n=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle=be(F({},this.contentStyle),{transform:`translate3d(${s}px, ${a}px, 0)`});if(this.both)o(n(t.cols,this._itemSize[1]),n(t.rows,this._itemSize[0]));else{let s=n(t,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){let t=e.target,n=this.getContentPosition(),o=(V,J)=>V?V>J?V-J:V:0,s=(V,J)=>J||V?Math.floor(V/(J||V)):0,a=(V,J,le,Oe,xe,ct)=>V<=xe?xe:ct?le-Oe-xe:J+xe-1,u=(V,J,le,Oe,xe,ct,gt)=>V<=ct?0:Math.max(0,gt?V<J?le:V-ct:V>J?le:V-2*ct),h=(V,J,le,Oe,xe,ct=!1)=>{let gt=J+Oe+2*xe;return V>=xe&&(gt+=xe+1),this.getLast(gt,ct)},y=o(t.scrollTop,n.top),w=o(t.scrollLeft,n.left),T=this.both?{rows:0,cols:0}:0,D=this.last,k=!1,z=this.lastScrollPos;if(this.both){let V=this.lastScrollPos.top<=y,J=this.lastScrollPos.left<=w;if(!this._appendOnly||this._appendOnly&&(V||J)){let le={rows:s(y,this._itemSize[0]),cols:s(w,this._itemSize[1])},Oe={rows:a(le.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],V),cols:a(le.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],J)};T={rows:u(le.rows,Oe.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],V),cols:u(le.cols,Oe.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],J)},D={rows:h(le.rows,T.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:h(le.cols,T.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},k=T.rows!==this.first.rows||D.rows!==this.last.rows||T.cols!==this.first.cols||D.cols!==this.last.cols||this.isRangeChanged,z={top:y,left:w}}}else{let V=this.horizontal?w:y,J=this.lastScrollPos<=V;if(!this._appendOnly||this._appendOnly&&J){let le=s(V,this._itemSize),Oe=a(le,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,J);T=u(le,Oe,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,J),D=h(le,T,this.last,this.numItemsInViewport,this.d_numToleratedItems),k=T!==this.first||D!==this.last||this.isRangeChanged,z=V}}return{first:T,last:D,isRangeChanged:k,scrollPos:z}}onScrollChange(e){let{first:t,last:n,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){let a={first:t,last:n};if(this.setContentPosition(a),this.first=t,this.last=n,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged(t)){let u={first:this._step?Math.min(this.getPageByFirst(t)*this._step,this.items.length-this._step):t,last:Math.min(this._step?(this.getPageByFirst(t)+1)*this._step:n,this.items.length)};(this.lazyLoadState.first!==u.first||this.lazyLoadState.last!==u.last)&&this.handleEvents("onLazyLoad",u),this.lazyLoadState=u}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){let{isRangeChanged:t}=this.onScrollPositionChange(e);(t||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){Ve(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,t=_.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,t,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(_.isVisible(this.elementViewChild?.nativeElement)){let[e,t]=[_.getWidth(this.elementViewChild?.nativeElement),_.getHeight(this.elementViewChild?.nativeElement)],[n,o]=[e!==this.defaultWidth,t!==this.defaultHeight];(this.both?n||o:this.horizontal?n:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=t,this.defaultContentWidth=_.getWidth(this.contentEl),this.defaultContentHeight=_.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,t){return this.options&&this.options[e]?this.options[e](t):this[e].emit(t)}getContentOptions(){return{contentStyleClass:`p-scroller-content ${this.d_loading?"p-scroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,t)=>this.getLoaderOptions(e,t),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){let t=(this._items||[]).length,n=this.both?this.first.rows+e:this.first+e;return{index:n,count:t,first:n===0,last:n===t-1,even:n%2===0,odd:n%2!==0}}getLoaderOptions(e,t){let n=this.loaderArr.length;return F({index:e,count:n,first:e===0,last:e===n-1,even:e%2===0,odd:e%2!==0},t)}static \u0275fac=function(t){return new(t||i)(C(se),C($e),C(Me),C(ge),C(ke))};static \u0275cmp=O({type:i,selectors:[["p-scroller"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(mv,5)(fv,5),t&2){let o;G(o=W())&&(n.elementViewChild=o.first),G(o=W())&&(n.contentViewChild=o.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},standalone:!1,features:[Xe],ngContentSelectors:gv,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(t,n){if(t&1&&(nt(),p(0,Pv,8,16,"ng-container",6)(1,Hv,2,1,"ng-template",null,0,Le)),t&2){let o=Te(2);l("ngIf",!n._disabled)("ngIfElse",o)}},dependencies:()=>[ye,Ke,_e,Ce,we,ki],styles:[`@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}
|
|
`],encapsulation:2})}return i})(),Un=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ve,ki,ve]})}return i})();var al=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["BlankIcon"]],features:[Z],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg","v-bind","pti()"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"rect",1),j())},encapsulation:2})}return i})();var ll=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["SearchIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Fr=i=>({height:i}),zv=(i,r,e)=>({"p-dropdown-item":!0,"p-highlight":i,"p-disabled":r,"p-focus":e}),cl=i=>({$implicit:i});function Uv(i,r){i&1&&x(0,"CheckIcon",4),i&2&&l("styleClass","p-dropdown-check-icon")}function jv(i,r){i&1&&x(0,"BlankIcon",4),i&2&&l("styleClass","p-dropdown-blank-icon")}function $v(i,r){if(i&1&&(A(0),p(1,Uv,1,1,"CheckIcon",3)(2,jv,1,1,"BlankIcon",3),L()),i&2){let e=d();c(),l("ngIf",e.selected),c(),l("ngIf",!e.selected)}}function Gv(i,r){if(i&1&&(f(0,"span"),N(1),m()),i&2){let e=d();c(),ce(e.label??"empty")}}function Wv(i,r){i&1&&P(0)}var Kv=["container"],qv=["filter"],Yv=["focusInput"],Zv=["editableInput"],Qv=["items"],Xv=["scroller"],Jv=["overlay"],eb=["firstHiddenFocusableEl"],tb=["lastHiddenFocusableEl"],ju=i=>({options:i}),ib=i=>({"p-variant-filled":i}),$u=(i,r)=>({$implicit:i,options:r}),nb=()=>({});function rb(i,r){if(i&1&&(A(0),N(1),L()),i&2){let e=d(2);c(),ce(e.label()==="p-emptylabel"?"\xA0":e.label())}}function ob(i,r){if(i&1&&P(0,25),i&2){let e=d(2);l("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",Q(2,cl,e.selectedOption))}}function sb(i,r){if(i&1&&(f(0,"span"),N(1),m()),i&2){let e=d(3);c(),ce(e.label()==="p-emptylabel"?"\xA0":e.label())}}function ab(i,r){if(i&1&&p(0,sb,2,1,"span",18),i&2){let e=d(2);l("ngIf",!e.selectedOption)}}function lb(i,r){if(i&1){let e=H();f(0,"span",23,3),M("focus",function(n){v(e);let o=d();return b(o.onInputFocus(n))})("blur",function(n){v(e);let o=d();return b(o.onInputBlur(n))})("keydown",function(n){v(e);let o=d();return b(o.onKeyDown(n))}),p(2,rb,2,1,"ng-container",20)(3,ob,1,4,"ng-container",24)(4,ab,1,1,"ng-template",null,4,Le),m()}if(i&2){let e=Te(5),t=d();l("ngClass",t.inputClass)("pTooltip",t.tooltip)("tooltipPosition",t.tooltipPosition)("positionStyle",t.tooltipPositionStyle)("tooltipStyleClass",t.tooltipStyleClass)("autofocus",t.autofocus),g("aria-disabled",t.disabled)("id",t.inputId)("aria-label",t.ariaLabel||(t.label()==="p-emptylabel"?void 0:t.label()))("aria-labelledby",t.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",t.overlayVisible??!1)("aria-controls",t.overlayVisible?t.id+"_list":null)("tabindex",t.disabled?-1:t.tabindex)("aria-activedescendant",t.focused?t.focusedOptionId:void 0)("aria-required",t.required)("required",t.required),c(2),l("ngIf",!t.selectedItemTemplate)("ngIfElse",e),c(),l("ngIf",t.selectedItemTemplate&&t.selectedOption)}}function cb(i,r){if(i&1){let e=H();f(0,"input",26,5),M("input",function(n){v(e);let o=d();return b(o.onEditableInput(n))})("keydown",function(n){v(e);let o=d();return b(o.onKeyDown(n))})("focus",function(n){v(e);let o=d();return b(o.onInputFocus(n))})("blur",function(n){v(e);let o=d();return b(o.onInputBlur(n))}),m()}if(i&2){let e=d();l("ngClass",e.inputClass)("disabled",e.disabled)("autofocus",e.autofocus),g("id",e.inputId)("maxlength",e.maxlength)("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function db(i,r){if(i&1){let e=H();f(0,"TimesIcon",29),M("click",function(n){v(e);let o=d(2);return b(o.clear(n))}),m()}i&2&&(l("styleClass","p-dropdown-clear-icon"),g("data-pc-section","clearicon"))}function ub(i,r){}function pb(i,r){i&1&&p(0,ub,0,0,"ng-template")}function hb(i,r){if(i&1){let e=H();f(0,"span",30),M("click",function(n){v(e);let o=d(2);return b(o.clear(n))}),p(1,pb,1,0,null,31),m()}if(i&2){let e=d(2);g("data-pc-section","clearicon"),c(),l("ngTemplateOutlet",e.clearIconTemplate)}}function mb(i,r){if(i&1&&(A(0),p(1,db,1,2,"TimesIcon",27)(2,hb,2,2,"span",28),L()),i&2){let e=d();c(),l("ngIf",!e.clearIconTemplate),c(),l("ngIf",e.clearIconTemplate)}}function fb(i,r){i&1&&P(0)}function gb(i,r){if(i&1&&(A(0),p(1,fb,1,0,"ng-container",31),L()),i&2){let e=d(2);c(),l("ngTemplateOutlet",e.loadingIconTemplate)}}function _b(i,r){if(i&1&&x(0,"span",34),i&2){let e=d(3);l("ngClass","p-dropdown-trigger-icon pi-spin "+e.loadingIcon)}}function yb(i,r){i&1&&x(0,"span",35),i&2&&E("p-dropdown-trigger-icon pi pi-spinner pi-spin")}function vb(i,r){if(i&1&&(A(0),p(1,_b,1,1,"span",32)(2,yb,1,2,"span",33),L()),i&2){let e=d(2);c(),l("ngIf",e.loadingIcon),c(),l("ngIf",!e.loadingIcon)}}function bb(i,r){if(i&1&&(A(0),p(1,gb,2,1,"ng-container",18)(2,vb,3,2,"ng-container",18),L()),i&2){let e=d();c(),l("ngIf",e.loadingIconTemplate),c(),l("ngIf",!e.loadingIconTemplate)}}function Cb(i,r){if(i&1&&x(0,"span",39),i&2){let e=d(3);l("ngClass",e.dropdownIcon)}}function wb(i,r){i&1&&x(0,"ChevronDownIcon",40),i&2&&l("styleClass","p-dropdown-trigger-icon")}function Ib(i,r){if(i&1&&(A(0),p(1,Cb,1,1,"span",37)(2,wb,1,1,"ChevronDownIcon",38),L()),i&2){let e=d(2);c(),l("ngIf",e.dropdownIcon),c(),l("ngIf",!e.dropdownIcon)}}function xb(i,r){}function Tb(i,r){i&1&&p(0,xb,0,0,"ng-template")}function Sb(i,r){if(i&1&&(f(0,"span",41),p(1,Tb,1,0,null,31),m()),i&2){let e=d(2);c(),l("ngTemplateOutlet",e.dropdownIconTemplate)}}function Db(i,r){if(i&1&&p(0,Ib,3,2,"ng-container",18)(1,Sb,2,1,"span",36),i&2){let e=d();l("ngIf",!e.dropdownIconTemplate),c(),l("ngIf",e.dropdownIconTemplate)}}function Eb(i,r){i&1&&P(0)}function Mb(i,r){i&1&&P(0)}function Ob(i,r){if(i&1&&(A(0),p(1,Mb,1,0,"ng-container",48),L()),i&2){let e=d(3);c(),l("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Q(2,ju,e.filterOptions))}}function Rb(i,r){i&1&&x(0,"SearchIcon",40),i&2&&l("styleClass","p-dropdown-filter-icon")}function Fb(i,r){}function kb(i,r){i&1&&p(0,Fb,0,0,"ng-template")}function Ab(i,r){if(i&1&&(f(0,"span",52),p(1,kb,1,0,null,31),m()),i&2){let e=d(4);c(),l("ngTemplateOutlet",e.filterIconTemplate)}}function Lb(i,r){if(i&1){let e=H();f(0,"div",49)(1,"input",50,10),M("input",function(n){v(e);let o=d(3);return b(o.onFilterInputChange(n))})("keydown",function(n){v(e);let o=d(3);return b(o.onFilterKeyDown(n))})("blur",function(n){v(e);let o=d(3);return b(o.onFilterBlur(n))}),m(),p(3,Rb,1,1,"SearchIcon",38)(4,Ab,2,1,"span",51),m()}if(i&2){let e=d(3);c(),l("value",e._filterValue()||"")("ngClass",Q(8,ib,e.variant==="filled"||e.config.inputStyle()==="filled")),g("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),c(2),l("ngIf",!e.filterIconTemplate),c(),l("ngIf",e.filterIconTemplate)}}function Vb(i,r){if(i&1){let e=H();f(0,"div",47),M("click",function(n){return v(e),b(n.stopPropagation())}),p(1,Ob,2,4,"ng-container",20)(2,Lb,5,10,"ng-template",null,9,Le),m()}if(i&2){let e=Te(3),t=d(2);c(),l("ngIf",t.filterTemplate)("ngIfElse",e)}}function Pb(i,r){i&1&&P(0)}function Nb(i,r){if(i&1&&p(0,Pb,1,0,"ng-container",48),i&2){let e=r.$implicit,t=r.options;d(2);let n=Te(9);l("ngTemplateOutlet",n)("ngTemplateOutletContext",Se(2,$u,e,t))}}function Bb(i,r){i&1&&P(0)}function Hb(i,r){if(i&1&&p(0,Bb,1,0,"ng-container",48),i&2){let e=r.options,t=d(4);l("ngTemplateOutlet",t.loaderTemplate)("ngTemplateOutletContext",Q(2,ju,e))}}function zb(i,r){i&1&&(A(0),p(1,Hb,1,4,"ng-template",54),L())}function Ub(i,r){if(i&1){let e=H();f(0,"p-scroller",53,11),M("onLazyLoad",function(n){v(e);let o=d(2);return b(o.onLazyLoad.emit(n))}),p(2,Nb,1,5,"ng-template",22)(3,zb,2,0,"ng-container",18),m()}if(i&2){let e=d(2);rt(Q(8,Fr,e.scrollHeight)),l("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),c(3),l("ngIf",e.loaderTemplate)}}function jb(i,r){i&1&&P(0)}function $b(i,r){if(i&1&&(A(0),p(1,jb,1,0,"ng-container",48),L()),i&2){d();let e=Te(9),t=d();c(),l("ngTemplateOutlet",e)("ngTemplateOutletContext",Se(3,$u,t.visibleOptions(),Qe(2,nb)))}}function Gb(i,r){if(i&1&&(f(0,"span"),N(1),m()),i&2){let e=d(2).$implicit,t=d(3);c(),ce(t.getOptionGroupLabel(e.optionGroup))}}function Wb(i,r){i&1&&P(0)}function Kb(i,r){if(i&1&&(A(0),f(1,"li",58),p(2,Gb,2,1,"span",18)(3,Wb,1,0,"ng-container",48),m(),L()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d().options,s=d(2);c(),l("ngStyle",Q(5,Fr,o.itemSize+"px")),g("id",s.id+"_"+s.getOptionIndex(n,o)),c(),l("ngIf",!s.groupTemplate),c(),l("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",Q(7,cl,t.optionGroup))}}function qb(i,r){if(i&1){let e=H();A(0),f(1,"p-dropdownItem",59),M("onClick",function(n){v(e);let o=d().$implicit,s=d(3);return b(s.onOptionSelect(n,o))})("onMouseEnter",function(n){v(e);let o=d().index,s=d().options,a=d(2);return b(a.onOptionMouseEnter(n,a.getOptionIndex(o,s)))}),m(),L()}if(i&2){let e=d(),t=e.$implicit,n=e.index,o=d().options,s=d(2);c(),l("id",s.id+"_"+s.getOptionIndex(n,o))("option",t)("checkmark",s.checkmark)("selected",s.isSelected(t))("label",s.getOptionLabel(t))("disabled",s.isOptionDisabled(t))("template",s.itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(n,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(n,o)))("ariaSetSize",s.ariaSetSize)}}function Yb(i,r){if(i&1&&p(0,Kb,4,9,"ng-container",18)(1,qb,2,10,"ng-container",18),i&2){let e=r.$implicit,t=d(3);l("ngIf",t.isOptionGroup(e)),c(),l("ngIf",!t.isOptionGroup(e))}}function Zb(i,r){if(i&1&&(A(0),N(1),L()),i&2){let e=d(4);c(),Pe(" ",e.emptyFilterMessageLabel," ")}}function Qb(i,r){i&1&&P(0,null,13)}function Xb(i,r){if(i&1&&(f(0,"li",60),p(1,Zb,2,1,"ng-container",20)(2,Qb,2,0,"ng-container",31),m()),i&2){let e=d().options,t=d(2);l("ngStyle",Q(4,Fr,e.itemSize+"px")),c(),l("ngIf",!t.emptyFilterTemplate&&!t.emptyTemplate)("ngIfElse",t.emptyFilter),c(),l("ngTemplateOutlet",t.emptyFilterTemplate||t.emptyTemplate)}}function Jb(i,r){if(i&1&&(A(0),N(1),L()),i&2){let e=d(4);c(),Pe(" ",e.emptyMessageLabel," ")}}function eC(i,r){i&1&&P(0,null,14)}function tC(i,r){if(i&1&&(f(0,"li",60),p(1,Jb,2,1,"ng-container",20)(2,eC,2,0,"ng-container",31),m()),i&2){let e=d().options,t=d(2);l("ngStyle",Q(4,Fr,e.itemSize+"px")),c(),l("ngIf",!t.emptyTemplate)("ngIfElse",t.empty),c(),l("ngTemplateOutlet",t.emptyTemplate)}}function iC(i,r){if(i&1&&(f(0,"ul",55,12),p(2,Yb,2,2,"ng-template",56)(3,Xb,3,6,"li",57)(4,tC,3,6,"li",57),m()),i&2){let e=r.$implicit,t=r.options,n=d(2);rt(t.contentStyle),l("ngClass",t.contentStyleClass),g("id",n.id+"_list")("aria-label",n.listLabel),c(2),l("ngForOf",e),c(),l("ngIf",n.filterValue&&n.isEmpty()),c(),l("ngIf",!n.filterValue&&n.isEmpty())}}function nC(i,r){i&1&&P(0)}function rC(i,r){if(i&1){let e=H();f(0,"div",42)(1,"span",43,6),M("focus",function(n){v(e);let o=d();return b(o.onFirstHiddenFocus(n))}),m(),p(3,Eb,1,0,"ng-container",31)(4,Vb,4,2,"div",44),f(5,"div",45),p(6,Ub,4,10,"p-scroller",46)(7,$b,2,6,"ng-container",18)(8,iC,5,8,"ng-template",null,7,Le),m(),p(10,nC,1,0,"ng-container",31),f(11,"span",43,8),M("focus",function(n){v(e);let o=d();return b(o.onLastHiddenFocus(n))}),m()()}if(i&2){let e=d();E(e.panelStyleClass),l("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),c(),g("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),l("ngTemplateOutlet",e.headerTemplate),c(),l("ngIf",e.filter),c(),qt("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),c(),l("ngIf",e.virtualScroll),c(),l("ngIf",!e.virtualScroll),c(3),l("ngTemplateOutlet",e.footerTemplate),c(),g("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var oC={provide:St,useExisting:wt(()=>dl),multi:!0},sC=(()=>{class i{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new S;onMouseEnter=new S;ngOnInit(){}onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=O({type:i,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:[2,"selected","selected",I],focused:[2,"focused","focused",I],label:"label",disabled:[2,"disabled","disabled",I],visible:[2,"visible","visible",I],itemSize:[2,"itemSize","itemSize",X],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",I]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},standalone:!1,decls:4,vars:22,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(t,n){t&1&&(f(0,"li",0),M("click",function(s){return n.onOptionClick(s)})("mouseenter",function(s){return n.onOptionMouseEnter(s)}),p(1,$v,3,2,"ng-container",1)(2,Gv,2,1,"span",1)(3,Wv,1,0,"ng-container",2),m()),t&2&&(l("id",n.id)("ngStyle",Q(14,Fr,n.itemSize+"px"))("ngClass",ft(16,zv,n.selected,n.disabled,n.focused)),g("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-disabled",n.disabled),c(),l("ngIf",n.checkmark),c(),l("ngIf",!n.template),c(),l("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Q(20,cl,n.option)))},dependencies:()=>[ye,_e,Ce,we,tt,al,Dt],encapsulation:2})}return i})(),dl=(()=>{class i{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;variant="outlined";inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){R.deepEquals(e,this._options())||this._options.set(e)}onChange=new S;onFilter=new S;onFocus=new S;onBlur=new S;onClick=new S;onShow=new S;onHide=new S;onClear=new S;onLazyLoad=new S;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=ze(null);_placeholder=ze(void 0);modelValue=ze(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=ze(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=ze(-1);labelId;listId;clicked=ze(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(je.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(je.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(je.ARIA).listLabel}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue()!==void 0&&this.modelValue()!==null&&!this.modelValue().length,"p-inputwrapper-focus":this.focused||this.overlayVisible,"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled"}}get inputClass(){let e=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder()&&e===this.placeholder(),"p-dropdown-label-empty":!this.editable&&!this.selectedItemTemplate&&(e==null||e==="p-emptylabel"||e.length===0)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":this.config.inputStyle()==="filled","p-ripple-disabled":this.config.ripple===!1}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=Xt(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let n=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],s=[];return o.forEach(a=>{let h=this.getOptionGroupChildren(a).filter(y=>n.includes(y));h.length>0&&s.push(be(F({},a),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...h]}))}),this.flatOptions(s)}return n}return e});label=Xt(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),t=e.findIndex(n=>this.isOptionValueEqualsModelValue(n));return t!==-1?this.getOptionLabel(e[t]):this.placeholder()||"p-emptylabel"});filled=Xt(()=>typeof this.modelValue()=="string"?!!this.modelValue():this.label()!=="p-emptylabel"&&this.modelValue()!==void 0&&this.modelValue()!==null);selectedOption;editableInputValue=Xt(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(e,t,n,o,s,a){this.el=e,this.renderer=t,this.cd=n,this.zone=o,this.filterService=s,this.config=a,Hr(()=>{let u=this.modelValue(),h=this.visibleOptions();if(h&&R.isNotEmpty(h)){let y=this.findSelectedOptionIndex();(y!==-1||u===void 0||typeof u=="string"&&u.length===0||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=h[y])}R.isEmpty(h)&&(u===void 0||this.isModelValueNotSet())&&R.isNotEmpty(this.selectedOption)&&(this.selectedOption=null),u!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){this.id=this.id||ae(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=_.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&_.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}flatOptions(e){return(e||[]).reduce((t,n,o)=>{t.push({optionGroup:n,group:!0,index:o});let s=this.getOptionGroupChildren(n);return s&&s.forEach(a=>t.push(a)),t},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(this.modelValue()===null||this.modelValue()===void 0)&&!this.placeholder()){let e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,t,n=!0,o=!1){if(!this.isSelected(t)){let s=this.getOptionValue(t);this.updateModel(s,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:s})}n&&this.hide(!0)}onOptionMouseEnter(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)}updateModel(e,t){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return R.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,t=e?.classList.contains("p-float-label");if(e&&t&&!this.selectedOption){let n=e.querySelector("label");n&&this._placeholder.set(n.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?R.resolveFieldData(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?R.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}isOptionDisabled(e){return this.getOptionValue(this.modelValue())===this.getOptionValue(e)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(e))&&e.disabled===!1?!1:this.optionDisabled?R.resolveFieldData(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?R.resolveFieldData(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?R.resolveFieldData(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(t=>this.isOptionGroup(t)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||this.loading||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),!(e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]'))&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let t=e.target.value;this.searchValue="",!this.searchOptions(e,t)&&this.focusedOptionIndex.set(-1),this.onModelChange(t),this.updateModel(t,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:t})},1),!this.overlayVisible&&R.isNotEmpty(t)&&this.show()}show(e){this.overlayVisible=!0;let t=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex();this.focusedOptionIndex.set(t),e&&_.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=_.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let t=this.modelValue()?this.focusedOptionIndex():-1;t!==-1&&this.scroller?.scrollToIndex(t)}else{let t=_.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");t&&t.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&_.unblockBodyScroll(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&_.focus(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&_.focus(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;let t=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(t),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,t){if(!(this.disabled||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,t);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&R.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let t=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,t){if(this.focusedOptionIndex()!==t&&(this.focusedOptionIndex.set(t),this.scrollInView(),this.selectOnFocus)){let n=this.visibleOptions()[t];this.onOptionSelect(e,n,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let t=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=_.findSingle(this.itemsViewChild.nativeElement,`li[id="${t}"]`);n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let t=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return t>-1?t+e+1:e}findPrevOptionIndex(e){let t=e>0?R.findLastIndex(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return t>-1?t:e}findLastOptionIndex(){return R.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,t=!1){if(e.altKey&&!t){if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide()}else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,t=!1){t&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,t=!1){if(t){let n=e.currentTarget;e.shiftKey?n.setSelectionRange(0,n.value.length):(n.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,t=!1){if(t){let n=e.currentTarget;if(e.shiftKey)n.setSelectionRange(0,n.value.length);else{let o=n.value.length;n.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,t=!1){!this.editable&&!t&&this.onEnterKey(e)}onEnterKey(e,t=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}!t&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,t=!1){if(!t)if(this.overlayVisible&&this.hasFocusableElements())_.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let t=e.relatedTarget===this.focusInputViewChild?.nativeElement?_.getFirstFocusableElement(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;_.focus(t)}onLastHiddenFocus(e){let t=e.relatedTarget===this.focusInputViewChild?.nativeElement?_.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;_.focus(t)}hasFocusableElements(){return _.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,t=!1){t&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,t){this.searchValue=(this.searchValue||"")+t;let n=-1,o=!1;return this.focusedOptionIndex()!==-1?(n=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)),n=n===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)):n+this.focusedOptionIndex()):n=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let t=e.target.value;this._filterValue.set(t),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?_.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():_.focus(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}static \u0275fac=function(t){return new(t||i)(C(de),C(Me),C(ge),C(ke),C(Xo),C(Fe))};static \u0275cmp=O({type:i,selectors:[["p-dropdown"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(Kv,5)(qv,5)(Yv,5)(Zv,5)(Qv,5)(Xv,5)(Jv,5)(eb,5)(tb,5),t&2){let o;G(o=W())&&(n.containerViewChild=o.first),G(o=W())&&(n.filterViewChild=o.first),G(o=W())&&(n.focusInputViewChild=o.first),G(o=W())&&(n.editableInputViewChild=o.first),G(o=W())&&(n.itemsViewChild=o.first),G(o=W())&&(n.scroller=o.first),G(o=W())&&(n.overlayViewChild=o.first),G(o=W())&&(n.firstHiddenFocusableElementOnOverlay=o.first),G(o=W())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(t,n){t&2&&xt("p-inputwrapper-filled",n.filled())("p-inputwrapper-focus",n.focused||n.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",I],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",I],required:[2,"required","required",I],editable:[2,"editable","editable",I],appendTo:"appendTo",tabindex:[2,"tabindex","tabindex",X],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",I],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",I],checkmark:[2,"checkmark","checkmark",I],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",I],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[2,"autoDisplayFirst","autoDisplayFirst",I],group:[2,"group","group",I],showClear:[2,"showClear","showClear",I],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",I],virtualScroll:[2,"virtualScroll","virtualScroll",I],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",X],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[2,"maxlength","maxlength",X],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",I],selectOnFocus:[2,"selectOnFocus","selectOnFocus",I],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",I],autofocusFilter:[2,"autofocusFilter","autofocusFilter",I],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},standalone:!1,features:[Ue([oC])],decls:12,vars:20,consts:[["container",""],["elseBlock",""],["overlay",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["items",""],["emptyFilter",""],["empty",""],[3,"click","ngClass","ngStyle"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"ngClass","disabled","autofocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"focus","blur","keydown","ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"input","keydown","focus","blur","ngClass","disabled","autofocus"],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-dropdown-trigger-icon",4,"ngIf"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-dropdown-header",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-dropdown-filter-container"],["type","text","role","searchbox","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"input","keydown","blur","value","ngClass"],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-dropdown-empty-message",3,"ngStyle"]],template:function(t,n){if(t&1){let o=H();f(0,"div",15,0),M("click",function(a){return v(o),b(n.onContainerClick(a))}),p(2,lb,6,20,"span",16)(3,cb,2,8,"input",17)(4,mb,3,2,"ng-container",18),f(5,"div",19),p(6,bb,3,2,"ng-container",20)(7,Db,2,2,"ng-template",null,1,Le),m(),f(9,"p-overlay",21,2),Qt("visibleChange",function(a){return v(o),Zt(n.overlayVisible,a)||(n.overlayVisible=a),b(a)}),M("onAnimationStart",function(a){return v(o),b(n.onOverlayAnimationStart(a))})("onHide",function(){return v(o),b(n.hide())}),p(11,rC,13,17,"ng-template",22),m()()}if(t&2){let o=Te(8);E(n.styleClass),l("ngClass",n.containerClass)("ngStyle",n.style),g("id",n.id),c(2),l("ngIf",!n.editable),c(),l("ngIf",n.editable),c(),l("ngIf",n.isVisibleClearIcon),c(),g("aria-expanded",n.overlayVisible??!1)("data-pc-section","trigger"),c(),l("ngIf",n.loading)("ngIfElse",o),c(3),Yt("visible",n.overlayVisible),l("options",n.overlayOptions)("target","@parent")("appendTo",n.appendTo)("autoZIndex",n.autoZIndex)("baseZIndex",n.baseZIndex)("showTransitionOptions",n.showTransitionOptions)("hideTransitionOptions",n.hideTransitionOptions)}},dependencies:()=>[ye,Ke,_e,Ce,we,rl,me,rs,ls,Ut,Ye,zn,ll,sC],styles:[`@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}.p-float-label .p-dropdown .p-placeholder{opacity:0}}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),kr=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ol,ve,Or,ht,Un,di,Ye,zn,ll,al,Dt,ol,ve,Un]})}return i})();var ul=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["ArrowDownIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var pl=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["ArrowUpIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Gu=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["FilterIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Wu=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["FilterSlashIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Ku=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["SortAltIcon"]],features:[Z],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),j(),U(6,"defs")(7,"clipPath",5),$(8,"rect",6),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(6),Ee("id",n.pathId))},encapsulation:2})}return i})();var qu=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["SortAmountDownIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Yu=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["SortAmountUpAltIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Zu=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["TrashIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var hl=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["AngleUpIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var lC=["input"],cC=(i,r,e)=>({"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":i,"p-inputnumber-buttons-horizontal":r,"p-inputnumber-buttons-vertical":e}),Qu=()=>({"p-inputnumber-button p-inputnumber-button-up":!0}),Xu=()=>({"p-inputnumber-button p-inputnumber-button-down":!0});function dC(i,r){if(i&1){let e=H();f(0,"TimesIcon",8),M("click",function(){v(e);let n=d(2);return b(n.clear())}),m()}i&2&&(l("ngClass","p-inputnumber-clear-icon"),g("data-pc-section","clearIcon"))}function uC(i,r){}function pC(i,r){i&1&&p(0,uC,0,0,"ng-template")}function hC(i,r){if(i&1){let e=H();f(0,"span",9),M("click",function(){v(e);let n=d(2);return b(n.clear())}),p(1,pC,1,0,null,10),m()}if(i&2){let e=d(2);g("data-pc-section","clearIcon"),c(),l("ngTemplateOutlet",e.clearIconTemplate)}}function mC(i,r){if(i&1&&(A(0),p(1,dC,1,2,"TimesIcon",6)(2,hC,2,2,"span",7),L()),i&2){let e=d();c(),l("ngIf",!e.clearIconTemplate),c(),l("ngIf",e.clearIconTemplate)}}function fC(i,r){if(i&1&&x(0,"span",14),i&2){let e=d(2);l("ngClass",e.incrementButtonIcon),g("data-pc-section","incrementbuttonicon")}}function gC(i,r){i&1&&x(0,"AngleUpIcon"),i&2&&g("data-pc-section","incrementbuttonicon")}function _C(i,r){}function yC(i,r){i&1&&p(0,_C,0,0,"ng-template")}function vC(i,r){if(i&1&&(A(0),p(1,gC,1,1,"AngleUpIcon",3)(2,yC,1,0,null,10),L()),i&2){let e=d(2);c(),l("ngIf",!e.incrementButtonIconTemplate),c(),l("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function bC(i,r){if(i&1&&x(0,"span",14),i&2){let e=d(2);l("ngClass",e.decrementButtonIcon),g("data-pc-section","decrementbuttonicon")}}function CC(i,r){i&1&&x(0,"AngleDownIcon"),i&2&&g("data-pc-section","decrementbuttonicon")}function wC(i,r){}function IC(i,r){i&1&&p(0,wC,0,0,"ng-template")}function xC(i,r){if(i&1&&(A(0),p(1,CC,1,1,"AngleDownIcon",3)(2,IC,1,0,null,10),L()),i&2){let e=d(2);c(),l("ngIf",!e.decrementButtonIconTemplate),c(),l("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function TC(i,r){if(i&1){let e=H();f(0,"span",11)(1,"button",12),M("mousedown",function(n){v(e);let o=d();return b(o.onUpButtonMouseDown(n))})("mouseup",function(){v(e);let n=d();return b(n.onUpButtonMouseUp())})("mouseleave",function(){v(e);let n=d();return b(n.onUpButtonMouseLeave())})("keydown",function(n){v(e);let o=d();return b(o.onUpButtonKeyDown(n))})("keyup",function(){v(e);let n=d();return b(n.onUpButtonKeyUp())}),p(2,fC,1,2,"span",13)(3,vC,3,2,"ng-container",3),m(),f(4,"button",12),M("mousedown",function(n){v(e);let o=d();return b(o.onDownButtonMouseDown(n))})("mouseup",function(){v(e);let n=d();return b(n.onDownButtonMouseUp())})("mouseleave",function(){v(e);let n=d();return b(n.onDownButtonMouseLeave())})("keydown",function(n){v(e);let o=d();return b(o.onDownButtonKeyDown(n))})("keyup",function(){v(e);let n=d();return b(n.onDownButtonKeyUp())}),p(5,bC,1,2,"span",13)(6,xC,3,2,"ng-container",3),m()()}if(i&2){let e=d();g("data-pc-section","buttonGroup"),c(),E(e.incrementButtonClass),l("ngClass",Qe(17,Qu))("disabled",e.disabled),g("aria-hidden",!0)("data-pc-section","incrementbutton"),c(),l("ngIf",e.incrementButtonIcon),c(),l("ngIf",!e.incrementButtonIcon),c(),E(e.decrementButtonClass),l("ngClass",Qe(18,Xu))("disabled",e.disabled),g("aria-hidden",!0)("data-pc-section",e.decrementbutton),c(),l("ngIf",e.decrementButtonIcon),c(),l("ngIf",!e.decrementButtonIcon)}}function SC(i,r){if(i&1&&x(0,"span",14),i&2){let e=d(2);l("ngClass",e.incrementButtonIcon),g("data-pc-section","incrementbuttonicon")}}function DC(i,r){i&1&&x(0,"AngleUpIcon"),i&2&&g("data-pc-section","incrementbuttonicon")}function EC(i,r){}function MC(i,r){i&1&&p(0,EC,0,0,"ng-template")}function OC(i,r){if(i&1&&(A(0),p(1,DC,1,1,"AngleUpIcon",3)(2,MC,1,0,null,10),L()),i&2){let e=d(2);c(),l("ngIf",!e.incrementButtonIconTemplate),c(),l("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function RC(i,r){if(i&1){let e=H();f(0,"button",12),M("mousedown",function(n){v(e);let o=d();return b(o.onUpButtonMouseDown(n))})("mouseup",function(){v(e);let n=d();return b(n.onUpButtonMouseUp())})("mouseleave",function(){v(e);let n=d();return b(n.onUpButtonMouseLeave())})("keydown",function(n){v(e);let o=d();return b(o.onUpButtonKeyDown(n))})("keyup",function(){v(e);let n=d();return b(n.onUpButtonKeyUp())}),p(1,SC,1,2,"span",13)(2,OC,3,2,"ng-container",3),m()}if(i&2){let e=d();E(e.incrementButtonClass),l("ngClass",Qe(8,Qu))("disabled",e.disabled),g("aria-hidden",!0)("data-pc-section","incrementbutton"),c(),l("ngIf",e.incrementButtonIcon),c(),l("ngIf",!e.incrementButtonIcon)}}function FC(i,r){if(i&1&&x(0,"span",14),i&2){let e=d(2);l("ngClass",e.decrementButtonIcon),g("data-pc-section","decrementbuttonicon")}}function kC(i,r){i&1&&x(0,"AngleDownIcon"),i&2&&g("data-pc-section","decrementbuttonicon")}function AC(i,r){}function LC(i,r){i&1&&p(0,AC,0,0,"ng-template")}function VC(i,r){if(i&1&&(A(0),p(1,kC,1,1,"AngleDownIcon",3)(2,LC,1,0,null,10),L()),i&2){let e=d(2);c(),l("ngIf",!e.decrementButtonIconTemplate),c(),l("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function PC(i,r){if(i&1){let e=H();f(0,"button",12),M("mousedown",function(n){v(e);let o=d();return b(o.onDownButtonMouseDown(n))})("mouseup",function(){v(e);let n=d();return b(n.onDownButtonMouseUp())})("mouseleave",function(){v(e);let n=d();return b(n.onDownButtonMouseLeave())})("keydown",function(n){v(e);let o=d();return b(o.onDownButtonKeyDown(n))})("keyup",function(){v(e);let n=d();return b(n.onDownButtonKeyUp())}),p(1,FC,1,2,"span",13)(2,VC,3,2,"ng-container",3),m()}if(i&2){let e=d();E(e.decrementButtonClass),l("ngClass",Qe(8,Xu))("disabled",e.disabled),g("aria-hidden",!0)("data-pc-section","decrementbutton"),c(),l("ngIf",e.decrementButtonIcon),c(),l("ngIf",!e.decrementButtonIcon)}}var NC={provide:St,useExisting:wt(()=>ml),multi:!0},ml=(()=>{class i{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;variant="outlined";minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new S;onFocus=new S;onBlur=new S;onKeyDown=new S;onClear=new S;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,t,n,o){this.document=e,this.el=t,this.cd=n,this.injector=o}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(n=>!!e[n])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template;break}})}ngOnInit(){this.ngControl=this.injector.get(vi,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits:void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits:void 0}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());let e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),t=new Map(e.map((n,o)=>[n,o]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=n=>t.get(n)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){let e=this.getDecimalChar();return new RegExp(`[${e}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,be(F({},this.getOptions()),{useGrouping:!1})).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){let e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(e!=null){if(e==="-")return e;if(this.format){let n=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&e!=this.prefix&&(n=this.prefix+n),this.suffix&&e!=this.suffix&&(n=n+this.suffix),n}return e.toString()}return""}parseValue(e){let t=new RegExp(this._suffix,""),n=new RegExp(this._prefix,""),o=new RegExp(this._currency,""),s=e.replace(t,"").replace(n,"").trim().replace(/\s/g,"").replace(o,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(s){if(s==="-")return s;let a=+s;return isNaN(a)?null:a}return null}repeat(e,t,n){if(this.readonly)return;let o=t||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,n)},o),this.spin(e,n)}spin(e,t){let n=this.step*t,o=this.parseValue(this.input?.nativeElement.value)||0,s=this.validateValue(o+n);this.maxlength&&this.maxlength<this.formatValue(s).length||(this.updateInput(s,null,"spin",null),this.updateModel(e,s),this.handleOnInput(e,o,s))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(e){if(e.button===2){this.clearTimer();return}this.disabled||(this.input?.nativeElement.focus(),this.repeat(e,null,1),e.preventDefault())}onUpButtonMouseUp(){this.disabled||this.clearTimer()}onUpButtonMouseLeave(){this.disabled||this.clearTimer()}onUpButtonKeyDown(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,1)}onUpButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonMouseDown(e){if(e.button===2){this.clearTimer();return}this.disabled||(this.input?.nativeElement.focus(),this.repeat(e,null,-1),e.preventDefault())}onDownButtonMouseUp(){this.disabled||this.clearTimer()}onDownButtonMouseLeave(){this.disabled||this.clearTimer()}onDownButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonKeyDown(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,-1)}onUserInput(e){this.readonly||(this.isSpecialChar&&(e.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(e){if(this.readonly)return;if(this.lastValue=e.target.value,e.shiftKey||e.altKey){this.isSpecialChar=!0;return}let t=e.target.selectionStart,n=e.target.selectionEnd,o=e.target.value,s=null;switch(e.altKey&&e.preventDefault(),e.key){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":for(let a=t;a<=o.length;a++){let u=a===0?0:a-1;if(this.isNumeralChar(o.charAt(u))){this.input.nativeElement.setSelectionRange(a,a);break}}break;case"ArrowRight":for(let a=n;a>=0;a--)if(this.isNumeralChar(o.charAt(a))){this.input.nativeElement.setSelectionRange(a,a);break}break;case"Tab":case"Enter":s=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(s),this.input.nativeElement.setAttribute("aria-valuenow",s),this.updateModel(e,s);break;case"Backspace":{if(e.preventDefault(),t===n){if(t==1&&this.prefix||t==o.length&&this.suffix)break;let a=o.charAt(t-1),{decimalCharIndex:u,decimalCharIndexWithoutPrefix:h}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let y=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,t-2)+o.slice(t-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,y?this.input?.nativeElement.setSelectionRange(t-1,t-1):s=o.slice(0,t-1)+o.slice(t);else if(u>0&&t>u){let w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";s=o.slice(0,t-1)+w+o.slice(t)}else h===1?(s=o.slice(0,t-1)+"0"+o.slice(t),s=this.parseValue(s)>0?s:""):s=o.slice(0,t-1)+o.slice(t)}else this.mode==="currency"&&a.search(this._currency)!=-1&&(s=o.slice(1));this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(o,t,n),this.updateValue(e,s,null,"delete-range");break}case"Delete":if(e.preventDefault(),t===n){if(t==0&&this.prefix||t==o.length-1&&this.suffix)break;let a=o.charAt(t),{decimalCharIndex:u,decimalCharIndexWithoutPrefix:h}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let y=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,t)+o.slice(t+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,y?this.input?.nativeElement.setSelectionRange(t+1,t+1):s=o.slice(0,t)+o.slice(t+1);else if(u>0&&t>u){let w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";s=o.slice(0,t)+w+o.slice(t+1)}else h===1?(s=o.slice(0,t)+"0"+o.slice(t+1),s=this.parseValue(s)>0?s:""):s=o.slice(0,t)+o.slice(t+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(o,t,n),this.updateValue(e,s,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault());break;default:break}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let t=e.which||e.keyCode,n=String.fromCharCode(t),o=this.isDecimalSign(n),s=this.isMinusSign(n);t!=13&&e.preventDefault(),!o&&e.code==="NumpadDecimal"&&(o=!0,n=this._decimalChar,t=n.charCodeAt(0));let a=this.parseValue(this.input.nativeElement.value+n),u=a!=null?a.toString():"";if(this.maxlength&&this.getSelectedText()?.length==this.maxlength){this.insert(e,n,{isDecimalSign:o,isMinusSign:s});return}this.maxlength&&u.length>this.maxlength||(48<=t&&t<=57||s||o)&&this.insert(e,n,{isDecimalSign:o,isMinusSign:s})}getSelectedText(){return window?.getSelection()?.toString().replaceAll(/[^0-9']/g,"")||""}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let t=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(t){this.maxlength&&(t=t.toString().substring(0,this.maxlength));let n=this.parseValue(t);n!=null&&this.insert(e,n.toString())}}}allowMinusSign(){return this.min==null||this.min<0}isMinusSign(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1}isDecimalSign(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1}isDecimalMode(){return this.mode==="decimal"}getDecimalCharIndexes(e){let t=e.search(this._decimal);this._decimal.lastIndex=0;let o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:t,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){let t=e.search(this._decimal);this._decimal.lastIndex=0;let n=e.search(this._minusSign);this._minusSign.lastIndex=0;let o=e.search(this._suffix);this._suffix.lastIndex=0;let s=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:t,minusCharIndex:n,suffixCharIndex:o,currencyCharIndex:s}}insert(e,t,n={isDecimalSign:!1,isMinusSign:!1}){let o=t.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&o!==-1)return;let s=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,u=this.input?.nativeElement.value.trim(),{decimalCharIndex:h,minusCharIndex:y,suffixCharIndex:w,currencyCharIndex:T}=this.getCharIndexes(u),D;if(n.isMinusSign)s===0&&(D=u,(y===-1||a!==0)&&(D=this.insertText(u,t,0,a)),this.updateValue(e,D,t,"insert"));else if(n.isDecimalSign)h>0&&s===h?this.updateValue(e,u,t,"insert"):h>s&&h<a?(D=this.insertText(u,t,s,a),this.updateValue(e,D,t,"insert")):h===-1&&this.maxFractionDigits&&(D=this.insertText(u,t,s,a),this.updateValue(e,D,t,"insert"));else{let k=this.numberFormat.resolvedOptions().maximumFractionDigits,z=s!==a?"range-insert":"insert";if(h>0&&s>h){if(s+t.length-(h+1)<=k){let V=T>=s?T-1:w>=s?w:u.length;D=u.slice(0,s)+t+u.slice(s+t.length,V)+u.slice(V),this.updateValue(e,D,t,z)}}else D=this.insertText(u,t,s,a),this.updateValue(e,D,t,z)}}insertText(e,t,n,o){if((t==="."?t:t.split(".")).length===2){let a=e.slice(n,o).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,n)+this.formatValue(t)+e.slice(o):e||this.formatValue(t)}else return o-n===e.length?this.formatValue(t):n===0?t+e.slice(o):o===e.length?e.slice(0,n)+t:e.slice(0,n)+t+e.slice(o)}deleteRange(e,t,n){let o;return n-t===e.length?o="":t===0?o=e.slice(n):n===e.length?o=e.slice(0,t):o=e.slice(0,t)+e.slice(n),o}initCursor(){let e=this.input?.nativeElement.selectionStart,t=this.input?.nativeElement.selectionEnd,n=this.input?.nativeElement.value,o=n.length,s=null,a=(this.prefixChar||"").length;n=n.replace(this._prefix,""),(e===t||e!==0||t<a)&&(e-=a);let u=n.charAt(e);if(this.isNumeralChar(u))return e+a;let h=e-1;for(;h>=0;)if(u=n.charAt(h),this.isNumeralChar(u)){s=h+a;break}else h--;if(s!==null)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(h=e;h<o;)if(u=n.charAt(h),this.isNumeralChar(u)){s=h+a;break}else h++;s!==null&&this.input?.nativeElement.setSelectionRange(s,s)}return s||0}onInputClick(){let e=this.input?.nativeElement.value;!this.readonly&&e!==_.getSelection()&&this.initCursor()}isNumeralChar(e){return e.length===1&&(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))?(this.resetRegex(),!0):!1}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,t,n,o){let s=this.input?.nativeElement.value,a=null;t!=null&&(a=this.parseValue(t),a=!a&&!this.allowEmpty?0:a,this.updateInput(a,n,o,t),this.handleOnInput(e,s,a))}handleOnInput(e,t,n){this.isValueChanged(t,n)&&(this.input.nativeElement.value=this.formatValue(n),this.input?.nativeElement.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.onInput.emit({originalEvent:e,value:n,formattedValue:t}))}isValueChanged(e,t){if(t===null&&e!==null)return!0;if(t!=null){let n=typeof e=="string"?this.parseValue(e):e;return t!==n}return!1}validateValue(e){return e==="-"||e==null?null:this.min!=null&&e<this.min?this.min:this.max!=null&&e>this.max?this.max:e}updateInput(e,t,n,o){t=t||"";let s=this.input?.nativeElement.value,a=this.formatValue(e),u=s.length;if(a!==o&&(a=this.concatValues(a,o)),u===0){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);let y=this.initCursor()+t.length;this.input.nativeElement.setSelectionRange(y,y)}else{let h=this.input.nativeElement.selectionStart,y=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),h=Math.min(h,this.maxlength),y=Math.min(y,this.maxlength)),this.maxlength&&this.maxlength<a.length)return;this.input.nativeElement.value=a;let w=a.length;if(n==="range-insert"){let T=this.parseValue((s||"").slice(0,h)),k=(T!==null?T.toString():"").split("").join(`(${this.groupChar})?`),z=new RegExp(k,"g");z.test(a);let V=t.split("").join(`(${this.groupChar})?`),J=new RegExp(V,"g");J.test(a.slice(z.lastIndex)),y=z.lastIndex+J.lastIndex,this.input.nativeElement.setSelectionRange(y,y)}else if(w===u)n==="insert"||n==="delete-back-single"?this.input.nativeElement.setSelectionRange(y+1,y+1):n==="delete-single"?this.input.nativeElement.setSelectionRange(y-1,y-1):(n==="delete-range"||n==="spin")&&this.input.nativeElement.setSelectionRange(y,y);else if(n==="delete-back-single"){let T=s.charAt(y-1),D=s.charAt(y),k=u-w,z=this._group.test(D);z&&k===1?y+=1:!z&&this.isNumeralChar(T)&&(y+=-1*k+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(y,y)}else if(s==="-"&&n==="insert"){this.input.nativeElement.setSelectionRange(0,0);let D=this.initCursor()+t.length+1;this.input.nativeElement.setSelectionRange(D,D)}else y=y+(w-u),this.input.nativeElement.setSelectionRange(y,y)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,t){if(e&&t){let n=t.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?n!==-1?e:e.replace(this.suffixChar,"").split(this._decimal)[0]+t.replace(this.suffixChar,"").slice(n)+this.suffixChar:n!==-1?e.split(this._decimal)[0]+t.slice(n):e}return e}getDecimalLength(e){if(e){let t=e.split(this._decimal);if(t.length===2)return t[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1;let t=this.validateValue(this.parseValue(this.input.nativeElement.value)),n=t?.toString();this.input.nativeElement.value=this.formatValue(n),this.input.nativeElement.setAttribute("aria-valuenow",n),this.updateModel(e,t),this.onBlur.emit(e)}formattedValue(){let e=!this.value&&!this.allowEmpty?0:this.value;return this.formatValue(e)}updateModel(e,t){let n=this.ngControl?.control?.updateOn==="blur";this.value!==t?(this.value=t,n&&this.focused||this.onModelChange(t)):n&&this.onModelChange(t),this.onModelTouched()}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get filled(){return this.value!=null&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}static \u0275fac=function(t){return new(t||i)(C(se),C(de),C(ge),C(Kt))};static \u0275cmp=O({type:i,selectors:[["p-inputNumber"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(lC,5),t&2){let o;G(o=W())&&(n.input=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(t,n){t&2&&xt("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused)("p-inputnumber-clearable",n.showClear&&n.buttonLayout!="vertical")},inputs:{showButtons:[2,"showButtons","showButtons",I],format:[2,"format","format",I],buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:[2,"size","size",X],maxlength:[2,"maxlength","maxlength",X],tabindex:[2,"tabindex","tabindex",X],title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:[2,"ariaRequired","ariaRequired",I],name:"name",required:[2,"required","required",I],autocomplete:"autocomplete",min:[2,"min","min",X],max:[2,"max","max",X],incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:[2,"readonly","readonly",I],step:[2,"step","step",X],allowEmpty:[2,"allowEmpty","allowEmpty",I],locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:[2,"useGrouping","useGrouping",I],variant:"variant",minFractionDigits:[2,"minFractionDigits","minFractionDigits",e=>X(e,null)],maxFractionDigits:[2,"maxFractionDigits","maxFractionDigits",e=>X(e,null)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[2,"showClear","showClear",I],autofocus:[2,"autofocus","autofocus",I],disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},standalone:!1,features:[Ue([NC]),Xe],decls:7,vars:41,consts:[["input",""],[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal","pAutoFocus","",3,"input","keydown","keypress","paste","click","focus","blur","ngClass","ngStyle","value","disabled","readonly","autofocus"],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"click","ngClass"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"mousedown","mouseup","mouseleave","keydown","keyup","ngClass","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(t,n){if(t&1){let o=H();f(0,"span",1)(1,"input",2,0),M("input",function(a){return v(o),b(n.onUserInput(a))})("keydown",function(a){return v(o),b(n.onInputKeyDown(a))})("keypress",function(a){return v(o),b(n.onInputKeyPress(a))})("paste",function(a){return v(o),b(n.onPaste(a))})("click",function(){return v(o),b(n.onInputClick())})("focus",function(a){return v(o),b(n.onInputFocus(a))})("blur",function(a){return v(o),b(n.onInputBlur(a))}),m(),p(3,mC,3,2,"ng-container",3)(4,TC,7,19,"span",4)(5,RC,3,9,"button",5)(6,PC,3,9,"button",5),m()}t&2&&(E(n.styleClass),l("ngClass",ft(37,cC,n.showButtons&&n.buttonLayout==="stacked",n.showButtons&&n.buttonLayout==="horizontal",n.showButtons&&n.buttonLayout==="vertical"))("ngStyle",n.style),g("data-pc-name","inputnumber")("data-pc-section","root"),c(),E(n.inputStyleClass),l("ngClass","p-inputnumber-input")("ngStyle",n.inputStyle)("value",n.formattedValue())("disabled",n.disabled)("readonly",n.readonly)("autofocus",n.autofocus),g("id",n.inputId)("variant",n.variant)("aria-valuemin",n.min)("aria-valuemax",n.max)("aria-valuenow",n.value)("placeholder",n.placeholder)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("title",n.title)("size",n.size)("name",n.name)("autocomplete",n.autocomplete)("maxlength",n.maxlength)("tabindex",n.tabindex)("aria-required",n.ariaRequired)("required",n.required)("min",n.min)("max",n.max)("data-pc-section","input"),c(2),l("ngIf",n.buttonLayout!="vertical"&&n.showClear&&n.value),c(),l("ngIf",n.showButtons&&n.buttonLayout==="stacked"),c(),l("ngIf",n.showButtons&&n.buttonLayout!=="stacked"),c(),l("ngIf",n.showButtons&&n.buttonLayout!=="stacked"))},dependencies:()=>[ye,_e,Ce,we,ts,jt,Ut,Ye,hl,Nn],styles:[`@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),Ar=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,Fn,mt,di,Ye,hl,Nn,ve]})}return i})();var fl=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["AngleDoubleLeftIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var gl=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["AngleDoubleRightIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var _l=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["AngleLeftIcon"]],features:[Z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0),$(1,"path",1),j()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var cs=i=>({"p-disabled":i}),ds=i=>({$implicit:i}),HC=i=>({"p-highlight":i});function zC(i,r){i&1&&P(0)}function UC(i,r){if(i&1&&(f(0,"div",15),p(1,zC,1,0,"ng-container",16),m()),i&2){let e=d(2);g("data-pc-section","start"),c(),l("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",Q(3,ds,e.paginatorState))}}function jC(i,r){if(i&1&&(f(0,"span",17),N(1),m()),i&2){let e=d(2);c(),ce(e.currentPageReport)}}function $C(i,r){i&1&&x(0,"AngleDoubleLeftIcon",19),i&2&&l("styleClass","p-paginator-icon")}function GC(i,r){}function WC(i,r){i&1&&p(0,GC,0,0,"ng-template")}function KC(i,r){if(i&1&&(f(0,"span",20),p(1,WC,1,0,null,21),m()),i&2){let e=d(3);c(),l("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}function qC(i,r){if(i&1){let e=H();f(0,"button",18),M("click",function(n){v(e);let o=d(2);return b(o.changePageToFirst(n))}),p(1,$C,1,1,"AngleDoubleLeftIcon",6)(2,KC,2,1,"span",7),m()}if(i&2){let e=d(2);l("disabled",e.isFirstPage()||e.empty())("ngClass",Q(5,cs,e.isFirstPage()||e.empty())),g("aria-label",e.getAriaLabel("firstPageLabel")),c(),l("ngIf",!e.firstPageLinkIconTemplate),c(),l("ngIf",e.firstPageLinkIconTemplate)}}function YC(i,r){i&1&&x(0,"AngleLeftIcon",19),i&2&&l("styleClass","p-paginator-icon")}function ZC(i,r){}function QC(i,r){i&1&&p(0,ZC,0,0,"ng-template")}function XC(i,r){if(i&1&&(f(0,"span",20),p(1,QC,1,0,null,21),m()),i&2){let e=d(2);c(),l("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}function JC(i,r){if(i&1){let e=H();f(0,"button",24),M("click",function(n){let o=v(e).$implicit,s=d(3);return b(s.onPageLinkClick(n,o-1))}),N(1),m()}if(i&2){let e=r.$implicit,t=d(3);l("ngClass",Q(4,HC,e-1==t.getPage())),g("aria-label",t.getPageAriaLabel(e))("aria-current",e-1==t.getPage()?"page":void 0),c(),Pe(" ",t.getLocalization(e)," ")}}function e2(i,r){if(i&1&&(f(0,"span",22),p(1,JC,2,6,"button",23),m()),i&2){let e=d(2);c(),l("ngForOf",e.pageLinks)}}function t2(i,r){if(i&1&&N(0),i&2){let e=d(3);ce(e.currentPageReport)}}function i2(i,r){i&1&&P(0)}function n2(i,r){if(i&1&&p(0,i2,1,0,"ng-container",16),i&2){let e=r.$implicit,t=d(4);l("ngTemplateOutlet",t.jumpToPageItemTemplate)("ngTemplateOutletContext",Q(2,ds,e))}}function r2(i,r){i&1&&(A(0),p(1,n2,1,4,"ng-template",28),L())}function o2(i,r){i&1&&P(0)}function s2(i,r){if(i&1&&p(0,o2,1,0,"ng-container",21),i&2){let e=d(4);l("ngTemplateOutlet",e.dropdownIconTemplate)}}function a2(i,r){i&1&&p(0,s2,1,1,"ng-template",29)}function l2(i,r){if(i&1){let e=H();f(0,"p-dropdown",25),M("onChange",function(n){v(e);let o=d(2);return b(o.onPageDropdownChange(n))}),p(1,t2,1,1,"ng-template",26)(2,r2,2,0,"ng-container",27)(3,a2,1,0,null,27),m()}if(i&2){let e=d(2);l("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),g("aria-label",e.getAriaLabel("jumpToPageDropdownLabel")),c(2),l("ngIf",e.jumpToPageItemTemplate),c(),l("ngIf",e.dropdownIconTemplate)}}function c2(i,r){i&1&&x(0,"AngleRightIcon",19),i&2&&l("styleClass","p-paginator-icon")}function d2(i,r){}function u2(i,r){i&1&&p(0,d2,0,0,"ng-template")}function p2(i,r){if(i&1&&(f(0,"span",20),p(1,u2,1,0,null,21),m()),i&2){let e=d(2);c(),l("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function h2(i,r){i&1&&x(0,"AngleDoubleRightIcon",19),i&2&&l("styleClass","p-paginator-icon")}function m2(i,r){}function f2(i,r){i&1&&p(0,m2,0,0,"ng-template")}function g2(i,r){if(i&1&&(f(0,"span",20),p(1,f2,1,0,null,21),m()),i&2){let e=d(3);c(),l("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function _2(i,r){if(i&1){let e=H();f(0,"button",30),M("click",function(n){v(e);let o=d(2);return b(o.changePageToLast(n))}),p(1,h2,1,1,"AngleDoubleRightIcon",6)(2,g2,2,1,"span",7),m()}if(i&2){let e=d(2);l("disabled",e.isLastPage()||e.empty())("ngClass",Q(5,cs,e.isLastPage()||e.empty())),g("aria-label",e.getAriaLabel("lastPageLabel")),c(),l("ngIf",!e.lastPageLinkIconTemplate),c(),l("ngIf",e.lastPageLinkIconTemplate)}}function y2(i,r){if(i&1){let e=H();f(0,"p-inputNumber",31),M("ngModelChange",function(n){v(e);let o=d(2);return b(o.changePage(n-1))}),m()}if(i&2){let e=d(2);l("ngModel",e.currentPage())("disabled",e.empty())}}function v2(i,r){i&1&&P(0)}function b2(i,r){if(i&1&&p(0,v2,1,0,"ng-container",16),i&2){let e=r.$implicit,t=d(4);l("ngTemplateOutlet",t.dropdownItemTemplate)("ngTemplateOutletContext",Q(2,ds,e))}}function C2(i,r){i&1&&(A(0),p(1,b2,1,4,"ng-template",28),L())}function w2(i,r){i&1&&P(0)}function I2(i,r){if(i&1&&p(0,w2,1,0,"ng-container",21),i&2){let e=d(4);l("ngTemplateOutlet",e.dropdownIconTemplate)}}function x2(i,r){i&1&&p(0,I2,1,1,"ng-template",29)}function T2(i,r){if(i&1){let e=H();f(0,"p-dropdown",32),Qt("ngModelChange",function(n){v(e);let o=d(2);return Zt(o.rows,n)||(o.rows=n),b(n)}),M("onChange",function(n){v(e);let o=d(2);return b(o.onRppChange(n))}),p(1,C2,2,0,"ng-container",27)(2,x2,1,0,null,27),m()}if(i&2){let e=d(2);l("options",e.rowsPerPageItems),Yt("ngModel",e.rows),l("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)("ariaLabel",e.getAriaLabel("rowsPerPageLabel")),c(),l("ngIf",e.dropdownItemTemplate),c(),l("ngIf",e.dropdownIconTemplate)}}function S2(i,r){i&1&&P(0)}function D2(i,r){if(i&1&&(f(0,"div",33),p(1,S2,1,0,"ng-container",16),m()),i&2){let e=d(2);g("data-pc-section","end"),c(),l("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",Q(3,ds,e.paginatorState))}}function E2(i,r){if(i&1){let e=H();f(0,"div",1),p(1,UC,2,5,"div",2)(2,jC,2,1,"span",3)(3,qC,3,7,"button",4),f(4,"button",5),M("click",function(n){v(e);let o=d();return b(o.changePageToPrev(n))}),p(5,YC,1,1,"AngleLeftIcon",6)(6,XC,2,1,"span",7),m(),p(7,e2,2,1,"span",8)(8,l2,4,8,"p-dropdown",9),f(9,"button",10),M("click",function(n){v(e);let o=d();return b(o.changePageToNext(n))}),p(10,c2,1,1,"AngleRightIcon",6)(11,p2,2,1,"span",7),m(),p(12,_2,3,7,"button",11)(13,y2,1,2,"p-inputNumber",12)(14,T2,3,8,"p-dropdown",13)(15,D2,2,5,"div",14),m()}if(i&2){let e=d();E(e.styleClass),l("ngStyle",e.style)("ngClass","p-paginator p-component"),g("data-pc-section","paginator")("data-pc-section","root"),c(),l("ngIf",e.templateLeft),c(),l("ngIf",e.showCurrentPageReport),c(),l("ngIf",e.showFirstLastIcon),c(),l("disabled",e.isFirstPage()||e.empty())("ngClass",Q(25,cs,e.isFirstPage()||e.empty())),g("aria-label",e.getAriaLabel("prevPageLabel")),c(),l("ngIf",!e.previousPageLinkIconTemplate),c(),l("ngIf",e.previousPageLinkIconTemplate),c(),l("ngIf",e.showPageLinks),c(),l("ngIf",e.showJumpToPageDropdown),c(),l("disabled",e.isLastPage()||e.empty())("ngClass",Q(27,cs,e.isLastPage()||e.empty())),g("aria-label",e.getAriaLabel("nextPageLabel")),c(),l("ngIf",!e.nextPageLinkIconTemplate),c(),l("ngIf",e.nextPageLinkIconTemplate),c(),l("ngIf",e.showFirstLastIcon),c(),l("ngIf",e.showJumpToPageInput),c(),l("ngIf",e.rowsPerPageOptions),c(),l("ngIf",e.templateRight)}}var Ju=(()=>{class i{cd;config;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new S;templates;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e,t){this.cd=e,this.config=t}ngOnInit(){this.updatePaginatorState()}getAriaLabel(e){return this.config.translation.aria?this.config.translation.aria[e]:void 0}getPageAriaLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,`${e}`):void 0}getLocalization(e){let t=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(t.map((o,s)=>[s,o]));return e>9?String(e).split("").map(s=>n.get(Number(s))).join(""):n.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template;break}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions(),e.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)typeof e=="object"&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return this.getPage()===0}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),t=Math.min(this.pageLinkSize,e),n=Math.max(0,Math.ceil(this.getPage()-t/2)),o=Math.min(e-1,n+t-1);var s=this.pageLinkSize-(o-n+1);return n=Math.max(0,n-s),[n,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),t=e[0],n=e[1];for(let o=t;o<=n;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o<this.getPageCount();o++)this.pageItems.push({label:String(o+1),value:o})}}changePage(e){var t=this.getPageCount();if(e>=0&&e<t){this._first=this.rows*e;var n={page:e,first:this.first,rows:this.rows,pageCount:t};this.updatePageLinks(),this.onPageChange.emit(n),this.updatePaginatorState()}}updateFirst(){let e=this.getPage();e>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,t){this.changePage(t),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return this.getPageCount()===0}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(t){return new(t||i)(C(ge),C(Fe))};static \u0275cmp=O({type:i,selectors:[["p-paginator"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:[2,"pageLinkSize","pageLinkSize",X],style:"style",styleClass:"styleClass",alwaysShow:[2,"alwaysShow","alwaysShow",I],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",I],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",I],totalRecords:[2,"totalRecords","totalRecords",X],rows:[2,"rows","rows",X],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",I],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",I],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[2,"showPageLinks","showPageLinks",I],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},standalone:!1,features:[Xe],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"click","disabled","ngClass"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"click","disabled","ngClass"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ariaLabel","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"click","disabled","ngClass"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"click","ngClass"],["styleClass","p-paginator-page-options",3,"onChange","options","ngModel","disabled","appendTo","scrollHeight"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"click","disabled","ngClass"],[1,"p-paginator-page-input",3,"ngModelChange","ngModel","disabled"],["styleClass","p-paginator-rpp-options",3,"ngModelChange","onChange","options","ngModel","disabled","appendTo","scrollHeight","ariaLabel"],[1,"p-paginator-right-content"]],template:function(t,n){t&1&&p(0,E2,16,29,"div",0),t&2&&l("ngIf",n.alwaysShow?!0:n.pageLinks&&n.pageLinks.length>1)},dependencies:()=>[ye,Ke,_e,Ce,we,dl,me,ml,On,ri,tt,fl,gl,_l,Bn],styles:[`@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),ep=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,kr,Ar,bi,ve,ht,fl,gl,_l,Bn,kr,Ar,bi,ve]})}return i})();var O2=["container"],R2=(i,r,e)=>({"p-highlight":i,"p-disabled":r,"p-button-icon-only":e}),F2=(i,r)=>({$implicit:i,index:r});function k2(i,r){if(i&1&&x(0,"span",8),i&2){let e=d(2).$implicit;E(e.icon),l("ngClass","p-button-icon p-button-icon-left"),g("data-pc-section","icon")}}function A2(i,r){if(i&1&&(A(0),p(1,k2,1,4,"span",6),f(2,"span",7),N(3),m(),L()),i&2){let e=d().$implicit,t=d();c(),l("ngIf",e.icon),c(),g("data-pc-section","label"),c(),ce(t.getOptionLabel(e))}}function L2(i,r){i&1&&P(0)}function V2(i,r){if(i&1&&p(0,L2,1,0,"ng-container",9),i&2){let e=d(),t=e.$implicit,n=e.index,o=d();l("ngTemplateOutlet",o.selectButtonTemplate)("ngTemplateOutletContext",Se(2,F2,t,n))}}function P2(i,r){if(i&1){let e=H();f(0,"div",4),M("click",function(n){let o=v(e),s=o.$implicit,a=o.index,u=d();return b(u.onOptionSelect(n,s,a))})("keydown",function(n){let o=v(e),s=o.$implicit,a=o.index,u=d();return b(u.onKeyDown(n,s,a))})("focus",function(n){let o=v(e).index,s=d();return b(s.onFocus(n,o))})("blur",function(){v(e);let n=d();return b(n.onBlur())}),p(1,A2,4,3,"ng-container",5)(2,V2,1,5,"ng-template",null,1,Le),m()}if(i&2){let e=r.$implicit,t=r.index,n=Te(3),o=d();E(e.styleClass),l("role",o.multiple?"checkbox":"radio")("ngClass",ft(14,R2,o.isSelected(e),o.disabled||o.isOptionDisabled(e),e.icon&&!o.getOptionLabel(e)))("autofocus",o.autofocus),g("tabindex",t===o.focusedIndex?"0":"-1")("aria-label",e.label)("aria-checked",o.isSelected(e))("aria-disabled",o.optionDisabled)("title",e.title)("aria-labelledby",o.getOptionLabel(e))("data-pc-section","button"),c(),l("ngIf",!o.itemTemplate)("ngIfElse",n)}}var N2={provide:St,useExisting:wt(()=>B2),multi:!0},B2=(()=>{class i{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;autofocus;onOptionClick=new S;onChange=new S;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?R.resolveFieldData(e,this.optionLabel):e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?R.resolveFieldData(e,this.optionValue):this.optionLabel||e.value===void 0?e:e.value}isOptionDisabled(e){return this.optionDisabled?R.resolveFieldData(e,this.optionDisabled):e.disabled!==void 0?e.disabled:!1}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,t,n){if(this.disabled||this.isOptionDisabled(t))return;let o=this.isSelected(t);if(o&&this.unselectable)return;let s=this.getOptionValue(t),a;if(this.multiple)o?a=this.value.filter(u=>!R.equals(u,s,this.equalityKey)):a=this.value?[...this.value,s]:[s];else{if(o&&!this.allowEmpty)return;a=o?null:s}this.focusedIndex=n,this.value=a,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:t,index:n})}onKeyDown(e,t,n){switch(e.code){case"Space":{this.onOptionSelect(e,t,n),e.preventDefault();break}case"ArrowDown":case"ArrowRight":{this.changeTabIndexes(e,"next"),e.preventDefault();break}case"ArrowUp":case"ArrowLeft":{this.changeTabIndexes(e,"prev"),e.preventDefault();break}default:break}}changeTabIndexes(e,t){let n,o;for(let s=0;s<=this.container.nativeElement.children.length-1;s++)this.container.nativeElement.children[s].getAttribute("tabindex")==="0"&&(n={elem:this.container.nativeElement.children[s],index:s});t==="prev"?n.index===0?o=this.container.nativeElement.children.length-1:o=n.index-1:n.index===this.container.nativeElement.children.length-1?o=0:o=n.index+1,this.focusedIndex=o,this.container.nativeElement.children[o].focus()}onFocus(e,t){this.focusedIndex=t}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(t=>!R.equals(t,this.getOptionValue(e),this.dataKey))}isSelected(e){let t=!1,n=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let o of this.value)if(R.equals(o,n,this.dataKey)){t=!0;break}}}else t=R.equals(this.getOptionValue(e),this.value,this.equalityKey);return t}static \u0275fac=function(t){return new(t||i)(C(ge))};static \u0275cmp=O({type:i,selectors:[["p-selectButton"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,5),t&2){let s;G(s=W())&&(n.itemTemplate=s.first)}},viewQuery:function(t,n){if(t&1&&We(O2,5),t&2){let o;G(o=W())&&(n.container=o.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",I],tabindex:[2,"tabindex","tabindex",X],multiple:[2,"multiple","multiple",I],allowEmpty:[2,"allowEmpty","allowEmpty",I],style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:[2,"disabled","disabled",I],dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",I]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},standalone:!1,features:[Ue([N2])],decls:3,vars:8,consts:[["container",""],["customcontent",""],["role","group",3,"ngClass","ngStyle"],["pRipple","","class","p-button p-component","pAutoFocus","",3,"role","class","ngClass","autofocus","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","","pAutoFocus","",1,"p-button","p-component",3,"click","keydown","focus","blur","role","ngClass","autofocus"],[4,"ngIf","ngIfElse"],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&(f(0,"div",2,0),p(2,P2,4,18,"div",3),m()),t&2&&(E(n.styleClass),l("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",n.style),g("aria-labelledby",n.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),c(2),l("ngForOf",n.options))},dependencies:[ye,Ke,_e,Ce,we,tt,Ut],styles:[`@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-button-group .p-button{margin:0}.p-button-group .p-button:focus,.p-button-group p-button:focus .p-button,.p-buttonset .p-button:focus,.p-buttonset p-button:focus .p-button{position:relative;z-index:1}.p-button-group .p-button:not(:last-child),.p-button-group .p-button:not(:last-child):hover,.p-button-group p-button:not(:last-child) .p-button,.p-button-group p-button:not(:last-child) .p-button:hover,.p-buttonset .p-button:not(:last-child),.p-buttonset .p-button:not(:last-child):hover,.p-buttonset p-button:not(:last-child) .p-button,.p-buttonset p-button:not(:last-child) .p-button:hover{border-right:0 none}.p-button-group .p-button:not(:first-of-type):not(:last-of-type),.p-button-group p-button:not(:first-of-type):not(:last-of-type) .p-button,.p-buttonset .p-button:not(:first-of-type):not(:last-of-type),.p-buttonset p-button:not(:first-of-type):not(:last-of-type) .p-button{border-radius:0}.p-button-group .p-button:first-of-type:not(:only-of-type),.p-button-group p-button:first-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:first-of-type:not(:only-of-type),.p-buttonset p-button:first-of-type:not(:only-of-type) .p-button{border-top-right-radius:0;border-bottom-right-radius:0}.p-button-group .p-button:last-of-type:not(:only-of-type),.p-button-group p-button:last-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:last-of-type:not(:only-of-type),.p-buttonset p-button:last-of-type:not(:only-of-type) .p-button{border-top-left-radius:0;border-bottom-left-radius:0}p-button[iconpos=right] spinnericon{order:1}}
|
|
`],encapsulation:2,changeDetection:0})}return i})(),tp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ht,ve,di,ve]})}return i})();var H2=(i,r,e)=>({"p-checkbox p-component":!0,"p-checkbox-disabled":i,"p-checkbox-focused":r,"p-variant-filled":e}),z2=(i,r,e)=>({"p-highlight":i,"p-disabled":r,"p-focus":e}),U2=(i,r,e)=>({"p-checkbox-label-active":i,"p-disabled":r,"p-checkbox-label-focus":e});function j2(i,r){if(i&1&&x(0,"span",8),i&2){let e=d(2);l("ngClass",e.checkboxTrueIcon),g("data-pc-section","checkIcon")}}function $2(i,r){i&1&&x(0,"CheckIcon",11),i&2&&(l("styleClass","p-checkbox-icon"),g("data-pc-section","checkIcon"))}function G2(i,r){}function W2(i,r){i&1&&p(0,G2,0,0,"ng-template")}function K2(i,r){if(i&1&&(f(0,"span",12),p(1,W2,1,0,null,13),m()),i&2){let e=d(3);g("data-pc-section","checkIcon"),c(),l("ngTemplateOutlet",e.checkIconTemplate)}}function q2(i,r){if(i&1&&(A(0),p(1,$2,1,2,"CheckIcon",9)(2,K2,2,2,"span",10),L()),i&2){let e=d(2);c(),l("ngIf",!e.checkIconTemplate),c(),l("ngIf",e.checkIconTemplate)}}function Y2(i,r){if(i&1&&(A(0),p(1,j2,1,2,"span",7)(2,q2,3,2,"ng-container",5),L()),i&2){let e=d();c(),l("ngIf",e.checkboxTrueIcon),c(),l("ngIf",!e.checkboxTrueIcon)}}function Z2(i,r){if(i&1&&x(0,"span",8),i&2){let e=d(2);l("ngClass",e.checkboxFalseIcon),g("data-pc-section","uncheckIcon")}}function Q2(i,r){i&1&&x(0,"TimesIcon",11),i&2&&(l("styleClass","p-checkbox-icon"),g("data-pc-section","uncheckIcon"))}function X2(i,r){}function J2(i,r){i&1&&p(0,X2,0,0,"ng-template")}function ew(i,r){if(i&1&&(f(0,"span",12),p(1,J2,1,0,null,13),m()),i&2){let e=d(3);g("data-pc-section","uncheckIcon"),c(),l("ngTemplateOutlet",e.uncheckIconTemplate)}}function tw(i,r){if(i&1&&(A(0),p(1,Q2,1,2,"TimesIcon",9)(2,ew,2,2,"span",10),L()),i&2){let e=d(2);c(),l("ngIf",!e.uncheckIconTemplate),c(),l("ngIf",e.uncheckIconTemplate)}}function iw(i,r){if(i&1&&(A(0),p(1,Z2,1,2,"span",7)(2,tw,3,2,"ng-container",5),L()),i&2){let e=d();c(),l("ngIf",e.checkboxFalseIcon),c(),l("ngIf",!e.checkboxFalseIcon)}}function nw(i,r){if(i&1){let e=H();f(0,"label",14),M("click",function(n){v(e);let o=d(),s=Te(3);return b(o.onClick(n,s))}),N(1),m()}if(i&2){let e=d();l("ngClass",ft(3,U2,e.value!=null,e.disabled,e.focused)),g("for",e.inputId),c(),ce(e.label)}}var rw={provide:St,useExisting:wt(()=>ow),multi:!0},ow=(()=>{class i{cd;config;constructor(e,t){this.cd=e,this.config=t}disabled;name;ariaLabel;ariaLabelledBy;variant="outlined";tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;autofocus;onChange=new S;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,t){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,t.focus())}onKeyDown(e){e.key==="Enter"&&(this.toggle(e),e.preventDefault())}toggle(e){this.value==null||this.value==null?this.value=!0:this.value==!0?this.value=!1:this.value==!1&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template;break}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(t){return new(t||i)(C(ge),C(Fe))};static \u0275cmp=O({type:i,selectors:[["p-triStateCheckbox"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},hostAttrs:[1,"p-element"],inputs:{disabled:[2,"disabled","disabled",I],name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",variant:"variant",tabindex:[2,"tabindex","tabindex",X],inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:[2,"readonly","readonly",I],checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon",autofocus:[2,"autofocus","autofocus",I]},outputs:{onChange:"onChange"},standalone:!1,features:[Ue([rw])],decls:8,vars:28,consts:[["input",""],[3,"click","ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none","pAutoFocus","",3,"keydown","focus","blur","name","readonly","disabled","autofocus"],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-checkbox-label",3,"click","ngClass"]],template:function(t,n){if(t&1){let o=H();f(0,"div",1),M("click",function(a){v(o);let u=Te(3);return b(n.onClick(a,u))}),f(1,"div",2)(2,"input",3,0),M("keydown",function(a){return v(o),b(n.onKeyDown(a))})("focus",function(){return v(o),b(n.onFocus())})("blur",function(){return v(o),b(n.onBlur())}),m()(),f(4,"div",4),p(5,Y2,3,2,"ng-container",5)(6,iw,3,2,"ng-container",5),m()(),p(7,nw,2,7,"label",6)}t&2&&(E(n.styleClass),l("ngStyle",n.style)("ngClass",ft(20,H2,n.disabled,n.focused,n.variant==="filled"||n.config.inputStyle()==="filled")),g("data-pc-name","tristatecheckbox")("data-pc-section","root"),c(2),l("name",n.name)("readonly",n.readonly)("disabled",n.disabled)("autofocus",n.autofocus),g("id",n.inputId)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("data-pc-section","hiddenInput"),c(2),l("ngClass",ft(24,z2,n.value!=null,n.disabled,n.focused)),g("aria-checked",n.value===!0),c(),l("ngIf",n.value===!0),c(),l("ngIf",n.value===!1),c(),l("ngIf",n.label))},dependencies:()=>[ye,_e,Ce,we,Ut,Dt,Ye],encapsulation:2,changeDetection:0})}return i})(),ip=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ve,di,Dt,Ye,ve]})}return i})();var sw=["container"],aw=["resizeHelper"],lw=["reorderIndicatorUp"],cw=["reorderIndicatorDown"],dw=["wrapper"],uw=["table"],pw=["thead"],hw=["tfoot"],mw=["scroller"],fw=(i,r,e)=>({"p-datatable p-component":!0,"p-datatable-hoverable-rows":i,"p-datatable-scrollable":r,"p-datatable-flex-scrollable":e}),gw=i=>({maxHeight:i}),_w=i=>({height:i}),np=(i,r)=>({$implicit:i,options:r}),yw=i=>({columns:i}),vw=(i,r,e)=>({"p-datatable-table":!0,"p-datatable-scrollable-table":i,"p-datatable-resizable-table":r,"p-datatable-resizable-table-fit":e}),yl=i=>({$implicit:i});function bw(i,r){if(i&1&&x(0,"i"),i&2){let e=d(2);E("p-datatable-loading-icon "+e.loadingIcon)}}function Cw(i,r){i&1&&x(0,"SpinnerIcon",25),i&2&&l("spin",!0)("styleClass","p-datatable-loading-icon")}function ww(i,r){}function Iw(i,r){i&1&&p(0,ww,0,0,"ng-template")}function xw(i,r){if(i&1&&(f(0,"span",26),p(1,Iw,1,0,null,27),m()),i&2){let e=d(3);c(),l("ngTemplateOutlet",e.loadingIconTemplate)}}function Tw(i,r){if(i&1&&(A(0),p(1,Cw,1,2,"SpinnerIcon",23)(2,xw,2,1,"span",24),L()),i&2){let e=d(2);c(),l("ngIf",!e.loadingIconTemplate),c(),l("ngIf",e.loadingIconTemplate)}}function Sw(i,r){if(i&1&&(f(0,"div",21),p(1,bw,1,2,"i",22)(2,Tw,3,2,"ng-container",16),m()),i&2){let e=d();c(),l("ngIf",e.loadingIcon),c(),l("ngIf",!e.loadingIcon)}}function Dw(i,r){i&1&&P(0)}function Ew(i,r){if(i&1&&(f(0,"div",28),p(1,Dw,1,0,"ng-container",27),m()),i&2){let e=d();c(),l("ngTemplateOutlet",e.captionTemplate)}}function Mw(i,r){i&1&&P(0)}function Ow(i,r){if(i&1&&p(0,Mw,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorDropdownIconTemplate)}}function Rw(i,r){i&1&&p(0,Ow,1,1,"ng-template",30)}function Fw(i,r){i&1&&P(0)}function kw(i,r){if(i&1&&p(0,Fw,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate)}}function Aw(i,r){i&1&&p(0,kw,1,1,"ng-template",31)}function Lw(i,r){i&1&&P(0)}function Vw(i,r){if(i&1&&p(0,Lw,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate)}}function Pw(i,r){i&1&&p(0,Vw,1,1,"ng-template",32)}function Nw(i,r){i&1&&P(0)}function Bw(i,r){if(i&1&&p(0,Nw,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate)}}function Hw(i,r){i&1&&p(0,Bw,1,1,"ng-template",33)}function zw(i,r){i&1&&P(0)}function Uw(i,r){if(i&1&&p(0,zw,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate)}}function jw(i,r){i&1&&p(0,Uw,1,1,"ng-template",34)}function $w(i,r){if(i&1){let e=H();f(0,"p-paginator",29),M("onPageChange",function(n){v(e);let o=d();return b(o.onPageChange(n))}),p(1,Rw,1,0,null,16)(2,Aw,1,0,null,16)(3,Pw,1,0,null,16)(4,Hw,1,0,null,16)(5,jw,1,0,null,16),m()}if(i&2){let e=d();l("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.getPaginatorStyleClasses("p-paginator-top"))("locale",e.paginatorLocale),c(),l("ngIf",e.paginatorDropdownIconTemplate),c(),l("ngIf",e.paginatorFirstPageLinkIconTemplate),c(),l("ngIf",e.paginatorPreviousPageLinkIconTemplate),c(),l("ngIf",e.paginatorLastPageLinkIconTemplate),c(),l("ngIf",e.paginatorNextPageLinkIconTemplate)}}function Gw(i,r){i&1&&P(0)}function Ww(i,r){if(i&1&&p(0,Gw,1,0,"ng-container",37),i&2){let e=r.$implicit,t=r.options;d(2);let n=Te(10);l("ngTemplateOutlet",n)("ngTemplateOutletContext",Se(2,np,e,t))}}function Kw(i,r){if(i&1){let e=H();f(0,"p-scroller",35,3),M("onLazyLoad",function(n){v(e);let o=d();return b(o.onLazyItemLoad(n))}),p(2,Ww,1,5,"ng-template",36),m()}if(i&2){let e=d();rt(Q(15,_w,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),l("items",e.processedData)("columns",e.columns)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function qw(i,r){i&1&&P(0)}function Yw(i,r){if(i&1&&(A(0),p(1,qw,1,0,"ng-container",37),L()),i&2){let e=d(),t=Te(10);c(),l("ngTemplateOutlet",t)("ngTemplateOutletContext",Se(4,np,e.processedData,Q(2,yw,e.columns)))}}function Zw(i,r){i&1&&P(0)}function Qw(i,r){i&1&&P(0)}function Xw(i,r){if(i&1&&x(0,"tbody",44),i&2){let e=d().options,t=d();l("value",t.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",t.frozenBodyTemplate)("frozen",!0)}}function Jw(i,r){if(i&1&&x(0,"tbody",45),i&2){let e=d().options;rt("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function eI(i,r){i&1&&P(0)}function tI(i,r){if(i&1&&(f(0,"tfoot",46,6),p(2,eI,1,0,"ng-container",37),m()),i&2){let e=d().options,t=d();c(2),l("ngTemplateOutlet",t.footerGroupedTemplate||t.footerTemplate)("ngTemplateOutletContext",Q(2,yl,e.columns))}}function iI(i,r){if(i&1&&(f(0,"table",38,4),p(2,Zw,1,0,"ng-container",37),f(3,"thead",39,5),p(5,Qw,1,0,"ng-container",37),m(),p(6,Xw,1,5,"tbody",40),x(7,"tbody",41),p(8,Jw,1,2,"tbody",42)(9,tI,3,4,"tfoot",43),m()),i&2){let e=r.options,t=d();rt(t.tableStyle),E(t.tableStyleClass),l("ngClass",ft(20,vw,t.scrollable,t.resizableColumns,t.resizableColumns&&t.columnResizeMode==="fit")),g("id",t.id+"-table"),c(2),l("ngTemplateOutlet",t.colGroupTemplate)("ngTemplateOutletContext",Q(24,yl,e.columns)),c(3),l("ngTemplateOutlet",t.headerGroupedTemplate||t.headerTemplate)("ngTemplateOutletContext",Q(26,yl,e.columns)),c(),l("ngIf",t.frozenValue||t.frozenBodyTemplate),c(),rt(e.contentStyle),l("ngClass",e.contentStyleClass)("value",t.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",t.bodyTemplate)("scrollerOptions",e),c(),l("ngIf",e.spacerStyle),c(),l("ngIf",t.footerGroupedTemplate||t.footerTemplate)}}function nI(i,r){i&1&&P(0)}function rI(i,r){if(i&1&&p(0,nI,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorDropdownIconTemplate)}}function oI(i,r){i&1&&p(0,rI,1,1,"ng-template",30)}function sI(i,r){i&1&&P(0)}function aI(i,r){if(i&1&&p(0,sI,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate)}}function lI(i,r){i&1&&p(0,aI,1,1,"ng-template",31)}function cI(i,r){i&1&&P(0)}function dI(i,r){if(i&1&&p(0,cI,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate)}}function uI(i,r){i&1&&p(0,dI,1,1,"ng-template",32)}function pI(i,r){i&1&&P(0)}function hI(i,r){if(i&1&&p(0,pI,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate)}}function mI(i,r){i&1&&p(0,hI,1,1,"ng-template",33)}function fI(i,r){i&1&&P(0)}function gI(i,r){if(i&1&&p(0,fI,1,0,"ng-container",27),i&2){let e=d(3);l("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate)}}function _I(i,r){i&1&&p(0,gI,1,1,"ng-template",34)}function yI(i,r){if(i&1){let e=H();f(0,"p-paginator",29),M("onPageChange",function(n){v(e);let o=d();return b(o.onPageChange(n))}),p(1,oI,1,0,null,16)(2,lI,1,0,null,16)(3,uI,1,0,null,16)(4,mI,1,0,null,16)(5,_I,1,0,null,16),m()}if(i&2){let e=d();l("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.getPaginatorStyleClasses("p-paginator-bottom"))("locale",e.paginatorLocale),c(),l("ngIf",e.paginatorDropdownIconTemplate),c(),l("ngIf",e.paginatorFirstPageLinkIconTemplate),c(),l("ngIf",e.paginatorPreviousPageLinkIconTemplate),c(),l("ngIf",e.paginatorLastPageLinkIconTemplate),c(),l("ngIf",e.paginatorNextPageLinkIconTemplate)}}function vI(i,r){i&1&&P(0)}function bI(i,r){if(i&1&&(f(0,"div",47),p(1,vI,1,0,"ng-container",27),m()),i&2){let e=d();c(),l("ngTemplateOutlet",e.summaryTemplate)}}function CI(i,r){i&1&&x(0,"div",48,7)}function wI(i,r){i&1&&x(0,"ArrowDownIcon")}function II(i,r){}function xI(i,r){i&1&&p(0,II,0,0,"ng-template")}function TI(i,r){if(i&1&&(f(0,"span",49,8),p(2,wI,1,0,"ArrowDownIcon",16)(3,xI,1,0,null,27),m()),i&2){let e=d();c(2),l("ngIf",!e.reorderIndicatorUpIconTemplate),c(),l("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function SI(i,r){i&1&&x(0,"ArrowUpIcon")}function DI(i,r){}function EI(i,r){i&1&&p(0,DI,0,0,"ng-template")}function MI(i,r){if(i&1&&(f(0,"span",50,9),p(2,SI,1,0,"ArrowUpIcon",16)(3,EI,1,0,null,27),m()),i&2){let e=d();c(2),l("ngIf",!e.reorderIndicatorDownIconTemplate),c(),l("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}var OI=["pTableBody",""],bl=(i,r,e,t,n)=>({$implicit:i,rowIndex:r,columns:e,editing:t,frozen:n}),RI=(i,r,e,t,n,o,s)=>({$implicit:i,rowIndex:r,columns:e,editing:t,frozen:n,rowgroup:o,rowspan:s}),us=(i,r,e,t,n,o)=>({$implicit:i,rowIndex:r,columns:e,expanded:t,editing:n,frozen:o}),rp=(i,r,e,t)=>({$implicit:i,rowIndex:r,columns:e,frozen:t}),op=(i,r)=>({$implicit:i,frozen:r});function FI(i,r){i&1&&P(0)}function kI(i,r){if(i&1&&(A(0,3),p(1,FI,1,0,"ng-container",4),L()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);c(),l("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",Si(2,bl,t,o.getRowIndex(n),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(t),o.frozen))}}function AI(i,r){i&1&&P(0)}function LI(i,r){if(i&1&&(A(0),p(1,AI,1,0,"ng-container",4),L()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);c(),l("ngTemplateOutlet",t?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",Si(2,bl,t,o.getRowIndex(n),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(t),o.frozen))}}function VI(i,r){i&1&&P(0)}function PI(i,r){if(i&1&&(A(0),p(1,VI,1,0,"ng-container",4),L()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);c(),l("ngTemplateOutlet",t?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",ec(2,RI,t,o.getRowIndex(n),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(t),o.frozen,o.shouldRenderRowspan(o.value,t,n),o.calculateRowGroupSize(o.value,t,n)))}}function NI(i,r){i&1&&P(0)}function BI(i,r){if(i&1&&(A(0,3),p(1,NI,1,0,"ng-container",4),L()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);c(),l("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",Si(2,bl,t,o.getRowIndex(n),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(t),o.frozen))}}function HI(i,r){if(i&1&&p(0,kI,2,8,"ng-container",2)(1,LI,2,8,"ng-container",0)(2,PI,2,10,"ng-container",0)(3,BI,2,8,"ng-container",2),i&2){let e=r.$implicit,t=r.index,n=d(2);l("ngIf",n.dt.groupHeaderTemplate&&!n.dt.virtualScroll&&n.dt.rowGroupMode==="subheader"&&n.shouldRenderRowGroupHeader(n.value,e,t)),c(),l("ngIf",n.dt.rowGroupMode!=="rowspan"),c(),l("ngIf",n.dt.rowGroupMode==="rowspan"),c(),l("ngIf",n.dt.groupFooterTemplate&&!n.dt.virtualScroll&&n.dt.rowGroupMode==="subheader"&&n.shouldRenderRowGroupFooter(n.value,e,t))}}function zI(i,r){if(i&1&&(A(0),p(1,HI,4,4,"ng-template",1),L()),i&2){let e=d();c(),l("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function UI(i,r){i&1&&P(0)}function jI(i,r){if(i&1&&(A(0),p(1,UI,1,0,"ng-container",4),L()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);c(),l("ngTemplateOutlet",o.template)("ngTemplateOutletContext",$i(2,us,t,o.getRowIndex(n),o.columns,o.dt.isRowExpanded(t),o.dt.editMode==="row"&&o.dt.isRowEditing(t),o.frozen))}}function $I(i,r){i&1&&P(0)}function GI(i,r){if(i&1&&(A(0,3),p(1,$I,1,0,"ng-container",4),L()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);c(),l("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",$i(2,us,t,o.getRowIndex(n),o.columns,o.dt.isRowExpanded(t),o.dt.editMode==="row"&&o.dt.isRowEditing(t),o.frozen))}}function WI(i,r){i&1&&P(0)}function KI(i,r){i&1&&P(0)}function qI(i,r){if(i&1&&(A(0,3),p(1,KI,1,0,"ng-container",4),L()),i&2){let e=d(2),t=e.$implicit,n=e.index,o=d(2);c(),l("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",$i(2,us,t,o.getRowIndex(n),o.columns,o.dt.isRowExpanded(t),o.dt.editMode==="row"&&o.dt.isRowEditing(t),o.frozen))}}function YI(i,r){if(i&1&&(A(0),p(1,WI,1,0,"ng-container",4)(2,qI,2,9,"ng-container",2),L()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);c(),l("ngTemplateOutlet",o.dt.expandedRowTemplate)("ngTemplateOutletContext",pi(3,rp,t,o.getRowIndex(n),o.columns,o.frozen)),c(),l("ngIf",o.dt.groupFooterTemplate&&o.dt.rowGroupMode==="subheader"&&o.shouldRenderRowGroupFooter(o.value,t,o.getRowIndex(n)))}}function ZI(i,r){if(i&1&&p(0,jI,2,9,"ng-container",0)(1,GI,2,9,"ng-container",2)(2,YI,3,8,"ng-container",0),i&2){let e=r.$implicit,t=r.index,n=d(2);l("ngIf",!n.dt.groupHeaderTemplate),c(),l("ngIf",n.dt.groupHeaderTemplate&&n.dt.rowGroupMode==="subheader"&&n.shouldRenderRowGroupHeader(n.value,e,n.getRowIndex(t))),c(),l("ngIf",n.dt.isRowExpanded(e))}}function QI(i,r){if(i&1&&(A(0),p(1,ZI,3,3,"ng-template",1),L()),i&2){let e=d();c(),l("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function XI(i,r){i&1&&P(0)}function JI(i,r){i&1&&P(0)}function ex(i,r){if(i&1&&(A(0),p(1,JI,1,0,"ng-container",4),L()),i&2){let e=d(),t=e.$implicit,n=e.index,o=d(2);c(),l("ngTemplateOutlet",o.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",pi(2,rp,t,o.getRowIndex(n),o.columns,o.frozen))}}function tx(i,r){if(i&1&&p(0,XI,1,0,"ng-container",4)(1,ex,2,7,"ng-container",0),i&2){let e=r.$implicit,t=r.index,n=d(2);l("ngTemplateOutlet",n.template)("ngTemplateOutletContext",$i(3,us,e,n.getRowIndex(t),n.columns,n.dt.isRowExpanded(e),n.dt.editMode==="row"&&n.dt.isRowEditing(e),n.frozen)),c(),l("ngIf",n.dt.isRowExpanded(e))}}function ix(i,r){if(i&1&&(A(0),p(1,tx,2,10,"ng-template",1),L()),i&2){let e=d();c(),l("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function nx(i,r){i&1&&P(0)}function rx(i,r){if(i&1&&(A(0),p(1,nx,1,0,"ng-container",4),L()),i&2){let e=d();c(),l("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Se(2,op,e.columns,e.frozen))}}function ox(i,r){i&1&&P(0)}function sx(i,r){if(i&1&&(A(0),p(1,ox,1,0,"ng-container",4),L()),i&2){let e=d();c(),l("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",Se(2,op,e.columns,e.frozen))}}var vl=(()=>{class i{sortSource=new He;selectionSource=new He;contextMenuSource=new He;valueSource=new He;totalRecordsSource=new He;columnsSource=new He;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=q({token:i,factory:i.\u0275fac})}return i})(),Cl=(()=>{class i{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new S;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(e,t)=>t;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new S;selectionChange=new S;onRowSelect=new S;onRowUnselect=new S;onPage=new S;onSort=new S;onFilter=new S;onLazyLoad=new S;onRowExpand=new S;onRowCollapse=new S;onContextMenuSelect=new S;onColResize=new S;onColReorder=new S;onRowReorder=new S;onEditInit=new S;onEditComplete=new S;onEditCancel=new S;onHeaderCheckboxToggle=new S;sortFunction=new S;firstChange=new S;rowsChange=new S;onStateSave=new S;onStateRestore=new S;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorDropdownIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=ae();styleElement;responsiveStyleElement;window;constructor(e,t,n,o,s,a,u,h,y,w){this.document=e,this.platformId=t,this.renderer=n,this.el=o,this.zone=s,this.tableService=a,this.cd=u,this.filterService=h,this.overlayService=y,this.config=w,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),this.responsiveLayout==="stack"&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template;break}})}ngAfterViewInit(){Ve(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&Ve(this.platformId)&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,this.sortMode=="single"&&(this.sortField||this.groupRowsBy)?this.sortSingle():this.sortMode=="multiple"&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this.isStateful()||(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue)),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&(this.restoreColumnOrder(),this.tableService.onColumnsChange(this._columns))),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){let t=e||this.processedData;if(t&&this.paginator){let n=this.lazy?0:this.first;return t.slice(n,n+this.rows)}return t}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(R.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(R.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let t=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),this.sortMode==="multiple"){let n=t.metaKey||t.ctrlKey,o=this.getSortMeta(e.field);o?n?o.order=o.order*-1:(this._multiSortMeta=[{field:e.field,order:o.order*-1}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!n||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,t=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField){this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],this.sortMultiple();return}if(e&&t){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:t}):(this.value.sort((o,s)=>{let a=R.resolveFieldData(o,e),u=R.resolveFieldData(s,e),h=null;return a==null&&u!=null?h=-1:a!=null&&u==null?h=1:a==null&&u==null?h=0:typeof a=="string"&&typeof u=="string"?h=a.localeCompare(u):h=a<u?-1:a>u?1:0,t*h}),this._value=[...this.value]),this.hasFilter()&&this._filter());let n={field:e,order:t};this.onSort.emit(n),this.tableService.onSort(n)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,t)=>this.multisortField(e,t,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,t,n,o){let s=R.resolveFieldData(e,n[o].field),a=R.resolveFieldData(t,n[o].field);return R.compare(s,a,this.filterLocale)===0?n.length-1>o?this.multisortField(e,t,n,o+1):0:this.compareValuesOnSort(s,a,n[o].order)}compareValuesOnSort(e,t,n){return R.sort(e,t,n,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let t=0;t<this.multiSortMeta.length;t++)if(this.multiSortMeta[t].field===e)return this.multiSortMeta[t]}return null}isSorted(e){if(this.sortMode==="single")return this.sortField&&this.sortField===e;if(this.sortMode==="multiple"){let t=!1;if(this.multiSortMeta){for(let n=0;n<this.multiSortMeta.length;n++)if(this.multiSortMeta[n].field==e){t=!0;break}}return t}}handleRowClick(e){let t=e.originalEvent.target,n=t.nodeName,o=t.parentElement&&t.parentElement.nodeName;if(!(n=="INPUT"||n=="BUTTON"||n=="A"||o=="INPUT"||o=="BUTTON"||o=="A"||_.hasClass(e.originalEvent.target,"p-clickable"))){if(this.selectionMode){let s=e.rowData,a=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&this.anchorRowIndex!=null)_.clearSelection(),this.rangeRowIndex!=null&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=a,this.selectRange(e.originalEvent,a);else{let u=this.isSelected(s);if(!u&&!this.isRowSelectable(s,a))return;let h=this.rowTouched?!1:this.metaKeySelection,y=this.dataKey?String(R.resolveFieldData(s,this.dataKey)):null;if(this.anchorRowIndex=a,this.rangeRowIndex=a,h){let w=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(u&&w){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let T=this.findIndexInSelection(s);this._selection=this.selection.filter((D,k)=>k!=T),this.selectionChange.emit(this.selection),y&&delete this.selectionKeys[y]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row"})}else this.isSingleSelectionMode()?(this._selection=s,this.selectionChange.emit(s),y&&(this.selectionKeys={},this.selectionKeys[y]=1)):this.isMultipleSelectionMode()&&(w?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,s],this.selectionChange.emit(this.selection),y&&(this.selectionKeys[y]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})}else if(this.selectionMode==="single")u?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})):(this._selection=s,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),y&&(this.selectionKeys={},this.selectionKeys[y]=1));else if(this.selectionMode==="multiple")if(u){let w=this.findIndexInSelection(s);this._selection=this.selection.filter((T,D)=>D!=w),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),y&&delete this.selectionKeys[y]}else this._selection=this.selection?[...this.selection,s]:[s],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),y&&(this.selectionKeys[y]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let t=e.rowData,n=e.rowIndex;if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=t,this.contextMenuSelectionChange.emit(t),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:t,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(t);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let o=this.isSelected(t),s=this.dataKey?String(R.resolveFieldData(t,this.dataKey)):null;if(!o){if(!this.isRowSelectable(t,n))return;this.isSingleSelectionMode()?(this.selection=t,this.selectionChange.emit(t),s&&(this.selectionKeys={},this.selectionKeys[s]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,t]:[t],this.selectionChange.emit(this.selection),s&&(this.selectionKeys[s]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:t,index:e.rowIndex})}}}selectRange(e,t){let n,o;this.anchorRowIndex>t?(n=t,o=this.anchorRowIndex):this.anchorRowIndex<t?(n=this.anchorRowIndex,o=t):(n=t,o=t),this.lazy&&this.paginator&&(n-=this.first,o-=this.first);let s=[];for(let a=n;a<=o;a++){let u=this.filteredValue?this.filteredValue[a]:this.value[a];if(!this.isSelected(u)){if(!this.isRowSelectable(u,t))continue;s.push(u),this._selection=[...this.selection,u];let h=this.dataKey?String(R.resolveFieldData(u,this.dataKey)):null;h&&(this.selectionKeys[h]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:s,type:"row"})}clearSelectionRange(e){let t,n,o=this.rangeRowIndex,s=this.anchorRowIndex;o>s?(t=this.anchorRowIndex,n=this.rangeRowIndex):o<s?(t=this.rangeRowIndex,n=this.anchorRowIndex):(t=this.rangeRowIndex,n=this.rangeRowIndex);for(let a=t;a<=n;a++){let u=this.value[a],h=this.findIndexInSelection(u);this._selection=this.selection.filter((w,T)=>T!=h);let y=this.dataKey?String(R.resolveFieldData(u,this.dataKey)):null;y&&delete this.selectionKeys[y],this.onRowUnselect.emit({originalEvent:e,data:u,type:"row"})}}isSelected(e){return e&&this.selection?this.dataKey?this.selectionKeys[R.resolveFieldData(e,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}findIndexInSelection(e){let t=-1;if(this.selection&&this.selection.length){for(let n=0;n<this.selection.length;n++)if(this.equals(e,this.selection[n])){t=n;break}}return t}isRowSelectable(e,t){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:t}))}toggleRowWithRadio(e,t){if(this.preventSelectionSetterPropagation=!0,this.selection!=t){if(!this.isRowSelectable(t,e.rowIndex))return;this._selection=t,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:t,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(R.resolveFieldData(t,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:t,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,t){this.selection=this.selection||[];let n=this.isSelected(t),o=this.dataKey?String(R.resolveFieldData(t,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,n){let s=this.findIndexInSelection(t);this._selection=this.selection.filter((a,u)=>u!=s),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:t,type:"checkbox"}),o&&delete this.selectionKeys[o]}else{if(!this.isRowSelectable(t,e.rowIndex))return;this._selection=this.selection?[...this.selection,t]:[t],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:t,type:"checkbox"}),o&&(this.selectionKeys[o]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,t){if(this._selectAll!==null)this.selectAllChange.emit({originalEvent:e,checked:t});else{let n=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData,o=this.selectionPageOnly&&this._selection?this._selection.filter(s=>!n.some(a=>this.equals(s,a))):[];t&&(o=this.frozenValue?[...o,...this.frozenValue,...n]:[...o,...n],o=this.rowSelectable?o.filter((s,a)=>this.rowSelectable({data:s,index:a})):o),this._selection=o,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:t}),this.isStateful()&&this.saveState()}}equals(e,t){return this.compareSelectionBy==="equals"?e===t:R.equals(e,t,this.dataKey)}filter(e,t,n){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[t]&&delete this.filters[t]:this.filters[t]={value:e,matchMode:n},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,t){this.filter(e,"global",t)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);else{let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let t=0;t<this.value.length;t++){let n=!0,o=!1,s=!1;for(let u in this.filters)if(this.filters.hasOwnProperty(u)&&u!=="global"){s=!0;let h=u,y=this.filters[h];if(Array.isArray(y)){for(let w of y)if(n=this.executeLocalFilter(h,this.value[t],w),w.operator===$a.OR&&n||w.operator===$a.AND&&!n)break}else n=this.executeLocalFilter(h,this.value[t],y);if(!n)break}if(this.filters.global&&!o&&e)for(let u=0;u<e.length;u++){let h=e[u].field||e[u];if(o=this.filterService.filters[this.filters.global.matchMode](R.resolveFieldData(this.value[t],h),this.filters.global.value,this.filterLocale),o)break}let a;this.filters.global?a=s?s&&n&&o:o:a=s&&n,a&&this.filteredValue.push(this.value[t])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(e,t,n){let o=n.value,s=n.matchMode||pt.STARTS_WITH,a=R.resolveFieldData(t,e),u=this.filterService.filters[s];return u(a,o,this.filterLocale)}hasFilter(){let e=!0;for(let t in this.filters)if(this.filters.hasOwnProperty(t)){e=!1;break}return!e}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(let[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let t of e)t.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let t,n="",o=this.columns;e&&e.selectionOnly?t=this.selection||[]:e&&e.allValues?t=this.value||[]:(t=this.filteredValue||this.value,this.frozenValue&&(t=t?[...this.frozenValue,...t]:this.frozenValue));let s=o.filter(y=>y.exportable!==!1&&y.field);n+=s.map(y=>'"'+this.getExportHeader(y)+'"').join(this.csvSeparator);let a=t.map(y=>s.map(w=>{let T=R.resolveFieldData(y,w.field);return T!=null?this.exportFunction?T=this.exportFunction({data:T,field:w.field}):T=String(T).replace(/"/g,'""'):T="",'"'+T+'"'}).join(this.csvSeparator)).join(`
|
|
`);a.length&&(n+=`
|
|
`+a);let u=new Blob([new Uint8Array([239,187,191]),n],{type:"text/csv;charset=utf-8;"}),h=this.renderer.createElement("a");h.style.display="none",this.renderer.appendChild(this.document.body,h),h.download!==void 0?(h.setAttribute("href",URL.createObjectURL(u)),h.setAttribute("download",this.exportFilename+".csv"),h.click()):(n="data:text/csv;charset=utf-8,"+n,this.window.open(encodeURI(n))),this.renderer.removeChild(this.document.body,h)}onLazyItemLoad(e){this.onLazyLoad.emit(be(F(F({},this.createLazyLoadMetadata()),e),{rows:e.last-e.first}))}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,t,n,o){this.editingCell=e,this.editingCellData=t,this.editingCellField=n,this.editingCellRowIndex=o,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&_.find(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(_.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let t=String(R.resolveFieldData(e,this.dataKey));this.editingRowKeys[t]=!0}saveRowEdit(e,t){if(_.find(t,".ng-invalid.ng-dirty").length===0){let n=String(R.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}}cancelRowEdit(e){let t=String(R.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[t]}toggleRow(e,t){if(!this.dataKey&&!this.groupRowsBy)throw new Error("dataKey or groupRowsBy must be defined to use row expansion");let n=this.groupRowsBy?String(R.resolveFieldData(e,this.groupRowsBy)):String(R.resolveFieldData(e,this.dataKey));this.expandedRowKeys[n]!=null?(delete this.expandedRowKeys[n],this.onRowCollapse.emit({originalEvent:t,data:e})):(this.rowExpandMode==="single"&&(this.expandedRowKeys={}),this.expandedRowKeys[n]=!0,this.onRowExpand.emit({originalEvent:t,data:e})),t&&t.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return this.groupRowsBy?this.expandedRowKeys[String(R.resolveFieldData(e,this.groupRowsBy))]===!0:this.expandedRowKeys[String(R.resolveFieldData(e,this.dataKey))]===!0}isRowEditing(e){return this.editingRowKeys[String(R.resolveFieldData(e,this.dataKey))]===!0}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}onColumnResizeBegin(e){let t=_.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,e.type=="touchstart"?this.lastResizerHelperX=e.changedTouches[0].clientX-t+this.containerViewChild?.nativeElement.scrollLeft:this.lastResizerHelperX=e.pageX-t+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let t=_.getOffset(this.containerViewChild?.nativeElement).left;_.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",e.type=="touchmove"?this.resizeHelperViewChild.nativeElement.style.left=e.changedTouches[0].clientX-t+this.containerViewChild?.nativeElement.scrollLeft+"px":this.resizeHelperViewChild.nativeElement.style.left=e.pageX-t+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,n=this.resizeColumnElement.offsetWidth+e,o=this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15;if(n>=o){if(this.columnResizeMode==="fit"){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;n>15&&a>15&&this.resizeTableCells(n,a)}else if(this.columnResizeMode==="expand"){this._initialColWidths=this._totalTableWidth();let s=this.tableViewChild?.nativeElement.offsetWidth+e;this.setResizeTableWidth(s+"px"),this.resizeTableCells(n,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",_.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[],t=_.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return _.find(t,"tr > th").forEach(o=>e.push(_.getOuterWidth(o))),e}onColumnDragStart(e,t){this.reorderIconWidth=_.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=_.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=t,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,t){if(this.reorderableColumns&&this.draggedColumn&&t){e.preventDefault();let n=_.getOffset(this.containerViewChild?.nativeElement),o=_.getOffset(t);if(this.draggedColumn!=t){let s=_.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),a=_.indexWithinGroup(t,"preorderablecolumn"),u=o.left-n.left,h=n.top-o.top,y=o.left+t.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-n.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-n.top+t.offsetHeight+"px",e.pageX>y?(this.reorderIndicatorUpViewChild.nativeElement.style.left=u+t.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=u+t.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=u-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=u-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,t){if(e.preventDefault(),this.draggedColumn){let n=_.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),o=_.indexWithinGroup(t,"preorderablecolumn"),s=n!=o;if(s&&(o-n==1&&this.dropPosition===-1||n-o==1&&this.dropPosition===1)&&(s=!1),s&&o<n&&this.dropPosition===1&&(o=o+1),s&&o>n&&this.dropPosition===-1&&(o=o-1),s&&(R.reorderArray(this.columns,n,o),this.onColReorder.emit({dragIndex:n,dropIndex:o,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement){let a=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();R.reorderArray(a,n+1,o+1),this.updateStyleElement(a,n,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,t){let n=_.index(this.resizeColumnElement),o=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(o,n,e,t)}updateStyleElement(e,t,n,o){this.destroyStyleElement(),this.createStyleElement();let s="";e.forEach((a,u)=>{let h=u===t?n:o&&u===t+1?o:a,y=`width: ${h}px !important; max-width: ${h}px !important;`;s+=`
|
|
#${this.id}-table > .p-datatable-thead > tr > th:nth-child(${u+1}),
|
|
#${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${u+1}),
|
|
#${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${u+1}) {
|
|
${y}
|
|
}
|
|
`}),this.renderer.setProperty(this.styleElement,"innerHTML",s)}onRowDragStart(e,t){this.rowDragging=!0,this.draggedRowIndex=t,e.dataTransfer.setData("text","b")}onRowDragOver(e,t,n){if(this.rowDragging&&this.draggedRowIndex!==t){let o=_.getOffset(n).top,s=e.pageY,a=o+_.getOuterHeight(n)/2,u=n.previousElementSibling;s<a?(_.removeClass(n,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=t,u?_.addClass(u,"p-datatable-dragpoint-bottom"):_.addClass(n,"p-datatable-dragpoint-top")):(u?_.removeClass(u,"p-datatable-dragpoint-bottom"):_.addClass(n,"p-datatable-dragpoint-top"),this.droppedRowIndex=t+1,_.addClass(n,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,t){let n=t.previousElementSibling;n&&_.removeClass(n,"p-datatable-dragpoint-bottom"),_.removeClass(t,"p-datatable-dragpoint-bottom"),_.removeClass(t,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,t){if(this.droppedRowIndex!=null){let n=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1;R.reorderArray(this.value,this.draggedRowIndex,n),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:n})}this.onRowDragLeave(e,t),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(Ve(this.platformId))switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}else throw new Error("Browser storage is not available in the server side.")}isStateful(){return this.stateKey!=null}saveState(){let e=this.getStorage(),t={};this.paginator&&(t.first=this.first,t.rows=this.rows),this.sortField&&(t.sortField=this.sortField,t.sortOrder=this.sortOrder),this.multiSortMeta&&(t.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(t.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(t),this.reorderableColumns&&this.saveColumnOrder(t),this.selection&&(t.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(t.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(t)),this.onStateSave.emit(t)}clearState(){let e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){let t=this.getStorage().getItem(this.stateKey),n=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,o=function(s,a){return typeof a=="string"&&n.test(a)?new Date(a):a};if(t){let s=JSON.parse(t,o);this.paginator&&(this.first!==void 0&&(this.first=s.first,this.firstChange.emit(this.first)),this.rows!==void 0&&(this.rows=s.rows,this.rowsChange.emit(this.rows))),s.sortField&&(this.restoringSort=!0,this._sortField=s.sortField,this._sortOrder=s.sortOrder),s.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=s.multiSortMeta),s.filters&&(this.restoringFilter=!0,this.filters=s.filters),this.resizableColumns&&(this.columnWidthsState=s.columnWidths,this.tableWidthState=s.tableWidth),s.expandedRowKeys&&(this.expandedRowKeys=s.expandedRowKeys),s.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(s.selection)),this.stateRestored=!0,this.onStateRestore.emit(s)}}saveColumnWidths(e){let t=[];_.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(o=>t.push(_.getOuterWidth(o))),e.columnWidths=t.join(","),this.columnResizeMode==="expand"&&(e.tableWidth=_.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if(this.columnResizeMode==="expand"&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),R.isNotEmpty(e)){this.createStyleElement();let t="";e.forEach((n,o)=>{let s=`width: ${n}px !important; max-width: ${n}px !important`;t+=`
|
|
#${this.id}-table > .p-datatable-thead > tr > th:nth-child(${o+1}),
|
|
#${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${o+1}),
|
|
#${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${o+1}) {
|
|
${s}
|
|
}
|
|
`}),this.styleElement.innerHTML=t}}}saveColumnOrder(e){if(this.columns){let t=[];this.columns.map(n=>{t.push(n.field||n.key)}),e.columnOrder=t}}restoreColumnOrder(){let t=this.getStorage().getItem(this.stateKey);if(t){let o=JSON.parse(t).columnOrder;if(o){let s=[];o.map(a=>{let u=this.findColumnByKey(a);u&&s.push(u)}),this.columnOrderStateRestored=!0,this.columns=s}}}findColumnByKey(e){if(this.columns){for(let t of this.columns)if(t.key===e||t.field===e)return t}else return null}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement),_.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){if(Ve(this.platformId)&&!this.responsiveStyleElement){this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement);let e=`
|
|
@media screen and (max-width: ${this.breakpoint}) {
|
|
#${this.id}-table > .p-datatable-thead > tr > th,
|
|
#${this.id}-table > .p-datatable-tfoot > tr > td {
|
|
display: none !important;
|
|
}
|
|
|
|
#${this.id}-table > .p-datatable-tbody > tr > td {
|
|
display: flex;
|
|
width: 100% !important;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
#${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {
|
|
border: 0 none;
|
|
}
|
|
|
|
#${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {
|
|
border-top: 0;
|
|
border-right: 0;
|
|
border-left: 0;
|
|
}
|
|
|
|
#${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {
|
|
display: block;
|
|
}
|
|
}
|
|
`;this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",e)}}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}getPaginatorStyleClasses(e){return[this.paginatorStyleClass,e].filter(t=>!!t).join(" ").trim()}static \u0275fac=function(t){return new(t||i)(C(se),C($e),C(Me),C(de),C(ke),C(vl),C(ge),C(Xo),C(Rn),C(Fe))};static \u0275cmp=O({type:i,selectors:[["p-table"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,me,4),t&2){let s;G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(sw,5)(aw,5)(lw,5)(cw,5)(dw,5)(uw,5)(pw,5)(hw,5)(mw,5),t&2){let o;G(o=W())&&(n.containerViewChild=o.first),G(o=W())&&(n.resizeHelperViewChild=o.first),G(o=W())&&(n.reorderIndicatorUpViewChild=o.first),G(o=W())&&(n.reorderIndicatorDownViewChild=o.first),G(o=W())&&(n.wrapperViewChild=o.first),G(o=W())&&(n.tableViewChild=o.first),G(o=W())&&(n.tableHeaderViewChild=o.first),G(o=W())&&(n.tableFooterViewChild=o.first),G(o=W())&&(n.scroller=o.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:[2,"paginator","paginator",I],pageLinks:[2,"pageLinks","pageLinks",X],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",I],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",I],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",I],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",I],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",I],showPageLinks:[2,"showPageLinks","showPageLinks",I],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",X],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",I],selectionMode:"selectionMode",selectionPageOnly:[2,"selectionPageOnly","selectionPageOnly",I],contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",I],rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:[2,"lazy","lazy",I],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",I],compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",X],filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:[2,"scrollable","scrollable",I],scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",I],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",X],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",X],frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:[2,"resizableColumns","resizableColumns",I],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",I],loading:[2,"loading","loading",I],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",I],rowHover:[2,"rowHover","rowHover",I],customSort:[2,"customSort","customSort",I],showInitialSortBadge:[2,"showInitialSortBadge","showInitialSortBadge",I],autoLayout:[2,"autoLayout","autoLayout",I],exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:[2,"groupRowsByOrder","groupRowsByOrder",X],responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},standalone:!1,features:[Ue([vl]),Xe],decls:16,vars:22,consts:[["container",""],["wrapper",""],["buildInTable",""],["scroller",""],["table",""],["thead",""],["tfoot",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"ngStyle","ngClass"],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"onLazyLoad","items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize"],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["role","rowgroup",1,"p-datatable-thead"],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer"],["role","rowgroup",1,"p-datatable-tfoot"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],[1,"p-datatable-reorder-indicator-up",2,"display","none"],[1,"p-datatable-reorder-indicator-down",2,"display","none"]],template:function(t,n){t&1&&(f(0,"div",10,0),p(2,Sw,3,2,"div",11)(3,Ew,2,1,"div",12)(4,$w,6,24,"p-paginator",13),f(5,"div",14,1),p(7,Kw,3,17,"p-scroller",15)(8,Yw,2,7,"ng-container",16)(9,iI,10,28,"ng-template",null,2,Le),m(),p(11,yI,6,24,"p-paginator",13)(12,bI,2,1,"div",17)(13,CI,2,0,"div",18)(14,TI,4,2,"span",19)(15,MI,4,2,"span",20),m()),t&2&&(E(n.styleClass),l("ngStyle",n.style)("ngClass",ft(16,fw,n.rowHover||n.selectionMode,n.scrollable,n.scrollable&&n.scrollHeight==="flex")),g("id",n.id),c(2),l("ngIf",n.loading&&n.showLoader),c(),l("ngIf",n.captionTemplate),c(),l("ngIf",n.paginator&&(n.paginatorPosition==="top"||n.paginatorPosition=="both")),c(),l("ngStyle",Q(20,gw,n.virtualScroll?"":n.scrollHeight)),c(2),l("ngIf",n.virtualScroll),c(),l("ngIf",!n.virtualScroll),c(3),l("ngIf",n.paginator&&(n.paginatorPosition==="bottom"||n.paginatorPosition=="both")),c(),l("ngIf",n.summaryTemplate),c(),l("ngIf",n.resizableColumns),c(),l("ngIf",n.reorderableColumns),c(),l("ngIf",n.reorderableColumns))},dependencies:()=>[ye,_e,Ce,we,Ju,me,ls,ul,pl,ki,ax],styles:[`@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:2}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:2}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:3}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}
|
|
`],encapsulation:2})}return i})(),ax=(()=>{class i{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&this.dt.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&this.dt.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,t,n,o){this.dt=e,this.tableService=t,this.cd=n,this.el=o,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,t,n){let o=R.resolveFieldData(t,this.dt.groupRowsBy),s=e[n-(1+this.dt._first)];if(s){let a=R.resolveFieldData(s,this.dt.groupRowsBy);return o!==a}else return!0}shouldRenderRowGroupFooter(e,t,n){let o=R.resolveFieldData(t,this.dt.groupRowsBy),s=e[n+(1+this.dt._first)];if(s){let a=R.resolveFieldData(s,this.dt.groupRowsBy);return o!==a}else return!0}shouldRenderRowspan(e,t,n){let o=R.resolveFieldData(t,this.dt.groupRowsBy),s=e[n-1];if(s){let a=R.resolveFieldData(s,this.dt.groupRowsBy);return o!==a}else return!0}calculateRowGroupSize(e,t,n){let o=R.resolveFieldData(t,this.dt.groupRowsBy),s=o,a=0;for(;o===s;){a++;let u=e[++n];if(u)s=R.resolveFieldData(u,this.dt.groupRowsBy);else break}return a===1?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=_.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=_.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,t){return this.dt.virtualScroll?(t=t||this.scrollerOptions,t?t[e]:null):null}getRowIndex(e){let t=this.dt.paginator?this.dt.first+e:e,n=this.getScrollerOption("getItemOptions");return n?n(t).index:t}static \u0275fac=function(t){return new(t||i)(C(Cl),C(vl),C(ge),C(de))};static \u0275cmp=O({type:i,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:[0,"pTableBody","columns"],template:[0,"pTableBodyTemplate","template"],value:"value",frozen:[2,"frozen","frozen",I],frozenRows:[2,"frozenRows","frozenRows",I],scrollerOptions:"scrollerOptions"},standalone:!1,attrs:OI,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&p(0,zI,2,2,"ng-container",0)(1,QI,2,2,"ng-container",0)(2,ix,2,2,"ng-container",0)(3,rx,2,5,"ng-container",0)(4,sx,2,5,"ng-container",0),t&2&&(l("ngIf",!n.dt.expandedRowTemplate),c(),l("ngIf",n.dt.expandedRowTemplate&&!(n.frozen&&n.dt.frozenExpandedRowTemplate)),c(),l("ngIf",n.dt.frozenExpandedRowTemplate&&n.frozen),c(),l("ngIf",n.dt.loading),c(),l("ngIf",n.dt.isEmpty()&&!n.dt.loading))},dependencies:[Ke,_e,Ce],encapsulation:2})}return i})();var sp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,ep,Fn,kr,bi,mt,tp,Hu,Ar,ip,Un,ul,pl,ki,Ku,Yu,qu,Dt,Gu,Wu,Rr,Zu,ve,Un]})}return i})();var ap=(()=>{class i{pFocusTrapDisabled=!1;platformId=B($e);host=B(de);document=B(se);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){Ve(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){e.pFocusTrapDisabled&&Ve(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let t=n=>_.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:n?.bind(this)});this.firstHiddenFocusableElement=t(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=t(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.host.nativeElement.prepend(this.firstHiddenFocusableElement),this.host.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:t,relatedTarget:n}=e,o=n===this.lastHiddenFocusableElement||!this.host.nativeElement?.contains(n)?_.getFirstFocusableElement(t.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;_.focus(o)}onLastHiddenElementFocus(e){let{currentTarget:t,relatedTarget:n}=e,o=n===this.firstHiddenFocusableElement||!this.host.nativeElement?.contains(n)?_.getLastFocusableElement(t.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;_.focus(o)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=De({type:i,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",I]},standalone:!1,features:[Xe]})}return i})(),lp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe]})}return i})();var wl=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["WindowMaximizeIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var Il=(()=>{class i extends te{pathId;ngOnInit(){this.pathId="url(#"+ae()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Y(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["WindowMinimizeIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(ee(),U(0,"svg",0)(1,"g"),$(2,"path",1),j(),U(3,"defs")(4,"clipPath",2),$(5,"rect",3),j()()()),t&2&&(E(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),c(),g("clip-path",n.pathId),c(3),Ee("id",n.pathId))},encapsulation:2})}return i})();var dx=["titlebar"],ux=["content"],px=["footer"],hx=["*",[["p-header"]],[["p-footer"]]],mx=["*","p-header","p-footer"],fx=(i,r,e,t,n,o,s,a,u,h)=>({"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":i,"p-dialog-mask-scrollblocker":r,"p-dialog-left":e,"p-dialog-right":t,"p-dialog-top":n,"p-dialog-top-left":o,"p-dialog-top-right":s,"p-dialog-bottom":a,"p-dialog-bottom-left":u,"p-dialog-bottom-right":h}),gx=(i,r,e,t)=>({"p-dialog p-component":!0,"p-dialog-rtl":i,"p-dialog-draggable":r,"p-dialog-resizable":e,"p-dialog-maximized":t}),_x=(i,r)=>({transform:i,transition:r}),yx=i=>({value:"visible",params:i}),vx=()=>({"p-dialog-header-icon p-dialog-header-maximize p-link":!0}),bx=()=>({"p-dialog-header-icon p-dialog-header-close p-link":!0});function Cx(i,r){i&1&&P(0)}function wx(i,r){if(i&1&&(A(0),p(1,Cx,1,0,"ng-container",10),L()),i&2){let e=d(3);c(),l("ngTemplateOutlet",e.headlessTemplate)}}function Ix(i,r){if(i&1){let e=H();f(0,"div",15),M("mousedown",function(n){v(e);let o=d(4);return b(o.initResize(n))}),m()}}function xx(i,r){if(i&1&&(f(0,"span",21),N(1),m()),i&2){let e=d(5);l("id",e.ariaLabelledBy),c(),ce(e.header)}}function Tx(i,r){if(i&1&&(f(0,"span",21),Ge(1,1),m()),i&2){let e=d(5);l("id",e.ariaLabelledBy)}}function Sx(i,r){i&1&&P(0)}function Dx(i,r){if(i&1&&x(0,"span",25),i&2){let e=d(6);l("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function Ex(i,r){i&1&&x(0,"WindowMaximizeIcon",27),i&2&&l("styleClass","p-dialog-header-maximize-icon")}function Mx(i,r){i&1&&x(0,"WindowMinimizeIcon",27),i&2&&l("styleClass","p-dialog-header-maximize-icon")}function Ox(i,r){if(i&1&&(A(0),p(1,Ex,1,1,"WindowMaximizeIcon",26)(2,Mx,1,1,"WindowMinimizeIcon",26),L()),i&2){let e=d(6);c(),l("ngIf",!e.maximized&&!e.maximizeIconTemplate),c(),l("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function Rx(i,r){}function Fx(i,r){i&1&&p(0,Rx,0,0,"ng-template")}function kx(i,r){if(i&1&&(A(0),p(1,Fx,1,0,null,10),L()),i&2){let e=d(6);c(),l("ngTemplateOutlet",e.maximizeIconTemplate)}}function Ax(i,r){}function Lx(i,r){i&1&&p(0,Ax,0,0,"ng-template")}function Vx(i,r){if(i&1&&(A(0),p(1,Lx,1,0,null,10),L()),i&2){let e=d(6);c(),l("ngTemplateOutlet",e.minimizeIconTemplate)}}function Px(i,r){if(i&1){let e=H();f(0,"button",22),M("click",function(){v(e);let n=d(5);return b(n.maximize())})("keydown.enter",function(){v(e);let n=d(5);return b(n.maximize())}),p(1,Dx,1,1,"span",23)(2,Ox,3,2,"ng-container",24)(3,kx,2,1,"ng-container",24)(4,Vx,2,1,"ng-container",24),m()}if(i&2){let e=d(5);l("ngClass",Qe(7,vx)),g("tabindex",e.maximizable?"0":"-1")("aria-label",e.maximizeLabel),c(),l("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),c(),l("ngIf",!e.maximizeIcon),c(),l("ngIf",!e.maximized),c(),l("ngIf",e.maximized)}}function Nx(i,r){if(i&1&&x(0,"span",30),i&2){let e=d(7);l("ngClass",e.closeIcon)}}function Bx(i,r){i&1&&x(0,"TimesIcon",27),i&2&&l("styleClass","p-dialog-header-close-icon")}function Hx(i,r){if(i&1&&(A(0),p(1,Nx,1,1,"span",29)(2,Bx,1,1,"TimesIcon",26),L()),i&2){let e=d(6);c(),l("ngIf",e.closeIcon),c(),l("ngIf",!e.closeIcon)}}function zx(i,r){}function Ux(i,r){i&1&&p(0,zx,0,0,"ng-template")}function jx(i,r){if(i&1&&(f(0,"span"),p(1,Ux,1,0,null,10),m()),i&2){let e=d(6);c(),l("ngTemplateOutlet",e.closeIconTemplate)}}function $x(i,r){if(i&1){let e=H();f(0,"button",28),M("click",function(n){v(e);let o=d(5);return b(o.close(n))})("keydown.enter",function(n){v(e);let o=d(5);return b(o.close(n))}),p(1,Hx,3,2,"ng-container",24)(2,jx,2,1,"span",24),m()}if(i&2){let e=d(5);l("ngClass",Qe(5,bx)),g("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),c(),l("ngIf",!e.closeIconTemplate),c(),l("ngIf",e.closeIconTemplate)}}function Gx(i,r){if(i&1){let e=H();f(0,"div",16,3),M("mousedown",function(n){v(e);let o=d(4);return b(o.initDrag(n))}),p(2,xx,2,2,"span",17)(3,Tx,2,1,"span",17)(4,Sx,1,0,"ng-container",10),f(5,"div",18),p(6,Px,5,8,"button",19)(7,$x,3,6,"button",20),m()()}if(i&2){let e=d(4);c(2),l("ngIf",!e.headerFacet&&!e.headerTemplate),c(),l("ngIf",e.headerFacet),c(),l("ngTemplateOutlet",e.headerTemplate),c(2),l("ngIf",e.maximizable),c(),l("ngIf",e.closable)}}function Wx(i,r){i&1&&P(0)}function Kx(i,r){i&1&&P(0)}function qx(i,r){if(i&1&&(f(0,"div",31,4),Ge(2,2),p(3,Kx,1,0,"ng-container",10),m()),i&2){let e=d(4);c(3),l("ngTemplateOutlet",e.footerTemplate)}}function Yx(i,r){if(i&1&&(p(0,Ix,1,0,"div",11)(1,Gx,8,5,"div",12),f(2,"div",13,2),Ge(4),p(5,Wx,1,0,"ng-container",10),m(),p(6,qx,4,1,"div",14)),i&2){let e=d(3);l("ngIf",e.resizable),c(),l("ngIf",e.showHeader),c(),E(e.contentStyleClass),l("ngClass","p-dialog-content")("ngStyle",e.contentStyle),c(3),l("ngTemplateOutlet",e.contentTemplate),c(),l("ngIf",e.footerFacet||e.footerTemplate)}}function Zx(i,r){if(i&1){let e=H();f(0,"div",8,0),M("@animation.start",function(n){v(e);let o=d(2);return b(o.onAnimationStart(n))})("@animation.done",function(n){v(e);let o=d(2);return b(o.onAnimationEnd(n))}),p(2,wx,2,1,"ng-container",9)(3,Yx,7,8,"ng-template",null,1,Le),m()}if(i&2){let e=Te(4),t=d(2);E(t.styleClass),l("ngClass",pi(10,gx,t.rtl,t.draggable,t.resizable,t.maximized))("ngStyle",t.style)("pFocusTrapDisabled",t.focusTrap===!1)("@animation",Q(18,yx,Se(15,_x,t.transformOptions,t.transitionOptions))),g("aria-labelledby",t.ariaLabelledBy)("aria-modal",!0),c(2),l("ngIf",t.headlessTemplate)("ngIfElse",e)}}function Qx(i,r){if(i&1&&(f(0,"div",6),p(1,Zx,5,20,"div",7),m()),i&2){let e=d();rt(e.maskStyle),E(e.maskStyleClass),l("ngClass",qn(6,fx,[e.modal,e.modal||e.blockScroll,e.position==="left",e.position==="right",e.position==="top",e.position==="topleft"||e.position==="top-left",e.position==="topright"||e.position==="top-right",e.position==="bottom",e.position==="bottomleft"||e.position==="bottom-left",e.position==="bottomright"||e.position==="bottom-right"])),c(),l("ngIf",e.visible)}}var Xx=Gi([Je({transform:"{{transform}}",opacity:0}),ut("{{transition}}")]),Jx=Gi([ut("{{transition}}",Je({transform:"{{transform}}",opacity:0}))]),cp=(()=>{class i{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style=F({},e),this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)";break}}onShow=new S;onHide=new S;visibleChange=new S;onResizeInit=new S;onResizeEnd=new S;onDragEnd=new S;onMaximize=new S;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;headlessTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=ae();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;get maximizeLabel(){return this.config.getTranslation(je.ARIA).maximizeLabel}constructor(e,t,n,o,s,a,u){this.document=e,this.platformId=t,this.el=n,this.renderer=o,this.zone=s,this.cd=a,this.config=u,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template;break;case"headless":this.headlessTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return this.header!==null?ae()+"_header":null}focus(e=this.contentViewChild?.nativeElement){let t=_.getFocusableElement(e,"[autofocus]");if(t){this.zone.runOutsideAngular(()=>{setTimeout(()=>t.focus(),5)});return}let n=_.getFocusableElement(e);n?this.zone.runOutsideAngular(()=>{setTimeout(()=>n.focus(),5)}):this.footerViewChild&&this.focus(this.footerViewChild.nativeElement)}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&_.blockBodyScroll()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll(".p-dialog-mask-scrollblocker");this.modal&&e&&e.length==1&&_.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?_.blockBodyScroll():_.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(qe.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(Ve(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let t in this.breakpoints)e+=`
|
|
@media screen and (max-width: ${t}) {
|
|
.p-dialog[${this.id}]:not(.p-dialog-maximized) {
|
|
width: ${this.breakpoints[t]} !important;
|
|
}
|
|
}
|
|
`;this.renderer.setProperty(this.styleElement,"innerHTML",e),_.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){_.hasClass(e.target,"p-dialog-header-icon")||_.hasClass(e.target,"p-dialog-header-close-icon")||_.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",_.addClass(this.document.body,"p-unselectable-text"))}onDrag(e){if(this.dragging){let t=_.getOuterWidth(this.container),n=_.getOuterHeight(this.container),o=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),u=getComputedStyle(this.container),h=parseFloat(u.marginLeft),y=parseFloat(u.marginTop),w=a.left+o-h,T=a.top+s-y,D=_.getViewport();this.container.style.position="fixed",this.keepInViewport?(w>=this.minX&&w+t<D.width&&(this._style.left=`${w}px`,this.lastPageX=e.pageX,this.container.style.left=`${w}px`),T>=this.minY&&T+n<D.height&&(this._style.top=`${T}px`,this.lastPageY=e.pageY,this.container.style.top=`${T}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${w}px`,this.lastPageY=e.pageY,this.container.style.top=`${T}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,_.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,_.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let t=e.pageX-this.lastPageX,n=e.pageY-this.lastPageY,o=_.getOuterWidth(this.container),s=_.getOuterHeight(this.container),a=_.getOuterHeight(this.contentViewChild?.nativeElement),u=o+t,h=s+n,y=this.container.style.minWidth,w=this.container.style.minHeight,T=this.container.getBoundingClientRect(),D=_.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(u+=t,h+=n),(!y||u>parseInt(y))&&T.left+u<D.width&&(this._style.width=u+"px",this.container.style.width=this._style.width),(!w||h>parseInt(w))&&T.top+h<D.height&&(this.contentViewChild.nativeElement.style.height=a+h-s+"px",this._style.height&&(this._style.height=h+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,_.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",t=>{t.key=="Escape"&&this.close(t)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.wrapper):_.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&_.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&_.addClass(this.wrapper,"p-component-overlay-leave");break}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({});break}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(_.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&_.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&qe.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?F({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(t){return new(t||i)(C(se),C($e),C(de),C(Me),C(ke),C(ge),C(Fe))};static \u0275cmp=O({type:i,selectors:[["p-dialog"]],contentQueries:function(t,n,o){if(t&1&&Ie(o,Jo,5)(o,es,5)(o,me,4),t&2){let s;G(s=W())&&(n.headerFacet=s.first),G(s=W())&&(n.footerFacet=s.first),G(s=W())&&(n.templates=s)}},viewQuery:function(t,n){if(t&1&&We(dx,5)(ux,5)(px,5),t&2){let o;G(o=W())&&(n.headerViewChild=o.first),G(o=W())&&(n.contentViewChild=o.first),G(o=W())&&(n.footerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:[2,"draggable","draggable",I],resizable:[2,"resizable","resizable",I],positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",I],closeOnEscape:[2,"closeOnEscape","closeOnEscape",I],dismissableMask:[2,"dismissableMask","dismissableMask",I],rtl:[2,"rtl","rtl",I],closable:[2,"closable","closable",I],responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",I],breakpoint:"breakpoint",blockScroll:[2,"blockScroll","blockScroll",I],autoZIndex:[2,"autoZIndex","autoZIndex",I],baseZIndex:[2,"baseZIndex","baseZIndex",X],minX:[2,"minX","minX",X],minY:[2,"minY","minY",X],focusOnShow:[2,"focusOnShow","focusOnShow",I],maximizable:[2,"maximizable","maximizable",I],keepInViewport:[2,"keepInViewport","keepInViewport",I],focusTrap:[2,"focusTrap","focusTrap",I],transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},standalone:!1,ngContentSelectors:mx,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["footer",""],[3,"class","style","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","pRipple","","pButton","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","","pButton","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","pRipple","","pButton","",3,"click","keydown.enter","ngClass"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","","pButton","",3,"click","keydown.enter","ngClass"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"]],template:function(t,n){t&1&&(nt(hx),p(0,Qx,2,17,"div",5)),t&2&&l("ngIf",n.maskVisible)},dependencies:()=>[ye,_e,Ce,we,ap,jt,tt,Ye,wl,Il],styles:[`@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}
|
|
`],encapsulation:2,data:{animation:[Nt("animation",[ot("void => visible",[Wi(Xx)]),ot("visible => void",[Wi(Jx)])])]},changeDetection:0})}return i})(),dp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ne({type:i});static \u0275inj=ie({imports:[oe,lp,mt,ht,Ye,wl,Il,ve]})}return i})();var ps=class i{constructor(r){this.http=r}apiUrl="/ocrb/api/emails";attachmentUrl="/ocrb/api/attachments";getEmails(r=0,e=50){return this.http.get(`${this.apiUrl}?skip=${r}&limit=${e}`)}getEmailDetails(r){return this.http.get(`${this.apiUrl}/${r}`)}getAttachmentUrl(r){return`${this.attachmentUrl}/${r}`}getPreviewUrl(r){return`${this.attachmentUrl}/${r}?view=true`}getZipDownloadUrl(r){return`${this.apiUrl}/${r}/download-all`}syncEmails(){return this.http.post(`${this.apiUrl}/sync`,{})}static \u0275fac=function(e){return new(e||i)(re(si))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})};var iT=()=>({"min-width":"50rem"}),nT=()=>({width:"60vw"}),rT=()=>({height:"4px"}),oT=i=>({"font-bold":i});function sT(i,r){i&1&&x(0,"p-progressBar",10),i&2&&rt(Qe(2,rT))}function aT(i,r){i&1&&(f(0,"tr")(1,"th",11),N(2,"ID"),m(),x(3,"th",11),f(4,"th",12),N(5,"Sender"),m(),f(6,"th",13),N(7,"Subject"),m(),f(8,"th",14),N(9,"Date"),m(),f(10,"th",11),N(11,"Status"),m(),f(12,"th",11),N(13,"Action"),m()())}function lT(i,r){i&1&&x(0,"i",19)}function cT(i,r){if(i&1){let e=H();f(0,"tr",15)(1,"td"),N(2),m(),f(3,"td"),p(4,lT,1,0,"i",16),m(),f(5,"td"),N(6),m(),f(7,"td"),N(8),m(),f(9,"td"),N(10),Es(11,"date"),m(),f(12,"td"),x(13,"i",17),m(),f(14,"td")(15,"button",18),M("click",function(){let n=v(e).$implicit,o=d();return b(o.viewEmail(n.id))}),m()()()}if(i&2){let e=r.$implicit;l("ngClass",Q(10,oT,!e.is_read)),c(2),ce(e.id),c(2),l("ngIf",e.has_attachments),c(2),ce(e.sender),c(2),ce(e.subject),c(2),ce(Ms(11,7,e.received_date,"short")),c(3),l("ngClass",e.is_read?"pi-envelope-open":"pi-envelope")}}function dT(i,r){i&1&&(f(0,"tr")(1,"td",20),N(2,"No emails found. Click Sync to fetch from Gmail."),m()())}function uT(i,r){i&1&&x(0,"i",36)}function pT(i,r){i&1&&x(0,"i",37)}function hT(i,r){i&1&&x(0,"i",38)}function mT(i,r){if(i&1&&(f(0,"div",28)(1,"div",29),p(2,uT,1,0,"i",30)(3,pT,1,0,"i",31)(4,hT,1,0,"i",32),m(),f(5,"a",33),x(6,"i",34),m(),f(7,"span",35),N(8),m()()),i&2){let e=r.$implicit,t=d(3);c(2),l("ngIf",t.isImage(e.content_type)),c(),l("ngIf",!t.isImage(e.content_type)&&t.isPdf(e.content_type)),c(),l("ngIf",!t.isImage(e.content_type)&&!t.isPdf(e.content_type)),c(),l("href",t.getDownloadLink(e.id),zi),c(2),l("title",e.filename),c(),Pe(" ",e.filename," ")}}function fT(i,r){if(i&1&&(f(0,"div")(1,"div",23)(2,"h4"),N(3),m(),f(4,"a",24),x(5,"i",25),N(6," Download All "),m()(),f(7,"div",26),p(8,mT,9,6,"div",27),m()()),i&2){let e=d(2);c(3),Pe("Attachments (",e.selectedEmail.attachments.length,")"),c(),l("href",e.getDownloadAllLink(e.selectedEmail.id),zi),c(4),l("ngForOf",e.selectedEmail.attachments)}}function gT(i,r){if(i&1&&(f(0,"div")(1,"div",21)(2,"strong"),N(3,"From:"),m(),N(4),x(5,"br"),f(6,"strong"),N(7,"Subject:"),m(),N(8),x(9,"br"),f(10,"strong"),N(11,"Date:"),m(),N(12),Es(13,"date"),x(14,"br"),m(),x(15,"hr")(16,"div",22),p(17,fT,9,3,"div",9),m()),i&2){let e=d();c(4),Pe(" ",e.selectedEmail.sender),c(4),Pe(" ",e.selectedEmail.subject),c(4),Pe(" ",Ms(13,5,e.selectedEmail.received_date,"medium")),c(4),l("innerHTML",e.selectedEmail.body||"<i>No Content</i>",xi),c(),l("ngIf",e.selectedEmail.attachments&&e.selectedEmail.attachments.length>0)}}var hs=class i{constructor(r,e){this.mailboxService=r;this.messageService=e}emails=[];totalRecords=0;loading=!0;syncing=!1;displayDialog=!1;selectedEmail=null;ngOnInit(){}loadEmails(r){this.loading=!0;let e=r.first||0,t=r.rows||50;this.mailboxService.getEmails(e,t).subscribe({next:n=>{this.emails=n.items,this.totalRecords=n.total,this.loading=!1},error:n=>{console.error(n),this.loading=!1}})}viewEmail(r){this.mailboxService.getEmailDetails(r).subscribe({next:e=>{this.selectedEmail=e,this.displayDialog=!0;let t=this.emails.findIndex(n=>n.id===r);t!==-1&&(this.emails[t].is_read=!0)},error:e=>this.messageService.add({severity:"error",summary:"Error",detail:"Could not load email details"})})}getDownloadLink(r){return this.mailboxService.getAttachmentUrl(r)}getPreviewLink(r){return this.mailboxService.getPreviewUrl(r)}getDownloadAllLink(r){return this.mailboxService.getZipDownloadUrl(r)}isImage(r){return r.startsWith("image/")}isPdf(r){return r==="application/pdf"}sync(){this.syncing=!0,this.mailboxService.syncEmails().subscribe({next:r=>{this.syncing=!1,this.messageService.add({severity:"success",summary:"Sync Complete",detail:r.message||"Emails synced successfully"}),this.loadEmails({first:0,rows:50})},error:r=>{this.syncing=!1,this.messageService.add({severity:"error",summary:"Sync Failed",detail:"Could not fetch emails"})}})}static \u0275fac=function(e){return new(e||i)(C(ps),C(Ct))};static \u0275cmp=O({type:i,selectors:[["app-mailbox"]],features:[Ue([Ct])],decls:13,vars:17,consts:[[1,"card"],[1,"flex","justify-content-between","align-items-center","mb-4"],["pButton","","label","Sync Now","icon","pi pi-refresh",3,"click","loading"],["mode","indeterminate",3,"style",4,"ngIf"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","styleClass","p-datatable-sm",3,"onLazyLoad","value","paginator","rows","totalRecords","lazy","loading","showCurrentPageReport","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["header","Email Details",3,"visibleChange","visible","modal"],[4,"ngIf"],["mode","indeterminate"],[2,"width","5%"],[2,"width","25%"],[2,"width","40%"],[2,"width","20%"],[3,"ngClass"],["class","pi pi-paperclip text-gray-500",4,"ngIf"],[1,"pi",3,"ngClass"],["pButton","","icon","pi pi-eye",1,"p-button-rounded","p-button-text",3,"click"],[1,"pi","pi-paperclip","text-gray-500"],["colspan","7"],[1,"mb-3"],[1,"email-body","mb-4",3,"innerHTML"],[1,"flex","justify-content-between","align-items-center","mb-2"],["target","_blank",1,"p-button","p-button-sm","p-button-outlined",3,"href"],[1,"pi","pi-download","mr-2"],[1,"flex","flex-wrap","gap-3"],["class","attachment-card relative border-1 surface-border border-round p-2 flex flex-column align-items-center justify-content-center","style","width: 120px; height: 120px;",4,"ngFor","ngForOf"],[1,"attachment-card","relative","border-1","surface-border","border-round","p-2","flex","flex-column","align-items-center","justify-content-center",2,"width","120px","height","120px"],[1,"flex","align-items-center","justify-content-center","h-full","w-full","bg-gray-50","border-round"],["class","pi pi-image text-purple-500 text-5xl",4,"ngIf"],["class","pi pi-file-pdf text-red-500 text-5xl",4,"ngIf"],["class","pi pi-file text-gray-500 text-5xl",4,"ngIf"],["target","_blank",1,"download-overlay","absolute","top-0","left-0","w-full","h-full","flex","align-items-center","justify-content-center","bg-black-alpha-50","border-round","hover:opacity-100","opacity-0","transition-duration-200","cursor-pointer",3,"href"],[1,"pi","pi-download","text-white","text-3xl"],[1,"text-xs","text-center","mt-1","white-space-nowrap","overflow-hidden","text-overflow-ellipsis","w-full",3,"title"],[1,"pi","pi-image","text-purple-500","text-5xl"],[1,"pi","pi-file-pdf","text-red-500","text-5xl"],[1,"pi","pi-file","text-gray-500","text-5xl"]],template:function(e,t){e&1&&(f(0,"div",0)(1,"div",1)(2,"h2"),N(3,"Mailbox"),m(),f(4,"button",2),M("click",function(){return t.sync()}),m()(),p(5,sT,1,3,"p-progressBar",3),f(6,"p-table",4),M("onLazyLoad",function(o){return t.loadEmails(o)}),p(7,aT,14,0,"ng-template",5)(8,cT,16,12,"ng-template",6)(9,dT,3,0,"ng-template",7),m(),x(10,"p-toast"),f(11,"p-dialog",8),Qt("visibleChange",function(o){return Zt(t.displayDialog,o)||(t.displayDialog=o),o}),p(12,gT,18,8,"div",9),m()()),e&2&&(c(4),l("loading",t.syncing),c(),l("ngIf",t.syncing),c(),l("value",t.emails)("paginator",!0)("rows",50)("totalRecords",t.totalRecords)("lazy",!0)("loading",t.loading)("showCurrentPageReport",!0)("tableStyle",Qe(15,iT)),c(5),rt(Qe(16,nT)),Yt("visible",t.displayDialog),l("modal",!0),c(),l("ngIf",t.selectedEmail))},dependencies:[oe,ye,Ke,_e,sp,Cl,me,mt,jt,Pn,Vn,sn,Hn,dp,cp,Bs],styles:[".font-bold[_ngcontent-%COMP%]{font-weight:700}.email-body[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto;background:#f9f9f9;padding:1rem;border-radius:4px}.attachment-card[_ngcontent-%COMP%]:hover .download-overlay[_ngcontent-%COMP%]{opacity:1}.download-overlay[_ngcontent-%COMP%]{transition:opacity .2s}"]})};var ms=class i{constructor(r,e){this.authService=r;this.router=e}canActivate(){return this.authService.isLoggedIn()?!0:(this.router.navigate(["/login"]),!1)}static \u0275fac=function(e){return new(e||i)(re(Li),re(bt))};static \u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})};var up=[{path:"login",component:is},{path:"",component:os,canActivate:[ms],children:[{path:"",redirectTo:"ocr",pathMatch:"full"},{path:"ocr",component:as},{path:"mailbox",component:hs}]},{path:"**",redirectTo:""}];var pp={providers:[sc({eventCoalescing:!0}),La(up),ru(),ea()]};var fs=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){e&1&&x(0,"router-outlet")},dependencies:[tn],encapsulation:2})};Ys(fs,pp).catch(i=>console.error(i));
|