dealposbarcode 1.5.8 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkbarcode_app=self.webpackChunkbarcode_app||[]).push([[179],{6897:(It,Me,g)=>{g.d(Me,{zQ:()=>nn,ww:()=>er});var r=g(5879),u=g(8645),B=g(2096),$=g(5592),N=g(2459),ee=g(3019),te=g(3093),fe=g(4664),ne=g(7398),H=g(7081),q=g(1374),me=g(4674);function Ie(Fe,Se){return(0,me.m)(Se)?(0,fe.w)(()=>Fe,Se):(0,fe.w)(()=>Fe)}var Ne=g(5137),nt=g(2181),we=g(8186),Be=g(6304),Xe=g(6814);g(3182);var Ve=g(5861),$e=g(534),ve=g(4537),Je=g(9058),ht=g(7879);const Dt=new Map,Ue={activated:!1,tokenObservers:[]},ut={initialized:!1,enabled:!1};function Pe(Fe){return Dt.get(Fe)||Object.assign({},Ue)}function Ye(){return ut}const Rt="https://content-firebaseappcheck.googleapis.com/v1",Ht="exchangeDebugToken",Mn={OFFSET_DURATION:3e5,RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4};class In{constructor(Se,Ze,bt,Ft,Qt){if(this.operation=Se,this.retryPolicy=Ze,this.getWaitDuration=bt,this.lowerBound=Ft,this.upperBound=Qt,this.pending=null,this.nextErrorWaitInterval=Ft,Ft>Qt)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(Se){var Ze=this;return(0,Ve.Z)(function*(){Ze.stop();try{Ze.pending=new Je.BH,yield function pt(Fe){return new Promise(Se=>{setTimeout(Se,Fe)})}(Ze.getNextRun(Se)),Ze.pending.resolve(),yield Ze.pending.promise,Ze.pending=new Je.BH,yield Ze.operation(),Ze.pending.resolve(),yield Ze.pending.promise,Ze.process(!0).catch(()=>{})}catch(bt){Ze.retryPolicy(bt)?Ze.process(!1).catch(()=>{}):Ze.stop()}})()}getNextRun(Se){if(Se)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const Ze=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),Ze}}}const Oe=new Je.LL("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"});function Re(Fe){if(!Pe(Fe).activated)throw Oe.create("use-before-activation",{appName:Fe.name})}function Ot(Fe,Se){return Zt.apply(this,arguments)}function Zt(){return(Zt=(0,Ve.Z)(function*({url:Fe,body:Se},Ze){const bt={"Content-Type":"application/json"},Ft=Ze.getImmediate({optional:!0});if(Ft){const Ai=yield Ft.getHeartbeatsHeader();Ai&&(bt["X-Firebase-Client"]=Ai)}const Qt={method:"POST",body:JSON.stringify(Se),headers:bt};let ln,Dn;try{ln=yield fetch(Fe,Qt)}catch(Ai){throw Oe.create("fetch-network-error",{originalErrorMessage:Ai?.message})}if(200!==ln.status)throw Oe.create("fetch-status-error",{httpStatus:ln.status});try{Dn=yield ln.json()}catch(Ai){throw Oe.create("fetch-parse-error",{originalErrorMessage:Ai?.message})}const yn=Dn.ttl.match(/^([\d.]+)(s)$/);if(!yn||!yn[2]||isNaN(Number(yn[1])))throw Oe.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${Dn.ttl}`});const bi=1e3*Number(yn[1]),Pi=Date.now();return{token:Dn.token,expireTimeMillis:Pi+bi,issuedAtTimeMillis:Pi}})).apply(this,arguments)}function vt(Fe,Se){const{projectId:Ze,appId:bt,apiKey:Ft}=Fe.options;return{url:`${Rt}/projects/${Ze}/apps/${bt}:${Ht}?key=${Ft}`,body:{debug_token:Se}}}const ze="firebase-app-check-database",Qe=1,St="firebase-app-check-store";let en=null;function ni(){return(ni=(0,Ve.Z)(function*(Fe,Se){const bt=(yield function tn(){return en||(en=new Promise((Fe,Se)=>{try{const Ze=indexedDB.open(ze,Qe);Ze.onsuccess=bt=>{Fe(bt.target.result)},Ze.onerror=bt=>{var Ft;Se(Oe.create("storage-open",{originalErrorMessage:null===(Ft=bt.target.error)||void 0===Ft?void 0:Ft.message}))},Ze.onupgradeneeded=bt=>{0===bt.oldVersion&&bt.target.result.createObjectStore(St,{keyPath:"compositeKey"})}}catch(Ze){Se(Oe.create("storage-open",{originalErrorMessage:Ze?.message}))}}),en)}()).transaction(St,"readwrite"),Qt=bt.objectStore(St).put({compositeKey:Fe,value:Se});return new Promise((ln,Dn)=>{Qt.onsuccess=yn=>{ln()},bt.onerror=yn=>{var bi;Dn(Oe.create("storage-set",{originalErrorMessage:null===(bi=yn.target.error)||void 0===bi?void 0:bi.message}))}})})).apply(this,arguments)}const ai=new ht.Yd("@firebase/app-check");function O(Fe,Se){return(0,Je.hl)()?function xn(Fe,Se){return function kn(Fe,Se){return ni.apply(this,arguments)}(function Zn(Fe){return`${Fe.options.appId}-${Fe.name}`}(Fe),Se)}(Fe,Se).catch(Ze=>{ai.warn(`Failed to write token to IndexedDB. Error: ${Ze}`)}):Promise.resolve()}function j(){return Ye().enabled}function ye(){return z.apply(this,arguments)}function z(){return(z=(0,Ve.Z)(function*(){const Fe=Ye();if(Fe.enabled&&Fe.token)return Fe.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const se={error:"UNKNOWN_ERROR"};function E(Fe){return Je.US.encodeString(JSON.stringify(Fe),!1)}function k(Fe){return ae.apply(this,arguments)}function ae(){return(ae=(0,Ve.Z)(function*(Fe,Se=!1){const Ze=Fe.app;Re(Ze);const bt=Pe(Ze);let Qt,Ft=bt.token;if(Ft&&!ct(Ft)&&(bt.token=void 0,Ft=void 0),!Ft){const yn=yield bt.cachedTokenPromise;yn&&(ct(yn)?Ft=yn:yield O(Ze,void 0))}if(!Se&&Ft&&ct(Ft))return{token:Ft.token};let Dn,ln=!1;if(j()){bt.exchangeTokenPromise||(bt.exchangeTokenPromise=Ot(vt(Ze,yield ye()),Fe.heartbeatServiceProvider).finally(()=>{bt.exchangeTokenPromise=void 0}),ln=!0);const yn=yield bt.exchangeTokenPromise;return yield O(Ze,yn),bt.token=yn,{token:yn.token}}try{bt.exchangeTokenPromise||(bt.exchangeTokenPromise=bt.provider.getToken().finally(()=>{bt.exchangeTokenPromise=void 0}),ln=!0),Ft=yield Pe(Ze).exchangeTokenPromise}catch(yn){"appCheck/throttled"===yn.code?ai.warn(yn.message):ai.error(yn),Qt=yn}return Ft?Qt?Dn=ct(Ft)?{token:Ft.token,internalError:Qt}:tt(Qt):(Dn={token:Ft.token},bt.token=Ft,yield O(Ze,Ft)):Dn=tt(Qt),ln&&function mt(Fe,Se){const Ze=Pe(Fe).tokenObservers;for(const bt of Ze)try{"EXTERNAL"===bt.type&&null!=Se.error?bt.error(Se.error):bt.next(Se)}catch{}}(Ze,Dn),Dn})).apply(this,arguments)}function S(Fe){return L.apply(this,arguments)}function L(){return(L=(0,Ve.Z)(function*(Fe){const Se=Fe.app;Re(Se);const{provider:Ze}=Pe(Se);if(j()){const bt=yield ye(),{token:Ft}=yield Ot(vt(Se,bt),Fe.heartbeatServiceProvider);return{token:Ft}}{const{token:bt}=yield Ze.getToken();return{token:bt}}})).apply(this,arguments)}function K(Fe,Se){const Ze=Pe(Fe),bt=Ze.tokenObservers.filter(Ft=>Ft.next!==Se);0===bt.length&&Ze.tokenRefresher&&Ze.tokenRefresher.isRunning()&&Ze.tokenRefresher.stop(),Ze.tokenObservers=bt}function oe(Fe){const{app:Se}=Fe,Ze=Pe(Se);let bt=Ze.tokenRefresher;bt||(bt=function De(Fe){const{app:Se}=Fe;return new In((0,Ve.Z)(function*(){let bt;if(bt=Pe(Se).token?yield k(Fe,!0):yield k(Fe),bt.error)throw bt.error;if(bt.internalError)throw bt.internalError}),()=>!0,()=>{const Ze=Pe(Se);if(Ze.token){let bt=Ze.token.issuedAtTimeMillis+.5*(Ze.token.expireTimeMillis-Ze.token.issuedAtTimeMillis)+3e5;return bt=Math.min(bt,Ze.token.expireTimeMillis-3e5),Math.max(0,bt-Date.now())}return 0},Mn.RETRIAL_MIN_WAIT,Mn.RETRIAL_MAX_WAIT)}(Fe),Ze.tokenRefresher=bt),!bt.isRunning()&&Ze.isTokenAutoRefreshEnabled&&bt.start()}function ct(Fe){return Fe.expireTimeMillis-Date.now()>0}function tt(Fe){return{token:E(se),error:Fe}}class At{constructor(Se,Ze){this.app=Se,this.heartbeatServiceProvider=Ze}_delete(){const{tokenObservers:Se}=Pe(this.app);for(const Ze of Se)K(this.app,Ze.next);return Promise.resolve()}}const Ni="app-check-internal";!function $r(){(0,$e._registerComponent)(new ve.wA("app-check",Fe=>function xt(Fe,Se){return new At(Fe,Se)}(Fe.getProvider("app").getImmediate(),Fe.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((Fe,Se,Ze)=>{Fe.getProvider(Ni).initialize()})),(0,$e._registerComponent)(new ve.wA(Ni,Fe=>function Ae(Fe){return{getToken:Se=>k(Fe,Se),getLimitedUseToken:()=>S(Fe),addTokenListener:Se=>function ce(Fe,Se,Ze,bt){const{app:Ft}=Fe,Qt=Pe(Ft);if(Qt.tokenObservers=[...Qt.tokenObservers,{next:Ze,error:bt,type:Se}],Qt.token&&ct(Qt.token)){const Dn=Qt.token;Promise.resolve().then(()=>{Ze({token:Dn.token}),oe(Fe)}).catch(()=>{})}Qt.cachedTokenPromise.then(()=>oe(Fe))}(Fe,"INTERNAL",Se),removeTokenListener:Se=>K(Fe.app,Se)}}(Fe.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,$e.registerVersion)("@firebase/app-check","0.8.0")}();class fs{constructor(){return(0,we.vb)("app-check")}}typeof window<"u"&&window;var un=g(7142);const Oi=new r.OlP("angularfire2.auth.use-emulator"),ur=new r.OlP("angularfire2.auth.settings"),gi=new r.OlP("angularfire2.auth.tenant-id"),Cr=new r.OlP("angularfire2.auth.langugage-code"),di=new r.OlP("angularfire2.auth.use-device-language"),rr=new r.OlP("angularfire.auth.persistence");let nn=(()=>{class Fe{constructor(Ze,bt,Ft,Qt,ln,Dn,yn,bi,Pi,Ai,Tn,lo){const Ur=new u.x,Ti=(0,B.of)(void 0).pipe((0,te.Q)(ln.outsideAngular),(0,fe.w)(()=>Qt.runOutsideAngular(()=>g.e(967).then(g.bind(g,5967)))),(0,ne.U)(()=>(0,Be.on)(Ze,Qt,bt)),(0,ne.U)(si=>((Fe,Se,Ze,bt,Ft,Qt,ln,Dn)=>(0,Be.cc)(`${Fe.name}.auth`,"AngularFireAuth",Fe.name,()=>{const yn=Se.runOutsideAngular(()=>Fe.auth());if(Ze&&yn.useEmulator(...Ze),bt&&(yn.tenantId=bt),yn.languageCode=Ft,Qt&&yn.useDeviceLanguage(),ln)for(const[bi,Pi]of Object.entries(ln))yn.settings[bi]=Pi;return Dn&&yn.setPersistence(Dn),yn},[Ze,bt,Ft,Qt,ln,Dn]))(si,Qt,Dn,bi,Pi,Ai,yn,Tn)),(0,H.d)({bufferSize:1,refCount:!1}));if((0,Xe.PM)(Ft))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,B.of)(null);else{Ti.pipe((0,q.P)()).subscribe();const _i=Ti.pipe((0,fe.w)(Hn=>Hn.getRedirectResult().then(Dr=>Dr,()=>null)),we.iC,(0,H.d)({bufferSize:1,refCount:!1})),dr=Ti.pipe((0,fe.w)(Hn=>new $.y(Dr=>({unsubscribe:Qt.runOutsideAngular(()=>Hn.onAuthStateChanged(ui=>Dr.next(ui),ui=>Dr.error(ui),()=>Dr.complete()))})))),Wi=Ti.pipe((0,fe.w)(Hn=>new $.y(Dr=>({unsubscribe:Qt.runOutsideAngular(()=>Hn.onIdTokenChanged(ui=>Dr.next(ui),ui=>Dr.error(ui),()=>Dr.complete()))}))));this.authState=_i.pipe(Ie(dr),(0,Ne.R)(ln.outsideAngular),(0,te.Q)(ln.insideAngular)),this.user=_i.pipe(Ie(Wi),(0,Ne.R)(ln.outsideAngular),(0,te.Q)(ln.insideAngular)),this.idToken=this.user.pipe((0,fe.w)(Hn=>Hn?(0,N.D)(Hn.getIdToken()):(0,B.of)(null))),this.idTokenResult=this.user.pipe((0,fe.w)(Hn=>Hn?(0,N.D)(Hn.getIdTokenResult()):(0,B.of)(null))),this.credential=(0,ee.T)(_i,Ur,this.authState.pipe((0,nt.h)(Hn=>!Hn))).pipe((0,ne.U)(Hn=>Hn?.user?Hn:null),(0,Ne.R)(ln.outsideAngular),(0,te.Q)(ln.insideAngular))}return(0,Be.pX)(this,Ti,Qt,{spy:{apply:(si,_i,dr)=>{(si.startsWith("signIn")||si.startsWith("createUser"))&&dr.then(Wi=>Ur.next(Wi))}}})}}return Fe.\u0275fac=function(Ze){return new(Ze||Fe)(r.LFG(Be.Dh),r.LFG(Be.xv,8),r.LFG(r.Lbi),r.LFG(r.R0b),r.LFG(we.HU),r.LFG(Oi,8),r.LFG(ur,8),r.LFG(gi,8),r.LFG(Cr,8),r.LFG(di,8),r.LFG(rr,8),r.LFG(fs,8))},Fe.\u0275prov=r.Yz7({token:Fe,factory:Fe.\u0275fac,providedIn:"any"}),Fe})(),er=(()=>{class Fe{constructor(){un.Z.registerVersion("angularfire",we.q4.full,"auth-compat")}}return Fe.\u0275fac=function(Ze){return new(Ze||Fe)},Fe.\u0275mod=r.oAB({type:Fe}),Fe.\u0275inj=r.cJS({providers:[nn]}),Fe})()},6304:(It,Me,g)=>{g.d(Me,{Dh:()=>fe,GT:()=>ee,cc:()=>Ne,hO:()=>Ie,on:()=>H,pX:()=>N,xv:()=>ne});var r=g(5879),u=g(7142),B=g(8186);It=g.hmd(It);const $=["ngOnDestroy"],N=(Xe,Ge,at,J={})=>new Proxy(Xe,{get:(Te,he)=>at.runOutsideAngular(()=>{var _e;if(Xe[he])return!(null===(_e=J?.spy)||void 0===_e)&&_e.get&&J.spy.get(he,Xe[he]),Xe[he];if($.indexOf(he)>-1)return()=>{};const Ke=Ge.toPromise().then(qe=>{const yt=qe&&qe[he];return"function"==typeof yt?yt.bind(qe):yt&&yt.then?yt.then(Ut=>at.run(()=>Ut)):at.run(()=>yt)});return new Proxy(()=>{},{get:(qe,yt)=>Ke[yt],apply:(qe,yt,Ut)=>Ke.then(Gt=>{var Xt;const on=Gt&&Gt(...Ut);return!(null===(Xt=J?.spy)||void 0===Xt)&&Xt.apply&&J.spy.apply(he,Ut,on),on})})})}),ee=(Xe,Ge)=>{Ge.forEach(at=>{Object.getOwnPropertyNames(at.prototype||at).forEach(J=>{Object.defineProperty(Xe.prototype,J,Object.getOwnPropertyDescriptor(at.prototype||at,J))})})};class te{constructor(Ge){return Ge}}const fe=new r.OlP("angularfire2.app.options"),ne=new r.OlP("angularfire2.app.name");function H(Xe,Ge,at){const Te="object"==typeof at&&at||{};Te.name=Te.name||"string"==typeof at&&at||"[DEFAULT]";const _e=u.Z.apps.filter(Ke=>Ke&&Ke.name===Te.name)[0]||Ge.runOutsideAngular(()=>u.Z.initializeApp(Xe,Te));try{JSON.stringify(Xe)!==JSON.stringify(_e.options)&&q("error",`${_e.name} Firebase App already initialized with different options${It.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new te(_e)}const q=(Xe,...Ge)=>{(0,r.X6Q)()&&typeof console<"u"&&console[Xe](...Ge)},me={provide:te,useFactory:H,deps:[fe,r.R0b,[new r.FiY,ne]]};let Ie=(()=>{class Xe{constructor(at){u.Z.registerVersion("angularfire",B.q4.full,"core"),u.Z.registerVersion("angularfire",B.q4.full,"app-compat"),u.Z.registerVersion("angular",r.q4F.full,at.toString())}static initializeApp(at,J){return{ngModule:Xe,providers:[{provide:fe,useValue:at},{provide:ne,useValue:J}]}}}return Xe.\u0275fac=function(at){return new(at||Xe)(r.LFG(r.Lbi))},Xe.\u0275mod=r.oAB({type:Xe}),Xe.\u0275inj=r.cJS({providers:[me]}),Xe})();function Ne(Xe,Ge,at,J,Te){const[,he,_e]=globalThis.\u0275AngularfireInstanceCache.find(Ke=>Ke[0]===Xe)||[];if(he)return function nt(Xe,Ge){try{return Xe.toString()===Ge.toString()}catch{return Xe===Ge}}(Te,_e)||(Be("error",`${Ge} was already initialized on the ${at} Firebase App with different settings.${we?" You may need to reload as Firebase is not HMR aware.":""}`),Be("warn",{is:Te,was:_e})),he;{const Ke=J();return globalThis.\u0275AngularfireInstanceCache.push([Xe,Ke,Te]),Ke}}const we=!!It.hot,Be=(Xe,...Ge)=>{(0,r.X6Q)()&&typeof console<"u"&&console[Xe](...Ge)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},8186:(It,Me,g)=>{g.d(Me,{q4:()=>Tl,iC:()=>Ol,HU:()=>Su,vb:()=>Tu,JM:()=>Ko});var r=g(5879),u=g(3182),B=g(5861),$=g(534),N=g(9058),ee=g(4537),te=g(7879);const fe=(m,C)=>C.some(U=>m instanceof U);let ne,H;const Ie=new WeakMap,Ne=new WeakMap,nt=new WeakMap,we=new WeakMap,Be=new WeakMap;let at={get(m,C,U){if(m instanceof IDBTransaction){if("done"===C)return Ne.get(m);if("objectStoreNames"===C)return m.objectStoreNames||nt.get(m);if("store"===C)return U.objectStoreNames[1]?void 0:U.objectStore(U.objectStoreNames[0])}return _e(m[C])},set:(m,C,U)=>(m[C]=U,!0),has:(m,C)=>m instanceof IDBTransaction&&("done"===C||"store"===C)||C in m};function he(m){return"function"==typeof m?function Te(m){return m!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function me(){return H||(H=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(m)?function(...C){return m.apply(Ke(this),C),_e(Ie.get(this))}:function(...C){return _e(m.apply(Ke(this),C))}:function(C,...U){const de=m.call(Ke(this),C,...U);return nt.set(de,C.sort?C.sort():[C]),_e(de)}}(m):(m instanceof IDBTransaction&&function Ge(m){if(Ne.has(m))return;const C=new Promise((U,de)=>{const je=()=>{m.removeEventListener("complete",st),m.removeEventListener("error",wt),m.removeEventListener("abort",wt)},st=()=>{U(),je()},wt=()=>{de(m.error||new DOMException("AbortError","AbortError")),je()};m.addEventListener("complete",st),m.addEventListener("error",wt),m.addEventListener("abort",wt)});Ne.set(m,C)}(m),fe(m,function q(){return ne||(ne=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(m,at):m)}function _e(m){if(m instanceof IDBRequest)return function Xe(m){const C=new Promise((U,de)=>{const je=()=>{m.removeEventListener("success",st),m.removeEventListener("error",wt)},st=()=>{U(_e(m.result)),je()},wt=()=>{de(m.error),je()};m.addEventListener("success",st),m.addEventListener("error",wt)});return C.then(U=>{U instanceof IDBCursor&&Ie.set(U,m)}).catch(()=>{}),Be.set(C,m),C}(m);if(we.has(m))return we.get(m);const C=he(m);return C!==m&&(we.set(m,C),Be.set(C,m)),C}const Ke=m=>Be.get(m),Ut=["get","getKey","getAll","getAllKeys","count"],Gt=["put","add","delete","clear"],Xt=new Map;function on(m,C){if(!(m instanceof IDBDatabase)||C in m||"string"!=typeof C)return;if(Xt.get(C))return Xt.get(C);const U=C.replace(/FromIndex$/,""),de=C!==U,je=Gt.includes(U);if(!(U in(de?IDBIndex:IDBObjectStore).prototype)||!je&&!Ut.includes(U))return;const st=function(){var wt=(0,B.Z)(function*(qt,...zt){const an=this.transaction(qt,je?"readwrite":"readonly");let Vn=an.store;return de&&(Vn=Vn.index(zt.shift())),(yield Promise.all([Vn[U](...zt),je&&an.done]))[0]});return function(zt){return wt.apply(this,arguments)}}();return Xt.set(C,st),st}!function J(m){at=m(at)}(m=>({...m,get:(C,U,de)=>on(C,U)||m.get(C,U,de),has:(C,U)=>!!on(C,U)||m.has(C,U)}));const cn="@firebase/installations",mn="0.6.4",Fn=1e4,Gn=`w:${mn}`,Le="FIS_v2",Ve="https://firebaseinstallations.googleapis.com/v1",$e=36e5,Dt=new N.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function Ue(m){return m instanceof N.ZR&&m.code.includes("request-failed")}function ut({projectId:m}){return`${Ve}/projects/${m}/installations`}function Pe(m){return{token:m.token,requestStatus:2,expiresIn:Mn(m.expiresIn),creationTime:Date.now()}}function et(m,C){return Ye.apply(this,arguments)}function Ye(){return(Ye=(0,B.Z)(function*(m,C){const de=(yield C.json()).error;return Dt.create("request-failed",{requestName:m,serverCode:de.code,serverMessage:de.message,serverStatus:de.status})})).apply(this,arguments)}function Rt({apiKey:m}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":m})}function gn(m){return Ht.apply(this,arguments)}function Ht(){return(Ht=(0,B.Z)(function*(m){const C=yield m();return C.status>=500&&C.status<600?m():C})).apply(this,arguments)}function Mn(m){return Number(m.replace("s","000"))}function pt(){return(pt=(0,B.Z)(function*({appConfig:m,heartbeatServiceProvider:C},{fid:U}){const de=ut(m),je=Rt(m),st=C.getImmediate({optional:!0});if(st){const an=yield st.getHeartbeatsHeader();an&&je.append("x-firebase-client",an)}const qt={method:"POST",headers:je,body:JSON.stringify({fid:U,authVersion:Le,appId:m.appId,sdkVersion:Gn})},zt=yield gn(()=>fetch(de,qt));if(zt.ok){const an=yield zt.json();return{fid:an.fid||U,registrationStatus:2,refreshToken:an.refreshToken,authToken:Pe(an.authToken)}}throw yield et("Create Installation",zt)})).apply(this,arguments)}function Q(m){return new Promise(C=>{setTimeout(C,m)})}const Ce=/^[cdef][\w-]{21}$/,Re="";function dt(){try{const m=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(m),m[0]=112+m[0]%16;const U=function _t(m){return function Oe(m){return btoa(String.fromCharCode(...m)).replace(/\+/g,"-").replace(/\//g,"_")}(m).substr(0,22)}(m);return Ce.test(U)?U:Re}catch{return Re}}function Ot(m){return`${m.appName}!${m.appId}`}const Zt=new Map;function lt(m,C){const U=Ot(m);ze(U,C),function Qe(m,C){const U=function Mt(){return!St&&"BroadcastChannel"in self&&(St=new BroadcastChannel("[Firebase] FID Change"),St.onmessage=m=>{ze(m.data.key,m.data.fid)}),St}();U&&U.postMessage({key:m,fid:C}),function en(){0===Zt.size&&St&&(St.close(),St=null)}()}(U,C)}function ze(m,C){const U=Zt.get(m);if(U)for(const de of U)de(C)}let St=null;const tn="firebase-installations-database",En=1,xn="firebase-installations-store";let dn=null;function Cn(){return dn||(dn=function qe(m,C,{blocked:U,upgrade:de,blocking:je,terminated:st}={}){const wt=indexedDB.open(m,C),qt=_e(wt);return de&&wt.addEventListener("upgradeneeded",zt=>{de(_e(wt.result),zt.oldVersion,zt.newVersion,_e(wt.transaction))}),U&&wt.addEventListener("blocked",()=>U()),qt.then(zt=>{st&&zt.addEventListener("close",()=>st()),je&&zt.addEventListener("versionchange",()=>je())}).catch(()=>{}),qt}(tn,En,{upgrade:(m,C)=>{0===C&&m.createObjectStore(xn)}})),dn}function kn(m,C){return ni.apply(this,arguments)}function ni(){return(ni=(0,B.Z)(function*(m,C){const U=Ot(m),je=(yield Cn()).transaction(xn,"readwrite"),st=je.objectStore(xn),wt=yield st.get(U);return yield st.put(C,U),yield je.done,(!wt||wt.fid!==C.fid)&&lt(m,C.fid),C})).apply(this,arguments)}function On(m){return oi.apply(this,arguments)}function oi(){return(oi=(0,B.Z)(function*(m){const C=Ot(m),de=(yield Cn()).transaction(xn,"readwrite");yield de.objectStore(xn).delete(C),yield de.done})).apply(this,arguments)}function Zn(m,C){return ai.apply(this,arguments)}function ai(){return(ai=(0,B.Z)(function*(m,C){const U=Ot(m),je=(yield Cn()).transaction(xn,"readwrite"),st=je.objectStore(xn),wt=yield st.get(U),qt=C(wt);return void 0===qt?yield st.delete(U):yield st.put(qt,U),yield je.done,qt&&(!wt||wt.fid!==qt.fid)&&lt(m,qt.fid),qt})).apply(this,arguments)}function xe(m){return W.apply(this,arguments)}function W(){return W=(0,B.Z)(function*(m){let C;const U=yield Zn(m.appConfig,de=>{const je=function O(m){return se(m||{fid:dt(),registrationStatus:0})}(de),st=function V(m,C){if(0===C.registrationStatus){if(!navigator.onLine)return{installationEntry:C,registrationPromise:Promise.reject(Dt.create("app-offline"))};const U={fid:C.fid,registrationStatus:1,registrationTime:Date.now()},de=function M(m,C){return j.apply(this,arguments)}(m,U);return{installationEntry:U,registrationPromise:de}}return 1===C.registrationStatus?{installationEntry:C,registrationPromise:ye(m)}:{installationEntry:C}}(m,je);return C=st.registrationPromise,st.installationEntry});return U.fid===Re?{installationEntry:yield C}:{installationEntry:U,registrationPromise:C}}),W.apply(this,arguments)}function j(){return j=(0,B.Z)(function*(m,C){try{const U=yield function In(m,C){return pt.apply(this,arguments)}(m,C);return kn(m.appConfig,U)}catch(U){throw Ue(U)&&409===U.customData.serverCode?yield On(m.appConfig):yield kn(m.appConfig,{fid:C.fid,registrationStatus:0}),U}}),j.apply(this,arguments)}function ye(m){return z.apply(this,arguments)}function z(){return(z=(0,B.Z)(function*(m){let C=yield ie(m.appConfig);for(;1===C.registrationStatus;)yield Q(100),C=yield ie(m.appConfig);if(0===C.registrationStatus){const{installationEntry:U,registrationPromise:de}=yield xe(m);return de||U}return C})).apply(this,arguments)}function ie(m){return Zn(m,C=>{if(!C)throw Dt.create("installation-not-found");return se(C)})}function se(m){return function E(m){return 1===m.registrationStatus&&m.registrationTime+Fn<Date.now()}(m)?{fid:m.fid,registrationStatus:0}:m}function ae(){return(ae=(0,B.Z)(function*({appConfig:m,heartbeatServiceProvider:C},U){const de=function S(m,{fid:C}){return`${ut(m)}/${C}/authTokens:generate`}(m,U),je=function Yt(m,{refreshToken:C}){const U=Rt(m);return U.append("Authorization",function Wn(m){return`${Le} ${m}`}(C)),U}(m,U),st=C.getImmediate({optional:!0});if(st){const an=yield st.getHeartbeatsHeader();an&&je.append("x-firebase-client",an)}const qt={method:"POST",headers:je,body:JSON.stringify({installation:{sdkVersion:Gn,appId:m.appId}})},zt=yield gn(()=>fetch(de,qt));if(zt.ok)return Pe(yield zt.json());throw yield et("Generate Auth Token",zt)})).apply(this,arguments)}function L(m){return ce.apply(this,arguments)}function ce(){return ce=(0,B.Z)(function*(m,C=!1){let U;const de=yield Zn(m.appConfig,st=>{if(!tt(st))throw Dt.create("not-registered");const wt=st.authToken;if(!C&&function At(m){return 2===m.requestStatus&&!function xt(m){const C=Date.now();return C<m.creationTime||m.creationTime+m.expiresIn<C+$e}(m)}(wt))return st;if(1===wt.requestStatus)return U=function K(m,C){return oe.apply(this,arguments)}(m,C),st;{if(!navigator.onLine)throw Dt.create("app-offline");const qt=function Ae(m){const C={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},m),{authToken:C})}(st);return U=function mt(m,C){return ct.apply(this,arguments)}(m,qt),qt}});return U?yield U:de.authToken}),ce.apply(this,arguments)}function oe(){return(oe=(0,B.Z)(function*(m,C){let U=yield De(m.appConfig);for(;1===U.authToken.requestStatus;)yield Q(100),U=yield De(m.appConfig);const de=U.authToken;return 0===de.requestStatus?L(m,C):de})).apply(this,arguments)}function De(m){return Zn(m,C=>{if(!tt(C))throw Dt.create("not-registered");return function gt(m){return 1===m.requestStatus&&m.requestTime+Fn<Date.now()}(C.authToken)?Object.assign(Object.assign({},C),{authToken:{requestStatus:0}}):C})}function ct(){return ct=(0,B.Z)(function*(m,C){try{const U=yield function k(m,C){return ae.apply(this,arguments)}(m,C),de=Object.assign(Object.assign({},C),{authToken:U});return yield kn(m.appConfig,de),U}catch(U){if(!Ue(U)||401!==U.customData.serverCode&&404!==U.customData.serverCode){const de=Object.assign(Object.assign({},C),{authToken:{requestStatus:0}});yield kn(m.appConfig,de)}else yield On(m.appConfig);throw U}}),ct.apply(this,arguments)}function tt(m){return void 0!==m&&2===m.registrationStatus}function fn(){return(fn=(0,B.Z)(function*(m){const C=m,{installationEntry:U,registrationPromise:de}=yield xe(C);return de?de.catch(console.error):L(C).catch(console.error),U.fid})).apply(this,arguments)}function Pn(){return Pn=(0,B.Z)(function*(m,C=!1){const U=m;return yield function jn(m){return mi.apply(this,arguments)}(U),(yield L(U,C)).token}),Pn.apply(this,arguments)}function mi(){return(mi=(0,B.Z)(function*(m){const{registrationPromise:C}=yield xe(m);C&&(yield C)})).apply(this,arguments)}function Ii(m){return Dt.create("missing-app-config-values",{valueName:m})}const lr="installations",Ws=m=>{const C=m.getProvider("app").getImmediate(),U=function Jn(m){if(!m||!m.options)throw Ii("App Configuration");if(!m.name)throw Ii("App Name");const C=["projectId","apiKey","appId"];for(const U of C)if(!m.options[U])throw Ii(U);return{appName:m.name,projectId:m.options.projectId,apiKey:m.options.apiKey,appId:m.options.appId}}(C);return{app:C,appConfig:U,heartbeatServiceProvider:(0,$._getProvider)(C,"heartbeat"),_delete:()=>Promise.resolve()}},qr=m=>{const C=m.getProvider("app").getImmediate(),U=(0,$._getProvider)(C,lr).getImmediate();return{getId:()=>function Lt(m){return fn.apply(this,arguments)}(U),getToken:je=>function Kn(m){return Pn.apply(this,arguments)}(U,je)}};(function Ys(){(0,$._registerComponent)(new ee.wA(lr,Ws,"PUBLIC")),(0,$._registerComponent)(new ee.wA("installations-internal",qr,"PRIVATE"))})(),(0,$.registerVersion)(cn,mn),(0,$.registerVersion)(cn,mn,"esm2017");const Xr="@firebase/remote-config",Ni=new N.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class un{constructor(C,U,de,je){this.client=C,this.storage=U,this.storageCache=de,this.logger=je}isCachedDataFresh(C,U){if(!U)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const de=Date.now()-U,je=de<=C;return this.logger.debug(`Config fetch cache check. Cache age millis: ${de}. Cache max age millis (minimumFetchIntervalMillis setting): ${C}. Is cache hit: ${je}.`),je}fetch(C){var U=this;return(0,B.Z)(function*(){const[de,je]=yield Promise.all([U.storage.getLastSuccessfulFetchTimestampMillis(),U.storage.getLastSuccessfulFetchResponse()]);if(je&&U.isCachedDataFresh(C.cacheMaxAgeMillis,de))return je;C.eTag=je&&je.eTag;const st=yield U.client.fetch(C),wt=[U.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===st.status&&wt.push(U.storage.setLastSuccessfulFetchResponse(st)),yield Promise.all(wt),st})()}}function ci(m=navigator){return m.languages&&m.languages[0]||m.language}class Oi{constructor(C,U,de,je,st,wt){this.firebaseInstallations=C,this.sdkVersion=U,this.namespace=de,this.projectId=je,this.apiKey=st,this.appId=wt}fetch(C){var U=this;return(0,B.Z)(function*(){const[de,je]=yield Promise.all([U.firebaseInstallations.getId(),U.firebaseInstallations.getToken()]),wt=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${U.projectId}/namespaces/${U.namespace}:fetch?key=${U.apiKey}`,qt={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":C.eTag||"*"},zt={sdk_version:U.sdkVersion,app_instance_id:de,app_instance_id_token:je,app_id:U.appId,language_code:ci()},an={method:"POST",headers:qt,body:JSON.stringify(zt)},Vn=fetch(wt,an),zn=new Promise((Qr,Oo)=>{C.signal.addEventListener(()=>{const vs=new Error("The operation was aborted.");vs.name="AbortError",Oo(vs)})});let Fr;try{yield Promise.race([Vn,zn]),Fr=yield Vn}catch(Qr){let Oo="fetch-client-network";throw"AbortError"===Qr?.name&&(Oo="fetch-timeout"),Ni.create(Oo,{originalErrorMessage:Qr?.message})}let kr=Fr.status;const Wa=Fr.headers.get("ETag")||void 0;let ar,Ma;if(200===Fr.status){let Qr;try{Qr=yield Fr.json()}catch(Oo){throw Ni.create("fetch-client-parse",{originalErrorMessage:Oo?.message})}ar=Qr.entries,Ma=Qr.state}if("INSTANCE_STATE_UNSPECIFIED"===Ma?kr=500:"NO_CHANGE"===Ma?kr=304:("NO_TEMPLATE"===Ma||"EMPTY_CONFIG"===Ma)&&(ar={}),304!==kr&&200!==kr)throw Ni.create("fetch-status",{httpStatus:kr});return{status:kr,eTag:Wa,config:ar}})()}}class Cr{constructor(C,U){this.client=C,this.storage=U}fetch(C){var U=this;return(0,B.Z)(function*(){const de=(yield U.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return U.attemptFetch(C,de)})()}attemptFetch(C,{throttleEndTimeMillis:U,backoffCount:de}){var je=this;return(0,B.Z)(function*(){yield function ur(m,C){return new Promise((U,de)=>{const je=Math.max(C-Date.now(),0),st=setTimeout(U,je);m.addEventListener(()=>{clearTimeout(st),de(Ni.create("fetch-throttle",{throttleEndTimeMillis:C}))})})}(C.signal,U);try{const st=yield je.client.fetch(C);return yield je.storage.deleteThrottleMetadata(),st}catch(st){if(!function gi(m){if(!(m instanceof N.ZR&&m.customData))return!1;const C=Number(m.customData.httpStatus);return 429===C||500===C||503===C||504===C}(st))throw st;const wt={throttleEndTimeMillis:Date.now()+(0,N.$s)(de),backoffCount:de+1};return yield je.storage.setThrottleMetadata(wt),je.attemptFetch(C,wt)}})()}}class Vr{constructor(C,U,de,je,st){this.app=C,this._client=U,this._storageCache=de,this._storage=je,this._logger=st,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function nn(m,C){const U=m.target.error||void 0;return Ni.create(C,{originalErrorMessage:U&&U?.message})}const er="app_namespace_store";class bt{constructor(C,U,de,je=function Ze(){return new Promise((m,C)=>{try{const U=indexedDB.open("firebase_remote_config",1);U.onerror=de=>{C(nn(de,"storage-open"))},U.onsuccess=de=>{m(de.target.result)},U.onupgradeneeded=de=>{0===de.oldVersion&&de.target.result.createObjectStore(er,{keyPath:"compositeKey"})}}catch(U){C(Ni.create("storage-open",{originalErrorMessage:U?.message}))}})}()){this.appId=C,this.appName=U,this.namespace=de,this.openDbPromise=je}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(C){return this.set("last_fetch_status",C)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(C){return this.set("last_successful_fetch_timestamp_millis",C)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(C){return this.set("last_successful_fetch_response",C)}getActiveConfig(){return this.get("active_config")}setActiveConfig(C){return this.set("active_config",C)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(C){return this.set("active_config_etag",C)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(C){return this.set("throttle_metadata",C)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(C){var U=this;return(0,B.Z)(function*(){const de=yield U.openDbPromise;return new Promise((je,st)=>{const qt=de.transaction([er],"readonly").objectStore(er),zt=U.createCompositeKey(C);try{const an=qt.get(zt);an.onerror=Vn=>{st(nn(Vn,"storage-get"))},an.onsuccess=Vn=>{const zn=Vn.target.result;je(zn?zn.value:void 0)}}catch(an){st(Ni.create("storage-get",{originalErrorMessage:an?.message}))}})})()}set(C,U){var de=this;return(0,B.Z)(function*(){const je=yield de.openDbPromise;return new Promise((st,wt)=>{const zt=je.transaction([er],"readwrite").objectStore(er),an=de.createCompositeKey(C);try{const Vn=zt.put({compositeKey:an,value:U});Vn.onerror=zn=>{wt(nn(zn,"storage-set"))},Vn.onsuccess=()=>{st()}}catch(Vn){wt(Ni.create("storage-set",{originalErrorMessage:Vn?.message}))}})})()}delete(C){var U=this;return(0,B.Z)(function*(){const de=yield U.openDbPromise;return new Promise((je,st)=>{const qt=de.transaction([er],"readwrite").objectStore(er),zt=U.createCompositeKey(C);try{const an=qt.delete(zt);an.onerror=Vn=>{st(nn(Vn,"storage-delete"))},an.onsuccess=()=>{je()}}catch(an){st(Ni.create("storage-delete",{originalErrorMessage:an?.message}))}})})()}createCompositeKey(C){return[this.appId,this.appName,this.namespace,C].join()}}class Ft{constructor(C){this.storage=C}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var C=this;return(0,B.Z)(function*(){const U=C.storage.getLastFetchStatus(),de=C.storage.getLastSuccessfulFetchTimestampMillis(),je=C.storage.getActiveConfig(),st=yield U;st&&(C.lastFetchStatus=st);const wt=yield de;wt&&(C.lastSuccessfulFetchTimestampMillis=wt);const qt=yield je;qt&&(C.activeConfig=qt)})()}setLastFetchStatus(C){return this.lastFetchStatus=C,this.storage.setLastFetchStatus(C)}setLastSuccessfulFetchTimestampMillis(C){return this.lastSuccessfulFetchTimestampMillis=C,this.storage.setLastSuccessfulFetchTimestampMillis(C)}setActiveConfig(C){return this.activeConfig=C,this.storage.setActiveConfig(C)}}function yn(){return bi.apply(this,arguments)}function bi(){return(bi=(0,B.Z)(function*(){if(!(0,N.hl)())return!1;try{return yield(0,N.eu)()}catch{return!1}})).apply(this,arguments)}!function Qt(){(0,$._registerComponent)(new ee.wA("remote-config",function m(C,{instanceIdentifier:U}){const de=C.getProvider("app").getImmediate(),je=C.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw Ni.create("registration-window");if(!(0,N.hl)())throw Ni.create("indexed-db-unavailable");const{projectId:st,apiKey:wt,appId:qt}=de.options;if(!st)throw Ni.create("registration-project-id");if(!wt)throw Ni.create("registration-api-key");if(!qt)throw Ni.create("registration-app-id");const zt=new bt(qt,de.name,U=U||"firebase"),an=new Ft(zt),Vn=new te.Yd(Xr);Vn.logLevel=te.in.ERROR;const zn=new Oi(je,$.SDK_VERSION,U,st,wt,qt),Fr=new Cr(zn,zt),kr=new un(Fr,zt,an,Vn),Wa=new Vr(de,kr,an,zt,Vn);return function fi(m){const C=(0,N.m9)(m);C._initializePromise||(C._initializePromise=C._storageCache.loadFromStorage().then(()=>{C._isInitializationComplete=!0}))}(Wa),Wa},"PUBLIC").setMultipleInstances(!0)),(0,$.registerVersion)(Xr,"0.4.4"),(0,$.registerVersion)(Xr,"0.4.4","esm2017")}();const Pi=(m,C)=>C.some(U=>m instanceof U);let Ai,Tn;const Ti=new WeakMap,si=new WeakMap,_i=new WeakMap,dr=new WeakMap,Wi=new WeakMap;let ui={get(m,C,U){if(m instanceof IDBTransaction){if("done"===C)return si.get(m);if("objectStoreNames"===C)return m.objectStoreNames||_i.get(m);if("store"===C)return U.objectStoreNames[1]?void 0:U.objectStore(U.objectStoreNames[0])}return fr(m[C])},set:(m,C,U)=>(m[C]=U,!0),has:(m,C)=>m instanceof IDBTransaction&&("done"===C||"store"===C)||C in m};function Mr(m){return"function"==typeof m?function Gr(m){return m!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Ur(){return Tn||(Tn=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(m)?function(...C){return m.apply(ji(this),C),fr(Ti.get(this))}:function(...C){return fr(m.apply(ji(this),C))}:function(C,...U){const de=m.call(ji(this),C,...U);return _i.set(de,C.sort?C.sort():[C]),fr(de)}}(m):(m instanceof IDBTransaction&&function Dr(m){if(si.has(m))return;const C=new Promise((U,de)=>{const je=()=>{m.removeEventListener("complete",st),m.removeEventListener("error",wt),m.removeEventListener("abort",wt)},st=()=>{U(),je()},wt=()=>{de(m.error||new DOMException("AbortError","AbortError")),je()};m.addEventListener("complete",st),m.addEventListener("error",wt),m.addEventListener("abort",wt)});si.set(m,C)}(m),Pi(m,function lo(){return Ai||(Ai=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(m,ui):m)}function fr(m){if(m instanceof IDBRequest)return function Hn(m){const C=new Promise((U,de)=>{const je=()=>{m.removeEventListener("success",st),m.removeEventListener("error",wt)},st=()=>{U(fr(m.result)),je()},wt=()=>{de(m.error),je()};m.addEventListener("success",st),m.addEventListener("error",wt)});return C.then(U=>{U instanceof IDBCursor&&Ti.set(U,m)}).catch(()=>{}),Wi.set(C,m),C}(m);if(dr.has(m))return dr.get(m);const C=Mr(m);return C!==m&&(dr.set(m,C),Wi.set(C,m)),C}const ji=m=>Wi.get(m);function Wr(m,C,{blocked:U,upgrade:de,blocking:je,terminated:st}={}){const wt=indexedDB.open(m,C),qt=fr(wt);return de&&wt.addEventListener("upgradeneeded",zt=>{de(fr(wt.result),zt.oldVersion,zt.newVersion,fr(wt.transaction))}),U&&wt.addEventListener("blocked",()=>U()),qt.then(zt=>{st&&zt.addEventListener("close",()=>st()),je&&zt.addEventListener("versionchange",()=>je())}).catch(()=>{}),qt}function Qs(m,{blocked:C}={}){const U=indexedDB.deleteDatabase(m);return C&&U.addEventListener("blocked",()=>C()),fr(U).then(()=>{})}const qs=["get","getKey","getAll","getAllKeys","count"],Ns=["put","add","delete","clear"],es=new Map;function Cs(m,C){if(!(m instanceof IDBDatabase)||C in m||"string"!=typeof C)return;if(es.get(C))return es.get(C);const U=C.replace(/FromIndex$/,""),de=C!==U,je=Ns.includes(U);if(!(U in(de?IDBIndex:IDBObjectStore).prototype)||!je&&!qs.includes(U))return;const st=function(){var wt=(0,B.Z)(function*(qt,...zt){const an=this.transaction(qt,je?"readwrite":"readonly");let Vn=an.store;return de&&(Vn=Vn.index(zt.shift())),(yield Promise.all([Vn[U](...zt),je&&an.done]))[0]});return function(zt){return wt.apply(this,arguments)}}();return es.set(C,st),st}!function Yi(m){ui=m(ui)}(m=>({...m,get:(C,U,de)=>Cs(C,U)||m.get(C,U,de),has:(C,U)=>!!Cs(C,U)||m.has(C,U)}));const Co="/firebase-messaging-sw.js",Bo="/firebase-cloud-messaging-push-scope",Do="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ta="https://fcmregistrations.googleapis.com/v1",Ei="google.c.a.c_id",na="google.c.a.c_l",Vo="google.c.a.ts";var X=function(m){return m.PUSH_RECEIVED="push-received",m.NOTIFICATION_CLICKED="notification-clicked",m}(X||{});function P(m){const C=new Uint8Array(m);return btoa(String.fromCharCode(...C)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function pe(m){const U=(m+"=".repeat((4-m.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),de=atob(U),je=new Uint8Array(de.length);for(let st=0;st<de.length;++st)je[st]=de.charCodeAt(st);return je}const kt="fcm_token_details_db",_n=5,Ki="fcm_token_object_Store";function qi(){return qi=(0,B.Z)(function*(m){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(st=>st.name).includes(kt))return null;let C=null;return(yield Wr(kt,_n,{upgrade:(de=(0,B.Z)(function*(je,st,wt,qt){var zt;if(st<2||!je.objectStoreNames.contains(Ki))return;const an=qt.objectStore(Ki),Vn=yield an.index("fcmSenderId").get(m);if(yield an.clear(),Vn)if(2===st){const zn=Vn;if(!zn.auth||!zn.p256dh||!zn.endpoint)return;C={token:zn.fcmToken,createTime:null!==(zt=zn.createTime)&&void 0!==zt?zt:Date.now(),subscriptionOptions:{auth:zn.auth,p256dh:zn.p256dh,endpoint:zn.endpoint,swScope:zn.swScope,vapidKey:"string"==typeof zn.vapidKey?zn.vapidKey:P(zn.vapidKey)}}}else if(3===st){const zn=Vn;C={token:zn.fcmToken,createTime:zn.createTime,subscriptionOptions:{auth:P(zn.auth),p256dh:P(zn.p256dh),endpoint:zn.endpoint,swScope:zn.swScope,vapidKey:P(zn.vapidKey)}}}else if(4===st){const zn=Vn;C={token:zn.fcmToken,createTime:zn.createTime,subscriptionOptions:{auth:P(zn.auth),p256dh:P(zn.p256dh),endpoint:zn.endpoint,swScope:zn.swScope,vapidKey:P(zn.vapidKey)}}}}),function(st,wt,qt,zt){return de.apply(this,arguments)})})).close(),yield Qs(kt),yield Qs("fcm_vapid_details_db"),yield Qs("undefined"),function Hi(m){if(!m||!m.subscriptionOptions)return!1;const{subscriptionOptions:C}=m;return"number"==typeof m.createTime&&m.createTime>0&&"string"==typeof m.token&&m.token.length>0&&"string"==typeof C.auth&&C.auth.length>0&&"string"==typeof C.p256dh&&C.p256dh.length>0&&"string"==typeof C.endpoint&&C.endpoint.length>0&&"string"==typeof C.swScope&&C.swScope.length>0&&"string"==typeof C.vapidKey&&C.vapidKey.length>0}(C)?C:null;var de}),qi.apply(this,arguments)}const yr="firebase-messaging-database",Ls=1,hr="firebase-messaging-store";let Ri=null;function Ds(){return Ri||(Ri=Wr(yr,Ls,{upgrade:(m,C)=>{0===C&&m.createObjectStore(hr)}})),Ri}function $i(m){return Yr.apply(this,arguments)}function Yr(){return Yr=(0,B.Z)(function*(m){const C=eo(m),de=yield(yield Ds()).transaction(hr).objectStore(hr).get(C);if(de)return de;{const je=yield function Ir(m){return qi.apply(this,arguments)}(m.appConfig.senderId);if(je)return yield co(m,je),je}}),Yr.apply(this,arguments)}function co(m,C){return Xs.apply(this,arguments)}function Xs(){return(Xs=(0,B.Z)(function*(m,C){const U=eo(m),je=(yield Ds()).transaction(hr,"readwrite");return yield je.objectStore(hr).put(C,U),yield je.done,C})).apply(this,arguments)}function ts(){return(ts=(0,B.Z)(function*(m){const C=eo(m),de=(yield Ds()).transaction(hr,"readwrite");yield de.objectStore(hr).delete(C),yield de.done})).apply(this,arguments)}function eo({appConfig:m}){return m.appId}const hi=new N.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function ia(m,C){return Bs.apply(this,arguments)}function Bs(){return(Bs=(0,B.Z)(function*(m,C){const U=yield Vs(m),de=uo(C),je={method:"POST",headers:U,body:JSON.stringify(de)};let st;try{st=yield(yield fetch(to(m.appConfig),je)).json()}catch(wt){throw hi.create("token-subscribe-failed",{errorInfo:wt?.toString()})}if(st.error)throw hi.create("token-subscribe-failed",{errorInfo:st.error.message});if(!st.token)throw hi.create("token-subscribe-no-token");return st.token})).apply(this,arguments)}function wr(){return(wr=(0,B.Z)(function*(m,C){const U=yield Vs(m),de=uo(C.subscriptionOptions),je={method:"PATCH",headers:U,body:JSON.stringify(de)};let st;try{st=yield(yield fetch(`${to(m.appConfig)}/${C.token}`,je)).json()}catch(wt){throw hi.create("token-update-failed",{errorInfo:wt?.toString()})}if(st.error)throw hi.create("token-update-failed",{errorInfo:st.error.message});if(!st.token)throw hi.create("token-update-no-token");return st.token})).apply(this,arguments)}function br(m,C){return ns.apply(this,arguments)}function ns(){return(ns=(0,B.Z)(function*(m,C){const de={method:"DELETE",headers:yield Vs(m)};try{const st=yield(yield fetch(`${to(m.appConfig)}/${C}`,de)).json();if(st.error)throw hi.create("token-unsubscribe-failed",{errorInfo:st.error.message})}catch(je){throw hi.create("token-unsubscribe-failed",{errorInfo:je?.toString()})}})).apply(this,arguments)}function to({projectId:m}){return`${ta}/projects/${m}/registrations`}function Vs(m){return xs.apply(this,arguments)}function xs(){return(xs=(0,B.Z)(function*({appConfig:m,installations:C}){const U=yield C.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":m.apiKey,"x-goog-firebase-installations-auth":`FIS ${U}`})})).apply(this,arguments)}function uo({p256dh:m,auth:C,endpoint:U,vapidKey:de}){const je={web:{endpoint:U,auth:C,p256dh:m}};return de!==Do&&(je.web.applicationPubKey=de),je}const fo=6048e5;function ra(){return ra=(0,B.Z)(function*(m){const C=yield function ms(m,C){return ro.apply(this,arguments)}(m.swRegistration,m.vapidKey),U={vapidKey:m.vapidKey,swScope:m.swRegistration.scope,endpoint:C.endpoint,auth:P(C.getKey("auth")),p256dh:P(C.getKey("p256dh"))},de=yield $i(m.firebaseDependencies);if(de){if(function h(m,C){return C.vapidKey===m.vapidKey&&C.endpoint===m.endpoint&&C.auth===m.auth&&C.p256dh===m.p256dh}(de.subscriptionOptions,U))return Date.now()>=de.createTime+fo?function Uo(m,C){return no.apply(this,arguments)}(m,{token:de.token,createTime:Date.now(),subscriptionOptions:U}):de.token;try{yield br(m.firebaseDependencies,de.token)}catch(je){console.warn(je)}return io(m.firebaseDependencies,U)}return io(m.firebaseDependencies,U)}),ra.apply(this,arguments)}function jr(){return jr=(0,B.Z)(function*(m){const C=yield $i(m.firebaseDependencies);C&&(yield br(m.firebaseDependencies,C.token),yield function Js(m){return ts.apply(this,arguments)}(m.firebaseDependencies));const U=yield m.swRegistration.pushManager.getSubscription();return!U||U.unsubscribe()}),jr.apply(this,arguments)}function no(){return no=(0,B.Z)(function*(m,C){try{const U=yield function ps(m,C){return wr.apply(this,arguments)}(m.firebaseDependencies,C),de=Object.assign(Object.assign({},C),{token:U,createTime:Date.now()});return yield co(m.firebaseDependencies,de),U}catch(U){throw yield function ho(m){return jr.apply(this,arguments)}(m),U}}),no.apply(this,arguments)}function io(m,C){return jo.apply(this,arguments)}function jo(){return(jo=(0,B.Z)(function*(m,C){const de={token:yield ia(m,C),createTime:Date.now(),subscriptionOptions:C};return yield co(m,de),de.token})).apply(this,arguments)}function ro(){return(ro=(0,B.Z)(function*(m,C){return(yield m.pushManager.getSubscription())||m.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:pe(C)})})).apply(this,arguments)}function I(m){const C={from:m.from,collapseKey:m.collapse_key,messageId:m.fcmMessageId};return function ue(m,C){if(!C.notification)return;m.notification={};const U=C.notification.title;U&&(m.notification.title=U);const de=C.notification.body;de&&(m.notification.body=de);const je=C.notification.image;je&&(m.notification.image=je);const st=C.notification.icon;st&&(m.notification.icon=st)}(C,m),function x(m,C){C.data&&(m.data=C.data)}(C,m),function re(m,C){var U,de,je,st,wt;if(!(C.fcmOptions||null!==(U=C.notification)&&void 0!==U&&U.click_action))return;m.fcmOptions={};const qt=null!==(je=null===(de=C.fcmOptions)||void 0===de?void 0:de.link)&&void 0!==je?je:null===(st=C.notification)||void 0===st?void 0:st.click_action;qt&&(m.fcmOptions.link=qt);const zt=null===(wt=C.fcmOptions)||void 0===wt?void 0:wt.analytics_label;zt&&(m.fcmOptions.analyticsLabel=zt)}(C,m),C}function Et(m,C){const U=[];for(let de=0;de<m.length;de++)U.push(m.charAt(de)),de<C.length&&U.push(C.charAt(de));return U.join("")}function Ln(m){return hi.create("missing-app-config-values",{valueName:m})}Et("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Et("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class ei{constructor(C,U,de){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const je=function jt(m){if(!m||!m.options)throw Ln("App Configuration Object");if(!m.name)throw Ln("App Name");const C=["projectId","apiKey","appId","messagingSenderId"],{options:U}=m;for(const de of C)if(!U[de])throw Ln(de);return{appName:m.name,projectId:U.projectId,apiKey:U.apiKey,appId:U.appId,senderId:U.messagingSenderId}}(C);this.firebaseDependencies={app:C,appConfig:je,installations:U,analyticsProvider:de}}_delete(){return Promise.resolve()}}function Nn(){return(Nn=(0,B.Z)(function*(m){try{m.swRegistration=yield navigator.serviceWorker.register(Co,{scope:Bo}),m.swRegistration.update().catch(()=>{})}catch(C){throw hi.create("failed-service-worker-registration",{browserErrorMessage:C?.message})}})).apply(this,arguments)}function ii(){return(ii=(0,B.Z)(function*(m,C){if(!C&&!m.swRegistration&&(yield function Qn(m){return Nn.apply(this,arguments)}(m)),C||!m.swRegistration){if(!(C instanceof ServiceWorkerRegistration))throw hi.create("invalid-sw-registration");m.swRegistration=C}})).apply(this,arguments)}function xr(){return(xr=(0,B.Z)(function*(m,C){C?m.vapidKey=C:m.vapidKey||(m.vapidKey=Do)})).apply(this,arguments)}function Ar(){return Ar=(0,B.Z)(function*(m,C){if(!navigator)throw hi.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw hi.create("permission-blocked");return yield function Bi(m,C){return xr.apply(this,arguments)}(m,C?.vapidKey),yield function Si(m,C){return ii.apply(this,arguments)}(m,C?.serviceWorkerRegistration),function wo(m){return ra.apply(this,arguments)}(m)}),Ar.apply(this,arguments)}function Zi(){return(Zi=(0,B.Z)(function*(m,C,U){const de=function is(m){switch(m){case X.NOTIFICATION_CLICKED:return"notification_open";case X.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(C);(yield m.firebaseDependencies.analyticsProvider.get()).logEvent(de,{message_id:U[Ei],message_name:U[na],message_time:U[Vo],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function $n(){return $n=(0,B.Z)(function*(m,C){const U=C.data;if(!U.isFirebaseMessaging)return;m.onMessageHandler&&U.messageType===X.PUSH_RECEIVED&&("function"==typeof m.onMessageHandler?m.onMessageHandler(I(U)):m.onMessageHandler.next(I(U)));const de=U.data;(function ke(m){return"object"==typeof m&&!!m&&Ei in m})(de)&&"1"===de["google.c.a.e"]&&(yield function Or(m,C,U){return Zi.apply(this,arguments)}(m,U.messageType,de))}),$n.apply(this,arguments)}const xo="@firebase/messaging",mr=m=>{const C=new ei(m.getProvider("app").getImmediate(),m.getProvider("installations-internal").getImmediate(),m.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",U=>function gs(m,C){return $n.apply(this,arguments)}(C,U)),C},_a=m=>{const C=m.getProvider("messaging").getImmediate();return{getToken:de=>function pr(m,C){return Ar.apply(this,arguments)}(C,de)}};function As(){return zi.apply(this,arguments)}function zi(){return(zi=(0,B.Z)(function*(){try{yield(0,N.eu)()}catch{return!1}return typeof window<"u"&&(0,N.hl)()&&(0,N.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}!function sa(){(0,$._registerComponent)(new ee.wA("messaging",mr,"PUBLIC")),(0,$._registerComponent)(new ee.wA("messaging-internal",_a,"PRIVATE")),(0,$.registerVersion)(xo,"0.12.4"),(0,$.registerVersion)(xo,"0.12.4","esm2017")}();const mo="analytics",Al="firebase_id",bn="origin",Ho=6e4,ba="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",go="https://www.googletagmanager.com/gtag/js",tr=new te.Yd("@firebase/analytics"),gr=new N.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function Ts(m){if(!m.startsWith(go)){const C=gr.create("invalid-gtag-resource",{gtagURL:m});return tr.warn(C.message),""}return m}function So(m){return Promise.all(m.map(C=>C.catch(U=>U)))}function Pt(){return(Pt=(0,B.Z)(function*(m,C,U,de,je,st){const wt=de[je];try{if(wt)yield C[wt];else{const zt=(yield So(U)).find(an=>an.measurementId===je);zt&&(yield C[zt.appId])}}catch(qt){tr.error(qt)}m("config",je,st)})).apply(this,arguments)}function Us(){return(Us=(0,B.Z)(function*(m,C,U,de,je){try{let st=[];if(je&&je.send_to){let wt=je.send_to;Array.isArray(wt)||(wt=[wt]);const qt=yield So(U);for(const zt of wt){const an=qt.find(zn=>zn.measurementId===zt),Vn=an&&C[an.appId];if(!Vn){st=[];break}st.push(Vn)}}0===st.length&&(st=Object.values(C)),yield Promise.all(st),m("event",de,je||{})}catch(st){tr.error(st)}})).apply(this,arguments)}const _o=30,Mo=new class zo{constructor(C={},U=1e3){this.throttleMetadata=C,this.intervalMillis=U}getThrottleMetadata(C){return this.throttleMetadata[C]}setThrottleMetadata(C,U){this.throttleMetadata[C]=U}deleteThrottleMetadata(C){delete this.throttleMetadata[C]}};function ua(m){return new Headers({Accept:"application/json","x-goog-api-key":m})}function Go(){return(Go=(0,B.Z)(function*(m){var C;const{appId:U,apiKey:de}=m,je={method:"GET",headers:ua(de)},st=ba.replace("{app-id}",U),wt=yield fetch(st,je);if(200!==wt.status&&304!==wt.status){let qt="";try{const zt=yield wt.json();null!==(C=zt.error)&&void 0!==C&&C.message&&(qt=zt.error.message)}catch{}throw gr.create("config-fetch-failed",{httpStatus:wt.status,responseMessage:qt})}return wt.json()})).apply(this,arguments)}function os(){return(os=(0,B.Z)(function*(m,C=Mo,U){const{appId:de,apiKey:je,measurementId:st}=m.options;if(!de)throw gr.create("no-app-id");if(!je){if(st)return{measurementId:st,appId:de};throw gr.create("no-api-key")}const wt=C.getThrottleMetadata(de)||{backoffCount:0,throttleEndTimeMillis:Date.now()},qt=new v;return setTimeout((0,B.Z)(function*(){qt.abort()}),void 0!==U?U:Ho),Da({appId:de,apiKey:je,measurementId:st},wt,qt,C)})).apply(this,arguments)}function Da(m,C,U){return js.apply(this,arguments)}function js(){return js=(0,B.Z)(function*(m,{throttleEndTimeMillis:C,backoffCount:U},de,je=Mo){var st;const{appId:wt,measurementId:qt}=m;try{yield function Ss(m,C){return new Promise((U,de)=>{const je=Math.max(C-Date.now(),0),st=setTimeout(U,je);m.addEventListener(()=>{clearTimeout(st),de(gr.create("fetch-throttle",{throttleEndTimeMillis:C}))})})}(de,C)}catch(zt){if(qt)return tr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${qt} provided in the "measurementId" field in the local Firebase config. [${zt?.message}]`),{appId:wt,measurementId:qt};throw zt}try{const zt=yield function Ua(m){return Go.apply(this,arguments)}(m);return je.deleteThrottleMetadata(wt),zt}catch(zt){const an=zt;if(!function f(m){if(!(m instanceof N.ZR&&m.customData))return!1;const C=Number(m.customData.httpStatus);return 429===C||500===C||503===C||504===C}(an)){if(je.deleteThrottleMetadata(wt),qt)return tr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${qt} provided in the "measurementId" field in the local Firebase config. [${an?.message}]`),{appId:wt,measurementId:qt};throw zt}const Vn=503===Number(null===(st=an?.customData)||void 0===st?void 0:st.httpStatus)?(0,N.$s)(U,je.intervalMillis,_o):(0,N.$s)(U,je.intervalMillis),zn={throttleEndTimeMillis:Date.now()+Vn,backoffCount:U+1};return je.setThrottleMetadata(wt,zn),tr.debug(`Calling attemptFetch again in ${Vn} millis`),Da(m,zn,de,je)}}),js.apply(this,arguments)}class v{constructor(){this.listeners=[]}addEventListener(C){this.listeners.push(C)}abort(){this.listeners.forEach(C=>C())}}let D,w;function T(){return(T=(0,B.Z)(function*(m,C,U,de,je){if(je&&je.global)m("event",U,de);else{const st=yield C;m("event",U,Object.assign(Object.assign({},de),{send_to:st}))}})).apply(this,arguments)}function it(){return(it=(0,B.Z)(function*(){if(!(0,N.hl)())return tr.warn(gr.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,N.eu)()}catch(m){return tr.warn(gr.create("indexeddb-unavailable",{errorInfo:m?.toString()}).message),!1}return!0})).apply(this,arguments)}function Wt(){return Wt=(0,B.Z)(function*(m,C,U,de,je,st,wt){var qt;const zt=function Tr(m){return os.apply(this,arguments)}(m);zt.then(kr=>{U[kr.measurementId]=kr.appId,m.options.measurementId&&kr.measurementId!==m.options.measurementId&&tr.warn(`The measurement ID in the local Firebase config (${m.options.measurementId}) does not match the measurement ID fetched from the server (${kr.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(kr=>tr.error(kr)),C.push(zt);const an=function Ee(){return it.apply(this,arguments)}().then(kr=>{if(kr)return de.getId()}),[Vn,zn]=yield Promise.all([zt,an]);(function ca(m){const C=window.document.getElementsByTagName("script");for(const U of Object.values(C))if(U.src&&U.src.includes(go)&&U.src.includes(m))return U;return null})(st)||function Va(m,C){const U=function Ea(m,C){let U;return window.trustedTypes&&(U=window.trustedTypes.createPolicy(m,C)),U}("firebase-js-sdk-policy",{createScriptURL:Ts}),de=document.createElement("script"),je=`${go}?l=${m}&id=${C}`;de.src=U?U?.createScriptURL(je):je,de.async=!0,document.head.appendChild(de)}(st,Vn.measurementId),w&&(je("consent","default",w),function G(m){w=m}(void 0)),je("js",new Date);const Fr=null!==(qt=wt?.config)&&void 0!==qt?qt:{};return Fr[bn]="firebase",Fr.update=!0,null!=zn&&(Fr[Al]=zn),je("config",Vn.measurementId,Fr),D&&(je("set",D),function be(m){D=m}(void 0)),Vn.measurementId}),Wt.apply(this,arguments)}class Kt{constructor(C){this.app=C}_delete(){return delete Sn[this.app.options.appId],Promise.resolve()}}let Sn={},Bn=[];const hn={};let Ci,Di,wn="dataLayer",nr=!1;function as(m,C,U){!function Hs(){const m=[];if((0,N.ru)()&&m.push("This is a browser extension environment."),(0,N.zI)()||m.push("Cookies are not available."),m.length>0){const C=m.map((de,je)=>`(${je+1}) ${de}`).join(" "),U=gr.create("invalid-analytics-context",{errorInfo:C});tr.warn(U.message)}}();const de=m.options.appId;if(!de)throw gr.create("no-app-id");if(!m.options.apiKey){if(!m.options.measurementId)throw gr.create("no-api-key");tr.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${m.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=Sn[de])throw gr.create("already-exists",{id:de});if(!nr){!function $o(m){let C=[];Array.isArray(window[m])?C=window[m]:window[m]=C}(wn);const{wrappedGtag:st,gtagCore:wt}=function Gi(m,C,U,de,je){let st=function(...wt){window[de].push(arguments)};return window[je]&&"function"==typeof window[je]&&(st=window[je]),window[je]=function la(m,C,U,de){function st(){return st=(0,B.Z)(function*(wt,...qt){try{if("event"===wt){const[zt,an]=qt;yield function qn(m,C,U,de,je){return Us.apply(this,arguments)}(m,C,U,zt,an)}else if("config"===wt){const[zt,an]=qt;yield function Ca(m,C,U,de,je,st){return Pt.apply(this,arguments)}(m,C,U,de,zt,an)}else if("consent"===wt){const[zt]=qt;m("consent","update",zt)}else if("get"===wt){const[zt,an,Vn]=qt;m("get",zt,an,Vn)}else if("set"===wt){const[zt]=qt;m("set",zt)}else m(wt,...qt)}catch(zt){tr.error(zt)}}),st.apply(this,arguments)}return function je(wt){return st.apply(this,arguments)}}(st,m,C,U),{gtagCore:st,wrappedGtag:window[je]}}(Sn,Bn,hn,wn,"gtag");Di=st,Ci=wt,nr=!0}return Sn[de]=function ft(m,C,U,de,je,st,wt){return Wt.apply(this,arguments)}(m,Bn,hn,C,Ci,wn,U),new Kt(m)}function $s(){return Sr.apply(this,arguments)}function Sr(){return(Sr=(0,B.Z)(function*(){if((0,N.ru)()||!(0,N.zI)()||!(0,N.hl)())return!1;try{return yield(0,N.eu)()}catch{return!1}})).apply(this,arguments)}const Xi="@firebase/analytics";!function Kr(){(0,$._registerComponent)(new ee.wA(mo,(C,{options:U})=>as(C.getProvider("app").getImmediate(),C.getProvider("installations-internal").getImmediate(),U),"PUBLIC")),(0,$._registerComponent)(new ee.wA("analytics-internal",function m(C){try{const U=C.getProvider(mo).getImmediate();return{logEvent:(de,je,st)=>function An(m,C,U,de){m=(0,N.m9)(m),function _(m,C,U,de,je){return T.apply(this,arguments)}(Di,Sn[m.app.options.appId],C,U,de).catch(je=>tr.error(je))}(U,de,je,st)}}catch(U){throw gr.create("interop-component-reg-failed",{reason:U})}},"PRIVATE")),(0,$.registerVersion)(Xi,"0.10.0"),(0,$.registerVersion)(Xi,"0.10.0","esm2017")}();var ls=g(1954),Yo=g(2631);const Er=new class hc extends Yo.v{}(class Fi extends ls.o{constructor(C,U){super(C,U),this.scheduler=C,this.work=U}schedule(C,U=0){return U>0?super.schedule(C,U):(this.delay=U,this.state=C,this.scheduler.flush(this),this)}execute(C,U){return U>0||this.closed?super.execute(C,U):this._execute(C,U)}requestAsyncId(C,U,de=0){return null!=de&&de>0||null==de&&this.delay>0?super.requestAsyncId(C,U,de):(C.flush(this),0)}});var cs=g(6321),Zr=g(9397),xa=g(5137),ja=g(3093);const Tl=new r.GfV("7.6.1"),Ha="__angularfire_symbol__analyticsIsSupportedValue",fa="__angularfire_symbol__analyticsIsSupported",Aa="__angularfire_symbol__remoteConfigIsSupportedValue",Sl="__angularfire_symbol__remoteConfigIsSupported",$a="__angularfire_symbol__messagingIsSupportedValue",za="__angularfire_symbol__messagingIsSupported";function Ko(m,C,U){if(C){if(1===C.length)return C[0];const st=C.filter(wt=>wt.app===U);if(1===st.length)return st[0]}return U.container.getProvider(m).getImmediate({optional:!0})}globalThis[fa]||(globalThis[fa]=$s().then(m=>globalThis[Ha]=m).catch(()=>globalThis[Ha]=!1)),globalThis[za]||(globalThis[za]=As().then(m=>globalThis[$a]=m).catch(()=>globalThis[$a]=!1)),globalThis[Sl]||(globalThis[Sl]=yn().then(m=>globalThis[Aa]=m).catch(()=>globalThis[Aa]=!1));const Tu=(m,C)=>{const U=C?[C]:(0,u.C6)(),de=[];return U.forEach(je=>{je.container.getProvider(m).instances.forEach(wt=>{de.includes(wt)||de.push(wt)})}),de};function Zo(){}class Il{constructor(C,U=Er){this.zone=C,this.delegate=U}now(){return this.delegate.now()}schedule(C,U,de){const je=this.zone;return this.delegate.schedule(function(wt){je.runGuarded(()=>{C.apply(this,[wt])})},U,de)}}class Ta{constructor(C){this.zone=C,this.task=null}call(C,U){const de=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Zo,{},Zo,Zo)),U.pipe((0,Zr.b)({next:de,complete:de,error:de})).subscribe(C).add(de)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let Su=(()=>{class m{constructor(U){this.ngZone=U,this.outsideAngular=U.runOutsideAngular(()=>new Il(Zone.current)),this.insideAngular=U.run(()=>new Il(Zone.current,cs.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return m.\u0275fac=function(U){return new(U||m)(r.LFG(r.R0b))},m.\u0275prov=r.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function or(){const m=globalThis.\u0275AngularFireScheduler;if(!m)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return m}function Ol(m){return or(),function Pl(m){return function(U){return(U=U.lift(new Ta(m.ngZone))).pipe((0,xa.R)(m.outsideAngular),(0,ja.Q)(m.insideAngular))}}(or())(m)}},9058:(It,Me,g)=>{g.d(Me,{$s:()=>On,BH:()=>he,L:()=>ne,LL:()=>ht,Pz:()=>Te,UG:()=>yt,US:()=>ee,ZB:()=>me,ZR:()=>Je,aH:()=>J,b$:()=>Xt,eu:()=>Ve,hl:()=>Le,jU:()=>Ut,m9:()=>ai,ne:()=>Ot,pd:()=>dt,r3:()=>Ht,ru:()=>Gt,tV:()=>H,uI:()=>qe,vZ:()=>pt,w1:()=>cn,xO:()=>Ce,xb:()=>Wn,z$:()=>Ke,zI:()=>$e,zd:()=>Re});const $=function(xe){const W=[];let O=0;for(let V=0;V<xe.length;V++){let M=xe.charCodeAt(V);M<128?W[O++]=M:M<2048?(W[O++]=M>>6|192,W[O++]=63&M|128):55296==(64512&M)&&V+1<xe.length&&56320==(64512&xe.charCodeAt(V+1))?(M=65536+((1023&M)<<10)+(1023&xe.charCodeAt(++V)),W[O++]=M>>18|240,W[O++]=M>>12&63|128,W[O++]=M>>6&63|128,W[O++]=63&M|128):(W[O++]=M>>12|224,W[O++]=M>>6&63|128,W[O++]=63&M|128)}return W},ee={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(xe,W){if(!Array.isArray(xe))throw Error("encodeByteArray takes an array as a parameter");this.init_();const O=W?this.byteToCharMapWebSafe_:this.byteToCharMap_,V=[];for(let M=0;M<xe.length;M+=3){const j=xe[M],ye=M+1<xe.length,z=ye?xe[M+1]:0,ie=M+2<xe.length,se=ie?xe[M+2]:0;let ae=(15&z)<<2|se>>6,S=63&se;ie||(S=64,ye||(ae=64)),V.push(O[j>>2],O[(3&j)<<4|z>>4],O[ae],O[S])}return V.join("")},encodeString(xe,W){return this.HAS_NATIVE_SUPPORT&&!W?btoa(xe):this.encodeByteArray($(xe),W)},decodeString(xe,W){return this.HAS_NATIVE_SUPPORT&&!W?atob(xe):function(xe){const W=[];let O=0,V=0;for(;O<xe.length;){const M=xe[O++];if(M<128)W[V++]=String.fromCharCode(M);else if(M>191&&M<224){const j=xe[O++];W[V++]=String.fromCharCode((31&M)<<6|63&j)}else if(M>239&&M<365){const ie=((7&M)<<18|(63&xe[O++])<<12|(63&xe[O++])<<6|63&xe[O++])-65536;W[V++]=String.fromCharCode(55296+(ie>>10)),W[V++]=String.fromCharCode(56320+(1023&ie))}else{const j=xe[O++],ye=xe[O++];W[V++]=String.fromCharCode((15&M)<<12|(63&j)<<6|63&ye)}}return W.join("")}(this.decodeStringToByteArray(xe,W))},decodeStringToByteArray(xe,W){this.init_();const O=W?this.charToByteMapWebSafe_:this.charToByteMap_,V=[];for(let M=0;M<xe.length;){const j=O[xe.charAt(M++)],z=M<xe.length?O[xe.charAt(M)]:0;++M;const se=M<xe.length?O[xe.charAt(M)]:64;++M;const k=M<xe.length?O[xe.charAt(M)]:64;if(++M,null==j||null==z||null==se||null==k)throw new te;V.push(j<<2|z>>4),64!==se&&(V.push(z<<4&240|se>>2),64!==k&&V.push(se<<6&192|k))}return V},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let xe=0;xe<this.ENCODED_VALS.length;xe++)this.byteToCharMap_[xe]=this.ENCODED_VALS.charAt(xe),this.charToByteMap_[this.byteToCharMap_[xe]]=xe,this.byteToCharMapWebSafe_[xe]=this.ENCODED_VALS_WEBSAFE.charAt(xe),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[xe]]=xe,xe>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(xe)]=xe,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(xe)]=xe)}}};class te extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const ne=function(xe){return function(xe){const W=$(xe);return ee.encodeByteArray(W,!0)}(xe).replace(/\./g,"")},H=function(xe){try{return ee.decodeString(xe,!0)}catch(W){console.error("base64Decode failed: ",W)}return null};function me(xe,W){if(!(W instanceof Object))return W;switch(W.constructor){case Date:return new Date(W.getTime());case Object:void 0===xe&&(xe={});break;case Array:xe=[];break;default:return W}for(const O in W)!W.hasOwnProperty(O)||!Ie(O)||(xe[O]=me(xe[O],W[O]));return xe}function Ie(xe){return"__proto__"!==xe}const Xe=()=>{try{return function Ne(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const xe=process.env.__FIREBASE_DEFAULTS__;return xe?JSON.parse(xe):void 0})()||(()=>{if(typeof document>"u")return;let xe;try{xe=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const W=xe&&H(xe[1]);return W&&JSON.parse(W)})()}catch(xe){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${xe}`)}},J=()=>{var xe;return null===(xe=Xe())||void 0===xe?void 0:xe.config},Te=xe=>{var W;return null===(W=Xe())||void 0===W?void 0:W[`_${xe}`]};class he{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((W,O)=>{this.resolve=W,this.reject=O})}wrapCallback(W){return(O,V)=>{O?this.reject(O):this.resolve(V),"function"==typeof W&&(this.promise.catch(()=>{}),1===W.length?W(O):W(O,V))}}}function Ke(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function qe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ke())}function yt(){var xe;const W=null===(xe=Xe())||void 0===xe?void 0:xe.forceEnvironment;if("node"===W)return!0;if("browser"===W)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function Ut(){return"object"==typeof self&&self.self===self}function Gt(){const xe="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof xe&&void 0!==xe.id}function Xt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function cn(){const xe=Ke();return xe.indexOf("MSIE ")>=0||xe.indexOf("Trident/")>=0}function Le(){try{return"object"==typeof indexedDB}catch{return!1}}function Ve(){return new Promise((xe,W)=>{try{let O=!0;const V="validate-browser-context-for-indexeddb-analytics-module",M=self.indexedDB.open(V);M.onsuccess=()=>{M.result.close(),O||self.indexedDB.deleteDatabase(V),xe(!0)},M.onupgradeneeded=()=>{O=!1},M.onerror=()=>{var j;W((null===(j=M.error)||void 0===j?void 0:j.message)||"")}}catch(O){W(O)}})}function $e(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class Je extends Error{constructor(W,O,V){super(O),this.code=W,this.customData=V,this.name="FirebaseError",Object.setPrototypeOf(this,Je.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ht.prototype.create)}}class ht{constructor(W,O,V){this.service=W,this.serviceName=O,this.errors=V}create(W,...O){const V=O[0]||{},M=`${this.service}/${W}`,j=this.errors[W],ye=j?function Dt(xe,W){return xe.replace(Ue,(O,V)=>{const M=W[V];return null!=M?String(M):`<${V}?>`})}(j,V):"Error";return new Je(M,`${this.serviceName}: ${ye} (${M}).`,V)}}const Ue=/\{\$([^}]+)}/g;function Ht(xe,W){return Object.prototype.hasOwnProperty.call(xe,W)}function Wn(xe){for(const W in xe)if(Object.prototype.hasOwnProperty.call(xe,W))return!1;return!0}function pt(xe,W){if(xe===W)return!0;const O=Object.keys(xe),V=Object.keys(W);for(const M of O){if(!V.includes(M))return!1;const j=xe[M],ye=W[M];if(Q(j)&&Q(ye)){if(!pt(j,ye))return!1}else if(j!==ye)return!1}for(const M of V)if(!O.includes(M))return!1;return!0}function Q(xe){return null!==xe&&"object"==typeof xe}function Ce(xe){const W=[];for(const[O,V]of Object.entries(xe))Array.isArray(V)?V.forEach(M=>{W.push(encodeURIComponent(O)+"="+encodeURIComponent(M))}):W.push(encodeURIComponent(O)+"="+encodeURIComponent(V));return W.length?"&"+W.join("&"):""}function Re(xe){const W={};return xe.replace(/^\?/,"").split("&").forEach(V=>{if(V){const[M,j]=V.split("=");W[decodeURIComponent(M)]=decodeURIComponent(j)}}),W}function dt(xe){const W=xe.indexOf("?");if(!W)return"";const O=xe.indexOf("#",W);return xe.substring(W,O>0?O:void 0)}function Ot(xe,W){const O=new Zt(xe,W);return O.subscribe.bind(O)}class Zt{constructor(W,O){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=O,this.task.then(()=>{W(this)}).catch(V=>{this.error(V)})}next(W){this.forEachObserver(O=>{O.next(W)})}error(W){this.forEachObserver(O=>{O.error(W)}),this.close(W)}complete(){this.forEachObserver(W=>{W.complete()}),this.close()}subscribe(W,O,V){let M;if(void 0===W&&void 0===O&&void 0===V)throw new Error("Missing Observer.");M=function He(xe,W){if("object"!=typeof xe||null===xe)return!1;for(const O of W)if(O in xe&&"function"==typeof xe[O])return!0;return!1}(W,["next","error","complete"])?W:{next:W,error:O,complete:V},void 0===M.next&&(M.next=vt),void 0===M.error&&(M.error=vt),void 0===M.complete&&(M.complete=vt);const j=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?M.error(this.finalError):M.complete()}catch{}}),this.observers.push(M),j}unsubscribeOne(W){void 0===this.observers||void 0===this.observers[W]||(delete this.observers[W],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(W){if(!this.finalized)for(let O=0;O<this.observers.length;O++)this.sendOne(O,W)}sendOne(W,O){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[W])try{O(this.observers[W])}catch(V){typeof console<"u"&&console.error&&console.error(V)}})}close(W){this.finalized||(this.finalized=!0,void 0!==W&&(this.finalError=W),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function vt(){}const dn=1e3,Cn=2,kn=144e5,ni=.5;function On(xe,W=dn,O=Cn){const V=W*Math.pow(O,xe),M=Math.round(ni*V*(Math.random()-.5)*2);return Math.min(kn,V+M)}function ai(xe){return xe&&xe._delegate?xe._delegate:xe}},9049:(It,Me,g)=>{g.d(Me,{$:()=>me});var r=g(5619),u=g(2459),B=g(7398),$=g(4664),N=g(9397),ee=g(3106),te=g(5879),fe=g(915),ne=g(9229),H=g(6897),q=g(631);let me=(()=>{var Ie;class Ne{constructor(we,Be,Xe,Ge){this._router=we,this.toaster=Be,this.afAuth=Xe,this.http=Ge,this._roles$=new r.X([])}login(we){this._router.navigate([we])}logout(){this._roles$.next([]),localStorage.removeItem("ExpireDate"),localStorage.removeItem("Roles"),this._router.navigate([""])}setRoles(we){localStorage.setItem("Roles",JSON.stringify(we)),this._roles$.next(we)}getRoles(){let we=this._roles$.getValue();if(0==we.length){let Be=localStorage.getItem("Roles");we=JSON.parse(Be),this._roles$.next(we)}return we}isAuthentication(){return null!=localStorage.getItem("Token")&&!this.isTokenExpired()}isTokenExpired(){return!(new Date(localStorage.getItem("ExpireDate")).getTime()-(new Date).getTime()>0)}saveLoginForm(we,Be){localStorage.setItem("Domain",we),localStorage.setItem("Username",Be)}getUsername(){return localStorage.getItem("Username")}getDomain(){return localStorage.getItem("Domain")}isLoginFormExist(){let we=this.getDomain(),Be=this.getUsername(),Xe=!1;return we&&Be&&(Xe=!0),Xe}loginWithGoogle(we,Be){we.preventDefault();const Xe=new ee.Z.auth.GoogleAuthProvider;return Xe.setCustomParameters({prompt:"select_account"}),(0,u.D)(this.afAuth.signInWithPopup(Xe)).pipe((0,B.U)(Ge=>Ge.credential),(0,B.U)(Ge=>Ge.idToken),(0,$.w)(Ge=>this.http.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:Ge,Host:Be}))),(0,N.b)(Ge=>{this.setLocalStorage(Ge,Be,null)}))}setLocalStorage(we,Be,Xe){localStorage.setItem("Token",we.access_token),localStorage.setItem("Authorization",JSON.stringify({Host:Be,username:Xe})),localStorage.setItem("Intercom",JSON.stringify(we.IntercomWidget))}}return(Ie=Ne).\u0275fac=function(we){return new(we||Ie)(te.LFG(fe.F0),te.LFG(ne._W),te.LFG(H.zQ),te.LFG(q.O))},Ie.\u0275prov=te.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ne})()},631:(It,Me,g)=>{g.d(Me,{O:()=>nt});var r=g(5592),u=g(9862),B=g(6321),$=g(93),N=g(9360),ee=g(4829),te=g(2306),fe=g(8251),ne=g(7103);const H=(0,te.d)(we=>function(Xe=null){we(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Xe});function q(we,Be){const{first:Xe,each:Ge,with:at=me,scheduler:J=Be??B.z,meta:Te=null}=(0,$.q)(we)?{first:we}:"number"==typeof we?{each:we}:we;if(null==Xe&&null==Ge)throw new TypeError("No timeout provided.");return(0,N.e)((he,_e)=>{let Ke,qe,yt=null,Ut=0;const Gt=Xt=>{qe=(0,ne.f)(_e,J,()=>{try{Ke.unsubscribe(),(0,ee.Xf)(at({meta:Te,lastValue:yt,seen:Ut})).subscribe(_e)}catch(on){_e.error(on)}},Xt)};Ke=he.subscribe((0,fe.x)(_e,Xt=>{qe?.unsubscribe(),Ut++,_e.next(yt=Xt),Ge>0&&Gt(Ge)},void 0,void 0,()=>{qe?.closed||qe?.unsubscribe(),yt=null})),!Ut&&Gt(null!=Xe?"number"==typeof Xe?Xe:+Xe-J.now():Ge)})}function me(we){throw new H(we)}var Ie=g(5879),Ne=g(9229);let nt=(()=>{var we;class Be{constructor(Ge,at){this.http=Ge,this.toastr=at}postFormData(Ge,at){return new r.y(J=>{let Te=localStorage.getItem("Token"),_e={headers:new u.WM({Authorization:"Bearer "+Te})};this.http.post(Ge,at,_e).pipe(q(1e5)).subscribe(Ke=>{J.next(Ke),J.complete()},Ke=>{if(200==Ke.status)J.next(Ke.error.text),J.complete();else{let qe=this.errorMessageHandling(Ke);this.toastr.error(qe.message,qe.header),J.error(Ke)}})})}postFormDataWithOutlet(Ge,at){return new r.y(J=>{let Te=localStorage.getItem("Token"),_e={headers:new u.WM({Authorization:"Bearer "+Te})};this.http.post(Ge,at,_e).pipe(q(1e5)).subscribe(Ke=>{J.next(Ke),J.complete()},Ke=>{if(200==Ke.status)J.next(Ke.error.text),J.complete();else{let qe=this.errorMessageHandling(Ke);this.toastr.error(qe.message,qe.header),J.error(Ke)}})})}post(Ge,at,J=1e5){return new r.y(Te=>{let he=localStorage.getItem("Token"),_e=new u.WM({"Content-Type":"application/json","Cache-Control":"no-cache","X-ClientId":"dealpos-app"});he&&(_e=new u.WM({"Content-Type":"application/json","Cache-Control":"no-cache","X-ClientId":"dealpos-app",Authorization:"Bearer "+he})),this.http.post(Ge,at,{headers:_e}).pipe(q(J)).subscribe(qe=>{Te.next(qe),Te.complete()},qe=>{if(200==qe.status)Te.next(qe.error.text),Te.complete();else{if(!this.unauthorizedErrorHandling(qe)){let Ut=this.errorMessageHandling(qe);this.toastr.error(""!=Ut.message?Ut.message:"An unknown error has occured!",Ut.header)}Te.error(qe)}})})}unauthorizedErrorHandling(Ge){let at=!1;return 401==Ge.status&&(this.toastr.error("We can't log you in because of authenctication error","Unauthorized"),at=!0),at}errorMessageHandling(Ge){let at="API Error",J="Exception Message";return Ge.error?(at="API Error - "+Ge.status,Ge.error.Message&&(J=Ge.error.Message)):Ge.message&&(at="API Error - "+Ge.name,J=Ge.message),{header:at,message:J}}}return(we=Be).\u0275fac=function(Ge){return new(Ge||we)(Ie.LFG(u.eN),Ie.LFG(Ne._W))},we.\u0275prov=Ie.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),Be})()},2262:(It,Me,g)=>{g.d(Me,{U:()=>B});var r=g(5619),u=g(5879);let B=(()=>{var $;class N{constructor(){this.store=new r.X({ID:null,billNumber:null,outletName:null})}getState(){return this.store.asObservable()}setState(te){this.store.next(te)}}return($=N).\u0275fac=function(te){return new(te||$)},$.\u0275prov=u.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),N})()},6013:(It,Me,g)=>{g.d(Me,{gT:()=>r});let r=(()=>{var ee;class te{static StringFormat(ne,...H){for(let q=0;q<H.length;q++)ne=ne.replace(`{${q}}`,H[q]);return ne}static parseJwt(ne){var q=ne.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),me=decodeURIComponent(atob(q).split("").map(function(Ie){return"%"+("00"+Ie.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(me)}static IsNotEmpty(ne){return""!=ne&&ne!=te.GuidEmpty&&null!=ne&&null!=ne}static IsEmpty(ne){return""==ne||null==ne||null==ne||ne==te.GuidEmpty}static FilterByID(ne,H){try{const q=ne.filter(me=>me.ID==H);if(q.length>0)return q[0]}catch{console.log("error filter")}return null}static DateOnly(ne){return ne?new Date(new Date(ne).toDateString()):new Date((new Date).toDateString())}}return(ee=te).GuidEmpty="00000000-0000-0000-0000-000000000000",ee.DecimalMinValue="-7.922816251426434e+28",ee.InputLockTimeSpan=500,ee.MinDate="0001-01-01T00:00:00",ee.MinTime="00:00:00",te})()},5141:(It,Me,g)=>{g.d(Me,{O:()=>u});var r=g(3082);class u{constructor(){this.title="New Modal",this.titleExtra="",this.okText="Ok (F2)",this.cancelText="Cancel",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=r.n.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.hideMoreButton=!1}}},4211:(It,Me,g)=>{g.d(Me,{M:()=>Xe});var r=g(5879),u=g(3082),B=g(5141),$=g(6814),N=g(7700);function ee(Ge,at){if(1&Ge){const J=r.EpF();r.TgZ(0,"div",8),r.NdJ("click",function(){r.CHM(J);const he=r.oxw();return r.KtG(he.onBack.emit())}),r.TgZ(1,"a",9),r._UZ(2,"i",10),r.qZA()()}}function te(Ge,at){if(1&Ge){const J=r.EpF();r.TgZ(0,"div")(1,"a",11),r.NdJ("click",function(){r.CHM(J);const he=r.oxw();return r.KtG(he.onCancel.emit())}),r._UZ(2,"i",12),r.qZA()()}}function fe(Ge,at){1&Ge&&r.Hsn(0,2,["*ngIf","more"])}function ne(Ge,at){if(1&Ge){const J=r.EpF();r.TgZ(0,"a",17),r.NdJ("click",function(){r.CHM(J);const he=r.oxw(2);return r.KtG(he.more=!he.more)}),r._uU(1,"More"),r.qZA()}}function H(Ge,at){if(1&Ge){const J=r.EpF();r.TgZ(0,"a",18),r.NdJ("click",function(){r.CHM(J);const he=r.oxw(2);return r.KtG(he.onCancel.emit())}),r._uU(1),r.qZA()}if(2&Ge){const J=r.oxw(2);r.xp6(1),r.hij(" ",null!=J.config&&J.config.cancelText?null==J.config?null:J.config.cancelText:"Cancel","")}}function q(Ge,at){if(1&Ge){const J=r.EpF();r.TgZ(0,"button",19),r.NdJ("click",function(){r.CHM(J);const he=r.oxw(2);return r.KtG(he.onOk.emit())}),r._uU(1),r.qZA()}if(2&Ge){const J=r.oxw(2);r.Q6J("disabled",!(null!=J.config&&J.config.validated)),r.xp6(1),r.hij(" ",null!=J.config&&J.config.okText?null==J.config?null:J.config.okText:"Ok (F2)"," ")}}function me(Ge,at){if(1&Ge&&(r.TgZ(0,"mat-dialog-actions",13),r.YNc(1,ne,2,0,"a",14),r.Hsn(2,3),r.YNc(3,H,2,1,"a",15),r.YNc(4,q,2,2,"button",16),r.qZA()),2&Ge){const J=r.oxw();r.xp6(1),r.Q6J("ngIf",!(null!=J.config&&J.config.hideMoreButton)),r.xp6(2),r.Q6J("ngIf",!(null!=J.config&&J.config.hideCancel)),r.xp6(1),r.Q6J("ngIf",!(null!=J.config&&J.config.hideOk))}}const Ie=[[["header"]],[["content"]],[["more-content"]],[["footer"]]],Ne=function(Ge,at){return{bodyScrollable:Ge,hideScrollbar:at}},nt=function(Ge){return{"mx-auto":Ge}},we=function(Ge){return{"show-footer":Ge}},Be=["header","content","more-content","footer"];let Xe=(()=>{var Ge;class at{constructor(){this.onOk=new r.vpe,this.onCancel=new r.vpe,this.onClose=new r.vpe,this.onBack=new r.vpe,this.onShowMore=new r.vpe,this.term="",this.background="",this.more=!1}ngOnInit(){switch(null==this.config&&(this.config=new B.O),this.config.headerType){case u.n.Success:this.background="bg-success";break;case u.n.Warning:case u.n.Info:this.background="bg-warning";break;case u.n.Error:this.background="bg-danger";break;default:this.background=""}}onKeyup(Te){this.config&&(this.config.disableKeyup||"F2"==Te.code&&this.onOk.emit())}}return(Ge=at).\u0275fac=function(Te){return new(Te||Ge)},Ge.\u0275cmp=r.Xpm({type:Ge,selectors:[["modal-material"]],inputs:{config:"config"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack",onShowMore:"onShowMore"},ngContentSelectors:Be,decls:12,vars:20,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"ngClass","keyup"],["mat-dialog-title",""],["class","back-button position-absolute pointer",3,"click",4,"ngIf"],[1,"d-flex","flex-row","w-100","justify-content-start",3,"ngClass"],[1,"fw-normal"],[4,"ngIf"],[1,"modal-body","w-100",3,"ngClass"],["style","margin-top: 28px;\n margin-bottom: 0;\n padding-bottom: 0 !important;","class","w-100 py-7 border-top d-flex justify-content-end",4,"ngIf"],[1,"back-button","position-absolute","pointer",3,"click"],[1,"btn","back-button"],[1,"fas","fa-arrow-left"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fa","fa-times","fa-lg","text-primary"],[1,"w-100","py-7","border-top","d-flex","justify-content-end",2,"margin-top","28px","margin-bottom","0","padding-bottom","0 !important"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3",3,"click",4,"ngIf"],["class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3",3,"disabled","click",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"disabled","click"]],template:function(Te,he){1&Te&&(r.F$t(Ie),r.TgZ(0,"div",0),r.NdJ("keyup",function(Ke){return he.onKeyup(Ke)}),r.TgZ(1,"div",1),r.YNc(2,ee,3,0,"div",2),r.TgZ(3,"div",3)(4,"h4",4),r._uU(5),r.qZA(),r.Hsn(6),r.qZA(),r.YNc(7,te,3,0,"div",5),r.qZA(),r.TgZ(8,"mat-dialog-content",6),r.Hsn(9,1),r.YNc(10,fe,1,0,"ng-content",5),r.qZA(),r.YNc(11,me,5,3,"mat-dialog-actions",7),r.qZA()),2&Te&&(r.Udp("width",null==he.config?null:he.config.customWidth),r.Q6J("ngClass",r.WLB(13,Ne,null==he.config?null:he.config.bodyScrollable,null==he.config?null:he.config.hideScrollbar)),r.xp6(1),r.Gre("d-flex w-100 justify-content-between modal-header position-relative ",he.background,""),r.xp6(1),r.Q6J("ngIf",null==he.config?null:he.config.eMoney),r.xp6(1),r.Q6J("ngClass",r.VKq(16,nt,null==he.config?null:he.config.eMoney)),r.xp6(2),r.Oqu(null==he.config?null:he.config.title),r.xp6(2),r.Q6J("ngIf",!(null!=he.config&&he.config.hideClose)),r.xp6(1),r.Q6J("ngClass",r.VKq(18,we,!(null!=he.config&&he.config.hideFooter))),r.xp6(2),r.Q6J("ngIf",he.more),r.xp6(1),r.Q6J("ngIf",!(null!=he.config&&he.config.hideFooter)))},dependencies:[$.mk,$.O5,N.uh,N.xY,N.H8],styles:["mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px;margin-bottom:0}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%], mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-3.8rem;padding-top:.2rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.mat-mdc-dialog-content[_ngcontent-%COMP%]{margin:auto;padding-bottom:12px}h4[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0;margin-top:7px}input[type=radio][_ngcontent-%COMP%]{border:0px;width:100%;height:2em}"]}),at})()},3082:(It,Me,g)=>{g.d(Me,{n:()=>r});var r=function(u){return u.Success="Success",u.Info="Info",u.Warning="Warning",u.Error="Error",u}(r||{})},4007:(It,Me,g)=>{g.d(Me,{m:()=>fe});var r=g(6814),u=g(95),B=g(4807),$=g(7700),N=g(2065),ee=g(5879);let te=(()=>{var ne;class H{}return(ne=H).\u0275fac=function(me){return new(me||ne)},ne.\u0275mod=ee.oAB({type:ne}),ne.\u0275inj=ee.cJS({imports:[r.ez]}),H})(),fe=(()=>{var ne;class H{}return(ne=H).\u0275fac=function(me){return new(me||ne)},ne.\u0275mod=ee.oAB({type:ne}),ne.\u0275inj=ee.cJS({imports:[r.ez,u.u5,B.A0,u.UX,$.Is,N.Bb,te,u.u5,B.A0,u.UX,$.Is,N.Bb,te]}),H})()},3788:(It,Me,g)=>{var r=g(6593),u=g(5879),B=g(6304),$=g(6897),N=g(6814),ee=g(95),te=g(6825);function ne(b){return new u.vHH(3e3,!1)}function et(b){switch(b.length){case 0:return new te.ZN;case 1:return b[0];default:return new te.ZE(b)}}function Ye(b,a,c=new Map,p=new Map){const w=[],G=[];let be=-1,Ee=null;if(a.forEach(it=>{const ft=it.get("offset"),Wt=ft==be,Kt=Wt&&Ee||new Map;it.forEach((Sn,Bn)=>{let hn=Bn,wn=Sn;if("offset"!==Bn)switch(hn=b.normalizePropertyName(hn,w),wn){case te.k1:wn=c.get(Bn);break;case te.l3:wn=p.get(Bn);break;default:wn=b.normalizeStyleValue(Bn,hn,wn,w)}Kt.set(hn,wn)}),Wt||G.push(Kt),Ee=Kt,be=ft}),w.length)throw function mn(b){return new u.vHH(3502,!1)}();return G}function Rt(b,a,c,p){switch(a){case"start":b.onStart(()=>p(c&&Yt(c,"start",b)));break;case"done":b.onDone(()=>p(c&&Yt(c,"done",b)));break;case"destroy":b.onDestroy(()=>p(c&&Yt(c,"destroy",b)))}}function Yt(b,a,c){const G=gn(b.element,b.triggerName,b.fromState,b.toState,a||b.phaseName,c.totalTime??b.totalTime,!!c.disabled),be=b._data;return null!=be&&(G._data=be),G}function gn(b,a,c,p,w="",G=0,be){return{element:b,triggerName:a,fromState:c,toState:p,phaseName:w,totalTime:G,disabled:!!be}}function Ht(b,a,c){let p=b.get(a);return p||b.set(a,p=c),p}function Mn(b){const a=b.indexOf(":");return[b.substring(1,a),b.slice(a+1)]}const Wn=(()=>typeof document>"u"?null:document.documentElement)();function In(b){const a=b.parentNode||b.host||null;return a===Wn?null:a}let Q=null,Oe=!1;function _t(b,a){for(;a;){if(a===b)return!0;a=In(a)}return!1}function Ot(b,a,c){if(c)return Array.from(b.querySelectorAll(a));const p=b.querySelector(a);return p?[p]:[]}let lt=(()=>{var b;class a{validateStyleProperty(p){return function Ce(b){Q||(Q=function dt(){return typeof document<"u"?document.body:null}()||{},Oe=!!Q.style&&"WebkitAppearance"in Q.style);let a=!0;return Q.style&&!function pt(b){return"ebkit"==b.substring(1,6)}(b)&&(a=b in Q.style,!a&&Oe&&(a="Webkit"+b.charAt(0).toUpperCase()+b.slice(1)in Q.style)),a}(p)}matchesElement(p,w){return!1}containsElement(p,w){return _t(p,w)}getParentElement(p){return In(p)}query(p,w,G){return Ot(p,w,G)}computeStyle(p,w,G){return G||""}animate(p,w,G,be,Ee,it=[],ft){return new te.ZN(G,be)}}return(b=a).\u0275fac=function(p){return new(p||b)},b.\u0275prov=u.Yz7({token:b,factory:b.\u0275fac}),a})(),He=(()=>{class a{}return a.NOOP=new lt,a})();const vt=1e3,St="ng-enter",Mt="ng-leave",en="ng-trigger",tn=".ng-trigger",En="ng-animating",xn=".ng-animating";function dn(b){if("number"==typeof b)return b;const a=b.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Cn(parseFloat(a[1]),a[2])}function Cn(b,a){return"s"===a?b*vt:b}function kn(b,a,c){return b.hasOwnProperty("duration")?b:function ni(b,a,c){let w,G=0,be="";if("string"==typeof b){const Ee=b.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ee)return a.push(ne()),{duration:0,delay:0,easing:""};w=Cn(parseFloat(Ee[1]),Ee[2]);const it=Ee[3];null!=it&&(G=Cn(parseFloat(it),Ee[4]));const ft=Ee[5];ft&&(be=ft)}else w=b;if(!c){let Ee=!1,it=a.length;w<0&&(a.push(function H(){return new u.vHH(3100,!1)}()),Ee=!0),G<0&&(a.push(function q(){return new u.vHH(3101,!1)}()),Ee=!0),Ee&&a.splice(it,0,ne())}return{duration:w,delay:G,easing:be}}(b,a,c)}function On(b,a={}){return Object.keys(b).forEach(c=>{a[c]=b[c]}),a}function oi(b){const a=new Map;return Object.keys(b).forEach(c=>{a.set(c,b[c])}),a}function xe(b,a=new Map,c){if(c)for(let[p,w]of c)a.set(p,w);for(let[p,w]of b)a.set(p,w);return a}function W(b,a,c){a.forEach((p,w)=>{const G=E(w);c&&!c.has(w)&&c.set(w,b.style[G]),b.style[G]=p})}function O(b,a){a.forEach((c,p)=>{const w=E(p);b.style[w]=""})}function V(b){return Array.isArray(b)?1==b.length?b[0]:(0,te.vP)(b):b}const j=new RegExp("{{\\s*(.+?)\\s*}}","g");function ye(b){let a=[];if("string"==typeof b){let c;for(;c=j.exec(b);)a.push(c[1]);j.lastIndex=0}return a}function z(b,a,c){const p=b.toString(),w=p.replace(j,(G,be)=>{let Ee=a[be];return null==Ee&&(c.push(function Ie(b){return new u.vHH(3003,!1)}()),Ee=""),Ee.toString()});return w==p?b:w}function ie(b){const a=[];let c=b.next();for(;!c.done;)a.push(c.value),c=b.next();return a}const se=/-+([a-z0-9])/g;function E(b){return b.replace(se,(...a)=>a[1].toUpperCase())}function L(b,a,c){switch(a.type){case 7:return b.visitTrigger(a,c);case 0:return b.visitState(a,c);case 1:return b.visitTransition(a,c);case 2:return b.visitSequence(a,c);case 3:return b.visitGroup(a,c);case 4:return b.visitAnimate(a,c);case 5:return b.visitKeyframes(a,c);case 6:return b.visitStyle(a,c);case 8:return b.visitReference(a,c);case 9:return b.visitAnimateChild(a,c);case 10:return b.visitAnimateRef(a,c);case 11:return b.visitQuery(a,c);case 12:return b.visitStagger(a,c);default:throw function Ne(b){return new u.vHH(3004,!1)}()}}function ce(b,a){return window.getComputedStyle(b)[a]}const At="*";function xt(b,a){const c=[];return"string"==typeof b?b.split(/\s*,\s*/).forEach(p=>function Ae(b,a,c){if(":"==b[0]){const it=function gt(b,a){switch(b){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(c,p)=>parseFloat(p)>parseFloat(c);case":decrement":return(c,p)=>parseFloat(p)<parseFloat(c);default:return a.push(function Gt(b){return new u.vHH(3016,!1)}()),"* => *"}}(b,c);if("function"==typeof it)return void a.push(it);b=it}const p=b.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==p||p.length<4)return c.push(function Ut(b){return new u.vHH(3015,!1)}()),a;const w=p[1],G=p[2],be=p[3];a.push(Kn(w,be));"<"==G[0]&&!(w==At&&be==At)&&a.push(Kn(be,w))}(p,c,a)):c.push(b),c}const Lt=new Set(["true","1"]),fn=new Set(["false","0"]);function Kn(b,a){const c=Lt.has(b)||fn.has(b),p=Lt.has(a)||fn.has(a);return(w,G)=>{let be=b==At||b==w,Ee=a==At||a==G;return!be&&c&&"boolean"==typeof w&&(be=w?Lt.has(b):fn.has(b)),!Ee&&p&&"boolean"==typeof G&&(Ee=G?Lt.has(a):fn.has(a)),be&&Ee}}const jn=new RegExp("s*:selfs*,?","g");function mi(b,a,c,p){return new Xn(b).build(a,c,p)}class Xn{constructor(a){this._driver=a}build(a,c,p){const w=new xi(c);return this._resetContextStyleTimingState(w),L(this,V(a),w)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,c){let p=c.queryCount=0,w=c.depCount=0;const G=[],be=[];return"@"==a.name.charAt(0)&&c.errors.push(function we(){return new u.vHH(3006,!1)}()),a.definitions.forEach(Ee=>{if(this._resetContextStyleTimingState(c),0==Ee.type){const it=Ee,ft=it.name;ft.toString().split(/\s*,\s*/).forEach(Wt=>{it.name=Wt,G.push(this.visitState(it,c))}),it.name=ft}else if(1==Ee.type){const it=this.visitTransition(Ee,c);p+=it.queryCount,w+=it.depCount,be.push(it)}else c.errors.push(function Be(){return new u.vHH(3007,!1)}())}),{type:7,name:a.name,states:G,transitions:be,queryCount:p,depCount:w,options:null}}visitState(a,c){const p=this.visitStyle(a.styles,c),w=a.options&&a.options.params||null;if(p.containsDynamicStyles){const G=new Set,be=w||{};p.styles.forEach(Ee=>{Ee instanceof Map&&Ee.forEach(it=>{ye(it).forEach(ft=>{be.hasOwnProperty(ft)||G.add(ft)})})}),G.size&&(ie(G.values()),c.errors.push(function Xe(b,a){return new u.vHH(3008,!1)}()))}return{type:0,name:a.name,style:p,options:w?{params:w}:null}}visitTransition(a,c){c.queryCount=0,c.depCount=0;const p=L(this,V(a.animation),c);return{type:1,matchers:xt(a.expr,c.errors),animation:p,queryCount:c.queryCount,depCount:c.depCount,options:Jn(a.options)}}visitSequence(a,c){return{type:2,steps:a.steps.map(p=>L(this,p,c)),options:Jn(a.options)}}visitGroup(a,c){const p=c.currentTime;let w=0;const G=a.steps.map(be=>{c.currentTime=p;const Ee=L(this,be,c);return w=Math.max(w,c.currentTime),Ee});return c.currentTime=w,{type:3,steps:G,options:Jn(a.options)}}visitAnimate(a,c){const p=function Ji(b,a){if(b.hasOwnProperty("duration"))return b;if("number"==typeof b)return Ii(kn(b,a).duration,0,"");const c=b;if(c.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=Ii(0,0,"");return G.dynamic=!0,G.strValue=c,G}const w=kn(c,a);return Ii(w.duration,w.delay,w.easing)}(a.timings,c.errors);c.currentAnimateTimings=p;let w,G=a.styles?a.styles:(0,te.oB)({});if(5==G.type)w=this.visitKeyframes(G,c);else{let be=a.styles,Ee=!1;if(!be){Ee=!0;const ft={};p.easing&&(ft.easing=p.easing),be=(0,te.oB)(ft)}c.currentTime+=p.duration+p.delay;const it=this.visitStyle(be,c);it.isEmptyStep=Ee,w=it}return c.currentAnimateTimings=null,{type:4,timings:p,style:w,options:null}}visitStyle(a,c){const p=this._makeStyleAst(a,c);return this._validateStyleAst(p,c),p}_makeStyleAst(a,c){const p=[],w=Array.isArray(a.styles)?a.styles:[a.styles];for(let Ee of w)"string"==typeof Ee?Ee===te.l3?p.push(Ee):c.errors.push(new u.vHH(3002,!1)):p.push(oi(Ee));let G=!1,be=null;return p.forEach(Ee=>{if(Ee instanceof Map&&(Ee.has("easing")&&(be=Ee.get("easing"),Ee.delete("easing")),!G))for(let it of Ee.values())if(it.toString().indexOf("{{")>=0){G=!0;break}}),{type:6,styles:p,easing:be,offset:a.offset,containsDynamicStyles:G,options:null}}_validateStyleAst(a,c){const p=c.currentAnimateTimings;let w=c.currentTime,G=c.currentTime;p&&G>0&&(G-=p.duration+p.delay),a.styles.forEach(be=>{"string"!=typeof be&&be.forEach((Ee,it)=>{const ft=c.collectedStyles.get(c.currentQuerySelector),Wt=ft.get(it);let Kt=!0;Wt&&(G!=w&&G>=Wt.startTime&&w<=Wt.endTime&&(c.errors.push(function J(b,a,c,p,w){return new u.vHH(3010,!1)}()),Kt=!1),G=Wt.startTime),Kt&&ft.set(it,{startTime:G,endTime:w}),c.options&&function M(b,a,c){const p=a.params||{},w=ye(b);w.length&&w.forEach(G=>{p.hasOwnProperty(G)||c.push(function me(b){return new u.vHH(3001,!1)}())})}(Ee,c.options,c.errors)})})}visitKeyframes(a,c){const p={type:5,styles:[],options:null};if(!c.currentAnimateTimings)return c.errors.push(function Te(){return new u.vHH(3011,!1)}()),p;let G=0;const be=[];let Ee=!1,it=!1,ft=0;const Wt=a.steps.map(Ci=>{const Di=this._makeStyleAst(Ci,c);let nr=null!=Di.offset?Di.offset:function ir(b){if("string"==typeof b)return null;let a=null;if(Array.isArray(b))b.forEach(c=>{if(c instanceof Map&&c.has("offset")){const p=c;a=parseFloat(p.get("offset")),p.delete("offset")}});else if(b instanceof Map&&b.has("offset")){const c=b;a=parseFloat(c.get("offset")),c.delete("offset")}return a}(Di.styles),sr=0;return null!=nr&&(G++,sr=Di.offset=nr),it=it||sr<0||sr>1,Ee=Ee||sr<ft,ft=sr,be.push(sr),Di});it&&c.errors.push(function he(){return new u.vHH(3012,!1)}()),Ee&&c.errors.push(function _e(){return new u.vHH(3200,!1)}());const Kt=a.steps.length;let Sn=0;G>0&&G<Kt?c.errors.push(function Ke(){return new u.vHH(3202,!1)}()):0==G&&(Sn=1/(Kt-1));const Bn=Kt-1,hn=c.currentTime,wn=c.currentAnimateTimings,yi=wn.duration;return Wt.forEach((Ci,Di)=>{const nr=Sn>0?Di==Bn?1:Sn*Di:be[Di],sr=nr*yi;c.currentTime=hn+wn.delay+sr,wn.duration=sr,this._validateStyleAst(Ci,c),Ci.offset=nr,p.styles.push(Ci)}),p}visitReference(a,c){return{type:8,animation:L(this,V(a.animation),c),options:Jn(a.options)}}visitAnimateChild(a,c){return c.depCount++,{type:9,options:Jn(a.options)}}visitAnimateRef(a,c){return{type:10,animation:this.visitReference(a.animation,c),options:Jn(a.options)}}visitQuery(a,c){const p=c.currentQuerySelector,w=a.options||{};c.queryCount++,c.currentQuery=a;const[G,be]=function Mi(b){const a=!!b.split(/\s*,\s*/).find(c=>":self"==c);return a&&(b=b.replace(jn,"")),b=b.replace(/@\*/g,tn).replace(/@\w+/g,c=>tn+"-"+c.slice(1)).replace(/:animating/g,xn),[b,a]}(a.selector);c.currentQuerySelector=p.length?p+" "+G:G,Ht(c.collectedStyles,c.currentQuerySelector,new Map);const Ee=L(this,V(a.animation),c);return c.currentQuery=null,c.currentQuerySelector=p,{type:11,selector:G,limit:w.limit||0,optional:!!w.optional,includeSelf:be,animation:Ee,originalSelector:a.selector,options:Jn(a.options)}}visitStagger(a,c){c.currentQuery||c.errors.push(function qe(){return new u.vHH(3013,!1)}());const p="full"===a.timings?{duration:0,delay:0,easing:"full"}:kn(a.timings,c.errors,!0);return{type:12,animation:L(this,V(a.animation),c),timings:p,options:null}}}class xi{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Jn(b){return b?(b=On(b)).params&&(b.params=function li(b){return b?On(b):null}(b.params)):b={},b}function Ii(b,a,c){return{duration:b,delay:a,easing:c}}function lr(b,a,c,p,w,G,be=null,Ee=!1){return{type:1,element:b,keyframes:a,preStyleProps:c,postStyleProps:p,duration:w,delay:G,totalTime:w+G,easing:be,subTimeline:Ee}}class Lr{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,c){let p=this._map.get(a);p||this._map.set(a,p=[]),p.push(...c)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Ys=new RegExp(":enter","g"),Br=new RegExp(":leave","g");function Ks(b,a,c,p,w,G=new Map,be=new Map,Ee,it,ft=[]){return(new cr).buildKeyframes(b,a,c,p,w,G,be,Ee,it,ft)}class cr{buildKeyframes(a,c,p,w,G,be,Ee,it,ft,Wt=[]){ft=ft||new Lr;const Kt=new Ni(a,c,ft,w,G,Wt,[]);Kt.options=it;const Sn=it.delay?dn(it.delay):0;Kt.currentTimeline.delayNextStep(Sn),Kt.currentTimeline.setStyles([be],null,Kt.errors,it),L(this,p,Kt);const Bn=Kt.timelines.filter(hn=>hn.containsAnimation());if(Bn.length&&Ee.size){let hn;for(let wn=Bn.length-1;wn>=0;wn--){const yi=Bn[wn];if(yi.element===c){hn=yi;break}}hn&&!hn.allowOnlyTimelineStyles()&&hn.setStyles([Ee],null,Kt.errors,it)}return Bn.length?Bn.map(hn=>hn.buildKeyframes()):[lr(c,[],[],[],0,Sn,"",!1)]}visitTrigger(a,c){}visitState(a,c){}visitTransition(a,c){}visitAnimateChild(a,c){const p=c.subInstructions.get(c.element);if(p){const w=c.createSubContext(a.options),G=c.currentTimeline.currentTime,be=this._visitSubInstructions(p,w,w.options);G!=be&&c.transformIntoNewTimeline(be)}c.previousNode=a}visitAnimateRef(a,c){const p=c.createSubContext(a.options);p.transformIntoNewTimeline(),this._applyAnimationRefDelays([a.options,a.animation.options],c,p),this.visitReference(a.animation,p),c.transformIntoNewTimeline(p.currentTimeline.currentTime),c.previousNode=a}_applyAnimationRefDelays(a,c,p){for(const w of a){const G=w?.delay;if(G){const be="number"==typeof G?G:dn(z(G,w?.params??{},c.errors));p.delayNextStep(be)}}}_visitSubInstructions(a,c,p){let G=c.currentTimeline.currentTime;const be=null!=p.duration?dn(p.duration):null,Ee=null!=p.delay?dn(p.delay):null;return 0!==be&&a.forEach(it=>{const ft=c.appendInstructionToTimeline(it,be,Ee);G=Math.max(G,ft.duration+ft.delay)}),G}visitReference(a,c){c.updateOptions(a.options,!0),L(this,a.animation,c),c.previousNode=a}visitSequence(a,c){const p=c.subContextCount;let w=c;const G=a.options;if(G&&(G.params||G.delay)&&(w=c.createSubContext(G),w.transformIntoNewTimeline(),null!=G.delay)){6==w.previousNode.type&&(w.currentTimeline.snapshotCurrentStyles(),w.previousNode=Jr);const be=dn(G.delay);w.delayNextStep(be)}a.steps.length&&(a.steps.forEach(be=>L(this,be,w)),w.currentTimeline.applyStylesToKeyframe(),w.subContextCount>p&&w.transformIntoNewTimeline()),c.previousNode=a}visitGroup(a,c){const p=[];let w=c.currentTimeline.currentTime;const G=a.options&&a.options.delay?dn(a.options.delay):0;a.steps.forEach(be=>{const Ee=c.createSubContext(a.options);G&&Ee.delayNextStep(G),L(this,be,Ee),w=Math.max(w,Ee.currentTimeline.currentTime),p.push(Ee.currentTimeline)}),p.forEach(be=>c.currentTimeline.mergeTimelineCollectedStyles(be)),c.transformIntoNewTimeline(w),c.previousNode=a}_visitTiming(a,c){if(a.dynamic){const p=a.strValue;return kn(c.params?z(p,c.params,c.errors):p,c.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,c){const p=c.currentAnimateTimings=this._visitTiming(a.timings,c),w=c.currentTimeline;p.delay&&(c.incrementTime(p.delay),w.snapshotCurrentStyles());const G=a.style;5==G.type?this.visitKeyframes(G,c):(c.incrementTime(p.duration),this.visitStyle(G,c),w.applyStylesToKeyframe()),c.currentAnimateTimings=null,c.previousNode=a}visitStyle(a,c){const p=c.currentTimeline,w=c.currentAnimateTimings;!w&&p.hasCurrentStyleProperties()&&p.forwardFrame();const G=w&&w.easing||a.easing;a.isEmptyStep?p.applyEmptyStep(G):p.setStyles(a.styles,G,c.errors,c.options),c.previousNode=a}visitKeyframes(a,c){const p=c.currentAnimateTimings,w=c.currentTimeline.duration,G=p.duration,Ee=c.createSubContext().currentTimeline;Ee.easing=p.easing,a.styles.forEach(it=>{Ee.forwardTime((it.offset||0)*G),Ee.setStyles(it.styles,it.easing,c.errors,c.options),Ee.applyStylesToKeyframe()}),c.currentTimeline.mergeTimelineCollectedStyles(Ee),c.transformIntoNewTimeline(w+G),c.previousNode=a}visitQuery(a,c){const p=c.currentTimeline.currentTime,w=a.options||{},G=w.delay?dn(w.delay):0;G&&(6===c.previousNode.type||0==p&&c.currentTimeline.hasCurrentStyleProperties())&&(c.currentTimeline.snapshotCurrentStyles(),c.previousNode=Jr);let be=p;const Ee=c.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!w.optional,c.errors);c.currentQueryTotal=Ee.length;let it=null;Ee.forEach((ft,Wt)=>{c.currentQueryIndex=Wt;const Kt=c.createSubContext(a.options,ft);G&&Kt.delayNextStep(G),ft===c.element&&(it=Kt.currentTimeline),L(this,a.animation,Kt),Kt.currentTimeline.applyStylesToKeyframe(),be=Math.max(be,Kt.currentTimeline.currentTime)}),c.currentQueryIndex=0,c.currentQueryTotal=0,c.transformIntoNewTimeline(be),it&&(c.currentTimeline.mergeTimelineCollectedStyles(it),c.currentTimeline.snapshotCurrentStyles()),c.previousNode=a}visitStagger(a,c){const p=c.parentContext,w=c.currentTimeline,G=a.timings,be=Math.abs(G.duration),Ee=be*(c.currentQueryTotal-1);let it=be*c.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":it=Ee-it;break;case"full":it=p.currentStaggerTime}const Wt=c.currentTimeline;it&&Wt.delayNextStep(it);const Kt=Wt.currentTime;L(this,a.animation,c),c.previousNode=a,p.currentStaggerTime=w.currentTime-Kt+(w.startTime-p.currentTimeline.startTime)}}const Jr={};class Ni{constructor(a,c,p,w,G,be,Ee,it){this._driver=a,this.element=c,this.subInstructions=p,this._enterClassName=w,this._leaveClassName=G,this.errors=be,this.timelines=Ee,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Jr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=it||new $r(this._driver,c,0),Ee.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,c){if(!a)return;const p=a;let w=this.options;null!=p.duration&&(w.duration=dn(p.duration)),null!=p.delay&&(w.delay=dn(p.delay));const G=p.params;if(G){let be=w.params;be||(be=this.options.params={}),Object.keys(G).forEach(Ee=>{(!c||!be.hasOwnProperty(Ee))&&(be[Ee]=z(G[Ee],be,this.errors))})}}_copyOptions(){const a={};if(this.options){const c=this.options.params;if(c){const p=a.params={};Object.keys(c).forEach(w=>{p[w]=c[w]})}}return a}createSubContext(a=null,c,p){const w=c||this.element,G=new Ni(this._driver,w,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(w,p||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(a),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(a){return this.previousNode=Jr,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,c,p){const w={duration:c??a.duration,delay:this.currentTimeline.currentTime+(p??0)+a.delay,easing:""},G=new zr(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,w,a.stretchStartingKeyframe);return this.timelines.push(G),w}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,c,p,w,G,be){let Ee=[];if(w&&Ee.push(this.element),a.length>0){a=(a=a.replace(Ys,"."+this._enterClassName)).replace(Br,"."+this._leaveClassName);let ft=this._driver.query(this.element,a,1!=p);0!==p&&(ft=p<0?ft.slice(ft.length+p,ft.length):ft.slice(0,p)),Ee.push(...ft)}return!G&&0==Ee.length&&be.push(function yt(b){return new u.vHH(3014,!1)}()),Ee}}class $r{constructor(a,c,p,w){this._driver=a,this.element=c,this.startTime=p,this._elementTimelineStylesLookup=w,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(c),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(c,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const c=1===this._keyframes.size&&this._pendingStyles.size;this.duration||c?(this.forwardTime(this.currentTime+a),c&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,c){return this.applyStylesToKeyframe(),new $r(this._driver,a,c||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,c){this._localTimelineStyles.set(a,c),this._globalTimelineStyles.set(a,c),this._styleSummary.set(a,{time:this.currentTime,value:c})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[c,p]of this._globalTimelineStyles)this._backFill.set(c,p||te.l3),this._currentKeyframe.set(c,te.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,c,p,w){c&&this._previousKeyframe.set("easing",c);const G=w&&w.params||{},be=function fs(b,a){const c=new Map;let p;return b.forEach(w=>{if("*"===w){p=p||a.keys();for(let G of p)c.set(G,te.l3)}else xe(w,c)}),c}(a,this._globalTimelineStyles);for(let[Ee,it]of be){const ft=z(it,G,p);this._pendingStyles.set(Ee,ft),this._localTimelineStyles.has(Ee)||this._backFill.set(Ee,this._globalTimelineStyles.get(Ee)??te.l3),this._updateStyle(Ee,ft)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,c)=>{this._currentKeyframe.set(c,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,c)=>{this._currentKeyframe.has(c)||this._currentKeyframe.set(c,a)}))}snapshotCurrentStyles(){for(let[a,c]of this._localTimelineStyles)this._pendingStyles.set(a,c),this._updateStyle(a,c)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let c in this._currentKeyframe)a.push(c);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((c,p)=>{const w=this._styleSummary.get(p);(!w||c.time>w.time)&&this._updateStyle(p,c.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,c=new Set,p=1===this._keyframes.size&&0===this.duration;let w=[];this._keyframes.forEach((Ee,it)=>{const ft=xe(Ee,new Map,this._backFill);ft.forEach((Wt,Kt)=>{Wt===te.k1?a.add(Kt):Wt===te.l3&&c.add(Kt)}),p||ft.set("offset",it/this.duration),w.push(ft)});const G=a.size?ie(a.values()):[],be=c.size?ie(c.values()):[];if(p){const Ee=w[0],it=new Map(Ee);Ee.set("offset",0),it.set("offset",1),w=[Ee,it]}return lr(this.element,w,G,be,this.duration,this.startTime,this.easing,!1)}}class zr extends $r{constructor(a,c,p,w,G,be,Ee=!1){super(a,c,be.delay),this.keyframes=p,this.preStyleProps=w,this.postStyleProps=G,this._stretchStartingKeyframe=Ee,this.timings={duration:be.duration,delay:be.delay,easing:be.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:c,duration:p,easing:w}=this.timings;if(this._stretchStartingKeyframe&&c){const G=[],be=p+c,Ee=c/be,it=xe(a[0]);it.set("offset",0),G.push(it);const ft=xe(a[0]);ft.set("offset",_r(Ee)),G.push(ft);const Wt=a.length-1;for(let Kt=1;Kt<=Wt;Kt++){let Sn=xe(a[Kt]);const Bn=Sn.get("offset");Sn.set("offset",_r((c+Bn*p)/be)),G.push(Sn)}p=be,c=0,w="",a=G}return lr(this.element,a,this.preStyleProps,this.postStyleProps,p,c,w,!0)}}function _r(b,a=3){const c=Math.pow(10,a-1);return Math.round(b*c)/c}class Qi{}const Rn=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class vi extends Qi{normalizePropertyName(a,c){return E(a)}normalizeStyleValue(a,c,p,w){let G="";const be=p.toString().trim();if(Rn.has(c)&&0!==p&&"0"!==p)if("number"==typeof p)G="px";else{const Ee=p.match(/^[+-]?[\d\.]+([a-z]*)$/);Ee&&0==Ee[1].length&&w.push(function nt(b,a){return new u.vHH(3005,!1)}())}return be+G}}function fi(b,a,c,p,w,G,be,Ee,it,ft,Wt,Kt,Sn){return{type:0,element:b,triggerName:a,isRemovalTransition:w,fromState:c,fromStyles:G,toState:p,toStyles:be,timelines:Ee,queriedElements:it,preStyleProps:ft,postStyleProps:Wt,totalTime:Kt,errors:Sn}}const Ui={};class Li{constructor(a,c,p){this._triggerName=a,this.ast=c,this._stateStyles=p}match(a,c,p,w){return function ks(b,a,c,p,w){return b.some(G=>G(a,c,p,w))}(this.ast.matchers,a,c,p,w)}buildStyles(a,c,p){let w=this._stateStyles.get("*");return void 0!==a&&(w=this._stateStyles.get(a?.toString())||w),w?w.buildStyles(c,p):new Map}build(a,c,p,w,G,be,Ee,it,ft,Wt){const Kt=[],Sn=this.ast.options&&this.ast.options.params||Ui,hn=this.buildStyles(p,Ee&&Ee.params||Ui,Kt),wn=it&&it.params||Ui,yi=this.buildStyles(w,wn,Kt),Ci=new Set,Di=new Map,nr=new Map,sr="void"===w,Hs={params:vr(wn,Sn),delay:this.ast.options?.delay},as=Wt?[]:Ks(a,c,this.ast.animation,G,be,hn,yi,Hs,ft,Kt);let Pr=0;if(as.forEach($s=>{Pr=Math.max($s.duration+$s.delay,Pr)}),Kt.length)return fi(c,this._triggerName,p,w,sr,hn,yi,[],[],Di,nr,Pr,Kt);as.forEach($s=>{const Sr=$s.element,Wo=Ht(Di,Sr,new Set);$s.preStyleProps.forEach(oo=>Wo.add(oo));const da=Ht(nr,Sr,new Set);$s.postStyleProps.forEach(oo=>da.add(oo)),Sr!==c&&Ci.add(Sr)});const Ms=ie(Ci.values());return fi(c,this._triggerName,p,w,sr,hn,yi,as,Ms,Di,nr,Pr)}}function vr(b,a){const c=On(a);for(const p in b)b.hasOwnProperty(p)&&null!=b[p]&&(c[p]=b[p]);return c}class Es{constructor(a,c,p){this.styles=a,this.defaultParams=c,this.normalizer=p}buildStyles(a,c){const p=new Map,w=On(this.defaultParams);return Object.keys(a).forEach(G=>{const be=a[G];null!==be&&(w[G]=be)}),this.styles.styles.forEach(G=>{"string"!=typeof G&&G.forEach((be,Ee)=>{be&&(be=z(be,w,c));const it=this.normalizer.normalizePropertyName(Ee,c);be=this.normalizer.normalizeStyleValue(Ee,it,be,c),p.set(Ee,be)})}),p}}class ri{constructor(a,c,p){this.name=a,this.ast=c,this._normalizer=p,this.transitionFactories=[],this.states=new Map,c.states.forEach(w=>{this.states.set(w.name,new Es(w.style,w.options&&w.options.params||{},p))}),un(this.states,"true","1"),un(this.states,"false","0"),c.transitions.forEach(w=>{this.transitionFactories.push(new Li(a,w,this.states))}),this.fallbackTransition=function $t(b,a,c){return new Li(b,{type:1,animation:{type:2,steps:[],options:null},matchers:[(be,Ee)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,c,p,w){return this.transitionFactories.find(be=>be.match(a,c,p,w))||null}matchStyles(a,c,p){return this.fallbackTransition.buildStyles(a,c,p)}}function un(b,a,c){b.has(a)?b.has(c)||b.set(c,b.get(a)):b.has(c)&&b.set(a,b.get(c))}const ci=new Lr;class Oi{constructor(a,c,p){this.bodyNode=a,this._driver=c,this._normalizer=p,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,c){const p=[],G=mi(this._driver,c,p,[]);if(p.length)throw function Fn(b){return new u.vHH(3503,!1)}();this._animations.set(a,G)}_buildPlayer(a,c,p){const w=a.element,G=Ye(this._normalizer,a.keyframes,c,p);return this._driver.animate(w,G,a.duration,a.delay,a.easing,[],!0)}create(a,c,p={}){const w=[],G=this._animations.get(a);let be;const Ee=new Map;if(G?(be=Ks(this._driver,c,G,St,Mt,new Map,new Map,p,ci,w),be.forEach(Wt=>{const Kt=Ht(Ee,Wt.element,new Map);Wt.postStyleProps.forEach(Sn=>Kt.set(Sn,null))})):(w.push(function Gn(){return new u.vHH(3300,!1)}()),be=[]),w.length)throw function Le(b){return new u.vHH(3504,!1)}();Ee.forEach((Wt,Kt)=>{Wt.forEach((Sn,Bn)=>{Wt.set(Bn,this._driver.computeStyle(Kt,Bn,te.l3))})});const ft=et(be.map(Wt=>{const Kt=Ee.get(Wt.element);return this._buildPlayer(Wt,new Map,Kt)}));return this._playersById.set(a,ft),ft.onDestroy(()=>this.destroy(a)),this.players.push(ft),ft}destroy(a){const c=this._getPlayer(a);c.destroy(),this._playersById.delete(a);const p=this.players.indexOf(c);p>=0&&this.players.splice(p,1)}_getPlayer(a){const c=this._playersById.get(a);if(!c)throw function Ve(b){return new u.vHH(3301,!1)}();return c}listen(a,c,p,w){const G=gn(c,"","","");return Rt(this._getPlayer(a),p,G,w),()=>{}}command(a,c,p,w){if("register"==p)return void this.register(a,w[0]);if("create"==p)return void this.create(a,c,w[0]||{});const G=this._getPlayer(a);switch(p){case"play":G.play();break;case"pause":G.pause();break;case"reset":G.reset();break;case"restart":G.restart();break;case"finish":G.finish();break;case"init":G.init();break;case"setPosition":G.setPosition(parseFloat(w[0]));break;case"destroy":this.destroy(a)}}}const ur="ng-animate-queued",Cr="ng-animate-disabled",nn=[],er={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Fe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Se="__ng_removed";class Ze{get params(){return this.options.params}constructor(a,c=""){this.namespaceId=c;const p=a&&a.hasOwnProperty("value");if(this.value=function bi(b){return b??null}(p?a.value:a),p){const G=On(a);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}absorbOptions(a){const c=a.params;if(c){const p=this.options.params;Object.keys(c).forEach(w=>{null==p[w]&&(p[w]=c[w])})}}}const bt="void",Ft=new Ze(bt);class Qt{constructor(a,c,p){this.id=a,this.hostElement=c,this._engine=p,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Ti(c,this._hostClassName)}listen(a,c,p,w){if(!this._triggers.has(c))throw function $e(b,a){return new u.vHH(3302,!1)}();if(null==p||0==p.length)throw function ve(b){return new u.vHH(3303,!1)}();if(!function Ai(b){return"start"==b||"done"==b}(p))throw function Je(b,a){return new u.vHH(3400,!1)}();const G=Ht(this._elementListeners,a,[]),be={name:c,phase:p,callback:w};G.push(be);const Ee=Ht(this._engine.statesByElement,a,new Map);return Ee.has(c)||(Ti(a,en),Ti(a,en+"-"+c),Ee.set(c,Ft)),()=>{this._engine.afterFlush(()=>{const it=G.indexOf(be);it>=0&&G.splice(it,1),this._triggers.has(c)||Ee.delete(c)})}}register(a,c){return!this._triggers.has(a)&&(this._triggers.set(a,c),!0)}_getTrigger(a){const c=this._triggers.get(a);if(!c)throw function ht(b){return new u.vHH(3401,!1)}();return c}trigger(a,c,p,w=!0){const G=this._getTrigger(c),be=new Dn(this.id,c,a);let Ee=this._engine.statesByElement.get(a);Ee||(Ti(a,en),Ti(a,en+"-"+c),this._engine.statesByElement.set(a,Ee=new Map));let it=Ee.get(c);const ft=new Ze(p,this.id);if(!(p&&p.hasOwnProperty("value"))&&it&&ft.absorbOptions(it.options),Ee.set(c,ft),it||(it=Ft),ft.value!==bt&&it.value===ft.value){if(!function Hn(b,a){const c=Object.keys(b),p=Object.keys(a);if(c.length!=p.length)return!1;for(let w=0;w<c.length;w++){const G=c[w];if(!a.hasOwnProperty(G)||b[G]!==a[G])return!1}return!0}(it.params,ft.params)){const wn=[],yi=G.matchStyles(it.value,it.params,wn),Ci=G.matchStyles(ft.value,ft.params,wn);wn.length?this._engine.reportError(wn):this._engine.afterFlush(()=>{O(a,yi),W(a,Ci)})}return}const Sn=Ht(this._engine.playersByElement,a,[]);Sn.forEach(wn=>{wn.namespaceId==this.id&&wn.triggerName==c&&wn.queued&&wn.destroy()});let Bn=G.matchTransition(it.value,ft.value,a,ft.params),hn=!1;if(!Bn){if(!w)return;Bn=G.fallbackTransition,hn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:Bn,fromState:it,toState:ft,player:be,isFallbackTransition:hn}),hn||(Ti(a,ur),be.onStart(()=>{si(a,ur)})),be.onDone(()=>{let wn=this.players.indexOf(be);wn>=0&&this.players.splice(wn,1);const yi=this._engine.playersByElement.get(a);if(yi){let Ci=yi.indexOf(be);Ci>=0&&yi.splice(Ci,1)}}),this.players.push(be),Sn.push(be),be}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(c=>c.delete(a)),this._elementListeners.forEach((c,p)=>{this._elementListeners.set(p,c.filter(w=>w.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const c=this._engine.playersByElement.get(a);c&&(c.forEach(p=>p.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,c){const p=this._engine.driver.query(a,tn,!0);p.forEach(w=>{if(w[Se])return;const G=this._engine.fetchNamespacesByElement(w);G.size?G.forEach(be=>be.triggerLeaveAnimation(w,c,!1,!0)):this.clearElementCache(w)}),this._engine.afterFlushAnimationsDone(()=>p.forEach(w=>this.clearElementCache(w)))}triggerLeaveAnimation(a,c,p,w){const G=this._engine.statesByElement.get(a),be=new Map;if(G){const Ee=[];if(G.forEach((it,ft)=>{if(be.set(ft,it.value),this._triggers.has(ft)){const Wt=this.trigger(a,ft,bt,w);Wt&&Ee.push(Wt)}}),Ee.length)return this._engine.markElementAsRemoved(this.id,a,!0,c,be),p&&et(Ee).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const c=this._elementListeners.get(a),p=this._engine.statesByElement.get(a);if(c&&p){const w=new Set;c.forEach(G=>{const be=G.name;if(w.has(be))return;w.add(be);const it=this._triggers.get(be).fallbackTransition,ft=p.get(be)||Ft,Wt=new Ze(bt),Kt=new Dn(this.id,be,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:be,transition:it,fromState:ft,toState:Wt,player:Kt,isFallbackTransition:!0})})}}removeNode(a,c){const p=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,c),this.triggerLeaveAnimation(a,c,!0))return;let w=!1;if(p.totalAnimations){const G=p.players.length?p.playersByQueriedElement.get(a):[];if(G&&G.length)w=!0;else{let be=a;for(;be=be.parentNode;)if(p.statesByElement.get(be)){w=!0;break}}}if(this.prepareLeaveAnimationListeners(a),w)p.markElementAsRemoved(this.id,a,!1,c);else{const G=a[Se];(!G||G===er)&&(p.afterFlush(()=>this.clearElementCache(a)),p.destroyInnerAnimations(a),p._onRemovalComplete(a,c))}}insertNode(a,c){Ti(a,this._hostClassName)}drainQueuedTransitions(a){const c=[];return this._queue.forEach(p=>{const w=p.player;if(w.destroyed)return;const G=p.element,be=this._elementListeners.get(G);be&&be.forEach(Ee=>{if(Ee.name==p.triggerName){const it=gn(G,p.triggerName,p.fromState.value,p.toState.value);it._data=a,Rt(p.player,Ee.phase,it,Ee.callback)}}),w.markedForDestroy?this._engine.afterFlush(()=>{w.destroy()}):c.push(p)}),this._queue=[],c.sort((p,w)=>{const G=p.transition.ast.depCount,be=w.transition.ast.depCount;return 0==G||0==be?G-be:this._engine.driver.containsElement(p.element,w.element)?1:-1})}destroy(a){this.players.forEach(c=>c.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}}class ln{_onRemovalComplete(a,c){this.onRemovalComplete(a,c)}constructor(a,c,p){this.bodyNode=a,this.driver=c,this._normalizer=p,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(w,G)=>{}}get queuedPlayers(){const a=[];return this._namespaceList.forEach(c=>{c.players.forEach(p=>{p.queued&&a.push(p)})}),a}createNamespace(a,c){const p=new Qt(a,c,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,c)?this._balanceNamespaceList(p,c):(this.newHostElements.set(c,p),this.collectEnterElement(c)),this._namespaceLookup[a]=p}_balanceNamespaceList(a,c){const p=this._namespaceList,w=this.namespacesByHostElement;if(p.length-1>=0){let be=!1,Ee=this.driver.getParentElement(c);for(;Ee;){const it=w.get(Ee);if(it){const ft=p.indexOf(it);p.splice(ft+1,0,a),be=!0;break}Ee=this.driver.getParentElement(Ee)}be||p.unshift(a)}else p.push(a);return w.set(c,a),a}register(a,c){let p=this._namespaceLookup[a];return p||(p=this.createNamespace(a,c)),p}registerTrigger(a,c,p){let w=this._namespaceLookup[a];w&&w.register(c,p)&&this.totalAnimations++}destroy(a,c){a&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const p=this._fetchNamespace(a);this.namespacesByHostElement.delete(p.hostElement);const w=this._namespaceList.indexOf(p);w>=0&&this._namespaceList.splice(w,1),p.destroy(c),delete this._namespaceLookup[a]}))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const c=new Set,p=this.statesByElement.get(a);if(p)for(let w of p.values())if(w.namespaceId){const G=this._fetchNamespace(w.namespaceId);G&&c.add(G)}return c}trigger(a,c,p,w){if(Pi(c)){const G=this._fetchNamespace(a);if(G)return G.trigger(c,p,w),!0}return!1}insertNode(a,c,p,w){if(!Pi(c))return;const G=c[Se];if(G&&G.setForRemoval){G.setForRemoval=!1,G.setForMove=!0;const be=this.collectedLeaveElements.indexOf(c);be>=0&&this.collectedLeaveElements.splice(be,1)}if(a){const be=this._fetchNamespace(a);be&&be.insertNode(c,p)}w&&this.collectEnterElement(c)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,c){c?this.disabledNodes.has(a)||(this.disabledNodes.add(a),Ti(a,Cr)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),si(a,Cr))}removeNode(a,c,p){if(Pi(c)){const w=a?this._fetchNamespace(a):null;w?w.removeNode(c,p):this.markElementAsRemoved(a,c,!1,p);const G=this.namespacesByHostElement.get(c);G&&G.id!==a&&G.removeNode(c,p)}else this._onRemovalComplete(c,p)}markElementAsRemoved(a,c,p,w,G){this.collectedLeaveElements.push(c),c[Se]={namespaceId:a,setForRemoval:w,hasAnimation:p,removedBeforeQueried:!1,previousTriggersValues:G}}listen(a,c,p,w,G){return Pi(c)?this._fetchNamespace(a).listen(c,p,w,G):()=>{}}_buildInstruction(a,c,p,w,G){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,p,w,a.fromState.options,a.toState.options,c,G)}destroyInnerAnimations(a){let c=this.driver.query(a,tn,!0);c.forEach(p=>this.destroyActiveAnimationsForElement(p)),0!=this.playersByQueriedElement.size&&(c=this.driver.query(a,xn,!0),c.forEach(p=>this.finishActiveQueriedAnimationOnElement(p)))}destroyActiveAnimationsForElement(a){const c=this.playersByElement.get(a);c&&c.forEach(p=>{p.queued?p.markedForDestroy=!0:p.destroy()})}finishActiveQueriedAnimationOnElement(a){const c=this.playersByQueriedElement.get(a);c&&c.forEach(p=>p.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return et(this.players).onDone(()=>a());a()})}processLeaveNode(a){const c=a[Se];if(c&&c.setForRemoval){if(a[Se]=er,c.namespaceId){this.destroyInnerAnimations(a);const p=this._fetchNamespace(c.namespaceId);p&&p.clearElementCache(a)}this._onRemovalComplete(a,c.setForRemoval)}a.classList?.contains(Cr)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(p=>{this.markElementAsDisabled(p,!1)})}flush(a=-1){let c=[];if(this.newHostElements.size&&(this.newHostElements.forEach((p,w)=>this._balanceNamespaceList(p,w)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let p=0;p<this.collectedEnterElements.length;p++)Ti(this.collectedEnterElements[p],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const p=[];try{c=this._flushAnimations(p,a)}finally{for(let w=0;w<p.length;w++)p[w]()}}else for(let p=0;p<this.collectedLeaveElements.length;p++)this.processLeaveNode(this.collectedLeaveElements[p]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(p=>p()),this._flushFns=[],this._whenQuietFns.length){const p=this._whenQuietFns;this._whenQuietFns=[],c.length?et(c).onDone(()=>{p.forEach(w=>w())}):p.forEach(w=>w())}}reportError(a){throw function Dt(b){return new u.vHH(3402,!1)}()}_flushAnimations(a,c){const p=new Lr,w=[],G=new Map,be=[],Ee=new Map,it=new Map,ft=new Map,Wt=new Set;this.disabledNodes.forEach(sn=>{Wt.add(sn);const vn=this.driver.query(sn,".ng-animate-queued",!0);for(let An=0;An<vn.length;An++)Wt.add(vn[An])});const Kt=this.bodyNode,Sn=Array.from(this.statesByElement.keys()),Bn=Ur(Sn,this.collectedEnterElements),hn=new Map;let wn=0;Bn.forEach((sn,vn)=>{const An=St+wn++;hn.set(vn,An),sn.forEach(pi=>Ti(pi,An))});const yi=[],Ci=new Set,Di=new Set;for(let sn=0;sn<this.collectedLeaveElements.length;sn++){const vn=this.collectedLeaveElements[sn],An=vn[Se];An&&An.setForRemoval&&(yi.push(vn),Ci.add(vn),An.hasAnimation?this.driver.query(vn,".ng-star-inserted",!0).forEach(pi=>Ci.add(pi)):Di.add(vn))}const nr=new Map,sr=Ur(Sn,Array.from(Ci));sr.forEach((sn,vn)=>{const An=Mt+wn++;nr.set(vn,An),sn.forEach(pi=>Ti(pi,An))}),a.push(()=>{Bn.forEach((sn,vn)=>{const An=hn.get(vn);sn.forEach(pi=>si(pi,An))}),sr.forEach((sn,vn)=>{const An=nr.get(vn);sn.forEach(pi=>si(pi,An))}),yi.forEach(sn=>{this.processLeaveNode(sn)})});const Hs=[],as=[];for(let sn=this._namespaceList.length-1;sn>=0;sn--)this._namespaceList[sn].drainQueuedTransitions(c).forEach(An=>{const pi=An.player,Xi=An.element;if(Hs.push(pi),this.collectedEnterElements.length){const Er=Xi[Se];if(Er&&Er.setForMove){if(Er.previousTriggersValues&&Er.previousTriggersValues.has(An.triggerName)){const vo=Er.previousTriggersValues.get(An.triggerName),cs=this.statesByElement.get(An.element);if(cs&&cs.has(An.triggerName)){const Zr=cs.get(An.triggerName);Zr.value=vo,cs.set(An.triggerName,Zr)}}return void pi.destroy()}}const Rr=!Kt||!this.driver.containsElement(Kt,Xi),Kr=nr.get(Xi),ls=hn.get(Xi),Fi=this._buildInstruction(An,p,ls,Kr,Rr);if(Fi.errors&&Fi.errors.length)return void as.push(Fi);if(Rr)return pi.onStart(()=>O(Xi,Fi.fromStyles)),pi.onDestroy(()=>W(Xi,Fi.toStyles)),void w.push(pi);if(An.isFallbackTransition)return pi.onStart(()=>O(Xi,Fi.fromStyles)),pi.onDestroy(()=>W(Xi,Fi.toStyles)),void w.push(pi);const Yo=[];Fi.timelines.forEach(Er=>{Er.stretchStartingKeyframe=!0,this.disabledNodes.has(Er.element)||Yo.push(Er)}),Fi.timelines=Yo,p.append(Xi,Fi.timelines),be.push({instruction:Fi,player:pi,element:Xi}),Fi.queriedElements.forEach(Er=>Ht(Ee,Er,[]).push(pi)),Fi.preStyleProps.forEach((Er,vo)=>{if(Er.size){let cs=it.get(vo);cs||it.set(vo,cs=new Set),Er.forEach((Zr,xa)=>cs.add(xa))}}),Fi.postStyleProps.forEach((Er,vo)=>{let cs=ft.get(vo);cs||ft.set(vo,cs=new Set),Er.forEach((Zr,xa)=>cs.add(xa))})});if(as.length){const sn=[];as.forEach(vn=>{sn.push(function ut(b,a){return new u.vHH(3505,!1)}())}),Hs.forEach(vn=>vn.destroy()),this.reportError(sn)}const Pr=new Map,Ms=new Map;be.forEach(sn=>{const vn=sn.element;p.has(vn)&&(Ms.set(vn,vn),this._beforeAnimationBuild(sn.player.namespaceId,sn.instruction,Pr))}),w.forEach(sn=>{const vn=sn.element;this._getPreviousPlayers(vn,!1,sn.namespaceId,sn.triggerName,null).forEach(pi=>{Ht(Pr,vn,[]).push(pi),pi.destroy()})});const $s=yi.filter(sn=>Dr(sn,it,ft)),Sr=new Map;lo(Sr,this.driver,Di,ft,te.l3).forEach(sn=>{Dr(sn,it,ft)&&$s.push(sn)});const da=new Map;Bn.forEach((sn,vn)=>{lo(da,this.driver,new Set(sn),it,te.k1)}),$s.forEach(sn=>{const vn=Sr.get(sn),An=da.get(sn);Sr.set(sn,new Map([...vn?.entries()??[],...An?.entries()??[]]))});const oo=[],wa=[],fc={};be.forEach(sn=>{const{element:vn,player:An,instruction:pi}=sn;if(p.has(vn)){if(Wt.has(vn))return An.onDestroy(()=>W(vn,pi.toStyles)),An.disabled=!0,An.overrideTotalTime(pi.totalTime),void w.push(An);let Xi=fc;if(Ms.size>1){let Kr=vn;const ls=[];for(;Kr=Kr.parentNode;){const Fi=Ms.get(Kr);if(Fi){Xi=Fi;break}ls.push(Kr)}ls.forEach(Fi=>Ms.set(Fi,Xi))}const Rr=this._buildAnimation(An.namespaceId,pi,Pr,G,da,Sr);if(An.setRealPlayer(Rr),Xi===fc)oo.push(An);else{const Kr=this.playersByElement.get(Xi);Kr&&Kr.length&&(An.parentPlayer=et(Kr)),w.push(An)}}else O(vn,pi.fromStyles),An.onDestroy(()=>W(vn,pi.toStyles)),wa.push(An),Wt.has(vn)&&w.push(An)}),wa.forEach(sn=>{const vn=G.get(sn.element);if(vn&&vn.length){const An=et(vn);sn.setRealPlayer(An)}}),w.forEach(sn=>{sn.parentPlayer?sn.syncPlayerEvents(sn.parentPlayer):sn.destroy()});for(let sn=0;sn<yi.length;sn++){const vn=yi[sn],An=vn[Se];if(si(vn,Mt),An&&An.hasAnimation)continue;let pi=[];if(Ee.size){let Rr=Ee.get(vn);Rr&&Rr.length&&pi.push(...Rr);let Kr=this.driver.query(vn,xn,!0);for(let ls=0;ls<Kr.length;ls++){let Fi=Ee.get(Kr[ls]);Fi&&Fi.length&&pi.push(...Fi)}}const Xi=pi.filter(Rr=>!Rr.destroyed);Xi.length?_i(this,vn,Xi):this.processLeaveNode(vn)}return yi.length=0,oo.forEach(sn=>{this.players.push(sn),sn.onDone(()=>{sn.destroy();const vn=this.players.indexOf(sn);this.players.splice(vn,1)}),sn.play()}),oo}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,c,p,w,G){let be=[];if(c){const Ee=this.playersByQueriedElement.get(a);Ee&&(be=Ee)}else{const Ee=this.playersByElement.get(a);if(Ee){const it=!G||G==bt;Ee.forEach(ft=>{ft.queued||!it&&ft.triggerName!=w||be.push(ft)})}}return(p||w)&&(be=be.filter(Ee=>!(p&&p!=Ee.namespaceId||w&&w!=Ee.triggerName))),be}_beforeAnimationBuild(a,c,p){const G=c.element,be=c.isRemovalTransition?void 0:a,Ee=c.isRemovalTransition?void 0:c.triggerName;for(const it of c.timelines){const ft=it.element,Wt=ft!==G,Kt=Ht(p,ft,[]);this._getPreviousPlayers(ft,Wt,be,Ee,c.toState).forEach(Bn=>{const hn=Bn.getRealPlayer();hn.beforeDestroy&&hn.beforeDestroy(),Bn.destroy(),Kt.push(Bn)})}O(G,c.fromStyles)}_buildAnimation(a,c,p,w,G,be){const Ee=c.triggerName,it=c.element,ft=[],Wt=new Set,Kt=new Set,Sn=c.timelines.map(hn=>{const wn=hn.element;Wt.add(wn);const yi=wn[Se];if(yi&&yi.removedBeforeQueried)return new te.ZN(hn.duration,hn.delay);const Ci=wn!==it,Di=function dr(b){const a=[];return Wi(b,a),a}((p.get(wn)||nn).map(Pr=>Pr.getRealPlayer())).filter(Pr=>!!Pr.element&&Pr.element===wn),nr=G.get(wn),sr=be.get(wn),Hs=Ye(this._normalizer,hn.keyframes,nr,sr),as=this._buildPlayer(hn,Hs,Di);if(hn.subTimeline&&w&&Kt.add(wn),Ci){const Pr=new Dn(a,Ee,wn);Pr.setRealPlayer(as),ft.push(Pr)}return as});ft.forEach(hn=>{Ht(this.playersByQueriedElement,hn.element,[]).push(hn),hn.onDone(()=>function yn(b,a,c){let p=b.get(a);if(p){if(p.length){const w=p.indexOf(c);p.splice(w,1)}0==p.length&&b.delete(a)}return p}(this.playersByQueriedElement,hn.element,hn))}),Wt.forEach(hn=>Ti(hn,En));const Bn=et(Sn);return Bn.onDestroy(()=>{Wt.forEach(hn=>si(hn,En)),W(it,c.toStyles)}),Kt.forEach(hn=>{Ht(w,hn,[]).push(Bn)}),Bn}_buildPlayer(a,c,p){return c.length>0?this.driver.animate(a.element,c,a.duration,a.delay,a.easing,p):new te.ZN(a.duration,a.delay)}}class Dn{constructor(a,c,p){this.namespaceId=a,this.triggerName=c,this.element=p,this._player=new te.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((c,p)=>{c.forEach(w=>Rt(a,p,void 0,w))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const c=this._player;c.triggerCallback&&a.onStart(()=>c.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,c){Ht(this._queuedCallbacks,a,[]).push(c)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const c=this._player;c.triggerCallback&&c.triggerCallback(a)}}function Pi(b){return b&&1===b.nodeType}function Tn(b,a){const c=b.style.display;return b.style.display=a??"none",c}function lo(b,a,c,p,w){const G=[];c.forEach(it=>G.push(Tn(it)));const be=[];p.forEach((it,ft)=>{const Wt=new Map;it.forEach(Kt=>{const Sn=a.computeStyle(ft,Kt,w);Wt.set(Kt,Sn),(!Sn||0==Sn.length)&&(ft[Se]=Fe,be.push(ft))}),b.set(ft,Wt)});let Ee=0;return c.forEach(it=>Tn(it,G[Ee++])),be}function Ur(b,a){const c=new Map;if(b.forEach(Ee=>c.set(Ee,[])),0==a.length)return c;const w=new Set(a),G=new Map;function be(Ee){if(!Ee)return 1;let it=G.get(Ee);if(it)return it;const ft=Ee.parentNode;return it=c.has(ft)?ft:w.has(ft)?1:be(ft),G.set(Ee,it),it}return a.forEach(Ee=>{const it=be(Ee);1!==it&&c.get(it).push(Ee)}),c}function Ti(b,a){b.classList?.add(a)}function si(b,a){b.classList?.remove(a)}function _i(b,a,c){et(c).onDone(()=>b.processLeaveNode(a))}function Wi(b,a){for(let c=0;c<b.length;c++){const p=b[c];p instanceof te.ZE?Wi(p.players,a):a.push(p)}}function Dr(b,a,c){const p=c.get(b);if(!p)return!1;let w=a.get(b);return w?p.forEach(G=>w.add(G)):a.set(b,p),c.delete(b),!0}class ui{constructor(a,c,p){this.bodyNode=a,this._driver=c,this._normalizer=p,this._triggerCache={},this.onRemovalComplete=(w,G)=>{},this._transitionEngine=new ln(a,c,p),this._timelineEngine=new Oi(a,c,p),this._transitionEngine.onRemovalComplete=(w,G)=>this.onRemovalComplete(w,G)}registerTrigger(a,c,p,w,G){const be=a+"-"+w;let Ee=this._triggerCache[be];if(!Ee){const it=[],Wt=mi(this._driver,G,it,[]);if(it.length)throw function cn(b,a){return new u.vHH(3404,!1)}();Ee=function hs(b,a,c){return new ri(b,a,c)}(w,Wt,this._normalizer),this._triggerCache[be]=Ee}this._transitionEngine.registerTrigger(c,w,Ee)}register(a,c){this._transitionEngine.register(a,c)}destroy(a,c){this._transitionEngine.destroy(a,c)}onInsert(a,c,p,w){this._transitionEngine.insertNode(a,c,p,w)}onRemove(a,c,p){this._transitionEngine.removeNode(a,c,p)}disableAnimations(a,c){this._transitionEngine.markElementAsDisabled(a,c)}process(a,c,p,w){if("@"==p.charAt(0)){const[G,be]=Mn(p);this._timelineEngine.command(G,c,be,w)}else this._transitionEngine.trigger(a,c,p,w)}listen(a,c,p,w,G){if("@"==p.charAt(0)){const[be,Ee]=Mn(p);return this._timelineEngine.listen(be,c,Ee,G)}return this._transitionEngine.listen(a,c,p,w,G)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(a){this._transitionEngine.afterFlushAnimationsDone(a)}}let Gr=(()=>{class a{constructor(p,w,G){this._element=p,this._startStyles=w,this._endStyles=G,this._state=0;let be=a.initialStylesByElement.get(p);be||a.initialStylesByElement.set(p,be=new Map),this._initialStyles=be}start(){this._state<1&&(this._startStyles&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(O(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(O(this._element,this._endStyles),this._endStyles=null),W(this._element,this._initialStyles),this._state=3)}}return a.initialStylesByElement=new WeakMap,a})();function Mr(b){let a=null;return b.forEach((c,p)=>{(function fr(b){return"display"===b||"position"===b})(p)&&(a=a||new Map,a.set(p,c))}),a}class ji{constructor(a,c,p,w){this.element=a,this.keyframes=c,this.options=p,this._specialStyles=w,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=p.duration,this._delay=p.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const c=[];return a.forEach(p=>{c.push(Object.fromEntries(p))}),c}_triggerWebAnimation(a,c,p){return a.animate(this._convertKeyframesToObject(c),p)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((p,w)=>{"offset"!==w&&a.set(w,this._finished?p:ce(this.element,w))}),this.currentSnapshot=a}triggerCallback(a){const c="start"===a?this._onStartFns:this._onDoneFns;c.forEach(p=>p()),c.length=0}}class Wr{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,c){return!1}containsElement(a,c){return _t(a,c)}getParentElement(a){return In(a)}query(a,c,p){return Ot(a,c,p)}computeStyle(a,c,p){return window.getComputedStyle(a)[c]}animate(a,c,p,w,G,be=[]){const it={duration:p,delay:w,fill:0==w?"both":"forwards"};G&&(it.easing=G);const ft=new Map,Wt=be.filter(Bn=>Bn instanceof ji);(function ae(b,a){return 0===b||0===a})(p,w)&&Wt.forEach(Bn=>{Bn.currentSnapshot.forEach((hn,wn)=>ft.set(wn,hn))});let Kt=function Zn(b){return b.length?b[0]instanceof Map?b:b.map(a=>oi(a)):[]}(c).map(Bn=>xe(Bn));Kt=function S(b,a,c){if(c.size&&a.length){let p=a[0],w=[];if(c.forEach((G,be)=>{p.has(be)||w.push(be),p.set(be,G)}),w.length)for(let G=1;G<a.length;G++){let be=a[G];w.forEach(Ee=>be.set(Ee,ce(b,Ee)))}}return a}(a,Kt,ft);const Sn=function Yi(b,a){let c=null,p=null;return Array.isArray(a)&&a.length?(c=Mr(a[0]),a.length>1&&(p=Mr(a[a.length-1]))):a instanceof Map&&(c=Mr(a)),c||p?new Gr(b,c,p):null}(a,Kt);return new ji(a,Kt,it,Sn)}}let Qs=(()=>{var b;class a extends te._j{constructor(p,w){super(),this._nextAnimationId=0,this._renderer=p.createRenderer(w.body,{id:"0",encapsulation:u.ifc.None,styles:[],data:{animation:[]}})}build(p){const w=this._nextAnimationId.toString();this._nextAnimationId++;const G=Array.isArray(p)?(0,te.vP)(p):p;return es(this._renderer,null,w,"register",[G]),new qs(w,this._renderer)}}return(b=a).\u0275fac=function(p){return new(p||b)(u.LFG(u.FYo),u.LFG(N.K0))},b.\u0275prov=u.Yz7({token:b,factory:b.\u0275fac}),a})();class qs extends te.LC{constructor(a,c){super(),this._id=a,this._renderer=c}create(a,c){return new Ns(this._id,a,c||{},this._renderer)}}class Ns{constructor(a,c,p,w){this.id=a,this.element=c,this._renderer=w,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",p)}_listen(a,c){return this._renderer.listen(this.element,`@@${this.id}:${a}`,c)}_command(a,...c){return es(this._renderer,this.element,this.id,a,c)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function es(b,a,c,p,w){return b.setProperty(a,`@@${c}:${p}`,w)}const Co="@.disabled";let Bo=(()=>{var b;class a{constructor(p,w,G){this.delegate=p,this.engine=w,this._zone=G,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,w.onRemovalComplete=(be,Ee)=>{const it=Ee?.parentNode(be);it&&Ee.removeChild(it,be)}}createRenderer(p,w){const be=this.delegate.createRenderer(p,w);if(!(p&&w&&w.data&&w.data.animation)){let Kt=this._rendererCache.get(be);return Kt||(Kt=new Do("",be,this.engine,()=>this._rendererCache.delete(be)),this._rendererCache.set(be,Kt)),Kt}const Ee=w.id,it=w.id+"-"+this._currentId;this._currentId++,this.engine.register(it,p);const ft=Kt=>{Array.isArray(Kt)?Kt.forEach(ft):this.engine.registerTrigger(Ee,it,p,Kt.name,Kt)};return w.data.animation.forEach(ft),new ta(this,it,be,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(p,w,G){p>=0&&p<this._microtaskId?this._zone.run(()=>w(G)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(be=>{const[Ee,it]=be;Ee(it)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([w,G]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return(b=a).\u0275fac=function(p){return new(p||b)(u.LFG(u.FYo),u.LFG(ui),u.LFG(u.R0b))},b.\u0275prov=u.Yz7({token:b,factory:b.\u0275fac}),a})();class Do{constructor(a,c,p,w){this.namespaceId=a,this.delegate=c,this.engine=p,this._onDestroy=w}get data(){return this.delegate.data}destroyNode(a){this.delegate.destroyNode?.(a)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(a,c){return this.delegate.createElement(a,c)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,c){this.delegate.appendChild(a,c),this.engine.onInsert(this.namespaceId,c,a,!1)}insertBefore(a,c,p,w=!0){this.delegate.insertBefore(a,c,p),this.engine.onInsert(this.namespaceId,c,a,w)}removeChild(a,c,p){this.engine.onRemove(this.namespaceId,c,this.delegate)}selectRootElement(a,c){return this.delegate.selectRootElement(a,c)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,c,p,w){this.delegate.setAttribute(a,c,p,w)}removeAttribute(a,c,p){this.delegate.removeAttribute(a,c,p)}addClass(a,c){this.delegate.addClass(a,c)}removeClass(a,c){this.delegate.removeClass(a,c)}setStyle(a,c,p,w){this.delegate.setStyle(a,c,p,w)}removeStyle(a,c,p){this.delegate.removeStyle(a,c,p)}setProperty(a,c,p){"@"==c.charAt(0)&&c==Co?this.disableAnimations(a,!!p):this.delegate.setProperty(a,c,p)}setValue(a,c){this.delegate.setValue(a,c)}listen(a,c,p){return this.delegate.listen(a,c,p)}disableAnimations(a,c){this.engine.disableAnimations(a,c)}}class ta extends Do{constructor(a,c,p,w,G){super(c,p,w,G),this.factory=a,this.namespaceId=c}setProperty(a,c,p){"@"==c.charAt(0)?"."==c.charAt(1)&&c==Co?this.disableAnimations(a,p=void 0===p||!!p):this.engine.process(this.namespaceId,a,c.slice(1),p):this.delegate.setProperty(a,c,p)}listen(a,c,p){if("@"==c.charAt(0)){const w=function Ei(b){switch(b){case"body":return document.body;case"document":return document;case"window":return window;default:return b}}(a);let G=c.slice(1),be="";return"@"!=G.charAt(0)&&([G,be]=function na(b){const a=b.indexOf(".");return[b.substring(0,a),b.slice(a+1)]}(G)),this.engine.listen(this.namespaceId,w,G,be,Ee=>{this.factory.scheduleListenerCallback(Ee._data||-1,p,Ee)})}return this.delegate.listen(a,c,p)}}const X=[{provide:te._j,useClass:Qs},{provide:Qi,useFactory:function R(){return new vi}},{provide:ui,useClass:(()=>{var b;class a extends ui{constructor(p,w,G,be){super(p.body,w,G)}ngOnDestroy(){this.flush()}}return(b=a).\u0275fac=function(p){return new(p||b)(u.LFG(N.K0),u.LFG(He),u.LFG(Qi),u.LFG(u.z2F))},b.\u0275prov=u.Yz7({token:b,factory:b.\u0275fac}),a})()},{provide:u.FYo,useFactory:function A(b,a,c){return new Bo(b,a,c)},deps:[r.se,ui,u.R0b]}],P=[{provide:He,useFactory:()=>new Wr},{provide:u.QbO,useValue:"BrowserAnimations"},...X],pe=[{provide:He,useClass:lt},{provide:u.QbO,useValue:"NoopAnimations"},...X];let kt=(()=>{var b;class a{static withConfig(p){return{ngModule:a,providers:p.disableAnimations?pe:P}}}return(b=a).\u0275fac=function(p){return new(p||b)},b.\u0275mod=u.oAB({type:b}),b.\u0275inj=u.cJS({providers:P,imports:[r.b2]}),a})();var qi=g(915),Hi=g(8645),yr=g(9773),Ls=g(5141),hr=g(7700),Ri=g(4211);let Ds=(()=>{var b;class a{constructor(p){this.dialogRef=p,this.config=new Ls.O,this.config.title="There is a new update available",this.config.hideMoreButton=!0}onOk(){document.location.reload()}}return(b=a).\u0275fac=function(p){return new(p||b)(u.Y36(hr.so))},b.\u0275cmp=u.Xpm({type:b,selectors:[["app-modal-confirm-update"]],decls:5,vars:1,consts:[[3,"config","onOk","onCancel"],[1,"row","p-3"]],template:function(p,w){1&p&&(u.TgZ(0,"modal-material",0),u.NdJ("onOk",function(){return w.onOk()})("onCancel",function(){return w.dialogRef.close()}),u.TgZ(1,"content")(2,"div",1)(3,"h2"),u._uU(4,"Do you want to refresh your current app?"),u.qZA()()()()),2&p&&u.Q6J("config",w.config)},dependencies:[Ri.M]}),a})();var $i=g(2262),Yr=g(4911),co=g(8504),Xs=g(2438),Js=g(2096),ts=g(5211),eo=g(5592),ws=g(2420);const hi=new eo.y(ws.Z);var Bs=g(3019),ps=g(7398),wr=g(2181),br=g(4664),ns=g(3168),to=g(4674),Vs=g(4829),xs=g(9360);const fo={connector:()=>new Hi.x};function wo(b,a=fo){const{connector:c}=a;return(0,xs.e)((p,w)=>{const G=c();(0,Vs.Xf)(b(function uo(b){return new eo.y(a=>b.subscribe(a))}(G))).subscribe(w),w.add(p.subscribe(G))})}var jr=g(8180),Uo=g(9397),no=g(5177);const io="Service workers are disabled or not supported by this browser";class ms{constructor(a){if(this.serviceWorker=a,a){const p=(0,Xs.R)(a,"controllerchange").pipe((0,ps.U)(()=>a.controller)),w=(0,Yr.P)(()=>(0,Js.of)(a.controller)),G=(0,ts.z)(w,p);this.worker=G.pipe((0,wr.h)(Wt=>!!Wt)),this.registration=this.worker.pipe((0,br.w)(()=>a.getRegistration()));const ft=(0,Xs.R)(a,"message").pipe((0,ps.U)(Wt=>Wt.data)).pipe((0,wr.h)(Wt=>Wt&&Wt.type)).pipe(function ho(b){return b?a=>wo(b)(a):a=>function ra(b,a){const c=(0,to.m)(b)?b:()=>b;return(0,to.m)(a)?wo(a,{connector:c}):p=>new ns.c(p,c)}(new Hi.x)(a)}());ft.connect(),this.events=ft}else this.worker=this.events=this.registration=function jo(b){return(0,Yr.P)(()=>(0,co._)(new Error(b)))}(io)}postMessage(a,c){return this.worker.pipe((0,jr.q)(1),(0,Uo.b)(p=>{p.postMessage({action:a,...c})})).toPromise().then(()=>{})}postMessageWithOperation(a,c,p){const w=this.waitForOperationCompleted(p),G=this.postMessage(a,c);return Promise.all([G,w]).then(([,be])=>be)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(a){let c;return c="string"==typeof a?p=>p.type===a:p=>a.includes(p.type),this.events.pipe((0,wr.h)(c))}nextEventOfType(a){return this.eventsOfType(a).pipe((0,jr.q)(1))}waitForOperationCompleted(a){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,wr.h)(c=>c.nonce===a),(0,jr.q)(1),(0,ps.U)(c=>{if(void 0!==c.result)return c.result;throw new Error(c.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let ro=(()=>{var b;class a{get isEnabled(){return this.sw.isEnabled}constructor(p){if(this.sw=p,this.pushManager=null,this.subscriptionChanges=new Hi.x,!p.isEnabled)return this.messages=hi,this.notificationClicks=hi,void(this.subscription=hi);this.messages=this.sw.eventsOfType("PUSH").pipe((0,ps.U)(G=>G.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,ps.U)(G=>G.data)),this.pushManager=this.sw.registration.pipe((0,ps.U)(G=>G.pushManager));const w=this.pushManager.pipe((0,br.w)(G=>G.getSubscription()));this.subscription=(0,Bs.T)(w,this.subscriptionChanges)}requestSubscription(p){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(io));const w={userVisibleOnly:!0};let G=this.decodeBase64(p.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),be=new Uint8Array(new ArrayBuffer(G.length));for(let Ee=0;Ee<G.length;Ee++)be[Ee]=G.charCodeAt(Ee);return w.applicationServerKey=be,this.pushManager.pipe((0,br.w)(Ee=>Ee.subscribe(w)),(0,jr.q)(1)).toPromise().then(Ee=>(this.subscriptionChanges.next(Ee),Ee))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,jr.q)(1),(0,br.w)(w=>{if(null===w)throw new Error("Not subscribed to push notifications.");return w.unsubscribe().then(G=>{if(!G)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(io))}decodeBase64(p){return atob(p)}}return(b=a).\u0275fac=function(p){return new(p||b)(u.LFG(ms))},b.\u0275prov=u.Yz7({token:b,factory:b.\u0275fac}),a})(),h=(()=>{var b;class a{get isEnabled(){return this.sw.isEnabled}constructor(p){if(this.sw=p,!p.isEnabled)return this.versionUpdates=hi,this.available=hi,this.activated=hi,void(this.unrecoverable=hi);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,wr.h)(w=>"VERSION_READY"===w.type),(0,ps.U)(w=>({type:"UPDATE_AVAILABLE",current:w.currentVersion,available:w.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(io));const p=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:p},p)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(io));const p=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:p},p)}}return(b=a).\u0275fac=function(p){return new(p||b)(u.LFG(ms))},b.\u0275prov=u.Yz7({token:b,factory:b.\u0275fac}),a})();const I=new u.OlP("NGSW_REGISTER_SCRIPT");function ue(b,a,c,p){return()=>{if(!(0,N.NF)(p)||!("serviceWorker"in navigator)||!1===c.enabled)return;let w;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof c.registrationStrategy)w=c.registrationStrategy();else{const[be,...Ee]=(c.registrationStrategy||"registerWhenStable:30000").split(":");switch(be){case"registerImmediately":w=(0,Js.of)(null);break;case"registerWithDelay":w=x(+Ee[0]||0);break;case"registerWhenStable":w=Ee[0]?(0,Bs.T)(re(b),x(+Ee[0])):re(b);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${c.registrationStrategy}`)}}b.get(u.R0b).runOutsideAngular(()=>w.pipe((0,jr.q)(1)).subscribe(()=>navigator.serviceWorker.register(a,{scope:c.scope}).catch(be=>console.error("Service worker registration failed with:",be))))}}function x(b){return(0,Js.of)(null).pipe((0,no.g)(b))}function re(b){return b.get(u.z2F).isStable.pipe((0,wr.h)(c=>c))}function ke(b,a){return new ms((0,N.NF)(a)&&!1!==b.enabled?navigator.serviceWorker:void 0)}class Et{}function jt(b,a={}){return(0,u.MR2)([ro,h,{provide:I,useValue:b},{provide:Et,useValue:a},{provide:ms,useFactory:ke,deps:[Et,u.Lbi]},{provide:u.ip1,useFactory:ue,deps:[u.zs3,I,Et,u.Lbi],multi:!0}])}let Ln=(()=>{var b;class a{static register(p,w={}){return{ngModule:a,providers:[jt(p,w)]}}}return(b=a).\u0275fac=function(p){return new(p||b)},b.\u0275mod=u.oAB({type:b}),b.\u0275inj=u.cJS({providers:[ro,h]}),a})();var ei=g(7328);function Qn(b,a){return(c,p)=>!b.call(a,c,p)}var Si=g(9080),ii=g(4716),Bi=g(8251);function xr(b){return(0,xs.e)((a,c)=>{let p=!1,w=null,G=null;const be=()=>{if(G?.unsubscribe(),G=null,p){p=!1;const Ee=w;w=null,c.next(Ee)}};a.subscribe((0,Bi.x)(c,Ee=>{G?.unsubscribe(),p=!0,w=Ee,G=(0,Bi.x)(c,be,ws.Z),(0,Vs.Xf)(b(Ee)).subscribe(G)},()=>{be(),c.complete()},void 0,()=>{w=G=null}))})}var pr=g(3997),Ar=g(9862);function Or(b,a){1&b&&u.GkF(0)}function Zi(b,a){if(1&b&&u._UZ(0,"sk-cube-grid",4),2&b){const c=u.oxw(2);u.Q6J("backgroundColor",c.backgroundColor)}}function is(b,a){if(1&b&&u._UZ(0,"sk-chasing-dots",4),2&b){const c=u.oxw(2);u.Q6J("backgroundColor",c.backgroundColor)}}function gs(b,a){if(1&b&&u._UZ(0,"sk-double-bounce",4),2&b){const c=u.oxw(2);u.Q6J("backgroundColor",c.backgroundColor)}}function $n(b,a){if(1&b&&u._UZ(0,"sk-rotating-plane",4),2&b){const c=u.oxw(2);u.Q6J("backgroundColor",c.backgroundColor)}}function xo(b,a){if(1&b&&u._UZ(0,"sk-spinner-pulse",4),2&b){const c=u.oxw(2);u.Q6J("backgroundColor",c.backgroundColor)}}function so(b,a){if(1&b&&u._UZ(0,"sk-three-bounce",4),2&b){const c=u.oxw(2);u.Q6J("backgroundColor",c.backgroundColor)}}function mr(b,a){if(1&b&&u._UZ(0,"sk-wandering-cubes",4),2&b){const c=u.oxw(2);u.Q6J("backgroundColor",c.backgroundColor)}}function _a(b,a){if(1&b&&u._UZ(0,"sk-wave",4),2&b){const c=u.oxw(2);u.Q6J("backgroundColor",c.backgroundColor)}}const sa=function(b){return{"background-color":b}};function As(b,a){if(1&b&&(u.TgZ(0,"div",1),u.YNc(1,Or,1,0,"ng-container",2),u.YNc(2,Zi,1,1,"sk-cube-grid",3),u.YNc(3,is,1,1,"sk-chasing-dots",3),u.YNc(4,gs,1,1,"sk-double-bounce",3),u.YNc(5,$n,1,1,"sk-rotating-plane",3),u.YNc(6,xo,1,1,"sk-spinner-pulse",3),u.YNc(7,so,1,1,"sk-three-bounce",3),u.YNc(8,mr,1,1,"sk-wandering-cubes",3),u.YNc(9,_a,1,1,"sk-wave",3),u.qZA()),2&b){const c=u.oxw();u.Udp("opacity",c.opacity),u.ekj("backdrop",c.backdrop),u.Q6J("ngStyle",u.VKq(14,sa,c.backdrop?c.backdropBackgroundColor:"transparent")),u.xp6(1),u.Q6J("ngComponentOutlet",c.entryComponent),u.xp6(1),u.Q6J("ngIf",c.spinner===c.spinkit.skCubeGrid),u.xp6(1),u.Q6J("ngIf",c.spinner===c.spinkit.skChasingDots),u.xp6(1),u.Q6J("ngIf",c.spinner===c.spinkit.skDoubleBounce),u.xp6(1),u.Q6J("ngIf",c.spinner===c.spinkit.skRotatingPlane),u.xp6(1),u.Q6J("ngIf",c.spinner===c.spinkit.skSpinnerPulse),u.xp6(1),u.Q6J("ngIf",c.spinner===c.spinkit.skThreeBounce),u.xp6(1),u.Q6J("ngIf",c.spinner===c.spinkit.skWanderingCubes),u.xp6(1),u.Q6J("ngIf",c.spinner===c.spinkit.skWave)}}let zi=(()=>{var b;class a{}return(b=a).\u0275fac=function(p){return new(p||b)},b.\u0275dir=u.lG2({type:b,inputs:{backgroundColor:"backgroundColor"}}),a})(),va=(()=>{var b;class a extends zi{}return(b=a).\u0275fac=function(){let c;return function(w){return(c||(c=u.n5z(b)))(w||b)}}(),b.\u0275cmp=u.Xpm({type:b,selectors:[["sk-chasing-dots"]],features:[u.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(p,w){1&p&&(u.TgZ(0,"div",0),u._UZ(1,"div",1)(2,"div",2),u.qZA()),2&p&&(u.ekj("colored",!w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),a})(),Ao=(()=>{var b;class a extends zi{}return(b=a).\u0275fac=function(){let c;return function(w){return(c||(c=u.n5z(b)))(w||b)}}(),b.\u0275cmp=u.Xpm({type:b,selectors:[["sk-cube-grid"]],features:[u.qOj],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(p,w){1&p&&(u.TgZ(0,"div",0),u._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),u.qZA()),2&p&&(u.ekj("colored",!w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),a})(),To=(()=>{var b;class a extends zi{}return(b=a).\u0275fac=function(){let c;return function(w){return(c||(c=u.n5z(b)))(w||b)}}(),b.\u0275cmp=u.Xpm({type:b,selectors:[["sk-double-bounce"]],features:[u.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(p,w){1&p&&(u.TgZ(0,"div",0),u._UZ(1,"div",1)(2,"div",2),u.qZA()),2&p&&(u.ekj("colored",!w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),a})(),_s=(()=>{var b;class a extends zi{}return(b=a).\u0275fac=function(){let c;return function(w){return(c||(c=u.n5z(b)))(w||b)}}(),b.\u0275cmp=u.Xpm({type:b,selectors:[["sk-rotating-plane"]],features:[u.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(p,w){1&p&&u._UZ(0,"div",0),2&p&&u.Udp("background-color",w.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),a})(),ya=(()=>{var b;class a extends zi{}return(b=a).\u0275fac=function(){let c;return function(w){return(c||(c=u.n5z(b)))(w||b)}}(),b.\u0275cmp=u.Xpm({type:b,selectors:[["sk-spinner-pulse"]],features:[u.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(p,w){1&p&&u._UZ(0,"div",0),2&p&&u.Udp("background-color",w.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),a})(),po=(()=>{var b;class a extends zi{}return(b=a).\u0275fac=function(){let c;return function(w){return(c||(c=u.n5z(b)))(w||b)}}(),b.\u0275cmp=u.Xpm({type:b,selectors:[["sk-three-bounce"]],features:[u.qOj],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(p,w){1&p&&(u.TgZ(0,"div",0),u._UZ(1,"div",1)(2,"div",2)(3,"div",3),u.qZA()),2&p&&(u.ekj("colored",!w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),a})(),rs=(()=>{var b;class a extends zi{}return(b=a).\u0275fac=function(){let c;return function(w){return(c||(c=u.n5z(b)))(w||b)}}(),b.\u0275cmp=u.Xpm({type:b,selectors:[["sk-wandering-cubes"]],features:[u.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(p,w){1&p&&(u.TgZ(0,"div",0),u._UZ(1,"div",1)(2,"div",2),u.qZA()),2&p&&(u.ekj("colored",!w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),a})(),oa=(()=>{var b;class a extends zi{}return(b=a).\u0275fac=function(){let c;return function(w){return(c||(c=u.n5z(b)))(w||b)}}(),b.\u0275cmp=u.Xpm({type:b,selectors:[["sk-wave"]],features:[u.qOj],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(p,w){1&p&&(u.TgZ(0,"div",0),u._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),u.qZA()),2&p&&(u.ekj("colored",!w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor),u.xp6(1),u.Udp("background-color",w.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),a})();const mo={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};let bn=(()=>{var b;class a{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new ei.t(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(p){this._filteredMethods=p}set filteredHeaders(p){this._filteredHeaders=p}set forceByPass(p){this._forceByPass=p}shouldBypassUrl(p){return this._filteredUrlPatterns.some(w=>w.test(p))}shouldBypassMethod(p){return this._filteredMethods.some(w=>w.toUpperCase()===p.method.toUpperCase())}shouldBypassHeader(p){return this._filteredHeaders.some(w=>p.headers.has(w))}shouldBypass(p){return this._forceByPass||this.shouldBypassUrl(p.urlWithParams)||this.shouldBypassMethod(p)||this.shouldBypassHeader(p)}intercept(p,w){const G=this.shouldBypass(p);return G||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),w.handle(p).pipe((0,ii.x)(()=>{G||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return(b=a).\u0275fac=function(p){return new(p||b)},b.\u0275prov=u.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),a})();const Ho=[{provide:Ar.TP,useExisting:bn,multi:!0}];let ba=(()=>{var b;class a{constructor(p){this.pendingRequestsInterceptor=p,this._visibility$=new ei.t(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return(b=a).\u0275fac=function(p){return new(p||b)(u.LFG(bn))},b.\u0275prov=u.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),a})(),go=(()=>{var b;class a{constructor(p,w){this.pendingRequestsInterceptor=p,this.spinnerVisibility=w,this.spinkit=mo,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=mo.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[p,w]=function Nn(b,a,c){return[(0,wr.h)(a,c)((0,Vs.Xf)(b)),(0,wr.h)(Qn(a,c))((0,Vs.Xf)(b))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,G=>G);this.isVisible$=(0,Bs.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,br.w)(()=>p.pipe(xr(()=>(0,Si.H)(this.debounceDelay))))),p.pipe((0,br.w)(()=>w.pipe(xr(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,pr.x)(),(0,Uo.b)(G=>this.updateExpirationDelay(G)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(p=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(p)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(p){p&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,Si.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return(b=a).\u0275fac=function(p){return new(p||b)(u.Y36(bn),u.Y36(ba))},b.\u0275cmp=u.Xpm({type:b,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(p,w){1&p&&(u.YNc(0,As,10,16,"div",0),u.ALo(1,"async")),2&p&&u.Q6J("ngIf",u.lcZ(1,1,w.isVisible$))},dependencies:[N.$G,N.O5,N.PC,Ao,va,To,_s,ya,po,rs,oa,N.Ov],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),a})(),tr=(()=>{var b;class a{static forRoot(){return{ngModule:a,providers:[Ho]}}}return(b=a).\u0275fac=function(p){return new(p||b)},b.\u0275mod=u.oAB({type:b}),b.\u0275inj=u.cJS({imports:[N.ez]}),a})(),aa=(()=>{var b;class a{constructor(p,w,G,be,Ee){this.route=p,this.activateRoute=w,this.queryParamService=G,this.matDialog=Ee,this.destroy$=new Hi.x,be.versionUpdates.subscribe(it=>{be.activateUpdate().then(()=>this.updateApp(it))})}updateApp(p){"VERSION_READY"==p.type&&this.matDialog.open(Ds,{disableClose:!0})}ngOnInit(){this.getLastRouteEvent()}getLastRouteEvent(){this.route.events.pipe((0,yr.R)(this.destroy$)).subscribe(p=>{p instanceof qi.m2&&this.getParam()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}getParam(){this.activateRoute.queryParamMap.pipe((0,yr.R)(this.destroy$)).subscribe(p=>{if(p){let w=p.get("ID"),G=p.get("Number"),be=p.get("Outlet");this.queryParamService.setState({ID:w,billNumber:G,outletName:be})}})}}return(b=a).\u0275fac=function(p){return new(p||b)(u.Y36(qi.F0),u.Y36(qi.gz),u.Y36($i.U),u.Y36(h),u.Y36(hr.uw))},b.\u0275cmp=u.Xpm({type:b,selectors:[["app-root"]],decls:2,vars:0,template:function(p,w){1&p&&u._UZ(0,"ng-http-loader")(1,"router-outlet")},dependencies:[qi.lC,go]}),a})();var gr=g(9049);let Ts=(()=>{var b;class a{constructor(p,w){this._authService=p,this._router=w}canActivate(p,w){return!!this._authService.isAuthentication()||(this._router.navigate([""]),!1)}}return(b=a).\u0275fac=function(p){return new(p||b)(u.LFG(gr.$),u.LFG(qi.F0))},b.\u0275prov=u.Yz7({token:b,factory:b.\u0275fac}),a})();function So(b){this.message=b}(So.prototype=new Error).name="InvalidCharacterError";var Ea=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(b){var a=String(b).replace(/=+$/,"");if(a.length%4==1)throw new So("'atob' failed: The string to be decoded is not correctly encoded.");for(var c,p,w=0,G=0,be="";p=a.charAt(G++);~p&&(c=w%4?64*c+p:p,w++%4)?be+=String.fromCharCode(255&c>>(-2*w&6)):0)p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p);return be};function $o(b){this.message=b}($o.prototype=new Error).name="InvalidTokenError";const Pt=function Ca(b,a){if("string"!=typeof b)throw new $o("Invalid token specified");var c=!0===(a=a||{}).header?0:1;try{return JSON.parse(function Va(b){var a=b.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(Ea(a).replace(/(.)/g,function(p,w){var G=w.charCodeAt(0).toString(16).toUpperCase();return G.length<2&&(G="0"+G),"%"+G}))}catch{return Ea(a)}}(b.split(".")[c]))}catch(p){throw new $o("Invalid token specified: "+p.message)}};var qn=g(6013);const Us_firebaseConfig={apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"};var la=g(631),Gi=g(9229);const ca=["domainAutoFocus"],_o=["passAutoFocus"];function ss(b,a){if(1&b){const c=u.EpF();u.ynx(0),u.TgZ(1,"div",21)(2,"div",22)(3,"form")(4,"div",23)(5,"h2",24),u._uU(6,"Sign in"),u.qZA(),u.TgZ(7,"div",25)(8,"div",26)(9,"div",27)(10,"span",28),u._UZ(11,"i",29),u.qZA(),u.TgZ(12,"input",30,31),u.NdJ("ngModelChange",function(w){u.CHM(c);const G=u.oxw();return u.KtG(G.subdomain=w)}),u.qZA()()(),u.TgZ(14,"select",32),u.NdJ("ngModelChange",function(w){u.CHM(c);const G=u.oxw();return u.KtG(G.domain=w)}),u.TgZ(15,"option",33),u._uU(16,".dealpos.co.id"),u.qZA(),u.TgZ(17,"option",34),u._uU(18,".dealpos.net"),u.qZA(),u.TgZ(19,"option",35),u._uU(20,".dealpos.com"),u.qZA()()()(),u.TgZ(21,"div",36)(22,"button",37),u.NdJ("click",function(){u.CHM(c);const w=u.oxw();return u.KtG(w.onNextState())}),u._uU(23," Next "),u.qZA()()()()(),u.BQk()}if(2&b){const c=u.oxw();u.xp6(12),u.Q6J("ngModel",c.subdomain),u.xp6(2),u.Q6J("ngModel",c.domain)}}function zo(b,a){1&b&&(u.TgZ(0,"p"),u._uU(1," Username is required "),u.qZA())}function Mo(b,a){if(1&b&&(u.TgZ(0,"div",61),u.YNc(1,zo,2,0,"p",62),u.qZA()),2&b){u.oxw();const c=u.MAs(13);u.xp6(1),u.Q6J("ngIf",c.errors.required)}}const ua=function(b,a){return{"fa-eye":b,"fa-eye-slash":a}};function Ua(b,a){if(1&b){const c=u.EpF();u.TgZ(0,"i",63),u.NdJ("click",function(){u.CHM(c);const w=u.oxw(2);return u.KtG(w.hideShowPassword())}),u.qZA()}if(2&b){const c=u.oxw(2);u.Q6J("ngClass",u.WLB(1,ua,"eye-off"==c.passwordIcon,"eye"==c.passwordIcon))}}function Go(b,a){1&b&&(u.TgZ(0,"p"),u._uU(1," Password is required "),u.qZA())}function Tr(b,a){if(1&b&&(u.TgZ(0,"div",61),u.YNc(1,Go,2,0,"p",62),u.qZA()),2&b){u.oxw();const c=u.MAs(19);u.xp6(1),u.Q6J("ngIf",c.errors.required)}}function os(b,a){if(1&b){const c=u.EpF();u.TgZ(0,"div",21)(1,"div",22)(2,"div",38)(3,"h2",24),u._uU(4,"Sign in"),u.qZA(),u.TgZ(5,"div",39),u._uU(6," to "),u.TgZ(7,"h6",40),u._uU(8),u.qZA(),u.TgZ(9,"i",41),u.NdJ("click",function(){u.CHM(c);const w=u.oxw();return u.KtG(w.onEditDomain())}),u.qZA()()(),u.TgZ(10,"form",42)(11,"div",43)(12,"input",44,45),u.NdJ("ngModelChange",function(w){u.CHM(c);const G=u.oxw();return u.KtG(G.username=w)}),u.qZA(),u.TgZ(14,"label",46),u._uU(15,"Username"),u.qZA(),u.YNc(16,Mo,2,1,"div",47),u.qZA(),u.TgZ(17,"div",48)(18,"input",49,50),u.NdJ("ngModelChange",function(w){u.CHM(c);const G=u.oxw();return u.KtG(G.password=w)}),u.qZA(),u.TgZ(20,"label",51),u._uU(21,"Password"),u.qZA(),u.YNc(22,Ua,1,4,"i",52),u.YNc(23,Tr,2,1,"div",47),u.qZA(),u.TgZ(24,"div",53)(25,"a",54),u._uU(26,"Forgot Password?"),u.qZA()(),u.TgZ(27,"div",55)(28,"button",56),u.NdJ("click",function(){u.CHM(c);const w=u.oxw();return u.KtG(w.login())}),u._uU(29," Log in "),u.qZA()(),u.TgZ(30,"div",57),u._UZ(31,"hr"),u.TgZ(32,"span",58),u._uU(33,"or"),u.qZA(),u._UZ(34,"hr"),u.qZA(),u.TgZ(35,"div")(36,"button",59),u.NdJ("click",function(w){u.CHM(c);const G=u.oxw();return u.KtG(G.onLoginByGoogle(w))}),u._UZ(37,"i",60),u._uU(38," Sign In with Google "),u.qZA()()()()()}if(2&b){const c=u.MAs(13),p=u.MAs(19),w=u.oxw();u.xp6(8),u.AsE(" (",w.subdomain,"",w.domain,") "),u.xp6(4),u.Q6J("ngModel",w.username),u.xp6(4),u.Q6J("ngIf",c.invalid&&(c.dirty||c.touched)),u.xp6(2),u.Q6J("type",w.passwordType)("ngModel",w.password),u.xp6(4),u.Q6J("ngIf",""!=w.password),u.xp6(1),u.Q6J("ngIf",p.invalid&&(p.dirty||p.touched)),u.xp6(2),u.Q6J("href","https://"+w.subdomain+w.domain+"/ForgotPassword",u.LSH)}}const js=[{path:"",component:aa,children:[{path:"",component:(()=>{var b;class a{constructor(p,w,G,be,Ee){this._httpService=p,this.toastr=w,this.auth=G,this.elementRef=be,this.cdr=Ee,this.version="1.5.9",this.domain=".dealpos.co.id",this.password="",this.passwordType="password",this.passwordIcon="eye-off",this.loginState="FORM_DOMAIN"}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#edefff"}ngAfterViewInit(){this.initLoginForm()}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}onEditDomain(){this.loginState="FORM_DOMAIN"}initLoginForm(){let p=this.auth.isLoginFormExist();if(this.setAutoFocusDomain(),p){this.username=this.auth.getUsername(),this.subdomain=this.auth.getDomain().split(".dealpos")[0];const w=this.auth.getDomain().split(".dealpos")[1];this.domain=".co.id"==w?".dealpos.co.id":".net"==w?".dealpos.net":".dealpos.com",this.setAutoFocusPass(),this.cdr.detectChanges()}}setAutoFocusDomain(){this.domainElementRef?.nativeElement.focus()}setAutoFocusPass(){this.passElementRef?.nativeElement.focus()}hideShowPassword(){this.passwordType="text"===this.passwordType?"password":"text",this.passwordIcon="eye-off"===this.passwordIcon?"eye":"eye-off"}onNextState(){qn.gT.IsEmpty(this.subdomain)?this.toastr.warning("Account Domain is required","Warning"):this.loginState="FORM_AUTH"}login(){var p={Username:this.username,Password:this.password,Host:this.subdomain+(this.subdomain.includes("localhost")?"":this.domain)};this._httpService.post("/api/Token/Login",JSON.stringify(p)).subscribe(w=>{if(null!=w.access_token||null!=w.access_token){let G=w.access_token,be=w.expiredAt;localStorage.setItem("Token",G),localStorage.setItem("ExpireDate",be),this.auth.saveLoginForm(this.subdomain+(this.subdomain.includes("localhost")?"":this.domain),this.username);let it=Pt(G)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],ft=it?it.find(Wt=>"Products"==Wt||"Prod"==Wt):null;this.auth.setRoles(it),"Products"==ft||"Prod"==ft?this.auth.login("/pages"):this.toastr.error("Require products role to access this feature!","Error")}},w=>{console.error(w)})}onLoginByGoogle(p){this.auth.loginWithGoogle(p,`${this.subdomain}${this.domain}`).subscribe(G=>{console.log(G);let Ee=Pt(G.access_token)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];Ee&&Ee.find(ft=>"Products"==ft||"Prod"==ft),this.auth.setRoles(Ee),this.auth.login("/pages")})}}return(b=a).\u0275fac=function(p){return new(p||b)(u.Y36(la.O),u.Y36(Gi._W),u.Y36(gr.$),u.Y36(u.SBq),u.Y36(u.sBO))},b.\u0275cmp=u.Xpm({type:b,selectors:[["app-login"]],viewQuery:function(p,w){if(1&p&&(u.Gf(ca,5),u.Gf(_o,5)),2&p){let G;u.iGM(G=u.CRH())&&(w.domainElementRef=G.first),u.iGM(G=u.CRH())&&(w.passElementRef=G.first)}},decls:32,vars:4,consts:[[1,"container"],[1,"row","mt-5","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","my-5","py-5","robotoslab","d-none","d-md-block"],["src","https://res.cloudinary.com/dealpos/image/upload/w_300/v1615189586/Barcode/barcode.png","alt","integration-image",1,"img-fluid","mt-5","pt-5"],[1,"col-12","col-md-5","order-first","order-md-last"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-md-none"],[4,"ngIf","ngIfElse"],["USR_PASS",""],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-1rem","me-3"],["target","_blank","href","https://www.dealpos.com"],["src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid"],["href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete","target","_blank"],[1,"pt-1rem","fst-italic"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"row","justify-content-between","align-items-center"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],[1,"fw-normal"],["href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete","target","_blank",2,"text-decoration","none"],[1,"card"],[1,"card-body","p-8"],[1,"card-title"],[1,"fw-normal","font-xl","robotoslab"],[1,"d-flex","align-items-center"],[1,"mt-7","rounded-end-0",2,"width","200%"],[1,"input-group","mb-3"],["id","basic-addon1",1,"input-group-text","border-end-0","rounded-start"],[1,"fa-solid","fa-cloud"],["type","text","required","","name","subdomain","id","inputHost","placeholder","Store Address",1,"form-control","text-start","subdomain-input","border-start-0","fs-6",2,"height","3.625rem","padding-left","0px",3,"ngModel","ngModelChange"],["subdomainEl",""],["name","domainOption",1,"form-select","form-control","border-start-0","mt-4","rounded-end","rounded-start-0","domain-option","fs-6",2,"height","3.625rem",3,"ngModel","ngModelChange"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],[1,"w-100","mt-10"],["name","next","data-cy","next","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"card-title","d-flex","align-items-center"],[1,"pt-2","ms-2"],[1,"fw-bold","me-2","robotoslab","d-inline-block","text-primary"],[1,"fa-solid","fa-edit","link-primary","fs-5","pointer",3,"click"],[1,"mt-10"],[1,"form-label-group"],["autofocus","","type","text","name","Username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start","fs-6",3,"ngModel","ngModelChange"],["usernameCtrl","ngModel"],["for","inputUsername",1,"text-start","fs-6"],["class","text-danger",4,"ngIf"],[1,"form-label-group","mb-5","mb-sm-1"],["name","Password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start","fs-6",3,"type","ngModel","ngModelChange"],["passwordCtrl","ngModel"],["for","inputPassword",1,"text-start","fs-6"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"text-end"],[3,"href"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"my-5","text-muted"],[1,"btn","btn-social-login","text-primary","w-100","fw-bold","fs-6","robotoslab",3,"click"],[1,"fa-brands","fa-google"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(p,w){if(1&p&&(u.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),u._uU(4,"DealPOS - Barcode"),u.qZA(),u._UZ(5,"img",4),u.qZA(),u.TgZ(6,"div",5)(7,"h1",6),u._uU(8,"DealPOS - Barcode"),u.qZA(),u.YNc(9,ss,24,2,"ng-container",7),u.YNc(10,os,39,9,"ng-template",null,8,u.W1O),u.qZA(),u.TgZ(12,"div",9)(13,"p",10),u._uU(14,"Powered by : "),u.qZA(),u.TgZ(15,"a",11),u._UZ(16,"img",12),u.qZA(),u.TgZ(17,"a",13)(18,"p",14),u._uU(19),u.qZA()()()()(),u.TgZ(20,"footer",15)(21,"div",16)(22,"div",17)(23,"p",10),u._uU(24,"Powered by : "),u.qZA(),u.TgZ(25,"a",11),u._UZ(26,"img",12),u.qZA()(),u.TgZ(27,"div",18)(28,"h5",19)(29,"a",20)(30,"p",14),u._uU(31),u.qZA()()()()()()),2&p){const G=u.MAs(11);u.xp6(9),u.Q6J("ngIf","FORM_DOMAIN"==w.loginState)("ngIfElse",G),u.xp6(10),u.hij("Version ",w.version,""),u.xp6(12),u.hij("Version ",w.version,"")}},dependencies:[N.mk,N.O5,ee._Y,ee.YN,ee.Kr,ee.Fj,ee.EJ,ee.JJ,ee.JL,ee.Q7,ee.On,ee.F],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:90%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:2.5rem}}@media (min-width: 1200px){.container[_ngcontent-%COMP%]{max-width:70%}.big-display[_ngcontent-%COMP%]{font-size:3.2rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}"]}),a})()},{path:"pages",loadChildren:()=>g.e(383).then(g.bind(g,2383)).then(b=>b.PagesModule),canActivate:[Ts]},{path:"",redirectTo:"",pathMatch:"full"}]}];let Ss=(()=>{var b;class a{}return(b=a).\u0275fac=function(p){return new(p||b)},b.\u0275mod=u.oAB({type:b}),b.\u0275inj=u.cJS({imports:[N.ez,ee.u5,kt,qi.Bz.forRoot(js),qi.Bz]}),a})();const f=["custom-toast-component",""];function v(b,a){if(1&b){const c=u.EpF();u.TgZ(0,"a",10),u.NdJ("click",function(){u.CHM(c);const w=u.oxw(2);return u.KtG(w.remove())}),u._uU(1," x "),u.qZA()}}function D(b,a){if(1&b&&(u.TgZ(0,"div",6)(1,"div",7)(2,"div")(3,"h4"),u._uU(4),u.qZA()()(),u.TgZ(5,"div",8),u.YNc(6,v,2,0,"a",9),u.qZA()()),2&b){const c=u.oxw();u.Udp("display","inactive"===c.state.value?"none":""),u.xp6(2),u.Tol(c.options.titleClass),u.uIk("aria-label",c.title),u.xp6(2),u.Oqu(c.title),u.xp6(2),u.Q6J("ngIf",c.options.closeButton)}}const _=function(b){return{notitle:b}};function T(b,a){if(1&b&&u._UZ(0,"div",11),2&b){const c=u.oxw();u.Tol(c.options.messageClass),u.Q6J("ngClass",u.VKq(4,_,null==c.title))("innerHTML",c.message,u.oJD)}}function Z(b,a){if(1&b&&(u.TgZ(0,"div",12),u._uU(1),u.qZA()),2&b){const c=u.oxw();u.Tol(c.options.messageClass),u.Q6J("ngClass",u.VKq(5,_,null==c.title)),u.uIk("aria-label",c.message),u.xp6(1),u.hij(" ",c.message," ")}}function le(b,a){if(1&b){const c=u.EpF();u.TgZ(0,"a",10),u.NdJ("click",function(){u.CHM(c);const w=u.oxw();return u.KtG(w.remove())}),u._uU(1," x "),u.qZA()}}function rt(b,a){if(1&b&&(u.TgZ(0,"div"),u._UZ(1,"div",13),u.qZA()),2&b){const c=u.oxw();u.xp6(1),u.Udp("width",c.width+"%")}}let Bt=(()=>{var b;class a extends Gi.FN{constructor(p,w){super(p,w),this.toastrService=p,this.toastPackage=w}ngOnInit(){}action(p){return p.stopPropagation(),this.toastPackage.triggerAction(),!1}}return(b=a).\u0275fac=function(p){return new(p||b)(u.Y36(Gi._W),u.Y36(Gi.PR))},b.\u0275cmp=u.Xpm({type:b,selectors:[["","custom-toast-component",""]],features:[u.qOj],attrs:f,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","row toast-body","role","alert","aria-live","polite",3,"ngClass","class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0"],[1,"col-auto","mt-5","pr-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body",3,"ngClass"],[1,"toast-progress"]],template:function(p,w){1&p&&(u.TgZ(0,"div",0),u.YNc(1,D,7,7,"div",1),u.YNc(2,T,1,6,"div",2),u.YNc(3,Z,2,7,"div",3),u.YNc(4,le,2,0,"a",4),u.YNc(5,rt,2,2,"div",5),u.qZA()),2&p&&(u.xp6(1),u.Q6J("ngIf",w.title),u.xp6(1),u.Q6J("ngIf",w.message&&w.options.enableHtml),u.xp6(1),u.Q6J("ngIf",w.message&&!w.options.enableHtml),u.xp6(1),u.Q6J("ngIf",w.options.closeButton&&null==w.title),u.xp6(1),u.Q6J("ngIf",w.options.progressBar))},dependencies:[N.mk,N.O5],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:solid;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding-top:.7rem;padding-bottom:.7rem}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button-custom[_ngcontent-%COMP%]{right:.2em!important;top:-1.3em!important}.toast-close-button-notitle[_ngcontent-%COMP%]{right:.1em!important;top:-1.3em!important}"],data:{animation:[(0,te.X$)("flyInOut",[(0,te.SB)("inactive",(0,te.oB)({opacity:0})),(0,te.eR)("inactive => active",(0,te.jt)("400ms ease-out",(0,te.F4)([(0,te.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,te.oB)({transform:"skewX(20deg)",opacity:1}),(0,te.oB)({transform:"skewX(-5deg)",opacity:1}),(0,te.oB)({transform:"none",opacity:1})]))),(0,te.eR)("active => removed",(0,te.jt)("400ms ease-out",(0,te.F4)([(0,te.oB)({opacity:1}),(0,te.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}}),a})();var Ct=g(4007);let rn=(()=>{var b;class a{}return(b=a).\u0275fac=function(p){return new(p||b)},b.\u0275mod=u.oAB({type:b,bootstrap:[aa]}),b.\u0275inj=u.cJS({providers:[Ts],imports:[r.b2,Ss,kt,Ar.JF,Gi.Rh.forRoot({toastComponent:Bt,positionClass:"toast-bottom-right",closeButton:!0}),tr.forRoot(),Ln.register("ngsw-worker.js",{enabled:true,registrationStrategy:"registerImmediately"}),hr.Is,Ct.m,B.hO.initializeApp(Us_firebaseConfig),$.ww]}),a})();(0,u.G48)(),r.q6().bootstrapModule(rn).catch(b=>console.error(b))},5619:(It,Me,g)=>{g.d(Me,{X:()=>u});var r=g(8645);class u extends r.x{constructor($){super(),this._value=$}get value(){return this.getValue()}_subscribe($){const N=super._subscribe($);return!N.closed&&$.next(this._value),N}getValue(){const{hasError:$,thrownError:N,_value:ee}=this;if($)throw N;return this._throwIfClosed(),ee}next($){super.next(this._value=$)}}},5592:(It,Me,g)=>{g.d(Me,{y:()=>fe});var r=g(305),u=g(7394),B=g(4850),$=g(8407),N=g(2653),ee=g(4674),te=g(1441);let fe=(()=>{class me{constructor(Ne){Ne&&(this._subscribe=Ne)}lift(Ne){const nt=new me;return nt.source=this,nt.operator=Ne,nt}subscribe(Ne,nt,we){const Be=function q(me){return me&&me instanceof r.Lv||function H(me){return me&&(0,ee.m)(me.next)&&(0,ee.m)(me.error)&&(0,ee.m)(me.complete)}(me)&&(0,u.Nn)(me)}(Ne)?Ne:new r.Hp(Ne,nt,we);return(0,te.x)(()=>{const{operator:Xe,source:Ge}=this;Be.add(Xe?Xe.call(Be,Ge):Ge?this._subscribe(Be):this._trySubscribe(Be))}),Be}_trySubscribe(Ne){try{return this._subscribe(Ne)}catch(nt){Ne.error(nt)}}forEach(Ne,nt){return new(nt=ne(nt))((we,Be)=>{const Xe=new r.Hp({next:Ge=>{try{Ne(Ge)}catch(at){Be(at),Xe.unsubscribe()}},error:Be,complete:we});this.subscribe(Xe)})}_subscribe(Ne){var nt;return null===(nt=this.source)||void 0===nt?void 0:nt.subscribe(Ne)}[B.L](){return this}pipe(...Ne){return(0,$.U)(Ne)(this)}toPromise(Ne){return new(Ne=ne(Ne))((nt,we)=>{let Be;this.subscribe(Xe=>Be=Xe,Xe=>we(Xe),()=>nt(Be))})}}return me.create=Ie=>new me(Ie),me})();function ne(me){var Ie;return null!==(Ie=me??N.config.Promise)&&void 0!==Ie?Ie:Promise}},7328:(It,Me,g)=>{g.d(Me,{t:()=>B});var r=g(8645),u=g(4552);class B extends r.x{constructor(N=1/0,ee=1/0,te=u.l){super(),this._bufferSize=N,this._windowTime=ee,this._timestampProvider=te,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ee===1/0,this._bufferSize=Math.max(1,N),this._windowTime=Math.max(1,ee)}next(N){const{isStopped:ee,_buffer:te,_infiniteTimeWindow:fe,_timestampProvider:ne,_windowTime:H}=this;ee||(te.push(N),!fe&&te.push(ne.now()+H)),this._trimBuffer(),super.next(N)}_subscribe(N){this._throwIfClosed(),this._trimBuffer();const ee=this._innerSubscribe(N),{_infiniteTimeWindow:te,_buffer:fe}=this,ne=fe.slice();for(let H=0;H<ne.length&&!N.closed;H+=te?1:2)N.next(ne[H]);return this._checkFinalizedStatuses(N),ee}_trimBuffer(){const{_bufferSize:N,_timestampProvider:ee,_buffer:te,_infiniteTimeWindow:fe}=this,ne=(fe?1:2)*N;if(N<1/0&&ne<te.length&&te.splice(0,te.length-ne),!fe){const H=ee.now();let q=0;for(let me=1;me<te.length&&te[me]<=H;me+=2)q=me;q&&te.splice(0,q+1)}}}},8645:(It,Me,g)=>{g.d(Me,{x:()=>te});var r=g(5592),u=g(7394);const $=(0,g(2306).d)(ne=>function(){ne(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var N=g(9039),ee=g(1441);let te=(()=>{class ne extends r.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(q){const me=new fe(this,this);return me.operator=q,me}_throwIfClosed(){if(this.closed)throw new $}next(q){(0,ee.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const me of this.currentObservers)me.next(q)}})}error(q){(0,ee.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=q;const{observers:me}=this;for(;me.length;)me.shift().error(q)}})}complete(){(0,ee.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:q}=this;for(;q.length;)q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var q;return(null===(q=this.observers)||void 0===q?void 0:q.length)>0}_trySubscribe(q){return this._throwIfClosed(),super._trySubscribe(q)}_subscribe(q){return this._throwIfClosed(),this._checkFinalizedStatuses(q),this._innerSubscribe(q)}_innerSubscribe(q){const{hasError:me,isStopped:Ie,observers:Ne}=this;return me||Ie?u.Lc:(this.currentObservers=null,Ne.push(q),new u.w0(()=>{this.currentObservers=null,(0,N.P)(Ne,q)}))}_checkFinalizedStatuses(q){const{hasError:me,thrownError:Ie,isStopped:Ne}=this;me?q.error(Ie):Ne&&q.complete()}asObservable(){const q=new r.y;return q.source=this,q}}return ne.create=(H,q)=>new fe(H,q),ne})();class fe extends te{constructor(H,q){super(),this.destination=H,this.source=q}next(H){var q,me;null===(me=null===(q=this.destination)||void 0===q?void 0:q.next)||void 0===me||me.call(q,H)}error(H){var q,me;null===(me=null===(q=this.destination)||void 0===q?void 0:q.error)||void 0===me||me.call(q,H)}complete(){var H,q;null===(q=null===(H=this.destination)||void 0===H?void 0:H.complete)||void 0===q||q.call(H)}_subscribe(H){var q,me;return null!==(me=null===(q=this.source)||void 0===q?void 0:q.subscribe(H))&&void 0!==me?me:u.Lc}}},305:(It,Me,g)=>{g.d(Me,{Hp:()=>we,Lv:()=>me});var r=g(4674),u=g(7394),B=g(2653),$=g(3894),N=g(2420);const ee=ne("C",void 0,void 0);function ne(J,Te,he){return{kind:J,value:Te,error:he}}var H=g(7599),q=g(1441);class me extends u.w0{constructor(Te){super(),this.isStopped=!1,Te?(this.destination=Te,(0,u.Nn)(Te)&&Te.add(this)):this.destination=at}static create(Te,he,_e){return new we(Te,he,_e)}next(Te){this.isStopped?Ge(function fe(J){return ne("N",J,void 0)}(Te),this):this._next(Te)}error(Te){this.isStopped?Ge(function te(J){return ne("E",void 0,J)}(Te),this):(this.isStopped=!0,this._error(Te))}complete(){this.isStopped?Ge(ee,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Te){this.destination.next(Te)}_error(Te){try{this.destination.error(Te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ie=Function.prototype.bind;function Ne(J,Te){return Ie.call(J,Te)}class nt{constructor(Te){this.partialObserver=Te}next(Te){const{partialObserver:he}=this;if(he.next)try{he.next(Te)}catch(_e){Be(_e)}}error(Te){const{partialObserver:he}=this;if(he.error)try{he.error(Te)}catch(_e){Be(_e)}else Be(Te)}complete(){const{partialObserver:Te}=this;if(Te.complete)try{Te.complete()}catch(he){Be(he)}}}class we extends me{constructor(Te,he,_e){let Ke;if(super(),(0,r.m)(Te)||!Te)Ke={next:Te??void 0,error:he??void 0,complete:_e??void 0};else{let qe;this&&B.config.useDeprecatedNextContext?(qe=Object.create(Te),qe.unsubscribe=()=>this.unsubscribe(),Ke={next:Te.next&&Ne(Te.next,qe),error:Te.error&&Ne(Te.error,qe),complete:Te.complete&&Ne(Te.complete,qe)}):Ke=Te}this.destination=new nt(Ke)}}function Be(J){B.config.useDeprecatedSynchronousErrorHandling?(0,q.O)(J):(0,$.h)(J)}function Ge(J,Te){const{onStoppedNotification:he}=B.config;he&&H.z.setTimeout(()=>he(J,Te))}const at={closed:!0,next:N.Z,error:function Xe(J){throw J},complete:N.Z}},7394:(It,Me,g)=>{g.d(Me,{Lc:()=>ee,w0:()=>N,Nn:()=>te});var r=g(4674);const B=(0,g(2306).d)(ne=>function(q){ne(this),this.message=q?`${q.length} errors occurred during unsubscription:\n${q.map((me,Ie)=>`${Ie+1}) ${me.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=q});var $=g(9039);class N{constructor(H){this.initialTeardown=H,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let H;if(!this.closed){this.closed=!0;const{_parentage:q}=this;if(q)if(this._parentage=null,Array.isArray(q))for(const Ne of q)Ne.remove(this);else q.remove(this);const{initialTeardown:me}=this;if((0,r.m)(me))try{me()}catch(Ne){H=Ne instanceof B?Ne.errors:[Ne]}const{_finalizers:Ie}=this;if(Ie){this._finalizers=null;for(const Ne of Ie)try{fe(Ne)}catch(nt){H=H??[],nt instanceof B?H=[...H,...nt.errors]:H.push(nt)}}if(H)throw new B(H)}}add(H){var q;if(H&&H!==this)if(this.closed)fe(H);else{if(H instanceof N){if(H.closed||H._hasParent(this))return;H._addParent(this)}(this._finalizers=null!==(q=this._finalizers)&&void 0!==q?q:[]).push(H)}}_hasParent(H){const{_parentage:q}=this;return q===H||Array.isArray(q)&&q.includes(H)}_addParent(H){const{_parentage:q}=this;this._parentage=Array.isArray(q)?(q.push(H),q):q?[q,H]:H}_removeParent(H){const{_parentage:q}=this;q===H?this._parentage=null:Array.isArray(q)&&(0,$.P)(q,H)}remove(H){const{_finalizers:q}=this;q&&(0,$.P)(q,H),H instanceof N&&H._removeParent(this)}}N.EMPTY=(()=>{const ne=new N;return ne.closed=!0,ne})();const ee=N.EMPTY;function te(ne){return ne instanceof N||ne&&"closed"in ne&&(0,r.m)(ne.remove)&&(0,r.m)(ne.add)&&(0,r.m)(ne.unsubscribe)}function fe(ne){(0,r.m)(ne)?ne():ne.unsubscribe()}},2653:(It,Me,g)=>{g.d(Me,{config:()=>r});const r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3168:(It,Me,g)=>{g.d(Me,{c:()=>ee});var r=g(5592),u=g(7394),B=g(6196),$=g(8251),N=g(9360);class ee extends r.y{constructor(fe,ne){super(),this.source=fe,this.subjectFactory=ne,this._subject=null,this._refCount=0,this._connection=null,(0,N.A)(fe)&&(this.lift=fe.lift)}_subscribe(fe){return this.getSubject().subscribe(fe)}getSubject(){const fe=this._subject;return(!fe||fe.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:fe}=this;this._subject=this._connection=null,fe?.unsubscribe()}connect(){let fe=this._connection;if(!fe){fe=this._connection=new u.w0;const ne=this.getSubject();fe.add(this.source.subscribe((0,$.x)(ne,void 0,()=>{this._teardown(),ne.complete()},H=>{this._teardown(),ne.error(H)},()=>this._teardown()))),fe.closed&&(this._connection=null,fe=u.w0.EMPTY)}return fe}refCount(){return(0,B.x)()(this)}}},2572:(It,Me,g)=>{g.d(Me,{a:()=>H});var r=g(5592),u=g(7453),B=g(2459),$=g(2737),N=g(7400),ee=g(9940),te=g(2714),fe=g(8251),ne=g(7103);function H(...Ie){const Ne=(0,ee.yG)(Ie),nt=(0,ee.jO)(Ie),{args:we,keys:Be}=(0,u.D)(Ie);if(0===we.length)return(0,B.D)([],Ne);const Xe=new r.y(function q(Ie,Ne,nt=$.y){return we=>{me(Ne,()=>{const{length:Be}=Ie,Xe=new Array(Be);let Ge=Be,at=Be;for(let J=0;J<Be;J++)me(Ne,()=>{const Te=(0,B.D)(Ie[J],Ne);let he=!1;Te.subscribe((0,fe.x)(we,_e=>{Xe[J]=_e,he||(he=!0,at--),at||we.next(nt(Xe.slice()))},()=>{--Ge||we.complete()}))},we)},we)}}(we,Ne,Be?Ge=>(0,te.n)(Be,Ge):$.y));return nt?Xe.pipe((0,N.Z)(nt)):Xe}function me(Ie,Ne,nt){Ie?(0,ne.f)(nt,Ie,Ne):Ne()}},5211:(It,Me,g)=>{g.d(Me,{z:()=>N});var r=g(7537),B=g(9940),$=g(2459);function N(...ee){return function u(){return(0,r.J)(1)}()((0,$.D)(ee,(0,B.yG)(ee)))}},4911:(It,Me,g)=>{g.d(Me,{P:()=>B});var r=g(5592),u=g(4829);function B($){return new r.y(N=>{(0,u.Xf)($()).subscribe(N)})}},6232:(It,Me,g)=>{g.d(Me,{E:()=>u});const u=new(g(5592).y)(N=>N.complete())},2459:(It,Me,g)=>{g.d(Me,{D:()=>Te});var r=g(4829),u=g(3093),B=g(5137),ee=g(5592),fe=g(4971),ne=g(4674),H=g(7103);function me(he,_e){if(!he)throw new Error("Iterable cannot be null");return new ee.y(Ke=>{(0,H.f)(Ke,_e,()=>{const qe=he[Symbol.asyncIterator]();(0,H.f)(Ke,_e,()=>{qe.next().then(yt=>{yt.done?Ke.complete():Ke.next(yt.value)})},0,!0)})})}var Ie=g(8382),Ne=g(4026),nt=g(4266),we=g(3664),Be=g(5726),Xe=g(9853),Ge=g(541);function Te(he,_e){return _e?function J(he,_e){if(null!=he){if((0,Ie.c)(he))return function $(he,_e){return(0,r.Xf)(he).pipe((0,B.R)(_e),(0,u.Q)(_e))}(he,_e);if((0,nt.z)(he))return function te(he,_e){return new ee.y(Ke=>{let qe=0;return _e.schedule(function(){qe===he.length?Ke.complete():(Ke.next(he[qe++]),Ke.closed||this.schedule())})})}(he,_e);if((0,Ne.t)(he))return function N(he,_e){return(0,r.Xf)(he).pipe((0,B.R)(_e),(0,u.Q)(_e))}(he,_e);if((0,Be.D)(he))return me(he,_e);if((0,we.T)(he))return function q(he,_e){return new ee.y(Ke=>{let qe;return(0,H.f)(Ke,_e,()=>{qe=he[fe.h](),(0,H.f)(Ke,_e,()=>{let yt,Ut;try{({value:yt,done:Ut}=qe.next())}catch(Gt){return void Ke.error(Gt)}Ut?Ke.complete():Ke.next(yt)},0,!0)}),()=>(0,ne.m)(qe?.return)&&qe.return()})}(he,_e);if((0,Ge.L)(he))return function at(he,_e){return me((0,Ge.Q)(he),_e)}(he,_e)}throw(0,Xe.z)(he)}(he,_e):(0,r.Xf)(he)}},2438:(It,Me,g)=>{g.d(Me,{R:()=>H});var r=g(4829),u=g(5592),B=g(1631),$=g(4266),N=g(4674),ee=g(7400);const te=["addListener","removeListener"],fe=["addEventListener","removeEventListener"],ne=["on","off"];function H(nt,we,Be,Xe){if((0,N.m)(Be)&&(Xe=Be,Be=void 0),Xe)return H(nt,we,Be).pipe((0,ee.Z)(Xe));const[Ge,at]=function Ne(nt){return(0,N.m)(nt.addEventListener)&&(0,N.m)(nt.removeEventListener)}(nt)?fe.map(J=>Te=>nt[J](we,Te,Be)):function me(nt){return(0,N.m)(nt.addListener)&&(0,N.m)(nt.removeListener)}(nt)?te.map(q(nt,we)):function Ie(nt){return(0,N.m)(nt.on)&&(0,N.m)(nt.off)}(nt)?ne.map(q(nt,we)):[];if(!Ge&&(0,$.z)(nt))return(0,B.z)(J=>H(J,we,Be))((0,r.Xf)(nt));if(!Ge)throw new TypeError("Invalid event target");return new u.y(J=>{const Te=(...he)=>J.next(1<he.length?he:he[0]);return Ge(Te),()=>at(Te)})}function q(nt,we){return Be=>Xe=>nt[Be](we,Xe)}},4829:(It,Me,g)=>{g.d(Me,{Xf:()=>Ie});var r=g(7582),u=g(4266),B=g(4026),$=g(5592),N=g(8382),ee=g(5726),te=g(9853),fe=g(3664),ne=g(541),H=g(4674),q=g(3894),me=g(4850);function Ie(J){if(J instanceof $.y)return J;if(null!=J){if((0,N.c)(J))return function Ne(J){return new $.y(Te=>{const he=J[me.L]();if((0,H.m)(he.subscribe))return he.subscribe(Te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(J);if((0,u.z)(J))return function nt(J){return new $.y(Te=>{for(let he=0;he<J.length&&!Te.closed;he++)Te.next(J[he]);Te.complete()})}(J);if((0,B.t)(J))return function we(J){return new $.y(Te=>{J.then(he=>{Te.closed||(Te.next(he),Te.complete())},he=>Te.error(he)).then(null,q.h)})}(J);if((0,ee.D)(J))return Xe(J);if((0,fe.T)(J))return function Be(J){return new $.y(Te=>{for(const he of J)if(Te.next(he),Te.closed)return;Te.complete()})}(J);if((0,ne.L)(J))return function Ge(J){return Xe((0,ne.Q)(J))}(J)}throw(0,te.z)(J)}function Xe(J){return new $.y(Te=>{(function at(J,Te){var he,_e,Ke,qe;return(0,r.mG)(this,void 0,void 0,function*(){try{for(he=(0,r.KL)(J);!(_e=yield he.next()).done;)if(Te.next(_e.value),Te.closed)return}catch(yt){Ke={error:yt}}finally{try{_e&&!_e.done&&(qe=he.return)&&(yield qe.call(he))}finally{if(Ke)throw Ke.error}}Te.complete()})})(J,Te).catch(he=>Te.error(he))})}},3019:(It,Me,g)=>{g.d(Me,{T:()=>ee});var r=g(7537),u=g(4829),B=g(6232),$=g(9940),N=g(2459);function ee(...te){const fe=(0,$.yG)(te),ne=(0,$._6)(te,1/0),H=te;return H.length?1===H.length?(0,u.Xf)(H[0]):(0,r.J)(ne)((0,N.D)(H,fe)):B.E}},2096:(It,Me,g)=>{g.d(Me,{of:()=>B});var r=g(9940),u=g(2459);function B(...$){const N=(0,r.yG)($);return(0,u.D)($,N)}},8504:(It,Me,g)=>{g.d(Me,{_:()=>B});var r=g(5592),u=g(4674);function B($,N){const ee=(0,u.m)($)?$:()=>$,te=fe=>fe.error(ee());return new r.y(N?fe=>N.schedule(te,0,fe):te)}},9080:(It,Me,g)=>{g.d(Me,{H:()=>N});var r=g(5592),u=g(6321),B=g(671),$=g(93);function N(ee=0,te,fe=u.P){let ne=-1;return null!=te&&((0,B.K)(te)?fe=te:ne=te),new r.y(H=>{let q=(0,$.q)(ee)?+ee-fe.now():ee;q<0&&(q=0);let me=0;return fe.schedule(function(){H.closed||(H.next(me++),0<=ne?this.schedule(void 0,ne):H.complete())},q)})}},8251:(It,Me,g)=>{g.d(Me,{x:()=>u});var r=g(305);function u($,N,ee,te,fe){return new B($,N,ee,te,fe)}class B extends r.Lv{constructor(N,ee,te,fe,ne,H){super(N),this.onFinalize=ne,this.shouldUnsubscribe=H,this._next=ee?function(q){try{ee(q)}catch(me){N.error(me)}}:super._next,this._error=fe?function(q){try{fe(q)}catch(me){N.error(me)}finally{this.unsubscribe()}}:super._error,this._complete=te?function(){try{te()}catch(q){N.error(q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var N;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ee}=this;super.unsubscribe(),!ee&&(null===(N=this.onFinalize)||void 0===N||N.call(this))}}}},9028:(It,Me,g)=>{g.d(Me,{e:()=>te});var r=g(6321),u=g(9360),B=g(4829),$=g(8251),ee=g(9080);function te(fe,ne=r.z){return function N(fe){return(0,u.e)((ne,H)=>{let q=!1,me=null,Ie=null,Ne=!1;const nt=()=>{if(Ie?.unsubscribe(),Ie=null,q){q=!1;const Be=me;me=null,H.next(Be)}Ne&&H.complete()},we=()=>{Ie=null,Ne&&H.complete()};ne.subscribe((0,$.x)(H,Be=>{q=!0,me=Be,Ie||(0,B.Xf)(fe(Be)).subscribe(Ie=(0,$.x)(H,nt,we))},()=>{Ne=!0,(!q||!Ie||Ie.closed)&&H.complete()}))})}(()=>(0,ee.H)(fe,ne))}},6328:(It,Me,g)=>{g.d(Me,{b:()=>B});var r=g(1631),u=g(4674);function B($,N){return(0,u.m)(N)?(0,r.z)($,N,1):(0,r.z)($,1)}},3620:(It,Me,g)=>{g.d(Me,{b:()=>$});var r=g(6321),u=g(9360),B=g(8251);function $(N,ee=r.z){return(0,u.e)((te,fe)=>{let ne=null,H=null,q=null;const me=()=>{if(ne){ne.unsubscribe(),ne=null;const Ne=H;H=null,fe.next(Ne)}};function Ie(){const Ne=q+N,nt=ee.now();if(nt<Ne)return ne=this.schedule(void 0,Ne-nt),void fe.add(ne);me()}te.subscribe((0,B.x)(fe,Ne=>{H=Ne,q=ee.now(),ne||(ne=ee.schedule(Ie,N),fe.add(ne))},()=>{me(),fe.complete()},void 0,()=>{H=ne=null}))})}},3572:(It,Me,g)=>{g.d(Me,{d:()=>B});var r=g(9360),u=g(8251);function B($){return(0,r.e)((N,ee)=>{let te=!1;N.subscribe((0,u.x)(ee,fe=>{te=!0,ee.next(fe)},()=>{te||ee.next($),ee.complete()}))})}},5177:(It,Me,g)=>{g.d(Me,{g:()=>Ie});var r=g(6321),u=g(5211),B=g(8180),$=g(9360),N=g(8251),ee=g(2420),fe=g(975),ne=g(1631),H=g(4829);function q(Ne,nt){return nt?we=>(0,u.z)(nt.pipe((0,B.q)(1),function te(){return(0,$.e)((Ne,nt)=>{Ne.subscribe((0,N.x)(nt,ee.Z))})}()),we.pipe(q(Ne))):(0,ne.z)((we,Be)=>(0,H.Xf)(Ne(we,Be)).pipe((0,B.q)(1),(0,fe.h)(we)))}var me=g(9080);function Ie(Ne,nt=r.z){const we=(0,me.H)(Ne,nt);return q(()=>we)}},3997:(It,Me,g)=>{g.d(Me,{x:()=>$});var r=g(2737),u=g(9360),B=g(8251);function $(ee,te=r.y){return ee=ee??N,(0,u.e)((fe,ne)=>{let H,q=!0;fe.subscribe((0,B.x)(ne,me=>{const Ie=te(me);(q||!ee(H,Ie))&&(q=!1,H=Ie,ne.next(me))}))})}function N(ee,te){return ee===te}},2181:(It,Me,g)=>{g.d(Me,{h:()=>B});var r=g(9360),u=g(8251);function B($,N){return(0,r.e)((ee,te)=>{let fe=0;ee.subscribe((0,u.x)(te,ne=>$.call(N,ne,fe++)&&te.next(ne)))})}},4716:(It,Me,g)=>{g.d(Me,{x:()=>u});var r=g(9360);function u(B){return(0,r.e)(($,N)=>{try{$.subscribe(N)}finally{N.add(B)}})}},1374:(It,Me,g)=>{g.d(Me,{P:()=>te});var r=g(6973),u=g(2181),B=g(8180),$=g(3572),N=g(3026),ee=g(2737);function te(fe,ne){const H=arguments.length>=2;return q=>q.pipe(fe?(0,u.h)((me,Ie)=>fe(me,Ie,q)):ee.y,(0,B.q)(1),H?(0,$.d)(ne):(0,N.T)(()=>new r.K))}},7398:(It,Me,g)=>{g.d(Me,{U:()=>B});var r=g(9360),u=g(8251);function B($,N){return(0,r.e)((ee,te)=>{let fe=0;ee.subscribe((0,u.x)(te,ne=>{te.next($.call(N,ne,fe++))}))})}},975:(It,Me,g)=>{g.d(Me,{h:()=>u});var r=g(7398);function u(B){return(0,r.U)(()=>B)}},7537:(It,Me,g)=>{g.d(Me,{J:()=>B});var r=g(1631),u=g(2737);function B($=1/0){return(0,r.z)(u.y,$)}},1631:(It,Me,g)=>{g.d(Me,{z:()=>fe});var r=g(7398),u=g(4829),B=g(9360),$=g(7103),N=g(8251),te=g(4674);function fe(ne,H,q=1/0){return(0,te.m)(H)?fe((me,Ie)=>(0,r.U)((Ne,nt)=>H(me,Ne,Ie,nt))((0,u.Xf)(ne(me,Ie))),q):("number"==typeof H&&(q=H),(0,B.e)((me,Ie)=>function ee(ne,H,q,me,Ie,Ne,nt,we){const Be=[];let Xe=0,Ge=0,at=!1;const J=()=>{at&&!Be.length&&!Xe&&H.complete()},Te=_e=>Xe<me?he(_e):Be.push(_e),he=_e=>{Ne&&H.next(_e),Xe++;let Ke=!1;(0,u.Xf)(q(_e,Ge++)).subscribe((0,N.x)(H,qe=>{Ie?.(qe),Ne?Te(qe):H.next(qe)},()=>{Ke=!0},void 0,()=>{if(Ke)try{for(Xe--;Be.length&&Xe<me;){const qe=Be.shift();nt?(0,$.f)(H,nt,()=>he(qe)):he(qe)}J()}catch(qe){H.error(qe)}}))};return ne.subscribe((0,N.x)(H,Te,()=>{at=!0,J()})),()=>{we?.()}}(me,Ie,ne,q)))}},3093:(It,Me,g)=>{g.d(Me,{Q:()=>$});var r=g(7103),u=g(9360),B=g(8251);function $(N,ee=0){return(0,u.e)((te,fe)=>{te.subscribe((0,B.x)(fe,ne=>(0,r.f)(fe,N,()=>fe.next(ne),ee),()=>(0,r.f)(fe,N,()=>fe.complete(),ee),ne=>(0,r.f)(fe,N,()=>fe.error(ne),ee)))})}},6196:(It,Me,g)=>{g.d(Me,{x:()=>B});var r=g(9360),u=g(8251);function B(){return(0,r.e)(($,N)=>{let ee=null;$._refCount++;const te=(0,u.x)(N,void 0,void 0,void 0,()=>{if(!$||$._refCount<=0||0<--$._refCount)return void(ee=null);const fe=$._connection,ne=ee;ee=null,fe&&(!ne||fe===ne)&&fe.unsubscribe(),N.unsubscribe()});$.subscribe(te),te.closed||(ee=$.connect())})}},3020:(It,Me,g)=>{g.d(Me,{B:()=>N});var r=g(4829),u=g(8645),B=g(305),$=g(9360);function N(te={}){const{connector:fe=(()=>new u.x),resetOnError:ne=!0,resetOnComplete:H=!0,resetOnRefCountZero:q=!0}=te;return me=>{let Ie,Ne,nt,we=0,Be=!1,Xe=!1;const Ge=()=>{Ne?.unsubscribe(),Ne=void 0},at=()=>{Ge(),Ie=nt=void 0,Be=Xe=!1},J=()=>{const Te=Ie;at(),Te?.unsubscribe()};return(0,$.e)((Te,he)=>{we++,!Xe&&!Be&&Ge();const _e=nt=nt??fe();he.add(()=>{we--,0===we&&!Xe&&!Be&&(Ne=ee(J,q))}),_e.subscribe(he),!Ie&&we>0&&(Ie=new B.Hp({next:Ke=>_e.next(Ke),error:Ke=>{Xe=!0,Ge(),Ne=ee(at,ne,Ke),_e.error(Ke)},complete:()=>{Be=!0,Ge(),Ne=ee(at,H),_e.complete()}}),(0,r.Xf)(Te).subscribe(Ie))})(me)}}function ee(te,fe,...ne){if(!0===fe)return void te();if(!1===fe)return;const H=new B.Hp({next:()=>{H.unsubscribe(),te()}});return(0,r.Xf)(fe(...ne)).subscribe(H)}},7081:(It,Me,g)=>{g.d(Me,{d:()=>B});var r=g(7328),u=g(3020);function B($,N,ee){let te,fe=!1;return $&&"object"==typeof $?({bufferSize:te=1/0,windowTime:N=1/0,refCount:fe=!1,scheduler:ee}=$):te=$??1/0,(0,u.B)({connector:()=>new r.t(te,N,ee),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:fe})}},7921:(It,Me,g)=>{g.d(Me,{O:()=>$});var r=g(5211),u=g(9940),B=g(9360);function $(...N){const ee=(0,u.yG)(N);return(0,B.e)((te,fe)=>{(ee?(0,r.z)(N,te,ee):(0,r.z)(N,te)).subscribe(fe)})}},5137:(It,Me,g)=>{g.d(Me,{R:()=>u});var r=g(9360);function u(B,$=0){return(0,r.e)((N,ee)=>{ee.add(B.schedule(()=>N.subscribe(ee),$))})}},4664:(It,Me,g)=>{g.d(Me,{w:()=>$});var r=g(4829),u=g(9360),B=g(8251);function $(N,ee){return(0,u.e)((te,fe)=>{let ne=null,H=0,q=!1;const me=()=>q&&!ne&&fe.complete();te.subscribe((0,B.x)(fe,Ie=>{ne?.unsubscribe();let Ne=0;const nt=H++;(0,r.Xf)(N(Ie,nt)).subscribe(ne=(0,B.x)(fe,we=>fe.next(ee?ee(Ie,we,nt,Ne++):we),()=>{ne=null,me()}))},()=>{q=!0,me()}))})}},8180:(It,Me,g)=>{g.d(Me,{q:()=>$});var r=g(6232),u=g(9360),B=g(8251);function $(N){return N<=0?()=>r.E:(0,u.e)((ee,te)=>{let fe=0;ee.subscribe((0,B.x)(te,ne=>{++fe<=N&&(te.next(ne),N<=fe&&te.complete())}))})}},9773:(It,Me,g)=>{g.d(Me,{R:()=>N});var r=g(9360),u=g(8251),B=g(4829),$=g(2420);function N(ee){return(0,r.e)((te,fe)=>{(0,B.Xf)(ee).subscribe((0,u.x)(fe,()=>fe.complete(),$.Z)),!fe.closed&&te.subscribe(fe)})}},9397:(It,Me,g)=>{g.d(Me,{b:()=>N});var r=g(4674),u=g(9360),B=g(8251),$=g(2737);function N(ee,te,fe){const ne=(0,r.m)(ee)||te||fe?{next:ee,error:te,complete:fe}:ee;return ne?(0,u.e)((H,q)=>{var me;null===(me=ne.subscribe)||void 0===me||me.call(ne);let Ie=!0;H.subscribe((0,B.x)(q,Ne=>{var nt;null===(nt=ne.next)||void 0===nt||nt.call(ne,Ne),q.next(Ne)},()=>{var Ne;Ie=!1,null===(Ne=ne.complete)||void 0===Ne||Ne.call(ne),q.complete()},Ne=>{var nt;Ie=!1,null===(nt=ne.error)||void 0===nt||nt.call(ne,Ne),q.error(Ne)},()=>{var Ne,nt;Ie&&(null===(Ne=ne.unsubscribe)||void 0===Ne||Ne.call(ne)),null===(nt=ne.finalize)||void 0===nt||nt.call(ne)}))}):$.y}},3026:(It,Me,g)=>{g.d(Me,{T:()=>$});var r=g(6973),u=g(9360),B=g(8251);function $(ee=N){return(0,u.e)((te,fe)=>{let ne=!1;te.subscribe((0,B.x)(fe,H=>{ne=!0,fe.next(H)},()=>ne?fe.complete():fe.error(ee())))})}function N(){return new r.K}},1954:(It,Me,g)=>{g.d(Me,{o:()=>N});var r=g(7394);class u extends r.w0{constructor(te,fe){super()}schedule(te,fe=0){return this}}const B={setInterval(ee,te,...fe){const{delegate:ne}=B;return ne?.setInterval?ne.setInterval(ee,te,...fe):setInterval(ee,te,...fe)},clearInterval(ee){const{delegate:te}=B;return(te?.clearInterval||clearInterval)(ee)},delegate:void 0};var $=g(9039);class N extends u{constructor(te,fe){super(te,fe),this.scheduler=te,this.work=fe,this.pending=!1}schedule(te,fe=0){var ne;if(this.closed)return this;this.state=te;const H=this.id,q=this.scheduler;return null!=H&&(this.id=this.recycleAsyncId(q,H,fe)),this.pending=!0,this.delay=fe,this.id=null!==(ne=this.id)&&void 0!==ne?ne:this.requestAsyncId(q,this.id,fe),this}requestAsyncId(te,fe,ne=0){return B.setInterval(te.flush.bind(te,this),ne)}recycleAsyncId(te,fe,ne=0){if(null!=ne&&this.delay===ne&&!1===this.pending)return fe;null!=fe&&B.clearInterval(fe)}execute(te,fe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ne=this._execute(te,fe);if(ne)return ne;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(te,fe){let H,ne=!1;try{this.work(te)}catch(q){ne=!0,H=q||new Error("Scheduled action threw falsy error")}if(ne)return this.unsubscribe(),H}unsubscribe(){if(!this.closed){const{id:te,scheduler:fe}=this,{actions:ne}=fe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,$.P)(ne,this),null!=te&&(this.id=this.recycleAsyncId(fe,te,null)),this.delay=null,super.unsubscribe()}}}},2631:(It,Me,g)=>{g.d(Me,{v:()=>B});var r=g(4552);class u{constructor(N,ee=u.now){this.schedulerActionCtor=N,this.now=ee}schedule(N,ee=0,te){return new this.schedulerActionCtor(this,N).schedule(te,ee)}}u.now=r.l.now;class B extends u{constructor(N,ee=u.now){super(N,ee),this.actions=[],this._active=!1}flush(N){const{actions:ee}=this;if(this._active)return void ee.push(N);let te;this._active=!0;do{if(te=N.execute(N.state,N.delay))break}while(N=ee.shift());if(this._active=!1,te){for(;N=ee.shift();)N.unsubscribe();throw te}}}},927:(It,Me,g)=>{g.d(Me,{Z:()=>te});var r=g(1954),u=g(7394);const B={schedule(ne){let H=requestAnimationFrame,q=cancelAnimationFrame;const{delegate:me}=B;me&&(H=me.requestAnimationFrame,q=me.cancelAnimationFrame);const Ie=H(Ne=>{q=void 0,ne(Ne)});return new u.w0(()=>q?.(Ie))},requestAnimationFrame(...ne){const{delegate:H}=B;return(H?.requestAnimationFrame||requestAnimationFrame)(...ne)},cancelAnimationFrame(...ne){const{delegate:H}=B;return(H?.cancelAnimationFrame||cancelAnimationFrame)(...ne)},delegate:void 0};var N=g(2631);const te=new class ee extends N.v{flush(H){this._active=!0;const q=this._scheduled;this._scheduled=void 0;const{actions:me}=this;let Ie;H=H||me.shift();do{if(Ie=H.execute(H.state,H.delay))break}while((H=me[0])&&H.id===q&&me.shift());if(this._active=!1,Ie){for(;(H=me[0])&&H.id===q&&me.shift();)H.unsubscribe();throw Ie}}}(class $ extends r.o{constructor(H,q){super(H,q),this.scheduler=H,this.work=q}requestAsyncId(H,q,me=0){return null!==me&&me>0?super.requestAsyncId(H,q,me):(H.actions.push(this),H._scheduled||(H._scheduled=B.requestAnimationFrame(()=>H.flush(void 0))))}recycleAsyncId(H,q,me=0){var Ie;if(null!=me?me>0:this.delay>0)return super.recycleAsyncId(H,q,me);const{actions:Ne}=H;null!=q&&(null===(Ie=Ne[Ne.length-1])||void 0===Ie?void 0:Ie.id)!==q&&(B.cancelAnimationFrame(q),H._scheduled=void 0)}})},6410:(It,Me,g)=>{g.d(Me,{E:()=>Ne});var r=g(1954);let B,u=1;const $={};function N(we){return we in $&&(delete $[we],!0)}const ee={setImmediate(we){const Be=u++;return $[Be]=!0,B||(B=Promise.resolve()),B.then(()=>N(Be)&&we()),Be},clearImmediate(we){N(we)}},{setImmediate:fe,clearImmediate:ne}=ee,H={setImmediate(...we){const{delegate:Be}=H;return(Be?.setImmediate||fe)(...we)},clearImmediate(we){const{delegate:Be}=H;return(Be?.clearImmediate||ne)(we)},delegate:void 0};var me=g(2631);const Ne=new class Ie extends me.v{flush(Be){this._active=!0;const Xe=this._scheduled;this._scheduled=void 0;const{actions:Ge}=this;let at;Be=Be||Ge.shift();do{if(at=Be.execute(Be.state,Be.delay))break}while((Be=Ge[0])&&Be.id===Xe&&Ge.shift());if(this._active=!1,at){for(;(Be=Ge[0])&&Be.id===Xe&&Ge.shift();)Be.unsubscribe();throw at}}}(class q extends r.o{constructor(Be,Xe){super(Be,Xe),this.scheduler=Be,this.work=Xe}requestAsyncId(Be,Xe,Ge=0){return null!==Ge&&Ge>0?super.requestAsyncId(Be,Xe,Ge):(Be.actions.push(this),Be._scheduled||(Be._scheduled=H.setImmediate(Be.flush.bind(Be,void 0))))}recycleAsyncId(Be,Xe,Ge=0){var at;if(null!=Ge?Ge>0:this.delay>0)return super.recycleAsyncId(Be,Xe,Ge);const{actions:J}=Be;null!=Xe&&(null===(at=J[J.length-1])||void 0===at?void 0:at.id)!==Xe&&(H.clearImmediate(Xe),Be._scheduled===Xe&&(Be._scheduled=void 0))}})},6321:(It,Me,g)=>{g.d(Me,{P:()=>$,z:()=>B});var r=g(1954);const B=new(g(2631).v)(r.o),$=B},4552:(It,Me,g)=>{g.d(Me,{l:()=>r});const r={now:()=>(r.delegate||Date).now(),delegate:void 0}},7599:(It,Me,g)=>{g.d(Me,{z:()=>r});const r={setTimeout(u,B,...$){const{delegate:N}=r;return N?.setTimeout?N.setTimeout(u,B,...$):setTimeout(u,B,...$)},clearTimeout(u){const{delegate:B}=r;return(B?.clearTimeout||clearTimeout)(u)},delegate:void 0}},4971:(It,Me,g)=>{g.d(Me,{h:()=>u});const u=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(It,Me,g)=>{g.d(Me,{L:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(It,Me,g)=>{g.d(Me,{K:()=>u});const u=(0,g(2306).d)(B=>function(){B(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(It,Me,g)=>{g.d(Me,{_6:()=>ee,jO:()=>$,yG:()=>N});var r=g(4674),u=g(671);function B(te){return te[te.length-1]}function $(te){return(0,r.m)(B(te))?te.pop():void 0}function N(te){return(0,u.K)(B(te))?te.pop():void 0}function ee(te,fe){return"number"==typeof B(te)?te.pop():fe}},7453:(It,Me,g)=>{g.d(Me,{D:()=>N});const{isArray:r}=Array,{getPrototypeOf:u,prototype:B,keys:$}=Object;function N(te){if(1===te.length){const fe=te[0];if(r(fe))return{args:fe,keys:null};if(function ee(te){return te&&"object"==typeof te&&u(te)===B}(fe)){const ne=$(fe);return{args:ne.map(H=>fe[H]),keys:ne}}}return{args:te,keys:null}}},9039:(It,Me,g)=>{function r(u,B){if(u){const $=u.indexOf(B);0<=$&&u.splice($,1)}}g.d(Me,{P:()=>r})},2306:(It,Me,g)=>{function r(u){const $=u(N=>{Error.call(N),N.stack=(new Error).stack});return $.prototype=Object.create(Error.prototype),$.prototype.constructor=$,$}g.d(Me,{d:()=>r})},2714:(It,Me,g)=>{function r(u,B){return u.reduce(($,N,ee)=>($[N]=B[ee],$),{})}g.d(Me,{n:()=>r})},1441:(It,Me,g)=>{g.d(Me,{O:()=>$,x:()=>B});var r=g(2653);let u=null;function B(N){if(r.config.useDeprecatedSynchronousErrorHandling){const ee=!u;if(ee&&(u={errorThrown:!1,error:null}),N(),ee){const{errorThrown:te,error:fe}=u;if(u=null,te)throw fe}}else N()}function $(N){r.config.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=N)}},7103:(It,Me,g)=>{function r(u,B,$,N=0,ee=!1){const te=B.schedule(function(){$(),ee?u.add(this.schedule(null,N)):this.unsubscribe()},N);if(u.add(te),!ee)return te}g.d(Me,{f:()=>r})},2737:(It,Me,g)=>{function r(u){return u}g.d(Me,{y:()=>r})},4266:(It,Me,g)=>{g.d(Me,{z:()=>r});const r=u=>u&&"number"==typeof u.length&&"function"!=typeof u},5726:(It,Me,g)=>{g.d(Me,{D:()=>u});var r=g(4674);function u(B){return Symbol.asyncIterator&&(0,r.m)(B?.[Symbol.asyncIterator])}},93:(It,Me,g)=>{function r(u){return u instanceof Date&&!isNaN(u)}g.d(Me,{q:()=>r})},4674:(It,Me,g)=>{function r(u){return"function"==typeof u}g.d(Me,{m:()=>r})},8382:(It,Me,g)=>{g.d(Me,{c:()=>B});var r=g(4850),u=g(4674);function B($){return(0,u.m)($[r.L])}},3664:(It,Me,g)=>{g.d(Me,{T:()=>B});var r=g(4971),u=g(4674);function B($){return(0,u.m)($?.[r.h])}},4026:(It,Me,g)=>{g.d(Me,{t:()=>u});var r=g(4674);function u(B){return(0,r.m)(B?.then)}},541:(It,Me,g)=>{g.d(Me,{L:()=>$,Q:()=>B});var r=g(7582),u=g(4674);function B(N){return(0,r.FC)(this,arguments,function*(){const te=N.getReader();try{for(;;){const{value:fe,done:ne}=yield(0,r.qq)(te.read());if(ne)return yield(0,r.qq)(void 0);yield yield(0,r.qq)(fe)}}finally{te.releaseLock()}})}function $(N){return(0,u.m)(N?.getReader)}},671:(It,Me,g)=>{g.d(Me,{K:()=>u});var r=g(4674);function u(B){return B&&(0,r.m)(B.schedule)}},9360:(It,Me,g)=>{g.d(Me,{A:()=>u,e:()=>B});var r=g(4674);function u($){return(0,r.m)($?.lift)}function B($){return N=>{if(u(N))return N.lift(function(ee){try{return $(ee,this)}catch(te){this.error(te)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(It,Me,g)=>{g.d(Me,{Z:()=>$});var r=g(7398);const{isArray:u}=Array;function $(N){return(0,r.U)(ee=>function B(N,ee){return u(ee)?N(...ee):N(ee)}(N,ee))}},2420:(It,Me,g)=>{function r(){}g.d(Me,{Z:()=>r})},8407:(It,Me,g)=>{g.d(Me,{U:()=>B,z:()=>u});var r=g(2737);function u(...$){return B($)}function B($){return 0===$.length?r.y:1===$.length?$[0]:function(ee){return $.reduce((te,fe)=>fe(te),ee)}}},3894:(It,Me,g)=>{g.d(Me,{h:()=>B});var r=g(2653),u=g(7599);function B($){u.z.setTimeout(()=>{const{onUnhandledError:N}=r.config;if(!N)throw $;N($)})}},9853:(It,Me,g)=>{function r(u){return new TypeError(`You provided ${null!==u&&"object"==typeof u?"an invalid object":`'${u}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}g.d(Me,{z:()=>r})},6825:(It,Me,g)=>{g.d(Me,{F4:()=>H,IO:()=>nt,LC:()=>u,SB:()=>ne,X$:()=>$,ZE:()=>Xe,ZN:()=>Be,_j:()=>r,eR:()=>q,jt:()=>N,k1:()=>Ge,l3:()=>B,oB:()=>fe,pV:()=>Ie,ru:()=>ee,vP:()=>te});class r{}class u{}const B="*";function $(at,J){return{type:7,name:at,definitions:J,options:{}}}function N(at,J=null){return{type:4,styles:J,timings:at}}function ee(at,J=null){return{type:3,steps:at,options:J}}function te(at,J=null){return{type:2,steps:at,options:J}}function fe(at){return{type:6,styles:at,offset:null}}function ne(at,J,Te){return{type:0,name:at,styles:J,options:Te}}function H(at){return{type:5,steps:at}}function q(at,J,Te=null){return{type:1,expr:at,animation:J,options:Te}}function Ie(at=null){return{type:9,options:at}}function nt(at,J,Te=null){return{type:11,selector:at,animation:J,options:Te}}class Be{constructor(J=0,Te=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=J+Te}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(J=>J()),this._onDoneFns=[])}onStart(J){this._originalOnStartFns.push(J),this._onStartFns.push(J)}onDone(J){this._originalOnDoneFns.push(J),this._onDoneFns.push(J)}onDestroy(J){this._onDestroyFns.push(J)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(J=>J()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(J=>J()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(J){this._position=this.totalTime?J*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(J){const Te="start"==J?this._onStartFns:this._onDoneFns;Te.forEach(he=>he()),Te.length=0}}class Xe{constructor(J){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=J;let Te=0,he=0,_e=0;const Ke=this.players.length;0==Ke?queueMicrotask(()=>this._onFinish()):this.players.forEach(qe=>{qe.onDone(()=>{++Te==Ke&&this._onFinish()}),qe.onDestroy(()=>{++he==Ke&&this._onDestroy()}),qe.onStart(()=>{++_e==Ke&&this._onStart()})}),this.totalTime=this.players.reduce((qe,yt)=>Math.max(qe,yt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(J=>J()),this._onDoneFns=[])}init(){this.players.forEach(J=>J.init())}onStart(J){this._onStartFns.push(J)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(J=>J()),this._onStartFns=[])}onDone(J){this._onDoneFns.push(J)}onDestroy(J){this._onDestroyFns.push(J)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(J=>J.play())}pause(){this.players.forEach(J=>J.pause())}restart(){this.players.forEach(J=>J.restart())}finish(){this._onFinish(),this.players.forEach(J=>J.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(J=>J.destroy()),this._onDestroyFns.forEach(J=>J()),this._onDestroyFns=[])}reset(){this.players.forEach(J=>J.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(J){const Te=J*this.totalTime;this.players.forEach(he=>{const _e=he.totalTime?Math.min(1,Te/he.totalTime):1;he.setPosition(_e)})}getPosition(){const J=this.players.reduce((Te,he)=>null===Te||he.totalTime>Te.totalTime?he:Te,null);return null!=J?J.getPosition():0}beforeDestroy(){this.players.forEach(J=>{J.beforeDestroy&&J.beforeDestroy()})}triggerCallback(J){const Te="start"==J?this._onStartFns:this._onDoneFns;Te.forEach(he=>he()),Te.length=0}}const Ge="!"},4802:(It,Me,g)=>{g.d(Me,{rt:()=>se,s1:()=>Ye,tE:()=>V,qV:()=>lt,qm:()=>ie,ic:()=>gn,Zf:()=>Le,X6:()=>en,yG:()=>tn,iD:()=>Ve});var r=g(6814),u=g(5879),B=g(2831),$=g(8645),N=g(7394),ee=g(5619),te=g(2096),fe=g(6028),ne=g(9397),H=g(3620),q=g(2181),me=g(7398),Ie=g(8180);function Ne(E){return(0,q.h)((k,ae)=>E<=ae)}var nt=g(3997),we=g(9773),Be=g(2495);let Xe=(()=>{var E;class k{create(S){return typeof MutationObserver>"u"?null:new MutationObserver(S)}}return(E=k).\u0275fac=function(S){return new(S||E)},E.\u0275prov=u.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),k})(),J=(()=>{var E;class k{}return(E=k).\u0275fac=function(S){return new(S||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({providers:[Xe]}),k})();var Te=g(2572),he=g(5211),_e=g(5592),Ke=g(7921);const yt=new Set;let Ut,Gt=(()=>{var E;class k{constructor(S,L){this._platform=S,this._nonce=L,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):on}matchMedia(S){return(this._platform.WEBKIT||this._platform.BLINK)&&function Xt(E,k){if(!yt.has(E))try{Ut||(Ut=document.createElement("style"),k&&(Ut.nonce=k),Ut.setAttribute("type","text/css"),document.head.appendChild(Ut)),Ut.sheet&&(Ut.sheet.insertRule(`@media ${E} {body{ }}`,0),yt.add(E))}catch(ae){console.error(ae)}}(S,this._nonce),this._matchMedia(S)}}return(E=k).\u0275fac=function(S){return new(S||E)(u.LFG(B.t4),u.LFG(u.Ojb,8))},E.\u0275prov=u.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),k})();function on(E){return{matches:"all"===E||""===E,media:E,addListener:()=>{},removeListener:()=>{}}}let cn=(()=>{var E;class k{constructor(S,L){this._mediaMatcher=S,this._zone=L,this._queries=new Map,this._destroySubject=new $.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(S){return mn((0,Be.Eq)(S)).some(ce=>this._registerQuery(ce).mql.matches)}observe(S){const ce=mn((0,Be.Eq)(S)).map(oe=>this._registerQuery(oe).observable);let K=(0,Te.a)(ce);return K=(0,he.z)(K.pipe((0,Ie.q)(1)),K.pipe(Ne(1),(0,H.b)(0))),K.pipe((0,me.U)(oe=>{const De={matches:!1,breakpoints:{}};return oe.forEach(({matches:mt,query:ct})=>{De.matches=De.matches||mt,De.breakpoints[ct]=mt}),De}))}_registerQuery(S){if(this._queries.has(S))return this._queries.get(S);const L=this._mediaMatcher.matchMedia(S),K={observable:new _e.y(oe=>{const De=mt=>this._zone.run(()=>oe.next(mt));return L.addListener(De),()=>{L.removeListener(De)}}).pipe((0,Ke.O)(L),(0,me.U)(({matches:oe})=>({query:S,matches:oe})),(0,we.R)(this._destroySubject)),mql:L};return this._queries.set(S,K),K}}return(E=k).\u0275fac=function(S){return new(S||E)(u.LFG(Gt),u.LFG(u.R0b))},E.\u0275prov=u.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),k})();function mn(E){return E.map(k=>k.split(",")).reduce((k,ae)=>k.concat(ae)).map(k=>k.trim())}const Gn=" ";function Le(E,k,ae){const S=$e(E,k);S.some(L=>L.trim()==ae.trim())||(S.push(ae.trim()),E.setAttribute(k,S.join(Gn)))}function Ve(E,k,ae){const L=$e(E,k).filter(ce=>ce!=ae.trim());L.length?E.setAttribute(k,L.join(Gn)):E.removeAttribute(k)}function $e(E,k){return(E.getAttribute(k)||"").match(/\S+/g)||[]}class et{constructor(k){this._items=k,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new $.x,this._typeaheadSubscription=N.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=ae=>ae.disabled,this._pressedLetters=[],this.tabOut=new $.x,this.change=new $.x,k instanceof u.n_E&&(this._itemChangesSubscription=k.changes.subscribe(ae=>{if(this._activeItem){const L=ae.toArray().indexOf(this._activeItem);L>-1&&L!==this._activeItemIndex&&(this._activeItemIndex=L)}}))}skipPredicate(k){return this._skipPredicateFn=k,this}withWrap(k=!0){return this._wrap=k,this}withVerticalOrientation(k=!0){return this._vertical=k,this}withHorizontalOrientation(k){return this._horizontal=k,this}withAllowedModifierKeys(k){return this._allowedModifierKeys=k,this}withTypeAhead(k=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ne.b)(ae=>this._pressedLetters.push(ae)),(0,H.b)(k),(0,q.h)(()=>this._pressedLetters.length>0),(0,me.U)(()=>this._pressedLetters.join(""))).subscribe(ae=>{const S=this._getItemsArray();for(let L=1;L<S.length+1;L++){const ce=(this._activeItemIndex+L)%S.length,K=S[ce];if(!this._skipPredicateFn(K)&&0===K.getLabel().toUpperCase().trim().indexOf(ae)){this.setActiveItem(ce);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(k=!0){return this._homeAndEnd=k,this}withPageUpDown(k=!0,ae=10){return this._pageUpAndDown={enabled:k,delta:ae},this}setActiveItem(k){const ae=this._activeItem;this.updateActiveItem(k),this._activeItem!==ae&&this.change.next(this._activeItemIndex)}onKeydown(k){const ae=k.keyCode,L=["altKey","ctrlKey","metaKey","shiftKey"].every(ce=>!k[ce]||this._allowedModifierKeys.indexOf(ce)>-1);switch(ae){case fe.Mf:return void this.tabOut.next();case fe.JH:if(this._vertical&&L){this.setNextItemActive();break}return;case fe.LH:if(this._vertical&&L){this.setPreviousItemActive();break}return;case fe.SV:if(this._horizontal&&L){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case fe.oh:if(this._horizontal&&L){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case fe.Sd:if(this._homeAndEnd&&L){this.setFirstItemActive();break}return;case fe.uR:if(this._homeAndEnd&&L){this.setLastItemActive();break}return;case fe.Ku:if(this._pageUpAndDown.enabled&&L){const ce=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ce>0?ce:0,1);break}return;case fe.VM:if(this._pageUpAndDown.enabled&&L){const ce=this._activeItemIndex+this._pageUpAndDown.delta,K=this._getItemsArray().length;this._setActiveItemByIndex(ce<K?ce:K-1,-1);break}return;default:return void((L||(0,fe.Vb)(k,"shiftKey"))&&(k.key&&1===k.key.length?this._letterKeyStream.next(k.key.toLocaleUpperCase()):(ae>=fe.A&&ae<=fe.Z||ae>=fe.xE&&ae<=fe.aO)&&this._letterKeyStream.next(String.fromCharCode(ae))))}this._pressedLetters=[],k.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(k){const ae=this._getItemsArray(),S="number"==typeof k?k:ae.indexOf(k);this._activeItem=ae[S]??null,this._activeItemIndex=S}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(k){this._wrap?this._setActiveInWrapMode(k):this._setActiveInDefaultMode(k)}_setActiveInWrapMode(k){const ae=this._getItemsArray();for(let S=1;S<=ae.length;S++){const L=(this._activeItemIndex+k*S+ae.length)%ae.length;if(!this._skipPredicateFn(ae[L]))return void this.setActiveItem(L)}}_setActiveInDefaultMode(k){this._setActiveItemByIndex(this._activeItemIndex+k,k)}_setActiveItemByIndex(k,ae){const S=this._getItemsArray();if(S[k]){for(;this._skipPredicateFn(S[k]);)if(!S[k+=ae])return;this.setActiveItem(k)}}_getItemsArray(){return this._items instanceof u.n_E?this._items.toArray():this._items}}class Ye extends et{setActiveItem(k){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(k),this.activeItem&&this.activeItem.setActiveStyles()}}let gn=(()=>{var E;class k{constructor(S){this._platform=S}isDisabled(S){return S.hasAttribute("disabled")}isVisible(S){return function Mn(E){return!!(E.offsetWidth||E.offsetHeight||"function"==typeof E.getClientRects&&E.getClientRects().length)}(S)&&"visible"===getComputedStyle(S).visibility}isTabbable(S){if(!this._platform.isBrowser)return!1;const L=function Ht(E){try{return E.frameElement}catch{return null}}(function Ot(E){return E.ownerDocument&&E.ownerDocument.defaultView||window}(S));if(L&&(-1===Re(L)||!this.isVisible(L)))return!1;let ce=S.nodeName.toLowerCase(),K=Re(S);return S.hasAttribute("contenteditable")?-1!==K:!("iframe"===ce||"object"===ce||this._platform.WEBKIT&&this._platform.IOS&&!function dt(E){let k=E.nodeName.toLowerCase(),ae="input"===k&&E.type;return"text"===ae||"password"===ae||"select"===k||"textarea"===k}(S))&&("audio"===ce?!!S.hasAttribute("controls")&&-1!==K:"video"===ce?-1!==K&&(null!==K||this._platform.FIREFOX||S.hasAttribute("controls")):S.tabIndex>=0)}isFocusable(S,L){return function _t(E){return!function In(E){return function Q(E){return"input"==E.nodeName.toLowerCase()}(E)&&"hidden"==E.type}(E)&&(function Wn(E){let k=E.nodeName.toLowerCase();return"input"===k||"select"===k||"button"===k||"textarea"===k}(E)||function pt(E){return function Oe(E){return"a"==E.nodeName.toLowerCase()}(E)&&E.hasAttribute("href")}(E)||E.hasAttribute("contenteditable")||Ce(E))}(S)&&!this.isDisabled(S)&&(L?.ignoreVisibility||this.isVisible(S))}}return(E=k).\u0275fac=function(S){return new(S||E)(u.LFG(B.t4))},E.\u0275prov=u.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),k})();function Ce(E){if(!E.hasAttribute("tabindex")||void 0===E.tabIndex)return!1;let k=E.getAttribute("tabindex");return!(!k||isNaN(parseInt(k,10)))}function Re(E){if(!Ce(E))return null;const k=parseInt(E.getAttribute("tabindex")||"",10);return isNaN(k)?-1:k}class Zt{get enabled(){return this._enabled}set enabled(k){this._enabled=k,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(k,this._startAnchor),this._toggleAnchorTabIndex(k,this._endAnchor))}constructor(k,ae,S,L,ce=!1){this._element=k,this._checker=ae,this._ngZone=S,this._document=L,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ce||this.attachAnchors()}destroy(){const k=this._startAnchor,ae=this._endAnchor;k&&(k.removeEventListener("focus",this.startAnchorListener),k.remove()),ae&&(ae.removeEventListener("focus",this.endAnchorListener),ae.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(k){return new Promise(ae=>{this._executeOnStable(()=>ae(this.focusInitialElement(k)))})}focusFirstTabbableElementWhenReady(k){return new Promise(ae=>{this._executeOnStable(()=>ae(this.focusFirstTabbableElement(k)))})}focusLastTabbableElementWhenReady(k){return new Promise(ae=>{this._executeOnStable(()=>ae(this.focusLastTabbableElement(k)))})}_getRegionBoundary(k){const ae=this._element.querySelectorAll(`[cdk-focus-region-${k}], [cdkFocusRegion${k}], [cdk-focus-${k}]`);return"start"==k?ae.length?ae[0]:this._getFirstTabbableElement(this._element):ae.length?ae[ae.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(k){const ae=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ae){if(!this._checker.isFocusable(ae)){const S=this._getFirstTabbableElement(ae);return S?.focus(k),!!S}return ae.focus(k),!0}return this.focusFirstTabbableElement(k)}focusFirstTabbableElement(k){const ae=this._getRegionBoundary("start");return ae&&ae.focus(k),!!ae}focusLastTabbableElement(k){const ae=this._getRegionBoundary("end");return ae&&ae.focus(k),!!ae}hasAttached(){return this._hasAttached}_getFirstTabbableElement(k){if(this._checker.isFocusable(k)&&this._checker.isTabbable(k))return k;const ae=k.children;for(let S=0;S<ae.length;S++){const L=ae[S].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(ae[S]):null;if(L)return L}return null}_getLastTabbableElement(k){if(this._checker.isFocusable(k)&&this._checker.isTabbable(k))return k;const ae=k.children;for(let S=ae.length-1;S>=0;S--){const L=ae[S].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ae[S]):null;if(L)return L}return null}_createAnchor(){const k=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,k),k.classList.add("cdk-visually-hidden"),k.classList.add("cdk-focus-trap-anchor"),k.setAttribute("aria-hidden","true"),k}_toggleAnchorTabIndex(k,ae){k?ae.setAttribute("tabindex","0"):ae.removeAttribute("tabindex")}toggleAnchors(k){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(k,this._startAnchor),this._toggleAnchorTabIndex(k,this._endAnchor))}_executeOnStable(k){this._ngZone.isStable?k():this._ngZone.onStable.pipe((0,Ie.q)(1)).subscribe(k)}}let lt=(()=>{var E;class k{constructor(S,L,ce){this._checker=S,this._ngZone=L,this._document=ce}create(S,L=!1){return new Zt(S,this._checker,this._ngZone,this._document,L)}}return(E=k).\u0275fac=function(S){return new(S||E)(u.LFG(gn),u.LFG(u.R0b),u.LFG(r.K0))},E.\u0275prov=u.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),k})();function en(E){return 0===E.buttons||0===E.offsetX&&0===E.offsetY}function tn(E){const k=E.touches&&E.touches[0]||E.changedTouches&&E.changedTouches[0];return!(!k||-1!==k.identifier||null!=k.radiusX&&1!==k.radiusX||null!=k.radiusY&&1!==k.radiusY)}const En=new u.OlP("cdk-input-modality-detector-options"),xn={ignoreKeys:[fe.zL,fe.jx,fe.b2,fe.MW,fe.JU]},Cn=(0,B.i$)({passive:!0,capture:!0});let kn=(()=>{var E;class k{get mostRecentModality(){return this._modality.value}constructor(S,L,ce,K){this._platform=S,this._mostRecentTarget=null,this._modality=new ee.X(null),this._lastTouchMs=0,this._onKeydown=oe=>{this._options?.ignoreKeys?.some(De=>De===oe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,B.sA)(oe))},this._onMousedown=oe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(en(oe)?"keyboard":"mouse"),this._mostRecentTarget=(0,B.sA)(oe))},this._onTouchstart=oe=>{tn(oe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,B.sA)(oe))},this._options={...xn,...K},this.modalityDetected=this._modality.pipe(Ne(1)),this.modalityChanged=this.modalityDetected.pipe((0,nt.x)()),S.isBrowser&&L.runOutsideAngular(()=>{ce.addEventListener("keydown",this._onKeydown,Cn),ce.addEventListener("mousedown",this._onMousedown,Cn),ce.addEventListener("touchstart",this._onTouchstart,Cn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Cn),document.removeEventListener("mousedown",this._onMousedown,Cn),document.removeEventListener("touchstart",this._onTouchstart,Cn))}}return(E=k).\u0275fac=function(S){return new(S||E)(u.LFG(B.t4),u.LFG(u.R0b),u.LFG(r.K0),u.LFG(En,8))},E.\u0275prov=u.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),k})();const W=new u.OlP("cdk-focus-monitor-default-options"),O=(0,B.i$)({passive:!0,capture:!0});let V=(()=>{var E;class k{constructor(S,L,ce,K,oe){this._ngZone=S,this._platform=L,this._inputModalityDetector=ce,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new $.x,this._rootNodeFocusAndBlurListener=De=>{for(let ct=(0,B.sA)(De);ct;ct=ct.parentElement)"focus"===De.type?this._onFocus(De,ct):this._onBlur(De,ct)},this._document=K,this._detectionMode=oe?.detectionMode||0}monitor(S,L=!1){const ce=(0,Be.fI)(S);if(!this._platform.isBrowser||1!==ce.nodeType)return(0,te.of)();const K=(0,B.kV)(ce)||this._getDocument(),oe=this._elementInfo.get(ce);if(oe)return L&&(oe.checkChildren=!0),oe.subject;const De={checkChildren:L,subject:new $.x,rootNode:K};return this._elementInfo.set(ce,De),this._registerGlobalListeners(De),De.subject}stopMonitoring(S){const L=(0,Be.fI)(S),ce=this._elementInfo.get(L);ce&&(ce.subject.complete(),this._setClasses(L),this._elementInfo.delete(L),this._removeGlobalListeners(ce))}focusVia(S,L,ce){const K=(0,Be.fI)(S);K===this._getDocument().activeElement?this._getClosestElementsInfo(K).forEach(([De,mt])=>this._originChanged(De,L,mt)):(this._setOrigin(L),"function"==typeof K.focus&&K.focus(ce))}ngOnDestroy(){this._elementInfo.forEach((S,L)=>this.stopMonitoring(L))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(S){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(S)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:S&&this._isLastInteractionFromInputLabel(S)?"mouse":"program"}_shouldBeAttributedToTouch(S){return 1===this._detectionMode||!!S?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(S,L){S.classList.toggle("cdk-focused",!!L),S.classList.toggle("cdk-touch-focused","touch"===L),S.classList.toggle("cdk-keyboard-focused","keyboard"===L),S.classList.toggle("cdk-mouse-focused","mouse"===L),S.classList.toggle("cdk-program-focused","program"===L)}_setOrigin(S,L=!1){this._ngZone.runOutsideAngular(()=>{this._origin=S,this._originFromTouchInteraction="touch"===S&&L,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(S,L){const ce=this._elementInfo.get(L),K=(0,B.sA)(S);!ce||!ce.checkChildren&&L!==K||this._originChanged(L,this._getFocusOrigin(K),ce)}_onBlur(S,L){const ce=this._elementInfo.get(L);!ce||ce.checkChildren&&S.relatedTarget instanceof Node&&L.contains(S.relatedTarget)||(this._setClasses(L),this._emitOrigin(ce,null))}_emitOrigin(S,L){S.subject.observers.length&&this._ngZone.run(()=>S.subject.next(L))}_registerGlobalListeners(S){if(!this._platform.isBrowser)return;const L=S.rootNode,ce=this._rootNodeFocusListenerCount.get(L)||0;ce||this._ngZone.runOutsideAngular(()=>{L.addEventListener("focus",this._rootNodeFocusAndBlurListener,O),L.addEventListener("blur",this._rootNodeFocusAndBlurListener,O)}),this._rootNodeFocusListenerCount.set(L,ce+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,we.R)(this._stopInputModalityDetector)).subscribe(K=>{this._setOrigin(K,!0)}))}_removeGlobalListeners(S){const L=S.rootNode;if(this._rootNodeFocusListenerCount.has(L)){const ce=this._rootNodeFocusListenerCount.get(L);ce>1?this._rootNodeFocusListenerCount.set(L,ce-1):(L.removeEventListener("focus",this._rootNodeFocusAndBlurListener,O),L.removeEventListener("blur",this._rootNodeFocusAndBlurListener,O),this._rootNodeFocusListenerCount.delete(L))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(S,L,ce){this._setClasses(S,L),this._emitOrigin(ce,L),this._lastFocusOrigin=L}_getClosestElementsInfo(S){const L=[];return this._elementInfo.forEach((ce,K)=>{(K===S||ce.checkChildren&&K.contains(S))&&L.push([K,ce])}),L}_isLastInteractionFromInputLabel(S){const{_mostRecentTarget:L,mostRecentModality:ce}=this._inputModalityDetector;if("mouse"!==ce||!L||L===S||"INPUT"!==S.nodeName&&"TEXTAREA"!==S.nodeName||S.disabled)return!1;const K=S.labels;if(K)for(let oe=0;oe<K.length;oe++)if(K[oe].contains(L))return!0;return!1}}return(E=k).\u0275fac=function(S){return new(S||E)(u.LFG(u.R0b),u.LFG(B.t4),u.LFG(kn),u.LFG(r.K0,8),u.LFG(W,8))},E.\u0275prov=u.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),k})();const j="cdk-high-contrast-black-on-white",ye="cdk-high-contrast-white-on-black",z="cdk-high-contrast-active";let ie=(()=>{var E;class k{constructor(S,L){this._platform=S,this._document=L,this._breakpointSubscription=(0,u.f3M)(cn).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const S=this._document.createElement("div");S.style.backgroundColor="rgb(1,2,3)",S.style.position="absolute",this._document.body.appendChild(S);const L=this._document.defaultView||window,ce=L&&L.getComputedStyle?L.getComputedStyle(S):null,K=(ce&&ce.backgroundColor||"").replace(/ /g,"");switch(S.remove(),K){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const S=this._document.body.classList;S.remove(z,j,ye),this._hasCheckedHighContrastMode=!0;const L=this.getHighContrastMode();1===L?S.add(z,j):2===L&&S.add(z,ye)}}}return(E=k).\u0275fac=function(S){return new(S||E)(u.LFG(B.t4),u.LFG(r.K0))},E.\u0275prov=u.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),k})(),se=(()=>{var E;class k{constructor(S){S._applyBodyHighContrastModeCssClasses()}}return(E=k).\u0275fac=function(S){return new(S||E)(u.LFG(ie))},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[J]}),k})()},9388:(It,Me,g)=>{g.d(Me,{Is:()=>te,vT:()=>ne});var r=g(5879),u=g(6814);const B=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function $(){return(0,r.f3M)(u.K0)}}),N=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let te=(()=>{var H;class q{constructor(Ie){this.value="ltr",this.change=new r.vpe,Ie&&(this.value=function ee(H){const q=H?.toLowerCase()||"";return"auto"===q&&typeof navigator<"u"&&navigator?.language?N.test(navigator.language)?"rtl":"ltr":"rtl"===q?"rtl":"ltr"}((Ie.body?Ie.body.dir:null)||(Ie.documentElement?Ie.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(H=q).\u0275fac=function(Ie){return new(Ie||H)(r.LFG(B,8))},H.\u0275prov=r.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),q})(),ne=(()=>{var H;class q{}return(H=q).\u0275fac=function(Ie){return new(Ie||H)},H.\u0275mod=r.oAB({type:H}),H.\u0275inj=r.cJS({}),q})()},2495:(It,Me,g)=>{g.d(Me,{Eq:()=>N,HM:()=>ee,Ig:()=>u,du:()=>fe,fI:()=>te,su:()=>B});var r=g(5879);function u(ne){return null!=ne&&"false"!=`${ne}`}function B(ne,H=0){return function $(ne){return!isNaN(parseFloat(ne))&&!isNaN(Number(ne))}(ne)?Number(ne):H}function N(ne){return Array.isArray(ne)?ne:[ne]}function ee(ne){return null==ne?"":"string"==typeof ne?ne:`${ne}px`}function te(ne){return ne instanceof r.SBq?ne.nativeElement:ne}function fe(ne,H=/\s+/){const q=[];if(null!=ne){const me=Array.isArray(ne)?ne:`${ne}`.split(H);for(const Ie of me){const Ne=`${Ie}`.trim();Ne&&q.push(Ne)}}return q}},6028:(It,Me,g)=>{g.d(Me,{A:()=>ve,JH:()=>at,JU:()=>ee,K5:()=>N,Ku:()=>Ie,LH:()=>Xe,L_:()=>me,MW:()=>He,Mf:()=>B,SV:()=>Ge,Sd:()=>we,VM:()=>Ne,Vb:()=>ir,Z:()=>lt,aO:()=>Fn,b2:()=>xi,hY:()=>q,jx:()=>te,oh:()=>Be,uR:()=>nt,xE:()=>Ke,zL:()=>fe});const B=9,N=13,ee=16,te=17,fe=18,q=27,me=32,Ie=33,Ne=34,nt=35,we=36,Be=37,Xe=38,Ge=39,at=40,Ke=48,Fn=57,ve=65,lt=90,He=91,xi=224;function ir(Ji,...Jn){return Jn.length?Jn.some(Ii=>Ji[Ii]):Ji.altKey||Ji.shiftKey||Ji.ctrlKey||Ji.metaKey}},9594:(It,Me,g)=>{g.d(Me,{Iu:()=>mn,U8:()=>Wn,X_:()=>he,Xj:()=>cn,aV:()=>et});var r=g(6672),u=g(6814),B=g(5879),$=g(2495),N=g(2831),ee=g(2181),te=g(8180),fe=g(9773),ne=g(9388),H=g(8484),q=g(8645),me=g(7394),Ie=g(3019);const Ne=(0,N.Mq)();class nt{constructor(Q,Oe){this._viewportRuler=Q,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Oe}attach(){}enable(){if(this._canBeEnabled()){const Q=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Q.style.left||"",this._previousHTMLStyles.top=Q.style.top||"",Q.style.left=(0,$.HM)(-this._previousScrollPosition.left),Q.style.top=(0,$.HM)(-this._previousScrollPosition.top),Q.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Q=this._document.documentElement,Ce=Q.style,Re=this._document.body.style,dt=Ce.scrollBehavior||"",_t=Re.scrollBehavior||"";this._isEnabled=!1,Ce.left=this._previousHTMLStyles.left,Ce.top=this._previousHTMLStyles.top,Q.classList.remove("cdk-global-scrollblock"),Ne&&(Ce.scrollBehavior=Re.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ne&&(Ce.scrollBehavior=dt,Re.scrollBehavior=_t)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Oe=this._document.body,Ce=this._viewportRuler.getViewportSize();return Oe.scrollHeight>Ce.height||Oe.scrollWidth>Ce.width}}class Be{constructor(Q,Oe,Ce,Re){this._scrollDispatcher=Q,this._ngZone=Oe,this._viewportRuler=Ce,this._config=Re,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Q){this._overlayRef=Q}enable(){if(this._scrollSubscription)return;const Q=this._scrollDispatcher.scrolled(0).pipe((0,ee.h)(Oe=>!Oe||!this._overlayRef.overlayElement.contains(Oe.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Q.subscribe(()=>{const Oe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Oe-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Q.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Xe{enable(){}disable(){}attach(){}}function Ge(pt,Q){return Q.some(Oe=>pt.bottom<Oe.top||pt.top>Oe.bottom||pt.right<Oe.left||pt.left>Oe.right)}function at(pt,Q){return Q.some(Oe=>pt.top<Oe.top||pt.bottom>Oe.bottom||pt.left<Oe.left||pt.right>Oe.right)}class J{constructor(Q,Oe,Ce,Re){this._scrollDispatcher=Q,this._viewportRuler=Oe,this._ngZone=Ce,this._config=Re,this._scrollSubscription=null}attach(Q){this._overlayRef=Q}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Oe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ce,height:Re}=this._viewportRuler.getViewportSize();Ge(Oe,[{width:Ce,height:Re,bottom:Re,right:Ce,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Te=(()=>{var pt;class Q{constructor(Ce,Re,dt,_t){this._scrollDispatcher=Ce,this._viewportRuler=Re,this._ngZone=dt,this.noop=()=>new Xe,this.close=Ot=>new Be(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ot),this.block=()=>new nt(this._viewportRuler,this._document),this.reposition=Ot=>new J(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ot),this._document=_t}}return(pt=Q).\u0275fac=function(Ce){return new(Ce||pt)(B.LFG(r.mF),B.LFG(r.rL),B.LFG(B.R0b),B.LFG(u.K0))},pt.\u0275prov=B.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),Q})();class he{constructor(Q){if(this.scrollStrategy=new Xe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Q){const Oe=Object.keys(Q);for(const Ce of Oe)void 0!==Q[Ce]&&(this[Ce]=Q[Ce])}}}class qe{constructor(Q,Oe){this.connectionPair=Q,this.scrollableViewProperties=Oe}}let Gt=(()=>{var pt;class Q{constructor(Ce){this._attachedOverlays=[],this._document=Ce}ngOnDestroy(){this.detach()}add(Ce){this.remove(Ce),this._attachedOverlays.push(Ce)}remove(Ce){const Re=this._attachedOverlays.indexOf(Ce);Re>-1&&this._attachedOverlays.splice(Re,1),0===this._attachedOverlays.length&&this.detach()}}return(pt=Q).\u0275fac=function(Ce){return new(Ce||pt)(B.LFG(u.K0))},pt.\u0275prov=B.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),Q})(),Xt=(()=>{var pt;class Q extends Gt{constructor(Ce,Re){super(Ce),this._ngZone=Re,this._keydownListener=dt=>{const _t=this._attachedOverlays;for(let Ot=_t.length-1;Ot>-1;Ot--)if(_t[Ot]._keydownEvents.observers.length>0){const Zt=_t[Ot]._keydownEvents;this._ngZone?this._ngZone.run(()=>Zt.next(dt)):Zt.next(dt);break}}}add(Ce){super.add(Ce),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(pt=Q).\u0275fac=function(Ce){return new(Ce||pt)(B.LFG(u.K0),B.LFG(B.R0b,8))},pt.\u0275prov=B.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),Q})(),on=(()=>{var pt;class Q extends Gt{constructor(Ce,Re,dt){super(Ce),this._platform=Re,this._ngZone=dt,this._cursorStyleIsSet=!1,this._pointerDownListener=_t=>{this._pointerDownEventTarget=(0,N.sA)(_t)},this._clickListener=_t=>{const Ot=(0,N.sA)(_t),Zt="click"===_t.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ot;this._pointerDownEventTarget=null;const lt=this._attachedOverlays.slice();for(let He=lt.length-1;He>-1;He--){const vt=lt[He];if(vt._outsidePointerEvents.observers.length<1||!vt.hasAttached())continue;if(vt.overlayElement.contains(Ot)||vt.overlayElement.contains(Zt))break;const ze=vt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ze.next(_t)):ze.next(_t)}}}add(Ce){if(super.add(Ce),!this._isAttached){const Re=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Re)):this._addEventListeners(Re),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Re.style.cursor,Re.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Ce=this._document.body;Ce.removeEventListener("pointerdown",this._pointerDownListener,!0),Ce.removeEventListener("click",this._clickListener,!0),Ce.removeEventListener("auxclick",this._clickListener,!0),Ce.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Ce.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Ce){Ce.addEventListener("pointerdown",this._pointerDownListener,!0),Ce.addEventListener("click",this._clickListener,!0),Ce.addEventListener("auxclick",this._clickListener,!0),Ce.addEventListener("contextmenu",this._clickListener,!0)}}return(pt=Q).\u0275fac=function(Ce){return new(Ce||pt)(B.LFG(u.K0),B.LFG(N.t4),B.LFG(B.R0b,8))},pt.\u0275prov=B.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),Q})(),cn=(()=>{var pt;class Q{constructor(Ce,Re){this._platform=Re,this._document=Ce}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ce="cdk-overlay-container";if(this._platform.isBrowser||(0,N.Oy)()){const dt=this._document.querySelectorAll(`.${Ce}[platform="server"], .${Ce}[platform="test"]`);for(let _t=0;_t<dt.length;_t++)dt[_t].remove()}const Re=this._document.createElement("div");Re.classList.add(Ce),(0,N.Oy)()?Re.setAttribute("platform","test"):this._platform.isBrowser||Re.setAttribute("platform","server"),this._document.body.appendChild(Re),this._containerElement=Re}}return(pt=Q).\u0275fac=function(Ce){return new(Ce||pt)(B.LFG(u.K0),B.LFG(N.t4))},pt.\u0275prov=B.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),Q})();class mn{constructor(Q,Oe,Ce,Re,dt,_t,Ot,Zt,lt,He=!1){this._portalOutlet=Q,this._host=Oe,this._pane=Ce,this._config=Re,this._ngZone=dt,this._keyboardDispatcher=_t,this._document=Ot,this._location=Zt,this._outsideClickDispatcher=lt,this._animationsDisabled=He,this._backdropElement=null,this._backdropClick=new q.x,this._attachments=new q.x,this._detachments=new q.x,this._locationChanges=me.w0.EMPTY,this._backdropClickHandler=vt=>this._backdropClick.next(vt),this._backdropTransitionendHandler=vt=>{this._disposeBackdrop(vt.target)},this._keydownEvents=new q.x,this._outsidePointerEvents=new q.x,Re.scrollStrategy&&(this._scrollStrategy=Re.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Re.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Q){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Oe=this._portalOutlet.attach(Q);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Oe?.onDestroy&&Oe.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Oe}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Q=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Q}dispose(){const Q=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,Q&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(Q){Q!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Q,this.hasAttached()&&(Q.attach(this),this.updatePosition()))}updateSize(Q){this._config={...this._config,...Q},this._updateElementSize()}setDirection(Q){this._config={...this._config,direction:Q},this._updateElementDirection()}addPanelClass(Q){this._pane&&this._toggleClasses(this._pane,Q,!0)}removePanelClass(Q){this._pane&&this._toggleClasses(this._pane,Q,!1)}getDirection(){const Q=this._config.direction;return Q?"string"==typeof Q?Q:Q.value:"ltr"}updateScrollStrategy(Q){Q!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Q,this.hasAttached()&&(Q.attach(this),Q.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Q=this._pane.style;Q.width=(0,$.HM)(this._config.width),Q.height=(0,$.HM)(this._config.height),Q.minWidth=(0,$.HM)(this._config.minWidth),Q.minHeight=(0,$.HM)(this._config.minHeight),Q.maxWidth=(0,$.HM)(this._config.maxWidth),Q.maxHeight=(0,$.HM)(this._config.maxHeight)}_togglePointerEvents(Q){this._pane.style.pointerEvents=Q?"":"none"}_attachBackdrop(){const Q="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(Q)})}):this._backdropElement.classList.add(Q)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Q=this._backdropElement;if(Q){if(this._animationsDisabled)return void this._disposeBackdrop(Q);Q.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Q.addEventListener("transitionend",this._backdropTransitionendHandler)}),Q.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Q)},500))}}_toggleClasses(Q,Oe,Ce){const Re=(0,$.Eq)(Oe||[]).filter(dt=>!!dt);Re.length&&(Ce?Q.classList.add(...Re):Q.classList.remove(...Re))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Q=this._ngZone.onStable.pipe((0,fe.R)((0,Ie.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),Q.unsubscribe())})})}_disposeScrollStrategy(){const Q=this._scrollStrategy;Q&&(Q.disable(),Q.detach&&Q.detach())}_disposeBackdrop(Q){Q&&(Q.removeEventListener("click",this._backdropClickHandler),Q.removeEventListener("transitionend",this._backdropTransitionendHandler),Q.remove(),this._backdropElement===Q&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Fn="cdk-overlay-connected-position-bounding-box",Gn=/([A-Za-z%]+)$/;class Le{get positions(){return this._preferredPositions}constructor(Q,Oe,Ce,Re,dt){this._viewportRuler=Oe,this._document=Ce,this._platform=Re,this._overlayContainer=dt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new q.x,this._resizeSubscription=me.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Q)}attach(Q){this._validatePositions(),Q.hostElement.classList.add(Fn),this._overlayRef=Q,this._boundingBox=Q.hostElement,this._pane=Q.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Q=this._originRect,Oe=this._overlayRect,Ce=this._viewportRect,Re=this._containerRect,dt=[];let _t;for(let Ot of this._preferredPositions){let Zt=this._getOriginPoint(Q,Re,Ot),lt=this._getOverlayPoint(Zt,Oe,Ot),He=this._getOverlayFit(lt,Oe,Ce,Ot);if(He.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ot,Zt);this._canFitWithFlexibleDimensions(He,lt,Ce)?dt.push({position:Ot,origin:Zt,overlayRect:Oe,boundingBoxRect:this._calculateBoundingBoxRect(Zt,Ot)}):(!_t||_t.overlayFit.visibleArea<He.visibleArea)&&(_t={overlayFit:He,overlayPoint:lt,originPoint:Zt,position:Ot,overlayRect:Oe})}if(dt.length){let Ot=null,Zt=-1;for(const lt of dt){const He=lt.boundingBoxRect.width*lt.boundingBoxRect.height*(lt.position.weight||1);He>Zt&&(Zt=He,Ot=lt)}return this._isPushed=!1,void this._applyPosition(Ot.position,Ot.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(_t.position,_t.originPoint);this._applyPosition(_t.position,_t.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ve(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Fn),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Q=this._lastPosition;if(Q){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Oe=this._getOriginPoint(this._originRect,this._containerRect,Q);this._applyPosition(Q,Oe)}else this.apply()}withScrollableContainers(Q){return this._scrollables=Q,this}withPositions(Q){return this._preferredPositions=Q,-1===Q.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Q){return this._viewportMargin=Q,this}withFlexibleDimensions(Q=!0){return this._hasFlexibleDimensions=Q,this}withGrowAfterOpen(Q=!0){return this._growAfterOpen=Q,this}withPush(Q=!0){return this._canPush=Q,this}withLockedPosition(Q=!0){return this._positionLocked=Q,this}setOrigin(Q){return this._origin=Q,this}withDefaultOffsetX(Q){return this._offsetX=Q,this}withDefaultOffsetY(Q){return this._offsetY=Q,this}withTransformOriginOn(Q){return this._transformOriginSelector=Q,this}_getOriginPoint(Q,Oe,Ce){let Re,dt;if("center"==Ce.originX)Re=Q.left+Q.width/2;else{const _t=this._isRtl()?Q.right:Q.left,Ot=this._isRtl()?Q.left:Q.right;Re="start"==Ce.originX?_t:Ot}return Oe.left<0&&(Re-=Oe.left),dt="center"==Ce.originY?Q.top+Q.height/2:"top"==Ce.originY?Q.top:Q.bottom,Oe.top<0&&(dt-=Oe.top),{x:Re,y:dt}}_getOverlayPoint(Q,Oe,Ce){let Re,dt;return Re="center"==Ce.overlayX?-Oe.width/2:"start"===Ce.overlayX?this._isRtl()?-Oe.width:0:this._isRtl()?0:-Oe.width,dt="center"==Ce.overlayY?-Oe.height/2:"top"==Ce.overlayY?0:-Oe.height,{x:Q.x+Re,y:Q.y+dt}}_getOverlayFit(Q,Oe,Ce,Re){const dt=ve(Oe);let{x:_t,y:Ot}=Q,Zt=this._getOffset(Re,"x"),lt=this._getOffset(Re,"y");Zt&&(_t+=Zt),lt&&(Ot+=lt);let ze=0-Ot,Qe=Ot+dt.height-Ce.height,St=this._subtractOverflows(dt.width,0-_t,_t+dt.width-Ce.width),Mt=this._subtractOverflows(dt.height,ze,Qe),en=St*Mt;return{visibleArea:en,isCompletelyWithinViewport:dt.width*dt.height===en,fitsInViewportVertically:Mt===dt.height,fitsInViewportHorizontally:St==dt.width}}_canFitWithFlexibleDimensions(Q,Oe,Ce){if(this._hasFlexibleDimensions){const Re=Ce.bottom-Oe.y,dt=Ce.right-Oe.x,_t=$e(this._overlayRef.getConfig().minHeight),Ot=$e(this._overlayRef.getConfig().minWidth);return(Q.fitsInViewportVertically||null!=_t&&_t<=Re)&&(Q.fitsInViewportHorizontally||null!=Ot&&Ot<=dt)}return!1}_pushOverlayOnScreen(Q,Oe,Ce){if(this._previousPushAmount&&this._positionLocked)return{x:Q.x+this._previousPushAmount.x,y:Q.y+this._previousPushAmount.y};const Re=ve(Oe),dt=this._viewportRect,_t=Math.max(Q.x+Re.width-dt.width,0),Ot=Math.max(Q.y+Re.height-dt.height,0),Zt=Math.max(dt.top-Ce.top-Q.y,0),lt=Math.max(dt.left-Ce.left-Q.x,0);let He=0,vt=0;return He=Re.width<=dt.width?lt||-_t:Q.x<this._viewportMargin?dt.left-Ce.left-Q.x:0,vt=Re.height<=dt.height?Zt||-Ot:Q.y<this._viewportMargin?dt.top-Ce.top-Q.y:0,this._previousPushAmount={x:He,y:vt},{x:Q.x+He,y:Q.y+vt}}_applyPosition(Q,Oe){if(this._setTransformOrigin(Q),this._setOverlayElementStyles(Oe,Q),this._setBoundingBoxStyles(Oe,Q),Q.panelClass&&this._addPanelClasses(Q.panelClass),this._lastPosition=Q,this._positionChanges.observers.length){const Ce=this._getScrollVisibility(),Re=new qe(Q,Ce);this._positionChanges.next(Re)}this._isInitialRender=!1}_setTransformOrigin(Q){if(!this._transformOriginSelector)return;const Oe=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Ce,Re=Q.overlayY;Ce="center"===Q.overlayX?"center":this._isRtl()?"start"===Q.overlayX?"right":"left":"start"===Q.overlayX?"left":"right";for(let dt=0;dt<Oe.length;dt++)Oe[dt].style.transformOrigin=`${Ce} ${Re}`}_calculateBoundingBoxRect(Q,Oe){const Ce=this._viewportRect,Re=this._isRtl();let dt,_t,Ot,He,vt,ze;if("top"===Oe.overlayY)_t=Q.y,dt=Ce.height-_t+this._viewportMargin;else if("bottom"===Oe.overlayY)Ot=Ce.height-Q.y+2*this._viewportMargin,dt=Ce.height-Ot+this._viewportMargin;else{const Qe=Math.min(Ce.bottom-Q.y+Ce.top,Q.y),St=this._lastBoundingBoxSize.height;dt=2*Qe,_t=Q.y-Qe,dt>St&&!this._isInitialRender&&!this._growAfterOpen&&(_t=Q.y-St/2)}if("end"===Oe.overlayX&&!Re||"start"===Oe.overlayX&&Re)ze=Ce.width-Q.x+this._viewportMargin,He=Q.x-this._viewportMargin;else if("start"===Oe.overlayX&&!Re||"end"===Oe.overlayX&&Re)vt=Q.x,He=Ce.right-Q.x;else{const Qe=Math.min(Ce.right-Q.x+Ce.left,Q.x),St=this._lastBoundingBoxSize.width;He=2*Qe,vt=Q.x-Qe,He>St&&!this._isInitialRender&&!this._growAfterOpen&&(vt=Q.x-St/2)}return{top:_t,left:vt,bottom:Ot,right:ze,width:He,height:dt}}_setBoundingBoxStyles(Q,Oe){const Ce=this._calculateBoundingBoxRect(Q,Oe);!this._isInitialRender&&!this._growAfterOpen&&(Ce.height=Math.min(Ce.height,this._lastBoundingBoxSize.height),Ce.width=Math.min(Ce.width,this._lastBoundingBoxSize.width));const Re={};if(this._hasExactPosition())Re.top=Re.left="0",Re.bottom=Re.right=Re.maxHeight=Re.maxWidth="",Re.width=Re.height="100%";else{const dt=this._overlayRef.getConfig().maxHeight,_t=this._overlayRef.getConfig().maxWidth;Re.height=(0,$.HM)(Ce.height),Re.top=(0,$.HM)(Ce.top),Re.bottom=(0,$.HM)(Ce.bottom),Re.width=(0,$.HM)(Ce.width),Re.left=(0,$.HM)(Ce.left),Re.right=(0,$.HM)(Ce.right),Re.alignItems="center"===Oe.overlayX?"center":"end"===Oe.overlayX?"flex-end":"flex-start",Re.justifyContent="center"===Oe.overlayY?"center":"bottom"===Oe.overlayY?"flex-end":"flex-start",dt&&(Re.maxHeight=(0,$.HM)(dt)),_t&&(Re.maxWidth=(0,$.HM)(_t))}this._lastBoundingBoxSize=Ce,Ve(this._boundingBox.style,Re)}_resetBoundingBoxStyles(){Ve(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ve(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Q,Oe){const Ce={},Re=this._hasExactPosition(),dt=this._hasFlexibleDimensions,_t=this._overlayRef.getConfig();if(Re){const He=this._viewportRuler.getViewportScrollPosition();Ve(Ce,this._getExactOverlayY(Oe,Q,He)),Ve(Ce,this._getExactOverlayX(Oe,Q,He))}else Ce.position="static";let Ot="",Zt=this._getOffset(Oe,"x"),lt=this._getOffset(Oe,"y");Zt&&(Ot+=`translateX(${Zt}px) `),lt&&(Ot+=`translateY(${lt}px)`),Ce.transform=Ot.trim(),_t.maxHeight&&(Re?Ce.maxHeight=(0,$.HM)(_t.maxHeight):dt&&(Ce.maxHeight="")),_t.maxWidth&&(Re?Ce.maxWidth=(0,$.HM)(_t.maxWidth):dt&&(Ce.maxWidth="")),Ve(this._pane.style,Ce)}_getExactOverlayY(Q,Oe,Ce){let Re={top:"",bottom:""},dt=this._getOverlayPoint(Oe,this._overlayRect,Q);return this._isPushed&&(dt=this._pushOverlayOnScreen(dt,this._overlayRect,Ce)),"bottom"===Q.overlayY?Re.bottom=this._document.documentElement.clientHeight-(dt.y+this._overlayRect.height)+"px":Re.top=(0,$.HM)(dt.y),Re}_getExactOverlayX(Q,Oe,Ce){let _t,Re={left:"",right:""},dt=this._getOverlayPoint(Oe,this._overlayRect,Q);return this._isPushed&&(dt=this._pushOverlayOnScreen(dt,this._overlayRect,Ce)),_t=this._isRtl()?"end"===Q.overlayX?"left":"right":"end"===Q.overlayX?"right":"left","right"===_t?Re.right=this._document.documentElement.clientWidth-(dt.x+this._overlayRect.width)+"px":Re.left=(0,$.HM)(dt.x),Re}_getScrollVisibility(){const Q=this._getOriginRect(),Oe=this._pane.getBoundingClientRect(),Ce=this._scrollables.map(Re=>Re.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:at(Q,Ce),isOriginOutsideView:Ge(Q,Ce),isOverlayClipped:at(Oe,Ce),isOverlayOutsideView:Ge(Oe,Ce)}}_subtractOverflows(Q,...Oe){return Oe.reduce((Ce,Re)=>Ce-Math.max(Re,0),Q)}_getNarrowedViewportRect(){const Q=this._document.documentElement.clientWidth,Oe=this._document.documentElement.clientHeight,Ce=this._viewportRuler.getViewportScrollPosition();return{top:Ce.top+this._viewportMargin,left:Ce.left+this._viewportMargin,right:Ce.left+Q-this._viewportMargin,bottom:Ce.top+Oe-this._viewportMargin,width:Q-2*this._viewportMargin,height:Oe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Q,Oe){return"x"===Oe?null==Q.offsetX?this._offsetX:Q.offsetX:null==Q.offsetY?this._offsetY:Q.offsetY}_validatePositions(){}_addPanelClasses(Q){this._pane&&(0,$.Eq)(Q).forEach(Oe=>{""!==Oe&&-1===this._appliedPanelClasses.indexOf(Oe)&&(this._appliedPanelClasses.push(Oe),this._pane.classList.add(Oe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Q=>{this._pane.classList.remove(Q)}),this._appliedPanelClasses=[])}_getOriginRect(){const Q=this._origin;if(Q instanceof B.SBq)return Q.nativeElement.getBoundingClientRect();if(Q instanceof Element)return Q.getBoundingClientRect();const Oe=Q.width||0,Ce=Q.height||0;return{top:Q.y,bottom:Q.y+Ce,left:Q.x,right:Q.x+Oe,height:Ce,width:Oe}}}function Ve(pt,Q){for(let Oe in Q)Q.hasOwnProperty(Oe)&&(pt[Oe]=Q[Oe]);return pt}function $e(pt){if("number"!=typeof pt&&null!=pt){const[Q,Oe]=pt.split(Gn);return Oe&&"px"!==Oe?null:parseFloat(Q)}return pt||null}function ve(pt){return{top:Math.floor(pt.top),right:Math.floor(pt.right),bottom:Math.floor(pt.bottom),left:Math.floor(pt.left),width:Math.floor(pt.width),height:Math.floor(pt.height)}}const Dt="cdk-global-overlay-wrapper";class Ue{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(Q){const Oe=Q.getConfig();this._overlayRef=Q,this._width&&!Oe.width&&Q.updateSize({width:this._width}),this._height&&!Oe.height&&Q.updateSize({height:this._height}),Q.hostElement.classList.add(Dt),this._isDisposed=!1}top(Q=""){return this._bottomOffset="",this._topOffset=Q,this._alignItems="flex-start",this}left(Q=""){return this._xOffset=Q,this._xPosition="left",this}bottom(Q=""){return this._topOffset="",this._bottomOffset=Q,this._alignItems="flex-end",this}right(Q=""){return this._xOffset=Q,this._xPosition="right",this}start(Q=""){return this._xOffset=Q,this._xPosition="start",this}end(Q=""){return this._xOffset=Q,this._xPosition="end",this}width(Q=""){return this._overlayRef?this._overlayRef.updateSize({width:Q}):this._width=Q,this}height(Q=""){return this._overlayRef?this._overlayRef.updateSize({height:Q}):this._height=Q,this}centerHorizontally(Q=""){return this.left(Q),this._xPosition="center",this}centerVertically(Q=""){return this.top(Q),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Q=this._overlayRef.overlayElement.style,Oe=this._overlayRef.hostElement.style,Ce=this._overlayRef.getConfig(),{width:Re,height:dt,maxWidth:_t,maxHeight:Ot}=Ce,Zt=!("100%"!==Re&&"100vw"!==Re||_t&&"100%"!==_t&&"100vw"!==_t),lt=!("100%"!==dt&&"100vh"!==dt||Ot&&"100%"!==Ot&&"100vh"!==Ot),He=this._xPosition,vt=this._xOffset,ze="rtl"===this._overlayRef.getConfig().direction;let Qe="",St="",Mt="";Zt?Mt="flex-start":"center"===He?(Mt="center",ze?St=vt:Qe=vt):ze?"left"===He||"end"===He?(Mt="flex-end",Qe=vt):("right"===He||"start"===He)&&(Mt="flex-start",St=vt):"left"===He||"start"===He?(Mt="flex-start",Qe=vt):("right"===He||"end"===He)&&(Mt="flex-end",St=vt),Q.position=this._cssPosition,Q.marginLeft=Zt?"0":Qe,Q.marginTop=lt?"0":this._topOffset,Q.marginBottom=this._bottomOffset,Q.marginRight=Zt?"0":St,Oe.justifyContent=Mt,Oe.alignItems=lt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Q=this._overlayRef.overlayElement.style,Oe=this._overlayRef.hostElement,Ce=Oe.style;Oe.classList.remove(Dt),Ce.justifyContent=Ce.alignItems=Q.marginTop=Q.marginBottom=Q.marginLeft=Q.marginRight=Q.position="",this._overlayRef=null,this._isDisposed=!0}}let ut=(()=>{var pt;class Q{constructor(Ce,Re,dt,_t){this._viewportRuler=Ce,this._document=Re,this._platform=dt,this._overlayContainer=_t}global(){return new Ue}flexibleConnectedTo(Ce){return new Le(Ce,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(pt=Q).\u0275fac=function(Ce){return new(Ce||pt)(B.LFG(r.rL),B.LFG(u.K0),B.LFG(N.t4),B.LFG(cn))},pt.\u0275prov=B.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),Q})(),Pe=0,et=(()=>{var pt;class Q{constructor(Ce,Re,dt,_t,Ot,Zt,lt,He,vt,ze,Qe,St){this.scrollStrategies=Ce,this._overlayContainer=Re,this._componentFactoryResolver=dt,this._positionBuilder=_t,this._keyboardDispatcher=Ot,this._injector=Zt,this._ngZone=lt,this._document=He,this._directionality=vt,this._location=ze,this._outsideClickDispatcher=Qe,this._animationsModuleType=St}create(Ce){const Re=this._createHostElement(),dt=this._createPaneElement(Re),_t=this._createPortalOutlet(dt),Ot=new he(Ce);return Ot.direction=Ot.direction||this._directionality.value,new mn(_t,Re,dt,Ot,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Ce){const Re=this._document.createElement("div");return Re.id="cdk-overlay-"+Pe++,Re.classList.add("cdk-overlay-pane"),Ce.appendChild(Re),Re}_createHostElement(){const Ce=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Ce),Ce}_createPortalOutlet(Ce){return this._appRef||(this._appRef=this._injector.get(B.z2F)),new H.u0(Ce,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(pt=Q).\u0275fac=function(Ce){return new(Ce||pt)(B.LFG(Te),B.LFG(cn),B.LFG(B._Vd),B.LFG(ut),B.LFG(Xt),B.LFG(B.zs3),B.LFG(B.R0b),B.LFG(u.K0),B.LFG(ne.Is),B.LFG(u.Ye),B.LFG(on),B.LFG(B.QbO,8))},pt.\u0275prov=B.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),Q})();const Mn={provide:new B.OlP("cdk-connected-overlay-scroll-strategy"),deps:[et],useFactory:function Ht(pt){return()=>pt.scrollStrategies.reposition()}};let Wn=(()=>{var pt;class Q{}return(pt=Q).\u0275fac=function(Ce){return new(Ce||pt)},pt.\u0275mod=B.oAB({type:pt}),pt.\u0275inj=B.cJS({providers:[et,Mn],imports:[ne.vT,H.eL,r.Cl,r.Cl]}),Q})()},2831:(It,Me,g)=>{g.d(Me,{Mq:()=>Ne,Oy:()=>J,ht:()=>Ge,i$:()=>q,kV:()=>Xe,sA:()=>at,t4:()=>$});var r=g(5879),u=g(6814);let B;try{B=typeof Intl<"u"&&Intl.v8BreakIterator}catch{B=!1}let ne,Ie,we,$=(()=>{var Te;class he{constructor(Ke){this._platformId=Ke,this.isBrowser=this._platformId?(0,u.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!B)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return(Te=he).\u0275fac=function(Ke){return new(Ke||Te)(r.LFG(r.Lbi))},Te.\u0275prov=r.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),he})();function q(Te){return function H(){if(null==ne&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ne=!0}))}finally{ne=ne||!1}return ne}()?Te:!!Te.capture}function Ne(){if(null==Ie){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ie=!1,Ie;if("scrollBehavior"in document.documentElement.style)Ie=!0;else{const Te=Element.prototype.scrollTo;Ie=!!Te&&!/\{\s*\[native code\]\s*\}/.test(Te.toString())}}return Ie}function Xe(Te){if(function Be(){if(null==we){const Te=typeof document<"u"?document.head:null;we=!(!Te||!Te.createShadowRoot&&!Te.attachShadow)}return we}()){const he=Te.getRootNode?Te.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&he instanceof ShadowRoot)return he}return null}function Ge(){let Te=typeof document<"u"&&document?document.activeElement:null;for(;Te&&Te.shadowRoot;){const he=Te.shadowRoot.activeElement;if(he===Te)break;Te=he}return Te}function at(Te){return Te.composedPath?Te.composedPath()[0]:Te.target}function J(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(It,Me,g)=>{g.d(Me,{C5:()=>H,Pl:()=>Ge,UE:()=>q,eL:()=>J,en:()=>Ie,u0:()=>nt});var r=g(5879),u=g(6814);class ne{attach(_e){return this._attachedHost=_e,_e.attach(this)}detach(){let _e=this._attachedHost;null!=_e&&(this._attachedHost=null,_e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(_e){this._attachedHost=_e}}class H extends ne{constructor(_e,Ke,qe,yt,Ut){super(),this.component=_e,this.viewContainerRef=Ke,this.injector=qe,this.componentFactoryResolver=yt,this.projectableNodes=Ut}}class q extends ne{constructor(_e,Ke,qe,yt){super(),this.templateRef=_e,this.viewContainerRef=Ke,this.context=qe,this.injector=yt}get origin(){return this.templateRef.elementRef}attach(_e,Ke=this.context){return this.context=Ke,super.attach(_e)}detach(){return this.context=void 0,super.detach()}}class me extends ne{constructor(_e){super(),this.element=_e instanceof r.SBq?_e.nativeElement:_e}}class Ie{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(_e){return _e instanceof H?(this._attachedPortal=_e,this.attachComponentPortal(_e)):_e instanceof q?(this._attachedPortal=_e,this.attachTemplatePortal(_e)):this.attachDomPortal&&_e instanceof me?(this._attachedPortal=_e,this.attachDomPortal(_e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(_e){this._disposeFn=_e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class nt extends Ie{constructor(_e,Ke,qe,yt,Ut){super(),this.outletElement=_e,this._componentFactoryResolver=Ke,this._appRef=qe,this._defaultInjector=yt,this.attachDomPortal=Gt=>{const Xt=Gt.element,on=this._document.createComment("dom-portal");Xt.parentNode.insertBefore(on,Xt),this.outletElement.appendChild(Xt),this._attachedPortal=Gt,super.setDisposeFn(()=>{on.parentNode&&on.parentNode.replaceChild(Xt,on)})},this._document=Ut}attachComponentPortal(_e){const qe=(_e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(_e.component);let yt;return _e.viewContainerRef?(yt=_e.viewContainerRef.createComponent(qe,_e.viewContainerRef.length,_e.injector||_e.viewContainerRef.injector,_e.projectableNodes||void 0),this.setDisposeFn(()=>yt.destroy())):(yt=qe.create(_e.injector||this._defaultInjector||r.zs3.NULL),this._appRef.attachView(yt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(yt.hostView),yt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(yt)),this._attachedPortal=_e,yt}attachTemplatePortal(_e){let Ke=_e.viewContainerRef,qe=Ke.createEmbeddedView(_e.templateRef,_e.context,{injector:_e.injector});return qe.rootNodes.forEach(yt=>this.outletElement.appendChild(yt)),qe.detectChanges(),this.setDisposeFn(()=>{let yt=Ke.indexOf(qe);-1!==yt&&Ke.remove(yt)}),this._attachedPortal=_e,qe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(_e){return _e.hostView.rootNodes[0]}}let Ge=(()=>{var he;class _e extends Ie{constructor(qe,yt,Ut){super(),this._componentFactoryResolver=qe,this._viewContainerRef=yt,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=Gt=>{const Xt=Gt.element,on=this._document.createComment("dom-portal");Gt.setAttachedHost(this),Xt.parentNode.insertBefore(on,Xt),this._getRootNode().appendChild(Xt),this._attachedPortal=Gt,super.setDisposeFn(()=>{on.parentNode&&on.parentNode.replaceChild(Xt,on)})},this._document=Ut}get portal(){return this._attachedPortal}set portal(qe){this.hasAttached()&&!qe&&!this._isInitialized||(this.hasAttached()&&super.detach(),qe&&super.attach(qe),this._attachedPortal=qe||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(qe){qe.setAttachedHost(this);const yt=null!=qe.viewContainerRef?qe.viewContainerRef:this._viewContainerRef,Gt=(qe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(qe.component),Xt=yt.createComponent(Gt,yt.length,qe.injector||yt.injector,qe.projectableNodes||void 0);return yt!==this._viewContainerRef&&this._getRootNode().appendChild(Xt.hostView.rootNodes[0]),super.setDisposeFn(()=>Xt.destroy()),this._attachedPortal=qe,this._attachedRef=Xt,this.attached.emit(Xt),Xt}attachTemplatePortal(qe){qe.setAttachedHost(this);const yt=this._viewContainerRef.createEmbeddedView(qe.templateRef,qe.context,{injector:qe.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=qe,this._attachedRef=yt,this.attached.emit(yt),yt}_getRootNode(){const qe=this._viewContainerRef.element.nativeElement;return qe.nodeType===qe.ELEMENT_NODE?qe:qe.parentNode}}return(he=_e).\u0275fac=function(qe){return new(qe||he)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(u.K0))},he.\u0275dir=r.lG2({type:he,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),_e})(),J=(()=>{var he;class _e{}return(he=_e).\u0275fac=function(qe){return new(qe||he)},he.\u0275mod=r.oAB({type:he}),he.\u0275inj=r.cJS({}),_e})()},6672:(It,Me,g)=>{g.d(Me,{Cl:()=>Gn,ZD:()=>Fn,mF:()=>J,rL:()=>_e});var r=g(2495),u=g(5879),B=g(8645),$=g(2096),N=g(5592),ee=g(2438),ne=(g(927),g(6410),g(9028)),H=g(2181),q=g(2831),me=g(6814),Ie=g(9388);let J=(()=>{var Le;class Ve{constructor(ve,Je,ht){this._ngZone=ve,this._platform=Je,this._scrolled=new B.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ht}register(ve){this.scrollContainers.has(ve)||this.scrollContainers.set(ve,ve.elementScrolled().subscribe(()=>this._scrolled.next(ve)))}deregister(ve){const Je=this.scrollContainers.get(ve);Je&&(Je.unsubscribe(),this.scrollContainers.delete(ve))}scrolled(ve=20){return this._platform.isBrowser?new N.y(Je=>{this._globalSubscription||this._addGlobalListener();const ht=ve>0?this._scrolled.pipe((0,ne.e)(ve)).subscribe(Je):this._scrolled.subscribe(Je);return this._scrolledCount++,()=>{ht.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,$.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ve,Je)=>this.deregister(Je)),this._scrolled.complete()}ancestorScrolled(ve,Je){const ht=this.getAncestorScrollContainers(ve);return this.scrolled(Je).pipe((0,H.h)(Dt=>!Dt||ht.indexOf(Dt)>-1))}getAncestorScrollContainers(ve){const Je=[];return this.scrollContainers.forEach((ht,Dt)=>{this._scrollableContainsElement(Dt,ve)&&Je.push(Dt)}),Je}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ve,Je){let ht=(0,r.fI)(Je),Dt=ve.getElementRef().nativeElement;do{if(ht==Dt)return!0}while(ht=ht.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ve=this._getWindow();return(0,ee.R)(ve.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(Le=Ve).\u0275fac=function(ve){return new(ve||Le)(u.LFG(u.R0b),u.LFG(q.t4),u.LFG(me.K0,8))},Le.\u0275prov=u.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Ve})(),_e=(()=>{var Le;class Ve{constructor(ve,Je,ht){this._platform=ve,this._change=new B.x,this._changeListener=Dt=>{this._change.next(Dt)},this._document=ht,Je.runOutsideAngular(()=>{if(ve.isBrowser){const Dt=this._getWindow();Dt.addEventListener("resize",this._changeListener),Dt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ve=this._getWindow();ve.removeEventListener("resize",this._changeListener),ve.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ve={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ve}getViewportRect(){const ve=this.getViewportScrollPosition(),{width:Je,height:ht}=this.getViewportSize();return{top:ve.top,left:ve.left,bottom:ve.top+ht,right:ve.left+Je,height:ht,width:Je}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ve=this._document,Je=this._getWindow(),ht=ve.documentElement,Dt=ht.getBoundingClientRect();return{top:-Dt.top||ve.body.scrollTop||Je.scrollY||ht.scrollTop||0,left:-Dt.left||ve.body.scrollLeft||Je.scrollX||ht.scrollLeft||0}}change(ve=20){return ve>0?this._change.pipe((0,ne.e)(ve)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ve=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ve.innerWidth,height:ve.innerHeight}:{width:0,height:0}}}return(Le=Ve).\u0275fac=function(ve){return new(ve||Le)(u.LFG(q.t4),u.LFG(u.R0b),u.LFG(me.K0,8))},Le.\u0275prov=u.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Ve})(),Fn=(()=>{var Le;class Ve{}return(Le=Ve).\u0275fac=function(ve){return new(ve||Le)},Le.\u0275mod=u.oAB({type:Le}),Le.\u0275inj=u.cJS({}),Ve})(),Gn=(()=>{var Le;class Ve{}return(Le=Ve).\u0275fac=function(ve){return new(ve||Le)},Le.\u0275mod=u.oAB({type:Le}),Le.\u0275inj=u.cJS({imports:[Ie.vT,Fn,Ie.vT,Fn]}),Ve})()},6814:(It,Me,g)=>{g.d(Me,{$G:()=>jn,Do:()=>we,EM:()=>Qt,HT:()=>$,JF:()=>bi,JJ:()=>$t,K0:()=>ee,Mx:()=>Lt,NF:()=>Fe,O5:()=>xi,OU:()=>gi,Ov:()=>_r,PC:()=>Xr,PM:()=>Se,S$:()=>Ie,V_:()=>fe,Ye:()=>Be,b0:()=>nt,bD:()=>rr,ez:()=>di,mk:()=>Pn,q:()=>B,sg:()=>Xn,tP:()=>Br,uU:()=>Ui,w_:()=>N});var r=g(5879);let u=null;function B(){return u}function $(h){u||(u=h)}class N{}const ee=new r.OlP("DocumentToken");let te=(()=>{var h;class I{historyGo(x){throw new Error("Not implemented")}}return(h=I).\u0275fac=function(x){return new(x||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(ne)},providedIn:"platform"}),I})();const fe=new r.OlP("Location Initialized");let ne=(()=>{var h;class I extends te{constructor(){super(),this._doc=(0,r.f3M)(ee),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return B().getBaseHref(this._doc)}onPopState(x){const re=B().getGlobalEventTarget(this._doc,"window");return re.addEventListener("popstate",x,!1),()=>re.removeEventListener("popstate",x)}onHashChange(x){const re=B().getGlobalEventTarget(this._doc,"window");return re.addEventListener("hashchange",x,!1),()=>re.removeEventListener("hashchange",x)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(x){this._location.pathname=x}pushState(x,re,ke){this._history.pushState(x,re,ke)}replaceState(x,re,ke){this._history.replaceState(x,re,ke)}forward(){this._history.forward()}back(){this._history.back()}historyGo(x=0){this._history.go(x)}getState(){return this._history.state}}return(h=I).\u0275fac=function(x){return new(x||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return new h},providedIn:"platform"}),I})();function H(h,I){if(0==h.length)return I;if(0==I.length)return h;let ue=0;return h.endsWith("/")&&ue++,I.startsWith("/")&&ue++,2==ue?h+I.substring(1):1==ue?h+I:h+"/"+I}function q(h){const I=h.match(/#|\?|$/),ue=I&&I.index||h.length;return h.slice(0,ue-("/"===h[ue-1]?1:0))+h.slice(ue)}function me(h){return h&&"?"!==h[0]?"?"+h:h}let Ie=(()=>{var h;class I{historyGo(x){throw new Error("Not implemented")}}return(h=I).\u0275fac=function(x){return new(x||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(nt)},providedIn:"root"}),I})();const Ne=new r.OlP("appBaseHref");let nt=(()=>{var h;class I extends Ie{constructor(x,re){super(),this._platformLocation=x,this._removeListenerFns=[],this._baseHref=re??this._platformLocation.getBaseHrefFromDOM()??(0,r.f3M)(ee).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(x){this._removeListenerFns.push(this._platformLocation.onPopState(x),this._platformLocation.onHashChange(x))}getBaseHref(){return this._baseHref}prepareExternalUrl(x){return H(this._baseHref,x)}path(x=!1){const re=this._platformLocation.pathname+me(this._platformLocation.search),ke=this._platformLocation.hash;return ke&&x?`${re}${ke}`:re}pushState(x,re,ke,Et){const jt=this.prepareExternalUrl(ke+me(Et));this._platformLocation.pushState(x,re,jt)}replaceState(x,re,ke,Et){const jt=this.prepareExternalUrl(ke+me(Et));this._platformLocation.replaceState(x,re,jt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(x=0){this._platformLocation.historyGo?.(x)}}return(h=I).\u0275fac=function(x){return new(x||h)(r.LFG(te),r.LFG(Ne,8))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),I})(),we=(()=>{var h;class I extends Ie{constructor(x,re){super(),this._platformLocation=x,this._baseHref="",this._removeListenerFns=[],null!=re&&(this._baseHref=re)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(x){this._removeListenerFns.push(this._platformLocation.onPopState(x),this._platformLocation.onHashChange(x))}getBaseHref(){return this._baseHref}path(x=!1){let re=this._platformLocation.hash;return null==re&&(re="#"),re.length>0?re.substring(1):re}prepareExternalUrl(x){const re=H(this._baseHref,x);return re.length>0?"#"+re:re}pushState(x,re,ke,Et){let jt=this.prepareExternalUrl(ke+me(Et));0==jt.length&&(jt=this._platformLocation.pathname),this._platformLocation.pushState(x,re,jt)}replaceState(x,re,ke,Et){let jt=this.prepareExternalUrl(ke+me(Et));0==jt.length&&(jt=this._platformLocation.pathname),this._platformLocation.replaceState(x,re,jt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(x=0){this._platformLocation.historyGo?.(x)}}return(h=I).\u0275fac=function(x){return new(x||h)(r.LFG(te),r.LFG(Ne,8))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac}),I})(),Be=(()=>{var h;class I{constructor(x){this._subject=new r.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=x;const re=this._locationStrategy.getBaseHref();this._basePath=function J(h){if(new RegExp("^(https?:)?//").test(h)){const[,ue]=h.split(/\/\/[^\/]+/);return ue}return h}(q(at(re))),this._locationStrategy.onPopState(ke=>{this._subject.emit({url:this.path(!0),pop:!0,state:ke.state,type:ke.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(x=!1){return this.normalize(this._locationStrategy.path(x))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(x,re=""){return this.path()==this.normalize(x+me(re))}normalize(x){return I.stripTrailingSlash(function Ge(h,I){if(!h||!I.startsWith(h))return I;const ue=I.substring(h.length);return""===ue||["/",";","?","#"].includes(ue[0])?ue:I}(this._basePath,at(x)))}prepareExternalUrl(x){return x&&"/"!==x[0]&&(x="/"+x),this._locationStrategy.prepareExternalUrl(x)}go(x,re="",ke=null){this._locationStrategy.pushState(ke,"",x,re),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+me(re)),ke)}replaceState(x,re="",ke=null){this._locationStrategy.replaceState(ke,"",x,re),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+me(re)),ke)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(x=0){this._locationStrategy.historyGo?.(x)}onUrlChange(x){return this._urlChangeListeners.push(x),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(re=>{this._notifyUrlChangeListeners(re.url,re.state)})),()=>{const re=this._urlChangeListeners.indexOf(x);this._urlChangeListeners.splice(re,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(x="",re){this._urlChangeListeners.forEach(ke=>ke(x,re))}subscribe(x,re,ke){return this._subject.subscribe({next:x,error:re,complete:ke})}}return(h=I).normalizeQueryParams=me,h.joinWithSlash=H,h.stripTrailingSlash=q,h.\u0275fac=function(x){return new(x||h)(r.LFG(Ie))},h.\u0275prov=r.Yz7({token:h,factory:function(){return function Xe(){return new Be((0,r.LFG)(Ie))}()},providedIn:"root"}),I})();function at(h){return h.replace(/\/index.html$/,"")}var he=function(h){return h[h.Decimal=0]="Decimal",h[h.Percent=1]="Percent",h[h.Currency=2]="Currency",h[h.Scientific=3]="Scientific",h}(he||{}),Ke=function(h){return h[h.Format=0]="Format",h[h.Standalone=1]="Standalone",h}(Ke||{}),qe=function(h){return h[h.Narrow=0]="Narrow",h[h.Abbreviated=1]="Abbreviated",h[h.Wide=2]="Wide",h[h.Short=3]="Short",h}(qe||{}),yt=function(h){return h[h.Short=0]="Short",h[h.Medium=1]="Medium",h[h.Long=2]="Long",h[h.Full=3]="Full",h}(yt||{}),Ut=function(h){return h[h.Decimal=0]="Decimal",h[h.Group=1]="Group",h[h.List=2]="List",h[h.PercentSign=3]="PercentSign",h[h.PlusSign=4]="PlusSign",h[h.MinusSign=5]="MinusSign",h[h.Exponential=6]="Exponential",h[h.SuperscriptingExponent=7]="SuperscriptingExponent",h[h.PerMille=8]="PerMille",h[h.Infinity=9]="Infinity",h[h.NaN=10]="NaN",h[h.TimeSeparator=11]="TimeSeparator",h[h.CurrencyDecimal=12]="CurrencyDecimal",h[h.CurrencyGroup=13]="CurrencyGroup",h}(Ut||{});function Ve(h,I){return Ht((0,r.cg1)(h)[r.wAp.DateFormat],I)}function $e(h,I){return Ht((0,r.cg1)(h)[r.wAp.TimeFormat],I)}function ve(h,I){return Ht((0,r.cg1)(h)[r.wAp.DateTimeFormat],I)}function Je(h,I){const ue=(0,r.cg1)(h),x=ue[r.wAp.NumberSymbols][I];if(typeof x>"u"){if(I===Ut.CurrencyDecimal)return ue[r.wAp.NumberSymbols][Ut.Decimal];if(I===Ut.CurrencyGroup)return ue[r.wAp.NumberSymbols][Ut.Group]}return x}function Ye(h){if(!h[r.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${h[r.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ht(h,I){for(let ue=I;ue>-1;ue--)if(typeof h[ue]<"u")return h[ue];throw new Error("Locale data API: locale data undefined")}function Mn(h){const[I,ue]=h.split(":");return{hours:+I,minutes:+ue}}const Q=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Oe={},Ce=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Re=function(h){return h[h.Short=0]="Short",h[h.ShortGMT=1]="ShortGMT",h[h.Long=2]="Long",h[h.Extended=3]="Extended",h}(Re||{}),dt=function(h){return h[h.FullYear=0]="FullYear",h[h.Month=1]="Month",h[h.Date=2]="Date",h[h.Hours=3]="Hours",h[h.Minutes=4]="Minutes",h[h.Seconds=5]="Seconds",h[h.FractionalSeconds=6]="FractionalSeconds",h[h.Day=7]="Day",h}(dt||{}),_t=function(h){return h[h.DayPeriods=0]="DayPeriods",h[h.Days=1]="Days",h[h.Months=2]="Months",h[h.Eras=3]="Eras",h}(_t||{});function Ot(h,I,ue,x){let re=function W(h){if(V(h))return h;if("number"==typeof h&&!isNaN(h))return new Date(h);if("string"==typeof h){if(h=h.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(h)){const[re,ke=1,Et=1]=h.split("-").map(jt=>+jt);return Zt(re,ke-1,Et)}const ue=parseFloat(h);if(!isNaN(h-ue))return new Date(ue);let x;if(x=h.match(Q))return function O(h){const I=new Date(0);let ue=0,x=0;const re=h[8]?I.setUTCFullYear:I.setFullYear,ke=h[8]?I.setUTCHours:I.setHours;h[9]&&(ue=Number(h[9]+h[10]),x=Number(h[9]+h[11])),re.call(I,Number(h[1]),Number(h[2])-1,Number(h[3]));const Et=Number(h[4]||0)-ue,jt=Number(h[5]||0)-x,Ln=Number(h[6]||0),ei=Math.floor(1e3*parseFloat("0."+(h[7]||0)));return ke.call(I,Et,jt,Ln,ei),I}(x)}const I=new Date(h);if(!V(I))throw new Error(`Unable to convert "${h}" into a date`);return I}(h);I=lt(ue,I)||I;let jt,Et=[];for(;I;){if(jt=Ce.exec(I),!jt){Et.push(I);break}{Et=Et.concat(jt.slice(1));const Qn=Et.pop();if(!Qn)break;I=Qn}}let Ln=re.getTimezoneOffset();x&&(Ln=Zn(x,Ln),re=function xe(h,I,ue){const x=ue?-1:1,re=h.getTimezoneOffset();return function ai(h,I){return(h=new Date(h.getTime())).setMinutes(h.getMinutes()+I),h}(h,x*(Zn(I,re)-re))}(re,x,!0));let ei="";return Et.forEach(Qn=>{const Nn=function oi(h){if(On[h])return On[h];let I;switch(h){case"G":case"GG":case"GGG":I=Mt(_t.Eras,qe.Abbreviated);break;case"GGGG":I=Mt(_t.Eras,qe.Wide);break;case"GGGGG":I=Mt(_t.Eras,qe.Narrow);break;case"y":I=Qe(dt.FullYear,1,0,!1,!0);break;case"yy":I=Qe(dt.FullYear,2,0,!0,!0);break;case"yyy":I=Qe(dt.FullYear,3,0,!1,!0);break;case"yyyy":I=Qe(dt.FullYear,4,0,!1,!0);break;case"Y":I=ni(1);break;case"YY":I=ni(2,!0);break;case"YYY":I=ni(3);break;case"YYYY":I=ni(4);break;case"M":case"L":I=Qe(dt.Month,1,1);break;case"MM":case"LL":I=Qe(dt.Month,2,1);break;case"MMM":I=Mt(_t.Months,qe.Abbreviated);break;case"MMMM":I=Mt(_t.Months,qe.Wide);break;case"MMMMM":I=Mt(_t.Months,qe.Narrow);break;case"LLL":I=Mt(_t.Months,qe.Abbreviated,Ke.Standalone);break;case"LLLL":I=Mt(_t.Months,qe.Wide,Ke.Standalone);break;case"LLLLL":I=Mt(_t.Months,qe.Narrow,Ke.Standalone);break;case"w":I=kn(1);break;case"ww":I=kn(2);break;case"W":I=kn(1,!0);break;case"d":I=Qe(dt.Date,1);break;case"dd":I=Qe(dt.Date,2);break;case"c":case"cc":I=Qe(dt.Day,1);break;case"ccc":I=Mt(_t.Days,qe.Abbreviated,Ke.Standalone);break;case"cccc":I=Mt(_t.Days,qe.Wide,Ke.Standalone);break;case"ccccc":I=Mt(_t.Days,qe.Narrow,Ke.Standalone);break;case"cccccc":I=Mt(_t.Days,qe.Short,Ke.Standalone);break;case"E":case"EE":case"EEE":I=Mt(_t.Days,qe.Abbreviated);break;case"EEEE":I=Mt(_t.Days,qe.Wide);break;case"EEEEE":I=Mt(_t.Days,qe.Narrow);break;case"EEEEEE":I=Mt(_t.Days,qe.Short);break;case"a":case"aa":case"aaa":I=Mt(_t.DayPeriods,qe.Abbreviated);break;case"aaaa":I=Mt(_t.DayPeriods,qe.Wide);break;case"aaaaa":I=Mt(_t.DayPeriods,qe.Narrow);break;case"b":case"bb":case"bbb":I=Mt(_t.DayPeriods,qe.Abbreviated,Ke.Standalone,!0);break;case"bbbb":I=Mt(_t.DayPeriods,qe.Wide,Ke.Standalone,!0);break;case"bbbbb":I=Mt(_t.DayPeriods,qe.Narrow,Ke.Standalone,!0);break;case"B":case"BB":case"BBB":I=Mt(_t.DayPeriods,qe.Abbreviated,Ke.Format,!0);break;case"BBBB":I=Mt(_t.DayPeriods,qe.Wide,Ke.Format,!0);break;case"BBBBB":I=Mt(_t.DayPeriods,qe.Narrow,Ke.Format,!0);break;case"h":I=Qe(dt.Hours,1,-12);break;case"hh":I=Qe(dt.Hours,2,-12);break;case"H":I=Qe(dt.Hours,1);break;case"HH":I=Qe(dt.Hours,2);break;case"m":I=Qe(dt.Minutes,1);break;case"mm":I=Qe(dt.Minutes,2);break;case"s":I=Qe(dt.Seconds,1);break;case"ss":I=Qe(dt.Seconds,2);break;case"S":I=Qe(dt.FractionalSeconds,1);break;case"SS":I=Qe(dt.FractionalSeconds,2);break;case"SSS":I=Qe(dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":I=tn(Re.Short);break;case"ZZZZZ":I=tn(Re.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":I=tn(Re.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":I=tn(Re.Long);break;default:return null}return On[h]=I,I}(Qn);ei+=Nn?Nn(re,ue,Ln):"''"===Qn?"'":Qn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ei}function Zt(h,I,ue){const x=new Date(0);return x.setFullYear(h,I,ue),x.setHours(0,0,0),x}function lt(h,I){const ue=function Xt(h){return(0,r.cg1)(h)[r.wAp.LocaleId]}(h);if(Oe[ue]=Oe[ue]||{},Oe[ue][I])return Oe[ue][I];let x="";switch(I){case"shortDate":x=Ve(h,yt.Short);break;case"mediumDate":x=Ve(h,yt.Medium);break;case"longDate":x=Ve(h,yt.Long);break;case"fullDate":x=Ve(h,yt.Full);break;case"shortTime":x=$e(h,yt.Short);break;case"mediumTime":x=$e(h,yt.Medium);break;case"longTime":x=$e(h,yt.Long);break;case"fullTime":x=$e(h,yt.Full);break;case"short":const re=lt(h,"shortTime"),ke=lt(h,"shortDate");x=He(ve(h,yt.Short),[re,ke]);break;case"medium":const Et=lt(h,"mediumTime"),jt=lt(h,"mediumDate");x=He(ve(h,yt.Medium),[Et,jt]);break;case"long":const Ln=lt(h,"longTime"),ei=lt(h,"longDate");x=He(ve(h,yt.Long),[Ln,ei]);break;case"full":const Qn=lt(h,"fullTime"),Nn=lt(h,"fullDate");x=He(ve(h,yt.Full),[Qn,Nn])}return x&&(Oe[ue][I]=x),x}function He(h,I){return I&&(h=h.replace(/\{([^}]+)}/g,function(ue,x){return null!=I&&x in I?I[x]:ue})),h}function vt(h,I,ue="-",x,re){let ke="";(h<0||re&&h<=0)&&(re?h=1-h:(h=-h,ke=ue));let Et=String(h);for(;Et.length<I;)Et="0"+Et;return x&&(Et=Et.slice(Et.length-I)),ke+Et}function Qe(h,I,ue=0,x=!1,re=!1){return function(ke,Et){let jt=function St(h,I){switch(h){case dt.FullYear:return I.getFullYear();case dt.Month:return I.getMonth();case dt.Date:return I.getDate();case dt.Hours:return I.getHours();case dt.Minutes:return I.getMinutes();case dt.Seconds:return I.getSeconds();case dt.FractionalSeconds:return I.getMilliseconds();case dt.Day:return I.getDay();default:throw new Error(`Unknown DateType value "${h}".`)}}(h,ke);if((ue>0||jt>-ue)&&(jt+=ue),h===dt.Hours)0===jt&&-12===ue&&(jt=12);else if(h===dt.FractionalSeconds)return function ze(h,I){return vt(h,3).substring(0,I)}(jt,I);const Ln=Je(Et,Ut.MinusSign);return vt(jt,I,Ln,x,re)}}function Mt(h,I,ue=Ke.Format,x=!1){return function(re,ke){return function en(h,I,ue,x,re,ke){switch(ue){case _t.Months:return function mn(h,I,ue){const x=(0,r.cg1)(h),ke=Ht([x[r.wAp.MonthsFormat],x[r.wAp.MonthsStandalone]],I);return Ht(ke,ue)}(I,re,x)[h.getMonth()];case _t.Days:return function cn(h,I,ue){const x=(0,r.cg1)(h),ke=Ht([x[r.wAp.DaysFormat],x[r.wAp.DaysStandalone]],I);return Ht(ke,ue)}(I,re,x)[h.getDay()];case _t.DayPeriods:const Et=h.getHours(),jt=h.getMinutes();if(ke){const ei=function Rt(h){const I=(0,r.cg1)(h);return Ye(I),(I[r.wAp.ExtraData][2]||[]).map(x=>"string"==typeof x?Mn(x):[Mn(x[0]),Mn(x[1])])}(I),Qn=function Yt(h,I,ue){const x=(0,r.cg1)(h);Ye(x);const ke=Ht([x[r.wAp.ExtraData][0],x[r.wAp.ExtraData][1]],I)||[];return Ht(ke,ue)||[]}(I,re,x),Nn=ei.findIndex(Si=>{if(Array.isArray(Si)){const[ii,Bi]=Si,xr=Et>=ii.hours&&jt>=ii.minutes,pr=Et<Bi.hours||Et===Bi.hours&&jt<Bi.minutes;if(ii.hours<Bi.hours){if(xr&&pr)return!0}else if(xr||pr)return!0}else if(Si.hours===Et&&Si.minutes===jt)return!0;return!1});if(-1!==Nn)return Qn[Nn]}return function on(h,I,ue){const x=(0,r.cg1)(h),ke=Ht([x[r.wAp.DayPeriodsFormat],x[r.wAp.DayPeriodsStandalone]],I);return Ht(ke,ue)}(I,re,x)[Et<12?0:1];case _t.Eras:return function Fn(h,I){return Ht((0,r.cg1)(h)[r.wAp.Eras],I)}(I,x)[h.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${ue}`)}}(re,ke,h,I,ue,x)}}function tn(h){return function(I,ue,x){const re=-1*x,ke=Je(ue,Ut.MinusSign),Et=re>0?Math.floor(re/60):Math.ceil(re/60);switch(h){case Re.Short:return(re>=0?"+":"")+vt(Et,2,ke)+vt(Math.abs(re%60),2,ke);case Re.ShortGMT:return"GMT"+(re>=0?"+":"")+vt(Et,1,ke);case Re.Long:return"GMT"+(re>=0?"+":"")+vt(Et,2,ke)+":"+vt(Math.abs(re%60),2,ke);case Re.Extended:return 0===x?"Z":(re>=0?"+":"")+vt(Et,2,ke)+":"+vt(Math.abs(re%60),2,ke);default:throw new Error(`Unknown zone width "${h}"`)}}}const En=0,xn=4;function Cn(h){return Zt(h.getFullYear(),h.getMonth(),h.getDate()+(xn-h.getDay()))}function kn(h,I=!1){return function(ue,x){let re;if(I){const ke=new Date(ue.getFullYear(),ue.getMonth(),1).getDay()-1,Et=ue.getDate();re=1+Math.floor((Et+ke)/7)}else{const ke=Cn(ue),Et=function dn(h){const I=Zt(h,En,1).getDay();return Zt(h,0,1+(I<=xn?xn:xn+7)-I)}(ke.getFullYear()),jt=ke.getTime()-Et.getTime();re=1+Math.round(jt/6048e5)}return vt(re,h,Je(x,Ut.MinusSign))}}function ni(h,I=!1){return function(ue,x){return vt(Cn(ue).getFullYear(),h,Je(x,Ut.MinusSign),I)}}const On={};function Zn(h,I){h=h.replace(/:/g,"");const ue=Date.parse("Jan 01, 1970 00:00:00 "+h)/6e4;return isNaN(ue)?I:ue}function V(h){return h instanceof Date&&!isNaN(h.valueOf())}const M=/^(\d+)?\.((\d+)(-(\d+))?)?$/,z="0";function tt(h){const I=parseInt(h);if(isNaN(I))throw new Error("Invalid integer literal when parsing "+h);return I}function Lt(h,I){I=encodeURIComponent(I);for(const ue of h.split(";")){const x=ue.indexOf("="),[re,ke]=-1==x?[ue,""]:[ue.slice(0,x),ue.slice(x+1)];if(re.trim()===I)return decodeURIComponent(ke)}return null}const fn=/\s+/,Kn=[];let Pn=(()=>{var h;class I{constructor(x,re,ke,Et){this._iterableDiffers=x,this._keyValueDiffers=re,this._ngEl=ke,this._renderer=Et,this.initialClasses=Kn,this.stateMap=new Map}set klass(x){this.initialClasses=null!=x?x.trim().split(fn):Kn}set ngClass(x){this.rawClass="string"==typeof x?x.trim().split(fn):x}ngDoCheck(){for(const re of this.initialClasses)this._updateState(re,!0);const x=this.rawClass;if(Array.isArray(x)||x instanceof Set)for(const re of x)this._updateState(re,!0);else if(null!=x)for(const re of Object.keys(x))this._updateState(re,!!x[re]);this._applyStateDiff()}_updateState(x,re){const ke=this.stateMap.get(x);void 0!==ke?(ke.enabled!==re&&(ke.changed=!0,ke.enabled=re),ke.touched=!0):this.stateMap.set(x,{enabled:re,changed:!0,touched:!0})}_applyStateDiff(){for(const x of this.stateMap){const re=x[0],ke=x[1];ke.changed?(this._toggleClass(re,ke.enabled),ke.changed=!1):ke.touched||(ke.enabled&&this._toggleClass(re,!1),this.stateMap.delete(re)),ke.touched=!1}}_toggleClass(x,re){(x=x.trim()).length>0&&x.split(fn).forEach(ke=>{re?this._renderer.addClass(this._ngEl.nativeElement,ke):this._renderer.removeClass(this._ngEl.nativeElement,ke)})}}return(h=I).\u0275fac=function(x){return new(x||h)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},h.\u0275dir=r.lG2({type:h,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),I})(),jn=(()=>{var h;class I{constructor(x){this._viewContainerRef=x,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(x){return void 0!==x.ngComponentOutletNgModule||void 0!==x.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(x){return void 0!==x.ngComponentOutlet||void 0!==x.ngComponentOutletContent||void 0!==x.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(x)}ngOnChanges(x){if(this._needToReCreateComponentInstance(x)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const re=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(x)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,r.Lck)(this.ngComponentOutletNgModule,mi(re)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(mi(re)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:re,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const x of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(x,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(x){for(const[re,ke]of this._inputsUsed)ke?(x.setInput(re,this.ngComponentOutletInputs[re]),this._inputsUsed.set(re,!1)):(x.setInput(re,void 0),this._inputsUsed.delete(re))}}return(h=I).\u0275fac=function(x){return new(x||h)(r.Y36(r.s_b))},h.\u0275dir=r.lG2({type:h,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[r.TTD]}),I})();function mi(h){return h.get(r.h0i).injector}class Vi{constructor(I,ue,x,re){this.$implicit=I,this.ngForOf=ue,this.index=x,this.count=re}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Xn=(()=>{var h;class I{set ngForOf(x){this._ngForOf=x,this._ngForOfDirty=!0}set ngForTrackBy(x){this._trackByFn=x}get ngForTrackBy(){return this._trackByFn}constructor(x,re,ke){this._viewContainer=x,this._template=re,this._differs=ke,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(x){x&&(this._template=x)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const x=this._ngForOf;!this._differ&&x&&(this._differ=this._differs.find(x).create(this.ngForTrackBy))}if(this._differ){const x=this._differ.diff(this._ngForOf);x&&this._applyChanges(x)}}_applyChanges(x){const re=this._viewContainer;x.forEachOperation((ke,Et,jt)=>{if(null==ke.previousIndex)re.createEmbeddedView(this._template,new Vi(ke.item,this._ngForOf,-1,-1),null===jt?void 0:jt);else if(null==jt)re.remove(null===Et?void 0:Et);else if(null!==Et){const Ln=re.get(Et);re.move(Ln,jt),Mi(Ln,ke)}});for(let ke=0,Et=re.length;ke<Et;ke++){const Ln=re.get(ke).context;Ln.index=ke,Ln.count=Et,Ln.ngForOf=this._ngForOf}x.forEachIdentityChange(ke=>{Mi(re.get(ke.currentIndex),ke)})}static ngTemplateContextGuard(x,re){return!0}}return(h=I).\u0275fac=function(x){return new(x||h)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},h.\u0275dir=r.lG2({type:h,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),I})();function Mi(h,I){h.context.$implicit=I.item}let xi=(()=>{var h;class I{constructor(x,re){this._viewContainer=x,this._context=new ir,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=re}set ngIf(x){this._context.$implicit=this._context.ngIf=x,this._updateView()}set ngIfThen(x){Ji("ngIfThen",x),this._thenTemplateRef=x,this._thenViewRef=null,this._updateView()}set ngIfElse(x){Ji("ngIfElse",x),this._elseTemplateRef=x,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(x,re){return!0}}return(h=I).\u0275fac=function(x){return new(x||h)(r.Y36(r.s_b),r.Y36(r.Rgc))},h.\u0275dir=r.lG2({type:h,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),I})();class ir{constructor(){this.$implicit=null,this.ngIf=null}}function Ji(h,I){if(I&&!I.createEmbeddedView)throw new Error(`${h} must be a TemplateRef, but received '${(0,r.AaK)(I)}'.`)}let Xr=(()=>{var h;class I{constructor(x,re,ke){this._ngEl=x,this._differs=re,this._renderer=ke,this._ngStyle=null,this._differ=null}set ngStyle(x){this._ngStyle=x,!this._differ&&x&&(this._differ=this._differs.find(x).create())}ngDoCheck(){if(this._differ){const x=this._differ.diff(this._ngStyle);x&&this._applyChanges(x)}}_setStyle(x,re){const[ke,Et]=x.split("."),jt=-1===ke.indexOf("-")?void 0:r.JOm.DashCase;null!=re?this._renderer.setStyle(this._ngEl.nativeElement,ke,Et?`${re}${Et}`:re,jt):this._renderer.removeStyle(this._ngEl.nativeElement,ke,jt)}_applyChanges(x){x.forEachRemovedItem(re=>this._setStyle(re.key,null)),x.forEachAddedItem(re=>this._setStyle(re.key,re.currentValue)),x.forEachChangedItem(re=>this._setStyle(re.key,re.currentValue))}}return(h=I).\u0275fac=function(x){return new(x||h)(r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(r.Qsj))},h.\u0275dir=r.lG2({type:h,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),I})(),Br=(()=>{var h;class I{constructor(x){this._viewContainerRef=x,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(x){if(x.ngTemplateOutlet||x.ngTemplateOutletInjector){const re=this._viewContainerRef;if(this._viewRef&&re.remove(re.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ke,ngTemplateOutletContext:Et,ngTemplateOutletInjector:jt}=this;this._viewRef=re.createEmbeddedView(ke,Et,jt?{injector:jt}:void 0)}else this._viewRef=null}else this._viewRef&&x.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(h=I).\u0275fac=function(x){return new(x||h)(r.Y36(r.s_b))},h.\u0275dir=r.lG2({type:h,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[r.TTD]}),I})();function cr(h,I){return new r.vHH(2100,!1)}class Jr{createSubscription(I,ue){return(0,r.rg0)(()=>I.subscribe({next:ue,error:x=>{throw x}}))}dispose(I){(0,r.rg0)(()=>I.unsubscribe())}}class Ni{createSubscription(I,ue){return I.then(ue,x=>{throw x})}dispose(I){}}const $r=new Ni,zr=new Jr;let _r=(()=>{var h;class I{constructor(x){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=x}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(x){return this._obj?x!==this._obj?(this._dispose(),this.transform(x)):this._latestValue:(x&&this._subscribe(x),this._latestValue)}_subscribe(x){this._obj=x,this._strategy=this._selectStrategy(x),this._subscription=this._strategy.createSubscription(x,re=>this._updateLatestValue(x,re))}_selectStrategy(x){if((0,r.QGY)(x))return $r;if((0,r.F4k)(x))return zr;throw cr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(x,re){x===this._obj&&(this._latestValue=re,this._ref.markForCheck())}}return(h=I).\u0275fac=function(x){return new(x||h)(r.Y36(r.sBO,16))},h.\u0275pipe=r.Yjl({name:"async",type:h,pure:!1,standalone:!0}),I})();const vi=new r.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),fi=new r.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Ui=(()=>{var h;class I{constructor(x,re,ke){this.locale=x,this.defaultTimezone=re,this.defaultOptions=ke}transform(x,re,ke,Et){if(null==x||""===x||x!=x)return null;try{return Ot(x,re??this.defaultOptions?.dateFormat??"mediumDate",Et||this.locale,ke??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(jt){throw cr()}}}return(h=I).\u0275fac=function(x){return new(x||h)(r.Y36(r.soG,16),r.Y36(vi,24),r.Y36(fi,24))},h.\u0275pipe=r.Yjl({name:"date",type:h,pure:!0,standalone:!0}),I})(),$t=(()=>{var h;class I{constructor(x){this._locale=x}transform(x,re,ke){if(!function Oi(h){return!(null==h||""===h||h!=h)}(x))return null;ke=ke||this._locale;try{return function K(h,I,ue){return function S(h,I,ue,x,re,ke,Et=!1){let jt="",Ln=!1;if(isFinite(h)){let ei=function mt(h){let x,re,ke,Et,jt,I=Math.abs(h)+"",ue=0;for((re=I.indexOf("."))>-1&&(I=I.replace(".","")),(ke=I.search(/e/i))>0?(re<0&&(re=ke),re+=+I.slice(ke+1),I=I.substring(0,ke)):re<0&&(re=I.length),ke=0;I.charAt(ke)===z;ke++);if(ke===(jt=I.length))x=[0],re=1;else{for(jt--;I.charAt(jt)===z;)jt--;for(re-=ke,x=[],Et=0;ke<=jt;ke++,Et++)x[Et]=Number(I.charAt(ke))}return re>22&&(x=x.splice(0,21),ue=re-1,re=1),{digits:x,exponent:ue,integerLen:re}}(h);Et&&(ei=function De(h){if(0===h.digits[0])return h;const I=h.digits.length-h.integerLen;return h.exponent?h.exponent+=2:(0===I?h.digits.push(0,0):1===I&&h.digits.push(0),h.integerLen+=2),h}(ei));let Qn=I.minInt,Nn=I.minFrac,Si=I.maxFrac;if(ke){const Or=ke.match(M);if(null===Or)throw new Error(`${ke} is not a valid digit info`);const Zi=Or[1],is=Or[3],gs=Or[5];null!=Zi&&(Qn=tt(Zi)),null!=is&&(Nn=tt(is)),null!=gs?Si=tt(gs):null!=is&&Nn>Si&&(Si=Nn)}!function ct(h,I,ue){if(I>ue)throw new Error(`The minimum number of digits after fraction (${I}) is higher than the maximum (${ue}).`);let x=h.digits,re=x.length-h.integerLen;const ke=Math.min(Math.max(I,re),ue);let Et=ke+h.integerLen,jt=x[Et];if(Et>0){x.splice(Math.max(h.integerLen,Et));for(let Nn=Et;Nn<x.length;Nn++)x[Nn]=0}else{re=Math.max(0,re),h.integerLen=1,x.length=Math.max(1,Et=ke+1),x[0]=0;for(let Nn=1;Nn<Et;Nn++)x[Nn]=0}if(jt>=5)if(Et-1<0){for(let Nn=0;Nn>Et;Nn--)x.unshift(0),h.integerLen++;x.unshift(1),h.integerLen++}else x[Et-1]++;for(;re<Math.max(0,ke);re++)x.push(0);let Ln=0!==ke;const ei=I+h.integerLen,Qn=x.reduceRight(function(Nn,Si,ii,Bi){return Bi[ii]=(Si+=Nn)<10?Si:Si-10,Ln&&(0===Bi[ii]&&ii>=ei?Bi.pop():Ln=!1),Si>=10?1:0},0);Qn&&(x.unshift(Qn),h.integerLen++)}(ei,Nn,Si);let ii=ei.digits,Bi=ei.integerLen;const xr=ei.exponent;let pr=[];for(Ln=ii.every(Or=>!Or);Bi<Qn;Bi++)ii.unshift(0);for(;Bi<0;Bi++)ii.unshift(0);Bi>0?pr=ii.splice(Bi,ii.length):(pr=ii,ii=[0]);const Ar=[];for(ii.length>=I.lgSize&&Ar.unshift(ii.splice(-I.lgSize,ii.length).join(""));ii.length>I.gSize;)Ar.unshift(ii.splice(-I.gSize,ii.length).join(""));ii.length&&Ar.unshift(ii.join("")),jt=Ar.join(Je(ue,x)),pr.length&&(jt+=Je(ue,re)+pr.join("")),xr&&(jt+=Je(ue,Ut.Exponential)+"+"+xr)}else jt=Je(ue,Ut.Infinity);return jt=h<0&&!Ln?I.negPre+jt+I.negSuf:I.posPre+jt+I.posSuf,jt}(h,function oe(h,I="-"){const ue={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},x=h.split(";"),re=x[0],ke=x[1],Et=-1!==re.indexOf(".")?re.split("."):[re.substring(0,re.lastIndexOf(z)+1),re.substring(re.lastIndexOf(z)+1)],jt=Et[0],Ln=Et[1]||"";ue.posPre=jt.substring(0,jt.indexOf("#"));for(let Qn=0;Qn<Ln.length;Qn++){const Nn=Ln.charAt(Qn);Nn===z?ue.minFrac=ue.maxFrac=Qn+1:"#"===Nn?ue.maxFrac=Qn+1:ue.posSuf+=Nn}const ei=jt.split(",");if(ue.gSize=ei[1]?ei[1].length:0,ue.lgSize=ei[2]||ei[1]?(ei[2]||ei[1]).length:0,ke){const Qn=re.length-ue.posPre.length-ue.posSuf.length,Nn=ke.indexOf("#");ue.negPre=ke.substring(0,Nn).replace(/'/g,""),ue.negSuf=ke.slice(Nn+Qn).replace(/'/g,"")}else ue.negPre=I+ue.posPre,ue.negSuf=ue.posSuf;return ue}(function ht(h,I){return(0,r.cg1)(h)[r.wAp.NumberFormats][I]}(I,he.Decimal),Je(I,Ut.MinusSign)),I,Ut.Group,Ut.Decimal,ue)}(function ur(h){if("string"==typeof h&&!isNaN(Number(h)-parseFloat(h)))return Number(h);if("number"!=typeof h)throw new Error(`${h} is not a number`);return h}(x),ke,re)}catch(Et){throw cr()}}}return(h=I).\u0275fac=function(x){return new(x||h)(r.Y36(r.soG,16))},h.\u0275pipe=r.Yjl({name:"number",type:h,pure:!0,standalone:!0}),I})();let gi=(()=>{var h;class I{transform(x,re,ke){if(null==x)return null;if(!this.supports(x))throw cr();return x.slice(re,ke)}supports(x){return"string"==typeof x||Array.isArray(x)}}return(h=I).\u0275fac=function(x){return new(x||h)},h.\u0275pipe=r.Yjl({name:"slice",type:h,pure:!1,standalone:!0}),I})(),di=(()=>{var h;class I{}return(h=I).\u0275fac=function(x){return new(x||h)},h.\u0275mod=r.oAB({type:h}),h.\u0275inj=r.cJS({}),I})();const rr="browser",Vr="server";function Fe(h){return h===rr}function Se(h){return h===Vr}let Qt=(()=>{var h;class I{}return(h=I).\u0275prov=(0,r.Yz7)({token:h,providedIn:"root",factory:()=>new ln((0,r.LFG)(ee),window)}),I})();class ln{constructor(I,ue){this.document=I,this.window=ue,this.offset=()=>[0,0]}setOffset(I){this.offset=Array.isArray(I)?()=>I:I}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(I){this.supportsScrolling()&&this.window.scrollTo(I[0],I[1])}scrollToAnchor(I){if(!this.supportsScrolling())return;const ue=function Dn(h,I){const ue=h.getElementById(I)||h.getElementsByName(I)[0];if(ue)return ue;if("function"==typeof h.createTreeWalker&&h.body&&"function"==typeof h.body.attachShadow){const x=h.createTreeWalker(h.body,NodeFilter.SHOW_ELEMENT);let re=x.currentNode;for(;re;){const ke=re.shadowRoot;if(ke){const Et=ke.getElementById(I)||ke.querySelector(`[name="${I}"]`);if(Et)return Et}re=x.nextNode()}}return null}(this.document,I);ue&&(this.scrollToElement(ue),ue.focus())}setHistoryScrollRestoration(I){this.supportsScrolling()&&(this.window.history.scrollRestoration=I)}scrollToElement(I){const ue=I.getBoundingClientRect(),x=ue.left+this.window.pageXOffset,re=ue.top+this.window.pageYOffset,ke=this.offset();this.window.scrollTo(x-ke[0],re-ke[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class bi{}},9862:(It,Me,g)=>{g.d(Me,{JF:()=>M,TP:()=>Ye,WM:()=>Ie,eN:()=>Le});var r=g(5879),u=g(2096),B=g(2459),$=g(5592),N=g(6328),ee=g(2181),te=g(7398),fe=g(4716),ne=g(4664),H=g(6814);class q{}class me{}class Ie{constructor(L){this.normalizedNames=new Map,this.lazyUpdate=null,L?"string"==typeof L?this.lazyInit=()=>{this.headers=new Map,L.split("\n").forEach(ce=>{const K=ce.indexOf(":");if(K>0){const oe=ce.slice(0,K),De=oe.toLowerCase(),mt=ce.slice(K+1).trim();this.maybeSetNormalizedName(oe,De),this.headers.has(De)?this.headers.get(De).push(mt):this.headers.set(De,[mt])}})}:typeof Headers<"u"&&L instanceof Headers?(this.headers=new Map,L.forEach((ce,K)=>{this.setHeaderEntries(K,ce)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(L).forEach(([ce,K])=>{this.setHeaderEntries(ce,K)})}:this.headers=new Map}has(L){return this.init(),this.headers.has(L.toLowerCase())}get(L){this.init();const ce=this.headers.get(L.toLowerCase());return ce&&ce.length>0?ce[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(L){return this.init(),this.headers.get(L.toLowerCase())||null}append(L,ce){return this.clone({name:L,value:ce,op:"a"})}set(L,ce){return this.clone({name:L,value:ce,op:"s"})}delete(L,ce){return this.clone({name:L,value:ce,op:"d"})}maybeSetNormalizedName(L,ce){this.normalizedNames.has(ce)||this.normalizedNames.set(ce,L)}init(){this.lazyInit&&(this.lazyInit instanceof Ie?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(L=>this.applyUpdate(L)),this.lazyUpdate=null))}copyFrom(L){L.init(),Array.from(L.headers.keys()).forEach(ce=>{this.headers.set(ce,L.headers.get(ce)),this.normalizedNames.set(ce,L.normalizedNames.get(ce))})}clone(L){const ce=new Ie;return ce.lazyInit=this.lazyInit&&this.lazyInit instanceof Ie?this.lazyInit:this,ce.lazyUpdate=(this.lazyUpdate||[]).concat([L]),ce}applyUpdate(L){const ce=L.name.toLowerCase();switch(L.op){case"a":case"s":let K=L.value;if("string"==typeof K&&(K=[K]),0===K.length)return;this.maybeSetNormalizedName(L.name,ce);const oe=("a"===L.op?this.headers.get(ce):void 0)||[];oe.push(...K),this.headers.set(ce,oe);break;case"d":const De=L.value;if(De){let mt=this.headers.get(ce);if(!mt)return;mt=mt.filter(ct=>-1===De.indexOf(ct)),0===mt.length?(this.headers.delete(ce),this.normalizedNames.delete(ce)):this.headers.set(ce,mt)}else this.headers.delete(ce),this.normalizedNames.delete(ce)}}setHeaderEntries(L,ce){const K=(Array.isArray(ce)?ce:[ce]).map(De=>De.toString()),oe=L.toLowerCase();this.headers.set(oe,K),this.maybeSetNormalizedName(L,oe)}forEach(L){this.init(),Array.from(this.normalizedNames.keys()).forEach(ce=>L(this.normalizedNames.get(ce),this.headers.get(ce)))}}class nt{encodeKey(L){return Ge(L)}encodeValue(L){return Ge(L)}decodeKey(L){return decodeURIComponent(L)}decodeValue(L){return decodeURIComponent(L)}}const Be=/%(\d[a-f0-9])/gi,Xe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ge(S){return encodeURIComponent(S).replace(Be,(L,ce)=>Xe[ce]??L)}function at(S){return`${S}`}class J{constructor(L={}){if(this.updates=null,this.cloneFrom=null,this.encoder=L.encoder||new nt,L.fromString){if(L.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function we(S,L){const ce=new Map;return S.length>0&&S.replace(/^\?/,"").split("&").forEach(oe=>{const De=oe.indexOf("="),[mt,ct]=-1==De?[L.decodeKey(oe),""]:[L.decodeKey(oe.slice(0,De)),L.decodeValue(oe.slice(De+1))],tt=ce.get(mt)||[];tt.push(ct),ce.set(mt,tt)}),ce}(L.fromString,this.encoder)}else L.fromObject?(this.map=new Map,Object.keys(L.fromObject).forEach(ce=>{const K=L.fromObject[ce],oe=Array.isArray(K)?K.map(at):[at(K)];this.map.set(ce,oe)})):this.map=null}has(L){return this.init(),this.map.has(L)}get(L){this.init();const ce=this.map.get(L);return ce?ce[0]:null}getAll(L){return this.init(),this.map.get(L)||null}keys(){return this.init(),Array.from(this.map.keys())}append(L,ce){return this.clone({param:L,value:ce,op:"a"})}appendAll(L){const ce=[];return Object.keys(L).forEach(K=>{const oe=L[K];Array.isArray(oe)?oe.forEach(De=>{ce.push({param:K,value:De,op:"a"})}):ce.push({param:K,value:oe,op:"a"})}),this.clone(ce)}set(L,ce){return this.clone({param:L,value:ce,op:"s"})}delete(L,ce){return this.clone({param:L,value:ce,op:"d"})}toString(){return this.init(),this.keys().map(L=>{const ce=this.encoder.encodeKey(L);return this.map.get(L).map(K=>ce+"="+this.encoder.encodeValue(K)).join("&")}).filter(L=>""!==L).join("&")}clone(L){const ce=new J({encoder:this.encoder});return ce.cloneFrom=this.cloneFrom||this,ce.updates=(this.updates||[]).concat(L),ce}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(L=>this.map.set(L,this.cloneFrom.map.get(L))),this.updates.forEach(L=>{switch(L.op){case"a":case"s":const ce=("a"===L.op?this.map.get(L.param):void 0)||[];ce.push(at(L.value)),this.map.set(L.param,ce);break;case"d":if(void 0===L.value){this.map.delete(L.param);break}{let K=this.map.get(L.param)||[];const oe=K.indexOf(at(L.value));-1!==oe&&K.splice(oe,1),K.length>0?this.map.set(L.param,K):this.map.delete(L.param)}}}),this.cloneFrom=this.updates=null)}}class he{constructor(){this.map=new Map}set(L,ce){return this.map.set(L,ce),this}get(L){return this.map.has(L)||this.map.set(L,L.defaultValue()),this.map.get(L)}delete(L){return this.map.delete(L),this}has(L){return this.map.has(L)}keys(){return this.map.keys()}}function Ke(S){return typeof ArrayBuffer<"u"&&S instanceof ArrayBuffer}function qe(S){return typeof Blob<"u"&&S instanceof Blob}function yt(S){return typeof FormData<"u"&&S instanceof FormData}class Gt{constructor(L,ce,K,oe){let De;if(this.url=ce,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=L.toUpperCase(),function _e(S){switch(S){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||oe?(this.body=void 0!==K?K:null,De=oe):De=K,De&&(this.reportProgress=!!De.reportProgress,this.withCredentials=!!De.withCredentials,De.responseType&&(this.responseType=De.responseType),De.headers&&(this.headers=De.headers),De.context&&(this.context=De.context),De.params&&(this.params=De.params)),this.headers||(this.headers=new Ie),this.context||(this.context=new he),this.params){const mt=this.params.toString();if(0===mt.length)this.urlWithParams=ce;else{const ct=ce.indexOf("?");this.urlWithParams=ce+(-1===ct?"?":ct<ce.length-1?"&":"")+mt}}else this.params=new J,this.urlWithParams=ce}serializeBody(){return null===this.body?null:Ke(this.body)||qe(this.body)||yt(this.body)||function Ut(S){return typeof URLSearchParams<"u"&&S instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof J?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||yt(this.body)?null:qe(this.body)?this.body.type||null:Ke(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof J?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(L={}){const ce=L.method||this.method,K=L.url||this.url,oe=L.responseType||this.responseType,De=void 0!==L.body?L.body:this.body,mt=void 0!==L.withCredentials?L.withCredentials:this.withCredentials,ct=void 0!==L.reportProgress?L.reportProgress:this.reportProgress;let tt=L.headers||this.headers,At=L.params||this.params;const xt=L.context??this.context;return void 0!==L.setHeaders&&(tt=Object.keys(L.setHeaders).reduce((Ae,gt)=>Ae.set(gt,L.setHeaders[gt]),tt)),L.setParams&&(At=Object.keys(L.setParams).reduce((Ae,gt)=>Ae.set(gt,L.setParams[gt]),At)),new Gt(ce,K,De,{params:At,headers:tt,context:xt,reportProgress:ct,responseType:oe,withCredentials:mt})}}var Xt=function(S){return S[S.Sent=0]="Sent",S[S.UploadProgress=1]="UploadProgress",S[S.ResponseHeader=2]="ResponseHeader",S[S.DownloadProgress=3]="DownloadProgress",S[S.Response=4]="Response",S[S.User=5]="User",S}(Xt||{});class on{constructor(L,ce=200,K="OK"){this.headers=L.headers||new Ie,this.status=void 0!==L.status?L.status:ce,this.statusText=L.statusText||K,this.url=L.url||null,this.ok=this.status>=200&&this.status<300}}class cn extends on{constructor(L={}){super(L),this.type=Xt.ResponseHeader}clone(L={}){return new cn({headers:L.headers||this.headers,status:void 0!==L.status?L.status:this.status,statusText:L.statusText||this.statusText,url:L.url||this.url||void 0})}}class mn extends on{constructor(L={}){super(L),this.type=Xt.Response,this.body=void 0!==L.body?L.body:null}clone(L={}){return new mn({body:void 0!==L.body?L.body:this.body,headers:L.headers||this.headers,status:void 0!==L.status?L.status:this.status,statusText:L.statusText||this.statusText,url:L.url||this.url||void 0})}}class Fn extends on{constructor(L){super(L,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${L.url||"(unknown url)"}`:`Http failure response for ${L.url||"(unknown url)"}: ${L.status} ${L.statusText}`,this.error=L.error||null}}function Gn(S,L){return{body:L,headers:S.headers,context:S.context,observe:S.observe,params:S.params,reportProgress:S.reportProgress,responseType:S.responseType,withCredentials:S.withCredentials}}let Le=(()=>{var S;class L{constructor(K){this.handler=K}request(K,oe,De={}){let mt;if(K instanceof Gt)mt=K;else{let At,xt;At=De.headers instanceof Ie?De.headers:new Ie(De.headers),De.params&&(xt=De.params instanceof J?De.params:new J({fromObject:De.params})),mt=new Gt(K,oe,void 0!==De.body?De.body:null,{headers:At,context:De.context,params:xt,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const ct=(0,u.of)(mt).pipe((0,N.b)(At=>this.handler.handle(At)));if(K instanceof Gt||"events"===De.observe)return ct;const tt=ct.pipe((0,ee.h)(At=>At instanceof mn));switch(De.observe||"body"){case"body":switch(mt.responseType){case"arraybuffer":return tt.pipe((0,te.U)(At=>{if(null!==At.body&&!(At.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return At.body}));case"blob":return tt.pipe((0,te.U)(At=>{if(null!==At.body&&!(At.body instanceof Blob))throw new Error("Response is not a Blob.");return At.body}));case"text":return tt.pipe((0,te.U)(At=>{if(null!==At.body&&"string"!=typeof At.body)throw new Error("Response is not a string.");return At.body}));default:return tt.pipe((0,te.U)(At=>At.body))}case"response":return tt;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete(K,oe={}){return this.request("DELETE",K,oe)}get(K,oe={}){return this.request("GET",K,oe)}head(K,oe={}){return this.request("HEAD",K,oe)}jsonp(K,oe){return this.request("JSONP",K,{params:(new J).append(oe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(K,oe={}){return this.request("OPTIONS",K,oe)}patch(K,oe,De={}){return this.request("PATCH",K,Gn(De,oe))}post(K,oe,De={}){return this.request("POST",K,Gn(De,oe))}put(K,oe,De={}){return this.request("PUT",K,Gn(De,oe))}}return(S=L).\u0275fac=function(K){return new(K||S)(r.LFG(q))},S.\u0275prov=r.Yz7({token:S,factory:S.\u0275fac}),L})();function ut(S,L){return L(S)}function Pe(S,L){return(ce,K)=>L.intercept(ce,{handle:oe=>S(oe,K)})}const Ye=new r.OlP(""),Rt=new r.OlP(""),Yt=new r.OlP("");function gn(){let S=null;return(L,ce)=>{null===S&&(S=((0,r.f3M)(Ye,{optional:!0})??[]).reduceRight(Pe,ut));const K=(0,r.f3M)(r.HDt),oe=K.add();return S(L,ce).pipe((0,fe.x)(()=>K.remove(oe)))}}let Ht=(()=>{var S;class L extends q{constructor(K,oe){super(),this.backend=K,this.injector=oe,this.chain=null,this.pendingTasks=(0,r.f3M)(r.HDt)}handle(K){if(null===this.chain){const De=Array.from(new Set([...this.injector.get(Rt),...this.injector.get(Yt,[])]));this.chain=De.reduceRight((mt,ct)=>function et(S,L,ce){return(K,oe)=>ce.runInContext(()=>L(K,De=>S(De,oe)))}(mt,ct,this.injector),ut)}const oe=this.pendingTasks.add();return this.chain(K,De=>this.backend.handle(De)).pipe((0,fe.x)(()=>this.pendingTasks.remove(oe)))}}return(S=L).\u0275fac=function(K){return new(K||S)(r.LFG(me),r.LFG(r.lqb))},S.\u0275prov=r.Yz7({token:S,factory:S.\u0275fac}),L})();const Zt=/^\)\]\}',?\n/;let He=(()=>{var S;class L{constructor(K){this.xhrFactory=K}handle(K){if("JSONP"===K.method)throw new r.vHH(-2800,!1);const oe=this.xhrFactory;return(oe.\u0275loadImpl?(0,B.D)(oe.\u0275loadImpl()):(0,u.of)(null)).pipe((0,ne.w)(()=>new $.y(mt=>{const ct=oe.build();if(ct.open(K.method,K.urlWithParams),K.withCredentials&&(ct.withCredentials=!0),K.headers.forEach((Pn,jn)=>ct.setRequestHeader(Pn,jn.join(","))),K.headers.has("Accept")||ct.setRequestHeader("Accept","application/json, text/plain, */*"),!K.headers.has("Content-Type")){const Pn=K.detectContentTypeHeader();null!==Pn&&ct.setRequestHeader("Content-Type",Pn)}if(K.responseType){const Pn=K.responseType.toLowerCase();ct.responseType="json"!==Pn?Pn:"text"}const tt=K.serializeBody();let At=null;const xt=()=>{if(null!==At)return At;const Pn=ct.statusText||"OK",jn=new Ie(ct.getAllResponseHeaders()),mi=function lt(S){return"responseURL"in S&&S.responseURL?S.responseURL:/^X-Request-URL:/m.test(S.getAllResponseHeaders())?S.getResponseHeader("X-Request-URL"):null}(ct)||K.url;return At=new cn({headers:jn,status:ct.status,statusText:Pn,url:mi}),At},Ae=()=>{let{headers:Pn,status:jn,statusText:mi,url:Vi}=xt(),Xn=null;204!==jn&&(Xn=typeof ct.response>"u"?ct.responseText:ct.response),0===jn&&(jn=Xn?200:0);let Mi=jn>=200&&jn<300;if("json"===K.responseType&&"string"==typeof Xn){const li=Xn;Xn=Xn.replace(Zt,"");try{Xn=""!==Xn?JSON.parse(Xn):null}catch(xi){Xn=li,Mi&&(Mi=!1,Xn={error:xi,text:Xn})}}Mi?(mt.next(new mn({body:Xn,headers:Pn,status:jn,statusText:mi,url:Vi||void 0})),mt.complete()):mt.error(new Fn({error:Xn,headers:Pn,status:jn,statusText:mi,url:Vi||void 0}))},gt=Pn=>{const{url:jn}=xt(),mi=new Fn({error:Pn,status:ct.status||0,statusText:ct.statusText||"Unknown Error",url:jn||void 0});mt.error(mi)};let Lt=!1;const fn=Pn=>{Lt||(mt.next(xt()),Lt=!0);let jn={type:Xt.DownloadProgress,loaded:Pn.loaded};Pn.lengthComputable&&(jn.total=Pn.total),"text"===K.responseType&&ct.responseText&&(jn.partialText=ct.responseText),mt.next(jn)},Kn=Pn=>{let jn={type:Xt.UploadProgress,loaded:Pn.loaded};Pn.lengthComputable&&(jn.total=Pn.total),mt.next(jn)};return ct.addEventListener("load",Ae),ct.addEventListener("error",gt),ct.addEventListener("timeout",gt),ct.addEventListener("abort",gt),K.reportProgress&&(ct.addEventListener("progress",fn),null!==tt&&ct.upload&&ct.upload.addEventListener("progress",Kn)),ct.send(tt),mt.next({type:Xt.Sent}),()=>{ct.removeEventListener("error",gt),ct.removeEventListener("abort",gt),ct.removeEventListener("load",Ae),ct.removeEventListener("timeout",gt),K.reportProgress&&(ct.removeEventListener("progress",fn),null!==tt&&ct.upload&&ct.upload.removeEventListener("progress",Kn)),ct.readyState!==ct.DONE&&ct.abort()}})))}}return(S=L).\u0275fac=function(K){return new(K||S)(r.LFG(H.JF))},S.\u0275prov=r.Yz7({token:S,factory:S.\u0275fac}),L})();const vt=new r.OlP("XSRF_ENABLED"),Qe=new r.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Mt=new r.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class en{}let tn=(()=>{var S;class L{constructor(K,oe,De){this.doc=K,this.platform=oe,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const K=this.doc.cookie||"";return K!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,H.Mx)(K,this.cookieName),this.lastCookieString=K),this.lastToken}}return(S=L).\u0275fac=function(K){return new(K||S)(r.LFG(H.K0),r.LFG(r.Lbi),r.LFG(Qe))},S.\u0275prov=r.Yz7({token:S,factory:S.\u0275fac}),L})();function En(S,L){const ce=S.url.toLowerCase();if(!(0,r.f3M)(vt)||"GET"===S.method||"HEAD"===S.method||ce.startsWith("http://")||ce.startsWith("https://"))return L(S);const K=(0,r.f3M)(en).getToken(),oe=(0,r.f3M)(Mt);return null!=K&&!S.headers.has(oe)&&(S=S.clone({headers:S.headers.set(oe,K)})),L(S)}var dn=function(S){return S[S.Interceptors=0]="Interceptors",S[S.LegacyInterceptors=1]="LegacyInterceptors",S[S.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",S[S.NoXsrfProtection=3]="NoXsrfProtection",S[S.JsonpSupport=4]="JsonpSupport",S[S.RequestsMadeViaParent=5]="RequestsMadeViaParent",S[S.Fetch=6]="Fetch",S}(dn||{});function Cn(S,L){return{\u0275kind:S,\u0275providers:L}}function kn(...S){const L=[Le,He,Ht,{provide:q,useExisting:Ht},{provide:me,useExisting:He},{provide:Rt,useValue:En,multi:!0},{provide:vt,useValue:!0},{provide:en,useClass:tn}];for(const ce of S)L.push(...ce.\u0275providers);return(0,r.MR2)(L)}const On=new r.OlP("LEGACY_INTERCEPTOR_FN");let M=(()=>{var S;class L{}return(S=L).\u0275fac=function(K){return new(K||S)},S.\u0275mod=r.oAB({type:S}),S.\u0275inj=r.cJS({providers:[kn(Cn(dn.LegacyInterceptors,[{provide:On,useFactory:gn},{provide:Rt,useExisting:On,multi:!0}]))]}),L})()},5879:(It,Me,g)=>{g.d(Me,{$8M:()=>Pl,$WT:()=>Ui,$Z:()=>Fp,AFp:()=>Jh,ALo:()=>g_,AaK:()=>me,AsE:()=>lf,BQk:()=>ou,CHM:()=>Us,CRH:()=>F_,Dn7:()=>y_,EJc:()=>kw,EiD:()=>Hh,EpF:()=>Am,F$t:()=>Rm,F4k:()=>Tm,FYo:()=>op,FiY:()=>_c,G48:()=>_x,Gf:()=>P_,GfV:()=>ap,GkF:()=>Zd,Gpc:()=>nt,Gre:()=>fg,HDt:()=>iv,Hsn:()=>Fm,Ikx:()=>cf,JOm:()=>xc,JVY:()=>Yy,JZr:()=>at,KtG:()=>la,L6k:()=>Ky,LAX:()=>Qy,LFG:()=>z,LSH:()=>Ju,Lbi:()=>ld,Lck:()=>AD,MAs:()=>Dm,MGl:()=>au,MMx:()=>Jg,MR2:()=>td,NdJ:()=>qd,Ojb:()=>w0,OlP:()=>wi,Oqu:()=>af,P3R:()=>Gh,PXZ:()=>lx,Q6J:()=>Wd,QGY:()=>Qd,QbO:()=>D0,Qsj:()=>V0,R0b:()=>Hr,RDi:()=>Uy,Rgc:()=>cc,SBq:()=>Gl,Sil:()=>Bw,Suo:()=>R_,TTD:()=>Qn,TgZ:()=>iu,Tol:()=>Qm,Udp:()=>nf,VKq:()=>a_,VuI:()=>Gx,W1O:()=>B_,WLB:()=>l_,X6Q:()=>gx,XFs:()=>Re,Xpm:()=>Jr,Xq5:()=>am,Xts:()=>jl,Y36:()=>al,YKP:()=>qg,YNc:()=>bm,Yjl:()=>Zs,Yz7:()=>Ye,Z0I:()=>Ht,ZZ4:()=>$f,_Bn:()=>Qg,_UZ:()=>Kd,_Vd:()=>zl,_c5:()=>Rx,_uU:()=>ig,aQg:()=>zf,c2e:()=>nv,cJS:()=>Yt,cg1:()=>df,d8E:()=>uf,dDg:()=>rx,dqk:()=>He,eBb:()=>Zy,eFA:()=>hv,eJc:()=>Tf,ekj:()=>rf,eoX:()=>cv,f3M:()=>se,g9A:()=>ep,h0i:()=>La,hGG:()=>Fx,hij:()=>uu,iGM:()=>O_,ifc:()=>De,ip1:()=>tv,jDz:()=>e_,kEZ:()=>c_,kL8:()=>Cg,l5B:()=>u_,lG2:()=>Qi,lcZ:()=>__,lqb:()=>Po,lri:()=>av,mCW:()=>Fc,n5z:()=>Io,n_E:()=>mu,oAB:()=>_r,oJD:()=>$h,oxw:()=>Pm,pB0:()=>qy,q3G:()=>Pa,q4F:()=>lp,qFp:()=>Yx,qLn:()=>pa,qOj:()=>Bd,qZA:()=>ru,qzn:()=>el,rWj:()=>lv,rg0:()=>re,s9C:()=>Xd,sBO:()=>vx,s_b:()=>vu,soG:()=>bu,tb:()=>Lf,tp0:()=>vc,uIk:()=>Ud,vHH:()=>J,vpe:()=>Ro,wAp:()=>bl,xi3:()=>v_,xp6:()=>Pp,ynx:()=>su,z2F:()=>wl,z3N:()=>Qo,zSh:()=>rd,zs3:()=>yo});var r=g(8645),u=g(7394),B=g(5592),$=g(3019),N=g(5619),ee=g(2096),te=g(3020),fe=g(4664),ne=g(3997);function H(e){for(let t in e)if(e[t]===H)return t;throw Error("Could not find renamed property on target object.")}function q(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function me(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ie(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ne=H({__forward_ref__:H});function nt(e){return e.__forward_ref__=nt,e.toString=function(){return me(this())},e}function we(e){return Be(e)?e():e}function Be(e){return"function"==typeof e&&e.hasOwnProperty(Ne)&&e.__forward_ref__===nt}function Xe(e){return e&&!!e.\u0275providers}const at="https://g.co/ng/security#xss";class J extends Error{constructor(t,n){super(function Te(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function he(e){return"string"==typeof e?e:null==e?"":String(e)}function Ut(e,t){throw new J(-201,!1)}function Dt(e,t){null==e&&function Ue(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function Ye(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function gn(e){return Mn(e,pt)||Mn(e,Oe)}function Ht(e){return null!==gn(e)}function Mn(e,t){return e.hasOwnProperty(t)?e[t]:null}function In(e){return e&&(e.hasOwnProperty(Q)||e.hasOwnProperty(Ce))?e[Q]:null}const pt=H({\u0275prov:H}),Q=H({\u0275inj:H}),Oe=H({ngInjectableDef:H}),Ce=H({ngInjectorDef:H});var Re=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Re||{});let dt;function Ot(e){const t=dt;return dt=e,t}function Zt(e,t,n){const i=gn(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Re.Optional?null:void 0!==t?t:void Ut(me(e))}const He=globalThis,On={},oi="__NG_DI_FLAG__",Zn="ngTempTokenPath",xe=/\n/gm,O="__source";let V;function j(e){const t=V;return V=e,t}function ye(e,t=Re.Default){if(void 0===V)throw new J(-203,!1);return null===V?Zt(e,void 0,t):V.get(e,t&Re.Optional?null:void 0,t)}function z(e,t=Re.Default){return(function _t(){return dt}()||ye)(we(e),t)}function se(e,t=Re.Default){return z(e,E(t))}function E(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function k(e){const t=[];for(let n=0;n<e.length;n++){const i=we(e[n]);if(Array.isArray(i)){if(0===i.length)throw new J(900,!1);let s,o=Re.Default;for(let l=0;l<i.length;l++){const d=i[l],y=S(d);"number"==typeof y?-1===y?s=d.token:o|=y:s=d}t.push(z(s,o))}else t.push(z(i))}return t}function ae(e,t){return e[oi]=t,e.prototype[oi]=t,e}function S(e){return e[oi]}function K(e){return{toString:e}.toString()}var oe=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(oe||{}),De=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(De||{});const mt={},ct=[],tt=H({\u0275cmp:H}),At=H({\u0275dir:H}),xt=H({\u0275pipe:H}),Ae=H({\u0275mod:H}),gt=H({\u0275fac:H}),Lt=H({__NG_ELEMENT_ID__:H}),fn=H({__NG_ENV_ID__:H});function Kn(e,t,n){let i=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const o=t.length;if(s+o===i||e.charCodeAt(s+o)<=32)return s}n=s+1}}function Pn(e,t,n){let i=0;for(;i<n.length;){const s=n[i];if("number"==typeof s){if(0!==s)break;i++;const o=n[i++],l=n[i++],d=n[i++];e.setAttribute(t,l,d,o)}else{const o=s,l=n[++i];mi(o)?e.setProperty(t,o,l):e.setAttribute(t,o,l),i++}}return i}function jn(e){return 3===e||4===e||6===e}function mi(e){return 64===e.charCodeAt(0)}function Vi(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?n=s:0===n||Xn(e,n,s,null,-1===n||2===n?t[++i]:null)}}return e}function Xn(e,t,n,i,s){let o=0,l=e.length;if(-1===t)l=-1;else for(;o<e.length;){const d=e[o++];if("number"==typeof d){if(d===t){l=-1;break}if(d>t){l=o-1;break}}}for(;o<e.length;){const d=e[o];if("number"==typeof d)break;if(d===n){if(null===i)return void(null!==s&&(e[o+1]=s));if(i===e[o+1])return void(e[o+2]=s)}o++,null!==i&&o++,null!==s&&o++}-1!==l&&(e.splice(l,0,t),o=l+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==s&&e.splice(o++,0,s)}const Mi="ng-template";function li(e,t,n){let i=0,s=!0;for(;i<e.length;){let o=e[i++];if("string"==typeof o&&s){const l=e[i++];if(n&&"class"===o&&-1!==Kn(l.toLowerCase(),t,0))return!0}else{if(1===o){for(;i<e.length&&"string"==typeof(o=e[i++]);)if(o.toLowerCase()===t)return!0;return!1}"number"==typeof o&&(s=!1)}}return!1}function xi(e){return 4===e.type&&e.value!==Mi}function ir(e,t,n){return t===(4!==e.type||n?e.value:Mi)}function Ji(e,t,n){let i=4;const s=e.attrs||[],o=function Ws(e){for(let t=0;t<e.length;t++)if(jn(e[t]))return t;return e.length}(s);let l=!1;for(let d=0;d<t.length;d++){const y=t[d];if("number"!=typeof y){if(!l)if(4&i){if(i=2|1&i,""!==y&&!ir(e,y,n)||""===y&&1===t.length){if(Jn(i))return!1;l=!0}}else{const F=8&i?y:t[++d];if(8&i&&null!==e.attrs){if(!li(e.attrs,F,n)){if(Jn(i))return!1;l=!0}continue}const ge=Ii(8&i?"class":y,s,xi(e),n);if(-1===ge){if(Jn(i))return!1;l=!0;continue}if(""!==F){let We;We=ge>o?"":s[ge+1].toLowerCase();const ot=8&i?We:null;if(ot&&-1!==Kn(ot,F,0)||2&i&&F!==We){if(Jn(i))return!1;l=!0}}}}else{if(!l&&!Jn(i)&&!Jn(y))return!1;if(l&&Jn(y))continue;l=!1,i=y|1&i}}return Jn(i)||l}function Jn(e){return 0==(1&e)}function Ii(e,t,n,i){if(null===t)return-1;let s=0;if(i||!n){let o=!1;for(;s<t.length;){const l=t[s];if(l===e)return s;if(3===l||6===l)o=!0;else{if(1===l||2===l){let d=t[++s];for(;"string"==typeof d;)d=t[++s];continue}if(4===l)break;if(0===l){s+=4;continue}}s+=o?1:2}return-1}return function qr(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function lr(e,t,n=!1){for(let i=0;i<t.length;i++)if(Ji(e,t[i],n))return!0;return!1}function Ys(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let s=0;s<e.length;s++)if(e[s]!==i[s])continue e;return!0}}return!1}function Xr(e,t){return e?":not("+t.trim()+")":t}function Br(e){let t=e[0],n=1,i=2,s="",o=!1;for(;n<e.length;){let l=e[n];if("string"==typeof l)if(2&i){const d=e[++n];s+="["+l+(d.length>0?'="'+d+'"':"")+"]"}else 8&i?s+="."+l:4&i&&(s+=" "+l);else""!==s&&!Jn(l)&&(t+=Xr(o,s),s=""),i=l,o=o||!Jn(i);n++}return""!==s&&(t+=Xr(o,s)),t}function Jr(e){return K(()=>{const t=Fs(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||De.Emulated,styles:e.styles||ct,_:null,schemas:e.schemas||null,tView:null,id:""};ks(n);const i=e.dependencies;return n.directiveDefs=vr(i,!1),n.pipeDefs=vr(i,!0),n.id=function hs(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const s of n)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function $r(e){return Rn(e)||vi(e)}function zr(e){return null!==e}function _r(e){return K(()=>({type:e.type,bootstrap:e.bootstrap||ct,declarations:e.declarations||ct,imports:e.imports||ct,exports:e.exports||ct,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function bs(e,t){if(null==e)return mt;const n={};for(const i in e)if(e.hasOwnProperty(i)){let s=e[i],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=i,t&&(t[s]=o)}return n}function Qi(e){return K(()=>{const t=Fs(e);return ks(t),t})}function Zs(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Rn(e){return e[tt]||null}function vi(e){return e[At]||null}function fi(e){return e[xt]||null}function Ui(e){const t=Rn(e)||vi(e)||fi(e);return null!==t&&t.standalone}function Li(e,t){const n=e[Ae]||null;if(!n&&!0===t)throw new Error(`Type ${me(e)} does not have '\u0275mod' property.`);return n}function Fs(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||mt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||ct,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:bs(e.inputs,t),outputs:bs(e.outputs)}}function ks(e){e.features?.forEach(t=>t(e))}function vr(e,t){if(!e)return null;const n=t?fi:$r;return()=>("function"==typeof e?e():e).map(i=>n(i)).filter(zr)}const ri=0,$t=1,un=2,ci=3,Oi=4,ur=5,gi=6,Cr=7,di=8,rr=9,Vr=10,nn=11,er=12,Fe=13,Se=14,Ze=15,bt=16,Ft=17,Qt=18,ln=19,Dn=20,yn=21,bi=22,Pi=23,Ai=24,Tn=25,Ur=1,Ti=2,si=7,dr=9,Hn=11;function ui(e){return Array.isArray(e)&&"object"==typeof e[Ur]}function Yi(e){return Array.isArray(e)&&!0===e[Ur]}function Gr(e){return 0!=(4&e.flags)}function Mr(e){return e.componentOffset>-1}function fr(e){return 1==(1&e.flags)}function ji(e){return!!e.template}function Wr(e){return 0!=(512&e[un])}function Hi(e,t){return e.hasOwnProperty(gt)?e[gt]:null}let Ri=null,Ds=!1;function $i(e){const t=Ri;return Ri=e,t}const Yr={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Xs(e){if(!br(e)||e.dirty){if(!e.producerMustRecompute(e)&&!ia(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function eo(e){e.dirty=!0,function Js(e){if(void 0===e.liveConsumerNode)return;const t=Ds;Ds=!0;try{for(const n of e.liveConsumerNode)n.dirty||eo(n)}finally{Ds=t}}(e),e.consumerMarkedDirty?.(e)}function ws(e){return e&&(e.nextProducerIndex=0),$i(e)}function hi(e,t){if($i(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(br(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)wr(e.producerNode[n],e.producerIndexOfThis[n]);for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ia(e){ns(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],i=e.producerLastReadVersion[t];if(i!==n.version||(Xs(n),i!==n.version))return!0}return!1}function Bs(e){if(ns(e),br(e))for(let t=0;t<e.producerNode.length;t++)wr(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function wr(e,t){if(function to(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),ns(e),1===e.liveConsumerNode.length)for(let i=0;i<e.producerNode.length;i++)wr(e.producerNode[i],e.producerIndexOfThis[i]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const i=e.liveConsumerIndexOfThis[t],s=e.liveConsumerNode[t];ns(s),s.producerIndexOfThis[i]=t}}function br(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function ns(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let ho=null;function re(e){const t=$i(null);try{return e()}finally{$i(t)}}const Et=()=>{},jt={...Yr,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Et};class ei{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Qn(){return Nn}function Nn(e){return e.type.prototype.ngOnChanges&&(e.setInput=ii),Si}function Si(){const e=xr(this),t=e?.current;if(t){const n=e.previous;if(n===mt)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function ii(e,t,n,i){const s=this.declaredInputs[n],o=xr(e)||function pr(e,t){return e[Bi]=t}(e,{previous:mt,current:null}),l=o.current||(o.current={}),d=o.previous,y=d[s];l[s]=new ei(y&&y.currentValue,t,d===mt),e[i]=t}Qn.ngInherit=!0;const Bi="__ngSimpleChanges__";function xr(e){return e[Bi]||null}const Zi=function(e,t,n){};function $n(e){for(;Array.isArray(e);)e=e[ri];return e}function so(e,t){return $n(t[e])}function mr(e,t){return $n(t[e.index])}function sa(e,t){return e.data[t]}function As(e,t){return e[t]}function zi(e,t){const n=t[e];return ui(n)?n:n[ri]}function _s(e,t){return null==t?null:e[t]}function ya(e){e[Ft]=0}function po(e){1024&e[un]||(e[un]|=1024,oa(e,1))}function rs(e){1024&e[un]&&(e[un]&=-1025,oa(e,-1))}function oa(e,t){let n=e[ci];if(null===n)return;n[ur]+=t;let i=n;for(n=n[ci];null!==n&&(1===t&&1===i[ur]||-1===t&&0===i[ur]);)n[ur]+=t,i=n,n=n[ci]}const bn={lFrame:a(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function gr(){return bn.bindingsEnabled}function Ts(){return null!==bn.skipHydrationRootTNode}function Pt(){return bn.lFrame.lView}function qn(){return bn.lFrame.tView}function Us(e){return bn.lFrame.contextLView=e,e[di]}function la(e){return bn.lFrame.contextLView=null,e}function Gi(){let e=ca();for(;null!==e&&64===e.type;)e=e.parent;return e}function ca(){return bn.lFrame.currentTNode}function ss(e,t){const n=bn.lFrame;n.currentTNode=e,n.isParent=t}function zo(){return bn.lFrame.isParent}function Mo(){bn.lFrame.isParent=!1}function Tr(){const e=bn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function js(){return bn.lFrame.bindingIndex++}function Ss(e){const t=bn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function D(e,t){const n=bn.lFrame;n.bindingIndex=n.bindingRootIndex=e,T(t)}function T(e){bn.lFrame.currentDirectiveIndex=e}function Z(e){const t=bn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function le(){return bn.lFrame.currentQueryIndex}function rt(e){bn.lFrame.currentQueryIndex=e}function Bt(e){const t=e[$t];return 2===t.type?t.declTNode:1===t.type?e[gi]:null}function Ct(e,t,n){if(n&Re.SkipSelf){let s=t,o=e;for(;!(s=s.parent,null!==s||n&Re.Host||(s=Bt(o),null===s||(o=o[Se],10&s.type))););if(null===s)return!1;t=s,e=o}const i=bn.lFrame=b();return i.currentTNode=t,i.lView=e,!0}function rn(e){const t=b(),n=e[$t];bn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function b(){const e=bn.lFrame,t=null===e?null:e.child;return null===t?a(e):t}function a(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function c(){const e=bn.lFrame;return bn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const p=c;function w(){const e=c();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ee(){return bn.lFrame.selectedIndex}function it(e){bn.lFrame.selectedIndex=e}function ft(){const e=bn.lFrame;return sa(e.tView,e.selectedIndex)}let wn=!0;function yi(){return wn}function Ci(e){wn=e}function nr(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const o=e.data[n].type.prototype,{ngAfterContentInit:l,ngAfterContentChecked:d,ngAfterViewInit:y,ngAfterViewChecked:F,ngOnDestroy:Y}=o;l&&(e.contentHooks??=[]).push(-n,l),d&&((e.contentHooks??=[]).push(n,d),(e.contentCheckHooks??=[]).push(n,d)),y&&(e.viewHooks??=[]).push(-n,y),F&&((e.viewHooks??=[]).push(n,F),(e.viewCheckHooks??=[]).push(n,F)),null!=Y&&(e.destroyHooks??=[]).push(n,Y)}}function sr(e,t,n){Pr(e,t,3,n)}function Hs(e,t,n,i){(3&e[un])===n&&Pr(e,t,n,i)}function as(e,t){let n=e[un];(3&n)===t&&(n&=8191,n+=1,e[un]=n)}function Pr(e,t,n,i){const o=i??-1,l=t.length-1;let d=0;for(let y=void 0!==i?65535&e[Ft]:0;y<l;y++)if("number"==typeof t[y+1]){if(d=t[y],null!=i&&d>=i)break}else t[y]<0&&(e[Ft]+=65536),(d<o||-1==o)&&($s(e,n,t,y),e[Ft]=(4294901760&e[Ft])+y+2),y++}function Ms(e,t){Zi(4,e,t);const n=$i(null);try{t.call(e)}finally{$i(n),Zi(5,e,t)}}function $s(e,t,n,i){const s=n[i]<0,o=n[i+1],d=e[s?-n[i]:n[i]];s?e[un]>>13<e[Ft]>>16&&(3&e[un])===t&&(e[un]+=8192,Ms(d,o)):Ms(d,o)}const Sr=-1;class Wo{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Xi(e){return e!==Sr}function Rr(e){return 32767&e}function ls(e,t){let n=function Kr(e){return e>>16}(e),i=t;for(;n>0;)i=i[Se],n--;return i}let Fi=!0;function Yo(e){const t=Fi;return Fi=e,t}const Er=255,vo=5;let cs=0;const Zr={};function ja(e,t){const n=Ha(e,t);if(-1!==n)return n;const i=t[$t];i.firstCreatePass&&(e.injectorIndex=t.length,Tl(i.data,e),Tl(t,null),Tl(i.blueprint,null));const s=fa(e,t),o=e.injectorIndex;if(Xi(s)){const l=Rr(s),d=ls(s,t),y=d[$t].data;for(let F=0;F<8;F++)t[o+F]=d[l+F]|y[l+F]}return t[o+8]=s,o}function Tl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ha(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function fa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,s=t;for(;null!==s;){if(i=Ol(s),null===i)return Sr;if(n++,s=s[Se],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Sr}function Aa(e,t,n){!function xa(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Lt)&&(i=n[Lt]),null==i&&(i=n[Lt]=cs++);const s=i&Er;t.data[e+(s>>vo)]|=1<<s}(e,t,n)}function $a(e,t,n){if(n&Re.Optional||void 0!==e)return e;Ut()}function za(e,t,n,i){if(n&Re.Optional&&void 0===i&&(i=null),!(n&(Re.Self|Re.Host))){const s=e[rr],o=Ot(void 0);try{return s?s.get(t,i,n&Re.Optional):Zt(t,i,n&Re.Optional)}finally{Ot(o)}}return $a(i,0,n)}function Ga(e,t,n,i=Re.Default,s){if(null!==e){if(2048&t[un]&&!(i&Re.Self)){const l=function Kf(e,t,n,i,s){let o=e,l=t;for(;null!==o&&null!==l&&2048&l[un]&&!(512&l[un]);){const d=Au(o,l,n,i|Re.Self,Zr);if(d!==Zr)return d;let y=o.parent;if(!y){const F=l[Dn];if(F){const Y=F.get(n,Zr,i);if(Y!==Zr)return Y}y=Ol(l),l=l[Se]}o=y}return s}(e,t,n,i,Zr);if(l!==Zr)return l}const o=Au(e,t,n,i,Zr);if(o!==Zr)return o}return za(t,n,i,s)}function Au(e,t,n,i,s){const o=function Tu(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Lt)?e[Lt]:void 0;return"number"==typeof t?t>=0?t&Er:Mu:t}(n);if("function"==typeof o){if(!Ct(t,e,i))return i&Re.Host?$a(s,0,i):za(t,n,i,s);try{let l;if(l=o(i),null!=l||i&Re.Optional)return l;Ut()}finally{p()}}else if("number"==typeof o){let l=null,d=Ha(e,t),y=Sr,F=i&Re.Host?t[Ze][gi]:null;for((-1===d||i&Re.SkipSelf)&&(y=-1===d?fa(e,t):t[d+8],y!==Sr&&Il(i,!1)?(l=t[$t],d=Rr(y),t=ls(y,t)):d=-1);-1!==d;){const Y=t[$t];if(Zo(o,d,Y.data)){const ge=Yf(d,t,n,l,i,F);if(ge!==Zr)return ge}y=t[d+8],y!==Sr&&Il(i,t[$t].data[d+8]===F)&&Zo(o,d,t)?(l=Y,d=Rr(y),t=ls(y,t)):d=-1}}return s}function Yf(e,t,n,i,s,o){const l=t[$t],d=l.data[e+8],Y=Ml(d,l,n,null==i?Mr(d)&&Fi:i!=l&&0!=(3&d.type),s&Re.Host&&o===d);return null!==Y?Ko(t,l,Y,d):Zr}function Ml(e,t,n,i,s){const o=e.providerIndexes,l=t.data,d=1048575&o,y=e.directiveStart,Y=o>>20,We=s?d+Y:e.directiveEnd;for(let ot=i?d:d+Y;ot<We;ot++){const Tt=l[ot];if(ot<y&&n===Tt||ot>=y&&Tt.type===n)return ot}if(s){const ot=l[y];if(ot&&ji(ot)&&ot.type===n)return y}return null}function Ko(e,t,n,i){let s=e[n];const o=t.data;if(function da(e){return e instanceof Wo}(s)){const l=s;l.resolving&&function Ke(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new J(-200,`Circular dependency in DI detected for ${e}${n}`)}(function _e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():he(e)}(o[n]));const d=Yo(l.canSeeViewProviders);l.resolving=!0;const F=l.injectImpl?Ot(l.injectImpl):null;Ct(e,i,Re.Default);try{s=e[n]=l.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Di(e,t,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:o}=t.type.prototype;if(i){const l=Nn(t);(n.preOrderHooks??=[]).push(e,l),(n.preOrderCheckHooks??=[]).push(e,l)}s&&(n.preOrderHooks??=[]).push(0-e,s),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}(n,o[n],t)}finally{null!==F&&Ot(F),Yo(d),l.resolving=!1,p()}}return s}function Zo(e,t,n){return!!(n[t+(e>>vo)]&1<<e)}function Il(e,t){return!(e&Re.Self||e&Re.Host&&t)}class or{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return Ga(this._tNode,this._lView,t,E(i),n)}}function Mu(){return new or(Gi(),Pt())}function Io(e){return K(()=>{const t=e.prototype.constructor,n=t[gt]||pc(t),i=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==i;){const o=s[gt]||pc(s);if(o&&o!==n)return o;s=Object.getPrototypeOf(s)}return o=>new o})}function pc(e){return Be(e)?()=>{const t=pc(we(e));return t&&t()}:Hi(e)}function Ol(e){const t=e[$t],n=t.type;return 2===n?t.declTNode:1===n?e[gi]:null}function Pl(e){return function Sl(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let s=0;for(;s<i;){const o=n[s];if(jn(o))break;if(0===o)s+=2;else if("number"==typeof o)for(s++;s<i&&"string"==typeof n[s];)s++;else{if(o===t)return n[s+1];s+=2}}}return null}(Gi(),e)}const Sa="__parameters__";function de(e,t,n){return K(()=>{const i=function U(e){return function(...n){if(e){const i=e(...n);for(const s in i)this[s]=i[s]}}}(t);function s(...o){if(this instanceof s)return i.apply(this,o),this;const l=new s(...o);return d.annotation=l,d;function d(y,F,Y){const ge=y.hasOwnProperty(Sa)?y[Sa]:Object.defineProperty(y,Sa,{value:[]})[Sa];for(;ge.length<=Y;)ge.push(null);return(ge[Y]=ge[Y]||[]).push(l),y}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function Ya(e,t){e.forEach(n=>Array.isArray(n)?Ya(n,t):t(n))}function Zf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function mc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Rl(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function zs(e,t,n){let i=Ka(e,t);return i>=0?e[1|i]=n:(i=~i,function Uv(e,t,n,i){let s=e.length;if(s==t)e.push(n,i);else if(1===s)e.push(i,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Iu(e,t){const n=Ka(e,t);if(n>=0)return e[1|n]}function Ka(e,t){return function Qf(e,t,n){let i=0,s=e.length>>n;for(;s!==i;){const o=i+(s-i>>1),l=e[o<<n];if(t===l)return o<<n;l>t?s=o:i=o+1}return~(s<<n)}(e,t,1)}const _c=ae(de("Optional"),8),vc=ae(de("SkipSelf"),4);function Dc(e){return 128==(128&e.flags)}var xc=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(xc||{});const ay=/^>|^->|<!--|-->|--!>|<!-$/g,ly=/(<|>)/g,cy="\u200b$1\u200b";const ku=new Map;let uy=0;const Lu="__ngContext__";function us(e,t){ui(t)?(e[Lu]=t[ln],function fy(e){ku.set(e[ln],e)}(t)):e[Lu]=t}let Bu;function Vu(e,t){return Bu(e,t)}function Nl(e){const t=e[ci];return Yi(t)?t[ci]:t}function gh(e){return vh(e[er])}function _h(e){return vh(e[Oi])}function vh(e){for(;null!==e&&!Yi(e);)e=e[Oi];return e}function qa(e,t,n,i,s){if(null!=i){let o,l=!1;Yi(i)?o=i:ui(i)&&(l=!0,i=i[ri]);const d=$n(i);0===e&&null!==n?null==s?Ch(t,n,d):Ia(t,n,d,s||null,!0):1===e&&null!==n?Ia(t,n,d,s||null,!0):2===e?function Oc(e,t,n){const i=Mc(e,t);i&&function Oy(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,d,l):3===e&&t.destroyNode(d),null!=o&&function Fy(e,t,n,i,s){const o=n[si];o!==$n(n)&&qa(t,e,i,o,s);for(let d=Hn;d<n.length;d++){const y=n[d];Bl(y[$t],y,e,t,i,o)}}(t,e,o,n,s)}}function Uu(e,t){return e.createComment(function lh(e){return e.replace(ay,t=>t.replace(ly,cy))}(t))}function Tc(e,t,n){return e.createElement(t,n)}function bh(e,t){const n=e[dr],i=n.indexOf(t);rs(t),n.splice(i,1)}function Sc(e,t){if(e.length<=Hn)return;const n=Hn+t,i=e[n];if(i){const s=i[bt];null!==s&&s!==e&&bh(s,i),t>0&&(e[n-1][Oi]=i[Oi]);const o=mc(e,Hn+t);!function Dy(e,t){Bl(e,t,t[nn],2,null,null),t[ri]=null,t[gi]=null}(i[$t],i);const l=o[Qt];null!==l&&l.detachView(o[$t]),i[ci]=null,i[Oi]=null,i[un]&=-129}return i}function ju(e,t){if(!(256&t[un])){const n=t[nn];t[Pi]&&Bs(t[Pi]),t[Ai]&&Bs(t[Ai]),n.destroyNode&&Bl(e,t,n,3,null,null),function Ay(e){let t=e[er];if(!t)return Hu(e[$t],e);for(;t;){let n=null;if(ui(t))n=t[er];else{const i=t[Hn];i&&(n=i)}if(!n){for(;t&&!t[Oi]&&t!==e;)ui(t)&&Hu(t[$t],t),t=t[ci];null===t&&(t=e),ui(t)&&Hu(t[$t],t),n=t&&t[Oi]}t=n}}(t)}}function Hu(e,t){if(!(256&t[un])){t[un]&=-129,t[un]|=256,function Iy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const s=t[n[i]];if(!(s instanceof Wo)){const o=n[i+1];if(Array.isArray(o))for(let l=0;l<o.length;l+=2){const d=s[o[l]],y=o[l+1];Zi(4,d,y);try{y.call(d)}finally{Zi(5,d,y)}}else{Zi(4,s,o);try{o.call(s)}finally{Zi(5,s,o)}}}}}(e,t),function My(e,t){const n=e.cleanup,i=t[Cr];if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const l=n[o+3];l>=0?i[l]():i[-l].unsubscribe(),o+=2}else n[o].call(i[n[o+1]]);null!==i&&(t[Cr]=null);const s=t[yn];if(null!==s){t[yn]=null;for(let o=0;o<s.length;o++)(0,s[o])()}}(e,t),1===t[$t].type&&t[nn].destroy();const n=t[bt];if(null!==n&&Yi(t[ci])){n!==t[ci]&&bh(n,t);const i=t[Qt];null!==i&&i.detachView(e)}!function hy(e){ku.delete(e[ln])}(t)}}function $u(e,t,n){return function Eh(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[ri];{const{componentOffset:s}=i;if(s>-1){const{encapsulation:o}=e.data[i.directiveStart+s];if(o===De.None||o===De.Emulated)return null}return mr(i,n)}}(e,t.parent,n)}function Ia(e,t,n,i,s){e.insertBefore(t,n,i,s)}function Ch(e,t,n){e.appendChild(t,n)}function Dh(e,t,n,i,s){null!==i?Ia(e,t,n,i,s):Ch(e,t,n)}function Mc(e,t){return e.parentNode(t)}function wh(e,t,n){return Ah(e,t,n)}let zu,Pc,Ku,Rc,Ah=function xh(e,t,n){return 40&e.type?mr(e,n):null};function Ic(e,t,n,i){const s=$u(e,i,t),o=t[nn],d=wh(i.parent||t[gi],i,t);if(null!=s)if(Array.isArray(n))for(let y=0;y<n.length;y++)Dh(o,s,n[y],d,!1);else Dh(o,s,n,d,!1);void 0!==zu&&zu(o,i,t,n,s)}function Ll(e,t){if(null!==t){const n=t.type;if(3&n)return mr(t,e);if(4&n)return Gu(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return Ll(e,i);{const s=e[t.index];return Yi(s)?Gu(-1,s):$n(s)}}if(32&n)return Vu(t,e)()||$n(e[t.index]);{const i=Sh(e,t);return null!==i?Array.isArray(i)?i[0]:Ll(Nl(e[Ze]),i):Ll(e,t.next)}}return null}function Sh(e,t){return null!==t?e[Ze][gi].projection[t.projection]:null}function Gu(e,t){const n=Hn+e+1;if(n<t.length){const i=t[n],s=i[$t].firstChild;if(null!==s)return Ll(i,s)}return t[si]}function Wu(e,t,n,i,s,o,l){for(;null!=n;){const d=i[n.index],y=n.type;if(l&&0===t&&(d&&us($n(d),i),n.flags|=2),32!=(32&n.flags))if(8&y)Wu(e,t,n.child,i,s,o,!1),qa(t,e,s,d,o);else if(32&y){const F=Vu(n,i);let Y;for(;Y=F();)qa(t,e,s,Y,o);qa(t,e,s,d,o)}else 16&y?Ih(e,t,i,n,s,o):qa(t,e,s,d,o);n=l?n.projectionNext:n.next}}function Bl(e,t,n,i,s,o){Wu(n,i,e.firstChild,t,s,o,!1)}function Ih(e,t,n,i,s,o){const l=n[Ze],y=l[gi].projection[i.projection];if(Array.isArray(y))for(let F=0;F<y.length;F++)qa(t,e,s,y[F],o);else{let F=y;const Y=l[ci];Dc(i)&&(F.flags|=128),Wu(e,t,F,Y,s,o,!0)}}function Oh(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Ph(e,t,n){const{mergedAttrs:i,classes:s,styles:o}=n;null!==i&&Pn(e,t,i),null!==s&&Oh(e,t,s),null!==o&&function Ny(e,t,n){e.setAttribute(t,"style",n)}(e,t,o)}function Xa(e){return function Yu(){if(void 0===Pc&&(Pc=null,He.trustedTypes))try{Pc=He.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Pc}()?.createHTML(e)||e}function Uy(e){Ku=e}function Ja(){if(void 0!==Ku)return Ku;if(typeof document<"u")return document;throw new J(210,!1)}function Zu(){if(void 0===Rc&&(Rc=null,He.trustedTypes))try{Rc=He.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Rc}function Rh(e){return Zu()?.createHTML(e)||e}function kh(e){return Zu()?.createScriptURL(e)||e}class Oa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${at})`}}class jy extends Oa{getTypeName(){return"HTML"}}class Hy extends Oa{getTypeName(){return"Style"}}class $y extends Oa{getTypeName(){return"Script"}}class zy extends Oa{getTypeName(){return"URL"}}class Gy extends Oa{getTypeName(){return"ResourceURL"}}function Qo(e){return e instanceof Oa?e.changingThisBreaksApplicationSecurity:e}function el(e,t){const n=function Wy(e){return e instanceof Oa&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${at})`)}return n===t}function Yy(e){return new jy(e)}function Ky(e){return new Hy(e)}function Zy(e){return new $y(e)}function Qy(e){return new zy(e)}function qy(e){return new Gy(e)}class Xy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Xa(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Jy{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Xa(t),n}}const t0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Fc(e){return(e=String(e)).match(t0)?e:"unsafe:"+e}function qo(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Vl(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const Lh=qo("area,br,col,hr,img,wbr"),Bh=qo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vh=qo("rp,rt"),Qu=Vl(Lh,Vl(Bh,qo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Vl(Vh,qo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Vl(Vh,Bh)),qu=qo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Uh=Vl(qu,qo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),n0=qo("script,style,template");class r0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=this.checkClobberedElement(n,n.nextSibling);if(s){n=s;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Qu.hasOwnProperty(n))return this.sanitizedSomething=!0,!n0.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let s=0;s<i.length;s++){const o=i.item(s),l=o.name,d=l.toLowerCase();if(!Uh.hasOwnProperty(d)){this.sanitizedSomething=!0;continue}let y=o.value;qu[d]&&(y=Fc(y)),this.buf.push(" ",l,'="',jh(y),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Qu.hasOwnProperty(n)&&!Lh.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(jh(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const s0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o0=/([^\#-~ |!])/g;function jh(e){return e.replace(/&/g,"&amp;").replace(s0,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(o0,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let kc;function Hh(e,t){let n=null;try{kc=kc||function Nh(e){const t=new Jy(e);return function e0(){try{return!!(new window.DOMParser).parseFromString(Xa(""),"text/html")}catch{return!1}}()?new Xy(t):t}(e);let i=t?String(t):"";n=kc.getInertBodyElement(i);let s=5,o=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=o,o=n.innerHTML,n=kc.getInertBodyElement(i)}while(i!==o);return Xa((new r0).sanitizeChildren(Xu(n)||n))}finally{if(n){const i=Xu(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Xu(e){return"content"in e&&function a0(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Pa=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Pa||{});function $h(e){const t=Ul();return t?Rh(t.sanitize(Pa.HTML,e)||""):el(e,"HTML")?Rh(Qo(e)):Hh(Ja(),he(e))}function Ju(e){const t=Ul();return t?t.sanitize(Pa.URL,e)||"":el(e,"URL")?Qo(e):Fc(he(e))}function zh(e){const t=Ul();if(t)return kh(t.sanitize(Pa.RESOURCE_URL,e)||"");if(el(e,"ResourceURL"))return kh(Qo(e));throw new J(904,!1)}function Gh(e,t,n){return function f0(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?zh:Ju}(t,n)(e)}function Ul(){const e=Pt();return e&&e[Vr].sanitizer}class wi{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ye({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const jl=new wi("ENVIRONMENT_INITIALIZER"),Wh=new wi("INJECTOR",-1),Yh=new wi("INJECTOR_DEF_TYPES");class ed{get(t,n=On){if(n===On){const i=new Error(`NullInjectorError: No provider for ${me(t)}!`);throw i.name="NullInjectorError",i}return n}}function td(e){return{\u0275providers:e}}function h0(...e){return{\u0275providers:Kh(0,e),\u0275fromNgModule:!0}}function Kh(e,...t){const n=[],i=new Set;let s;const o=l=>{n.push(l)};return Ya(t,l=>{const d=l;Nc(d,o,[],i)&&(s||=[],s.push(d))}),void 0!==s&&Zh(s,o),n}function Zh(e,t){for(let n=0;n<e.length;n++){const{ngModule:i,providers:s}=e[n];nd(s,o=>{t(o,i)})}}function Nc(e,t,n,i){if(!(e=we(e)))return!1;let s=null,o=In(e);const l=!o&&Rn(e);if(o||l){if(l&&!l.standalone)return!1;s=e}else{const y=e.ngModule;if(o=In(y),!o)return!1;s=y}const d=i.has(s);if(l){if(d)return!1;if(i.add(s),l.dependencies){const y="function"==typeof l.dependencies?l.dependencies():l.dependencies;for(const F of y)Nc(F,t,n,i)}}else{if(!o)return!1;{if(null!=o.imports&&!d){let F;i.add(s);try{Ya(o.imports,Y=>{Nc(Y,t,n,i)&&(F||=[],F.push(Y))})}finally{}void 0!==F&&Zh(F,t)}if(!d){const F=Hi(s)||(()=>new s);t({provide:s,useFactory:F,deps:ct},s),t({provide:Yh,useValue:s,multi:!0},s),t({provide:jl,useValue:()=>z(s),multi:!0},s)}const y=o.providers;if(null!=y&&!d){const F=e;nd(y,Y=>{t(Y,F)})}}}return s!==e&&void 0!==e.providers}function nd(e,t){for(let n of e)Xe(n)&&(n=n.\u0275providers),Array.isArray(n)?nd(n,t):t(n)}const p0=H({provide:String,useValue:H});function id(e){return null!==e&&"object"==typeof e&&p0 in e}function Ra(e){return"function"==typeof e}const rd=new wi("Set Injector scope."),Lc={},g0={};let sd;function Bc(){return void 0===sd&&(sd=new ed),sd}class Po{}class Vc extends Po{get destroyed(){return this._destroyed}constructor(t,n,i,s){super(),this.parent=n,this.source=i,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ad(t,l=>this.processProvider(l)),this.records.set(Wh,tl(void 0,this)),s.has("environment")&&this.records.set(Po,tl(void 0,this));const o=this.records.get(rd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Yh.multi,ct,Re.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=j(this),i=Ot(void 0);try{return t()}finally{j(n),Ot(i)}}get(t,n=On,i=Re.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(fn))return t[fn](this);i=E(i);const o=j(this),l=Ot(void 0);try{if(!(i&Re.SkipSelf)){let y=this.records.get(t);if(void 0===y){const F=function E0(e){return"function"==typeof e||"object"==typeof e&&e instanceof wi}(t)&&gn(t);y=F&&this.injectableDefInScope(F)?tl(od(t),Lc):null,this.records.set(t,y)}if(null!=y)return this.hydrate(t,y)}return(i&Re.Self?Bc():this.parent).get(t,n=i&Re.Optional&&n===On?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[Zn]=d[Zn]||[]).unshift(me(t)),o)throw d;return function L(e,t,n,i){const s=e[Zn];throw t[O]&&s.unshift(t[O]),e.message=function ce(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=me(t);if(Array.isArray(t))s=t.map(me).join(" -> ");else if("object"==typeof t){let o=[];for(let l in t)if(t.hasOwnProperty(l)){let d=t[l];o.push(l+":"+("string"==typeof d?JSON.stringify(d):me(d)))}s=`{${o.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${e.replace(xe,"\n ")}`}("\n"+e.message,s,n,i),e.ngTokenPath=s,e[Zn]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{Ot(l),j(o)}}resolveInjectorInitializers(){const t=j(this),n=Ot(void 0);try{const s=this.get(jl.multi,ct,Re.Self);for(const o of s)o()}finally{j(t),Ot(n)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(me(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new J(205,!1)}processProvider(t){let n=Ra(t=we(t))?t:we(t&&t.provide);const i=function v0(e){return id(e)?tl(void 0,e.useValue):tl(Xh(e),Lc)}(t);if(Ra(t)||!0!==t.multi)this.records.get(n);else{let s=this.records.get(n);s||(s=tl(void 0,Lc,!0),s.factory=()=>k(s.multi),this.records.set(n,s)),n=t,s.multi.push(t)}this.records.set(n,i)}hydrate(t,n){return n.value===Lc&&(n.value=g0,n.value=n.factory()),"object"==typeof n.value&&n.value&&function b0(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=we(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function od(e){const t=gn(e),n=null!==t?t.factory:Hi(e);if(null!==n)return n;if(e instanceof wi)throw new J(204,!1);if(e instanceof Function)return function _0(e){const t=e.length;if(t>0)throw Rl(t,"?"),new J(204,!1);const n=function Wn(e){return e&&(e[pt]||e[Oe])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new J(204,!1)}function Xh(e,t,n){let i;if(Ra(e)){const s=we(e);return Hi(s)||od(s)}if(id(e))i=()=>we(e.useValue);else if(function qh(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...k(e.deps||[]));else if(function Qh(e){return!(!e||!e.useExisting)}(e))i=()=>z(we(e.useExisting));else{const s=we(e&&(e.useClass||e.provide));if(!function y0(e){return!!e.deps}(e))return Hi(s)||od(s);i=()=>new s(...k(e.deps))}return i}function tl(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ad(e,t){for(const n of e)Array.isArray(n)?ad(n,t):n&&Xe(n)?ad(n.\u0275providers,t):t(n)}const Jh=new wi("AppId",{providedIn:"root",factory:()=>C0}),C0="ng",ep=new wi("Platform Initializer"),ld=new wi("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),D0=new wi("AnimationModuleType"),w0=new wi("CSP nonce",{providedIn:"root",factory:()=>Ja().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let tp=(e,t,n)=>null;function gd(e,t,n=!1){return tp(e,t,n)}class F0{}class rp{}class N0{resolveComponentFactory(t){throw function k0(e){const t=Error(`No component factory found for ${me(e)}.`);return t.ngComponent=e,t}(t)}}let zl=(()=>{class t{}return t.NULL=new N0,t})();function L0(){return rl(Gi(),Pt())}function rl(e,t){return new Gl(mr(e,t))}let Gl=(()=>{class t{constructor(i){this.nativeElement=i}}return t.__NG_ELEMENT_ID__=L0,t})();function B0(e){return e instanceof Gl?e.nativeElement:e}class op{}let V0=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function U0(){const e=Pt(),n=zi(Gi().index,e);return(ui(n)?n:e)[nn]}(),t})(),j0=(()=>{var e;class t{}return(e=t).\u0275prov=Ye({token:e,providedIn:"root",factory:()=>null}),t})();class ap{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const lp=new ap("16.2.5"),yd={};function fp(e,t=null,n=null,i){const s=hp(e,t,n,i);return s.resolveInjectorInitializers(),s}function hp(e,t=null,n=null,i,s=new Set){const o=[n||ct,h0(e)];return i=i||("object"==typeof e?void 0:me(e)),new Vc(o,t||Bc(),i||null,s)}let yo=(()=>{var e;class t{static create(i,s){if(Array.isArray(i))return fp({name:""},s,i,"");{const o=i.name??"";return fp({name:o},i.parent,i.providers,o)}}}return(e=t).THROW_IF_NOT_FOUND=On,e.NULL=new ed,e.\u0275prov=Ye({token:e,providedIn:"any",factory:()=>z(Wh)}),e.__NG_ELEMENT_ID__=-1,t})();function Ed(e){return e.ngOriginalError}class pa{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ed(t);for(;n&&Ed(n);)n=Ed(n);return n||null}}function Dd(e){return t=>{setTimeout(e,void 0,t)}}const Ro=class K0 extends r.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){let s=t,o=n||(()=>null),l=i;if(t&&"object"==typeof t){const y=t;s=y.next?.bind(y),o=y.error?.bind(y),l=y.complete?.bind(y)}this.__isAsync&&(o=Dd(o),s&&(s=Dd(s)),l&&(l=Dd(l)));const d=super.subscribe({next:s,error:o,complete:l});return t instanceof u.w0&&t.add(d),d}};function mp(...e){}class Hr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ro(!1),this.onMicrotaskEmpty=new Ro(!1),this.onStable=new Ro(!1),this.onError=new Ro(!1),typeof Zone>"u")throw new J(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&n,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function Z0(){const e="function"==typeof He.requestAnimationFrame;let t=He[e?"requestAnimationFrame":"setTimeout"],n=He[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const s=n[Zone.__symbol__("OriginalDelegate")];s&&(n=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function X0(e){const t=()=>{!function q0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(He,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,xd(e),e.isCheckStableRunning=!0,wd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),xd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,o,l,d)=>{if(function eb(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(d))return n.invokeTask(s,o,l,d);try{return gp(e),n.invokeTask(s,o,l,d)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),_p(e)}},onInvoke:(n,i,s,o,l,d,y)=>{try{return gp(e),n.invoke(s,o,l,d,y)}finally{e.shouldCoalesceRunChangeDetection&&t(),_p(e)}},onHasTask:(n,i,s,o)=>{n.hasTask(s,o),i===s&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,xd(e),wd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,i,s,o)=>(n.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hr.isInAngularZone())throw new J(909,!1)}static assertNotInAngularZone(){if(Hr.isInAngularZone())throw new J(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,s){const o=this._inner,l=o.scheduleEventTask("NgZoneEvent: "+s,t,Q0,mp,mp);try{return o.runTask(l,n,i)}finally{o.cancelTask(l)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const Q0={};function wd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function xd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function gp(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function _p(e){e._nesting--,wd(e)}class J0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ro,this.onMicrotaskEmpty=new Ro,this.onStable=new Ro,this.onError=new Ro}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,s){return t.apply(n,i)}}const vp=new wi("",{providedIn:"root",factory:yp});function yp(){const e=se(Hr);let t=!0;const n=new B.y(s=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{s.next(t),s.complete()})}),i=new B.y(s=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{Hr.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,s.next(!0))})})});const l=e.onUnstable.subscribe(()=>{Hr.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{s.next(!1)}))});return()=>{o.unsubscribe(),l.unsubscribe()}});return(0,$.T)(n,i.pipe((0,te.B)()))}function Xo(e){return e instanceof Function?e():e}let Ad=(()=>{var e;class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}}return(e=t).\u0275prov=Ye({token:e,providedIn:"root",factory:()=>new e}),t})();function Wl(e){for(;e;){e[un]|=64;const t=Nl(e);if(Wr(e)&&!t)return e;e=t}return null}const wp=new wi("",{providedIn:"root",factory:()=>!1});let Wc=null;function Sp(e,t){return e[t]??Op()}function Mp(e,t){const n=Op();n.producerNode?.length&&(e[t]=Wc,n.lView=e,Wc=Ip())}const ub={...Yr,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Wl(e.lView)},lView:null};function Ip(){return Object.create(ub)}function Op(){return Wc??=Ip(),Wc}const Yn={};function Pp(e){Rp(qn(),Pt(),Ee()+e,!1)}function Rp(e,t,n,i){if(!i)if(3==(3&t[un])){const o=e.preOrderCheckHooks;null!==o&&sr(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Hs(t,o,0,n)}it(n)}function al(e,t=Re.Default){const n=Pt();return null===n?z(e,t):Ga(Gi(),n,we(e),t)}function Fp(){throw new Error("invalid")}function Yc(e,t,n,i,s,o,l,d,y,F,Y){const ge=t.blueprint.slice();return ge[ri]=s,ge[un]=140|i,(null!==F||e&&2048&e[un])&&(ge[un]|=2048),ya(ge),ge[ci]=ge[Se]=e,ge[di]=n,ge[Vr]=l||e&&e[Vr],ge[nn]=d||e&&e[nn],ge[rr]=y||e&&e[rr]||null,ge[gi]=o,ge[ln]=function dy(){return uy++}(),ge[bi]=Y,ge[Dn]=F,ge[Ze]=2==t.type?e[Ze]:ge,ge}function ll(e,t,n,i,s){let o=e.data[t];if(null===o)o=function Td(e,t,n,i,s){const o=ca(),l=zo(),y=e.data[t]=function vb(e,t,n,i,s,o){let l=t?t.injectorIndex:-1,d=0;return Ts()&&(d|=128),{type:n,index:i,insertBeforeIndex:null,injectorIndex:l,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:d,providerIndexes:0,value:s,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,l?o:o&&o.parent,n,t,i,s);return null===e.firstChild&&(e.firstChild=y),null!==o&&(l?null==o.child&&null!==y.parent&&(o.child=y):null===o.next&&(o.next=y,y.prev=o)),y}(e,t,n,i,s),function f(){return bn.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=i,o.attrs=s;const l=function _o(){const e=bn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===l?-1:l.injectorIndex}return ss(o,!0),o}function Yl(e,t,n,i){if(0===n)return-1;const s=t.length;for(let o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return s}function kp(e,t,n,i,s){const o=Sp(t,Pi),l=Ee(),d=2&i;try{it(-1),d&&t.length>Tn&&Rp(e,t,Tn,!1),Zi(d?2:0,s);const F=d?o:null,Y=ws(F);try{null!==F&&(F.dirty=!1),n(i,s)}finally{hi(F,Y)}}finally{d&&null===t[Pi]&&Mp(t,Pi),it(l),Zi(d?3:1,s)}}function Sd(e,t,n){if(Gr(t)){const i=$i(null);try{const o=t.directiveEnd;for(let l=t.directiveStart;l<o;l++){const d=e.data[l];d.contentQueries&&d.contentQueries(1,n[l],l)}}finally{$i(i)}}}function Md(e,t,n){gr()&&(function xb(e,t,n,i){const s=n.directiveStart,o=n.directiveEnd;Mr(n)&&function Pb(e,t,n){const i=mr(t,e),s=Np(n);let l=16;n.signals?l=4096:n.onPush&&(l=64);const d=Kc(e,Yc(e,s,null,l,i,t,null,e[Vr].rendererFactory.createRenderer(i,n),null,null,null));e[t.index]=d}(t,n,e.data[s+n.componentOffset]),e.firstCreatePass||ja(n,t),us(i,t);const l=n.initialInputs;for(let d=s;d<o;d++){const y=e.data[d],F=Ko(t,e,d,n);us(F,t),null!==l&&Rb(0,d-s,F,y,0,l),ji(y)&&(zi(n.index,t)[di]=Ko(t,e,d,n))}}(e,t,n,mr(n,t)),64==(64&n.flags)&&jp(e,t,n))}function Id(e,t,n=mr){const i=t.localNames;if(null!==i){let s=t.index+1;for(let o=0;o<i.length;o+=2){const l=i[o+1],d=-1===l?n(t,e):e[l];e[s++]=d}}}function Np(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Od(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Od(e,t,n,i,s,o,l,d,y,F,Y){const ge=Tn+i,We=ge+s,ot=function fb(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Yn);return n}(ge,We),Tt="function"==typeof F?F():F;return ot[$t]={type:e,blueprint:ot,template:n,queries:null,viewQuery:d,declTNode:t,data:ot.slice().fill(null,ge),bindingStartIndex:ge,expandoStartIndex:We,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof l?l():l,firstChild:null,schemas:y,consts:Tt,incompleteFirstPass:!1,ssrId:Y}}let Lp=e=>null;function Bp(e,t,n,i){for(let s in e)if(e.hasOwnProperty(s)){n=null===n?{}:n;const o=e[s];null===i?Vp(n,t,s,o):i.hasOwnProperty(s)&&Vp(n,t,i[s],o)}return n}function Vp(e,t,n,i){e.hasOwnProperty(n)?e[n].push(t,i):e[n]=[t,i]}function Gs(e,t,n,i,s,o,l,d){const y=mr(t,n);let Y,F=t.inputs;!d&&null!=F&&(Y=F[i])?(Nd(e,n,Y,i,s),Mr(t)&&function Eb(e,t){const n=zi(t,e);16&n[un]||(n[un]|=64)}(n,t.index)):3&t.type&&(i=function bb(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),s=null!=l?l(s,t.value||"",i):s,o.setProperty(y,i,s))}function Pd(e,t,n,i){if(gr()){const s=null===i?null:{"":-1},o=function Tb(e,t){const n=e.directiveRegistry;let i=null,s=null;if(n)for(let o=0;o<n.length;o++){const l=n[o];if(lr(t,l.selectors,!1))if(i||(i=[]),ji(l))if(null!==l.findHostDirectiveDefs){const d=[];s=s||new Map,l.findHostDirectiveDefs(l,d,s),i.unshift(...d,l),Rd(e,t,d.length)}else i.unshift(l),Rd(e,t,0);else s=s||new Map,l.findHostDirectiveDefs?.(l,i,s),i.push(l)}return null===i?null:[i,s]}(e,n);let l,d;null===o?l=d=null:[l,d]=o,null!==l&&Up(e,t,n,l,s,d),s&&function Sb(e,t,n){if(t){const i=e.localNames=[];for(let s=0;s<t.length;s+=2){const o=n[t[s+1]];if(null==o)throw new J(-301,!1);i.push(t[s],o)}}}(n,i,s)}n.mergedAttrs=Vi(n.mergedAttrs,n.attrs)}function Up(e,t,n,i,s,o){for(let F=0;F<i.length;F++)Aa(ja(n,t),e,i[F].type);!function Ib(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,i.length);for(let F=0;F<i.length;F++){const Y=i[F];Y.providersResolver&&Y.providersResolver(Y)}let l=!1,d=!1,y=Yl(e,t,i.length,null);for(let F=0;F<i.length;F++){const Y=i[F];n.mergedAttrs=Vi(n.mergedAttrs,Y.hostAttrs),Ob(e,n,t,y,Y),Mb(y,Y,s),null!==Y.contentQueries&&(n.flags|=4),(null!==Y.hostBindings||null!==Y.hostAttrs||0!==Y.hostVars)&&(n.flags|=64);const ge=Y.type.prototype;!l&&(ge.ngOnChanges||ge.ngOnInit||ge.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!d&&(ge.ngOnChanges||ge.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),y++}!function yb(e,t,n){const s=t.directiveEnd,o=e.data,l=t.attrs,d=[];let y=null,F=null;for(let Y=t.directiveStart;Y<s;Y++){const ge=o[Y],We=n?n.get(ge):null,Tt=We?We.outputs:null;y=Bp(ge.inputs,Y,y,We?We.inputs:null),F=Bp(ge.outputs,Y,F,Tt);const Vt=null===y||null===l||xi(t)?null:Fb(y,Y,l);d.push(Vt)}null!==y&&(y.hasOwnProperty("class")&&(t.flags|=8),y.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=d,t.inputs=y,t.outputs=F}(e,n,o)}function jp(e,t,n){const i=n.directiveStart,s=n.directiveEnd,o=n.index,l=function _(){return bn.lFrame.currentDirectiveIndex}();try{it(o);for(let d=i;d<s;d++){const y=e.data[d],F=t[d];T(d),(null!==y.hostBindings||0!==y.hostVars||null!==y.hostAttrs)&&Ab(y,F)}}finally{it(-1),T(l)}}function Ab(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Rd(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Mb(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;ji(t)&&(n[""]=e)}}function Ob(e,t,n,i,s){e.data[i]=s;const o=s.factory||(s.factory=Hi(s.type)),l=new Wo(o,ji(s),al);e.blueprint[i]=l,n[i]=l,function Db(e,t,n,i,s){const o=s.hostBindings;if(o){let l=e.hostBindingOpCodes;null===l&&(l=e.hostBindingOpCodes=[]);const d=~t.index;(function wb(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(l)!=d&&l.push(d),l.push(n,i,o)}}(e,t,i,Yl(e,n,s.hostVars,Yn),s)}function Fo(e,t,n,i,s,o){const l=mr(e,t);!function Fd(e,t,n,i,s,o,l){if(null==o)e.removeAttribute(t,s,n);else{const d=null==l?he(o):l(o,i||"",s);e.setAttribute(t,s,d,n)}}(t[nn],l,o,e.value,n,i,s)}function Rb(e,t,n,i,s,o){const l=o[t];if(null!==l)for(let d=0;d<l.length;)Hp(i,n,l[d++],l[d++],l[d++])}function Hp(e,t,n,i,s){const o=$i(null);try{const l=e.inputTransforms;null!==l&&l.hasOwnProperty(i)&&(s=l[i].call(t,s)),null!==e.setInput?e.setInput(t,s,n,i):t[i]=s}finally{$i(o)}}function Fb(e,t,n){let i=null,s=0;for(;s<n.length;){const o=n[s];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===i&&(i=[]);const l=e[o];for(let d=0;d<l.length;d+=2)if(l[d]===t){i.push(o,l[d+1],n[s+1]);break}}s+=2}else s+=2;else s+=4}return i}function $p(e,t,n,i){return[e,!0,!1,t,null,0,i,n,null,null,null]}function zp(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const o=n[i+1];if(-1!==o){const l=e.data[o];rt(n[i]),l.contentQueries(2,t[o],o)}}}function Kc(e,t){return e[er]?e[Fe][Oi]=t:e[er]=t,e[Fe]=t,t}function kd(e,t,n){rt(0);const i=$i(null);try{t(e,n)}finally{$i(i)}}function Gp(e){return e[Cr]||(e[Cr]=[])}function Wp(e){return e.cleanup||(e.cleanup=[])}function Yp(e,t,n){return(null===e||ji(e))&&(n=function xo(e){for(;Array.isArray(e);){if("object"==typeof e[Ur])return e;e=e[ri]}return null}(n[t.index])),n[nn]}function Kp(e,t){const n=e[rr],i=n?n.get(pa,null):null;i&&i.handleError(t)}function Nd(e,t,n,i,s){for(let o=0;o<n.length;){const l=n[o++],d=n[o++];Hp(e.data[l],t[l],i,d,s)}}function Jo(e,t,n){const i=so(t,e);!function yh(e,t,n){e.setValue(t,n)}(e[nn],i,n)}function kb(e,t){const n=zi(t,e),i=n[$t];!function Nb(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n);const s=n[ri];null!==s&&null===n[bi]&&(n[bi]=gd(s,n[rr])),Ld(i,n,n[di])}function Ld(e,t,n){rn(t);try{const i=e.viewQuery;null!==i&&kd(1,i,n);const s=e.template;null!==s&&kp(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&zp(e,t),e.staticViewQueries&&kd(2,e.viewQuery,n);const o=e.components;null!==o&&function Lb(e,t){for(let n=0;n<t.length;n++)kb(e,t[n])}(t,o)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[un]&=-5,w()}}let Zp=(()=>{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(i,s,o){const l=typeof Zone>"u"?null:Zone.current,d=function ke(e,t,n){const i=Object.create(jt);n&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=t;const s=l=>{i.cleanupFn=l};return i.ref={notify:()=>eo(i),run:()=>{if(i.dirty=!1,i.hasRun&&!ia(i))return;i.hasRun=!0;const l=ws(i);try{i.cleanupFn(),i.cleanupFn=Et,i.fn(s)}finally{hi(i,l)}},cleanup:()=>i.cleanupFn()},i.ref}(i,Y=>{this.all.has(Y)&&this.queue.set(Y,l)},o);let y;this.all.add(d),d.notify();const F=()=>{d.cleanup(),y?.(),this.all.delete(d),this.queue.delete(d)};return y=s?.onDestroy(F),{destroy:F}}flush(){if(0!==this.queue.size)for(const[i,s]of this.queue)this.queue.delete(i),s?s.run(()=>i.run()):i.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=Ye({token:e,providedIn:"root",factory:()=>new e}),t})();function Zc(e,t,n){let i=n?e.styles:null,s=n?e.classes:null,o=0;if(null!==t)for(let l=0;l<t.length;l++){const d=t[l];"number"==typeof d?o=d:1==o?s=Ie(s,d):2==o&&(i=Ie(i,d+": "+t[++l]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=s:e.classesWithoutHost=s}function Kl(e,t,n,i,s=!1){for(;null!==n;){const o=t[n.index];null!==o&&i.push($n(o)),Yi(o)&&Qp(o,i);const l=n.type;if(8&l)Kl(e,t,n.child,i);else if(32&l){const d=Vu(n,t);let y;for(;y=d();)i.push(y)}else if(16&l){const d=Sh(t,n);if(Array.isArray(d))i.push(...d);else{const y=Nl(t[Ze]);Kl(y[$t],y,d,i,!0)}}n=s?n.projectionNext:n.next}return i}function Qp(e,t){for(let n=Hn;n<e.length;n++){const i=e[n],s=i[$t].firstChild;null!==s&&Kl(i[$t],i,s,t)}e[si]!==e[ri]&&t.push(e[si])}function Qc(e,t,n,i=!0){const s=t[Vr],o=s.rendererFactory,l=s.afterRenderEventManager;o.begin?.(),l?.begin();try{qp(e,t,e.template,n)}catch(y){throw i&&Kp(t,y),y}finally{o.end?.(),s.effectManager?.flush(),l?.end()}}function qp(e,t,n,i){const s=t[un];if(256!=(256&s)){t[Vr].effectManager?.flush(),rn(t);try{ya(t),function Da(e){return bn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&kp(e,t,n,2,i);const l=3==(3&s);if(l){const F=e.preOrderCheckHooks;null!==F&&sr(t,F,null)}else{const F=e.preOrderHooks;null!==F&&Hs(t,F,0,null),as(t,0)}if(function Ub(e){for(let t=gh(e);null!==t;t=_h(t)){if(!t[Ti])continue;const n=t[dr];for(let i=0;i<n.length;i++){po(n[i])}}}(t),Xp(t,2),null!==e.contentQueries&&zp(e,t),l){const F=e.contentCheckHooks;null!==F&&sr(t,F)}else{const F=e.contentHooks;null!==F&&Hs(t,F,1),as(t,1)}!function db(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const i=Sp(t,Ai);try{for(let s=0;s<n.length;s++){const o=n[s];if(o<0)it(~o);else{const l=o,d=n[++s],y=n[++s];D(d,l),i.dirty=!1;const F=ws(i);try{y(2,t[l])}finally{hi(i,F)}}}}finally{null===t[Ai]&&Mp(t,Ai),it(-1)}}(e,t);const d=e.components;null!==d&&em(t,d,0);const y=e.viewQuery;if(null!==y&&kd(2,y,i),l){const F=e.viewCheckHooks;null!==F&&sr(t,F)}else{const F=e.viewHooks;null!==F&&Hs(t,F,2),as(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[un]&=-73,rs(t)}finally{w()}}}function Xp(e,t){for(let n=gh(e);null!==n;n=_h(n))for(let i=Hn;i<n.length;i++)Jp(n[i],t)}function jb(e,t,n){Jp(zi(t,e),n)}function Jp(e,t){if(!function Ao(e){return 128==(128&e[un])}(e))return;const n=e[$t],i=e[un];if(80&i&&0===t||1024&i||2===t)qp(n,e,n.template,e[di]);else if(e[ur]>0){Xp(e,1);const s=n.components;null!==s&&em(e,s,1)}}function em(e,t,n){for(let i=0;i<t.length;i++)jb(e,t[i],n)}class Zl{get rootNodes(){const t=this._lView,n=t[$t];return Kl(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[di]}set context(t){this._lView[di]=t}get destroyed(){return 256==(256&this._lView[un])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ci];if(Yi(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(Sc(t,i),mc(n,i))}this._attachedToViewContainer=!1}ju(this._lView[$t],this._lView)}onDestroy(t){!function mo(e,t){if(256==(256&e[un]))throw new J(911,!1);null===e[yn]&&(e[yn]=[]),e[yn].push(t)}(this._lView,t)}markForCheck(){Wl(this._cdRefInjectingView||this._lView)}detach(){this._lView[un]&=-129}reattach(){this._lView[un]|=128}detectChanges(){Qc(this._lView[$t],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new J(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function xy(e,t){Bl(e,t,t[nn],2,null,null)}(this._lView[$t],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new J(902,!1);this._appRef=t}}class Hb extends Zl{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Qc(t[$t],t,t[di],!1)}checkNoChanges(){}get context(){return null}}class tm extends zl{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Rn(t);return new Ql(n,this.ngModule)}}function nm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class zb{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){i=E(i);const s=this.injector.get(t,yd,i);return s!==yd||n===yd?s:this.parentInjector.get(t,n,i)}}class Ql extends rp{get inputs(){const t=this.componentDef,n=t.inputTransforms,i=nm(t.inputs);if(null!==n)for(const s of i)n.hasOwnProperty(s.propName)&&(s.transform=n[s.propName]);return i}get outputs(){return nm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Ks(e){return e.map(Br).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,i,s){let o=(s=s||this.ngModule)instanceof Po?s:s?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const l=o?new zb(t,o):t,d=l.get(op,null);if(null===d)throw new J(407,!1);const ge={rendererFactory:d,sanitizer:l.get(j0,null),effectManager:l.get(Zp,null),afterRenderEventManager:l.get(Ad,null)},We=d.createRenderer(null,this.componentDef),ot=this.componentDef.selectors[0][0]||"div",Tt=i?function hb(e,t,n,i){const o=i.get(wp,!1)||n===De.ShadowDom,l=e.selectRootElement(t,o);return function pb(e){Lp(e)}(l),l}(We,i,this.componentDef.encapsulation,l):Tc(We,ot,function $b(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(ot)),pn=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Nt=null;null!==Tt&&(Nt=gd(Tt,l,!0));const Un=Od(0,null,null,1,0,null,null,null,null,null,null),ti=Yc(null,Un,null,pn,null,null,ge,We,l,null,Nt);let ki,Rs;rn(ti);try{const ea=this.componentDef;let xl,Wf=null;ea.findHostDirectiveDefs?(xl=[],Wf=new Map,ea.findHostDirectiveDefs(ea,xl,Wf),xl.push(ea)):xl=[ea];const Kx=function Wb(e,t){const n=e[$t],i=Tn;return e[i]=t,ll(n,i,2,"#host",null)}(ti,Tt),Zx=function Yb(e,t,n,i,s,o,l){const d=s[$t];!function Kb(e,t,n,i){for(const s of e)t.mergedAttrs=Vi(t.mergedAttrs,s.hostAttrs);null!==t.mergedAttrs&&(Zc(t,t.mergedAttrs,!0),null!==n&&Ph(i,n,t))}(i,e,t,l);let y=null;null!==t&&(y=gd(t,s[rr]));const F=o.rendererFactory.createRenderer(t,n);let Y=16;n.signals?Y=4096:n.onPush&&(Y=64);const ge=Yc(s,Np(n),null,Y,s[e.index],e,o,F,null,null,y);return d.firstCreatePass&&Rd(d,e,i.length-1),Kc(s,ge),s[e.index]=ge}(Kx,Tt,ea,xl,ti,ge,We);Rs=sa(Un,Tn),Tt&&function Qb(e,t,n,i){if(i)Pn(e,n,["ng-version",lp.full]);else{const{attrs:s,classes:o}=function cr(e){const t=[],n=[];let i=1,s=2;for(;i<e.length;){let o=e[i];if("string"==typeof o)2===s?""!==o&&t.push(o,e[++i]):8===s&&n.push(o);else{if(!Jn(s))break;s=o}i++}return{attrs:t,classes:n}}(t.selectors[0]);s&&Pn(e,n,s),o&&o.length>0&&Oh(e,n,o.join(" "))}}(We,ea,Tt,i),void 0!==n&&function qb(e,t,n){const i=e.projection=[];for(let s=0;s<t.length;s++){const o=n[s];i.push(null!=o?Array.from(o):null)}}(Rs,this.ngContentSelectors,n),ki=function Zb(e,t,n,i,s,o){const l=Gi(),d=s[$t],y=mr(l,s);Up(d,s,l,n,null,i);for(let Y=0;Y<n.length;Y++)us(Ko(s,d,l.directiveStart+Y,l),s);jp(d,s,l),y&&us(y,s);const F=Ko(s,d,l.directiveStart+l.componentOffset,l);if(e[di]=s[di]=F,null!==o)for(const Y of o)Y(F,t);return Sd(d,l,e),F}(Zx,ea,xl,Wf,ti,[Xb]),Ld(Un,ti,null)}finally{w()}return new Gb(this.componentType,ki,rl(Rs,ti),ti,Rs)}}class Gb extends F0{constructor(t,n,i,s,o){super(),this.location=i,this._rootLView=s,this._tNode=o,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Hb(s),this.componentType=t}setInput(t,n){const i=this._tNode.inputs;let s;if(null!==i&&(s=i[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const o=this._rootLView;Nd(o[$t],o,s,t,n),this.previousInputValues.set(t,n),Wl(zi(this._tNode.index,o))}}get injector(){return new or(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Xb(){const e=Gi();nr(Pt()[$t],e)}function Bd(e){let t=function im(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let s;if(ji(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new J(903,!1);s=t.\u0275dir}if(s){if(n){i.push(s);const l=e;l.inputs=qc(e.inputs),l.inputTransforms=qc(e.inputTransforms),l.declaredInputs=qc(e.declaredInputs),l.outputs=qc(e.outputs);const d=s.hostBindings;d&&nE(e,d);const y=s.viewQuery,F=s.contentQueries;if(y&&eE(e,y),F&&tE(e,F),q(e.inputs,s.inputs),q(e.declaredInputs,s.declaredInputs),q(e.outputs,s.outputs),null!==s.inputTransforms&&(null===l.inputTransforms&&(l.inputTransforms={}),q(l.inputTransforms,s.inputTransforms)),ji(s)&&s.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(s.data.animation)}}const o=s.features;if(o)for(let l=0;l<o.length;l++){const d=o[l];d&&d.ngInherit&&d(e),d===Bd&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Jb(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const s=e[i];s.hostVars=t+=s.hostVars,s.hostAttrs=Vi(s.hostAttrs,n=Vi(n,s.hostAttrs))}}(i)}function qc(e){return e===mt?{}:e===ct?[]:e}function eE(e,t){const n=e.viewQuery;e.viewQuery=n?(i,s)=>{t(i,s),n(i,s)}:t}function tE(e,t){const n=e.contentQueries;e.contentQueries=n?(i,s,o)=>{t(i,s,o),n(i,s,o)}:t}function nE(e,t){const n=e.hostBindings;e.hostBindings=n?(i,s)=>{t(i,s),n(i,s)}:t}function am(e){const t=e.inputConfig,n={};for(const i in t)if(t.hasOwnProperty(i)){const s=t[i];Array.isArray(s)&&s[2]&&(n[i]=s[2])}e.inputTransforms=n}function Xc(e){return!!Vd(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Vd(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ko(e,t,n){return e[t]=n}function ds(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Fa(e,t,n,i){const s=ds(e,t,n);return ds(e,t+1,i)||s}function Ud(e,t,n,i){const s=Pt();return ds(s,js(),t)&&(qn(),Fo(ft(),s,e,t,n,i)),Ud}function ul(e,t,n,i){return ds(e,js(),n)?t+he(n)+i:Yn}function dl(e,t,n,i,s,o){const d=Fa(e,function os(){return bn.lFrame.bindingIndex}(),n,s);return Ss(2),d?t+he(n)+i+he(s)+o:Yn}function bm(e,t,n,i,s,o,l,d){const y=Pt(),F=qn(),Y=e+Tn,ge=F.firstCreatePass?function TE(e,t,n,i,s,o,l,d,y){const F=t.consts,Y=ll(t,e,4,l||null,_s(F,d));Pd(t,n,Y,_s(F,y)),nr(t,Y);const ge=Y.tView=Od(2,Y,i,s,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,F,null);return null!==t.queries&&(t.queries.template(t,Y),ge.queries=t.queries.embeddedTView(Y)),Y}(Y,F,y,t,n,i,s,o,l):F.data[Y];ss(ge,!1);const We=Em(F,y,ge,e);yi()&&Ic(F,y,We,ge),us(We,y),Kc(y,y[Y]=$p(We,y,We,ge)),fr(ge)&&Md(F,y,ge),null!=l&&Id(y,ge,d)}let Em=function Cm(e,t,n,i){return Ci(!0),t[nn].createComment("")};function Dm(e){return As(function ua(){return bn.lFrame.contextLView}(),Tn+e)}function Wd(e,t,n){const i=Pt();return ds(i,js(),t)&&Gs(qn(),ft(),i,e,t,i[nn],n,!1),Wd}function Yd(e,t,n,i,s){const l=s?"class":"style";Nd(e,n,t.inputs[l],l,i)}function iu(e,t,n,i){const s=Pt(),o=qn(),l=Tn+e,d=s[nn],y=o.firstCreatePass?function OE(e,t,n,i,s,o){const l=t.consts,y=ll(t,e,2,i,_s(l,s));return Pd(t,n,y,_s(l,o)),null!==y.attrs&&Zc(y,y.attrs,!1),null!==y.mergedAttrs&&Zc(y,y.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,y),y}(l,o,s,t,n,i):o.data[l],F=wm(o,s,y,d,t,e);s[l]=F;const Y=fr(y);return ss(y,!0),Ph(d,F,y),32!=(32&y.flags)&&yi()&&Ic(o,s,F,y),0===function go(){return bn.lFrame.elementDepthCount}()&&us(F,s),function tr(){bn.lFrame.elementDepthCount++}(),Y&&(Md(o,s,y),Sd(o,y,s)),null!==i&&Id(s,y),iu}function ru(){let e=Gi();zo()?Mo():(e=e.parent,ss(e,!1));const t=e;(function So(e){return bn.skipHydrationRootTNode===e})(t)&&function Ca(){bn.skipHydrationRootTNode=null}(),function aa(){bn.lFrame.elementDepthCount--}();const n=qn();return n.firstCreatePass&&(nr(n,e),Gr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function sn(e){return 0!=(8&e.flags)}(t)&&Yd(n,t,Pt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function vn(e){return 0!=(16&e.flags)}(t)&&Yd(n,t,Pt(),t.stylesWithoutHost,!1),ru}function Kd(e,t,n,i){return iu(e,t,n,i),ru(),Kd}let wm=(e,t,n,i,s,o)=>(Ci(!0),Tc(i,s,function hn(){return bn.lFrame.currentNamespace}()));function su(e,t,n){const i=Pt(),s=qn(),o=e+Tn,l=s.firstCreatePass?function FE(e,t,n,i,s){const o=t.consts,l=_s(o,i),d=ll(t,e,8,"ng-container",l);return null!==l&&Zc(d,l,!0),Pd(t,n,d,_s(o,s)),null!==t.queries&&t.queries.elementStart(t,d),d}(o,s,i,t,n):s.data[o];ss(l,!0);const d=xm(s,i,l,e);return i[o]=d,yi()&&Ic(s,i,d,l),us(d,i),fr(l)&&(Md(s,i,l),Sd(s,l,i)),null!=n&&Id(i,l),su}function ou(){let e=Gi();const t=qn();return zo()?Mo():(e=e.parent,ss(e,!1)),t.firstCreatePass&&(nr(t,e),Gr(e)&&t.queries.elementEnd(e)),ou}function Zd(e,t,n){return su(e,t,n),ou(),Zd}let xm=(e,t,n,i)=>(Ci(!0),Uu(t[nn],""));function Am(){return Pt()}function Qd(e){return!!e&&"function"==typeof e.then}function Tm(e){return!!e&&"function"==typeof e.subscribe}function qd(e,t,n,i){const s=Pt(),o=qn(),l=Gi();return function Mm(e,t,n,i,s,o,l){const d=fr(i),F=e.firstCreatePass&&Wp(e),Y=t[di],ge=Gp(t);let We=!0;if(3&i.type||l){const Vt=mr(i,t),Jt=l?l(Vt):Vt,pn=ge.length,Nt=l?ti=>l($n(ti[i.index])):i.index;let Un=null;if(!l&&d&&(Un=function LE(e,t,n,i){const s=e.cleanup;if(null!=s)for(let o=0;o<s.length-1;o+=2){const l=s[o];if(l===n&&s[o+1]===i){const d=t[Cr],y=s[o+2];return d.length>y?d[y]:null}"string"==typeof l&&(o+=2)}return null}(e,t,s,i.index)),null!==Un)(Un.__ngLastListenerFn__||Un).__ngNextListenerFn__=o,Un.__ngLastListenerFn__=o,We=!1;else{o=Om(i,t,Y,o,!1);const ti=n.listen(Jt,s,o);ge.push(o,ti),F&&F.push(s,Nt,pn,pn+1)}}else o=Om(i,t,Y,o,!1);const ot=i.outputs;let Tt;if(We&&null!==ot&&(Tt=ot[s])){const Vt=Tt.length;if(Vt)for(let Jt=0;Jt<Vt;Jt+=2){const ki=t[Tt[Jt]][Tt[Jt+1]].subscribe(o),Rs=ge.length;ge.push(o,ki),F&&F.push(s,i.index,Rs,-(Rs+1))}}}(o,s,s[nn],l,e,t,i),qd}function Im(e,t,n,i){try{return Zi(6,t,n),!1!==n(i)}catch(s){return Kp(e,s),!1}finally{Zi(7,t,n)}}function Om(e,t,n,i,s){return function o(l){if(l===Function)return i;Wl(e.componentOffset>-1?zi(e.index,t):t);let y=Im(t,n,i,l),F=o.__ngNextListenerFn__;for(;F;)y=Im(t,n,F,l)&&y,F=F.__ngNextListenerFn__;return s&&!1===y&&l.preventDefault(),y}}function Pm(e=1){return function G(e){return(bn.lFrame.contextLView=function be(e,t){for(;e>0;)t=t[Se],e--;return t}(e,bn.lFrame.contextLView))[di]}(e)}function BE(e,t){let n=null;const i=function Lr(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let s=0;s<t.length;s++){const o=t[s];if("*"!==o){if(null===i?lr(e,o,!0):Ys(i,o))return s}else n=s}return n}function Rm(e){const t=Pt()[Ze][gi];if(!t.projection){const i=t.projection=Rl(e?e.length:1,null),s=i.slice();let o=t.child;for(;null!==o;){const l=e?BE(o,e):0;null!==l&&(s[l]?s[l].projectionNext=o:i[l]=o,s[l]=o),o=o.next}}}function Fm(e,t=0,n){const i=Pt(),s=qn(),o=ll(s,Tn+e,16,null,n||null);null===o.projection&&(o.projection=t),Mo(),(!i[bi]||Ts())&&32!=(32&o.flags)&&function Ry(e,t,n){Ih(t[nn],0,t,n,$u(e,n,t),wh(n.parent||t[gi],n,t))}(s,i,o)}function Xd(e,t,n){return au(e,"",t,"",n),Xd}function au(e,t,n,i,s){const o=Pt(),l=ul(o,t,n,i);return l!==Yn&&Gs(qn(),ft(),o,e,l,o[nn],s,!1),au}function lu(e,t){return e<<17|t<<2}function ma(e){return e>>17&32767}function Jd(e){return 2|e}function ka(e){return(131068&e)>>2}function ef(e,t){return-131069&e|t<<2}function tf(e){return 1|e}function $m(e,t,n,i,s){const o=e[n+1],l=null===t;let d=i?ma(o):ka(o),y=!1;for(;0!==d&&(!1===y||l);){const Y=e[d+1];zE(e[d],t)&&(y=!0,e[d+1]=i?tf(Y):Jd(Y)),d=i?ma(Y):ka(Y)}y&&(e[n+1]=i?Jd(o):tf(o))}function zE(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ka(e,t)>=0}const Nr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zm(e){return e.substring(Nr.key,Nr.keyEnd)}function Gm(e,t){const n=Nr.textEnd;return n===t?-1:(t=Nr.keyEnd=function KE(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Nr.key=t,n),vl(e,t,n))}function vl(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function nf(e,t,n){return bo(e,t,n,!1),nf}function rf(e,t){return bo(e,t,null,!0),rf}function Qm(e){Eo(iC,Lo,e,!0)}function Lo(e,t){for(let n=function WE(e){return function Ym(e){Nr.key=0,Nr.keyEnd=0,Nr.value=0,Nr.valueEnd=0,Nr.textEnd=e.length}(e),Gm(e,vl(e,0,Nr.textEnd))}(t);n>=0;n=Gm(t,n))zs(e,zm(t),!0)}function bo(e,t,n,i){const s=Pt(),o=qn(),l=Ss(2);o.firstUpdatePass&&Xm(o,e,l,i),t!==Yn&&ds(s,l,t)&&eg(o,o.data[Ee()],s,s[nn],e,s[l+1]=function sC(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=me(Qo(e)))),e}(t,n),i,l)}function Eo(e,t,n,i){const s=qn(),o=Ss(2);s.firstUpdatePass&&Xm(s,null,o,i);const l=Pt();if(n!==Yn&&ds(l,o,n)){const d=s.data[Ee()];if(ng(d,i)&&!qm(s,o)){let y=i?d.classesWithoutHost:d.stylesWithoutHost;null!==y&&(n=Ie(y,n||"")),Yd(s,d,l,n,i)}else!function rC(e,t,n,i,s,o,l,d){s===Yn&&(s=ct);let y=0,F=0,Y=0<s.length?s[0]:null,ge=0<o.length?o[0]:null;for(;null!==Y||null!==ge;){const We=y<s.length?s[y+1]:void 0,ot=F<o.length?o[F+1]:void 0;let Vt,Tt=null;Y===ge?(y+=2,F+=2,We!==ot&&(Tt=ge,Vt=ot)):null===ge||null!==Y&&Y<ge?(y+=2,Tt=Y):(F+=2,Tt=ge,Vt=ot),null!==Tt&&eg(e,t,n,i,Tt,Vt,l,d),Y=y<s.length?s[y]:null,ge=F<o.length?o[F]:null}}(s,d,l,l[nn],l[o+1],l[o+1]=function nC(e,t,n){if(null==n||""===n)return ct;const i=[],s=Qo(n);if(Array.isArray(s))for(let o=0;o<s.length;o++)e(i,s[o],!0);else if("object"==typeof s)for(const o in s)s.hasOwnProperty(o)&&e(i,o,s[o]);else"string"==typeof s&&t(i,s);return i}(e,t,n),i,o)}}function qm(e,t){return t>=e.expandoStartIndex}function Xm(e,t,n,i){const s=e.data;if(null===s[n+1]){const o=s[Ee()],l=qm(e,n);ng(o,i)&&null===t&&!l&&(t=!1),t=function XE(e,t,n,i){const s=Z(e);let o=i?t.residualClasses:t.residualStyles;if(null===s)0===(i?t.classBindings:t.styleBindings)&&(n=tc(n=sf(null,e,t,n,i),t.attrs,i),o=null);else{const l=t.directiveStylingLast;if(-1===l||e[l]!==s)if(n=sf(s,e,t,n,i),null===o){let y=function JE(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==ka(i))return e[ma(i)]}(e,t,i);void 0!==y&&Array.isArray(y)&&(y=sf(null,e,t,y[1],i),y=tc(y,t.attrs,i),function eC(e,t,n,i){e[ma(n?t.classBindings:t.styleBindings)]=i}(e,t,i,y))}else o=function tC(e,t,n){let i;const s=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<s;o++)i=tc(i,e[o].hostAttrs,n);return tc(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(s,o,t,i),function HE(e,t,n,i,s,o){let l=o?t.classBindings:t.styleBindings,d=ma(l),y=ka(l);e[i]=n;let Y,F=!1;if(Array.isArray(n)?(Y=n[1],(null===Y||Ka(n,Y)>0)&&(F=!0)):Y=n,s)if(0!==y){const We=ma(e[d+1]);e[i+1]=lu(We,d),0!==We&&(e[We+1]=ef(e[We+1],i)),e[d+1]=function UE(e,t){return 131071&e|t<<17}(e[d+1],i)}else e[i+1]=lu(d,0),0!==d&&(e[d+1]=ef(e[d+1],i)),d=i;else e[i+1]=lu(y,0),0===d?d=i:e[y+1]=ef(e[y+1],i),y=i;F&&(e[i+1]=Jd(e[i+1])),$m(e,Y,i,!0),$m(e,Y,i,!1),function $E(e,t,n,i,s){const o=s?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ka(o,t)>=0&&(n[i+1]=tf(n[i+1]))}(t,Y,e,i,o),l=lu(d,y),o?t.classBindings=l:t.styleBindings=l}(s,o,t,n,l,i)}}function sf(e,t,n,i,s){let o=null;const l=n.directiveEnd;let d=n.directiveStylingLast;for(-1===d?d=n.directiveStart:d++;d<l&&(o=t[d],i=tc(i,o.hostAttrs,s),o!==e);)d++;return null!==e&&(n.directiveStylingLast=d),i}function tc(e,t,n){const i=n?1:2;let s=-1;if(null!==t)for(let o=0;o<t.length;o++){const l=t[o];"number"==typeof l?s=l:s===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),zs(e,l,!!n||t[++o]))}return void 0===e?null:e}function iC(e,t,n){const i=String(t);""!==i&&!i.includes(" ")&&zs(e,i,n)}function eg(e,t,n,i,s,o,l,d){if(!(3&t.type))return;const y=e.data,F=y[d+1],Y=function jE(e){return 1==(1&e)}(F)?tg(y,t,n,s,ka(F),l):void 0;cu(Y)||(cu(o)||function VE(e){return 2==(2&e)}(F)&&(o=tg(y,null,n,s,d,l)),function ky(e,t,n,i,s){if(t)s?e.addClass(n,i):e.removeClass(n,i);else{let o=-1===i.indexOf("-")?void 0:xc.DashCase;null==s?e.removeStyle(n,i,o):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),o|=xc.Important),e.setStyle(n,i,s,o))}}(i,l,so(Ee(),n),s,o))}function tg(e,t,n,i,s,o){const l=null===t;let d;for(;s>0;){const y=e[s],F=Array.isArray(y),Y=F?y[1]:y,ge=null===Y;let We=n[s+1];We===Yn&&(We=ge?ct:void 0);let ot=ge?Iu(We,i):Y===i?We:void 0;if(F&&!cu(ot)&&(ot=Iu(y,i)),cu(ot)&&(d=ot,l))return d;const Tt=e[s+1];s=l?ma(Tt):ka(Tt)}if(null!==t){let y=o?t.residualClasses:t.residualStyles;null!=y&&(d=Iu(y,i))}return d}function cu(e){return void 0!==e}function ng(e,t){return 0!=(e.flags&(t?8:16))}function ig(e,t=""){const n=Pt(),i=qn(),s=e+Tn,o=i.firstCreatePass?ll(i,s,1,t,null):i.data[s],l=rg(i,n,o,t,e);n[s]=l,yi()&&Ic(i,n,l,o),ss(o,!1)}let rg=(e,t,n,i,s)=>(Ci(!0),function Ac(e,t){return e.createText(t)}(t[nn],i));function af(e){return uu("",e,""),af}function uu(e,t,n){const i=Pt(),s=ul(i,e,t,n);return s!==Yn&&Jo(i,Ee(),s),uu}function lf(e,t,n,i,s){const o=Pt(),l=dl(o,e,t,n,i,s);return l!==Yn&&Jo(o,Ee(),l),lf}function fg(e,t,n){Eo(zs,Lo,ul(Pt(),e,t,n),!0)}function cf(e,t,n){const i=Pt();return ds(i,js(),t)&&Gs(qn(),ft(),i,e,t,i[nn],n,!0),cf}function uf(e,t,n){const i=Pt();if(ds(i,js(),t)){const o=qn(),l=ft();Gs(o,l,i,e,t,Yp(Z(o.data),l,i),n,!0)}return uf}const Na=void 0;var AC=["en",[["a","p"],["AM","PM"],Na],[["AM","PM"],Na,Na],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Na,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Na,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Na,"{1} 'at' {0}",Na],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function xC(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let yl={};function df(e){const t=function TC(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Dg(t);if(n)return n;const i=t.split("-")[0];if(n=Dg(i),n)return n;if("en"===i)return AC;throw new J(701,!1)}function Cg(e){return df(e)[bl.PluralCase]}function Dg(e){return e in yl||(yl[e]=He.ng&&He.ng.common&&He.ng.common.locales&&He.ng.common.locales[e]),yl[e]}var bl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(bl||{});const El="en-US";let wg=El;function pf(e,t,n,i,s){if(e=we(e),Array.isArray(e))for(let o=0;o<e.length;o++)pf(e[o],t,n,i,s);else{const o=qn(),l=Pt(),d=Gi();let y=Ra(e)?e:we(e.provide);const F=Xh(e),Y=1048575&d.providerIndexes,ge=d.directiveStart,We=d.providerIndexes>>20;if(Ra(e)||!e.multi){const ot=new Wo(F,s,al),Tt=gf(y,t,s?Y:Y+We,ge);-1===Tt?(Aa(ja(d,l),o,y),mf(o,e,t.length),t.push(y),d.directiveStart++,d.directiveEnd++,s&&(d.providerIndexes+=1048576),n.push(ot),l.push(ot)):(n[Tt]=ot,l[Tt]=ot)}else{const ot=gf(y,t,Y+We,ge),Tt=gf(y,t,Y,Y+We),Jt=Tt>=0&&n[Tt];if(s&&!Jt||!s&&!(ot>=0&&n[ot])){Aa(ja(d,l),o,y);const pn=function xD(e,t,n,i,s){const o=new Wo(e,n,al);return o.multi=[],o.index=t,o.componentProviders=0,Zg(o,s,i&&!n),o}(s?wD:DD,n.length,s,i,F);!s&&Jt&&(n[Tt].providerFactory=pn),mf(o,e,t.length,0),t.push(y),d.directiveStart++,d.directiveEnd++,s&&(d.providerIndexes+=1048576),n.push(pn),l.push(pn)}else mf(o,e,ot>-1?ot:Tt,Zg(n[s?Tt:ot],F,!s&&i));!s&&i&&Jt&&n[Tt].componentProviders++}}}function mf(e,t,n,i){const s=Ra(t),o=function m0(e){return!!e.useClass}(t);if(s||o){const y=(o?we(t.useClass):t).prototype.ngOnDestroy;if(y){const F=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const Y=F.indexOf(n);-1===Y?F.push(n,[i,y]):F[Y+1].push(i,y)}else F.push(n,y)}}}function Zg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function gf(e,t,n,i){for(let s=n;s<i;s++)if(t[s]===e)return s;return-1}function DD(e,t,n,i){return _f(this.multi,[])}function wD(e,t,n,i){const s=this.multi;let o;if(this.providerFactory){const l=this.providerFactory.componentProviders,d=Ko(n,n[$t],this.providerFactory.index,i);o=d.slice(0,l),_f(s,o);for(let y=l;y<d.length;y++)o.push(d[y])}else o=[],_f(s,o);return o}function _f(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Qg(e,t=[]){return n=>{n.providersResolver=(i,s)=>function CD(e,t,n){const i=qn();if(i.firstCreatePass){const s=ji(e);pf(n,i.data,i.blueprint,s,!0),pf(t,i.data,i.blueprint,s,!1)}}(i,s?s(e):e,t)}}class La{}class qg{}function AD(e,t){return new vf(e,t??null,[])}class vf extends La{constructor(t,n,i){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tm(this);const s=Li(t);this._bootstrapComponents=Xo(s.bootstrap),this._r3Injector=hp(t,n,[{provide:La,useValue:this},{provide:zl,useValue:this.componentFactoryResolver},...i],me(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class yf extends qg{constructor(t){super(),this.moduleType=t}create(t){return new vf(this.moduleType,t,[])}}class Xg extends La{constructor(t){super(),this.componentFactoryResolver=new tm(this),this.instance=null;const n=new Vc([...t.providers,{provide:La,useValue:this},{provide:zl,useValue:this.componentFactoryResolver}],t.parent||Bc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Jg(e,t,n=null){return new Xg({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let SD=(()=>{var e;class t{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const s=Kh(0,i.type),o=s.length>0?Jg([s],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,o)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=Ye({token:e,providedIn:"environment",factory:()=>new e(z(Po))}),t})();function e_(e){e.getStandaloneInjector=t=>t.get(SD).getOrCreateStandaloneInjector(e)}function a_(e,t,n,i){return d_(Pt(),Tr(),e,t,n,i)}function l_(e,t,n,i,s){return f_(Pt(),Tr(),e,t,n,i,s)}function c_(e,t,n,i,s,o){return h_(Pt(),Tr(),e,t,n,i,s,o)}function u_(e,t,n,i,s,o,l){return function p_(e,t,n,i,s,o,l,d,y){const F=t+n;return function ao(e,t,n,i,s,o){const l=Fa(e,t,n,i);return Fa(e,t+2,s,o)||l}(e,F,s,o,l,d)?ko(e,F+4,y?i.call(y,s,o,l,d):i(s,o,l,d)):ac(e,F+4)}(Pt(),Tr(),e,t,n,i,s,o,l)}function ac(e,t){const n=e[t];return n===Yn?void 0:n}function d_(e,t,n,i,s,o){const l=t+n;return ds(e,l,s)?ko(e,l+1,o?i.call(o,s):i(s)):ac(e,l+1)}function f_(e,t,n,i,s,o,l){const d=t+n;return Fa(e,d,s,o)?ko(e,d+2,l?i.call(l,s,o):i(s,o)):ac(e,d+2)}function h_(e,t,n,i,s,o,l,d){const y=t+n;return function Jc(e,t,n,i,s){const o=Fa(e,t,n,i);return ds(e,t+2,s)||o}(e,y,s,o,l)?ko(e,y+3,d?i.call(d,s,o,l):i(s,o,l)):ac(e,y+3)}function g_(e,t){const n=qn();let i;const s=e+Tn;n.firstCreatePass?(i=function $D(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks??=[]).push(s,i.onDestroy)):i=n.data[s];const o=i.factory||(i.factory=Hi(i.type)),d=Ot(al);try{const y=Yo(!1),F=o();return Yo(y),function IE(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Pt(),s,F),F}finally{Ot(d)}}function __(e,t,n){const i=e+Tn,s=Pt(),o=As(s,i);return lc(s,i)?d_(s,Tr(),t,o.transform,n,o):o.transform(n)}function v_(e,t,n,i){const s=e+Tn,o=Pt(),l=As(o,s);return lc(o,s)?f_(o,Tr(),t,l.transform,n,i,l):l.transform(n,i)}function y_(e,t,n,i,s){const o=e+Tn,l=Pt(),d=As(l,o);return lc(l,o)?h_(l,Tr(),t,d.transform,n,i,s,d):d.transform(n,i,s)}function lc(e,t){return e[$t].data[t].pure}function WD(){return this._results[Symbol.iterator]()}class mu{get changes(){return this._changes||(this._changes=new Ro)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=mu.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=WD)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const s=function vs(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Oo(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],o=t[i];if(n&&(s=n(s),o=n(o)),o!==s)return!1}return!0}(i._results,s,n))&&(i._results=s,i.length=s.length,i.last=s[this.length-1],i.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function KD(e,t,n,i=!0){const s=t[$t];if(function Ty(e,t,n,i){const s=Hn+i,o=n.length;i>0&&(n[s-1][Oi]=t),i<o-Hn?(t[Oi]=n[s],Zf(n,Hn+i,t)):(n.push(t),t[Oi]=null),t[ci]=n;const l=t[bt];null!==l&&n!==l&&function Sy(e,t){const n=e[dr];t[Ze]!==t[ci][ci][Ze]&&(e[Ti]=!0),null===n?e[dr]=[t]:n.push(t)}(l,t);const d=t[Qt];null!==d&&d.insertView(e),t[un]|=128}(s,t,e,n),i){const o=Gu(n,e),l=t[nn],d=Mc(l,e[si]);null!==d&&function wy(e,t,n,i,s,o){i[ri]=s,i[gi]=t,Bl(e,i,n,1,s,o)}(s,e[gi],l,t,d,o)}}let cc=(()=>{class t{}return t.__NG_ELEMENT_ID__=qD,t})();const ZD=cc,QD=class extends ZD{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,i){const s=function YD(e,t,n,i){const s=t.tView,d=Yc(e,s,n,4096&e[un]?4096:16,null,t,null,null,null,i?.injector??null,i?.hydrationInfo??null);d[bt]=e[t.index];const F=e[Qt];return null!==F&&(d[Qt]=F.createEmbeddedView(s)),Ld(s,d,n),d}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:i});return new Zl(s)}};function qD(){return gu(Gi(),Pt())}function gu(e,t){return 4&e.type?new QD(t,e,rl(e,t)):null}let vu=(()=>{class t{}return t.__NG_ELEMENT_ID__=iw,t})();function iw(){return A_(Gi(),Pt())}const rw=vu,w_=class extends rw{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return rl(this._hostTNode,this._hostLView)}get injector(){return new or(this._hostTNode,this._hostLView)}get parentInjector(){const t=fa(this._hostTNode,this._hostLView);if(Xi(t)){const n=ls(t,this._hostLView),i=Rr(t);return new or(n[$t].data[i+8],n)}return new or(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=x_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Hn}createEmbeddedView(t,n,i){let s,o;"number"==typeof i?s=i:null!=i&&(s=i.index,o=i.injector);const d=t.createEmbeddedViewImpl(n||{},o,null);return this.insertImpl(d,s,false),d}createComponent(t,n,i,s,o){const l=t&&!function Qr(e){return"function"==typeof e}(t);let d;if(l)d=n;else{const Vt=n||{};d=Vt.index,i=Vt.injector,s=Vt.projectableNodes,o=Vt.environmentInjector||Vt.ngModuleRef}const y=l?t:new Ql(Rn(t)),F=i||this.parentInjector;if(!o&&null==y.ngModule){const Jt=(l?F:this.parentInjector).get(Po,null);Jt&&(o=Jt)}Rn(y.componentType??{});const ot=y.create(F,s,null,o);return this.insertImpl(ot.hostView,d,false),ot}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,i){const s=t._lView;if(function To(e){return Yi(e[ci])}(s)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const F=s[ci],Y=new w_(F,F[gi],F[ci]);Y.detach(Y.indexOf(t))}}const l=this._adjustIndex(n),d=this._lContainer;return KD(d,s,l,!i),t.attachToViewContainerRef(),Zf(Ef(d),l,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=x_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=Sc(this._lContainer,n);i&&(mc(Ef(this._lContainer),n),ju(i[$t],i))}detach(t){const n=this._adjustIndex(t,-1),i=Sc(this._lContainer,n);return i&&null!=mc(Ef(this._lContainer),n)?new Zl(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function x_(e){return e[8]}function Ef(e){return e[8]||(e[8]=[])}function A_(e,t){let n;const i=t[e.index];return Yi(i)?n=i:(n=$p(i,t,null,e),t[e.index]=n,Kc(t,n)),T_(n,t,e,i),new w_(n,e,t)}let T_=function S_(e,t,n,i){if(e[si])return;let s;s=8&n.type?$n(i):function sw(e,t){const n=e[nn],i=n.createComment(""),s=mr(t,e);return Ia(n,Mc(n,s),i,function Py(e,t){return e.nextSibling(t)}(n,s),!1),i}(t,n),e[si]=s};class Cf{constructor(t){this.queryList=t,this.matches=null}clone(){return new Cf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Df{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let o=0;o<i;o++){const l=n.getByIndex(o);s.push(this.queries[l.indexInDeclarationView].clone())}return new Df(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==L_(t,n).matches&&this.queries[n].setDirty()}}class M_{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class wf{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let i=0;i<this.length;i++){const s=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,s);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new wf(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class xf{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new xf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let s=0;s<i.length;s++){const o=i[s];this.matchTNodeWithReadOption(t,n,lw(n,o)),this.matchTNodeWithReadOption(t,n,Ml(n,t,o,!1,!1))}else i===cc?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ml(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const s=this.metadata.read;if(null!==s)if(s===Gl||s===vu||s===cc&&4&n.type)this.addMatch(n.index,-2);else{const o=Ml(n,t,s,!1,!1);null!==o&&this.addMatch(n.index,o)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function lw(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function uw(e,t,n,i){return-1===n?function cw(e,t){return 11&e.type?rl(e,t):4&e.type?gu(e,t):null}(t,e):-2===n?function dw(e,t,n){return n===Gl?rl(t,e):n===cc?gu(t,e):n===vu?A_(t,e):void 0}(e,t,i):Ko(e,e[$t],n,t)}function I_(e,t,n,i){const s=t[Qt].queries[i];if(null===s.matches){const o=e.data,l=n.matches,d=[];for(let y=0;y<l.length;y+=2){const F=l[y];d.push(F<0?null:uw(t,o[F],l[y+1],n.metadata.read))}s.matches=d}return s.matches}function Af(e,t,n,i){const s=e.queries.getByIndex(n),o=s.matches;if(null!==o){const l=I_(e,t,s,n);for(let d=0;d<o.length;d+=2){const y=o[d];if(y>0)i.push(l[d/2]);else{const F=o[d+1],Y=t[-y];for(let ge=Hn;ge<Y.length;ge++){const We=Y[ge];We[bt]===We[ci]&&Af(We[$t],We,F,i)}if(null!==Y[dr]){const ge=Y[dr];for(let We=0;We<ge.length;We++){const ot=ge[We];Af(ot[$t],ot,F,i)}}}}}return i}function O_(e){const t=Pt(),n=qn(),i=le();rt(i+1);const s=L_(n,i);if(e.dirty&&function va(e){return 4==(4&e[un])}(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const o=s.crossesNgTemplate?Af(n,t,i,[]):I_(n,t,s,i);e.reset(o,B0),e.notifyOnChanges()}return!0}return!1}function P_(e,t,n){const i=qn();i.firstCreatePass&&(N_(i,new M_(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),k_(i,Pt(),t)}function R_(e,t,n,i){const s=qn();if(s.firstCreatePass){const o=Gi();N_(s,new M_(t,n,i),o.index),function hw(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}k_(s,Pt(),n)}function F_(){return function fw(e,t){return e[Qt].queries[t].queryList}(Pt(),le())}function k_(e,t,n){const i=new mu(4==(4&n));(function _b(e,t,n,i){const s=Gp(t);s.push(n),e.firstCreatePass&&Wp(e).push(i,s.length-1)})(e,t,i,i.destroy),null===t[Qt]&&(t[Qt]=new Df),t[Qt].queries.push(new Cf(i))}function N_(e,t,n){null===e.queries&&(e.queries=new wf),e.queries.track(new xf(t,n))}function L_(e,t){return e.queries.getByIndex(t)}function B_(e,t){return gu(e,t)}function Tf(e){return!!Li(e)}const tv=new wi("Application Initializer");let Pf=(()=>{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s}),this.appInits=se(tv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const o of this.appInits){const l=o();if(Qd(l))i.push(l);else if(Tm(l)){const d=new Promise((y,F)=>{l.subscribe({complete:y,error:F})});i.push(d)}}const s=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{s()}).catch(o=>{this.reject(o)}),0===i.length&&s(),this.initialized=!0}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),nv=(()=>{var e;class t{log(i){console.log(i)}warn(i){console.warn(i)}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const bu=new wi("LocaleId",{providedIn:"root",factory:()=>se(bu,Re.Optional|Re.SkipSelf)||function Fw(){return typeof $localize<"u"&&$localize.locale||El}()}),kw=new wi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let iv=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new N.X(!1)}add(){this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Lw{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Bw=(()=>{var e;class t{compileModuleSync(i){return new yf(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const s=this.compileModuleSync(i),l=Xo(Li(i).declarations).reduce((d,y)=>{const F=Rn(y);return F&&d.push(new Ql(F)),d},[]);return new Lw(s,l)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const av=new wi(""),lv=new wi("");let kf,rx=(()=>{var e;class t{constructor(i,s,o){this._ngZone=i,this.registry=s,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kf||(function sx(e){kf=e}(o),o.addToWindow(s)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Hr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(i)||(clearTimeout(s.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,s,o){let l=-1;s&&s>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==l),i(this._didWork,this.getPendingTasks())},s)),this._callbacks.push({doneCb:i,timeoutId:l,updateCb:o})}whenStable(i,s,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(i,s,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,s,o){return[]}}return(e=t).\u0275fac=function(i){return new(i||e)(z(Hr),z(cv),z(lv))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac}),t})(),cv=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(i,s){this._applications.set(i,s)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,s=!0){return kf?.findTestabilityInTree(this,i,s)??null}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),ga=null;const uv=new wi("AllowMultipleToken"),Nf=new wi("PlatformDestroyListeners"),Lf=new wi("appBootstrapListener");class lx{constructor(t,n){this.name=t,this.token=n}}function hv(e,t,n=[]){const i=`Platform: ${t}`,s=new wi(i);return(o=[])=>{let l=Bf();if(!l||l.injector.get(uv,!1)){const d=[...n,...o,{provide:s,useValue:!0}];e?e(d):function cx(e){if(ga&&!ga.get(uv,!1))throw new J(400,!1);(function dv(){!function Uo(e){ho=e}(()=>{throw new J(600,!1)})})(),ga=e;const t=e.get(mv);(function fv(e){e.get(ep,null)?.forEach(n=>n())})(e)}(function pv(e=[],t){return yo.create({name:t,providers:[{provide:rd,useValue:"platform"},{provide:Nf,useValue:new Set([()=>ga=null])},...e]})}(d,i))}return function dx(e){const t=Bf();if(!t)throw new J(401,!1);return t}()}}function Bf(){return ga?.get(mv)??null}let mv=(()=>{var e;class t{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,s){const o=function fx(e="zone.js",t){return"noop"===e?new J0:"zone.js"===e?new Hr(t):e}(s?.ngZone,function gv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:s?.ngZoneEventCoalescing,runCoalescing:s?.ngZoneRunCoalescing}));return o.run(()=>{const l=function TD(e,t,n){return new vf(e,t,n)}(i.moduleType,this.injector,function Ev(e){return[{provide:Hr,useFactory:e},{provide:jl,multi:!0,useFactory:()=>{const t=se(px,{optional:!0});return()=>t.initialize()}},{provide:bv,useFactory:hx},{provide:vp,useFactory:yp}]}(()=>o)),d=l.injector.get(pa,null);return o.runOutsideAngular(()=>{const y=o.onError.subscribe({next:F=>{d.handleError(F)}});l.onDestroy(()=>{Cu(this._modules,l),y.unsubscribe()})}),function _v(e,t,n){try{const i=n();return Qd(i)?i.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(d,o,()=>{const y=l.injector.get(Pf);return y.runInitializers(),y.donePromise.then(()=>(function xg(e){Dt(e,"Expected localeId to be defined"),"string"==typeof e&&(wg=e.toLowerCase().replace(/_/g,"-"))}(l.injector.get(bu,El)||El),this._moduleDoBootstrap(l),l))})})}bootstrapModule(i,s=[]){const o=vv({},s);return function ox(e,t,n){const i=new yf(n);return Promise.resolve(i)}(0,0,i).then(l=>this.bootstrapModuleFactory(l,o))}_moduleDoBootstrap(i){const s=i.injector.get(wl);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(o=>s.bootstrap(o));else{if(!i.instance.ngDoBootstrap)throw new J(-403,!1);i.instance.ngDoBootstrap(s)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new J(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const i=this._injector.get(Nf,null);i&&(i.forEach(s=>s()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(i){return new(i||e)(z(yo))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function vv(e,t){return Array.isArray(t)?t.reduce(vv,e):{...e,...t}}let wl=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=se(bv),this.zoneIsStable=se(vp),this.componentTypes=[],this.components=[],this.isStable=se(iv).hasPendingTasks.pipe((0,fe.w)(i=>i?(0,ee.of)(!1):this.zoneIsStable),(0,ne.x)(),(0,te.B)()),this._injector=se(Po)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,s){const o=i instanceof rp;if(!this._injector.get(Pf).done)throw!o&&Ui(i),new J(405,!1);let d;d=o?i:this._injector.get(zl).resolveComponentFactory(i),this.componentTypes.push(d.componentType);const y=function ax(e){return e.isBoundToModule}(d)?void 0:this._injector.get(La),Y=d.create(yo.NULL,[],s||d.selector,y),ge=Y.location.nativeElement,We=Y.injector.get(av,null);return We?.registerApplication(ge),Y.onDestroy(()=>{this.detachView(Y.hostView),Cu(this.components,Y),We?.unregisterApplication(ge)}),this._loadComponent(Y),Y}tick(){if(this._runningTick)throw new J(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1}}attachView(i){const s=i;this._views.push(s),s.attachToAppRef(this)}detachView(i){const s=i;Cu(this._views,s),s.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const s=this._injector.get(Lf,[]);s.push(...this._bootstrapListeners),s.forEach(o=>o(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>Cu(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new J(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Cu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const bv=new wi("",{providedIn:"root",factory:()=>se(pa).handleError.bind(void 0)});function hx(){const e=se(Hr),t=se(pa);return n=>e.runOutsideAngular(()=>t.handleError(n))}let px=(()=>{var e;class t{constructor(){this.zone=se(Hr),this.applicationRef=se(wl)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function gx(){return!1}function _x(){}let vx=(()=>{class t{}return t.__NG_ELEMENT_ID__=yx,t})();function yx(e){return function bx(e,t,n){if(Mr(e)&&!n){const i=zi(e.index,t);return new Zl(i,i)}return 47&e.type?new Zl(t[Ze],t):null}(Gi(),Pt(),16==(16&e))}class xv{constructor(){}supports(t){return Xc(t)}create(t){return new Ax(t)}}const xx=(e,t)=>t;class Ax{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||xx}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,s=0,o=null;for(;n||i;){const l=!i||n&&n.currentIndex<Tv(i,s,o)?n:i,d=Tv(l,s,o),y=l.currentIndex;if(l===i)s--,i=i._nextRemoved;else if(n=n._next,null==l.previousIndex)s++;else{o||(o=[]);const F=d-s,Y=y-s;if(F!=Y){for(let We=0;We<F;We++){const ot=We<o.length?o[We]:o[We]=0,Tt=ot+We;Y<=Tt&&Tt<F&&(o[We]=ot+1)}o[l.previousIndex]=Y-F}}d!==y&&t(l,d,y)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Xc(t))throw new J(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,o,l,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let d=0;d<this.length;d++)o=t[d],l=this._trackByFn(d,o),null!==n&&Object.is(n.trackById,l)?(i&&(n=this._verifyReinsertion(n,o,l,d)),Object.is(n.item,o)||this._addIdentityChange(n,o)):(n=this._mismatch(n,o,l,d),i=!0),n=n._next}else s=0,function cE(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,d=>{l=this._trackByFn(s,d),null!==n&&Object.is(n.trackById,l)?(i&&(n=this._verifyReinsertion(n,d,l,s)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,l,s),i=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,s){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,s)):t=this._addAfter(new Tx(n,i),o,s),t}_verifyReinsertion(t,n,i,s){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,o=t._nextRemoved;return null===s?this._removalsHead=o:s._nextRemoved=o,null===o?this._removalsTail=s:o._prevRemoved=s,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Av),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Av),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Tx{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Sx{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Av{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new Sx,this.map.set(n,i)),i.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Tv(e,t,n){const i=e.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+t+s}class Sv{constructor(){}supports(t){return t instanceof Map||Vd(t)}create(){return new Mx}}class Mx{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Vd(t)))throw new J(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(s,i);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const o=s._prev,l=s._next;return o&&(o._next=l),l&&(l._prev=o),s._next=null,s._prev=null,s}const i=new Ix(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class Ix{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Mv(){return new $f([new xv])}let $f=(()=>{var e;class t{constructor(i){this.factories=i}static create(i,s){if(null!=s){const o=s.factories.slice();i=i.concat(o)}return new t(i)}static extend(i){return{provide:t,useFactory:s=>t.create(i,s||Mv()),deps:[[t,new vc,new _c]]}}find(i){const s=this.factories.find(o=>o.supports(i));if(null!=s)return s;throw new J(901,!1)}}return(e=t).\u0275prov=Ye({token:e,providedIn:"root",factory:Mv}),t})();function Iv(){return new zf([new Sv])}let zf=(()=>{var e;class t{constructor(i){this.factories=i}static create(i,s){if(s){const o=s.factories.slice();i=i.concat(o)}return new t(i)}static extend(i){return{provide:t,useFactory:s=>t.create(i,s||Iv()),deps:[[t,new vc,new _c]]}}find(i){const s=this.factories.find(o=>o.supports(i));if(s)return s;throw new J(901,!1)}}return(e=t).\u0275prov=Ye({token:e,providedIn:"root",factory:Iv}),t})();const Rx=hv(null,"core",[]);let Fx=(()=>{var e;class t{constructor(i){}}return(e=t).\u0275fac=function(i){return new(i||e)(z(wl))},e.\u0275mod=_r({type:e}),e.\u0275inj=Yt({}),t})();function Gx(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function Yx(e){const t=Rn(e);if(!t)return null;const n=new Ql(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},95:(It,Me,g)=>{g.d(Me,{Fj:()=>J,oH:()=>ri,u5:()=>na,JU:()=>nt,JJ:()=>dt,JL:()=>_t,F:()=>lr,On:()=>bs,YN:()=>Se,wV:()=>Rn,UX:()=>Vo,Q7:()=>_i,EJ:()=>Fe,p4:()=>Ys,_Y:()=>Qi,Kr:()=>Dn});var r=g(5879),u=g(6814),B=g(2459),$=g(5592),N=g(7453),ee=g(4829),te=g(9940),fe=g(8251),ne=g(7400),H=g(2714),me=g(7398);let Ie=(()=>{var R;class A{constructor(P,pe){this._renderer=P,this._elementRef=pe,this.onChange=kt=>{},this.onTouched=()=>{}}setProperty(P,pe){this._renderer.setProperty(this._elementRef.nativeElement,P,pe)}registerOnTouched(P){this.onTouched=P}registerOnChange(P){this.onChange=P}setDisabledState(P){this.setProperty("disabled",P)}}return(R=A).\u0275fac=function(P){return new(P||R)(r.Y36(r.Qsj),r.Y36(r.SBq))},R.\u0275dir=r.lG2({type:R}),A})(),Ne=(()=>{var R;class A extends Ie{}return(R=A).\u0275fac=function(){let X;return function(pe){return(X||(X=r.n5z(R)))(pe||R)}}(),R.\u0275dir=r.lG2({type:R,features:[r.qOj]}),A})();const nt=new r.OlP("NgValueAccessor"),Xe={provide:nt,useExisting:(0,r.Gpc)(()=>J),multi:!0},at=new r.OlP("CompositionEventMode");let J=(()=>{var R;class A extends Ie{constructor(P,pe,kt){super(P,pe),this._compositionMode=kt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Ge(){const R=(0,u.q)()?(0,u.q)().getUserAgent():"";return/android (\d+)/.test(R.toLowerCase())}())}writeValue(P){this.setProperty("value",P??"")}_handleInput(P){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(P)}_compositionStart(){this._composing=!0}_compositionEnd(P){this._composing=!1,this._compositionMode&&this.onChange(P)}}return(R=A).\u0275fac=function(P){return new(P||R)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(at,8))},R.\u0275dir=r.lG2({type:R,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(P,pe){1&P&&r.NdJ("input",function(_n){return pe._handleInput(_n.target.value)})("blur",function(){return pe.onTouched()})("compositionstart",function(){return pe._compositionStart()})("compositionend",function(_n){return pe._compositionEnd(_n.target.value)})},features:[r._Bn([Xe]),r.qOj]}),A})();const _e=new r.OlP("NgValidators"),Ke=new r.OlP("NgAsyncValidators");function Xt(R){return function Te(R){return null==R||("string"==typeof R||Array.isArray(R))&&0===R.length}(R.value)?{required:!0}:null}function Le(R){return null}function Ve(R){return null!=R}function $e(R){return(0,r.QGY)(R)?(0,B.D)(R):R}function ve(R){let A={};return R.forEach(X=>{A=null!=X?{...A,...X}:A}),0===Object.keys(A).length?null:A}function Je(R,A){return A.map(X=>X(R))}function Dt(R){return R.map(A=>function ht(R){return!R.validate}(A)?A:X=>A.validate(X))}function ut(R){return null!=R?function Ue(R){if(!R)return null;const A=R.filter(Ve);return 0==A.length?null:function(X){return ve(Je(X,A))}}(Dt(R)):null}function et(R){return null!=R?function Pe(R){if(!R)return null;const A=R.filter(Ve);return 0==A.length?null:function(X){return function q(...R){const A=(0,te.jO)(R),{args:X,keys:P}=(0,N.D)(R),pe=new $.y(kt=>{const{length:_n}=X;if(!_n)return void kt.complete();const Ki=new Array(_n);let Ir=_n,qi=_n;for(let Hi=0;Hi<_n;Hi++){let yr=!1;(0,ee.Xf)(X[Hi]).subscribe((0,fe.x)(kt,Ls=>{yr||(yr=!0,qi--),Ki[Hi]=Ls},()=>Ir--,void 0,()=>{(!Ir||!yr)&&(qi||kt.next(P?(0,H.n)(P,Ki):Ki),kt.complete())}))}});return A?pe.pipe((0,ne.Z)(A)):pe}(Je(X,A).map($e)).pipe((0,me.U)(ve))}}(Dt(R)):null}function Ye(R,A){return null===R?[A]:Array.isArray(R)?[...R,A]:[R,A]}function Rt(R){return R._rawValidators}function Yt(R){return R._rawAsyncValidators}function gn(R){return R?Array.isArray(R)?R:[R]:[]}function Ht(R,A){return Array.isArray(R)?R.includes(A):R===A}function Mn(R,A){const X=gn(A);return gn(R).forEach(pe=>{Ht(X,pe)||X.push(pe)}),X}function Wn(R,A){return gn(A).filter(X=>!Ht(R,X))}class In{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(A){this._rawValidators=A||[],this._composedValidatorFn=ut(this._rawValidators)}_setAsyncValidators(A){this._rawAsyncValidators=A||[],this._composedAsyncValidatorFn=et(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(A){this._onDestroyCallbacks.push(A)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(A=>A()),this._onDestroyCallbacks=[]}reset(A=void 0){this.control&&this.control.reset(A)}hasError(A,X){return!!this.control&&this.control.hasError(A,X)}getError(A,X){return this.control?this.control.getError(A,X):null}}class pt extends In{get formDirective(){return null}get path(){return null}}class Q extends In{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Oe{constructor(A){this._cd=A}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let dt=(()=>{var R;class A extends Oe{constructor(P){super(P)}}return(R=A).\u0275fac=function(P){return new(P||R)(r.Y36(Q,2))},R.\u0275dir=r.lG2({type:R,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(P,pe){2&P&&r.ekj("ng-untouched",pe.isUntouched)("ng-touched",pe.isTouched)("ng-pristine",pe.isPristine)("ng-dirty",pe.isDirty)("ng-valid",pe.isValid)("ng-invalid",pe.isInvalid)("ng-pending",pe.isPending)},features:[r.qOj]}),A})(),_t=(()=>{var R;class A extends Oe{constructor(P){super(P)}}return(R=A).\u0275fac=function(P){return new(P||R)(r.Y36(pt,10))},R.\u0275dir=r.lG2({type:R,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(P,pe){2&P&&r.ekj("ng-untouched",pe.isUntouched)("ng-touched",pe.isTouched)("ng-pristine",pe.isPristine)("ng-dirty",pe.isDirty)("ng-valid",pe.isValid)("ng-invalid",pe.isInvalid)("ng-pending",pe.isPending)("ng-submitted",pe.isSubmitted)},features:[r.qOj]}),A})();const On="VALID",oi="INVALID",Zn="PENDING",ai="DISABLED";function xe(R){return(M(R)?R.validators:R)||null}function O(R,A){return(M(A)?A.asyncValidators:R)||null}function M(R){return null!=R&&!Array.isArray(R)&&"object"==typeof R}class z{constructor(A,X){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(A),this._assignAsyncValidators(X)}get validator(){return this._composedValidatorFn}set validator(A){this._rawValidators=this._composedValidatorFn=A}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(A){this._rawAsyncValidators=this._composedAsyncValidatorFn=A}get parent(){return this._parent}get valid(){return this.status===On}get invalid(){return this.status===oi}get pending(){return this.status==Zn}get disabled(){return this.status===ai}get enabled(){return this.status!==ai}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(A){this._assignValidators(A)}setAsyncValidators(A){this._assignAsyncValidators(A)}addValidators(A){this.setValidators(Mn(A,this._rawValidators))}addAsyncValidators(A){this.setAsyncValidators(Mn(A,this._rawAsyncValidators))}removeValidators(A){this.setValidators(Wn(A,this._rawValidators))}removeAsyncValidators(A){this.setAsyncValidators(Wn(A,this._rawAsyncValidators))}hasValidator(A){return Ht(this._rawValidators,A)}hasAsyncValidator(A){return Ht(this._rawAsyncValidators,A)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(A={}){this.touched=!0,this._parent&&!A.onlySelf&&this._parent.markAsTouched(A)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(A=>A.markAllAsTouched())}markAsUntouched(A={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(X=>{X.markAsUntouched({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}markAsDirty(A={}){this.pristine=!1,this._parent&&!A.onlySelf&&this._parent.markAsDirty(A)}markAsPristine(A={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(X=>{X.markAsPristine({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}markAsPending(A={}){this.status=Zn,!1!==A.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!A.onlySelf&&this._parent.markAsPending(A)}disable(A={}){const X=this._parentMarkedDirty(A.onlySelf);this.status=ai,this.errors=null,this._forEachChild(P=>{P.disable({...A,onlySelf:!0})}),this._updateValue(),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...A,skipPristineCheck:X}),this._onDisabledChange.forEach(P=>P(!0))}enable(A={}){const X=this._parentMarkedDirty(A.onlySelf);this.status=On,this._forEachChild(P=>{P.enable({...A,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent}),this._updateAncestors({...A,skipPristineCheck:X}),this._onDisabledChange.forEach(P=>P(!1))}_updateAncestors(A){this._parent&&!A.onlySelf&&(this._parent.updateValueAndValidity(A),A.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(A){this._parent=A}getRawValue(){return this.value}updateValueAndValidity(A={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===On||this.status===Zn)&&this._runAsyncValidator(A.emitEvent)),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!A.onlySelf&&this._parent.updateValueAndValidity(A)}_updateTreeValidity(A={emitEvent:!0}){this._forEachChild(X=>X._updateTreeValidity(A)),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ai:On}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(A){if(this.asyncValidator){this.status=Zn,this._hasOwnPendingAsyncValidator=!0;const X=$e(this.asyncValidator(this));this._asyncValidationSubscription=X.subscribe(P=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(P,{emitEvent:A})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(A,X={}){this.errors=A,this._updateControlsErrors(!1!==X.emitEvent)}get(A){let X=A;return null==X||(Array.isArray(X)||(X=X.split(".")),0===X.length)?null:X.reduce((P,pe)=>P&&P._find(pe),this)}getError(A,X){const P=X?this.get(X):this;return P&&P.errors?P.errors[A]:null}hasError(A,X){return!!this.getError(A,X)}get root(){let A=this;for(;A._parent;)A=A._parent;return A}_updateControlsErrors(A){this.status=this._calculateStatus(),A&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(A)}_initObservables(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}_calculateStatus(){return this._allControlsDisabled()?ai:this.errors?oi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zn)?Zn:this._anyControlsHaveStatus(oi)?oi:On}_anyControlsHaveStatus(A){return this._anyControls(X=>X.status===A)}_anyControlsDirty(){return this._anyControls(A=>A.dirty)}_anyControlsTouched(){return this._anyControls(A=>A.touched)}_updatePristine(A={}){this.pristine=!this._anyControlsDirty(),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}_updateTouched(A={}){this.touched=this._anyControlsTouched(),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}_registerOnCollectionChange(A){this._onCollectionChange=A}_setUpdateStrategy(A){M(A)&&null!=A.updateOn&&(this._updateOn=A.updateOn)}_parentMarkedDirty(A){return!A&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(A){return null}_assignValidators(A){this._rawValidators=Array.isArray(A)?A.slice():A,this._composedValidatorFn=function W(R){return Array.isArray(R)?ut(R):R||null}(this._rawValidators)}_assignAsyncValidators(A){this._rawAsyncValidators=Array.isArray(A)?A.slice():A,this._composedAsyncValidatorFn=function V(R){return Array.isArray(R)?et(R):R||null}(this._rawAsyncValidators)}}class ie extends z{constructor(A,X,P){super(xe(X),O(P,X)),this.controls=A,this._initObservables(),this._setUpdateStrategy(X),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(A,X){return this.controls[A]?this.controls[A]:(this.controls[A]=X,X.setParent(this),X._registerOnCollectionChange(this._onCollectionChange),X)}addControl(A,X,P={}){this.registerControl(A,X),this.updateValueAndValidity({emitEvent:P.emitEvent}),this._onCollectionChange()}removeControl(A,X={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}setControl(A,X,P={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],X&&this.registerControl(A,X),this.updateValueAndValidity({emitEvent:P.emitEvent}),this._onCollectionChange()}contains(A){return this.controls.hasOwnProperty(A)&&this.controls[A].enabled}setValue(A,X={}){(function ye(R,A,X){R._forEachChild((P,pe)=>{if(void 0===X[pe])throw new r.vHH(1002,"")})})(this,0,A),Object.keys(A).forEach(P=>{(function j(R,A,X){const P=R.controls;if(!(A?Object.keys(P):P).length)throw new r.vHH(1e3,"");if(!P[X])throw new r.vHH(1001,"")})(this,!0,P),this.controls[P].setValue(A[P],{onlySelf:!0,emitEvent:X.emitEvent})}),this.updateValueAndValidity(X)}patchValue(A,X={}){null!=A&&(Object.keys(A).forEach(P=>{const pe=this.controls[P];pe&&pe.patchValue(A[P],{onlySelf:!0,emitEvent:X.emitEvent})}),this.updateValueAndValidity(X))}reset(A={},X={}){this._forEachChild((P,pe)=>{P.reset(A[pe],{onlySelf:!0,emitEvent:X.emitEvent})}),this._updatePristine(X),this._updateTouched(X),this.updateValueAndValidity(X)}getRawValue(){return this._reduceChildren({},(A,X,P)=>(A[P]=X.getRawValue(),A))}_syncPendingControls(){let A=this._reduceChildren(!1,(X,P)=>!!P._syncPendingControls()||X);return A&&this.updateValueAndValidity({onlySelf:!0}),A}_forEachChild(A){Object.keys(this.controls).forEach(X=>{const P=this.controls[X];P&&A(P,X)})}_setUpControls(){this._forEachChild(A=>{A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(A){for(const[X,P]of Object.entries(this.controls))if(this.contains(X)&&A(P))return!0;return!1}_reduceValue(){return this._reduceChildren({},(X,P,pe)=>((P.enabled||this.disabled)&&(X[pe]=P.value),X))}_reduceChildren(A,X){let P=A;return this._forEachChild((pe,kt)=>{P=X(P,pe,kt)}),P}_allControlsDisabled(){for(const A of Object.keys(this.controls))if(this.controls[A].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(A){return this.controls.hasOwnProperty(A)?this.controls[A]:null}}const S=new r.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>L}),L="always";function K(R,A,X=L){ct(R,A),A.valueAccessor.writeValue(R.value),(R.disabled||"always"===X)&&A.valueAccessor.setDisabledState?.(R.disabled),function At(R,A){A.valueAccessor.registerOnChange(X=>{R._pendingValue=X,R._pendingChange=!0,R._pendingDirty=!0,"change"===R.updateOn&&Ae(R,A)})}(R,A),function gt(R,A){const X=(P,pe)=>{A.valueAccessor.writeValue(P),pe&&A.viewToModelUpdate(P)};R.registerOnChange(X),A._registerOnDestroy(()=>{R._unregisterOnChange(X)})}(R,A),function xt(R,A){A.valueAccessor.registerOnTouched(()=>{R._pendingTouched=!0,"blur"===R.updateOn&&R._pendingChange&&Ae(R,A),"submit"!==R.updateOn&&R.markAsTouched()})}(R,A),function mt(R,A){if(A.valueAccessor.setDisabledState){const X=P=>{A.valueAccessor.setDisabledState(P)};R.registerOnDisabledChange(X),A._registerOnDestroy(()=>{R._unregisterOnDisabledChange(X)})}}(R,A)}function oe(R,A,X=!0){const P=()=>{};A.valueAccessor&&(A.valueAccessor.registerOnChange(P),A.valueAccessor.registerOnTouched(P)),function tt(R,A){let X=!1;if(null!==R){if(null!==A.validator){const pe=Rt(R);if(Array.isArray(pe)&&pe.length>0){const kt=pe.filter(_n=>_n!==A.validator);kt.length!==pe.length&&(X=!0,R.setValidators(kt))}}if(null!==A.asyncValidator){const pe=Yt(R);if(Array.isArray(pe)&&pe.length>0){const kt=pe.filter(_n=>_n!==A.asyncValidator);kt.length!==pe.length&&(X=!0,R.setAsyncValidators(kt))}}}const P=()=>{};return De(A._rawValidators,P),De(A._rawAsyncValidators,P),X}(R,A),R&&(A._invokeOnDestroyCallbacks(),R._registerOnCollectionChange(()=>{}))}function De(R,A){R.forEach(X=>{X.registerOnValidatorChange&&X.registerOnValidatorChange(A)})}function ct(R,A){const X=Rt(R);null!==A.validator?R.setValidators(Ye(X,A.validator)):"function"==typeof X&&R.setValidators([X]);const P=Yt(R);null!==A.asyncValidator?R.setAsyncValidators(Ye(P,A.asyncValidator)):"function"==typeof P&&R.setAsyncValidators([P]);const pe=()=>R.updateValueAndValidity();De(A._rawValidators,pe),De(A._rawAsyncValidators,pe)}function Ae(R,A){R._pendingDirty&&R.markAsDirty(),R.setValue(R._pendingValue,{emitModelToViewChange:!1}),A.viewToModelUpdate(R._pendingValue),R._pendingChange=!1}function Xn(R,A){if(!R.hasOwnProperty("model"))return!1;const X=R.model;return!!X.isFirstChange()||!Object.is(A,X.currentValue)}function xi(R,A){if(!A)return null;let X,P,pe;return Array.isArray(A),A.forEach(kt=>{kt.constructor===J?X=kt:function Mi(R){return Object.getPrototypeOf(R.constructor)===Ne}(kt)?P=kt:pe=kt}),pe||P||X||null}const Jn={provide:pt,useExisting:(0,r.Gpc)(()=>lr)},Ii=(()=>Promise.resolve())();let lr=(()=>{var R;class A extends pt{constructor(P,pe,kt){super(),this.callSetDisabledState=kt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new r.vpe,this.form=new ie({},ut(P),et(pe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(P){Ii.then(()=>{const pe=this._findContainer(P.path);P.control=pe.registerControl(P.name,P.control),K(P.control,P,this.callSetDisabledState),P.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(P)})}getControl(P){return this.form.get(P.path)}removeControl(P){Ii.then(()=>{const pe=this._findContainer(P.path);pe&&pe.removeControl(P.name),this._directives.delete(P)})}addFormGroup(P){Ii.then(()=>{const pe=this._findContainer(P.path),kt=new ie({});(function Lt(R,A){ct(R,A)})(kt,P),pe.registerControl(P.name,kt),kt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(P){Ii.then(()=>{const pe=this._findContainer(P.path);pe&&pe.removeControl(P.name)})}getFormGroup(P){return this.form.get(P.path)}updateModel(P,pe){Ii.then(()=>{this.form.get(P.path).setValue(pe)})}setValue(P){this.control.setValue(P)}onSubmit(P){return this.submitted=!0,function li(R,A){R._syncPendingControls(),A.forEach(X=>{const P=X.control;"submit"===P.updateOn&&P._pendingChange&&(X.viewToModelUpdate(P._pendingValue),P._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(P),"dialog"===P?.target?.method}onReset(){this.resetForm()}resetForm(P=void 0){this.form.reset(P),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(P){return P.pop(),P.length?this.form.get(P):this.form}}return(R=A).\u0275fac=function(P){return new(P||R)(r.Y36(_e,10),r.Y36(Ke,10),r.Y36(S,8))},R.\u0275dir=r.lG2({type:R,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(P,pe){1&P&&r.NdJ("submit",function(_n){return pe.onSubmit(_n)})("reset",function(){return pe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([Jn]),r.qOj]}),A})();function Lr(R,A){const X=R.indexOf(A);X>-1&&R.splice(X,1)}function Ws(R){return"object"==typeof R&&null!==R&&2===Object.keys(R).length&&"value"in R&&"disabled"in R}const qr=class extends z{constructor(A=null,X,P){super(xe(X),O(P,X)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(A),this._setUpdateStrategy(X),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),M(X)&&(X.nonNullable||X.initialValueIsDefault)&&(this.defaultValue=Ws(A)?A.value:A)}setValue(A,X={}){this.value=this._pendingValue=A,this._onChange.length&&!1!==X.emitModelToViewChange&&this._onChange.forEach(P=>P(this.value,!1!==X.emitViewToModelChange)),this.updateValueAndValidity(X)}patchValue(A,X={}){this.setValue(A,X)}reset(A=this.defaultValue,X={}){this._applyFormState(A),this.markAsPristine(X),this.markAsUntouched(X),this.setValue(this.value,X),this._pendingChange=!1}_updateValue(){}_anyControls(A){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(A){this._onChange.push(A)}_unregisterOnChange(A){Lr(this._onChange,A)}registerOnDisabledChange(A){this._onDisabledChange.push(A)}_unregisterOnDisabledChange(A){Lr(this._onDisabledChange,A)}_forEachChild(A){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(A){Ws(A)?(this.value=this._pendingValue=A.value,A.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=A}},Ys=qr,_r={provide:Q,useExisting:(0,r.Gpc)(()=>bs)},fs=(()=>Promise.resolve())();let bs=(()=>{var R;class A extends Q{constructor(P,pe,kt,_n,Ki,Ir){super(),this._changeDetectorRef=Ki,this.callSetDisabledState=Ir,this.control=new qr,this._registered=!1,this.name="",this.update=new r.vpe,this._parent=P,this._setValidators(pe),this._setAsyncValidators(kt),this.valueAccessor=xi(0,_n)}ngOnChanges(P){if(this._checkForErrors(),!this._registered||"name"in P){if(this._registered&&(this._checkName(),this.formDirective)){const pe=P.name.previousValue;this.formDirective.removeControl({name:pe,path:this._getPath(pe)})}this._setUpControl()}"isDisabled"in P&&this._updateDisabled(P),Xn(P,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(P){this.viewModel=P,this.update.emit(P)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){K(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(P){fs.then(()=>{this.control.setValue(P,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(P){const pe=P.isDisabled.currentValue,kt=0!==pe&&(0,r.VuI)(pe);fs.then(()=>{kt&&!this.control.disabled?this.control.disable():!kt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(P){return this._parent?function ce(R,A){return[...A.path,R]}(P,this._parent):[P]}}return(R=A).\u0275fac=function(P){return new(P||R)(r.Y36(pt,9),r.Y36(_e,10),r.Y36(Ke,10),r.Y36(nt,10),r.Y36(r.sBO,8),r.Y36(S,8))},R.\u0275dir=r.lG2({type:R,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r._Bn([_r]),r.qOj,r.TTD]}),A})(),Qi=(()=>{var R;class A{}return(R=A).\u0275fac=function(P){return new(P||R)},R.\u0275dir=r.lG2({type:R,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),A})();const Zs={provide:nt,useExisting:(0,r.Gpc)(()=>Rn),multi:!0};let Rn=(()=>{var R;class A extends Ne{writeValue(P){this.setProperty("value",P??"")}registerOnChange(P){this.onChange=pe=>{P(""==pe?null:parseFloat(pe))}}}return(R=A).\u0275fac=function(){let X;return function(pe){return(X||(X=r.n5z(R)))(pe||R)}}(),R.\u0275dir=r.lG2({type:R,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(P,pe){1&P&&r.NdJ("input",function(_n){return pe.onChange(_n.target.value)})("blur",function(){return pe.onTouched()})},features:[r._Bn([Zs]),r.qOj]}),A})(),Ui=(()=>{var R;class A{}return(R=A).\u0275fac=function(P){return new(P||R)},R.\u0275mod=r.oAB({type:R}),R.\u0275inj=r.cJS({}),A})();const Es=new r.OlP("NgModelWithFormControlWarning"),hs={provide:Q,useExisting:(0,r.Gpc)(()=>ri)};let ri=(()=>{var R;class A extends Q{set isDisabled(P){}constructor(P,pe,kt,_n,Ki){super(),this._ngModelWarningConfig=_n,this.callSetDisabledState=Ki,this.update=new r.vpe,this._ngModelWarningSent=!1,this._setValidators(P),this._setAsyncValidators(pe),this.valueAccessor=xi(0,kt)}ngOnChanges(P){if(this._isControlChanged(P)){const pe=P.form.previousValue;pe&&oe(pe,this,!1),K(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Xn(P,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&oe(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(P){this.viewModel=P,this.update.emit(P)}_isControlChanged(P){return P.hasOwnProperty("form")}}return(R=A)._ngModelWarningSentOnce=!1,R.\u0275fac=function(P){return new(P||R)(r.Y36(_e,10),r.Y36(Ke,10),r.Y36(nt,10),r.Y36(Es,8),r.Y36(S,8))},R.\u0275dir=r.lG2({type:R,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r._Bn([hs]),r.qOj,r.TTD]}),A})();const Vr={provide:nt,useExisting:(0,r.Gpc)(()=>Fe),multi:!0};function nn(R,A){return null==R?`${A}`:(A&&"object"==typeof A&&(A="Object"),`${R}: ${A}`.slice(0,50))}let Fe=(()=>{var R;class A extends Ne{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(P){this._compareWith=P}writeValue(P){this.value=P;const kt=nn(this._getOptionId(P),P);this.setProperty("value",kt)}registerOnChange(P){this.onChange=pe=>{this.value=this._getOptionValue(pe),P(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(P){for(const pe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(pe),P))return pe;return null}_getOptionValue(P){const pe=function er(R){return R.split(":")[0]}(P);return this._optionMap.has(pe)?this._optionMap.get(pe):P}}return(R=A).\u0275fac=function(){let X;return function(pe){return(X||(X=r.n5z(R)))(pe||R)}}(),R.\u0275dir=r.lG2({type:R,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(P,pe){1&P&&r.NdJ("change",function(_n){return pe.onChange(_n.target.value)})("blur",function(){return pe.onTouched()})},inputs:{compareWith:"compareWith"},features:[r._Bn([Vr]),r.qOj]}),A})(),Se=(()=>{var R;class A{constructor(P,pe,kt){this._element=P,this._renderer=pe,this._select=kt,this._select&&(this.id=this._select._registerOption())}set ngValue(P){null!=this._select&&(this._select._optionMap.set(this.id,P),this._setElementValue(nn(this.id,P)),this._select.writeValue(this._select.value))}set value(P){this._setElementValue(P),this._select&&this._select.writeValue(this._select.value)}_setElementValue(P){this._renderer.setProperty(this._element.nativeElement,"value",P)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(R=A).\u0275fac=function(P){return new(P||R)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(Fe,9))},R.\u0275dir=r.lG2({type:R,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),A})();const Ze={provide:nt,useExisting:(0,r.Gpc)(()=>ln),multi:!0};function bt(R,A){return null==R?`${A}`:("string"==typeof A&&(A=`'${A}'`),A&&"object"==typeof A&&(A="Object"),`${R}: ${A}`.slice(0,50))}let ln=(()=>{var R;class A extends Ne{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(P){this._compareWith=P}writeValue(P){let pe;if(this.value=P,Array.isArray(P)){const kt=P.map(_n=>this._getOptionId(_n));pe=(_n,Ki)=>{_n._setSelected(kt.indexOf(Ki.toString())>-1)}}else pe=(kt,_n)=>{kt._setSelected(!1)};this._optionMap.forEach(pe)}registerOnChange(P){this.onChange=pe=>{const kt=[],_n=pe.selectedOptions;if(void 0!==_n){const Ki=_n;for(let Ir=0;Ir<Ki.length;Ir++){const Hi=this._getOptionValue(Ki[Ir].value);kt.push(Hi)}}else{const Ki=pe.options;for(let Ir=0;Ir<Ki.length;Ir++){const qi=Ki[Ir];if(qi.selected){const Hi=this._getOptionValue(qi.value);kt.push(Hi)}}}this.value=kt,P(kt)}}_registerOption(P){const pe=(this._idCounter++).toString();return this._optionMap.set(pe,P),pe}_getOptionId(P){for(const pe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(pe)._value,P))return pe;return null}_getOptionValue(P){const pe=function Ft(R){return R.split(":")[0]}(P);return this._optionMap.has(pe)?this._optionMap.get(pe)._value:P}}return(R=A).\u0275fac=function(){let X;return function(pe){return(X||(X=r.n5z(R)))(pe||R)}}(),R.\u0275dir=r.lG2({type:R,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(P,pe){1&P&&r.NdJ("change",function(_n){return pe.onChange(_n.target)})("blur",function(){return pe.onTouched()})},inputs:{compareWith:"compareWith"},features:[r._Bn([Ze]),r.qOj]}),A})(),Dn=(()=>{var R;class A{constructor(P,pe,kt){this._element=P,this._renderer=pe,this._select=kt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(P){null!=this._select&&(this._value=P,this._setElementValue(bt(this.id,P)),this._select.writeValue(this._select.value))}set value(P){this._select?(this._value=P,this._setElementValue(bt(this.id,P)),this._select.writeValue(this._select.value)):this._setElementValue(P)}_setElementValue(P){this._renderer.setProperty(this._element.nativeElement,"value",P)}_setSelected(P){this._renderer.setProperty(this._element.nativeElement,"selected",P)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(R=A).\u0275fac=function(P){return new(P||R)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(ln,9))},R.\u0275dir=r.lG2({type:R,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),A})(),Pi=(()=>{var R;class A{constructor(){this._validator=Le}ngOnChanges(P){if(this.inputName in P){const pe=this.normalizeInput(P[this.inputName].currentValue);this._enabled=this.enabled(pe),this._validator=this._enabled?this.createValidator(pe):Le,this._onChange&&this._onChange()}}validate(P){return this._validator(P)}registerOnValidatorChange(P){this._onChange=P}enabled(P){return null!=P}}return(R=A).\u0275fac=function(P){return new(P||R)},R.\u0275dir=r.lG2({type:R,features:[r.TTD]}),A})();const Ti={provide:_e,useExisting:(0,r.Gpc)(()=>_i),multi:!0};let _i=(()=>{var R;class A extends Pi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=r.VuI,this.createValidator=P=>Xt}enabled(P){return P}}return(R=A).\u0275fac=function(){let X;return function(pe){return(X||(X=r.n5z(R)))(pe||R)}}(),R.\u0275dir=r.lG2({type:R,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(P,pe){2&P&&r.uIk("required",pe._enabled?"":null)},inputs:{required:"required"},features:[r._Bn([Ti]),r.qOj]}),A})(),qs=(()=>{var R;class A{}return(R=A).\u0275fac=function(P){return new(P||R)},R.\u0275mod=r.oAB({type:R}),R.\u0275inj=r.cJS({imports:[Ui]}),A})(),na=(()=>{var R;class A{static withConfig(P){return{ngModule:A,providers:[{provide:S,useValue:P.callSetDisabledState??L}]}}}return(R=A).\u0275fac=function(P){return new(P||R)},R.\u0275mod=r.oAB({type:R}),R.\u0275inj=r.cJS({imports:[qs]}),A})(),Vo=(()=>{var R;class A{static withConfig(P){return{ngModule:A,providers:[{provide:Es,useValue:P.warnOnNgModelWithFormControl??"always"},{provide:S,useValue:P.callSetDisabledState??L}]}}}return(R=A).\u0275fac=function(P){return new(P||R)},R.\u0275mod=r.oAB({type:R}),R.\u0275inj=r.cJS({imports:[qs]}),A})()},2065:(It,Me,g)=>{g.d(Me,{XC:()=>E,Bb:()=>ct,ZL:()=>mt});var r=g(5879),u=g(3680),B=g(6814),$=g(6672),N=g(9594),ee=g(4802),te=g(2495),fe=g(2831),ne=g(6825),H=g(7394),q=g(8645),me=g(4911),Ie=g(3019),Ne=g(2096),nt=g(2438),we=g(6028),Be=g(8484),Xe=g(95);const vt=new r.OlP("MatFormField");var dn=g(7921),Cn=g(4664),kn=g(8180),ni=g(2181),On=g(7398),oi=g(9397),Zn=g(5177),ai=g(9388);const xe=["panel"];function W(tt,At){if(1&tt){const xt=r.EpF();r.TgZ(0,"div",0,1),r.NdJ("@panelAnimation.done",function(gt){r.CHM(xt);const Lt=r.oxw();return r.KtG(Lt._animationDone.next(gt))}),r.Hsn(2),r.qZA()}if(2&tt){const xt=At.id,Ae=r.oxw();r.Q6J("id",Ae.id)("ngClass",Ae._classList)("@panelAnimation",Ae.isOpen?"visible":"hidden"),r.uIk("aria-label",Ae.ariaLabel||null)("aria-labelledby",Ae._getPanelAriaLabelledby(xt))}}const O=["*"],V=(0,ne.X$)("panelAnimation",[(0,ne.SB)("void, hidden",(0,ne.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,ne.eR)(":enter, hidden => visible",[(0,ne.ru)([(0,ne.jt)("0.03s linear",(0,ne.oB)({opacity:1})),(0,ne.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,ne.oB)({transform:"scaleY(1)"}))])]),(0,ne.eR)(":leave, visible => hidden",[(0,ne.jt)("0.075s linear",(0,ne.oB)({opacity:0}))])]);let M=0;class j{constructor(At,xt){this.source=At,this.option=xt}}const ye=(0,u.Kr)(class{}),z=new r.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function ie(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let se=(()=>{var tt;class At extends ye{get isOpen(){return this._isOpen&&this.showPanel}_setColor(Ae){this._color=Ae,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ae){this._autoActiveFirstOption=(0,te.Ig)(Ae)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ae){this._autoSelectActiveOption=(0,te.Ig)(Ae)}get requireSelection(){return this._requireSelection}set requireSelection(Ae){this._requireSelection=(0,te.Ig)(Ae)}set classList(Ae){this._classList=Ae&&Ae.length?(0,te.du)(Ae).reduce((gt,Lt)=>(gt[Lt]=!0,gt),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(Ae,gt,Lt,fn){super(),this._changeDetectorRef=Ae,this._elementRef=gt,this._defaults=Lt,this._activeOptionChanges=H.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new r.vpe,this.opened=new r.vpe,this.closed=new r.vpe,this.optionActivated=new r.vpe,this._classList={},this.id="mat-autocomplete-"+M++,this.inertGroups=fn?.SAFARI||!1,this._autoActiveFirstOption=!!Lt.autoActiveFirstOption,this._autoSelectActiveOption=!!Lt.autoSelectActiveOption,this._requireSelection=!!Lt.requireSelection}ngAfterContentInit(){this._keyManager=new ee.s1(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(Ae=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ae]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(Ae){this.panel&&(this.panel.nativeElement.scrollTop=Ae)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ae){const gt=new j(this,Ae);this.optionSelected.emit(gt)}_getPanelAriaLabelledby(Ae){return this.ariaLabel?null:this.ariaLabelledby?(Ae?Ae+" ":"")+this.ariaLabelledby:Ae}_setVisibilityClasses(Ae){Ae[this._visibleClass]=this.showPanel,Ae[this._hiddenClass]=!this.showPanel}_setThemeClasses(Ae){Ae["mat-primary"]="primary"===this._color,Ae["mat-warn"]="warn"===this._color,Ae["mat-accent"]="accent"===this._color}_skipPredicate(Ae){return Ae.disabled}}return(tt=At).\u0275fac=function(Ae){return new(Ae||tt)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(z),r.Y36(fe.t4))},tt.\u0275dir=r.lG2({type:tt,viewQuery:function(Ae,gt){if(1&Ae&&(r.Gf(r.Rgc,7),r.Gf(xe,5)),2&Ae){let Lt;r.iGM(Lt=r.CRH())&&(gt.template=Lt.first),r.iGM(Lt=r.CRH())&&(gt.panel=Lt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[r.qOj]}),At})(),E=(()=>{var tt;class At extends se{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new r.vpe,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Ae){this._hideSingleSelectionIndicator=(0,te.Ig)(Ae),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Ae of this.options)Ae._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(Ae){return!1}}return(tt=At).\u0275fac=function(){let xt;return function(gt){return(xt||(xt=r.n5z(tt)))(gt||tt)}}(),tt.\u0275cmp=r.Xpm({type:tt,selectors:[["mat-autocomplete"]],contentQueries:function(Ae,gt,Lt){if(1&Ae&&(r.Suo(Lt,u.K7,5),r.Suo(Lt,u.ey,5)),2&Ae){let fn;r.iGM(fn=r.CRH())&&(gt.optionGroups=fn),r.iGM(fn=r.CRH())&&(gt.options=fn)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[r._Bn([{provide:u.HF,useExisting:tt}]),r.qOj],ngContentSelectors:O,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(Ae,gt){1&Ae&&(r.F$t(),r.YNc(0,W,3,5,"ng-template"))},dependencies:[B.mk],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[V]},changeDetection:0}),At})();const S={provide:Xe.JU,useExisting:(0,r.Gpc)(()=>mt),multi:!0},ce=new r.OlP("mat-autocomplete-scroll-strategy"),oe={provide:ce,deps:[N.aV],useFactory:function K(tt){return()=>tt.scrollStrategies.reposition()}};let De=(()=>{var tt;class At{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ae){this._autocompleteDisabled=(0,te.Ig)(Ae)}constructor(Ae,gt,Lt,fn,Kn,Pn,jn,mi,Vi,Xn,Mi){this._element=Ae,this._overlay=gt,this._viewContainerRef=Lt,this._zone=fn,this._changeDetectorRef=Kn,this._dir=jn,this._formField=mi,this._document=Vi,this._viewportRuler=Xn,this._defaults=Mi,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=H.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new q.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,me.P)(()=>{const li=this.autocomplete?this.autocomplete.options:null;return li?li.changes.pipe((0,dn.O)(li),(0,Cn.w)(()=>(0,Ie.T)(...li.map(xi=>xi.onSelectionChange)))):this._zone.onStable.pipe((0,kn.q)(1),(0,Cn.w)(()=>this.optionSelections))}),this._handlePanelKeydown=li=>{(li.keyCode===we.hY&&!(0,we.Vb)(li)||li.keyCode===we.LH&&(0,we.Vb)(li,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),li.stopPropagation(),li.preventDefault())},this._trackedModal=null,this._scrollStrategy=Pn}ngAfterViewInit(){const Ae=this._getWindow();typeof Ae<"u"&&this._zone.runOutsideAngular(()=>Ae.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ae){Ae.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ae=this._getWindow();typeof Ae<"u"&&Ae.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Ie.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ni.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ni.h)(()=>this._overlayAttached)):(0,Ne.of)()).pipe((0,On.U)(Ae=>Ae instanceof u.rN?Ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Ie.T)((0,nt.R)(this._document,"click"),(0,nt.R)(this._document,"auxclick"),(0,nt.R)(this._document,"touchend")).pipe((0,ni.h)(Ae=>{const gt=(0,fe.sA)(Ae),Lt=this._formField?this._formField._elementRef.nativeElement:null,fn=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&gt!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Lt||!Lt.contains(gt))&&(!fn||!fn.contains(gt))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(gt)}))}writeValue(Ae){Promise.resolve(null).then(()=>this._assignOptionValue(Ae))}registerOnChange(Ae){this._onChange=Ae}registerOnTouched(Ae){this._onTouched=Ae}setDisabledState(Ae){this._element.nativeElement.disabled=Ae}_handleKeydown(Ae){const gt=Ae.keyCode,Lt=(0,we.Vb)(Ae);if(gt===we.hY&&!Lt&&Ae.preventDefault(),this.activeOption&&gt===we.K5&&this.panelOpen&&!Lt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ae.preventDefault();else if(this.autocomplete){const fn=this.autocomplete._keyManager.activeItem,Kn=gt===we.LH||gt===we.JH;gt===we.Mf||Kn&&!Lt&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ae):Kn&&this._canOpen()&&this.openPanel(),(Kn||this.autocomplete._keyManager.activeItem!==fn)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Ae){let gt=Ae.target,Lt=gt.value;"number"===gt.type&&(Lt=""==Lt?null:parseFloat(Lt)),this._previousValue!==Lt&&(this._previousValue=Lt,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(Lt),Lt||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===Ae.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Ae=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ae?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ae=this._zone.onStable.pipe((0,kn.q)(1)),gt=this.autocomplete.options.changes.pipe((0,oi.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Zn.g)(0));return(0,Ie.T)(Ae,gt).pipe((0,Cn.w)(()=>(this._zone.run(()=>{const Lt=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Lt!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,kn.q)(1)).subscribe(Lt=>this._setValueAndClose(Lt))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ae){const gt=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ae):Ae;this._updateNativeInputValue(gt??"")}_updateNativeInputValue(Ae){this._formField?this._formField._control.value=Ae:this._element.nativeElement.value=Ae,this._previousValue=Ae}_setValueAndClose(Ae){const gt=this.autocomplete,Lt=Ae?Ae.source:this._pendingAutoselectedOption;Lt?(this._clearPreviousSelectedOption(Lt),this._assignOptionValue(Lt.value),this._onChange(Lt.value),gt._emitSelectEvent(Lt),this._element.nativeElement.focus()):gt.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),gt._animationDone?gt._animationDone.pipe((0,kn.q)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(Ae,gt){this.autocomplete?.options?.forEach(Lt=>{Lt!==Ae&&Lt.selected&&Lt.deselect(gt)})}_attachOverlay(){let Ae=this._overlayRef;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new Be.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ae&&Ae.updateSize({width:this._getPanelWidth()})})),Ae&&!Ae.hasAttached()&&(Ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const gt=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&gt!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const Ae=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=Ae.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=Ae.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new N.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Ae=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ae),this._positionStrategy=Ae,Ae}_setStrategyPositions(Ae){const gt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Lt=this._aboveClass,fn=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Lt},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Lt}];let Kn;Kn="above"===this.position?fn:"below"===this.position?gt:[...gt,...fn],Ae.withPositions(Kn)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Ae=this.autocomplete;if(Ae.autoActiveFirstOption){let gt=-1;for(let Lt=0;Lt<Ae.options.length;Lt++)if(!Ae.options.get(Lt).disabled){gt=Lt;break}Ae._keyManager.setActiveItem(gt)}else Ae._keyManager.setActiveItem(-1)}_canOpen(){const Ae=this._element.nativeElement;return!Ae.readOnly&&!Ae.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Ae){const gt=this.autocomplete,Lt=(0,u.CB)(Ae,gt.options,gt.optionGroups);if(0===Ae&&1===Lt)gt._setScrollTop(0);else if(gt.panel){const fn=gt.options.toArray()[Ae];if(fn){const Kn=fn._getHostElement(),Pn=(0,u.jH)(Kn.offsetTop,Kn.offsetHeight,gt._getScrollTop(),gt.panel.nativeElement.offsetHeight);gt._setScrollTop(Pn)}}}_applyModalPanelOwnership(){const Ae=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Ae)return;const gt=this.autocomplete.id;this._trackedModal&&(0,ee.iD)(this._trackedModal,"aria-owns",gt),(0,ee.Zf)(Ae,"aria-owns",gt),this._trackedModal=Ae}_clearFromModal(){this._trackedModal&&((0,ee.iD)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}}return(tt=At).\u0275fac=function(Ae){return new(Ae||tt)(r.Y36(r.SBq),r.Y36(N.aV),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(ce),r.Y36(ai.Is,8),r.Y36(vt,9),r.Y36(B.K0,8),r.Y36($.rL),r.Y36(z,8))},tt.\u0275dir=r.lG2({type:tt,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[r.TTD]}),At})(),mt=(()=>{var tt;class At extends De{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return(tt=At).\u0275fac=function(){let xt;return function(gt){return(xt||(xt=r.n5z(tt)))(gt||tt)}}(),tt.\u0275dir=r.lG2({type:tt,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Ae,gt){1&Ae&&r.NdJ("focusin",function(){return gt._handleFocus()})("blur",function(){return gt._onTouched()})("input",function(fn){return gt._handleInput(fn)})("keydown",function(fn){return gt._handleKeydown(fn)})("click",function(){return gt._handleClick()}),2&Ae&&r.uIk("autocomplete",gt.autocompleteAttribute)("role",gt.autocompleteDisabled?null:"combobox")("aria-autocomplete",gt.autocompleteDisabled?null:"list")("aria-activedescendant",gt.panelOpen&&gt.activeOption?gt.activeOption.id:null)("aria-expanded",gt.autocompleteDisabled?null:gt.panelOpen.toString())("aria-controls",gt.autocompleteDisabled||!gt.panelOpen||null==gt.autocomplete?null:gt.autocomplete.id)("aria-haspopup",gt.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[r._Bn([S]),r.qOj]}),At})(),ct=(()=>{var tt;class At{}return(tt=At).\u0275fac=function(Ae){return new(Ae||tt)},tt.\u0275mod=r.oAB({type:tt}),tt.\u0275inj=r.cJS({providers:[oe],imports:[N.U8,u.Ng,u.BQ,B.ez,$.ZD,u.Ng,u.BQ]}),At})()},3680:(It,Me,g)=>{g.d(Me,{K7:()=>St,HF:()=>He,BQ:()=>_e,ey:()=>xn,Ng:()=>kn,rN:()=>tn,wG:()=>_t,si:()=>Ot,CB:()=>dn,jH:()=>Cn,Kr:()=>Xt,sb:()=>on});var r=g(5879),u=g(4802),B=g(9388),N=g(6814),ee=g(2831),te=g(2495),fe=g(8645),ne=g(6028);const Ie=["text"];function Ne(O,V){if(1&O&&r._UZ(0,"mat-pseudo-checkbox",6),2&O){const M=r.oxw();r.Q6J("disabled",M.disabled)("state",M.selected?"checked":"unchecked")}}function nt(O,V){if(1&O&&r._UZ(0,"mat-pseudo-checkbox",7),2&O){const M=r.oxw();r.Q6J("disabled",M.disabled)}}function we(O,V){if(1&O&&(r.TgZ(0,"span",8),r._uU(1),r.qZA()),2&O){const M=r.oxw();r.xp6(1),r.hij("(",M.group.label,")")}}const Be=[[["mat-icon"]],"*"],Xe=["mat-icon","*"],he=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function Te(){return!0}});let _e=(()=>{var O;class V{constructor(j,ye,z){this._sanityChecks=ye,this._document=z,this._hasDoneGlobalChecks=!1,j._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(j){return!(0,ee.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[j])}}return(O=V).\u0275fac=function(j){return new(j||O)(r.LFG(u.qm),r.LFG(he,8),r.LFG(N.K0))},O.\u0275mod=r.oAB({type:O}),O.\u0275inj=r.cJS({imports:[B.vT,B.vT]}),V})();function Xt(O){return class extends O{get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=(0,te.Ig)(V)}constructor(...V){super(...V),this._disableRipple=!1}}}function on(O,V=0){return class extends O{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(M){this._tabIndex=null!=M?(0,te.su)(M):this.defaultTabIndex}constructor(...M){super(...M),this._tabIndex=V,this.defaultTabIndex=V}}}class gn{constructor(V,M,j,ye=!1){this._renderer=V,this.element=M,this.config=j,this._animationForciblyDisabledThroughCss=ye,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ht=(0,ee.i$)({passive:!0,capture:!0});class Mn{constructor(){this._events=new Map,this._delegateEventHandler=V=>{const M=(0,ee.sA)(V);M&&this._events.get(V.type)?.forEach((j,ye)=>{(ye===M||ye.contains(M))&&j.forEach(z=>z.handleEvent(V))})}}addHandler(V,M,j,ye){const z=this._events.get(M);if(z){const ie=z.get(j);ie?ie.add(ye):z.set(j,new Set([ye]))}else this._events.set(M,new Map([[j,new Set([ye])]])),V.runOutsideAngular(()=>{document.addEventListener(M,this._delegateEventHandler,Ht)})}removeHandler(V,M,j){const ye=this._events.get(V);if(!ye)return;const z=ye.get(M);z&&(z.delete(j),0===z.size&&ye.delete(M),0===ye.size&&(this._events.delete(V),document.removeEventListener(V,this._delegateEventHandler,Ht)))}}const Wn={enterDuration:225,exitDuration:150},pt=(0,ee.i$)({passive:!0,capture:!0}),Q=["mousedown","touchstart"],Oe=["mouseup","mouseleave","touchend","touchcancel"];class Ce{constructor(V,M,j,ye){this._target=V,this._ngZone=M,this._platform=ye,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ye.isBrowser&&(this._containerElement=(0,te.fI)(j))}fadeInRipple(V,M,j={}){const ye=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),z={...Wn,...j.animation};j.centered&&(V=ye.left+ye.width/2,M=ye.top+ye.height/2);const ie=j.radius||function Re(O,V,M){const j=Math.max(Math.abs(O-M.left),Math.abs(O-M.right)),ye=Math.max(Math.abs(V-M.top),Math.abs(V-M.bottom));return Math.sqrt(j*j+ye*ye)}(V,M,ye),se=V-ye.left,E=M-ye.top,k=z.enterDuration,ae=document.createElement("div");ae.classList.add("mat-ripple-element"),ae.style.left=se-ie+"px",ae.style.top=E-ie+"px",ae.style.height=2*ie+"px",ae.style.width=2*ie+"px",null!=j.color&&(ae.style.backgroundColor=j.color),ae.style.transitionDuration=`${k}ms`,this._containerElement.appendChild(ae);const S=window.getComputedStyle(ae),ce=S.transitionDuration,K="none"===S.transitionProperty||"0s"===ce||"0s, 0s"===ce||0===ye.width&&0===ye.height,oe=new gn(this,ae,j,K);ae.style.transform="scale3d(1, 1, 1)",oe.state=0,j.persistent||(this._mostRecentTransientRipple=oe);let De=null;return!K&&(k||z.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const mt=()=>this._finishRippleTransition(oe),ct=()=>this._destroyRipple(oe);ae.addEventListener("transitionend",mt),ae.addEventListener("transitioncancel",ct),De={onTransitionEnd:mt,onTransitionCancel:ct}}),this._activeRipples.set(oe,De),(K||!k)&&this._finishRippleTransition(oe),oe}fadeOutRipple(V){if(2===V.state||3===V.state)return;const M=V.element,j={...Wn,...V.config.animation};M.style.transitionDuration=`${j.exitDuration}ms`,M.style.opacity="0",V.state=2,(V._animationForciblyDisabledThroughCss||!j.exitDuration)&&this._finishRippleTransition(V)}fadeOutAll(){this._getActiveRipples().forEach(V=>V.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(V=>{V.config.persistent||V.fadeOut()})}setupTriggerEvents(V){const M=(0,te.fI)(V);!this._platform.isBrowser||!M||M===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=M,Q.forEach(j=>{Ce._eventManager.addHandler(this._ngZone,j,M,this)}))}handleEvent(V){"mousedown"===V.type?this._onMousedown(V):"touchstart"===V.type?this._onTouchStart(V):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Oe.forEach(M=>{this._triggerElement.addEventListener(M,this,pt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(V){0===V.state?this._startFadeOutTransition(V):2===V.state&&this._destroyRipple(V)}_startFadeOutTransition(V){const M=V===this._mostRecentTransientRipple,{persistent:j}=V.config;V.state=1,!j&&(!M||!this._isPointerDown)&&V.fadeOut()}_destroyRipple(V){const M=this._activeRipples.get(V)??null;this._activeRipples.delete(V),this._activeRipples.size||(this._containerRect=null),V===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),V.state=3,null!==M&&(V.element.removeEventListener("transitionend",M.onTransitionEnd),V.element.removeEventListener("transitioncancel",M.onTransitionCancel)),V.element.remove()}_onMousedown(V){const M=(0,u.X6)(V),j=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!M&&!j&&(this._isPointerDown=!0,this.fadeInRipple(V.clientX,V.clientY,this._target.rippleConfig))}_onTouchStart(V){if(!this._target.rippleDisabled&&!(0,u.yG)(V)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const M=V.changedTouches;if(M)for(let j=0;j<M.length;j++)this.fadeInRipple(M[j].clientX,M[j].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(V=>{!V.config.persistent&&(1===V.state||V.config.terminateOnPointerUp&&0===V.state)&&V.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const V=this._triggerElement;V&&(Q.forEach(M=>Ce._eventManager.removeHandler(M,V,this)),this._pointerUpEventsRegistered&&Oe.forEach(M=>V.removeEventListener(M,this,pt)))}}Ce._eventManager=new Mn;const dt=new r.OlP("mat-ripple-global-options");let _t=(()=>{var O;class V{get disabled(){return this._disabled}set disabled(j){j&&this.fadeOutAllNonPersistent(),this._disabled=j,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(j){this._trigger=j,this._setupTriggerEventsIfEnabled()}constructor(j,ye,z,ie,se){this._elementRef=j,this._animationMode=se,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ie||{},this._rippleRenderer=new Ce(this,ye,j,z)}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:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{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(j,ye=0,z){return"number"==typeof j?this._rippleRenderer.fadeInRipple(j,ye,{...this.rippleConfig,...z}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...j})}}return(O=V).\u0275fac=function(j){return new(j||O)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(ee.t4),r.Y36(dt,8),r.Y36(r.QbO,8))},O.\u0275dir=r.lG2({type:O,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(j,ye){2&j&&r.ekj("mat-ripple-unbounded",ye.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),V})(),Ot=(()=>{var O;class V{}return(O=V).\u0275fac=function(j){return new(j||O)},O.\u0275mod=r.oAB({type:O}),O.\u0275inj=r.cJS({imports:[_e,_e]}),V})(),Zt=(()=>{var O;class V{constructor(j){this._animationMode=j,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(O=V).\u0275fac=function(j){return new(j||O)(r.Y36(r.QbO,8))},O.\u0275cmp=r.Xpm({type:O,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(j,ye){2&j&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ye.state)("mat-pseudo-checkbox-checked","checked"===ye.state)("mat-pseudo-checkbox-disabled",ye.disabled)("mat-pseudo-checkbox-minimal","minimal"===ye.appearance)("mat-pseudo-checkbox-full","full"===ye.appearance)("_mat-animation-noopable","NoopAnimations"===ye._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(j,ye){},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-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.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}),V})(),lt=(()=>{var O;class V{}return(O=V).\u0275fac=function(j){return new(j||O)},O.\u0275mod=r.oAB({type:O}),O.\u0275inj=r.cJS({imports:[_e]}),V})();const He=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),St=new r.OlP("MatOptgroup");let en=0;class tn{constructor(V,M=!1){this.source=V,this.isUserInput=M}}let En=(()=>{var O;class V{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(j){this._disabled=(0,te.Ig)(j)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(j,ye,z,ie){this._element=j,this._changeDetectorRef=ye,this._parent=z,this.group=ie,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+en++,this.onSelectionChange=new r.vpe,this._stateChanges=new fe.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(j=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),j&&this._emitSelectionChangeEvent())}deselect(j=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),j&&this._emitSelectionChangeEvent())}focus(j,ye){const z=this._getHostElement();"function"==typeof z.focus&&z.focus(ye)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(j){(j.keyCode===ne.K5||j.keyCode===ne.L_)&&!(0,ne.Vb)(j)&&(this._selectViaInteraction(),j.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const j=this.viewValue;j!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=j)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(j=!1){this.onSelectionChange.emit(new tn(this,j))}}return(O=V).\u0275fac=function(j){r.$Z()},O.\u0275dir=r.lG2({type:O,viewQuery:function(j,ye){if(1&j&&r.Gf(Ie,7),2&j){let z;r.iGM(z=r.CRH())&&(ye._text=z.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),V})(),xn=(()=>{var O;class V extends En{constructor(j,ye,z,ie){super(j,ye,z,ie)}}return(O=V).\u0275fac=function(j){return new(j||O)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(He,8),r.Y36(St,8))},O.\u0275cmp=r.Xpm({type:O,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(j,ye){1&j&&r.NdJ("click",function(){return ye._selectViaInteraction()})("keydown",function(ie){return ye._handleKeydown(ie)}),2&j&&(r.Ikx("id",ye.id),r.uIk("aria-selected",ye.selected)("aria-disabled",ye.disabled.toString()),r.ekj("mdc-list-item--selected",ye.selected)("mat-mdc-option-multiple",ye.multiple)("mat-mdc-option-active",ye.active)("mdc-list-item--disabled",ye.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:Xe,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(j,ye){1&j&&(r.F$t(Be),r.YNc(0,Ne,1,2,"mat-pseudo-checkbox",0),r.Hsn(1),r.TgZ(2,"span",1,2),r.Hsn(4,1),r.qZA(),r.YNc(5,nt,1,1,"mat-pseudo-checkbox",3),r.YNc(6,we,2,1,"span",4),r._UZ(7,"div",5)),2&j&&(r.Q6J("ngIf",ye.multiple),r.xp6(5),r.Q6J("ngIf",!ye.multiple&&ye.selected&&!ye.hideSingleSelectionIndicator),r.xp6(1),r.Q6J("ngIf",ye.group&&ye.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",ye._getHostElement())("matRippleDisabled",ye.disabled||ye.disableRipple))},dependencies:[_t,N.O5,Zt],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.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)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.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:.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}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),V})();function dn(O,V,M){if(M.length){let j=V.toArray(),ye=M.toArray(),z=0;for(let ie=0;ie<O+1;ie++)j[ie].group&&j[ie].group===ye[z]&&z++;return z}return 0}function Cn(O,V,M,j){return O<M?O:O+V>M+j?Math.max(0,O-j+V):M}let kn=(()=>{var O;class V{}return(O=V).\u0275fac=function(j){return new(j||O)},O.\u0275mod=r.oAB({type:O}),O.\u0275inj=r.cJS({imports:[Ot,N.ez,_e,lt]}),V})()},7700:(It,Me,g)=>{g.d(Me,{WI:()=>et,uw:()=>In,H8:()=>Re,xY:()=>Ce,Is:()=>_t,so:()=>ut,uh:()=>Oe});var r=g(9594),u=g(6814),B=g(5879),$=g(4802),N=g(2831),ee=g(8484),te=g(6028),fe=g(8645),ne=g(4911),H=g(2096),q=g(9388),me=g(7921);function Ie(lt,He){}class Ne{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let we=(()=>{var lt;class He extends ee.en{constructor(ze,Qe,St,Mt,en,tn,En,xn){super(),this._elementRef=ze,this._focusTrapFactory=Qe,this._config=Mt,this._interactivityChecker=en,this._ngZone=tn,this._overlayRef=En,this._focusMonitor=xn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=dn=>{this._portalOutlet.hasAttached();const Cn=this._portalOutlet.attachDomPortal(dn);return this._contentAttached(),Cn},this._document=St,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(ze){this._portalOutlet.hasAttached();const Qe=this._portalOutlet.attachComponentPortal(ze);return this._contentAttached(),Qe}attachTemplatePortal(ze){this._portalOutlet.hasAttached();const Qe=this._portalOutlet.attachTemplatePortal(ze);return this._contentAttached(),Qe}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ze,Qe){this._interactivityChecker.isFocusable(ze)||(ze.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const St=()=>{ze.removeEventListener("blur",St),ze.removeEventListener("mousedown",St),ze.removeAttribute("tabindex")};ze.addEventListener("blur",St),ze.addEventListener("mousedown",St)})),ze.focus(Qe)}_focusByCssSelector(ze,Qe){let St=this._elementRef.nativeElement.querySelector(ze);St&&this._forceFocus(St,Qe)}_trapFocus(){const ze=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ze.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Qe=>{Qe||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const ze=this._config.restoreFocus;let Qe=null;if("string"==typeof ze?Qe=this._document.querySelector(ze):"boolean"==typeof ze?Qe=ze?this._elementFocusedBeforeDialogWasOpened:null:ze&&(Qe=ze),this._config.restoreFocus&&Qe&&"function"==typeof Qe.focus){const St=(0,N.ht)(),Mt=this._elementRef.nativeElement;(!St||St===this._document.body||St===Mt||Mt.contains(St))&&(this._focusMonitor?(this._focusMonitor.focusVia(Qe,this._closeInteractionType),this._closeInteractionType=null):Qe.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ze=this._elementRef.nativeElement,Qe=(0,N.ht)();return ze===Qe||ze.contains(Qe)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,N.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(lt=He).\u0275fac=function(ze){return new(ze||lt)(B.Y36(B.SBq),B.Y36($.qV),B.Y36(u.K0,8),B.Y36(Ne),B.Y36($.ic),B.Y36(B.R0b),B.Y36(r.Iu),B.Y36($.tE))},lt.\u0275cmp=B.Xpm({type:lt,selectors:[["cdk-dialog-container"]],viewQuery:function(ze,Qe){if(1&ze&&B.Gf(ee.Pl,7),2&ze){let St;B.iGM(St=B.CRH())&&(Qe._portalOutlet=St.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(ze,Qe){2&ze&&B.uIk("id",Qe._config.id||null)("role",Qe._config.role)("aria-modal",Qe._config.ariaModal)("aria-labelledby",Qe._config.ariaLabel?null:Qe._ariaLabelledByQueue[0])("aria-label",Qe._config.ariaLabel)("aria-describedby",Qe._config.ariaDescribedBy||null)},features:[B.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ze,Qe){1&ze&&B.YNc(0,Ie,0,0,"ng-template",0)},dependencies:[ee.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),He})();class Be{constructor(He,vt){this.overlayRef=He,this.config=vt,this.closed=new fe.x,this.disableClose=vt.disableClose,this.backdropClick=He.backdropClick(),this.keydownEvents=He.keydownEvents(),this.outsidePointerEvents=He.outsidePointerEvents(),this.id=vt.id,this.keydownEvents.subscribe(ze=>{ze.keyCode===te.hY&&!this.disableClose&&!(0,te.Vb)(ze)&&(ze.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=He.detachments().subscribe(()=>{!1!==vt.closeOnOverlayDetachments&&this.close()})}close(He,vt){if(this.containerInstance){const ze=this.closed;this.containerInstance._closeInteractionType=vt?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),ze.next(He),ze.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(He="",vt=""){return this.overlayRef.updateSize({width:He,height:vt}),this}addPanelClass(He){return this.overlayRef.addPanelClass(He),this}removePanelClass(He){return this.overlayRef.removePanelClass(He),this}}const Xe=new B.OlP("DialogScrollStrategy"),Ge=new B.OlP("DialogData"),at=new B.OlP("DefaultDialogConfig"),Te={provide:Xe,deps:[r.aV],useFactory:function J(lt){return()=>lt.scrollStrategies.block()}};let he=0,_e=(()=>{var lt;class He{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(ze,Qe,St,Mt,en,tn){this._overlay=ze,this._injector=Qe,this._defaultOptions=St,this._parentDialog=Mt,this._overlayContainer=en,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new fe.x,this._afterOpenedAtThisLevel=new fe.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ne.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,me.O)(void 0))),this._scrollStrategy=tn}open(ze,Qe){(Qe={...this._defaultOptions||new Ne,...Qe}).id=Qe.id||"cdk-dialog-"+he++,Qe.id&&this.getDialogById(Qe.id);const Mt=this._getOverlayConfig(Qe),en=this._overlay.create(Mt),tn=new Be(en,Qe),En=this._attachContainer(en,tn,Qe);return tn.containerInstance=En,this._attachDialogContent(ze,tn,En,Qe),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(tn),tn.closed.subscribe(()=>this._removeOpenDialog(tn,!0)),this.afterOpened.next(tn),tn}closeAll(){Ke(this.openDialogs,ze=>ze.close())}getDialogById(ze){return this.openDialogs.find(Qe=>Qe.id===ze)}ngOnDestroy(){Ke(this._openDialogsAtThisLevel,ze=>{!1===ze.config.closeOnDestroy&&this._removeOpenDialog(ze,!1)}),Ke(this._openDialogsAtThisLevel,ze=>ze.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(ze){const Qe=new r.X_({positionStrategy:ze.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:ze.scrollStrategy||this._scrollStrategy(),panelClass:ze.panelClass,hasBackdrop:ze.hasBackdrop,direction:ze.direction,minWidth:ze.minWidth,minHeight:ze.minHeight,maxWidth:ze.maxWidth,maxHeight:ze.maxHeight,width:ze.width,height:ze.height,disposeOnNavigation:ze.closeOnNavigation});return ze.backdropClass&&(Qe.backdropClass=ze.backdropClass),Qe}_attachContainer(ze,Qe,St){const Mt=St.injector||St.viewContainerRef?.injector,en=[{provide:Ne,useValue:St},{provide:Be,useValue:Qe},{provide:r.Iu,useValue:ze}];let tn;St.container?"function"==typeof St.container?tn=St.container:(tn=St.container.type,en.push(...St.container.providers(St))):tn=we;const En=new ee.C5(tn,St.viewContainerRef,B.zs3.create({parent:Mt||this._injector,providers:en}),St.componentFactoryResolver);return ze.attach(En).instance}_attachDialogContent(ze,Qe,St,Mt){if(ze instanceof B.Rgc){const en=this._createInjector(Mt,Qe,St,void 0);let tn={$implicit:Mt.data,dialogRef:Qe};Mt.templateContext&&(tn={...tn,..."function"==typeof Mt.templateContext?Mt.templateContext():Mt.templateContext}),St.attachTemplatePortal(new ee.UE(ze,null,tn,en))}else{const en=this._createInjector(Mt,Qe,St,this._injector),tn=St.attachComponentPortal(new ee.C5(ze,Mt.viewContainerRef,en,Mt.componentFactoryResolver));Qe.componentRef=tn,Qe.componentInstance=tn.instance}}_createInjector(ze,Qe,St,Mt){const en=ze.injector||ze.viewContainerRef?.injector,tn=[{provide:Ge,useValue:ze.data},{provide:Be,useValue:Qe}];return ze.providers&&("function"==typeof ze.providers?tn.push(...ze.providers(Qe,ze,St)):tn.push(...ze.providers)),ze.direction&&(!en||!en.get(q.Is,null,{optional:!0}))&&tn.push({provide:q.Is,useValue:{value:ze.direction,change:(0,H.of)()}}),B.zs3.create({parent:en||Mt,providers:tn})}_removeOpenDialog(ze,Qe){const St=this.openDialogs.indexOf(ze);St>-1&&(this.openDialogs.splice(St,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Mt,en)=>{Mt?en.setAttribute("aria-hidden",Mt):en.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Qe&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ze=this._overlayContainer.getContainerElement();if(ze.parentElement){const Qe=ze.parentElement.children;for(let St=Qe.length-1;St>-1;St--){const Mt=Qe[St];Mt!==ze&&"SCRIPT"!==Mt.nodeName&&"STYLE"!==Mt.nodeName&&!Mt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Mt,Mt.getAttribute("aria-hidden")),Mt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const ze=this._parentDialog;return ze?ze._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(lt=He).\u0275fac=function(ze){return new(ze||lt)(B.LFG(r.aV),B.LFG(B.zs3),B.LFG(at,8),B.LFG(lt,12),B.LFG(r.Xj),B.LFG(Xe))},lt.\u0275prov=B.Yz7({token:lt,factory:lt.\u0275fac}),He})();function Ke(lt,He){let vt=lt.length;for(;vt--;)He(lt[vt])}let qe=(()=>{var lt;class He{}return(lt=He).\u0275fac=function(ze){return new(ze||lt)},lt.\u0275mod=B.oAB({type:lt}),lt.\u0275inj=B.cJS({providers:[_e,Te],imports:[r.U8,ee.eL,$.rt,ee.eL]}),He})();var yt=g(2495),Ut=g(3019),Gt=g(2181),Xt=g(8180),on=g(3680);function mn(lt,He){}g(6825);class Fn{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Gn="mdc-dialog--open",Le="mdc-dialog--opening",Ve="mdc-dialog--closing";let Je=(()=>{var lt;class He extends we{constructor(ze,Qe,St,Mt,en,tn,En,xn){super(ze,Qe,St,Mt,en,tn,En,xn),this._animationStateChanged=new B.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(ze){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:ze})}}return(lt=He).\u0275fac=function(ze){return new(ze||lt)(B.Y36(B.SBq),B.Y36($.qV),B.Y36(u.K0,8),B.Y36(Fn),B.Y36($.ic),B.Y36(B.R0b),B.Y36(r.Iu),B.Y36($.tE))},lt.\u0275cmp=B.Xpm({type:lt,selectors:[["ng-component"]],features:[B.qOj],decls:0,vars:0,template:function(ze,Qe){},encapsulation:2}),He})();const ht="--mat-dialog-transition-duration";function Dt(lt){return null==lt?null:"number"==typeof lt?lt:lt.endsWith("ms")?(0,yt.su)(lt.substring(0,lt.length-2)):lt.endsWith("s")?1e3*(0,yt.su)(lt.substring(0,lt.length-1)):"0"===lt?0:null}let Ue=(()=>{var lt;class He extends Je{constructor(ze,Qe,St,Mt,en,tn,En,xn,dn){super(ze,Qe,St,Mt,en,tn,En,dn),this._animationMode=xn,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Dt(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?Dt(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ht,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Le,Gn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Gn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Gn),this._animationsEnabled?(this._hostElement.style.setProperty(ht,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ve)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(Le,Ve)}_waitForAnimationToComplete(ze,Qe){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Qe,ze)}_requestAnimationFrame(ze){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(ze):ze()})}}return(lt=He).\u0275fac=function(ze){return new(ze||lt)(B.Y36(B.SBq),B.Y36($.qV),B.Y36(u.K0,8),B.Y36(Fn),B.Y36($.ic),B.Y36(B.R0b),B.Y36(r.Iu),B.Y36(B.QbO,8),B.Y36($.tE))},lt.\u0275cmp=B.Xpm({type:lt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(ze,Qe){2&ze&&(B.Ikx("id",Qe._config.id),B.uIk("aria-modal",Qe._config.ariaModal)("role",Qe._config.role)("aria-labelledby",Qe._config.ariaLabel?null:Qe._ariaLabelledByQueue[0])("aria-label",Qe._config.ariaLabel)("aria-describedby",Qe._config.ariaDescribedBy||null),B.ekj("_mat-animation-noopable",!Qe._animationsEnabled))},features:[B.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(ze,Qe){1&ze&&(B.TgZ(0,"div",0)(1,"div",1),B.YNc(2,mn,0,0,"ng-template",2),B.qZA()())},dependencies:[ee.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),He})();class ut{constructor(He,vt,ze){this._ref=He,this._containerInstance=ze,this._afterOpened=new fe.x,this._beforeClosed=new fe.x,this._state=0,this.disableClose=vt.disableClose,this.id=He.id,ze._animationStateChanged.pipe((0,Gt.h)(Qe=>"opened"===Qe.state),(0,Xt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ze._animationStateChanged.pipe((0,Gt.h)(Qe=>"closed"===Qe.state),(0,Xt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),He.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Ut.T)(this.backdropClick(),this.keydownEvents().pipe((0,Gt.h)(Qe=>Qe.keyCode===te.hY&&!this.disableClose&&!(0,te.Vb)(Qe)))).subscribe(Qe=>{this.disableClose||(Qe.preventDefault(),function Pe(lt,He,vt){lt._closeInteractionType=He,lt.close(vt)}(this,"keydown"===Qe.type?"keyboard":"mouse"))})}close(He){this._result=He,this._containerInstance._animationStateChanged.pipe((0,Gt.h)(vt=>"closing"===vt.state),(0,Xt.q)(1)).subscribe(vt=>{this._beforeClosed.next(He),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),vt.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(He){let vt=this._ref.config.positionStrategy;return He&&(He.left||He.right)?He.left?vt.left(He.left):vt.right(He.right):vt.centerHorizontally(),He&&(He.top||He.bottom)?He.top?vt.top(He.top):vt.bottom(He.bottom):vt.centerVertically(),this._ref.updatePosition(),this}updateSize(He="",vt=""){return this._ref.updateSize(He,vt),this}addPanelClass(He){return this._ref.addPanelClass(He),this}removePanelClass(He){return this._ref.removePanelClass(He),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const et=new B.OlP("MatMdcDialogData"),Ye=new B.OlP("mat-mdc-dialog-default-options"),Rt=new B.OlP("mat-mdc-dialog-scroll-strategy"),gn={provide:Rt,deps:[r.aV],useFactory:function Yt(lt){return()=>lt.scrollStrategies.block()}};let Mn=0,Wn=(()=>{var lt;class He{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ze=this._parentDialog;return ze?ze._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(ze,Qe,St,Mt,en,tn,En,xn,dn,Cn){this._overlay=ze,this._defaultOptions=St,this._parentDialog=Mt,this._dialogRefConstructor=En,this._dialogContainerType=xn,this._dialogDataToken=dn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new fe.x,this._afterOpenedAtThisLevel=new fe.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=Fn,this.afterAllClosed=(0,ne.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,me.O)(void 0))),this._scrollStrategy=tn,this._dialog=Qe.get(_e)}open(ze,Qe){let St;(Qe={...this._defaultOptions||new Fn,...Qe}).id=Qe.id||`${this._idPrefix}${Mn++}`,Qe.scrollStrategy=Qe.scrollStrategy||this._scrollStrategy();const Mt=this._dialog.open(ze,{...Qe,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Qe},{provide:Ne,useValue:Qe}]},templateContext:()=>({dialogRef:St}),providers:(en,tn,En)=>(St=new this._dialogRefConstructor(en,Qe,En),St.updatePosition(Qe?.position),[{provide:this._dialogContainerType,useValue:En},{provide:this._dialogDataToken,useValue:tn.data},{provide:this._dialogRefConstructor,useValue:St}])});return St.componentRef=Mt.componentRef,St.componentInstance=Mt.componentInstance,this.openDialogs.push(St),this.afterOpened.next(St),St.afterClosed().subscribe(()=>{const en=this.openDialogs.indexOf(St);en>-1&&(this.openDialogs.splice(en,1),this.openDialogs.length||this._getAfterAllClosed().next())}),St}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ze){return this.openDialogs.find(Qe=>Qe.id===ze)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(ze){let Qe=ze.length;for(;Qe--;)ze[Qe].close()}}return(lt=He).\u0275fac=function(ze){B.$Z()},lt.\u0275prov=B.Yz7({token:lt,factory:lt.\u0275fac}),He})(),In=(()=>{var lt;class He extends Wn{constructor(ze,Qe,St,Mt,en,tn,En,xn){super(ze,Qe,Mt,tn,En,en,ut,Ue,et,xn),this._idPrefix="mat-mdc-dialog-"}}return(lt=He).\u0275fac=function(ze){return new(ze||lt)(B.LFG(r.aV),B.LFG(B.zs3),B.LFG(u.Ye,8),B.LFG(Ye,8),B.LFG(Rt),B.LFG(lt,12),B.LFG(r.Xj),B.LFG(B.QbO,8))},lt.\u0275prov=B.Yz7({token:lt,factory:lt.\u0275fac}),He})(),pt=0,Oe=(()=>{var lt;class He{constructor(ze,Qe,St){this._dialogRef=ze,this._elementRef=Qe,this._dialog=St,this.id="mat-mdc-dialog-title-"+pt++}ngOnInit(){this._dialogRef||(this._dialogRef=function dt(lt,He){let vt=lt.nativeElement.parentElement;for(;vt&&!vt.classList.contains("mat-mdc-dialog-container");)vt=vt.parentElement;return vt?He.find(ze=>ze.id===vt.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const ze=this._dialogRef?._containerInstance?._ariaLabelledByQueue;ze&&Promise.resolve().then(()=>{const Qe=ze.indexOf(this.id);Qe>-1&&ze.splice(Qe,1)})}}return(lt=He).\u0275fac=function(ze){return new(ze||lt)(B.Y36(ut,8),B.Y36(B.SBq),B.Y36(In))},lt.\u0275dir=B.lG2({type:lt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(ze,Qe){2&ze&&B.Ikx("id",Qe.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),He})(),Ce=(()=>{var lt;class He{}return(lt=He).\u0275fac=function(ze){return new(ze||lt)},lt.\u0275dir=B.lG2({type:lt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),He})(),Re=(()=>{var lt;class He{constructor(){this.align="start"}}return(lt=He).\u0275fac=function(ze){return new(ze||lt)},lt.\u0275dir=B.lG2({type:lt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(ze,Qe){2&ze&&B.ekj("mat-mdc-dialog-actions-align-center","center"===Qe.align)("mat-mdc-dialog-actions-align-end","end"===Qe.align)},inputs:{align:"align"}}),He})(),_t=(()=>{var lt;class He{}return(lt=He).\u0275fac=function(ze){return new(ze||lt)},lt.\u0275mod=B.oAB({type:lt}),lt.\u0275inj=B.cJS({providers:[In,gn],imports:[qe,r.U8,ee.eL,on.BQ,on.BQ]}),He})()},6593:(It,Me,g)=>{g.d(Me,{Dx:()=>Q,H7:()=>En,b2:()=>Ht,q6:()=>Ye,se:()=>qe});var r=g(5879),u=g(6814);class B extends u.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $ extends B{static makeCurrent(){(0,u.HT)(new $)}onAndCancel(O,V,M){return O.addEventListener(V,M),()=>{O.removeEventListener(V,M)}}dispatchEvent(O,V){O.dispatchEvent(V)}remove(O){O.parentNode&&O.parentNode.removeChild(O)}createElement(O,V){return(V=V||this.getDefaultDocument()).createElement(O)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(O){return O.nodeType===Node.ELEMENT_NODE}isShadowRoot(O){return O instanceof DocumentFragment}getGlobalEventTarget(O,V){return"window"===V?window:"document"===V?O:"body"===V?O.body:null}getBaseHref(O){const V=function ee(){return N=N||document.querySelector("base"),N?N.getAttribute("href"):null}();return null==V?null:function fe(W){te=te||document.createElement("a"),te.setAttribute("href",W);const O=te.pathname;return"/"===O.charAt(0)?O:`/${O}`}(V)}resetBaseElement(){N=null}getUserAgent(){return window.navigator.userAgent}getCookie(O){return(0,u.Mx)(document.cookie,O)}}let te,N=null,H=(()=>{var W;class O{build(){return new XMLHttpRequest}}return(W=O).\u0275fac=function(M){return new(M||W)},W.\u0275prov=r.Yz7({token:W,factory:W.\u0275fac}),O})();const q=new r.OlP("EventManagerPlugins");let me=(()=>{var W;class O{constructor(M,j){this._zone=j,this._eventNameToPlugin=new Map,M.forEach(ye=>{ye.manager=this}),this._plugins=M.slice().reverse()}addEventListener(M,j,ye){return this._findPluginFor(j).addEventListener(M,j,ye)}getZone(){return this._zone}_findPluginFor(M){let j=this._eventNameToPlugin.get(M);if(j)return j;if(j=this._plugins.find(z=>z.supports(M)),!j)throw new r.vHH(5101,!1);return this._eventNameToPlugin.set(M,j),j}}return(W=O).\u0275fac=function(M){return new(M||W)(r.LFG(q),r.LFG(r.R0b))},W.\u0275prov=r.Yz7({token:W,factory:W.\u0275fac}),O})();class Ie{constructor(O){this._doc=O}}const Ne="ng-app-id";let nt=(()=>{var W;class O{constructor(M,j,ye,z={}){this.doc=M,this.appId=j,this.nonce=ye,this.platformId=z,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,u.PM)(z),this.resetHostNodes()}addStyles(M){for(const j of M)1===this.changeUsageCount(j,1)&&this.onStyleAdded(j)}removeStyles(M){for(const j of M)this.changeUsageCount(j,-1)<=0&&this.onStyleRemoved(j)}ngOnDestroy(){const M=this.styleNodesInDOM;M&&(M.forEach(j=>j.remove()),M.clear());for(const j of this.getAllStyles())this.onStyleRemoved(j);this.resetHostNodes()}addHost(M){this.hostNodes.add(M);for(const j of this.getAllStyles())this.addStyleToHost(M,j)}removeHost(M){this.hostNodes.delete(M)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(M){for(const j of this.hostNodes)this.addStyleToHost(j,M)}onStyleRemoved(M){const j=this.styleRef;j.get(M)?.elements?.forEach(ye=>ye.remove()),j.delete(M)}collectServerRenderedStyles(){const M=this.doc.head?.querySelectorAll(`style[${Ne}="${this.appId}"]`);if(M?.length){const j=new Map;return M.forEach(ye=>{null!=ye.textContent&&j.set(ye.textContent,ye)}),j}return null}changeUsageCount(M,j){const ye=this.styleRef;if(ye.has(M)){const z=ye.get(M);return z.usage+=j,z.usage}return ye.set(M,{usage:j,elements:[]}),j}getStyleElement(M,j){const ye=this.styleNodesInDOM,z=ye?.get(j);if(z?.parentNode===M)return ye.delete(j),z.removeAttribute(Ne),z;{const ie=this.doc.createElement("style");return this.nonce&&ie.setAttribute("nonce",this.nonce),ie.textContent=j,this.platformIsServer&&ie.setAttribute(Ne,this.appId),ie}}addStyleToHost(M,j){const ye=this.getStyleElement(M,j);M.appendChild(ye);const z=this.styleRef,ie=z.get(j)?.elements;ie?ie.push(ye):z.set(j,{elements:[ye],usage:1})}resetHostNodes(){const M=this.hostNodes;M.clear(),M.add(this.doc.head)}}return(W=O).\u0275fac=function(M){return new(M||W)(r.LFG(u.K0),r.LFG(r.AFp),r.LFG(r.Ojb,8),r.LFG(r.Lbi))},W.\u0275prov=r.Yz7({token:W,factory:W.\u0275fac}),O})();const we={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Be=/%COMP%/g,Te=new r.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Ke(W,O){return O.map(V=>V.replace(Be,W))}let qe=(()=>{var W;class O{constructor(M,j,ye,z,ie,se,E,k=null){this.eventManager=M,this.sharedStylesHost=j,this.appId=ye,this.removeStylesOnCompDestroy=z,this.doc=ie,this.platformId=se,this.ngZone=E,this.nonce=k,this.rendererByCompId=new Map,this.platformIsServer=(0,u.PM)(se),this.defaultRenderer=new yt(M,ie,E,this.platformIsServer)}createRenderer(M,j){if(!M||!j)return this.defaultRenderer;this.platformIsServer&&j.encapsulation===r.ifc.ShadowDom&&(j={...j,encapsulation:r.ifc.Emulated});const ye=this.getOrCreateRenderer(M,j);return ye instanceof mn?ye.applyToHost(M):ye instanceof cn&&ye.applyStyles(),ye}getOrCreateRenderer(M,j){const ye=this.rendererByCompId;let z=ye.get(j.id);if(!z){const ie=this.doc,se=this.ngZone,E=this.eventManager,k=this.sharedStylesHost,ae=this.removeStylesOnCompDestroy,S=this.platformIsServer;switch(j.encapsulation){case r.ifc.Emulated:z=new mn(E,k,j,this.appId,ae,ie,se,S);break;case r.ifc.ShadowDom:return new on(E,k,M,j,ie,se,this.nonce,S);default:z=new cn(E,k,j,ae,ie,se,S)}ye.set(j.id,z)}return z}ngOnDestroy(){this.rendererByCompId.clear()}}return(W=O).\u0275fac=function(M){return new(M||W)(r.LFG(me),r.LFG(nt),r.LFG(r.AFp),r.LFG(Te),r.LFG(u.K0),r.LFG(r.Lbi),r.LFG(r.R0b),r.LFG(r.Ojb))},W.\u0275prov=r.Yz7({token:W,factory:W.\u0275fac}),O})();class yt{constructor(O,V,M,j){this.eventManager=O,this.doc=V,this.ngZone=M,this.platformIsServer=j,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(O,V){return V?this.doc.createElementNS(we[V]||V,O):this.doc.createElement(O)}createComment(O){return this.doc.createComment(O)}createText(O){return this.doc.createTextNode(O)}appendChild(O,V){(Xt(O)?O.content:O).appendChild(V)}insertBefore(O,V,M){O&&(Xt(O)?O.content:O).insertBefore(V,M)}removeChild(O,V){O&&O.removeChild(V)}selectRootElement(O,V){let M="string"==typeof O?this.doc.querySelector(O):O;if(!M)throw new r.vHH(-5104,!1);return V||(M.textContent=""),M}parentNode(O){return O.parentNode}nextSibling(O){return O.nextSibling}setAttribute(O,V,M,j){if(j){V=j+":"+V;const ye=we[j];ye?O.setAttributeNS(ye,V,M):O.setAttribute(V,M)}else O.setAttribute(V,M)}removeAttribute(O,V,M){if(M){const j=we[M];j?O.removeAttributeNS(j,V):O.removeAttribute(`${M}:${V}`)}else O.removeAttribute(V)}addClass(O,V){O.classList.add(V)}removeClass(O,V){O.classList.remove(V)}setStyle(O,V,M,j){j&(r.JOm.DashCase|r.JOm.Important)?O.style.setProperty(V,M,j&r.JOm.Important?"important":""):O.style[V]=M}removeStyle(O,V,M){M&r.JOm.DashCase?O.style.removeProperty(V):O.style[V]=""}setProperty(O,V,M){O[V]=M}setValue(O,V){O.nodeValue=V}listen(O,V,M){if("string"==typeof O&&!(O=(0,u.q)().getGlobalEventTarget(this.doc,O)))throw new Error(`Unsupported event target ${O} for event ${V}`);return this.eventManager.addEventListener(O,V,this.decoratePreventDefault(M))}decoratePreventDefault(O){return V=>{if("__ngUnwrap__"===V)return O;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>O(V)):O(V))&&V.preventDefault()}}}function Xt(W){return"TEMPLATE"===W.tagName&&void 0!==W.content}class on extends yt{constructor(O,V,M,j,ye,z,ie,se){super(O,ye,z,se),this.sharedStylesHost=V,this.hostEl=M,this.shadowRoot=M.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const E=Ke(j.id,j.styles);for(const k of E){const ae=document.createElement("style");ie&&ae.setAttribute("nonce",ie),ae.textContent=k,this.shadowRoot.appendChild(ae)}}nodeOrShadowRoot(O){return O===this.hostEl?this.shadowRoot:O}appendChild(O,V){return super.appendChild(this.nodeOrShadowRoot(O),V)}insertBefore(O,V,M){return super.insertBefore(this.nodeOrShadowRoot(O),V,M)}removeChild(O,V){return super.removeChild(this.nodeOrShadowRoot(O),V)}parentNode(O){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(O)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class cn extends yt{constructor(O,V,M,j,ye,z,ie,se){super(O,ye,z,ie),this.sharedStylesHost=V,this.removeStylesOnCompDestroy=j,this.styles=se?Ke(se,M.styles):M.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class mn extends cn{constructor(O,V,M,j,ye,z,ie,se){const E=j+"-"+M.id;super(O,V,M,ye,z,ie,se,E),this.contentAttr=function he(W){return"_ngcontent-%COMP%".replace(Be,W)}(E),this.hostAttr=function _e(W){return"_nghost-%COMP%".replace(Be,W)}(E)}applyToHost(O){this.applyStyles(),this.setAttribute(O,this.hostAttr,"")}createElement(O,V){const M=super.createElement(O,V);return super.setAttribute(M,this.contentAttr,""),M}}let Fn=(()=>{var W;class O extends Ie{constructor(M){super(M)}supports(M){return!0}addEventListener(M,j,ye){return M.addEventListener(j,ye,!1),()=>this.removeEventListener(M,j,ye)}removeEventListener(M,j,ye){return M.removeEventListener(j,ye)}}return(W=O).\u0275fac=function(M){return new(M||W)(r.LFG(u.K0))},W.\u0275prov=r.Yz7({token:W,factory:W.\u0275fac}),O})();const Gn=["alt","control","meta","shift"],Le={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ve={alt:W=>W.altKey,control:W=>W.ctrlKey,meta:W=>W.metaKey,shift:W=>W.shiftKey};let $e=(()=>{var W;class O extends Ie{constructor(M){super(M)}supports(M){return null!=O.parseEventName(M)}addEventListener(M,j,ye){const z=O.parseEventName(j),ie=O.eventCallback(z.fullKey,ye,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.q)().onAndCancel(M,z.domEventName,ie))}static parseEventName(M){const j=M.toLowerCase().split("."),ye=j.shift();if(0===j.length||"keydown"!==ye&&"keyup"!==ye)return null;const z=O._normalizeKey(j.pop());let ie="",se=j.indexOf("code");if(se>-1&&(j.splice(se,1),ie="code."),Gn.forEach(k=>{const ae=j.indexOf(k);ae>-1&&(j.splice(ae,1),ie+=k+".")}),ie+=z,0!=j.length||0===z.length)return null;const E={};return E.domEventName=ye,E.fullKey=ie,E}static matchEventFullKeyCode(M,j){let ye=Le[M.key]||M.key,z="";return j.indexOf("code.")>-1&&(ye=M.code,z="code."),!(null==ye||!ye)&&(ye=ye.toLowerCase()," "===ye?ye="space":"."===ye&&(ye="dot"),Gn.forEach(ie=>{ie!==ye&&(0,Ve[ie])(M)&&(z+=ie+".")}),z+=ye,z===j)}static eventCallback(M,j,ye){return z=>{O.matchEventFullKeyCode(z,M)&&ye.runGuarded(()=>j(z))}}static _normalizeKey(M){return"esc"===M?"escape":M}}return(W=O).\u0275fac=function(M){return new(M||W)(r.LFG(u.K0))},W.\u0275prov=r.Yz7({token:W,factory:W.\u0275fac}),O})();const Ye=(0,r.eFA)(r._c5,"browser",[{provide:r.Lbi,useValue:u.bD},{provide:r.g9A,useValue:function Ue(){$.makeCurrent()},multi:!0},{provide:u.K0,useFactory:function Pe(){return(0,r.RDi)(document),document},deps:[]}]),Rt=new r.OlP(""),Yt=[{provide:r.rWj,useClass:class ne{addToWindow(O){r.dqk.getAngularTestability=(M,j=!0)=>{const ye=O.findTestabilityInTree(M,j);if(null==ye)throw new r.vHH(5103,!1);return ye},r.dqk.getAllAngularTestabilities=()=>O.getAllTestabilities(),r.dqk.getAllAngularRootElements=()=>O.getAllRootElements(),r.dqk.frameworkStabilizers||(r.dqk.frameworkStabilizers=[]),r.dqk.frameworkStabilizers.push(M=>{const j=r.dqk.getAllAngularTestabilities();let ye=j.length,z=!1;const ie=function(se){z=z||se,ye--,0==ye&&M(z)};j.forEach(se=>{se.whenStable(ie)})})}findTestabilityInTree(O,V,M){return null==V?null:O.getTestability(V)??(M?(0,u.q)().isShadowRoot(V)?this.findTestabilityInTree(O,V.host,!0):this.findTestabilityInTree(O,V.parentElement,!0):null)}},deps:[]},{provide:r.lri,useClass:r.dDg,deps:[r.R0b,r.eoX,r.rWj]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b,r.eoX,r.rWj]}],gn=[{provide:r.zSh,useValue:"root"},{provide:r.qLn,useFactory:function ut(){return new r.qLn},deps:[]},{provide:q,useClass:Fn,multi:!0,deps:[u.K0,r.R0b,r.Lbi]},{provide:q,useClass:$e,multi:!0,deps:[u.K0]},qe,nt,me,{provide:r.FYo,useExisting:qe},{provide:u.JF,useClass:H,deps:[]},[]];let Ht=(()=>{var W;class O{constructor(M){}static withServerTransition(M){return{ngModule:O,providers:[{provide:r.AFp,useValue:M.appId}]}}}return(W=O).\u0275fac=function(M){return new(M||W)(r.LFG(Rt,12))},W.\u0275mod=r.oAB({type:W}),W.\u0275inj=r.cJS({providers:[...gn,...Yt],imports:[u.ez,r.hGG]}),O})(),Q=(()=>{var W;class O{constructor(M){this._doc=M}getTitle(){return this._doc.title}setTitle(M){this._doc.title=M||""}}return(W=O).\u0275fac=function(M){return new(M||W)(r.LFG(u.K0))},W.\u0275prov=r.Yz7({token:W,factory:function(M){let j=null;return j=M?new M:function pt(){return new Q((0,r.LFG)(u.K0))}(),j},providedIn:"root"}),O})();typeof window<"u"&&window;let En=(()=>{var W;class O{}return(W=O).\u0275fac=function(M){return new(M||W)},W.\u0275prov=r.Yz7({token:W,factory:function(M){let j=null;return j=M?new(M||W):r.LFG(dn),j},providedIn:"root"}),O})(),dn=(()=>{var W;class O extends En{constructor(M){super(),this._doc=M}sanitize(M,j){if(null==j)return null;switch(M){case r.q3G.NONE:return j;case r.q3G.HTML:return(0,r.qzn)(j,"HTML")?(0,r.z3N)(j):(0,r.EiD)(this._doc,String(j)).toString();case r.q3G.STYLE:return(0,r.qzn)(j,"Style")?(0,r.z3N)(j):j;case r.q3G.SCRIPT:if((0,r.qzn)(j,"Script"))return(0,r.z3N)(j);throw new r.vHH(5200,!1);case r.q3G.URL:return(0,r.qzn)(j,"URL")?(0,r.z3N)(j):(0,r.mCW)(String(j));case r.q3G.RESOURCE_URL:if((0,r.qzn)(j,"ResourceURL"))return(0,r.z3N)(j);throw new r.vHH(5201,!1);default:throw new r.vHH(5202,!1)}}bypassSecurityTrustHtml(M){return(0,r.JVY)(M)}bypassSecurityTrustStyle(M){return(0,r.L6k)(M)}bypassSecurityTrustScript(M){return(0,r.eBb)(M)}bypassSecurityTrustUrl(M){return(0,r.LAX)(M)}bypassSecurityTrustResourceUrl(M){return(0,r.pB0)(M)}}return(W=O).\u0275fac=function(M){return new(M||W)(r.LFG(u.K0))},W.\u0275prov=r.Yz7({token:W,factory:function(M){let j=null;return j=M?new M:function xn(W){return new dn(W.get(u.K0))}(r.LFG(r.zs3)),j},providedIn:"root"}),O})()},915:(It,Me,g)=>{g.d(Me,{gz:()=>vr,m2:()=>ir,F0:()=>$n,Bz:()=>Gi,lC:()=>gi});var r=g(5879),u=g(5592),B=g(4674),N=g(2459),ee=g(2096),te=g(5619),fe=g(2572),ne=g(6973),H=g(5211),q=g(4911),me=g(8407),Ie=g(8504),Ne=g(6232),nt=g(3168),we=g(8645),Be=g(7394),Xe=g(6814),Ge=g(7398),at=g(4664),J=g(8180),Te=g(7921),he=g(2181),_e=g(1631),Ke=g(1374),qe=g(6328),yt=g(9397),Ut=g(4829),Gt=g(8251),Xt=g(9360);function on(f){return(0,Xt.e)((v,D)=>{let Z,_=null,T=!1;_=v.subscribe((0,Gt.x)(D,void 0,void 0,le=>{Z=(0,Ut.Xf)(f(le,on(f)(v))),_?(_.unsubscribe(),_=null,Z.subscribe(D)):T=!0})),T&&(_.unsubscribe(),_=null,Z.subscribe(D))})}var Fn=g(3572);function Gn(f){return f<=0?()=>Ne.E:(0,Xt.e)((v,D)=>{let _=[];v.subscribe((0,Gt.x)(D,T=>{_.push(T),f<_.length&&_.shift()},()=>{for(const T of _)D.next(T);D.complete()},void 0,()=>{_=null}))})}var Le=g(3026),Ve=g(2737),ve=g(975),Je=g(4716),ht=g(6196),Dt=g(9773),Ue=g(7537),ut=g(6593);const Pe="primary",et=Symbol("RouteTitle");class Ye{constructor(v){this.params=v||{}}has(v){return Object.prototype.hasOwnProperty.call(this.params,v)}get(v){if(this.has(v)){const D=this.params[v];return Array.isArray(D)?D[0]:D}return null}getAll(v){if(this.has(v)){const D=this.params[v];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function Rt(f){return new Ye(f)}function Yt(f,v,D){const _=D.path.split("/");if(_.length>f.length||"full"===D.pathMatch&&(v.hasChildren()||_.length<f.length))return null;const T={};for(let Z=0;Z<_.length;Z++){const le=_[Z],rt=f[Z];if(le.startsWith(":"))T[le.substring(1)]=rt;else if(le!==rt.path)return null}return{consumed:f.slice(0,_.length),posParams:T}}function Ht(f,v){const D=f?Object.keys(f):void 0,_=v?Object.keys(v):void 0;if(!D||!_||D.length!=_.length)return!1;let T;for(let Z=0;Z<D.length;Z++)if(T=D[Z],!Mn(f[T],v[T]))return!1;return!0}function Mn(f,v){if(Array.isArray(f)&&Array.isArray(v)){if(f.length!==v.length)return!1;const D=[...f].sort(),_=[...v].sort();return D.every((T,Z)=>_[Z]===T)}return f===v}function Wn(f){return f.length>0?f[f.length-1]:null}function In(f){return function $(f){return!!f&&(f instanceof u.y||(0,B.m)(f.lift)&&(0,B.m)(f.subscribe))}(f)?f:(0,r.QGY)(f)?(0,N.D)(Promise.resolve(f)):(0,ee.of)(f)}const pt={exact:function Re(f,v,D){if(!Qe(f.segments,v.segments)||!Zt(f.segments,v.segments,D)||f.numberOfChildren!==v.numberOfChildren)return!1;for(const _ in v.children)if(!f.children[_]||!Re(f.children[_],v.children[_],D))return!1;return!0},subset:_t},Q={exact:function Ce(f,v){return Ht(f,v)},subset:function dt(f,v){return Object.keys(v).length<=Object.keys(f).length&&Object.keys(v).every(D=>Mn(f[D],v[D]))},ignored:()=>!0};function Oe(f,v,D){return pt[D.paths](f.root,v.root,D.matrixParams)&&Q[D.queryParams](f.queryParams,v.queryParams)&&!("exact"===D.fragment&&f.fragment!==v.fragment)}function _t(f,v,D){return Ot(f,v,v.segments,D)}function Ot(f,v,D,_){if(f.segments.length>D.length){const T=f.segments.slice(0,D.length);return!(!Qe(T,D)||v.hasChildren()||!Zt(T,D,_))}if(f.segments.length===D.length){if(!Qe(f.segments,D)||!Zt(f.segments,D,_))return!1;for(const T in v.children)if(!f.children[T]||!_t(f.children[T],v.children[T],_))return!1;return!0}{const T=D.slice(0,f.segments.length),Z=D.slice(f.segments.length);return!!(Qe(f.segments,T)&&Zt(f.segments,T,_)&&f.children[Pe])&&Ot(f.children[Pe],v,Z,_)}}function Zt(f,v,D){return v.every((_,T)=>Q[D](f[T].parameters,_.parameters))}class lt{constructor(v=new He([],{}),D={},_=null){this.root=v,this.queryParams=D,this.fragment=_}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Rt(this.queryParams)),this._queryParamMap}toString(){return tn.serialize(this)}}class He{constructor(v,D){this.segments=v,this.children=D,this.parent=null,Object.values(D).forEach(_=>_.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return En(this)}}class vt{constructor(v,D){this.path=v,this.parameters=D}get parameterMap(){return this._parameterMap||(this._parameterMap=Rt(this.parameters)),this._parameterMap}toString(){return Zn(this)}}function Qe(f,v){return f.length===v.length&&f.every((D,_)=>D.path===v[_].path)}let Mt=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:function(){return new en},providedIn:"root"}),v})();class en{parse(v){const D=new se(v);return new lt(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(v){const D=`/${xn(v.root,!0)}`,_=function xe(f){const v=Object.keys(f).map(D=>{const _=f[D];return Array.isArray(_)?_.map(T=>`${Cn(D)}=${Cn(T)}`).join("&"):`${Cn(D)}=${Cn(_)}`}).filter(D=>!!D);return v.length?`?${v.join("&")}`:""}(v.queryParams);return`${D}${_}${"string"==typeof v.fragment?`#${function kn(f){return encodeURI(f)}(v.fragment)}`:""}`}}const tn=new en;function En(f){return f.segments.map(v=>Zn(v)).join("/")}function xn(f,v){if(!f.hasChildren())return En(f);if(v){const D=f.children[Pe]?xn(f.children[Pe],!1):"",_=[];return Object.entries(f.children).forEach(([T,Z])=>{T!==Pe&&_.push(`${T}:${xn(Z,!1)}`)}),_.length>0?`${D}(${_.join("//")})`:D}{const D=function St(f,v){let D=[];return Object.entries(f.children).forEach(([_,T])=>{_===Pe&&(D=D.concat(v(T,_)))}),Object.entries(f.children).forEach(([_,T])=>{_!==Pe&&(D=D.concat(v(T,_)))}),D}(f,(_,T)=>T===Pe?[xn(f.children[Pe],!1)]:[`${T}:${xn(_,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[Pe]?`${En(f)}/${D[0]}`:`${En(f)}/(${D.join("//")})`}}function dn(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cn(f){return dn(f).replace(/%3B/gi,";")}function ni(f){return dn(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function On(f){return decodeURIComponent(f)}function oi(f){return On(f.replace(/\+/g,"%20"))}function Zn(f){return`${ni(f.path)}${function ai(f){return Object.keys(f).map(v=>`;${ni(v)}=${ni(f[v])}`).join("")}(f.parameters)}`}const W=/^[^\/()?;#]+/;function O(f){const v=f.match(W);return v?v[0]:""}const V=/^[^\/()?;=#]+/,j=/^[^=?&#]+/,z=/^[^&#]+/;class se{constructor(v){this.url=v,this.remaining=v}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new He([],{}):new He([],this.parseChildren())}parseQueryParams(){const v={};if(this.consumeOptional("?"))do{this.parseQueryParam(v)}while(this.consumeOptional("&"));return v}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const v=[];for(this.peekStartsWith("(")||v.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),v.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let _={};return this.peekStartsWith("(")&&(_=this.parseParens(!1)),(v.length>0||Object.keys(D).length>0)&&(_[Pe]=new He(v,D)),_}parseSegment(){const v=O(this.remaining);if(""===v&&this.peekStartsWith(";"))throw new r.vHH(4009,!1);return this.capture(v),new vt(On(v),this.parseMatrixParams())}parseMatrixParams(){const v={};for(;this.consumeOptional(";");)this.parseParam(v);return v}parseParam(v){const D=function M(f){const v=f.match(V);return v?v[0]:""}(this.remaining);if(!D)return;this.capture(D);let _="";if(this.consumeOptional("=")){const T=O(this.remaining);T&&(_=T,this.capture(_))}v[On(D)]=On(_)}parseQueryParam(v){const D=function ye(f){const v=f.match(j);return v?v[0]:""}(this.remaining);if(!D)return;this.capture(D);let _="";if(this.consumeOptional("=")){const le=function ie(f){const v=f.match(z);return v?v[0]:""}(this.remaining);le&&(_=le,this.capture(_))}const T=oi(D),Z=oi(_);if(v.hasOwnProperty(T)){let le=v[T];Array.isArray(le)||(le=[le],v[T]=le),le.push(Z)}else v[T]=Z}parseParens(v){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const _=O(this.remaining),T=this.remaining[_.length];if("/"!==T&&")"!==T&&";"!==T)throw new r.vHH(4010,!1);let Z;_.indexOf(":")>-1?(Z=_.slice(0,_.indexOf(":")),this.capture(Z),this.capture(":")):v&&(Z=Pe);const le=this.parseChildren();D[Z]=1===Object.keys(le).length?le[Pe]:new He([],le),this.consumeOptional("//")}return D}peekStartsWith(v){return this.remaining.startsWith(v)}consumeOptional(v){return!!this.peekStartsWith(v)&&(this.remaining=this.remaining.substring(v.length),!0)}capture(v){if(!this.consumeOptional(v))throw new r.vHH(4011,!1)}}function E(f){return f.segments.length>0?new He([],{[Pe]:f}):f}function k(f){const v={};for(const _ of Object.keys(f.children)){const Z=k(f.children[_]);if(_===Pe&&0===Z.segments.length&&Z.hasChildren())for(const[le,rt]of Object.entries(Z.children))v[le]=rt;else(Z.segments.length>0||Z.hasChildren())&&(v[_]=Z)}return function ae(f){if(1===f.numberOfChildren&&f.children[Pe]){const v=f.children[Pe];return new He(f.segments.concat(v.segments),v.children)}return f}(new He(f.segments,v))}function S(f){return f instanceof lt}function ce(f){let v;const T=E(function D(Z){const le={};for(const Bt of Z.children){const Ct=D(Bt);le[Bt.outlet]=Ct}const rt=new He(Z.url,le);return Z===f&&(v=rt),rt}(f.root));return v??T}function K(f,v,D,_){let T=f;for(;T.parent;)T=T.parent;if(0===v.length)return mt(T,T,T,D,_);const Z=function At(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new tt(!0,0,f);let v=0,D=!1;const _=f.reduce((T,Z,le)=>{if("object"==typeof Z&&null!=Z){if(Z.outlets){const rt={};return Object.entries(Z.outlets).forEach(([Bt,Ct])=>{rt[Bt]="string"==typeof Ct?Ct.split("/"):Ct}),[...T,{outlets:rt}]}if(Z.segmentPath)return[...T,Z.segmentPath]}return"string"!=typeof Z?[...T,Z]:0===le?(Z.split("/").forEach((rt,Bt)=>{0==Bt&&"."===rt||(0==Bt&&""===rt?D=!0:".."===rt?v++:""!=rt&&T.push(rt))}),T):[...T,Z]},[]);return new tt(D,v,_)}(v);if(Z.toRoot())return mt(T,T,new He([],{}),D,_);const le=function Ae(f,v,D){if(f.isAbsolute)return new xt(v,!0,0);if(!D)return new xt(v,!1,NaN);if(null===D.parent)return new xt(D,!0,0);const _=oe(f.commands[0])?0:1;return function gt(f,v,D){let _=f,T=v,Z=D;for(;Z>T;){if(Z-=T,_=_.parent,!_)throw new r.vHH(4005,!1);T=_.segments.length}return new xt(_,!1,T-Z)}(D,D.segments.length-1+_,f.numberOfDoubleDots)}(Z,T,f),rt=le.processChildren?Kn(le.segmentGroup,le.index,Z.commands):fn(le.segmentGroup,le.index,Z.commands);return mt(T,le.segmentGroup,rt,D,_)}function oe(f){return"object"==typeof f&&null!=f&&!f.outlets&&!f.segmentPath}function De(f){return"object"==typeof f&&null!=f&&f.outlets}function mt(f,v,D,_,T){let le,Z={};_&&Object.entries(_).forEach(([Bt,Ct])=>{Z[Bt]=Array.isArray(Ct)?Ct.map(rn=>`${rn}`):`${Ct}`}),le=f===v?D:ct(f,v,D);const rt=E(k(le));return new lt(rt,Z,T)}function ct(f,v,D){const _={};return Object.entries(f.children).forEach(([T,Z])=>{_[T]=Z===v?D:ct(Z,v,D)}),new He(f.segments,_)}class tt{constructor(v,D,_){if(this.isAbsolute=v,this.numberOfDoubleDots=D,this.commands=_,v&&_.length>0&&oe(_[0]))throw new r.vHH(4003,!1);const T=_.find(De);if(T&&T!==Wn(_))throw new r.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xt{constructor(v,D,_){this.segmentGroup=v,this.processChildren=D,this.index=_}}function fn(f,v,D){if(f||(f=new He([],{})),0===f.segments.length&&f.hasChildren())return Kn(f,v,D);const _=function Pn(f,v,D){let _=0,T=v;const Z={match:!1,pathIndex:0,commandIndex:0};for(;T<f.segments.length;){if(_>=D.length)return Z;const le=f.segments[T],rt=D[_];if(De(rt))break;const Bt=`${rt}`,Ct=_<D.length-1?D[_+1]:null;if(T>0&&void 0===Bt)break;if(Bt&&Ct&&"object"==typeof Ct&&void 0===Ct.outlets){if(!Xn(Bt,Ct,le))return Z;_+=2}else{if(!Xn(Bt,{},le))return Z;_++}T++}return{match:!0,pathIndex:T,commandIndex:_}}(f,v,D),T=D.slice(_.commandIndex);if(_.match&&_.pathIndex<f.segments.length){const Z=new He(f.segments.slice(0,_.pathIndex),{});return Z.children[Pe]=new He(f.segments.slice(_.pathIndex),f.children),Kn(Z,0,T)}return _.match&&0===T.length?new He(f.segments,{}):_.match&&!f.hasChildren()?jn(f,v,D):_.match?Kn(f,0,T):jn(f,v,D)}function Kn(f,v,D){if(0===D.length)return new He(f.segments,{});{const _=function Lt(f){return De(f[0])?f[0].outlets:{[Pe]:f}}(D),T={};if(Object.keys(_).some(Z=>Z!==Pe)&&f.children[Pe]&&1===f.numberOfChildren&&0===f.children[Pe].segments.length){const Z=Kn(f.children[Pe],v,D);return new He(f.segments,Z.children)}return Object.entries(_).forEach(([Z,le])=>{"string"==typeof le&&(le=[le]),null!==le&&(T[Z]=fn(f.children[Z],v,le))}),Object.entries(f.children).forEach(([Z,le])=>{void 0===_[Z]&&(T[Z]=le)}),new He(f.segments,T)}}function jn(f,v,D){const _=f.segments.slice(0,v);let T=0;for(;T<D.length;){const Z=D[T];if(De(Z)){const Bt=mi(Z.outlets);return new He(_,Bt)}if(0===T&&oe(D[0])){_.push(new vt(f.segments[v].path,Vi(D[0]))),T++;continue}const le=De(Z)?Z.outlets[Pe]:`${Z}`,rt=T<D.length-1?D[T+1]:null;le&&rt&&oe(rt)?(_.push(new vt(le,Vi(rt))),T+=2):(_.push(new vt(le,{})),T++)}return new He(_,{})}function mi(f){const v={};return Object.entries(f).forEach(([D,_])=>{"string"==typeof _&&(_=[_]),null!==_&&(v[D]=jn(new He([],{}),0,_))}),v}function Vi(f){const v={};return Object.entries(f).forEach(([D,_])=>v[D]=`${_}`),v}function Xn(f,v,D){return f==D.path&&Ht(v,D.parameters)}const Mi="imperative";class li{constructor(v,D){this.id=v,this.url=D}}class xi extends li{constructor(v,D,_="imperative",T=null){super(v,D),this.type=0,this.navigationTrigger=_,this.restoredState=T}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ir extends li{constructor(v,D,_){super(v,D),this.urlAfterRedirects=_,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ji extends li{constructor(v,D,_,T){super(v,D),this.reason=_,this.code=T,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Jn extends li{constructor(v,D,_,T){super(v,D),this.reason=_,this.code=T,this.type=16}}class Ii extends li{constructor(v,D,_,T){super(v,D),this.error=_,this.target=T,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lr extends li{constructor(v,D,_,T){super(v,D),this.urlAfterRedirects=_,this.state=T,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lr extends li{constructor(v,D,_,T){super(v,D),this.urlAfterRedirects=_,this.state=T,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ws extends li{constructor(v,D,_,T,Z){super(v,D),this.urlAfterRedirects=_,this.state=T,this.shouldActivate=Z,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class qr extends li{constructor(v,D,_,T){super(v,D),this.urlAfterRedirects=_,this.state=T,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ys extends li{constructor(v,D,_,T){super(v,D),this.urlAfterRedirects=_,this.state=T,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xr{constructor(v){this.route=v,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Br{constructor(v){this.route=v,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ks{constructor(v){this.snapshot=v,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cr{constructor(v){this.snapshot=v,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jr{constructor(v){this.snapshot=v,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ni{constructor(v){this.snapshot=v,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $r{constructor(v,D,_){this.routerEvent=v,this.position=D,this.anchor=_,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class zr{}class _r{constructor(v){this.url=v}}class bs{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Qi,this.attachRef=null}}let Qi=(()=>{var f;class v{constructor(){this.contexts=new Map}onChildOutletCreated(_,T){const Z=this.getOrCreateContext(_);Z.outlet=T,this.contexts.set(_,Z)}onChildOutletDestroyed(_){const T=this.getContext(_);T&&(T.outlet=null,T.attachRef=null)}onOutletDeactivated(){const _=this.contexts;return this.contexts=new Map,_}onOutletReAttached(_){this.contexts=_}getOrCreateContext(_){let T=this.getContext(_);return T||(T=new bs,this.contexts.set(_,T)),T}getContext(_){return this.contexts.get(_)||null}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();class Zs{constructor(v){this._root=v}get root(){return this._root.value}parent(v){const D=this.pathFromRoot(v);return D.length>1?D[D.length-2]:null}children(v){const D=Rn(v,this._root);return D?D.children.map(_=>_.value):[]}firstChild(v){const D=Rn(v,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(v){const D=vi(v,this._root);return D.length<2?[]:D[D.length-2].children.map(T=>T.value).filter(T=>T!==v)}pathFromRoot(v){return vi(v,this._root).map(D=>D.value)}}function Rn(f,v){if(f===v.value)return v;for(const D of v.children){const _=Rn(f,D);if(_)return _}return null}function vi(f,v){if(f===v.value)return[v];for(const D of v.children){const _=vi(f,D);if(_.length)return _.unshift(v),_}return[]}class fi{constructor(v,D){this.value=v,this.children=D}toString(){return`TreeNode(${this.value})`}}function Ui(f){const v={};return f&&f.children.forEach(D=>v[D.value.outlet]=D),v}class Li extends Zs{constructor(v,D){super(v),this.snapshot=D,un(this,v)}toString(){return this.snapshot.toString()}}function Fs(f,v){const D=function ks(f,v){const le=new ri([],{},{},"",{},Pe,v,null,{});return new $t("",new fi(le,[]))}(0,v),_=new te.X([new vt("",{})]),T=new te.X({}),Z=new te.X({}),le=new te.X({}),rt=new te.X(""),Bt=new vr(_,T,le,rt,Z,Pe,v,D.root);return Bt.snapshot=D.root,new Li(new fi(Bt,[]),D)}class vr{constructor(v,D,_,T,Z,le,rt,Bt){this.urlSubject=v,this.paramsSubject=D,this.queryParamsSubject=_,this.fragmentSubject=T,this.dataSubject=Z,this.outlet=le,this.component=rt,this._futureSnapshot=Bt,this.title=this.dataSubject?.pipe((0,Ge.U)(Ct=>Ct[et]))??(0,ee.of)(void 0),this.url=v,this.params=D,this.queryParams=_,this.fragment=T,this.data=Z}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Ge.U)(v=>Rt(v)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ge.U)(v=>Rt(v)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Es(f,v="emptyOnly"){const D=f.pathFromRoot;let _=0;if("always"!==v)for(_=D.length-1;_>=1;){const T=D[_],Z=D[_-1];if(T.routeConfig&&""===T.routeConfig.path)_--;else{if(Z.component)break;_--}}return function hs(f){return f.reduce((v,D)=>({params:{...v.params,...D.params},data:{...v.data,...D.data},resolve:{...D.data,...v.resolve,...D.routeConfig?.data,...D._resolvedData}}),{params:{},data:{},resolve:{}})}(D.slice(_))}class ri{get title(){return this.data?.[et]}constructor(v,D,_,T,Z,le,rt,Bt,Ct){this.url=v,this.params=D,this.queryParams=_,this.fragment=T,this.data=Z,this.outlet=le,this.component=rt,this.routeConfig=Bt,this._resolve=Ct}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Rt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Rt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(_=>_.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $t extends Zs{constructor(v,D){super(D),this.url=v,un(this,D)}toString(){return ci(this._root)}}function un(f,v){v.value._routerState=f,v.children.forEach(D=>un(f,D))}function ci(f){const v=f.children.length>0?` { ${f.children.map(ci).join(", ")} } `:"";return`${f.value}${v}`}function Oi(f){if(f.snapshot){const v=f.snapshot,D=f._futureSnapshot;f.snapshot=D,Ht(v.queryParams,D.queryParams)||f.queryParamsSubject.next(D.queryParams),v.fragment!==D.fragment&&f.fragmentSubject.next(D.fragment),Ht(v.params,D.params)||f.paramsSubject.next(D.params),function gn(f,v){if(f.length!==v.length)return!1;for(let D=0;D<f.length;++D)if(!Ht(f[D],v[D]))return!1;return!0}(v.url,D.url)||f.urlSubject.next(D.url),Ht(v.data,D.data)||f.dataSubject.next(D.data)}else f.snapshot=f._futureSnapshot,f.dataSubject.next(f._futureSnapshot.data)}function ur(f,v){const D=Ht(f.params,v.params)&&function ze(f,v){return Qe(f,v)&&f.every((D,_)=>Ht(D.parameters,v[_].parameters))}(f.url,v.url);return D&&!(!f.parent!=!v.parent)&&(!f.parent||ur(f.parent,v.parent))}let gi=(()=>{var f;class v{constructor(){this.activated=null,this._activatedRoute=null,this.name=Pe,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.attachEvents=new r.vpe,this.detachEvents=new r.vpe,this.parentContexts=(0,r.f3M)(Qi),this.location=(0,r.f3M)(r.s_b),this.changeDetector=(0,r.f3M)(r.sBO),this.environmentInjector=(0,r.f3M)(r.lqb),this.inputBinder=(0,r.f3M)(di,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(_){if(_.name){const{firstChange:T,previousValue:Z}=_.name;if(T)return;this.isTrackedInParentContexts(Z)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Z)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(_){return this.parentContexts.getContext(_)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const _=this.parentContexts.getContext(this.name);_?.route&&(_.attachRef?this.attach(_.attachRef,_.route):this.activateWith(_.route,_.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new r.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new r.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new r.vHH(4012,!1);this.location.detach();const _=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(_.instance),_}attach(_,T){this.activated=_,this._activatedRoute=T,this.location.insert(_.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(_.instance)}deactivate(){if(this.activated){const _=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(_)}}activateWith(_,T){if(this.isActivated)throw new r.vHH(4013,!1);this._activatedRoute=_;const Z=this.location,rt=_.snapshot.component,Bt=this.parentContexts.getOrCreateContext(this.name).children,Ct=new Cr(_,Bt,Z.injector);this.activated=Z.createComponent(rt,{index:Z.length,injector:Ct,environmentInjector:T??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275dir=r.lG2({type:f,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[r.TTD]}),v})();class Cr{constructor(v,D,_){this.route=v,this.childContexts=D,this.parent=_}get(v,D){return v===vr?this.route:v===Qi?this.childContexts:this.parent.get(v,D)}}const di=new r.OlP("");let rr=(()=>{var f;class v{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(_){this.unsubscribeFromRouteData(_),this.subscribeToRouteData(_)}unsubscribeFromRouteData(_){this.outletDataSubscriptions.get(_)?.unsubscribe(),this.outletDataSubscriptions.delete(_)}subscribeToRouteData(_){const{activatedRoute:T}=_,Z=(0,fe.a)([T.queryParams,T.params,T.data]).pipe((0,at.w)(([le,rt,Bt],Ct)=>(Bt={...le,...rt,...Bt},0===Ct?(0,ee.of)(Bt):Promise.resolve(Bt)))).subscribe(le=>{if(!_.isActivated||!_.activatedComponentRef||_.activatedRoute!==T||null===T.component)return void this.unsubscribeFromRouteData(_);const rt=(0,r.qFp)(T.component);if(rt)for(const{templateName:Bt}of rt.inputs)_.activatedComponentRef.setInput(Bt,le[Bt]);else this.unsubscribeFromRouteData(_)});this.outletDataSubscriptions.set(_,Z)}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac}),v})();function nn(f,v,D){if(D&&f.shouldReuseRoute(v.value,D.value.snapshot)){const _=D.value;_._futureSnapshot=v.value;const T=function er(f,v,D){return v.children.map(_=>{for(const T of D.children)if(f.shouldReuseRoute(_.value,T.value.snapshot))return nn(f,_,T);return nn(f,_)})}(f,v,D);return new fi(_,T)}{if(f.shouldAttach(v.value)){const Z=f.retrieve(v.value);if(null!==Z){const le=Z.route;return le.value._futureSnapshot=v.value,le.children=v.children.map(rt=>nn(f,rt)),le}}const _=function Fe(f){return new vr(new te.X(f.url),new te.X(f.params),new te.X(f.queryParams),new te.X(f.fragment),new te.X(f.data),f.outlet,f.component,f)}(v.value),T=v.children.map(Z=>nn(f,Z));return new fi(_,T)}}const Se="ngNavigationCancelingError";function Ze(f,v){const{redirectTo:D,navigationBehaviorOptions:_}=S(v)?{redirectTo:v,navigationBehaviorOptions:void 0}:v,T=bt(!1,0,v);return T.url=D,T.navigationBehaviorOptions=_,T}function bt(f,v,D){const _=new Error("NavigationCancelingError: "+(f||""));return _[Se]=!0,_.cancellationCode=v,D&&(_.url=D),_}function Qt(f){return f&&f[Se]}let ln=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275cmp=r.Xpm({type:f,selectors:[["ng-component"]],standalone:!0,features:[r.jDz],decls:1,vars:0,template:function(_,T){1&_&&r._UZ(0,"router-outlet")},dependencies:[gi],encapsulation:2}),v})();function si(f){const v=f.children&&f.children.map(si),D=v?{...f,children:v}:{...f};return!D.component&&!D.loadComponent&&(v||D.loadChildren)&&D.outlet&&D.outlet!==Pe&&(D.component=ln),D}function _i(f){return f.outlet||Pe}function Wi(f){if(!f)return null;if(f.routeConfig?._injector)return f.routeConfig._injector;for(let v=f.parent;v;v=v.parent){const D=v.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class ui{constructor(v,D,_,T,Z){this.routeReuseStrategy=v,this.futureState=D,this.currState=_,this.forwardEvent=T,this.inputBindingEnabled=Z}activate(v){const D=this.futureState._root,_=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,_,v),Oi(this.futureState.root),this.activateChildRoutes(D,_,v)}deactivateChildRoutes(v,D,_){const T=Ui(D);v.children.forEach(Z=>{const le=Z.value.outlet;this.deactivateRoutes(Z,T[le],_),delete T[le]}),Object.values(T).forEach(Z=>{this.deactivateRouteAndItsChildren(Z,_)})}deactivateRoutes(v,D,_){const T=v.value,Z=D?D.value:null;if(T===Z)if(T.component){const le=_.getContext(T.outlet);le&&this.deactivateChildRoutes(v,D,le.children)}else this.deactivateChildRoutes(v,D,_);else Z&&this.deactivateRouteAndItsChildren(D,_)}deactivateRouteAndItsChildren(v,D){v.value.component&&this.routeReuseStrategy.shouldDetach(v.value.snapshot)?this.detachAndStoreRouteSubtree(v,D):this.deactivateRouteAndOutlet(v,D)}detachAndStoreRouteSubtree(v,D){const _=D.getContext(v.value.outlet),T=_&&v.value.component?_.children:D,Z=Ui(v);for(const le of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[le],T);if(_&&_.outlet){const le=_.outlet.detach(),rt=_.children.onOutletDeactivated();this.routeReuseStrategy.store(v.value.snapshot,{componentRef:le,route:v,contexts:rt})}}deactivateRouteAndOutlet(v,D){const _=D.getContext(v.value.outlet),T=_&&v.value.component?_.children:D,Z=Ui(v);for(const le of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[le],T);_&&(_.outlet&&(_.outlet.deactivate(),_.children.onOutletDeactivated()),_.attachRef=null,_.route=null)}activateChildRoutes(v,D,_){const T=Ui(D);v.children.forEach(Z=>{this.activateRoutes(Z,T[Z.value.outlet],_),this.forwardEvent(new Ni(Z.value.snapshot))}),v.children.length&&this.forwardEvent(new cr(v.value.snapshot))}activateRoutes(v,D,_){const T=v.value,Z=D?D.value:null;if(Oi(T),T===Z)if(T.component){const le=_.getOrCreateContext(T.outlet);this.activateChildRoutes(v,D,le.children)}else this.activateChildRoutes(v,D,_);else if(T.component){const le=_.getOrCreateContext(T.outlet);if(this.routeReuseStrategy.shouldAttach(T.snapshot)){const rt=this.routeReuseStrategy.retrieve(T.snapshot);this.routeReuseStrategy.store(T.snapshot,null),le.children.onOutletReAttached(rt.contexts),le.attachRef=rt.componentRef,le.route=rt.route.value,le.outlet&&le.outlet.attach(rt.componentRef,rt.route.value),Oi(rt.route.value),this.activateChildRoutes(v,null,le.children)}else{const rt=Wi(T.snapshot);le.attachRef=null,le.route=T,le.injector=rt,le.outlet&&le.outlet.activateWith(T,le.injector),this.activateChildRoutes(v,null,le.children)}}else this.activateChildRoutes(v,null,_)}}class Yi{constructor(v){this.path=v,this.route=this.path[this.path.length-1]}}class Gr{constructor(v,D){this.component=v,this.route=D}}function Mr(f,v,D){const _=f._root;return Wr(_,v?v._root:null,D,[_.value])}function ji(f,v){const D=Symbol(),_=v.get(f,D);return _===D?"function"!=typeof f||(0,r.Z0I)(f)?v.get(f):f:_}function Wr(f,v,D,_,T={canDeactivateChecks:[],canActivateChecks:[]}){const Z=Ui(v);return f.children.forEach(le=>{(function Qs(f,v,D,_,T={canDeactivateChecks:[],canActivateChecks:[]}){const Z=f.value,le=v?v.value:null,rt=D?D.getContext(f.value.outlet):null;if(le&&Z.routeConfig===le.routeConfig){const Bt=function qs(f,v,D){if("function"==typeof D)return D(f,v);switch(D){case"pathParamsChange":return!Qe(f.url,v.url);case"pathParamsOrQueryParamsChange":return!Qe(f.url,v.url)||!Ht(f.queryParams,v.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ur(f,v)||!Ht(f.queryParams,v.queryParams);default:return!ur(f,v)}}(le,Z,Z.routeConfig.runGuardsAndResolvers);Bt?T.canActivateChecks.push(new Yi(_)):(Z.data=le.data,Z._resolvedData=le._resolvedData),Wr(f,v,Z.component?rt?rt.children:null:D,_,T),Bt&&rt&&rt.outlet&&rt.outlet.isActivated&&T.canDeactivateChecks.push(new Gr(rt.outlet.component,le))}else le&&Ns(v,rt,T),T.canActivateChecks.push(new Yi(_)),Wr(f,null,Z.component?rt?rt.children:null:D,_,T)})(le,Z[le.value.outlet],D,_.concat([le.value]),T),delete Z[le.value.outlet]}),Object.entries(Z).forEach(([le,rt])=>Ns(rt,D.getContext(le),T)),T}function Ns(f,v,D){const _=Ui(f),T=f.value;Object.entries(_).forEach(([Z,le])=>{Ns(le,T.component?v?v.children.getContext(Z):null:v,D)}),D.canDeactivateChecks.push(new Gr(T.component&&v&&v.outlet&&v.outlet.isActivated?v.outlet.component:null,T))}function es(f){return"function"==typeof f}function R(f){return f instanceof ne.K||"EmptyError"===f?.name}const A=Symbol("INITIAL_VALUE");function X(){return(0,at.w)(f=>(0,fe.a)(f.map(v=>v.pipe((0,J.q)(1),(0,Te.O)(A)))).pipe((0,Ge.U)(v=>{for(const D of v)if(!0!==D){if(D===A)return A;if(!1===D||D instanceof lt)return D}return!0}),(0,he.h)(v=>v!==A),(0,J.q)(1)))}function Ls(f){return(0,me.z)((0,yt.b)(v=>{if(S(v))throw Ze(0,v)}),(0,Ge.U)(v=>!0===v))}class Ri{constructor(v){this.segmentGroup=v||null}}class Ds{constructor(v){this.urlTree=v}}function $i(f){return(0,Ie._)(new Ri(f))}function Yr(f){return(0,Ie._)(new Ds(f))}class Js{constructor(v,D){this.urlSerializer=v,this.urlTree=D}noMatchError(v){return new r.vHH(4002,!1)}lineralizeSegments(v,D){let _=[],T=D.root;for(;;){if(_=_.concat(T.segments),0===T.numberOfChildren)return(0,ee.of)(_);if(T.numberOfChildren>1||!T.children[Pe])return(0,Ie._)(new r.vHH(4e3,!1));T=T.children[Pe]}}applyRedirectCommands(v,D,_){return this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),v,_)}applyRedirectCreateUrlTree(v,D,_,T){const Z=this.createSegmentGroup(v,D.root,_,T);return new lt(Z,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(v,D){const _={};return Object.entries(v).forEach(([T,Z])=>{if("string"==typeof Z&&Z.startsWith(":")){const rt=Z.substring(1);_[T]=D[rt]}else _[T]=Z}),_}createSegmentGroup(v,D,_,T){const Z=this.createSegments(v,D.segments,_,T);let le={};return Object.entries(D.children).forEach(([rt,Bt])=>{le[rt]=this.createSegmentGroup(v,Bt,_,T)}),new He(Z,le)}createSegments(v,D,_,T){return D.map(Z=>Z.path.startsWith(":")?this.findPosParam(v,Z,T):this.findOrReturn(Z,_))}findPosParam(v,D,_){const T=_[D.path.substring(1)];if(!T)throw new r.vHH(4001,!1);return T}findOrReturn(v,D){let _=0;for(const T of D){if(T.path===v.path)return D.splice(_),T;_++}return v}}const ts={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function eo(f,v,D,_,T){const Z=ws(f,v,D);return Z.matched?(_=function Dn(f,v){return f.providers&&!f._injector&&(f._injector=(0,r.MMx)(f.providers,v,`Route: ${f.path}`)),f._injector??v}(v,_),function hr(f,v,D,_){const T=v.canMatch;if(!T||0===T.length)return(0,ee.of)(!0);const Z=T.map(le=>{const rt=ji(le,f);return In(function Ei(f){return f&&es(f.canMatch)}(rt)?rt.canMatch(v,D):f.runInContext(()=>rt(v,D)))});return(0,ee.of)(Z).pipe(X(),Ls())}(_,v,D).pipe((0,Ge.U)(le=>!0===le?Z:{...ts}))):(0,ee.of)(Z)}function ws(f,v,D){if(""===v.path)return"full"===v.pathMatch&&(f.hasChildren()||D.length>0)?{...ts}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const T=(v.matcher||Yt)(D,f,v);if(!T)return{...ts};const Z={};Object.entries(T.posParams??{}).forEach(([rt,Bt])=>{Z[rt]=Bt.path});const le=T.consumed.length>0?{...Z,...T.consumed[T.consumed.length-1].parameters}:Z;return{matched:!0,consumedSegments:T.consumed,remainingSegments:D.slice(T.consumed.length),parameters:le,positionalParamSegments:T.posParams??{}}}function hi(f,v,D,_){return D.length>0&&function ps(f,v,D){return D.some(_=>br(f,v,_)&&_i(_)!==Pe)}(f,D,_)?{segmentGroup:new He(v,Bs(_,new He(D,f.children))),slicedSegments:[]}:0===D.length&&function wr(f,v,D){return D.some(_=>br(f,v,_))}(f,D,_)?{segmentGroup:new He(f.segments,ia(f,0,D,_,f.children)),slicedSegments:D}:{segmentGroup:new He(f.segments,f.children),slicedSegments:D}}function ia(f,v,D,_,T){const Z={};for(const le of _)if(br(f,D,le)&&!T[_i(le)]){const rt=new He([],{});Z[_i(le)]=rt}return{...T,...Z}}function Bs(f,v){const D={};D[Pe]=v;for(const _ of f)if(""===_.path&&_i(_)!==Pe){const T=new He([],{});D[_i(_)]=T}return D}function br(f,v,D){return(!(f.hasChildren()||v.length>0)||"full"!==D.pathMatch)&&""===D.path}class xs{constructor(v,D,_,T,Z,le,rt){this.injector=v,this.configLoader=D,this.rootComponentType=_,this.config=T,this.urlTree=Z,this.paramsInheritanceStrategy=le,this.urlSerializer=rt,this.allowRedirects=!0,this.applyRedirects=new Js(this.urlSerializer,this.urlTree)}noMatchError(v){return new r.vHH(4002,!1)}recognize(){const v=hi(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,v,Pe).pipe(on(D=>{if(D instanceof Ds)return this.allowRedirects=!1,this.urlTree=D.urlTree,this.match(D.urlTree);throw D instanceof Ri?this.noMatchError(D):D}),(0,Ge.U)(D=>{const _=new ri([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Pe,this.rootComponentType,null,{}),T=new fi(_,D),Z=new $t("",T),le=function L(f,v,D=null,_=null){return K(ce(f),v,D,_)}(_,[],this.urlTree.queryParams,this.urlTree.fragment);return le.queryParams=this.urlTree.queryParams,Z.url=this.urlSerializer.serialize(le),this.inheritParamsAndData(Z._root),{state:Z,tree:le}}))}match(v){return this.processSegmentGroup(this.injector,this.config,v.root,Pe).pipe(on(_=>{throw _ instanceof Ri?this.noMatchError(_):_}))}inheritParamsAndData(v){const D=v.value,_=Es(D,this.paramsInheritanceStrategy);D.params=Object.freeze(_.params),D.data=Object.freeze(_.data),v.children.forEach(T=>this.inheritParamsAndData(T))}processSegmentGroup(v,D,_,T){return 0===_.segments.length&&_.hasChildren()?this.processChildren(v,D,_):this.processSegment(v,D,_,_.segments,T,!0)}processChildren(v,D,_){const T=[];for(const Z of Object.keys(_.children))"primary"===Z?T.unshift(Z):T.push(Z);return(0,N.D)(T).pipe((0,qe.b)(Z=>{const le=_.children[Z],rt=function dr(f,v){const D=f.filter(_=>_i(_)===v);return D.push(...f.filter(_=>_i(_)!==v)),D}(D,Z);return this.processSegmentGroup(v,rt,le,Z)}),function mn(f,v){return(0,Xt.e)(function cn(f,v,D,_,T){return(Z,le)=>{let rt=D,Bt=v,Ct=0;Z.subscribe((0,Gt.x)(le,rn=>{const b=Ct++;Bt=rt?f(Bt,rn,b):(rt=!0,rn),_&&le.next(Bt)},T&&(()=>{rt&&le.next(Bt),le.complete()})))}}(f,v,arguments.length>=2,!0))}((Z,le)=>(Z.push(...le),Z)),(0,Fn.d)(null),function $e(f,v){const D=arguments.length>=2;return _=>_.pipe(f?(0,he.h)((T,Z)=>f(T,Z,_)):Ve.y,Gn(1),D?(0,Fn.d)(v):(0,Le.T)(()=>new ne.K))}(),(0,_e.z)(Z=>{if(null===Z)return $i(_);const le=wo(Z);return function uo(f){f.sort((v,D)=>v.value.outlet===Pe?-1:D.value.outlet===Pe?1:v.value.outlet.localeCompare(D.value.outlet))}(le),(0,ee.of)(le)}))}processSegment(v,D,_,T,Z,le){return(0,N.D)(D).pipe((0,qe.b)(rt=>this.processSegmentAgainstRoute(rt._injector??v,D,rt,_,T,Z,le).pipe(on(Bt=>{if(Bt instanceof Ri)return(0,ee.of)(null);throw Bt}))),(0,Ke.P)(rt=>!!rt),on(rt=>{if(R(rt))return function to(f,v,D){return 0===v.length&&!f.children[D]}(_,T,Z)?(0,ee.of)([]):$i(_);throw rt}))}processSegmentAgainstRoute(v,D,_,T,Z,le,rt){return function ns(f,v,D,_){return!!(_i(f)===_||_!==Pe&&br(v,D,f))&&("**"===f.path||ws(v,f,D).matched)}(_,T,Z,le)?void 0===_.redirectTo?this.matchSegmentAgainstRoute(v,T,_,Z,le,rt):rt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(v,T,D,_,Z,le):$i(T):$i(T)}expandSegmentAgainstRouteUsingRedirect(v,D,_,T,Z,le){return"**"===T.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(v,_,T,le):this.expandRegularSegmentAgainstRouteUsingRedirect(v,D,_,T,Z,le)}expandWildCardWithParamsAgainstRouteUsingRedirect(v,D,_,T){const Z=this.applyRedirects.applyRedirectCommands([],_.redirectTo,{});return _.redirectTo.startsWith("/")?Yr(Z):this.applyRedirects.lineralizeSegments(_,Z).pipe((0,_e.z)(le=>{const rt=new He(le,{});return this.processSegment(v,D,rt,le,T,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(v,D,_,T,Z,le){const{matched:rt,consumedSegments:Bt,remainingSegments:Ct,positionalParamSegments:rn}=ws(D,T,Z);if(!rt)return $i(D);const b=this.applyRedirects.applyRedirectCommands(Bt,T.redirectTo,rn);return T.redirectTo.startsWith("/")?Yr(b):this.applyRedirects.lineralizeSegments(T,b).pipe((0,_e.z)(a=>this.processSegment(v,_,D,a.concat(Ct),le,!1)))}matchSegmentAgainstRoute(v,D,_,T,Z,le){let rt;if("**"===_.path){const Bt=T.length>0?Wn(T).parameters:{},Ct=new ri(T,Bt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ho(_),_i(_),_.component??_._loadedComponent??null,_,jr(_));rt=(0,ee.of)({snapshot:Ct,consumedSegments:[],remainingSegments:[]}),D.children={}}else rt=eo(D,_,T,v).pipe((0,Ge.U)(({matched:Bt,consumedSegments:Ct,remainingSegments:rn,parameters:b})=>Bt?{snapshot:new ri(Ct,b,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ho(_),_i(_),_.component??_._loadedComponent??null,_,jr(_)),consumedSegments:Ct,remainingSegments:rn}:null));return rt.pipe((0,at.w)(Bt=>null===Bt?$i(D):this.getChildConfig(v=_._injector??v,_,T).pipe((0,at.w)(({routes:Ct})=>{const rn=_._loadedInjector??v,{snapshot:b,consumedSegments:a,remainingSegments:c}=Bt,{segmentGroup:p,slicedSegments:w}=hi(D,a,c,Ct);if(0===w.length&&p.hasChildren())return this.processChildren(rn,Ct,p).pipe((0,Ge.U)(be=>null===be?null:[new fi(b,be)]));if(0===Ct.length&&0===w.length)return(0,ee.of)([new fi(b,[])]);const G=_i(_)===Z;return this.processSegment(rn,Ct,p,w,G?Pe:Z,!0).pipe((0,Ge.U)(be=>[new fi(b,be)]))}))))}getChildConfig(v,D,_){return D.children?(0,ee.of)({routes:D.children,injector:v}):D.loadChildren?void 0!==D._loadedRoutes?(0,ee.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function yr(f,v,D,_){const T=v.canLoad;if(void 0===T||0===T.length)return(0,ee.of)(!0);const Z=T.map(le=>{const rt=ji(le,f);return In(function Co(f){return f&&es(f.canLoad)}(rt)?rt.canLoad(v,D):f.runInContext(()=>rt(v,D)))});return(0,ee.of)(Z).pipe(X(),Ls())}(v,D,_).pipe((0,_e.z)(T=>T?this.configLoader.loadChildren(v,D).pipe((0,yt.b)(Z=>{D._loadedRoutes=Z.routes,D._loadedInjector=Z.injector})):function Xs(f){return(0,Ie._)(bt(!1,3))}())):(0,ee.of)({routes:[],injector:v})}}function fo(f){const v=f.value.routeConfig;return v&&""===v.path}function wo(f){const v=[],D=new Set;for(const _ of f){if(!fo(_)){v.push(_);continue}const T=v.find(Z=>_.value.routeConfig===Z.value.routeConfig);void 0!==T?(T.children.push(..._.children),D.add(T)):v.push(_)}for(const _ of D){const T=wo(_.children);v.push(new fi(_.value,T))}return v.filter(_=>!D.has(_))}function ho(f){return f.data||{}}function jr(f){return f.resolve||{}}function h(f){return"string"==typeof f.title||null===f.title}function I(f){return(0,at.w)(v=>{const D=f(v);return D?(0,N.D)(D).pipe((0,Ge.U)(()=>v)):(0,ee.of)(v)})}const ue=new r.OlP("ROUTES");let x=(()=>{var f;class v{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,r.f3M)(r.Sil)}loadComponent(_){if(this.componentLoaders.get(_))return this.componentLoaders.get(_);if(_._loadedComponent)return(0,ee.of)(_._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(_);const T=In(_.loadComponent()).pipe((0,Ge.U)(ke),(0,yt.b)(le=>{this.onLoadEndListener&&this.onLoadEndListener(_),_._loadedComponent=le}),(0,Je.x)(()=>{this.componentLoaders.delete(_)})),Z=new nt.c(T,()=>new we.x).pipe((0,ht.x)());return this.componentLoaders.set(_,Z),Z}loadChildren(_,T){if(this.childrenLoaders.get(T))return this.childrenLoaders.get(T);if(T._loadedRoutes)return(0,ee.of)({routes:T._loadedRoutes,injector:T._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(T);const le=this.loadModuleFactoryOrRoutes(T.loadChildren).pipe((0,Ge.U)(Bt=>{this.onLoadEndListener&&this.onLoadEndListener(T);let Ct,rn;return Array.isArray(Bt)?rn=Bt:(Ct=Bt.create(_).injector,rn=Ct.get(ue,[],r.XFs.Self|r.XFs.Optional).flat()),{routes:rn.map(si),injector:Ct}}),(0,Je.x)(()=>{this.childrenLoaders.delete(T)})),rt=new nt.c(le,()=>new we.x).pipe((0,ht.x)());return this.childrenLoaders.set(T,rt),rt}loadModuleFactoryOrRoutes(_){return In(_()).pipe((0,Ge.U)(ke),(0,_e.z)(T=>T instanceof r.YKP||Array.isArray(T)?(0,ee.of)(T):(0,N.D)(this.compiler.compileModuleAsync(T))))}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();function ke(f){return function re(f){return f&&"object"==typeof f&&"default"in f}(f)?f.default:f}let Et=(()=>{var f;class v{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new we.x,this.transitionAbortSubject=new we.x,this.configLoader=(0,r.f3M)(x),this.environmentInjector=(0,r.f3M)(r.lqb),this.urlSerializer=(0,r.f3M)(Mt),this.rootContexts=(0,r.f3M)(Qi),this.inputBindingEnabled=null!==(0,r.f3M)(di,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,ee.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Z=>this.events.next(new Br(Z)),this.configLoader.onLoadStartListener=Z=>this.events.next(new Xr(Z))}complete(){this.transitions?.complete()}handleNavigationRequest(_){const T=++this.navigationId;this.transitions?.next({...this.transitions.value,..._,id:T})}setupNavigations(_,T,Z){return this.transitions=new te.X({id:0,currentUrlTree:T,currentRawUrl:T,currentBrowserUrl:T,extractedUrl:_.urlHandlingStrategy.extract(T),urlAfterRedirects:_.urlHandlingStrategy.extract(T),rawUrl:T,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Mi,restoredState:null,currentSnapshot:Z.snapshot,targetSnapshot:null,currentRouterState:Z,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,he.h)(le=>0!==le.id),(0,Ge.U)(le=>({...le,extractedUrl:_.urlHandlingStrategy.extract(le.rawUrl)})),(0,at.w)(le=>{this.currentTransition=le;let rt=!1,Bt=!1;return(0,ee.of)(le).pipe((0,yt.b)(Ct=>{this.currentNavigation={id:Ct.id,initialUrl:Ct.rawUrl,extractedUrl:Ct.extractedUrl,trigger:Ct.source,extras:Ct.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,at.w)(Ct=>{const rn=Ct.currentBrowserUrl.toString(),b=!_.navigated||Ct.extractedUrl.toString()!==rn||rn!==Ct.currentUrlTree.toString();if(!b&&"reload"!==(Ct.extras.onSameUrlNavigation??_.onSameUrlNavigation)){const c="";return this.events.next(new Jn(Ct.id,this.urlSerializer.serialize(Ct.rawUrl),c,0)),Ct.resolve(null),Ne.E}if(_.urlHandlingStrategy.shouldProcessUrl(Ct.rawUrl))return(0,ee.of)(Ct).pipe((0,at.w)(c=>{const p=this.transitions?.getValue();return this.events.next(new xi(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),p!==this.transitions?.getValue()?Ne.E:Promise.resolve(c)}),function Uo(f,v,D,_,T,Z){return(0,_e.z)(le=>function Vs(f,v,D,_,T,Z,le="emptyOnly"){return new xs(f,v,D,_,T,le,Z).recognize()}(f,v,D,_,le.extractedUrl,T,Z).pipe((0,Ge.U)(({state:rt,tree:Bt})=>({...le,targetSnapshot:rt,urlAfterRedirects:Bt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,_.config,this.urlSerializer,_.paramsInheritanceStrategy),(0,yt.b)(c=>{le.targetSnapshot=c.targetSnapshot,le.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects};const p=new lr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p)}));if(b&&_.urlHandlingStrategy.shouldProcessUrl(Ct.currentRawUrl)){const{id:c,extractedUrl:p,source:w,restoredState:G,extras:be}=Ct,Ee=new xi(c,this.urlSerializer.serialize(p),w,G);this.events.next(Ee);const it=Fs(0,this.rootComponentType).snapshot;return this.currentTransition=le={...Ct,targetSnapshot:it,urlAfterRedirects:p,extras:{...be,skipLocationChange:!1,replaceUrl:!1}},(0,ee.of)(le)}{const c="";return this.events.next(new Jn(Ct.id,this.urlSerializer.serialize(Ct.extractedUrl),c,1)),Ct.resolve(null),Ne.E}}),(0,yt.b)(Ct=>{const rn=new Lr(Ct.id,this.urlSerializer.serialize(Ct.extractedUrl),this.urlSerializer.serialize(Ct.urlAfterRedirects),Ct.targetSnapshot);this.events.next(rn)}),(0,Ge.U)(Ct=>(this.currentTransition=le={...Ct,guards:Mr(Ct.targetSnapshot,Ct.currentSnapshot,this.rootContexts)},le)),function P(f,v){return(0,_e.z)(D=>{const{targetSnapshot:_,currentSnapshot:T,guards:{canActivateChecks:Z,canDeactivateChecks:le}}=D;return 0===le.length&&0===Z.length?(0,ee.of)({...D,guardsResult:!0}):function pe(f,v,D,_){return(0,N.D)(f).pipe((0,_e.z)(T=>function Hi(f,v,D,_,T){const Z=v&&v.routeConfig?v.routeConfig.canDeactivate:null;if(!Z||0===Z.length)return(0,ee.of)(!0);const le=Z.map(rt=>{const Bt=Wi(v)??T,Ct=ji(rt,Bt);return In(function ta(f){return f&&es(f.canDeactivate)}(Ct)?Ct.canDeactivate(f,v,D,_):Bt.runInContext(()=>Ct(f,v,D,_))).pipe((0,Ke.P)())});return(0,ee.of)(le).pipe(X())}(T.component,T.route,D,v,_)),(0,Ke.P)(T=>!0!==T,!0))}(le,_,T,f).pipe((0,_e.z)(rt=>rt&&function Cs(f){return"boolean"==typeof f}(rt)?function kt(f,v,D,_){return(0,N.D)(v).pipe((0,qe.b)(T=>(0,H.z)(function Ki(f,v){return null!==f&&v&&v(new Ks(f)),(0,ee.of)(!0)}(T.route.parent,_),function _n(f,v){return null!==f&&v&&v(new Jr(f)),(0,ee.of)(!0)}(T.route,_),function qi(f,v,D){const _=v[v.length-1],Z=v.slice(0,v.length-1).reverse().map(le=>function fr(f){const v=f.routeConfig?f.routeConfig.canActivateChild:null;return v&&0!==v.length?{node:f,guards:v}:null}(le)).filter(le=>null!==le).map(le=>(0,q.P)(()=>{const rt=le.guards.map(Bt=>{const Ct=Wi(le.node)??D,rn=ji(Bt,Ct);return In(function Do(f){return f&&es(f.canActivateChild)}(rn)?rn.canActivateChild(_,f):Ct.runInContext(()=>rn(_,f))).pipe((0,Ke.P)())});return(0,ee.of)(rt).pipe(X())}));return(0,ee.of)(Z).pipe(X())}(f,T.path,D),function Ir(f,v,D){const _=v.routeConfig?v.routeConfig.canActivate:null;if(!_||0===_.length)return(0,ee.of)(!0);const T=_.map(Z=>(0,q.P)(()=>{const le=Wi(v)??D,rt=ji(Z,le);return In(function Bo(f){return f&&es(f.canActivate)}(rt)?rt.canActivate(v,f):le.runInContext(()=>rt(v,f))).pipe((0,Ke.P)())}));return(0,ee.of)(T).pipe(X())}(f,T.route,D))),(0,Ke.P)(T=>!0!==T,!0))}(_,Z,f,v):(0,ee.of)(rt)),(0,Ge.U)(rt=>({...D,guardsResult:rt})))})}(this.environmentInjector,Ct=>this.events.next(Ct)),(0,yt.b)(Ct=>{if(le.guardsResult=Ct.guardsResult,S(Ct.guardsResult))throw Ze(0,Ct.guardsResult);const rn=new Ws(Ct.id,this.urlSerializer.serialize(Ct.extractedUrl),this.urlSerializer.serialize(Ct.urlAfterRedirects),Ct.targetSnapshot,!!Ct.guardsResult);this.events.next(rn)}),(0,he.h)(Ct=>!!Ct.guardsResult||(this.cancelNavigationTransition(Ct,"",3),!1)),I(Ct=>{if(Ct.guards.canActivateChecks.length)return(0,ee.of)(Ct).pipe((0,yt.b)(rn=>{const b=new qr(rn.id,this.urlSerializer.serialize(rn.extractedUrl),this.urlSerializer.serialize(rn.urlAfterRedirects),rn.targetSnapshot);this.events.next(b)}),(0,at.w)(rn=>{let b=!1;return(0,ee.of)(rn).pipe(function no(f,v){return(0,_e.z)(D=>{const{targetSnapshot:_,guards:{canActivateChecks:T}}=D;if(!T.length)return(0,ee.of)(D);let Z=0;return(0,N.D)(T).pipe((0,qe.b)(le=>function io(f,v,D,_){const T=f.routeConfig,Z=f._resolve;return void 0!==T?.title&&!h(T)&&(Z[et]=T.title),function jo(f,v,D,_){const T=function ms(f){return[...Object.keys(f),...Object.getOwnPropertySymbols(f)]}(f);if(0===T.length)return(0,ee.of)({});const Z={};return(0,N.D)(T).pipe((0,_e.z)(le=>function ro(f,v,D,_){const T=Wi(v)??_,Z=ji(f,T);return In(Z.resolve?Z.resolve(v,D):T.runInContext(()=>Z(v,D)))}(f[le],v,D,_).pipe((0,Ke.P)(),(0,yt.b)(rt=>{Z[le]=rt}))),Gn(1),(0,ve.h)(Z),on(le=>R(le)?Ne.E:(0,Ie._)(le)))}(Z,f,v,_).pipe((0,Ge.U)(le=>(f._resolvedData=le,f.data=Es(f,D).resolve,T&&h(T)&&(f.data[et]=T.title),null)))}(le.route,_,f,v)),(0,yt.b)(()=>Z++),Gn(1),(0,_e.z)(le=>Z===T.length?(0,ee.of)(D):Ne.E))})}(_.paramsInheritanceStrategy,this.environmentInjector),(0,yt.b)({next:()=>b=!0,complete:()=>{b||this.cancelNavigationTransition(rn,"",2)}}))}),(0,yt.b)(rn=>{const b=new Ys(rn.id,this.urlSerializer.serialize(rn.extractedUrl),this.urlSerializer.serialize(rn.urlAfterRedirects),rn.targetSnapshot);this.events.next(b)}))}),I(Ct=>{const rn=b=>{const a=[];b.routeConfig?.loadComponent&&!b.routeConfig._loadedComponent&&a.push(this.configLoader.loadComponent(b.routeConfig).pipe((0,yt.b)(c=>{b.component=c}),(0,Ge.U)(()=>{})));for(const c of b.children)a.push(...rn(c));return a};return(0,fe.a)(rn(Ct.targetSnapshot.root)).pipe((0,Fn.d)(),(0,J.q)(1))}),I(()=>this.afterPreactivation()),(0,Ge.U)(Ct=>{const rn=function Vr(f,v,D){const _=nn(f,v._root,D?D._root:void 0);return new Li(_,v)}(_.routeReuseStrategy,Ct.targetSnapshot,Ct.currentRouterState);return this.currentTransition=le={...Ct,targetRouterState:rn},le}),(0,yt.b)(()=>{this.events.next(new zr)}),((f,v,D,_)=>(0,Ge.U)(T=>(new ui(v,T.targetRouterState,T.currentRouterState,D,_).activate(f),T)))(this.rootContexts,_.routeReuseStrategy,Ct=>this.events.next(Ct),this.inputBindingEnabled),(0,J.q)(1),(0,yt.b)({next:Ct=>{rt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ir(Ct.id,this.urlSerializer.serialize(Ct.extractedUrl),this.urlSerializer.serialize(Ct.urlAfterRedirects))),_.titleStrategy?.updateTitle(Ct.targetRouterState.snapshot),Ct.resolve(!0)},complete:()=>{rt=!0}}),(0,Dt.R)(this.transitionAbortSubject.pipe((0,yt.b)(Ct=>{throw Ct}))),(0,Je.x)(()=>{rt||Bt||this.cancelNavigationTransition(le,"",1),this.currentNavigation?.id===le.id&&(this.currentNavigation=null)}),on(Ct=>{if(Bt=!0,Qt(Ct))this.events.next(new Ji(le.id,this.urlSerializer.serialize(le.extractedUrl),Ct.message,Ct.cancellationCode)),function Ft(f){return Qt(f)&&S(f.url)}(Ct)?this.events.next(new _r(Ct.url)):le.resolve(!1);else{this.events.next(new Ii(le.id,this.urlSerializer.serialize(le.extractedUrl),Ct,le.targetSnapshot??void 0));try{le.resolve(_.errorHandler(Ct))}catch(rn){le.reject(rn)}}return Ne.E}))}))}cancelNavigationTransition(_,T,Z){const le=new Ji(_.id,this.urlSerializer.serialize(_.extractedUrl),T,Z);this.events.next(le),_.resolve(!1)}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();function jt(f){return f!==Mi}let Ln=(()=>{var f;class v{buildTitle(_){let T,Z=_.root;for(;void 0!==Z;)T=this.getResolvedTitleForRoute(Z)??T,Z=Z.children.find(le=>le.outlet===Pe);return T}getResolvedTitleForRoute(_){return _.data[et]}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:function(){return(0,r.f3M)(ei)},providedIn:"root"}),v})(),ei=(()=>{var f;class v extends Ln{constructor(_){super(),this.title=_}updateTitle(_){const T=this.buildTitle(_);void 0!==T&&this.title.setTitle(T)}}return(f=v).\u0275fac=function(_){return new(_||f)(r.LFG(ut.Dx))},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})(),Qn=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:function(){return(0,r.f3M)(Si)},providedIn:"root"}),v})();class Nn{shouldDetach(v){return!1}store(v,D){}shouldAttach(v){return!1}retrieve(v){return null}shouldReuseRoute(v,D){return v.routeConfig===D.routeConfig}}let Si=(()=>{var f;class v extends Nn{}return(f=v).\u0275fac=function(){let D;return function(T){return(D||(D=r.n5z(f)))(T||f)}}(),f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();const ii=new r.OlP("",{providedIn:"root",factory:()=>({})});let Bi=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:function(){return(0,r.f3M)(xr)},providedIn:"root"}),v})(),xr=(()=>{var f;class v{shouldProcessUrl(_){return!0}extract(_){return _}merge(_,T){return _}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();var pr=function(f){return f[f.COMPLETE=0]="COMPLETE",f[f.FAILED=1]="FAILED",f[f.REDIRECTING=2]="REDIRECTING",f}(pr||{});function Ar(f,v){f.events.pipe((0,he.h)(D=>D instanceof ir||D instanceof Ji||D instanceof Ii||D instanceof Jn),(0,Ge.U)(D=>D instanceof ir||D instanceof Jn?pr.COMPLETE:D instanceof Ji&&(0===D.code||1===D.code)?pr.REDIRECTING:pr.FAILED),(0,he.h)(D=>D!==pr.REDIRECTING),(0,J.q)(1)).subscribe(()=>{v()})}function Or(f){throw f}function Zi(f,v,D){return v.parse("/")}const is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let $n=(()=>{var f;class v{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,r.f3M)(r.c2e),this.isNgZoneEnabled=!1,this._events=new we.x,this.options=(0,r.f3M)(ii,{optional:!0})||{},this.pendingTasks=(0,r.f3M)(r.HDt),this.errorHandler=this.options.errorHandler||Or,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Zi,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,r.f3M)(Bi),this.routeReuseStrategy=(0,r.f3M)(Qn),this.titleStrategy=(0,r.f3M)(Ln),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,r.f3M)(ue,{optional:!0})?.flat()??[],this.navigationTransitions=(0,r.f3M)(Et),this.urlSerializer=(0,r.f3M)(Mt),this.location=(0,r.f3M)(Xe.Ye),this.componentInputBindingEnabled=!!(0,r.f3M)(di,{optional:!0}),this.eventsSubscription=new Be.w0,this.isNgZoneEnabled=(0,r.f3M)(r.R0b)instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new lt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Fs(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(_=>{this.lastSuccessfulId=_.id,this.currentPageId=this.browserPageId},_=>{this.console.warn(`Unhandled Navigation Error: ${_}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const _=this.navigationTransitions.events.subscribe(T=>{try{const{currentTransition:Z}=this.navigationTransitions;if(null===Z)return void(so(T)&&this._events.next(T));if(T instanceof xi)jt(Z.source)&&(this.browserUrlTree=Z.extractedUrl);else if(T instanceof Jn)this.rawUrlTree=Z.rawUrl;else if(T instanceof lr){if("eager"===this.urlUpdateStrategy){if(!Z.extras.skipLocationChange){const le=this.urlHandlingStrategy.merge(Z.urlAfterRedirects,Z.rawUrl);this.setBrowserUrl(le,Z)}this.browserUrlTree=Z.urlAfterRedirects}}else if(T instanceof zr)this.currentUrlTree=Z.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Z.urlAfterRedirects,Z.rawUrl),this.routerState=Z.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Z.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Z),this.browserUrlTree=Z.urlAfterRedirects);else if(T instanceof Ji)0!==T.code&&1!==T.code&&(this.navigated=!0),(3===T.code||2===T.code)&&this.restoreHistory(Z);else if(T instanceof _r){const le=this.urlHandlingStrategy.merge(T.url,Z.currentRawUrl),rt={skipLocationChange:Z.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jt(Z.source)};this.scheduleNavigation(le,Mi,null,rt,{resolve:Z.resolve,reject:Z.reject,promise:Z.promise})}T instanceof Ii&&this.restoreHistory(Z,!0),T instanceof ir&&(this.navigated=!0),so(T)&&this._events.next(T)}catch(Z){this.navigationTransitions.transitionAbortSubject.next(Z)}});this.eventsSubscription.add(_)}resetRootComponentType(_){this.routerState.root.component=_,this.navigationTransitions.rootComponentType=_}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const _=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Mi,_)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(_=>{const T="popstate"===_.type?"popstate":"hashchange";"popstate"===T&&setTimeout(()=>{this.navigateToSyncWithBrowser(_.url,T,_.state)},0)}))}navigateToSyncWithBrowser(_,T,Z){const le={replaceUrl:!0},rt=Z?.navigationId?Z:null;if(Z){const Ct={...Z};delete Ct.navigationId,delete Ct.\u0275routerPageId,0!==Object.keys(Ct).length&&(le.state=Ct)}const Bt=this.parseUrl(_);this.scheduleNavigation(Bt,T,rt,le)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(_){this.config=_.map(si),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(_,T={}){const{relativeTo:Z,queryParams:le,fragment:rt,queryParamsHandling:Bt,preserveFragment:Ct}=T,rn=Ct?this.currentUrlTree.fragment:rt;let a,b=null;switch(Bt){case"merge":b={...this.currentUrlTree.queryParams,...le};break;case"preserve":b=this.currentUrlTree.queryParams;break;default:b=le||null}null!==b&&(b=this.removeEmptyProps(b));try{a=ce(Z?Z.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof _[0]||!_[0].startsWith("/"))&&(_=[]),a=this.currentUrlTree.root}return K(a,_,b,rn??null)}navigateByUrl(_,T={skipLocationChange:!1}){const Z=S(_)?_:this.parseUrl(_),le=this.urlHandlingStrategy.merge(Z,this.rawUrlTree);return this.scheduleNavigation(le,Mi,null,T)}navigate(_,T={skipLocationChange:!1}){return function xo(f){for(let v=0;v<f.length;v++)if(null==f[v])throw new r.vHH(4008,!1)}(_),this.navigateByUrl(this.createUrlTree(_,T),T)}serializeUrl(_){return this.urlSerializer.serialize(_)}parseUrl(_){let T;try{T=this.urlSerializer.parse(_)}catch(Z){T=this.malformedUriErrorHandler(Z,this.urlSerializer,_)}return T}isActive(_,T){let Z;if(Z=!0===T?{...is}:!1===T?{...gs}:T,S(_))return Oe(this.currentUrlTree,_,Z);const le=this.parseUrl(_);return Oe(this.currentUrlTree,le,Z)}removeEmptyProps(_){return Object.keys(_).reduce((T,Z)=>{const le=_[Z];return null!=le&&(T[Z]=le),T},{})}scheduleNavigation(_,T,Z,le,rt){if(this.disposed)return Promise.resolve(!1);let Bt,Ct,rn;rt?(Bt=rt.resolve,Ct=rt.reject,rn=rt.promise):rn=new Promise((a,c)=>{Bt=a,Ct=c});const b=this.pendingTasks.add();return Ar(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(b))}),this.navigationTransitions.handleNavigationRequest({source:T,restoredState:Z,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:_,extras:le,resolve:Bt,reject:Ct,promise:rn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),rn.catch(a=>Promise.reject(a))}setBrowserUrl(_,T){const Z=this.urlSerializer.serialize(_);if(this.location.isCurrentPathEqualTo(Z)||T.extras.replaceUrl){const rt={...T.extras.state,...this.generateNgRouterState(T.id,this.browserPageId)};this.location.replaceState(Z,"",rt)}else{const le={...T.extras.state,...this.generateNgRouterState(T.id,this.browserPageId+1)};this.location.go(Z,"",le)}}restoreHistory(_,T=!1){if("computed"===this.canceledNavigationResolution){const le=this.currentPageId-this.browserPageId;0!==le?this.location.historyGo(le):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===le&&(this.resetState(_),this.browserUrlTree=_.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(T&&this.resetState(_),this.resetUrlToCurrentUrlTree())}resetState(_){this.routerState=_.currentRouterState,this.currentUrlTree=_.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,_.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(_,T){return"computed"===this.canceledNavigationResolution?{navigationId:_,\u0275routerPageId:T}:{navigationId:_}}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();function so(f){return!(f instanceof zr||f instanceof _r)}class As{}let Ao=(()=>{var f;class v{constructor(_,T,Z,le,rt){this.router=_,this.injector=Z,this.preloadingStrategy=le,this.loader=rt}setUpPreloading(){this.subscription=this.router.events.pipe((0,he.h)(_=>_ instanceof ir),(0,qe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(_,T){const Z=[];for(const le of T){le.providers&&!le._injector&&(le._injector=(0,r.MMx)(le.providers,_,`Route: ${le.path}`));const rt=le._injector??_,Bt=le._loadedInjector??rt;(le.loadChildren&&!le._loadedRoutes&&void 0===le.canLoad||le.loadComponent&&!le._loadedComponent)&&Z.push(this.preloadConfig(rt,le)),(le.children||le._loadedRoutes)&&Z.push(this.processRoutes(Bt,le.children??le._loadedRoutes))}return(0,N.D)(Z).pipe((0,Ue.J)())}preloadConfig(_,T){return this.preloadingStrategy.preload(T,()=>{let Z;Z=T.loadChildren&&void 0===T.canLoad?this.loader.loadChildren(_,T):(0,ee.of)(null);const le=Z.pipe((0,_e.z)(rt=>null===rt?(0,ee.of)(void 0):(T._loadedRoutes=rt.routes,T._loadedInjector=rt.injector,this.processRoutes(rt.injector??_,rt.routes))));if(T.loadComponent&&!T._loadedComponent){const rt=this.loader.loadComponent(T);return(0,N.D)([le,rt]).pipe((0,Ue.J)())}return le})}}return(f=v).\u0275fac=function(_){return new(_||f)(r.LFG($n),r.LFG(r.Sil),r.LFG(r.lqb),r.LFG(As),r.LFG(x))},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();const To=new r.OlP("");let _s=(()=>{var f;class v{constructor(_,T,Z,le,rt={}){this.urlSerializer=_,this.transitions=T,this.viewportScroller=Z,this.zone=le,this.options=rt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},rt.scrollPositionRestoration=rt.scrollPositionRestoration||"disabled",rt.anchorScrolling=rt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(_=>{_ instanceof xi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=_.navigationTrigger,this.restoredId=_.restoredState?_.restoredState.navigationId:0):_ instanceof ir?(this.lastId=_.id,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.urlAfterRedirects).fragment)):_ instanceof Jn&&0===_.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(_=>{_ instanceof $r&&(_.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(_.position):_.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(_.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(_,T){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new $r(_,"popstate"===this.lastSource?this.store[this.restoredId]:null,T))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(f=v).\u0275fac=function(_){r.$Z()},f.\u0275prov=r.Yz7({token:f,factory:f.\u0275fac}),v})();function rs(f,v){return{\u0275kind:f,\u0275providers:v}}function Ho(){const f=(0,r.f3M)(r.zs3);return v=>{const D=f.get(r.z2F);if(v!==D.components[0])return;const _=f.get($n),T=f.get(ba);1===f.get(go)&&_.initialNavigation(),f.get(Ts,null,r.XFs.Optional)?.setUpPreloading(),f.get(To,null,r.XFs.Optional)?.init(),_.resetRootComponentType(D.componentTypes[0]),T.closed||(T.next(),T.complete(),T.unsubscribe())}}const ba=new r.OlP("",{factory:()=>new we.x}),go=new r.OlP("",{providedIn:"root",factory:()=>1}),Ts=new r.OlP("");function So(f){return rs(0,[{provide:Ts,useExisting:Ao},{provide:As,useExisting:f}])}const qn=new r.OlP("ROUTER_FORROOT_GUARD"),Us=[Xe.Ye,{provide:Mt,useClass:en},$n,Qi,{provide:vr,useFactory:function po(f){return f.routerState.root},deps:[$n]},x,[]];function la(){return new r.PXZ("Router",$n)}let Gi=(()=>{var f;class v{constructor(_){}static forRoot(_,T){return{ngModule:v,providers:[Us,[],{provide:ue,multi:!0,useValue:_},{provide:qn,useFactory:zo,deps:[[$n,new r.FiY,new r.tp0]]},{provide:ii,useValue:T||{}},T?.useHash?{provide:Xe.S$,useClass:Xe.Do}:{provide:Xe.S$,useClass:Xe.b0},{provide:To,useFactory:()=>{const f=(0,r.f3M)(Xe.EM),v=(0,r.f3M)(r.R0b),D=(0,r.f3M)(ii),_=(0,r.f3M)(Et),T=(0,r.f3M)(Mt);return D.scrollOffset&&f.setOffset(D.scrollOffset),new _s(T,_,f,v,D)}},T?.preloadingStrategy?So(T.preloadingStrategy).\u0275providers:[],{provide:r.PXZ,multi:!0,useFactory:la},T?.initialNavigation?Mo(T):[],T?.bindToComponentInputs?rs(8,[rr,{provide:di,useExisting:rr}]).\u0275providers:[],[{provide:ua,useFactory:Ho},{provide:r.tb,multi:!0,useExisting:ua}]]}}static forChild(_){return{ngModule:v,providers:[{provide:ue,multi:!0,useValue:_}]}}}return(f=v).\u0275fac=function(_){return new(_||f)(r.LFG(qn,8))},f.\u0275mod=r.oAB({type:f}),f.\u0275inj=r.cJS({}),v})();function zo(f){return"guarded"}function Mo(f){return["disabled"===f.initialNavigation?rs(3,[{provide:r.ip1,multi:!0,useFactory:()=>{const v=(0,r.f3M)($n);return()=>{v.setUpLocationChangeListener()}}},{provide:go,useValue:2}]).\u0275providers:[],"enabledBlocking"===f.initialNavigation?rs(2,[{provide:go,useValue:0},{provide:r.ip1,multi:!0,deps:[r.zs3],useFactory:v=>{const D=v.get(Xe.V_,Promise.resolve());return()=>D.then(()=>new Promise(_=>{const T=v.get($n),Z=v.get(ba);Ar(T,()=>{_(!0)}),v.get(Et).afterPreactivation=()=>(_(!0),Z.closed?(0,ee.of)(void 0):Z),T.initialNavigation()}))}}]).\u0275providers:[]]}const ua=new r.OlP("")},3106:(It,Me,g)=>{g.d(Me,{Z:()=>nt});var r=g(9058),u=g(4537),B=g(534),$=g(7879);class N{constructor(Be,Xe){this._delegate=Be,this.firebase=Xe,(0,B._addComponent)(Be,new u.wA("app-compat",()=>this,"PUBLIC")),this.container=Be.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Be){this._delegate.automaticDataCollectionEnabled=Be}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(Be=>{this._delegate.checkDestroyed(),Be()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,B.deleteApp)(this._delegate)))}_getService(Be,Xe=B._DEFAULT_ENTRY_NAME){var Ge;this._delegate.checkDestroyed();const at=this._delegate.container.getProvider(Be);return!at.isInitialized()&&"EXPLICIT"===(null===(Ge=at.getComponent())||void 0===Ge?void 0:Ge.instantiationMode)&&at.initialize(),at.getImmediate({identifier:Xe})}_removeServiceInstance(Be,Xe=B._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(Be).clearInstance(Xe)}_addComponent(Be){(0,B._addComponent)(this._delegate,Be)}_addOrOverwriteComponent(Be){(0,B._addOrOverwriteComponent)(this._delegate,Be)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const te=new r.LL("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),H=function ne(){const we=function fe(we){const Be={},Xe={__esModule:!0,initializeApp:function J(Ke,qe={}){const yt=B.initializeApp(Ke,qe);if((0,r.r3)(Be,yt.name))return Be[yt.name];const Ut=new we(yt,Xe);return Be[yt.name]=Ut,Ut},app:at,registerVersion:B.registerVersion,setLogLevel:B.setLogLevel,onLog:B.onLog,apps:null,SDK_VERSION:B.SDK_VERSION,INTERNAL:{registerComponent:function he(Ke){const qe=Ke.name,yt=qe.replace("-compat","");if(B._registerComponent(Ke)&&"PUBLIC"===Ke.type){const Ut=(Gt=at())=>{if("function"!=typeof Gt[yt])throw te.create("invalid-app-argument",{appName:qe});return Gt[yt]()};void 0!==Ke.serviceProps&&(0,r.ZB)(Ut,Ke.serviceProps),Xe[yt]=Ut,we.prototype[yt]=function(...Gt){return this._getService.bind(this,qe).apply(this,Ke.multipleInstances?Gt:[])}}return"PUBLIC"===Ke.type?Xe[yt]:null},removeApp:function Ge(Ke){delete Be[Ke]},useAsService:function _e(Ke,qe){return"serverAuth"===qe?null:qe},modularAPIs:B}};function at(Ke){if(!(0,r.r3)(Be,Ke=Ke||B._DEFAULT_ENTRY_NAME))throw te.create("no-app",{appName:Ke});return Be[Ke]}return Xe.default=Xe,Object.defineProperty(Xe,"apps",{get:function Te(){return Object.keys(Be).map(Ke=>Be[Ke])}}),at.App=we,Xe}(N);return we.INTERNAL=Object.assign(Object.assign({},we.INTERNAL),{createFirebaseNamespace:ne,extendNamespace:function Be(Xe){(0,r.ZB)(we,Xe)},createSubscribe:r.ne,ErrorFactory:r.LL,deepExtend:r.ZB}),we}(),q=new $.Yd("@firebase/app-compat");if((0,r.jU)()&&void 0!==self.firebase){q.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const we=self.firebase.SDK_VERSION;we&&we.indexOf("LITE")>=0&&q.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const nt=H;!function Ne(we){(0,B.registerVersion)("@firebase/app-compat","0.2.13",we)}()},534:(It,Me,g)=>{g.r(Me),g.d(Me,{FirebaseError:()=>$.ZR,SDK_VERSION:()=>tn,_DEFAULT_ENTRY_NAME:()=>Re,_addComponent:()=>Zt,_addOrOverwriteComponent:()=>lt,_apps:()=>_t,_clearComponents:()=>Qe,_components:()=>Ot,_getProvider:()=>vt,_registerComponent:()=>He,_removeServiceInstance:()=>ze,deleteApp:()=>Cn,getApp:()=>xn,getApps:()=>dn,initializeApp:()=>En,onLog:()=>On,registerVersion:()=>ni,setLogLevel:()=>oi});var r=g(5861),u=g(4537),B=g(7879),$=g(9058);const N=(K,oe)=>oe.some(De=>K instanceof De);let ee,te;const H=new WeakMap,q=new WeakMap,me=new WeakMap,Ie=new WeakMap,Ne=new WeakMap;let Be={get(K,oe,De){if(K instanceof IDBTransaction){if("done"===oe)return q.get(K);if("objectStoreNames"===oe)return K.objectStoreNames||me.get(K);if("store"===oe)return De.objectStoreNames[1]?void 0:De.objectStore(De.objectStoreNames[0])}return J(K[oe])},set:(K,oe,De)=>(K[oe]=De,!0),has:(K,oe)=>K instanceof IDBTransaction&&("done"===oe||"store"===oe)||oe in K};function at(K){return"function"==typeof K?function Ge(K){return K!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function ne(){return te||(te=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(K)?function(...oe){return K.apply(Te(this),oe),J(H.get(this))}:function(...oe){return J(K.apply(Te(this),oe))}:function(oe,...De){const mt=K.call(Te(this),oe,...De);return me.set(mt,oe.sort?oe.sort():[oe]),J(mt)}}(K):(K instanceof IDBTransaction&&function we(K){if(q.has(K))return;const oe=new Promise((De,mt)=>{const ct=()=>{K.removeEventListener("complete",tt),K.removeEventListener("error",At),K.removeEventListener("abort",At)},tt=()=>{De(),ct()},At=()=>{mt(K.error||new DOMException("AbortError","AbortError")),ct()};K.addEventListener("complete",tt),K.addEventListener("error",At),K.addEventListener("abort",At)});q.set(K,oe)}(K),N(K,function fe(){return ee||(ee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(K,Be):K)}function J(K){if(K instanceof IDBRequest)return function nt(K){const oe=new Promise((De,mt)=>{const ct=()=>{K.removeEventListener("success",tt),K.removeEventListener("error",At)},tt=()=>{De(J(K.result)),ct()},At=()=>{mt(K.error),ct()};K.addEventListener("success",tt),K.addEventListener("error",At)});return oe.then(De=>{De instanceof IDBCursor&&H.set(De,K)}).catch(()=>{}),Ne.set(oe,K),oe}(K);if(Ie.has(K))return Ie.get(K);const oe=at(K);return oe!==K&&(Ie.set(K,oe),Ne.set(oe,K)),oe}const Te=K=>Ne.get(K),Ke=["get","getKey","getAll","getAllKeys","count"],qe=["put","add","delete","clear"],yt=new Map;function Ut(K,oe){if(!(K instanceof IDBDatabase)||oe in K||"string"!=typeof oe)return;if(yt.get(oe))return yt.get(oe);const De=oe.replace(/FromIndex$/,""),mt=oe!==De,ct=qe.includes(De);if(!(De in(mt?IDBIndex:IDBObjectStore).prototype)||!ct&&!Ke.includes(De))return;const tt=function(){var At=(0,r.Z)(function*(xt,...Ae){const gt=this.transaction(xt,ct?"readwrite":"readonly");let Lt=gt.store;return mt&&(Lt=Lt.index(Ae.shift())),(yield Promise.all([Lt[De](...Ae),ct&&gt.done]))[0]});return function(Ae){return At.apply(this,arguments)}}();return yt.set(oe,tt),tt}!function Xe(K){Be=K(Be)}(K=>({...K,get:(oe,De,mt)=>Ut(oe,De)||K.get(oe,De,mt),has:(oe,De)=>!!Ut(oe,De)||K.has(oe,De)}));class Gt{constructor(oe){this.container=oe}getPlatformInfoString(){return this.container.getProviders().map(De=>{if(function Xt(K){const oe=K.getComponent();return"VERSION"===oe?.type}(De)){const mt=De.getImmediate();return`${mt.library}/${mt.version}`}return null}).filter(De=>De).join(" ")}}const on="@firebase/app",mn=new B.Yd("@firebase/app"),Re="[DEFAULT]",dt={[on]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},_t=new Map,Ot=new Map;function Zt(K,oe){try{K.container.addComponent(oe)}catch(De){mn.debug(`Component ${oe.name} failed to register with FirebaseApp ${K.name}`,De)}}function lt(K,oe){K.container.addOrOverwriteComponent(oe)}function He(K){const oe=K.name;if(Ot.has(oe))return mn.debug(`There were multiple attempts to register component ${oe}.`),!1;Ot.set(oe,K);for(const De of _t.values())Zt(De,K);return!0}function vt(K,oe){const De=K.container.getProvider("heartbeat").getImmediate({optional:!0});return De&&De.triggerHeartbeat(),K.container.getProvider(oe)}function ze(K,oe,De=Re){vt(K,oe).clearInstance(De)}function Qe(){Ot.clear()}const Mt=new $.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class en{constructor(oe,De,mt){this._isDeleted=!1,this._options=Object.assign({},oe),this._config=Object.assign({},De),this._name=De.name,this._automaticDataCollectionEnabled=De.automaticDataCollectionEnabled,this._container=mt,this.container.addComponent(new u.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(oe){this.checkDestroyed(),this._automaticDataCollectionEnabled=oe}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(oe){this._isDeleted=oe}checkDestroyed(){if(this.isDeleted)throw Mt.create("app-deleted",{appName:this._name})}}const tn="9.23.0";function En(K,oe={}){let De=K;"object"!=typeof oe&&(oe={name:oe});const mt=Object.assign({name:Re,automaticDataCollectionEnabled:!1},oe),ct=mt.name;if("string"!=typeof ct||!ct)throw Mt.create("bad-app-name",{appName:String(ct)});if(De||(De=(0,$.aH)()),!De)throw Mt.create("no-options");const tt=_t.get(ct);if(tt){if((0,$.vZ)(De,tt.options)&&(0,$.vZ)(mt,tt.config))return tt;throw Mt.create("duplicate-app",{appName:ct})}const At=new u.H0(ct);for(const Ae of Ot.values())At.addComponent(Ae);const xt=new en(De,mt,At);return _t.set(ct,xt),xt}function xn(K=Re){const oe=_t.get(K);if(!oe&&K===Re&&(0,$.aH)())return En();if(!oe)throw Mt.create("no-app",{appName:K});return oe}function dn(){return Array.from(_t.values())}function Cn(K){return kn.apply(this,arguments)}function kn(){return(kn=(0,r.Z)(function*(K){const oe=K.name;_t.has(oe)&&(_t.delete(oe),yield Promise.all(K.container.getProviders().map(De=>De.delete())),K.isDeleted=!0)})).apply(this,arguments)}function ni(K,oe,De){var mt;let ct=null!==(mt=dt[K])&&void 0!==mt?mt:K;De&&(ct+=`-${De}`);const tt=ct.match(/\s|\//),At=oe.match(/\s|\//);if(tt||At){const xt=[`Unable to register library "${ct}" with version "${oe}":`];return tt&&xt.push(`library name "${ct}" contains illegal characters (whitespace or "/")`),tt&&At&&xt.push("and"),At&&xt.push(`version name "${oe}" contains illegal characters (whitespace or "/")`),void mn.warn(xt.join(" "))}He(new u.wA(`${ct}-version`,()=>({library:ct,version:oe}),"VERSION"))}function On(K,oe){if(null!==K&&"function"!=typeof K)throw Mt.create("invalid-log-argument");(0,B.Am)(K,oe)}function oi(K){(0,B.Ub)(K)}const Zn="firebase-heartbeat-database",ai=1,xe="firebase-heartbeat-store";let W=null;function O(){return W||(W=function he(K,oe,{blocked:De,upgrade:mt,blocking:ct,terminated:tt}={}){const At=indexedDB.open(K,oe),xt=J(At);return mt&&At.addEventListener("upgradeneeded",Ae=>{mt(J(At.result),Ae.oldVersion,Ae.newVersion,J(At.transaction),Ae)}),De&&At.addEventListener("blocked",Ae=>De(Ae.oldVersion,Ae.newVersion,Ae)),xt.then(Ae=>{tt&&Ae.addEventListener("close",()=>tt()),ct&&Ae.addEventListener("versionchange",gt=>ct(gt.oldVersion,gt.newVersion,gt))}).catch(()=>{}),xt}(Zn,ai,{upgrade:(K,oe)=>{0===oe&&K.createObjectStore(xe)}}).catch(K=>{throw Mt.create("idb-open",{originalErrorMessage:K.message})})),W}function M(){return(M=(0,r.Z)(function*(K){try{return yield(yield O()).transaction(xe).objectStore(xe).get(z(K))}catch(oe){if(oe instanceof $.ZR)mn.warn(oe.message);else{const De=Mt.create("idb-get",{originalErrorMessage:oe?.message});mn.warn(De.message)}}})).apply(this,arguments)}function j(K,oe){return ye.apply(this,arguments)}function ye(){return(ye=(0,r.Z)(function*(K,oe){try{const mt=(yield O()).transaction(xe,"readwrite");yield mt.objectStore(xe).put(oe,z(K)),yield mt.done}catch(De){if(De instanceof $.ZR)mn.warn(De.message);else{const mt=Mt.create("idb-set",{originalErrorMessage:De?.message});mn.warn(mt.message)}}})).apply(this,arguments)}function z(K){return`${K.name}!${K.options.appId}`}class E{constructor(oe){this.container=oe,this._heartbeatsCache=null;const De=this.container.getProvider("app").getImmediate();this._storage=new S(De),this._heartbeatsCachePromise=this._storage.read().then(mt=>(this._heartbeatsCache=mt,mt))}triggerHeartbeat(){var oe=this;return(0,r.Z)(function*(){const mt=oe.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),ct=k();if(null===oe._heartbeatsCache&&(oe._heartbeatsCache=yield oe._heartbeatsCachePromise),oe._heartbeatsCache.lastSentHeartbeatDate!==ct&&!oe._heartbeatsCache.heartbeats.some(tt=>tt.date===ct))return oe._heartbeatsCache.heartbeats.push({date:ct,agent:mt}),oe._heartbeatsCache.heartbeats=oe._heartbeatsCache.heartbeats.filter(tt=>{const At=new Date(tt.date).valueOf();return Date.now()-At<=2592e6}),oe._storage.overwrite(oe._heartbeatsCache)})()}getHeartbeatsHeader(){var oe=this;return(0,r.Z)(function*(){if(null===oe._heartbeatsCache&&(yield oe._heartbeatsCachePromise),null===oe._heartbeatsCache||0===oe._heartbeatsCache.heartbeats.length)return"";const De=k(),{heartbeatsToSend:mt,unsentEntries:ct}=function ae(K,oe=1024){const De=[];let mt=K.slice();for(const ct of K){const tt=De.find(At=>At.agent===ct.agent);if(tt){if(tt.dates.push(ct.date),L(De)>oe){tt.dates.pop();break}}else if(De.push({agent:ct.agent,dates:[ct.date]}),L(De)>oe){De.pop();break}mt=mt.slice(1)}return{heartbeatsToSend:De,unsentEntries:mt}}(oe._heartbeatsCache.heartbeats),tt=(0,$.L)(JSON.stringify({version:2,heartbeats:mt}));return oe._heartbeatsCache.lastSentHeartbeatDate=De,ct.length>0?(oe._heartbeatsCache.heartbeats=ct,yield oe._storage.overwrite(oe._heartbeatsCache)):(oe._heartbeatsCache.heartbeats=[],oe._storage.overwrite(oe._heartbeatsCache)),tt})()}}function k(){return(new Date).toISOString().substring(0,10)}class S{constructor(oe){this.app=oe,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,r.Z)(function*(){return!!(0,$.hl)()&&(0,$.eu)().then(()=>!0).catch(()=>!1)})()}read(){var oe=this;return(0,r.Z)(function*(){return(yield oe._canUseIndexedDBPromise)&&(yield function V(K){return M.apply(this,arguments)}(oe.app))||{heartbeats:[]}})()}overwrite(oe){var De=this;return(0,r.Z)(function*(){var mt;if(yield De._canUseIndexedDBPromise){const tt=yield De.read();return j(De.app,{lastSentHeartbeatDate:null!==(mt=oe.lastSentHeartbeatDate)&&void 0!==mt?mt:tt.lastSentHeartbeatDate,heartbeats:oe.heartbeats})}})()}add(oe){var De=this;return(0,r.Z)(function*(){var mt;if(yield De._canUseIndexedDBPromise){const tt=yield De.read();return j(De.app,{lastSentHeartbeatDate:null!==(mt=oe.lastSentHeartbeatDate)&&void 0!==mt?mt:tt.lastSentHeartbeatDate,heartbeats:[...tt.heartbeats,...oe.heartbeats]})}})()}}function L(K){return(0,$.L)(JSON.stringify({version:2,heartbeats:K})).length}!function ce(K){He(new u.wA("platform-logger",oe=>new Gt(oe),"PRIVATE")),He(new u.wA("heartbeat",oe=>new E(oe),"PRIVATE")),ni(on,"0.9.13",K),ni(on,"0.9.13","esm2017"),ni("fire-js","")}("")},4537:(It,Me,g)=>{g.d(Me,{H0:()=>fe,wA:()=>B});var r=g(5861),u=g(9058);class B{constructor(H,q,me){this.name=H,this.instanceFactory=q,this.type=me,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(H){return this.instantiationMode=H,this}setMultipleInstances(H){return this.multipleInstances=H,this}setServiceProps(H){return this.serviceProps=H,this}setInstanceCreatedCallback(H){return this.onInstanceCreated=H,this}}const $="[DEFAULT]";class N{constructor(H,q){this.name=H,this.container=q,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(H){const q=this.normalizeInstanceIdentifier(H);if(!this.instancesDeferred.has(q)){const me=new u.BH;if(this.instancesDeferred.set(q,me),this.isInitialized(q)||this.shouldAutoInitialize())try{const Ie=this.getOrInitializeService({instanceIdentifier:q});Ie&&me.resolve(Ie)}catch{}}return this.instancesDeferred.get(q).promise}getImmediate(H){var q;const me=this.normalizeInstanceIdentifier(H?.identifier),Ie=null!==(q=H?.optional)&&void 0!==q&&q;if(!this.isInitialized(me)&&!this.shouldAutoInitialize()){if(Ie)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:me})}catch(Ne){if(Ie)return null;throw Ne}}getComponent(){return this.component}setComponent(H){if(H.name!==this.name)throw Error(`Mismatching Component ${H.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=H,this.shouldAutoInitialize()){if(function te(ne){return"EAGER"===ne.instantiationMode}(H))try{this.getOrInitializeService({instanceIdentifier:$})}catch{}for(const[q,me]of this.instancesDeferred.entries()){const Ie=this.normalizeInstanceIdentifier(q);try{const Ne=this.getOrInitializeService({instanceIdentifier:Ie});me.resolve(Ne)}catch{}}}}clearInstance(H=$){this.instancesDeferred.delete(H),this.instancesOptions.delete(H),this.instances.delete(H)}delete(){var H=this;return(0,r.Z)(function*(){const q=Array.from(H.instances.values());yield Promise.all([...q.filter(me=>"INTERNAL"in me).map(me=>me.INTERNAL.delete()),...q.filter(me=>"_delete"in me).map(me=>me._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(H=$){return this.instances.has(H)}getOptions(H=$){return this.instancesOptions.get(H)||{}}initialize(H={}){const{options:q={}}=H,me=this.normalizeInstanceIdentifier(H.instanceIdentifier);if(this.isInitialized(me))throw Error(`${this.name}(${me}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ie=this.getOrInitializeService({instanceIdentifier:me,options:q});for(const[Ne,nt]of this.instancesDeferred.entries())me===this.normalizeInstanceIdentifier(Ne)&&nt.resolve(Ie);return Ie}onInit(H,q){var me;const Ie=this.normalizeInstanceIdentifier(q),Ne=null!==(me=this.onInitCallbacks.get(Ie))&&void 0!==me?me:new Set;Ne.add(H),this.onInitCallbacks.set(Ie,Ne);const nt=this.instances.get(Ie);return nt&&H(nt,Ie),()=>{Ne.delete(H)}}invokeOnInitCallbacks(H,q){const me=this.onInitCallbacks.get(q);if(me)for(const Ie of me)try{Ie(H,q)}catch{}}getOrInitializeService({instanceIdentifier:H,options:q={}}){let me=this.instances.get(H);if(!me&&this.component&&(me=this.component.instanceFactory(this.container,{instanceIdentifier:(ne=H,ne===$?void 0:ne),options:q}),this.instances.set(H,me),this.instancesOptions.set(H,q),this.invokeOnInitCallbacks(me,H),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,H,me)}catch{}var ne;return me||null}normalizeInstanceIdentifier(H=$){return this.component?this.component.multipleInstances?H:$:H}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class fe{constructor(H){this.name=H,this.providers=new Map}addComponent(H){const q=this.getProvider(H.name);if(q.isComponentSet())throw new Error(`Component ${H.name} has already been registered with ${this.name}`);q.setComponent(H)}addOrOverwriteComponent(H){this.getProvider(H.name).isComponentSet()&&this.providers.delete(H.name),this.addComponent(H)}getProvider(H){if(this.providers.has(H))return this.providers.get(H);const q=new N(H,this);return this.providers.set(H,q),q}getProviders(){return Array.from(this.providers.values())}}},7879:(It,Me,g)=>{g.d(Me,{Am:()=>ne,Ub:()=>fe,Yd:()=>te,in:()=>u});const r=[];var u=function(H){return H[H.DEBUG=0]="DEBUG",H[H.VERBOSE=1]="VERBOSE",H[H.INFO=2]="INFO",H[H.WARN=3]="WARN",H[H.ERROR=4]="ERROR",H[H.SILENT=5]="SILENT",H}(u||{});const B={debug:u.DEBUG,verbose:u.VERBOSE,info:u.INFO,warn:u.WARN,error:u.ERROR,silent:u.SILENT},$=u.INFO,N={[u.DEBUG]:"log",[u.VERBOSE]:"log",[u.INFO]:"info",[u.WARN]:"warn",[u.ERROR]:"error"},ee=(H,q,...me)=>{if(q<H.logLevel)return;const Ie=(new Date).toISOString(),Ne=N[q];if(!Ne)throw new Error(`Attempted to log a message with an invalid logType (value: ${q})`);console[Ne](`[${Ie}] ${H.name}:`,...me)};class te{constructor(q){this.name=q,this._logLevel=$,this._logHandler=ee,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(q){if(!(q in u))throw new TypeError(`Invalid value "${q}" assigned to \`logLevel\``);this._logLevel=q}setLogLevel(q){this._logLevel="string"==typeof q?B[q]:q}get logHandler(){return this._logHandler}set logHandler(q){if("function"!=typeof q)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=q}get userLogHandler(){return this._userLogHandler}set userLogHandler(q){this._userLogHandler=q}debug(...q){this._userLogHandler&&this._userLogHandler(this,u.DEBUG,...q),this._logHandler(this,u.DEBUG,...q)}log(...q){this._userLogHandler&&this._userLogHandler(this,u.VERBOSE,...q),this._logHandler(this,u.VERBOSE,...q)}info(...q){this._userLogHandler&&this._userLogHandler(this,u.INFO,...q),this._logHandler(this,u.INFO,...q)}warn(...q){this._userLogHandler&&this._userLogHandler(this,u.WARN,...q),this._logHandler(this,u.WARN,...q)}error(...q){this._userLogHandler&&this._userLogHandler(this,u.ERROR,...q),this._logHandler(this,u.ERROR,...q)}}function fe(H){r.forEach(q=>{q.setLogLevel(H)})}function ne(H,q){for(const me of r){let Ie=null;q&&q.level&&(Ie=B[q.level]),me.userLogHandler=null===H?null:(Ne,nt,...we)=>{const Be=we.map(Xe=>{if(null==Xe)return null;if("string"==typeof Xe)return Xe;if("number"==typeof Xe||"boolean"==typeof Xe)return Xe.toString();if(Xe instanceof Error)return Xe.message;try{return JSON.stringify(Xe)}catch{return null}}).filter(Xe=>Xe).join(" ");nt>=(Ie??Ne.logLevel)&&H({level:u[nt].toLowerCase(),message:Be,args:we,type:Ne.name})}}}},4807:(It,Me,g)=>{g.d(Me,{A0:()=>ye,w9:()=>V});var r=g(5879),u=g(95),B=g(9773),$=g(9028),N=g(7921),ee=g(9397),te=g(3620),fe=g(2181),ne=g(7398),H=g(927),q=g(6410),me=g(8645),Ie=g(2438),Ne=g(3019),nt=g(6814);const we=["content"],Be=["scroll"],Xe=["padding"],Ge=function(z){return{searchTerm:z}};function at(z,ie){if(1&z&&(r.TgZ(0,"div",6),r.GkF(1,7),r.qZA()),2&z){const se=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",se.headerTemplate)("ngTemplateOutletContext",r.VKq(2,Ge,se.filterValue))}}function J(z,ie){if(1&z&&(r.TgZ(0,"div",8),r.GkF(1,7),r.qZA()),2&z){const se=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",se.footerTemplate)("ngTemplateOutletContext",r.VKq(2,Ge,se.filterValue))}}const Te=["*"],he=["searchInput"];function _e(z,ie){if(1&z){const se=r.EpF();r.TgZ(0,"span",15),r.NdJ("click",function(){r.CHM(se);const k=r.oxw().$implicit,ae=r.oxw(2);return r.KtG(ae.unselect(k))}),r._uU(1,"\xd7"),r.qZA(),r._UZ(2,"span",16)}if(2&z){const se=r.oxw().$implicit,E=r.oxw(2);r.xp6(2),r.Q6J("ngItemLabel",se.label)("escape",E.escapeHTML)}}function Ke(z,ie){}const qe=function(z,ie,se){return{item:z,clear:ie,label:se}};function yt(z,ie){if(1&z&&(r.TgZ(0,"div",12),r.YNc(1,_e,3,2,"ng-template",null,13,r.W1O),r.YNc(3,Ke,0,0,"ng-template",14),r.qZA()),2&z){const se=ie.$implicit,E=r.MAs(2),k=r.oxw(2);r.ekj("ng-value-disabled",se.disabled),r.xp6(3),r.Q6J("ngTemplateOutlet",k.labelTemplate||E)("ngTemplateOutletContext",r.kEZ(4,qe,se.value,k.clearItem,se.label))}}function Ut(z,ie){if(1&z&&(r.ynx(0),r.YNc(1,yt,4,8,"div",11),r.BQk()),2&z){const se=r.oxw();r.xp6(1),r.Q6J("ngForOf",se.selectedItems)("ngForTrackBy",se.trackByOption)}}function Gt(z,ie){}const Xt=function(z,ie){return{items:z,clear:ie}};function on(z,ie){if(1&z&&r.YNc(0,Gt,0,0,"ng-template",14),2&z){const se=r.oxw();r.Q6J("ngTemplateOutlet",se.multiLabelTemplate)("ngTemplateOutletContext",r.WLB(2,Xt,se.selectedValues,se.clearItem))}}function cn(z,ie){1&z&&r._UZ(0,"div",19)}function mn(z,ie){}function Fn(z,ie){if(1&z&&(r.ynx(0),r.YNc(1,cn,1,0,"ng-template",null,17,r.W1O),r.YNc(3,mn,0,0,"ng-template",18),r.BQk()),2&z){const se=r.MAs(2),E=r.oxw();r.xp6(3),r.Q6J("ngTemplateOutlet",E.loadingSpinnerTemplate||se)}}function Gn(z,ie){if(1&z&&(r.TgZ(0,"span",20)(1,"span",21),r._uU(2,"\xd7"),r.qZA()()),2&z){const se=r.oxw();r.s9C("title",se.clearAllText)}}function Le(z,ie){if(1&z&&r._UZ(0,"span",27),2&z){const se=r.oxw().$implicit,E=r.oxw(2);r.Q6J("ngItemLabel",se.label)("escape",E.escapeHTML)}}function Ve(z,ie){}const $e=function(z,ie,se,E){return{item:z,item$:ie,index:se,searchTerm:E}};function ve(z,ie){if(1&z){const se=r.EpF();r.TgZ(0,"div",25),r.NdJ("click",function(){const ae=r.CHM(se).$implicit,S=r.oxw(2);return r.KtG(S.toggleItem(ae))})("mouseover",function(){const ae=r.CHM(se).$implicit,S=r.oxw(2);return r.KtG(S.onItemHover(ae))}),r.YNc(1,Le,1,2,"ng-template",null,26,r.W1O),r.YNc(3,Ve,0,0,"ng-template",14),r.qZA()}if(2&z){const se=ie.$implicit,E=r.MAs(2),k=r.oxw(2);r.ekj("ng-option-disabled",se.disabled)("ng-option-selected",se.selected)("ng-optgroup",se.children)("ng-option",!se.children)("ng-option-child",!!se.parent)("ng-option-marked",se===k.itemsList.markedItem),r.uIk("role",se.children?"group":"option")("aria-selected",se.selected)("id",null==se?null:se.htmlId),r.xp6(3),r.Q6J("ngTemplateOutlet",se.children?k.optgroupTemplate||E:k.optionTemplate||E)("ngTemplateOutletContext",r.l5B(17,$e,se.value,se,se.index,k.searchTerm))}}function Je(z,ie){if(1&z&&(r.TgZ(0,"span")(1,"span",30),r._uU(2),r.qZA(),r._uU(3),r.qZA()),2&z){const se=r.oxw(3);r.xp6(2),r.Oqu(se.addTagText),r.xp6(1),r.hij('"',se.searchTerm,'"')}}function ht(z,ie){}function Dt(z,ie){if(1&z){const se=r.EpF();r.TgZ(0,"div",28),r.NdJ("mouseover",function(){r.CHM(se);const k=r.oxw(2);return r.KtG(k.itemsList.unmarkItem())})("click",function(){r.CHM(se);const k=r.oxw(2);return r.KtG(k.selectTag())}),r.YNc(1,Je,4,2,"ng-template",null,29,r.W1O),r.YNc(3,ht,0,0,"ng-template",14),r.qZA()}if(2&z){const se=r.MAs(2),E=r.oxw(2);r.ekj("ng-option-marked",!E.itemsList.markedItem),r.xp6(3),r.Q6J("ngTemplateOutlet",E.tagTemplate||se)("ngTemplateOutletContext",r.VKq(4,Ge,E.searchTerm))}}function Ue(z,ie){if(1&z&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&z){const se=r.oxw(3);r.xp6(1),r.Oqu(se.notFoundText)}}function ut(z,ie){}function Pe(z,ie){if(1&z&&(r.ynx(0),r.YNc(1,Ue,2,1,"ng-template",null,31,r.W1O),r.YNc(3,ut,0,0,"ng-template",14),r.BQk()),2&z){const se=r.MAs(2),E=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",E.notFoundTemplate||se)("ngTemplateOutletContext",r.VKq(2,Ge,E.searchTerm))}}function et(z,ie){if(1&z&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&z){const se=r.oxw(3);r.xp6(1),r.Oqu(se.typeToSearchText)}}function Ye(z,ie){}function Rt(z,ie){if(1&z&&(r.ynx(0),r.YNc(1,et,2,1,"ng-template",null,33,r.W1O),r.YNc(3,Ye,0,0,"ng-template",18),r.BQk()),2&z){const se=r.MAs(2),E=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",E.typeToSearchTemplate||se)}}function Yt(z,ie){if(1&z&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&z){const se=r.oxw(3);r.xp6(1),r.Oqu(se.loadingText)}}function gn(z,ie){}function Ht(z,ie){if(1&z&&(r.ynx(0),r.YNc(1,Yt,2,1,"ng-template",null,34,r.W1O),r.YNc(3,gn,0,0,"ng-template",14),r.BQk()),2&z){const se=r.MAs(2),E=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",E.loadingTextTemplate||se)("ngTemplateOutletContext",r.VKq(2,Ge,E.searchTerm))}}function Mn(z,ie){if(1&z){const se=r.EpF();r.TgZ(0,"ng-dropdown-panel",22),r.NdJ("update",function(k){r.CHM(se);const ae=r.oxw();return r.KtG(ae.viewPortItems=k)})("scroll",function(k){r.CHM(se);const ae=r.oxw();return r.KtG(ae.scroll.emit(k))})("scrollToEnd",function(k){r.CHM(se);const ae=r.oxw();return r.KtG(ae.scrollToEnd.emit(k))})("outsideClick",function(){r.CHM(se);const k=r.oxw();return r.KtG(k.close())}),r.ynx(1),r.YNc(2,ve,4,22,"div",23),r.YNc(3,Dt,4,6,"div",24),r.BQk(),r.YNc(4,Pe,4,4,"ng-container",3),r.YNc(5,Rt,4,1,"ng-container",3),r.YNc(6,Ht,4,4,"ng-container",3),r.qZA()}if(2&z){const se=r.oxw();r.ekj("ng-select-multiple",se.multiple),r.Q6J("virtualScroll",se.virtualScroll)("bufferAmount",se.bufferAmount)("appendTo",se.appendTo)("position",se.dropdownPosition)("headerTemplate",se.headerTemplate)("footerTemplate",se.footerTemplate)("filterValue",se.searchTerm)("items",se.itemsList.filteredItems)("markedItem",se.itemsList.markedItem)("ngClass",se.appendTo?se.classes:null)("id",se.dropdownId),r.xp6(2),r.Q6J("ngForOf",se.viewPortItems)("ngForTrackBy",se.trackByOption),r.xp6(1),r.Q6J("ngIf",se.showAddTag),r.xp6(1),r.Q6J("ngIf",se.showNoItemsFound()),r.xp6(1),r.Q6J("ngIf",se.showTypeToSearch()),r.xp6(1),r.Q6J("ngIf",se.loading&&0===se.itemsList.filteredItems.length)}}const Wn=/[&<>"']/g,In=RegExp(Wn.source),pt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Oe(z){return null!=z}function Ce(z){return"object"==typeof z&&Oe(z)}function dt(z){return z instanceof Function}let _t=(()=>{var z;class ie{constructor(E){this.element=E,this.escape=!0}ngOnChanges(E){this.element.nativeElement.innerHTML=this.escape?function Q(z){return z&&In.test(z)?z.replace(Wn,ie=>pt[ie]):z}(this.ngItemLabel):this.ngItemLabel}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.SBq))},z.\u0275dir=r.lG2({type:z,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[r.TTD]}),ie})(),Ot=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-option-tmp",""]]}),ie})(),Zt=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-optgroup-tmp",""]]}),ie})(),lt=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-label-tmp",""]]}),ie})(),He=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-multi-label-tmp",""]]}),ie})(),vt=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-header-tmp",""]]}),ie})(),ze=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-footer-tmp",""]]}),ie})(),Qe=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-notfound-tmp",""]]}),ie})(),St=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-typetosearch-tmp",""]]}),ie})(),Mt=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-loadingtext-tmp",""]]}),ie})(),en=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-tag-tmp",""]]}),ie})(),tn=(()=>{var z;class ie{constructor(E){this.template=E}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Rgc))},z.\u0275dir=r.lG2({type:z,selectors:[["","ng-loadingspinner-tmp",""]]}),ie})();function En(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const xn={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function dn(z){return z.replace(/[^\u0000-\u007E]/g,se=>xn[se]||se)}class Cn{constructor(ie,se){this._ngSelect=ie,this._selectionModel=se,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let ie=this.selectedItems.length-1;for(;ie>=0;ie--){const se=this.selectedItems[ie];if(!se.disabled)return se}return null}setItems(ie){this._items=ie.map((se,E)=>this.mapItem(se,E)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(ie){if(ie.selected||this.maxItemsSelected)return;const se=this._ngSelect.multiple;se||this.clearSelected(),this._selectionModel.select(ie,se,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(ie)}unselect(ie){ie.selected&&(this._selectionModel.unselect(ie,this._ngSelect.multiple),this._ngSelect.hideSelected&&Oe(ie.index)&&this._ngSelect.multiple&&this._showSelected(ie))}findItem(ie){let se;return se=this._ngSelect.compareWith?E=>this._ngSelect.compareWith(E.value,ie):this._ngSelect.bindValue?E=>!E.children&&this.resolveNested(E.value,this._ngSelect.bindValue)===ie:E=>E.value===ie||!E.children&&E.label&&E.label===this.resolveNested(ie,this._ngSelect.bindLabel),this._items.find(E=>se(E))}addItem(ie){const se=this.mapItem(ie,this._items.length);return this._items.push(se),this._filteredItems.push(se),se}clearSelected(ie=!1){this._selectionModel.clear(ie),this._items.forEach(se=>{se.selected=ie&&se.selected&&se.disabled,se.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(ie){return ie=dn(ie).toLocaleLowerCase(),this.filteredItems.find(se=>dn(se.label).toLocaleLowerCase().substr(0,ie.length)===ie)}filter(ie){if(!ie)return void this.resetFilteredItems();this._filteredItems=[],ie=this._ngSelect.searchFn?ie:dn(ie).toLocaleLowerCase();const se=this._ngSelect.searchFn||this._defaultSearchFn,E=this._ngSelect.hideSelected;for(const k of Array.from(this._groups.keys())){const ae=[];for(const S of this._groups.get(k))E&&(S.parent&&S.parent.selected||S.selected)||se(ie,this._ngSelect.searchFn?S.value:S)&&ae.push(S);if(ae.length>0){const[S]=ae.slice(-1);if(S.parent){const L=this._items.find(ce=>ce===S.parent);this._filteredItems.push(L)}this._filteredItems.push(...ae)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(ie=>!ie.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(ie){this._markedIndex=this._filteredItems.indexOf(ie)}markSelectedOrDefault(ie){if(0===this._filteredItems.length)return;const se=this._getLastMarkedIndex();this._markedIndex=se>-1?se:ie?this.filteredItems.findIndex(E=>!E.disabled):-1}resolveNested(ie,se){if(!Ce(ie))return ie;if(-1===se.indexOf("."))return ie[se];{const E=se.split(".");let k=ie;for(let ae=0,S=E.length;ae<S;++ae){if(null==k)return null;k=k[E[ae]]}return k}}mapItem(ie,se){const E=Oe(ie.$ngOptionLabel)?ie.$ngOptionLabel:this.resolveNested(ie,this._ngSelect.bindLabel),k=Oe(ie.$ngOptionValue)?ie.$ngOptionValue:ie;return{index:se,label:Oe(E)?E.toString():"",value:k,disabled:ie.disabled,htmlId:`${this._ngSelect.dropdownId}-${se}`}}mapSelectedItems(){const ie=this._ngSelect.multiple;for(const se of this.selectedItems){const E=this._ngSelect.bindValue?this.resolveNested(se.value,this._ngSelect.bindValue):se.value,k=Oe(E)?this.findItem(E):null;this._selectionModel.unselect(se,ie),this._selectionModel.select(k||se,ie,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(se=>-1===this.selectedItems.indexOf(se)))}_showSelected(ie){if(this._filteredItems.push(ie),ie.parent){const se=ie.parent;this._filteredItems.find(k=>k===se)||this._filteredItems.push(se)}else if(ie.children)for(const se of ie.children)se.selected=!1,this._filteredItems.push(se);this._filteredItems=[...this._filteredItems.sort((se,E)=>se.index-E.index)]}_hideSelected(ie){this._filteredItems=this._filteredItems.filter(se=>se!==ie),ie.parent?ie.parent.children.every(E=>E.selected)&&(this._filteredItems=this._filteredItems.filter(E=>E!==ie.parent)):ie.children&&(this._filteredItems=this.filteredItems.filter(se=>se.parent!==ie))}_defaultSearchFn(ie,se){return dn(se.label).toLocaleLowerCase().indexOf(ie)>-1}_getNextItemIndex(ie){return ie>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(ie){0===this._filteredItems.length||this._filteredItems.every(se=>se.disabled)||(this._markedIndex=this._getNextItemIndex(ie),this.markedItem.disabled&&this._stepToItem(ie))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const ie=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&ie<0?-1:Math.max(this.markedIndex,ie)}_groupBy(ie,se){const E=new Map;if(0===ie.length)return E;if(Array.isArray(ie[0].value[se])){for(const S of ie){const L=(S.value[se]||[]).map((ce,K)=>this.mapItem(ce,K));E.set(S,L)}return E}const k=dt(this._ngSelect.groupBy),ae=S=>{const L=k?se(S.value):S.value[se];return Oe(L)?L:void 0};for(const S of ie){const L=ae(S),ce=E.get(L);ce?ce.push(S):E.set(L,[S])}return E}_flatten(ie){const se=dt(this._ngSelect.groupBy),E=[];for(const k of Array.from(ie.keys())){let ae=E.length;if(void 0===k){const De=ie.get(void 0)||[];E.push(...De.map(mt=>(mt.index=ae++,mt)));continue}const S=Ce(k),L={label:S?"":String(k),children:void 0,parent:null,index:ae++,disabled:!this._ngSelect.selectableGroup,htmlId:En()},ce=se?this._ngSelect.bindLabel:this._ngSelect.groupBy,K=this._ngSelect.groupValue||(()=>S?k.value:{[ce]:k}),oe=ie.get(k).map(De=>(De.parent=L,De.children=void 0,De.index=ae++,De));L.children=oe,L.value=K(k,oe.map(De=>De.value)),E.push(L),E.push(...oe)}return E}}var kn=function(z){return z[z.Tab=9]="Tab",z[z.Enter=13]="Enter",z[z.Esc=27]="Esc",z[z.Space=32]="Space",z[z.ArrowUp=38]="ArrowUp",z[z.ArrowDown=40]="ArrowDown",z[z.Backspace=8]="Backspace",z}(kn||{});let ni=(()=>{var z;class ie{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(E,k,ae){const S=this._dimensions,L=S.itemHeight*k,K=Math.max(0,E)/L*k;let oe=Math.min(k,Math.ceil(K)+(S.itemsPerViewport+1));const mt=Math.max(0,oe-S.itemsPerViewport);let ct=Math.min(mt,Math.floor(K)),tt=S.itemHeight*Math.ceil(ct)-S.itemHeight*Math.min(ct,ae);return tt=isNaN(tt)?0:tt,ct=isNaN(ct)?-1:ct,oe=isNaN(oe)?-1:oe,ct-=ae,ct=Math.max(0,ct),oe+=ae,oe=Math.min(k,oe),{topPadding:tt,scrollHeight:L,start:ct,end:oe}}setDimensions(E,k){const ae=Math.max(1,Math.floor(k/E));this._dimensions={itemHeight:E,panelHeight:k,itemsPerViewport:ae}}getScrollTo(E,k,ae){const{panelHeight:S}=this.dimensions,L=E+k,K=ae+S;return S>=L&&ae===E?null:L>K?ae+L-K:E<=ae?E:null}}return(z=ie).\u0275fac=function(E){return new(E||z)},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac}),ie})();const On=["top","right","bottom","left"],oi=typeof requestAnimationFrame<"u"?H.Z:q.E;let Zn=(()=>{var z;class ie{constructor(E,k,ae,S,L){this._renderer=E,this._zone=k,this._panelService=ae,this._document=L,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.outsideClick=new r.vpe,this._destroy$=new me.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=S.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(E){E!==this._itemsLength&&(this._itemsLength=E,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:E,panelHeight:k}=this._panelService.dimensions,ae=this.markedItem.index*E;return k>ae?0:ae}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(E){if(E.items){const k=E.items;this._onItemsChange(k.currentValue,k.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(E,k=!1){if(!E)return;const ae=this.items.indexOf(E);if(ae<0||ae>=this.itemsLength)return;let S;if(this.virtualScroll){const L=this._panelService.dimensions.itemHeight;S=this._panelService.getScrollTo(ae*L,L,this._lastScrollPosition)}else{const L=this._dropdown.querySelector(`#${E.htmlId}`);S=this._panelService.getScrollTo(L.offsetTop,L.clientHeight,k?L.offsetTop:this._lastScrollPosition)}Oe(S)&&(this._scrollablePanel.scrollTop=S)}scrollToTag(){const E=this._scrollablePanel;E.scrollTop=E.scrollHeight-E.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),On.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(E){On.forEach(ae=>{const S=`ng-select-${ae}`;this._renderer.removeClass(this._dropdown,S),this._renderer.removeClass(this._select,S)});const k=`ng-select-${E}`;this._renderer.addClass(this._dropdown,k),this._renderer.addClass(this._select,k)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,Ie.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,B.R)(this._destroy$),(0,$.e)(0,oi)).subscribe(E=>{const k=E.path||E.composedPath&&E.composedPath();this._onContentScrolled(k&&0!==k.length?k[0].scrollTop:E.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,Ne.T)((0,Ie.R)(this._document,"touchstart",{capture:!0}),(0,Ie.R)(this._document,"mousedown",{capture:!0})).pipe((0,B.R)(this._destroy$)).subscribe(E=>this._checkToClose(E))})}_checkToClose(E){if(this._select.contains(E.target)||this._dropdown.contains(E.target))return;const k=E.path||E.composedPath&&E.composedPath();E.target&&E.target.shadowRoot&&k&&k[0]&&this._select.contains(k[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(E,k){this.items=E||[],this._scrollToEndFired=!1,this.itemsLength=E.length,this.virtualScroll?this._updateItemsRange(k):(this._setVirtualHeight(),this._updateItems(k))}_updateItems(E){this.update.emit(this.items),!1!==E&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,E)})})}_updateItemsRange(E){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{E?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(E){this.virtualScroll&&this._renderItemsRange(E),this._lastScrollPosition=E,this._fireScrollToEnd(E)}_updateVirtualHeight(E){this._updateScrollHeight&&(this._virtualPadding.style.height=`${E}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(E=null){if(E&&this._lastScrollPosition===E)return;const k=this._panelService.calculateItems(E=E||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(k.scrollHeight),this._contentPanel.style.transform=`translateY(${k.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(k.start,k.end)),this.scroll.emit({start:k.start,end:k.end})}),Oe(E)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=E,this._lastScrollPosition=E)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[E]=this.items;return this.update.emit([E]),Promise.resolve().then(()=>{const ae=this._dropdown.querySelector(`#${E.htmlId}`).clientHeight;return this._virtualPadding.style.height=ae*this.itemsLength+"px",this._panelService.setDimensions(ae,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(E){this._scrollToEndFired||0===E||E+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(E){if("auto"!==this.position)return this.position;const k=this._select.getBoundingClientRect(),ae=document.documentElement.scrollTop||document.body.scrollTop;return k.top+window.pageYOffset+k.height+E.getBoundingClientRect().height>ae+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const E=this._select.getBoundingClientRect(),k=this._parent.getBoundingClientRect();this._dropdown.style.left=E.left-k.left+"px",this._dropdown.style.width=E.width+"px",this._dropdown.style.minWidth=E.width+"px"}_updateYPosition(){const E=this._select.getBoundingClientRect(),k=this._parent.getBoundingClientRect(),ae=E.height;"top"===this._currentPosition?(this._dropdown.style.bottom=k.bottom-E.bottom+ae+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=E.top-k.top+ae+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,Ie.R)(this._dropdown,"mousedown").pipe((0,B.R)(this._destroy$)).subscribe(E=>{"INPUT"!==E.target.tagName&&E.preventDefault()})})}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.Qsj),r.Y36(r.R0b),r.Y36(ni),r.Y36(r.SBq),r.Y36(nt.K0,8))},z.\u0275cmp=r.Xpm({type:z,selectors:[["ng-dropdown-panel"]],viewQuery:function(E,k){if(1&E&&(r.Gf(we,7,r.SBq),r.Gf(Be,7,r.SBq),r.Gf(Xe,7,r.SBq)),2&E){let ae;r.iGM(ae=r.CRH())&&(k.contentElementRef=ae.first),r.iGM(ae=r.CRH())&&(k.scrollElementRef=ae.first),r.iGM(ae=r.CRH())&&(k.paddingElementRef=ae.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[r.TTD],ngContentSelectors:Te,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(E,k){1&E&&(r.F$t(),r.YNc(0,at,2,4,"div",0),r.TgZ(1,"div",1,2),r._UZ(3,"div",null,3),r.TgZ(5,"div",null,4),r.Hsn(7),r.qZA()(),r.YNc(8,J,2,4,"div",5)),2&E&&(r.Q6J("ngIf",k.headerTemplate),r.xp6(3),r.ekj("total-padding",k.virtualScroll),r.xp6(2),r.ekj("scrollable-content",k.virtualScroll&&k.items.length),r.xp6(3),r.Q6J("ngIf",k.footerTemplate))},dependencies:[nt.O5,nt.tP],encapsulation:2,changeDetection:0}),ie})(),ai=(()=>{var z;class ie{get disabled(){return this._disabled}set disabled(E){this._disabled=this._isDisabled(E)}constructor(E){this.elementRef=E,this.stateChange$=new me.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(E){E.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(E){return null!=E&&"false"!=`${E}`}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.Y36(r.SBq))},z.\u0275cmp=r.Xpm({type:z,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[r.TTD],ngContentSelectors:Te,decls:1,vars:0,template:function(E,k){1&E&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),ie})(),xe=(()=>{var z;class ie{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return(z=ie).\u0275fac=function(E){return new(E||z)},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),ie})(),W=(()=>{var z;class ie{warn(E){console.warn(E)}}return(z=ie).\u0275fac=function(E){return new(E||z)},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),ie})();const O=new r.OlP("ng-select-selection-model");let V=(()=>{var z;class ie{get items(){return this._items}set items(E){null===E&&(E=[]),this._itemsAreUsed=!0,this._items=E}get compareWith(){return this._compareWith}set compareWith(E){if(null!=E&&!dt(E))throw Error("`compareWith` must be a function.");this._compareWith=E}get clearSearchOnAdd(){return Oe(this._clearSearchOnAdd)?this._clearSearchOnAdd:Oe(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(E){this._clearSearchOnAdd=E}get deselectOnClick(){return Oe(this._deselectOnClick)?this._deselectOnClick:Oe(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(E){this._deselectOnClick=E}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(E,k,ae,S,L,ce,K){this.classes=E,this.autoFocus=k,this.config=ae,this._cd=ce,this._console=K,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=oe=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new r.vpe,this.focusEvent=new r.vpe,this.changeEvent=new r.vpe,this.openEvent=new r.vpe,this.closeEvent=new r.vpe,this.searchEvent=new r.vpe,this.clearEvent=new r.vpe,this.addEvent=new r.vpe,this.removeEvent=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=En(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new me.x,this._keyPress$=new me.x,this._onChange=oe=>{},this._onTouched=()=>{},this.clearItem=oe=>{const De=this.selectedItems.find(mt=>mt.value===oe);this.unselect(De)},this.trackByOption=(oe,De)=>this.trackByFn?this.trackByFn(De.value):De,this._mergeGlobalConfig(ae),this.itemsList=new Cn(this,S()),this.element=L.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(E=>E.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(E){E.multiple&&this.itemsList.clearSelected(),E.items&&this._setItems(E.items.currentValue||[]),E.isOpen&&(this._manualOpen=Oe(E.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Oe(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(E){if(kn[E.which]){if(!1===this.keyDownFn(E))return;this.handleKeyCode(E)}else E.key&&1===E.key.length&&this._keyPress$.next(E.key.toLocaleLowerCase())}handleKeyCode(E){switch(E.which){case kn.ArrowDown:this._handleArrowDown(E);break;case kn.ArrowUp:this._handleArrowUp(E);break;case kn.Space:this._handleSpace(E);break;case kn.Enter:this._handleEnter(E);break;case kn.Tab:this._handleTab(E);break;case kn.Esc:this.close(),E.preventDefault();break;case kn.Backspace:this._handleBackspace()}}handleMousedown(E){const k=E.target;"INPUT"!==k.tagName&&E.preventDefault(),k.classList.contains("ng-clear-wrapper")?this.handleClearClick():k.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():k.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(E){this.itemsList.clearSelected(),this._handleWriteValue(E),this._cd.markForCheck()}registerOnChange(E){this._onChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this._disabled=E,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(E){!E||E.disabled||this.disabled||(this.deselectOnClick&&E.selected?this.unselect(E):this.select(E),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(E){E.selected||(this.itemsList.select(E),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(E.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.readOnly||this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(E){E&&(this.itemsList.unselect(E),this.focus(),this._updateNgModel(),this.removeEvent.emit(E))}selectTag(){let E;E=dt(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const k=ae=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(ae,null):this.itemsList.addItem(ae);!function Re(z){return z instanceof Promise}(E)?E&&this.select(k(E)):E.then(ae=>this.select(k(ae))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const E=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(k=>k.label.toLowerCase()===E)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(k=>k.label.toLowerCase()===E))&&!this.loading}showNoItemsFound(){const E=0===this.itemsList.filteredItems.length;return(E&&!this._isTypeahead&&!this.loading||E&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(E){this._isComposing=!1,!this.searchWhileComposing&&this.filter(E)}filter(E){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=E,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(E),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:E,items:this.itemsList.filteredItems.map(k=>k.value)}),this.open())}onInputFocus(E){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(E),this.focused=!0)}onInputBlur(E){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(E),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(E){E.disabled||this.itemsList.markItem(E)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const E=this.selectedItems&&this.selectedItems[0];this.searchTerm=E&&E.label||null}_setItems(E){const k=E[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Oe(k)?!Ce(k):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(E),E.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Oe(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const E=ae=>{this.items=ae.map(S=>({$ngOptionValue:S.value,$ngOptionLabel:S.elementRef.nativeElement.innerHTML,disabled:S.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},k=()=>{const ae=(0,Ne.T)(this.ngOptions.changes,this._destroy$);(0,Ne.T)(...this.ngOptions.map(S=>S.stateChange$)).pipe((0,B.R)(ae)).subscribe(S=>{const L=this.itemsList.findItem(S.value);L.disabled=S.disabled,L.label=S.label||L.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,N.O)(this.ngOptions),(0,B.R)(this._destroy$)).subscribe(ae=>{this.bindLabel=this._defaultLabel,E(ae),k()})}_isValidWriteValue(E){if(!Oe(E)||this.multiple&&""===E||Array.isArray(E)&&0===E.length)return!1;const k=ae=>!(!Oe(this.compareWith)&&Ce(ae)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(ae)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(E)?E.every(ae=>k(ae)):(this._console.warn("Multiple select ngModel should be array."),!1):k(E)}_handleWriteValue(E){if(!this._isValidWriteValue(E))return;const k=ae=>{let S=this.itemsList.findItem(ae);if(S)this.itemsList.select(S);else{const L=Ce(ae);L||!L&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(ae,null)):this.bindValue&&(S={[this.bindLabel]:null,[this.bindValue]:ae},this.itemsList.select(this.itemsList.mapItem(S,null)))}};this.multiple?E.forEach(ae=>k(ae)):k(E)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,B.R)(this._destroy$),(0,ee.b)(E=>this._pressedKeys.push(E)),(0,te.b)(200),(0,fe.h)(()=>this._pressedKeys.length>0),(0,ne.U)(()=>this._pressedKeys.join(""))).subscribe(E=>{const k=this.itemsList.findByLabel(E);k&&(this.isOpen?(this.itemsList.markItem(k),this._scrollToMarked(),this._cd.markForCheck()):this.select(k)),this._pressedKeys=[]})}_setInputAttributes(){const E=this.searchInput.nativeElement,k={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const ae of Object.keys(k))E.setAttribute(ae,k[ae])}_updateNgModel(){const E=[];for(const ae of this.selectedItems)if(this.bindValue){let S=null;S=ae.children?ae.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(ae.value,this.bindValue),E.push(S)}else E.push(ae.value);const k=this.selectedItems.map(ae=>ae.value);this.multiple?(this._onChange(E),this.changeEvent.emit(k)):(this._onChange(Oe(E[0])?E[0]:null),this.changeEvent.emit(k[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(E){this.searchTerm=E,this._isTypeahead&&this.typeahead.next(E)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(E){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),E.preventDefault()):this.showAddTag?(this.selectTag(),E.preventDefault()):this.close():this.close())}_handleEnter(E){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}E.preventDefault()}_handleSpace(E){this.isOpen||this._manualOpen||(this.open(),E.preventDefault())}_handleArrowDown(E){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),E.preventDefault()}_handleArrowUp(E){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),E.preventDefault())}_nextItemIsTag(E){const k=this.itemsList.markedIndex+E;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(k<0||k===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const E=this.searchTerm&&this.searchTerm.trim();return E&&E.length>=this.minTermLength}_mergeGlobalConfig(E){this.placeholder=this.placeholder||E.placeholder,this.notFoundText=this.notFoundText||E.notFoundText,this.typeToSearchText=this.typeToSearchText||E.typeToSearchText,this.addTagText=this.addTagText||E.addTagText,this.loadingText=this.loadingText||E.loadingText,this.clearAllText=this.clearAllText||E.clearAllText,this.virtualScroll=Oe(this.virtualScroll)?this.virtualScroll:!!Oe(E.disableVirtualScroll)&&!E.disableVirtualScroll,this.openOnEnter=Oe(this.openOnEnter)?this.openOnEnter:E.openOnEnter,this.appendTo=this.appendTo||E.appendTo,this.bindValue=this.bindValue||E.bindValue,this.bindLabel=this.bindLabel||E.bindLabel,this.appearance=this.appearance||E.appearance}}return(z=ie).\u0275fac=function(E){return new(E||z)(r.$8M("class"),r.$8M("autofocus"),r.Y36(xe),r.Y36(O),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(W))},z.\u0275cmp=r.Xpm({type:z,selectors:[["ng-select"]],contentQueries:function(E,k,ae){if(1&E&&(r.Suo(ae,Ot,5,r.Rgc),r.Suo(ae,Zt,5,r.Rgc),r.Suo(ae,lt,5,r.Rgc),r.Suo(ae,He,5,r.Rgc),r.Suo(ae,vt,5,r.Rgc),r.Suo(ae,ze,5,r.Rgc),r.Suo(ae,Qe,5,r.Rgc),r.Suo(ae,St,5,r.Rgc),r.Suo(ae,Mt,5,r.Rgc),r.Suo(ae,en,5,r.Rgc),r.Suo(ae,tn,5,r.Rgc),r.Suo(ae,ai,5)),2&E){let S;r.iGM(S=r.CRH())&&(k.optionTemplate=S.first),r.iGM(S=r.CRH())&&(k.optgroupTemplate=S.first),r.iGM(S=r.CRH())&&(k.labelTemplate=S.first),r.iGM(S=r.CRH())&&(k.multiLabelTemplate=S.first),r.iGM(S=r.CRH())&&(k.headerTemplate=S.first),r.iGM(S=r.CRH())&&(k.footerTemplate=S.first),r.iGM(S=r.CRH())&&(k.notFoundTemplate=S.first),r.iGM(S=r.CRH())&&(k.typeToSearchTemplate=S.first),r.iGM(S=r.CRH())&&(k.loadingTextTemplate=S.first),r.iGM(S=r.CRH())&&(k.tagTemplate=S.first),r.iGM(S=r.CRH())&&(k.loadingSpinnerTemplate=S.first),r.iGM(S=r.CRH())&&(k.ngOptions=S)}},viewQuery:function(E,k){if(1&E&&(r.Gf(Zn,5),r.Gf(he,7)),2&E){let ae;r.iGM(ae=r.CRH())&&(k.dropdownPanel=ae.first),r.iGM(ae=r.CRH())&&(k.searchInput=ae.first)}},hostVars:20,hostBindings:function(E,k){1&E&&r.NdJ("keydown",function(S){return k.handleKeyDown(S)}),2&E&&r.ekj("ng-select-typeahead",k.typeahead)("ng-select-multiple",k.multiple)("ng-select-taggable",k.addTag)("ng-select-searchable",k.searchable)("ng-select-clearable",k.clearable)("ng-select-opened",k.isOpen)("ng-select",k.useDefaultClass)("ng-select-disabled",k.disabled)("ng-select-filtered",k.filtered)("ng-select-single",k.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[r._Bn([{provide:u.JU,useExisting:(0,r.Gpc)(()=>z),multi:!0},ni]),r.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(E,k){if(1&E){const ae=r.EpF();r.TgZ(0,"div",0),r.NdJ("mousedown",function(L){return k.handleMousedown(L)}),r.TgZ(1,"div",1)(2,"div",2),r._uU(3),r.qZA(),r.YNc(4,Ut,2,2,"ng-container",3),r.YNc(5,on,1,5,null,3),r.TgZ(6,"div",4)(7,"input",5,6),r.NdJ("input",function(){r.CHM(ae);const L=r.MAs(8);return r.KtG(k.filter(L.value))})("compositionstart",function(){return k.onCompositionStart()})("compositionend",function(){r.CHM(ae);const L=r.MAs(8);return r.KtG(k.onCompositionEnd(L.value))})("focus",function(L){return k.onInputFocus(L)})("blur",function(L){return k.onInputBlur(L)})("change",function(L){return L.stopPropagation()}),r.qZA()()(),r.YNc(9,Fn,4,1,"ng-container",3),r.YNc(10,Gn,3,1,"span",7),r.TgZ(11,"span",8),r._UZ(12,"span",9),r.qZA()(),r.YNc(13,Mn,7,19,"ng-dropdown-panel",10)}2&E&&(r.ekj("ng-appearance-outline","outline"===k.appearance)("ng-has-value",k.hasValue),r.xp6(3),r.Oqu(k.placeholder),r.xp6(1),r.Q6J("ngIf",(!k.multiLabelTemplate||!k.multiple)&&k.selectedItems.length>0),r.xp6(1),r.Q6J("ngIf",k.multiple&&k.multiLabelTemplate&&k.selectedValues.length>0),r.xp6(1),r.uIk("aria-expanded",k.isOpen)("aria-owns",k.isOpen?k.dropdownId:null),r.xp6(1),r.Q6J("readOnly",!k.searchable||k.itemsList.maxItemsSelected)("disabled",k.disabled)("value",k.searchTerm?k.searchTerm:""),r.uIk("id",k.labelForId)("tabindex",k.tabIndex)("aria-activedescendant",k.isOpen?null==k.itemsList||null==k.itemsList.markedItem?null:k.itemsList.markedItem.htmlId:null)("aria-controls",k.isOpen?k.dropdownId:null),r.xp6(2),r.Q6J("ngIf",k.loading),r.xp6(1),r.Q6J("ngIf",k.showClear()),r.xp6(3),r.Q6J("ngIf",k.isOpen))},dependencies:[nt.mk,nt.sg,nt.O5,nt.tP,Zn,_t],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0}),ie})();function M(){return new j}class j{constructor(){this._selected=[]}get value(){return this._selected}select(ie,se,E){if(ie.selected=!0,(!ie.children||!se&&E)&&this._selected.push(ie),se)if(ie.parent){const k=ie.parent.children.length,ae=ie.parent.children.filter(S=>S.selected).length;ie.parent.selected=k===ae}else ie.children&&(this._setChildrenSelectedState(ie.children,!0),this._removeChildren(ie),this._selected=E&&this._activeChildren(ie)?[...this._selected.filter(k=>k.parent!==ie),ie]:[...this._selected,...ie.children.filter(k=>!k.disabled)])}unselect(ie,se){if(this._selected=this._selected.filter(E=>E!==ie),ie.selected=!1,se)if(ie.parent&&ie.parent.selected){const E=ie.parent.children;this._removeParent(ie.parent),this._removeChildren(ie.parent),this._selected.push(...E.filter(k=>k!==ie&&!k.disabled)),ie.parent.selected=!1}else ie.children&&(this._setChildrenSelectedState(ie.children,!1),this._removeChildren(ie))}clear(ie){this._selected=ie?this._selected.filter(se=>se.disabled):[]}_setChildrenSelectedState(ie,se){for(const E of ie)E.disabled||(E.selected=se)}_removeChildren(ie){this._selected=[...this._selected.filter(se=>se.parent!==ie),...ie.children.filter(se=>se.parent===ie&&se.disabled&&se.selected)]}_removeParent(ie){this._selected=this._selected.filter(se=>se!==ie)}_activeChildren(ie){return ie.children.every(se=>!se.disabled||se.selected)}}let ye=(()=>{var z;class ie{}return(z=ie).\u0275fac=function(E){return new(E||z)},z.\u0275mod=r.oAB({type:z}),z.\u0275inj=r.cJS({providers:[{provide:O,useValue:M}],imports:[nt.ez]}),ie})()},3182:(It,Me,g)=>{g.d(Me,{C6:()=>r.getApps,Mq:()=>r.getApp});var r=g(534);(0,r.registerVersion)("firebase","9.23.0","app")},7142:(It,Me,g)=>{g.d(Me,{Z:()=>r.Z});var r=g(3106);r.Z.registerVersion("firebase","9.23.0","app-compat")},9229:(It,Me,g)=>{function r(Ue){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ut){return typeof ut}:function(ut){return ut&&"function"==typeof Symbol&&ut.constructor===Symbol&&ut!==Symbol.prototype?"symbol":typeof ut})(Ue)}function $(Ue,ut,Pe){return(ut=function B(Ue){var ut=function u(Ue,ut){if("object"!==r(Ue)||null===Ue)return Ue;var Pe=Ue[Symbol.toPrimitive];if(void 0!==Pe){var et=Pe.call(Ue,ut||"default");if("object"!==r(et))return et;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ut?String:Number)(Ue)}(Ue,"string");return"symbol"===r(ut)?ut:String(ut)}(ut))in Ue?Object.defineProperty(Ue,ut,{value:Pe,enumerable:!0,configurable:!0,writable:!0}):Ue[ut]=Pe,Ue}g.d(Me,{FN:()=>Gn,PR:()=>yt,Rh:()=>$e,_W:()=>Fn});var N=g(5879),ee=g(6825),te=g(6814),fe=g(8645),ne=g(6593);const H=["toast-component",""];function q(Ue,ut){if(1&Ue){const Pe=N.EpF();N.TgZ(0,"button",5),N.NdJ("click",function(){N.CHM(Pe);const Ye=N.oxw();return N.KtG(Ye.remove())}),N.TgZ(1,"span",6),N._uU(2,"\xd7"),N.qZA()()}}function me(Ue,ut){if(1&Ue&&(N.ynx(0),N._uU(1),N.BQk()),2&Ue){const Pe=N.oxw(2);N.xp6(1),N.hij("[",Pe.duplicatesCount+1,"]")}}function Ie(Ue,ut){if(1&Ue&&(N.TgZ(0,"div"),N._uU(1),N.YNc(2,me,2,1,"ng-container",4),N.qZA()),2&Ue){const Pe=N.oxw();N.Tol(Pe.options.titleClass),N.uIk("aria-label",Pe.title),N.xp6(1),N.hij(" ",Pe.title," "),N.xp6(1),N.Q6J("ngIf",Pe.duplicatesCount)}}function Ne(Ue,ut){if(1&Ue&&N._UZ(0,"div",7),2&Ue){const Pe=N.oxw();N.Tol(Pe.options.messageClass),N.Q6J("innerHTML",Pe.message,N.oJD)}}function nt(Ue,ut){if(1&Ue&&(N.TgZ(0,"div",8),N._uU(1),N.qZA()),2&Ue){const Pe=N.oxw();N.Tol(Pe.options.messageClass),N.uIk("aria-label",Pe.message),N.xp6(1),N.hij(" ",Pe.message," ")}}function we(Ue,ut){if(1&Ue&&(N.TgZ(0,"div"),N._UZ(1,"div",9),N.qZA()),2&Ue){const Pe=N.oxw();N.xp6(1),N.Udp("width",Pe.width+"%")}}class _e{constructor(ut,Pe){$(this,"_attachedHost",void 0),$(this,"component",void 0),$(this,"viewContainerRef",void 0),$(this,"injector",void 0),this.component=ut,this.injector=Pe}attach(ut,Pe){return this._attachedHost=ut,ut.attach(this,Pe)}detach(){const ut=this._attachedHost;if(ut)return this._attachedHost=void 0,ut.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(ut){this._attachedHost=ut}}class Ke{constructor(){$(this,"_attachedPortal",void 0),$(this,"_disposeFn",void 0)}attach(ut,Pe){return this._attachedPortal=ut,this.attachComponentPortal(ut,Pe)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(ut){this._disposeFn=ut}}class qe{constructor(ut){$(this,"_overlayRef",void 0),$(this,"componentInstance",void 0),$(this,"duplicatesCount",0),$(this,"_afterClosed",new fe.x),$(this,"_activate",new fe.x),$(this,"_manualClose",new fe.x),$(this,"_resetTimeout",new fe.x),$(this,"_countDuplicate",new fe.x),this._overlayRef=ut}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(ut,Pe){ut&&this._resetTimeout.next(),Pe&&this._countDuplicate.next(++this.duplicatesCount)}}class yt{constructor(ut,Pe,et,Ye,Rt,Yt){$(this,"toastId",void 0),$(this,"config",void 0),$(this,"message",void 0),$(this,"title",void 0),$(this,"toastType",void 0),$(this,"toastRef",void 0),$(this,"_onTap",new fe.x),$(this,"_onAction",new fe.x),this.toastId=ut,this.config=Pe,this.message=et,this.title=Ye,this.toastType=Rt,this.toastRef=Yt,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(ut){this._onAction.next(ut)}onAction(){return this._onAction.asObservable()}}const Gt=new N.OlP("ToastConfig");class Xt extends Ke{constructor(ut,Pe,et){super(),$(this,"_hostDomElement",void 0),$(this,"_componentFactoryResolver",void 0),$(this,"_appRef",void 0),this._hostDomElement=ut,this._componentFactoryResolver=Pe,this._appRef=et}attachComponentPortal(ut,Pe){const et=this._componentFactoryResolver.resolveComponentFactory(ut.component);let Ye;return Ye=et.create(ut.injector),this._appRef.attachView(Ye.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ye.hostView),Ye.destroy()}),Pe?this._hostDomElement.insertBefore(this._getComponentRootNode(Ye),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ye)),Ye}_getComponentRootNode(ut){return ut.hostView.rootNodes[0]}}let on=(()=>{var Ue;class ut{constructor(){$(this,"_document",(0,N.f3M)(te.K0)),$(this,"_containerElement",void 0)}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const et=this._document.createElement("div");et.classList.add("overlay-container"),et.setAttribute("aria-live","polite"),this._document.body.appendChild(et),this._containerElement=et}}return Ue=ut,$(ut,"\u0275fac",function(et){return new(et||Ue)}),$(ut,"\u0275prov",N.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})),ut})();class cn{constructor(ut){$(this,"_portalHost",void 0),this._portalHost=ut}attach(ut,Pe=!0){return this._portalHost.attach(ut,Pe)}detach(){return this._portalHost.detach()}}let mn=(()=>{var Ue;class ut{constructor(){$(this,"_overlayContainer",(0,N.f3M)(on)),$(this,"_componentFactoryResolver",(0,N.f3M)(N._Vd)),$(this,"_appRef",(0,N.f3M)(N.z2F)),$(this,"_document",(0,N.f3M)(te.K0)),$(this,"_paneElements",new Map)}create(et,Ye){return this._createOverlayRef(this.getPaneElement(et,Ye))}getPaneElement(et="",Ye){return this._paneElements.get(Ye)||this._paneElements.set(Ye,{}),this._paneElements.get(Ye)[et]||(this._paneElements.get(Ye)[et]=this._createPaneElement(et,Ye)),this._paneElements.get(Ye)[et]}_createPaneElement(et,Ye){const Rt=this._document.createElement("div");return Rt.id="toast-container",Rt.classList.add(et),Rt.classList.add("toast-container"),Ye?Ye.getContainerElement().appendChild(Rt):this._overlayContainer.getContainerElement().appendChild(Rt),Rt}_createPortalHost(et){return new Xt(et,this._componentFactoryResolver,this._appRef)}_createOverlayRef(et){return new cn(this._createPortalHost(et))}}return Ue=ut,$(ut,"\u0275fac",function(et){return new(et||Ue)}),$(ut,"\u0275prov",N.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})),ut})(),Fn=(()=>{var Ue;class ut{constructor(et,Ye,Rt,Yt,gn){$(this,"overlay",void 0),$(this,"_injector",void 0),$(this,"sanitizer",void 0),$(this,"ngZone",void 0),$(this,"toastrConfig",void 0),$(this,"currentlyActive",0),$(this,"toasts",[]),$(this,"overlayContainer",void 0),$(this,"previousToastMessage",void 0),$(this,"index",0),this.overlay=Ye,this._injector=Rt,this.sanitizer=Yt,this.ngZone=gn,this.toastrConfig={...et.default,...et.config},et.config.iconClasses&&(this.toastrConfig.iconClasses={...et.default.iconClasses,...et.config.iconClasses})}show(et,Ye,Rt={},Yt=""){return this._preBuildNotification(Yt,et,Ye,this.applyConfig(Rt))}success(et,Ye,Rt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",et,Ye,this.applyConfig(Rt))}error(et,Ye,Rt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",et,Ye,this.applyConfig(Rt))}info(et,Ye,Rt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",et,Ye,this.applyConfig(Rt))}warning(et,Ye,Rt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",et,Ye,this.applyConfig(Rt))}clear(et){for(const Ye of this.toasts)if(void 0!==et){if(Ye.toastId===et)return void Ye.toastRef.manualClose()}else Ye.toastRef.manualClose()}remove(et){const Ye=this._findToast(et);if(!Ye||(Ye.activeToast.toastRef.close(),this.toasts.splice(Ye.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Rt=this.toasts[this.currentlyActive].toastRef;Rt.isInactive()||(this.currentlyActive=this.currentlyActive+1,Rt.activate())}return!0}findDuplicate(et="",Ye="",Rt,Yt){const{includeTitleDuplicates:gn}=this.toastrConfig;for(const Ht of this.toasts)if((!gn||gn&&Ht.title===et)&&Ht.message===Ye)return Ht.toastRef.onDuplicate(Rt,Yt),Ht;return null}applyConfig(et={}){return{...this.toastrConfig,...et}}_findToast(et){for(let Ye=0;Ye<this.toasts.length;Ye++)if(this.toasts[Ye].toastId===et)return{index:Ye,activeToast:this.toasts[Ye]};return null}_preBuildNotification(et,Ye,Rt,Yt){return Yt.onActivateTick?this.ngZone.run(()=>this._buildNotification(et,Ye,Rt,Yt)):this._buildNotification(et,Ye,Rt,Yt)}_buildNotification(et,Ye,Rt,Yt){if(!Yt.toastComponent)throw new Error("toastComponent required");const gn=this.findDuplicate(Rt,Ye,this.toastrConfig.resetTimeoutOnDuplicate&&Yt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Rt||Ye)&&this.toastrConfig.preventDuplicates&&null!==gn)return gn;this.previousToastMessage=Ye;let Ht=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Ht=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Mn=this.overlay.create(Yt.positionClass,this.overlayContainer);this.index=this.index+1;let Wn=Ye;Ye&&Yt.enableHtml&&(Wn=this.sanitizer.sanitize(N.q3G.HTML,Ye));const In=new qe(Mn),pt=new yt(this.index,Yt,Wn,Rt,et,In),Oe=N.zs3.create({providers:[{provide:yt,useValue:pt}],parent:this._injector}),Ce=new _e(Yt.toastComponent,Oe),Re=Mn.attach(Ce,Yt.newestOnTop);In.componentInstance=Re.instance;const dt={toastId:this.index,title:Rt||"",message:Ye||"",toastRef:In,onShown:In.afterActivate(),onHidden:In.afterClosed(),onTap:pt.onTap(),onAction:pt.onAction(),portal:Re};return Ht||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{dt.toastRef.activate()})),this.toasts.push(dt),dt}}return Ue=ut,$(ut,"\u0275fac",function(et){return new(et||Ue)(N.LFG(Gt),N.LFG(mn),N.LFG(N.zs3),N.LFG(ne.H7),N.LFG(N.R0b))}),$(ut,"\u0275prov",N.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})),ut})(),Gn=(()=>{var Ue;class ut{get displayStyle(){if("inactive"===this.state.value)return"none"}constructor(et,Ye,Rt){$(this,"toastrService",void 0),$(this,"toastPackage",void 0),$(this,"ngZone",void 0),$(this,"message",void 0),$(this,"title",void 0),$(this,"options",void 0),$(this,"duplicatesCount",void 0),$(this,"originalTimeout",void 0),$(this,"width",-1),$(this,"toastClasses",""),$(this,"state",void 0),$(this,"timeout",void 0),$(this,"intervalId",void 0),$(this,"hideTime",void 0),$(this,"sub",void 0),$(this,"sub1",void 0),$(this,"sub2",void 0),$(this,"sub3",void 0),this.toastrService=et,this.toastPackage=Ye,this.ngZone=Rt,this.message=Ye.message,this.title=Ye.title,this.options=Ye.config,this.originalTimeout=Ye.config.timeOut,this.toastClasses=`${Ye.toastType} ${Ye.config.toastClass}`,this.sub=Ye.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Ye.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Ye.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Ye.toastRef.countDuplicate().subscribe(Yt=>{this.duplicatesCount=Yt}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const et=(new Date).getTime();this.width=(this.hideTime-et)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(et,Ye){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(et),Ye)):this.timeout=setTimeout(()=>et(),Ye)}outsideInterval(et,Ye){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(et),Ye)):this.intervalId=setInterval(()=>et(),Ye)}runInsideAngular(et){this.ngZone?this.ngZone.run(()=>et()):et()}}return Ue=ut,$(ut,"\u0275fac",function(et){return new(et||Ue)(N.Y36(Fn),N.Y36(yt),N.Y36(N.R0b))}),$(ut,"\u0275cmp",N.Xpm({type:Ue,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(et,Ye){1&et&&N.NdJ("click",function(){return Ye.tapToast()})("mouseenter",function(){return Ye.stickAround()})("mouseleave",function(){return Ye.delayedHideToast()}),2&et&&(N.d8E("@flyInOut",Ye.state),N.Tol(Ye.toastClasses),N.Udp("display",Ye.displayStyle))},standalone:!0,features:[N.jDz],attrs:H,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(et,Ye){1&et&&(N.YNc(0,q,3,0,"button",0),N.YNc(1,Ie,3,5,"div",1),N.YNc(2,Ne,1,3,"div",2),N.YNc(3,nt,2,4,"div",3),N.YNc(4,we,2,2,"div",4)),2&et&&(N.Q6J("ngIf",Ye.options.closeButton),N.xp6(1),N.Q6J("ngIf",Ye.title),N.xp6(1),N.Q6J("ngIf",Ye.message&&Ye.options.enableHtml),N.xp6(1),N.Q6J("ngIf",Ye.message&&!Ye.options.enableHtml),N.xp6(1),N.Q6J("ngIf",Ye.options.progressBar))},dependencies:[te.O5],encapsulation:2,data:{animation:[(0,ee.X$)("flyInOut",[(0,ee.SB)("inactive",(0,ee.oB)({opacity:0})),(0,ee.SB)("active",(0,ee.oB)({opacity:1})),(0,ee.SB)("removed",(0,ee.oB)({opacity:0})),(0,ee.eR)("inactive => active",(0,ee.jt)("{{ easeTime }}ms {{ easing }}")),(0,ee.eR)("active => removed",(0,ee.jt)("{{ easeTime }}ms {{ easing }}"))])]}})),ut})();const Le={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:Gn},Ve=(Ue={})=>(0,N.MR2)([{provide:Gt,useValue:{default:Le,config:Ue}}]);let $e=(()=>{var Ue;class ut{static forRoot(et={}){return{ngModule:ut,providers:[Ve(et)]}}}return Ue=ut,$(ut,"\u0275fac",function(et){return new(et||Ue)}),$(ut,"\u0275mod",N.oAB({type:Ue})),$(ut,"\u0275inj",N.cJS({})),ut})()},5861:(It,Me,g)=>{function r(B,$,N,ee,te,fe,ne){try{var H=B[fe](ne),q=H.value}catch(me){return void N(me)}H.done?$(q):Promise.resolve(q).then(ee,te)}function u(B){return function(){var $=this,N=arguments;return new Promise(function(ee,te){var fe=B.apply($,N);function ne(q){r(fe,ee,te,ne,H,"next",q)}function H(q){r(fe,ee,te,ne,H,"throw",q)}ne(void 0)})}}g.d(Me,{Z:()=>u})},7582:(It,Me,g)=>{function $(Le,Ve){var $e={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&Ve.indexOf(ve)<0&&($e[ve]=Le[ve]);if(null!=Le&&"function"==typeof Object.getOwnPropertySymbols){var Je=0;for(ve=Object.getOwnPropertySymbols(Le);Je<ve.length;Je++)Ve.indexOf(ve[Je])<0&&Object.prototype.propertyIsEnumerable.call(Le,ve[Je])&&($e[ve[Je]]=Le[ve[Je]])}return $e}function me(Le,Ve,$e,ve){return new($e||($e=Promise))(function(ht,Dt){function Ue(et){try{Pe(ve.next(et))}catch(Ye){Dt(Ye)}}function ut(et){try{Pe(ve.throw(et))}catch(Ye){Dt(Ye)}}function Pe(et){et.done?ht(et.value):function Je(ht){return ht instanceof $e?ht:new $e(function(Dt){Dt(ht)})}(et.value).then(Ue,ut)}Pe((ve=ve.apply(Le,Ve||[])).next())})}function J(Le){return this instanceof J?(this.v=Le,this):new J(Le)}function Te(Le,Ve,$e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Je,ve=$e.apply(Le,Ve||[]),ht=[];return Je={},Dt("next"),Dt("throw"),Dt("return"),Je[Symbol.asyncIterator]=function(){return this},Je;function Dt(Rt){ve[Rt]&&(Je[Rt]=function(Yt){return new Promise(function(gn,Ht){ht.push([Rt,Yt,gn,Ht])>1||Ue(Rt,Yt)})})}function Ue(Rt,Yt){try{!function ut(Rt){Rt.value instanceof J?Promise.resolve(Rt.value.v).then(Pe,et):Ye(ht[0][2],Rt)}(ve[Rt](Yt))}catch(gn){Ye(ht[0][3],gn)}}function Pe(Rt){Ue("next",Rt)}function et(Rt){Ue("throw",Rt)}function Ye(Rt,Yt){Rt(Yt),ht.shift(),ht.length&&Ue(ht[0][0],ht[0][1])}}function _e(Le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $e,Ve=Le[Symbol.asyncIterator];return Ve?Ve.call(Le):(Le=function we(Le){var Ve="function"==typeof Symbol&&Symbol.iterator,$e=Ve&&Le[Ve],ve=0;if($e)return $e.call(Le);if(Le&&"number"==typeof Le.length)return{next:function(){return Le&&ve>=Le.length&&(Le=void 0),{value:Le&&Le[ve++],done:!Le}}};throw new TypeError(Ve?"Object is not iterable.":"Symbol.iterator is not defined.")}(Le),$e={},ve("next"),ve("throw"),ve("return"),$e[Symbol.asyncIterator]=function(){return this},$e);function ve(ht){$e[ht]=Le[ht]&&function(Dt){return new Promise(function(Ue,ut){!function Je(ht,Dt,Ue,ut){Promise.resolve(ut).then(function(Pe){ht({value:Pe,done:Ue})},Dt)}(Ue,ut,(Dt=Le[ht](Dt)).done,Dt.value)})}}}g.d(Me,{FC:()=>Te,KL:()=>_e,_T:()=>$,mG:()=>me,qq:()=>J}),"function"==typeof SuppressedError&&SuppressedError}},It=>{It(It.s=3788)}]);