-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path5131.0f98134d7d0d5034.js
1 lines (1 loc) · 79.1 KB
/
5131.0f98134d7d0d5034.js
1
"use strict";(self.webpackChunkmaterial_angular_io=self.webpackChunkmaterial_angular_io||[]).push([[5131],{5131:(Tt,$,g)=>{g.r($),g.d($,{CdkListboxActivedescendantExample:()=>Le,CdkListboxCompareWithExample:()=>H,CdkListboxCustomNavigationExample:()=>pe,CdkListboxCustomTypeaheadExample:()=>R,CdkListboxDisabledExample:()=>he,CdkListboxFormsValidationExample:()=>ge,CdkListboxHorizontalExample:()=>me,CdkListboxMultipleExample:()=>q,CdkListboxOverviewExample:()=>P,CdkListboxReactiveFormsExample:()=>fe,CdkListboxTemplateFormsExample:()=>_e,CdkListboxValueBindingExample:()=>be});var t=g(5879),v=g(6814),we=g(4300),m=g(6028),O=g(2495),Q=g(8337),A=g(2079),V=g(4917),X=g(7354),T=g(3075),Te=g(5222),ee=g(6124),Z=g(9352),L=g(7734),h=g(6223),te=g(9388);let f=0;class D extends Q.Ov{constructor(d=!1,s,l=!0,p){super(!0,s,l,p),this.multiple=d}isMultipleSelection(){return this.multiple}select(...d){return this.multiple?super.select(...d):super.setSelection(...d)}}let x=(()=>{class a{constructor(){this._generatedId="cdk-option-"+f++,this._disabled=!1,this.element=(0,t.f3M)(t.SBq).nativeElement,this.listbox=(0,t.f3M)(C),this.destroyed=new A.xQ,this._clicked=new A.xQ}get id(){return this._id||this._generatedId}set id(s){this._id=s}get disabled(){return this.listbox.disabled||this._disabled}set disabled(s){this._disabled=(0,O.Ig)(s)}get enabledTabIndex(){return void 0===this._enabledTabIndex?this.listbox.enabledTabIndex:this._enabledTabIndex}set enabledTabIndex(s){this._enabledTabIndex=s}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}isSelected(){return this.listbox.isSelected(this)}isActive(){return this.listbox.isActive(this)}toggle(){this.listbox.toggle(this)}select(){this.listbox.select(this)}deselect(){this.listbox.deselect(this)}focus(){this.element.focus()}getLabel(){return(this.typeaheadLabel??this.element.textContent?.trim())||""}setActiveStyles(){}setInactiveStyles(){}_handleFocus(){this.listbox.useActiveDescendant&&(this.listbox._setActiveOption(this),this.listbox.focus())}_getTabIndex(){return this.listbox.useActiveDescendant||this.disabled?-1:this.isActive()?this.enabledTabIndex:-1}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275dir=t.lG2({type:a,selectors:[["","cdkOption",""]],hostAttrs:["role","option",1,"cdk-option"],hostVars:6,hostBindings:function(s,l){1&s&&t.NdJ("click",function(c){return l._clicked.next(c)})("focus",function(){return l._handleFocus()}),2&s&&(t.Ikx("id",l.id),t.uIk("aria-selected",l.isSelected())("tabindex",l._getTabIndex())("aria-disabled",l.disabled),t.ekj("cdk-option-active",l.isActive()))},inputs:{id:"id",value:["cdkOption","value"],typeaheadLabel:["cdkOptionTypeaheadLabel","typeaheadLabel"],disabled:["cdkOptionDisabled","disabled"],enabledTabIndex:["tabindex","enabledTabIndex"]},exportAs:["cdkOption"],standalone:!0}),a})(),C=(()=>{class a{constructor(){this._generatedId="cdk-listbox-"+f++,this._disabled=!1,this._useActiveDescendant=!1,this._orientation="vertical",this._navigationWrapDisabled=!1,this._navigateDisabledOptions=!1,this.valueChange=new A.xQ,this.selectionModel=new D,this.destroyed=new A.xQ,this.element=(0,t.f3M)(t.SBq).nativeElement,this.changeDetectorRef=(0,t.f3M)(t.sBO),this._invalid=!1,this._lastTriggered=null,this._onTouched=()=>{},this._onChange=()=>{},this._optionClicked=(0,V.P)(()=>this.options.changes.pipe((0,T.O)(this.options),(0,Te.w)(s=>(0,X.T)(...s.map(l=>l._clicked.pipe((0,ee.U)(p=>({option:l,event:p})))))))),this._dir=(0,t.f3M)(te.Is,{optional:!0}),this._skipDisabledPredicate=s=>s.disabled,this._skipNonePredicate=()=>!1,this._hasFocus=!1}get id(){return this._id||this._generatedId}set id(s){this._id=s}get enabledTabIndex(){return void 0===this._enabledTabIndex?0:this._enabledTabIndex}set enabledTabIndex(s){this._enabledTabIndex=s}get value(){return this._invalid?[]:this.selectionModel.selected}set value(s){this._setSelection(s)}get multiple(){return this.selectionModel.multiple}set multiple(s){this.selectionModel.multiple=(0,O.Ig)(s),this.options&&this._updateInternalValue()}get disabled(){return this._disabled}set disabled(s){this._disabled=(0,O.Ig)(s)}get useActiveDescendant(){return this._useActiveDescendant}set useActiveDescendant(s){this._useActiveDescendant=(0,O.Ig)(s)}get orientation(){return this._orientation}set orientation(s){this._orientation="horizontal"===s?"horizontal":"vertical","horizontal"===s?this.listKeyManager?.withHorizontalOrientation(this._dir?.value||"ltr"):this.listKeyManager?.withVerticalOrientation()}get compareWith(){return this.selectionModel.compareWith}set compareWith(s){this.selectionModel.compareWith=s}get navigationWrapDisabled(){return this._navigationWrapDisabled}set navigationWrapDisabled(s){this._navigationWrapDisabled=(0,O.Ig)(s),this.listKeyManager?.withWrap(!this._navigationWrapDisabled)}get navigateDisabledOptions(){return this._navigateDisabledOptions}set navigateDisabledOptions(s){this._navigateDisabledOptions=(0,O.Ig)(s),this.listKeyManager?.skipPredicate(this._navigateDisabledOptions?this._skipNonePredicate:this._skipDisabledPredicate)}ngAfterContentInit(){this._initKeyManager(),(0,X.T)(this.selectionModel.changed,this.options.changes).pipe((0,T.O)(null),(0,Z.R)(this.destroyed)).subscribe(()=>this._updateInternalValue()),this._optionClicked.pipe((0,L.h)(({option:s})=>!s.disabled),(0,Z.R)(this.destroyed)).subscribe(({option:s,event:l})=>this._handleOptionClicked(s,l))}ngOnDestroy(){this.listKeyManager?.destroy(),this.destroyed.next(),this.destroyed.complete()}toggle(s){this.toggleValue(s.value)}toggleValue(s){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.toggle(s)}select(s){this.selectValue(s.value)}selectValue(s){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.select(s)}deselect(s){this.deselectValue(s.value)}deselectValue(s){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.deselect(s)}setAllSelected(s){s?(this._invalid&&this.selectionModel.clear(!1),this.selectionModel.select(...this.options.map(l=>l.value))):this.selectionModel.clear()}isSelected(s){return this.isValueSelected(s.value)}isActive(s){return this.listKeyManager?.activeItem===s}isValueSelected(s){return!this._invalid&&this.selectionModel.isSelected(s)}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}writeValue(s){this._setSelection(s),this._verifyOptionValues()}setDisabledState(s){this.disabled=s}focus(){this.element.focus()}triggerOption(s){s&&!s.disabled&&(this._lastTriggered=s,(this.multiple?this.selectionModel.toggle(s.value):this.selectionModel.select(s.value))&&(this._onChange(this.value),this.valueChange.next({value:this.value,listbox:this,option:s})))}triggerRange(s,l,p,c){if(this.disabled||s&&s.disabled)return;this._lastTriggered=s;const _=this.compareWith??Object.is,y=[...this.options].slice(Math.max(0,Math.min(l,p)),Math.min(this.options.length,Math.max(l,p)+1)).filter(k=>!k.disabled).map(k=>k.value),M=[...this.value];for(const k of y){const j=M.findIndex(et=>_(et,k));c&&-1===j?M.push(k):!c&&-1!==j&&M.splice(j,1)}this.selectionModel.setSelection(...M)&&(this._onChange(this.value),this.valueChange.next({value:this.value,listbox:this,option:s}))}_setActiveOption(s){this.listKeyManager.setActiveItem(s)}_handleFocus(){this.useActiveDescendant||(this.selectionModel.selected.length>0?this._setNextFocusToSelectedOption():this.listKeyManager.setNextItemActive(),this._focusActiveOption())}_handleKeydown(s){if(this._disabled)return;const{keyCode:l}=s,p=this.listKeyManager.activeItemIndex,c=["ctrlKey","metaKey"];if(this.multiple&&l===m.A&&(0,m.Vb)(s,...c))return this.triggerRange(null,0,this.options.length-1,this.options.length!==this.value.length),void s.preventDefault();if(this.multiple&&(l===m.L_||l===m.K5)&&(0,m.Vb)(s,"shiftKey"))return this.listKeyManager.activeItem&&null!=this.listKeyManager.activeItemIndex&&this.triggerRange(this.listKeyManager.activeItem,this._getLastTriggeredIndex()??this.listKeyManager.activeItemIndex,this.listKeyManager.activeItemIndex,!this.listKeyManager.activeItem.isSelected()),void s.preventDefault();if(this.multiple&&l===m.Sd&&(0,m.Vb)(s,...c)&&(0,m.Vb)(s,"shiftKey")){const y=this.listKeyManager.activeItem;if(y){const M=this.listKeyManager.activeItemIndex;this.listKeyManager.setFirstItemActive(),this.triggerRange(y,M,this.listKeyManager.activeItemIndex,!y.isSelected())}return void s.preventDefault()}if(this.multiple&&l===m.uR&&(0,m.Vb)(s,...c)&&(0,m.Vb)(s,"shiftKey")){const y=this.listKeyManager.activeItem;if(y){const M=this.listKeyManager.activeItemIndex;this.listKeyManager.setLastItemActive(),this.triggerRange(y,M,this.listKeyManager.activeItemIndex,!y.isSelected())}return void s.preventDefault()}if(l===m.L_||l===m.K5)return this.triggerOption(this.listKeyManager.activeItem),void s.preventDefault();const _=l===m.LH||l===m.JH||l===m.oh||l===m.SV||l===m.Sd||l===m.uR;this.listKeyManager.onKeydown(s),_&&s.shiftKey&&p!==this.listKeyManager.activeItemIndex&&this.triggerOption(this.listKeyManager.activeItem)}_handleFocusIn(){this._hasFocus=!0}_handleFocusOut(s){const l=s.relatedTarget;this.element!==l&&!this.element.contains(l)&&(this._onTouched(),this._hasFocus=!1,this._setNextFocusToSelectedOption())}_getAriaActiveDescendant(){return this._useActiveDescendant?this.listKeyManager?.activeItem?.id:null}_getTabIndex(){return this.disabled?-1:this.useActiveDescendant||!this.listKeyManager.activeItem?this.enabledTabIndex:-1}_initKeyManager(){this.listKeyManager=new we.s1(this.options).withWrap(!this._navigationWrapDisabled).withTypeAhead().withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._navigateDisabledOptions?this._skipNonePredicate:this._skipDisabledPredicate),"vertical"===this.orientation?this.listKeyManager.withVerticalOrientation():this.listKeyManager.withHorizontalOrientation(this._dir?.value||"ltr"),this.selectionModel.selected.length&&Promise.resolve().then(()=>this._setNextFocusToSelectedOption()),this.listKeyManager.change.subscribe(()=>this._focusActiveOption())}_focusActiveOption(){this.useActiveDescendant||this.listKeyManager.activeItem?.focus(),this.changeDetectorRef.markForCheck()}_setSelection(s){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.setSelection(...this._coerceValue(s)),this._hasFocus||this._setNextFocusToSelectedOption()}_setNextFocusToSelectedOption(){const s=this.options?.find(l=>l.isSelected());s&&this.listKeyManager.updateActiveItem(s)}_updateInternalValue(){const s=new Map;this.selectionModel.sort((p,c)=>this._getIndexForValue(s,p)-this._getIndexForValue(s,c));const l=this.selectionModel.selected;this._invalid=!this.multiple&&l.length>1||!!this._getInvalidOptionValues(l).length,this.changeDetectorRef.markForCheck()}_getIndexForValue(s,l){const p=this.compareWith||Object.is;if(!s.has(l)){let c=-1;for(let _=0;_<this.options.length;_++)if(p(l,this.options.get(_).value)){c=_;break}s.set(l,c)}return s.get(l)}_handleOptionClicked(s,l){l.preventDefault(),this.listKeyManager.setActiveItem(s),l.shiftKey&&this.multiple?this.triggerRange(s,this._getLastTriggeredIndex()??this.listKeyManager.activeItemIndex,this.listKeyManager.activeItemIndex,!s.isSelected()):this.triggerOption(s)}_verifyNoOptionValueCollisions(){this.options.changes.pipe((0,T.O)(this.options),(0,Z.R)(this.destroyed)).subscribe(()=>{const s=this.compareWith??Object.is;for(let l=0;l<this.options.length;l++){const p=this.options.get(l);let c=null;for(let _=l+1;_<this.options.length;_++){const y=this.options.get(_);if(s(p.value,y.value)){c=y;break}}if(c)return void(this.compareWith?console.warn("Found multiple CdkOption representing the same value under the given compareWith function",{option1:p.element,option2:c.element,compareWith:this.compareWith}):console.warn("Found multiple CdkOption with the same value",{option1:p.element,option2:c.element}))}})}_verifyOptionValues(){}_coerceValue(s){return null==s?[]:(0,O.Eq)(s)}_getInvalidOptionValues(s){const l=this.compareWith||Object.is,p=(this.options||[]).map(c=>c.value);return s.filter(c=>!p.some(_=>l(c,_)))}_getLastTriggeredIndex(){const s=this.options.toArray().indexOf(this._lastTriggered);return-1===s?null:s}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275dir=t.lG2({type:a,selectors:[["","cdkListbox",""]],contentQueries:function(s,l,p){if(1&s&&t.Suo(p,x,5),2&s){let c;t.iGM(c=t.CRH())&&(l.options=c)}},hostAttrs:["role","listbox",1,"cdk-listbox"],hostVars:6,hostBindings:function(s,l){1&s&&t.NdJ("focus",function(){return l._handleFocus()})("keydown",function(c){return l._handleKeydown(c)})("focusout",function(c){return l._handleFocusOut(c)})("focusin",function(){return l._handleFocusIn()}),2&s&&(t.Ikx("id",l.id),t.uIk("tabindex",l._getTabIndex())("aria-disabled",l.disabled)("aria-multiselectable",l.multiple)("aria-activedescendant",l._getAriaActiveDescendant())("aria-orientation",l.orientation))},inputs:{id:"id",enabledTabIndex:["tabindex","enabledTabIndex"],value:["cdkListboxValue","value"],multiple:["cdkListboxMultiple","multiple"],disabled:["cdkListboxDisabled","disabled"],useActiveDescendant:["cdkListboxUseActiveDescendant","useActiveDescendant"],orientation:["cdkListboxOrientation","orientation"],compareWith:["cdkListboxCompareWith","compareWith"],navigationWrapDisabled:["cdkListboxNavigationWrapDisabled","navigationWrapDisabled"],navigateDisabledOptions:["cdkListboxNavigatesDisabledOptions","navigateDisabledOptions"]},outputs:{valueChange:"cdkListboxValueChange"},exportAs:["cdkListbox"],standalone:!0,features:[t._Bn([{provide:h.JU,useExisting:(0,t.Gpc)(()=>a),multi:!0}])]}),a})();function ne(a,d){if(1&a&&(t.TgZ(0,"li",4),t._uU(1),t.qZA()),2&a){const s=d.$implicit;t.Q6J("cdkOption",s),t.xp6(1),t.hij(" ",s," ")}}function ie(a,d){if(1&a&&(t.TgZ(0,"li",5),t._uU(1),t.qZA()),2&a){const s=d.$implicit,l=t.oxw();t.Q6J("cdkOption",s),t.xp6(1),t.hij(" ",l.formatTime(s)," ")}}function oe(a,d){if(1&a&&(t.TgZ(0,"p"),t._uU(1," Your appointment is scheduled for "),t.TgZ(2,"strong"),t._uU(3),t.ALo(4,"json"),t.qZA(),t._uU(5,"\xa0\n"),t.qZA()),2&a){const s=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,1,s.formatAppointment()))}}const E='.example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected=\'true\'][_ngcontent-%COMP%]::before {\n content: \'\';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"/></svg>\'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}';function se(a,d){if(1&a&&(t.TgZ(0,"li",6),t._uU(1),t.qZA()),2&a){const s=d.$implicit;t.Q6J("cdkOption",s),t.xp6(1),t.hij(" ",s," ")}}function re(a,d){if(1&a&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&a){const s=d.$implicit;t.xp6(1),t.Oqu(s)}}function I(a,d){if(1&a&&(t.TgZ(0,"div",7),t.YNc(1,re,2,1,"p",8),t.qZA()),2&a){const s=t.oxw();t.xp6(1),t.Q6J("ngForOf",s.getErrors())}}function ae(a,d){if(1&a&&(t.TgZ(0,"li",3),t._uU(1),t.qZA()),2&a){const s=d.$implicit;t.Q6J("cdkOption",s),t.xp6(1),t.hij(" ",s," ")}}function le(a,d){if(1&a&&(t.TgZ(0,"li",5),t._uU(1),t.qZA()),2&a){const s=d.$implicit;t.Q6J("cdkOption",s),t.xp6(1),t.hij(" ",s," ")}}function de(a,d){if(1&a&&(t.TgZ(0,"li",5),t._uU(1),t.qZA()),2&a){const s=d.$implicit;t.Q6J("cdkOption",s),t.xp6(1),t.hij(" ",s," ")}}function ue(a,d){if(1&a&&(t.TgZ(0,"li",5),t._uU(1),t.qZA()),2&a){const s=d.$implicit;t.Q6J("cdkOption",s),t.xp6(1),t.hij(" ",s," ")}}let Le=(()=>{class a{constructor(){this.features=["Hydrodynamic","Port & Starboard Attachments","Turbo Drive"]}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-activedescendant-example"]],exportAs:["cdkListboxActivedescendantExample"],standalone:!0,features:[t.jDz],decls:5,vars:1,consts:[[1,"example-listbox-container"],["id","example-spatula-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxMultiple","","cdkListboxUseActiveDescendant","","aria-labelledby","example-spatula-label",1,"example-listbox"],["class","example-option",3,"cdkOption",4,"ngFor","ngForOf"],[1,"example-option",3,"cdkOption"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2," Spatula Features "),t.qZA(),t.TgZ(3,"ul",2),t.YNc(4,ne,2,2,"li",3),t.qZA()()),2&s&&(t.xp6(4),t.Q6J("ngForOf",l.features))},dependencies:[C,v.ax,x],styles:['.example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected=\'true\'][_ngcontent-%COMP%]::before {\n content: \'\';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"/></svg>\'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-listbox[_ngcontent-%COMP%]:focus .cdk-option-active[_ngcontent-%COMP%] {\n background: rgba(0, 0, 0, 0.2);\n}']}),a})();const F=new Date,ce=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"numeric"});let H=(()=>{class a{constructor(){this.slots=[12,13,14,15].map(s=>new Date(F.getFullYear(),F.getMonth(),F.getDate()+1,s)),this.appointment=[new Date(F.getFullYear(),F.getMonth(),F.getDate()+1,14)]}compareDate(s,l){return s.getTime()===l.getTime()}formatTime(s){return ce.format(s)}formatAppointment(){return this.appointment.map(s=>this.formatTime(s))}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-compare-with-example"]],exportAs:["cdkListboxCompareWithExample"],standalone:!0,features:[t.jDz],decls:6,vars:4,consts:[[1,"example-listbox-container"],["id","example-appointment-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-appointment-label",1,"example-listbox",3,"cdkListboxValue","cdkListboxCompareWith","cdkListboxValueChange"],["class","example-option",3,"cdkOption",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"example-option",3,"cdkOption"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2," Appointment Time "),t.qZA(),t.TgZ(3,"ul",2),t.NdJ("cdkListboxValueChange",function(c){return l.appointment=c.value}),t.YNc(4,ie,2,2,"li",3),t.qZA()(),t.YNc(5,oe,6,3,"p",4)),2&s&&(t.xp6(3),t.Q6J("cdkListboxValue",l.appointment)("cdkListboxCompareWith",l.compareDate),t.xp6(1),t.Q6J("ngForOf",l.slots),t.xp6(1),t.Q6J("ngIf",l.appointment[0]))},dependencies:[C,v.ax,x,v.O5,v.Ts],styles:['.example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected=\'true\'][_ngcontent-%COMP%]::before {\n content: \'\';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"/></svg>\'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}']}),a})(),pe=(()=>{class a{}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-custom-navigation-example"]],exportAs:["cdkListboxCustomNavigationExample"],standalone:!0,features:[t.jDz],decls:12,vars:0,consts:[[1,"example-listbox-container"],["id","example-flavor-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxNavigatesDisabledOptions","","cdkListboxNavigationWrapDisabled","","aria-labelledby","example-flavor-label",1,"example-listbox"],["cdkOption","chocolate",1,"example-option"],["cdkOption","pumpkin-spice","cdkOptionDisabled","",1,"example-option"],["cdkOption","strawberry",1,"example-option"],["cdkOption","vanilla",1,"example-option"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2," Flavor "),t.qZA(),t.TgZ(3,"ul",2)(4,"li",3),t._uU(5," Chocolate "),t.qZA(),t.TgZ(6,"li",4),t._uU(7," Pumpkin Spice (seasonal) "),t.qZA(),t.TgZ(8,"li",5),t._uU(9," Strawberry "),t.qZA(),t.TgZ(10,"li",6),t._uU(11," Vanilla "),t.qZA()()())},dependencies:[C,x],styles:[".example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected='true'][_ngcontent-%COMP%]::before {\n content: '';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" width=\"24\"><path d=\"m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z\"/></svg>'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[aria-disabled='true'][_ngcontent-%COMP%] {\n opacity: 0.5;\n}\n\n.example-option[aria-disabled='false'][_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}"]}),a})(),R=(()=>{class a{}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-custom-typeahead-example"]],exportAs:["cdkListboxCustomTypeaheadExample"],standalone:!0,features:[t.jDz],decls:10,vars:3,consts:[[1,"example-listbox-container"],["id","example-satisfaction-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-satisfaction-label",1,"example-listbox"],["cdkOptionTypeaheadLabel","great",1,"example-option",3,"cdkOption"],["cdkOptionTypeaheadLabel","okay",1,"example-option",3,"cdkOption"],["cdkOptionTypeaheadLabel","bad",1,"example-option",3,"cdkOption"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2," How was your service? "),t.qZA(),t.TgZ(3,"ul",2)(4,"li",3),t._uU(5," \u{1f600} Great "),t.qZA(),t.TgZ(6,"li",4),t._uU(7," \u{1f610} Okay "),t.qZA(),t.TgZ(8,"li",5),t._uU(9," \u{1f641} Bad "),t.qZA()()()),2&s&&(t.xp6(4),t.Q6J("cdkOption",1),t.xp6(2),t.Q6J("cdkOption",0),t.xp6(2),t.Q6J("cdkOption",-1))},dependencies:[C,x],styles:[E]}),a})(),he=(()=>{class a{constructor(){this.canDrinkCtrl=new h.NI(!1)}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-disabled-example"]],exportAs:["cdkListboxDisabledExample"],standalone:!0,features:[t.jDz],decls:21,vars:4,consts:[["type","checkbox","id","can-drink",3,"formControl"],["for","can-drink"],[1,"example-listbox-container"],["id","example-wine-type-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-wine-type-label",1,"example-listbox",3,"cdkListboxDisabled"],["cdkOption","cabernet",1,"example-option"],["cdkOption","syrah",1,"example-option"],["cdkOption","zinfandel","cdkOptionDisabled","",1,"example-option"],[1,"example-sold-out"],["cdkOption","riesling",1,"example-option"]],template:function(s,l){1&s&&(t.TgZ(0,"form")(1,"p"),t._UZ(2,"input",0),t._uU(3,"\xa0 "),t.TgZ(4,"label",1),t._uU(5,"I am 21 or older"),t.qZA()(),t.TgZ(6,"section")(7,"div",2)(8,"label",3),t._uU(9," Wine Selection "),t.qZA(),t.TgZ(10,"ul",4)(11,"li",5),t._uU(12," Cabernet Sauvignon "),t.qZA(),t.TgZ(13,"li",6),t._uU(14," Syrah "),t.qZA(),t.TgZ(15,"li",7),t._uU(16," Zinfandel "),t.TgZ(17,"span",8),t._uU(18,"(sold out)"),t.qZA()(),t.TgZ(19,"li",9),t._uU(20," Riesling "),t.qZA()()()()()),2&s&&(t.xp6(2),t.Q6J("formControl",l.canDrinkCtrl),t.xp6(5),t.ekj("example-disabled",!l.canDrinkCtrl.value),t.xp6(3),t.Q6J("cdkListboxDisabled",!l.canDrinkCtrl.value))},dependencies:[h.u5,h._Y,h.Wl,h.JJ,h.JL,h.F,h.UX,h.oH,C,x],styles:[".example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-disabled[_ngcontent-%COMP%] {\n border-color: rgba(0, 0, 0, 0.5);\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-disabled[_ngcontent-%COMP%] .example-listbox-label[_ngcontent-%COMP%] {\n opacity: 0.5;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected='true'][_ngcontent-%COMP%]::before {\n content: '';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" width=\"24\"><path d=\"m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z\"/></svg>'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[aria-disabled='true'][_ngcontent-%COMP%] {\n opacity: 0.5;\n}\n\n.example-option[aria-disabled='false'][_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}\n\n.example-sold-out[_ngcontent-%COMP%] {\n color: red;\n font-size: 0.75em;\n vertical-align: super;\n}"]}),a})(),ge=(()=>{class a{constructor(){this.signs=["Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"],this.signCtrl=new h.NI([],h.kI.required),this.invalid=this.signCtrl.valueChanges.pipe((0,ee.U)(()=>this.signCtrl.touched&&!this.signCtrl.valid))}getErrors(){const s=[];if(this.signCtrl.hasError("required")&&s.push("You must enter your zodiac sign"),this.signCtrl.hasError("cdkListboxUnexpectedMultipleValues")&&s.push("You can only select one zodiac sign"),this.signCtrl.hasError("cdkListboxUnexpectedOptionValues")){const l=this.signCtrl.getError("cdkListboxUnexpectedOptionValues").values;s.push(`You entered an invalid zodiac sign: ${l[0]}`)}return s.length?s:null}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-forms-validation-example"]],exportAs:["cdkListboxFormsValidationExample"],standalone:!0,features:[t.jDz],decls:25,vars:12,consts:[[1,"example-listbox-container"],["id","example-zodiac-sign-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-zodiac-sign-label",1,"example-listbox",3,"formControl"],["class","example-option",3,"cdkOption",4,"ngFor","ngForOf"],["class","example-listbox-errors",4,"ngIf"],[3,"click"],[1,"example-option",3,"cdkOption"],[1,"example-listbox-errors"],[4,"ngFor","ngForOf"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"label",1),t._uU(3," Zodiac Sign "),t.qZA(),t.TgZ(4,"ul",2),t.YNc(5,se,2,2,"li",3),t.qZA()(),t.YNc(6,I,2,1,"div",4),t.ALo(7,"async"),t.TgZ(8,"p"),t._uU(9," Your zodiac sign is: "),t.TgZ(10,"strong"),t._uU(11),t.ALo(12,"json"),t.qZA(),t._uU(13,"\xa0 "),t.TgZ(14,"button",5),t.NdJ("click",function(){return l.signCtrl.setValue(["Cat"])}),t._uU(15,"Set: Cat"),t.qZA(),t._uU(16,"\xa0 "),t.TgZ(17,"button",5),t.NdJ("click",function(){return l.signCtrl.setValue(["Dragon","Snake"])}),t._uU(18,"Set: Dragon, Snake"),t.qZA(),t._uU(19,"\xa0 "),t.TgZ(20,"button",5),t.NdJ("click",function(){return l.signCtrl.setValue(["Cat","Rat"])}),t._uU(21,"Set: Cat, Rat"),t.qZA(),t._uU(22,"\xa0 "),t.TgZ(23,"button",5),t.NdJ("click",function(){return l.signCtrl.setValue([])}),t._uU(24,"Clear"),t.qZA()()),2&s&&(t.ekj("example-listbox-invalid",t.lcZ(1,6,l.invalid)),t.xp6(4),t.Q6J("formControl",l.signCtrl),t.xp6(1),t.Q6J("ngForOf",l.signs),t.xp6(1),t.Q6J("ngIf",t.lcZ(7,8,l.invalid)),t.xp6(5),t.Oqu(t.lcZ(12,10,l.signCtrl.value)))},dependencies:[C,h.u5,h.JJ,h.UX,h.oH,v.ax,x,v.O5,v.Ov,v.Ts],styles:['.example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-invalid[_ngcontent-%COMP%] {\n border-color: red;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox-invalid[_ngcontent-%COMP%] .example-listbox-label[_ngcontent-%COMP%] {\n color: red;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n height: 200px;\n overflow: auto;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected=\'true\'][_ngcontent-%COMP%]::before {\n content: \'\';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"/></svg>\'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}\n\n.example-listbox-errors[_ngcontent-%COMP%] {\n color: red;\n}']}),a})(),me=(()=>{class a{constructor(){this.sizes=["XS","S","M","L","XL"]}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-horizontal-example"]],exportAs:["cdkListboxhorizontalExample"],standalone:!0,features:[t.jDz],decls:4,vars:1,consts:[["id","example-shirt-size-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxOrientation","horizontal","aria-labelledby","example-shirt-size-label",1,"example-listbox"],["class","example-option",3,"cdkOption",4,"ngFor","ngForOf"],[1,"example-option",3,"cdkOption"]],template:function(s,l){1&s&&(t.TgZ(0,"label",0),t._uU(1," Shirt Size\n"),t.qZA(),t.TgZ(2,"ul",1),t.YNc(3,ae,2,2,"li",2),t.qZA()),2&s&&(t.xp6(3),t.Q6J("ngForOf",l.sizes))},dependencies:[C,v.ax,x],styles:[".example-listbox[_ngcontent-%COMP%] {\n display: flex;\n width: 250px;\n padding: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n position: relative;\n list-style: none;\n padding: 12px;\n border: solid black;\n border-width: 1px 1px 1px 0;\n}\n\n.example-option[_ngcontent-%COMP%]:first-child {\n border-left-width: 1px;\n}\n\n.example-option[aria-selected='true'][_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n border: 2px solid black;\n top: 3px;\n bottom: 3px;\n left: 3px;\n right: 3px;\n}\n\n.example-option[_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}"]}),a})(),q=(()=>{class a{}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-multiple-example"]],exportAs:["cdkListboxMultipleExample"],standalone:!0,features:[t.jDz],decls:12,vars:0,consts:[[1,"example-listbox-container"],["id","example-fav-cuisine-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxMultiple","","aria-labelledby","example-fav-cuisine-label",1,"example-listbox"],["cdkOption","chinese",1,"example-option"],["cdkOption","french",1,"example-option"],["cdkOption","italian",1,"example-option"],["cdkOption","japanese",1,"example-option"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2," Favorite cuisines "),t.qZA(),t.TgZ(3,"ul",2)(4,"li",3),t._uU(5,"Chinese"),t.qZA(),t.TgZ(6,"li",4),t._uU(7,"French"),t.qZA(),t.TgZ(8,"li",5),t._uU(9,"Italian"),t.qZA(),t.TgZ(10,"li",6),t._uU(11,"Japanese"),t.qZA()()())},dependencies:[C,x],styles:[E]}),a})(),P=(()=>{class a{}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-overview-example"]],exportAs:["cdkListboxOverviewExample"],standalone:!0,features:[t.jDz],decls:10,vars:0,consts:[[1,"example-listbox-container"],["id","example-fav-color-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-fav-color-label",1,"example-listbox"],["cdkOption","red",1,"example-option"],["cdkOption","green",1,"example-option"],["cdkOption","blue",1,"example-option"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2," Favorite color "),t.qZA(),t.TgZ(3,"ul",2)(4,"li",3),t._uU(5,"Red"),t.qZA(),t.TgZ(6,"li",4),t._uU(7,"Green"),t.qZA(),t.TgZ(8,"li",5),t._uU(9,"Blue"),t.qZA()()())},dependencies:[C,x],styles:[E]}),a})(),fe=(()=>{class a{constructor(){this.languages=["C++","Java","JavaScript","Python","TypeScript"],this.languageCtrl=new h.NI(["TypeScript"])}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-reactive-forms-example"]],exportAs:["cdkListboxReactiveFormsExample"],standalone:!0,features:[t.jDz],decls:13,vars:5,consts:[[1,"example-listbox-container"],["id","example-language-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-language-label",1,"example-listbox",3,"formControl"],["class","example-option",3,"cdkOption",4,"ngFor","ngForOf"],[3,"click"],[1,"example-option",3,"cdkOption"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2," Preferred Language "),t.qZA(),t.TgZ(3,"ul",2),t.YNc(4,le,2,2,"li",3),t.qZA()(),t.TgZ(5,"p"),t._uU(6," Your preferred language: "),t.TgZ(7,"strong"),t._uU(8),t.ALo(9,"json"),t.qZA(),t._uU(10,"\xa0 "),t.TgZ(11,"button",4),t.NdJ("click",function(){return l.languageCtrl.reset()}),t._uU(12,"Reset"),t.qZA()()),2&s&&(t.xp6(3),t.Q6J("formControl",l.languageCtrl),t.xp6(1),t.Q6J("ngForOf",l.languages),t.xp6(4),t.Oqu(t.lcZ(9,3,l.languageCtrl.value)))},dependencies:[C,h.u5,h.JJ,h.UX,h.oH,v.ax,x,v.Ts],styles:[E]}),a})(),_e=(()=>{class a{constructor(){this.toppings=["Extra Cheese","Mushrooms","Pepperoni","Sausage"],this.order=[]}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-template-forms-example"]],exportAs:["cdkListboxTemplateFormsExample"],standalone:!0,features:[t.jDz],decls:13,vars:5,consts:[[1,"example-listbox-container"],["id","example-toppings-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxMultiple","","aria-labelledby","example-toppings-label",1,"example-listbox",3,"ngModel","ngModelChange"],["class","example-option",3,"cdkOption",4,"ngFor","ngForOf"],[3,"click"],[1,"example-option",3,"cdkOption"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2," Choose Toppings "),t.qZA(),t.TgZ(3,"ul",2),t.NdJ("ngModelChange",function(c){return l.order=c}),t.YNc(4,de,2,2,"li",3),t.qZA()(),t.TgZ(5,"p"),t._uU(6," Your order: "),t.TgZ(7,"strong"),t._uU(8),t.ALo(9,"json"),t.qZA(),t._uU(10,"\xa0 "),t.TgZ(11,"button",4),t.NdJ("click",function(){return l.order=[]}),t._uU(12,"Reset"),t.qZA()()),2&s&&(t.xp6(3),t.Q6J("ngModel",l.order),t.xp6(1),t.Q6J("ngForOf",l.toppings),t.xp6(4),t.Oqu(t.lcZ(9,3,l.order)))},dependencies:[C,h.u5,h.JJ,h.On,v.ax,x,v.Ts],styles:[E]}),a})(),be=(()=>{class a{constructor(){this.starters=["Sprigatito","Fuecoco","Quaxly"],this.starter=["Fuecoco"]}reset(){this.starter=["Fuecoco"]}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cdk-listbox-value-binding-example"]],exportAs:["cdkListboxValueBindingExample"],standalone:!0,features:[t.jDz],decls:13,vars:5,consts:[[1,"example-listbox-container"],["id","example-starter-pokemon-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-starter-pokemon-label",1,"example-listbox",3,"cdkListboxValue","cdkListboxValueChange"],["class","example-option",3,"cdkOption",4,"ngFor","ngForOf"],[3,"click"],[1,"example-option",3,"cdkOption"]],template:function(s,l){1&s&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2," Starter Pokemon "),t.qZA(),t.TgZ(3,"ul",2),t.NdJ("cdkListboxValueChange",function(c){return l.starter=c.value}),t.YNc(4,ue,2,2,"li",3),t.qZA()(),t.TgZ(5,"p"),t._uU(6," Your starter pokemon is "),t.TgZ(7,"strong"),t._uU(8),t.ALo(9,"json"),t.qZA(),t._uU(10,"\xa0 "),t.TgZ(11,"button",4),t.NdJ("click",function(){return l.reset()}),t._uU(12,"Reset"),t.qZA()()),2&s&&(t.xp6(3),t.Q6J("cdkListboxValue",l.starter),t.xp6(1),t.Q6J("ngForOf",l.starters),t.xp6(4),t.Oqu(t.lcZ(9,3,l.starter)))},dependencies:[C,v.ax,x,v.Ts],styles:[E]}),a})()},6223:(Tt,$,g)=>{g.d($,{Cf:()=>f,EJ:()=>Oe,F:()=>De,Fj:()=>L,JJ:()=>c,JL:()=>_,JU:()=>V,Kr:()=>yt,NI:()=>U,On:()=>He,Q7:()=>Ee,UX:()=>bn,Wl:()=>T,YN:()=>bt,Zs:()=>$e,_Y:()=>ht,a5:()=>d,cw:()=>B,eT:()=>qe,gN:()=>a,kI:()=>C,oH:()=>We,qu:()=>fn,sg:()=>ke,u:()=>Je,u5:()=>_n,wV:()=>Re});var t=g(5879),v=g(6814),we=g(5253),m=g(7504),O=g(6124);let Q=(()=>{class i{constructor(e,o){this._renderer=e,this._elementRef=o,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,o){this._renderer.setProperty(this._elementRef.nativeElement,e,o)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.Qsj),t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i}),i})(),A=(()=>{class i extends Q{}return i.\u0275fac=function(){let n;return function(o){return(n||(n=t.n5z(i)))(o||i)}}(),i.\u0275dir=t.lG2({type:i,features:[t.qOj]}),i})();const V=new t.OlP("NgValueAccessor"),X={provide:V,useExisting:(0,t.Gpc)(()=>T),multi:!0};let T=(()=>{class i extends A{writeValue(e){this.setProperty("checked",e)}}return i.\u0275fac=function(){let n;return function(o){return(n||(n=t.n5z(i)))(o||i)}}(),i.\u0275dir=t.lG2({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,o){1&e&&t.NdJ("change",function(u){return o.onChange(u.target.checked)})("blur",function(){return o.onTouched()})},features:[t._Bn([X]),t.qOj]}),i})();const Te={provide:V,useExisting:(0,t.Gpc)(()=>L),multi:!0},Z=new t.OlP("CompositionEventMode");let L=(()=>{class i extends Q{constructor(e,o,r){super(e,o),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ee(){const i=(0,v.q)()?(0,v.q)().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_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)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(Z,8))},i.\u0275dir=t.lG2({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,o){1&e&&t.NdJ("input",function(u){return o._handleInput(u.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(u){return o._compositionEnd(u.target.value)})},features:[t._Bn([Te]),t.qOj]}),i})();function h(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function te(i){return null!=i&&"number"==typeof i.length}const f=new t.OlP("NgValidators"),D=new t.OlP("NgAsyncValidators"),x=/^(?=.{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])?)*$/;class C{static min(n){return function Se(i){return n=>{if(h(n.value)||h(i))return null;const e=parseFloat(n.value);return!isNaN(e)&&e<i?{min:{min:i,actual:n.value}}:null}}(n)}static max(n){return function Ne(i){return n=>{if(h(n.value)||h(i))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>i?{max:{max:i,actual:n.value}}:null}}(n)}static required(n){return ne(n)}static requiredTrue(n){return ie(n)}static email(n){return function oe(i){return h(i.value)||x.test(i.value)?null:{email:!0}}(n)}static minLength(n){return function E(i){return n=>h(n.value)||!te(n.value)?null:n.value.length<i?{minlength:{requiredLength:i,actualLength:n.value.length}}:null}(n)}static maxLength(n){return function se(i){return n=>te(n.value)&&n.value.length>i?{maxlength:{requiredLength:i,actualLength:n.value.length}}:null}(n)}static pattern(n){return function re(i){if(!i)return I;let n,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),n=new RegExp(e)):(e=i.toString(),n=i),o=>{if(h(o.value))return null;const r=o.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return ce(n)}static composeAsync(n){return pe(n)}}function ne(i){return h(i.value)?{required:!0}:null}function ie(i){return!0===i.value?null:{required:!0}}function I(i){return null}function ae(i){return null!=i}function le(i){return(0,t.QGY)(i)?(0,we.D)(i):i}function de(i){let n={};return i.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function ue(i,n){return n.map(e=>e(i))}function F(i){return i.map(n=>function Le(i){return!i.validate}(n)?n:e=>n.validate(e))}function ce(i){if(!i)return null;const n=i.filter(ae);return 0==n.length?null:function(e){return de(ue(e,n))}}function H(i){return null!=i?ce(F(i)):null}function pe(i){if(!i)return null;const n=i.filter(ae);return 0==n.length?null:function(e){const o=ue(e,n).map(le);return(0,m.D)(o).pipe((0,O.U)(de))}}function R(i){return null!=i?pe(F(i)):null}function he(i,n){return null===i?[n]:Array.isArray(i)?[...i,n]:[i,n]}function ge(i){return i._rawValidators}function me(i){return i._rawAsyncValidators}function q(i){return i?Array.isArray(i)?i:[i]:[]}function P(i,n){return Array.isArray(i)?i.includes(n):i===n}function fe(i,n){const e=q(n);return q(i).forEach(r=>{P(e,r)||e.push(r)}),e}function _e(i,n){return q(n).filter(e=>!P(i,e))}class be{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=H(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=R(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class a extends be{get formDirective(){return null}get path(){return null}}class d extends be{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class s{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let c=(()=>{class i extends s{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d,2))},i.\u0275dir=t.lG2({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,o){2&e&&t.ekj("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[t.qOj]}),i})(),_=(()=>{class i extends s{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(a,10))},i.\u0275dir=t.lG2({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,o){2&e&&t.ekj("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[t.qOj]}),i})();const W="VALID",ve="INVALID",G="PENDING",z="DISABLED";function Ie(i){return(ye(i)?i.validators:i)||null}function Pe(i,n){return(ye(n)?n.asyncValidators:i)||null}function ye(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function nt(i,n,e){const o=i.controls;if(!(n?Object.keys(o):o).length)throw new t.vHH(1e3,"");if(!o[e])throw new t.vHH(1001,"")}function it(i,n,e){i._forEachChild((o,r)=>{if(void 0===e[r])throw new t.vHH(1002,"")})}class xe{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===W}get invalid(){return this.status===ve}get pending(){return this.status==G}get disabled(){return this.status===z}get enabled(){return this.status!==z}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(fe(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(fe(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(_e(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(_e(n,this._rawAsyncValidators))}hasValidator(n){return P(this._rawValidators,n)}hasAsyncValidator(n){return P(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=G,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=z,this.errors=null,this._forEachChild(o=>{o.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=W,this._forEachChild(o=>{o.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(o=>o(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===W||this.status===G)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?z:W}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=G,this._hasOwnPendingAsyncValidator=!0;const e=le(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(o=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(o,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((o,r)=>o&&o._find(r),this)}getError(n,e){const o=e?this.get(e):this;return o&&o.errors?o.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?z:this.errors?ve:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(G)?G:this._anyControlsHaveStatus(ve)?ve:W}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){ye(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Nt(i){return Array.isArray(i)?H(i):i||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function Lt(i){return Array.isArray(i)?R(i):i||null}(this._rawAsyncValidators)}}class B extends xe{constructor(n,e,o){super(Ie(e),Pe(o,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,o={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,o={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){it(this,0,n),Object.keys(n).forEach(o=>{nt(this,!0,o),this.controls[o].setValue(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(o=>{const r=this.controls[o];r&&r.patchValue(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((o,r)=>{o.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,o)=>(n[o]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,o)=>!!o._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const o=this.controls[e];o&&n(o,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,o]of Object.entries(this.controls))if(this.contains(e)&&n(o))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,o,r)=>((o.enabled||this.disabled)&&(e[r]=o.value),e))}_reduceChildren(n,e){let o=n;return this._forEachChild((r,u)=>{o=e(o,r,u)}),o}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class ot extends B{}const S=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Y}),Y="always";function Ce(i,n){return[...n.path,i]}function J(i,n,e=Y){Ge(i,n),n.valueAccessor.writeValue(i.value),(i.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(i.disabled),function Pt(i,n){n.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&st(i,n)})}(i,n),function Bt(i,n){const e=(o,r)=>{n.valueAccessor.writeValue(o),r&&n.viewToModelUpdate(o)};i.registerOnChange(e),n._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,n),function Gt(i,n){n.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&st(i,n),"submit"!==i.updateOn&&i.markAsTouched()})}(i,n),function It(i,n){if(n.valueAccessor.setDisabledState){const e=o=>{n.valueAccessor.setDisabledState(o)};i.registerOnDisabledChange(e),n._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,n)}function Ve(i,n,e=!0){const o=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(o),n.valueAccessor.registerOnTouched(o)),Ae(i,n),i&&(n._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Me(i,n){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Ge(i,n){const e=ge(i);null!==n.validator?i.setValidators(he(e,n.validator)):"function"==typeof e&&i.setValidators([e]);const o=me(i);null!==n.asyncValidator?i.setAsyncValidators(he(o,n.asyncValidator)):"function"==typeof o&&i.setAsyncValidators([o]);const r=()=>i.updateValueAndValidity();Me(n._rawValidators,r),Me(n._rawAsyncValidators,r)}function Ae(i,n){let e=!1;if(null!==i){if(null!==n.validator){const r=ge(i);if(Array.isArray(r)&&r.length>0){const u=r.filter(b=>b!==n.validator);u.length!==r.length&&(e=!0,i.setValidators(u))}}if(null!==n.asyncValidator){const r=me(i);if(Array.isArray(r)&&r.length>0){const u=r.filter(b=>b!==n.asyncValidator);u.length!==r.length&&(e=!0,i.setAsyncValidators(u))}}}const o=()=>{};return Me(n._rawValidators,o),Me(n._rawAsyncValidators,o),e}function st(i,n){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function rt(i,n){Ge(i,n)}function Ue(i,n){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function at(i,n){i._syncPendingControls(),n.forEach(e=>{const o=e.control;"submit"===o.updateOn&&o._pendingChange&&(e.viewToModelUpdate(o._pendingValue),o._pendingChange=!1)})}function Ze(i,n){if(!n)return null;let e,o,r;return Array.isArray(n),n.forEach(u=>{u.constructor===L?e=u:function Ht(i){return Object.getPrototypeOf(i.constructor)===A}(u)?o=u:r=u}),r||o||e||null}const qt={provide:a,useExisting:(0,t.Gpc)(()=>De)},K=(()=>Promise.resolve())();let De=(()=>{class i extends a{constructor(e,o,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new B({},H(e),R(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){K.then(()=>{const o=this._findContainer(e.path);e.control=o.registerControl(e.name,e.control),J(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){K.then(()=>{const o=this._findContainer(e.path);o&&o.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){K.then(()=>{const o=this._findContainer(e.path),r=new B({});rt(r,e),o.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){K.then(()=>{const o=this._findContainer(e.path);o&&o.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,o){K.then(()=>{this.form.get(e.path).setValue(o)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,at(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f,10),t.Y36(D,10),t.Y36(S,8))},i.\u0275dir=t.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,o){1&e&&t.NdJ("submit",function(u){return o.onSubmit(u)})("reset",function(){return o.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([qt]),t.qOj]}),i})();function lt(i,n){const e=i.indexOf(n);e>-1&&i.splice(e,1)}function dt(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const U=class extends xe{constructor(n=null,e,o){super(Ie(e),Pe(o,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ye(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=dt(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(o=>o(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){lt(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){lt(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){dt(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},zt={provide:d,useExisting:(0,t.Gpc)(()=>He)},pt=(()=>Promise.resolve())();let He=(()=>{class i extends d{constructor(e,o,r,u,b,w){super(),this._changeDetectorRef=b,this.callSetDisabledState=w,this.control=new U,this._registered=!1,this.name="",this.update=new t.vpe,this._parent=e,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=Ze(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const o=e.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Ue(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&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){J(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){pt.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const o=e.isDisabled.currentValue,r=0!==o&&(0,t.VuI)(o);pt.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Ce(e,this._parent):[e]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(a,9),t.Y36(f,10),t.Y36(D,10),t.Y36(V,10),t.Y36(t.sBO,8),t.Y36(S,8))},i.\u0275dir=t.lG2({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([zt]),t.qOj,t.TTD]}),i})(),ht=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=t.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})();const Yt={provide:V,useExisting:(0,t.Gpc)(()=>Re),multi:!0};let Re=(()=>{class i extends A{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=o=>{e(""==o?null:parseFloat(o))}}}return i.\u0275fac=function(){let n;return function(o){return(n||(n=t.n5z(i)))(o||i)}}(),i.\u0275dir=t.lG2({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,o){1&e&&t.NdJ("input",function(u){return o.onChange(u.target.value)})("blur",function(){return o.onTouched()})},features:[t._Bn([Yt]),t.qOj]}),i})(),gt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({}),i})();const $t={provide:V,useExisting:(0,t.Gpc)(()=>qe),multi:!0};let qe=(()=>{class i extends A{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=o=>{e(""==o?null:parseFloat(o))}}}return i.\u0275fac=function(){let n;return function(o){return(n||(n=t.n5z(i)))(o||i)}}(),i.\u0275dir=t.lG2({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,o){1&e&&t.NdJ("change",function(u){return o.onChange(u.target.value)})("input",function(u){return o.onChange(u.target.value)})("blur",function(){return o.onTouched()})},features:[t._Bn([$t]),t.qOj]}),i})();const je=new t.OlP("NgModelWithFormControlWarning"),Qt={provide:d,useExisting:(0,t.Gpc)(()=>We)};let We=(()=>{class i extends d{set isDisabled(e){}constructor(e,o,r,u,b){super(),this._ngModelWarningConfig=u,this.callSetDisabledState=b,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(o),this.valueAccessor=Ze(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const o=e.form.previousValue;o&&Ve(o,this,!1),J(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ue(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ve(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(t.Y36(f,10),t.Y36(D,10),t.Y36(V,10),t.Y36(je,8),t.Y36(S,8))},i.\u0275dir=t.lG2({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Qt]),t.qOj,t.TTD]}),i})();const Xt={provide:a,useExisting:(0,t.Gpc)(()=>ke)};let ke=(()=>{class i extends a{constructor(e,o,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(e),this._setAsyncValidators(o)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ae(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){const o=this.form.get(e.path);return J(o,e,this.callSetDisabledState),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),o}getControl(e){return this.form.get(e.path)}removeControl(e){Ve(e.control||null,e,!1),function Rt(i,n){const e=i.indexOf(n);e>-1&&i.splice(e,1)}(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,o){this.form.get(e.path).setValue(o)}onSubmit(e){return this.submitted=!0,at(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const o=e.control,r=this.form.get(e.path);o!==r&&(Ve(o||null,e),(i=>i instanceof U)(r)&&(J(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const o=this.form.get(e.path);rt(o,e),o.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const o=this.form.get(e.path);o&&function Ut(i,n){return Ae(i,n)}(o,e)&&o.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ge(this.form,this),this._oldForm&&Ae(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f,10),t.Y36(D,10),t.Y36(S,8))},i.\u0275dir=t.lG2({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,o){1&e&&t.NdJ("submit",function(u){return o.onSubmit(u)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Xt]),t.qOj,t.TTD]}),i})();const nn={provide:d,useExisting:(0,t.Gpc)(()=>Je)};let Je=(()=>{class i extends d{set isDisabled(e){}constructor(e,o,r,u,b){super(),this._ngModelWarningConfig=b,this._added=!1,this.name=null,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=Ze(0,u)}ngOnChanges(e){this._added||this._setUpControl(),Ue(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 Ce(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(t.Y36(a,13),t.Y36(f,10),t.Y36(D,10),t.Y36(V,10),t.Y36(je,8))},i.\u0275dir=t.lG2({type:i,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([nn]),t.qOj,t.TTD]}),i})();const on={provide:V,useExisting:(0,t.Gpc)(()=>Oe),multi:!0};function _t(i,n){return null==i?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${i}: ${n}`.slice(0,50))}let Oe=(()=>{class i extends A{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=_t(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=o=>{this.value=this._getOptionValue(o),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o),e))return o;return null}_getOptionValue(e){const o=function sn(i){return i.split(":")[0]}(e);return this._optionMap.has(o)?this._optionMap.get(o):e}}return i.\u0275fac=function(){let n;return function(o){return(n||(n=t.n5z(i)))(o||i)}}(),i.\u0275dir=t.lG2({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,o){1&e&&t.NdJ("change",function(u){return o.onChange(u.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([on]),t.qOj]}),i})(),bt=(()=>{class i{constructor(e,o,r){this._element=e,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(_t(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))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Oe,9))},i.\u0275dir=t.lG2({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),i})();const rn={provide:V,useExisting:(0,t.Gpc)(()=>Ke),multi:!0};function vt(i,n){return null==i?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${i}: ${n}`.slice(0,50))}let Ke=(()=>{class i extends A{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let o;if(this.value=e,Array.isArray(e)){const r=e.map(u=>this._getOptionId(u));o=(u,b)=>{u._setSelected(r.indexOf(b.toString())>-1)}}else o=(r,u)=>{r._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(e){this.onChange=o=>{const r=[],u=o.selectedOptions;if(void 0!==u){const b=u;for(let w=0;w<b.length;w++){const Qe=this._getOptionValue(b[w].value);r.push(Qe)}}else{const b=o.options;for(let w=0;w<b.length;w++){const Fe=b[w];if(Fe.selected){const Qe=this._getOptionValue(Fe.value);r.push(Qe)}}}this.value=r,e(r)}}_registerOption(e){const o=(this._idCounter++).toString();return this._optionMap.set(o,e),o}_getOptionId(e){for(const o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o)._value,e))return o;return null}_getOptionValue(e){const o=function an(i){return i.split(":")[0]}(e);return this._optionMap.has(o)?this._optionMap.get(o)._value:e}}return i.\u0275fac=function(){let n;return function(o){return(n||(n=t.n5z(i)))(o||i)}}(),i.\u0275dir=t.lG2({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,o){1&e&&t.NdJ("change",function(u){return o.onChange(u.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([rn]),t.qOj]}),i})(),yt=(()=>{class i{constructor(e,o,r){this._element=e,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(vt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(vt(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))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Ke,9))},i.\u0275dir=t.lG2({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),i})(),N=(()=>{class i{constructor(){this._validator=I}ngOnChanges(e){if(this.inputName in e){const o=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):I,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=t.lG2({type:i,features:[t.TTD]}),i})();const un={provide:f,useExisting:(0,t.Gpc)(()=>Ee),multi:!0},cn={provide:f,useExisting:(0,t.Gpc)(()=>$e),multi:!0};let Ee=(()=>{class i extends N{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.VuI,this.createValidator=e=>ne}enabled(e){return e}}return i.\u0275fac=function(){let n;return function(o){return(n||(n=t.n5z(i)))(o||i)}}(),i.\u0275dir=t.lG2({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,o){2&e&&t.uIk("required",o._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([un]),t.qOj]}),i})(),$e=(()=>{class i extends Ee{constructor(){super(...arguments),this.createValidator=e=>ie}}return i.\u0275fac=function(){let n;return function(o){return(n||(n=t.n5z(i)))(o||i)}}(),i.\u0275dir=t.lG2({type:i,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,o){2&e&&t.uIk("required",o._enabled?"":null)},features:[t._Bn([cn]),t.qOj]}),i})(),Et=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[gt]}),i})();class Ft extends xe{constructor(n,e,o){super(Ie(e),Pe(o,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,o={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:o.emitEvent})}removeAt(n,e={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,o={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){it(this,0,n),n.forEach((o,r)=>{nt(this,!1,r),this.at(r).setValue(o,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((o,r)=>{this.at(r)&&this.at(r).patchValue(o,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((o,r)=>{o.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,o)=>!!o._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,o)=>{n(e,o)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function wt(i){return!!i&&(void 0!==i.asyncValidators||void 0!==i.validators||void 0!==i.updateOn)}let fn=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new i;return e.useNonNullable=!0,e}group(e,o=null){const r=this._reduceControls(e);let u={};return wt(o)?u=o:null!==o&&(u.validators=o.validator,u.asyncValidators=o.asyncValidator),new B(r,u)}record(e,o=null){const r=this._reduceControls(e);return new ot(r,o)}control(e,o,r){let u={};return this.useNonNullable?(wt(o)?u=o:(u.validators=o,u.asyncValidators=r),new U(e,{...u,nonNullable:!0})):new U(e,o,r)}array(e,o,r){const u=e.map(b=>this._createControl(b));return new Ft(u,o,r)}_reduceControls(e){const o={};return Object.keys(e).forEach(r=>{o[r]=this._createControl(e[r])}),o}_createControl(e){return e instanceof U||e instanceof xe?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),_n=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:S,useValue:e.callSetDisabledState??Y}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[Et]}),i})(),bn=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:je,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:S,useValue:e.callSetDisabledState??Y}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[Et]}),i})()}}]);