-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path123.b441d137f2fe8077.js
1 lines (1 loc) · 155 KB
/
123.b441d137f2fe8077.js
1
"use strict";(self.webpackChunkmarvel_api_clone=self.webpackChunkmarvel_api_clone||[]).push([[123],{5123:(Ro,ht,p)=>{p.r(ht),p.d(ht,{CharactersModule:()=>Do});var j=p(6642),K=p(520),b=p(5620),g=p(9808),Kt=p(9291),M=p(3075),i=p(5e3),f=p(508),dt=p(7423),k=p(8962),u=p(3191),x=p(925),F=p(226);class tt{attach(o){return this._attachedHost=o,o.attach(this)}detach(){let o=this._attachedHost;null!=o&&(this._attachedHost=null,o.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(o){this._attachedHost=o}}class pt extends tt{constructor(o,t,e,s){super(),this.component=o,this.viewContainerRef=t,this.injector=e,this.componentFactoryResolver=s}}class et extends tt{constructor(o,t,e){super(),this.templateRef=o,this.viewContainerRef=t,this.context=e}get origin(){return this.templateRef.elementRef}attach(o,t=this.context){return this.context=t,super.attach(o)}detach(){return this.context=void 0,super.detach()}}class te extends tt{constructor(o){super(),this.element=o instanceof i.SBq?o.nativeElement:o}}class ie extends class ee{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(o){return o instanceof pt?(this._attachedPortal=o,this.attachComponentPortal(o)):o instanceof et?(this._attachedPortal=o,this.attachTemplatePortal(o)):this.attachDomPortal&&o instanceof te?(this._attachedPortal=o,this.attachDomPortal(o)):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(o){this._disposeFn=o}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(o,t,e,s,a){super(),this.outletElement=o,this._componentFactoryResolver=t,this._appRef=e,this._defaultInjector=s,this.attachDomPortal=r=>{const l=r.element,c=this._document.createComment("dom-portal");l.parentNode.insertBefore(c,l),this.outletElement.appendChild(l),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(l,c)})},this._document=a}attachComponentPortal(o){const e=(o.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(o.component);let s;return o.viewContainerRef?(s=o.viewContainerRef.createComponent(e,o.viewContainerRef.length,o.injector||o.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=e.create(o.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=o,s}attachTemplatePortal(o){let t=o.viewContainerRef,e=t.createEmbeddedView(o.templateRef,o.context);return e.rootNodes.forEach(s=>this.outletElement.appendChild(s)),e.detectChanges(),this.setDisposeFn(()=>{let s=t.indexOf(e);-1!==s&&t.remove(s)}),this._attachedPortal=o,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(o){return o.hostView.rootNodes[0]}}let oe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var S=p(7579),D=p(727),A=p(6451),E=p(5698),O=p(2722),ne=p(4482),se=p(5403),v=p(1159);const ut=(0,x.Mq)();class re{constructor(o,t){this._viewportRuler=o,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const o=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=o.style.left||"",this._previousHTMLStyles.top=o.style.top||"",o.style.left=(0,u.HM)(-this._previousScrollPosition.left),o.style.top=(0,u.HM)(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const o=this._document.documentElement,e=o.style,s=this._document.body.style,a=e.scrollBehavior||"",r=s.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,o.classList.remove("cdk-global-scrollblock"),ut&&(e.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ut&&(e.scrollBehavior=a,s.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class le{constructor(o,t,e,s){this._scrollDispatcher=o,this._ngZone=t,this._viewportRuler=e,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(o){this._overlayRef=o}enable(){if(this._scrollSubscription)return;const o=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=o.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=o.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ft{enable(){}disable(){}attach(){}}function it(n,o){return o.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function mt(n,o){return o.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class ce{constructor(o,t,e,s){this._scrollDispatcher=o,this._viewportRuler=t,this._ngZone=e,this._config=s,this._scrollSubscription=null}attach(o){this._overlayRef=o}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:s}=this._viewportRuler.getViewportSize();it(t,[{width:e,height:s,bottom:s,right:e,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 he=(()=>{class n{constructor(t,e,s,a){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=s,this.noop=()=>new ft,this.close=r=>new le(this._scrollDispatcher,this._ngZone,this._viewportRuler,r),this.block=()=>new re(this._viewportRuler,this._document),this.reposition=r=>new ce(this._scrollDispatcher,this._viewportRuler,this._ngZone,r),this._document=a}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(k.mF),i.LFG(k.rL),i.LFG(i.R0b),i.LFG(g.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ot{constructor(o){if(this.scrollStrategy=new ft,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,o){const t=Object.keys(o);for(const e of t)void 0!==o[e]&&(this[e]=o[e])}}}class de{constructor(o,t){this.connectionPair=o,this.scrollableViewProperties=t}}class pe{constructor(o,t,e,s,a,r,l,c,d){this._portalOutlet=o,this._host=t,this._pane=e,this._config=s,this._ngZone=a,this._keyboardDispatcher=r,this._document=l,this._location=c,this._outsideClickDispatcher=d,this._backdropElement=null,this._backdropClick=new S.x,this._attachments=new S.x,this._detachments=new S.x,this._locationChanges=D.w0.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new S.x,this._outsidePointerEvents=new S.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(o){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(o);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,E.q)(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),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const o=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),o}dispose(){var o;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),null===(o=this._host)||void 0===o||o.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(o){o!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=o,this.hasAttached()&&(o.attach(this),this.updatePosition()))}updateSize(o){this._config=Object.assign(Object.assign({},this._config),o),this._updateElementSize()}setDirection(o){this._config=Object.assign(Object.assign({},this._config),{direction:o}),this._updateElementDirection()}addPanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!0)}removePanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!1)}getDirection(){const o=this._config.direction;return o?"string"==typeof o?o:o.value:"ltr"}updateScrollStrategy(o){o!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=o,this.hasAttached()&&(o.attach(this),o.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const o=this._pane.style;o.width=(0,u.HM)(this._config.width),o.height=(0,u.HM)(this._config.height),o.minWidth=(0,u.HM)(this._config.minWidth),o.minHeight=(0,u.HM)(this._config.minHeight),o.maxWidth=(0,u.HM)(this._config.maxWidth),o.maxHeight=(0,u.HM)(this._config.maxHeight)}_togglePointerEvents(o){this._pane.style.pointerEvents=o?"":"none"}_attachBackdrop(){const o="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(o)})}):this._backdropElement.classList.add(o)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const o=this._backdropElement;!o||(o.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{o.addEventListener("transitionend",this._backdropTransitionendHandler)}),o.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(o)},500)))}_toggleClasses(o,t,e){const s=(0,u.Eq)(t||[]).filter(a=>!!a);s.length&&(e?o.classList.add(...s):o.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const o=this._ngZone.onStable.pipe((0,O.R)((0,A.T)(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()),o.unsubscribe())})})}_disposeScrollStrategy(){const o=this._scrollStrategy;o&&(o.disable(),o.detach&&o.detach())}_disposeBackdrop(o){o&&(o.removeEventListener("click",this._backdropClickHandler),o.removeEventListener("transitionend",this._backdropTransitionendHandler),o.remove(),this._backdropElement===o&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let _t=(()=>{class n{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||(0,x.Oy)()){const s=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let a=0;a<s.length;a++)s[a].remove()}const e=this._document.createElement("div");e.classList.add(t),(0,x.Oy)()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(g.K0),i.LFG(x.t4))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const gt="cdk-overlay-connected-position-bounding-box",ue=/([A-Za-z%]+)$/;class fe{constructor(o,t,e,s,a){this._viewportRuler=t,this._document=e,this._platform=s,this._overlayContainer=a,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 S.x,this._resizeSubscription=D.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(o)}get positions(){return this._preferredPositions}attach(o){this._validatePositions(),o.hostElement.classList.add(gt),this._overlayRef=o,this._boundingBox=o.hostElement,this._pane=o.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 o=this._originRect,t=this._overlayRect,e=this._viewportRect,s=this._containerRect,a=[];let r;for(let l of this._preferredPositions){let c=this._getOriginPoint(o,s,l),d=this._getOverlayPoint(c,t,l),h=this._getOverlayFit(d,t,e,l);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,c);this._canFitWithFlexibleDimensions(h,d,e)?a.push({position:l,origin:c,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(c,l)}):(!r||r.overlayFit.visibleArea<h.visibleArea)&&(r={overlayFit:h,overlayPoint:d,originPoint:c,position:l,overlayRect:t})}if(a.length){let l=null,c=-1;for(const d of a){const h=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);h>c&&(c=h,l=d)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&I(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(gt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const o=this._lastPosition;if(o){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,o);this._applyPosition(o,t)}else this.apply()}withScrollableContainers(o){return this._scrollables=o,this}withPositions(o){return this._preferredPositions=o,-1===o.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(o){return this._viewportMargin=o,this}withFlexibleDimensions(o=!0){return this._hasFlexibleDimensions=o,this}withGrowAfterOpen(o=!0){return this._growAfterOpen=o,this}withPush(o=!0){return this._canPush=o,this}withLockedPosition(o=!0){return this._positionLocked=o,this}setOrigin(o){return this._origin=o,this}withDefaultOffsetX(o){return this._offsetX=o,this}withDefaultOffsetY(o){return this._offsetY=o,this}withTransformOriginOn(o){return this._transformOriginSelector=o,this}_getOriginPoint(o,t,e){let s,a;if("center"==e.originX)s=o.left+o.width/2;else{const r=this._isRtl()?o.right:o.left,l=this._isRtl()?o.left:o.right;s="start"==e.originX?r:l}return t.left<0&&(s-=t.left),a="center"==e.originY?o.top+o.height/2:"top"==e.originY?o.top:o.bottom,t.top<0&&(a-=t.top),{x:s,y:a}}_getOverlayPoint(o,t,e){let s,a;return s="center"==e.overlayX?-t.width/2:"start"===e.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,a="center"==e.overlayY?-t.height/2:"top"==e.overlayY?0:-t.height,{x:o.x+s,y:o.y+a}}_getOverlayFit(o,t,e,s){const a=yt(t);let{x:r,y:l}=o,c=this._getOffset(s,"x"),d=this._getOffset(s,"y");c&&(r+=c),d&&(l+=d);let y=0-l,C=l+a.height-e.height,w=this._subtractOverflows(a.width,0-r,r+a.width-e.width),P=this._subtractOverflows(a.height,y,C),V=w*P;return{visibleArea:V,isCompletelyWithinViewport:a.width*a.height===V,fitsInViewportVertically:P===a.height,fitsInViewportHorizontally:w==a.width}}_canFitWithFlexibleDimensions(o,t,e){if(this._hasFlexibleDimensions){const s=e.bottom-t.y,a=e.right-t.x,r=vt(this._overlayRef.getConfig().minHeight),l=vt(this._overlayRef.getConfig().minWidth),d=o.fitsInViewportHorizontally||null!=l&&l<=a;return(o.fitsInViewportVertically||null!=r&&r<=s)&&d}return!1}_pushOverlayOnScreen(o,t,e){if(this._previousPushAmount&&this._positionLocked)return{x:o.x+this._previousPushAmount.x,y:o.y+this._previousPushAmount.y};const s=yt(t),a=this._viewportRect,r=Math.max(o.x+s.width-a.width,0),l=Math.max(o.y+s.height-a.height,0),c=Math.max(a.top-e.top-o.y,0),d=Math.max(a.left-e.left-o.x,0);let h=0,_=0;return h=s.width<=a.width?d||-r:o.x<this._viewportMargin?a.left-e.left-o.x:0,_=s.height<=a.height?c||-l:o.y<this._viewportMargin?a.top-e.top-o.y:0,this._previousPushAmount={x:h,y:_},{x:o.x+h,y:o.y+_}}_applyPosition(o,t){if(this._setTransformOrigin(o),this._setOverlayElementStyles(t,o),this._setBoundingBoxStyles(t,o),o.panelClass&&this._addPanelClasses(o.panelClass),this._lastPosition=o,this._positionChanges.observers.length){const e=this._getScrollVisibility(),s=new de(o,e);this._positionChanges.next(s)}this._isInitialRender=!1}_setTransformOrigin(o){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let e,s=o.overlayY;e="center"===o.overlayX?"center":this._isRtl()?"start"===o.overlayX?"right":"left":"start"===o.overlayX?"left":"right";for(let a=0;a<t.length;a++)t[a].style.transformOrigin=`${e} ${s}`}_calculateBoundingBoxRect(o,t){const e=this._viewportRect,s=this._isRtl();let a,r,l,h,_,y;if("top"===t.overlayY)r=o.y,a=e.height-r+this._viewportMargin;else if("bottom"===t.overlayY)l=e.height-o.y+2*this._viewportMargin,a=e.height-l+this._viewportMargin;else{const C=Math.min(e.bottom-o.y+e.top,o.y),w=this._lastBoundingBoxSize.height;a=2*C,r=o.y-C,a>w&&!this._isInitialRender&&!this._growAfterOpen&&(r=o.y-w/2)}if("end"===t.overlayX&&!s||"start"===t.overlayX&&s)y=e.width-o.x+this._viewportMargin,h=o.x-this._viewportMargin;else if("start"===t.overlayX&&!s||"end"===t.overlayX&&s)_=o.x,h=e.right-o.x;else{const C=Math.min(e.right-o.x+e.left,o.x),w=this._lastBoundingBoxSize.width;h=2*C,_=o.x-C,h>w&&!this._isInitialRender&&!this._growAfterOpen&&(_=o.x-w/2)}return{top:r,left:_,bottom:l,right:y,width:h,height:a}}_setBoundingBoxStyles(o,t){const e=this._calculateBoundingBoxRect(o,t);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;s.height=(0,u.HM)(e.height),s.top=(0,u.HM)(e.top),s.bottom=(0,u.HM)(e.bottom),s.width=(0,u.HM)(e.width),s.left=(0,u.HM)(e.left),s.right=(0,u.HM)(e.right),s.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",s.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",a&&(s.maxHeight=(0,u.HM)(a)),r&&(s.maxWidth=(0,u.HM)(r))}this._lastBoundingBoxSize=e,I(this._boundingBox.style,s)}_resetBoundingBoxStyles(){I(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){I(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(o,t){const e={},s=this._hasExactPosition(),a=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){const h=this._viewportRuler.getViewportScrollPosition();I(e,this._getExactOverlayY(t,o,h)),I(e,this._getExactOverlayX(t,o,h))}else e.position="static";let l="",c=this._getOffset(t,"x"),d=this._getOffset(t,"y");c&&(l+=`translateX(${c}px) `),d&&(l+=`translateY(${d}px)`),e.transform=l.trim(),r.maxHeight&&(s?e.maxHeight=(0,u.HM)(r.maxHeight):a&&(e.maxHeight="")),r.maxWidth&&(s?e.maxWidth=(0,u.HM)(r.maxWidth):a&&(e.maxWidth="")),I(this._pane.style,e)}_getExactOverlayY(o,t,e){let s={top:"",bottom:""},a=this._getOverlayPoint(t,this._overlayRect,o);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,e)),"bottom"===o.overlayY?s.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":s.top=(0,u.HM)(a.y),s}_getExactOverlayX(o,t,e){let r,s={left:"",right:""},a=this._getOverlayPoint(t,this._overlayRect,o);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,e)),r=this._isRtl()?"end"===o.overlayX?"left":"right":"end"===o.overlayX?"right":"left","right"===r?s.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":s.left=(0,u.HM)(a.x),s}_getScrollVisibility(){const o=this._getOriginRect(),t=this._pane.getBoundingClientRect(),e=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:mt(o,e),isOriginOutsideView:it(o,e),isOverlayClipped:mt(t,e),isOverlayOutsideView:it(t,e)}}_subtractOverflows(o,...t){return t.reduce((e,s)=>e-Math.max(s,0),o)}_getNarrowedViewportRect(){const o=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+o-this._viewportMargin,bottom:e.top+t-this._viewportMargin,width:o-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(o,t){return"x"===t?null==o.offsetX?this._offsetX:o.offsetX:null==o.offsetY?this._offsetY:o.offsetY}_validatePositions(){}_addPanelClasses(o){this._pane&&(0,u.Eq)(o).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(o=>{this._pane.classList.remove(o)}),this._appliedPanelClasses=[])}_getOriginRect(){const o=this._origin;if(o instanceof i.SBq)return o.nativeElement.getBoundingClientRect();if(o instanceof Element)return o.getBoundingClientRect();const t=o.width||0,e=o.height||0;return{top:o.y,bottom:o.y+e,left:o.x,right:o.x+t,height:e,width:t}}}function I(n,o){for(let t in o)o.hasOwnProperty(t)&&(n[t]=o[t]);return n}function vt(n){if("number"!=typeof n&&null!=n){const[o,t]=n.split(ue);return t&&"px"!==t?null:parseFloat(o)}return n||null}function yt(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 bt="cdk-global-overlay-wrapper";class me{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(o){const t=o.getConfig();this._overlayRef=o,this._width&&!t.width&&o.updateSize({width:this._width}),this._height&&!t.height&&o.updateSize({height:this._height}),o.hostElement.classList.add(bt),this._isDisposed=!1}top(o=""){return this._bottomOffset="",this._topOffset=o,this._alignItems="flex-start",this}left(o=""){return this._rightOffset="",this._leftOffset=o,this._justifyContent="flex-start",this}bottom(o=""){return this._topOffset="",this._bottomOffset=o,this._alignItems="flex-end",this}right(o=""){return this._leftOffset="",this._rightOffset=o,this._justifyContent="flex-end",this}width(o=""){return this._overlayRef?this._overlayRef.updateSize({width:o}):this._width=o,this}height(o=""){return this._overlayRef?this._overlayRef.updateSize({height:o}):this._height=o,this}centerHorizontally(o=""){return this.left(o),this._justifyContent="center",this}centerVertically(o=""){return this.top(o),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const o=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:s,height:a,maxWidth:r,maxHeight:l}=e,c=!("100%"!==s&&"100vw"!==s||r&&"100%"!==r&&"100vw"!==r),d=!("100%"!==a&&"100vh"!==a||l&&"100%"!==l&&"100vh"!==l);o.position=this._cssPosition,o.marginLeft=c?"0":this._leftOffset,o.marginTop=d?"0":this._topOffset,o.marginBottom=this._bottomOffset,o.marginRight=this._rightOffset,c?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const o=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,e=t.style;t.classList.remove(bt),e.justifyContent=e.alignItems=o.marginTop=o.marginBottom=o.marginLeft=o.marginRight=o.position="",this._overlayRef=null,this._isDisposed=!0}}let _e=(()=>{class n{constructor(t,e,s,a){this._viewportRuler=t,this._document=e,this._platform=s,this._overlayContainer=a}global(){return new me}flexibleConnectedTo(t){return new fe(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(k.rL),i.LFG(g.K0),i.LFG(x.t4),i.LFG(_t))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ct=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(g.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ge=(()=>{class n extends Ct{constructor(t,e){super(t),this._ngZone=e,this._keydownListener=s=>{const a=this._attachedOverlays;for(let r=a.length-1;r>-1;r--)if(a[r]._keydownEvents.observers.length>0){const l=a[r]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(t){super.add(t),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)}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(g.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ve=(()=>{class n extends Ct{constructor(t,e,s){super(t),this._platform=e,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=(0,x.sA)(a)},this._clickListener=a=>{const r=(0,x.sA)(a),l="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){const h=c[d];if(h._outsidePointerEvents.observers.length<1||!h.hasAttached())continue;if(h.overlayElement.contains(r)||h.overlayElement.contains(l))break;const _=h._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_.next(a)):_.next(a)}}}add(t){if(super.add(t),!this._isAttached){const e=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(e)):this._addEventListeners(e),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(g.K0),i.LFG(x.t4),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ye=0,R=(()=>{class n{constructor(t,e,s,a,r,l,c,d,h,_,y){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=s,this._positionBuilder=a,this._keyboardDispatcher=r,this._injector=l,this._ngZone=c,this._document=d,this._directionality=h,this._location=_,this._outsideClickDispatcher=y}create(t){const e=this._createHostElement(),s=this._createPaneElement(e),a=this._createPortalOutlet(s),r=new ot(t);return r.direction=r.direction||this._directionality.value,new pe(a,e,s,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+ye++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new ie(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(he),i.LFG(_t),i.LFG(i._Vd),i.LFG(_e),i.LFG(ge),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(g.K0),i.LFG(F.Is),i.LFG(g.Ye),i.LFG(ve))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const be=[{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"}],Ot=new i.OlP("cdk-connected-overlay-scroll-strategy");let wt=(()=>{class n{constructor(t){this.elementRef=t}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Mt=(()=>{class n{constructor(t,e,s,a,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=D.w0.EMPTY,this._attachSubscription=D.w0.EMPTY,this._detachSubscription=D.w0.EMPTY,this._positionSubscription=D.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new et(e,s),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,u.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,u.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,u.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,u.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,u.Ig)(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=be);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),e.keyCode===v.hY&&!this.disableClose&&!(0,v.Vb)(e)&&(e.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{this.overlayOutsideClick.next(e)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new ot({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return t.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(t),t}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof wt?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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ae(n,o=!1){return(0,ne.e)((t,e)=>{let s=0;t.subscribe((0,se.x)(e,a=>{const r=n(a,s++);(r||o)&&e.next(a),!r&&e.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(R),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Ot),i.Y36(F.Is,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[i.TTD]}),n})();const Oe={provide:Ot,deps:[R],useFactory:function Ce(n){return()=>n.scrollStrategies.reposition()}};let nt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[R,Oe],imports:[[F.vT,oe,k.Cl],k.Cl]}),n})();var xt=p(7144),X=p(4968),L=p(8675),m=p(1777),st=p(6360);const we=["connectionContainer"],Me=["inputContainer"],xe=["label"];function Pe(n,o){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function Se(n,o){if(1&n){const t=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){return i.CHM(t),i.oxw().updateOutlineGap()}),i.Hsn(1,1),i.qZA()}if(2&n){const t=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)}}function ke(n,o){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const t=i.oxw(2);i.xp6(3),i.Oqu(t._control.placeholder)}}function Ee(n,o){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function Ae(n,o){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Te(n,o){if(1&n){const t=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(t),i.oxw().updateOutlineGap()}),i.YNc(2,ke,4,1,"ng-container",12),i.YNc(3,Ee,1,0,"ng-content",12),i.YNc(4,Ae,2,0,"span",22),i.qZA()}if(2&n){const t=i.oxw();i.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),i.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),i.uIk("for",t._control.id)("aria-owns",t._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function De(n,o){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function Re(n,o){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const t=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function Fe(n,o){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const t=i.oxw();i.Q6J("@transitionMessages",t._subscriptAnimationState)}}function Ie(n,o){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const t=i.oxw(2);i.Q6J("id",t._hintLabelId),i.xp6(1),i.Oqu(t.hintLabel)}}function Le(n,o){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,Ie,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const t=i.oxw();i.Q6J("@transitionMessages",t._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",t.hintLabel)}}const Be=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],He=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],ze=new i.OlP("MatError"),Ye={transitionMessages:(0,m.X$)("transitionMessages",[(0,m.SB)("enter",(0,m.oB)({opacity:1,transform:"translateY(0%)"})),(0,m.eR)("void => enter",[(0,m.oB)({opacity:0,transform:"translateY(-5px)"}),(0,m.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let q=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=i.lG2({type:n}),n})();const Ne=new i.OlP("MatHint");let Pt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Ve=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const St=new i.OlP("MatPrefix");let Ze=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matPrefix",""]],features:[i._Bn([{provide:St,useExisting:n}])]}),n})();const Ge=new i.OlP("MatSuffix");let kt=0;const Xe=(0,f.pj)(class{constructor(n){this._elementRef=n}},"primary"),qe=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),U=new i.OlP("MatFormField");let At=(()=>{class n extends Xe{constructor(t,e,s,a,r,l,c){super(t),this._changeDetectorRef=e,this._dir=s,this._defaults=a,this._platform=r,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new S.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+kt++,this._labelId="mat-form-field-label-"+kt++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=a&&a.appearance?a.appearance:"legacy",this._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,u.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,L.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,O.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,A.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,O.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,X.R)(this._label.nativeElement,"transitionend").pipe((0,E.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(a=>"start"===a.align):null,s=this._hintChildren?this._hintChildren.find(a=>"end"===a.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),s&&t.push(s.id)}else this._errorChildren&&t.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null,e=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",a=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!t||!t.children.length||!t.textContent.trim()){const h=e.querySelectorAll(`${s}, ${a}`);for(let _=0;_<h.length;_++)h[_].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let r=0,l=0;const c=e.querySelectorAll(s),d=e.querySelectorAll(a);if(this._label&&this._label.nativeElement.children.length){const h=e.getBoundingClientRect();if(0===h.width&&0===h.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const _=this._getStartEnd(h),y=t.children,C=this._getStartEnd(y[0].getBoundingClientRect());let w=0;for(let P=0;P<y.length;P++)w+=y[P].offsetWidth;r=Math.abs(C-_)-5,l=w>0?.75*w+10:0}for(let h=0;h<c.length;h++)c[h].style.width=`${r}px`;for(let h=0;h<d.length;h++)d[h].style.width=`${l}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(F.Is,8),i.Y36(qe,8),i.Y36(x.t4),i.Y36(i.R0b),i.Y36(st.Qb,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-form-field"]],contentQueries:function(t,e,s){if(1&t&&(i.Suo(s,q,5),i.Suo(s,q,7),i.Suo(s,Pt,5),i.Suo(s,Pt,7),i.Suo(s,Ve,5),i.Suo(s,ze,5),i.Suo(s,Ne,5),i.Suo(s,St,5),i.Suo(s,Ge,5)),2&t){let a;i.iGM(a=i.CRH())&&(e._controlNonStatic=a.first),i.iGM(a=i.CRH())&&(e._controlStatic=a.first),i.iGM(a=i.CRH())&&(e._labelChildNonStatic=a.first),i.iGM(a=i.CRH())&&(e._labelChildStatic=a.first),i.iGM(a=i.CRH())&&(e._placeholderChild=a.first),i.iGM(a=i.CRH())&&(e._errorChildren=a),i.iGM(a=i.CRH())&&(e._hintChildren=a),i.iGM(a=i.CRH())&&(e._prefixChildren=a),i.iGM(a=i.CRH())&&(e._suffixChildren=a)}},viewQuery:function(t,e){if(1&t&&(i.Gf(we,7),i.Gf(Me,5),i.Gf(xe,5)),2&t){let s;i.iGM(s=i.CRH())&&(e._connectionContainerRef=s.first),i.iGM(s=i.CRH())&&(e._inputContainerRef=s.first),i.iGM(s=i.CRH())&&(e._label=s.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,e){2&t&&i.ekj("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[i._Bn([{provide:U,useExisting:n}]),i.qOj],ngContentSelectors:He,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(i.F$t(Be),i.TgZ(0,"div",0)(1,"div",1,2),i.NdJ("click",function(a){return e._control.onContainerClick&&e._control.onContainerClick(a)}),i.YNc(3,Pe,9,0,"ng-container",3),i.YNc(4,Se,2,1,"div",4),i.TgZ(5,"div",5,6),i.Hsn(7),i.TgZ(8,"span",7),i.YNc(9,Te,5,16,"label",8),i.qZA()(),i.YNc(10,De,2,0,"div",9),i.qZA(),i.YNc(11,Re,2,4,"div",10),i.TgZ(12,"div",11),i.YNc(13,Fe,2,1,"div",12),i.YNc(14,Le,5,2,"div",13),i.qZA()()),2&t&&(i.xp6(3),i.Q6J("ngIf","outline"==e.appearance),i.xp6(1),i.Q6J("ngIf",e._prefixChildren.length),i.xp6(5),i.Q6J("ngIf",e._hasFloatingLabel()),i.xp6(1),i.Q6J("ngIf",e._suffixChildren.length),i.xp6(1),i.Q6J("ngIf","outline"!=e.appearance),i.xp6(1),i.Q6J("ngSwitch",e._getDisplayedMessages()),i.xp6(1),i.Q6J("ngSwitchCase","error"),i.xp6(1),i.Q6J("ngSwitchCase","hint"))},directives:[g.O5,xt.wD,g.RF,g.n9],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[Ye.transitionMessages]},changeDetection:0}),n})(),W=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[g.ez,f.BQ,xt.Q8],f.BQ]}),n})();var B=p(5664),Ue=p(449),Tt=p(9770),H=p(3900),z=p(9300),Z=p(4004),Dt=p(1884);const We=["trigger"],$e=["panel"];function Je(n,o){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const t=i.oxw();i.xp6(1),i.Oqu(t.placeholder)}}function Qe(n,o){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const t=i.oxw(2);i.xp6(1),i.Oqu(t.triggerValue)}}function Ke(n,o){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function ti(n,o){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,Qe,2,1,"span",10),i.YNc(2,Ke,1,0,"ng-content",11),i.qZA()),2&n){const t=i.oxw();i.Q6J("ngSwitch",!!t.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function ei(n,o){if(1&n){const t=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(s){return i.CHM(t),i.oxw()._panelDoneAnimatingStream.next(s.toState)})("keydown",function(s){return i.CHM(t),i.oxw()._handleKeydown(s)}),i.Hsn(3,1),i.qZA()()}if(2&n){const t=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",t._getPanelTheme(),""),i.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),i.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),i.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const ii=[[["mat-select-trigger"]],"*"],oi=["mat-select-trigger","*"],Rt={transformPanelWrap:(0,m.X$)("transformPanelWrap",[(0,m.eR)("* => void",(0,m.IO)("@transformPanel",[(0,m.pV)()],{optional:!0}))]),transformPanel:(0,m.X$)("transformPanel",[(0,m.SB)("void",(0,m.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,m.SB)("showing",(0,m.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,m.SB)("showing-multiple",(0,m.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,m.eR)("void => *",(0,m.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,m.eR)("* => void",(0,m.jt)("100ms 25ms linear",(0,m.oB)({opacity:0})))])};let Ft=0;const G=256,Lt=new i.OlP("mat-select-scroll-strategy"),ri=new i.OlP("MAT_SELECT_CONFIG"),li={provide:Lt,deps:[R],useFactory:function ai(n){return()=>n.scrollStrategies.reposition()}};class ci{constructor(o,t){this.source=o,this.value=t}}const hi=(0,f.Kr)((0,f.sb)((0,f.Id)((0,f.FD)(class{constructor(n,o,t,e,s){this._elementRef=n,this._defaultErrorStateMatcher=o,this._parentForm=t,this._parentFormGroup=e,this.ngControl=s}})))),di=new i.OlP("MatSelectTrigger");let pi=(()=>{class n extends hi{constructor(t,e,s,a,r,l,c,d,h,_,y,C,w,P){var V,rt,lt;super(r,a,c,d,_),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=s,this._dir=l,this._parentFormField=h,this._liveAnnouncer=w,this._defaultOptions=P,this._panelOpen=!1,this._compareWith=(T,ct)=>T===ct,this._uid="mat-select-"+Ft++,this._triggerAriaLabelledBy=null,this._destroy=new S.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Ft++,this._panelDoneAnimatingStream=new S.x,this._overlayPanelClass=(null===(V=this._defaultOptions)||void 0===V?void 0:V.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(lt=null===(rt=this._defaultOptions)||void 0===rt?void 0:rt.disableOptionCentering)&&void 0!==lt&<,this.ariaLabel="",this.optionSelectionChanges=(0,Tt.P)(()=>{const T=this.options;return T?T.changes.pipe((0,L.O)(T),(0,H.w)(()=>(0,A.T)(...T.map(ct=>ct.onSelectionChange)))):this._ngZone.onStable.pipe((0,E.q)(1),(0,H.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,z.h)(T=>T),(0,Z.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,z.h)(T=>!T),(0,Z.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==P?void 0:P.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=P.typeaheadDebounceInterval),this._scrollStrategyFactory=C,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(y)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){var t,e,s,a;return null!==(a=null!==(t=this._required)&&void 0!==t?t:null===(s=null===(e=this.ngControl)||void 0===e?void 0:e.control)||void 0===s?void 0:s.hasValidator(M.kI.required))&&void 0!==a&&a}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this._assignValue(t)&&this._onChange(t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Ue.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Dt.x)(),(0,O.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,O.R)(this._destroy)).subscribe(t=>{t.added.forEach(e=>e.select()),t.removed.forEach(e=>e.deselect())}),this.options.changes.pipe((0,L.O)(null),(0,O.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby(),e=this.ngControl;if(t!==this._triggerAriaLabelledBy){const s=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?s.setAttribute("aria-labelledby",t):s.removeAttribute("aria-labelledby")}e&&(this._previousControl!==e.control&&(void 0!==this._previousControl&&null!==e.disabled&&e.disabled!==this.disabled&&(this.disabled=e.disabled),this._previousControl=e.control),this.updateErrorState())}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this._assignValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var t,e;return this.multiple?(null===(t=this._selectionModel)||void 0===t?void 0:t.selected)||[]:null===(e=this._selectionModel)||void 0===e?void 0:e.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,s=e===v.JH||e===v.LH||e===v.oh||e===v.SV,a=e===v.K5||e===v.L_,r=this._keyManager;if(!r.isTyping()&&a&&!(0,v.Vb)(t)||(this.multiple||t.altKey)&&s)t.preventDefault(),this.open();else if(!this.multiple){const l=this.selected;r.onKeydown(t);const c=this.selected;c&&l!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,s=t.keyCode,a=s===v.JH||s===v.LH,r=e.isTyping();if(a&&t.altKey)t.preventDefault(),this.close();else if(r||s!==v.K5&&s!==v.L_||!e.activeItem||(0,v.Vb)(t))if(!r&&this._multiple&&s===v.A&&t.ctrlKey){t.preventDefault();const l=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(l?c.select():c.deselect())})}else{const l=e.activeItemIndex;e.onKeydown(t),this._multiple&&a&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==l&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,E.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(e=>e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(e=>this._selectOptionByValue(e)),this._sortValues();else{const e=this._selectOptionByValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){const e=this.options.find(s=>{if(this._selectionModel.isSelected(s))return!1;try{return null!=s.value&&this._compareWith(s.value,t)}catch(a){return!1}});return e&&this._selectionModel.select(e),e}_assignValue(t){return!!(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t,!0)}_initKeyManager(){this._keyManager=new B.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,O.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,O.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,A.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,O.R)(t)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,A.T)(...this.options.map(e=>e._stateChanges)).pipe((0,O.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const s=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(s!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),s!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,s)=>this.sortComparator?this.sortComparator(e,s,t):t.indexOf(e)-t.indexOf(s)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(s=>s.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let s=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(s+=" "+this.ariaLabelledby),s}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(k.rL),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(f.rD),i.Y36(i.SBq),i.Y36(F.Is,8),i.Y36(M.F,8),i.Y36(M.sg,8),i.Y36(U,8),i.Y36(M.a5,10),i.$8M("tabindex"),i.Y36(Lt),i.Y36(B.Kd),i.Y36(ri,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(t,e){if(1&t&&(i.Gf(We,5),i.Gf($e,5),i.Gf(Mt,5)),2&t){let s;i.iGM(s=i.CRH())&&(e.trigger=s.first),i.iGM(s=i.CRH())&&(e.panel=s.first),i.iGM(s=i.CRH())&&(e._overlayDir=s.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),ui=(()=>{class n extends pi{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,s){const a=this._getItemHeight();return Math.min(Math.max(0,a*t-e+a/2),s)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,O.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,f.CB)(t,this.options,this.optionGroups),s=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===e?0:(0,f.jH)((t+e)*s,s,this.panel.nativeElement.scrollTop,G)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new ci(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),s=this._isRtl(),a=this.multiple?56:32;let r;if(this.multiple)r=40;else if(this.disableOptionCentering)r=16;else{let d=this._selectionModel.selected[0]||this.options.first;r=d&&d.group?32:16}s||(r*=-1);const l=0-(t.left+r-(s?a:0)),c=t.right+r-e.width+(s?0:a);l>0?r+=l+8:c>0&&(r-=c+8),this._overlayDir.offsetX=Math.round(r),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,s){const a=this._getItemHeight(),r=(a-this._triggerRect.height)/2,l=Math.floor(G/a);let c;return this.disableOptionCentering?0:(c=0===this._scrollTop?t*a:this._scrollTop===s?(t-(this._getItemCount()-l))*a+(a-(this._getItemCount()*a-G)%a):e-a/2,Math.round(-1*c-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),s=this._viewportRuler.getViewportSize(),a=this._triggerRect.top-8,r=s.height-this._triggerRect.bottom-8,l=Math.abs(this._offsetY),d=Math.min(this._getItemCount()*e,G)-l-this._triggerRect.height;d>r?this._adjustPanelUp(d,r):l>a?this._adjustPanelDown(l,a,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const s=Math.round(t-e);this._scrollTop-=s,this._offsetY-=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,s){const a=Math.round(t-e);if(this._scrollTop+=a,this._offsetY+=a,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=s)return this._scrollTop=s,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),s=Math.min(e*t,G),r=e*t-s;let l;l=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),l+=(0,f.CB)(l,this.options,this.optionGroups);const c=s/2;this._scrollTop=this._calculateOverlayScroll(l,c,r),this._offsetY=this._calculateOverlayOffsetY(l,c,r),this._checkOverlayWithinViewport(r)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let o;return function(e){return(o||(o=i.n5z(n)))(e||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(t,e,s){if(1&t&&(i.Suo(s,di,5),i.Suo(s,f.ey,5),i.Suo(s,f.K7,5)),2&t){let a;i.iGM(a=i.CRH())&&(e.customTrigger=a.first),i.iGM(a=i.CRH())&&(e.options=a),i.iGM(a=i.CRH())&&(e.optionGroups=a)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&i.NdJ("keydown",function(a){return e._handleKeydown(a)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(i.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),i.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:q,useExisting:n},{provide:f.HF,useExisting:n}]),i.qOj],ngContentSelectors:oi,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(i.F$t(ii),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return e.toggle()}),i.TgZ(3,"div",2),i.YNc(4,Je,2,1,"span",3),i.YNc(5,ti,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,ei,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const s=i.MAs(1);i.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",e.empty),i.uIk("id",e._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[wt,g.RF,g.n9,g.ED,Mt,g.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[Rt.transformPanelWrap,Rt.transformPanel]},changeDetection:0}),n})(),fi=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[li],imports:[[g.ez,nt,f.Ng,f.BQ],k.ZD,W,f.Ng,f.BQ]}),n})();var Bt=p(5113);const mi=["tooltip"],Ht="tooltip-panel",zt=(0,x.i$)({passive:!0}),Yt=new i.OlP("mat-tooltip-scroll-strategy"),yi={provide:Yt,deps:[R],useFactory:function vi(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},bi=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ci(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Oi=(()=>{class n{constructor(t,e,s,a,r,l,c,d,h,_,y,C){this._overlay=t,this._elementRef=e,this._scrollDispatcher=s,this._viewContainerRef=a,this._ngZone=r,this._platform=l,this._ariaDescriber=c,this._focusMonitor=d,this._dir=_,this._defaultOptions=y,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new S.x,this._scrollStrategy=h,this._document=C,y&&(y.position&&(this.position=y.position),y.touchGestures&&(this.touchGestures=y.touchGestures)),_.change.pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,u.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=(0,u.su)(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=(0,u.su)(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,O.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([e,s])=>{t.removeEventListener(e,s,zt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new pt(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=e.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe((0,O.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var t;if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return s.positionChanges.pipe((0,O.R)(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${Ht}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,O.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,O.R)(this._destroyed)).subscribe(()=>{var a;return null===(a=this._tooltipInstance)||void 0===a?void 0:a._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,O.R)(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===v.hY&&!(0,v.Vb)(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(t=this._defaultOptions)||void 0===t?void 0:t.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,s=this._getOrigin(),a=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),a.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),a.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let s;"above"==e||"below"==e?s={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?s={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(s={originX:"end",originY:"center"});const{x:a,y:r}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:a,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let s;"above"==e?s={overlayX:"center",overlayY:"bottom"}:"below"==e?s={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?s={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(s={overlayX:"start",overlayY:"center"});const{x:a,y:r}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:a,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,E.q)(1),(0,O.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:s,originY:a}=t;let r;if(r="center"===e?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===e&&"top"===a?"above":"below",r!==this._currentPosition){const l=this._overlayRef;if(l){const c=`${this._cssClassPrefix}-${Ht}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",e=>{var s;const a=e.relatedTarget;(!a||!(null===(s=this._overlayRef)||void 0===s?void 0:s.overlayElement.contains(a)))&&this.hide()}],["wheel",e=>this._wheelListener(e)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([e,s])=>{this._elementRef.nativeElement.addEventListener(e,s,zt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),s=this._elementRef.nativeElement;e!==s&&!s.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,s=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===t||!e.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),wi=(()=>{class n extends Oi{constructor(t,e,s,a,r,l,c,d,h,_,y,C){super(t,e,s,a,r,l,c,d,h,_,y,C),this._tooltipComponent=xi}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(R),i.Y36(i.SBq),i.Y36(k.mF),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(x.t4),i.Y36(B.$s),i.Y36(B.tE),i.Y36(Yt),i.Y36(F.Is,8),i.Y36(bi,8),i.Y36(g.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),Mi=(()=>{class n{constructor(t,e){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new S.x,this._animationsDisabled="NoopAnimations"===e}show(t){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const e=this._tooltip.nativeElement,s=this._showAnimation,a=this._hideAnimation;if(e.classList.remove(t?a:s),e.classList.add(t?s:a),this._isVisible=t,t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const r=getComputedStyle(e);("0s"===r.getPropertyValue("animation-duration")||"none"===r.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(i.sBO),i.Y36(st.Qb,8))},n.\u0275dir=i.lG2({type:n}),n})(),xi=(()=>{class n extends Mi{constructor(t,e,s){super(t,s),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe(Bt.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(i.sBO),i.Y36(Bt.Yg),i.Y36(st.Qb,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(t,e){if(1&t&&i.Gf(mi,7),2&t){let s;i.iGM(s=i.CRH())&&(e._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("mouseleave",function(a){return e._handleMouseLeave(a)}),2&t&&i.Udp("zoom",e.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(a){return e._handleAnimationEnd(a)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&t){let s;i.ekj("mat-tooltip-handset",null==(s=i.lcZ(2,4,e._isHandset))?null:s.matches),i.Q6J("ngClass",e.tooltipClass),i.xp6(3),i.Oqu(e.message)}},directives:[g.mk],pipes:[g.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),Pi=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[yi],imports:[[B.rt,g.ez,nt,f.BQ],f.BQ,k.ZD]}),n})();function Si(n,o){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const t=o.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function ki(n,o){if(1&n){const t=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(s){return i.CHM(t),i.oxw(2)._changePageSize(s.value)}),i.YNc(2,Si,2,2,"mat-option",18),i.qZA()()}if(2&n){const t=i.oxw(2);i.Q6J("appearance",t._formFieldAppearance)("color",t.color),i.xp6(1),i.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",t._displayedPageSizeOptions)}}function Ei(n,o){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const t=i.oxw(2);i.xp6(1),i.Oqu(t.pageSize)}}function Ai(n,o){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,ki,3,6,"mat-form-field",14),i.YNc(4,Ei,2,1,"div",15),i.qZA()),2&n){const t=i.oxw();i.xp6(2),i.hij(" ",t._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",t._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function Ti(n,o){if(1&n){const t=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(t),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&n){const t=i.oxw();i.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.firstPageLabel)}}function Di(n,o){if(1&n){const t=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(t),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&n){const t=i.oxw();i.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.lastPageLabel)}}let J=(()=>{class n{constructor(){this.changes=new S.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,s)=>{if(0==s||0==e)return`0 of ${s}`;const a=t*e;return`${a+1} \u2013 ${a<(s=Math.max(s,0))?Math.min(a+e,s):a+e} of ${s}`}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fi={provide:J,deps:[[new i.FiY,new i.tp0,J]],useFactory:function Ri(n){return n||new J}},Li=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Bi=(0,f.Id)((0,f.dB)(class{}));let Hi=(()=>{class n extends Bi{constructor(t,e,s){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),s){const{pageSize:a,pageSizeOptions:r,hidePageSize:l,showFirstLastButtons:c}=s;null!=a&&(this._pageSize=a),null!=r&&(this._pageSizeOptions=r),null!=l&&(this._hidePageSize=l),null!=c&&(this._showFirstLastButtons=c)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,u.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,u.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,u.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(e=>(0,u.su)(e)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,u.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,u.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const s=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(s)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){!this._initialized||(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,e)=>t-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(t){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),n})(),zi=(()=>{class n extends Hi{constructor(t,e,s){super(t,e,s),s&&null!=s.formFieldAppearance&&(this._formFieldAppearance=s.formFieldAppearance)}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(J),i.Y36(i.sBO),i.Y36(Li,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,Ai,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,Ti,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return e.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return e.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,Di,3,5,"button",11),i.qZA()()()),2&t&&(i.xp6(2),i.Q6J("ngIf",!e.hidePageSize),i.xp6(3),i.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),i.xp6(1),i.Q6J("ngIf",e.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",e.showFirstLastButtons))},directives:[At,ui,f.ey,dt.lW,g.O5,g.sg,wi],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),Yi=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Fi],imports:[[g.ez,dt.ot,fi,Pi,f.BQ]]}),n})();var Ni=p(515);const Nt=(0,x.i$)({passive:!0});let Vi=(()=>{class n{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Ni.E;const e=(0,u.fI)(t),s=this._monitoredElements.get(e);if(s)return s.subject;const a=new S.x,r="cdk-text-field-autofilled",l=c=>{"cdk-text-field-autofill-start"!==c.animationName||e.classList.contains(r)?"cdk-text-field-autofill-end"===c.animationName&&e.classList.contains(r)&&(e.classList.remove(r),this._ngZone.run(()=>a.next({target:c.target,isAutofilled:!1}))):(e.classList.add(r),this._ngZone.run(()=>a.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",l,Nt),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:a,unlisten:()=>{e.removeEventListener("animationstart",l,Nt)}}),a}stopMonitoring(t){const e=(0,u.fI)(t),s=this._monitoredElements.get(e);s&&(s.unlisten(),s.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(x.t4),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Zi=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),Gi=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ji=0;const Xi=(0,f.FD)(class{constructor(n,o,t,e){this._defaultErrorStateMatcher=n,this._parentForm=o,this._parentFormGroup=t,this.ngControl=e}});let qi=(()=>{class n extends Xi{constructor(t,e,s,a,r,l,c,d,h,_){super(l,a,r,s),this._elementRef=t,this._platform=e,this._autofillMonitor=d,this._formField=_,this._uid="mat-input-"+ji++,this.focused=!1,this.stateChanges=new S.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(w=>(0,x.qK)().has(w)),this._iOSKeyupListener=w=>{const P=w.target;!P.value&&0===P.selectionStart&&0===P.selectionEnd&&(P.setSelectionRange(1,1),P.setSelectionRange(0,0))};const y=this._elementRef.nativeElement,C=y.nodeName.toLowerCase();this._inputValueAccessor=c||y,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&h.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===C,this._isTextarea="textarea"===C,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=y.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,u.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){var t,e,s,a;return null!==(a=null!==(t=this._required)&&void 0!==t?t:null===(s=null===(e=this.ngControl)||void 0===e?void 0:e.control)||void 0===s?void 0:s.hasValidator(M.kI.required))&&void 0!==a&&a}set required(t){this._required=(0,u.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,x.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,u.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const s=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(s!==this._previousPlaceholder){const a=this._elementRef.nativeElement;this._previousPlaceholder=s,s?a.setAttribute("placeholder",s):a.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){Gi.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(i.SBq),i.Y36(x.t4),i.Y36(M.a5,10),i.Y36(M.F,8),i.Y36(M.sg,8),i.Y36(f.rD),i.Y36(Zi,10),i.Y36(Vi),i.Y36(i.R0b),i.Y36(U,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(i.Ikx("disabled",e.disabled)("required",e.required),i.uIk("id",e.id)("data-placeholder",e.placeholder)("name",e.name||null)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),i.ekj("mat-input-server",e._isServer)("mat-native-select-inline",e._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[i._Bn([{provide:q,useExisting:n}]),i.qOj,i.TTD]}),n})(),Ui=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[f.rD],imports:[[Vt,W,f.BQ],Vt,W]}),n})();var Zt=p(5245),Wi=p(9646),$i=p(8505),Ji=p(4986),Qi=p(7272),Ki=p(8502),to=p(9718),Gt=p(5577);function jt(n,o){return o?t=>(0,Qi.z)(o.pipe((0,E.q)(1),(0,Ki.l)()),t.pipe(jt(n))):(0,Gt.z)((t,e)=>n(t,e).pipe((0,E.q)(1),(0,to.h)(t)))}var eo=p(2805);function io(n,o=Ji.z){const t=(0,eo.H)(n,o);return jt(()=>t)}const oo=["panel"];function no(n,o){if(1&n&&(i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA()),2&n){const t=o.id,e=i.oxw();i.Q6J("id",e.id)("ngClass",e._classList),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby(t))}}const so=["*"];let ao=0;class ro{constructor(o,t){this.source=o,this.option=t}}const lo=(0,f.Kr)(class{}),Xt=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function co(){return{autoActiveFirstOption:!1}}});let ho=(()=>{class n extends lo{constructor(t,e,s,a){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=D.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.vpe,this.opened=new i.vpe,this.closed=new i.vpe,this.optionActivated=new i.vpe,this._classList={},this.id="mat-autocomplete-"+ao++,this.inertGroups=(null==a?void 0:a.SAFARI)||!1,this._autoActiveFirstOption=!!s.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=(0,u.Ig)(t)}set classList(t){this._classList=t&&t.length?(0,u.du)(t).reduce((e,s)=>(e[s]=!0,e),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new B.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new ro(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(Xt),i.Y36(x.t4))},n.\u0275dir=i.lG2({type:n,viewQuery:function(t,e){if(1&t&&(i.Gf(i.Rgc,7),i.Gf(oo,5)),2&t){let s;i.iGM(s=i.CRH())&&(e.template=s.first),i.iGM(s=i.CRH())&&(e.panel=s.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),po=(()=>{class n extends ho{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let o;return function(e){return(o||(o=i.n5z(n)))(e||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,s){if(1&t&&(i.Suo(s,f.K7,5),i.Suo(s,f.ey,5)),2&t){let a;i.iGM(a=i.CRH())&&(e.optionGroups=a),i.iGM(a=i.CRH())&&(e.options=a)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i._Bn([{provide:f.HF,useExisting:n}]),i.qOj],ngContentSelectors:so,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,no,3,4,"ng-template"))},directives:[g.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const qt=new i.OlP("mat-autocomplete-scroll-strategy"),fo={provide:qt,deps:[R],useFactory:function uo(n){return()=>n.scrollStrategies.reposition()}},mo={provide:M.JU,useExisting:(0,i.Gpc)(()=>Ut),multi:!0};let _o=(()=>{class n{constructor(t,e,s,a,r,l,c,d,h,_,y){this._element=t,this._overlay=e,this._viewContainerRef=s,this._zone=a,this._changeDetectorRef=r,this._dir=c,this._formField=d,this._document=h,this._viewportRuler=_,this._defaults=y,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=D.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new S.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,Tt.P)(()=>{const C=this.autocomplete?this.autocomplete.options:null;return C?C.changes.pipe((0,L.O)(C),(0,H.w)(()=>(0,A.T)(...C.map(w=>w.onSelectionChange)))):this._zone.onStable.pipe((0,E.q)(1),(0,H.w)(()=>this.optionSelections))}),this._scrollStrategy=l}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=(0,u.Ig)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,A.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,z.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,z.h)(()=>this._overlayAttached)):(0,Wi.of)()).pipe((0,Z.U)(t=>t instanceof f.rN?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,A.T)((0,X.R)(this._document,"click"),(0,X.R)(this._document,"auxclick"),(0,X.R)(this._document,"touchend")).pipe((0,z.h)(t=>{const e=(0,x.sA)(t),s=this._formField?this._formField._elementRef.nativeElement:null,a=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!s||!s.contains(e))&&(!a||!a.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve().then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode,s=(0,v.Vb)(t);if(e===v.hY&&!s&&t.preventDefault(),this.activeOption&&e===v.K5&&this.panelOpen&&!s)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const a=this.autocomplete._keyManager.activeItem,r=e===v.LH||e===v.JH;e===v.Mf||r&&!s&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):r&&this._canOpen()&&this.openPanel(),(r||this.autocomplete._keyManager.activeItem!==a)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,s=e.value;"number"===e.type&&(s=""==s?null:parseFloat(s)),this._previousValue!==s&&(this._previousValue=s,this._onChange(s),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,E.q)(1)),e=this.autocomplete.options.changes.pipe((0,$i.b)(()=>this._positionStrategy.reapplyLastPosition()),io(0));return(0,A.T)(t,e).pipe((0,H.w)(()=>(this._zone.run(()=>{const s=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),s!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),(0,E.q)(1)).subscribe(s=>this._setValueAndClose(s))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,s=null!=e?e:"";this._formField?this._formField._control.value=s:this._element.nativeElement.value=s,this._previousValue=s}_setValueAndClose(t){const e=t&&t.source;e&&(this._clearPreviousSelectedOption(e),this._setTriggerValue(e.value),this._onChange(e.value),this.autocomplete._emitSelectEvent(e),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new et(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(a=>{(a.keyCode===v.hY&&!(0,v.Vb)(a)||a.keyCode===v.LH&&(0,v.Vb)(a,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),a.stopPropagation(),a.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const s=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&s!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new ot({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],s=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:s},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:s}];let r;r="above"===this.position?a:"below"===this.position?e:[...e,...a],t.withPositions(r)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,s=(0,f.CB)(t,e.options,e.optionGroups);if(0===t&&1===s)e._setScrollTop(0);else if(e.panel){const a=e.options.toArray()[t];if(a){const r=a._getHostElement(),l=(0,f.jH)(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(l)}}}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(i.SBq),i.Y36(R),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(qt),i.Y36(F.Is,8),i.Y36(U,9),i.Y36(g.K0,8),i.Y36(k.rL),i.Y36(Xt,8))},n.\u0275dir=i.lG2({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[i.TTD]}),n})(),Ut=(()=>{class n extends _o{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let o;return function(e){return(o||(o=i.n5z(n)))(e||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(a){return e._handleInput(a)})("keydown",function(a){return e._handleKeydown(a)})("click",function(){return e._handleClick()}),2&t&&i.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",e.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[i._Bn([mo]),i.qOj]}),n})(),go=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fo],imports:[[nt,f.Ng,f.BQ,g.ez],k.ZD,f.Ng,f.BQ]}),n})();var vo=p(8372);const Wt=(0,b.PH)("[Characters] Load Characters"),$t=(0,b.PH)("[Characters] Load Characters Success",(0,b.Ky)()),N=(0,b.PH)("[Characters] Load Characters by params",(0,b.Ky)()),Jt=(0,b.PH)("[Characters] Load Characters Failed"),Q=(0,b.ZF)("characters"),at=(0,b.P1)(Q,n=>null==n?void 0:n.entities),yo=(0,b.P1)(Q,n=>n.offset),bo=(0,b.P1)(Q,n=>n.limit),Co=(0,b.P1)(Q,n=>n.nameStartsWith);function Oo(n,o){if(1&n&&(i.TgZ(0,"mat-option",22),i._uU(1),i.qZA()),2&n){const t=o.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function wo(n,o){if(1&n&&(i.TgZ(0,"div",23)(1,"a",24)(2,"div",25)(3,"figure",26),i._UZ(4,"img",27),i.qZA()(),i.TgZ(5,"div",28)(6,"p",29),i._uU(7),i.qZA(),i.TgZ(8,"div",30)(9,"p",31),i._uU(10),i.ALo(11,"date"),i.qZA(),i._UZ(12,"p",32),i.qZA()()()()),2&n){const t=o.$implicit;i.xp6(4),i.hYB("src","",t.thumbnail.path,".",t.thumbnail.extension,"",i.LSH),i.xp6(3),i.Oqu(t.name),i.xp6(3),i.Oqu(i.xi3(11,4,t.modified,"dd/MM/yyyy"))}}let Mo=(()=>{class n{constructor(t){this.store=t,this.allCharacters$=this.store.pipe((0,b.Ys)(at)),this.length=2700,this.pageSize=36,this.pageSizeOptions=[6,12,18,24,36],this.searchControl=new M.NI(""),this.options=[],this.charactersFilter$=this.searchControl.valueChanges.pipe((0,vo.b)(300),(0,z.h)(e=>e.length>=3||!e.length),(0,Dt.x)(),(0,H.w)(e=>this.getCharactersByName(e))),this.characters$=(0,A.T)(this.allCharacters$,this.charactersFilter$)}ngOnInit(){this.store.dispatch(N({offset:0,limit:36}))}getCharactersByPage(t){this.pageEvent=t,this.store.dispatch(N({offset:this.pageEvent.pageIndex,limit:this.pageEvent.pageSize})),this.allCharacters$=this.store.pipe((0,b.Ys)(at))}getCharactersByName(t){console.log("name",t),this.store.dispatch(N(0==t.length?{offset:this.pageEvent.pageIndex,limit:this.pageEvent.pageSize,nameStartsWith:t}:{nameStartsWith:t}));const e=this.store.pipe((0,b.Ys)(at));return e.subscribe(s=>{if(s.length<36){const a=[];s.forEach(r=>{a.push(r.name)}),this.options=a}}),0==t.length&&(this.options=[]),e}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(b.yh))},n.\u0275cmp=i.Xpm({type:n,selectors:[["app-characters"]],decls:27,vars:9,consts:[[1,"section-color-dark"],[1,"masthead","mini-background"],[1,"masthead-wrapper"],[1,"masthead-background-wrapper"],[1,"img-wrapper","masthead-background"],[1,"built-background","built-background-multi"],[1,"masthead-hero"],[1,"masthead-main"],[1,"masthead-container"],[1,"masthead-headline"],[1,"masthead-copy"],[1,"full-content"],[1,"row"],["floatLabel","never",1,"col-md-6","col-sm-6"],["matPrefix","",1,"mr-8"],["type","search","id","searchCharacters","matInput","","placeholder","Search",1,"w-100",3,"formControl","matAutocomplete"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"content-grid"],[1,"grid-base","grid-6"],["class","mvl-card mvl-card-explore",4,"ngFor","ngForOf"],["aria-label","Select page",3,"length","pageSize","pageSizeOptions","page"],[3,"value"],[1,"mvl-card","mvl-card-explore"],["href","",1,"explore-link"],[1,"card-thumb-frame"],[1,"img-wrapper"],["alt","",1,"card-thumb-frame-thumbnail","img-blur",3,"src"],[1,"card-body","is-sliding"],[1,"card-body-headline"],[1,"card-footer"],[1,"card-footer-secondary-text"],[1,"card-footer-micro-description"]],template:function(t,e){if(1&t&&(i.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"figure",4),i._UZ(5,"div",5),i.qZA()(),i.TgZ(6,"div",6)(7,"div",7)(8,"div",8)(9,"span",9),i._uU(10,"Marvel Characters"),i.qZA(),i.TgZ(11,"div",10),i._uU(12," Get hooked on a hearty helping of heroes and villains from the humble House of Ideas! "),i.qZA()()()()()()(),i.TgZ(13,"div",11)(14,"form",12)(15,"mat-form-field",13)(16,"mat-icon",14),i._uU(17,"search"),i.qZA(),i._UZ(18,"input",15),i.TgZ(19,"mat-autocomplete",null,16),i.YNc(21,Oo,2,2,"mat-option",17),i.qZA()()(),i.TgZ(22,"div",18)(23,"div",19),i.YNc(24,wo,13,7,"div",20),i.ALo(25,"async"),i.qZA()(),i.TgZ(26,"mat-paginator",21),i.NdJ("page",function(a){return e.getCharactersByPage(a)}),i.qZA()()),2&t){const s=i.MAs(20);i.xp6(18),i.Q6J("formControl",e.searchControl)("matAutocomplete",s),i.xp6(3),i.Q6J("ngForOf",e.options),i.xp6(3),i.Q6J("ngForOf",i.lcZ(25,7,e.characters$)),i.xp6(2),i.Q6J("length",e.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)}},directives:[M._Y,M.JL,M.F,At,Zt.Hw,Ze,qi,M.Fj,Ut,M.JJ,M.oH,po,g.sg,f.ey,zi],pipes:[g.Ov,g.uU],styles:['.section-color-dark[_ngcontent-%COMP%]{background-color:#151515}.masthead[_ngcontent-%COMP%]{position:relative;width:100%;margin:0}.masthead.mini-background[_ngcontent-%COMP%]{height:auto;background-color:transparent}.masthead-wrapper[_ngcontent-%COMP%]{position:relative;clip-path:polygon(0 0,0 99%,100% 95%,100% 0);transition:clip-path .25s ease-in}.masthead-background-wrapper[_ngcontent-%COMP%]{clip-path:polygon(0 0,0 98%,100% 92%,100% 0)}.masthead.mini-background[_ngcontent-%COMP%] .masthead-background[_ngcontent-%COMP%]{min-height:unset;max-height:unset;height:340px}.masthead-background[_ngcontent-%COMP%]{background-color:#151515;height:200px;left:0;order:1;position:relative;top:0;width:100%}.masthead-background[_ngcontent-%COMP%] .built-background[_ngcontent-%COMP%]{width:100%;height:100%;background-position:top}.built-background-multi[_ngcontent-%COMP%]{background-image:url(https://terrigen-cdn-dev.marvel.com/content/prod/1x/characters_art_mas_mob_01.jpg)}.built-background[_ngcontent-%COMP%]{background-repeat:no-repeat;background-position:top;background-size:cover;transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.masthead-background[_ngcontent-%COMP%] .built-background[_ngcontent-%COMP%]:after{content:"";position:absolute;width:100%;height:100%;background:linear-gradient(90deg,rgba(0,0,0,.65) 0,rgba(0,0,0,.2));filter:progid:dximagetransform.microsoft.gradient(startColorstr="#a6000000",endColorstr="#00000000",GradientType=1)}.masthead.mini-background[_ngcontent-%COMP%] .masthead-hero[_ngcontent-%COMP%]{position:absolute;top:0;height:340px;background-color:transparent}.masthead-hero[_ngcontent-%COMP%]{display:flex;height:auto;position:relative;width:100%;z-index:50;flex-direction:column}.masthead.mini-background[_ngcontent-%COMP%] .masthead-main[_ngcontent-%COMP%]{top:0;height:100%;display:flex;text-align:center}.masthead-main[_ngcontent-%COMP%]{align-items:center;order:2;padding:25px 0}.masthead-hero[_ngcontent-%COMP%], .masthead-main[_ngcontent-%COMP%]{display:flex;height:auto;position:relative;width:100%;z-index:50}.masthead.mini-background[_ngcontent-%COMP%] .masthead-container[_ngcontent-%COMP%]{padding:0 10px 10px;margin:0 auto;overflow:visible}.masthead-container[_ngcontent-%COMP%]{width:100%;padding:0 30px 20px;margin:0 auto;white-space:normal;z-index:10;zoom:1}.masthead-headline[_ngcontent-%COMP%]{padding:0 0 15px;margin:0;display:block;color:#fff;font:500 26px/1 RobotoCondensed Bold,Trebuchet MS,Helvetica,Arial,sans-serif;line-height:1;text-transform:uppercase;transition:font-size .2s ease}.masthead.mini-background[_ngcontent-%COMP%] .masthead-copy[_ngcontent-%COMP%]{padding:0;margin:5px 0 0;font:400 16px/1.3 Roboto,Trebuchet MS,Helvetica,Arial,sans-serif;color:#fff;font-size:16px;letter-spacing:.5px}.mr-8[_ngcontent-%COMP%]{margin-right:8px}#searchCharacters[_ngcontent-%COMP%]{font:800 26px/1 RobotoCondensed,Trebuchet MS,Helvetica,Arial,sans-serif;letter-spacing:1px;text-transform:uppercase}#searchCharacters[_ngcontent-%COMP%]::placeholder{font:800 26px/1 RobotoCondensed,Trebuchet MS,Helvetica,Arial,sans-serif;letter-spacing:1px;text-transform:uppercase}.full-content[_ngcontent-%COMP%]{position:relative;display:block;padding:10px 20px 0;margin:0 auto;max-width:1240px;transition:opacity .6s}.full-content[_ngcontent-%COMP%] .content-grid[_ngcontent-%COMP%]{padding:0}.content-grid[_ngcontent-%COMP%]{max-width:1240px;padding:10px 20px 0;margin:0 auto}.content-grid[_ngcontent-%COMP%] .grid-base[_ngcontent-%COMP%]{display:grid;transition:max-height 1s ease-out;overflow:hidden;grid-column-gap:10px}.content-grid[_ngcontent-%COMP%] .mvl-card[_ngcontent-%COMP%]{margin:6px 0 4px}.mvl-card-explore[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;color:#fff;max-width:100%;transition:color .3s}.mvl-card-explore[_ngcontent-%COMP%]:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:#fff;border-style:solid;border-top-color:transparent;border-width:12px 12px 0 0;bottom:0;content:"";position:absolute;right:0;top:auto;z-index:40}.mvl-card-explore[_ngcontent-%COMP%] .card-thumb-frame[_ngcontent-%COMP%]{background:#e62429;margin:0;overflow:hidden;padding:0}.mvl-card-explore[_ngcontent-%COMP%] .card-thumb-frame[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%]{position:relative;overflow:hidden;height:170px}figure.img-wrapper[_ngcontent-%COMP%]{margin:0;padding:0;overflow:hidden}.mvl-card-explore[_ngcontent-%COMP%] .card-thumb-frame[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%]:after{height:4px;content:"";background-color:#e62429;width:100%;position:absolute;left:0;bottom:0}.mvl-card-explore[_ngcontent-%COMP%] .card-thumb-frame[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transform:scaleX(1);transition:all .2s linear;overflow:hidden;object-position:top center}.mvl-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .mvl-card[_ngcontent-%COMP%] picture[_ngcontent-%COMP%]{display:block;margin:0;object-fit:cover;object-position:center center;padding:0;width:100%;height:100%}.mvl-card-explore[_ngcontent-%COMP%] .card-thumb-frame[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:after{position:absolute;content:"";display:block;background-color:#151515;top:0;width:100%;height:100%}.content-grid[_ngcontent-%COMP%] .mvl-card-explore[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{padding:16px 10px 17px}.mvl-card-explore[_ngcontent-%COMP%] .card-body.is-sliding[_ngcontent-%COMP%]{background:#151515;color:#e62429;transition:color .3s}.mvl-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{overflow:hidden;position:relative;line-height:1}.mvl-card-explore[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{background:none;border:none;color:inherit;height:145px;padding:16px 24px 17px 16px;position:relative;vertical-align:middle;z-index:30}.mvl-card-explore[_ngcontent-%COMP%] .card-body.is-sliding[_ngcontent-%COMP%]:before{background:#e62429;bottom:100%;content:"";height:100%;left:0;position:absolute;transition-timing-function:cubic-bezier(.75,0,.125,1);transition:transform .3s;width:100%;z-index:-1}.mvl-card-explore[_ngcontent-%COMP%] .card-body-headline[_ngcontent-%COMP%]{color:#fff}.mvl-card-explore[_ngcontent-%COMP%] .card-body-headline[_ngcontent-%COMP%]{font:400 16px/1.1 RobotoCondensed Bold,Trebuchet MS,Helvetica,Arial,sans-serif;letter-spacing:1px;text-transform:uppercase}.mvl-card-explore[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%]{bottom:17px;position:absolute;padding-right:10px;text-align:left}.mvl-card-explore[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-footer-secondary-text[_ngcontent-%COMP%]{font:400 12px/1 RobotoCondensed Bold,Trebuchet MS,Helvetica,Arial,sans-serif;color:#bbb;letter-spacing:1px;text-transform:uppercase;transform:translate3d(0) scale(1);transition:all .17s ease-in-out}.mvl-card-explore[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-footer-micro-description[_ngcontent-%COMP%]{font:400 12px/1 RobotoCondensed Bold,Trebuchet MS,Helvetica,Arial,sans-serif;color:#767676;text-transform:uppercase}.mvl-card-explore[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-footer-micro-description[_ngcontent-%COMP%]{letter-spacing:1px;text-transform:uppercase;transform:translate3d(0) scale(1);transition:all .17s ease-in-out}.mvl-card-explore[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:#fff;border-style:solid;border-top-color:transparent;border-width:12px 12px 0 0;bottom:0;content:"";position:absolute;right:0;top:auto;z-index:40}.mvl-card-explore[_ngcontent-%COMP%] .explore-link[_ngcontent-%COMP%]:focus figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .mvl-card-explore[_ngcontent-%COMP%]:hover figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transform:scale(1.05)}.mvl-card-explore[_ngcontent-%COMP%] .explore-link[_ngcontent-%COMP%]:focus .card-body[_ngcontent-%COMP%]:before, .mvl-card-explore[_ngcontent-%COMP%]:hover .card-body[_ngcontent-%COMP%]:before{transform:translateY(100%)}@media screen and (min-width: 839px){.masthead.mini-background[_ngcontent-%COMP%] .masthead-background[_ngcontent-%COMP%]{position:relative;height:400px}.masthead.mini-background[_ngcontent-%COMP%]{min-height:400px}.masthead.masthead.mini-background[_ngcontent-%COMP%] .masthead-wrapper[_ngcontent-%COMP%]{min-height:unset;max-height:unset;height:100%;clip-path:polygon(0 0,0 98%,100% 92%,100% 0)}.built-background-multi[_ngcontent-%COMP%]{background-image:url(https://terrigen-cdn-dev.marvel.com/content/prod/1x/characters_art_mas_dsk_01.jpg)!important}.masthead.mini-background[_ngcontent-%COMP%] .masthead-main[_ngcontent-%COMP%]{padding:20px 0}.masthead[_ngcontent-%COMP%] .masthead-main[_ngcontent-%COMP%]{max-width:1200px;margin:0 auto;height:100%;order:inherit}.masthead.mini-background[_ngcontent-%COMP%] .masthead-copy[_ngcontent-%COMP%]{display:block;text-align:center}.content-grid[_ngcontent-%COMP%] .grid-base.grid-6[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(15.82%,1fr))!important}.content-grid[_ngcontent-%COMP%] .mvl-card-explore[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{padding:16px 24px 17px 20px}}@media screen and (min-width: 961px){.masthead[_ngcontent-%COMP%] .masthead-background[_ngcontent-%COMP%] .built-background[_ngcontent-%COMP%]{background-position:50%}.masthead-headline[_ngcontent-%COMP%]{font-size:44px}}@media screen and (min-width: 375px){.content-grid[_ngcontent-%COMP%] .grid-base.grid-3[_ngcontent-%COMP%], .content-grid[_ngcontent-%COMP%] .grid-base.grid-4[_ngcontent-%COMP%], .content-grid[_ngcontent-%COMP%] .grid-base.grid-6[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(31.66%,1fr))}}@media screen and (min-width: 601px){.mvl-card-explore[_ngcontent-%COMP%] .card-thumb-frame[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%]{height:210px}}']}),n})();const Po=(0,b.Lq)({entities:[],loading:!1,offset:0,limit:36,nameStartsWith:"",error:!1},(0,b.on)(Wt,n=>Object.assign(Object.assign({},n),{entities:[],loading:!0,error:!1,offset:0,limit:36,nameStartsWith:""})),(0,b.on)(N,(n,{offset:o,limit:t,nameStartsWith:e})=>Object.assign(Object.assign({},n),{offset:o,limit:t,nameStartsWith:e,loading:!1})),(0,b.on)($t,(n,{entities:o})=>Object.assign(Object.assign({},n),{entities:o,loading:!1})),(0,b.on)(Jt,n=>Object.assign(Object.assign({},n),{loading:!1,error:!0})));function So(n,o){return Po(n,o)}var ko=p(1365),Eo=p(262),Qt=p(2340);let Ao=(()=>{class n{constructor(t){this.http=t,this.baseUrl=Qt.N.BASE_URL,this.params=Qt.N.PARAMS}getAllCharacters(t=0,e=36,s){const a=s?(new K.LE).append("nameStartsWith",s):void 0;return this.http.get(`${this.baseUrl}/characters${this.params}&orderBy=name&offset=${t}&limit=${e}`,{params:a}).pipe((0,Z.U)(r=>r.data.results))}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(K.eN))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),To=(()=>{class n{constructor(t,e,s){this.actions$=t,this.store=e,this.charactersService=s,this.loadCharacters$=(0,j.GW)(()=>this.actions$.pipe((0,j.l4)(Wt,N),(0,ko.M)(this.store.pipe((0,b.Ys)(yo)),this.store.pipe((0,b.Ys)(bo)),this.store.pipe((0,b.Ys)(Co))),(0,Gt.z)(([,a,r,l])=>this.charactersService.getAllCharacters(a,r,l).pipe((0,Z.U)(c=>$t({entities:c})))),(0,Eo.K)((a,r)=>(this.store.dispatch(Jt()),r))))}}return n.\u0275fac=function(t){return new(t||n)(i.LFG(j.eX),i.LFG(b.yh),i.LFG(Ao))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Do=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[g.ez,Yi,W,Ui,Zt.Ps,go,M.u5,M.UX,Kt.Bz.forChild([{path:"",component:Mo}]),b.Aw.forFeature("characters",So),j.sQ.forFeature([To]),K.JF]]}),n})()}}]);