vendor: 13,363 bytes, line 1
1import{A as Fi,Aa as z,B as rt,Bb as jt,C as G,Ca as Bt,D as O,Da as Lt,Db as de,E as P,Ea as S,Eb as ct,F as Z,Fa as I,Fb as Ht,G as A,Ga as Me,H as se,Ha as ki,Ia as Ni,Ja as at,K as $,Ka as Oe,L as N,M as R,Ma as L,Na as f,Oa as be,P as _e,Pa as ye,Q as kt,Qa as Ri,R as Fe,Ra as U,S as p,Sa as Ce,T as X,Ta as T,U as Ie,Ua as F,V as Ii,Va as Y,W as v,Wa as oe,X as Ve,Xa as xe,Y as ve,Ya as Bi,c as ne,da as Nt,e as bi,eb as x,fa as g,g as nt,ga as _,gb as ke,ha as Vi,hb as Li,ia as ot,ib as Pi,ja as Q,jb as ji,k as yi,ka as u,l as Ci,m as st,ma as re,mb as ae,na as j,o as Ei,oa as h,ob as Hi,p as ue,pa as W,pb as lt,qa as k,qb as w,r as Te,ra as Mi,rb as Ge,s as wi,sa as Oi,sb as le,t as Di,ta as J,tb as Ne,u as Si,ua as B,ub as Ee,v as Ai,vb as Pt,wa as K,wb as Gi,y as Ti,ya as xi,z as ge,za as Rt}from"./chunk-CNJORTEI.js";import{a as y,b as H}from"./chunk-C6Q5SG76.js";var Ji=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(u(Q),u(v))};static \u0275dir=h({type:t})}return t})(),Ct=(()=>{class t extends Ji{static \u0275fac=(()=>{let e;return function(s){return(e||(e=_e(t)))(s||t)}})();static \u0275dir=h({type:t,features:[W]})}return t})(),ee=new Z(""),hs={provide:ee,useExisting:G(()=>fs),multi:!0},fs=(()=>{class t extends Ct{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(s){return(e||(e=_e(t)))(s||t)}})();static \u0275dir=h({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,s){n&1&&L("change",function(o){return s.onChange(o.target.checked)})("blur",function(){return s.onTouched()})},standalone:!1,features:[x([hs]),W]})}return t})(),ps={provide:ee,useExisting:G(()=>en),multi:!0};function ms(){let t=Pt()?Pt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var gs=new Z(""),en=(()=>{class t extends Ji{_compositionMode;_composing=!1;constructor(e,n,s){super(e,n),this._compositionMode=s,this._compositionMode==null&&(this._compositionMode=!ms())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(u(Q),u(v),u(gs,8))};static \u0275dir=h({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,s){n&1&&L("input",function(o){return s._handleInput(o.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(o){return s._compositionEnd(o.target.value)})},standalone:!1,features:[x([ps]),W]})}return t})();function Wt(t){return t==null||zt(t)===0}function zt(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var je=new Z(""),Et=new Z(""),_s=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ui=class{static min(i){return vs(i)}static max(i){return bs(i)}static required(i){return tn(i)}static requiredTrue(i){return nn(i)}static email(i){return ys(i)}static minLength(i){return Cs(i)}static maxLength(i){return Es(i)}static pattern(i){return ws(i)}static nullValidator(i){return dt()}static compose(i){return cn(i)}static composeAsync(i){return un(i)}};function vs(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}function bs(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function tn(t){return Wt(t.value)?{required:!0}:null}function nn(t){return t.value===!0?null:{required:!0}}function ys(t){return Wt(t.value)||_s.test(t.value)?null:{email:!0}}function Cs(t){return i=>{let e=i.value?.length??zt(i.value);return e===null||e===0?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null}}function Es(t){return i=>{let e=i.value?.length??zt(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function ws(t){if(!t)return dt;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(Wt(n.value))return null;let s=n.value;return i.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}function dt(t){return null}function sn(t){return t!=null}function rn(t){return Mi(t)?yi(t):t}function on(t){let i={};return t.forEach(e=>{i=e!=null?y(y({},i),e):i}),Object.keys(i).length===0?null:i}function an(t,i){return i.map(e=>e(t))}function Ds(t){return!t.validate}function ln(t){return t.map(i=>Ds(i)?i:e=>i.validate(e))}function cn(t){if(!t)return null;let i=t.filter(sn);return i.length==0?null:function(e){return on(an(e,i))}}function qt(t){return t!=null?cn(ln(t)):null}function un(t){if(!t)return null;let i=t.filter(sn);return i.length==0?null:function(e){let n=an(e,i).map(rn);return Ei(n).pipe(st(on))}}function Qt(t){return t!=null?un(ln(t)):null}function $i(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function dn(t){return t._rawValidators}function hn(t){return t._rawAsyncValidators}function Gt(t){return t?Array.isArray(t)?t:[t]:[]}function ht(t,i){return Array.isArray(t)?t.includes(i):t===i}function Wi(t,i){let e=Gt(i);return Gt(t).forEach(s=>{ht(e,s)||e.push(s)}),e}function zi(t,i){return Gt(i).filter(e=>!ht(t,e))}var ft=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=qt(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},ce=class extends ft{name;get formDirective(){return null}get path(){return null}},we=class extends ft{_parent=null;name=null;valueAccessor=null},pt=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Ss={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},ma=H(y({},Ss),{"[class.ng-submitted]":"isSubmitted"}),ga=(()=>{class t extends pt{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(u(we,2))};static \u0275dir=h({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,s){n&2&&K("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},standalone:!1,features:[W]})}return t})(),_a=(()=>{class t extends pt{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(u(ce,10))};static \u0275dir=h({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,s){n&2&&K("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},standalone:!1,features:[W]})}return t})();var Ue="VALID",ut="INVALID",Re="PENDING",$e="DISABLED",he=class{},mt=class extends he{value;source;constructor(i,e){super(),this.value=i,this.source=e}},ze=class extends he{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},qe=class extends he{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Be=class extends he{status;source;constructor(i,e){super(),this.status=i,this.source=e}},gt=class extends he{source;constructor(i){super(),this.source=i}},_t=class extends he{source;constructor(i){super(),this.source=i}};function Kt(t){return(wt(t)?t.validators:t)||null}function As(t){return Array.isArray(t)?qt(t):t||null}function Zt(t,i){return(wt(i)?i.asyncValidators:t)||null}function Ts(t){return Array.isArray(t)?Qt(t):t||null}function wt(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function fn(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new rt(1e3,"");if(!n[e])throw new rt(1001,"")}function pn(t,i,e){t._forEachChild((n,s)=>{if(e[s]===void 0)throw new rt(1002,"")})}var Le=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return le(this.statusReactive)}set status(i){le(()=>this.statusReactive.set(i))}_status=Ne(()=>this.statusReactive());statusReactive=Ve(void 0);get valid(){return this.status===Ue}get invalid(){return this.status===ut}get pending(){return this.status==Re}get disabled(){return this.status===$e}get enabled(){return this.status!==$e}errors;get pristine(){return le(this.pristineReactive)}set pristine(i){le(()=>this.pristineReactive.set(i))}_pristine=Ne(()=>this.pristineReactive());pristineReactive=Ve(!0);get dirty(){return!this.pristine}get touched(){return le(this.touchedReactive)}set touched(i){le(()=>this.touchedReactive.set(i))}_touched=Ne(()=>this.touchedReactive());touchedReactive=Ve(!1);get untouched(){return!this.touched}_events=new ne;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(Wi(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(Wi(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(zi(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(zi(i,this._rawAsyncValidators))}hasValidator(i){return ht(this._rawValidators,i)}hasAsyncValidator(i){return ht(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(H(y({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new qe(!0,n))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}
vendor: 6,514 bytes, line 1
1),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(s=>{s.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new qe(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(H(y({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new ze(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(s=>{s.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new ze(!0,n))}markAsPending(i={}){this.status=Re;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Be(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(H(y({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=$e,this.errors=null,this._forEachChild(s=>{s.disable(H(y({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new mt(this.value,n)),this._events.next(new Be(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(H(y({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(s=>s(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Ue,this._forEachChild(n=>{n.enable(H(y({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(H(y({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ue||this.status===Re)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new mt(this.value,e)),this._events.next(new Be(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(H(y({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$e:Ue}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Re,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=rn(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(s=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(s,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,s)=>n&&n._find(s),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new Be(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new p,this.statusChanges=new p}_calculateStatus(){return this._allControlsDisabled()?$e:this.errors?ut:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Re)?Re:this._anyControlsHaveStatus(ut)?ut:Ue}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),s=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),s&&this._events.next(new ze(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new qe(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){wt(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=As(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=Ts(this._rawAsyncValidators)}},Pe=class extends Le{constructor(i,e,n){super(Kt(e),Zt(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}
vendor: 22,522 bytes, line 1
1){pn(this,!0,i),Object.keys(i).forEach(n=>{fn(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let s=this.controls[n];s&&s.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,s)=>{n.reset(i?i[s]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,s)=>((n.enabled||this.disabled)&&(e[s]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((s,r)=>{n=e(n,s,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var Ut=class extends Pe{};var Ke=new Z("",{providedIn:"root",factory:()=>Dt}),Dt="always";function mn(t,i){return[...i.path,t]}function vt(t,i,e=Dt){Yt(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),Is(t,i),Ms(t,i),Vs(t,i),Fs(t,i)}function qi(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),yt(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function bt(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function Fs(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function Yt(t,i){let e=dn(t);i.validator!==null?t.setValidators($i(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=hn(t);i.asyncValidator!==null?t.setAsyncValidators($i(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let s=()=>t.updateValueAndValidity();bt(i._rawValidators,s),bt(i._rawAsyncValidators,s)}function yt(t,i){let e=!1;if(t!==null){if(i.validator!==null){let s=dn(t);if(Array.isArray(s)&&s.length>0){let r=s.filter(o=>o!==i.validator);r.length!==s.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let s=hn(t);if(Array.isArray(s)&&s.length>0){let r=s.filter(o=>o!==i.asyncValidator);r.length!==s.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return bt(i._rawValidators,n),bt(i._rawAsyncValidators,n),e}function Is(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&gn(t,i)})}function Vs(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&gn(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function gn(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Ms(t,i){let e=(n,s)=>{i.valueAccessor.writeValue(n),s&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function _n(t,i){t==null,Yt(t,i)}function Os(t,i){return yt(t,i)}function vn(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function xs(t){return Object.getPrototypeOf(t.constructor)===Ct}function bn(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function yn(t,i){if(!i)return null;Array.isArray(i);let e,n,s;return i.forEach(r=>{r.constructor===en?e=r:xs(r)?n=r:s=r}),s||n||e||null}function ks(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var Ns={provide:ce,useExisting:G(()=>Rs)},We=Promise.resolve(),Rs=(()=>{class t extends ce{callSetDisabledState;get submitted(){return le(this.submittedReactive)}_submitted=Ne(()=>this.submittedReactive());submittedReactive=Ve(!1);_directives=new Set;form;ngSubmit=new p;options;constructor(e,n,s){super(),this.callSetDisabledState=s,this.form=new Pe({},qt(e),Qt(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){We.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),vt(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){We.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){We.then(()=>{let n=this._findContainer(e.path),s=new Pe({});_n(s,e),n.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){We.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){We.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),bn(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new gt(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new _t(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(u(je,10),u(Et,10),u(Ke,8))};static \u0275dir=h({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,s){n&1&&L("submit",function(o){return s.onSubmit(o)})("reset",function(){return s.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[x([Ns]),W]})}return t})();function Qi(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Ki(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Qe=class extends Le{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(Kt(e),Zt(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),wt(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ki(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){Qi(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){Qi(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){Ki(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var Bs=t=>t instanceof Qe;var Ls={provide:we,useExisting:G(()=>Ps)},Zi=Promise.resolve(),Ps=(()=>{class t extends we{_changeDetectorRef;callSetDisabledState;control=new Qe;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new p;constructor(e,n,s,r,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=yn(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),vn(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){vt(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Zi.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,s=n!==0&&w(n);Zi.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?mn(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(u(ce,9),u(je,10),u(Et,10),u(ee,10),u(lt,8),u(Ke,8))};static \u0275dir=h({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[x([Ls]),W,$]})}return t})();var ba=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=h({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var Cn=new Z("");var js={provide:ce,useExisting:G(()=>Hs)},Hs=(()=>{class t extends ce{callSetDisabledState;get submitted(){return le(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Ne(()=>this._submittedReactive());_submittedReactive=Ve(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new p;constructor(e,n,s){super(),this.callSetDisabledState=s,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(yt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return vt(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){qi(e.control||null,e,!1),ks(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),bn(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new gt(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new _t(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,s=this.form.get(e.path);n!==s&&(qi(n||null,e),Bs(s)&&(vt(s,e,this.callSetDisabledState),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);_n(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&Os(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Yt(this.form,this),this._oldForm&&yt(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(u(je,10),u(Et,10),u(Ke,8))};static \u0275dir=h({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,s){n&1&&L("submit",function(o){return s.onSubmit(o)})("reset",function(){return s.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[x([js]),W,$]})}return t})();var Gs={provide:we,useExisting:G(()=>Us)},Us=(()=>{class t extends we{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new p;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,s,r,o){super(),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=yn(this,r)}ngOnChanges(e){this._added||this._setUpControl(),vn(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return mn(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||t)(u(ce,13),u(je,10),u(Et,10),u(ee,10),u(Cn,8))};static \u0275dir=h({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[x([Gs]),W,$]})}return t})();var $s={provide:ee,useExisting:G(()=>wn),multi:!0};function En(t,i){return t==null?`${i}`:(i&&typeof i=="object"&&(i="Object"),`${t}: ${i}`.slice(0,50))}function Ws(t){return t.split(":")[0]}var wn=(()=>{class t extends Ct{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let n=this._getOptionId(e),s=En(n,e);this.setProperty("value",s)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){let n=Ws(e);return this._optionMap.has(n)?this._optionMap.get(n):e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=_e(t)))(s||t)}})();static \u0275dir=h({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,s){n&1&&L("change",function(o){return s.onChange(o.target.value)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[x([$s]),W]})}return t})(),ya=(()=>{class t{_element;_renderer;_select;id;constructor(e,n,s){this._element=e,this._renderer=n,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(En(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(n){return new(n||t)(u(v),u(Q),u(wn,9))};static \u0275dir=h({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})(),zs={provide:ee,useExisting:G(()=>Dn),multi:!0};function Yi(t,i){return t==null?`${i}`:(typeof i=="string"&&(i=`'${i}'`),i&&typeof i=="object"&&(i="Object"),`${t}: ${i}`.slice(0,50))}function qs(t){return t.split(":")[0]}var Dn=(()=>{class t extends Ct{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let n;if(Array.isArray(e)){let s=e.map(r=>this._getOptionId(r));n=(r,o)=>{r._setSelected(s.indexOf(o.toString())>-1)}}else n=(s,r)=>{s._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{let s=[],r=n.selectedOptions;if(r!==void 0){let o=r;for(let a=0;a<o.length;a++){let l=o[a],c=this._getOptionValue(l.value);s.push(c)}}else{let o=n.options;for(let a=0;a<o.length;a++){let l=o[a];if(l.selected){let c=this._getOptionValue(l.value);s.push(c)}}}this.value=s,e(s)}}_registerOption(e){let n=(this._idCounter++).toString();return this._optionMap.set(n,e),n}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,e))return n;return null}_getOptionValue(e){let n=qs(e);return this._optionMap.has(n)?this._optionMap.get(n)._value:e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=_e(t)))(s||t)}})();static \u0275dir=h({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,s){n&1&&L("change",function(o){return s.onChange(o.target)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[x([zs]),W]})}return t})(),Ca=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,n,s){this._element=e,this._renderer=n,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Yi(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Yi(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(n){return new(n||t)(u(v),u(Q),u(Dn,9))};static \u0275dir=h({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();var Qs=(()=>{class t{_validator=dt;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):dt,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=h({type:t,features:[$]})}return t})();var Ks={provide:je,useExisting:G(()=>Sn),multi:!0},Zs={provide:je,useExisting:G(()=>Ys),multi:!0},Sn=(()=>{class t extends Qs{required;inputName="required";normalizeInput=w;createValidator=e=>tn;enabled(e){return e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=_e(t)))(s||t)}})();static \u0275dir=h({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,s){n&2&&J("required",s._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[x([Ks]),W]})}return t})(),Ys=(()=>{class t extends Sn{createValidator=e=>nn;static \u0275fac=(()=>{let e;return function(s){return(e||(e=_e(t)))(s||t)}})();static \u0275dir=h({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(n,s){n&2&&J("required",s._enabled?"":null)},standalone:!1,features:[x([Zs]),W]})}return t})();var An=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=j({type:t});static \u0275inj=P({})}return t})(),$t=class extends Le{constructor(i,e,n){super(Kt(e),Zt(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let s=this._adjustIndex(i);s<0&&(s=0),this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),this.controls.splice(s,1),e&&(this.controls.splice(s,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}
1){pn(this,!1,i),i.forEach((n,s)=>{fn(this,!1,s),this.at(s).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,s)=>{this.at(s)&&this.at(s).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function Xi(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var Ea=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let s=this._reduceControls(e),r={};return Xi(n)?r=n:n!==null&&(r.validators=n.validator,r.asyncValidators=n.asyncValidator),new Pe(s,r)}record(e,n=null){let s=this._reduceControls(e);return new Ut(s,n)}control(e,n,s){let r={};return this.useNonNullable?(Xi(n)?r=n:(r.validators=n,r.asyncValidators=s),new Qe(e,H(y({},r),{nonNullable:!0}))):new Qe(e,n,s)}array(e,n,s){let r=e.map(o=>this._createControl(o));return new $t(r,n,s)}_reduceControls(e){let n={};return Object.keys(e).forEach(s=>{n[s]=this._createControl(e[s])}),n}_createControl(e){if(e instanceof Qe)return e;if(e instanceof Le)return e;if(Array.isArray(e)){let n=e[0],s=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(n,s,r)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Xt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ke,useValue:e.callSetDisabledState??Dt}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=j({type:t});static \u0275inj=P({imports:[An]})}return t})(),Jt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Cn,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ke,useValue:e.callSetDisabledState??Dt}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=j({type:t});static \u0275inj=P({imports:[An]})}return t})();var Xs=["*"],Js=(()=>{class t{config;afterChange=Ie();beforeChange=Ie();breakpoint=Ie();destroy=Ie();init=Ie();$instance;currentIndex=0;slides=[];initialized=!1;_removedSlides=[];_addedSlides=[];el=se(v);zone=se(X);isServer=Ht(se(ve));ngOnDestroy(){this.unslick()}ngAfterViewInit(){this.ngAfterViewChecked()}ngAfterViewChecked(){if(!this.isServer&&(this._addedSlides.length>0||this._removedSlides.length>0)){let e=this.slides.length-this._removedSlides.length+this._addedSlides.length;this.initialized?e===0?this.unslick():(this._addedSlides.forEach(n=>{this.slides.push(n),this.$instance.slick("slickAdd",n.el.nativeElement)}),this._addedSlides=[],this._removedSlides.forEach(n=>{let s=this.slides.indexOf(n);this.slides=this.slides.filter(r=>r!==n),this.$instance.slick("slickRemove",s)}),this._removedSlides=[]):e>0&&this.initSlick()}}initSlick(){this.slides=this._addedSlides,this._addedSlides=[],this._removedSlides=[],this.$instance=jQuery(this.el.nativeElement),this.$instance.on("init",(e,n)=>{this.zone.run(()=>{this.init.emit({event:e,slick:n})})}),this.$instance.slick(this.config),this.zone.run(()=>{this.initialized=!0,this.currentIndex=this.config?.initialSlide||0}),this.$instance.on("afterChange",(e,n,s)=>{this.zone.run(()=>{this.afterChange.emit({event:e,slick:n,currentSlide:s,first:s===0,last:n.$slides.length===s+n.options.slidesToScroll}),this.currentIndex=s})}),this.$instance.on("beforeChange",(e,n,s,r)=>{this.zone.run(()=>{this.beforeChange.emit({event:e,slick:n,currentSlide:s,nextSlide:r}),this.currentIndex=r})}),this.$instance.on("breakpoint",(e,n,s)=>{this.zone.run(()=>{this.breakpoint.emit({event:e,slick:n,breakpoint:s})})}),this.$instance.on("destroy",(e,n)=>{this.zone.run(()=>{this.destroy.emit({event:e,slick:n}),this.initialized=!1})})}
1addSlide(e){this._addedSlides.push(e)}removeSlide(e){this._removedSlides.push(e)}slickGoTo(e){this.$instance.slick("slickGoTo",e)}slickNext(){this.$instance.slick("slickNext")}slickPrev(){this.$instance.slick("slickPrev")}slickPause(){this.$instance.slick("slickPause")}slickPlay(){this.$instance.slick("slickPlay")}unslick(){this.$instance&&(this.$instance.slick("unslick"),this.$instance=void 0),this.initialized=!1}ngOnChanges(e){if(this.initialized){let n=e.config;if(n.previousValue!==n.currentValue&&n.currentValue!==void 0){let s=n.currentValue.refresh,r=Object.assign({},n.currentValue);delete r.refresh,this.$instance.slick("slickSetOption",r,s)}}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["ngx-slick-carousel"]],inputs:{config:"config"},outputs:{afterChange:"afterChange",beforeChange:"beforeChange",breakpoint:"breakpoint",destroy:"destroy",init:"init"},exportAs:["slick-carousel"],standalone:!1,features:[x([{provide:ee,useExisting:G(()=>t),multi:!0}]),$],ngContentSelectors:Xs,decls:1,vars:0,template:function(n,s){n&1&&(be(),ye(0))},encapsulation:2})}return t})(),Oa=(()=>{class t{carousel=se(Js,{host:!0});renderer=se(Q);el=se(v);isServer=Ht(se(ve));ngOnInit(){this.carousel.addSlide(this),this.isServer&&this.carousel.slides.length>0&&this.renderer.setStyle(this.el,"display","none")}ngOnDestroy(){this.carousel.removeSlide(this)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=h({type:t,selectors:[["","ngxSlickItem",""]],standalone:!1})}return t})(),Tn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=j({type:t});static \u0275inj=P({imports:[de]})}return t})();var ei=class{constructor(i,e){this.open=i,this.close=e||i}isManual(){return this.open==="manual"||this.close==="manual"}},er={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function tr(t,i=er){let e=(t||"").trim();if(e.length===0)return[];let n=e.split(/\s+/).map(r=>r.split(":")).map(r=>{let o=i[r[0]]||r;return new ei(o[0],o[1])}),s=n.filter(r=>r.isManual());if(s.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(s.length===1&&n.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return n}function In(t,i){let e=tr(i.triggers),n=i.target;if(e.length===1&&e[0].isManual())return Function.prototype;let s=[],r=[],o=()=>{r.forEach(a=>s.push(a())),r.length=0};return e.forEach(a=>{let l=a.open===a.close,c=l?i.toggle:i.show;if(!l&&a.close&&i.hide){let d=a.close,m=i.hide,b=()=>t.listen(n,d,m);r.push(b)}c&&s.push(t.listen(n,a.open,()=>c(o)))}),()=>{s.forEach(a=>a())}}function Vn(t,i){return i.outsideClick?t.listen("document","click",e=>{i.target&&i.target.contains(e.target)||i.targets&&i.targets.some(n=>n.contains(e.target))||i.hide&&i.hide()}):Function.prototype}function Mn(t,i){return i.outsideEsc?t.listen("document","keyup.esc",e=>{i.target&&i.target.contains(e.target)||i.targets&&i.targets.some(n=>n.contains(e.target))||i.hide&&i.hide()}):Function.prototype}var V=typeof window<"u"&&window||{},M=V.document,Na=V.location,Ra=V.gc?()=>V.gc():()=>null,Ba=V.performance?V.performance:null,La=V.Event,Pa=V.MouseEvent,ja=V.KeyboardEvent,Ha=V.EventTarget,Ga=V.History,Ua=V.Location,$a=V.EventListener,On=function(t){return t.isBs4="bs4",t.isBs5="bs5",t}(On||{}),pe;function xn(){let t=V.document.createElement("span");t.innerText="testing bs version",t.classList.add("d-none"),t.classList.add("pl-1"),V.document.head.appendChild(t);let i=V.getComputedStyle(t).paddingLeft;return i&&parseFloat(i)?(V.document.head.removeChild(t),"bs4"):(V.document.head.removeChild(t),"bs5")}function ir(){return pe||(pe=xn()),pe==="bs4"}function nr(){return pe||(pe=xn()),pe==="bs5"}function He(){return{isBs4:ir(),isBs5:nr()}}function sr(){let t=He(),i=Object.keys(t).find(e=>t[e]);return On[i]}function Wa(){let t="Change";return function(e,n){let s=` __${n}Value`;Object.defineProperty(e,n,{get(){return this[s]},set(r){let o=this[s];this[s]=r,o!==r&&this[n+t]&&this[n+t].emit(r)}})}}var St=class{static reflow(i){i.offsetHeight}static getStyles(i){let e=i.ownerDocument.defaultView;return(!e||!e.opener)&&(e=V),e.getComputedStyle(i)}static stackOverflowConfig(){let i=sr();return{crossorigin:"anonymous",integrity:i==="bs5"?"sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65":"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2",cdnLink:i==="bs5"?"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css":"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"}}},Fn={},rr=typeof console>"u"||!("warn"in console);function za(t){!Hi()||rr||t in Fn||(Fn[t]=!0,console.warn(t))}var Pn=function(t){return t.top="top",t.bottom="bottom",t.left="left",t.right="right",t.auto="auto",t.end="right",t.start="left",t["top left"]="top left",t["top right"]="top right",t["right top"]="right top",t["right bottom"]="right bottom",t["bottom right"]="bottom right",t["bottom left"]="bottom left",t["left bottom"]="left bottom",t["left top"]="left top",t["top start"]="top left",t["top end"]="top right",t["end top"]="right top",t["end bottom"]="right bottom",t["bottom end"]="bottom right",t["bottom start"]="bottom left",t["start bottom"]="start bottom",t["start top"]="left top",t}(Pn||{}),si=function(t){return t.top="top",t.bottom="bottom",t.left="start",t.right="end",t.auto="auto",t.end="end",t.start="start",t["top left"]="top start",t["top right"]="top end",t["right top"]="end top",t["right bottom"]="end bottom",t["bottom right"]="bottom end",t["bottom left"]="bottom start",t["left bottom"]="start bottom",t["left top"]="start top",t["top start"]="top start",t["top end"]="top end",t["end top"]="end top",t["end bottom"]="end bottom",t["bottom end"]="bottom end",t["bottom start"]="bottom start",t["start bottom"]="start bottom",t["start top"]="start top",t}(si||{});
1function De(t,i){if(t.nodeType!==1)return[];let n=t.ownerDocument.defaultView?.getComputedStyle(t,null);return i?n&&n[i]:n}function ri(t){if(!t)return document.documentElement;let i=null,e=t?.offsetParent,n;for(;e===i&&t.nextElementSibling&&n!==t.nextElementSibling;)n=t.nextElementSibling,e=n.offsetParent;let s=e&&e.nodeName;return!s||s==="BODY"||s==="HTML"?n?n.ownerDocument.documentElement:document.documentElement:e&&["TH","TD","TABLE"].indexOf(e.nodeName)!==-1&&De(e,"position")==="static"?ri(e):e}function or(t){let{nodeName:i}=t;return i==="BODY"?!1:i==="HTML"||ri(t.firstElementChild)===t}function ti(t){return t.parentNode!==null?ti(t.parentNode):t}function It(t,i){if(!t||!t.nodeType||!i||!i.nodeType)return document.documentElement;let e=t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING,n=e?t:i,s=e?i:t,r=document.createRange();r.setStart(n,0),r.setEnd(s,0);let o=r.commonAncestorContainer;if(t!==o&&i!==o||n.contains(s))return or(o)?o:ri(o);let a=ti(t);return a.host?It(a.host,i):It(t,ti(i).host)}function jn(t){if(!t||!t.parentElement)return document.documentElement;let i=t.parentElement;for(;i?.parentElement&&De(i,"transform")==="none";)i=i.parentElement;return i||document.documentElement}function kn(t,i){let e=i==="x"?"Left":"Top",n=e==="Left"?"Right":"Bottom";return parseFloat(t[`border${e}Width`])+parseFloat(t[`border${n}Width`])}function Nn(t,i,e){let n=i,s=e;return Math.max(n[`offset${t}`],n[`scroll${t}`],s[`client${t}`],s[`offset${t}`],s[`scroll${t}`],0)}function Hn(t){let i=t.body,e=t.documentElement;return{height:Nn("Height",i,e),width:Nn("Width",i,e)}}function Ze(t){return H(y({},t),{right:(t.left||0)+t.width,bottom:(t.top||0)+t.height})}function ar(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(Number(t))}function C(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Rn(t){let i=t.getBoundingClientRect();if(!(i&&C(i.top)&&C(i.left)&&C(i.bottom)&&C(i.right)))return i;let e={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},n=t.nodeName==="HTML"?Hn(t.ownerDocument):void 0,s=n?.width||t.clientWidth||C(i.right)&&C(e.left)&&i.right-e.left||0,r=n?.height||t.clientHeight||C(i.bottom)&&C(e.top)&&i.bottom-e.top||0,o=t.offsetWidth-s,a=t.offsetHeight-r;if(o||a){let l=De(t);o-=kn(l,"x"),a-=kn(l,"y"),e.width-=o,e.height-=a}return Ze(e)}function oi(t,i,e=!1){let n=i.nodeName==="HTML",s=Rn(t),r=Rn(i),o=De(i),a=parseFloat(o.borderTopWidth),l=parseFloat(o.borderLeftWidth);e&&n&&(r.top=Math.max(r.top??0,0),r.left=Math.max(r.left??0,0));let c=Ze({top:(s.top??0)-(r.top??0)-a,left:(s.left??0)-(r.left??0)-l,width:s.width,height:s.height});if(c.marginTop=0,c.marginLeft=0,n){let d=parseFloat(o.marginTop),m=parseFloat(o.marginLeft);C(c.top)&&(c.top-=a-d),C(c.bottom)&&(c.bottom-=a-d),C(c.left)&&(c.left-=l-m),C(c.right)&&(c.right-=l-m),c.marginTop=d,c.marginLeft=m}return c}function ai(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Gn(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body;default:}let{overflow:i,overflowX:e,overflowY:n}=De(t);return/(auto|scroll|overlay)/.test(String(i)+String(n)+String(e))?t:Gn(ai(t))}function Bn(t,i="top"){let e=i==="top"?"scrollTop":"scrollLeft",n=t.nodeName;if(n==="BODY"||n==="HTML"){let s=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||s)[e]}return t[e]}function lr(t,i=!1){let e=t.ownerDocument.documentElement,n=oi(t,e),s=Math.max(e.clientWidth,window.innerWidth||0),r=Math.max(e.clientHeight,window.innerHeight||0),o=i?0:Bn(e),a=i?0:Bn(e,"left"),l={top:o-Number(n?.top)+Number(n?.marginTop),left:a-Number(n?.left)+Number(n?.marginLeft),width:s,height:r};return Ze(l)}function Un(t){let i=t.nodeName;return i==="BODY"||i==="HTML"?!1:De(t,"position")==="fixed"?!0:Un(ai(t))}function li(t,i,e=0,n,s=!1){let r={top:0,left:0},o=s?jn(t):It(t,i);if(n==="viewport")r=lr(o,s);else{let a;n==="scrollParent"?(a=Gn(ai(i)),a.nodeName==="BODY"&&(a=t.ownerDocument.documentElement)):n==="window"?a=t.ownerDocument.documentElement:a=n;let l=oi(a,o,s);if(l&&a.nodeName==="HTML"&&!Un(o)){let{height:c,width:d}=Hn(t.ownerDocument);C(r.top)&&C(l.top)&&C(l.marginTop)&&(r.top+=l.top-l.marginTop),C(r.top)&&
1(r.bottom=Number(c)+Number(l.top)),C(r.left)&&C(l.left)&&C(l.marginLeft)&&(r.left+=l.left-l.marginLeft),C(r.top)&&(r.right=Number(d)+Number(l.left))}else l&&(r=l)}return C(r.left)&&(r.left+=e),C(r.top)&&(r.top+=e),C(r.right)&&(r.right-=e),C(r.bottom)&&(r.bottom-=e),r}function cr({width:t,height:i}){return t*i}function $n(t,i,e,n,s=["top","bottom","right","left"],r="viewport",o=0){if(t.indexOf("auto")===-1)return t;let a=li(e,n,o,r),l={top:{width:a?.width??0,height:(i?.top??0)-(a?.top??0)},right:{width:(a?.right??0)-(i?.right??0),height:a?.height??0},bottom:{width:a?.width??0,height:(a?.bottom??0)-(i?.bottom??0)},left:{width:(i.left??0)-(a?.left??0),height:a?.height??0}},c=Object.keys(l).map(E=>H(y({position:E},l[E]),{area:cr(l[E])})).sort((E,q)=>q.area-E.area),d=c.filter(({width:E,height:q})=>E>=e.clientWidth&&q>=e.clientHeight);d=d.filter(({position:E})=>s.some(q=>q===E));let m=d.length>0?d[0].position:c[0].position,b=t.split(" ")[1];return e.className=e.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${He().isBs5?si[m]:m}`),m+(b?`-${b}`:"")}function ur(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left??0),top:Math.round(t.offsets.target.top??0),bottom:Math.round(t.offsets.target.bottom??0),right:Math.floor(t.offsets.target.right??0)}}function dr(t){let i={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,e=>i[e])}function hr(t){return t==="right"?"left":t==="left"?"right":t}var At=(t,i=0)=>t?parseFloat(t):i;function Wn(t){let e=t.ownerDocument.defaultView?.getComputedStyle(t),n=At(e?.marginTop)+At(e?.marginBottom),s=At(e?.marginLeft)+At(e?.marginRight);return{width:Number(t.offsetWidth)+s,height:Number(t.offsetHeight)+n}}function zn(t,i,e){let n=e?jn(t):It(t,i);return oi(i,n,e)}function ii(t,i,e){let n=e.split(" ")[0],s=Wn(t),r={width:s.width,height:s.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",l=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return r[a]=(i[a]??0)+i[c]/2-s[c]/2,r[l]=n===l?(i[l]??0)-s[d]:i[dr(l)]??0,r}function qn(t,i){return!!t.modifiers[i]?.enabled}var fr={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function Tt(t,i){return He().isBs5?fr[i].includes(t):!1}function pr(t){return He().isBs5?Tt(t,"end")?"ms-2":Tt(t,"start")?"me-2":Tt(t,"top")?"mb-2":Tt(t,"bottom")?"mt-2":"":""}function mr(t,i){let e=t.instance.target,n=e.className,s=He().isBs5?si[t.placement]:t.placement;if(t.placementAuto&&(n=n.replace(/bs-popover-auto/g,`bs-popover-${s}`),n=n.replace(/ms-2|me-2|mb-2|mt-2/g,""),n=n.replace(/bs-tooltip-auto/g,`bs-tooltip-${s}`),n=n.replace(/\sauto/g,` ${s}`),n.indexOf("popover")!==-1&&(n=n+" "+pr(s)),n.indexOf("popover")!==-1&&n.indexOf("popover-auto")===-1&&(n+=" popover-auto"),n.indexOf("tooltip")!==-1&&n.indexOf("tooltip-auto")===-1&&(n+=" tooltip-auto")),n=n.replace(/left|right|top|bottom|end|start/g,`${s.split(" ")[0]}`),i){i.setAttribute(e,"class",n);return}e.className=n}
1function Ln(t,i,e){!t||!i||Object.keys(i).forEach(n=>{let s="";if(["width","height","top","right","bottom","left"].indexOf(n)!==-1&&ar(i[n])&&(s="px"),e){e.setStyle(t,n,`${String(i[n])}${s}`);return}t.style[n]=String(i[n])+s})}function gr(t){let i=t.offsets.target,e=t.instance.target.querySelector(".arrow");if(!e)return t;let n=["left","right"].indexOf(t.placement.split(" ")[0])!==-1,s=n?"height":"width",r=n?"Top":"Left",o=r.toLowerCase(),a=n?"left":"top",l=n?"bottom":"right",c=Wn(e)[s],d=t.placement.split(" ")[1];(t.offsets.host[l]??0)-c<(i[o]??0)&&(i[o]-=(i[o]??0)-((t.offsets.host[l]??0)-c)),Number(t.offsets.host[o])+Number(c)>(i[l]??0)&&(i[o]+=Number(t.offsets.host[o])+Number(c)-Number(i[l])),i=Ze(i);let m=De(t.instance.target),b=parseFloat(m[`margin${r}`])||0,E=parseFloat(m[`border${r}Width`])||0,q;if(!d)q=Number(t.offsets.host[o])+Number(t.offsets.host[s]/2-c/2);else{let it=parseFloat(m.borderRadius)||0,me=Number(b+E+it);q=o===d?Number(t.offsets.host[o])+me:Number(t.offsets.host[o])+Number(t.offsets.host[s]-me)}let Ae=q-(i[o]??0)-b-E;return Ae=Math.max(Math.min(i[s]-(c+5),Ae),0),t.offsets.arrow={[o]:Math.round(Ae),[a]:""},t.instance.arrow=e,t}function _r(t){if(t.offsets.target=Ze(t.offsets.target),!qn(t.options,"flip"))return t.offsets.target=y(y({},t.offsets.target),ii(t.instance.target,t.offsets.host,t.placement)),t;let i=li(t.instance.target,t.instance.host,0,"viewport",!1),e=t.placement.split(" ")[0],n=t.placement.split(" ")[1]||"",s=t.offsets.host,r=t.instance.target,o=t.instance.host,a=$n("auto",s,r,o,t.options.allowedPositions),l=[e,a];return l.forEach((c,d)=>{if(e!==c||l.length===d+1)return;e=t.placement.split(" ")[0];let m=e==="left"&&Math.floor(t.offsets.target.right??0)>Math.floor(t.offsets.host.left??0)||e==="right"&&Math.floor(t.offsets.target.left??0)<Math.floor(t.offsets.host.right??0)||e==="top"&&Math.floor(t.offsets.target.bottom??0)>Math.floor(t.offsets.host.top??0)||e==="bottom"&&Math.floor(t.offsets.target.top??0)<Math.floor(t.offsets.host.bottom??0),b=Math.floor(t.offsets.target.left??0)<Math.floor(i.left??0),E=Math.floor(t.offsets.target.right??0)>Math.floor(i.right??0),q=Math.floor(t.offsets.target.top??0)<Math.floor(i.top??0),Ae=Math.floor(t.offsets.target.bottom??0)>Math.floor(i.bottom??0),it=e==="left"&&b||e==="right"&&E||e==="top"&&q||e==="bottom"&&Ae,me=["top","bottom"].indexOf(e)!==-1,vi=me&&n==="left"&&b||me&&n==="right"&&E||!me&&n==="left"&&q||!me&&n==="right"&&Ae;(m||it||vi)&&((m||it)&&(e=l[d+1]),vi&&(n=hr(n)),t.placement=e+(n?` ${n}`:""),t.offsets.target=y(y({},t.offsets.target),ii(t.instance.target,t.offsets.host,t.placement)))}),t}function vr(t,i,e,n){if(!t||!i)return;let s=zn(t,i);!e.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!e.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(e="auto");let r=!!e.match(/auto/g),o=e.match(/auto\s(left|right|top|bottom|start|end)/)?e.split(" ")[1]||"auto":e,a=o.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);a&&(o=a[1]+(a[2]?` ${a[2]}`:"")),["left right","right left","top bottom","bottom top"].indexOf(o)!==-1&&(o="auto"),o=$n(o,s,t,i,n?n.allowedPositions:void 0);let l=ii(t,s,o);return{options:n||{modifiers:{}},instance:{target:t,host:i,arrow:void 0},offsets:{target:l,host:s,arrow:void 0},positionFixed:!1,placement:o,placementAuto:r}}function br(t){if(!qn(t.options,"preventOverflow"))return t;let i="transform",e=t.instance.target.style,{top:n,left:s,[i]:r}=e;e.top="",e.left="",e[i]="";let o=li(t.instance.target,t.instance.host,0,t.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);e.top=n,e.left=s,e[i]=r;let a=["left","right","top","bottom"],l={primary(c){let d=t.offsets.target[c];return(t.offsets.target[c]??0)<(o[c]??0)&&(d=Math.max(t.offsets.target[c]??0,o[c]??0)),{[c]:d}},secondary(c){let d=c==="right",m=d?"left":"top",b=d?"width":"height",E=t.offsets.target[m];return(t.offsets.target[c]??0)>(o[c]??0)&&(E=Math.min(t.offsets.target[m]??0,(o[c]??0)-t.offsets.target[b])),{[m]:E}}};return a.forEach(c=>{let d=["left","top","start"].indexOf(c)!==-1?l.primary:l.secondary;t.offsets.target=y(y({},t.offsets.target),d(c))}),t}function yr(t){let i=t.placement,e=i.split(" ")[0],n=i.split(" ")[1];if(n){let{host:s,target:r}=t.offsets,o=["bottom","top"].indexOf(e)!==-1,a=o?"left":"top",l=o?"width":"height",c={start:{[a]:s[a]},end:{[a]:(s[a]??0)+s[l]-r[l]}};t.offsets.target=H(y({},r),{[a]:a===n?c.start[a]:c.end[a]})}return t}var ni=class{position(i,e){return this.offset(i,e)}offset(i,e){return zn(e,i)}positionElements(i,e,n,s,r){let o=[_r,yr,br,gr],a=Pn[n],l=vr(e,i,a,r);if(l)return o.reduce((c,d)=>d(c),l)}},Cr=new ni;function Er(t,i,e,n,s,r){let o=Cr.positionElements(t,i,e,n,s);if(!o)return;let a=ur(o);Ln(i,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},r),o.instance.arrow&&Ln(o.instance.arrow,o.offsets.arrow,r),mr(o,r)}var Ye=(()=>{class t{constructor(e,n,s){this.update$$=new ne,this.positionElements=new Map,this.isDisabled=!1,ct(s)&&e.runOutsideAngular(()=>{this.triggerEvent$=Te(ue(window,"scroll",{passive:!0}),ue(window,"resize",{passive:!0}
1),Ci(0,nt),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(r=>{Er(Ft(r.target),Ft(r.element),r.attachment,r.appendToBody,this.options,n.createRenderer(null,null))})})})}position(e){this.addPositionElement(e)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(e){this.positionElements.set(Ft(e.element),e)}calcPosition(){this.update$$.next(null)}deletePositionElement(e){this.positionElements.delete(Ft(e))}setOptions(e){this.options=e}static{this.\u0275fac=function(n){return new(n||t)(A(X),A(ot),A(ve))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ft(t){return typeof t=="string"?document.querySelector(t):t instanceof v?t.nativeElement:t??null}var Se=class{constructor(i,e,n){this.nodes=i,this.viewRef=e,this.componentRef=n}},ci=class{constructor(i,e,n,s,r,o,a,l,c){this._viewContainerRef=i,this._renderer=e,this._elementRef=n,this._injector=s,this._componentFactoryResolver=r,this._ngZone=o,this._applicationRef=a,this._posService=l,this._document=c,this.onBeforeShow=new p,this.onShown=new p,this.onBeforeHide=new p,this.onHidden=new p,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return this._isHiding?!1:!!this._componentRef}attach(i){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(i),this}to(i){return this.container=i||this.container,this}position(i){return i?(this.attachment=i.attachment||this.attachment,this._elementRef=i.target||this._elementRef,this):this}provide(i){return this._providers.push(i),this}show(i={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(i.content,i.context,i.initialState);let e=Fe.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,i),this.container instanceof v&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),typeof this.container=="string"&&typeof this._document<"u"){let n=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!n)return;n.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(i.id?{id:i.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(i){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);let e=this._componentRef.location.nativeElement;return e.parentNode?.removeChild(e),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._componentRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(i?{id:i}:null),this}toggle(){if(this.isShown){this.hide();return}this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(i){this.triggers=i.triggers||this.triggers,this._listenOpts.outsideClick=i.outsideClick,this._listenOpts.outsideEsc=i.outsideEsc,i.target=i.target||this._elementRef?.
1nativeElement;let e=this._listenOpts.hide=()=>i.hide?i.hide():void this.hide(),n=this._listenOpts.show=r=>{i.show?i.show(r):this.show(r),r()},s=r=>{this.isShown?e():n(r)};return this._renderer&&(this._unregisterListenersFn=In(this._renderer,{target:i.target,triggers:i.triggers,show:n,hide:e,toggle:s})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(i,e){return i&&e&&(this._inlineViewRef=i.createEmbeddedView(e)),this}_registerOutsideClick(){if(!this._componentRef||!this._componentRef.location)return;let i=Function.prototype,e=Function.prototype;if(this._listenOpts.outsideClick){let n=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(i=Vn(this._renderer,{targets:[n,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}if(this._listenOpts.outsideEsc&&this._renderer&&this._elementRef){let n=this._componentRef.location.nativeElement;e=Mn(this._renderer,{targets:[n,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()})}this._globalListener=()=>{i(),e()}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:this.container==="body"})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(i,e,n){if(!i)return new Se([]);if(i instanceof _){if(this._viewContainerRef){let o=this._viewContainerRef.createEmbeddedView(i,e);return o.markForCheck(),new Se([o.rootNodes],o)}let r=i.createEmbeddedView({});return this._applicationRef.attachView(r),new Se([r.rootNodes],r)}if(typeof i=="function"){let r=this._componentFactoryResolver.resolveComponentFactory(i),o=Fe.create({providers:this._providers,parent:this._injector}),a=r.create(o);return Object.assign(a.instance,n),this._applicationRef.attachView(a.hostView),new Se([[a.location.nativeElement]],a.hostView,a)}let s=this._renderer?[this._renderer.createText(`${i}`)]:[];return new Se([s])}},Xe=(()=>{class t{constructor(e,n,s,r,o,a){this._componentFactoryResolver=e,this._ngZone=n,this._injector=s,this._posService=r,this._applicationRef=o,this._document=a}createLoader(e,n,s){return new ci(n,s,e,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static{this.\u0275fac=function(n){return new(n||t)(A(Vi),A(X),A(Fe),A(Ye),A(Oi),A(Ee))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Qn(t){return t!=null&&`${t}`!="false"}var ui;try{ui=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ui=!1}var Zn=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ct(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ui)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(n){return new(n||t)(A(ve))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Yn=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Ar(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=Sr(kr(e));if(n&&(Kn(n)===-1||!this.isVisible(n)))return!1;let s=e.nodeName.toLowerCase(),r=Kn(e);return e.hasAttribute("contenteditable")?r!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Or(e)?!1:s==="audio"?e.hasAttribute("controls")?r!==-1:!1:s==="video"?r===-1?!1:r!==null?!0:this._platform.FIRE
1FOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return xr(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(n){return new(n||t)(A(Zn))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Sr(t){try{return t.frameElement}catch{return null}}function Ar(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function Tr(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function Fr(t){return Vr(t)&&t.type=="hidden"}function Ir(t){return Mr(t)&&t.hasAttribute("href")}function Vr(t){return t.nodeName.toLowerCase()=="input"}function Mr(t){return t.nodeName.toLowerCase()=="a"}function Xn(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return i=="-32768"?!1:!!(i&&!isNaN(parseInt(i,10)))}function Kn(t){if(!Xn(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function Or(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function xr(t){return Fr(t)?!1:Tr(t)||Ir(t)||t.hasAttribute("contenteditable")||Xn(t)}function kr(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Nr=(()=>{class t{constructor(){this._focusTrapStack=[]}register(e){this._focusTrapStack=this._focusTrapStack.filter(s=>s!==e);let n=this._focusTrapStack;n.length&&n[n.length-1]._disable(),n.push(e),e._enable()}deregister(e){e._disable();let n=this._focusTrapStack,s=n.indexOf(e);s!==-1&&(n.splice(s,1),n.length&&n[n.length-1]._enable())}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var di=class{get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,e,n,s,r=!1){this._element=i,this._checker=e,this._ngZone=n,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.parentNode&&i.parentNode.removeChild(i)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement()))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${i}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${i}', use 'cdkFocusRegion${i}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute(`cdk-focus-region-${i}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${i}', use 'cdkFocusRegion${i}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(i.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",i),!this._checker.isFocusable(i)){let e=this._getFirstTabbableElement(i);return e?.focus(),!!e}return i.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){let i=this._getRegionBoundary("start");return i&&i.focus(),!!i}focusLastTabbableElement(){let i=this._getRegionBoundary("end");return i&&i.focus(),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children||i.childNodes;for(let n=0;n<e.length;n++){let s=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(s)return s}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children||i.childNodes;for(let n=e.length-1;n>=0;n--){let s=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(s)return s}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe(Ai(1)).subscribe(i)}},Rr=(()=>{class t{constructor(e,n,s){this._checker=e,this._ngZone=n,this._document=s}create(e,n=!1){return new di(e,this._checker,this._ngZone,this._document,n)}static{this.\u0275fac=function(n){return new(n||t)(A(Yn),A(X),A(Ee))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Jn=(()=>{class t{get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Qn(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Qn(e)}constructor(e,n,s){this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._autoCapture=!1,this._document=s,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}static{this.\u0275fac=function(n){return new(n||t)(u(v),u(Rr),u(Ee))}}static{this.\u0275dir=h({type:t,selectors:[["","focusTrap",""]],inputs:{enabled:[0,"cdkTrapFocus","enabled"],autoCapture:[0,"cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["focusTrap"],features:[x([Nr,Zn,Yn]),$]})}}return t})(),es=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=j({type:t})}static{this.\u0275inj=P({imports:[de]})}}return t})();var Br=["*"],ts=(()=>{class t{constructor(){this.hide=()=>{},this.setClass=()=>{}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();var is=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Vt={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{},closeInterceptor:void 0},Lr=new Z("override-default-config"),te={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",IN:"in",SHOW:"show"};var Mt={MODAL:300,BACKDROP:150},hi={BACKRDOP:"backdrop-click",ESC:"esc",BACK:"browser-back-navigation-clicked"},Pr=(()=>{class t{get isAnimated(){return this._isAnimated}set isAnimated(e){this._isAnimated=e}
1get isShown(){return this._isShown}set isShown(e){this._isShown=e,e?this.renderer.addClass(this.element.nativeElement,`${te.SHOW}`):this.renderer.removeClass(this.element.nativeElement,`${te.SHOW}`)}constructor(e,n){this._isAnimated=!1,this._isShown=!1,this.element=e,this.renderer=n}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,`${te.FADE}`),St.reflow(this.element.nativeElement)),this.isShown=!0}static{this.\u0275fac=function(n){return new(n||t)(u(v),u(Q))}}static{this.\u0275cmp=re({type:t,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(n,s){},encapsulation:2})}}return t})(),jr=1,fi=(()=>{class t{constructor(e,n,s){this.clf=n,this.modalDefaultOption=s,this.onShow=new p,this.onShown=new p,this.onHide=new p,this.onHidden=new p,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastHiddenId=null,this.loaders=[],this._focusEl=null,this._backdropLoader=this.clf.createLoader(),this._renderer=e.createRenderer(null,null),this.config=s?Object.assign({},Vt,s):Vt}show(e,n){this._focusEl=M.activeElement,this.modalsCount++,this.lastHiddenId=null,this._createLoaders();let s=n?.id||jr++;return this.config=this.modalDefaultOption?Object.assign({},Vt,this.modalDefaultOption,n):Object.assign({},Vt,n),this.config.id=s,this._showBackdrop(),this.lastDismissReason=void 0,this._showModal(e)}hide(e){this.lastHiddenId!==e&&(this.lastHiddenId=e,(this.modalsCount===1||e==null)&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&e!=null?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(e),this.removeLoaders(e)},this.config.animated?Mt.BACKDROP:0),this._focusEl&&this._focusEl.focus())}_showBackdrop(){let e=this.config.backdrop===!0||this.config.backdrop==="static",n=!this.backdropRef||!this.backdropRef.instance.isShown;this.modalsCount===1&&(this.removeBackdrop(),e&&n&&(this._backdropLoader.attach(Pr).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){if(!this.backdropRef)return;this.backdropRef.instance.isShown=!1;let e=this.config.animated?Mt.BACKDROP:0;setTimeout(()=>this.removeBackdrop(),e)}_showModal(e){let n=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(let o of this.config.providers)n.provide(o);let s=new ts,r=n.provide({provide:is,useValue:this.config}).provide({provide:ts,useValue:s}).attach(Hr).to("body");return s.hide=()=>r.instance?.hide(),s.setClass=o=>{r.instance&&(r.instance.config.class=o)},s.onHidden=new p,s.onHide=new p,this.copyEvent(n.onBeforeHide,s.onHide),this.copyEvent(n.onHidden,s.onHidden),r.show({content:e,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),r.instance&&(r.instance.level=this.getModalsCount(),s.content=n.getInnerComponent(),s.id=r.instance.config?.id),s}_hideModal(e){if(e!=null){let n=this.loaders.findIndex(r=>
1r.instance?.config.id===e),s=this.loaders[n];s&&s.hide(e)}else this.loaders.forEach(n=>{n.instance&&n.hide(n.instance.config.id)})}getModalsCount(){return this.modalsCount}setDismissReason(e){this.lastDismissReason=e}removeBackdrop(){this._renderer.removeClass(M.body,te.OPEN),this._renderer.setStyle(M.body,"overflow-y",""),this._backdropLoader.hide(),this.backdropRef=void 0}checkScrollbar(){this.isBodyOverflowing=M.body.clientWidth<window.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}setScrollbar(){M&&(this.originalBodyPadding=parseInt(window.getComputedStyle(M.body).getPropertyValue("padding-right")||"0",10),this.isBodyOverflowing&&(M.body.style.paddingRight=`${this.originalBodyPadding+this.scrollbarWidth}px`))}resetScrollbar(){M.body.style.paddingRight=`${this.originalBodyPadding}px`}getScrollbarWidth(){let e=this._renderer.createElement("div");this._renderer.addClass(e,te.SCROLLBAR_MEASURER),this._renderer.appendChild(M.body,e);let n=e.offsetWidth-e.clientWidth;return this._renderer.removeChild(M.body,e),n}_createLoaders(){let e=this.clf.createLoader();this.copyEvent(e.onBeforeShow,this.onShow),this.copyEvent(e.onShown,this.onShown),this.copyEvent(e.onBeforeHide,this.onHide),this.copyEvent(e.onHidden,this.onHidden),this.loaders.push(e)}removeLoaders(e){if(e!=null){let n=this.loaders.findIndex(s=>s.instance?.config.id===e);n>=0&&(this.loaders.splice(n,1),this.loaders.forEach((s,r)=>{s.instance&&(s.instance.level=r+1)}))}else this.loaders.splice(0,this.loaders.length)}copyEvent(e,n){e.subscribe(s=>{n.emit(this.lastDismissReason||s)})}static{this.\u0275fac=function(n){return new(n||t)(A(ot),A(Xe),A(Lr,8))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Hr=(()=>{class t{constructor(e,n,s){this._element=n,this._renderer=s,this.isShown=!1,this.isAnimated=!1,this._focusEl=null,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},e)}ngOnInit(){this._focusEl=M.activeElement,this.isAnimated&&this._renderer.addClass(this._element.nativeElement,te.FADE),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,te.SHOW)},this.isAnimated?Mt.BACKDROP:0),M&&M.body&&(this.bsModalService&&this.bsModalService.getModalsCount()===1&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(M.body,te.OPEN),this._renderer.setStyle(M.body,"overflow-y","hidden")),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(e){this.clickStartedInContent=e.target!==this._element.nativeElement}onClickStop(e){let n=e.target===this._element.nativeElement&&!this.clickStartedInContent;if(this.config.ignoreBackdropClick||this.config.backdrop==="static"||!n){this.clickStartedInContent=!1;return}this.bsModalService?.setDismissReason(hi.BACKRDOP),this.hide()}onPopState(){this.bsModalService?.setDismissReason(hi.BACK),this.hide()}onEsc(e){this.isShown&&((e.keyCode===27||e.key==="Escape")&&e.preventDefault(),this.config.keyboard&&this.level===this.bsModalService?.getModalsCount()&&(this.bsModalService?.setDismissReason(hi.ESC),this.hide()))}ngOnDestroy(){this.isShown&&this._hide()}hide(){if(!this.isModalHiding){if(this.config.closeInterceptor){this.config.closeInterceptor().then(()=>this._hide(),()=>{});return}this._hide()}}_hide(){this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,te.SHOW),setTimeout(()=>{this.isShown=!1,this.bsModalService?.hide(this.config.id),M&&M.body&&this.bsModalService?.getModalsCount()===0&&(this._renderer.removeClass(M.body,te.OPEN),this._renderer.setStyle(M.body,"overflow-y","")),this.bsModalService?.hide(this.config.id),this.isModalHiding=!1,this._focusEl&&this._focusEl.focus()},this.isAnimated?Mt.MODAL:0)}static{this.\u0275fac=function(n){return new(n||t)(u(is),u(v),u(Q))}}static{this.\u0275cmp=re({type:t,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(n,s){n&1&&L("mousedown",function(o){return s.onClickStarted(o)})("click",function(o){return s.onClickStop(o)})("popstate",function(){return s.onPopState()},!1,Nt)("keydown.esc",function(o){return s.onEsc(o)},!1,Nt),n&2&&J("aria-modal",!0)("aria-labelledby",s.config.ariaLabelledBy)("aria-describedby",s.config.ariaDescribedby)},features:[x([fi])],ngContentSelectors:Br,decls:3,vars:2,consts:[["role","document","focusTrap",""],[1,"modal-content"]],template:function(n,s){n&1&&(be(),S(0,"div",0)(1,"div",1),ye(2),I()()),n&2&&xi("modal-dialog"+(s.config.class?" "+s.config.class:""))},dependencies:[Jn],encapsulation:2})}}return t})();var pi=(()=>{class t{static forRoot(){return{ngModule:t,providers:[fi,Xe,Ye]}}static forChild(){return{ngModule:t,providers:[fi,Xe,Ye]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=j({type:t})}static{this.\u0275inj=P({imports:[es]})}}return t})();var Je=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=j({type:t});static \u0275inj=P({imports:[de]})};var Gr=["content"],Ur=["scroll"],$r=["padding"],rs=["*"],tt=t=>({searchTerm:t});function Wr(t,i){if(t&1&&(S(0,"div",3),at(1,6),I()),t&2){let e=f();g(),B("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",ke(2,tt,e.filterValue))}}function zr(t,i){if(t&1&&(S(0,"div",5),at(1,6),I()),t&2){let e=f();g(),B("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",ke(2,tt,e.filterValue))}}var qr=["searchInput"],Qr=["clearButton"],Kr=(t,i,e)=>({item:t,clear:i,label:e}),Zr=(t,i)=>({items:t,clear:i}),Yr=(t,i,e,n)=>
1({item:t,item$:i,index:e,searchTerm:n});function Xr(t,i){if(t&1&&(S(0,"div",19),oe(1),I()),t&2){let e=f(2);g(),xe(e.placeholder)}}function Jr(t,i){}function eo(t,i){if(t&1&&k(0,Xr,2,1,"ng-template",null,1,ae)(2,Jr,0,0,"ng-template",18),t&2){let e=Y(1),n=f();g(2),B("ngTemplateOutlet",n.placeholderTemplate||e)}}function to(t,i){if(t&1){let e=Oe();S(0,"span",22),L("click",function(){N(e);let s=f().$implicit,r=f(2);return R(r.unselect(s))}),oe(1,"\xD7"),I(),Me(2,"span",23)}if(t&2){let e=f().$implicit,n=f(2);g(2),B("ngItemLabel",e.label)("escape",n.escapeHTML)}}function io(t,i){}function no(t,i){if(t&1&&(S(0,"div",21),k(1,to,3,2,"ng-template",null,2,ae)(3,io,0,0,"ng-template",12),I()),t&2){let e=i.$implicit,n=Y(2),s=f(2);K("ng-value-disabled",e.disabled),g(3),B("ngTemplateOutlet",s.labelTemplate||n)("ngTemplateOutletContext",Pi(4,Kr,e.value,s.clearItem,e.label))}}function so(t,i){if(t&1&&Bt(0,no,4,8,"div",20,Rt().trackByOption,!0),t&2){let e=f();Lt(e.selectedItems)}}function ro(t,i){}function oo(t,i){if(t&1&&k(0,ro,0,0,"ng-template",12),t&2){let e=f();B("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",Li(2,Zr,e.selectedValues,e.clearItem))}}function ao(t,i){t&1&&Me(0,"div",24)}function lo(t,i){}function co(t,i){if(t&1&&k(0,ao,1,0,"ng-template",null,3,ae)(2,lo,0,0,"ng-template",18),t&2){let e=Y(1),n=f();g(2),B("ngTemplateOutlet",n.loadingSpinnerTemplate||e)}}function uo(t,i){if(t&1&&at(0,18),t&2){let e=f(2);B("ngTemplateOutlet",e.clearButtonTemplate)}}function ho(t,i){if(t&1&&(S(0,"span",25,4)(2,"span",26),oe(3,"\xD7"),I()()),t&2){let e=f(2);Ri("title",e.clearAllText),J("tabindex",e.tabFocusOnClearButton()?0:-1)}}function fo(t,i){if(t&1&&k(0,uo,1,1,"ng-container",18)(1,ho,4,2,"span",25),t&2){let e=f();z(e.clearButtonTemplate?0:1)}}function po(t,i){if(t&1&&Me(0,"span",31),t&2){let e=f().$implicit,n=f(2);B("ngItemLabel",e.label)("escape",n.escapeHTML)}}function mo(t,i){}function go(t,i){if(t&1){let e=Oe();S(0,"div",30),L("click",function(){let s=N(e).$implicit,r=f(2);return R(r.toggleItem(s))})("mouseover",function(){let s=N(e).$implicit,r=f(2);return R(r.onItemHover(s))}),k(1,po,1,2,"ng-template",null,5,ae)(3,mo,0,0,"ng-template",12),I()}if(t&2){let e=i.$implicit,n=Y(2),s=f(2);K("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===s.itemsList.markedItem),J("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",s.itemsList.filteredItems.length)("aria-posinset",e.index+1),g(3),B("ngTemplateOutlet",e.children?s.optgroupTemplate||n:s.optionTemplate||n)("ngTemplateOutletContext",ji(19,Yr,e.value,e,e.index,s.searchTerm))}}function _o(t,i){if(t&1&&(S(0,"span")(1,"span",33),oe(2),I(),oe(3),I()),t&2){let e=f(3);g(2),xe(e.addTagText),g(),Bi('"',e.searchTerm,'"')}}function vo(t,i){}function bo(t,i){if(t&1){let e=Oe();S(0,"div",32),L("mouseover",function(){N(e);let s=f(2);return R(s.itemsList.unmarkItem())})("click",function(){N(e);let s=f(2);return R(s.selectTag())}),k(1,_o,4,2,"ng-template",null,6,ae)(3,vo,0,0,"ng-template",12),I()}if(t&2){let e=Y(2),n=f(2);K("ng-option-marked",!n.itemsList.markedItem),g(3),B("ngTemplateOutlet",n.tagTemplate||e)("ngTemplateOutletContext",ke(4,tt,n.searchTerm))}}function yo(t,i){if(t&1&&(S(0,"div",34),oe(1),I()),t&2){let e=f(3);g(),xe(e.notFoundText)}}function Co(t,i){}function Eo(t,i){if(t&1&&k(0,yo,2,1,"ng-template",null,7,ae)(2,Co,0,0,"ng-template",12),t&2){let e=Y(1),n=f(2);g(2),B("ngTemplateOutlet",n.notFoundTemplate||e)("ngTemplateOutletContext",ke(2,tt,n.searchTerm))}}function wo(t,i){if(t&1&&(S(0,"div",34),oe(1),I()),t&2){let e=f(3);g(),xe(e.typeToSearchText)}}function Do(t,i){}function So(t,i){if(t&1&&k(0,wo,2,1,"ng-template",null,8,ae)(2,Do,0,0,"ng-template",18),t&2){let e=Y(1),n=f(2);g(2),B("ngTemplateOutlet",n.typeToSearchTemplate||e)}}function Ao(t,i){if(t&1&&(S(0,"div",34),oe(1),I()),t&2){let e=f(3);g(),xe(e.loadingText)}}function To(t,i){}function Fo(t,i){if(t&1&&k(0,Ao,2,1,"ng-template",null,9,ae)(2,To,0,0,"ng-template",12),t&2){let e=Y(1),n=f(2);g(2),B("ngTemplateOutlet",n.loadingTextTemplate||e)("ngTemplateOutletContext",ke(2,tt,n.searchTerm))}}function Io(t,i){if(t&1){let e=Oe();S(0,"ng-dropdown-panel",27),L("update",function(s){N(e);let r=f();return R(r.viewPortItems=s)})("scroll",function(s){N(e);let r=f();return R(r.scroll.emit(s))})("scrollToEnd",function(s){N(e);let r=f();return R(r.scrollToEnd.emit(s))})("outsideClick",function(){N(e);
1let s=f();return R(s.close())}),ki(1),Bt(2,go,4,24,"div",28,Rt().trackByOption,!0),k(4,bo,4,6,"div",29),Ni(),k(5,Eo,3,4)(6,So,3,1)(7,Fo,3,4),I()}if(t&2){let e=f();K("ng-select-multiple",e.multiple),B("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId),J("aria-label",e.ariaLabelDropdown),g(2),Lt(e.viewPortItems),g(2),z(e.showAddTag?4:-1),g(),z(e.showNoItemsFound()?5:-1),g(),z(e.showTypeToSearch()?6:-1),g(),z(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var os=/[&<>"']/g,Vo=RegExp(os.source),Mo={"&":"&","<":"<",">":">",'"':""","'":"'"};function Oo(t){return t&&Vo.test(t)?t.replace(os,i=>Mo[i]):t}function D(t){return t!=null}function et(t){return typeof t=="object"&&D(t)}function xo(t){return t instanceof Promise}function xt(t){return t instanceof Function}var ko=(()=>{class t{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?Oo(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(n){return new(n||t)(u(v))}}static{this.\u0275dir=h({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[$]})}}return t})(),No=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-option-tmp",""]]})}}return t})(),Ro=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-optgroup-tmp",""]]})}}return t})(),Bo=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-label-tmp",""]]})}}return t})(),Lo=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-multi-label-tmp",""]]})}}return t})(),Po=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-header-tmp",""]]})}}return t})(),jo=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-footer-tmp",""]]})}}return t})(),Ho=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-notfound-tmp",""]]})}}return t})(),Go=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-placeholder-tmp",""]]})}}return t})(),Uo=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-typetosearch-tmp",""]]})}}return t})(),$o=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-loadingtext-tmp",""]]})}}return t})(),Wo=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-tag-tmp",""]]})}}return t})(),zo=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-loadingspinner-tmp",""]]})}}return t})(),qo=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(u(_))}}static{this.\u0275dir=h({type:t,selectors:[["","ng-clearbutton-tmp",""]]})}}return t})();function as(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Qo={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24
1:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9
1:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function Ot(t){let i=e=>Qo[e]||e;
1return t.replace(/[^\u0000-\u007E]/g,i)}var mi=class{constructor(i,e){this._ngSelect=i,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let i=this.selectedItems.length-1;for(;i>=0;i--){let e=this.selectedItems[i];if(!e.disabled)return e}return null}setItems(i){this._items=i.map((e,n)=>this.mapItem(e,n)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(i){if(i.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(i,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(i)}unselect(i){i.selected&&(this._selectionModel.unselect(i,this._ngSelect.multiple),this._ngSelect.hideSelected&&D(i.index)&&this._ngSelect.multiple&&this._showSelected(i))}findItem(i){let e;return this._ngSelect.compareWith?e=n=>this._ngSelect.compareWith(n.value,i):this._ngSelect.bindValue?e=n=>!n.children&&this.resolveNested(n.value,this._ngSelect.bindValue)===i:e=n=>n.value===i||!n.children&&n.label&&n.label===this.resolveNested(i,this._ngSelect.bindLabel),this._items.find(n=>e(n))}addItem(i){let e=this.mapItem(i,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(i=!1){this._selectionModel.clear(i),this._items.forEach(e=>{e.selected=i&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(i){return i=Ot(i).toLocaleLowerCase(),this.filteredItems.find(e=>Ot(e.label).toLocaleLowerCase().substr(0,i.length)===i)}filter(i){if(!i){this.resetFilteredItems();return}this._filteredItems=[],i=this._ngSelect.searchFn?i:Ot(i).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,n=this._ngSelect.hideSelected;for(let s of Array.from(this._groups.keys())){let r=[];for(let o of this._groups.get(s)){if(n&&(o.parent&&o.parent.selected||o.selected))continue;let a=this._ngSelect.searchFn?o.value:o;e(i,a)&&r.push(o)}if(r.length>0){let[o]=r.slice(-1);if(o.parent){let a=this._items.find(l=>l===o.parent);this._filteredItems.push(a)}this._filteredItems.push(...r)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(i=>!i.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(i){this._markedIndex=this._filteredItems.indexOf(i)}markSelectedOrDefault(i){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=i?this.filteredItems.findIndex(n=>!n.disabled):-1}resolveNested(i,e){if(!et(i))return i;if(e.indexOf(".")===-1)return i[e];{let n=e.split("."),s=i;for(let r=0,o=n.length;r<o;++r){if(s==null)return null;s=s[n[r]]}return s}}mapItem(i,e){let n=D(i.$ngOptionLabel)?i.$ngOptionLabel:this.resolveNested(i,this._ngSelect.bindLabel),s=D(i.$ngOptionValue)?i.$ngOptionValue:i;return{index:e,label:D(n)?n.toString():"",value:s,disabled:i.disabled,htmlId:`${this._ngSelect.dropdownId}-${e}`}}mapSelectedItems(){let i=this._ngSelect.multiple;for(let e of this.selectedItems){let n=this._ngSelect.bindValue?this.resolveNested(e.value,this._ngSelect.bindValue):e.value,s=D(n)?this.findItem(n):null;this._selectionModel.unselect(e,i),this._selectionModel.select(s||e,i,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(i){if(this._filteredItems.push(i),i.parent){let e=i.parent;this._filteredItems.find(s=>s===e)||this._filteredItems.push(e)}else if(i.children)for(let e of i.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,n)=>e.index-n.index)]}_hideSelected(i){this._filteredItems=this._filteredItems.filter(e=>e!==i),i.parent?i.parent.children.every(n=>n.selected)&&(this._filteredItems=this._filteredItems.filter(n=>n!==i.parent)):i.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==i))}_defaultSearchFn(i,e){return Ot(e.label).toLocaleLowerCase().indexOf(i)>-1}_getNextItemIndex(i){return i>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(i){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(i),this.markedItem.disabled&&this._stepToItem(i))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let i=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&i<0?-1:Math.max(this.markedIndex,i)}_groupBy(i,e){let n=new Map;if(i.length===0)return n;if(Array.isArray(i[0].value[e])){for(let o of i){let a=(o.value[e]||[]).map((l,c)=>this.mapItem(l,c));n.set(o,a)}return n}let s=xt(this._ngSelect.groupBy),r=o=>{let a=s?e(o.value):o.value[e];return D(a)?a:void 0};for(let o of i){let a=r(o),l=n.get(a);l?l.push(o):n.set(a,[o])}return n}_flatten(i){let e=xt(this._ngSelect.groupBy),n=[];for(let s of Array.from(i.keys())){let r=n.length;if(s===void 0){let m=i.get(void 0)||[];n.push(...m.map(b=>(b.index=r++,b)));continue}let o=et(s),a={label:o?"":String(s),children:void 0,parent:null,index:r++,disabled:!this._ngSelect.selectableGroup,htmlId:as()},l=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,c=this._ngSelect.groupValue||(()=>o?s.value:{[l]:s}),d=i.get(s).map(m=>(m.parent=a,m.children=void 0,m.index=r++,m));
1a.children=d,a.value=c(s,d.map(m=>m.value)),n.push(a),n.push(...d)}return n}},ls=(()=>{class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,n,s){let r=this._dimensions,o=r.itemHeight*n,l=Math.max(0,e)/o*n,c=Math.min(n,Math.ceil(l)+(r.itemsPerViewport+1)),m=Math.max(0,c-r.itemsPerViewport),b=Math.min(m,Math.floor(l)),E=r.itemHeight*Math.ceil(b)-r.itemHeight*Math.min(b,s);return E=isNaN(E)?0:E,b=isNaN(b)?-1:b,c=isNaN(c)?-1:c,b-=s,b=Math.max(0,b),c+=s,c=Math.min(n,c),{topPadding:E,scrollHeight:o,start:b,end:c}}setDimensions(e,n){let s=Math.max(1,Math.floor(n/e));this._dimensions={itemHeight:e,panelHeight:n,itemsPerViewport:s}}getScrollTo(e,n,s){let{panelHeight:r}=this.dimensions,o=e+n,a=s,l=a+r;return r>=o&&s===e?null:o>l?a+o-l:e<=a?e:null}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})(),ns=["top","right","bottom","left"],Ko=typeof requestAnimationFrame<"u"?nt:bi,ss=(()=>{class t{constructor(e,n,s,r,o){this._renderer=e,this._zone=n,this._panelService=s,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new p,this.scroll=new p,this.scrollToEnd=new p,this.outsideClick=new p,this._destroy$=new ne,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:n}=this._panelService.dimensions,s=this.markedItem.index*e;return n>s?0:s}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let n=e.items;this._onItemsChange(n.currentValue,n.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,n=!1){if(!e)return;let s=this.items.indexOf(e);if(s<0||s>=this.itemsLength)return;let r;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(s*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),a=n?o.offsetTop:this._lastScrollPosition;r=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,a)}D(r)&&(this._scrollablePanel.scrollTop=r)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),ns.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){ns.forEach(s=>{let r=`ng-select-${s}`;this._renderer.removeClass(this._dropdown,r),this._renderer.removeClass(this._select,r)});let n=`ng-select-${e}`;this._renderer.addClass(this._dropdown,n),this._renderer.addClass(this._select,n)}_handleScroll(){this._zone.runOutsideAngular(()=>{ue(this.scrollElementRef.nativeElement,"scroll").pipe(ge(this._destroy$),Di(0,Ko)).subscribe(e=>{let n=e.path||e.composedPath&&e.composedPath();if(!n||n.length===0&&!e.target)return;let s=!n||n.length===0?e.target.scrollTop:n[0].scrollTop;this._onContentScrolled(s)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Te(ue(this._document,"touchstart",{capture:!0}),ue(this._document,"click",{capture:!0})).pipe(ge(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let n=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&n&&n[0]&&this._select.contains(n[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,n){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(n):(this._setVirtualHeight(),this._updateItems(n))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let n=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,n),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let n=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(n.scrollHeight),this._contentPanel.style.transform=`translateY(${n.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(n.start,n.end)),this.scroll.emit({start:n.start,end:n.end})}),D(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let s=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${s*this.itemsLength}px`;let r=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(s,r),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let n=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=n.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let n=this._select.getBoundingClientRect(),s=document.documentElement.scrollTop||document.body.scrollTop,r
1=n.top+window.pageYOffset,o=n.height,a=e.getBoundingClientRect().height;return r+o+a>s+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo):document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),n=this._parent.getBoundingClientRect(),s=e.left-n.left;this._dropdown.style.left=s+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),n=this._parent.getBoundingClientRect(),s=e.height;if(this._currentPosition==="top"){let r=n.bottom-e.bottom;this._dropdown.style.bottom=r+s+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let r=e.top-n.top;this._dropdown.style.top=r+s+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{ue(this._dropdown,"mousedown").pipe(ge(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(n){return new(n||t)(u(Q),u(X),u(ls),u(v),u(Ee,8))}}static{this.\u0275cmp=re({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(n,s){if(n&1&&(Ce(Gr,7,v),Ce(Ur,7,v),Ce($r,7,v)),n&2){let r;T(r=F())&&(s.contentElementRef=r.first),T(r=F())&&(s.scrollElementRef=r.first),T(r=F())&&(s.paddingElementRef=r.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",w],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[$],ngContentSelectors:rs,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,s){n&1&&(be(),k(0,Wr,2,4,"div",3),S(1,"div",4,0),Me(3,"div",null,1),S(5,"div",null,2),ye(7),I()(),k(8,zr,2,4,"div",5)),n&2&&(z(s.headerTemplate?0:-1),g(3),K("total-padding",s.virtualScroll),g(2),K("scrollable-content",s.virtualScroll&&s.items.length),g(3),z(s.footerTemplate?8:-1))},dependencies:[jt],encapsulation:2,changeDetection:0})}}return t})(),Zo=(()=>{class t{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new ne}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static{this.\u0275fac=function(n){return new(n||t)(u(v))}}static{this.\u0275cmp=re({type:t,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",w]},features:[$],ngContentSelectors:rs,decls:1,vars:0,template:function(n,s){n&1&&(be(),ye(0))},encapsulation:2,changeDetection:0})}}return t})(),ie=function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t}(ie||{});function cs(){return new gi}var gi=class{constructor(){this._selected=[]}get value(){return this._selected}select(i,e,n){if(i.selected=!0,(!i.children||!e&&n)&&this._selected.push(i),e)if(i.parent){let s=i.parent.children.length,r=i.parent.children.filter(o=>o.selected).length;i.parent.selected=s===r}else i.children&&(this._setChildrenSelectedState(i.children,!0),this._removeChildren(i),n&&this._activeChildren(i)?this._selected=[...this._selected.filter(s=>s.parent!==i),i]:this._selected=[...this._selected,...i.children.filter(s=>!s.disabled)])}unselect(i,e){if(this._selected=this._selected.filter(n=>n!==i),i.selected=!1,e)if(i.parent&&i.parent.selected){let n=i.parent.children;this._removeParent(i.parent),this._removeChildren(i.parent),this._selected.push(...n.filter(s=>s!==i&&!s.disabled)),i.parent.selected=!1}else i.children&&(this._setChildrenSelectedState(i.children,!1),this._removeChildren(i))}clear(i){this._selected=i?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(i,e){for(let n of i)n.disabled||(n.selected=e)}_removeChildren(i){this._selected=[...this._selected.filter(e=>e.parent!==i),...i.children.filter(e=>e.parent===i&&e.disabled&&e.selected)]}_removeParent(i){this._selected=this._selected.filter(e=>e!==i)}_activeChildren(i){return i.children.every(e=>!e.disabled||e.selected)}},Yo=(()=>{class t{constructor(){this.fixedPlaceholder=!1,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xo=(()=>{class t{warn(e){console.warn(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),us=new Z("ng-select-selection-model"),ec=(()=>{class t{constructor(e,n,s,r,o,a,l){this.classes=e,this.autoFocus=n,this.config=s,this._cd=a,this._console=l,this.ariaLabelDropdown="Options List",this.markFirst=!0,this.fixedPlaceholder=!1,this.preventToggleOnRightClick=!1,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.tabFocusOnClearButton=Ii(!0,{transform:w}),this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=ne
1w p,this.focusEvent=new p,this.changeEvent=new p,this.openEvent=new p,this.closeEvent=new p,this.searchEvent=new p,this.clearEvent=new p,this.addEvent=new p,this.removeEvent=new p,this.scroll=new p,this.scrollToEnd=new p,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=as(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new ne,this._keyPress$=new ne,this._items=[],this.keyDownFn=c=>!0,this.clearItem=c=>{let d=this.selectedItems.find(m=>m.value===c);this.unselect(d)},this.trackByOption=(c,d)=>this.trackByFn?this.trackByFn(d.value):d,this._onChange=c=>{},this._onTouched=()=>{},this._mergeGlobalConfig(s),this.itemsList=new mi(this,r?r():cs()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!xt(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return D(this._clearSearchOnAdd)?this._clearSearchOnAdd:D(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return D(this._deselectOnClick)?this._deselectOnClick:D(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(n=>n.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(n=>n.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm?.trim();return e&&e.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=D(e.isOpen.currentValue)),e.groupBy&&(e.items||this._setItems([...this.items])),e.inputAttrs&&this._setInputAttributes()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),D(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){let n=e.key;if(Object.values(ie).includes(n)){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else n&&n.length===1&&this._keyPress$.next(n.toLocaleLowerCase())}handleKeyCode(e){let n=e.target;this.clearButton&&this.clearButton.nativeElement===n?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.key){case ie.ArrowDown:this._handleArrowDown(e);break;case ie.ArrowUp:this._handleArrowUp(e);break;case ie.Space:this._handleSpace(e);break;case ie.Enter:this._handleEnter(e);break;case ie.Tab:this._handleTab(e);break;case ie.Esc:this.close(),e.preventDefault();break;case ie.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.key){case ie.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let n=e.target;if(n.tagName!=="INPUT"&&e.preventDefault(),n.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(n.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}n.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value),this._onSelectionChanged())}selectTag(){let e;xt(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let n=s=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(s,null):this.itemsList.addItem(s);xo(e)?e.then(s=>this.select(n(s))).catch(()=>{}):e&&this.select(n(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._val
1idTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(n=>n.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems?.[0];this.searchTerm=e?.label??null}_setItems(e){let n=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=D(n)?!et(n):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&D(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=s=>{this.items=s.map(r=>({$ngOptionValue:r.value,$ngOptionLabel:r.elementRef.nativeElement.innerHTML,disabled:r.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},n=()=>{let s=Te(this.ngOptions.changes,this._destroy$);Te(...this.ngOptions.map(r=>r.stateChange$)).pipe(ge(s)).subscribe(r=>{let o=this.itemsList.findItem(r.value);o.disabled=r.disabled,o.label=r.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Ti(this.ngOptions),ge(this._destroy$)).subscribe(s=>{this.bindLabel=this._defaultLabel,e(s),n()})}_isValidWriteValue(e){if(!D(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let n=s=>!D(this.compareWith)&&et(s)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(s)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(s=>n(s)):(this._console.warn("Multiple select ngModel should be array."),!1):n(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let n=s=>{let r=this.itemsList.findItem(s);if(r)this.itemsList.select(r);else{let o=et(s),a=!o&&!this.bindValue;o||a?this.itemsList.select(this.itemsList.mapItem(s,null)):this.bindValue&&(r={[this.bindLabel]:null,[this.bindValue]:s},this.itemsList.select(this.itemsList.mapItem(r,null)))}};this.multiple?e.forEach(s=>n(s)):n(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(ge(this._destroy$),Fi(e=>this._pressedKeys.push(e)),Si(200),wi(()=>this._pressedKeys.length>0),st(()=>this._pressedKeys.join(""))).subscribe(e=>{let n=this.itemsList.findByLabel(e);n&&(this.isOpen?(this.itemsList.markItem(n),this._scrollToMarked(),this._cd.markForCheck()):this.select(n)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,n=y({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let s of Object.keys(n))e.setAttribute(s,n[s])}_updateNgModel(){let e=[];for(let s of this.selectedItems)if(this.bindValue){let r=null;if(s.children){let o=this.groupValue?this.bindValue:this.groupBy;r=s.value[o||this.groupBy]}else r=this.itemsList.resolveNested(s.value,this.bindValue);e.push(r)}else e.push(s.value);let n=this.selectedItems.map(s=>s.value);this.multiple?(this._onChange(e),this.changeEvent.emit(n)):(this._onChange(D(e[0])?e[0]:null),this.changeEvent.emit(n[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey&&this.tabFocusOnClearButton())this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let n=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(n<0||n===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=this.getVirtualScroll(e),this.openOnEnter=D(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.a
1ppendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}getVirtualScroll(e){return D(this.virtualScroll)?this.virtualScroll:this.isVirtualScrollDisabled(e)}isVirtualScrollDisabled(e){return D(e.disableVirtualScroll)?!e.disableVirtualScroll:!1}static{this.\u0275fac=function(n){return new(n||t)(kt("class"),kt("autofocus"),u(Yo),u(us,8),u(v),u(lt),u(Xo))}}static{this.\u0275cmp=re({type:t,selectors:[["ng-select"]],contentQueries:function(n,s,r){if(n&1&&(U(r,No,5,_),U(r,Ro,5,_),U(r,Bo,5,_),U(r,Lo,5,_),U(r,Po,5,_),U(r,jo,5,_),U(r,Ho,5,_),U(r,Go,5,_),U(r,Uo,5,_),U(r,$o,5,_),U(r,Wo,5,_),U(r,zo,5,_),U(r,qo,5,_),U(r,Zo,5)),n&2){let o;T(o=F())&&(s.optionTemplate=o.first),T(o=F())&&(s.optgroupTemplate=o.first),T(o=F())&&(s.labelTemplate=o.first),T(o=F())&&(s.multiLabelTemplate=o.first),T(o=F())&&(s.headerTemplate=o.first),T(o=F())&&(s.footerTemplate=o.first),T(o=F())&&(s.notFoundTemplate=o.first),T(o=F())&&(s.placeholderTemplate=o.first),T(o=F())&&(s.typeToSearchTemplate=o.first),T(o=F())&&(s.loadingTextTemplate=o.first),T(o=F())&&(s.tagTemplate=o.first),T(o=F())&&(s.loadingSpinnerTemplate=o.first),T(o=F())&&(s.clearButtonTemplate=o.first),T(o=F())&&(s.ngOptions=o)}},viewQuery:function(n,s){if(n&1&&(Ce(ss,5),Ce(qr,7),Ce(Qr,5)),n&2){let r;T(r=F())&&(s.dropdownPanel=r.first),T(r=F())&&(s.searchInput=r.first),T(r=F())&&(s.clearButton=r.first)}},hostVars:20,hostBindings:function(n,s){n&1&&L("keydown",function(o){return s.handleKeyDown(o)}),n&2&&K("ng-select-typeahead",s.typeahead)("ng-select-multiple",s.multiple)("ng-select-taggable",s.addTag)("ng-select-searchable",s.searchable)("ng-select-clearable",s.clearable)("ng-select-opened",s.isOpen)("ng-select",s.useDefaultClass)("ng-select-filtered",s.filtered)("ng-select-single",s.single)("ng-select-disabled",s.disabled)},inputs:{ariaLabelDropdown:"ariaLabelDropdown",bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",w],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",w],closeOnSelect:[2,"closeOnSelect","closeOnSelect",w],hideSelected:[2,"hideSelected","hideSelected",w],selectOnTab:[2,"selectOnTab","selectOnTab",w],openOnEnter:[2,"openOnEnter","openOnEnter",w],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",Ge],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",Ge],virtualScroll:[2,"virtualScroll","virtualScroll",w],selectableGroup:[2,"selectableGroup","selectableGroup",w],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",w],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",w],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",Ge],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],readonly:[2,"readonly","readonly",w],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",w],minTermLength:[2,"minTermLength","minTermLength",Ge],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",w],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",w],addTag:"addTag",searchable:[2,"searchable","searchable",w],clearable:[2,"clearable","clearable",w],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[x([{provide:ee,useExisting:G(()=>t),multi:!0},ls]),$],decls:13,vars:19,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(n,s){if(n&1){let r=Oe();S(0,"div",10),L("mousedown",function(a){return N(r),R(s.handleMousedown(a))}),S(1,"div",11),k(2,eo,3,1)(3,so,2,0)(4,oo,1,5,null,12),S(5,"div",13)(6,"input",14,0),L("blur",function(a){return N(r),R(s.onInputBlur(a))})("change",function(a){return N(r),R(a.stopPropagation())})("compositionend",function(){N(r);let a=Y(7);return R(s.onCompositionEnd(a.value))})("compositionstart",function(){return N(r),R(s.onCompositionStart())})("focus",function(a){return N(r),R(s.onInputFocus(a))})("input",function(){N(r);let a=Y(7);return R(s.filter(a.value))}),I()()(),k(8,co,3,1)(9,fo,2,1),S(10,"span",15),Me(11,"span",16),I()(),k(12,Io,8,18,"ng-dropdown-panel",17)}if(n&2){let r;K("ng-appearance-outline",s.appearance==="outline")("ng-has-value",s.hasValue),g(2),z(s.selectedItems.length===0&&!s.searchTerm||s.fixedPlaceholder?2:-1),g(),z((!s.multiLabelTemplate||!s.multiple)&&s.selectedItems.length>0?3:-1),g(),z(s.multiple&&s.multiLabelTemplate&&s.selectedValues.length>0?4:-1),g(2),B("disabled",s.disabled)("readOnly",!s.searchable||s.itemsList.maxItemsSelected)("value",(r=s.searchTerm)!==null&&r!==void 0?r:""),J("aria-activedescendant",s.isOpen?s.itemsList==null||s.itemsList.markedItem==null?null:s.itemsList.markedItem.htmlId:null)("aria-controls",s.isOpen?s.dropdownId:null)("aria-expanded",s.isOpen)("aria-label",s.ariaLabel)("id",s.labelForId)("tabindex",s.tabIndex),g(2),z(s.loading?8:-1),g(),z(s.showClear()?9:-1),g(3),z(s.isOpen?12:-1)}},dependencies:[jt,ko,ss,Gi],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}
1.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}
1 2`],encapsulation:2,changeDetection:0})}}return t})(),_i=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=j({type:t})}static{this.\u0275inj=P({providers:[{provide:us,useValue:cs}]})}}return t})();var ds=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=j({type:t});static \u0275inj=P({imports:[de,Tn,Jt,Xt,pi.forRoot(),Je,_i,Jt,Xt,pi,Je,_i]})};export{tr as a,He as b,Wa as c,za as d,si as e,Ye as f,ee as g,fs as h,en as i,je as j,Ui as k,ga as l,_a as m,Rs as n,Ps as o,ba as p,Hs as q,Us as r,wn as s,ya as t,Ca as u,Sn as v,Ys as w,Ea as x,Xe as y,ts as z,fi as A,Js as B,Oa as C,Tn as D,No as E,Bo as F,ec as G,ds as H};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.