import{a as Rt}from"./chunk-LYNKRDJC.js";import{a as Pt}from"./chunk-SKY4LXUD.js";import{a as Nt,b as $t}from"./chunk-TTWRMELT.js";import{a as At,c as Ht,d as Qt}from"./chunk-QV67LFVX.js";import{c as It,d as nt,f as ot,h as lt,i as st,k as rt}from"./chunk-4O3FVBGX.js";import{a as Mt}from"./chunk-Q5KZV54I.js";import{a as Kt}from"./chunk-LHGSJXTX.js";import{B as Ot,F as Ie,G as ct,H as xe,K as Et,M as pt,N as Vt,O as je,P as Ve,Q as kt,T as dt,X as Ft,Z as qe,aa as zt,b as at,c as xt,ca as Lt,fa as ke,ga as j,ha as Ge,ia as le,l as St,la as te,ma as se,na as w,oa as Se,pa as We,ra as Dt,s as he,sa as Bt,t as ee,ta as Fe,ua as Re,v as wt,w as Tt,wa as Ze,x as Ce,ya as jt}from"./chunk-ZKNPBXGB.js";import{d as Ke,e as ve,h as Be,i as be,n as X,o as Ae}from"./chunk-I5MYHHJE.js";import{$a as S,$b as u,$c as L,Ab as Xe,Fb as s,Gb as f,Hb as _,Ib as U,Jb as et,Jc as K,Kb as tt,Lb as ge,Mb as V,Nb as k,Ob as F,Oc as Ee,Pb as N,Pc as Ct,Qb as _t,Sc as De,Tb as D,Vb as a,Wa as c,Wb as ce,Xb as pe,Y as ft,Yb as I,Z as ne,Zb as H,_ as fe,_b as h,aa as Z,ab as Oe,ad as $e,ca as E,dc as Y,ec as He,gb as ae,gc as Le,ha as y,hc as m,ia as v,ic as ye,ja as $,jc as Me,kc as it,lb as B,mb as _e,nc as gt,oc as yt,pb as A,pc as vt,qa as Te,qb as oe,rb as d,vc as J,wa as M,wc as Qe,xc as z,yb as R,yc as de,zb as Je,zc as bt}from"./chunk-CKLXM6EG.js";import{a as W,b as ze}from"./chunk-TSRGIXR5.js";var qt=`
    .p-iconfield {
        position: relative;
        display: block;
    }

    .p-inputicon {
        position: absolute;
        top: 50%;
        margin-top: calc(-1 * (dt('icon.size') / 2));
        color: dt('iconfield.icon.color');
        line-height: 1;
        z-index: 1;
    }

    .p-iconfield .p-inputicon:first-child {
        inset-inline-start: dt('form.field.padding.x');
    }

    .p-iconfield .p-inputicon:last-child {
        inset-inline-end: dt('form.field.padding.x');
    }

    .p-iconfield .p-inputtext:not(:first-child),
    .p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext {
        padding-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
    }

    .p-iconfield .p-inputtext:not(:last-child) {
        padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
    }

    .p-iconfield:has(.p-inputfield-sm) .p-inputicon {
        font-size: dt('form.field.sm.font.size');
        width: dt('form.field.sm.font.size');
        height: dt('form.field.sm.font.size');
        margin-top: calc(-1 * (dt('form.field.sm.font.size') / 2));
    }

    .p-iconfield:has(.p-inputfield-lg) .p-inputicon {
        font-size: dt('form.field.lg.font.size');
        width: dt('form.field.lg.font.size');
        height: dt('form.field.lg.font.size');
        margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
    }
`;var gi=["*"],yi={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},Gt=(()=>{class t extends le{name="iconfield";style=qt;classes=yi;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=ne({token:t,factory:t.\u0275fac})}return t})();var Wt=new Z("ICONFIELD_INSTANCE"),Zt=(()=>{class t extends se{hostName="";_componentStyle=E(Gt);$pcIconField=E(Wt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E(w,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=B({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(i,n){i&2&&m(n.cn(n.cx("root"),n.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[J([Gt,{provide:Wt,useExisting:t},{provide:te,useExisting:t}]),oe([w]),A],ngContentSelectors:gi,decls:1,vars:0,template:function(i,n){i&1&&(ce(),pe(0))},dependencies:[X,Se],encapsulation:2,changeDetection:0})}return t})();var vi=["data-p-icon","blank"],Ut=(()=>{class t extends Fe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=B({type:t,selectors:[["","data-p-icon","blank"]],features:[A],attrs:vi,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,n){i&1&&($(),ge(0,"rect",0))},encapsulation:2})}return t})();var bi=["data-p-icon","eye"],ul=(()=>{class t extends Fe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=B({type:t,selectors:[["","data-p-icon","eye"]],features:[A],attrs:bi,decls:1,vars:0,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z","fill","currentColor"]],template:function(i,n){i&1&&($(),ge(0,"path",0))},encapsulation:2})}return t})();var Ci=["data-p-icon","search"],Yt=(()=>{class t extends Fe{pathId;onInit(){this.pathId="url(#"+qe()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=B({type:t,selectors:[["","data-p-icon","search"]],features:[A],attrs:Ci,decls:5,vars:2,consts:[["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(i,n){i&1&&($(),et(0,"g"),ge(1,"path",0),tt(),et(2,"defs")(3,"clipPath",1),ge(4,"rect",2),tt()()),i&2&&(R("clip-path",n.pathId),c(3),_t("id",n.pathId))},encapsulation:2})}return t})();var Ii=["*"],xi={root:"p-inputicon"},Jt=(()=>{class t extends le{name="inputicon";classes=xi;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=ne({token:t,factory:t.\u0275fac})}return t})(),Xt=new Z("INPUTICON_INSTANCE"),ei=(()=>{class t extends se{hostName="";styleClass;_componentStyle=E(Jt);$pcInputIcon=E(Xt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E(w,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=B({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(i,n){i&2&&m(n.cn(n.cx("root"),n.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[J([Jt,{provide:Xt,useExisting:t},{provide:te,useExisting:t}]),oe([w]),A],ngContentSelectors:Ii,decls:1,vars:0,template:function(i,n){i&1&&(ce(),pe(0))},dependencies:[X,j,Se],encapsulation:2,changeDetection:0})}return t})();var ti=["content"],wi=["overlay"],Ti=["*"],Oi=(t,r,e)=>({showTransitionParams:t,hideTransitionParams:r,transform:e}),Ei=t=>({value:"visible",params:t}),Vi=t=>({mode:t}),ki=t=>({$implicit:t});function Fi(t,r){t&1&&F(0)}function zi(t,r){if(t&1){let e=N();f(0,"div",3,1),D("click",function(n){y(e);let o=a(2);return v(o.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){y(e);let o=a(2);return v(o.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){y(e);let o=a(2);return v(o.onOverlayContentAnimationDone(n))}),pe(2),d(3,Fi,1,0,"ng-container",4),_()}if(t&2){let e=a(2);m(e.cn(e.cx("content"),e.contentStyleClass)),s("pBind",e.ptm("content"))("@overlayContentAnimation",z(10,Ei,bt(6,Oi,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),c(3),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",z(14,ki,z(12,Vi,e.overlayMode)))}}function Li(t,r){if(t&1){let e=N();f(0,"div",3,0),D("click",function(){y(e);let n=a();return v(n.onOverlayClick())}),d(2,zi,4,16,"div",2),_()}if(t&2){let e=a();m(e.cn(e.cx("root"),e.styleClass)),s("pBind",e.ptm("root")),c(2),s("ngIf",e.visible)}}var Mi=`
.p-overlay {
    position: absolute;
    top: 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;
}

/* Github Issue #18560 */
.p-component-overlay.p-component {
    position: relative;
}

.p-overlay-modal > .p-overlay-content {
    z-index: 1;
    width: 90%;
}

/* Position */
/* top */
.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;
}

/* bottom */
.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;
}

/* left */
.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;
}

/* right */
.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;
}

.p-overlay-content ~ .p-overlay-content {
    display: none;
}
`,Di={host:"p-overlay-host",root:({instance:t})=>["p-overlay p-component",{"p-overlay-modal p-overlay-mask p-overlay-mask-enter":t.modal,"p-overlay-center":t.modal&&t.overlayResponsiveDirection==="center","p-overlay-top":t.modal&&t.overlayResponsiveDirection==="top","p-overlay-top-start":t.modal&&t.overlayResponsiveDirection==="top-start","p-overlay-top-end":t.modal&&t.overlayResponsiveDirection==="top-end","p-overlay-bottom":t.modal&&t.overlayResponsiveDirection==="bottom","p-overlay-bottom-start":t.modal&&t.overlayResponsiveDirection==="bottom-start","p-overlay-bottom-end":t.modal&&t.overlayResponsiveDirection==="bottom-end","p-overlay-left":t.modal&&t.overlayResponsiveDirection==="left","p-overlay-left-start":t.modal&&t.overlayResponsiveDirection==="left-start","p-overlay-left-end":t.modal&&t.overlayResponsiveDirection==="left-end","p-overlay-right":t.modal&&t.overlayResponsiveDirection==="right","p-overlay-right-start":t.modal&&t.overlayResponsiveDirection==="right-start","p-overlay-right-end":t.modal&&t.overlayResponsiveDirection==="right-end"}],content:"p-overlay-content"},ii=(()=>{class t extends le{name="overlay";style=Mi;classes=Di;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=ne({token:t,factory:t.\u0275fac})}return t})(),ni=new Z("OVERLAY_INSTANCE"),Bi=st([ot({transform:"{{transform}}",opacity:0}),nt("{{showTransitionParams}}")]),Ai=st([nt("{{hideTransitionParams}}",ot({transform:"{{transform}}",opacity:0}))]),li=(()=>{class t extends se{overlayService;zone;$pcOverlay=E(ni,{optional:!0,skipSelf:!0})??void 0;hostName="";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 Re.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return Re.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return Re.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return Re.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 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}appendTo=De(void 0);visibleChange=new S;onBeforeShow=new S;onShow=new S;onBeforeHide=new S;onHide=new S;onAnimationStart=new S;onAnimationDone=new S;overlayViewChild;contentViewChild;contentTemplate;templates;hostAttrSelector=De();$appendTo=Ee(()=>this.appendTo()||this.config.overlayAppendTo());_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=E(ii);bindDirectiveInstance=E(w,{self:!0});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(Ae(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return W(W({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return W(W({},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 St(this.target,this.el?.nativeElement)}constructor(e,i){super(),this.overlayService=e,this.zone=i}onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&ee(this.targetEl),this.modal&&at(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&ee(this.targetEl),this.modal&&xt(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&We.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&&Ze.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),this.hostAttrSelector()&&this.overlayEl&&this.overlayEl.setAttribute(this.hostAttrSelector(),""),We.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&&at(this.overlayEl,"p-overlay-mask-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let i=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.visible&&(this.show(i,!0),this.bindListeners());break;case"void":if(!this.visible){this.hide(i,!0),this.modalVisible=!1,this.unbindListeners(),We.appendOverlay(this.overlayEl,this.targetEl,this.$appendTo()),Ze.clear(i),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Bt(this.targetEl,e=>{(this.listener?this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}):!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.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!xe()}):!xe())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!xe()}):!xe())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}onDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&this.$appendTo()!=="self"&&(this.renderer.appendChild(this.el.nativeElement,this.overlayEl),Ze.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(i){return new(i||t)(ae(Lt),ae(Oe))};static \u0275cmp=B({type:t,selectors:[["p-overlay"]],contentQueries:function(i,n,o){if(i&1&&(I(o,ti,4),I(o,ke,4)),i&2){let l;h(l=u())&&(n.contentTemplate=l.first),h(l=u())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(H(wi,5),H(ti,5)),i&2){let o;h(o=u())&&(n.overlayViewChild=o.first),h(o=u())&&(n.contentViewChild=o.first)}},inputs:{hostName:"hostName",visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options",appendTo:[1,"appendTo"],hostAttrSelector:[1,"hostAttrSelector"]},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[J([ii,{provide:ni,useExisting:t},{provide:te,useExisting:t}]),oe([w]),A],ngContentSelectors:Ti,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&(ce(),d(0,Li,3,4,"div",2)),i&2&&s("ngIf",n.modalVisible)},dependencies:[X,ve,be,j,w],encapsulation:2,data:{animation:[It("overlayContentAnimation",[lt(":enter",[rt(Bi)]),lt(":leave",[rt(Ai)])])]},changeDetection:0})}return t})();var si=["content"],Ri=["item"],Pi=["loader"],Ni=["loadericon"],Hi=["element"],Qi=["*"],ht=(t,r)=>({$implicit:t,options:r}),$i=t=>({numCols:t}),ci=t=>({options:t}),Ki=()=>({styleClass:"p-virtualscroller-loading-icon"}),ji=(t,r)=>({rows:t,columns:r});function qi(t,r){t&1&&F(0)}function Gi(t,r){if(t&1&&(V(0),d(1,qi,1,0,"ng-container",10),k()),t&2){let e=a(2);c(),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",de(2,ht,e.loadedItems,e.getContentOptions()))}}function Wi(t,r){t&1&&F(0)}function Zi(t,r){if(t&1&&(V(0),d(1,Wi,1,0,"ng-container",10),k()),t&2){let e=r.$implicit,i=r.index,n=a(3);c(),s("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",de(2,ht,e,n.getOptions(i)))}}function Ui(t,r){if(t&1&&(f(0,"div",11,3),d(2,Zi,2,5,"ng-container",12),_()),t&2){let e=a(2);Le(e.contentStyle),m(e.cn(e.cx("content"),e.contentStyleClass)),s("pBind",e.ptm("content")),c(2),s("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function Yi(t,r){if(t&1&&U(0,"div",13),t&2){let e=a(2);m(e.cx("spacer")),s("ngStyle",e.spacerStyle)("pBind",e.ptm("spacer"))}}function Ji(t,r){t&1&&F(0)}function Xi(t,r){if(t&1&&(V(0),d(1,Ji,1,0,"ng-container",10),k()),t&2){let e=r.index,i=a(4);c(),s("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",z(4,ci,i.getLoaderOptions(e,i.both&&z(2,$i,i.numItemsInViewport.cols))))}}function en(t,r){if(t&1&&(V(0),d(1,Xi,2,6,"ng-container",14),k()),t&2){let e=a(3);c(),s("ngForOf",e.loaderArr)}}function tn(t,r){t&1&&F(0)}function nn(t,r){if(t&1&&(V(0),d(1,tn,1,0,"ng-container",10),k()),t&2){let e=a(4);c(),s("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",z(3,ci,Qe(2,Ki)))}}function on(t,r){if(t&1&&($(),U(0,"svg",15)),t&2){let e=a(4);m(e.cx("loadingIcon")),s("spin",!0)("pBind",e.ptm("loadingIcon"))}}function ln(t,r){if(t&1&&d(0,nn,2,5,"ng-container",6)(1,on,1,4,"ng-template",null,5,K),t&2){let e=Y(2),i=a(3);s("ngIf",i.loaderIconTemplate||i._loaderIconTemplate)("ngIfElse",e)}}function sn(t,r){if(t&1&&(f(0,"div",11),d(1,en,2,1,"ng-container",6)(2,ln,3,2,"ng-template",null,4,K),_()),t&2){let e=Y(3),i=a(2);m(i.cx("loader")),s("pBind",i.ptm("loader")),c(),s("ngIf",i.loaderTemplate||i._loaderTemplate)("ngIfElse",e)}}function rn(t,r){if(t&1){let e=N();V(0),f(1,"div",7,1),D("scroll",function(n){y(e);let o=a();return v(o.onContainerScroll(n))}),d(3,Gi,2,5,"ng-container",6)(4,Ui,3,7,"ng-template",null,2,K)(6,Yi,1,4,"div",8)(7,sn,4,5,"div",9),_(),k()}if(t&2){let e=Y(5),i=a();c(),m(i.cn(i.cx("root"),i.styleClass)),s("ngStyle",i._style)("pBind",i.ptm("root")),R("id",i._id)("tabindex",i.tabindex),c(2),s("ngIf",i.contentTemplate||i._contentTemplate)("ngIfElse",e),c(3),s("ngIf",i._showSpacer),c(),s("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function an(t,r){t&1&&F(0)}function cn(t,r){if(t&1&&(V(0),d(1,an,1,0,"ng-container",10),k()),t&2){let e=a(2);c(),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",de(5,ht,e.items,de(2,ji,e._items,e.loadedColumns)))}}function pn(t,r){if(t&1&&(pe(0),d(1,cn,2,8,"ng-container",16)),t&2){let e=a();c(),s("ngIf",e.contentTemplate||e._contentTemplate)}}var dn=`
.p-virtualscroller {
    position: relative;
    overflow: auto;
    contain: strict;
    transform: translateZ(0);
    will-change: scroll-position;
    outline: 0 none;
}

.p-virtualscroller-content {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    min-width: 100%;
    will-change: transform;
}

.p-virtualscroller-spacer {
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 1px;
    transform-origin: 0 0;
    pointer-events: none;
}

.p-virtualscroller-loader {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: dt('virtualscroller.loader.mask.background');
    color: dt('virtualscroller.loader.mask.color');
}

.p-virtualscroller-loader-mask {
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-virtualscroller-loading-icon {
    font-size: dt('virtualscroller.loader.icon.size');
    width: dt('virtualscroller.loader.icon.size');
    height: dt('virtualscroller.loader.icon.size');
}

.p-virtualscroller-horizontal > .p-virtualscroller-content {
    display: flex;
}

.p-virtualscroller-inline .p-virtualscroller-content {
    position: static;
}
`,hn={root:({instance:t})=>["p-virtualscroller",{"p-virtualscroller-inline":t.inline,"p-virtualscroller-both p-both-scroll":t.both,"p-virtualscroller-horizontal p-horizontal-scroll":t.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:t})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!t.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},ri=(()=>{class t extends le{name="virtualscroller";css=dn;classes=hn;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=ne({token:t,factory:t.\u0275fac})}return t})();var ai=new Z("SCROLLER_INSTANCE"),ut=(()=>{class t extends se{zone;componentName="virtualScroller";bindDirectiveInstance=E(w,{self:!0});$pcScroller=E(ai,{optional:!0,skipSelf:!0})??void 0;hostName="";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(([i,n])=>this[`_${i}`]!==n&&(this[`_${i}`]=n)),Object.entries(e).forEach(([i,n])=>this[`${i}`]!==n&&(this[`${i}`]=n)))}onLazyLoad=new S;onScroll=new S;onScrollIndexChange=new S;elementViewChild;contentViewChild;height;_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;templates;_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;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}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:Array.isArray(e)?e.slice(this._appendOnly?0:this.first.cols,this.last.cols):e):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}_componentStyle=E(ri);constructor(e){super(),this.zone=e}onInit(){this.setInitialState()}onChanges(e){let i=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:n,currentValue:o}=e.loading;this.lazy&&n!==o&&o!==this.d_loading&&(this.d_loading=o,i=!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,i=!0),n?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}onAfterContentInit(){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}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Ae(this.platformId)&&!this.initialized&&ct(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Ie(this.elementViewChild?.nativeElement),this.defaultHeight=Ce(this.elementViewChild?.nativeElement),this.defaultContentWidth=Ie(this.contentEl),this.defaultContentHeight=Ce(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.cd.detectChanges()},1))}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||he(this.elementViewChild?.nativeElement,".p-virtualscroller-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===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}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,i="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:l=0,scrollLeft:p=0}=this.elementViewChild?.nativeElement,{numToleratedItems:T}=this.calculateNumItems(),x=this.getContentPosition(),b=this.itemSize,q=(C=0,O)=>C<=O?0:C,P=(C,O,G)=>C*O+G,ie=(C=0,O=0)=>this.scrollTo({left:C,top:O,behavior:i}),Q=this.both?{rows:0,cols:0}:0,ue=!1,g=!1;this.both?(Q={rows:q(e[0],T[0]),cols:q(e[1],T[1])},ie(P(Q.cols,b[1],x.left),P(Q.rows,b[0],x.top)),g=this.lastScrollPos.top!==l||this.lastScrollPos.left!==p,ue=Q.rows!==o.rows||Q.cols!==o.cols):(Q=q(e,T),this.horizontal?ie(P(Q,b,x.left),l):ie(p,P(Q,b,x.top)),g=this.lastScrollPos!==(this.horizontal?p:l),ue=Q!==o),this.isRangeChanged=ue,g&&(this.first=Q)}}scrollInView(e,i,n="auto"){if(i){let{first:o,viewport:l}=this.getRenderedRange(),p=(b=0,q=0)=>this.scrollTo({left:b,top:q,behavior:n}),T=i==="to-start",x=i==="to-end";if(T){if(this.both)l.first.rows-o.rows>e[0]?p(l.first.cols*this._itemSize[1],(l.first.rows-1)*this._itemSize[0]):l.first.cols-o.cols>e[1]&&p((l.first.cols-1)*this._itemSize[1],l.first.rows*this._itemSize[0]);else if(l.first-o>e){let b=(l.first-1)*this._itemSize;this.horizontal?p(b,0):p(0,b)}}else if(x){if(this.both)l.last.rows-o.rows<=e[0]+1?p(l.first.cols*this._itemSize[1],(l.first.rows+1)*this._itemSize[0]):l.last.cols-o.cols<=e[1]+1&&p((l.first.cols+1)*this._itemSize[1],l.first.rows*this._itemSize[0]);else if(l.last-o<=e+1){let b=(l.first+1)*this._itemSize;this.horizontal?p(b,0):p(0,b)}}}else this.scrollToIndex(e,n)}getRenderedRange(){let e=(o,l)=>l||o?Math.floor(o/(l||o)):0,i=this.first,n=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:l}=this.elementViewChild.nativeElement;if(this.both)i={rows:e(o,this._itemSize[0]),cols:e(l,this._itemSize[1])},n={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{let p=this.horizontal?l:o;i=e(p,this._itemSize),n=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:n}}}calculateNumItems(){let e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(x,b)=>b||x?Math.ceil(x/(b||x)):0,l=x=>Math.ceil(x/2),p=this.both?{rows:o(n,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:n,this._itemSize),T=this.d_numToleratedItems||(this.both?[l(p.rows),l(p.cols)]:l(p));return{numItemsInViewport:p,numToleratedItems:T}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),n=(p,T,x,b=!1)=>this.getLast(p+T+(p<x?2:3)*x,b),o=this.first,l=this.both?{rows:n(this.first.rows,e.rows,i[0]),cols:n(this.first.cols,e.cols,i[1],!0)}:n(this.first,e,i);this.last=l,this.numItemsInViewport=e,this.d_numToleratedItems=i,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,i]=[Ie(this.contentEl),Ce(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[n,o]=[Ie(this.elementViewChild.nativeElement),Ce(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,i=!1){return this._items?Math.min(i?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){let e=getComputedStyle(this.contentEl),i=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),l=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:i,right:n,top:o,bottom:l,x:i+n,y:o+l}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let e=this.elementViewChild.nativeElement,i=e.parentElement?.parentElement,n=e.offsetWidth,o=i?.offsetWidth||0,l=this._scrollWidth||`${n||o}px`,p=e.offsetHeight,T=i?.offsetHeight||0,x=this._scrollHeight||`${p||T}px`,b=(q,P)=>e.style[q]=P;this.both||this.horizontal?(b("height",x),b("width",l)):b("height",x)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),i=(n,o,l,p=0)=>this.spacerStyle=ze(W({},this.spacerStyle),{[`${n}`]:(o||[]).length*l+p+"px"});this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let i=e?e.first:this.first,n=(l,p)=>l*p,o=(l=0,p=0)=>this.contentStyle=ze(W({},this.contentStyle),{transform:`translate3d(${l}px, ${p}px, 0)`});if(this.both)o(n(i.cols,this._itemSize[1]),n(i.rows,this._itemSize[0]));else{let l=n(i,this._itemSize);this.horizontal?o(l,0):o(0,l)}}}onScrollPositionChange(e){let i=e.target;if(!i)throw new Error("Event target is null");let n=this.getContentPosition(),o=(g,C)=>g?g>C?g-C:g:0,l=(g,C)=>C||g?Math.floor(g/(C||g)):0,p=(g,C,O,G,re,me)=>g<=re?re:me?O-G-re:C+re-1,T=(g,C,O,G,re,me,Ne)=>g<=me?0:Math.max(0,Ne?g<C?O:g-me:g>C?O:g-2*me),x=(g,C,O,G,re,me=!1)=>{let Ne=C+G+2*re;return g>=re&&(Ne+=re+1),this.getLast(Ne,me)},b=o(i.scrollTop,n.top),q=o(i.scrollLeft,n.left),P=this.both?{rows:0,cols:0}:0,ie=this.last,Q=!1,ue=this.lastScrollPos;if(this.both){let g=this.lastScrollPos.top<=b,C=this.lastScrollPos.left<=q;if(!this._appendOnly||this._appendOnly&&(g||C)){let O={rows:l(b,this._itemSize[0]),cols:l(q,this._itemSize[1])},G={rows:p(O.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:p(O.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],C)};P={rows:T(O.rows,G.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:T(O.cols,G.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],C)},ie={rows:x(O.rows,P.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:x(O.cols,P.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},Q=P.rows!==this.first.rows||ie.rows!==this.last.rows||P.cols!==this.first.cols||ie.cols!==this.last.cols||this.isRangeChanged,ue={top:b,left:q}}}else{let g=this.horizontal?q:b,C=this.lastScrollPos<=g;if(!this._appendOnly||this._appendOnly&&C){let O=l(g,this._itemSize),G=p(O,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,C);P=T(O,G,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,C),ie=x(O,P,this.last,this.numItemsInViewport,this.d_numToleratedItems),Q=P!==this.first||ie!==this.last||this.isRangeChanged,ue=g}}return{first:P,last:ie,isRangeChanged:Q,scrollPos:ue}}onScrollChange(e){let{first:i,last:n,isRangeChanged:o,scrollPos:l}=this.onScrollPositionChange(e);if(o){let p={first:i,last:n};if(this.setContentPosition(p),this.first=i,this.last=n,this.lastScrollPos=l,this.handleEvents("onScrollIndexChange",p),this._lazy&&this.isPageChanged(i)){let T={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this._items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:n,this._items.length)};(this.lazyLoadState.first!==T.first||this.lazyLoadState.last!==T.last)&&this.handleEvents("onLazyLoad",T),this.lazyLoadState=T}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:i}=this.onScrollPositionChange(e);(i||(this._step?this.isPageChanged():!1))&&(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(){Ae(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,i=xe()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(ct(this.elementViewChild?.nativeElement)){let[e,i]=[Ie(this.elementViewChild?.nativeElement),Ce(this.elementViewChild?.nativeElement)],[n,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?n||o:this.horizontal?n:this.vertical?o:!1)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=Ie(this.contentEl),this.defaultContentHeight=Ce(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(e){let i=(this._items||[]).length,n=this.both?this.first.rows+e:this.first+e;return{index:n,count:i,first:n===0,last:n===i-1,even:n%2===0,odd:n%2!==0}}getLoaderOptions(e,i){let n=this.loaderArr.length;return W({index:e,count:n,first:e===0,last:e===n-1,even:e%2===0,odd:e%2!==0,loading:this.d_loading},i)}static \u0275fac=function(i){return new(i||t)(ae(Oe))};static \u0275cmp=B({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(i,n,o){if(i&1&&(I(o,si,4),I(o,Ri,4),I(o,Pi,4),I(o,Ni,4),I(o,ke,4)),i&2){let l;h(l=u())&&(n.contentTemplate=l.first),h(l=u())&&(n.itemTemplate=l.first),h(l=u())&&(n.loaderTemplate=l.first),h(l=u())&&(n.loaderIconTemplate=l.first),h(l=u())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(H(Hi,5),H(si,5)),i&2){let o;h(o=u())&&(n.elementViewChild=o.first),h(o=u())&&(n.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,n){i&2&&He("height",n.height)},inputs:{hostName:"hostName",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"},features:[J([ri,{provide:ai,useExisting:t},{provide:te,useExisting:t}]),oe([w]),A],ngContentSelectors:Qi,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(i,n){if(i&1&&(ce(),d(0,rn,8,10,"ng-container",6)(1,pn,2,1,"ng-template",null,0,K)),i&2){let o=Y(2);s("ngIf",!n._disabled)("ngIfElse",o)}},dependencies:[X,Ke,ve,be,Be,Ht,j,w],encapsulation:2})}return t})(),ys=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=_e({type:t});static \u0275inj=fe({imports:[ut,j,j]})}return t})();var pi=`
    .p-select {
        display: inline-flex;
        cursor: pointer;
        position: relative;
        user-select: none;
        background: dt('select.background');
        border: 1px solid dt('select.border.color');
        transition:
            background dt('select.transition.duration'),
            color dt('select.transition.duration'),
            border-color dt('select.transition.duration'),
            outline-color dt('select.transition.duration'),
            box-shadow dt('select.transition.duration');
        border-radius: dt('select.border.radius');
        outline-color: transparent;
        box-shadow: dt('select.shadow');
    }

    .p-select:not(.p-disabled):hover {
        border-color: dt('select.hover.border.color');
    }

    .p-select:not(.p-disabled).p-focus {
        border-color: dt('select.focus.border.color');
        box-shadow: dt('select.focus.ring.shadow');
        outline: dt('select.focus.ring.width') dt('select.focus.ring.style') dt('select.focus.ring.color');
        outline-offset: dt('select.focus.ring.offset');
    }

    .p-select.p-variant-filled {
        background: dt('select.filled.background');
    }

    .p-select.p-variant-filled:not(.p-disabled):hover {
        background: dt('select.filled.hover.background');
    }

    .p-select.p-variant-filled:not(.p-disabled).p-focus {
        background: dt('select.filled.focus.background');
    }

    .p-select.p-invalid {
        border-color: dt('select.invalid.border.color');
    }

    .p-select.p-disabled {
        opacity: 1;
        background: dt('select.disabled.background');
    }

    .p-select-clear-icon {
        align-self: center;
        color: dt('select.clear.icon.color');
        inset-inline-end: dt('select.dropdown.width');
    }

    .p-select-dropdown {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: transparent;
        color: dt('select.dropdown.color');
        width: dt('select.dropdown.width');
        border-start-end-radius: dt('select.border.radius');
        border-end-end-radius: dt('select.border.radius');
    }

    .p-select-label {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        flex: 1 1 auto;
        width: 1%;
        padding: dt('select.padding.y') dt('select.padding.x');
        text-overflow: ellipsis;
        cursor: pointer;
        color: dt('select.color');
        background: transparent;
        border: 0 none;
        outline: 0 none;
        font-size: 1rem;
    }

    .p-select-label.p-placeholder {
        color: dt('select.placeholder.color');
    }

    .p-select.p-invalid .p-select-label.p-placeholder {
        color: dt('select.invalid.placeholder.color');
    }

    .p-select.p-disabled .p-select-label {
        color: dt('select.disabled.color');
    }

    .p-select-label-empty {
        overflow: hidden;
        opacity: 0;
    }

    input.p-select-label {
        cursor: default;
    }

    .p-select-overlay {
        position: absolute;
        top: 0;
        left: 0;
        background: dt('select.overlay.background');
        color: dt('select.overlay.color');
        border: 1px solid dt('select.overlay.border.color');
        border-radius: dt('select.overlay.border.radius');
        box-shadow: dt('select.overlay.shadow');
        min-width: 100%;
    }

    .p-select-header {
        padding: dt('select.list.header.padding');
    }

    .p-select-filter {
        width: 100%;
    }

    .p-select-list-container {
        overflow: auto;
    }

    .p-select-option-group {
        cursor: auto;
        margin: 0;
        padding: dt('select.option.group.padding');
        background: dt('select.option.group.background');
        color: dt('select.option.group.color');
        font-weight: dt('select.option.group.font.weight');
    }

    .p-select-list {
        margin: 0;
        padding: 0;
        list-style-type: none;
        padding: dt('select.list.padding');
        gap: dt('select.list.gap');
        display: flex;
        flex-direction: column;
    }

    .p-select-option {
        cursor: pointer;
        font-weight: normal;
        white-space: nowrap;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        padding: dt('select.option.padding');
        border: 0 none;
        color: dt('select.option.color');
        background: transparent;
        transition:
            background dt('select.transition.duration'),
            color dt('select.transition.duration'),
            border-color dt('select.transition.duration'),
            box-shadow dt('select.transition.duration'),
            outline-color dt('select.transition.duration');
        border-radius: dt('select.option.border.radius');
    }

    .p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {
        background: dt('select.option.focus.background');
        color: dt('select.option.focus.color');
    }

    .p-select-option.p-select-option-selected {
        background: dt('select.option.selected.background');
        color: dt('select.option.selected.color');
    }

    .p-select-option.p-select-option-selected.p-focus {
        background: dt('select.option.selected.focus.background');
        color: dt('select.option.selected.focus.color');
    }

    .p-select-option-blank-icon {
        flex-shrink: 0;
    }

    .p-select-option-check-icon {
        position: relative;
        flex-shrink: 0;
        margin-inline-start: dt('select.checkmark.gutter.start');
        margin-inline-end: dt('select.checkmark.gutter.end');
        color: dt('select.checkmark.color');
    }

    .p-select-empty-message {
        padding: dt('select.empty.message.padding');
    }

    .p-select-fluid {
        display: flex;
        width: 100%;
    }

    .p-select-sm .p-select-label {
        font-size: dt('select.sm.font.size');
        padding-block: dt('select.sm.padding.y');
        padding-inline: dt('select.sm.padding.x');
    }

    .p-select-sm .p-select-dropdown .p-icon {
        font-size: dt('select.sm.font.size');
        width: dt('select.sm.font.size');
        height: dt('select.sm.font.size');
    }

    .p-select-lg .p-select-label {
        font-size: dt('select.lg.font.size');
        padding-block: dt('select.lg.padding.y');
        padding-inline: dt('select.lg.padding.x');
    }

    .p-select-lg .p-select-dropdown .p-icon {
        font-size: dt('select.lg.font.size');
        width: dt('select.lg.font.size');
        height: dt('select.lg.font.size');
    }

    .p-floatlabel-in .p-select-filter {
        padding-block-start: dt('select.padding.y');
        padding-block-end: dt('select.padding.y');
    }
`;var Pe=t=>({height:t}),mt=t=>({$implicit:t});function un(t,r){if(t&1&&($(),U(0,"svg",6)),t&2){let e=a(2);m(e.cx("optionCheckIcon")),s("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionCheckIcon"))}}function mn(t,r){if(t&1&&($(),U(0,"svg",7)),t&2){let e=a(2);m(e.cx("optionBlankIcon")),s("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionBlankIcon"))}}function fn(t,r){if(t&1&&(V(0),d(1,un,1,3,"svg",4)(2,mn,1,3,"svg",5),k()),t&2){let e=a();c(),s("ngIf",e.selected),c(),s("ngIf",!e.selected)}}function _n(t,r){if(t&1&&(f(0,"span",8),ye(1),_()),t&2){let e=a();s("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionLabel")),c(),Me(e.label??"empty")}}function gn(t,r){t&1&&F(0)}var yn=["item"],vn=["group"],bn=["loader"],Cn=["selectedItem"],In=["header"],di=["filter"],xn=["footer"],Sn=["emptyfilter"],wn=["empty"],Tn=["dropdownicon"],On=["loadingicon"],En=["clearicon"],Vn=["filtericon"],kn=["onicon"],Fn=["officon"],zn=["cancelicon"],Ln=["focusInput"],Mn=["editableInput"],Dn=["items"],Bn=["scroller"],An=["overlay"],Rn=["firstHiddenFocusableEl"],Pn=["lastHiddenFocusableEl"],hi=t=>({class:t}),ui=t=>({options:t}),mi=(t,r)=>({$implicit:t,options:r}),Nn=()=>({});function Hn(t,r){if(t&1&&(V(0),ye(1),k()),t&2){let e=a(2);c(),Me(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Qn(t,r){if(t&1&&F(0,24),t&2){let e=a(2);s("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",z(2,mt,e.selectedOption))}}function $n(t,r){if(t&1&&(f(0,"span"),ye(1),_()),t&2){let e=a(3);c(),Me(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Kn(t,r){if(t&1&&d(0,$n,2,1,"span",18),t&2){let e=a(2);s("ngIf",e.isSelectedOptionEmpty())}}function jn(t,r){if(t&1){let e=N();f(0,"span",22,3),D("focus",function(n){y(e);let o=a();return v(o.onInputFocus(n))})("blur",function(n){y(e);let o=a();return v(o.onInputBlur(n))})("keydown",function(n){y(e);let o=a();return v(o.onKeyDown(n))}),d(2,Hn,2,1,"ng-container",20)(3,Qn,1,4,"ng-container",23)(4,Kn,1,1,"ng-template",null,4,K),_()}if(t&2){let e=Y(5),i=a();m(i.cx("label")),s("pBind",i.ptm("label"))("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),R("aria-disabled",i.$disabled())("id",i.inputId)("aria-label",i.ariaLabel||(i.label()==="p-emptylabel"?void 0:i.label()))("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.$disabled()?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("aria-required",i.required())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0),c(2),s("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate)("ngIfElse",e),c(),s("ngIf",(i.selectedItemTemplate||i._selectedItemTemplate)&&!i.isSelectedOptionEmpty())}}function qn(t,r){if(t&1){let e=N();f(0,"input",25,5),D("input",function(n){y(e);let o=a();return v(o.onEditableInput(n))})("keydown",function(n){y(e);let o=a();return v(o.onKeyDown(n))})("focus",function(n){y(e);let o=a();return v(o.onInputFocus(n))})("blur",function(n){y(e);let o=a();return v(o.onInputBlur(n))}),_()}if(t&2){let e=a();m(e.cx("label")),s("pBind",e.ptm("label"))("pAutoFocus",e.autofocus),R("id",e.inputId)("aria-haspopup","listbox")("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)("name",e.name())("minlength",e.minlength())("min",e.min())("max",e.max())("pattern",e.pattern())("size",e.inputSize())("maxlength",e.maxlength())("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function Gn(t,r){if(t&1){let e=N();$(),f(0,"svg",28),D("click",function(n){y(e);let o=a(2);return v(o.clear(n))}),_()}if(t&2){let e=a(2);m(e.cx("clearIcon")),s("pBind",e.ptm("clearIcon")),R("data-pc-section","clearicon")}}function Wn(t,r){}function Zn(t,r){t&1&&d(0,Wn,0,0,"ng-template")}function Un(t,r){if(t&1){let e=N();f(0,"span",29),D("click",function(n){y(e);let o=a(2);return v(o.clear(n))}),d(1,Zn,1,0,null,30),_()}if(t&2){let e=a(2);m(e.cx("clearIcon")),s("pBind",e.ptm("clearIcon")),R("data-pc-section","clearicon"),c(),s("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",z(6,hi,e.cx("clearIcon")))}}function Yn(t,r){if(t&1&&(V(0),d(1,Gn,1,4,"svg",26)(2,Un,2,8,"span",27),k()),t&2){let e=a();c(),s("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),s("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Jn(t,r){t&1&&F(0)}function Xn(t,r){if(t&1&&(V(0),d(1,Jn,1,0,"ng-container",31),k()),t&2){let e=a(2);c(),s("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function eo(t,r){if(t&1&&U(0,"span",33),t&2){let e=a(3);m(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),s("pBind",e.ptm("loadingIcon"))}}function to(t,r){if(t&1&&U(0,"span",33),t&2){let e=a(3);m(e.cn(e.cx("loadingIcon"),"pi pi-spinner pi-spin")),s("pBind",e.ptm("loadingIcon"))}}function io(t,r){if(t&1&&(V(0),d(1,eo,1,3,"span",32)(2,to,1,3,"span",32),k()),t&2){let e=a(2);c(),s("ngIf",e.loadingIcon),c(),s("ngIf",!e.loadingIcon)}}function no(t,r){if(t&1&&(V(0),d(1,Xn,2,1,"ng-container",18)(2,io,3,2,"ng-container",18),k()),t&2){let e=a();c(),s("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),s("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function oo(t,r){if(t&1&&U(0,"span",36),t&2){let e=a(3);m(e.cn(e.cx("dropdownIcon"),e.dropdownIcon)),s("pBind",e.ptm("dropdownIcon"))}}function lo(t,r){if(t&1&&($(),U(0,"svg",37)),t&2){let e=a(3);m(e.cx("dropdownIcon")),s("pBind",e.ptm("dropdownIcon"))}}function so(t,r){if(t&1&&(V(0),d(1,oo,1,3,"span",34)(2,lo,1,3,"svg",35),k()),t&2){let e=a(2);c(),s("ngIf",e.dropdownIcon),c(),s("ngIf",!e.dropdownIcon)}}function ro(t,r){}function ao(t,r){t&1&&d(0,ro,0,0,"ng-template")}function co(t,r){if(t&1&&(f(0,"span",36),d(1,ao,1,0,null,30),_()),t&2){let e=a(2);m(e.cx("dropdownIcon")),s("pBind",e.ptm("dropdownIcon")),c(),s("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",z(5,hi,e.cx("dropdownIcon")))}}function po(t,r){if(t&1&&d(0,so,3,2,"ng-container",18)(1,co,2,7,"span",34),t&2){let e=a();s("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),c(),s("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function ho(t,r){t&1&&F(0)}function uo(t,r){t&1&&F(0)}function mo(t,r){if(t&1&&(V(0),d(1,uo,1,0,"ng-container",30),k()),t&2){let e=a(3);c(),s("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",z(2,ui,e.filterOptions))}}function fo(t,r){if(t&1&&($(),U(0,"svg",45)),t&2){let e=a(4);s("pBind",e.ptm("filterIcon"))}}function _o(t,r){}function go(t,r){t&1&&d(0,_o,0,0,"ng-template")}function yo(t,r){if(t&1&&(f(0,"span",36),d(1,go,1,0,null,31),_()),t&2){let e=a(4);s("pBind",e.ptm("filterIcon")),c(),s("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function vo(t,r){if(t&1){let e=N();f(0,"p-iconfield",41)(1,"input",42,10),D("input",function(n){y(e);let o=a(3);return v(o.onFilterInputChange(n))})("keydown",function(n){y(e);let o=a(3);return v(o.onFilterKeyDown(n))})("blur",function(n){y(e);let o=a(3);return v(o.onFilterBlur(n))}),_(),f(3,"p-inputicon",41),d(4,fo,1,1,"svg",43)(5,yo,2,2,"span",44),_()()}if(t&2){let e=a(3);s("pt",e.ptm("pcFilterContainer")),c(),m(e.cx("pcFilter")),s("pSize",e.size())("value",e._filterValue()||"")("variant",e.$variant())("pt",e.ptm("pcFilter")),R("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),c(2),s("pt",e.ptm("pcFilterIconContainer")),c(),s("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),s("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function bo(t,r){if(t&1){let e=N();f(0,"div",29),D("click",function(n){return y(e),v(n.stopPropagation())}),d(1,mo,2,4,"ng-container",20)(2,vo,6,14,"ng-template",null,9,K),_()}if(t&2){let e=Y(3),i=a(2);m(i.cx("header")),s("pBind",i.ptm("header")),c(),s("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function Co(t,r){t&1&&F(0)}function Io(t,r){if(t&1&&d(0,Co,1,0,"ng-container",30),t&2){let e=r.$implicit,i=r.options;a(2);let n=Y(9);s("ngTemplateOutlet",n)("ngTemplateOutletContext",de(2,mi,e,i))}}function xo(t,r){t&1&&F(0)}function So(t,r){if(t&1&&d(0,xo,1,0,"ng-container",30),t&2){let e=r.options,i=a(4);s("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",z(2,ui,e))}}function wo(t,r){t&1&&(V(0),d(1,So,1,4,"ng-template",null,12,K),k())}function To(t,r){if(t&1){let e=N();f(0,"p-scroller",46,11),D("onLazyLoad",function(n){y(e);let o=a(2);return v(o.onLazyLoad.emit(n))}),d(2,Io,1,5,"ng-template",null,2,K)(4,wo,3,0,"ng-container",18),_()}if(t&2){let e=a(2);Le(z(9,Pe,e.scrollHeight)),s("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),c(4),s("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Oo(t,r){t&1&&F(0)}function Eo(t,r){if(t&1&&(V(0),d(1,Oo,1,0,"ng-container",30),k()),t&2){a();let e=Y(9),i=a();c(),s("ngTemplateOutlet",e)("ngTemplateOutletContext",de(3,mi,i.visibleOptions(),Qe(2,Nn)))}}function Vo(t,r){if(t&1&&(f(0,"span",36),ye(1),_()),t&2){let e=a(2).$implicit,i=a(3);m(i.cx("optionGroupLabel")),s("pBind",i.ptm("optionGroupLabel")),c(),Me(i.getOptionGroupLabel(e.optionGroup))}}function ko(t,r){t&1&&F(0)}function Fo(t,r){if(t&1&&(V(0),f(1,"li",50),d(2,Vo,2,4,"span",34)(3,ko,1,0,"ng-container",30),_(),k()),t&2){let e=a(),i=e.$implicit,n=e.index,o=a().options,l=a(2);c(),m(l.cx("optionGroup")),s("ngStyle",z(8,Pe,o.itemSize+"px"))("pBind",l.ptm("optionGroup")),R("id",l.id+"_"+l.getOptionIndex(n,o)),c(),s("ngIf",!l.groupTemplate&&!l._groupTemplate),c(),s("ngTemplateOutlet",l.groupTemplate||l._groupTemplate)("ngTemplateOutletContext",z(10,mt,i.optionGroup))}}function zo(t,r){if(t&1){let e=N();V(0),f(1,"p-selectItem",51),D("onClick",function(n){y(e);let o=a().$implicit,l=a(3);return v(l.onOptionSelect(n,o))})("onMouseEnter",function(n){y(e);let o=a().index,l=a().options,p=a(2);return v(p.onOptionMouseEnter(n,p.getOptionIndex(o,l)))}),_(),k()}if(t&2){let e=a(),i=e.$implicit,n=e.index,o=a().options,l=a(2);c(),s("id",l.id+"_"+l.getOptionIndex(n,o))("option",i)("checkmark",l.checkmark)("selected",l.isSelected(i))("label",l.getOptionLabel(i))("disabled",l.isOptionDisabled(i))("template",l.itemTemplate||l._itemTemplate)("focused",l.focusedOptionIndex()===l.getOptionIndex(n,o))("ariaPosInset",l.getAriaPosInset(l.getOptionIndex(n,o)))("ariaSetSize",l.ariaSetSize)("index",n)("scrollerOptions",o)}}function Lo(t,r){if(t&1&&d(0,Fo,4,12,"ng-container",18)(1,zo,2,12,"ng-container",18),t&2){let e=r.$implicit,i=a(3);s("ngIf",i.isOptionGroup(e)),c(),s("ngIf",!i.isOptionGroup(e))}}function Mo(t,r){if(t&1&&ye(0),t&2){let e=a(4);it(" ",e.emptyFilterMessageLabel," ")}}function Do(t,r){t&1&&F(0,null,14)}function Bo(t,r){if(t&1&&d(0,Do,2,0,"ng-container",31),t&2){let e=a(4);s("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function Ao(t,r){if(t&1&&(f(0,"li",50),Je(1,Mo,1,1)(2,Bo,1,1,"ng-container"),_()),t&2){let e=a().options,i=a(2);m(i.cx("emptyMessage")),s("ngStyle",z(5,Pe,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),c(),Xe(!i.emptyFilterTemplate&&!i._emptyFilterTemplate&&!i.emptyTemplate?1:2)}}function Ro(t,r){if(t&1&&ye(0),t&2){let e=a(4);it(" ",e.emptyMessageLabel||e.emptyFilterMessageLabel," ")}}function Po(t,r){t&1&&F(0,null,15)}function No(t,r){if(t&1&&d(0,Po,2,0,"ng-container",31),t&2){let e=a(4);s("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function Ho(t,r){if(t&1&&(f(0,"li",50),Je(1,Ro,1,1)(2,No,1,1,"ng-container"),_()),t&2){let e=a().options,i=a(2);m(i.cx("emptyMessage")),s("ngStyle",z(5,Pe,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),c(),Xe(!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function Qo(t,r){if(t&1&&(f(0,"ul",47,13),d(2,Lo,2,2,"ng-template",48)(3,Ao,3,7,"li",49)(4,Ho,3,7,"li",49),_()),t&2){let e=r.$implicit,i=r.options,n=a(2);Le(i.contentStyle),m(n.cn(n.cx("list"),i.contentStyleClass)),s("pBind",n.ptm("list")),R("id",n.id+"_list")("aria-label",n.listLabel),c(2),s("ngForOf",e),c(),s("ngIf",n.filterValue&&n.isEmpty()),c(),s("ngIf",!n.filterValue&&n.isEmpty())}}function $o(t,r){t&1&&F(0)}function Ko(t,r){if(t&1){let e=N();f(0,"div",38)(1,"span",39,6),D("focus",function(n){y(e);let o=a();return v(o.onFirstHiddenFocus(n))}),_(),d(3,ho,1,0,"ng-container",31)(4,bo,4,5,"div",27),f(5,"div",36),d(6,To,5,11,"p-scroller",40)(7,Eo,2,6,"ng-container",18)(8,Qo,5,10,"ng-template",null,7,K),_(),d(10,$o,1,0,"ng-container",31),f(11,"span",39,8),D("focus",function(n){y(e);let o=a();return v(o.onLastHiddenFocus(n))}),_()()}if(t&2){let e=a();m(e.cn(e.cx("overlay"),e.panelStyleClass)),s("ngStyle",e.panelStyle)("pBind",e.ptm("overlay")),c(),s("pBind",e.ptm("hiddenFirstFocusableEl")),R("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),s("ngIf",e.filter),c(),m(e.cx("listContainer")),He("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),s("pBind",e.ptm("listContainer")),c(),s("ngIf",e.virtualScroll),c(),s("ngIf",!e.virtualScroll),c(3),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),c(),s("pBind",e.ptm("hiddenLastFocusableEl")),R("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var jo=`
    ${pi}

    /* For PrimeNG */
    .p-select-label.p-placeholder {
        color: dt('select.placeholder.color');
    }

    .p-select.ng-invalid.ng-dirty {
        border-color: dt('select.invalid.border.color');
    }

    .p-dropdown.ng-invalid.ng-dirty .p-dropdown-label.p-placeholder,
    .p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {
        color: dt('select.invalid.placeholder.color');
    }
`,qo={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},Ye=(()=>{class t extends le{name="select";style=jo;classes=qo;static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275prov=ne({token:t,factory:t.\u0275fac})}return t})();var fi=new Z("SELECT_INSTANCE"),Go=new Z("SELECT_ITEM_INSTANCE"),Wo={provide:Mt,useExisting:ft(()=>_i),multi:!0},Zo=(()=>{class t extends se{hostName="select";$pcSelectItem=E(Go,{optional:!0,skipSelf:!0})??void 0;$pcSelect=E(fi,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new S;onMouseEnter=new S;_componentStyle=E(Ye);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275cmp=B({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",L],focused:[2,"focused","focused",L],label:"label",disabled:[2,"disabled","disabled",L],visible:[2,"visible","visible",L],itemSize:[2,"itemSize","itemSize",$e],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",L],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[J([Ye,{provide:te,useExisting:t}]),A],decls:4,vars:20,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(i,n){i&1&&(f(0,"li",0),D("click",function(l){return n.onOptionClick(l)})("mouseenter",function(l){return n.onOptionMouseEnter(l)}),d(1,fn,3,2,"ng-container",1)(2,_n,2,2,"span",2)(3,gn,1,0,"ng-container",3),_()),i&2&&(m(n.cx("option")),s("id",n.id)("pBind",n.getPTOptions())("ngStyle",z(16,Pe,n.itemSize+"px")),R("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(),s("ngIf",n.checkmark),c(),s("ngIf",!n.template),c(),s("ngTemplateOutlet",n.template)("ngTemplateOutletContext",z(18,mt,n.option)))},dependencies:[X,ve,be,Be,j,Kt,Pt,Ut,Se,w],encapsulation:2})}return t})(),_i=(()=>{class t extends Rt{zone;filterService;bindDirectiveInstance=E(w,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){Vt(e,this._options())||this._options.set(e)}appendTo=De(void 0);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;_componentStyle=E(Ye);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=Ee(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=Te(null);_placeholder=Te(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=Te(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=Te(-1);labelId;listId;clicked=Te(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Ge.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Ge.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(Ge.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=Ee(()=>{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||[],l=[];return o.forEach(p=>{let x=this.getOptionGroupChildren(p).filter(b=>n?.includes(b));x.length>0&&l.push(ze(W({},p),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...x]}))}),this.flatOptions(l)}return n}return e});label=Ee(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(n=>this.isOptionValueEqualsModelValue(n));if(i!==-1){let n=e[i];return this.getOptionLabel(n)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,i){super(),this.zone=e,this.filterService=i,Ct(()=>{let n=this.modelValue(),o=this.visibleOptions();if(o&&je(o)){let l=this.findSelectedOptionIndex();if(l!==-1||n===void 0||typeof n=="string"&&n.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[l];else{let p=o.findIndex(T=>this.isSelected(T));p!==-1&&(this.selectedOption=o[p])}}pt(o)&&(n===void 0||this.isModelValueNotSet())&&je(this.selectedOption)&&(this.selectedOption=null),n!==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||[]}onInit(){this.id=this.id||qe("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){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;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=he(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&Et(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let l=this.getOptionGroupChildren(n);return l&&l.forEach(p=>i.push(p)),i},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,i,n=!0,o=!1){if(!this.isOptionDisabled(i)){if(!this.isSelected(i)){let l=this.getOptionValue(i);this.updateModel(l,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:l})}n&&this.hide(!0)}}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&kt(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!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,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?Ve(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?Ve(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,i,n,o){return this.ptm(o,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return pt(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?Ve(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?Ve(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?Ve(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).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="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||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.focusInputViewChild?.nativeElement.focus({preventScroll:!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 i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&je(i)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&ee(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=he(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=he(this.itemsWrapper,".p-select-option.p-select-option-selected");i&&i.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"&&Dt(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&ee(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&ee(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i=!1){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,i);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&&Ft(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 i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let n=this.visibleOptions()[i];this.onOptionSelect(e,n,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=he(this.itemsViewChild.nativeElement,`li[id="${i}"]`);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?void 0: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 i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?dt(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastOptionIndex(){return dt(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,i=!1){if(e.altKey&&!i){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,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){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,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){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,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!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)}!i&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())ee(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 i=e.relatedTarget===this.focusInputViewChild?.nativeElement?Tt(this.overlayViewChild?.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;ee(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?Ot(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;ee(i)}hasFocusableElements(){return wt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return n=this.visibleOptions().findIndex(l=>this.isOptionMatched(l)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&setTimeout(()=>{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 i=e.target.value;this._filterValue.set(i),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?he(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():ee(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()}writeControlValue(e,i){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),i(this.value),this.updateEditableLabel(),this.cd.markForCheck()}static \u0275fac=function(i){return new(i||t)(ae(Oe),ae(zt))};static \u0275cmp=B({type:t,selectors:[["p-select"]],contentQueries:function(i,n,o){if(i&1&&(I(o,yn,4),I(o,vn,4),I(o,bn,4),I(o,Cn,4),I(o,In,4),I(o,di,4),I(o,xn,4),I(o,Sn,4),I(o,wn,4),I(o,Tn,4),I(o,On,4),I(o,En,4),I(o,Vn,4),I(o,kn,4),I(o,Fn,4),I(o,zn,4),I(o,ke,4)),i&2){let l;h(l=u())&&(n.itemTemplate=l.first),h(l=u())&&(n.groupTemplate=l.first),h(l=u())&&(n.loaderTemplate=l.first),h(l=u())&&(n.selectedItemTemplate=l.first),h(l=u())&&(n.headerTemplate=l.first),h(l=u())&&(n.filterTemplate=l.first),h(l=u())&&(n.footerTemplate=l.first),h(l=u())&&(n.emptyFilterTemplate=l.first),h(l=u())&&(n.emptyTemplate=l.first),h(l=u())&&(n.dropdownIconTemplate=l.first),h(l=u())&&(n.loadingIconTemplate=l.first),h(l=u())&&(n.clearIconTemplate=l.first),h(l=u())&&(n.filterIconTemplate=l.first),h(l=u())&&(n.onIconTemplate=l.first),h(l=u())&&(n.offIconTemplate=l.first),h(l=u())&&(n.cancelIconTemplate=l.first),h(l=u())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(H(di,5),H(Ln,5),H(Mn,5),H(Dn,5),H(Bn,5),H(An,5),H(Rn,5),H(Pn,5)),i&2){let o;h(o=u())&&(n.filterViewChild=o.first),h(o=u())&&(n.focusInputViewChild=o.first),h(o=u())&&(n.editableInputViewChild=o.first),h(o=u())&&(n.itemsViewChild=o.first),h(o=u())&&(n.scroller=o.first),h(o=u())&&(n.overlayViewChild=o.first),h(o=u())&&(n.firstHiddenFocusableElementOnOverlay=o.first),h(o=u())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:3,hostBindings:function(i,n){i&1&&D("click",function(l){return n.onContainerClick(l)}),i&2&&(R("id",n.id),m(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",L],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",L],editable:[2,"editable","editable",L],tabindex:[2,"tabindex","tabindex",$e],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",L],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",L],checkmark:[2,"checkmark","checkmark",L],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",L],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",L],showClear:[2,"showClear","showClear",L],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",L],virtualScroll:[2,"virtualScroll","virtualScroll",L],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",$e],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",L],selectOnFocus:[2,"selectOnFocus","selectOnFocus",L],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",L],autofocusFilter:[2,"autofocusFilter","autofocusFilter",L],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[J([Wo,Ye,{provide:fi,useExisting:t},{provide:te,useExisting:t}]),oe([w]),A],decls:11,vars:16,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],["hostName","select",3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","pt","visible","options","target","appendTo"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","scrollerOptions"]],template:function(i,n){if(i&1){let o=N();d(0,jn,6,23,"span",16)(1,qn,2,19,"input",17)(2,Yn,3,2,"ng-container",18),f(3,"div",19),d(4,no,3,2,"ng-container",20)(5,po,2,2,"ng-template",null,0,K),_(),f(7,"p-overlay",21,1),vt("visibleChange",function(p){return y(o),yt(n.overlayVisible,p)||(n.overlayVisible=p),v(p)}),D("onAnimationStart",function(p){return y(o),v(n.onOverlayAnimationStart(p))})("onHide",function(){return y(o),v(n.hide())}),d(9,Ko,13,22,"ng-template",null,2,K),_()}if(i&2){let o=Y(6);s("ngIf",!n.editable),c(),s("ngIf",n.editable),c(),s("ngIf",n.isVisibleClearIcon),c(),m(n.cx("dropdown")),s("pBind",n.ptm("dropdown")),R("aria-expanded",n.overlayVisible??!1)("data-pc-section","trigger"),c(),s("ngIf",n.loading)("ngIfElse",o),c(3),s("hostAttrSelector",n.$attrSelector)("pt",n.ptm("pcOverlay")),gt("visible",n.overlayVisible),s("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())}},dependencies:[X,Ke,ve,be,Be,Zo,li,jt,At,Qt,Nt,Yt,$t,Zt,ei,ut,j,Se,w],encapsulation:2,changeDetection:0})}return t})(),Xs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=_e({type:t});static \u0275inj=fe({imports:[_i,j,j]})}return t})();export{Zt as a,ul as b,Yt as c,ei as d,li as e,ut as f,ys as g,_i as h,Xs as i};
