-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path6353.f3e17e2ed4b39ce6.js
1 lines (1 loc) · 122 KB
/
6353.f3e17e2ed4b39ce6.js
1
"use strict";(self.webpackChunkmaterial_angular_io=self.webpackChunkmaterial_angular_io||[]).push([[6353],{7588:(lt,Re,y)=>{y.d(Re,{Lt:()=>je,EN:()=>Pe,pd:()=>S,ZW:()=>$e,vg:()=>h,A5:()=>D,Yz:()=>H,bZ:()=>F,k4:()=>N,wA:()=>Q,$w:()=>Ne,U:()=>K,nx:()=>T});var a=y(4438),t=y(5286),w=y(8167),oe=y(9776),k=y(5817),d=y(3586),Se=y(7354),Y=y(8099),M=y(5006);function re(m,C,u){return u?re(m,C).pipe((0,M.T)(f=>(0,Se.c)(f)?u(...f):u(f))):new k.c(f=>{const g=(...A)=>f.next(1===A.length?A[0]:A);let b;try{b=m(g)}catch(A){return void f.error(A)}if((0,Y.T)(C))return()=>C(g,b)})}var z=y(4670),ae=y(522),Me=y(3176),te=y(8712),L=y(8728),X=y(8542),xe=y(8667),x=y(3020),O=y(7753),B=y(7605),Z=y(8979),q=y(762),le=y(1080);y(3004);const ne={leading:!0,trailing:!1};class J{constructor(C,u,f,g){this.duration=C,this.scheduler=u,this.leading=f,this.trailing=g}call(C,u){return u.subscribe(new we(C,this.duration,this.scheduler,this.leading,this.trailing))}}class we extends q.v{constructor(C,u,f,g,b){super(C),this.duration=u,this.scheduler=f,this.leading=g,this.trailing=b,this._hasTrailingValue=!1,this._trailingValue=null}_next(C){this.throttled?this.trailing&&(this._trailingValue=C,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ie,this.duration,{subscriber:this})),this.leading?this.destination.next(C):this.trailing&&(this._trailingValue=C,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const C=this.throttled;C&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),C.unsubscribe(),this.remove(C),this.throttled=null)}}function Ie(m){const{subscriber:C}=m;C.clearThrottle()}var ee=y(7763),ie=y(611),ce=y(3948);class ${constructor(C,u){this.observables=C,this.project=u}call(C,u){return u.subscribe(new he(C,this.observables,this.project))}}class he extends ie.E{constructor(C,u,f){super(C),this.observables=u,this.project=f,this.toRespond=[];const g=u.length;this.values=new Array(g);for(let b=0;b<g;b++)this.toRespond.push(b);for(let b=0;b<g;b++)this.add((0,ce.F)(this,u[b],void 0,b))}notifyNext(C,u,f){this.values[f]=u;const g=this.toRespond;if(g.length>0){const b=g.indexOf(f);-1!==b&&g.splice(b,1)}}notifyComplete(){}_next(C){if(0===this.toRespond.length){const u=[C,...this.values];this.project?this._tryProject(u):this.destination.next(u)}}_tryProject(C){let u;try{u=this.project.apply(this,C)}catch(f){return void this.destination.error(f)}this.destination.next(u)}}var ke=y(9417),se=y(8203),W=y(7336),fe=y(2753),Oe=y(6939),me=y(8617),pe=y(5478),Ge=y(177);const K=".cdk-cell, .mat-cell, td",_e=".cdk-popover-edit-cell, .mat-popover-edit-cell",R=".cdk-row, .mat-row, tr",j="table, cdk-table, mat-table",Te="cdk-edit-pane",De=`.${Te}, .mat-edit-pane`;function T(m,C){if(!(m instanceof Node))return null;let u=m;for(;null!=u&&!(u instanceof Element);)u=u.parentNode;return u?.closest(C)??null}var I=function(m){return m[m.OFF=0]="OFF",m[m.FOCUSABLE=1]="FOCUSABLE",m[m.ON=2]="ON",m}(I||{});let G=(()=>{class m{get editRef(){return this._editRef}constructor(u){this._ngZone=u,this.editing=new t.B7,this.hovering=new t.B7,this.focused=new t.B7,this.allRows=new t.B7,this.mouseMove=new t.B7,this.disabledCells=new WeakMap,this._editRef=null,this._distinctUntilChanged=(0,ae.F)(),this._startWithNull=(0,Me.Z)(null),this._distinctShare=(0,w.F)(this._distinctUntilChanged,(0,te.t)(1)),this._startWithNullDistinct=(0,w.F)(this._startWithNull,this._distinctUntilChanged),this.editingAndEnabled=this.editing.pipe((0,L.p)(f=>null==f||!this.disabledCells.has(f)),(0,te.t)(1)),this.editingOrFocused=(0,oe.zV)([this.editingAndEnabled.pipe((0,M.T)(f=>T(f,R)),this._startWithNull),this.focused.pipe(this._startWithNull)]).pipe((0,M.T)(([f,g])=>g||f),this._distinctUntilChanged,(0,X.Z)(0),this._distinctUntilChanged,(0,te.t)(1)),this._rowsWithHoverContent=new WeakMap,this._currentlyEditing=null,this._hoveredContentStateDistinct=(0,oe.zV)([this._getFirstRowWithHoverContent(),this._getLastRowWithHoverContent(),this.editingOrFocused,this.hovering.pipe((0,ae.F)(),(0,xe.s)(f=>this.mouseMove.pipe((0,L.p)(g=>f===g),this._startWithNull,(0,x.B)(40))),this._startWithNullDistinct)]).pipe((0,O.i)(1),(0,M.T)(Xe),(0,ae.F)(Ae),this._enterZone(),(0,te.t)(1)),this._editingAndEnabledDistinct=this.editingAndEnabled.pipe((0,ae.F)(),this._enterZone(),(0,te.t)(1)),this._lastSeenRow=null,this._lastSeenRowHoverOrFocus=null,this._editingAndEnabledDistinct.subscribe(f=>{this._currentlyEditing=f})}editingCell(u){let f=null;return this._editingAndEnabledDistinct.pipe((0,M.T)(g=>g===(f||(f=T(u,K)))),this._distinctUntilChanged)}doneEditingCell(u){const f=T(u,K);this._currentlyEditing===f&&this.editing.next(null)}setActiveEditRef(u){this._editRef=u}unsetActiveEditRef(u){this._editRef===u&&(this._editRef=null)}registerRowWithHoverContent(u){this._rowsWithHoverContent.set(u,(this._rowsWithHoverContent.get(u)||0)+1)}deregisterRowWithHoverContent(u){const f=this._rowsWithHoverContent.get(u)||0;f<=1?this._rowsWithHoverContent.delete(u):this._rowsWithHoverContent.set(u,f-1)}hoverOrFocusOnRow(u){return u!==this._lastSeenRow&&(this._lastSeenRow=u,this._lastSeenRowHoverOrFocus=this._hoveredContentStateDistinct.pipe((0,M.T)(f=>f.get(u)||I.OFF),this._distinctShare)),this._lastSeenRowHoverOrFocus}_enterZone(){return u=>new k.c(f=>u.subscribe({next:g=>this._ngZone.run(()=>f.next(g)),error:g=>f.error(g),complete:()=>f.complete()}))}_getFirstRowWithHoverContent(){return this._mapAllRowsToSingleRow(u=>{for(let g,f=0;g=u[f];f++)if(this._rowsWithHoverContent.has(g))return g;return null})}_getLastRowWithHoverContent(){return this._mapAllRowsToSingleRow(u=>{for(let g,f=u.length-1;g=u[f];f--)if(this._rowsWithHoverContent.has(g))return g;return null})}_mapAllRowsToSingleRow(u){return this.allRows.pipe((0,M.T)(u),this._startWithNullDistinct)}static#e=this.\u0275fac=function(f){return new(f||m)(a.KVO(a.SKi))};static#t=this.\u0275prov=a.jDH({token:m,factory:m.\u0275fac})}return m})();function Xe([m,C,u,f]){const g=new Map;for(const b of[m,C,u&&u.previousElementSibling,u&&u.nextElementSibling])b&&g.set(b,I.FOCUSABLE);for(const b of[u,f])b&&g.set(b,I.ON);return g}function Ae(m,C){if(m.size!==C.size)return!1;for(const u of Array.from(m.keys()))if(C.get(u)!==m.get(u))return!1;return!0}let Q=(()=>{class m{constructor(u,f){this._form=u,this._editEventDispatcher=f,this._finalValueSubject=new t.B7,this.finalValue=this._finalValueSubject,this._blurredSubject=new t.B7,this.blurred=this._blurredSubject,this._injector=(0,a.WQX)(a.zZn),this._editEventDispatcher.setActiveEditRef(this)}init(u){(0,a.mal)(()=>{this.updateRevertValue(),u&&this.reset(u)},{injector:this._injector})}ngOnDestroy(){this._editEventDispatcher.unsetActiveEditRef(this),this._finalValueSubject.next(this._form.value),this._finalValueSubject.complete()}isValid(){return this._form.valid}updateRevertValue(){this._revertFormValue=this._form.value}close(){this._editEventDispatcher.editing.next(null)}blur(){this._blurredSubject.next()}reset(u){this._form.reset(u||this._revertFormValue)}static#e=this.\u0275fac=function(f){return new(f||m)(a.KVO(ke.ZU,2),a.KVO(G))};static#t=this.\u0275prov=a.jDH({token:m,factory:m.\u0275fac})}return m})(),Ce=(()=>{class m{constructor(u){this.directionality=u,this.keyObserver={next:f=>this.handleKeyboardEvent(f)}}moveFocusHorizontally(u,f){const g=Array.from(T(u,j).querySelectorAll(_e)),A=g.indexOf(u)+f;g[A]&&g[A].focus()}moveFocusVertically(u,f){const g=T(u,R),b=Array.from(T(g,j).querySelectorAll(R)),A=b.indexOf(g),Ue=Array.from(g.querySelectorAll(_e)).indexOf(u),We=A+f;if(b[We]){const Ve=Array.from(b[We].querySelectorAll(_e));Ve[Ue]&&Ve[Ue].focus()}}handleKeyboardEvent(u){const f=T(u.target,_e);if(f){switch(u.keyCode){case W.i7:this.moveFocusVertically(f,-1);break;case W.n6:this.moveFocusVertically(f,1);break;case W.UQ:this.moveFocusHorizontally(f,"ltr"===this.directionality.value?-1:1);break;case W.LE:this.moveFocusHorizontally(f,"ltr"===this.directionality.value?1:-1);break;default:return}u.preventDefault()}}static#e=this.\u0275fac=function(f){return new(f||m)(a.KVO(se.dS))};static#t=this.\u0275prov=a.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();class Ne{constructor(){this._formValues=new WeakMap}for(C){const u=this._formValues;let f=u.get(C);return f||(f={},u.set(C,f)),f}}let Pe=(()=>{class m{constructor(u,f){this.elementRef=u,this.editRef=f,this.destroyed=new t.B7,this.clickOutBehavior="close",this.preservedFormValueChange=new a.bkB,this.ignoreSubmitUnlessValid=!0}ngOnInit(){this.editRef.init(this.preservedFormValue),this.editRef.finalValue.subscribe(this.preservedFormValueChange),this.editRef.blurred.subscribe(()=>this._handleBlur())}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}handleFormSubmit(){this.ignoreSubmitUnlessValid&&!this.editRef.isValid()||(this.editRef.updateRevertValue(),this.editRef.close())}close(){this.editRef.close()}handlePossibleClickOut(u){if(!T(u.target,De))switch(this.clickOutBehavior){case"submit":this._triggerFormSubmit(),this.editRef.close();break;case"close":this.editRef.close()}}_handleKeydown(u){"Escape"===u.key&&!(0,W.rp)(u)&&(this.close(),u.preventDefault())}_handleBlur(){"submit"===this.clickOutBehavior&&this._triggerFormSubmit()}_triggerFormSubmit(){this.elementRef.nativeElement.dispatchEvent(new Event("submit"))}static#e=this.\u0275fac=function(f){return new(f||m)(a.rXU(a.aKT),a.rXU(Q))};static#t=this.\u0275dir=a.FsC({type:m,selectors:[["form","cdkEditControl",""]],hostBindings:function(f,g){1&f&&a.bIt("ngSubmit",function(){return g.handleFormSubmit()})("click",function(A){return g.handlePossibleClickOut(A)},!1,a.EBC)("keydown",function(A){return g._handleKeydown(A)})},inputs:{clickOutBehavior:[0,"cdkEditControlClickOutBehavior","clickOutBehavior"],preservedFormValue:[0,"cdkEditControlPreservedFormValue","preservedFormValue"],ignoreSubmitUnlessValid:[0,"cdkEditControlIgnoreSubmitUnlessValid","ignoreSubmitUnlessValid"]},outputs:{preservedFormValueChange:"cdkEditControlPreservedFormValueChange"},standalone:!0,features:[a.Jv_([Q])]})}return m})(),$e=(()=>{class m{constructor(u){this.editRef=u,this.type="button"}revertEdit(){this.editRef.reset()}static#e=this.\u0275fac=function(f){return new(f||m)(a.rXU(Q))};static#t=this.\u0275dir=a.FsC({type:m,selectors:[["button","cdkEditRevert",""]],hostAttrs:["type","button"],hostBindings:function(f,g){1&f&&a.bIt("click",function(){return g.revertEdit()})},inputs:{type:"type"},standalone:!0})}return m})(),je=(()=>{class m{constructor(u,f){this.elementRef=u,this.editRef=f;const g=u.nativeElement;"BUTTON"===g.nodeName&&!g.getAttribute("type")&&g.setAttribute("type","button")}closeEdit(){this.editRef.close()}static#e=this.\u0275fac=function(f){return new(f||m)(a.rXU(a.aKT),a.rXU(Q))};static#t=this.\u0275dir=a.FsC({type:m,selectors:[["","cdkEditClose",""]],hostBindings:function(f,g){1&f&&a.bIt("click",function(){return g.closeEdit()})("keydown.enter",function(){return g.closeEdit()})("keydown.space",function(){return g.closeEdit()})},standalone:!0})}return m})(),Be=(()=>{class m{constructor(u,f,g,b,A,Ue,We,Ve){this.directionality=u,this.editEventDispatcher=f,this.focusDispatcher=g,this.focusTrapFactory=b,this.ngZone=A,this.overlay=Ue,this.scrollDispatcher=We,this.viewportRuler=Ve}static#e=this.\u0275fac=function(f){return new(f||m)(a.KVO(se.dS),a.KVO(G),a.KVO(Ce),a.KVO(me.GX),a.KVO(a.SKi),a.KVO(fe.hJ),a.KVO(pe.R),a.KVO(pe.Xj))};static#t=this.\u0275prov=a.jDH({token:m,factory:m.\u0275fac})}return m})();var l=function(m){return m[m.START=0]="START",m[m.END=1]="END",m}(l||{});class _ extends me.sp{constructor(C,u,f,g){super(C,u,f,g,!0),this._escapeSubject=new t.B7,this.startAnchorListener=()=>(this._escapeSubject.next(l.START),!0),this.endAnchorListener=()=>(this._escapeSubject.next(l.END),!0),this.attachAnchors()}escapes(){return this._escapeSubject}}let s=(()=>{class m{constructor(u,f,g){this._checker=u,this._ngZone=f,this._document=g}create(u){return new _(u,this._checker,this._ngZone,this._document)}static#e=this.\u0275fac=function(f){return new(f||m)(a.KVO(me.Z7),a.KVO(a.SKi),a.KVO(Ge.qQ))};static#t=this.\u0275prov=a.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})(),h=(()=>{class m{constructor(u,f,g,b){this.elementRef=u,this.editEventDispatcher=f,this.focusDispatcher=g,this.ngZone=b,this.destroyed=new t.B7,this._rendered=new t.B7,(0,a.Tzd)(()=>{this._rendered.next()})}ngAfterViewInit(){this._listenForTableEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this._rendered.complete()}_listenForTableEvents(){const u=this.elementRef.nativeElement,f=g=>(0,M.T)(b=>T(b.target,g));this.ngZone.runOutsideAngular(()=>{(0,d.R)(u,"mouseover").pipe(f(R),(0,B.Q)(this.destroyed)).subscribe(this.editEventDispatcher.hovering),(0,d.R)(u,"mouseleave").pipe((0,Z.u)(null),(0,B.Q)(this.destroyed)).subscribe(this.editEventDispatcher.hovering),(0,d.R)(u,"mousemove").pipe(function be(m,C=le.b,u=ne){return f=>f.lift(new J(m,C,u.leading,u.trailing))}(10),f(R),(0,B.Q)(this.destroyed)).subscribe(this.editEventDispatcher.mouseMove),re(g=>u.addEventListener("focus",g,!0),g=>u.removeEventListener("focus",g,!0)).pipe(f(R),(0,ee.u)(),(0,B.Q)(this.destroyed)).subscribe(this.editEventDispatcher.focused),(0,z.h)(re(g=>u.addEventListener("blur",g,!0),g=>u.removeEventListener("blur",g,!0)),(0,d.R)(u,"keydown").pipe((0,L.p)(g=>"Escape"===g.key))).pipe((0,Z.u)(null),(0,ee.u)(),(0,B.Q)(this.destroyed)).subscribe(this.editEventDispatcher.focused),this._rendered.pipe(function ue(...m){return C=>{let u;return"function"==typeof m[m.length-1]&&(u=m.pop()),C.lift(new $(m,u))}}(this.editEventDispatcher.editingOrFocused),(0,L.p)(([g,b])=>null==b),(0,M.T)(()=>u.querySelectorAll(R)),(0,ee.u)(),(0,B.Q)(this.destroyed)).subscribe(this.editEventDispatcher.allRows),(0,d.R)(u,"keydown").pipe((0,L.p)(g=>"Enter"===g.key),f(K),(0,B.Q)(this.destroyed)).subscribe(this.editEventDispatcher.editing),(0,d.R)(u,"keydown").pipe((0,B.Q)(this.destroyed)).subscribe(this.focusDispatcher.keyObserver)})}static#e=this.\u0275fac=function(f){return new(f||m)(a.rXU(a.aKT),a.rXU(G),a.rXU(Ce),a.rXU(a.SKi))};static#t=this.\u0275dir=a.FsC({type:m,selectors:[["table","editable",""],["cdk-table","editable",""],["mat-table","editable",""]],standalone:!0,features:[a.Jv_([G,Be])]})}return m})(),D=(()=>{class m{get colspan(){return this._colspan}set colspan(u){this._colspan=u,this.overlayRef&&(this.overlayRef.updatePositionStrategy(this._getPositionStrategy()),this.overlayRef.hasAttached()&&this._updateOverlaySize())}get disabled(){return this._disabled}set disabled(u){this._disabled=u,u?(this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement),this.services.editEventDispatcher.disabledCells.set(this.elementRef.nativeElement,!0)):this.services.editEventDispatcher.disabledCells.delete(this.elementRef.nativeElement)}constructor(u,f,g){this.services=u,this.elementRef=f,this.viewContainerRef=g,this.template=null,this._colspan={},this._disabled=!1,this.destroyed=new t.B7}ngAfterViewInit(){this._startListeningToEditEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.focusTrap&&(this.focusTrap.destroy(),this.focusTrap=void 0),this.overlayRef&&this.overlayRef.dispose()}initFocusTrap(){this.focusTrap=this.services.focusTrapFactory.create(this.overlayRef.overlayElement)}closeEditOverlay(){this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement)}panelClass(){return Te}_startListeningToEditEvents(){this.services.editEventDispatcher.editingCell(this.elementRef.nativeElement).pipe((0,B.Q)(this.destroyed)).subscribe(u=>{u&&this.template?(this.overlayRef||this._createEditOverlay(),this._showEditOverlay()):this.overlayRef&&(this._maybeReturnFocusToCell(),this.overlayRef.detach())})}_createEditOverlay(){this.overlayRef=this.services.overlay.create({disposeOnNavigation:!0,panelClass:this.panelClass(),positionStrategy:this._getPositionStrategy(),scrollStrategy:this.services.overlay.scrollStrategies.reposition(),direction:this.services.directionality}),this.initFocusTrap(),this.overlayRef.overlayElement.setAttribute("aria-role","dialog"),this.overlayRef.detachments().subscribe(()=>this.closeEditOverlay())}_showEditOverlay(){this.overlayRef.attach(new Oe.VA(this.template,this.viewContainerRef,{$implicit:this.context})),this.services.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.focusTrap.focusInitialElement()})}),(0,z.h)(this.services.scrollDispatcher.scrolled(),this.services.viewportRuler.change()).pipe((0,Me.Z)(null),(0,B.Q)((0,z.h)(this.overlayRef.detachments(),this.destroyed))).subscribe(()=>{this._updateOverlaySize()})}_getOverlayCells(){const u=T(this.elementRef.nativeElement,K);if(!this._colspan.before&&!this._colspan.after)return[u];const f=T(this.elementRef.nativeElement,R),g=Array.from(f.querySelectorAll(K)),b=g.indexOf(u);return g.slice(b-(this._colspan.before||0),b+(this._colspan.after||0)+1)}_getPositionStrategy(){const u=this._getOverlayCells();return this.services.overlay.position().flexibleConnectedTo(u[0]).withGrowAfterOpen().withPush().withViewportMargin(16).withPositions([{originX:"start",originY:"top",overlayX:"start",overlayY:"top"}])}_updateOverlaySize(){this.overlayRef.updateSize(this._sizeConfigForCells(this._getOverlayCells()))}_maybeReturnFocusToCell(){T(document.activeElement,De)===this.overlayRef.overlayElement&&this.elementRef.nativeElement.focus()}_sizeConfigForCells(u){if(0===u.length)return{};if(1===u.length)return{width:u[0].getBoundingClientRect().width};let f,g;return"ltr"===this.services.directionality.value?(f=u[0],g=u[u.length-1]):(g=u[0],f=u[u.length-1]),{width:g.getBoundingClientRect().right-f.getBoundingClientRect().left}}static#e=this.\u0275fac=function(f){return new(f||m)(a.rXU(Be),a.rXU(a.aKT),a.rXU(a.c1b))};static#t=this.\u0275dir=a.FsC({type:m,selectors:[["","cdkPopoverEdit","",3,"cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(f,g){2&f&&a.BMQ("tabindex",g.disabled?null:0)("aria-haspopup",!g.disabled)},inputs:{template:[0,"cdkPopoverEdit","template"],context:[0,"cdkPopoverEditContext","context"],colspan:[0,"cdkPopoverEditColspan","colspan"],disabled:[0,"cdkPopoverEditDisabled","disabled"]},standalone:!0})}return m})(),F=(()=>{class m extends D{constructor(u,f,g,b){super(g,u,f),this.focusEscapeNotifierFactory=b,this.focusTrap=void 0}initFocusTrap(){this.focusTrap=this.focusEscapeNotifierFactory.create(this.overlayRef.overlayElement),this.focusTrap.escapes().pipe((0,B.Q)(this.destroyed)).subscribe(u=>{this.services.editEventDispatcher.editRef?.blur(),this.services.focusDispatcher.moveFocusHorizontally(T(this.elementRef.nativeElement,K),u===l.START?-1:1),this.closeEditOverlay()})}static#e=this.\u0275fac=function(f){return new(f||m)(a.rXU(a.aKT),a.rXU(a.c1b),a.rXU(Be),a.rXU(s))};static#t=this.\u0275dir=a.FsC({type:m,selectors:[["","cdkPopoverEdit","","cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(f,g){2&f&&a.BMQ("tabindex",g.disabled?null:0)("aria-haspopup",!g.disabled)},inputs:{template:[0,"cdkPopoverEdit","template"],context:[0,"cdkPopoverEditContext","context"],colspan:[0,"cdkPopoverEditColspan","colspan"],disabled:[0,"cdkPopoverEditDisabled","disabled"]},standalone:!0,features:[a.Vt3]})}return m})(),N=(()=>{class m{constructor(u,f,g,b){this.services=u,this.elementRef=f,this.templateRef=g,this.viewContainerRef=b,this.destroyed=new t.B7,this.viewRef=null}ngAfterViewInit(){this._row=T(this.elementRef.nativeElement,R),this.services.editEventDispatcher.registerRowWithHoverContent(this._row),this._listenForHoverAndFocusEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewRef&&this.viewRef.destroy(),this._row&&this.services.editEventDispatcher.deregisterRowWithHoverContent(this._row)}initElement(u){}makeElementHiddenButFocusable(u){u.style.opacity="0"}makeElementVisible(u){u.style.opacity=""}_listenForHoverAndFocusEvents(){this.services.editEventDispatcher.hoverOrFocusOnRow(this._row).pipe((0,B.Q)(this.destroyed)).subscribe(u=>{u===I.ON||u===I.FOCUSABLE?(this.viewRef?-1===this.viewContainerRef.indexOf(this.viewRef)&&(this.viewContainerRef.insert(this.viewRef),this.viewRef.markForCheck()):(this.viewRef=this.viewContainerRef.createEmbeddedView(this.templateRef,{}),this.initElement(this.viewRef.rootNodes[0]),this.viewRef.markForCheck()),u===I.ON?this.makeElementVisible(this.viewRef.rootNodes[0]):this.makeElementHiddenButFocusable(this.viewRef.rootNodes[0])):this.viewRef&&this.viewContainerRef.detach(this.viewContainerRef.indexOf(this.viewRef))})}static#e=this.\u0275fac=function(f){return new(f||m)(a.rXU(Be),a.rXU(a.aKT),a.rXU(a.C4Q),a.rXU(a.c1b))};static#t=this.\u0275dir=a.FsC({type:m,selectors:[["","cdkRowHoverContent",""]],standalone:!0})}return m})(),S=(()=>{class m{constructor(u,f){this.elementRef=u,this.editEventDispatcher=f;const g=u.nativeElement;"BUTTON"===g.nodeName&&!g.getAttribute("type")&&g.setAttribute("type","button")}openEdit(u){this.editEventDispatcher.editing.next(T(this.elementRef.nativeElement,K)),u.stopPropagation()}static#e=this.\u0275fac=function(f){return new(f||m)(a.rXU(a.aKT),a.rXU(G))};static#t=this.\u0275dir=a.FsC({type:m,selectors:[["","cdkEditOpen",""]],hostBindings:function(f,g){1&f&&a.bIt("click",function(A){return g.openEdit(A)})},standalone:!0})}return m})(),H=(()=>{class m{static#e=this.\u0275fac=function(f){return new(f||m)};static#t=this.\u0275mod=a.$C({type:m});static#n=this.\u0275inj=a.G2t({imports:[fe.z_]})}return m})()},5887:(lt,Re,y)=>{y.d(Re,{AL:()=>U,EZ:()=>O,F6:()=>T,I8:()=>$,L_:()=>le,N0:()=>je,RT:()=>G,Rk:()=>Q,To:()=>J,VP:()=>de,Y$:()=>ke,ZM:()=>De,c7:()=>Ee,cO:()=>Z,df:()=>ce,hc:()=>se,hi:()=>ie,ki:()=>Pe,lH:()=>I,lQ:()=>we,n5:()=>q,oh:()=>ue,pe:()=>ve,sY:()=>ye,u4:()=>W,wA:()=>he,yT:()=>ge});var a=y(8203),t=y(5024),w=y(6860),oe=y(5478),k=y(177),d=y(4438),Se=y(5286),Y=y(9928),M=y(8982),re=y(4421),z=y(7605);const ae=[[["caption"]],[["colgroup"],["col"]],"*"],Me=["caption","colgroup, col","*"];function te(l,_){1&l&&d.SdG(0,2)}function L(l,_){1&l&&(d.j41(0,"thead",0),d.eu8(1,1),d.k0s(),d.j41(2,"tbody",0),d.eu8(3,2)(4,3),d.k0s(),d.j41(5,"tfoot",0),d.eu8(6,4),d.k0s())}function X(l,_){1&l&&d.eu8(0,1)(1,2)(2,3)(3,4)}function xe(l,_){if(1&l&&(d.j41(0,"th",3),d.EFF(1),d.k0s()),2&l){const s=d.XpG();d.xc7("text-align",s.justify),d.R7$(),d.SpI(" ",s.headerText," ")}}function x(l,_){if(1&l&&(d.j41(0,"td",4),d.EFF(1),d.k0s()),2&l){const s=_.$implicit,r=d.XpG();d.xc7("text-align",r.justify),d.R7$(),d.SpI(" ",r.dataAccessor(s,r.name)," ")}}const O=new d.nKC("CDK_TABLE"),B=new d.nKC("text-column-options");let Z=(()=>{class l{constructor(s){this.template=s}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.C4Q))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","cdkCellDef",""]],standalone:!0})}return l})(),q=(()=>{class l{constructor(s){this.template=s}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.C4Q))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}return l})(),le=(()=>{class l{constructor(s){this.template=s}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.C4Q))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}return l})(),U=(()=>{class l{get name(){return this._name}set name(s){this._setNameInput(s)}get sticky(){return this._sticky}set sticky(s){s!==this._sticky&&(this._sticky=s,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(s){s!==this._stickyEnd&&(this._stickyEnd=s,this._hasStickyChanged=!0)}constructor(s){this._table=s,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){const s=this._hasStickyChanged;return this.resetStickyChanged(),s}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(s){s&&(this._name=s,this.cssClassFriendlyName=s.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(O,8))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,h,p){if(1&r&&(d.wni(p,Z,5),d.wni(p,q,5),d.wni(p,le,5)),2&r){let v;d.mGM(v=d.lsd())&&(h.cell=v.first),d.mGM(v=d.lsd())&&(h.headerCell=v.first),d.mGM(v=d.lsd())&&(h.footerCell=v.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",d.L39],stickyEnd:[2,"stickyEnd","stickyEnd",d.L39]},standalone:!0,features:[d.Jv_([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:l}]),d.GFd]})}return l})();class ne{constructor(_,s){s.nativeElement.classList.add(..._._columnCssClassName)}}let ye=(()=>{class l extends ne{constructor(s,r){super(s,r)}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(U),d.rXU(d.aKT))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[d.Vt3]})}return l})(),Ee=(()=>{class l extends ne{constructor(s,r){super(s,r);const h=s._table?._getCellRole();h&&r.nativeElement.setAttribute("role",h)}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(U),d.rXU(d.aKT))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],standalone:!0,features:[d.Vt3]})}return l})(),de=(()=>{class l extends ne{constructor(s,r){super(s,r);const h=s._table?._getCellRole();h&&r.nativeElement.setAttribute("role",h)}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(U),d.rXU(d.aKT))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[d.Vt3]})}return l})();class be{constructor(){this.tasks=[],this.endTasks=[]}}const J=new d.nKC("_COALESCED_STYLE_SCHEDULER");let we=(()=>{class l{constructor(s){this._currentSchedule=null,this._ngZone=(0,d.WQX)(d.SKi)}schedule(s){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(s)}scheduleEnd(s){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(s)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new be,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const s=this._currentSchedule;this._currentSchedule=new be;for(const r of s.tasks)r();for(const r of s.endTasks)r()}this._currentSchedule=null})))}static#e=this.\u0275fac=function(r){return new(r||l)(d.KVO(d.SKi))};static#t=this.\u0275prov=d.jDH({token:l,factory:l.\u0275fac})}return l})(),ee=(()=>{class l{constructor(s,r){this.template=s,this._differs=r}ngOnChanges(s){if(!this._columnsDiffer){const r=s.columns&&s.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(s){return this instanceof ie?s.headerCell.template:this instanceof ce?s.footerCell.template:s.cell.template}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.C4Q),d.rXU(d._q3))};static#t=this.\u0275dir=d.FsC({type:l,features:[d.OA$]})}return l})(),ie=(()=>{class l extends ee{get sticky(){return this._sticky}set sticky(s){s!==this._sticky&&(this._sticky=s,this._hasStickyChanged=!0)}constructor(s,r,h){super(s,r),this._table=h,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(s){super.ngOnChanges(s)}hasStickyChanged(){const s=this._hasStickyChanged;return this.resetStickyChanged(),s}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.C4Q),d.rXU(d._q3),d.rXU(O,8))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",d.L39]},standalone:!0,features:[d.GFd,d.Vt3,d.OA$]})}return l})(),ce=(()=>{class l extends ee{get sticky(){return this._sticky}set sticky(s){s!==this._sticky&&(this._sticky=s,this._hasStickyChanged=!0)}constructor(s,r,h){super(s,r),this._table=h,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(s){super.ngOnChanges(s)}hasStickyChanged(){const s=this._hasStickyChanged;return this.resetStickyChanged(),s}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.C4Q),d.rXU(d._q3),d.rXU(O,8))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",d.L39]},standalone:!0,features:[d.GFd,d.Vt3,d.OA$]})}return l})(),ue=(()=>{class l extends ee{constructor(s,r,h){super(s,r),this._table=h}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.C4Q),d.rXU(d._q3),d.rXU(O,8))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[d.Vt3]})}return l})(),$=(()=>{class l{static#e=this.mostRecentCellOutlet=null;constructor(s){this._viewContainer=s,l.mostRecentCellOutlet=this}ngOnDestroy(){l.mostRecentCellOutlet===this&&(l.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.c1b))};static#n=this.\u0275dir=d.FsC({type:l,selectors:[["","cdkCellOutlet",""]],standalone:!0})}return l})(),he=(()=>{class l{static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275cmp=d.VBU({type:l,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[d.aNF],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,h){1&r&&d.eu8(0,0)},dependencies:[$],encapsulation:2})}return l})(),ke=(()=>{class l{static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275cmp=d.VBU({type:l,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],standalone:!0,features:[d.aNF],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,h){1&r&&d.eu8(0,0)},dependencies:[$],encapsulation:2})}return l})(),se=(()=>{class l{static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275cmp=d.VBU({type:l,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[d.aNF],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,h){1&r&&d.eu8(0,0)},dependencies:[$],encapsulation:2})}return l})(),W=(()=>{class l{constructor(s){this.templateRef=s,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.C4Q))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}return l})();const fe=["top","bottom","left","right"];class Oe{constructor(_,s,r,h,p=!0,v=!0,D){this._isNativeHtmlTable=_,this._stickCellCss=s,this.direction=r,this._coalescedStyleScheduler=h,this._isBrowser=p,this._needsPositionStickyOnElement=v,this._positionListener=D,this._cachedCellWidths=[],this._borderCellCss={top:`${s}-border-elem-top`,bottom:`${s}-border-elem-bottom`,left:`${s}-border-elem-left`,right:`${s}-border-elem-right`}}clearStickyPositioning(_,s){const r=[];for(const h of _)if(h.nodeType===h.ELEMENT_NODE){r.push(h);for(let p=0;p<h.children.length;p++)r.push(h.children[p])}this._coalescedStyleScheduler.schedule(()=>{for(const h of r)this._removeStickyStyle(h,s)})}updateStickyColumns(_,s,r,h=!0){_.length&&this._isBrowser&&(s.some(p=>p)||r.some(p=>p))?this._coalescedStyleScheduler.schedule(()=>{const p=_[0],v=p.children.length,D=this._getCellWidths(p,h),F=this._getStickyStartColumnPositions(D,s),N=this._getStickyEndColumnPositions(D,r),S=s.lastIndexOf(!0),P=r.indexOf(!0),H="rtl"===this.direction,m=H?"right":"left",C=H?"left":"right";for(const u of _)for(let f=0;f<v;f++){const g=u.children[f];s[f]&&this._addStickyStyle(g,m,F[f],f===S),r[f]&&this._addStickyStyle(g,C,N[f],f===P)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===S?[]:D.slice(0,S+1).map((u,f)=>s[f]?u:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===P?[]:D.slice(P).map((u,f)=>r[f+P]?u:null).reverse()}))}):this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}stickRows(_,s,r){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{const h="bottom"===r?_.slice().reverse():_,p="bottom"===r?s.slice().reverse():s,v=[],D=[],F=[];for(let S=0,P=0;S<h.length;S++){if(!p[S])continue;v[S]=P;const H=h[S];F[S]=this._isNativeHtmlTable?Array.from(H.children):[H];const m=H.getBoundingClientRect().height;P+=m,D[S]=m}const N=p.lastIndexOf(!0);for(let S=0;S<h.length;S++){if(!p[S])continue;const P=v[S],H=S===N;for(const m of F[S])this._addStickyStyle(m,r,P,H)}"top"===r?this._positionListener?.stickyHeaderRowsUpdated({sizes:D,offsets:v,elements:F}):this._positionListener?.stickyFooterRowsUpdated({sizes:D,offsets:v,elements:F})})}updateStickyFooterContainer(_,s){this._isNativeHtmlTable&&this._coalescedStyleScheduler.schedule(()=>{const r=_.querySelector("tfoot");r&&(s.some(h=>!h)?this._removeStickyStyle(r,["bottom"]):this._addStickyStyle(r,"bottom",0,!1))})}_removeStickyStyle(_,s){for(const h of s)_.style[h]="",_.classList.remove(this._borderCellCss[h]);fe.some(h=>-1===s.indexOf(h)&&_.style[h])?_.style.zIndex=this._getCalculatedZIndex(_):(_.style.zIndex="",this._needsPositionStickyOnElement&&(_.style.position=""),_.classList.remove(this._stickCellCss))}_addStickyStyle(_,s,r,h){_.classList.add(this._stickCellCss),h&&_.classList.add(this._borderCellCss[s]),_.style[s]=`${r}px`,_.style.zIndex=this._getCalculatedZIndex(_),this._needsPositionStickyOnElement&&(_.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(_){const s={top:100,bottom:10,left:1,right:1};let r=0;for(const h of fe)_.style[h]&&(r+=s[h]);return r?`${r}`:""}_getCellWidths(_,s=!0){if(!s&&this._cachedCellWidths.length)return this._cachedCellWidths;const r=[],h=_.children;for(let p=0;p<h.length;p++)r.push(h[p].getBoundingClientRect().width);return this._cachedCellWidths=r,r}_getStickyStartColumnPositions(_,s){const r=[];let h=0;for(let p=0;p<_.length;p++)s[p]&&(r[p]=h,h+=_[p]);return r}_getStickyEndColumnPositions(_,s){const r=[];let h=0;for(let p=_.length;p>0;p--)s[p]&&(r[p]=h,h+=_[p]);return r}}const De=new d.nKC("CDK_SPL");let T=(()=>{class l{static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],standalone:!0,features:[d.Jv_([{provide:t.sL,useClass:t.DQ}])]})}return l})(),ge=(()=>{class l{constructor(s,r){this.viewContainer=s,this.elementRef=r;const h=(0,d.WQX)(O);h._rowOutlet=this,h._outletAssigned()}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.c1b),d.rXU(d.aKT))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","rowOutlet",""]],standalone:!0})}return l})(),ve=(()=>{class l{constructor(s,r){this.viewContainer=s,this.elementRef=r;const h=(0,d.WQX)(O);h._headerRowOutlet=this,h._outletAssigned()}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.c1b),d.rXU(d.aKT))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","headerRowOutlet",""]],standalone:!0})}return l})(),I=(()=>{class l{constructor(s,r){this.viewContainer=s,this.elementRef=r;const h=(0,d.WQX)(O);h._footerRowOutlet=this,h._outletAssigned()}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.c1b),d.rXU(d.aKT))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","footerRowOutlet",""]],standalone:!0})}return l})(),G=(()=>{class l{constructor(s,r){this.viewContainer=s,this.elementRef=r;const h=(0,d.WQX)(O);h._noDataRowOutlet=this,h._outletAssigned()}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d.c1b),d.rXU(d.aKT))};static#t=this.\u0275dir=d.FsC({type:l,selectors:[["","noDataRowOutlet",""]],standalone:!0})}return l})(),Q=(()=>{class l{_getCellRole(){if(void 0===this._cellRoleInternal){const s=this._elementRef.nativeElement.getAttribute("role"),r="grid"===s||"treegrid"===s?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&"cell"===r?null:r}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(s){this._trackByFn=s}get dataSource(){return this._dataSource}set dataSource(s){this._dataSource!==s&&this._switchDataSource(s)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(s){this._multiTemplateDataRows=s,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(s){this._fixedLayout=s,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(s,r,h,p,v,D,F,N,S,P,H,m){this._differs=s,this._changeDetectorRef=r,this._elementRef=h,this._dir=v,this._platform=F,this._viewRepeater=N,this._coalescedStyleScheduler=S,this._viewportRuler=P,this._stickyPositioningListener=H,this._onDestroy=new Se.B7,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new d.bkB,this.viewChange=new Y.t({start:0,end:Number.MAX_VALUE}),this._injector=(0,d.WQX)(d.zZn),p||h.nativeElement.setAttribute("role","table"),this._document=D,this._isServer=!F.isBrowser,this._isNativeHtmlTable="TABLE"===h.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((s,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe((0,z.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(s=>{s?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,t.y4)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const s=this._dataDiffer.diff(this._renderRows);if(!s)return this._updateNoDataRow(),void this.contentChanged.next();const r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(s,r,(h,p,v)=>this._getEmbeddedViewArgs(h.item,v),h=>h.item.data,h=>{h.operation===t.Q3.INSERTED&&h.context&&this._renderCellTemplateForItem(h.record.item.rowDef,h.context)}),this._updateRowIndexContext(),s.forEachIdentityChange(h=>{r.get(h.currentIndex).context.$implicit=h.item.data}),this._updateNoDataRow(),(0,d.mal)(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(s){this._customColumnDefs.add(s)}removeColumnDef(s){this._customColumnDefs.delete(s)}addRowDef(s){this._customRowDefs.add(s)}removeRowDef(s){this._customRowDefs.delete(s)}addHeaderRowDef(s){this._customHeaderRowDefs.add(s),this._headerRowDefChanged=!0}removeHeaderRowDef(s){this._customHeaderRowDefs.delete(s),this._headerRowDefChanged=!0}addFooterRowDef(s){this._customFooterRowDefs.add(s),this._footerRowDefChanged=!0}removeFooterRowDef(s){this._customFooterRowDefs.delete(s),this._footerRowDefChanged=!0}setNoDataRow(s){this._customNoDataRow=s}updateStickyHeaderRowStyles(){const s=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const h=Ne(this._headerRowOutlet,"thead");h&&(h.style.display=s.length?"":"none")}const r=this._headerRowDefs.map(h=>h.sticky);this._stickyStyler.clearStickyPositioning(s,["top"]),this._stickyStyler.stickRows(s,r,"top"),this._headerRowDefs.forEach(h=>h.resetStickyChanged())}updateStickyFooterRowStyles(){const s=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const h=Ne(this._footerRowOutlet,"tfoot");h&&(h.style.display=s.length?"":"none")}const r=this._footerRowDefs.map(h=>h.sticky);this._stickyStyler.clearStickyPositioning(s,["bottom"]),this._stickyStyler.stickRows(s,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(h=>h.resetStickyChanged())}updateStickyColumnStyles(){const s=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),h=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...s,...r,...h],["left","right"]),this._stickyColumnStylesNeedReset=!1),s.forEach((p,v)=>{this._addStickyColumnStyles([p],this._headerRowDefs[v])}),this._rowDefs.forEach(p=>{const v=[];for(let D=0;D<r.length;D++)this._renderRows[D].rowDef===p&&v.push(r[D]);this._addStickyColumnStyles(v,p)}),h.forEach((p,v)=>{this._addStickyColumnStyles([p],this._footerRowDefs[v])}),Array.from(this._columnDefsByName.values()).forEach(p=>p.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){const s=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let h=0;h<this._data.length;h++){let p=this._data[h];const v=this._getRenderRowsForData(p,h,r.get(p));this._cachedRenderRowsMap.has(p)||this._cachedRenderRowsMap.set(p,new WeakMap);for(let D=0;D<v.length;D++){let F=v[D];const N=this._cachedRenderRowsMap.get(F.data);N.has(F.rowDef)?N.get(F.rowDef).push(F):N.set(F.rowDef,[F]),s.push(F)}}return s}_getRenderRowsForData(s,r,h){return this._getRowDefs(s,r).map(v=>{const D=h&&h.has(v)?h.get(v):[];if(D.length){const F=D.shift();return F.dataIndex=r,F}return{data:s,rowDef:v,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ce(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=Ce(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ce(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ce(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const s=this._rowDefs.filter(r=>!r.when);this._defaultRowDef=s[0]}_renderUpdatedColumns(){const s=(v,D)=>v||!!D.getColumnsDiff(),r=this._rowDefs.reduce(s,!1);r&&this._forceRenderDataRows();const h=this._headerRowDefs.reduce(s,!1);h&&this._forceRenderHeaderRows();const p=this._footerRowDefs.reduce(s,!1);return p&&this._forceRenderFooterRows(),r||h||p}_switchDataSource(s){this._data=[],(0,t.y4)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),s||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=s}_observeRenderChanges(){if(!this.dataSource)return;let s;(0,t.y4)(this.dataSource)?s=this.dataSource.connect(this):(0,M.A)(this.dataSource)?s=this.dataSource:Array.isArray(this.dataSource)&&(s=(0,re.of)(this.dataSource)),this._renderChangeSubscription=s.pipe((0,z.Q)(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((s,r)=>this._renderRow(this._headerRowOutlet,s,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((s,r)=>this._renderRow(this._footerRowOutlet,s,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(s,r){const h=Array.from(r.columns||[]).map(D=>this._columnDefsByName.get(D)),p=h.map(D=>D.sticky),v=h.map(D=>D.stickyEnd);this._stickyStyler.updateStickyColumns(s,p,v,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(s){const r=[];for(let h=0;h<s.viewContainer.length;h++){const p=s.viewContainer.get(h);r.push(p.rootNodes[0])}return r}_getRowDefs(s,r){if(1==this._rowDefs.length)return[this._rowDefs[0]];let h=[];if(this.multiTemplateDataRows)h=this._rowDefs.filter(p=>!p.when||p.when(r,s));else{let p=this._rowDefs.find(v=>v.when&&v.when(r,s))||this._defaultRowDef;p&&h.push(p)}return h}_getEmbeddedViewArgs(s,r){return{templateRef:s.rowDef.template,context:{$implicit:s.data},index:r}}_renderRow(s,r,h,p={}){const v=s.viewContainer.createEmbeddedView(r.template,p,h);return this._renderCellTemplateForItem(r,p),v}_renderCellTemplateForItem(s,r){for(let h of this._getCellTemplates(s))$.mostRecentCellOutlet&&$.mostRecentCellOutlet._viewContainer.createEmbeddedView(h,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const s=this._rowOutlet.viewContainer;for(let r=0,h=s.length;r<h;r++){const v=s.get(r).context;v.count=h,v.first=0===r,v.last=r===h-1,v.even=r%2==0,v.odd=!v.even,this.multiTemplateDataRows?(v.dataIndex=this._renderRows[r].dataIndex,v.renderIndex=r):v.index=this._renderRows[r].dataIndex}}_getCellTemplates(s){return s&&s.columns?Array.from(s.columns,r=>{const h=this._columnDefsByName.get(r);return s.extractCellTemplate(h)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const s=(r,h)=>r||h.hasStickyChanged();this._headerRowDefs.reduce(s,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(s,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(s,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Oe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,re.of)()).pipe((0,z.Q)(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(s){return s.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){const s=this._customNoDataRow||this._noDataRow;if(!s)return;const r=0===this._rowOutlet.viewContainer.length;if(r===this._isShowingNoDataRow)return;const h=this._noDataRowOutlet.viewContainer;if(r){const p=h.createEmbeddedView(s.templateRef),v=p.rootNodes[0];1===p.rootNodes.length&&v?.nodeType===this._document.ELEMENT_NODE&&(v.setAttribute("role","row"),v.classList.add(s._contentClassName))}else h.clear();this._isShowingNoDataRow=r,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(d._q3),d.rXU(d.gRc),d.rXU(d.aKT),d.kS0("role"),d.rXU(a.dS,8),d.rXU(k.qQ),d.rXU(w.OD),d.rXU(t.sL),d.rXU(J),d.rXU(oe.Xj),d.rXU(De,12),d.rXU(d.SKi,8))};static#t=this.\u0275cmp=d.VBU({type:l,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,h,p){if(1&r&&(d.wni(p,W,5),d.wni(p,U,5),d.wni(p,ue,5),d.wni(p,ie,5),d.wni(p,ce,5)),2&r){let v;d.mGM(v=d.lsd())&&(h._noDataRow=v.first),d.mGM(v=d.lsd())&&(h._contentColumnDefs=v),d.mGM(v=d.lsd())&&(h._contentRowDefs=v),d.mGM(v=d.lsd())&&(h._contentHeaderRowDefs=v),d.mGM(v=d.lsd())&&(h._contentFooterRowDefs=v)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,h){2&r&&d.AVh("cdk-table-fixed-layout",h.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",d.L39],fixedLayout:[2,"fixedLayout","fixedLayout",d.L39]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[d.Jv_([{provide:O,useExisting:l},{provide:t.sL,useClass:t.xn},{provide:J,useClass:we},{provide:De,useValue:null}]),d.GFd,d.aNF],ngContentSelectors:Me,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,h){1&r&&(d.NAR(ae),d.SdG(0),d.SdG(1,1),d.DNE(2,te,1,0)(3,L,7,0)(4,X,4,0)),2&r&&(d.R7$(2),d.vxM(h._isServer?2:-1),d.R7$(),d.vxM(h._isNativeHtmlTable?3:4))},dependencies:[ve,ge,G,I],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return l})();function Ce(l,_){return l.concat(Array.from(_))}function Ne(l,_){const s=_.toUpperCase();let r=l.viewContainer.element.nativeElement;for(;r;){const h=1===r.nodeType?r.nodeName:null;if(h===s)return r;if("TABLE"===h)break;r=r.parentNode}return null}let Pe=(()=>{class l{get name(){return this._name}set name(s){this._name=s,this._syncColumnDefName()}constructor(s,r){this._table=s,this._options=r,this.justify="start",this._options=r||{}}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((s,r)=>s[r])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const s=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(s):s[0].toUpperCase()+s.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}static#e=this.\u0275fac=function(r){return new(r||l)(d.rXU(Q,8),d.rXU(B,8))};static#t=this.\u0275cmp=d.VBU({type:l,selectors:[["cdk-text-column"]],viewQuery:function(r,h){if(1&r&&(d.GBs(U,7),d.GBs(Z,7),d.GBs(q,7)),2&r){let p;d.mGM(p=d.lsd())&&(h.columnDef=p.first),d.mGM(p=d.lsd())&&(h.cell=p.first),d.mGM(p=d.lsd())&&(h.headerCell=p.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},standalone:!0,features:[d.aNF],decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(r,h){1&r&&(d.qex(0,0),d.DNE(1,xe,2,3,"th",1)(2,x,2,3,"td",2),d.bVm())},dependencies:[U,q,ye,Z,de],encapsulation:2})}return l})(),je=(()=>{class l{static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275mod=d.$C({type:l});static#n=this.\u0275inj=d.G2t({imports:[oe.E9]})}return l})()},6353:(lt,Re,y)=>{y.r(Re),y.d(Re,{CdkPopoverEditCdkTableExample:()=>Ae,CdkPopoverEditCdkTableFlexExample:()=>I,CdkPopoverEditCellSpanVanillaTableExample:()=>Ne,CdkPopoverEditTabOutVanillaTableExample:()=>$e,CdkPopoverEditVanillaTableExample:()=>Be});var a=y(5024),t=y(4438),w=y(9417),oe=y(9928),k=y(7588),d=y(5887);function Se(l,_){if(1&l){const s=t.RV6();t.j41(0,"div",14)(1,"form",15,1),t.bIt("ngSubmit",function(){const h=t.eBV(s).$implicit,p=t.sdS(2),v=t.XpG();return t.Njj(v.onSubmitWeight(h,p))})("cdkEditControlPreservedFormValueChange",function(h){const p=t.eBV(s).$implicit,v=t.XpG();return t.Njj(v.preservedWeightValues.set(p,h))}),t.EFF(3," Edit b: "),t.nrm(4,"input",16)(5,"br"),t.j41(6,"button",17),t.EFF(7,"Confirm"),t.k0s(),t.j41(8,"button",18),t.EFF(9,"Revert"),t.k0s(),t.j41(10,"button",19),t.EFF(11,"Close"),t.k0s()()()}if(2&l){const s=_.$implicit,r=t.XpG();t.R7$(),t.Y8G("cdkEditControlPreservedFormValue",r.preservedWeightValues.get(s)),t.R7$(3),t.Y8G("ngModel",s.weight)}}function Y(l,_){1&l&&(t.j41(0,"cdk-header-cell"),t.EFF(1," No. "),t.k0s())}function M(l,_){if(1&l&&(t.j41(0,"cdk-cell"),t.EFF(1),t.k0s()),2&l){const s=_.$implicit;t.R7$(),t.SpI(" ",s.position," ")}}function re(l,_){1&l&&(t.j41(0,"cdk-header-cell"),t.EFF(1," Name "),t.k0s())}function z(l,_){if(1&l){const s=t.RV6();t.j41(0,"div",14)(1,"form",15,1),t.bIt("ngSubmit",function(){t.eBV(s);const h=t.sdS(2),p=t.XpG().$implicit,v=t.XpG();return t.Njj(v.onSubmitName(p,h))})("cdkEditControlPreservedFormValueChange",function(h){t.eBV(s);const p=t.XpG().$implicit,v=t.XpG();return t.Njj(v.preservedNameValues.set(p,h))}),t.EFF(3," Edit a: "),t.nrm(4,"input",22)(5,"br"),t.j41(6,"button",17),t.EFF(7,"Confirm"),t.k0s(),t.j41(8,"button",18),t.EFF(9,"Revert"),t.k0s(),t.j41(10,"button",19),t.EFF(11,"Close"),t.k0s()()()}if(2&l){const s=t.XpG().$implicit,r=t.XpG();t.R7$(),t.Y8G("cdkEditControlPreservedFormValue",r.preservedNameValues.get(s)),t.R7$(3),t.Y8G("ngModel",s.name)}}function ae(l,_){1&l&&(t.j41(0,"span")(1,"button",23),t.EFF(2,"Edit"),t.k0s()())}function Me(l,_){if(1&l&&(t.j41(0,"cdk-cell",20),t.EFF(1),t.DNE(2,z,12,2,"ng-template",null,2,t.C5r)(4,ae,3,0,"span",21),t.k0s()),2&l){const s=_.$implicit,r=t.sdS(3);t.Y8G("cdkPopoverEdit",r),t.R7$(),t.SpI(" ",s.name," ")}}function te(l,_){1&l&&(t.j41(0,"cdk-header-cell"),t.EFF(1," Weight "),t.k0s())}function L(l,_){1&l&&(t.j41(0,"span")(1,"button",23),t.EFF(2,"Edit"),t.k0s()())}function X(l,_){if(1&l&&(t.j41(0,"cdk-cell",24),t.EFF(1),t.DNE(2,L,3,0,"span",21),t.k0s()),2&l){const s=_.$implicit;t.XpG();const r=t.sdS(2);t.Y8G("cdkPopoverEdit",r)("cdkPopoverEditContext",s),t.R7$(),t.SpI(" ",s.weight," ")}}function xe(l,_){1&l&&(t.j41(0,"cdk-header-cell"),t.EFF(1," Symbol "),t.k0s())}function x(l,_){if(1&l&&(t.j41(0,"cdk-cell"),t.EFF(1),t.k0s()),2&l){const s=_.$implicit;t.R7$(),t.SpI(" ",s.symbol," ")}}function O(l,_){1&l&&t.nrm(0,"cdk-header-row")}function B(l,_){1&l&&t.nrm(0,"cdk-row")}function Z(l,_){if(1&l){const s=t.RV6();t.j41(0,"div",14)(1,"form",15,1),t.bIt("ngSubmit",function(){const h=t.eBV(s).$implicit,p=t.sdS(2),v=t.XpG();return t.Njj(v.onSubmitWeight(h,p))})("cdkEditControlPreservedFormValueChange",function(h){const p=t.eBV(s).$implicit,v=t.XpG();return t.Njj(v.preservedWeightValues.set(p,h))}),t.EFF(3," Edit b: "),t.nrm(4,"input",16)(5,"br"),t.j41(6,"button",17),t.EFF(7,"Confirm"),t.k0s(),t.j41(8,"button",18),t.EFF(9,"Revert and close"),t.k0s()()()}if(2&l){const s=_.$implicit,r=t.XpG();t.R7$(),t.Y8G("cdkEditControlPreservedFormValue",r.preservedWeightValues.get(s)),t.R7$(3),t.Y8G("ngModel",s.weight)}}function q(l,_){1&l&&(t.j41(0,"th",19),t.EFF(1," No. "),t.k0s())}function le(l,_){if(1&l&&(t.j41(0,"td",20),t.EFF(1),t.k0s()),2&l){const s=_.$implicit;t.R7$(),t.SpI(" ",s.position," ")}}function U(l,_){1&l&&(t.j41(0,"th",19),t.EFF(1," Name "),t.k0s())}function ne(l,_){if(1&l){const s=t.RV6();t.j41(0,"div",14)(1,"form",15,1),t.bIt("ngSubmit",function(){t.eBV(s);const h=t.sdS(2),p=t.XpG().$implicit,v=t.XpG();return t.Njj(v.onSubmitName(p,h))})("cdkEditControlPreservedFormValueChange",function(h){t.eBV(s);const p=t.XpG().$implicit,v=t.XpG();return t.Njj(v.preservedNameValues.set(p,h))}),t.EFF(3," Edit a: "),t.nrm(4,"input",23)(5,"br"),t.j41(6,"button",17),t.EFF(7,"Confirm"),t.k0s(),t.j41(8,"button",24),t.EFF(9,"Revert"),t.k0s(),t.j41(10,"button",25),t.EFF(11,"Close"),t.k0s()()()}if(2&l){const s=t.XpG().$implicit,r=t.XpG();t.R7$(),t.Y8G("cdkEditControlPreservedFormValue",r.preservedNameValues.get(s)),t.R7$(3),t.Y8G("ngModel",s.name)}}function ye(l,_){1&l&&(t.j41(0,"span")(1,"button",26),t.EFF(2,"Edit"),t.k0s()())}function Ee(l,_){if(1&l&&(t.j41(0,"td",21),t.EFF(1),t.DNE(2,ne,12,2,"ng-template",null,2,t.C5r)(4,ye,3,0,"span",22),t.k0s()),2&l){const s=_.$implicit,r=t.sdS(3);t.Y8G("cdkPopoverEdit",r),t.R7$(),t.SpI(" ",s.name," ")}}function de(l,_){1&l&&(t.j41(0,"th",19),t.EFF(1," Weight "),t.k0s())}function be(l,_){1&l&&(t.j41(0,"span")(1,"button",26),t.EFF(2,"Edit"),t.k0s()())}function J(l,_){if(1&l&&(t.j41(0,"td",27),t.EFF(1),t.DNE(2,be,3,0,"span",22),t.k0s()),2&l){const s=_.$implicit;t.XpG();const r=t.sdS(2);t.Y8G("cdkPopoverEdit",r)("cdkPopoverEditContext",s),t.R7$(),t.SpI(" ",s.weight," ")}}function we(l,_){1&l&&(t.j41(0,"th",19),t.EFF(1," Symbol "),t.k0s())}function Ie(l,_){if(1&l&&(t.j41(0,"td",20),t.EFF(1),t.k0s()),2&l){const s=_.$implicit;t.R7$(),t.SpI(" ",s.symbol," ")}}function ee(l,_){1&l&&t.nrm(0,"tr",28)}function ie(l,_){1&l&&t.nrm(0,"tr",29)}const ce=l=>({person:l,focus:"firstName"}),ue=()=>({after:2}),$=l=>({person:l,focus:"middleName"}),he=()=>({before:1,after:1}),ke=l=>({person:l,focus:"lastName"}),se=()=>({before:2});function W(l,_){if(1&l){const s=t.RV6();t.j41(0,"div",3)(1,"form",4,1),t.bIt("ngSubmit",function(){const h=t.eBV(s).$implicit,p=t.sdS(2),v=t.XpG();return t.Njj(v.onSubmit(h.person,p))})("cdkEditControlPreservedFormValueChange",function(h){const p=t.eBV(s).$implicit,v=t.XpG();return t.Njj(v.preservedValues.set(p.person,h))}),t.j41(3,"div",5),t.nrm(4,"input",6)(5,"input",7)(6,"input",8),t.k0s(),t.nrm(7,"br")(8,"br"),t.j41(9,"button",9),t.EFF(10,"Confirm"),t.k0s(),t.j41(11,"button",10),t.EFF(12,"Revert"),t.k0s(),t.j41(13,"button",11),t.EFF(14,"Close"),t.k0s()()()}if(2&l){const s=_.$implicit,r=t.XpG();t.R7$(),t.Y8G("cdkEditControlPreservedFormValue",r.preservedValues.get(s.person)),t.R7$(3),t.Y8G("ngModel",s.person.firstName),t.BMQ("cdkFocusInitial","firstName"===s.focus||null),t.R7$(),t.Y8G("ngModel",s.person.middleName),t.BMQ("cdkFocusInitial","middleName"===s.focus||null),t.R7$(),t.Y8G("ngModel",s.person.lastName),t.BMQ("cdkFocusInitial","lastName"===s.focus||null)}}function fe(l,_){1&l&&(t.j41(0,"span")(1,"button",14),t.EFF(2,"Edit"),t.k0s()())}function Oe(l,_){1&l&&(t.j41(0,"span")(1,"button",14),t.EFF(2,"Edit"),t.k0s()())}function me(l,_){1&l&&(t.j41(0,"span")(1,"button",14),t.EFF(2,"Edit"),t.k0s()())}function pe(l,_){if(1&l&&(t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td",12),t.EFF(4),t.DNE(5,fe,3,0,"span",13),t.k0s(),t.j41(6,"td",12),t.EFF(7),t.DNE(8,Oe,3,0,"span",13),t.k0s(),t.j41(9,"td",12),t.EFF(10),t.DNE(11,me,3,0,"span",13),t.k0s()()),2&l){const s=_.$implicit;t.XpG();const r=t.sdS(2);t.R7$(2),t.SpI(" ",s.id," "),t.R7$(),t.Y8G("cdkPopoverEdit",r)("cdkPopoverEditContext",t.eq3(13,ce,s))("cdkPopoverEditColspan",t.lJ4(15,ue)),t.R7$(),t.SpI(" ",s.firstName," "),t.R7$(2),t.Y8G("cdkPopoverEdit",r)("cdkPopoverEditContext",t.eq3(16,$,s))("cdkPopoverEditColspan",t.lJ4(18,he)),t.R7$(),t.SpI(" ",s.middleName," "),t.R7$(2),t.Y8G("cdkPopoverEdit",r)("cdkPopoverEditContext",t.eq3(19,ke,s))("cdkPopoverEditColspan",t.lJ4(21,se)),t.R7$(),t.SpI(" ",s.lastName," ")}}function Ge(l,_){if(1&l){const s=t.RV6();t.j41(0,"div",4)(1,"form",5,1),t.bIt("ngSubmit",function(){const h=t.eBV(s).$implicit,p=t.sdS(2),v=t.XpG();return t.Njj(v.onSubmitWeight(h,p))})("cdkEditControlPreservedFormValueChange",function(h){const p=t.eBV(s).$implicit,v=t.XpG();return t.Njj(v.preservedWeightValues.set(p,h))}),t.nrm(3,"input",6),t.k0s()()}if(2&l){const s=_.$implicit,r=t.XpG();t.R7$(),t.Y8G("cdkEditControlPreservedFormValue",r.preservedWeightValues.get(s)),t.R7$(2),t.Y8G("ngModel",s.weight)}}function K(l,_){if(1&l){const s=t.RV6();t.j41(0,"div",4)(1,"form",5,1),t.bIt("ngSubmit",function(){t.eBV(s);const h=t.sdS(2),p=t.XpG().$implicit,v=t.XpG();return t.Njj(v.onSubmitName(p,h))})("cdkEditControlPreservedFormValueChange",function(h){t.eBV(s);const p=t.XpG().$implicit,v=t.XpG();return t.Njj(v.preservedNameValues.set(p,h))}),t.nrm(3,"input",9)(4,"br"),t.j41(5,"button",10),t.EFF(6,"Confirm"),t.k0s()()()}if(2&l){const s=t.XpG().$implicit,r=t.XpG();t.R7$(),t.Y8G("cdkEditControlPreservedFormValue",r.preservedNameValues.get(s)),t.R7$(2),t.Y8G("ngModel",s.name)}}function _e(l,_){if(1&l&&(t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td",7),t.EFF(4),t.DNE(5,K,7,2,"ng-template",null,2,t.C5r),t.k0s(),t.j41(7,"td",8),t.EFF(8),t.k0s(),t.j41(9,"td"),t.EFF(10),t.k0s()()),2&l){const s=_.$implicit,r=t.sdS(6);t.XpG();const h=t.sdS(2);t.R7$(2),t.SpI(" ",s.position," "),t.R7$(),t.Y8G("cdkPopoverEdit",r),t.R7$(),t.SpI(" ",s.name," "),t.R7$(3),t.Y8G("cdkPopoverEdit",h)("cdkPopoverEditContext",s),t.R7$(),t.SpI(" ",s.weight," "),t.R7$(2),t.SpI(" ",s.symbol," ")}}function R(l,_){if(1&l){const s=t.RV6();t.j41(0,"div",4)(1,"form",5,1),t.bIt("ngSubmit",function(){const h=t.eBV(s).$implicit,p=t.sdS(2),v=t.XpG();return t.Njj(v.onSubmitWeight(h,p))})("cdkEditControlPreservedFormValueChange",function(h){const p=t.eBV(s).$implicit,v=t.XpG();return t.Njj(v.preservedWeightValues.set(p,h))}),t.EFF(3," Edit b: "),t.nrm(4,"input",6)(5,"br"),t.j41(6,"button",7),t.EFF(7,"Confirm"),t.k0s(),t.j41(8,"button",8),t.EFF(9,"Revert"),t.k0s(),t.j41(10,"button",9),t.EFF(11,"Close"),t.k0s()()()}if(2&l){const s=_.$implicit,r=t.XpG();t.R7$(),t.Y8G("cdkEditControlPreservedFormValue",r.preservedWeightValues.get(s)),t.R7$(3),t.Y8G("ngModel",s.weight)}}function j(l,_){if(1&l){const s=t.RV6();t.j41(0,"div",4)(1,"form",5,1),t.bIt("ngSubmit",function(){t.eBV(s);const h=t.sdS(2),p=t.XpG().$implicit,v=t.XpG();return t.Njj(v.onSubmitName(p,h))})("cdkEditControlPreservedFormValueChange",function(h){t.eBV(s);const p=t.XpG().$implicit,v=t.XpG();return t.Njj(v.preservedNameValues.set(p,h))}),t.EFF(3," Edit a: "),t.nrm(4,"input",13)(5,"br"),t.j41(6,"button",7),t.EFF(7,"Confirm"),t.k0s(),t.j41(8,"button",8),t.EFF(9,"Revert"),t.k0s(),t.j41(10,"button",9),t.EFF(11,"Close"),t.k0s()()()}if(2&l){const s=t.XpG().$implicit,r=t.XpG();t.R7$(),t.Y8G("cdkEditControlPreservedFormValue",r.preservedNameValues.get(s)),t.R7$(3),t.Y8G("ngModel",s.name)}}function Te(l,_){1&l&&(t.j41(0,"span")(1,"button",14),t.EFF(2,"Edit"),t.k0s()())}function De(l,_){1&l&&(t.j41(0,"span")(1,"button",14),t.EFF(2,"Edit"),t.k0s()())}function T(l,_){if(1&l&&(t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td",10),t.EFF(4),t.DNE(5,j,12,2,"ng-template",null,2,t.C5r)(7,Te,3,0,"span",11),t.k0s(),t.j41(8,"td",12),t.EFF(9),t.DNE(10,De,3,0,"span",11),t.k0s(),t.j41(11,"td"),t.EFF(12),t.k0s()()),2&l){const s=_.$implicit,r=t.sdS(6);t.XpG();const h=t.sdS(2);t.R7$(2),t.SpI(" ",s.position," "),t.R7$(),t.Y8G("cdkPopoverEdit",r),t.R7$(),t.SpI(" ",s.name," "),t.R7$(4),t.Y8G("cdkPopoverEdit",h)("cdkPopoverEditContext",s),t.R7$(),t.SpI(" ",s.weight," "),t.R7$(3),t.SpI(" ",s.symbol," ")}}const ve=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let I=(()=>{class l{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=new G,this.preservedNameValues=new WeakMap,this.preservedWeightValues=new WeakMap}onSubmitName(s,r){r.valid&&(s.name=r.value.name)}onSubmitWeight(s,r){r.valid&&(s.weight=r.value.weight)}static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-popover-edit-cdk-table-flex-example"]],standalone:!0,features:[t.aNF],decls:17,vars:3,consts:[["weightEdit",""],["f","ngForm"],["nameEdit",""],["editable","",1,"example-table",3,"dataSource"],["cdkColumnDef","position"],[4,"cdkHeaderCellDef"],[4,"cdkCellDef"],["cdkColumnDef","name"],[3,"cdkPopoverEdit",4,"cdkCellDef"],["cdkColumnDef","weight"],[3,"cdkPopoverEdit","cdkPopoverEditContext",4,"cdkCellDef"],["cdkColumnDef","symbol"],[4,"cdkHeaderRowDef"],[4,"cdkRowDef","cdkRowDefColumns"],[2,"background-color","white"],["cdkEditControl","",3,"ngSubmit","cdkEditControlPreservedFormValueChange","cdkEditControlPreservedFormValue"],["type","number","name","weight","required","",3,"ngModel"],["type","submit"],["cdkEditRevert",""],["cdkEditClose",""],[3,"cdkPopoverEdit"],[4,"cdkRowHoverContent"],["name","name","required","",3,"ngModel"],["cdkEditOpen",""],[3,"cdkPopoverEdit","cdkPopoverEditContext"]],template:function(r,h){1&r&&(t.j41(0,"cdk-table",3),t.DNE(1,Se,12,2,"ng-template",null,0,t.C5r),t.qex(3,4),t.DNE(4,Y,2,0,"cdk-header-cell",5)(5,M,2,1,"cdk-cell",6),t.bVm(),t.qex(6,7),t.DNE(7,re,2,0,"cdk-header-cell",5)(8,Me,5,2,"cdk-cell",8),t.bVm(),t.qex(9,9),t.DNE(10,te,2,0,"cdk-header-cell",5)(11,X,3,3,"cdk-cell",10),t.bVm(),t.qex(12,11),t.DNE(13,xe,2,0,"cdk-header-cell",5)(14,x,2,1,"cdk-cell",6),t.bVm(),t.DNE(15,O,1,0,"cdk-header-row",12)(16,B,1,0,"cdk-row",13),t.k0s()),2&r&&(t.Y8G("dataSource",h.dataSource),t.R7$(15),t.Y8G("cdkHeaderRowDef",h.displayedColumns),t.R7$(),t.Y8G("cdkRowDefColumns",h.displayedColumns))},dependencies:[d.N0,d.Rk,d.oh,d.cO,d.n5,d.AL,d.VP,d.hc,d.sY,d.wA,d.hi,k.Yz,k.A5,k.k4,k.EN,k.ZW,k.Lt,k.vg,k.pd,w.YN,w.qT,w.me,w.Q0,w.BC,w.cb,w.YS,w.vS,w.cV],styles:["\n\n\n\n.example-table[_ngcontent-%COMP%] cdk-row[_ngcontent-%COMP%], cdk-header-row[_ngcontent-%COMP%], cdk-footer-row[_ngcontent-%COMP%] {\n display: flex;\n}\n\n.example-table[_ngcontent-%COMP%] cdk-cell[_ngcontent-%COMP%], cdk-header-cell[_ngcontent-%COMP%], cdk-footer-cell[_ngcontent-%COMP%] {\n flex: 1;\n}"]})}return l})();class G extends a.qS{constructor(){super(...arguments),this.data=new oe.t(ve)}connect(){return this.data}disconnect(){}}const Xe=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let Ae=(()=>{class l{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=new Q,this.preservedNameValues=new WeakMap,this.preservedWeightValues=new WeakMap}onSubmitName(s,r){r.valid&&(s.name=r.value.name)}onSubmitWeight(s,r){r.valid&&(s.weight=r.value.weight)}static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-popover-edit-cdk-table-example"]],standalone:!0,features:[t.aNF],decls:17,vars:3,consts:[["weightEdit",""],["f","ngForm"],["nameEdit",""],["cdk-table","","editable","",1,"example-table",3,"dataSource"],["cdkColumnDef","position"],["cdk-header-cell","",4,"cdkHeaderCellDef"],["cdk-cell","",4,"cdkCellDef"],["cdkColumnDef","name"],["cdk-cell","",3,"cdkPopoverEdit",4,"cdkCellDef"],["cdkColumnDef","weight"],["cdk-cell","",3,"cdkPopoverEdit","cdkPopoverEditContext",4,"cdkCellDef"],["cdkColumnDef","symbol"],["cdk-header-row","",4,"cdkHeaderRowDef"],["cdk-row","",4,"cdkRowDef","cdkRowDefColumns"],[2,"background-color","white"],["cdkEditControl","",3,"ngSubmit","cdkEditControlPreservedFormValueChange","cdkEditControlPreservedFormValue"],["type","number","name","weight","required","",3,"ngModel"],["type","submit"],["cdkEditRevert","","cdkEditClose",""],["cdk-header-cell",""],["cdk-cell",""],["cdk-cell","",3,"cdkPopoverEdit"],[4,"cdkRowHoverContent"],["name","name","required","",3,"ngModel"],["cdkEditRevert",""],["cdkEditClose",""],["cdkEditOpen",""],["cdk-cell","",3,"cdkPopoverEdit","cdkPopoverEditContext"],["cdk-header-row",""],["cdk-row",""]],template:function(r,h){1&r&&(t.j41(0,"table",3),t.DNE(1,Z,10,2,"ng-template",null,0,t.C5r),t.qex(3,4),t.DNE(4,q,2,0,"th",5)(5,le,2,1,"td",6),t.bVm(),t.qex(6,7),t.DNE(7,U,2,0,"th",5)(8,Ee,5,2,"td",8),t.bVm(),t.qex(9,9),t.DNE(10,de,2,0,"th",5)(11,J,3,3,"td",10),t.bVm(),t.qex(12,11),t.DNE(13,we,2,0,"th",5)(14,Ie,2,1,"td",6),t.bVm(),t.DNE(15,ee,1,0,"tr",12)(16,ie,1,0,"tr",13),t.k0s()),2&r&&(t.Y8G("dataSource",h.dataSource),t.R7$(15),t.Y8G("cdkHeaderRowDef",h.displayedColumns),t.R7$(),t.Y8G("cdkRowDefColumns",h.displayedColumns))},dependencies:[d.N0,d.Rk,d.oh,d.cO,d.n5,d.AL,d.VP,d.hc,d.sY,d.wA,d.hi,k.Yz,k.A5,k.k4,k.EN,k.ZW,k.Lt,k.vg,k.pd,w.YN,w.qT,w.me,w.Q0,w.BC,w.cb,w.YS,w.vS,w.cV],styles:[".example-table[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.example-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n text-align: left;\n}\n\n.example-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], \n.example-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n width: 25%;\n}"]})}return l})();class Q extends a.qS{constructor(){super(...arguments),this.data=new oe.t(Xe)}connect(){return this.data}disconnect(){}}const Ce=[{id:1,firstName:"Terra",middleName:"Maduin",lastName:"Branford"},{id:2,firstName:"Locke",middleName:"",lastName:"Cole"},{id:3,firstName:"Celes",middleName:"Gestahl",lastName:"Chere"},{id:4,firstName:"Edgar",middleName:"Roni",lastName:"Figaro"},{id:5,firstName:"Sabin",middleName:"Rene",lastName:"Figaro"},{id:6,firstName:"Clyde",middleName:'"Shadow"',lastName:"Arrowny"},{id:7,firstName:"Setzer",middleName:"",lastName:"Gabbiani"},{id:8,firstName:"Cid",middleName:"Del Norte",lastName:"Marquez"},{id:9,firstName:"Mog",middleName:"",lastName:"McMoogle"}];let Ne=(()=>{class l{constructor(){this.preservedValues=new WeakMap,this.persons=Ce}onSubmit(s,r){r.valid&&(s.firstName=r.value.firstName,s.middleName=r.value.middleName,s.lastName=r.value.lastName)}static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-popover-edit-cell-span-vanilla-table-example"]],standalone:!0,features:[t.aNF],decls:14,vars:0,consts:[["nameEdit",""],["f","ngForm"],["editable","",1,"example-table"],[2,"background-color","#ddd","width","100%"],["cdkEditControl","",3,"ngSubmit","cdkEditControlPreservedFormValueChange","cdkEditControlPreservedFormValue"],[1,"example-input-container"],["name","firstName","required","",3,"ngModel"],["name","middleName",3,"ngModel"],["name","lastName","required","",3,"ngModel"],["type","submit"],["cdkEditRevert",""],["cdkEditClose",""],[3,"cdkPopoverEdit","cdkPopoverEditContext","cdkPopoverEditColspan"],[4,"cdkRowHoverContent"],["cdkEditOpen",""]],template:function(r,h){1&r&&(t.j41(0,"table",2),t.DNE(1,W,15,7,"ng-template",null,0,t.C5r),t.j41(3,"tr")(4,"th"),t.EFF(5," No. "),t.k0s(),t.j41(6,"th"),t.EFF(7," First name "),t.k0s(),t.j41(8,"th"),t.EFF(9," Middle name "),t.k0s(),t.j41(10,"th"),t.EFF(11," Last name "),t.k0s()(),t.Z7z(12,pe,12,22,"tr",null,t.fX1),t.k0s()),2&r&&(t.R7$(12),t.Dyx(h.persons))},dependencies:[k.Yz,k.A5,k.k4,k.EN,k.ZW,k.Lt,k.vg,k.pd,w.YN,w.qT,w.me,w.BC,w.cb,w.YS,w.vS,w.cV],styles:[".example-table[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.example-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n text-align: left;\n}\n\n.example-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], \n.example-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n min-width: 300px;\n width: 25%;\n}\n\n.example-input-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: stretch;\n}\n\n.example-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n flex: 1;\n font-size: 14px;\n}"]})}return l})();const Pe=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let $e=(()=>{class l{constructor(){this.preservedNameValues=new WeakMap,this.preservedWeightValues=new WeakMap,this.elements=Pe}onSubmitName(s,r){r.valid&&(s.name=r.value.name)}onSubmitWeight(s,r){r.valid&&(s.weight=r.value.weight)}static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-popover-edit-tab-out-vanilla-table-example"]],standalone:!0,features:[t.aNF],decls:14,vars:0,consts:[["weightEdit",""],["f","ngForm"],["nameEdit",""],["editable","",1,"example-table"],[2,"background-color","white","width","100%"],["cdkEditControl","","cdkEditControlClickOutBehavior","submit",3,"ngSubmit","cdkEditControlPreservedFormValueChange","cdkEditControlPreservedFormValue"],["type","number","name","weight","required","",3,"ngModel"],["cdkPopoverEditTabOut","","cdkEditOpen","",3,"cdkPopoverEdit"],["cdkPopoverEditTabOut","","cdkEditOpen","",3,"cdkPopoverEdit","cdkPopoverEditContext"],["name","name","required","",3,"ngModel"],["type","submit"]],template:function(r,h){1&r&&(t.j41(0,"table",3),t.DNE(1,Ge,4,2,"ng-template",null,0,t.C5r),t.j41(3,"tr")(4,"th"),t.EFF(5," No. "),t.k0s(),t.j41(6,"th"),t.EFF(7," Name "),t.k0s(),t.j41(8,"th"),t.EFF(9," Weight "),t.k0s(),t.j41(10,"th"),t.EFF(11," Symbol "),t.k0s()(),t.Z7z(12,_e,11,7,"tr",null,t.fX1),t.k0s()),2&r&&(t.R7$(12),t.Dyx(h.elements))},dependencies:[k.Yz,k.bZ,k.EN,k.vg,k.pd,w.YN,w.qT,w.me,w.Q0,w.BC,w.cb,w.YS,w.vS,w.cV],styles:[".example-table[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.example-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n text-align: left;\n}\n\n.example-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], \n.example-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n min-width: 300px;\n width: 25%;\n}"]})}return l})();const je=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let Be=(()=>{class l{constructor(){this.preservedNameValues=new WeakMap,this.preservedWeightValues=new WeakMap,this.elements=je}onSubmitName(s,r){r.valid&&(s.name=r.value.name)}onSubmitWeight(s,r){r.valid&&(s.weight=r.value.weight)}static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-popover-edit-vanilla-table-example"]],standalone:!0,features:[t.aNF],decls:14,vars:0,consts:[["weightEdit",""],["f","ngForm"],["nameEdit",""],["editable","",1,"example-table"],[2,"background-color","white","width","100%"],["cdkEditControl","",3,"ngSubmit","cdkEditControlPreservedFormValueChange","cdkEditControlPreservedFormValue"],["type","number","name","weight","required","",3,"ngModel"],["type","submit"],["cdkEditRevert",""],["cdkEditClose",""],[3,"cdkPopoverEdit"],[4,"cdkRowHoverContent"],[3,"cdkPopoverEdit","cdkPopoverEditContext"],["name","name","required","",3,"ngModel"],["cdkEditOpen",""]],template:function(r,h){1&r&&(t.j41(0,"table",3),t.DNE(1,R,12,2,"ng-template",null,0,t.C5r),t.j41(3,"tr")(4,"th"),t.EFF(5," No. "),t.k0s(),t.j41(6,"th"),t.EFF(7," Name "),t.k0s(),t.j41(8,"th"),t.EFF(9," Weight "),t.k0s(),t.j41(10,"th"),t.EFF(11," Symbol "),t.k0s()(),t.Z7z(12,T,13,7,"tr",null,t.fX1),t.k0s()),2&r&&(t.R7$(12),t.Dyx(h.elements))},dependencies:[k.Yz,k.A5,k.k4,k.EN,k.ZW,k.Lt,k.vg,k.pd,w.YN,w.qT,w.me,w.Q0,w.BC,w.cb,w.YS,w.vS,w.cV],styles:[".example-table[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.example-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n text-align: left;\n}\n\n.example-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], \n.example-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n min-width: 300px;\n width: 25%;\n}"]})}return l})()},9417:(lt,Re,y)=>{y.d(Re,{BC:()=>ge,JD:()=>yt,MJ:()=>Ye,MR:()=>pt,Q0:()=>mt,X1:()=>Nn,YN:()=>An,YS:()=>rt,ZU:()=>R,Zm:()=>z,cV:()=>it,cb:()=>ve,cz:()=>x,gE:()=>Ke,j4:()=>st,k0:()=>Z,kq:()=>M,l_:()=>gt,me:()=>L,ok:()=>Tn,qT:()=>Nt,vO:()=>j,vS:()=>ft,wz:()=>ot,xH:()=>It,xq:()=>bt,y7:()=>jt});var a=y(4438),t=y(177),w=y(4787),oe=y(696),k=y(5286),d=y(5006);let Se=(()=>{class n{constructor(e,o){this._renderer=e,this._elementRef=o,this.onChange=c=>{},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)}static#e=this.\u0275fac=function(o){return new(o||n)(a.rXU(a.sFG),a.rXU(a.aKT))};static#t=this.\u0275dir=a.FsC({type:n})}return n})(),Y=(()=>{class n extends Se{static#e=this.\u0275fac=(()=>{let e;return function(c){return(e||(e=a.xGo(n)))(c||n)}})();static#t=this.\u0275dir=a.FsC({type:n,features:[a.Vt3]})}return n})();const M=new a.nKC(""),re={provide:M,useExisting:(0,a.Rfq)(()=>z),multi:!0};let z=(()=>{class n extends Y{writeValue(e){this.setProperty("checked",e)}static#e=this.\u0275fac=(()=>{let e;return function(c){return(e||(e=a.xGo(n)))(c||n)}})();static#t=this.\u0275dir=a.FsC({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,c){1&o&&a.bIt("change",function(V){return c.onChange(V.target.checked)})("blur",function(){return c.onTouched()})},features:[a.Jv_([re]),a.Vt3]})}return n})();const ae={provide:M,useExisting:(0,a.Rfq)(()=>L),multi:!0},te=new a.nKC("");let L=(()=>{class n extends Se{constructor(e,o,c){super(e,o),this._compositionMode=c,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Me(){const n=(0,t.QT)()?(0,t.QT)().getUserAgent():"";return/android (\d+)/.test(n.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)}static#e=this.\u0275fac=function(o){return new(o||n)(a.rXU(a.sFG),a.rXU(a.aKT),a.rXU(te,8))};static#t=this.\u0275dir=a.FsC({type:n,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(o,c){1&o&&a.bIt("input",function(V){return c._handleInput(V.target.value)})("blur",function(){return c.onTouched()})("compositionstart",function(){return c._compositionStart()})("compositionend",function(V){return c._compositionEnd(V.target.value)})},features:[a.Jv_([ae]),a.Vt3]})}return n})();function X(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function xe(n){return null!=n&&"number"==typeof n.length}const x=new a.nKC(""),O=new a.nKC(""),B=/^(?=.{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 Z{static min(i){return function q(n){return i=>{if(X(i.value)||X(n))return null;const e=parseFloat(i.value);return!isNaN(e)&&e<n?{min:{min:n,actual:i.value}}:null}}(i)}static max(i){return function le(n){return i=>{if(X(i.value)||X(n))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>n?{max:{max:n,actual:i.value}}:null}}(i)}static required(i){return U(i)}static requiredTrue(i){return ne(i)}static email(i){return function ye(n){return X(n.value)||B.test(n.value)?null:{email:!0}}(i)}static minLength(i){return function Ee(n){return i=>X(i.value)||!xe(i.value)?null:i.value.length<n?{minlength:{requiredLength:n,actualLength:i.value.length}}:null}(i)}static maxLength(i){return function de(n){return i=>xe(i.value)&&i.value.length>n?{maxlength:{requiredLength:n,actualLength:i.value.length}}:null}(i)}static pattern(i){return function be(n){if(!n)return J;let i,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),i=new RegExp(e)):(e=n.toString(),i=n),o=>{if(X(o.value))return null;const c=o.value;return i.test(c)?null:{pattern:{requiredPattern:e,actualValue:c}}}}(i)}static nullValidator(i){return null}static compose(i){return $(i)}static composeAsync(i){return ke(i)}}function U(n){return X(n.value)?{required:!0}:null}function ne(n){return!0===n.value?null:{required:!0}}function J(n){return null}function we(n){return null!=n}function Ie(n){return(0,a.jNT)(n)?(0,w.H)(n):n}function ee(n){let i={};return n.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function ie(n,i){return i.map(e=>e(n))}function ue(n){return n.map(i=>function ce(n){return!n.validate}(i)?i:e=>i.validate(e))}function $(n){if(!n)return null;const i=n.filter(we);return 0==i.length?null:function(e){return ee(ie(e,i))}}function he(n){return null!=n?$(ue(n)):null}function ke(n){if(!n)return null;const i=n.filter(we);return 0==i.length?null:function(e){const o=ie(e,i).map(Ie);return(0,oe.p)(o).pipe((0,d.T)(ee))}}function se(n){return null!=n?ke(ue(n)):null}function W(n,i){return null===n?[i]:Array.isArray(n)?[...n,i]:[n,i]}function fe(n){return n._rawValidators}function Oe(n){return n._rawAsyncValidators}function me(n){return n?Array.isArray(n)?n:[n]:[]}function pe(n,i){return Array.isArray(n)?n.includes(i):n===i}function Ge(n,i){const e=me(i);return me(n).forEach(c=>{pe(e,c)||e.push(c)}),e}function K(n,i){return me(i).filter(e=>!pe(n,e))}class _e{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(i){this._rawValidators=i||[],this._composedValidatorFn=he(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=se(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_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)}getError(i,e){return this.control?this.control.getError(i,e):null}}class R extends _e{get formDirective(){return null}get path(){return null}}class j extends _e{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Te{constructor(i){this._cd=i}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 ge=(()=>{class n extends Te{constructor(e){super(e)}static#e=this.\u0275fac=function(o){return new(o||n)(a.rXU(j,2))};static#t=this.\u0275dir=a.FsC({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,c){2&o&&a.AVh("ng-untouched",c.isUntouched)("ng-touched",c.isTouched)("ng-pristine",c.isPristine)("ng-dirty",c.isDirty)("ng-valid",c.isValid)("ng-invalid",c.isInvalid)("ng-pending",c.isPending)},features:[a.Vt3]})}return n})(),ve=(()=>{class n extends Te{constructor(e){super(e)}static#e=this.\u0275fac=function(o){return new(o||n)(a.rXU(R,10))};static#t=this.\u0275dir=a.FsC({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,c){2&o&&a.AVh("ng-untouched",c.isUntouched)("ng-touched",c.isTouched)("ng-pristine",c.isPristine)("ng-dirty",c.isDirty)("ng-valid",c.isValid)("ng-invalid",c.isInvalid)("ng-pending",c.isPending)("ng-submitted",c.isSubmitted)},features:[a.Vt3]})}return n})();const D="VALID",F="INVALID",N="PENDING",S="DISABLED";class P{}class H extends P{constructor(i,e){super(),this.value=i,this.source=e}}class m extends P{constructor(i,e){super(),this.pristine=i,this.source=e}}class C extends P{constructor(i,e){super(),this.touched=i,this.source=e}}class u extends P{constructor(i,e){super(),this.status=i,this.source=e}}class f extends P{constructor(i){super(),this.source=i}}class g extends P{constructor(i){super(),this.source=i}}function b(n){return(Ve(n)?n.validators:n)||null}function Ue(n,i){return(Ve(i)?i.asyncValidators:n)||null}function Ve(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function kt(n,i,e){const o=n.controls;if(!(i?Object.keys(o):o).length)throw new a.wOt(1e3,"");if(!o[e])throw new a.wOt(1001,"")}function Dt(n,i,e){n._forEachChild((o,c)=>{if(void 0===e[c])throw new a.wOt(1002,"")})}class qe{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new k.B7,this.events=this._events.asObservable(),this._onDisabledChange=[],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 valid(){return this.status===D}get invalid(){return this.status===F}get pending(){return this.status==N}get disabled(){return this.status===S}get enabled(){return this.status!==S}get dirty(){return!this.pristine}get untouched(){return!this.touched}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(Ge(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(Ge(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(K(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(K(i,this._rawAsyncValidators))}hasValidator(i){return pe(this._rawValidators,i)}hasAsyncValidator(i){return pe(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){const e=!1===this.touched;this.touched=!0;const o=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched({...i,sourceControl:o}),e&&!1!==i.emitEvent&&this._events.next(new C(!0,o))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){const e=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const o=i.sourceControl??this;this._forEachChild(c=>{c.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:o})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,o),e&&!1!==i.emitEvent&&this._events.next(new C(!1,o))}markAsDirty(i={}){const e=!0===this.pristine;this.pristine=!1;const o=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty({...i,sourceControl:o}),e&&!1!==i.emitEvent&&this._events.next(new m(!1,o))}markAsPristine(i={}){const e=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const o=i.sourceControl??this;this._forEachChild(c=>{c.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,o),e&&!1!==i.emitEvent&&this._events.next(new m(!0,o))}markAsPending(i={}){this.status=N;const e=i.sourceControl??this;!1!==i.emitEvent&&(this._events.next(new u(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending({...i,sourceControl:e})}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=S,this.errors=null,this._forEachChild(c=>{c.disable({...i,onlySelf:!0})}),this._updateValue();const o=i.sourceControl??this;!1!==i.emitEvent&&(this._events.next(new H(this.value,o)),this._events.next(new u(this.status,o)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e},this),this._onDisabledChange.forEach(c=>c(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=D,this._forEachChild(o=>{o.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e},this),this._onDisabledChange.forEach(o=>o(!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){const o=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===D||this.status===N)&&this._runAsyncValidator(o,i.emitEvent)}const e=i.sourceControl??this;!1!==i.emitEvent&&(this._events.next(new H(this.value,e)),this._events.next(new u(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity({...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()?S:D}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=N,this._hasOwnPendingAsyncValidator={emitEvent:!1!==e};const o=Ie(this.asyncValidator(this));this._asyncValidationSubscription=o.subscribe(c=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(c,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent,this,e.shouldHaveEmitted)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((o,c)=>o&&o._find(c),this)}getError(i,e){const o=e?this.get(e):this;return o&&o.errors?o.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,o){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||o)&&this._events.next(new u(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,o)}_initObservables(){this.valueChanges=new a.bkB,this.statusChanges=new a.bkB}_calculateStatus(){return this._allControlsDisabled()?S:this.errors?F:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(N)?N:this._anyControlsHaveStatus(F)?F:D}_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){const o=!this._anyControlsDirty(),c=this.pristine!==o;this.pristine=o,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),c&&this._events.next(new m(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new C(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Ve(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function A(n){return Array.isArray(n)?he(n):n||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function We(n){return Array.isArray(n)?se(n):n||null}(this._rawAsyncValidators)}}class Ke extends qe{constructor(i,e,o){super(b(e),Ue(o,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,o={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:o.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,o={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){Dt(this,0,i),Object.keys(i).forEach(o=>{kt(this,!0,o),this.controls[o].setValue(i[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(o=>{const c=this.controls[o];c&&c.patchValue(i[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((o,c)=>{o.reset(i?i[c]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,o)=>(i[o]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,o)=>!!o._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const o=this.controls[e];o&&i(o,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[e,o]of Object.entries(this.controls))if(this.contains(e)&&i(o))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,o,c)=>((o.enabled||this.disabled)&&(e[c]=o.value),e))}_reduceChildren(i,e){let o=i;return this._forEachChild((c,E)=>{o=e(o,c,E)}),o}_allControlsDisabled(){for(const 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}}class Vt extends Ke{}const He=new a.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ze}),ze="always";function Je(n,i){return[...i.path,n]}function Qe(n,i,e=ze){dt(n,i),i.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(n.disabled),function en(n,i){i.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Ft(n,i)})}(n,i),function nn(n,i){const e=(o,c)=>{i.valueAccessor.writeValue(o),c&&i.viewToModelUpdate(o)};n.registerOnChange(e),i._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,i),function tn(n,i){i.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Ft(n,i),"submit"!==n.updateOn&&n.markAsTouched()})}(n,i),function Jt(n,i){if(i.valueAccessor.setDisabledState){const e=o=>{i.valueAccessor.setDisabledState(o)};n.registerOnDisabledChange(e),i._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,i)}function et(n,i,e=!0){const o=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(o),i.valueAccessor.registerOnTouched(o)),nt(n,i),n&&(i._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function tt(n,i){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function dt(n,i){const e=fe(n);null!==i.validator?n.setValidators(W(e,i.validator)):"function"==typeof e&&n.setValidators([e]);const o=Oe(n);null!==i.asyncValidator?n.setAsyncValidators(W(o,i.asyncValidator)):"function"==typeof o&&n.setAsyncValidators([o]);const c=()=>n.updateValueAndValidity();tt(i._rawValidators,c),tt(i._rawAsyncValidators,c)}function nt(n,i){let e=!1;if(null!==n){if(null!==i.validator){const c=fe(n);if(Array.isArray(c)&&c.length>0){const E=c.filter(V=>V!==i.validator);E.length!==c.length&&(e=!0,n.setValidators(E))}}if(null!==i.asyncValidator){const c=Oe(n);if(Array.isArray(c)&&c.length>0){const E=c.filter(V=>V!==i.asyncValidator);E.length!==c.length&&(e=!0,n.setAsyncValidators(E))}}}const o=()=>{};return tt(i._rawValidators,o),tt(i._rawAsyncValidators,o),e}function Ft(n,i){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Rt(n,i){dt(n,i)}function ut(n,i){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function St(n,i){n._syncPendingControls(),i.forEach(e=>{const o=e.control;"submit"===o.updateOn&&o._pendingChange&&(e.viewToModelUpdate(o._pendingValue),o._pendingChange=!1)})}function ht(n,i){if(!i)return null;let e,o,c;return Array.isArray(i),i.forEach(E=>{E.constructor===L?e=E:function rn(n){return Object.getPrototypeOf(n.constructor)===Y}(E)?o=E:c=E}),c||o||e||null}const ln={provide:R,useExisting:(0,a.Rfq)(()=>it)},Ze=Promise.resolve();let it=(()=>{class n extends R{constructor(e,o,c){super(),this.callSetDisabledState=c,this.submitted=!1,this._directives=new Set,this.ngSubmit=new a.bkB,this.form=new Ke({},he(e),se(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ze.then(()=>{const o=this._findContainer(e.path);e.control=o.registerControl(e.name,e.control),Qe(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ze.then(()=>{const o=this._findContainer(e.path);o&&o.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ze.then(()=>{const o=this._findContainer(e.path),c=new Ke({});Rt(c,e),o.registerControl(e.name,c),c.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ze.then(()=>{const o=this._findContainer(e.path);o&&o.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,o){Ze.then(()=>{this.form.get(e.path).setValue(o)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,St(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}static#e=this.\u0275fac=function(o){return new(o||n)(a.rXU(x,10),a.rXU(O,10),a.rXU(He,8))};static#t=this.\u0275dir=a.FsC({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(o,c){1&o&&a.bIt("submit",function(V){return c.onSubmit(V)})("reset",function(){return c.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.Jv_([ln]),a.Vt3]})}return n})();function Mt(n,i){const e=n.indexOf(i);e>-1&&n.splice(e,1)}function xt(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Ye=class extends qe{constructor(i=null,e,o){super(b(e),Ue(o,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ve(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=xt(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(o=>o(this.value,!1!==e.emitViewToModelChange)),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){Mt(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){Mt(this._onDisabledChange,i)}_forEachChild(i){}_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(i){xt(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}},un={provide:j,useExisting:(0,a.Rfq)(()=>ft)},At=Promise.resolve();let ft=(()=>{class n extends j{constructor(e,o,c,E,V,Fe){super(),this._changeDetectorRef=V,this.callSetDisabledState=Fe,this.control=new Ye,this._registered=!1,this.name="",this.update=new a.bkB,this._parent=e,this._setValidators(o),this._setAsyncValidators(c),this.valueAccessor=ht(0,E)}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),ut(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(){Qe(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){At.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const o=e.isDisabled.currentValue,c=0!==o&&(0,a.L39)(o);At.then(()=>{c&&!this.control.disabled?this.control.disable():!c&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Je(e,this._parent):[e]}static#e=this.\u0275fac=function(o){return new(o||n)(a.rXU(R,9),a.rXU(x,10),a.rXU(O,10),a.rXU(M,10),a.rXU(a.gRc,8),a.rXU(He,8))};static#t=this.\u0275dir=a.FsC({type:n,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"],features:[a.Jv_([un]),a.Vt3,a.OA$]})}return n})(),Nt=(()=>{class n{static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275dir=a.FsC({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return n})();const hn={provide:M,useExisting:(0,a.Rfq)(()=>mt),multi:!0};let mt=(()=>{class n extends Y{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=o=>{e(""==o?null:parseFloat(o))}}static#e=this.\u0275fac=(()=>{let e;return function(c){return(e||(e=a.xGo(n)))(c||n)}})();static#t=this.\u0275dir=a.FsC({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(o,c){1&o&&a.bIt("input",function(V){return c.onChange(V.target.value)})("blur",function(){return c.onTouched()})},features:[a.Jv_([hn]),a.Vt3]})}return n})();const pn={provide:M,useExisting:(0,a.Rfq)(()=>pt),multi:!0};let pt=(()=>{class n extends Y{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=o=>{e(""==o?null:parseFloat(o))}}static#e=this.\u0275fac=(()=>{let e;return function(c){return(e||(e=a.xGo(n)))(c||n)}})();static#t=this.\u0275dir=a.FsC({type:n,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(o,c){1&o&&a.bIt("change",function(V){return c.onChange(V.target.value)})("input",function(V){return c.onChange(V.target.value)})("blur",function(){return c.onTouched()})},features:[a.Jv_([pn]),a.Vt3]})}return n})();const _t=new a.nKC(""),_n={provide:j,useExisting:(0,a.Rfq)(()=>gt)};let gt=(()=>{class n extends j{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,o,c,E,V){super(),this._ngModelWarningConfig=E,this.callSetDisabledState=V,this.update=new a.bkB,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(o),this.valueAccessor=ht(0,c)}ngOnChanges(e){if(this._isControlChanged(e)){const o=e.form.previousValue;o&&et(o,this,!1),Qe(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ut(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&et(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")}static#t=this.\u0275fac=function(o){return new(o||n)(a.rXU(x,10),a.rXU(O,10),a.rXU(M,10),a.rXU(_t,8),a.rXU(He,8))};static#n=this.\u0275dir=a.FsC({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a.Jv_([_n]),a.Vt3,a.OA$]})}return n})();const gn={provide:R,useExisting:(0,a.Rfq)(()=>st)};let st=(()=>{class n extends R{constructor(e,o,c){super(),this.callSetDisabledState=c,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.bkB,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&&(nt(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 Qe(o,e,this.callSetDisabledState),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),o}getControl(e){return this.form.get(e.path)}removeControl(e){et(e.control||null,e,!1),function an(n,i){const e=n.indexOf(i);e>-1&&n.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,St(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new f(this.control)),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1,this.form._events.next(new g(this.form))}_updateDomValue(){this.directives.forEach(e=>{const o=e.control,c=this.form.get(e.path);o!==c&&(et(o||null,e),(n=>n instanceof Ye)(c)&&(Qe(c,e,this.callSetDisabledState),e.control=c))}),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 sn(n,i){return nt(n,i)}(o,e)&&o.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){dt(this.form,this),this._oldForm&&nt(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(o){return new(o||n)(a.rXU(x,10),a.rXU(O,10),a.rXU(He,8))};static#t=this.\u0275dir=a.FsC({type:n,selectors:[["","formGroup",""]],hostBindings:function(o,c){1&o&&a.bIt("submit",function(V){return c.onSubmit(V)})("reset",function(){return c.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.Jv_([gn]),a.Vt3,a.OA$]})}return n})();const yn={provide:j,useExisting:(0,a.Rfq)(()=>yt)};let yt=(()=>{class n extends j{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,o,c,E,V){super(),this._ngModelWarningConfig=V,this._added=!1,this.name=null,this.update=new a.bkB,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(o),this._setAsyncValidators(c),this.valueAccessor=ht(0,E)}ngOnChanges(e){this._added||this._setUpControl(),ut(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 Je(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}static#t=this.\u0275fac=function(o){return new(o||n)(a.rXU(R,13),a.rXU(x,10),a.rXU(O,10),a.rXU(M,10),a.rXU(_t,8))};static#n=this.\u0275dir=a.FsC({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[a.Jv_([yn]),a.Vt3,a.OA$]})}return n})();const En={provide:M,useExisting:(0,a.Rfq)(()=>ot),multi:!0};function Ut(n,i){return null==n?`${i}`:(i&&"object"==typeof i&&(i="Object"),`${n}: ${i}`.slice(0,50))}let ot=(()=>{class n extends Y{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 c=Ut(this._getOptionId(e),e);this.setProperty("value",c)}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 bn(n){return n.split(":")[0]}(e);return this._optionMap.has(o)?this._optionMap.get(o):e}static#e=this.\u0275fac=(()=>{let e;return function(c){return(e||(e=a.xGo(n)))(c||n)}})();static#t=this.\u0275dir=a.FsC({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(o,c){1&o&&a.bIt("change",function(V){return c.onChange(V.target.value)})("blur",function(){return c.onTouched()})},inputs:{compareWith:"compareWith"},features:[a.Jv_([En]),a.Vt3]})}return n})(),It=(()=>{class n{constructor(e,o,c){this._element=e,this._renderer=o,this._select=c,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Ut(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#e=this.\u0275fac=function(o){return new(o||n)(a.rXU(a.aKT),a.rXU(a.sFG),a.rXU(ot,9))};static#t=this.\u0275dir=a.FsC({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return n})();const wn={provide:M,useExisting:(0,a.Rfq)(()=>Et),multi:!0};function Gt(n,i){return null==n?`${i}`:("string"==typeof i&&(i=`'${i}'`),i&&"object"==typeof i&&(i="Object"),`${n}: ${i}`.slice(0,50))}let Et=(()=>{class n extends Y{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 c=e.map(E=>this._getOptionId(E));o=(E,V)=>{E._setSelected(c.indexOf(V.toString())>-1)}}else o=(c,E)=>{c._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(e){this.onChange=o=>{const c=[],E=o.selectedOptions;if(void 0!==E){const V=E;for(let Fe=0;Fe<V.length;Fe++){const wt=this._getOptionValue(V[Fe].value);c.push(wt)}}else{const V=o.options;for(let Fe=0;Fe<V.length;Fe++){const at=V[Fe];if(at.selected){const wt=this._getOptionValue(at.value);c.push(wt)}}}this.value=c,e(c)}}_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 kn(n){return n.split(":")[0]}(e);return this._optionMap.has(o)?this._optionMap.get(o)._value:e}static#e=this.\u0275fac=(()=>{let e;return function(c){return(e||(e=a.xGo(n)))(c||n)}})();static#t=this.\u0275dir=a.FsC({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(o,c){1&o&&a.bIt("change",function(V){return c.onChange(V.target)})("blur",function(){return c.onTouched()})},inputs:{compareWith:"compareWith"},features:[a.Jv_([wn]),a.Vt3]})}return n})(),jt=(()=>{class n{constructor(e,o,c){this._element=e,this._renderer=o,this._select=c,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Gt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Gt(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#e=this.\u0275fac=function(o){return new(o||n)(a.rXU(a.aKT),a.rXU(a.sFG),a.rXU(Et,9))};static#t=this.\u0275dir=a.FsC({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return n})(),Le=(()=>{class n{constructor(){this._validator=J}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):J,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275dir=a.FsC({type:n,features:[a.OA$]})}return n})();const Fn={provide:x,useExisting:(0,a.Rfq)(()=>rt),multi:!0},Rn={provide:x,useExisting:(0,a.Rfq)(()=>bt),multi:!0};let rt=(()=>{class n extends Le{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=a.L39,this.createValidator=e=>U}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(c){return(e||(e=a.xGo(n)))(c||n)}})();static#t=this.\u0275dir=a.FsC({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(o,c){2&o&&a.BMQ("required",c._enabled?"":null)},inputs:{required:"required"},features:[a.Jv_([Fn]),a.Vt3]})}return n})(),bt=(()=>{class n extends rt{constructor(){super(...arguments),this.createValidator=e=>ne}static#e=this.\u0275fac=(()=>{let e;return function(c){return(e||(e=a.xGo(n)))(c||n)}})();static#t=this.\u0275dir=a.FsC({type:n,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(o,c){2&o&&a.BMQ("required",c._enabled?"":null)},features:[a.Jv_([Rn]),a.Vt3]})}return n})(),Qt=(()=>{class n{static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275mod=a.$C({type:n});static#n=this.\u0275inj=a.G2t({})}return n})();class Zt extends qe{constructor(i,e,o){super(b(e),Ue(o,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,o={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:o.emitEvent})}removeAt(i,e={}){let o=this._adjustIndex(i);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,o={}){let c=this._adjustIndex(i);c<0&&(c=0),this.controls[c]&&this.controls[c]._registerOnCollectionChange(()=>{}),this.controls.splice(c,1),e&&(this.controls.splice(c,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){Dt(this,0,i),i.forEach((o,c)=>{kt(this,!1,c),this.at(c).setValue(o,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((o,c)=>{this.at(c)&&this.at(c).patchValue(o,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((o,c)=>{o.reset(i[c],{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,o)=>!!o._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,o)=>{i(e,o)})}_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(const 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 qt(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Tn=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,o=null){const c=this._reduceControls(e);let E={};return qt(o)?E=o:null!==o&&(E.validators=o.validator,E.asyncValidators=o.asyncValidator),new Ke(c,E)}record(e,o=null){const c=this._reduceControls(e);return new Vt(c,o)}control(e,o,c){let E={};return this.useNonNullable?(qt(o)?E=o:(E.validators=o,E.asyncValidators=c),new Ye(e,{...E,nonNullable:!0})):new Ye(e,o,c)}array(e,o,c){const E=e.map(V=>this._createControl(V));return new Zt(E,o,c)}_reduceControls(e){const o={};return Object.keys(e).forEach(c=>{o[c]=this._createControl(e[c])}),o}_createControl(e){return e instanceof Ye||e instanceof qe?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275prov=a.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),An=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:He,useValue:e.callSetDisabledState??ze}]}}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275mod=a.$C({type:n});static#n=this.\u0275inj=a.G2t({imports:[Qt]})}return n})(),Nn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:_t,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:He,useValue:e.callSetDisabledState??ze}]}}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275mod=a.$C({type:n});static#n=this.\u0275inj=a.G2t({imports:[Qt]})}return n})()}}]);