"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[987],{5007:(at,J,g)=>{g.d(J,{$:()=>ot});var k=g(6780);let a,b=1;const w={};function A(B){return B in w&&(delete w[B],!0)}const q={setImmediate(B){const p=b++;return w[p]=!0,a||(a=Promise.resolve()),a.then(()=>A(p)&&B()),p},clearImmediate(B){A(B)}},{setImmediate:tt,clearImmediate:U}=q,I={setImmediate(...B){const{delegate:p}=I;return(p?.setImmediate||tt)(...B)},clearImmediate(B){const{delegate:p}=I;return(p?.clearImmediate||U)(B)},delegate:void 0};var z=g(9687);const ot=new class F extends z.q{flush(p){this._active=!0;const V=this._scheduled;this._scheduled=void 0;const{actions:x}=this;let j;p=p||x.shift();do{if(j=p.execute(p.state,p.delay))break}while((p=x[0])&&p.id===V&&x.shift());if(this._active=!1,j){for(;(p=x[0])&&p.id===V&&x.shift();)p.unsubscribe();throw j}}}(class Y extends k.R{constructor(p,V){super(p,V),this.scheduler=p,this.work=V}requestAsyncId(p,V,x=0){return null!==x&&x>0?super.requestAsyncId(p,V,x):(p.actions.push(this),p._scheduled||(p._scheduled=I.setImmediate(p.flush.bind(p,void 0))))}recycleAsyncId(p,V,x=0){var j;if(null!=x?x>0:this.delay>0)return super.recycleAsyncId(p,V,x);const{actions:Z}=p;null!=V&&(null===(j=Z[Z.length-1])||void 0===j?void 0:j.id)!==V&&(I.clearImmediate(V),p._scheduled===V&&(p._scheduled=void 0))}})},7987:(at,J,g)=>{g.d(J,{$Q:()=>_t,WB:()=>vt,hJ:()=>nt,rR:()=>u,rW:()=>s,z_:()=>wt});var k=g(5478),b=g(177),a=g(4438),w=g(4085),A=g(6860),q=g(5964),st=g(6697),tt=g(6977),U=g(7048),I=g(8203),Y=g(6939),z=g(1413),F=g(8359),ot=g(7786),et=g(7336);const B=(0,A.CZ)();class p{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,w.a1)(-this._previousScrollPosition.left),t.style.top=(0,w.a1)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,o=this._document.body.style,r=i.scrollBehavior||"",h=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),B&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),B&&(i.scrollBehavior=r,o.scrollBehavior=h)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class x{constructor(t,e,i,o){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0).pipe((0,q.p)(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class j{enable(){}disable(){}attach(){}}function Z(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function rt(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class E{constructor(t,e,i,o){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();Z(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let c=(()=>{class n{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new j,this.close=h=>new x(this._scrollDispatcher,this._ngZone,this._viewportRuler,h),this.block=()=>new p(this._viewportRuler,this._document),this.reposition=h=>new E(this._scrollDispatcher,this._viewportRuler,this._ngZone,h),this._document=r}static#t=this.\u0275fac=function(i){return new(i||n)(a.KVO(k.R),a.KVO(k.Xj),a.KVO(a.SKi),a.KVO(b.qQ))};static#e=this.\u0275prov=a.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();class u{constructor(t){if(this.scrollStrategy=new j,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class H{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let Q=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#t=this.\u0275fac=function(i){return new(i||n)(a.KVO(b.qQ))};static#e=this.\u0275prov=a.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ht=(()=>{class n extends Q{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let h=r.length-1;h>-1;h--)if(r[h]._keydownEvents.observers.length>0){const f=r[h]._keydownEvents;this._ngZone?this._ngZone.run(()=>f.next(o)):f.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#t=this.\u0275fac=function(i){return new(i||n)(a.KVO(b.qQ),a.KVO(a.SKi,8))};static#e=this.\u0275prov=a.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ct=(()=>{class n extends Q{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=(0,A.Fb)(r)},this._clickListener=r=>{const h=(0,A.Fb)(r),f="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:h;this._pointerDownEventTarget=null;const C=this._attachedOverlays.slice();for(let S=C.length-1;S>-1;S--){const _=C[S];if(_._outsidePointerEvents.observers.length<1||!_.hasAttached())continue;if(_.overlayElement.contains(h)||_.overlayElement.contains(f))break;const O=_._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>O.next(r)):O.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static#t=this.\u0275fac=function(i){return new(i||n)(a.KVO(b.qQ),a.KVO(A.OD),a.KVO(a.SKi,8))};static#e=this.\u0275prov=a.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),it=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||(0,A.v8)()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(O),this._backdropTransitionendHandler=O=>{this._disposeBackdrop(O.target)},this._keydownEvents=new z.B,this._outsidePointerEvents=new z.B,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,st.s)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,w.a1)(this._config.width),t.height=(0,w.a1)(this._config.height),t.minWidth=(0,w.a1)(this._config.minWidth),t.minHeight=(0,w.a1)(this._config.minHeight),t.maxWidth=(0,w.a1)(this._config.maxWidth),t.maxHeight=(0,w.a1)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const o=(0,w.FG)(e||[]).filter(r=>!!r);o.length&&(i?t.classList.add(...o):t.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,tt.Q)((0,ot.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const v="cdk-overlay-connected-position-bounding-box",D=/([A-Za-z%]+)$/;class s{get positions(){return this._preferredPositions}constructor(t,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new z.B,this._resizeSubscription=F.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(v),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let h;for(let f of this._preferredPositions){let C=this._getOriginPoint(t,o,f),S=this._getOverlayPoint(C,e,f),_=this._getOverlayFit(S,e,i,f);if(_.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(f,C);this._canFitWithFlexibleDimensions(_,S,i)?r.push({position:f,origin:C,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(C,f)}):(!h||h.overlayFit.visibleArea<_.visibleArea)&&(h={overlayFit:_,overlayPoint:S,originPoint:C,position:f,overlayRect:e})}if(r.length){let f=null,C=-1;for(const S of r){const _=S.boundingBoxRect.width*S.boundingBoxRect.height*(S.position.weight||1);_>C&&(C=_,f=S)}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(h.position,h.originPoint);this._applyPosition(h.position,h.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&l(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(v),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let o,r;if("center"==i.originX)o=t.left+t.width/2;else{const h=this._isRtl()?t.right:t.left,f=this._isRtl()?t.left:t.right;o="start"==i.originX?h:f}return e.left<0&&(o-=e.left),r="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(t,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+o,y:t.y+r}}_getOverlayFit(t,e,i,o){const r=m(e);let{x:h,y:f}=t,C=this._getOffset(o,"x"),S=this._getOffset(o,"y");C&&(h+=C),S&&(f+=S);let $=0-f,T=f+r.height-i.height,N=this._subtractOverflows(r.width,0-h,h+r.width-i.width),G=this._subtractOverflows(r.height,$,T),pt=N*G;return{visibleArea:pt,isCompletelyWithinViewport:r.width*r.height===pt,fitsInViewportVertically:G===r.height,fitsInViewportHorizontally:N==r.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,h=d(this._overlayRef.getConfig().minHeight),f=d(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=h&&h<=o)&&(t.fitsInViewportHorizontally||null!=f&&f<=r)}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const o=m(e),r=this._viewportRect,h=Math.max(t.x+o.width-r.width,0),f=Math.max(t.y+o.height-r.height,0),C=Math.max(r.top-i.top-t.y,0),S=Math.max(r.left-i.left-t.x,0);let _=0,O=0;return _=o.width<=r.width?S||-h:t.xN&&!this._isInitialRender&&!this._growAfterOpen&&(h=t.y-N/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)$=i.width-t.x+this._viewportMargin,_=t.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)O=t.x,_=i.right-t.x;else{const T=Math.min(i.right-t.x+i.left,t.x),N=this._lastBoundingBoxSize.width;_=2*T,O=t.x-T,_>N&&!this._isInitialRender&&!this._growAfterOpen&&(O=t.x-N/2)}return{top:h,left:O,bottom:f,right:$,width:_,height:r}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,h=this._overlayRef.getConfig().maxWidth;o.height=(0,w.a1)(i.height),o.top=(0,w.a1)(i.top),o.bottom=(0,w.a1)(i.bottom),o.width=(0,w.a1)(i.width),o.left=(0,w.a1)(i.left),o.right=(0,w.a1)(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=(0,w.a1)(r)),h&&(o.maxWidth=(0,w.a1)(h))}this._lastBoundingBoxSize=i,l(this._boundingBox.style,o)}_resetBoundingBoxStyles(){l(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){l(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,h=this._overlayRef.getConfig();if(o){const _=this._viewportRuler.getViewportScrollPosition();l(i,this._getExactOverlayY(e,t,_)),l(i,this._getExactOverlayX(e,t,_))}else i.position="static";let f="",C=this._getOffset(e,"x"),S=this._getOffset(e,"y");C&&(f+=`translateX(${C}px) `),S&&(f+=`translateY(${S}px)`),i.transform=f.trim(),h.maxHeight&&(o?i.maxHeight=(0,w.a1)(h.maxHeight):r&&(i.maxHeight="")),h.maxWidth&&(o?i.maxWidth=(0,w.a1)(h.maxWidth):r&&(i.maxWidth="")),l(this._pane.style,i)}_getExactOverlayY(t,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===t.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=(0,w.a1)(r.y),o}_getExactOverlayX(t,e,i){let h,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),h=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===h?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=(0,w.a1)(r.x),o}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:rt(t,i),isOriginOutsideView:Z(t,i),isOverlayClipped:rt(e,i),isOverlayOutsideView:Z(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,o)=>i-Math.max(o,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,w.FG)(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof a.aKT)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function l(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function d(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(D);return e&&"px"!==e?null:parseFloat(t)}return n||null}function m(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const M="cdk-global-overlay-wrapper";class X{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(M),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:h,maxHeight:f}=i,C=!("100%"!==o&&"100vw"!==o||h&&"100%"!==h&&"100vw"!==h),S=!("100%"!==r&&"100vh"!==r||f&&"100%"!==f&&"100vh"!==f),_=this._xPosition,O=this._xOffset,$="rtl"===this._overlayRef.getConfig().direction;let T="",N="",G="";C?G="flex-start":"center"===_?(G="center",$?N=O:T=O):$?"left"===_||"end"===_?(G="flex-end",T=O):("right"===_||"start"===_)&&(G="flex-start",N=O):"left"===_||"start"===_?(G="flex-start",T=O):("right"===_||"end"===_)&&(G="flex-end",N=O),t.position=this._cssPosition,t.marginLeft=C?"0":T,t.marginTop=S?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=C?"0":N,e.justifyContent=G,e.alignItems=S?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(M),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let dt=(()=>{class n{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new X}flexibleConnectedTo(e){return new s(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#t=this.\u0275fac=function(i){return new(i||n)(a.KVO(k.Xj),a.KVO(b.qQ),a.KVO(A.OD),a.KVO(it))};static#e=this.\u0275prov=a.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ut=0,nt=(()=>{class n{constructor(e,i,o,r,h,f,C,S,_,O,$,T){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=h,this._injector=f,this._ngZone=C,this._document=S,this._directionality=_,this._location=O,this._outsideClickDispatcher=$,this._animationsModuleType=T}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),h=new u(e);return h.direction=h.direction||this._directionality.value,new lt(r,i,o,h,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+ut++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(a.o8S)),new Y.aI(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#t=this.\u0275fac=function(i){return new(i||n)(a.KVO(c),a.KVO(it),a.KVO(a.OM3),a.KVO(dt),a.KVO(ht),a.KVO(a.zZn),a.KVO(a.SKi),a.KVO(b.qQ),a.KVO(I.dS),a.KVO(b.aZ),a.KVO(ct),a.KVO(a.bc$,8))};static#e=this.\u0275prov=a.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const gt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ft=new a.nKC("cdk-connected-overlay-scroll-strategy");let _t=(()=>{class n{constructor(e){this.elementRef=e}static#t=this.\u0275fac=function(i){return new(i||n)(a.rXU(a.aKT))};static#e=this.\u0275dir=a.FsC({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return n})(),vt=(()=>{class n{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=(0,w.he)(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=(0,w.he)(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=(0,w.he)(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=(0,w.he)(e)}get push(){return this._push}set push(e){this._push=(0,w.he)(e)}constructor(e,i,o,r,h){this._overlay=e,this._dir=h,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=F.yU.EMPTY,this._attachSubscription=F.yU.EMPTY,this._detachSubscription=F.yU.EMPTY,this._positionSubscription=F.yU.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new a.bkB,this.positionChange=new a.bkB,this.attach=new a.bkB,this.detach=new a.bkB,this.overlayKeydown=new a.bkB,this.overlayOutsideClick=new a.bkB,this._templatePortal=new Y.VA(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gt);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===et._f&&!this.disableClose&&!(0,et.rp)(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new u({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _t?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,U.v)(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||n)(a.rXU(nt),a.rXU(a.C4Q),a.rXU(a.c1b),a.rXU(ft),a.rXU(I.dS,8))};static#e=this.\u0275dir=a.FsC({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[a.Mj6.None,"cdkConnectedOverlayOrigin","origin"],positions:[a.Mj6.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[a.Mj6.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[a.Mj6.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[a.Mj6.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[a.Mj6.None,"cdkConnectedOverlayWidth","width"],height:[a.Mj6.None,"cdkConnectedOverlayHeight","height"],minWidth:[a.Mj6.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[a.Mj6.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[a.Mj6.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[a.Mj6.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[a.Mj6.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[a.Mj6.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[a.Mj6.None,"cdkConnectedOverlayOpen","open"],disableClose:[a.Mj6.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[a.Mj6.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[a.Mj6.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[a.Mj6.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[a.Mj6.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[a.Mj6.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[a.Mj6.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[a.OA$]})}return n})();const yt={provide:ft,deps:[nt],useFactory:function mt(n){return()=>n.scrollStrategies.reposition()}};let wt=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275mod=a.$C({type:n});static#i=this.\u0275inj=a.G2t({providers:[nt,yt],imports:[I.jI,Y.jc,k.E9,k.E9]})}return n})()},6939:(at,J,g)=>{g.d(J,{A8:()=>I,I3:()=>x,VA:()=>Y,aI:()=>et,jc:()=>Z});var k=g(4438),b=g(177);class U{attach(c){return this._attachedHost=c,c.attach(this)}detach(){let c=this._attachedHost;null!=c&&(this._attachedHost=null,c.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(c){this._attachedHost=c}}class I extends U{constructor(c,u,y,R,H){super(),this.component=c,this.viewContainerRef=u,this.injector=y,this.componentFactoryResolver=R,this.projectableNodes=H}}class Y extends U{constructor(c,u,y,R){super(),this.templateRef=c,this.viewContainerRef=u,this.context=y,this.injector=R}get origin(){return this.templateRef.elementRef}attach(c,u=this.context){return this.context=u,super.attach(c)}detach(){return this.context=void 0,super.detach()}}class z extends U{constructor(c){super(),this.element=c instanceof k.aKT?c.nativeElement:c}}class F{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(c){return c instanceof I?(this._attachedPortal=c,this.attachComponentPortal(c)):c instanceof Y?(this._attachedPortal=c,this.attachTemplatePortal(c)):this.attachDomPortal&&c instanceof z?(this._attachedPortal=c,this.attachDomPortal(c)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(c){this._disposeFn=c}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class et extends F{constructor(c,u,y,R,H){super(),this.outletElement=c,this._componentFactoryResolver=u,this._appRef=y,this._defaultInjector=R,this.attachDomPortal=L=>{const W=L.element,Q=this._document.createComment("dom-portal");W.parentNode.insertBefore(Q,W),this.outletElement.appendChild(W),this._attachedPortal=L,super.setDisposeFn(()=>{Q.parentNode&&Q.parentNode.replaceChild(W,Q)})},this._document=H}attachComponentPortal(c){const y=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component);let R;return c.viewContainerRef?(R=c.viewContainerRef.createComponent(y,c.viewContainerRef.length,c.injector||c.viewContainerRef.injector,c.projectableNodes||void 0),this.setDisposeFn(()=>R.destroy())):(R=y.create(c.injector||this._defaultInjector||k.zZn.NULL),this._appRef.attachView(R.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(R.hostView),R.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(R)),this._attachedPortal=c,R}attachTemplatePortal(c){let u=c.viewContainerRef,y=u.createEmbeddedView(c.templateRef,c.context,{injector:c.injector});return y.rootNodes.forEach(R=>this.outletElement.appendChild(R)),y.detectChanges(),this.setDisposeFn(()=>{let R=u.indexOf(y);-1!==R&&u.remove(R)}),this._attachedPortal=c,y}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(c){return c.hostView.rootNodes[0]}}let x=(()=>{class E extends F{constructor(u,y,R){super(),this._componentFactoryResolver=u,this._viewContainerRef=y,this._isInitialized=!1,this.attached=new k.bkB,this.attachDomPortal=H=>{const L=H.element,W=this._document.createComment("dom-portal");H.setAttachedHost(this),L.parentNode.insertBefore(W,L),this._getRootNode().appendChild(L),this._attachedPortal=H,super.setDisposeFn(()=>{W.parentNode&&W.parentNode.replaceChild(L,W)})},this._document=R}get portal(){return this._attachedPortal}set portal(u){this.hasAttached()&&!u&&!this._isInitialized||(this.hasAttached()&&super.detach(),u&&super.attach(u),this._attachedPortal=u||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(u){u.setAttachedHost(this);const y=null!=u.viewContainerRef?u.viewContainerRef:this._viewContainerRef,H=(u.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(u.component),L=y.createComponent(H,y.length,u.injector||y.injector,u.projectableNodes||void 0);return y!==this._viewContainerRef&&this._getRootNode().appendChild(L.hostView.rootNodes[0]),super.setDisposeFn(()=>L.destroy()),this._attachedPortal=u,this._attachedRef=L,this.attached.emit(L),L}attachTemplatePortal(u){u.setAttachedHost(this);const y=this._viewContainerRef.createEmbeddedView(u.templateRef,u.context,{injector:u.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=u,this._attachedRef=y,this.attached.emit(y),y}_getRootNode(){const u=this._viewContainerRef.element.nativeElement;return u.nodeType===u.ELEMENT_NODE?u:u.parentNode}static#t=this.\u0275fac=function(y){return new(y||E)(k.rXU(k.OM3),k.rXU(k.c1b),k.rXU(b.qQ))};static#e=this.\u0275dir=k.FsC({type:E,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[k.Mj6.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[k.Vt3]})}return E})(),Z=(()=>{class E{static#t=this.\u0275fac=function(y){return new(y||E)};static#e=this.\u0275mod=k.$C({type:E});static#i=this.\u0275inj=k.G2t({})}return E})()},5478:(at,J,g)=>{g.d(J,{E9:()=>lt,Gj:()=>it,R:()=>Z,Xj:()=>c});var k=g(4085),b=g(4438),a=g(1413),w=g(7673),A=g(1985),q=g(3726),U=(g(536),g(5007),g(3798)),I=g(5964),Y=g(6860),z=g(177),F=g(8203);let Z=(()=>{class v{constructor(s,l,d){this._ngZone=s,this._platform=l,this._scrolled=new a.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=d}register(s){this.scrollContainers.has(s)||this.scrollContainers.set(s,s.elementScrolled().subscribe(()=>this._scrolled.next(s)))}deregister(s){const l=this.scrollContainers.get(s);l&&(l.unsubscribe(),this.scrollContainers.delete(s))}scrolled(s=20){return this._platform.isBrowser?new A.c(l=>{this._globalSubscription||this._addGlobalListener();const d=s>0?this._scrolled.pipe((0,U.Z)(s)).subscribe(l):this._scrolled.subscribe(l);return this._scrolledCount++,()=>{d.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((s,l)=>this.deregister(l)),this._scrolled.complete()}ancestorScrolled(s,l){const d=this.getAncestorScrollContainers(s);return this.scrolled(l).pipe((0,I.p)(m=>!m||d.indexOf(m)>-1))}getAncestorScrollContainers(s){const l=[];return this.scrollContainers.forEach((d,m)=>{this._scrollableContainsElement(m,s)&&l.push(m)}),l}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(s,l){let d=(0,k.i8)(l),m=s.getElementRef().nativeElement;do{if(d==m)return!0}while(d=d.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const s=this._getWindow();return(0,q.R)(s.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#t=this.\u0275fac=function(l){return new(l||v)(b.KVO(b.SKi),b.KVO(Y.OD),b.KVO(z.qQ,8))};static#e=this.\u0275prov=b.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),c=(()=>{class v{constructor(s,l,d){this._platform=s,this._change=new a.B,this._changeListener=m=>{this._change.next(m)},this._document=d,l.runOutsideAngular(()=>{if(s.isBrowser){const m=this._getWindow();m.addEventListener("resize",this._changeListener),m.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const s=this._getWindow();s.removeEventListener("resize",this._changeListener),s.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const s={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),s}getViewportRect(){const s=this.getViewportScrollPosition(),{width:l,height:d}=this.getViewportSize();return{top:s.top,left:s.left,bottom:s.top+d,right:s.left+l,height:d,width:l}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const s=this._document,l=this._getWindow(),d=s.documentElement,m=d.getBoundingClientRect();return{top:-m.top||s.body.scrollTop||l.scrollY||d.scrollTop||0,left:-m.left||s.body.scrollLeft||l.scrollX||d.scrollLeft||0}}change(s=20){return s>0?this._change.pipe((0,U.Z)(s)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const s=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:s.innerWidth,height:s.innerHeight}:{width:0,height:0}}static#t=this.\u0275fac=function(l){return new(l||v)(b.KVO(Y.OD),b.KVO(b.SKi),b.KVO(z.qQ,8))};static#e=this.\u0275prov=b.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),it=(()=>{class v{static#t=this.\u0275fac=function(l){return new(l||v)};static#e=this.\u0275mod=b.$C({type:v});static#i=this.\u0275inj=b.G2t({})}return v})(),lt=(()=>{class v{static#t=this.\u0275fac=function(l){return new(l||v)};static#e=this.\u0275mod=b.$C({type:v});static#i=this.\u0275inj=b.G2t({imports:[F.jI,it,F.jI,it]})}return v})()}}]);