import{a as jn}from"./chunk-65RPSMRQ.js";import{c as Nn,d as zn,g as Bn,k as Vn}from"./chunk-JELJKPCD.js";import{h as Ln}from"./chunk-7HJ6OBS4.js";import{h as Pn,n as He,t as Fn}from"./chunk-4YKLO6PP.js";import{$b as m,A as _i,Ba as Gt,Ca as xi,D as Ut,Db as se,E as Ae,Ea as M,Eb as Sn,F as oe,Fa as Ci,Fb as B,Gc as Tn,Ha as Le,Hb as v,Ib as y,J as gi,Ja as vn,Jb as Dn,Jc as ct,Ka as Ne,Kb as le,La as yn,Lb as wt,Lc as On,M as vi,Mb as St,Mc as Zt,N as Pe,Nb as O,Nc as E,Ob as c,Oc as ce,P as Et,Pb as h,Pc as In,Q as Fe,Qb as U,Qc as Rn,Rb as Mt,S as V,Sb as Ft,Sc as _t,T as bn,Tb as Tt,U as _n,Ub as En,Wc as R,Xb as nt,Xc as yt,Ya as xn,Yb as ze,Yc as An,Zb as D,Zc as je,_b as kn,a as dt,aa as b,ac as bt,ba as k,bb as wi,bc as Y,c as Ht,cb as d,cc as Be,d as f,da as g,dc as vt,e as mn,ec as P,f as un,fa as s,fc as F,gc as Ve,hc as Mn,ib as kt,ic as de,ja as Yt,jb as Xt,jc as Dt,kb as pt,kc as Si,la as J,lb as ft,lc as I,m as Re,ma as tt,mb as Cn,mc as et,na as At,nc as x,oa as gn,ob as Kt,oc as ot,pa as W,pb as wn,pc as rt,q as gt,qa as j,r as hn,ra as yi,sb as A,ta as $,tb as T,u as pn,ua as w,ub as z,v as fn,wb as ae,xa as H,xb as $t,y as Wt,yc as Lt,z as lt,za as Pt,zb as re}from"./chunk-COCHPIBX.js";import{a as N,b as cn}from"./chunk-Q7L6LLAK.js";var Hn=class{pageIndex=H(1);pageSize=H(10);searchText=H("");sortColumn=H("");sortDirection=H("asc");draw=H(1);getQuery(){return{draw:this.draw(),page:this.pageIndex(),pageSize:this.pageSize(),search:this.searchText(),sortBy:this.sortColumn(),sortDir:this.sortDirection(),isActive:null}}setSearch(i){return this.searchText.set(i),this.pageIndex.set(1),this.draw.update(t=>t+1),this.getQuery()}setPage(i){return this.pageIndex.set(i.pageIndex),this.pageSize.set(i.pageSize),this.draw.update(t=>t+1),this.getQuery()}setSort(i){return this.sortColumn.set(i.column),this.sortDirection.set(i.direction),this.pageIndex.set(1),this.draw.update(t=>t+1),this.getQuery()}reset(){return this.pageIndex.set(1),this.pageSize.set(10),this.searchText.set(""),this.sortColumn.set(""),this.sortDirection.set("asc"),this.draw.set(1),this.getQuery()}};var qt=class o{constructor(i){this.templateRef=i}appDataTableCell=E.required();static \u0275fac=function(t){return new(t||o)(Cn(Xt))};static \u0275dir=z({type:o,selectors:[["","appDataTableCell",""]],inputs:{appDataTableCell:[1,"appDataTableCell"]}})};function me(o){return o.buttons===0||o.detail===0}function ue(o){let i=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Di;function Wn(){if(Di==null){let o=typeof document<"u"?document.head:null;Di=!!(o&&(o.createShadowRoot||o.attachShadow))}return Di}function Ei(o){if(Wn()){let i=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function it(o){return o.composedPath?o.composedPath()[0]:o.target}var ki;try{ki=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ki=!1}var L=(()=>{class o{_platformId=s(vn);isBrowser=this._platformId?Fn(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||ki)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var he;function Un(){if(he==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>he=!0}))}finally{he=he||!1}return he}function Qt(o){return Un()?o:!!o.capture}function pe(o,i=0){return Yn(o)?Number(o):arguments.length===2?i:0}function Yn(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function xt(o){return o instanceof M?o.nativeElement:o}var Gn=new g("cdk-input-modality-detector-options"),Xn={ignoreKeys:[18,17,224,91,16]},Kn=650,Mi={passive:!0,capture:!0},$n=(()=>{class o{_platform=s(L);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new mn(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(e=>e===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=it(t))};_onMousedown=t=>{Date.now()-this._lastTouchMs{if(ue(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=it(t)};constructor(){let t=s(w),e=s(j),n=s(Gn,{optional:!0});if(this._options=N(N({},Xn),n),this.modalityDetected=this._modality.pipe(Pe(1)),this.modalityChanged=this.modalityDetected.pipe(oe()),this._platform.isBrowser){let a=s(pt).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[a.listen(e,"keydown",this._onKeydown,Mi),a.listen(e,"mousedown",this._onMousedown,Mi),a.listen(e,"touchstart",this._onTouchstart,Mi)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t())}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),fe=(function(o){return o[o.IMMEDIATE=0]="IMMEDIATE",o[o.EVENTUAL=1]="EVENTUAL",o})(fe||{}),Zn=new g("cdk-focus-monitor-default-options"),We=Qt({passive:!0,capture:!0}),be=(()=>{class o{_ngZone=s(w);_platform=s(L);_inputModalityDetector=s($n);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=s(j);_stopInputModalityDetector=new f;constructor(){let t=s(Zn,{optional:!0});this._detectionMode=t?.detectionMode||fe.IMMEDIATE}_rootNodeFocusAndBlurListener=t=>{let e=it(t);for(let n=e;n;n=n.parentElement)t.type==="focus"?this._onFocus(t,n):this._onBlur(t,n)};monitor(t,e=!1){let n=xt(t);if(!this._platform.isBrowser||n.nodeType!==1)return Re();let a=Ei(n)||this._document,r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;let l={checkChildren:e,subject:new f,rootNode:a};return this._elementInfo.set(n,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let e=xt(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){let a=xt(t),r=this._document.activeElement;a===r?this._getClosestElementsInfo(a).forEach(([l,u])=>this._originChanged(l,e,u)):(this._setOrigin(e),typeof a.focus=="function"&&a.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===fe.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,e){t.classList.toggle("cdk-focused",!!e),t.classList.toggle("cdk-touch-focused",e==="touch"),t.classList.toggle("cdk-keyboard-focused",e==="keyboard"),t.classList.toggle("cdk-mouse-focused",e==="mouse"),t.classList.toggle("cdk-program-focused",e==="program")}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&e,this._detectionMode===fe.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?Kn:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(t,e){let n=this._elementInfo.get(e),a=it(t);!n||!n.checkChildren&&e!==a||this._originChanged(e,this._getFocusOrigin(a),n)}_onBlur(t,e){let n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n,null))}_emitOrigin(t,e){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,We),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,We)}),this._rootNodeFocusListenerCount.set(e,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(V(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(t){let e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){let n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,We),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,We),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){let e=[];return this._elementInfo.forEach((n,a)=>{(a===t||n.checkChildren&&a.contains(t))&&e.push([a,n])}),e}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:e,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!e||e===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let a=t.labels;if(a){for(let r=0;r{class o{_appRef;_injector=s(W);_environmentInjector=s(Yt);load(t){let e=this._appRef=this._appRef||this._injector.get(se),n=Ue.get(e);n||(n={loaders:new Set,refs:[]},Ue.set(e,n),e.onDestroy(()=>{Ue.get(e)?.refs.forEach(a=>a.destroy()),Ue.delete(e)})),n.loaders.has(t)||(n.loaders.add(t),n.refs.push(je(t,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var _e=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(e,n){},styles:[`.cdk-visually-hidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; outline: 0; -webkit-appearance: none; -moz-appearance: none; left: 0; } [dir=rtl] .cdk-visually-hidden { left: auto; right: 0; } `],encapsulation:2,changeDetection:0})}return o})(),Ye;function ga(){if(Ye===void 0&&(Ye=null,typeof window<"u")){let o=window;o.trustedTypes!==void 0&&(Ye=o.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Ye}function va(o){return ga()?.createHTML(o)||o}function qn(o,i,t){let e=t.sanitize(xn.HTML,i);o.innerHTML=va(e||"")}function Jt(o){return Array.isArray(o)?o:[o]}var Qn=new Set,Nt,te=(()=>{class o{_platform=s(L);_nonce=s(yn,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xa}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&ya(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function ya(o,i){if(!Qn.has(o))try{Nt||(Nt=document.createElement("style"),i&&Nt.setAttribute("nonce",i),Nt.setAttribute("type","text/css"),document.head.appendChild(Nt)),Nt.sheet&&(Nt.sheet.insertRule(`@media ${o} {body{ }}`,0),Qn.add(o))}catch(t){console.error(t)}}function xa(o){return{matches:o==="all"||o==="",media:o,addListener:()=>{},removeListener:()=>{}}}var Ti=(()=>{class o{_mediaMatcher=s(te);_zone=s(w);_queries=new Map;_destroySubject=new f;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Jn(Jt(t)).some(n=>this._registerQuery(n).mql.matches)}observe(t){let n=Jn(Jt(t)).map(r=>this._registerQuery(r).observable),a=hn(n);return a=pn(a.pipe(Ae(1)),a.pipe(Pe(1),Ut(0))),a.pipe(gt(r=>{let l={matches:!1,breakpoints:{}};return r.forEach(({matches:u,query:_})=>{l.matches=l.matches||u,l.breakpoints[_]=u}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let e=this._mediaMatcher.matchMedia(t),a={observable:new Ht(r=>{let l=u=>this._zone.run(()=>r.next(u));return e.addListener(l),()=>{e.removeListener(l)}}).pipe(Et(e),gt(({matches:r})=>({query:t,matches:r})),V(this._destroySubject)),mql:e};return this._queries.set(t,a),a}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function Jn(o){return o.map(i=>i.split(",")).reduce((i,t)=>i.concat(t)).map(i=>i.trim())}var Ca=(()=>{class o{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ge=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({providers:[Ca]})}return o})();var io=new g("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),no=new g("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),wa=0,Ii=(()=>{class o{_ngZone=s(w);_defaultOptions=s(no,{optional:!0});_liveElement;_document=s(j);_sanitizer=s(Ln);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=s(io,{optional:!0});this._liveElement=t||this._createLiveElement()}announce(t,...e){let n=this._defaultOptions,a,r;return e.length===1&&typeof e[0]=="number"?r=e[0]:[a,r]=e,this.clear(),clearTimeout(this._previousTimeout),a||(a=n&&n.politeness?n.politeness:"polite"),r==null&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!t||typeof t=="string"?this._liveElement.textContent=t:qn(this._liveElement,t,this._sanitizer),typeof r=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),r)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let a=0;a .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{class o{_platform=s(L);_hasCheckedHighContrastMode=!1;_document=s(j);_breakpointSubscription;constructor(){this._breakpointSubscription=s(Ti).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ot.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,a=(n&&n.backgroundColor||"").replace(/ /g,"");switch(t.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ot.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ot.BLACK_ON_WHITE}return Ot.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(Oi,to,eo),this._hasCheckedHighContrastMode=!0;let e=this.getHighContrastMode();e===Ot.BLACK_ON_WHITE?t.add(Oi,to):e===Ot.WHITE_ON_BLACK&&t.add(Oi,eo)}}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Ri=(()=>{class o{constructor(){s(oo)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[Ge]})}return o})();var Sa=200,Xe=class{_letterKeyStream=new f;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new f;selectedItem=this._selectedItem;constructor(i,t){let e=typeof t?.debounceInterval=="number"?t.debounceInterval:Sa;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(i),this._setupKeyHandler(e)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let t=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(_n(t=>this._pressedLetters.push(t)),Ut(i),lt(()=>this._pressedLetters.length>0),gt(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let e=1;eo[t]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var Ke=class{_items;_activeItemIndex=H(-1);_activeItem=H(null);_wrap=!1;_typeaheadSubscription=dt.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,t){this._items=i,i instanceof Ci?this._itemChangesSubscription=i.changes.subscribe(e=>this._itemsChanged(e.toArray())):re(i)&&(this._effectRef=Pt(()=>this._itemsChanged(i()),{injector:t}))}tabOut=new f;change=new f;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new Xe(t,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.setActiveItem(e)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,t=10){return this._pageUpAndDown={enabled:i,delta:t},this}setActiveItem(i){let t=this._activeItem();this.updateActiveItem(i),this._activeItem()!==t&&this.change.next(this._activeItemIndex())}onKeydown(i){let t=i.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(a=>!i[a]||this._allowedModifierKeys.indexOf(a)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let a=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(a>0?a:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let a=this._activeItemIndex()+this._pageUpAndDown.delta,r=this._getItemsArray().length;this._setActiveItemByIndex(a-1&&e!==this._activeItemIndex()&&(this._activeItemIndex.set(e),this._typeahead?.setCurrentSelectedItemIndex(e))}}};var ge=class extends Ke{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Fi={},st=class o{_appId=s(Le);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,t=!1){return this._appId!=="ng"&&(i+=this._appId),Fi.hasOwnProperty(i)||(Fi[i]=0),`${i}${t?o._infix+"-":""}${Fi[i]++}`}static \u0275fac=function(t){return new(t||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})};var co=" ";function zi(o,i,t){let e=Ze(o,i);t=t.trim(),!e.some(n=>n.trim()===t)&&(e.push(t),o.setAttribute(i,e.join(co)))}function qe(o,i,t){let e=Ze(o,i);t=t.trim();let n=e.filter(a=>a!==t);n.length?o.setAttribute(i,n.join(co)):o.removeAttribute(i)}function Ze(o,i){return o.getAttribute(i)?.match(/\S+/g)??[]}var mo="cdk-describedby-message",$e="cdk-describedby-host",Ni=0,uo=(()=>{class o{_platform=s(L);_document=s(j);_messageRegistry=new Map;_messagesContainer=null;_id=`${Ni++}`;constructor(){s(mt).load(_e),this._id=s(Le)+"-"+Ni++}describe(t,e,n){if(!this._canBeDescribed(t,e))return;let a=Li(e,n);typeof e!="string"?(lo(e,this._id),this._messageRegistry.set(a,{messageElement:e,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,a)||this._addMessageReference(t,a)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;let a=Li(e,n);if(this._isElementDescribedByMessage(t,a)&&this._removeMessageReference(t,a),typeof e=="string"){let r=this._messageRegistry.get(a);r&&r.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${$e}="${this._id}"]`);for(let e=0;en.indexOf(mo)!=0);t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){let n=this._messageRegistry.get(e);zi(t,"aria-describedby",n.messageElement.id),t.setAttribute($e,this._id),n.referenceCount++}_removeMessageReference(t,e){let n=this._messageRegistry.get(e);n.referenceCount--,qe(t,"aria-describedby",n.messageElement.id),t.removeAttribute($e)}_isElementDescribedByMessage(t,e){let n=Ze(t,"aria-describedby"),a=this._messageRegistry.get(e),r=a&&a.messageElement.id;return!!r&&n.indexOf(r)!=-1}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&typeof e=="object")return!0;let n=e==null?"":`${e}`.trim(),a=t.getAttribute("aria-label");return n?!a||a.trim()!==n:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function Li(o,i){return typeof o=="string"?`${i||""}/${o}`:o}function lo(o,i){o.id||(o.id=`${mo}-${i}-${Ni++}`)}var Da=new g("cdk-dir-doc",{providedIn:"root",factory:()=>s(j)}),Ea=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function ho(o){let i=o?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?Ea.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Ct=(()=>{class o{get value(){return this.valueSignal()}valueSignal=H("ltr");change=new $;constructor(){let t=s(Da,{optional:!0});if(t){let e=t.body?t.body.dir:null,n=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(ho(e||n||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Z=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({})}return o})();function G(o){return o==null?"":typeof o=="string"?o:`${o}px`}function ve(o){return o!=null&&`${o}`!="false"}var zt;function po(){if(zt==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return zt=!1,zt;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)zt=!0;else{let o=Element.prototype.scrollTo;o?zt=!/\{\s*\[native code\]\s*\}/.test(o.toString()):zt=!1}}return zt}function Bi(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Vi=class{_box;_destroyed=new f;_resizeSubject=new f;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(t=>this._resizeSubject.next(t)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new Ht(t=>{let e=this._resizeSubject.subscribe(t);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),e.unsubscribe(),this._elementObservables.delete(i)}}).pipe(lt(t=>t.some(e=>e.target===i)),vi({bufferSize:1,refCount:!0}),V(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},fo=(()=>{class o{_cleanupErrorListener;_observers=new Map;_ngZone=s(w);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(t,e){let n=e?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new Vi(n)),this._observers.get(n).observe(t)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var ka=new g("MATERIAL_ANIMATIONS"),bo=null;function Ma(){return s(ka,{optional:!0})?.animationsDisabled||s(Ne,{optional:!0})==="NoopAnimations"?"di-disabled":(bo??=s(te).matchMedia("(prefers-reduced-motion)").matches,bo?"reduced-motion":"enabled")}function at(){return Ma()!=="enabled"}var Ta=["notch"],Oa=["matFormFieldNotchedOutline",""],Ia=["*"],_o=["iconPrefixContainer"],go=["textPrefixContainer"],vo=["iconSuffixContainer"],yo=["textSuffixContainer"],Ra=["textField"],Aa=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Pa=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Fa(o,i){o&1&&U(0,"span",21)}function La(o,i){if(o&1&&(c(0,"label",20),Y(1,1),v(2,Fa,1,0,"span",21),h()),o&2){let t=m(2);O("floating",t._shouldLabelFloat())("monitorResize",t._hasOutline())("id",t._labelId),B("for",t._control.disableAutomaticLabeling?null:t._control.id),d(2),y(!t.hideRequiredMarker&&t._control.required?2:-1)}}function Na(o,i){if(o&1&&v(0,La,3,5,"label",20),o&2){let t=m();y(t._hasFloatingLabel()?0:-1)}}function za(o,i){o&1&&U(0,"div",7)}function Ba(o,i){}function Va(o,i){if(o&1&&$t(0,Ba,0,0,"ng-template",13),o&2){m(2);let t=Dt(1);O("ngTemplateOutlet",t)}}function ja(o,i){if(o&1&&(c(0,"div",9),v(1,Va,1,1,null,13),h()),o&2){let t=m();O("matFormFieldNotchedOutlineOpen",t._shouldLabelFloat()),d(),y(t._forceDisplayInfixLabel()?-1:1)}}function Ha(o,i){o&1&&(c(0,"div",10,2),Y(2,2),h())}function Wa(o,i){o&1&&(c(0,"div",11,3),Y(2,3),h())}function Ua(o,i){}function Ya(o,i){if(o&1&&$t(0,Ua,0,0,"ng-template",13),o&2){m();let t=Dt(1);O("ngTemplateOutlet",t)}}function Ga(o,i){o&1&&(c(0,"div",14,4),Y(2,4),h())}function Xa(o,i){o&1&&(c(0,"div",15,5),Y(2,5),h())}function Ka(o,i){o&1&&U(0,"div",16)}function $a(o,i){o&1&&(c(0,"div",18),Y(1,6),h())}function Za(o,i){if(o&1&&(c(0,"mat-hint",22),x(1),h()),o&2){let t=m(2);O("id",t._hintLabelId),d(),ot(t.hintLabel)}}function qa(o,i){if(o&1&&(c(0,"div",19),v(1,Za,2,2,"mat-hint",22),Y(2,7),U(3,"div",23),Y(4,8),h()),o&2){let t=m();d(),y(t.hintLabel?1:-1)}}var ji=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o,selectors:[["mat-label"]]})}return o})(),Qa=new g("MatError");var Hi=(()=>{class o{align="start";id=s(st).getId("mat-mdc-hint-");static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,n){e&2&&(ze("id",n.id),B("align",null),I("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"}})}return o})(),Ja=new g("MatPrefix");var tr=new g("MatSuffix");var ko=new g("FloatingLabelParent"),xo=(()=>{class o{_elementRef=s(M);get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=s(fo);_ngZone=s(w);_parent=s(ko);_resizeSubscription=new dt;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return er(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,n){e&2&&I("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return o})();function er(o){let i=o;if(i.offsetParent!==null)return i.scrollWidth;let t=i.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);let e=t.scrollWidth;return t.remove(),e}var Co="mdc-line-ripple--active",Qe="mdc-line-ripple--deactivating",wo=(()=>{class o{_elementRef=s(M);_cleanupTransitionEnd;constructor(){let t=s(w),e=s(ft);t.runOutsideAngular(()=>{this._cleanupTransitionEnd=e.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(Qe),t.add(Co)}deactivate(){this._elementRef.nativeElement.classList.add(Qe)}_handleTransitionEnd=t=>{let e=this._elementRef.nativeElement.classList,n=e.contains(Qe);t.propertyName==="opacity"&&n&&e.remove(Co,Qe)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return o})(),So=(()=>{class o{_elementRef=s(M);_ngZone=s(w);open=!1;_notch;ngAfterViewInit(){let t=this._elementRef.nativeElement,e=t.querySelector(".mdc-floating-label");e?(t.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):t.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){let e=this._notch.nativeElement;!this.open||!t?e.style.width="":e.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(t){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${t}px)`)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(e,n){if(e&1&&vt(Ta,5),e&2){let a;P(a=F())&&(n._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,n){e&2&&I("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:Oa,ngContentSelectors:Ia,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(e,n){e&1&&(bt(),Tt(0,"div",1),Mt(1,"div",2,0),Y(3),Ft(),Tt(4,"div",3))},encapsulation:2,changeDetection:0})}return o})(),Wi=(()=>{class o{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o})}return o})();var Ui=new g("MatFormField"),ir=new g("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Do="fill",nr="auto",Eo="fixed",or="translateY(-50%)",Je=(()=>{class o{_elementRef=s(M);_changeDetectorRef=s(_t);_platform=s(L);_idGenerator=s(st);_ngZone=s(w);_defaults=s(ir,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=ce("iconPrefixContainer");_textPrefixContainerSignal=ce("textPrefixContainer");_iconSuffixContainerSignal=ce("iconSuffixContainer");_textSuffixContainerSignal=ce("textSuffixContainer");_prefixSuffixContainers=ct(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(t=>t?.nativeElement).filter(t=>t!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=In(ji);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=ve(t)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||nr}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(t){let e=t||this._defaults?.appearance||Do;this._appearanceSignal.set(e)}_appearanceSignal=H(Do);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Eo}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||Eo}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}_destroyed=new f;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=at();constructor(){let t=this._defaults,e=s(Ct);t&&(t.appearance&&(this.appearance=t.appearance),this._hideRequiredMarker=!!t?.hideRequiredMarker,t.color&&(this.color=t.color)),Pt(()=>this._currentDirection=e.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=ct(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(t){let e=this._control,n="mat-mdc-form-field-type-";t&&this._elementRef.nativeElement.classList.remove(n+t.controlType),e.controlType&&this._elementRef.nativeElement.classList.add(n+e.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=e.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=e.stateChanges.pipe(Et([void 0,void 0]),gt(()=>[e.errorState,e.userAriaDescribedBy]),gi(),lt(([[a,r],[l,u]])=>a!==l||r!==u)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),e.ngControl&&e.ngControl.valueChanges&&(this._valueChanges=e.ngControl.valueChanges.pipe(V(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Wt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let t=this._control.focused;t&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!t&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",t),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",t)}_syncOutlineLabelOffset(){An({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let t of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(t,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:t=>this._writeOutlinedLabelStyles(t())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=ct(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(t){let e=this._control?this._control.ngControl:null;return e&&e[t]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let a=this._hintChildren?this._hintChildren.find(l=>l.align==="start"):null,r=this._hintChildren?this._hintChildren.find(l=>l.align==="end"):null;a?t.push(a.id):this._hintLabel&&t.push(this._hintLabelId),r&&t.push(r.id)}else this._errorChildren&&t.push(...this._errorChildren.map(a=>a.id));let e=this._control.describedByIds,n;if(e){let a=this._describedByIds||t;n=t.concat(e.filter(r=>r&&!a.includes(r)))}else n=t;this._control.setDescribedByIds(n),this._describedByIds=t}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let t=this._iconPrefixContainer?.nativeElement,e=this._textPrefixContainer?.nativeElement,n=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,r=t?.getBoundingClientRect().width??0,l=e?.getBoundingClientRect().width??0,u=n?.getBoundingClientRect().width??0,_=a?.getBoundingClientRect().width??0,p=this._currentDirection==="rtl"?"-1":"1",C=`${r+l}px`,Q=`calc(${p} * (${C} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,K=`var(--mat-mdc-form-field-label-transform, ${or} translateX(${Q}))`,X=r+l+u+_;return[K,X]}_writeOutlinedLabelStyles(t){if(t!==null){let[e,n]=t;this._floatingLabel&&(this._floatingLabel.element.style.transform=e),n!==null&&this._notchedOutline?._setMaxWidth(n)}}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["mat-form-field"]],contentQueries:function(e,n,a){if(e&1&&(Ve(a,n._labelChild,ji,5),Be(a,Wi,5)(a,Ja,5)(a,tr,5)(a,Qa,5)(a,Hi,5)),e&2){de();let r;P(r=F())&&(n._formFieldControl=r.first),P(r=F())&&(n._prefixChildren=r),P(r=F())&&(n._suffixChildren=r),P(r=F())&&(n._errorChildren=r),P(r=F())&&(n._hintChildren=r)}},viewQuery:function(e,n){if(e&1&&(Mn(n._iconPrefixContainerSignal,_o,5)(n._textPrefixContainerSignal,go,5)(n._iconSuffixContainerSignal,vo,5)(n._textSuffixContainerSignal,yo,5),vt(Ra,5)(_o,5)(go,5)(vo,5)(yo,5)(xo,5)(So,5)(wo,5)),e&2){de(4);let a;P(a=F())&&(n._textField=a.first),P(a=F())&&(n._iconPrefixContainer=a.first),P(a=F())&&(n._textPrefixContainer=a.first),P(a=F())&&(n._iconSuffixContainer=a.first),P(a=F())&&(n._textSuffixContainer=a.first),P(a=F())&&(n._floatingLabel=a.first),P(a=F())&&(n._notchedOutline=a.first),P(a=F())&&(n._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(e,n){e&2&&I("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Lt([{provide:Ui,useExisting:o},{provide:ko,useExisting:o}])],ngContentSelectors:Pa,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(e,n){if(e&1&&(bt(Aa),$t(0,Na,1,1,"ng-template",null,0,Tn),c(2,"div",6,1),D("click",function(r){return n._control.onContainerClick(r)}),v(4,za,1,0,"div",7),c(5,"div",8),v(6,ja,2,2,"div",9),v(7,Ha,3,0,"div",10),v(8,Wa,3,0,"div",11),c(9,"div",12),v(10,Ya,1,1,null,13),Y(11),h(),v(12,Ga,3,0,"div",14),v(13,Xa,3,0,"div",15),h(),v(14,Ka,1,0,"div",16),h(),c(15,"div",17),v(16,$a,2,0,"div",18)(17,qa,5,1,"div",19),h()),e&2){let a;d(2),I("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),d(2),y(!n._hasOutline()&&!n._control.disabled?4:-1),d(2),y(n._hasOutline()?6:-1),d(),y(n._hasIconPrefix?7:-1),d(),y(n._hasTextPrefix?8:-1),d(2),y(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),d(2),y(n._hasTextSuffix?12:-1),d(),y(n._hasIconSuffix?13:-1),d(),y(n._hasOutline()?-1:14),d(),I("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic");let r=n._getSubscriptMessageType();d(),y((a=r)==="error"?16:a==="hint"?17:-1)}},dependencies:[xo,So,He,wo,Hi],styles:[`.mdc-text-field { display: inline-flex; align-items: baseline; padding: 0 16px; position: relative; box-sizing: border-box; overflow: hidden; will-change: opacity, transform, color; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .mdc-text-field__input { width: 100%; min-width: 0; border: none; border-radius: 0; background: none; padding: 0; -moz-appearance: none; -webkit-appearance: none; height: 28px; } .mdc-text-field__input::-webkit-calendar-picker-indicator, .mdc-text-field__input::-webkit-search-cancel-button { display: none; } .mdc-text-field__input::-ms-clear { display: none; } .mdc-text-field__input:focus { outline: none; } .mdc-text-field__input:invalid { box-shadow: none; } .mdc-text-field__input::placeholder { opacity: 0; } .mdc-text-field__input::-moz-placeholder { opacity: 0; } .mdc-text-field__input::-webkit-input-placeholder { opacity: 0; } .mdc-text-field__input:-ms-input-placeholder { opacity: 0; } .mdc-text-field--no-label .mdc-text-field__input::placeholder, .mdc-text-field--focused .mdc-text-field__input::placeholder { opacity: 1; } .mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mdc-text-field--focused .mdc-text-field__input::-moz-placeholder { opacity: 1; } .mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder { opacity: 1; } .mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder { opacity: 1; } .mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder { opacity: 0; } .mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder { opacity: 0; } .mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder { opacity: 0; } .mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder { opacity: 0; } .mdc-text-field--outlined .mdc-text-field__input, .mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input { height: 100%; } .mdc-text-field--outlined .mdc-text-field__input { display: flex; border: none !important; background-color: transparent; } .mdc-text-field--disabled .mdc-text-field__input { pointer-events: auto; } .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input { color: var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface)); caret-color: var(--mat-form-field-filled-caret-color, var(--mat-sys-primary)); } .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder { color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder { color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder { color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder { color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input { color: var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface)); caret-color: var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder { color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder { color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder { color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder { color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input { caret-color: var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error)); } .mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input { caret-color: var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error)); } .mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input { color: var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input { color: var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } @media (forced-colors: active) { .mdc-text-field--disabled .mdc-text-field__input { background-color: Window; } } .mdc-text-field--filled { height: 56px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; border-top-left-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small)); border-top-right-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small)); } .mdc-text-field--filled:not(.mdc-text-field--disabled) { background-color: var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant)); } .mdc-text-field--filled.mdc-text-field--disabled { background-color: var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent)); } .mdc-text-field--outlined { height: 56px; overflow: visible; padding-right: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))); padding-left: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px); } [dir=rtl] .mdc-text-field--outlined { padding-right: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px); padding-left: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))); } .mdc-floating-label { position: absolute; left: 0; transform-origin: left top; line-height: 1.15rem; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: text; overflow: hidden; will-change: transform; } [dir=rtl] .mdc-floating-label { right: 0; left: auto; transform-origin: right top; text-align: right; } .mdc-text-field .mdc-floating-label { top: 50%; transform: translateY(-50%); pointer-events: none; } .mdc-notched-outline .mdc-floating-label { display: inline-block; position: relative; max-width: 100%; } .mdc-text-field--outlined .mdc-floating-label { left: 4px; right: auto; } [dir=rtl] .mdc-text-field--outlined .mdc-floating-label { left: auto; right: 4px; } .mdc-text-field--filled .mdc-floating-label { left: 16px; right: auto; } [dir=rtl] .mdc-text-field--filled .mdc-floating-label { left: auto; right: 16px; } .mdc-text-field--disabled .mdc-floating-label { cursor: default; } @media (forced-colors: active) { .mdc-text-field--disabled .mdc-floating-label { z-index: 1; } } .mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label { display: none; } .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label { color: var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label { color: var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary)); } .mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label { color: var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label { color: var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label { color: var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error)); } .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label { color: var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error)); } .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label { color: var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container)); } .mdc-text-field--filled .mdc-floating-label { font-family: var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font)); font-size: var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size)); font-weight: var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight)); letter-spacing: var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label { color: var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label { color: var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label { color: var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface)); } .mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label { color: var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label { color: var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label { color: var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label { color: var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container)); } .mdc-text-field--outlined .mdc-floating-label { font-family: var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font)); font-size: var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size)); font-weight: var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight)); letter-spacing: var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking)); } .mdc-floating-label--float-above { cursor: auto; transform: translateY(-106%) scale(0.75); } .mdc-text-field--filled .mdc-floating-label--float-above { transform: translateY(-106%) scale(0.75); } .mdc-text-field--outlined .mdc-floating-label--float-above { transform: translateY(-37.25px) scale(1); font-size: 0.75rem; } .mdc-notched-outline .mdc-floating-label--float-above { text-overflow: clip; } .mdc-notched-outline--upgraded .mdc-floating-label--float-above { max-width: 133.3333333333%; } .mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above { transform: translateY(-34.75px) scale(0.75); } .mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above { font-size: 1rem; } .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after { margin-left: 1px; margin-right: 0; content: "*"; } [dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after { margin-left: 0; margin-right: 1px; } .mdc-notched-outline { display: flex; position: absolute; top: 0; right: 0; left: 0; box-sizing: border-box; width: 100%; max-width: 100%; height: 100%; text-align: left; pointer-events: none; } [dir=rtl] .mdc-notched-outline { text-align: right; } .mdc-text-field--outlined .mdc-notched-outline { z-index: 1; } .mat-mdc-notch-piece { box-sizing: border-box; height: 100%; pointer-events: none; border: none; border-top: 1px solid; border-bottom: 1px solid; } .mdc-text-field--focused .mat-mdc-notch-piece { border-width: 2px; } .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece { border-color: var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline)); border-width: var(--mat-form-field-outlined-outline-width, 1px); } .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece { border-color: var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece { border-color: var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary)); } .mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece { border-color: var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece { border-color: var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece { border-color: var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece { border-color: var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error)); } .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece { border-width: var(--mat-form-field-outlined-focus-outline-width, 2px); } .mdc-notched-outline__leading { border-left: 1px solid; border-right: none; border-top-right-radius: 0; border-bottom-right-radius: 0; border-top-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); border-bottom-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); } .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading { width: max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))); } [dir=rtl] .mdc-notched-outline__leading { border-left: none; border-right: 1px solid; border-bottom-left-radius: 0; border-top-left-radius: 0; border-top-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); border-bottom-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); } .mdc-notched-outline__trailing { flex-grow: 1; border-left: none; border-right: 1px solid; border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); border-bottom-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); } [dir=rtl] .mdc-notched-outline__trailing { border-left: 1px solid; border-right: none; border-top-right-radius: 0; border-bottom-right-radius: 0; border-top-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); border-bottom-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)); } .mdc-notched-outline__notch { flex: 0 0 auto; width: auto; } .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch { max-width: min(var(--mat-form-field-notch-max-width, 100%), calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2)); } .mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch { max-width: min(100%, calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2)); } .mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch { padding-top: 1px; } .mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch { padding-top: 2px; } .mdc-notched-outline--notched .mdc-notched-outline__notch { padding-left: 0; padding-right: 8px; border-top: none; } [dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch { padding-left: 8px; padding-right: 0; } .mdc-notched-outline--no-label .mdc-notched-outline__notch { display: none; } .mdc-line-ripple::before, .mdc-line-ripple::after { position: absolute; bottom: 0; left: 0; width: 100%; border-bottom-style: solid; content: ""; } .mdc-line-ripple::before { z-index: 1; border-bottom-width: var(--mat-form-field-filled-active-indicator-height, 1px); } .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before { border-bottom-color: var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant)); } .mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before { border-bottom-color: var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface)); } .mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before { border-bottom-color: var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before { border-bottom-color: var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error)); } .mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before { border-bottom-color: var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container)); } .mdc-line-ripple::after { transform: scaleX(0); opacity: 0; z-index: 2; } .mdc-text-field--filled .mdc-line-ripple::after { border-bottom-width: var(--mat-form-field-filled-focus-active-indicator-height, 2px); } .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after { border-bottom-color: var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary)); } .mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after { border-bottom-color: var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error)); } .mdc-line-ripple--active::after { transform: scaleX(1); opacity: 1; } .mdc-line-ripple--deactivating::after { opacity: 0; } .mdc-text-field--disabled { pointer-events: none; } .mat-mdc-form-field-textarea-control { vertical-align: middle; resize: vertical; box-sizing: border-box; height: auto; margin: 0; padding: 0; border: none; overflow: auto; } .mat-mdc-form-field-input-control.mat-mdc-form-field-input-control { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; font: inherit; letter-spacing: inherit; text-decoration: inherit; text-transform: inherit; border: none; } .mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; line-height: normal; pointer-events: all; will-change: auto; } .mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label { cursor: inherit; } .mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input, .mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control { height: auto; } .mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color] { height: 23px; } .mat-mdc-text-field-wrapper { height: auto; flex: auto; will-change: auto; } .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper { padding-left: 0; --mat-mdc-form-field-label-offset-x: -16px; } .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper { padding-right: 0; } [dir=rtl] .mat-mdc-text-field-wrapper { padding-left: 16px; padding-right: 16px; } [dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper { padding-left: 0; } [dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper { padding-right: 0; } .mat-form-field-disabled .mdc-text-field__input::placeholder { color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-form-field-disabled .mdc-text-field__input::-moz-placeholder { color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder { color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder { color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder { transition-delay: 40ms; transition-duration: 110ms; opacity: 1; } .mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label { left: auto; right: auto; } .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input { display: inline-block; } .mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch { padding-top: 0; } .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch { border-left: 1px solid transparent; } [dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch { border-left: none; border-right: 1px solid transparent; } .mat-mdc-form-field-infix { min-height: var(--mat-form-field-container-height, 56px); padding-top: var(--mat-form-field-filled-with-label-container-padding-top, 24px); padding-bottom: var(--mat-form-field-filled-with-label-container-padding-bottom, 8px); } .mdc-text-field--outlined .mat-mdc-form-field-infix, .mdc-text-field--no-label .mat-mdc-form-field-infix { padding-top: var(--mat-form-field-container-vertical-padding, 16px); padding-bottom: var(--mat-form-field-container-vertical-padding, 16px); } .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label { top: calc(var(--mat-form-field-container-height, 56px) / 2); } .mdc-text-field--filled .mat-mdc-floating-label { display: var(--mat-form-field-filled-label-display, block); } .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above { --mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75)); transform: var(--mat-mdc-form-field-label-transform); } @keyframes _mat-form-field-subscript-animation { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } } .mat-mdc-form-field-subscript-wrapper { box-sizing: border-box; width: 100%; position: relative; } .mat-mdc-form-field-hint-wrapper, .mat-mdc-form-field-error-wrapper { position: absolute; top: 0; left: 0; right: 0; padding: 0 16px; opacity: 1; transform: translateY(0); animation: _mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2); } .mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper, .mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper { position: static; } .mat-mdc-form-field-bottom-align::before { content: ""; display: inline-block; height: 16px; } .mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before { content: unset; } .mat-mdc-form-field-hint-end { order: 1; } .mat-mdc-form-field-hint-wrapper { display: flex; } .mat-mdc-form-field-hint-spacer { flex: 1 0 1em; } .mat-mdc-form-field-error { display: block; color: var(--mat-form-field-error-text-color, var(--mat-sys-error)); } .mat-mdc-form-field-subscript-wrapper, .mat-mdc-form-field-bottom-align::before { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; font-family: var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font)); line-height: var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height)); font-size: var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size)); letter-spacing: var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking)); font-weight: var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight)); } .mat-mdc-form-field-focus-overlay { top: 0; left: 0; right: 0; bottom: 0; position: absolute; opacity: 0; pointer-events: none; background-color: var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface)); } .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay { opacity: var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); } .mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay { opacity: var(--mat-form-field-focus-state-layer-opacity, 0); } select.mat-mdc-form-field-input-control { -moz-appearance: none; -webkit-appearance: none; background-color: transparent; display: inline-flex; box-sizing: border-box; } select.mat-mdc-form-field-input-control:not(:disabled) { cursor: pointer; } select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option { color: var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10)); } select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled { color: var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent)); } .mat-mdc-form-field-type-mat-native-select .mat-mdc-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; right: 0; top: 50%; margin-top: -2.5px; pointer-events: none; color: var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant)); } [dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after { right: auto; left: 0; } .mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after { color: var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary)); } .mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after { color: var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control { padding-right: 15px; } [dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control { padding-right: 0; padding-left: 15px; } @media (forced-colors: active) { .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper { outline: solid 1px; } } @media (forced-colors: active) { .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper { outline-color: GrayText; } } @media (forced-colors: active) { .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper { outline: dashed 3px; } } @media (forced-colors: active) { .mat-mdc-form-field.mat-focused .mdc-notched-outline { border: dashed 3px; } } .mat-mdc-form-field-input-control[type=date], .mat-mdc-form-field-input-control[type=datetime], .mat-mdc-form-field-input-control[type=datetime-local], .mat-mdc-form-field-input-control[type=month], .mat-mdc-form-field-input-control[type=week], .mat-mdc-form-field-input-control[type=time] { line-height: 1; } .mat-mdc-form-field-input-control::-webkit-datetime-edit { line-height: 1; padding: 0; margin-bottom: -2px; } .mat-mdc-form-field { --mat-mdc-form-field-floating-label-scale: 0.75; display: inline-flex; flex-direction: column; min-width: 0; text-align: left; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; font-family: var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font)); line-height: var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)); font-size: var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size)); letter-spacing: var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking)); font-weight: var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight)); } .mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above { font-size: calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale)); } .mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above { font-size: var(--mat-form-field-outlined-label-text-populated-size); } [dir=rtl] .mat-mdc-form-field { text-align: right; } .mat-mdc-form-field-flex { display: inline-flex; align-items: baseline; box-sizing: border-box; width: 100%; } .mat-mdc-text-field-wrapper { width: 100%; z-index: 0; } .mat-mdc-form-field-icon-prefix, .mat-mdc-form-field-icon-suffix { align-self: center; line-height: 0; pointer-events: auto; position: relative; z-index: 1; } .mat-mdc-form-field-icon-prefix > .mat-icon, .mat-mdc-form-field-icon-suffix > .mat-icon { padding: 0 12px; box-sizing: content-box; } .mat-mdc-form-field-icon-prefix { color: var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant)); } .mat-form-field-disabled .mat-mdc-form-field-icon-prefix { color: var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-mdc-form-field-icon-suffix { color: var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant)); } .mat-form-field-disabled .mat-mdc-form-field-icon-suffix { color: var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-form-field-invalid .mat-mdc-form-field-icon-suffix { color: var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error)); } .mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix { color: var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container)); } .mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix { color: var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error)); } .mat-mdc-form-field-icon-prefix, [dir=rtl] .mat-mdc-form-field-icon-suffix { padding: 0 4px 0 0; } .mat-mdc-form-field-icon-suffix, [dir=rtl] .mat-mdc-form-field-icon-prefix { padding: 0 0 0 4px; } .mat-mdc-form-field-subscript-wrapper .mat-icon, .mat-mdc-form-field label .mat-icon { width: 1em; height: 1em; font-size: inherit; } .mat-mdc-form-field-infix { flex: auto; min-width: 0; width: 180px; position: relative; box-sizing: border-box; } .mat-mdc-form-field-infix:has(textarea[cols]) { width: auto; } .mat-mdc-form-field .mdc-notched-outline__notch { margin-left: -1px; -webkit-clip-path: inset(-9em -999em -9em 1px); clip-path: inset(-9em -999em -9em 1px); } [dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch { margin-left: 0; margin-right: -1px; -webkit-clip-path: inset(-9em 1px -9em -999em); clip-path: inset(-9em 1px -9em -999em); } .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label { transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1); } .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input { transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1); } .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder { transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1); } .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder { transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1); } .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder { transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1); } .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder { transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1); } .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder { transition-delay: 40ms; transition-duration: 110ms; } .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder { transition-delay: 40ms; transition-duration: 110ms; } .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder { transition-delay: 40ms; transition-duration: 110ms; } .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder { transition-delay: 40ms; transition-duration: 110ms; } .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before { transition-duration: 75ms; } .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after { transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1); } .mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper, .mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper { animation-duration: 300ms; } .mdc-notched-outline .mdc-floating-label { max-width: calc(100% + 1px); } .mdc-notched-outline--upgraded .mdc-floating-label--float-above { max-width: calc(133.3333333333% + 1px); } `],encapsulation:2,changeDetection:0})}return o})();var ye=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new f;constructor(i=!1,t,e=!0,n){this._multiple=i,this._emitChanges=e,this.compareWith=n,t&&t.length&&(i?t.forEach(a=>this._markSelected(a)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(e=>this._markSelected(e));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...i){this._verifyValueAssignment(i),i.forEach(e=>this._unmarkSelected(e));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...i){this._verifyValueAssignment(i);let t=this.selected,e=new Set(i.map(a=>this._getConcreteValue(a)));i.forEach(a=>this._markSelected(a)),t.filter(a=>!e.has(this._getConcreteValue(a,e))).forEach(a=>this._unmarkSelected(a));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let t=this._hasQueuedChanges();return i&&this._emitChangeEvent(),t}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,t){if(this.compareWith){t=t??this._selection;for(let e of t)if(this.compareWith(i,e))return e;return i}else return i}};var ar=20,ee=(()=>{class o{_ngZone=s(w);_platform=s(L);_renderer=s(pt).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new f;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=ar){return this._platform.isBrowser?new Ht(e=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let n=t>0?this._scrolled.pipe(_i(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Re()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){let n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(lt(a=>!a||n.indexOf(a)>-1))}getAncestorScrollContainers(t){let e=[];return this.scrollContainers.forEach((n,a)=>{this._scrollableContainsElement(a,t)&&e.push(a)}),e}_scrollableContainsElement(t,e){let n=xt(e),a=t.getElementRef().nativeElement;do if(n==a)return!0;while(n=n.parentElement);return!1}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var rr=20,It=(()=>{class o{_platform=s(L);_listeners;_viewportSize=null;_change=new f;_document=s(j);constructor(){let t=s(w),e=s(pt).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let n=a=>this._change.next(a);this._listeners=[e.listen("window","resize",n),e.listen("window","orientationchange",n)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,e=this._getWindow(),n=t.documentElement,a=n.getBoundingClientRect(),r=-a.top||t.body?.scrollTop||e.scrollY||n.scrollTop||0,l=-a.left||t.body?.scrollLeft||e.scrollX||n.scrollLeft||0;return{top:r,left:l}}change(t=rr){return t>0?this._change.pipe(_i(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Bt=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({})}return o})(),Yi=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[Z,Bt,Z,Bt]})}return o})();var xe=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},Ce=class extends xe{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,t,e,n,a){super(),this.component=i,this.viewContainerRef=t,this.injector=e,this.projectableNodes=n,this.bindings=a||null}},we=class extends xe{templateRef;viewContainerRef;context;injector;constructor(i,t,e,n){super(),this.templateRef=i,this.viewContainerRef=t,this.context=e,this.injector=n}get origin(){return this.templateRef.elementRef}attach(i,t=this.context){return this.context=t,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Gi=class extends xe{element;constructor(i){super(),this.element=i instanceof M?i.nativeElement:i}},Xi=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Ce)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof we)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Gi)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},ti=class extends Xi{outletElement;_appRef;_defaultInjector;constructor(i,t,e){super(),this.outletElement=i,this._appRef=t,this._defaultInjector=e}attachComponentPortal(i){let t;if(i.viewContainerRef){let e=i.injector||i.viewContainerRef.injector,n=e.get(wn,null,{optional:!0})||void 0;t=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:e,ngModuleRef:n,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>t.destroy())}else{let e=this._appRef,n=i.injector||this._defaultInjector||W.NULL,a=n.get(Yt,e.injector);t=je(i.component,{elementInjector:n,environmentInjector:a,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),e.attachView(t.hostView),this.setDisposeFn(()=>{e.viewCount>0&&e.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=i,t}attachTemplatePortal(i){let t=i.viewContainerRef,e=t.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return e.rootNodes.forEach(n=>this.outletElement.appendChild(n)),e.detectChanges(),this.setDisposeFn(()=>{let n=t.indexOf(e);n!==-1&&t.remove(n)}),this._attachedPortal=i,e}attachDomPortal=i=>{let t=i.element;t.parentNode;let e=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(e,t),this.outletElement.appendChild(t),this._attachedPortal=i,super.setDisposeFn(()=>{e.parentNode&&e.parentNode.replaceChild(t,e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var Mo=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({})}return o})();var To=po();function Lo(o){return new ei(o.get(It),o.get(j))}var ei=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,t){this._viewportRuler=i,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=G(-this._previousScrollPosition.left),i.style.top=G(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,t=this._document.body,e=i.style,n=t.style,a=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),To&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),To&&(e.scrollBehavior=a,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.documentElement,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}};function No(o,i){return new ii(o.get(ee),o.get(w),o.get(It),i)}var ii=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,t,e,n){this._scrollDispatcher=i,this._ngZone=t,this._viewportRuler=e,this._config=n}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(lt(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Se=class{enable(){}disable(){}attach(){}};function Ki(o,i){return i.some(t=>{let e=o.bottomt.bottom,a=o.rightt.right;return e||n||a||r})}function Oo(o,i){return i.some(t=>{let e=o.topt.bottom,a=o.leftt.right;return e||n||a||r})}function jt(o,i){return new ni(o.get(ee),o.get(It),o.get(w),i)}var ni=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,t,e,n){this._scrollDispatcher=i,this._viewportRuler=t,this._ngZone=e,this._config=n}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Ki(t,[{width:e,height:n,bottom:n,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}},zo=(()=>{class o{_injector=s(W);constructor(){}noop=()=>new Se;close=t=>No(this._injector,t);block=()=>Lo(this._injector);reposition=t=>jt(this._injector,t);static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),De=class{positionStrategy;scrollStrategy=new Se;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let t=Object.keys(i);for(let e of t)i[e]!==void 0&&(this[e]=i[e])}}};var oi=class{connectionPair;scrollableViewProperties;constructor(i,t){this.connectionPair=i,this.scrollableViewProperties=t}};var Bo=(()=>{class o{_attachedOverlays=[];_document=s(j);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(t,e,n){return n.observers.length<1?!1:t.eventPredicate?t.eventPredicate(e):!0}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Vo=(()=>{class o extends Bo{_ngZone=s(w);_renderer=s(pt).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=t=>{let e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--){let a=e[n];if(this.canReceiveEvent(a,t,a._keydownEvents)){this._ngZone.run(()=>a._keydownEvents.next(t));break}}};static \u0275fac=(()=>{let t;return function(n){return(t||(t=xi(o)))(n||o)}})();static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),jo=(()=>{class o extends Bo{_platform=s(L);_ngZone=s(w);_renderer=s(pt).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let e=this._document.body,n={capture:!0},a=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[a.listen(e,"pointerdown",this._pointerDownListener,n),a.listen(e,"click",this._clickListener,n),a.listen(e,"auxclick",this._clickListener,n),a.listen(e,"contextmenu",this._clickListener,n)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=t=>{this._pointerDownEventTarget=it(t)};_clickListener=t=>{let e=it(t),n=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;let a=this._attachedOverlays.slice();for(let r=a.length-1;r>-1;r--){let l=a[r],u=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,u))){if(Io(l.overlayElement,e)||Io(l.overlayElement,n))break;this._ngZone?this._ngZone.run(()=>u.next(t)):u.next(t)}}};static \u0275fac=(()=>{let t;return function(n){return(t||(t=xi(o)))(n||o)}})();static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function Io(o,i){let t=typeof ShadowRoot<"u"&&ShadowRoot,e=i;for(;e;){if(e===o)return!0;e=t&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var Ho=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(e,n){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { pointer-events: none; top: 0; left: 0; height: 100%; width: 100%; } .cdk-overlay-container { position: fixed; } @layer cdk-overlay { .cdk-overlay-container { z-index: 1000; } } .cdk-overlay-container:empty { display: none; } .cdk-global-overlay-wrapper { display: flex; position: absolute; } @layer cdk-overlay { .cdk-global-overlay-wrapper { z-index: 1000; } } .cdk-overlay-pane { position: absolute; pointer-events: auto; box-sizing: border-box; display: flex; max-width: 100%; max-height: 100%; } @layer cdk-overlay { .cdk-overlay-pane { z-index: 1000; } } .cdk-overlay-backdrop { position: absolute; top: 0; bottom: 0; left: 0; right: 0; pointer-events: auto; -webkit-tap-highlight-color: transparent; opacity: 0; touch-action: manipulation; } @layer cdk-overlay { .cdk-overlay-backdrop { z-index: 1000; transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1); } } @media (prefers-reduced-motion) { .cdk-overlay-backdrop { transition-duration: 1ms; } } .cdk-overlay-backdrop-showing { opacity: 1; } @media (forced-colors: active) { .cdk-overlay-backdrop-showing { opacity: 0.6; } } @layer cdk-overlay { .cdk-overlay-dark-backdrop { background: rgba(0, 0, 0, 0.32); } } .cdk-overlay-transparent-backdrop { transition: visibility 1ms linear, opacity 1ms linear; visibility: hidden; opacity: 1; } .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop { opacity: 0; visibility: visible; } .cdk-overlay-backdrop-noop-animation { transition: none; } .cdk-overlay-connected-position-bounding-box { position: absolute; display: flex; flex-direction: column; min-width: 1px; min-height: 1px; } @layer cdk-overlay { .cdk-overlay-connected-position-bounding-box { z-index: 1000; } } .cdk-global-scrollblock { position: fixed; width: 100%; overflow-y: scroll; } .cdk-overlay-popover { background: none; border: none; padding: 0; outline: 0; overflow: visible; position: fixed; pointer-events: none; white-space: normal; color: inherit; text-decoration: none; width: 100%; height: 100%; inset: auto; top: 0; left: 0; } .cdk-overlay-popover::backdrop { display: none; } .cdk-overlay-popover .cdk-overlay-backdrop { position: fixed; z-index: auto; } `],encapsulation:2,changeDetection:0})}return o})(),Wo=(()=>{class o{_platform=s(L);_containerElement;_document=s(j);_styleLoader=s(mt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||Bi()){let n=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let a=0;a{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function Zi(o){return o&&o.nodeType===1}var ai=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new f;_attachments=new f;_detachments=new f;_positionStrategy;_scrollStrategy;_locationChanges=dt.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new f;_outsidePointerEvents=new f;_afterNextRenderRef;constructor(i,t,e,n,a,r,l,u,_,p=!1,C,q){this._portalOutlet=i,this._host=t,this._pane=e,this._config=n,this._ngZone=a,this._keyboardDispatcher=r,this._document=l,this._location=u,this._outsideClickDispatcher=_,this._animationsDisabled=p,this._injector=C,this._renderer=q,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=kt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=N(N({},this._config),i),this._updateElementSize()}setDirection(i){this._config=cn(N({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=G(this._config.width),i.height=G(this._config.height),i.minWidth=G(this._config.minWidth),i.minHeight=G(this._config.minHeight),i.maxWidth=G(this._config.maxWidth),i.maxHeight=G(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Zi(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch{}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new $i(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,t,e){let n=Jt(t||[]).filter(a=>!!a);n.length&&(e?i.classList.add(...n):i.classList.remove(...n))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=kt(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(t){if(i)throw t;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},Ro="cdk-overlay-connected-position-bounding-box",sr=/([A-Za-z%]+)$/;function Ee(o,i){return new ri(i,o.get(It),o.get(j),o.get(L),o.get(Wo))}var ri=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new f;_resizeSubscription=dt.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,t,e,n,a){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=a,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(Ro),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let i=this._originRect,t=this._overlayRect,e=this._viewportRect,n=this._containerRect,a=[],r;for(let l of this._preferredPositions){let u=this._getOriginPoint(i,n,l),_=this._getOverlayPoint(u,t,l),p=this._getOverlayFit(_,t,e,l);if(p.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(l,u);return}if(this._canFitWithFlexibleDimensions(p,_,e)){a.push({position:l,origin:u,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(u,l)});continue}(!r||r.overlayFit.visibleAreau&&(u=p,l=_)}this._isPushed=!1,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Vt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ro),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof M?this._origin.nativeElement:Zi(this._origin)?this._origin:null}_getOriginPoint(i,t,e){let n;if(e.originX=="center")n=i.left+i.width/2;else{let r=this._isRtl()?i.right:i.left,l=this._isRtl()?i.left:i.right;n=e.originX=="start"?r:l}t.left<0&&(n-=t.left);let a;return e.originY=="center"?a=i.top+i.height/2:a=e.originY=="top"?i.top:i.bottom,t.top<0&&(a-=t.top),{x:n,y:a}}_getOverlayPoint(i,t,e){let n;e.overlayX=="center"?n=-t.width/2:e.overlayX==="start"?n=this._isRtl()?-t.width:0:n=this._isRtl()?0:-t.width;let a;return e.overlayY=="center"?a=-t.height/2:a=e.overlayY=="top"?0:-t.height,{x:i.x+n,y:i.y+a}}_getOverlayFit(i,t,e,n){let a=Po(t),{x:r,y:l}=i,u=this._getOffset(n,"x"),_=this._getOffset(n,"y");u&&(r+=u),_&&(l+=_);let p=0-r,C=r+a.width-e.width,q=0-l,Q=l+a.height-e.height,K=this._subtractOverflows(a.width,p,C),X=this._subtractOverflows(a.height,q,Q),Rt=K*X;return{visibleArea:Rt,isCompletelyWithinViewport:a.width*a.height===Rt,fitsInViewportVertically:X===a.height,fitsInViewportHorizontally:K==a.width}}_canFitWithFlexibleDimensions(i,t,e){if(this._hasFlexibleDimensions){let n=e.bottom-t.y,a=e.right-t.x,r=Ao(this._overlayRef.getConfig().minHeight),l=Ao(this._overlayRef.getConfig().minWidth),u=i.fitsInViewportVertically||r!=null&&r<=n,_=i.fitsInViewportHorizontally||l!=null&&l<=a;return u&&_}return!1}_pushOverlayOnScreen(i,t,e){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let n=Po(t),a=this._viewportRect,r=Math.max(i.x+n.width-a.width,0),l=Math.max(i.y+n.height-a.height,0),u=Math.max(a.top-e.top-i.y,0),_=Math.max(a.left-e.left-i.x,0),p=0,C=0;return n.width<=a.width?p=_||-r:p=i.xK&&!this._isInitialRender&&!this._growAfterOpen&&(r=i.y-K/2)}let u=t.overlayX==="start"&&!n||t.overlayX==="end"&&n,_=t.overlayX==="end"&&!n||t.overlayX==="start"&&n,p,C,q;if(_)q=e.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),p=i.x-this._getViewportMarginStart();else if(u)C=i.x,p=e.right-i.x-this._getViewportMarginEnd();else{let Q=Math.min(e.right-i.x+e.left,i.x),K=this._lastBoundingBoxSize.width;p=Q*2,C=i.x-Q,p>K&&!this._isInitialRender&&!this._growAfterOpen&&(C=i.x-K/2)}return{top:r,left:C,bottom:l,right:q,width:p,height:a}}_setBoundingBoxStyles(i,t){let e=this._calculateBoundingBoxRect(i,t);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right="auto",n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let a=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.width=G(e.width),n.height=G(e.height),n.top=G(e.top)||"auto",n.bottom=G(e.bottom)||"auto",n.left=G(e.left)||"auto",n.right=G(e.right)||"auto",t.overlayX==="center"?n.alignItems="center":n.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?n.justifyContent="center":n.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",a&&(n.maxHeight=G(a)),r&&(n.maxWidth=G(r))}this._lastBoundingBoxSize=e,Vt(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Vt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Vt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,t){let e={},n=this._hasExactPosition(),a=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){let p=this._viewportRuler.getViewportScrollPosition();Vt(e,this._getExactOverlayY(t,i,p)),Vt(e,this._getExactOverlayX(t,i,p))}else e.position="static";let l="",u=this._getOffset(t,"x"),_=this._getOffset(t,"y");u&&(l+=`translateX(${u}px) `),_&&(l+=`translateY(${_}px)`),e.transform=l.trim(),r.maxHeight&&(n?e.maxHeight=G(r.maxHeight):a&&(e.maxHeight="")),r.maxWidth&&(n?e.maxWidth=G(r.maxWidth):a&&(e.maxWidth="")),Vt(this._pane.style,e)}_getExactOverlayY(i,t,e){let n={top:"",bottom:""},a=this._getOverlayPoint(t,this._overlayRect,i);if(this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,e)),i.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;n.bottom=`${r-(a.y+this._overlayRect.height)}px`}else n.top=G(a.y);return n}_getExactOverlayX(i,t,e){let n={left:"",right:""},a=this._getOverlayPoint(t,this._overlayRect,i);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,e));let r;if(this._isRtl()?r=i.overlayX==="end"?"left":"right":r=i.overlayX==="end"?"right":"left",r==="right"){let l=this._document.documentElement.clientWidth;n.right=`${l-(a.x+this._overlayRect.width)}px`}else n.left=G(a.x);return n}_getScrollVisibility(){let i=this._getOriginRect(),t=this._pane.getBoundingClientRect(),e=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Oo(i,e),isOriginOutsideView:Ki(i,e),isOverlayClipped:Oo(t,e),isOverlayOutsideView:Ki(t,e)}}_subtractOverflows(i,...t){return t.reduce((e,n)=>e-Math.max(n,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._getViewportMarginTop(),left:e.left+this._getViewportMarginStart(),right:e.left+i-this._getViewportMarginEnd(),bottom:e.top+t-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,t){return t==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Jt(i).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof M)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let t=i.width||0,e=i.height||0;return{top:i.y,bottom:i.y+e,left:i.x,right:i.x+t,height:e,width:t}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();i&&(t.style.display="block");let e=t.getBoundingClientRect();return i&&(t.style.display=""),e}};function Vt(o,i){for(let t in i)i.hasOwnProperty(t)&&(o[t]=i[t]);return o}function Ao(o){if(typeof o!="number"&&o!=null){let[i,t]=o.split(sr);return!t||t==="px"?parseFloat(i):null}return o||null}function Po(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function lr(o,i){return o===i?!0:o.isOriginClipped===i.isOriginClipped&&o.isOriginOutsideView===i.isOriginOutsideView&&o.isOverlayClipped===i.isOverlayClipped&&o.isOverlayOutsideView===i.isOverlayOutsideView}var Fo="cdk-global-overlay-wrapper";function Uo(o){return new si}var si=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let t=i.getConfig();this._overlayRef=i,this._width&&!t.width&&i.updateSize({width:this._width}),this._height&&!t.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Fo),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:n,height:a,maxWidth:r,maxHeight:l}=e,u=(n==="100%"||n==="100vw")&&(!r||r==="100%"||r==="100vw"),_=(a==="100%"||a==="100vh")&&(!l||l==="100%"||l==="100vh"),p=this._xPosition,C=this._xOffset,q=this._overlayRef.getConfig().direction==="rtl",Q="",K="",X="";u?X="flex-start":p==="center"?(X="center",q?K=C:Q=C):q?p==="left"||p==="end"?(X="flex-end",Q=C):(p==="right"||p==="start")&&(X="flex-start",K=C):p==="left"||p==="start"?(X="flex-start",Q=C):(p==="right"||p==="end")&&(X="flex-end",K=C),i.position=this._cssPosition,i.marginLeft=u?"0":Q,i.marginTop=_?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=u?"0":K,t.justifyContent=X,t.alignItems=_?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,e=t.style;t.classList.remove(Fo),e.justifyContent=e.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},Yo=(()=>{class o{_injector=s(W);constructor(){}global(){return Uo()}flexibleConnectedTo(t){return Ee(this._injector,t)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),ke=new g("OVERLAY_DEFAULT_CONFIG");function Me(o,i){o.get(mt).load(Ho);let t=o.get(Wo),e=o.get(j),n=o.get(st),a=o.get(se),r=o.get(Ct),l=o.get(ft,null,{optional:!0})||o.get(pt).createRenderer(null,null),u=new De(i),_=o.get(ke,null,{optional:!0})?.usePopover??!0;u.direction=u.direction||r.value,"showPopover"in e.body?u.usePopover=i?.usePopover??_:u.usePopover=!1;let p=e.createElement("div"),C=e.createElement("div");p.id=n.getId("cdk-overlay-"),p.classList.add("cdk-overlay-pane"),C.appendChild(p),u.usePopover&&(C.setAttribute("popover","manual"),C.classList.add("cdk-overlay-popover"));let q=u.usePopover?u.positionStrategy?.getPopoverInsertionPoint?.():null;return Zi(q)?q.after(C):q?.type==="parent"?q.element.appendChild(C):t.getContainerElement().appendChild(C),new ai(new ti(p,a,o),C,p,u,o.get(w),o.get(Vo),e,o.get(Pn),o.get(jo),i?.disableAnimations??o.get(Ne,null,{optional:!0})==="NoopAnimations",o.get(Yt),l)}var Go=(()=>{class o{scrollStrategies=s(zo);_positionBuilder=s(Yo);_injector=s(W);constructor(){}create(t){return Me(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),dr=[{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"}],cr=new g("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=s(W);return()=>jt(o)}}),ie=(()=>{class o{elementRef=s(M);constructor(){}static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return o})(),Xo=new g("cdk-connected-overlay-default-config"),di=(()=>{class o{_dir=s(Ct,{optional:!0});_injector=s(W);_overlayRef;_templatePortal;_backdropSubscription=dt.EMPTY;_attachSubscription=dt.EMPTY;_detachSubscription=dt.EMPTY;_positionSubscription=dt.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=s(cr);_ngZone=s(w);origin;positions;positionStrategy;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)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(t){typeof t!="string"&&this._assignConfig(t)}backdropClick=new $;positionChange=new $;attach=new $;detach=new $;overlayKeydown=new $;overlayOutsideClick=new $;constructor(){let t=s(Xt),e=s(Kt),n=s(Xo,{optional:!0}),a=s(ke,{optional:!0});this.usePopover=a?.usePopover===!1?null:"global",this._templatePortal=new we(t,e),this.scrollStrategy=this._scrollStrategyFactory(),n&&this._assignConfig(n)}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?.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),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=dr);let t=this._overlayRef=Me(this._injector,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===27&&!this.disableClose&&!ut(e)&&(e.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{let n=this._getOriginElement(),a=it(e);(!n||n!==a&&!n.contains(a))&&this.overlayOutsideClick.next(e)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new De({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(this.height||this.height===0)&&(e.height=this.height),(this.minWidth||this.minWidth===0)&&(e.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){let e=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let t=Ee(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof ie?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof ie?this.origin.elementRef.nativeElement:this.origin instanceof M?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let t=this._overlayRef;t.getConfig().hasBackdrop=this.hasBackdrop,t.updateSize({width:this._getWidth()}),t.hasAttached()||t.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=t.backdropClick().subscribe(e=>this.backdropClick.emit(e)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(bn(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(t){this.origin=t.origin??this.origin,this.positions=t.positions??this.positions,this.positionStrategy=t.positionStrategy??this.positionStrategy,this.offsetX=t.offsetX??this.offsetX,this.offsetY=t.offsetY??this.offsetY,this.width=t.width??this.width,this.height=t.height??this.height,this.minWidth=t.minWidth??this.minWidth,this.minHeight=t.minHeight??this.minHeight,this.backdropClass=t.backdropClass??this.backdropClass,this.panelClass=t.panelClass??this.panelClass,this.viewportMargin=t.viewportMargin??this.viewportMargin,this.scrollStrategy=t.scrollStrategy??this.scrollStrategy,this.disableClose=t.disableClose??this.disableClose,this.transformOriginSelector=t.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=t.hasBackdrop??this.hasBackdrop,this.lockPosition=t.lockPosition??this.lockPosition,this.flexibleDimensions=t.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=t.growAfterOpen??this.growAfterOpen,this.push=t.push??this.push,this.disposeOnNavigation=t.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=t.usePopover??this.usePopover,this.matchWidth=t.matchWidth??this.matchWidth}static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",R],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",R],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",R],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",R],push:[2,"cdkConnectedOverlayPush","push",R],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",R],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",R],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Gt]})}return o})(),Te=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({providers:[Go],imports:[Z,Mo,Yi,Yi]})}return o})();var ht=(function(o){return o[o.FADING_IN=0]="FADING_IN",o[o.VISIBLE=1]="VISIBLE",o[o.FADING_OUT=2]="FADING_OUT",o[o.HIDDEN=3]="HIDDEN",o})(ht||{}),qi=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=ht.HIDDEN;constructor(i,t,e,n=!1){this._renderer=i,this.element=t,this.config=e,this._animationForciblyDisabledThroughCss=n}fadeOut(){this._renderer.fadeOutRipple(this)}},Ko=Qt({passive:!0,capture:!0}),Qi=class{_events=new Map;addHandler(i,t,e,n){let a=this._events.get(t);if(a){let r=a.get(e);r?r.add(n):a.set(e,new Set([n]))}else this._events.set(t,new Map([[e,new Set([n])]])),i.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Ko)})}removeHandler(i,t,e){let n=this._events.get(i);if(!n)return;let a=n.get(t);a&&(a.delete(e),a.size===0&&n.delete(t),n.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,Ko)))}_delegateEventHandler=i=>{let t=it(i);t&&this._events.get(i.type)?.forEach((e,n)=>{(n===t||n.contains(t))&&e.forEach(a=>a.handleEvent(i))})}},Oe={enterDuration:225,exitDuration:150},mr=800,$o=Qt({passive:!0,capture:!0}),Zo=["mousedown","touchstart"],qo=["mouseup","mouseleave","touchend","touchcancel"],ur=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(e,n){},styles:[`.mat-ripple { overflow: hidden; position: relative; } .mat-ripple:not(:empty) { transform: translateZ(0); } .mat-ripple.mat-ripple-unbounded { overflow: visible; } .mat-ripple-element { position: absolute; border-radius: 50%; pointer-events: none; transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1); transform: scale3d(0, 0, 0); background-color: var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent)); } @media (forced-colors: active) { .mat-ripple-element { display: none; } } .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element { display: none; } `],encapsulation:2,changeDetection:0})}return o})(),Ie=class o{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new Qi;constructor(i,t,e,n,a){this._target=i,this._ngZone=t,this._platform=n,n.isBrowser&&(this._containerElement=xt(e)),a&&a.get(mt).load(ur)}fadeInRipple(i,t,e={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=N(N({},Oe),e.animation);e.centered&&(i=n.left+n.width/2,t=n.top+n.height/2);let r=e.radius||hr(i,t,n),l=i-n.left,u=t-n.top,_=a.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=`${l-r}px`,p.style.top=`${u-r}px`,p.style.height=`${r*2}px`,p.style.width=`${r*2}px`,e.color!=null&&(p.style.backgroundColor=e.color),p.style.transitionDuration=`${_}ms`,this._containerElement.appendChild(p);let C=window.getComputedStyle(p),q=C.transitionProperty,Q=C.transitionDuration,K=q==="none"||Q==="0s"||Q==="0s, 0s"||n.width===0&&n.height===0,X=new qi(this,p,e,K);p.style.transform="scale3d(1, 1, 1)",X.state=ht.FADING_IN,e.persistent||(this._mostRecentTransientRipple=X);let Rt=null;return!K&&(_||a.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let ln=()=>{Rt&&(Rt.fallbackTimer=null),clearTimeout(dn),this._finishRippleTransition(X)},bi=()=>this._destroyRipple(X),dn=setTimeout(bi,_+100);p.addEventListener("transitionend",ln),p.addEventListener("transitioncancel",bi),Rt={onTransitionEnd:ln,onTransitionCancel:bi,fallbackTimer:dn}}),this._activeRipples.set(X,Rt),(K||!_)&&this._finishRippleTransition(X),X}fadeOutRipple(i){if(i.state===ht.FADING_OUT||i.state===ht.HIDDEN)return;let t=i.element,e=N(N({},Oe),i.config.animation);t.style.transitionDuration=`${e.exitDuration}ms`,t.style.opacity="0",i.state=ht.FADING_OUT,(i._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let t=xt(i);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Zo.forEach(e=>{o._eventManager.addHandler(this._ngZone,e,t,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{qo.forEach(t=>{this._triggerElement.addEventListener(t,this,$o)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===ht.FADING_IN?this._startFadeOutTransition(i):i.state===ht.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let t=i===this._mostRecentTransientRipple,{persistent:e}=i.config;i.state=ht.VISIBLE,!e&&(!t||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let t=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=ht.HIDDEN,t!==null&&(i.element.removeEventListener("transitionend",t.onTransitionEnd),i.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),i.element.remove()}_onMousedown(i){let t=me(i),e=this._lastTouchStartEvent&&Date.now(){let t=i.state===ht.VISIBLE||i.config.terminateOnPointerUp&&i.state===ht.FADING_IN;!i.config.persistent&&t&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(Zo.forEach(t=>o._eventManager.removeHandler(t,i,this)),this._pointerUpEventsRegistered&&(qo.forEach(t=>i.removeEventListener(t,this,$o)),this._pointerUpEventsRegistered=!1))}};function hr(o,i,t){let e=Math.max(Math.abs(o-t.left),Math.abs(o-t.right)),n=Math.max(Math.abs(i-t.top),Math.abs(i-t.bottom));return Math.sqrt(e*e+n*n)}var Ji=new g("mat-ripple-global-options"),Qo=(()=>{class o{_elementRef=s(M);_animationsDisabled=at();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let t=s(w),e=s(L),n=s(Ji,{optional:!0}),a=s(W);this._globalOptions=n||{},this._rippleRenderer=new Ie(this,t,this._elementRef,e,a)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:N(N(N({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,e,N(N({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,N(N({},this.rippleConfig),t))}static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){e&2&&I("mat-ripple-unbounded",n.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return o})();var Jo=(()=>{class o{_animationsDisabled=at();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,n){e&2&&I("mat-pseudo-checkbox-indeterminate",n.state==="indeterminate")("mat-pseudo-checkbox-checked",n.state==="checked")("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal",n.appearance==="minimal")("mat-pseudo-checkbox-full",n.appearance==="full")("_mat-animation-noopable",n._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,n){},styles:[`.mat-pseudo-checkbox { border-radius: 2px; cursor: pointer; display: inline-block; vertical-align: middle; box-sizing: border-box; position: relative; flex-shrink: 0; transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1), background-color 90ms cubic-bezier(0, 0, 0.2, 0.1); } .mat-pseudo-checkbox::after { position: absolute; opacity: 0; content: ""; border-bottom: 2px solid currentColor; transition: opacity 90ms cubic-bezier(0, 0, 0.2, 0.1); } .mat-pseudo-checkbox._mat-animation-noopable { transition: none !important; animation: none !important; } .mat-pseudo-checkbox._mat-animation-noopable::after { transition: none; } .mat-pseudo-checkbox-disabled { cursor: default; } .mat-pseudo-checkbox-indeterminate::after { left: 1px; opacity: 1; border-radius: 2px; } .mat-pseudo-checkbox-checked::after { left: 1px; border-left: 2px solid currentColor; transform: rotate(-45deg); opacity: 1; box-sizing: content-box; } .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after { color: var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary)); } .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after, .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after { color: var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-pseudo-checkbox-full { border-color: var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant)); border-width: 2px; border-style: solid; } .mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled { border-color: var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate { background-color: var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary)); border-color: transparent; } .mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after { color: var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary)); } .mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled { background-color: var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after { color: var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface)); } .mat-pseudo-checkbox { width: 18px; height: 18px; } .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after { width: 14px; height: 6px; transform-origin: center; top: -4.2426406871px; left: 0; bottom: 0; right: 0; margin: auto; } .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after { top: 8px; width: 16px; } .mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after { width: 10px; height: 4px; transform-origin: center; top: -2.8284271247px; left: 0; bottom: 0; right: 0; margin: auto; } .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after { top: 6px; width: 12px; } `],encapsulation:2,changeDetection:0})}return o})();var ci=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["structural-styles"]],decls:0,vars:0,template:function(e,n){},styles:[`.mat-focus-indicator { position: relative; } .mat-focus-indicator::before { top: 0; left: 0; right: 0; bottom: 0; position: absolute; box-sizing: border-box; pointer-events: none; display: var(--mat-focus-indicator-display, none); border-width: var(--mat-focus-indicator-border-width, 3px); border-style: var(--mat-focus-indicator-border-style, solid); border-color: var(--mat-focus-indicator-border-color, transparent); border-radius: var(--mat-focus-indicator-border-radius, 4px); } .mat-focus-indicator:focus-visible::before { content: ""; } @media (forced-colors: active) { html { --mat-focus-indicator-display: block; } } `],encapsulation:2,changeDetection:0})}return o})();var pr=["text"],fr=[[["mat-icon"]],"*"],br=["mat-icon","*"];function _r(o,i){if(o&1&&U(0,"mat-pseudo-checkbox",1),o&2){let t=m();O("disabled",t.disabled)("state",t.selected?"checked":"unchecked")}}function gr(o,i){if(o&1&&U(0,"mat-pseudo-checkbox",3),o&2){let t=m();O("disabled",t.disabled)}}function vr(o,i){if(o&1&&(c(0,"span",4),x(1),h()),o&2){let t=m();d(),rt("(",t.group.label,")")}}var en=new g("MAT_OPTION_PARENT_COMPONENT"),nn=new g("MatOptgroup");var tn=class{source;isUserInput;constructor(i,t=!1){this.source=i,this.isUserInput=t}},ne=(()=>{class o{_element=s(M);_changeDetectorRef=s(_t);_parent=s(en,{optional:!0});group=s(nn,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=s(st).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(t){this._disabled.set(t)}_disabled=H(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new $;_text;_stateChanges=new f;constructor(){let t=s(mt);t.load(ci),t.load(_e),this._signalDisableRipple=!!this._parent&&re(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,e){let n=this._getHostElement();typeof n.focus=="function"&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!ut(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new tn(this,t))}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["mat-option"]],viewQuery:function(e,n){if(e&1&&vt(pr,7),e&2){let a;P(a=F())&&(n._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,n){e&1&&D("click",function(){return n._selectViaInteraction()})("keydown",function(r){return n._handleKeydown(r)}),e&2&&(ze("id",n.id),B("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),I("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",R]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:br,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,n){e&1&&(bt(fr),v(0,_r,1,2,"mat-pseudo-checkbox",1),Y(1),c(2,"span",2,0),Y(4,1),h(),v(5,gr,1,1,"mat-pseudo-checkbox",3),v(6,vr,2,1,"span",4),U(7,"div",5)),e&2&&(y(n.multiple?0:-1),d(5),y(!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator?5:-1),d(),y(n.group&&n.group._inert?6:-1),d(),O("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[Jo,Qo],styles:[`.mat-mdc-option { -webkit-user-select: none; user-select: none; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: flex; position: relative; align-items: center; justify-content: flex-start; overflow: hidden; min-height: 48px; padding: 0 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; color: var(--mat-option-label-text-color, var(--mat-sys-on-surface)); font-family: var(--mat-option-label-text-font, var(--mat-sys-label-large-font)); line-height: var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height)); font-size: var(--mat-option-label-text-size, var(--mat-sys-body-large-size)); letter-spacing: var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking)); font-weight: var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight)); } .mat-mdc-option:hover:not(.mdc-list-item--disabled) { background-color: var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); } .mat-mdc-option:focus.mdc-list-item, .mat-mdc-option.mat-mdc-option-active.mdc-list-item { background-color: var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); outline: 0; } .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) { background-color: var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container)); } .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) .mdc-list-item__primary-text { color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container)); } .mat-mdc-option .mat-pseudo-checkbox { --mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container)); } .mat-mdc-option.mdc-list-item { align-items: center; background: transparent; } .mat-mdc-option.mdc-list-item--disabled { cursor: default; pointer-events: none; } .mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox, .mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text, .mat-mdc-option.mdc-list-item--disabled > mat-icon { opacity: 0.38; } .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) { padding-left: 32px; } [dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) { padding-left: 16px; padding-right: 32px; } .mat-mdc-option .mat-icon, .mat-mdc-option .mat-pseudo-checkbox-full { margin-right: 16px; flex-shrink: 0; } [dir=rtl] .mat-mdc-option .mat-icon, [dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full { margin-right: 0; margin-left: 16px; } .mat-mdc-option .mat-pseudo-checkbox-minimal { margin-left: 16px; flex-shrink: 0; } [dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal { margin-right: 16px; margin-left: 0; } .mat-mdc-option .mat-mdc-option-ripple { top: 0; left: 0; right: 0; bottom: 0; position: absolute; pointer-events: none; } .mat-mdc-option .mdc-list-item__primary-text { white-space: normal; font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; font-family: inherit; text-decoration: inherit; text-transform: inherit; margin-right: auto; } [dir=rtl] .mat-mdc-option .mdc-list-item__primary-text { margin-right: 0; margin-left: auto; } @media (forced-colors: active) { .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after { content: ""; position: absolute; top: 50%; right: 16px; transform: translateY(-50%); width: 10px; height: 0; border-bottom: solid 10px; border-radius: 10px; } [dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after { right: auto; left: 16px; } } .mat-mdc-option-multiple { --mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent); } .mat-mdc-option-active .mat-focus-indicator::before { content: ""; } `],encapsulation:2,changeDetection:0})}return o})();function ta(o,i,t){if(t.length){let e=i.toArray(),n=t.toArray(),a=0;for(let r=0;rt+e?Math.max(0,o-e+i):t}var ia=(()=>{class o{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var hi=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,t,e,n,a){this._defaultMatcher=i,this.ngControl=t,this._parentFormGroup=e,this._parentForm=n,this._stateChanges=a}updateErrorState(){let i=this.errorState,t=this._parentFormGroup||this._parentForm,e=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,a=e?.isErrorState(n,t)??!1;a!==i&&(this.errorState=a,this._stateChanges.next())}};var na=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[Ge,Je,Z]})}return o})();var pi=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[Z]})}return o})();var oa=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[Z]})}return o})();var on=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[pi,oa,ne,Z]})}return o})();var yr=["trigger"],xr=["panel"],Cr=[[["mat-select-trigger"]],"*"],wr=["mat-select-trigger","*"];function Sr(o,i){if(o&1&&(c(0,"span",4),x(1),h()),o&2){let t=m();d(),ot(t.placeholder)}}function Dr(o,i){o&1&&Y(0)}function Er(o,i){if(o&1&&(c(0,"span",11),x(1),h()),o&2){let t=m(2);d(),ot(t.triggerValue)}}function kr(o,i){if(o&1&&(c(0,"span",5),v(1,Dr,1,0)(2,Er,2,1,"span",11),h()),o&2){let t=m();d(),y(t.customTrigger?1:2)}}function Mr(o,i){if(o&1){let t=nt();c(0,"div",12,1),D("keydown",function(n){J(t);let a=m();return tt(a._handleKeydown(n))}),Y(2,1),h()}if(o&2){let t=m();et(t.panelClass),I("mat-select-panel-animations-enabled",!t._animationsDisabled)("mat-primary",(t._parentFormField==null?null:t._parentFormField.color)==="primary")("mat-accent",(t._parentFormField==null?null:t._parentFormField.color)==="accent")("mat-warn",(t._parentFormField==null?null:t._parentFormField.color)==="warn")("mat-undefined",!(t._parentFormField!=null&&t._parentFormField.color)),B("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}var Tr=new g("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let o=s(W);return()=>jt(o)}}),Or=new g("MAT_SELECT_CONFIG"),Ir=new g("MatSelectTrigger"),an=class{source;value;constructor(i,t){this.source=i,this.value=t}},aa=(()=>{class o{_viewportRuler=s(It);_changeDetectorRef=s(_t);_elementRef=s(M);_dir=s(Ct,{optional:!0});_idGenerator=s(st);_renderer=s(ft);_parentFormField=s(Ui,{optional:!0});ngControl=s(zn,{self:!0,optional:!0});_liveAnnouncer=s(Ii);_defaultOptions=s(Or,{optional:!0});_animationsDisabled=at();_popoverLocation;_initialized=new f;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(t){let e=this.options.toArray()[t];if(e){let n=this.panel.nativeElement,a=ta(t,this.options,this.optionGroups),r=e._getHostElement();t===0&&a===1?n.scrollTop=0:n.scrollTop=ea(r.offsetTop,r.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(t){return new an(this,t)}_scrollStrategyFactory=s(Tr);_panelOpen=!1;_compareWith=(t,e)=>t===e;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new f;_errorStateTracker;stateChanges=new f;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(t){this._disableRipple.set(t)}_disableRipple=H(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Nn.required)??!1}set required(t){this._required=t,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(t){this._selectionModel,this._multiple=t}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;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)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=fn(()=>{let t=this.options;return t?t.changes.pipe(Et(t),Fe(()=>Wt(...t.map(e=>e.onSelectionChange)))):this._initialized.pipe(Fe(()=>this.optionSelectionChanges))});openedChange=new $;_openedStream=this.openedChange.pipe(lt(t=>t),gt(()=>{}));_closedStream=this.openedChange.pipe(lt(t=>!t),gt(()=>{}));selectionChange=new $;valueChange=new $;constructor(){let t=s(ia),e=s(Bn,{optional:!0}),n=s(Vn,{optional:!0}),a=s(new On("tabindex"),{optional:!0}),r=s(ke,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new hi(t,this.ngControl,n,e,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this._popoverLocation=r?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new ye(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(V(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(V(this._destroy)).subscribe(t=>{t.added.forEach(e=>e.select()),t.removed.forEach(e=>e.deselect())}),this.options.changes.pipe(Et(null),V(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let t=this._getTriggerAriaLabelledby(),e=this.ngControl;if(t!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?n.setAttribute("aria-labelledby",t):n.removeAttribute("aria-labelledby")}e&&(this._previousControl!==e.control&&(this._previousControl!==void 0&&e.disabled!==null&&e.disabled!==this.disabled&&(this.disabled=e.disabled),this._previousControl=e.control),this.updateErrorState())}ngOnChanges(t){(t.disabled||t.userAriaDescribedBy)&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),t.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(Ae(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let t=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;let e=`${this.id}-panel`;this._trackedModal&&qe(this._trackedModal,"aria-owns",e),zi(t,"aria-owns",e),this._trackedModal=t}_clearFromModal(){if(!this._trackedModal)return;let t=`${this.id}-panel`;qe(this._trackedModal,"aria-owns",t),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{e(),clearTimeout(n),this._cleanupDetach=void 0};let t=this.panel.nativeElement,e=this._renderer.listen(t,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),n=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);t.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}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(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let t=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){let e=t.keyCode,n=e===40||e===38||e===37||e===39,a=e===13||e===32,r=this._keyManager;if(!r.isTyping()&&a&&!ut(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){let l=this.selected;r.onKeydown(t);let u=this.selected;u&&l!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(t){let e=this._keyManager,n=t.keyCode,a=n===40||n===38,r=e.isTyping();if(a&&t.altKey)t.preventDefault(),this.close();else if(!r&&(n===13||n===32)&&e.activeItem&&!ut(t))t.preventDefault(),e.activeItem._selectViaInteraction();else if(!r&&this._multiple&&n===65&&t.ctrlKey){t.preventDefault();let l=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(l?u.select():u.deselect())})}else{let l=e.activeItemIndex;e.onKeydown(t),this._multiple&&a&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==l&&e.activeItem._selectViaInteraction()}}_handleOverlayKeydown(t){t.keyCode===27&&!ut(t)&&(t.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}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.options.forEach(e=>e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(e=>this._selectOptionByValue(e)),this._sortValues();else{let e=this._selectOptionByValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){let e=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return(n.value!=null||this.canSelectNullableOptions)&&this._compareWith(n.value,t)}catch{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):!1}_skipPredicate=t=>this.panelOpen?!1:t.disabled;_getOverlayWidth(t){return this.panelWidth==="auto"?(t instanceof ie?t.elementRef:t||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new ge(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let t=Wt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(V(t)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Wt(...this.options.map(e=>e._stateChanges)).pipe(V(t)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(t,e){let n=this._selectionModel.isSelected(t);!this.canSelectNullableOptions&&t.value==null&&!this._multiple?(t.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(t.value)):(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e;this.multiple?e=this.selected.map(n=>n.value):e=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(){if(this._keyManager)if(this.empty){let t=-1;for(let e=0;e0&&!!this._overlayDir}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId()||null,e=t?t+" ":"";return this.ariaLabelledby?e+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t||(t=this._valueId),t}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(t){let e=this._elementRef.nativeElement;t.length?e.setAttribute("aria-describedby",t.join(" ")):e.removeAttribute("aria-describedby")}onContainerClick(t){let e=it(t);e&&(e.tagName==="MAT-OPTION"||e.classList.contains("cdk-overlay-backdrop")||e.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["mat-select"]],contentQueries:function(e,n,a){if(e&1&&Be(a,Ir,5)(a,ne,5)(a,nn,5),e&2){let r;P(r=F())&&(n.customTrigger=r.first),P(r=F())&&(n.options=r),P(r=F())&&(n.optionGroups=r)}},viewQuery:function(e,n){if(e&1&&vt(yr,5)(xr,5)(di,5),e&2){let a;P(a=F())&&(n.trigger=a.first),P(a=F())&&(n.panel=a.first),P(a=F())&&(n._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(e,n){e&1&&D("keydown",function(r){return n._handleKeydown(r)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),e&2&&(B("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),I("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple)("mat-select-open",n.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",R],disableRipple:[2,"disableRipple","disableRipple",R],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:yt(t)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",R],placeholder:"placeholder",required:[2,"required","required",R],multiple:[2,"multiple","multiple",R],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",R],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",yt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",R]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Lt([{provide:Wi,useExisting:o},{provide:en,useExisting:o}]),Gt],ngContentSelectors:wr,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(e,n){if(e&1&&(bt(Cr),c(0,"div",2,0),D("click",function(){return n.open()}),c(3,"div",3),v(4,Sr,2,1,"span",4)(5,kr,3,1,"span",5),h(),c(6,"div",6)(7,"div",7),At(),c(8,"svg",8),U(9,"path",9),h()()()(),$t(10,Mr,3,16,"ng-template",10),D("detach",function(){return n.close()})("backdropClick",function(){return n.close()})("overlayKeydown",function(r){return n._handleOverlayKeydown(r)})),e&2){let a=Dt(1);d(3),B("id",n._valueId),d(),y(n.empty?4:5),d(6),O("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",n._popoverLocation)}},dependencies:[ie,di],styles:[`@keyframes _mat-select-enter { from { opacity: 0; transform: scaleY(0.8); } to { opacity: 1; transform: none; } } @keyframes _mat-select-exit { from { opacity: 1; } to { opacity: 0; } } .mat-mdc-select { display: inline-block; width: 100%; outline: none; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; color: var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface)); font-family: var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font)); line-height: var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height)); font-size: var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size)); font-weight: var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight)); letter-spacing: var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking)); } div.mat-mdc-select-panel { box-shadow: var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)); } .mat-mdc-select-disabled { color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-mdc-select-disabled .mat-mdc-select-placeholder { color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-mdc-select-trigger { display: inline-flex; align-items: center; cursor: pointer; position: relative; box-sizing: border-box; width: 100%; } .mat-mdc-select-disabled .mat-mdc-select-trigger { -webkit-user-select: none; user-select: none; cursor: default; } .mat-mdc-select-value { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mat-mdc-select-value-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mat-mdc-select-arrow-wrapper { height: 24px; flex-shrink: 0; display: inline-flex; align-items: center; } .mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper { transform: none; } .mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow, .mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after { color: var(--mat-select-invalid-arrow-color, var(--mat-sys-error)); } .mat-mdc-select-arrow { width: 10px; height: 5px; position: relative; color: var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant)); } .mat-mdc-form-field.mat-focused .mat-mdc-select-arrow { color: var(--mat-select-focused-arrow-color, var(--mat-sys-primary)); } .mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow { color: var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-select-open .mat-mdc-select-arrow { transform: rotate(180deg); } .mat-form-field-animations-enabled .mat-mdc-select-arrow { transition: transform 80ms linear; } .mat-mdc-select-arrow svg { fill: currentColor; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } @media (forced-colors: active) { .mat-mdc-select-arrow svg { fill: CanvasText; } .mat-mdc-select-disabled .mat-mdc-select-arrow svg { fill: GrayText; } } div.mat-mdc-select-panel { width: 100%; max-height: 275px; outline: 0; overflow: auto; padding: 8px 0; box-sizing: border-box; transform-origin: top center; border-radius: 0 0 4px 4px; position: relative; background-color: var(--mat-select-panel-background-color, var(--mat-sys-surface-container)); } .mat-mdc-select-panel-above div.mat-mdc-select-panel { border-radius: 4px 4px 0 0; transform-origin: bottom center; } @media (forced-colors: active) { div.mat-mdc-select-panel { outline: solid 1px; } } .mat-select-panel-animations-enabled { animation: _mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1); } .mat-select-panel-animations-enabled.mat-select-panel-exit { animation: _mat-select-exit 100ms linear; } .mat-mdc-select-placeholder { transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1); color: var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant)); } .mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder, ._mat-animation-noopable .mat-mdc-select-placeholder { transition: none; } .mat-form-field-hide-placeholder .mat-mdc-select-placeholder { color: transparent; -webkit-text-fill-color: transparent; transition: none; display: block; } .mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper { cursor: pointer; } .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label { max-width: calc(100% - 18px); } .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above { max-width: calc(100% / 0.75 - 24px); } .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch { max-width: calc(100% - 60px); } .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch { max-width: calc(100% - 24px); } .mat-mdc-select-min-line:empty::before { content: " "; white-space: pre; width: 1px; display: inline-block; visibility: hidden; } .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper { transform: var(--mat-select-arrow-transform, translateY(-8px)); } `],encapsulation:2,changeDetection:0})}return o})();var ra=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[Te,on,Z,Bt,na,on]})}return o})();var Rr={capture:!0},Ar=["focus","mousedown","mouseenter","touchstart"],rn="mat-ripple-loader-uninitialized",sn="mat-ripple-loader-class-name",sa="mat-ripple-loader-centered",fi="mat-ripple-loader-disabled",la=(()=>{class o{_document=s(j);_animationsDisabled=at();_globalRippleOptions=s(Ji,{optional:!0});_platform=s(L);_ngZone=s(w);_injector=s(W);_eventCleanups;_hosts=new Map;constructor(){let t=s(pt).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Ar.map(e=>t.listen(this._document,e,this._onInteraction,Rr)))}ngOnDestroy(){let t=this._hosts.keys();for(let e of t)this.destroyRipple(e);this._eventCleanups.forEach(e=>e())}configureRipple(t,e){t.setAttribute(rn,this._globalRippleOptions?.namespace??""),(e.className||!t.hasAttribute(sn))&&t.setAttribute(sn,e.className||""),e.centered&&t.setAttribute(sa,""),e.disabled&&t.setAttribute(fi,"")}setDisabled(t,e){let n=this._hosts.get(t);n?(n.target.rippleDisabled=e,!e&&!n.hasSetUpEvents&&(n.hasSetUpEvents=!0,n.renderer.setupTriggerEvents(t))):e?t.setAttribute(fi,""):t.removeAttribute(fi)}_onInteraction=t=>{let e=it(t);if(e instanceof HTMLElement){let n=e.closest(`[${rn}="${this._globalRippleOptions?.namespace??""}"]`);n&&this._createRipple(n)}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let e=this._document.createElement("span");e.classList.add("mat-ripple",t.getAttribute(sn)),t.append(e);let n=this._globalRippleOptions,a=this._animationsDisabled?0:n?.animation?.enterDuration??Oe.enterDuration,r=this._animationsDisabled?0:n?.animation?.exitDuration??Oe.exitDuration,l={rippleDisabled:this._animationsDisabled||n?.disabled||t.hasAttribute(fi),rippleConfig:{centered:t.hasAttribute(sa),terminateOnPointerUp:n?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:r}}},u=new Ie(l,this._ngZone,e,this._platform,this._injector),_=!l.rippleDisabled;_&&u.setupTriggerEvents(t),this._hosts.set(t,{target:l,renderer:u,hasSetUpEvents:_}),t.removeAttribute(rn)}destroyRipple(t){let e=this._hosts.get(t);e&&(e.renderer._removeTriggerEvents(),this._hosts.delete(t))}static \u0275fac=function(e){return new(e||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Pr=["mat-icon-button",""],Fr=["*"],Lr=new g("MAT_BUTTON_CONFIG");function da(o){return o==null?void 0:yt(o)}var Nr=(()=>{class o{_elementRef=s(M);_ngZone=s(w);_animationsDisabled=at();_config=s(Lr,{optional:!0});_focusMonitor=s(be);_cleanupClick;_renderer=s(ft);_rippleLoader=s(la);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t}constructor(){s(mt).load(ci);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",e){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,e):this._elementRef.nativeElement.focus(e)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}))}static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(e,n){e&2&&(B("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled())("tabindex",n._getTabIndex()),et(n.color?"mat-"+n.color:""),I("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("mat-unthemed",!n.color)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",R],disabled:[2,"disabled","disabled",R],ariaDisabled:[2,"aria-disabled","ariaDisabled",R],disabledInteractive:[2,"disabledInteractive","disabledInteractive",R],tabIndex:[2,"tabIndex","tabIndex",da],_tabindex:[2,"tabindex","_tabindex",da]}})}return o})(),ca=(()=>{class o extends Nr{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[ae],attrs:Pr,ngContentSelectors:Fr,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){e&1&&(bt(),Tt(0,"span",0),Y(1),Tt(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { -webkit-user-select: none; user-select: none; display: inline-block; position: relative; box-sizing: border-box; border: none; outline: none; background-color: transparent; fill: currentColor; text-decoration: none; cursor: pointer; z-index: 0; overflow: visible; border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%)); flex-shrink: 0; text-align: center; width: var(--mat-icon-button-state-layer-size, 40px); height: var(--mat-icon-button-state-layer-size, 40px); padding: calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2); font-size: var(--mat-icon-button-icon-size, 24px); color: var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant)); -webkit-tap-highlight-color: transparent; } .mat-mdc-icon-button .mat-mdc-button-ripple, .mat-mdc-icon-button .mat-mdc-button-persistent-ripple, .mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before { top: 0; left: 0; right: 0; bottom: 0; position: absolute; pointer-events: none; border-radius: inherit; } .mat-mdc-icon-button .mat-mdc-button-ripple { overflow: hidden; } .mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before { content: ""; opacity: 0; } .mat-mdc-icon-button .mdc-button__label, .mat-mdc-icon-button .mat-icon { z-index: 1; position: relative; } .mat-mdc-icon-button .mat-focus-indicator { top: 0; left: 0; right: 0; bottom: 0; position: absolute; border-radius: inherit; } .mat-mdc-icon-button:focus-visible > .mat-focus-indicator::before { content: ""; border-radius: inherit; } .mat-mdc-icon-button .mat-ripple-element { background-color: var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); } .mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before { background-color: var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant)); } .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { background-color: var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); } .mat-mdc-icon-button:hover > .mat-mdc-button-persistent-ripple::before { opacity: var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); } .mat-mdc-icon-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { opacity: var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); } .mat-mdc-icon-button:active > .mat-mdc-button-persistent-ripple::before { opacity: var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); } .mat-mdc-icon-button .mat-mdc-button-touch-target { position: absolute; top: 50%; height: var(--mat-icon-button-touch-target-size, 48px); display: var(--mat-icon-button-touch-target-display, block); left: 50%; width: var(--mat-icon-button-touch-target-size, 48px); transform: translate(-50%, -50%); } .mat-mdc-icon-button._mat-animation-noopable { transition: none !important; animation: none !important; } .mat-mdc-icon-button[disabled], .mat-mdc-icon-button.mat-mdc-button-disabled { cursor: default; pointer-events: none; color: var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-mdc-icon-button.mat-mdc-button-disabled-interactive { pointer-events: auto; } .mat-mdc-icon-button img, .mat-mdc-icon-button svg { width: var(--mat-icon-button-icon-size, 24px); height: var(--mat-icon-button-icon-size, 24px); vertical-align: baseline; } .mat-mdc-icon-button .mat-mdc-button-persistent-ripple { border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%)); } .mat-mdc-icon-button[hidden] { display: none; } .mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before { background: transparent; opacity: 1; } `,`@media (forced-colors: active) { .mat-mdc-button:not(.mdc-button--outlined), .mat-mdc-unelevated-button:not(.mdc-button--outlined), .mat-mdc-raised-button:not(.mdc-button--outlined), .mat-mdc-outlined-button:not(.mdc-button--outlined), .mat-mdc-button-base.mat-tonal-button, .mat-mdc-icon-button.mat-mdc-icon-button, .mat-mdc-outlined-button .mdc-button__ripple { outline: solid 1px; } } `],encapsulation:2,changeDetection:0})}return o})();var zr=["tooltip"],Br=20;var Vr=new g("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let o=s(W);return()=>jt(o,{scrollThrottle:Br})}}),jr=new g("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var ma="tooltip-panel",Hr={passive:!0},Wr=8,Ur=8,Yr=24,Gr=200,ua=(()=>{class o{_elementRef=s(M);_ngZone=s(w);_platform=s(L);_ariaDescriber=s(uo);_focusMonitor=s(be);_dir=s(Ct);_injector=s(W);_viewContainerRef=s(Kt);_mediaMatcher=s(te);_document=s(j);_renderer=s(ft);_animationsDisabled=at();_defaultOptions=s(jr,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Xr;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=ve(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=ve(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=pe(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=pe(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new f;_isDestroyed=!1;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=Wr}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(V(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(e=>e()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let n=this._createOverlay(e);this._detach(),this._portal=this._portal||new Ce(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=n.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(V(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&r._origin instanceof M)return this._overlayRef;this._detach()}let e=this._injector.get(ee).getAncestorScrollContainers(this._elementRef),n=`${this._cssClassPrefix}-${ma}`,a=Ee(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e).withPopoverLocation("global");return a.positionChanges.pipe(V(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Me(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,n]:n,scrollStrategy:this._injector.get(Vr)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(V(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(V(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(V(this._destroyed)).subscribe(r=>{r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(V(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,n=this._getOrigin(),a=this._getOverlayPosition();e.withPositions([this._addOffset(N(N({},n.main),a.main)),this._addOffset(N(N({},n.fallback),a.fallback))])}_addOffset(t){let e=Ur,n=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=n?-e:e:t.originX==="end"&&(t.offsetX=n?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,n;e=="above"||e=="below"?n={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?n={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(n={originX:"end",originY:"center"});let{x:a,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:a,originY:r}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,n;e=="above"?n={overlayX:"center",overlayY:"bottom"}:e=="below"?n={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?n={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(n={overlayX:"start",overlayY:"center"});let{x:a,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:a,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),kt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t instanceof Set?Array.from(t):t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:n,originY:a}=t,r;if(e==="center"?this._dir&&this._dir.value==="rtl"?r=n==="end"?"left":"right":r=n==="start"?"left":"right":r=e==="bottom"&&a==="top"?"above":"below",r!==this._currentPosition){let l=this._overlayRef;if(l){let u=`${this._cssClassPrefix}-${ma}-`;l.removePanelClass(u+this._currentPosition),l.addPanelClass(u+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",t=>{let e=t.targetTouches?.[0],n=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,n)},this._defaultOptions?.touchLongPressShowDelay??a)})):this._addListener("mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",t=>{let e=t.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}),this._addListener("wheel",t=>{if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",t),this._addListener("touchcancel",t)}}}_addListener(t,e){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,t,e,Hr))}_isTouchPlatform(){let t=this._defaultOptions?.detectHoverCapability;return typeof t=="function"?!t():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!t&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,n=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),(t==="on"||!e.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||kt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=t=>t.type==="keydown"?this._isTooltipVisible()&&t.keyCode===27&&!ut(t):!0;static \u0275fac=function(e){return new(e||o)};static \u0275dir=z({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,n){e&2&&I("mat-mdc-tooltip-disabled",n.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return o})(),Xr=(()=>{class o{_changeDetectorRef=s(_t);_elementRef=s(M);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=at();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new f;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),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.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>Yr&&t.width>=Gr}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,n=this._showAnimation,a=this._hideAnimation;if(e.classList.remove(t?a:n),e.classList.add(t?n:a),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let r=getComputedStyle(e);(r.getPropertyValue("animation-duration")==="0s"||r.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(e,n){if(e&1&&vt(zr,7),e&2){let a;P(a=F())&&(n._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,n){e&1&&D("mouseleave",function(r){return n._handleMouseLeave(r)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,n){e&1&&(Mt(0,"div",1,0),kn("animationend",function(r){return n._handleAnimationEnd(r)}),Mt(2,"div",2),x(3),Ft()()),e&2&&(et(n.tooltipClass),I("mdc-tooltip--multiline",n._isMultiline),d(3),ot(n.message))},styles:[`.mat-mdc-tooltip { position: relative; transform: scale(0); display: inline-flex; } .mat-mdc-tooltip::before { content: ""; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; position: absolute; } .mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before { top: -8px; } .mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before { bottom: -8px; } .mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before { left: -8px; } .mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before { right: -8px; } .mat-mdc-tooltip._mat-animation-noopable { animation: none; transform: scale(1); } .mat-mdc-tooltip-surface { word-break: normal; overflow-wrap: anywhere; padding: 4px 8px; min-width: 40px; max-width: 200px; min-height: 24px; max-height: 40vh; box-sizing: border-box; overflow: hidden; text-align: center; will-change: transform, opacity; background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface)); color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface)); border-radius: var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small)); font-family: var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font)); font-size: var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size)); font-weight: var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight)); line-height: var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height)); letter-spacing: var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking)); } .mat-mdc-tooltip-surface::before { position: absolute; box-sizing: border-box; width: 100%; height: 100%; top: 0; left: 0; border: 1px solid transparent; border-radius: inherit; content: ""; pointer-events: none; } .mdc-tooltip--multiline .mat-mdc-tooltip-surface { text-align: left; } [dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface { text-align: right; } .mat-mdc-tooltip-panel { line-height: normal; } .mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive { pointer-events: none; } @keyframes mat-mdc-tooltip-show { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } } @keyframes mat-mdc-tooltip-hide { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.8); } } .mat-mdc-tooltip-show { animation: mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards; } .mat-mdc-tooltip-hide { animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; } `],encapsulation:2,changeDetection:0})}return o})();var ha=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[Ri,Te,Z,Bt]})}return o})();var pa=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[pi,Z]})}return o})();function Kr(o,i){if(o&1&&(c(0,"mat-option",17),x(1),h()),o&2){let t=i.$implicit;O("value",t),d(),rt(" ",t," ")}}function $r(o,i){if(o&1){let t=nt();c(0,"mat-form-field",14)(1,"mat-select",16,0),D("selectionChange",function(n){J(t);let a=m(2);return tt(a._changePageSize(n.value))}),wt(3,Kr,2,2,"mat-option",17,le),h(),c(5,"div",18),D("click",function(){J(t);let n=Dt(2);return tt(n.open())}),h()()}if(o&2){let t=m(2);O("appearance",t._formFieldAppearance)("color",t.color),d(),O("value",t.pageSize)("disabled",t.disabled),Sn("aria-labelledby",t._pageSizeLabelId),O("panelClass",t.selectConfig.panelClass||"")("disableOptionCentering",t.selectConfig.disableOptionCentering),d(2),St(t._displayedPageSizeOptions)}}function Zr(o,i){if(o&1&&(c(0,"div",15),x(1),h()),o&2){let t=m(2);d(),ot(t.pageSize)}}function qr(o,i){if(o&1&&(c(0,"div",3)(1,"div",13),x(2),h(),v(3,$r,6,7,"mat-form-field",14),v(4,Zr,2,1,"div",15),h()),o&2){let t=m();d(),B("id",t._pageSizeLabelId),d(),rt(" ",t._intl.itemsPerPageLabel," "),d(),y(t._displayedPageSizeOptions.length>1?3:-1),d(),y(t._displayedPageSizeOptions.length<=1?4:-1)}}function Qr(o,i){if(o&1){let t=nt();c(0,"button",19),D("click",function(){J(t);let n=m();return tt(n._buttonClicked(0,n._previousButtonsDisabled()))}),At(),c(1,"svg",8),U(2,"path",20),h()()}if(o&2){let t=m();O("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("disabled",t._previousButtonsDisabled())("tabindex",t._previousButtonsDisabled()?-1:null),B("aria-label",t._intl.firstPageLabel)}}function Jr(o,i){if(o&1){let t=nt();c(0,"button",21),D("click",function(){J(t);let n=m();return tt(n._buttonClicked(n.getNumberOfPages()-1,n._nextButtonsDisabled()))}),At(),c(1,"svg",8),U(2,"path",22),h()()}if(o&2){let t=m();O("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("disabled",t._nextButtonsDisabled())("tabindex",t._nextButtonsDisabled()?-1:null),B("aria-label",t._intl.lastPageLabel)}}var ts=(()=>{class o{changes=new f;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(t,e,n)=>{if(n==0||e==0)return`0 of ${n}`;n=Math.max(n,0);let a=t*e,r=a{class o{_intl=s(ts);_changeDetectorRef=s(_t);_formFieldAppearance;_pageSizeLabelId=s(st).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new un(1);color;get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(e=>yt(e,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new $;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let t=this._intl,e=s(is,{optional:!0});if(this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),e){let{pageSize:n,pageSizeOptions:a,hidePageSize:r,showFirstLastButtons:l}=e;n!=null&&(this._pageSize=n),a!=null&&(this._pageSizeOptions=a),r!=null&&(this.hidePageSize=r),l!=null&&(this.showFirstLastButtons=l)}this._formFieldAppearance=e?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(t){let e=this.pageIndex;t!==e&&(this.pageIndex=t,this._emitPageEvent(e))}_buttonClicked(t,e){e||this._navigate(t)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=A({type:o,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",yt],length:[2,"length","length",yt],pageSize:[2,"pageSize","pageSize",yt],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",R],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",R],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",R]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,n){e&1&&(c(0,"div",1)(1,"div",2),v(2,qr,5,4,"div",3),c(3,"div",4)(4,"div",5),x(5),h(),v(6,Qr,3,5,"button",6),c(7,"button",7),D("click",function(){return n._buttonClicked(n.pageIndex-1,n._previousButtonsDisabled())}),At(),c(8,"svg",8),U(9,"path",9),h()(),gn(),c(10,"button",10),D("click",function(){return n._buttonClicked(n.pageIndex+1,n._nextButtonsDisabled())}),At(),c(11,"svg",8),U(12,"path",11),h()(),v(13,Jr,3,5,"button",12),h()()()),e&2&&(d(2),y(n.hidePageSize?-1:2),d(3),rt(" ",n._intl.getRangeLabel(n.pageIndex,n.pageSize,n.length)," "),d(),y(n.showFirstLastButtons?6:-1),d(),O("matTooltip",n._intl.previousPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("disabled",n._previousButtonsDisabled())("tabindex",n._previousButtonsDisabled()?-1:null),B("aria-label",n._intl.previousPageLabel),d(3),O("matTooltip",n._intl.nextPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("disabled",n._nextButtonsDisabled())("tabindex",n._nextButtonsDisabled()?-1:null),B("aria-label",n._intl.nextPageLabel),d(3),y(n.showFirstLastButtons?13:-1))},dependencies:[Je,aa,ne,ca,ua],styles:[`.mat-mdc-paginator { display: block; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; color: var(--mat-paginator-container-text-color, var(--mat-sys-on-surface)); background-color: var(--mat-paginator-container-background-color, var(--mat-sys-surface)); font-family: var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font)); line-height: var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height)); font-size: var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size)); font-weight: var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight)); letter-spacing: var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking)); --mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px); --mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px); } .mat-mdc-paginator .mat-mdc-select-value { font-size: var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size)); } .mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper { display: none; } .mat-mdc-paginator .mat-mdc-select { line-height: 1.5; } .mat-mdc-paginator-outer-container { display: flex; } .mat-mdc-paginator-container { display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; flex-wrap: wrap; width: 100%; min-height: var(--mat-paginator-container-size, 56px); } .mat-mdc-paginator-page-size { display: flex; align-items: baseline; margin-right: 8px; } [dir=rtl] .mat-mdc-paginator-page-size { margin-right: 0; margin-left: 8px; } .mat-mdc-paginator-page-size-label { margin: 0 4px; } .mat-mdc-paginator-page-size-select { margin: 0 4px; width: var(--mat-paginator-page-size-select-width, 84px); } .mat-mdc-paginator-range-label { margin: 0 32px 0 24px; } .mat-mdc-paginator-range-actions { display: flex; align-items: center; } .mat-mdc-paginator-icon { display: inline-block; width: 28px; fill: var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant)); } .mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon { fill: var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } [dir=rtl] .mat-mdc-paginator-icon { transform: rotate(180deg); } @media (forced-colors: active) { .mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon, .mat-mdc-paginator-icon { fill: currentColor; } .mat-mdc-paginator-range-actions .mat-mdc-icon-button { outline: solid 1px; } .mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled] { color: GrayText; } } .mat-mdc-paginator-touch-target { display: var(--mat-paginator-touch-target-display, block); position: absolute; top: 50%; left: 50%; width: var(--mat-paginator-page-size-select-width, 84px); height: var(--mat-paginator-page-size-select-touch-target-height, 48px); background-color: transparent; transform: translate(-50%, -50%); cursor: pointer; } `],encapsulation:2,changeDetection:0})}return o})(),fa=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=T({type:o});static \u0275inj=k({imports:[pa,ra,ha,ns]})}return o})();var _a=(o,i)=>i.key,os=(o,i)=>i.type;function as(o,i){if(o&1){let t=nt();c(0,"div")(1,"input",15,0),D("input",function(){J(t);let n=Dt(2),a=m();return tt(a.onSearch(n.value))}),h()()}if(o&2){let t=m();d(),O("placeholder",t.searchPlaceholder())}}function rs(o,i){if(o&1&&U(0,"i"),o&2){let t=m().$implicit,e=m();et(e.getSortIconClass(t)+" text-xs align-middle")}}function ss(o,i){if(o&1){let t=nt();c(0,"th",16),D("click",function(){let n=J(t).$implicit,a=m();return tt(a.onSort(n))}),c(1,"span",17),x(2),v(3,rs,1,2,"i",18),h()()}if(o&2){let t=i.$implicit,e=m();et(e.getHeaderClass(t)),Si("width",t.width||null),d(),I("cursor-pointer",t.sortable),d(),rt(" ",t.label," "),d(),y(t.sortable?3:-1)}}function ls(o,i){if(o&1&&(c(0,"th",19),x(1,"Action"),h()),o&2){let t=m();et(t.composeClass(t.actionHeaderClass(),"relative overflow-visible"))}}function ds(o,i){if(o&1&&(c(0,"tr",13)(1,"td",20)(2,"div",21),U(3,"i",22),c(4,"span",23),x(5,"Loading data..."),h()()()()),o&2){let t=m();d(),B("colspan",t.colspan())}}function cs(o,i){if(o&1&&(c(0,"tr",13)(1,"td",24)(2,"span",23),x(3),h()()()),o&2){let t=m();d(),B("colspan",t.colspan()),d(2),ot(t.emptyMessage())}}function ms(o,i){if(o&1&&En(0,26),o&2){let t=m().$implicit,e=m().$implicit,n=m(2);O("ngTemplateOutlet",i.templateRef)("ngTemplateOutletContext",n.getCellTemplateContext(t,e))}}function us(o,i){if(o&1&&(c(0,"span"),x(1),h()),o&2){let t=m().$implicit,e=m().$implicit,n=m(2);et(n.getBadgeClass(t,e)),d(),rt(" ",n.getDisplayValue(t,e)," ")}}function hs(o,i){if(o&1&&x(0),o&2){let t=m().$implicit,e=m().$implicit,n=m(2);rt(" ",n.getDisplayValue(t,e)," ")}}function ps(o,i){if(o&1&&(c(0,"td"),v(1,ms,1,2,"ng-container",26)(2,us,2,3,"span",18)(3,hs,1,1),h()),o&2){let t,e=i.$implicit,n=m(3);et(n.getCellClass(e)),d(),y((t=n.getCellTemplate(e))?1:e.badge?2:3,t)}}function fs(o,i){if(o&1&&U(0,"i"),o&2){let t=m(2).$implicit;et(t.icon)}}function bs(o,i){if(o&1){let t=nt();c(0,"button",33),D("click",function(n){J(t);let a=m().$implicit,r=m(3).$implicit,l=m(2);return tt(l.onDropdownActionClick(n,a,r))}),v(1,fs,1,2,"i",18),c(2,"span"),x(3),h()()}if(o&2){let t=m().$implicit,e=m(3).$implicit,n=m(2);I("opacity-50",n.isActionDisabled(t,e))("cursor-not-allowed",n.isActionDisabled(t,e)),O("disabled",n.isActionDisabled(t,e)),B("aria-label",n.getActionLabel(t)),d(),y(t.icon?1:-1),d(2),ot(t.label)}}function _s(o,i){if(o&1&&v(0,bs,4,8,"button",32),o&2){let t=i.$implicit,e=m(3).$implicit,n=m(2);y(n.isActionVisible(t,e)?0:-1)}}function gs(o,i){if(o&1&&(c(0,"div",31),D("click",function(e){return e.stopPropagation()}),wt(1,_s,1,1,null,null,os),h()),o&2){let t=m(2).$implicit,e=m(2);O("id",e.getActionMenuId(t)),d(),St(e.actions())}}function vs(o,i){if(o&1){let t=nt();c(0,"td",25),D("click",function(n){return n.stopPropagation()}),c(1,"div",27)(2,"button",28),D("click",function(n){J(t);let a=m().$implicit,r=m(2);return tt(r.toggleActionMenu(n,a))}),U(3,"i",29),h(),v(4,gs,3,1,"div",30),h()()}if(o&2){let t=m().$implicit,e=m(2);et(e.composeClass(e.actionCellClass(),"relative overflow-visible")),d(2),B("aria-controls",e.getActionMenuId(t))("aria-expanded",e.isActionMenuOpen(t)),d(2),y(e.isActionMenuOpen(t)?4:-1)}}function ys(o,i){if(o&1){let t=nt();c(0,"tr",25),D("click",function(){let n=J(t).$implicit,a=m(2);return tt(a.onRowClick(n))}),wt(1,ps,4,3,"td",18,_a),v(3,vs,5,5,"td",18),h()}if(o&2){let t=i.$implicit,e=i.$index,n=m(2);et(n.getRowClass(t,e)),d(),St(n.columns()),d(2),y(n.actions().length>0?3:-1)}}function xs(o,i){if(o&1&&wt(0,ys,4,3,"tr",18,Dn),o&2){let t=m();St(t.rows())}}function Cs(o,i){if(o&1&&(c(0,"option",44),x(1),h()),o&2){let t=i.$implicit,e=m(3);O("value",t)("selected",t===e.pageSize()),d(),rt(" ",t," ")}}function ws(o,i){if(o&1){let t=nt();c(0,"div",37)(1,"label",42),x(2," Show "),h(),c(3,"select",43),D("change",function(n){J(t);let a=m(2);return tt(a.onPageSizeChange(n))}),wt(4,Cs,2,3,"option",44,le),h(),c(6,"span",45),x(7," entries "),h()()}if(o&2){let t=m(2);d(4),St(t.pageSizeOptions())}}function Ss(o,i){if(o&1){let t=nt();c(0,"li",40)(1,"button",46),D("click",function(){let n=J(t).$implicit,a=m(2);return tt(a.goToPage(n))}),x(2),h()()}if(o&2){let t=i.$implicit,e=m(2);d(),I("active",t===e.pageIndex()),B("aria-current",t===e.pageIndex()?"page":null),d(),rt(" ",t," ")}}function Ds(o,i){if(o&1){let t=nt();c(0,"div",14)(1,"div",34)(2,"div",35)(3,"div",36),x(4," Showing "),c(5,"b"),x(6),h(),x(7," to "),c(8,"b"),x(9),h(),x(10," of "),c(11,"b"),x(12),h(),x(13," entries "),h(),v(14,ws,8,0,"div",37),h(),c(15,"nav",38)(16,"ul",39)(17,"li",40)(18,"button",41),D("click",function(){J(t);let n=m();return tt(n.goToPage(n.pageIndex()-1))}),x(19," Previous "),h()(),wt(20,Ss,3,4,"li",40,le),c(22,"li",40)(23,"button",41),D("click",function(){J(t);let n=m();return tt(n.goToPage(n.pageIndex()+1))}),x(24," Next "),h()()()()()()}if(o&2){let t=m();d(6),ot(t.startRecord()),d(3),ot(t.endRecord()),d(3),ot(t.totalRecords()),d(2),y(t.pageSizeOptions().length>0?14:-1),d(3),I("disabled",t.pageIndex()<=1),d(),O("disabled",t.pageIndex()<=1),d(2),St(t.visiblePages()),d(2),I("disabled",t.pageIndex()>=t.totalPages()),d(),O("disabled",t.pageIndex()>=t.totalPages())}}var ba=class o{destroyRef=s(yi);searchTerms$=new f;cellTemplates=Rn(qt);defaultRowClasses=["table-primary","table-secondary","table-success","table-danger","table-warning","table-info","table-light"];columns=E([]);rows=E([]);actions=E([]);loading=E(!1);totalRecords=E(0);pageIndex=E(1);pageSize=E(10);pageSizeOptions=E([5,10,20,50]);showPaginator=E(!0);title=E("");buttonTitle=E("");showSearch=E(!1);searchPlaceholder=E("Search...");searchDebounceTime=E(300);emptyMessage=E("No records found");allowedPermissions=E([]);searchChanged=Zt();pageChanged=Zt();sortChanged=Zt();actionClicked=Zt();rowClicked=Zt();sortColumn=H("");sortDirection=H("asc");openActionRowId=H(null);tableClass=E("table table-hover whitespace-nowrap min-w-full");tableHeadClass=E("");tableBodyClass=E("");trHeadClass=E("border-b border-defaultborder bg-primary/10 dark:bg-primary/15 dark:border-defaultborder/10");trBodyClass=E("border-b border-defaultborder hover:bg-light cursor-pointer");rowClass=E("");rowColorMode=E("status");defaultThClass=E("text-defaulttextcolor dark:text-white font-semibold text-start");defaultTdClass=E("");actionHeaderClass=E("!text-center");actionCellClass=E("!text-center");colspan=ct(()=>this.columns().length+(this.actions().length>0?1:0));allowedPermissionSet=ct(()=>new Set(this.allowedPermissions()));cellTemplateMap=ct(()=>{let i=new Map;for(let t of this.cellTemplates())i.set(t.appDataTableCell(),t);return i});totalPages=ct(()=>Math.ceil(this.totalRecords()/this.pageSize())||1);startRecord=ct(()=>this.totalRecords()?(this.pageIndex()-1)*this.pageSize()+1:0);endRecord=ct(()=>Math.min(this.pageIndex()*this.pageSize(),this.totalRecords()));visiblePages=ct(()=>{let i=this.pageIndex(),t=this.totalPages(),e=5,n=Math.max(1,i-Math.floor(e/2)),a=Math.min(t,n+e-1);return a-n+1n+l)});goToPage(i){i<1||i>this.totalPages()||i===this.pageIndex()||this.onPageChange({pageIndex:i-1,pageSize:this.pageSize(),length:this.totalRecords()})}onPageSizeChange(i){let t=Number(i.target.value);!t||t===this.pageSize()||this.onPageChange({pageIndex:0,pageSize:t,length:this.totalRecords()})}constructor(){Pt(i=>{let t=this.searchDebounceTime(),e=this.searchTerms$.pipe(Ut(t),oe(),jn(this.destroyRef)).subscribe(n=>{this.searchChanged.emit(n)});i(()=>e.unsubscribe())})}getCellValue(i,t){return i[t]??null}onSearch(i){this.searchTerms$.next(i.trim())}onSort(i){if(!i.sortable)return;let t=String(i.key);this.sortColumn()===t?this.sortDirection.update(e=>e==="asc"?"desc":"asc"):(this.sortColumn.set(t),this.sortDirection.set("asc")),this.sortChanged.emit({column:this.sortColumn(),direction:this.sortDirection()}),this.closeActionMenu()}onPageChange(i){this.pageChanged.emit({pageIndex:i.pageIndex+1,pageSize:i.pageSize}),this.closeActionMenu()}onActionClick(i,t,e){i.stopPropagation(),!this.isActionDisabled(t,e)&&this.actionClicked.emit({action:t,row:e})}toggleActionMenu(i,t){i.stopPropagation();let e=this.getRowId(t);e!==null&&this.openActionRowId.update(n=>n===e?null:e)}closeActionMenu(){this.openActionRowId.set(null)}onDropdownActionClick(i,t,e){this.onActionClick(i,t,e),this.closeActionMenu()}isActionMenuOpen(i){let t=this.getRowId(i);return t!==null&&this.openActionRowId()===t}getActionMenuId(i){let t=this.getRowId(i);return t===null?"row-actions-menu":`row-actions-menu-${String(t)}`}isActionVisible(i,t){return i.permission&&!this.allowedPermissionSet().has(i.permission)?!1:i.visible?i.visible(t):!0}isActionDisabled(i,t){return i.disabled?i.disabled(t):!1}getActionLabel(i){return i.tooltip||i.label}getColumnKey(i){return String(i.key)}getSortIconClass(i){if(!i.sortable)return"";let t=this.getColumnKey(i);return this.sortColumn()!==t?"ri-arrow-up-down-line":this.sortDirection()==="asc"?"ri-sort-asc":"ri-sort-desc"}getHeaderClass(i){return this.composeClass(this.defaultThClass(),this.getAlignClass(i.align),i.headerClass)}getCellClass(i){return this.composeClass(this.defaultTdClass(),this.getAlignClass(i.align),i.cellClass)}getBadgeClass(i,t){let e=this.getCellValue(t,this.getColumnKey(i));return this.composeClass(i.badgeClass?i.badgeClass(e,t):this.getDefaultBadgeClass(e))}getDisplayValue(i,t){let e=this.getCellValue(t,this.getColumnKey(i));return i.formatter?i.formatter(e,t):e==null?"-":typeof e=="string"||typeof e=="number"?e:String(e)}getCellTemplate(i){return this.cellTemplateMap().get(this.getColumnKey(i))}getCellTemplateContext(i,t){return{$implicit:t,row:t,value:this.getCellValue(t,this.getColumnKey(i))}}getActionButtonClass(i){return this.composeClass("ti-btn ti-btn-icon ti-btn-sm",i.className||this.getDefaultActionClass(i.type))}onRowClick(i){this.rowClicked.emit(i)}onDocumentClick(){this.closeActionMenu()}onEscapeKey(){this.closeActionMenu()}getAlignClass(i){switch(i){case"left":return"text-start";case"right":return"text-end";default:return"!text-center"}}composeClass(...i){return i.filter(Boolean).join(" ")}getRowId(i){let t=i.id;return typeof t=="string"||typeof t=="number"?t:null}getDefaultActionClass(i){switch(i){case"view":return"ti-btn-info-full";case"edit":return"ti-btn-primary-full";case"delete":return"ti-btn-danger-full";default:return"ti-btn-light"}}getDefaultBadgeClass(i){if(typeof i=="string"){if(i.toLowerCase()==="active")return"badge bg-success/10 text-success";if(i.toLowerCase()==="inactive")return"badge bg-danger/10 text-danger"}return"badge bg-light text-defaulttextcolor"}getRowClass(i,t){let e=this.trBodyClass(),n=this.rowClass();if(n){let l=typeof n=="function"?n(i,t):n;return this.composeClass(e,l)}let a=i.status??i.state??i.approvalStatus??i.workflowStatus;if(typeof a=="string")switch(a.toLowerCase()){case"active":case"approved":case"success":return this.composeClass(e,"table-success");case"inactive":case"rejected":case"failed":return this.composeClass(e,"table-danger");case"pending":return this.composeClass(e,"table-warning");case"draft":return this.composeClass(e,"table-info")}if(typeof i.isActive=="boolean")return this.composeClass(e,i.isActive?"":"table-danger");let r=this.defaultRowClasses[t%this.defaultRowClasses.length];return this.composeClass(e,"")}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=A({type:o,selectors:[["app-data-table"]],contentQueries:function(t,e,n){t&1&&Ve(n,e.cellTemplates,qt,4),t&2&&de()},hostBindings:function(t,e){t&1&&D("click",function(){return e.onDocumentClick()},wi)("keydown.escape",function(){return e.onEscapeKey()},wi)},inputs:{columns:[1,"columns"],rows:[1,"rows"],actions:[1,"actions"],loading:[1,"loading"],totalRecords:[1,"totalRecords"],pageIndex:[1,"pageIndex"],pageSize:[1,"pageSize"],pageSizeOptions:[1,"pageSizeOptions"],showPaginator:[1,"showPaginator"],title:[1,"title"],buttonTitle:[1,"buttonTitle"],showSearch:[1,"showSearch"],searchPlaceholder:[1,"searchPlaceholder"],searchDebounceTime:[1,"searchDebounceTime"],emptyMessage:[1,"emptyMessage"],allowedPermissions:[1,"allowedPermissions"],tableClass:[1,"tableClass"],tableHeadClass:[1,"tableHeadClass"],tableBodyClass:[1,"tableBodyClass"],trHeadClass:[1,"trHeadClass"],trBodyClass:[1,"trBodyClass"],rowClass:[1,"rowClass"],rowColorMode:[1,"rowColorMode"],defaultThClass:[1,"defaultThClass"],defaultTdClass:[1,"defaultTdClass"],actionHeaderClass:[1,"actionHeaderClass"],actionCellClass:[1,"actionCellClass"]},outputs:{searchChanged:"searchChanged",pageChanged:"pageChanged",sortChanged:"sortChanged",actionClicked:"actionClicked",rowClicked:"rowClicked"},decls:24,vars:10,consts:[["searchInput",""],[1,"grid","grid-cols-12"],[1,"xl:col-span-12","col-span-12"],[1,"box","overflow-visible"],[1,"box-header","justify-between"],[1,"box-title"],[1,"flex","flex-wrap","gap-2"],["routerLink","#",1,"ti-btn","ti-btn-primary-full","!py-1","!px-2","!text-[0.75rem]"],[1,"ri-add-line","align-middle"],[1,"box-body","!p-0"],[1,"table-responsive","overflow-x-auto","overflow-y-visible"],["scope","col",3,"class","width"],["scope","col",3,"class"],[1,"border-b","border-defaultborder"],[1,"box-footer","border-t-0"],["type","text","aria-label","table search",1,"form-control","form-control-sm",3,"input","placeholder"],["scope","col",3,"click"],[1,"inline-flex","items-center","gap-1"],[3,"class"],["scope","col"],[1,"py-10"],[1,"flex","flex-col","items-center","justify-center","gap-3","text-center"],[1,"ti","ti-loader-2","animate-spin","text-[1.5rem]"],[1,"text-[0.875rem]"],[1,"py-10","text-center"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"relative","inline-flex","w-full","justify-center"],["type","button","aria-label","Open row actions","aria-haspopup","menu",1,"ti-btn","ti-btn-sm","ti-btn-light","!w-8","!h-8","!p-0",3,"click"],[1,"ri-more-2-fill","text-lg"],["role","menu",1,"absolute","right-0","top-full","z-[60]","mt-1","min-w-[150px]","rounded-md","border","border-defaultborder","bg-white","p-1","shadow-lg","dark:border-defaultborder/10","dark:bg-bodybg",3,"id"],["role","menu",1,"absolute","right-0","top-full","z-[60]","mt-1","min-w-[150px]","rounded-md","border","border-defaultborder","bg-white","p-1","shadow-lg","dark:border-defaultborder/10","dark:bg-bodybg",3,"click","id"],["type","button","role","menuitem",1,"flex","w-full","items-center","gap-2","rounded","px-3","py-2","text-start","text-sm","hover:bg-light","dark:hover:bg-white/10",3,"disabled","opacity-50","cursor-not-allowed"],["type","button","role","menuitem",1,"flex","w-full","items-center","gap-2","rounded","px-3","py-2","text-start","text-sm","hover:bg-light","dark:hover:bg-white/10",3,"click","disabled"],[1,"flex","items-center","justify-between","flex-wrap","gap-3"],[1,"flex","items-center","flex-wrap","gap-3"],[1,"text-sm","text-defaulttextcolor"],[1,"flex","items-center","gap-2"],["aria-label","Table page navigation"],[1,"ti-pagination","mb-0"],[1,"page-item"],["type","button",1,"page-link","px-3","py-[0.375rem]",3,"click","disabled"],["for","dataTablePageSize",1,"text-sm","whitespace-nowrap"],["id","dataTablePageSize",1,"ti-form-select","form-select-sm","!w-[75px]","!py-1",3,"change"],[3,"value","selected"],[1,"text-sm","whitespace-nowrap"],["type","button",1,"page-link","px-3","py-[0.375rem]",3,"click"]],template:function(t,e){t&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5),x(5),h(),c(6,"div",6)(7,"a",7),U(8,"i",8),x(9),h(),v(10,as,3,1,"div"),h()(),c(11,"div",9)(12,"div",10)(13,"table")(14,"thead")(15,"tr"),wt(16,ss,4,8,"th",11,_a),v(18,ls,2,2,"th",12),h()(),c(19,"tbody"),v(20,ds,6,1,"tr",13)(21,cs,4,2,"tr",13)(22,xs,2,0),h()()()(),v(23,Ds,25,10,"div",14),h()()()),t&2&&(d(5),rt(" ",e.title()," "),d(4),rt("",e.buttonTitle()," "),d(),y(e.showSearch()?10:-1),d(3),et(e.tableClass()),d(2),et(e.trHeadClass()),d(),St(e.columns()),d(2),y(e.actions().length>0?18:-1),d(2),y(e.loading()?20:e.rows().length===0?21:22),d(3),y(e.showPaginator()?23:-1))},dependencies:[He,fa],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background-color:color-mix(in srgb,var(--color-primary) 8%,transparent)}[_nghost-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-top:.5rem;padding-bottom:.5rem;line-height:1.2;vertical-align:middle;color:var(--color-defaulttextcolor);font-weight:600}[_nghost-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%], [_nghost-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-top:.375rem;padding-bottom:.375rem;line-height:1.2;vertical-align:middle}[_nghost-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{line-height:1.2}[data-theme-mode=dark] [_nghost-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background-color:color-mix(in srgb,var(--color-primary) 14%,transparent)}.table-responsive[_ngcontent-%COMP%]{width:100%;overflow-x:auto;overflow-y:visible}.table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{vertical-align:middle}"]})};export{Hn as a,qt as b,ba as c};