(self.webpackChunkshell=self.webpackChunkshell||[]).push([["node_modules_angular_cdk_fesm2022_observers_mjs-_0d591"],{7131:(f,u,i)=>{i.r(u),i.d(u,{CdkObserveContent:()=>_,ContentObserver:()=>b,MutationObserverFactory:()=>c,ObserversModule:()=>h});var o=i(2495),n=i(2611),d=i(8303),v=i(8103);let c=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),b=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,s)=>this._cleanupObserver(s))}observe(e){const s=(0,o.fI)(e);return new d.Observable(r=>{const l=this._observeElement(s).subscribe(r);return()=>{l.unsubscribe(),this._unobserveElement(s)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const s=new d.Subject,r=this._mutationObserverFactory.create(a=>s.next(a));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:s,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:s,stream:r}=this._observedElements.get(e);s&&s.disconnect(),r.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(s){return new(s||t)(n.\u0275\u0275inject(c))};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=(0,o.Ig)(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=(0,o.su)(e),this._subscribe()}constructor(e,s,r){this._contentObserver=e,this._elementRef=s,this._ngZone=r,this.event=new n.EventEmitter,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,v.debounceTime)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(s){return new(s||t)(n.\u0275\u0275directiveInject(b),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone))};static#t=this.\u0275dir=n.\u0275\u0275defineDirective({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),h=(()=>{class t{static#e=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.\u0275\u0275defineNgModule({type:t});static#s=this.\u0275inj=n.\u0275\u0275defineInjector({providers:[c]})}return t})()}}]);