import{a as Ke,b as Ge}from"./chunk-6GXGC424.js";import{a as Fe,b as Be,i as qe,k as He,l as Pe}from"./chunk-23BQOMEX.js";import{O as Se,P as Me,S as Ae,U as $,V as Le,X as De,aa as ze,ea as $e,fa as Re,q as Q,r as E}from"./chunk-DNGQTOEK.js";import{a as Te}from"./chunk-OPKDC23H.js";import{$ as le,Bc as G,Da as c,Ec as Y,Hb as w,Ja as j,Jb as p,Jg as Ve,Mb as de,Mc as _,Mg as Ee,Na as re,Nb as me,Nc as M,Ng as U,Oa as se,Ob as y,Og as ke,Pb as x,Sa as ce,Ta as ue,Tb as W,Ua as u,Ub as he,Wb as H,Wc as be,Xb as f,Xc as ve,Y as ne,Yb as z,Yc as Ie,Z as ie,Zb as Z,Zc as we,_ as oe,_b as J,_c as Ce,ba as R,cb as b,cc as _e,dc as ge,ec as fe,fd as Oe,ga as d,ha as m,ia as D,kc as ye,kg as ee,lc as xe,mb as r,mc as V,na as I,nb as h,nc as P,ng as L,oa as ae,ob as g,oc as X,og as F,pa as q,pb as K,pg as B,sa as pe,sg as te,tb as T,ub as S,vb as O,xc as A,zb as C}from"./chunk-ZSQR4KTU.js";import{i as k}from"./chunk-IQVXR75E.js";var Qe=`
    .p-autocomplete {
        display: inline-flex;
    }

    .p-autocomplete-loader {
        position: absolute;
        top: 50%;
        margin-top: -0.5rem;
        inset-inline-end: dt('autocomplete.padding.x');
    }

    .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-loader {
        inset-inline-end: calc(dt('autocomplete.dropdown.width') + dt('autocomplete.padding.x'));
    }

    .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input {
        flex: 1 1 auto;
        width: 1%;
    }

    .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input,
    .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input-multiple {
        border-start-end-radius: 0;
        border-end-end-radius: 0;
    }

    .p-autocomplete-dropdown {
        cursor: pointer;
        display: inline-flex;
        user-select: none;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        width: dt('autocomplete.dropdown.width');
        border-start-end-radius: dt('autocomplete.dropdown.border.radius');
        border-end-end-radius: dt('autocomplete.dropdown.border.radius');
        background: dt('autocomplete.dropdown.background');
        border: 1px solid dt('autocomplete.dropdown.border.color');
        border-inline-start: 0 none;
        color: dt('autocomplete.dropdown.color');
        transition:
            background dt('autocomplete.transition.duration'),
            color dt('autocomplete.transition.duration'),
            border-color dt('autocomplete.transition.duration'),
            outline-color dt('autocomplete.transition.duration'),
            box-shadow dt('autocomplete.transition.duration');
        outline-color: transparent;
    }

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

    .p-autocomplete-dropdown:not(:disabled):active {
        background: dt('autocomplete.dropdown.active.background');
        border-color: dt('autocomplete.dropdown.active.border.color');
        color: dt('autocomplete.dropdown.active.color');
    }

    .p-autocomplete-dropdown:focus-visible {
        box-shadow: dt('autocomplete.dropdown.focus.ring.shadow');
        outline: dt('autocomplete.dropdown.focus.ring.width') dt('autocomplete.dropdown.focus.ring.style') dt('autocomplete.dropdown.focus.ring.color');
        outline-offset: dt('autocomplete.dropdown.focus.ring.offset');
    }

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

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

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

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

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

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

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

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

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

    .p-autocomplete-input-multiple {
        margin: 0;
        list-style-type: none;
        cursor: text;
        overflow: hidden;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        padding: calc(dt('autocomplete.padding.y') / 2) dt('autocomplete.padding.x');
        gap: calc(dt('autocomplete.padding.y') / 2);
        color: dt('autocomplete.color');
        background: dt('autocomplete.background');
        border: 1px solid dt('autocomplete.border.color');
        border-radius: dt('autocomplete.border.radius');
        width: 100%;
        transition:
            background dt('autocomplete.transition.duration'),
            color dt('autocomplete.transition.duration'),
            border-color dt('autocomplete.transition.duration'),
            outline-color dt('autocomplete.transition.duration'),
            box-shadow dt('autocomplete.transition.duration');
        outline-color: transparent;
        box-shadow: dt('autocomplete.shadow');
    }

    .p-autocomplete-input-multiple.p-disabled {
        opacity: 1;
        background: dt('autocomplete.disabled.background');
        color: dt('autocomplete.disabled.color');
    }

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

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

    .p-autocomplete.p-invalid .p-autocomplete-input-multiple {
        border-color: dt('autocomplete.invalid.border.color');
    }

    .p-variant-filled.p-autocomplete-input-multiple {
        background: dt('autocomplete.filled.background');
    }

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

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

    .p-autocomplete-chip.p-chip {
        padding-block-start: calc(dt('autocomplete.padding.y') / 2);
        padding-block-end: calc(dt('autocomplete.padding.y') / 2);
        border-radius: dt('autocomplete.chip.border.radius');
    }

    .p-autocomplete-input-multiple:has(.p-autocomplete-chip) {
        padding-inline-start: calc(dt('autocomplete.padding.y') / 2);
        padding-inline-end: calc(dt('autocomplete.padding.y') / 2);
    }

    .p-autocomplete-chip-item.p-focus .p-autocomplete-chip {
        background: dt('autocomplete.chip.focus.background');
        color: dt('autocomplete.chip.focus.color');
    }

    .p-autocomplete-input-chip {
        flex: 1 1 auto;
        display: inline-flex;
        padding-block-start: calc(dt('autocomplete.padding.y') / 2);
        padding-block-end: calc(dt('autocomplete.padding.y') / 2);
    }

    .p-autocomplete-input-chip input {
        border: 0 none;
        outline: 0 none;
        background: transparent;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        font-family: inherit;
        font-feature-settings: inherit;
        font-size: 1rem;
        color: inherit;
    }

    .p-autocomplete-input-chip input::placeholder {
        color: dt('autocomplete.placeholder.color');
    }

    .p-autocomplete.p-invalid .p-autocomplete-input-chip input::placeholder {
        color: dt('autocomplete.invalid.placeholder.color');
    }

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

    .p-autocomplete-fluid {
        display: flex;
    }

    .p-autocomplete-fluid:has(.p-autocomplete-dropdown) .p-autocomplete-input {
        width: 1%;
    }

    .p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown {
        width: dt('autocomplete.dropdown.sm.width');
    }

    .p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown .p-icon {
        font-size: dt('form.field.sm.font.size');
        width: dt('form.field.sm.font.size');
        height: dt('form.field.sm.font.size');
    }

    .p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown {
        width: dt('autocomplete.dropdown.lg.width');
    }

    .p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown .p-icon {
        font-size: dt('form.field.lg.font.size');
        width: dt('form.field.lg.font.size');
        height: dt('form.field.lg.font.size');
    }

    .p-autocomplete-clear-icon {
        position: absolute;
        top: 50%;
        margin-top: -0.5rem;
        cursor: pointer;
        color: dt('form.field.icon.color');
        inset-inline-end: dt('autocomplete.padding.x');
    }

    .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-clear-icon {
        inset-inline-end: calc(dt('autocomplete.padding.x') + dt('autocomplete.dropdown.width'));
    }

    .p-autocomplete:has(.p-autocomplete-clear-icon) .p-autocomplete-input {
        padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
    }

    .p-inputgroup .p-autocomplete-dropdown {
        border-radius: 0;
    }

    .p-inputgroup > .p-autocomplete:last-child:has(.p-autocomplete-dropdown) > .p-autocomplete-input {
        border-start-end-radius: 0;
        border-end-end-radius: 0;
    }

    .p-inputgroup > .p-autocomplete:last-child .p-autocomplete-dropdown {
        border-start-end-radius: dt('autocomplete.dropdown.border.radius');
        border-end-end-radius: dt('autocomplete.dropdown.border.radius');
    }
`;var Je=["item"],Xe=["empty"],Ye=["header"],et=["footer"],tt=["selecteditem"],nt=["group"],it=["loader"],ot=["removeicon"],lt=["loadingicon"],at=["clearicon"],pt=["dropdownicon"],rt=["focusInput"],st=["multiIn"],ct=["multiContainer"],ut=["ddBtn"],dt=["items"],mt=["scroller"],ht=["overlay"],_t=i=>({i}),je=i=>({$implicit:i}),gt=(i,l,t)=>({removeCallback:i,index:l,class:t}),N=i=>({height:i}),We=(i,l)=>({$implicit:i,options:l}),ft=i=>({options:i}),yt=()=>({}),xt=(i,l,t)=>({option:i,i:l,scrollerOptions:t}),bt=(i,l)=>({$implicit:i,index:l});function vt(i,l){if(i&1){let t=C();h(0,"input",18,2),w("input",function(n){d(t);let o=p();return m(o.onInput(n))})("keydown",function(n){d(t);let o=p();return m(o.onKeyDown(n))})("change",function(n){d(t);let o=p();return m(o.onInputChange(n))})("focus",function(n){d(t);let o=p();return m(o.onInputFocus(n))})("blur",function(n){d(t);let o=p();return m(o.onInputBlur(n))})("paste",function(n){d(t);let o=p();return m(o.onInputPaste(n))})("keyup",function(n){d(t);let o=p();return m(o.onInputKeyUp(n))}),g()}if(i&2){let t=p();f(t.cn(t.cx("pcInputText"),t.inputStyleClass)),r("pAutoFocus",t.autofocus)("pt",t.ptm("pcInputText"))("ngStyle",t.inputStyle)("variant",t.$variant())("invalid",t.invalid())("pSize",t.size())("fluid",t.hasFluid)("pInputTextUnstyled",t.unstyled()),b("type",t.type)("value",t.inputValue())("id",t.inputId)("autocomplete",t.autocomplete)("placeholder",t.placeholder)("name",t.name())("minlength",t.minlength())("min",t.min())("max",t.max())("pattern",t.pattern())("size",t.inputSize())("maxlength",t.maxlength())("tabindex",t.$disabled()?-1:t.tabindex)("required",t.required()?"":void 0)("readonly",t.readonly?"":void 0)("disabled",t.$disabled()?"":void 0)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledBy)("aria-required",t.required())("aria-expanded",t.overlayVisible??!1)("aria-controls",t.overlayVisible?t.id+"_list":null)("aria-activedescendant",t.focused?t.focusedOptionId:void 0)}}function It(i,l){if(i&1){let t=C();D(),h(0,"svg",21),w("click",function(){d(t);let n=p(2);return m(n.clear())}),g()}if(i&2){let t=p(2);f(t.cx("clearIcon")),r("pBind",t.ptm("clearIcon")),b("aria-hidden",!0)}}function wt(i,l){}function Ct(i,l){i&1&&u(0,wt,0,0,"ng-template")}function Ot(i,l){if(i&1){let t=C();h(0,"span",22),w("click",function(){d(t);let n=p(2);return m(n.clear())}),u(1,Ct,1,0,null,23),g()}if(i&2){let t=p(2);f(t.cx("clearIcon")),r("pBind",t.ptm("clearIcon")),b("aria-hidden",!0),c(),r("ngTemplateOutlet",t.clearIconTemplate||t._clearIconTemplate)}}function Tt(i,l){if(i&1&&(T(0),u(1,It,1,4,"svg",19)(2,Ot,2,5,"span",20),S()),i&2){let t=p();c(),r("ngIf",!t.clearIconTemplate&&!t._clearIconTemplate),c(),r("ngIf",t.clearIconTemplate||t._clearIconTemplate)}}function St(i,l){i&1&&O(0)}function Vt(i,l){if(i&1){let t=C();h(0,"span",22),w("click",function(n){d(t);let o=p(2).index,a=p(2);return m(!a.readonly&&!a.$disabled()?a.removeOption(n,o):"")}),D(),K(1,"svg",31),g()}if(i&2){let t=p(4);f(t.cx("chipIcon")),r("pBind",t.ptm("chipIcon")),c(),f(t.cx("chipIcon")),b("aria-hidden",!0)}}function Et(i,l){}function kt(i,l){i&1&&u(0,Et,0,0,"ng-template")}function Mt(i,l){if(i&1&&(h(0,"span",32),u(1,kt,1,0,null,29),g()),i&2){let t=p(2).index,e=p(2);r("pBind",e.ptm("chipIcon")),b("aria-hidden",!0),c(),r("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)("ngTemplateOutletContext",X(4,gt,e.removeOption.bind(e),t,e.cx("chipIcon")))}}function At(i,l){if(i&1&&u(0,Vt,2,6,"span",20)(1,Mt,2,8,"span",30),i&2){let t=p(3);r("ngIf",!t.removeIconTemplate&&!t._removeIconTemplate),c(),r("ngIf",t.removeIconTemplate||t._removeIconTemplate)}}function Lt(i,l){if(i&1){let t=C();h(0,"li",26,5)(2,"p-chip",28),w("onRemove",function(n){let o=d(t).index,a=p(2);return m(a.readonly?"":a.removeOption(n,o))}),u(3,St,1,0,"ng-container",29)(4,At,2,2,"ng-template",null,6,A),g()()}if(i&2){let t=l.$implicit,e=l.index,n=p(2);f(n.cx("chipItem",V(17,_t,e))),r("pBind",n.ptm("chipItem")),b("id",n.id+"_multiple_option_"+e)("aria-label",n.getOptionLabel(t))("aria-setsize",n.modelValue().length)("aria-posinset",e+1)("aria-selected",!0),c(2),f(n.cx("pcChip")),r("pt",n.ptm("pcChip"))("label",!n.selectedItemTemplate&&!n._selectedItemTemplate&&n.getOptionLabel(t))("disabled",n.$disabled())("removable",!0)("unstyled",n.unstyled()),c(),r("ngTemplateOutlet",n.selectedItemTemplate||n._selectedItemTemplate)("ngTemplateOutletContext",V(19,je,t))}}function Ft(i,l){if(i&1){let t=C();h(0,"ul",24,3),w("focus",function(n){d(t);let o=p();return m(o.onMultipleContainerFocus(n))})("blur",function(n){d(t);let o=p();return m(o.onMultipleContainerBlur(n))})("keydown",function(n){d(t);let o=p();return m(o.onMultipleContainerKeyDown(n))}),u(2,Lt,6,21,"li",25),h(3,"li",26)(4,"input",27,4),w("input",function(n){d(t);let o=p();return m(o.onInput(n))})("keydown",function(n){d(t);let o=p();return m(o.onKeyDown(n))})("change",function(n){d(t);let o=p();return m(o.onInputChange(n))})("focus",function(n){d(t);let o=p();return m(o.onInputFocus(n))})("blur",function(n){d(t);let o=p();return m(o.onInputBlur(n))})("paste",function(n){d(t);let o=p();return m(o.onInputPaste(n))})("keyup",function(n){d(t);let o=p();return m(o.onInputKeyUp(n))}),g()()()}if(i&2){let t=p();f(t.cx("inputMultiple")),r("pBind",t.ptm("inputMultiple"))("tabindex",-1),b("data-p",t.inputMultipleDataP)("aria-orientation","horizontal")("aria-activedescendant",t.focused?t.focusedMultipleOptionId:void 0),c(2),r("ngForOf",t.modelValue()),c(),f(t.cx("inputChip")),r("pBind",t.ptm("inputChip")),c(),f(t.cx("pcInputText")),r("pAutoFocus",t.autofocus)("pBind",t.ptm("input"))("ngStyle",t.inputStyle),b("type",t.type)("id",t.inputId)("autocomplete",t.autocomplete)("name",t.name())("minlength",t.minlength())("maxlength",t.maxlength())("size",t.size())("min",t.min())("max",t.max())("pattern",t.pattern())("placeholder",t.$filled()?null:t.placeholder)("tabindex",t.$disabled()?-1:t.tabindex)("required",t.required()?"":void 0)("readonly",t.readonly?"":void 0)("disabled",t.$disabled()?"":void 0)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledBy)("aria-required",t.required())("aria-expanded",t.overlayVisible??!1)("aria-controls",t.overlayVisible?t.id+"_list":null)("aria-activedescendant",t.focused?t.focusedOptionId:void 0)}}function Bt(i,l){if(i&1&&(D(),K(0,"svg",35)),i&2){let t=p(2);f(t.cx("loader")),r("pBind",t.ptm("loader"))("spin",!0),b("aria-hidden",!0)}}function Dt(i,l){}function Kt(i,l){i&1&&u(0,Dt,0,0,"ng-template")}function zt(i,l){if(i&1&&(h(0,"span",32),u(1,Kt,1,0,null,23),g()),i&2){let t=p(2);f(t.cx("loader")),r("pBind",t.ptm("loader")),b("aria-hidden",!0),c(),r("ngTemplateOutlet",t.loadingIconTemplate||t._loadingIconTemplate)}}function $t(i,l){if(i&1&&(T(0),u(1,Bt,1,5,"svg",33)(2,zt,2,5,"span",34),S()),i&2){let t=p();c(),r("ngIf",!t.loadingIconTemplate&&!t._loadingIconTemplate),c(),r("ngIf",t.loadingIconTemplate||t._loadingIconTemplate)}}function Rt(i,l){if(i&1&&K(0,"span",38),i&2){let t=p(2);r("ngClass",t.dropdownIcon),b("aria-hidden",!0)}}function qt(i,l){if(i&1&&(D(),K(0,"svg",40)),i&2){let t=p(3);r("pBind",t.ptm("dropdown"))}}function Ht(i,l){}function Pt(i,l){i&1&&u(0,Ht,0,0,"ng-template")}function Gt(i,l){if(i&1&&(T(0),u(1,qt,1,1,"svg",39)(2,Pt,1,0,null,23),S()),i&2){let t=p(2);c(),r("ngIf",!t.dropdownIconTemplate&&!t._dropdownIconTemplate),c(),r("ngTemplateOutlet",t.dropdownIconTemplate||t._dropdownIconTemplate)}}function Qt(i,l){if(i&1){let t=C();h(0,"button",36,7),w("click",function(n){d(t);let o=p();return m(o.handleDropdownClick(n))}),u(2,Rt,1,2,"span",37)(3,Gt,3,2,"ng-container",14),g()}if(i&2){let t=p();f(t.cx("dropdown")),r("pBind",t.ptm("dropdown"))("disabled",t.$disabled()),b("aria-label",t.dropdownAriaLabel)("tabindex",t.tabindex),c(2),r("ngIf",t.dropdownIcon),c(),r("ngIf",!t.dropdownIcon)}}function Ut(i,l){i&1&&O(0)}function Nt(i,l){i&1&&O(0)}function jt(i,l){if(i&1&&u(0,Nt,1,0,"ng-container",29),i&2){let t=l.$implicit,e=l.options;p(2);let n=W(6);r("ngTemplateOutlet",n)("ngTemplateOutletContext",P(2,We,t,e))}}function Wt(i,l){i&1&&O(0)}function Zt(i,l){if(i&1&&u(0,Wt,1,0,"ng-container",29),i&2){let t=l.options,e=p(4);r("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",V(2,ft,t))}}function Jt(i,l){i&1&&(T(0),u(1,Zt,1,4,"ng-template",null,10,A),S())}function Xt(i,l){if(i&1){let t=C();h(0,"p-scroller",45,9),w("onLazyLoad",function(n){d(t);let o=p(2);return m(o.onLazyLoad.emit(n))}),u(2,jt,1,5,"ng-template",null,1,A)(4,Jt,3,0,"ng-container",14),g()}if(i&2){let t=p(2);H(V(10,N,t.scrollHeight)),r("tabindex",-1)("pt",t.ptm("virtualScroller"))("items",t.visibleOptions())("itemSize",t.virtualScrollItemSize)("autoSize",!0)("lazy",t.lazy)("options",t.virtualScrollOptions),c(4),r("ngIf",t.loaderTemplate||t._loaderTemplate)}}function Yt(i,l){i&1&&O(0)}function en(i,l){if(i&1&&(T(0),u(1,Yt,1,0,"ng-container",29),S()),i&2){p();let t=W(6),e=p();c(),r("ngTemplateOutlet",t)("ngTemplateOutletContext",P(3,We,e.visibleOptions(),xe(2,yt)))}}function tn(i,l){if(i&1&&(h(0,"span"),z(1),g()),i&2){let t=p(2).$implicit,e=p(3);c(),Z(e.getOptionGroupLabel(t.optionGroup))}}function nn(i,l){i&1&&O(0)}function on(i,l){if(i&1&&(T(0),h(1,"li",49),u(2,tn,2,1,"span",14)(3,nn,1,0,"ng-container",29),g(),S()),i&2){let t=p(),e=t.$implicit,n=t.index,o=p().options,a=p(2);c(),f(a.cx("optionGroup")),r("pBind",a.ptm("optionGroup"))("ngStyle",V(8,N,o.itemSize+"px")),b("id",a.id+"_"+a.getOptionIndex(n,o)),c(),r("ngIf",!a.groupTemplate),c(),r("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",V(10,je,e.optionGroup))}}function ln(i,l){if(i&1&&(h(0,"span"),z(1),g()),i&2){let t=p(2).$implicit,e=p(3);c(),Z(e.getOptionLabel(t))}}function an(i,l){i&1&&O(0)}function pn(i,l){if(i&1){let t=C();T(0),h(1,"li",50),w("click",function(n){d(t);let o=p().$implicit,a=p(3);return m(a.onOptionSelect(n,o))})("mouseenter",function(n){d(t);let o=p().index,a=p().options,s=p(2);return m(s.onOptionMouseEnter(n,s.getOptionIndex(o,a)))}),u(2,ln,2,1,"span",14)(3,an,1,0,"ng-container",29),g(),S()}if(i&2){let t=p(),e=t.$implicit,n=t.index,o=p().options,a=p(2);c(),f(a.cx("option",X(15,xt,e,n,o))),r("pBind",a.getPTOptions(e,o,n,"option"))("ngStyle",V(19,N,o.itemSize+"px")),b("id",a.id+"_"+a.getOptionIndex(n,o))("aria-label",a.getOptionLabel(e))("aria-selected",a.isSelected(e))("data-p-selected",a.isSelected(e))("aria-disabled",a.isOptionDisabled(e))("data-p-focused",a.focusedOptionIndex()===a.getOptionIndex(n,o))("aria-setsize",a.ariaSetSize)("aria-posinset",a.getAriaPosInset(a.getOptionIndex(n,o))),c(),r("ngIf",!a.itemTemplate&&!a._itemTemplate),c(),r("ngTemplateOutlet",a.itemTemplate||a._itemTemplate)("ngTemplateOutletContext",P(21,bt,e,o.getOptions?o.getOptions(n):n))}}function rn(i,l){if(i&1&&u(0,on,4,12,"ng-container",14)(1,pn,4,24,"ng-container",14),i&2){let t=l.$implicit,e=p(3);r("ngIf",e.isOptionGroup(t)),c(),r("ngIf",!e.isOptionGroup(t))}}function sn(i,l){if(i&1&&(T(0),z(1),S()),i&2){let t=p(4);c(),J(" ",t.searchResultMessageText," ")}}function cn(i,l){i&1&&O(0,null,12)}function un(i,l){if(i&1&&(h(0,"li",49),u(1,sn,2,1,"ng-container",51)(2,cn,2,0,"ng-container",23),g()),i&2){let t=p().options,e=p(2);f(e.cx("emptyMessage")),r("pBind",e.ptm("emptyMessage"))("ngStyle",V(7,N,t.itemSize+"px")),c(),r("ngIf",!e.emptyTemplate&&!e._emptyTemplate)("ngIfElse",e.empty),c(),r("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function dn(i,l){if(i&1&&(h(0,"ul",46,11),u(2,rn,2,2,"ng-template",47)(3,un,3,9,"li",48),g()),i&2){let t=l.$implicit,e=l.options,n=p(2);H(e.contentStyle),f(n.cn(n.cx("list"),e.contentStyleClass)),r("pBind",n.ptm("list")),b("id",n.id+"_list")("aria-label",n.listLabel),c(2),r("ngForOf",t),c(),r("ngIf",!t||t&&t.length===0&&n.showEmptyMessage)}}function mn(i,l){i&1&&O(0)}function hn(i,l){if(i&1&&(h(0,"div",41),u(1,Ut,1,0,"ng-container",23),h(2,"div",42),u(3,Xt,5,12,"p-scroller",43)(4,en,2,6,"ng-container",14),g(),u(5,dn,4,9,"ng-template",null,8,A)(7,mn,1,0,"ng-container",23),g(),h(8,"span",44),z(9),g()),i&2){let t=p();f(t.cn(t.cx("overlay"),t.panelStyleClass)),r("pBind",t.ptm("overlay"))("ngStyle",t.panelStyle),c(),r("ngTemplateOutlet",t.headerTemplate||t._headerTemplate),c(),f(t.cx("listContainer")),he("max-height",t.virtualScroll?"auto":t.scrollHeight),r("pBind",t.ptm("listContainer"))("tabindex",-1),c(),r("ngIf",t.virtualScroll),c(),r("ngIf",!t.virtualScroll),c(3),r("ngTemplateOutlet",t.footerTemplate||t._footerTemplate),c(2),J(" ",t.selectedMessageText," ")}}var _n=`
${Qe}

/* For PrimeNG */
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input,
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input-multiple p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple {
    border-color: dt('autocomplete.invalid.border.color');
}

p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
p-autoComplete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
p-auto-complete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
p-autocomplete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple {
    border-color: dt('autocomplete.focus.border.color');
}

p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder {
    color: dt('autocomplete.invalid.placeholder.color');
}

p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder {
    color: dt('autocomplete.invalid.placeholder.color');
}
`,gn={root:{position:"relative"}},fn={root:({instance:i})=>["p-autocomplete p-component p-inputwrapper",{"p-invalid":i.invalid(),"p-focus":i.focused,"p-inputwrapper-filled":i.$filled(),"p-inputwrapper-focus":i.focused&&!i.$disabled()||i.autofocus||i.overlayVisible,"p-autocomplete-open":i.overlayVisible,"p-autocomplete-clearable":i.showClear&&!i.$disabled(),"p-autocomplete-fluid":i.hasFluid}],pcInputText:"p-autocomplete-input",inputMultiple:({instance:i})=>["p-autocomplete-input-multiple",{"p-disabled":i.$disabled(),"p-variant-filled":i.$variant()==="filled"}],chipItem:({instance:i,i:l})=>["p-autocomplete-chip-item",{"p-focus":i.focusedMultipleOptionIndex()===l}],pcChip:"p-autocomplete-chip",chipIcon:"p-autocomplete-chip-icon",inputChip:"p-autocomplete-input-chip",loader:"p-autocomplete-loader",dropdown:"p-autocomplete-dropdown",overlay:({instance:i})=>["p-autocomplete-overlay p-component-overlay p-component",{"p-input-filled":i.$variant()==="filled","p-ripple-disabled":i.config.ripple()===!1}],listContainer:"p-autocomplete-list-container",list:"p-autocomplete-list",optionGroup:"p-autocomplete-option-group",option:({instance:i,option:l,i:t,scrollerOptions:e})=>({"p-autocomplete-option":!0,"p-autocomplete-option-selected":i.isSelected(l),"p-focus":i.focusedOptionIndex()===i.getOptionIndex(t,e),"p-disabled":i.isOptionDisabled(l)}),emptyMessage:"p-autocomplete-empty-message",clearIcon:"p-autocomplete-clear-icon"},Ue=(()=>{let l=class l extends Me{name="autocomplete";style=_n;classes=fn;inlineStyles=gn};k(l,"\u0275fac",(()=>{let e;return function(o){return(e||(e=pe(l)))(o||l)}})()),k(l,"\u0275prov",ie({token:l,factory:l.\u0275fac}));let i=l;return i})();var Ne=new le("AUTOCOMPLETE_INSTANCE"),yn={provide:Te,useExisting:ne(()=>Ze),multi:!0},Ze=(()=>{let l=class l extends $e{overlayService;zone;componentName="AutoComplete";$pcAutoComplete=R(Ne,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=R($,{self:!0});minLength=1;minQueryLength;delay=300;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;dropdown;showEmptyMessage=!0;dropdownMode="blank";multiple;addOnTab=!1;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}optionLabel;optionValue;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!1;selectOnFocus;searchLocale;optionDisabled;focusOnHover=!0;typeahead=!0;addOnBlur=!1;separator;appendTo=Y(void 0);motionOptions=Y(void 0);completeMethod=new I;onSelect=new I;onUnselect=new I;onAdd=new I;onFocus=new I;onBlur=new I;onDropdownClick=new I;onClear=new I;onInputKeydown=new I;onKeyUp=new I;onShow=new I;onHide=new I;onLazyLoad=new I;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;onHostClick(e){this.onContainerClick(e)}value;_suggestions=q(null);timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;loading;scrollHandler;listId;searchTimeout;dirty=!1;_itemTemplate;_groupTemplate;_selectedItemTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_loaderTemplate;_removeIconTemplate;_loadingIconTemplate;_clearIconTemplate;_dropdownIconTemplate;focusedMultipleOptionIndex=q(-1);focusedOptionIndex=q(-1);_componentStyle=R(Ue);$appendTo=G(()=>this.appendTo()||this.config.overlayAppendTo());visibleOptions=G(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=G(()=>{let e=this.modelValue(),n=this.optionValueSelected?(this.suggestions||[]).find(o=>B(o,e,this.equalityKey())):e;if(L(e))if(typeof e=="object"||this.optionValueSelected){let o=this.getOptionLabel(n);return o??e}else return e;else return""});get focusedMultipleOptionId(){return this.focusedMultipleOptionIndex()!==-1?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}get searchResultMessageText(){return L(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue()?.length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get listLabel(){return this.config.getTranslation(ke.ARIA).listLabel}get virtualScrollerDisabled(){return!this.virtualScroll}get optionValueSelected(){return typeof this.modelValue()=="string"&&this.optionValue}chipItemClass(e){return this._componentStyle.classes.chipItem({instance:this,i:e})}constructor(e,n){super(),this.overlayService=e,this.zone=n}onInit(){this.id=this.id||Se("pn_id_"),this.cd.detectChanges()}templates;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selecteditem":this._selectedItemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"removetokenicon":this._removeIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}handleSuggestionsChange(){if(this.loading){this._suggestions()?.length>0||this.showEmptyMessage||this.emptyTemplate?this.show():this.hide();let e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((n,o,a)=>{n.push({optionGroup:o,group:!0,index:a});let s=this.getOptionGroupChildren(o);return s&&s.forEach(v=>n.push(v)),n},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return te(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?te(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.optionDisabled?F(e,this.optionDisabled):!1}isSelected(e){return this.multiple?this.unique?this.modelValue()?.some(n=>B(n,e,this.equalityKey())):!1:B(this.modelValue(),e,this.equalityKey())}isOptionMatched(e,n){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===n.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return e.target===this.inputEL?.nativeElement}isDropdownClicked(e){return this.dropdownButton?.nativeElement?e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target):!1}equalityKey(){return this.optionValue?void 0:this.dataKey}onContainerClick(e){this.$disabled()||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&E(this.inputEL?.nativeElement)}handleDropdownClick(e){let n;this.overlayVisible?this.hide(!0):(E(this.inputEL?.nativeElement),n=this.inputEL?.nativeElement?.value,this.dropdownMode==="blank"?this.search(e,"","dropdown"):this.dropdownMode==="current"&&this.search(e,n,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:n})}onInput(e){if(this.typeahead){let n=this.minQueryLength||this.minLength;this.searchTimeout&&clearTimeout(this.searchTimeout);let o=e.target.value;this.maxlength()!==null&&(o=o.split("").slice(0,this.maxlength()).join("")),!this.multiple&&!this.forceSelection&&this.updateModel(o),o.length===0&&!this.multiple?(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2)):o.length>=n?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,o,"input")},this.delay)):this.hide()}}onInputChange(e){this.updateInputWithForceSelection(e)}onInputFocus(e){if(this.$disabled())return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.$disabled()||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.$disabled()){e.preventDefault();return}switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e);break;default:break}}onInputBlur(e){if(this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.addOnBlur&&this.multiple&&!this.typeahead){let n=(this.multiInputEl?.nativeElement?.value||e.target.value||"").trim();n&&!this.isSelected(n)&&(this.updateModel([...this.modelValue()||[],n]),this.onAdd.emit({originalEvent:e,value:n}),this.multiInputEl?.nativeElement?this.multiInputEl.nativeElement.value="":e.target.value="")}this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){if(this.separator&&this.multiple&&!this.typeahead){let n=(e.clipboardData||window.clipboardData)?.getData("Text");if(n){let o=n.split(this.separator),a=[...this.modelValue()||[]];if(o.forEach(s=>{let v=s.trim();v&&!this.isSelected(v)&&a.push(v)}),a.length>(this.modelValue()||[]).length){let s=a.slice((this.modelValue()||[]).length);this.updateModel(a),s.forEach(v=>{this.onAdd.emit({originalEvent:e,value:v})}),this.multiInputEl?.nativeElement?this.multiInputEl.nativeElement.value="":e.target.value="",e.preventDefault()}}}else this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}switch(this.onInputKeydown.emit(e),e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);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);break;case"ShiftLeft":case"ShiftRight":break;default:this.handleSeparatorKey(e);break}}handleSeparatorKey(e){if(this.separator&&this.multiple&&!this.typeahead&&(this.separator===e.key||typeof this.separator=="string"&&e.key===this.separator||this.separator instanceof RegExp&&e.key.match(this.separator))){let n=(this.multiInputEl?.nativeElement?.value||e.target.value||"").trim();n&&!this.isSelected(n)&&(this.updateModel([...this.modelValue()||[],n]),this.onAdd.emit({originalEvent:e,value:n}),this.multiInputEl?.nativeElement?this.multiInputEl.nativeElement.value="":e.target.value="",e.preventDefault())}}onArrowDownKey(e){if(!this.overlayVisible)return;let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}}onArrowLeftKey(e){let n=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(ee(n.value)&&this.hasSelectedOption()?(E(this.multiContainerEL?.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){let{currentTarget:n}=e,o=n.value.length;n.setSelectionRange(0,e.shiftKey?o:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){let{currentTarget:n}=e,o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){if(!this.typeahead&&!this.forceSelection&&this.multiple){let n=e.target.value?.trim();n&&!this.isSelected(n)&&(this.updateModel([...this.modelValue()||[],n]),this.onAdd.emit({originalEvent:e,value:n}),this.inputEL?.nativeElement&&(this.inputEL.nativeElement.value=""))}if(this.overlayVisible)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide();else return;e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){if(this.focusedOptionIndex()!==-1){this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]);return}if(this.multiple&&!this.typeahead){let n=(this.multiInputEl?.nativeElement?.value||this.inputEL?.nativeElement?.value||"").trim();if(this.addOnTab&&n&&!this.isSelected(n)){this.updateModel([...this.modelValue()||[],n]),this.onAdd.emit({originalEvent:e,value:n}),this.multiInputEl?.nativeElement?this.multiInputEl.nativeElement.value="":this.inputEL?.nativeElement&&(this.inputEL.nativeElement.value=""),this.updateInputValue(),e.preventDefault(),this.overlayVisible&&this.hide();return}}this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(L(this.modelValue())&&!this.inputEL?.nativeElement?.value){let n=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:n})}e.stopPropagation()}}onArrowLeftKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(n)}onArrowRightKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex();n++,this.focusedMultipleOptionIndex.set(n),n>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),E(this.inputEL?.nativeElement))}onBackspaceKeyOnMultiple(e){this.focusedMultipleOptionIndex()!==-1&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,n,o=!0){this.multiple?(this.inputEL?.nativeElement&&(this.inputEL.nativeElement.value=""),this.isSelected(n)||this.updateModel([...this.modelValue()||[],n])):this.updateModel(n),this.onSelect.emit({originalEvent:e,value:n}),o&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}search(e,n,o){n!=null&&(o==="input"&&n.trim().length===0||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:n})))}removeOption(e,n){e.stopPropagation();let o=this.modelValue()[n],a=this.modelValue().filter((s,v)=>v!==n);this.updateModel(a),this.onUnselect.emit({originalEvent:e,value:o}),E(this.inputEL?.nativeElement)}updateModel(e){let n=null;e&&(n=this.multiple?e.map(o=>this.getOptionValue(o)):this.getOptionValue(e)),this.value=n,this.writeModelValue(e),this.onModelChange(n),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.inputEL&&this.inputEL.nativeElement&&(this.multiple?this.inputEL.nativeElement.value="":this.inputEL.nativeElement.value=this.inputValue())}updateInputWithForceSelection(e){let n=this.inputEL?.nativeElement,o=!n?.value&&L(this.modelValue());if(!this.forceSelection||this.overlayVisible||!n?.value&&!o)return;let a=this.minQueryLength??this.minLength;if(!o&&n.value.length<a)return;let s=this.visibleOptions()?.find(v=>this.isOptionMatched(v,n.value));if(!s){n.value="",this.multiple||this.clear();return}s&&!this.isSelected(s)&&this.onOptionSelect(e,s)}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){let e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let o=Q(this.itemsViewChild.nativeElement,`li[id="${n}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions()[n],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&E(this.inputEL?.nativeElement),e&&E(this.inputEL?.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){let n=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&E(this.inputEL?.nativeElement),this.onHide.emit(),this.updateInputWithForceSelection(null),this.cd.markForCheck()};setTimeout(()=>{n()},0)}clear(){this.updateModel(null),this.inputEL?.nativeElement&&(this.inputEL.nativeElement.value=""),this.onClear.emit()}hasSelectedOption(){return L(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}getOptionLabel(e){return this.optionLabel?F(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?F(e,this.optionValue):e&&e.value!=null?e.value:e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?F(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?F(e,this.optionGroupChildren):e.items}getPTOptions(e,n,o,a){return this.ptm(a,{context:{option:e,index:this.getOptionIndex(o,n),selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(o,n),disabled:this.isOptionDisabled(e)}})}onOverlayBeforeEnter(){if(this.itemsWrapper=Q(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?'[data-pc-name="virtualscroller"]':'[data-pc-name="pcoverlay"]'),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller?.viewInit()),this.visibleOptions()&&this.visibleOptions().length)if(this.virtualScroll){let e=this.modelValue()?this.focusedOptionIndex():-1;e!==-1&&this.scroller?.scrollToIndex(e)}else{let e=Q(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="true"]');e&&e.scrollIntoView({block:"nearest",inline:"center"})}}get containerDataP(){return this.cn({fluid:this.hasFluid})}get overlayDataP(){return this.cn({[`overlay-${this.$appendTo()}`]:!0})}get inputMultipleDataP(){return this.cn({invalid:this.invalid(),disabled:this.$disabled(),focus:this.focused,fluid:this.hasFluid,filled:this.$variant()==="filled",empty:!this.$filled(),[this.size()]:this.size()})}writeControlValue(e,n){let o=this.multiple?this.visibleOptions().filter(a=>e?.some(s=>B(s,a,this.equalityKey()))):this.visibleOptions().find(a=>B(e,a,this.equalityKey()));this.value=e,n(ee(o)?e:o),this.updateInputValue(),this.cd.markForCheck()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}};k(l,"\u0275fac",function(n){return new(n||l)(j(Ve),j(ae))}),k(l,"\u0275cmp",re({type:l,selectors:[["p-autoComplete"],["p-autocomplete"],["p-auto-complete"]],contentQueries:function(n,o,a){if(n&1&&de(a,Je,5)(a,Xe,5)(a,Ye,5)(a,et,5)(a,tt,5)(a,nt,5)(a,it,5)(a,ot,5)(a,lt,5)(a,at,5)(a,pt,5)(a,Ee,4),n&2){let s;y(s=x())&&(o.itemTemplate=s.first),y(s=x())&&(o.emptyTemplate=s.first),y(s=x())&&(o.headerTemplate=s.first),y(s=x())&&(o.footerTemplate=s.first),y(s=x())&&(o.selectedItemTemplate=s.first),y(s=x())&&(o.groupTemplate=s.first),y(s=x())&&(o.loaderTemplate=s.first),y(s=x())&&(o.removeIconTemplate=s.first),y(s=x())&&(o.loadingIconTemplate=s.first),y(s=x())&&(o.clearIconTemplate=s.first),y(s=x())&&(o.dropdownIconTemplate=s.first),y(s=x())&&(o.templates=s)}},viewQuery:function(n,o){if(n&1&&me(rt,5)(st,5)(ct,5)(ut,5)(dt,5)(mt,5)(ht,5),n&2){let a;y(a=x())&&(o.inputEL=a.first),y(a=x())&&(o.multiInputEl=a.first),y(a=x())&&(o.multiContainerEL=a.first),y(a=x())&&(o.dropdownButton=a.first),y(a=x())&&(o.itemsViewChild=a.first),y(a=x())&&(o.scroller=a.first),y(a=x())&&(o.overlayViewChild=a.first)}},hostVars:5,hostBindings:function(n,o){n&1&&w("click",function(s){return o.onHostClick(s)}),n&2&&(b("data-p",o.containerDataP),H(o.sx("root")),f(o.cn(o.cx("root"),o.styleClass)))},inputs:{minLength:[2,"minLength","minLength",M],minQueryLength:[2,"minQueryLength","minQueryLength",M],delay:[2,"delay","delay",M],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:[2,"readonly","readonly",_],scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",_],virtualScroll:[2,"virtualScroll","virtualScroll",_],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",M],virtualScrollOptions:"virtualScrollOptions",autoHighlight:[2,"autoHighlight","autoHighlight",_],forceSelection:[2,"forceSelection","forceSelection",_],type:"type",autoZIndex:[2,"autoZIndex","autoZIndex",_],baseZIndex:[2,"baseZIndex","baseZIndex",M],ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:[2,"unique","unique",_],group:[2,"group","group",_],completeOnFocus:[2,"completeOnFocus","completeOnFocus",_],showClear:[2,"showClear","showClear",_],dropdown:[2,"dropdown","dropdown",_],showEmptyMessage:[2,"showEmptyMessage","showEmptyMessage",_],dropdownMode:"dropdownMode",multiple:[2,"multiple","multiple",_],addOnTab:[2,"addOnTab","addOnTab",_],tabindex:[2,"tabindex","tabindex",M],dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:[2,"autofocus","autofocus",_],autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",optionLabel:"optionLabel",optionValue:"optionValue",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",_],selectOnFocus:[2,"selectOnFocus","selectOnFocus",_],searchLocale:[2,"searchLocale","searchLocale",_],optionDisabled:"optionDisabled",focusOnHover:[2,"focusOnHover","focusOnHover",_],typeahead:[2,"typeahead","typeahead",_],addOnBlur:[2,"addOnBlur","addOnBlur",_],separator:"separator",appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onAdd:"onAdd",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onInputKeydown:"onInputKeydown",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[ye([yn,Ue,{provide:Ne,useExisting:l},{provide:Ae,useExisting:l}]),ce([$]),ue],decls:9,vars:14,consts:[["overlay",""],["content",""],["focusInput",""],["multiContainer",""],["focusInput","","multiIn",""],["token",""],["removeicon",""],["ddBtn",""],["buildInItems",""],["scroller",""],["loader",""],["items",""],["empty",""],["pInputText","","aria-autocomplete","list","role","combobox",3,"pAutoFocus","pt","class","ngStyle","variant","invalid","pSize","fluid","pInputTextUnstyled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"pBind","class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pRipple","",3,"pBind","class","disabled","click",4,"ngIf"],[3,"visibleChange","onBeforeEnter","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],["pInputText","","aria-autocomplete","list","role","combobox",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","pt","ngStyle","variant","invalid","pSize","fluid","pInputTextUnstyled"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["role","listbox",3,"focus","blur","keydown","pBind","tabindex"],["role","option",3,"pBind","class",4,"ngFor","ngForOf"],["role","option",3,"pBind"],["role","combobox","aria-autocomplete","list",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","pBind","ngStyle"],[3,"onRemove","pt","label","disabled","removable","unstyled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind",4,"ngIf"],["data-p-icon","times-circle"],[3,"pBind"],["data-p-icon","spinner",3,"pBind","class","spin",4,"ngIf"],[3,"pBind","class",4,"ngIf"],["data-p-icon","spinner",3,"pBind","spin"],["type","button","pRipple","",3,"click","pBind","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["data-p-icon","chevron-down",3,"pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],[3,"pBind","tabindex"],[3,"tabindex","pt","items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],[3,"onLazyLoad","tabindex","pt","items","itemSize","autoSize","lazy","options"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],["pRipple","","role","option",3,"click","mouseenter","pBind","ngStyle"],[4,"ngIf","ngIfElse"]],template:function(n,o){if(n&1){let a=C();u(0,vt,2,32,"input",13)(1,Tt,3,2,"ng-container",14)(2,Ft,7,37,"ul",15)(3,$t,3,2,"ng-container",14)(4,Qt,4,8,"button",16),h(5,"p-overlay",17,0),fe("visibleChange",function(v){return d(a),ge(o.overlayVisible,v)||(o.overlayVisible=v),m(v)}),w("onBeforeEnter",function(){return o.onOverlayBeforeEnter()})("onHide",function(){return o.hide()}),u(7,hn,10,15,"ng-template",null,1,A),g()}n&2&&(r("ngIf",!o.multiple),c(),r("ngIf",o.$filled()&&!o.$disabled()&&o.showClear&&!o.loading),c(),r("ngIf",o.multiple),c(),r("ngIf",o.loading),c(),r("ngIf",o.dropdown),c(),r("hostAttrSelector",o.$attrSelector),_e("visible",o.overlayVisible),r("options",o.overlayOptions)("target","@parent")("appendTo",o.$appendTo())("unstyled",o.unstyled())("pt",o.ptm("pcOverlay"))("motionOptions",o.motionOptions()),b("data-p",o.overlayDataP))},dependencies:[Oe,be,ve,Ie,Ce,we,qe,Re,He,Pe,ze,Ke,Be,Fe,Ge,U,De,Le,$],encapsulation:2,changeDetection:0}));let i=l;return i})(),Xn=(()=>{let l=class l{};k(l,"\u0275fac",function(n){return new(n||l)}),k(l,"\u0275mod",se({type:l})),k(l,"\u0275inj",oe({imports:[Ze,U,U]}));let i=l;return i})();export{Ze as a,Xn as b};
/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
//# sourceMappingURL=chunk-5WHJG6BR.js.map
