dealposbarcode 1.5.5 → 1.5.7

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],{5200:(Ct,Te,g)=>{g.d(Te,{zQ:()=>Fr,ww:()=>Oi});var r=g(4650),c=g(7579),A=g(9646),B=g(9751),X=g(8996),se=g(6451),J=g(5363),ee=g(3900),ne=g(4004),j=g(4782),q=g(590),le=g(576);function He(Pe,Le){return(0,le.m)(Le)?(0,ee.w)(()=>Pe,Le):(0,ee.w)(()=>Pe)}var Ee=g(9468),Ne=g(9300),Re=g(2122),ue=g(2011),ke=g(6895);g(259);var bt=g(5861),It=g(9681),Ce=g(4859),Xe=g(2090),L=g(1877);const ie=new Map,Ve={activated:!1,tokenObservers:[]},ut={initialized:!1,enabled:!1};function xt(Pe){return ie.get(Pe)||Object.assign({},Ve)}function zt(){return ut}class tt{constructor(Le,Ze,gt,Nt,Gt){if(this.operation=Le,this.retryPolicy=Ze,this.getWaitDuration=gt,this.lowerBound=Nt,this.upperBound=Gt,this.pending=null,this.nextErrorWaitInterval=Nt,Nt>Gt)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(Le){var Ze=this;return(0,bt.Z)(function*(){Ze.stop();try{Ze.pending=new Xe.BH,yield function W(Pe){return new Promise(Le=>{setTimeout(Le,Pe)})}(Ze.getNextRun(Le)),Ze.pending.resolve(),yield Ze.pending.promise,Ze.pending=new Xe.BH,yield Ze.operation(),Ze.pending.resolve(),yield Ze.pending.promise,Ze.process(!0).catch(()=>{})}catch(gt){Ze.retryPolicy(gt)?Ze.process(!1).catch(()=>{}):Ze.stop()}})()}getNextRun(Le){if(Le)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 Se=new Xe.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 ct(Pe){if(!xt(Pe).activated)throw Se.create("use-before-activation",{appName:Pe.name})}function Pt(Pe,Le){return St.apply(this,arguments)}function St(){return(St=(0,bt.Z)(function*({url:Pe,body:Le},Ze){const gt={"Content-Type":"application/json"},Nt=Ze.getImmediate({optional:!0});if(Nt){const pi=yield Nt.getHeartbeatsHeader();pi&&(gt["X-Firebase-Client"]=pi)}const Gt={method:"POST",body:JSON.stringify(Le),headers:gt};let pn,Xn;try{pn=yield fetch(Pe,Gt)}catch(pi){throw Se.create("fetch-network-error",{originalErrorMessage:pi?.message})}if(200!==pn.status)throw Se.create("fetch-status-error",{httpStatus:pn.status});try{Xn=yield pn.json()}catch(pi){throw Se.create("fetch-parse-error",{originalErrorMessage:pi?.message})}const Cn=Xn.ttl.match(/^([\d.]+)(s)$/);if(!Cn||!Cn[2]||isNaN(Number(Cn[1])))throw Se.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${Xn.ttl}`});const fi=1e3*Number(Cn[1]),Si=Date.now();return{token:Xn.token,expireTimeMillis:Si+fi,issuedAtTimeMillis:Si}})).apply(this,arguments)}function fe(Pe,Le){const{projectId:Ze,appId:gt,apiKey:Nt}=Pe.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${Ze}/apps/${gt}:exchangeDebugToken?key=${Nt}`,body:{debug_token:Le}}}const Ft="firebase-app-check-store";let Vt=null;function wn(){return Vt||(Vt=new Promise((Pe,Le)=>{try{const Ze=indexedDB.open("firebase-app-check-database",1);Ze.onsuccess=gt=>{Pe(gt.target.result)},Ze.onerror=gt=>{var Nt;Le(Se.create("storage-open",{originalErrorMessage:null===(Nt=gt.target.error)||void 0===Nt?void 0:Nt.message}))},Ze.onupgradeneeded=gt=>{0===gt.oldVersion&&gt.target.result.createObjectStore(Ft,{keyPath:"compositeKey"})}}catch(Ze){Le(Se.create("storage-open",{originalErrorMessage:Ze?.message}))}}),Vt)}function V(){return(V=(0,bt.Z)(function*(Pe,Le){const gt=(yield wn()).transaction(Ft,"readwrite"),Gt=gt.objectStore(Ft).put({compositeKey:Pe,value:Le});return new Promise((pn,Xn)=>{Gt.onsuccess=Cn=>{pn()},gt.onerror=Cn=>{var fi;Xn(Se.create("storage-set",{originalErrorMessage:null===(fi=Cn.target.error)||void 0===fi?void 0:fi.message}))}})})).apply(this,arguments)}const K=new L.Yd("@firebase/app-check");function qe(Pe,Le){return(0,Xe.hl)()?function xn(Pe,Le){return function te(Pe,Le){return V.apply(this,arguments)}(function Ke(Pe){return`${Pe.options.appId}-${Pe.name}`}(Pe),Le)}(Pe,Le).catch(Ze=>{K.warn(`Failed to write token to IndexedDB. Error: ${Ze}`)}):Promise.resolve()}function Wt(){return zt().enabled}function tn(){return he.apply(this,arguments)}function he(){return(he=(0,bt.Z)(function*(){const Pe=zt();if(Pe.enabled&&Pe.token)return Pe.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const p={error:"UNKNOWN_ERROR"};function _(Pe){return Xe.US.encodeString(JSON.stringify(Pe),!1)}function I(Pe){return P.apply(this,arguments)}function P(){return(P=(0,bt.Z)(function*(Pe,Le=!1){const Ze=Pe.app;ct(Ze);const gt=xt(Ze);let Gt,Nt=gt.token;if(Nt&&!bn(Nt)&&(gt.token=void 0,Nt=void 0),!Nt){const Cn=yield gt.cachedTokenPromise;Cn&&(bn(Cn)?Nt=Cn:yield qe(Ze,void 0))}if(!Le&&Nt&&bn(Nt))return{token:Nt.token};let Xn,pn=!1;if(Wt()){gt.exchangeTokenPromise||(gt.exchangeTokenPromise=Pt(fe(Ze,yield tn()),Pe.heartbeatServiceProvider).finally(()=>{gt.exchangeTokenPromise=void 0}),pn=!0);const Cn=yield gt.exchangeTokenPromise;return yield qe(Ze,Cn),gt.token=Cn,{token:Cn.token}}try{gt.exchangeTokenPromise||(gt.exchangeTokenPromise=gt.provider.getToken().finally(()=>{gt.exchangeTokenPromise=void 0}),pn=!0),Nt=yield xt(Ze).exchangeTokenPromise}catch(Cn){"appCheck/throttled"===Cn.code?K.warn(Cn.message):K.error(Cn),Gt=Cn}return Nt?Gt?Xn=bn(Nt)?{token:Nt.token,internalError:Gt}:ht(Gt):(Xn={token:Nt.token},gt.token=Nt,yield qe(Ze,Nt)):Xn=ht(Gt),pn&&hn(Ze,Xn),Xn})).apply(this,arguments)}function Be(Pe,Le){const Ze=xt(Pe),gt=Ze.tokenObservers.filter(Nt=>Nt.next!==Le);0===gt.length&&Ze.tokenRefresher&&Ze.tokenRefresher.isRunning()&&Ze.tokenRefresher.stop(),Ze.tokenObservers=gt}function yt(Pe){const{app:Le}=Pe,Ze=xt(Le);let gt=Ze.tokenRefresher;gt||(gt=function Bt(Pe){const{app:Le}=Pe;return new tt((0,bt.Z)(function*(){let gt;if(gt=xt(Le).token?yield I(Pe,!0):yield I(Pe),gt.error)throw gt.error;if(gt.internalError)throw gt.internalError}),()=>!0,()=>{const Ze=xt(Le);if(Ze.token){let gt=Ze.token.issuedAtTimeMillis+.5*(Ze.token.expireTimeMillis-Ze.token.issuedAtTimeMillis)+3e5;return gt=Math.min(gt,Ze.token.expireTimeMillis-3e5),Math.max(0,gt-Date.now())}return 0},3e4,96e4)}(Pe),Ze.tokenRefresher=gt),!gt.isRunning()&&Ze.isTokenAutoRefreshEnabled&&gt.start()}function hn(Pe,Le){const Ze=xt(Pe).tokenObservers;for(const gt of Ze)try{"EXTERNAL"===gt.type&&null!=Le.error?gt.error(Le.error):gt.next(Le)}catch{}}function bn(Pe){return Pe.expireTimeMillis-Date.now()>0}function ht(Pe){return{token:_(p),error:Pe}}class Ot{constructor(Le,Ze){this.app=Le,this.heartbeatServiceProvider=Ze}_delete(){const{tokenObservers:Le}=xt(this.app);for(const Ze of Le)Be(this.app,Ze.next);return Promise.resolve()}}const Hi="app-check-internal";!function Mi(){(0,It._registerComponent)(new Ce.wA("app-check",Pe=>function Ae(Pe,Le){return new Ot(Pe,Le)}(Pe.getProvider("app").getImmediate(),Pe.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((Pe,Le,Ze)=>{Pe.getProvider(Hi).initialize()})),(0,It._registerComponent)(new Ce.wA(Hi,Pe=>function ft(Pe){return{getToken:Le=>I(Pe,Le),addTokenListener:Le=>function oe(Pe,Le,Ze,gt){const{app:Nt}=Pe,Gt=xt(Nt);if(Gt.tokenObservers=[...Gt.tokenObservers,{next:Ze,error:gt,type:Le}],Gt.token&&bn(Gt.token)){const Xn=Gt.token;Promise.resolve().then(()=>{Ze({token:Xn.token}),yt(Pe)}).catch(()=>{})}Gt.cachedTokenPromise.then(()=>yt(Pe))}(Pe,"INTERNAL",Le),removeTokenListener:Le=>Be(Pe.app,Le)}}(Pe.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,It.registerVersion)("@firebase/app-check","0.6.3")}();class Qn{constructor(){return(0,Re.vb)("app-check")}}typeof window<"u"&&window;var Qi=g(9260);const Xr=new r.OlP("angularfire2.auth.use-emulator"),dr=new r.OlP("angularfire2.auth.settings"),Bo=new r.OlP("angularfire2.auth.tenant-id"),Dr=new r.OlP("angularfire2.auth.langugage-code"),co=new r.OlP("angularfire2.auth.use-device-language"),Lr=new r.OlP("angularfire.auth.persistence");let Fr=(()=>{class Pe{constructor(Ze,gt,Nt,Gt,pn,Xn,Cn,fi,Si,pi,vi,wr){const Li=new c.x,yi=(0,A.of)(void 0).pipe((0,J.Q)(pn.outsideAngular),(0,ee.w)(()=>Gt.runOutsideAngular(()=>g.e(407).then(g.bind(g,407)))),(0,ne.U)(()=>(0,ue.on)(Ze,Gt,gt)),(0,ne.U)(Ar=>((Pe,Le,Ze,gt,Nt,Gt,pn,Xn)=>(0,ue.cc)(`${Pe.name}.auth`,"AngularFireAuth",Pe.name,()=>{const Cn=Le.runOutsideAngular(()=>Pe.auth());if(Ze&&Cn.useEmulator(...Ze),gt&&(Cn.tenantId=gt),Cn.languageCode=Nt,Gt&&Cn.useDeviceLanguage(),pn)for(const[fi,Si]of Object.entries(pn))Cn.settings[fi]=Si;return Xn&&Cn.setPersistence(Xn),Cn},[Ze,gt,Nt,Gt,pn,Xn]))(Ar,Gt,Xn,fi,Si,pi,Cn,vi)),(0,j.d)({bufferSize:1,refCount:!1}));if((0,ke.PM)(Nt))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,A.of)(null);else{yi.pipe((0,q.P)()).subscribe();const Br=yi.pipe((0,ee.w)(Hn=>Hn.getRedirectResult().then(Un=>Un,()=>null)),Re.iC,(0,j.d)({bufferSize:1,refCount:!1})),hr=yi.pipe((0,ee.w)(Hn=>new B.y(Un=>({unsubscribe:Gt.runOutsideAngular(()=>Hn.onAuthStateChanged(Bi=>Un.next(Bi),Bi=>Un.error(Bi),()=>Un.complete()))})))),ji=yi.pipe((0,ee.w)(Hn=>new B.y(Un=>({unsubscribe:Gt.runOutsideAngular(()=>Hn.onIdTokenChanged(Bi=>Un.next(Bi),Bi=>Un.error(Bi),()=>Un.complete()))}))));this.authState=Br.pipe(He(hr),(0,Ee.R)(pn.outsideAngular),(0,J.Q)(pn.insideAngular)),this.user=Br.pipe(He(ji),(0,Ee.R)(pn.outsideAngular),(0,J.Q)(pn.insideAngular)),this.idToken=this.user.pipe((0,ee.w)(Hn=>Hn?(0,X.D)(Hn.getIdToken()):(0,A.of)(null))),this.idTokenResult=this.user.pipe((0,ee.w)(Hn=>Hn?(0,X.D)(Hn.getIdTokenResult()):(0,A.of)(null))),this.credential=(0,se.T)(Br,Li,this.authState.pipe((0,Ne.h)(Hn=>!Hn))).pipe((0,ne.U)(Hn=>Hn?.user?Hn:null),(0,Ee.R)(pn.outsideAngular),(0,J.Q)(pn.insideAngular))}return(0,ue.pX)(this,yi,Gt,{spy:{apply:(Ar,Br,hr)=>{(Ar.startsWith("signIn")||Ar.startsWith("createUser"))&&hr.then(ji=>Li.next(ji))}}})}}return Pe.\u0275fac=function(Ze){return new(Ze||Pe)(r.LFG(ue.Dh),r.LFG(ue.xv,8),r.LFG(r.Lbi),r.LFG(r.R0b),r.LFG(Re.HU),r.LFG(Xr,8),r.LFG(dr,8),r.LFG(Bo,8),r.LFG(Dr,8),r.LFG(co,8),r.LFG(Lr,8),r.LFG(Qn,8))},Pe.\u0275prov=r.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"any"}),Pe})(),Oi=(()=>{class Pe{constructor(){Qi.Z.registerVersion("angularfire",Re.q4.full,"auth-compat")}}return Pe.\u0275fac=function(Ze){return new(Ze||Pe)},Pe.\u0275mod=r.oAB({type:Pe}),Pe.\u0275inj=r.cJS({providers:[Fr]}),Pe})()},2011:(Ct,Te,g)=>{g.d(Te,{Dh:()=>ee,GT:()=>se,cc:()=>Ee,hO:()=>He,on:()=>j,pX:()=>X,xv:()=>ne});var r=g(4650),c=g(9260),A=g(2122);Ct=g.hmd(Ct);const B=["ngOnDestroy"],X=(ke,Fe,et,be={})=>new Proxy(ke,{get:(de,ye)=>et.runOutsideAngular(()=>{var ve;if(ke[ye])return!(null===(ve=be?.spy)||void 0===ve)&&ve.get&&be.spy.get(ye,ke[ye]),ke[ye];if(B.indexOf(ye)>-1)return()=>{};const Ue=Fe.toPromise().then(xe=>{const ze=xe&&xe[ye];return"function"==typeof ze?ze.bind(xe):ze&&ze.then?ze.then(dt=>et.run(()=>dt)):et.run(()=>ze)});return new Proxy(()=>{},{get:(xe,ze)=>Ue[ze],apply:(xe,ze,dt)=>Ue.then(vt=>{var Lt;const Mt=vt&&vt(...dt);return!(null===(Lt=be?.spy)||void 0===Lt)&&Lt.apply&&be.spy.apply(ye,dt,Mt),Mt})})})}),se=(ke,Fe)=>{Fe.forEach(et=>{Object.getOwnPropertyNames(et.prototype||et).forEach(be=>{Object.defineProperty(ke.prototype,be,Object.getOwnPropertyDescriptor(et.prototype||et,be))})})};class J{constructor(Fe){return Fe}}const ee=new r.OlP("angularfire2.app.options"),ne=new r.OlP("angularfire2.app.name");function j(ke,Fe,et){const de="object"==typeof et&&et||{};de.name=de.name||"string"==typeof et&&et||"[DEFAULT]";const ve=c.Z.apps.filter(Ue=>Ue&&Ue.name===de.name)[0]||Fe.runOutsideAngular(()=>c.Z.initializeApp(ke,de));try{JSON.stringify(ke)!==JSON.stringify(ve.options)&&q("error",`${ve.name} Firebase App already initialized with different options${Ct.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new J(ve)}const q=(ke,...Fe)=>{(0,r.X6Q)()&&typeof console<"u"&&console[ke](...Fe)},le={provide:J,useFactory:j,deps:[ee,r.R0b,[new r.FiY,ne]]};let He=(()=>{class ke{constructor(et){c.Z.registerVersion("angularfire",A.q4.full,"core"),c.Z.registerVersion("angularfire",A.q4.full,"app-compat"),c.Z.registerVersion("angular",r.q4F.full,et.toString())}static initializeApp(et,be){return{ngModule:ke,providers:[{provide:ee,useValue:et},{provide:ne,useValue:be}]}}}return ke.\u0275fac=function(et){return new(et||ke)(r.LFG(r.Lbi))},ke.\u0275mod=r.oAB({type:ke}),ke.\u0275inj=r.cJS({providers:[le]}),ke})();function Ee(ke,Fe,et,be,de){const[,ye,ve]=globalThis.\u0275AngularfireInstanceCache.find(Ue=>Ue[0]===ke)||[];if(ye)return function Ne(ke,Fe){try{return ke.toString()===Fe.toString()}catch{return ke===Fe}}(de,ve)||(ue("error",`${Fe} was already initialized on the ${et} Firebase App with different settings.${Re?" You may need to reload as Firebase is not HMR aware.":""}`),ue("warn",{is:de,was:ve})),ye;{const Ue=be();return globalThis.\u0275AngularfireInstanceCache.push([ke,Ue,de]),Ue}}const Re=!!Ct.hot,ue=(ke,...Fe)=>{(0,r.X6Q)()&&typeof console<"u"&&console[ke](...Fe)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},2122:(Ct,Te,g)=>{g.d(Te,{q4:()=>Yo,iC:()=>Kt,HU:()=>G,vb:()=>l,JM:()=>f});var r=g(4650),c=g(259),A=g(5861),B=g(9681),X=g(2090),se=g(4859),J=g(1877),ee=g(8766);const ne="@firebase/installations",j="0.6.3",le=`w:${j}`,He="FIS_v2",Fe=new X.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 et(E){return E instanceof X.ZR&&E.code.includes("request-failed")}function be({projectId:E}){return`https://firebaseinstallations.googleapis.com/v1/projects/${E}/installations`}function de(E){return{token:E.token,requestStatus:2,expiresIn:vt(E.expiresIn),creationTime:Date.now()}}function ye(E,x){return ve.apply(this,arguments)}function ve(){return(ve=(0,A.Z)(function*(E,x){const me=(yield x.json()).error;return Fe.create("request-failed",{requestName:E,serverCode:me.code,serverMessage:me.message,serverStatus:me.status})})).apply(this,arguments)}function Ue({apiKey:E}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":E})}function xe(E,{refreshToken:x}){const H=Ue(E);return H.append("Authorization",function Lt(E){return`${He} ${E}`}(x)),H}function ze(E){return dt.apply(this,arguments)}function dt(){return(dt=(0,A.Z)(function*(E){const x=yield E();return x.status>=500&&x.status<600?E():x})).apply(this,arguments)}function vt(E){return Number(E.replace("s","000"))}function Mt(E,x){return We.apply(this,arguments)}function We(){return(We=(0,A.Z)(function*({appConfig:E,heartbeatServiceProvider:x},{fid:H}){const me=be(E),$e=Ue(E),Je=x.getImmediate({optional:!0});if(Je){const on=yield Je.getHeartbeatsHeader();on&&$e.append("x-firebase-client",on)}const Zt={method:"POST",headers:$e,body:JSON.stringify({fid:H,authVersion:He,appId:E.appId,sdkVersion:le})},qt=yield ze(()=>fetch(me,Zt));if(qt.ok){const on=yield qt.json();return{fid:on.fid||H,registrationStatus:2,refreshToken:on.refreshToken,authToken:de(on.authToken)}}throw yield ye("Create Installation",qt)})).apply(this,arguments)}function rt(E){return new Promise(x=>{setTimeout(x,E)})}const mt=/^[cdef][\w-]{21}$/;function bt(){try{const E=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(E),E[0]=112+E[0]%16;const H=function It(E){return function at(E){return btoa(String.fromCharCode(...E)).replace(/\+/g,"-").replace(/\//g,"_")}(E).substr(0,22)}(E);return mt.test(H)?H:""}catch{return""}}function Ce(E){return`${E.appName}!${E.appId}`}const Xe=new Map;function L(E,x){const H=Ce(E);ut(H,x),function xt(E,x){const H=function zt(){return!en&&"BroadcastChannel"in self&&(en=new BroadcastChannel("[Firebase] FID Change"),en.onmessage=E=>{ut(E.data.key,E.data.fid)}),en}();H&&H.postMessage({key:E,fid:x}),function Jt(){0===Xe.size&&en&&(en.close(),en=null)}()}(H,x)}function ut(E,x){const H=Xe.get(E);if(H)for(const me of H)me(x)}let en=null;const Fn="firebase-installations-store";let Pn=null;function sn(){return Pn||(Pn=(0,ee.X3)("firebase-installations-database",1,{upgrade:(E,x)=>{0===x&&E.createObjectStore(Fn)}})),Pn}function tt(E,x){return W.apply(this,arguments)}function W(){return(W=(0,A.Z)(function*(E,x){const H=Ce(E),$e=(yield sn()).transaction(Fn,"readwrite"),Je=$e.objectStore(Fn),Tt=yield Je.get(H);return yield Je.put(x,H),yield $e.done,(!Tt||Tt.fid!==x.fid)&&L(E,x.fid),x})).apply(this,arguments)}function ae(E){return Se.apply(this,arguments)}function Se(){return(Se=(0,A.Z)(function*(E){const x=Ce(E),me=(yield sn()).transaction(Fn,"readwrite");yield me.objectStore(Fn).delete(x),yield me.done})).apply(this,arguments)}function nt(E,x){return ct.apply(this,arguments)}function ct(){return(ct=(0,A.Z)(function*(E,x){const H=Ce(E),$e=(yield sn()).transaction(Fn,"readwrite"),Je=$e.objectStore(Fn),Tt=yield Je.get(H),Zt=x(Tt);return void 0===Zt?yield Je.delete(H):yield Je.put(Zt,H),yield $e.done,Zt&&(!Tt||Tt.fid!==Zt.fid)&&L(E,Zt.fid),Zt})).apply(this,arguments)}function At(E){return Ht.apply(this,arguments)}function Ht(){return(Ht=(0,A.Z)(function*(E){let x;const H=yield nt(E.appConfig,me=>{const $e=Pt(me),Je=St(E,$e);return x=Je.registrationPromise,Je.installationEntry});return""===H.fid?{installationEntry:yield x}:{installationEntry:H,registrationPromise:x}})).apply(this,arguments)}function Pt(E){return Ft(E||{fid:bt(),registrationStatus:0})}function St(E,x){if(0===x.registrationStatus){if(!navigator.onLine)return{installationEntry:x,registrationPromise:Promise.reject(Fe.create("app-offline"))};const H={fid:x.fid,registrationStatus:1,registrationTime:Date.now()},me=function we(E,x){return lt.apply(this,arguments)}(E,H);return{installationEntry:H,registrationPromise:me}}return 1===x.registrationStatus?{installationEntry:x,registrationPromise:fe(E)}:{installationEntry:x}}function lt(){return(lt=(0,A.Z)(function*(E,x){try{const H=yield Mt(E,x);return tt(E.appConfig,H)}catch(H){throw et(H)&&409===H.customData.serverCode?yield ae(E.appConfig):yield tt(E.appConfig,{fid:x.fid,registrationStatus:0}),H}})).apply(this,arguments)}function fe(E){return Ye.apply(this,arguments)}function Ye(){return(Ye=(0,A.Z)(function*(E){let x=yield Dt(E.appConfig);for(;1===x.registrationStatus;)yield rt(100),x=yield Dt(E.appConfig);if(0===x.registrationStatus){const{installationEntry:H,registrationPromise:me}=yield At(E);return me||H}return x})).apply(this,arguments)}function Dt(E){return nt(E,x=>{if(!x)throw Fe.create("installation-not-found");return Ft(x)})}function Ft(E){return function an(E){return 1===E.registrationStatus&&E.registrationTime+1e4<Date.now()}(E)?{fid:E.fid,registrationStatus:0}:E}function Vt(E,x){return wn.apply(this,arguments)}function wn(){return(wn=(0,A.Z)(function*({appConfig:E,heartbeatServiceProvider:x},H){const me=ln(E,H),$e=xe(E,H),Je=x.getImmediate({optional:!0});if(Je){const on=yield Je.getHeartbeatsHeader();on&&$e.append("x-firebase-client",on)}const Zt={method:"POST",headers:$e,body:JSON.stringify({installation:{sdkVersion:le,appId:E.appId}})},qt=yield ze(()=>fetch(me,Zt));if(qt.ok)return de(yield qt.json());throw yield ye("Generate Auth Token",qt)})).apply(this,arguments)}function ln(E,{fid:x}){return`${be(E)}/${x}/authTokens:generate`}function xn(E){return Sn.apply(this,arguments)}function Sn(){return(Sn=(0,A.Z)(function*(E,x=!1){let H;const me=yield nt(E.appConfig,Je=>{if(!Ke(Je))throw Fe.create("not-registered");const Tt=Je.authToken;if(!x&&K(Tt))return Je;if(1===Tt.requestStatus)return H=Oe(E,x),Je;{if(!navigator.onLine)throw Fe.create("app-offline");const Zt=De(Je);return H=U(E,Zt),Zt}});return H?yield H:me.authToken})).apply(this,arguments)}function Oe(E,x){return te.apply(this,arguments)}function te(){return(te=(0,A.Z)(function*(E,x){let H=yield V(E.appConfig);for(;1===H.authToken.requestStatus;)yield rt(100),H=yield V(E.appConfig);const me=H.authToken;return 0===me.requestStatus?xn(E,x):me})).apply(this,arguments)}function V(E){return nt(E,x=>{if(!Ke(x))throw Fe.create("not-registered");return function qe(E){return 1===E.requestStatus&&E.requestTime+1e4<Date.now()}(x.authToken)?Object.assign(Object.assign({},x),{authToken:{requestStatus:0}}):x})}function U(E,x){return re.apply(this,arguments)}function re(){return(re=(0,A.Z)(function*(E,x){try{const H=yield Vt(E,x),me=Object.assign(Object.assign({},x),{authToken:H});return yield tt(E.appConfig,me),H}catch(H){if(!et(H)||401!==H.customData.serverCode&&404!==H.customData.serverCode){const me=Object.assign(Object.assign({},x),{authToken:{requestStatus:0}});yield tt(E.appConfig,me)}else yield ae(E.appConfig);throw H}})).apply(this,arguments)}function Ke(E){return void 0!==E&&2===E.registrationStatus}function K(E){return 2===E.requestStatus&&!function ce(E){const x=Date.now();return x<E.creationTime||E.creationTime+E.expiresIn<x+36e5}(E)}function De(E){const x={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},E),{authToken:x})}function Rt(){return(Rt=(0,A.Z)(function*(E){const x=E,{installationEntry:H,registrationPromise:me}=yield At(x);return me?me.catch(console.error):xn(x).catch(console.error),H.fid})).apply(this,arguments)}function tn(){return(tn=(0,A.Z)(function*(E,x=!1){const H=E;return yield he(H),(yield xn(H,x)).token})).apply(this,arguments)}function he(E){return k.apply(this,arguments)}function k(){return(k=(0,A.Z)(function*(E){const{registrationPromise:x}=yield At(E);x&&(yield x)})).apply(this,arguments)}function hn(E){return Fe.create("missing-app-config-values",{valueName:E})}const bn="installations",Ot=E=>{const x=E.getProvider("app").getImmediate(),H=function Bt(E){if(!E||!E.options)throw hn("App Configuration");if(!E.name)throw hn("App Name");const x=["projectId","apiKey","appId"];for(const H of x)if(!E.options[H])throw hn(H);return{appName:E.name,projectId:E.options.projectId,apiKey:E.options.apiKey,appId:E.options.appId}}(x);return{app:x,appConfig:H,heartbeatServiceProvider:(0,B._getProvider)(x,"heartbeat"),_delete:()=>Promise.resolve()}},Ae=E=>{const x=E.getProvider("app").getImmediate(),H=(0,B._getProvider)(x,bn).getImmediate();return{getId:()=>function Ie(E){return Rt.apply(this,arguments)}(H),getToken:$e=>function Wt(E){return tn.apply(this,arguments)}(H,$e)}};(function ft(){(0,B._registerComponent)(new se.wA(bn,Ot,"PUBLIC")),(0,B._registerComponent)(new se.wA("installations-internal",Ae,"PRIVATE"))})(),(0,B.registerVersion)(ne,j),(0,B.registerVersion)(ne,j,"esm2017");const Yt="@firebase/remote-config",qn=new X.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 Hi{constructor(x,H,me,$e){this.client=x,this.storage=H,this.storageCache=me,this.logger=$e}isCachedDataFresh(x,H){if(!H)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const me=Date.now()-H,$e=me<=x;return this.logger.debug(`Config fetch cache check. Cache age millis: ${me}. Cache max age millis (minimumFetchIntervalMillis setting): ${x}. Is cache hit: ${$e}.`),$e}fetch(x){var H=this;return(0,A.Z)(function*(){const[me,$e]=yield Promise.all([H.storage.getLastSuccessfulFetchTimestampMillis(),H.storage.getLastSuccessfulFetchResponse()]);if($e&&H.isCachedDataFresh(x.cacheMaxAgeMillis,me))return $e;x.eTag=$e&&$e.eTag;const Je=yield H.client.fetch(x),Tt=[H.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===Je.status&&Tt.push(H.storage.setLastSuccessfulFetchResponse(Je)),yield Promise.all(Tt),Je})()}}function Mi(E=navigator){return E.languages&&E.languages[0]||E.language}class Yi{constructor(x,H,me,$e,Je,Tt){this.firebaseInstallations=x,this.sdkVersion=H,this.namespace=me,this.projectId=$e,this.apiKey=Je,this.appId=Tt}fetch(x){var H=this;return(0,A.Z)(function*(){const[me,$e]=yield Promise.all([H.firebaseInstallations.getId(),H.firebaseInstallations.getToken()]),Tt=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${H.projectId}/namespaces/${H.namespace}:fetch?key=${H.apiKey}`,Zt={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":x.eTag||"*"},qt={sdk_version:H.sdkVersion,app_instance_id:me,app_instance_id_token:$e,app_id:H.appId,language_code:Mi()},on={method:"POST",headers:Zt,body:JSON.stringify(qt)},En=fetch(Tt,on),vn=new Promise((Xt,dn)=>{x.signal.addEventListener(()=>{const yn=new Error("The operation was aborted.");yn.name="AbortError",dn(yn)})});let Wr;try{yield Promise.race([En,vn]),Wr=yield En}catch(Xt){let dn="fetch-client-network";throw"AbortError"===Xt?.name&&(dn="fetch-timeout"),qn.create(dn,{originalErrorMessage:Xt?.message})}let wi=Wr.status;const Eo=Wr.headers.get("ETag")||void 0;let ia,bs;if(200===Wr.status){let Xt;try{Xt=yield Wr.json()}catch(dn){throw qn.create("fetch-client-parse",{originalErrorMessage:dn?.message})}ia=Xt.entries,bs=Xt.state}if("INSTANCE_STATE_UNSPECIFIED"===bs?wi=500:"NO_CHANGE"===bs?wi=304:("NO_TEMPLATE"===bs||"EMPTY_CONFIG"===bs)&&(ia={}),304!==wi&&200!==wi)throw qn.create("fetch-status",{httpStatus:wi});return{status:wi,eTag:Eo,config:ia}})()}}class or{constructor(x,H){this.client=x,this.storage=H}fetch(x){var H=this;return(0,A.Z)(function*(){const me=(yield H.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return H.attemptFetch(x,me)})()}attemptFetch(x,{throttleEndTimeMillis:H,backoffCount:me}){var $e=this;return(0,A.Z)(function*(){yield function Nr(E,x){return new Promise((H,me)=>{const $e=Math.max(x-Date.now(),0),Je=setTimeout(H,$e);E.addEventListener(()=>{clearTimeout(Je),me(qn.create("fetch-throttle",{throttleEndTimeMillis:x}))})})}(x.signal,H);try{const Je=yield $e.client.fetch(x);return yield $e.storage.deleteThrottleMetadata(),Je}catch(Je){if(!function Qn(E){if(!(E instanceof X.ZR&&E.customData))return!1;const x=Number(E.customData.httpStatus);return 429===x||500===x||503===x||504===x}(Je))throw Je;const Tt={throttleEndTimeMillis:Date.now()+(0,X.$s)(me),backoffCount:me+1};return yield $e.storage.setThrottleMetadata(Tt),$e.attemptFetch(x,Tt)}})()}}class Ir{constructor(x,H,me,$e,Je){this.app=x,this._client=H,this._storageCache=me,this._storage=$e,this._logger=Je,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 ur(E,x){const H=E.target.error||void 0;return qn.create(x,{originalErrorMessage:H&&H?.message})}const hi="app_namespace_store";class Ci{constructor(x,H,me,$e=function _i(){return new Promise((E,x)=>{try{const H=indexedDB.open("firebase_remote_config",1);H.onerror=me=>{x(ur(me,"storage-open"))},H.onsuccess=me=>{E(me.target.result)},H.onupgradeneeded=me=>{0===me.oldVersion&&me.target.result.createObjectStore(hi,{keyPath:"compositeKey"})}}catch(H){x(qn.create("storage-open",{originalErrorMessage:H?.message}))}})}()){this.appId=x,this.appName=H,this.namespace=me,this.openDbPromise=$e}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(x){return this.set("last_fetch_status",x)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(x){return this.set("last_successful_fetch_timestamp_millis",x)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(x){return this.set("last_successful_fetch_response",x)}getActiveConfig(){return this.get("active_config")}setActiveConfig(x){return this.set("active_config",x)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(x){return this.set("active_config_etag",x)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(x){return this.set("throttle_metadata",x)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(x){var H=this;return(0,A.Z)(function*(){const me=yield H.openDbPromise;return new Promise(($e,Je)=>{const Zt=me.transaction([hi],"readonly").objectStore(hi),qt=H.createCompositeKey(x);try{const on=Zt.get(qt);on.onerror=En=>{Je(ur(En,"storage-get"))},on.onsuccess=En=>{const vn=En.target.result;$e(vn?vn.value:void 0)}}catch(on){Je(qn.create("storage-get",{originalErrorMessage:on?.message}))}})})()}set(x,H){var me=this;return(0,A.Z)(function*(){const $e=yield me.openDbPromise;return new Promise((Je,Tt)=>{const qt=$e.transaction([hi],"readwrite").objectStore(hi),on=me.createCompositeKey(x);try{const En=qt.put({compositeKey:on,value:H});En.onerror=vn=>{Tt(ur(vn,"storage-set"))},En.onsuccess=()=>{Je()}}catch(En){Tt(qn.create("storage-set",{originalErrorMessage:En?.message}))}})})()}delete(x){var H=this;return(0,A.Z)(function*(){const me=yield H.openDbPromise;return new Promise(($e,Je)=>{const Zt=me.transaction([hi],"readwrite").objectStore(hi),qt=H.createCompositeKey(x);try{const on=Zt.delete(qt);on.onerror=En=>{Je(ur(En,"storage-delete"))},on.onsuccess=()=>{$e()}}catch(on){Je(qn.create("storage-delete",{originalErrorMessage:on?.message}))}})})()}createCompositeKey(x){return[this.appId,this.appName,this.namespace,x].join()}}class Ki{constructor(x){this.storage=x}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var x=this;return(0,A.Z)(function*(){const H=x.storage.getLastFetchStatus(),me=x.storage.getLastSuccessfulFetchTimestampMillis(),$e=x.storage.getActiveConfig(),Je=yield H;Je&&(x.lastFetchStatus=Je);const Tt=yield me;Tt&&(x.lastSuccessfulFetchTimestampMillis=Tt);const Zt=yield $e;Zt&&(x.activeConfig=Zt)})()}setLastFetchStatus(x){return this.lastFetchStatus=x,this.storage.setLastFetchStatus(x)}setLastSuccessfulFetchTimestampMillis(x){return this.lastSuccessfulFetchTimestampMillis=x,this.storage.setLastSuccessfulFetchTimestampMillis(x)}setActiveConfig(x){return this.activeConfig=x,this.storage.setActiveConfig(x)}}function Lo(){return Qi.apply(this,arguments)}function Qi(){return(Qi=(0,A.Z)(function*(){if(!(0,X.hl)())return!1;try{return yield(0,X.eu)()}catch{return!1}})).apply(this,arguments)}!function Zi(){(0,B._registerComponent)(new se.wA("remote-config",function E(x,{instanceIdentifier:H}){const me=x.getProvider("app").getImmediate(),$e=x.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw qn.create("registration-window");if(!(0,X.hl)())throw qn.create("indexed-db-unavailable");const{projectId:Je,apiKey:Tt,appId:Zt}=me.options;if(!Je)throw qn.create("registration-project-id");if(!Tt)throw qn.create("registration-api-key");if(!Zt)throw qn.create("registration-app-id");const qt=new Ci(Zt,me.name,H=H||"firebase"),on=new Ki(qt),En=new J.Yd(Yt);En.logLevel=J.in.ERROR;const vn=new Yi($e,B.SDK_VERSION,H,Je,Tt,Zt),Wr=new or(vn,qt),wi=new Hi(Wr,qt,on,En),Eo=new Ir(me,wi,on,qt,En);return function Rn(E){const x=(0,X.m9)(E);x._initializePromise||(x._initializePromise=x._storageCache.loadFromStorage().then(()=>{x._isInitializationComplete=!0}))}(Eo),Eo},"PUBLIC").setMultipleInstances(!0)),(0,B.registerVersion)(Yt,"0.4.3"),(0,B.registerVersion)(Yt,"0.4.3","esm2017")}();const Pr="/firebase-messaging-sw.js",Xr="/firebase-cloud-messaging-push-scope",dr="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Dr="google.c.a.c_id",co="google.c.a.c_l",Lr="google.c.a.ts",uo="google.c.a.e";var Oi=(()=>{return(E=Oi||(Oi={})).PUSH_RECEIVED="push-received",E.NOTIFICATION_CLICKED="notification-clicked",Oi;var E})();function Pe(E){const x=new Uint8Array(E);return btoa(String.fromCharCode(...x)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Le(E){const H=(E+"=".repeat((4-E.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),me=atob(H),$e=new Uint8Array(me.length);for(let Je=0;Je<me.length;++Je)$e[Je]=me.charCodeAt(Je);return $e}const Ze="fcm_token_details_db",Nt="fcm_token_object_Store";function Gt(E){return pn.apply(this,arguments)}function pn(){return pn=(0,A.Z)(function*(E){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(Je=>Je.name).includes(Ze))return null;let x=null;return(yield(0,ee.X3)(Ze,5,{upgrade:(me=(0,A.Z)(function*($e,Je,Tt,Zt){var qt;if(Je<2||!$e.objectStoreNames.contains(Nt))return;const on=Zt.objectStore(Nt),En=yield on.index("fcmSenderId").get(E);if(yield on.clear(),En)if(2===Je){const vn=En;if(!vn.auth||!vn.p256dh||!vn.endpoint)return;x={token:vn.fcmToken,createTime:null!==(qt=vn.createTime)&&void 0!==qt?qt:Date.now(),subscriptionOptions:{auth:vn.auth,p256dh:vn.p256dh,endpoint:vn.endpoint,swScope:vn.swScope,vapidKey:"string"==typeof vn.vapidKey?vn.vapidKey:Pe(vn.vapidKey)}}}else if(3===Je){const vn=En;x={token:vn.fcmToken,createTime:vn.createTime,subscriptionOptions:{auth:Pe(vn.auth),p256dh:Pe(vn.p256dh),endpoint:vn.endpoint,swScope:vn.swScope,vapidKey:Pe(vn.vapidKey)}}}else if(4===Je){const vn=En;x={token:vn.fcmToken,createTime:vn.createTime,subscriptionOptions:{auth:Pe(vn.auth),p256dh:Pe(vn.p256dh),endpoint:vn.endpoint,swScope:vn.swScope,vapidKey:Pe(vn.vapidKey)}}}}),function(Je,Tt,Zt,qt){return me.apply(this,arguments)})})).close(),yield(0,ee.Lj)(Ze),yield(0,ee.Lj)("fcm_vapid_details_db"),yield(0,ee.Lj)("undefined"),Xn(x)?x:null;var me}),pn.apply(this,arguments)}function Xn(E){if(!E||!E.subscriptionOptions)return!1;const{subscriptionOptions:x}=E;return"number"==typeof E.createTime&&E.createTime>0&&"string"==typeof E.token&&E.token.length>0&&"string"==typeof x.auth&&x.auth.length>0&&"string"==typeof x.p256dh&&x.p256dh.length>0&&"string"==typeof x.endpoint&&x.endpoint.length>0&&"string"==typeof x.swScope&&x.swScope.length>0&&"string"==typeof x.vapidKey&&x.vapidKey.length>0}const Si="firebase-messaging-store";let pi=null;function vi(){return pi||(pi=(0,ee.X3)("firebase-messaging-database",1,{upgrade:(E,x)=>{0===x&&E.createObjectStore(Si)}})),pi}function wr(E){return Li.apply(this,arguments)}function Li(){return(Li=(0,A.Z)(function*(E){const x=ji(E),me=yield(yield vi()).transaction(Si).objectStore(Si).get(x);if(me)return me;{const $e=yield Gt(E.appConfig.senderId);if($e)return yield yi(E,$e),$e}})).apply(this,arguments)}function yi(E,x){return Ar.apply(this,arguments)}function Ar(){return(Ar=(0,A.Z)(function*(E,x){const H=ji(E),$e=(yield vi()).transaction(Si,"readwrite");return yield $e.objectStore(Si).put(x,H),yield $e.done,x})).apply(this,arguments)}function Br(E){return hr.apply(this,arguments)}function hr(){return(hr=(0,A.Z)(function*(E){const x=ji(E),me=(yield vi()).transaction(Si,"readwrite");yield me.objectStore(Si).delete(x),yield me.done})).apply(this,arguments)}function ji({appConfig:E}){return E.appId}const Un=new X.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 Bi(E,x){return ri.apply(this,arguments)}function ri(){return(ri=(0,A.Z)(function*(E,x){const H=yield mr(E),me=Ao(x),$e={method:"POST",headers:H,body:JSON.stringify(me)};let Je;try{Je=yield(yield fetch(ho(E.appConfig),$e)).json()}catch(Tt){throw Un.create("token-subscribe-failed",{errorInfo:Tt?.toString()})}if(Je.error)throw Un.create("token-subscribe-failed",{errorInfo:Je.error.message});if(!Je.token)throw Un.create("token-subscribe-no-token");return Je.token})).apply(this,arguments)}function Ti(E,x){return fr.apply(this,arguments)}function fr(){return(fr=(0,A.Z)(function*(E,x){const H=yield mr(E),me=Ao(x.subscriptionOptions),$e={method:"PATCH",headers:H,body:JSON.stringify(me)};let Je;try{Je=yield(yield fetch(`${ho(E.appConfig)}/${x.token}`,$e)).json()}catch(Tt){throw Un.create("token-update-failed",{errorInfo:Tt?.toString()})}if(Je.error)throw Un.create("token-update-failed",{errorInfo:Je.error.message});if(!Je.token)throw Un.create("token-update-no-token");return Je.token})).apply(this,arguments)}function Vn(E,x){return pr.apply(this,arguments)}function pr(){return(pr=(0,A.Z)(function*(E,x){const me={method:"DELETE",headers:yield mr(E)};try{const Je=yield(yield fetch(`${ho(E.appConfig)}/${x}`,me)).json();if(Je.error)throw Un.create("token-unsubscribe-failed",{errorInfo:Je.error.message})}catch($e){throw Un.create("token-unsubscribe-failed",{errorInfo:$e?.toString()})}})).apply(this,arguments)}function ho({projectId:E}){return`https://fcmregistrations.googleapis.com/v1/projects/${E}/registrations`}function mr(E){return mi.apply(this,arguments)}function mi(){return(mi=(0,A.Z)(function*({appConfig:E,installations:x}){const H=yield x.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":E.apiKey,"x-goog-firebase-installations-auth":`FIS ${H}`})})).apply(this,arguments)}function Ao({p256dh:E,auth:x,endpoint:H,vapidKey:me}){const $e={web:{endpoint:H,auth:x,p256dh:E}};return me!==dr&&($e.web.applicationPubKey=me),$e}const fo=6048e5;function Mr(E){return $i.apply(this,arguments)}function $i(){return($i=(0,A.Z)(function*(E){const x=yield cs(E.swRegistration,E.vapidKey),H={vapidKey:E.vapidKey,swScope:E.swRegistration.scope,endpoint:x.endpoint,auth:Pe(x.getKey("auth")),p256dh:Pe(x.getKey("p256dh"))},me=yield wr(E.firebaseDependencies);if(me){if(Ho(me.subscriptionOptions,H))return Date.now()>=me.createTime+fo?gn(E,{token:me.token,createTime:Date.now(),subscriptionOptions:H}):me.token;try{yield Vn(E.firebaseDependencies,me.token)}catch($e){console.warn($e)}return Ss(E.firebaseDependencies,H)}return Ss(E.firebaseDependencies,H)})).apply(this,arguments)}function po(E){return Rr.apply(this,arguments)}function Rr(){return(Rr=(0,A.Z)(function*(E){const x=yield wr(E.firebaseDependencies);x&&(yield Vn(E.firebaseDependencies,x.token),yield Br(E.firebaseDependencies));const H=yield E.swRegistration.pushManager.getSubscription();return!H||H.unsubscribe()})).apply(this,arguments)}function gn(E,x){return Sr.apply(this,arguments)}function Sr(){return(Sr=(0,A.Z)(function*(E,x){try{const H=yield Ti(E.firebaseDependencies,x),me=Object.assign(Object.assign({},x),{token:H,createTime:Date.now()});return yield yi(E.firebaseDependencies,me),H}catch(H){throw yield po(E),H}})).apply(this,arguments)}function Ss(E,x){return Vo.apply(this,arguments)}function Vo(){return(Vo=(0,A.Z)(function*(E,x){const me={token:yield Bi(E,x),createTime:Date.now(),subscriptionOptions:x};return yield yi(E,me),me.token})).apply(this,arguments)}function cs(E,x){return Uo.apply(this,arguments)}function Uo(){return(Uo=(0,A.Z)(function*(E,x){return(yield E.pushManager.getSubscription())||E.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Le(x)})})).apply(this,arguments)}function Ho(E,x){return x.vapidKey===E.vapidKey&&x.endpoint===E.endpoint&&x.auth===E.auth&&x.p256dh===E.p256dh}function mo(E){const x={from:E.from,collapseKey:E.collapse_key,messageId:E.fcmMessageId};return function Qo(E,x){if(!x.notification)return;E.notification={};const H=x.notification.title;H&&(E.notification.title=H);const me=x.notification.body;me&&(E.notification.body=me);const $e=x.notification.image;$e&&(E.notification.image=$e);const Je=x.notification.icon;Je&&(E.notification.icon=Je)}(x,E),function D(E,x){x.data&&(E.data=x.data)}(x,E),function M(E,x){var H,me,$e,Je,Tt;if(!(x.fcmOptions||null!==(H=x.notification)&&void 0!==H&&H.click_action))return;E.fcmOptions={};const Zt=null!==($e=null===(me=x.fcmOptions)||void 0===me?void 0:me.link)&&void 0!==$e?$e:null===(Je=x.notification)||void 0===Je?void 0:Je.click_action;Zt&&(E.fcmOptions.link=Zt);const qt=null===(Tt=x.fcmOptions)||void 0===Tt?void 0:Tt.analytics_label;qt&&(E.fcmOptions.analyticsLabel=qt)}(x,E),x}function S(E){return"object"==typeof E&&!!E&&Dr in E}function Z(E,x){const H=[];for(let me=0;me<E.length;me++)H.push(E.charAt(me)),me<x.length&&H.push(x.charAt(me));return H.join("")}function rn(E){return Un.create("missing-app-config-values",{valueName:E})}Z("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Z("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Yn{constructor(x,H,me){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const $e=function ot(E){if(!E||!E.options)throw rn("App Configuration Object");if(!E.name)throw rn("App Name");const x=["projectId","apiKey","appId","messagingSenderId"],{options:H}=E;for(const me of x)if(!H[me])throw rn(me);return{appName:E.name,projectId:H.projectId,apiKey:H.apiKey,appId:H.appId,senderId:H.messagingSenderId}}(x);this.firebaseDependencies={app:x,appConfig:$e,installations:H,analyticsProvider:me}}_delete(){return Promise.resolve()}}function oi(E){return Xi.apply(this,arguments)}function Xi(){return(Xi=(0,A.Z)(function*(E){try{E.swRegistration=yield navigator.serviceWorker.register(Pr,{scope:Xr}),E.swRegistration.update().catch(()=>{})}catch(x){throw Un.create("failed-service-worker-registration",{browserErrorMessage:x?.message})}})).apply(this,arguments)}function gr(E,x){return Vr.apply(this,arguments)}function Vr(){return(Vr=(0,A.Z)(function*(E,x){if(!x&&!E.swRegistration&&(yield oi(E)),x||!E.swRegistration){if(!(x instanceof ServiceWorkerRegistration))throw Un.create("invalid-sw-registration");E.swRegistration=x}})).apply(this,arguments)}function go(E,x){return Mo.apply(this,arguments)}function Mo(){return(Mo=(0,A.Z)(function*(E,x){x?E.vapidKey=x:E.vapidKey||(E.vapidKey=dr)})).apply(this,arguments)}function sr(){return(sr=(0,A.Z)(function*(E,x){if(!navigator)throw Un.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw Un.create("permission-blocked");return yield go(E,x?.vapidKey),yield gr(E,x?.serviceWorkerRegistration),Mr(E)})).apply(this,arguments)}function zi(E,x,H){return _r.apply(this,arguments)}function _r(){return(_r=(0,A.Z)(function*(E,x,H){const me=vr(x);(yield E.firebaseDependencies.analyticsProvider.get()).logEvent(me,{message_id:H[Dr],message_name:H[co],message_time:H[Lr],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function vr(E){switch(E){case Oi.NOTIFICATION_CLICKED:return"notification_open";case Oi.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function Jr(){return(Jr=(0,A.Z)(function*(E,x){const H=x.data;if(!H.isFirebaseMessaging)return;E.onMessageHandler&&H.messageType===Oi.PUSH_RECEIVED&&("function"==typeof E.onMessageHandler?E.onMessageHandler(mo(H)):E.onMessageHandler.next(mo(H)));const me=H.data;S(me)&&"1"===me[uo]&&(yield zi(E,H.messageType,me))})).apply(this,arguments)}const Ts="@firebase/messaging",Xo=E=>{const x=new Yn(E.getProvider("app").getImmediate(),E.getProvider("installations-internal").getImmediate(),E.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",H=>function So(E,x){return Jr.apply(this,arguments)}(x,H)),x},Ur=E=>{const x=E.getProvider("messaging").getImmediate();return{getToken:me=>function Pi(E,x){return sr.apply(this,arguments)}(x,me)}};function xo(){return qr.apply(this,arguments)}function qr(){return(qr=(0,A.Z)(function*(){try{yield(0,X.eu)()}catch{return!1}return typeof window<"u"&&(0,X.hl)()&&(0,X.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 us(){(0,B._registerComponent)(new se.wA("messaging",Xo,"PUBLIC")),(0,B._registerComponent)(new se.wA("messaging-internal",Ur,"PRIVATE")),(0,B.registerVersion)(Ts,"0.12.3"),(0,B.registerVersion)(Ts,"0.12.3","esm2017")}();const jr="analytics",Fi="firebase_id",xs="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Is="https://www.googletagmanager.com/gtag/js",Ri=new J.Yd("@firebase/analytics");function ds(E){return Promise.all(E.map(x=>x.catch(H=>H)))}function Hs(E,x){const H=document.createElement("script");H.src=`${Is}?l=${E}&id=${x}`,H.async=!0,document.head.appendChild(H)}function zr(E,x,H,me,$e,Je){return no.apply(this,arguments)}function no(){return(no=(0,A.Z)(function*(E,x,H,me,$e,Je){const Tt=me[$e];try{if(Tt)yield x[Tt];else{const qt=(yield ds(H)).find(on=>on.measurementId===$e);qt&&(yield x[qt.appId])}}catch(Zt){Ri.error(Zt)}E("config",$e,Je)})).apply(this,arguments)}function b(E,x,H,me,$e){return N.apply(this,arguments)}function N(){return(N=(0,A.Z)(function*(E,x,H,me,$e){try{let Je=[];if($e&&$e.send_to){let Tt=$e.send_to;Array.isArray(Tt)||(Tt=[Tt]);const Zt=yield ds(H);for(const qt of Tt){const on=Zt.find(vn=>vn.measurementId===qt),En=on&&x[on.appId];if(!En){Je=[];break}Je.push(En)}}0===Je.length&&(Je=Object.values(x)),yield Promise.all(Je),E("event",me,$e||{})}catch(Je){Ri.error(Je)}})).apply(this,arguments)}function _e(E){const x=window.document.getElementsByTagName("script");for(const H of Object.values(x))if(H.src&&H.src.includes(Is)&&H.src.includes(E))return H;return null}const pt=new X.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.'}),$n=new class Gn{constructor(x={},H=1e3){this.throttleMetadata=x,this.intervalMillis=H}getThrottleMetadata(x){return this.throttleMetadata[x]}setThrottleMetadata(x,H){this.throttleMetadata[x]=H}deleteThrottleMetadata(x){delete this.throttleMetadata[x]}};function kn(E){return new Headers({Accept:"application/json","x-goog-api-key":E})}function Di(E){return Kn.apply(this,arguments)}function Kn(){return(Kn=(0,A.Z)(function*(E){var x;const{appId:H,apiKey:me}=E,$e={method:"GET",headers:kn(me)},Je=xs.replace("{app-id}",H),Tt=yield fetch(Je,$e);if(200!==Tt.status&&304!==Tt.status){let Zt="";try{const qt=yield Tt.json();null!==(x=qt.error)&&void 0!==x&&x.message&&(Zt=qt.error.message)}catch{}throw pt.create("config-fetch-failed",{httpStatus:Tt.status,responseMessage:Zt})}return Tt.json()})).apply(this,arguments)}function ai(E){return ar.apply(this,arguments)}function ar(){return(ar=(0,A.Z)(function*(E,x=$n,H){const{appId:me,apiKey:$e,measurementId:Je}=E.options;if(!me)throw pt.create("no-app-id");if(!$e){if(Je)return{measurementId:Je,appId:me};throw pt.create("no-api-key")}const Tt=x.getThrottleMetadata(me)||{backoffCount:0,throttleEndTimeMillis:Date.now()},Zt=new io;return setTimeout((0,A.Z)(function*(){Zt.abort()}),void 0!==H?H:6e4),Ji({appId:me,apiKey:$e,measurementId:Je},Tt,Zt,x)})).apply(this,arguments)}function Ji(E,x,H){return Gi.apply(this,arguments)}function Gi(){return(Gi=(0,A.Z)(function*(E,{throttleEndTimeMillis:x,backoffCount:H},me,$e=$n){var Je;const{appId:Tt,measurementId:Zt}=E;try{yield qi(me,x)}catch(qt){if(Zt)return Ri.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Zt} provided in the "measurementId" field in the local Firebase config. [${qt?.message}]`),{appId:Tt,measurementId:Zt};throw qt}try{const qt=yield Di(E);return $e.deleteThrottleMetadata(Tt),qt}catch(qt){const on=qt;if(!kr(on)){if($e.deleteThrottleMetadata(Tt),Zt)return Ri.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Zt} provided in the "measurementId" field in the local Firebase config. [${on?.message}]`),{appId:Tt,measurementId:Zt};throw qt}const En=503===Number(null===(Je=on?.customData)||void 0===Je?void 0:Je.httpStatus)?(0,X.$s)(H,$e.intervalMillis,30):(0,X.$s)(H,$e.intervalMillis),vn={throttleEndTimeMillis:Date.now()+En,backoffCount:H+1};return $e.setThrottleMetadata(Tt,vn),Ri.debug(`Calling attemptFetch again in ${En} millis`),Ji(E,vn,me,$e)}})).apply(this,arguments)}function qi(E,x){return new Promise((H,me)=>{const $e=Math.max(x-Date.now(),0),Je=setTimeout(H,$e);E.addEventListener(()=>{clearTimeout(Je),me(pt.create("fetch-throttle",{throttleEndTimeMillis:x}))})})}function kr(E){if(!(E instanceof X.ZR&&E.customData))return!1;const x=Number(E.customData.httpStatus);return 429===x||500===x||503===x||504===x}class io{constructor(){this.listeners=[]}addEventListener(x){this.listeners.push(x)}abort(){this.listeners.forEach(x=>x())}}let yo,qo;function Jo(){return(Jo=(0,A.Z)(function*(E,x,H,me,$e){if($e&&$e.global)E("event",H,me);else{const Je=yield x;E("event",H,Object.assign(Object.assign({},me),{send_to:Je}))}})).apply(this,arguments)}function Gr(E){qo=E}function es(E){yo=E}function Vi(){return ps.apply(this,arguments)}function ps(){return(ps=(0,A.Z)(function*(){if(!(0,X.hl)())return Ri.warn(pt.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,X.eu)()}catch(E){return Ri.warn(pt.create("indexeddb-unavailable",{errorInfo:E?.toString()}).message),!1}return!0})).apply(this,arguments)}function ns(){return(ns=(0,A.Z)(function*(E,x,H,me,$e,Je,Tt){var Zt;const qt=ai(E);qt.then(wi=>{H[wi.measurementId]=wi.appId,E.options.measurementId&&wi.measurementId!==E.options.measurementId&&Ri.warn(`The measurement ID in the local Firebase config (${E.options.measurementId}) does not match the measurement ID fetched from the server (${wi.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(wi=>Ri.error(wi)),x.push(qt);const on=Vi().then(wi=>{if(wi)return me.getId()}),[En,vn]=yield Promise.all([qt,on]);_e(Je)||Hs(Je,En.measurementId),qo&&($e("consent","default",qo),Gr(void 0)),$e("js",new Date);const Wr=null!==(Zt=Tt?.config)&&void 0!==Zt?Zt:{};return Wr.origin="firebase",Wr.update=!0,null!=vn&&(Wr[Fi]=vn),$e("config",En.measurementId,Wr),yo&&($e("set",yo),es(void 0)),En.measurementId})).apply(this,arguments)}class Ps{constructor(x){this.app=x}_delete(){return delete xr[this.app.options.appId],Promise.resolve()}}let xr={},Gs=[];const is={};let ms,er,ro="dataLayer",Po=!1;function Go(E,x,H){!function yr(){const E=[];if((0,X.ru)()&&E.push("This is a browser extension environment."),(0,X.zI)()||E.push("Cookies are not available."),E.length>0){const x=E.map((me,$e)=>`(${$e+1}) ${me}`).join(" "),H=pt.create("invalid-analytics-context",{errorInfo:x});Ri.warn(H.message)}}();const me=E.options.appId;if(!me)throw pt.create("no-app-id");if(!E.options.apiKey){if(!E.options.measurementId)throw pt.create("no-api-key");Ri.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 ${E.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=xr[me])throw pt.create("already-exists",{id:me});if(!Po){!function Os(E){let x=[];Array.isArray(window[E])?x=window[E]:window[E]=x}(ro);const{wrappedGtag:Je,gtagCore:Tt}=function z(E,x,H,me,$e){let Je=function(...Tt){window[me].push(arguments)};return window[$e]&&"function"==typeof window[$e]&&(Je=window[$e]),window[$e]=function T(E,x,H,me){function Je(){return(Je=(0,A.Z)(function*(Tt,Zt,qt){try{"event"===Tt?yield b(E,x,H,Zt,qt):"config"===Tt?yield zr(E,x,H,me,Zt,qt):"consent"===Tt?E("consent","update",qt):E("set",Zt)}catch(on){Ri.error(on)}})).apply(this,arguments)}return function $e(Tt,Zt,qt){return Je.apply(this,arguments)}}(Je,E,x,H),{gtagCore:Je,wrappedGtag:window[$e]}}(xr,Gs,is,ro,"gtag");er=Je,ms=Tt,Po=!0}return xr[me]=function ts(E,x,H,me,$e,Je,Tt){return ns.apply(this,arguments)}(E,Gs,is,x,ms,ro,H),new Ps(E)}function Rs(){return oo.apply(this,arguments)}function oo(){return(oo=(0,A.Z)(function*(){if((0,X.ru)()||!(0,X.zI)()||!(0,X.hl)())return!1;try{return yield(0,X.eu)()}catch{return!1}})).apply(this,arguments)}const li="@firebase/analytics";!function _s(){(0,B._registerComponent)(new se.wA(jr,(x,{options:H})=>Go(x.getProvider("app").getImmediate(),x.getProvider("installations-internal").getImmediate(),H),"PUBLIC")),(0,B._registerComponent)(new se.wA("analytics-internal",function E(x){try{const H=x.getProvider(jr).getImmediate();return{logEvent:(me,$e,Je)=>function ta(E,x,H,me){E=(0,X.m9)(E),function hs(E,x,H,me,$e){return Jo.apply(this,arguments)}(er,xr[E.app.options.appId],x,H,me).catch($e=>Ri.error($e))}(H,me,$e,Je)}}catch(H){throw pt.create("interop-component-reg-failed",{reason:H})}},"PRIVATE")),(0,B.registerVersion)(li,"0.9.3"),(0,B.registerVersion)(li,"0.9.3","esm2017")}();var $a=g(4408),ga=g(7565);const va=new class _a extends ga.v{}(class na extends $a.o{constructor(x,H){super(x,H),this.scheduler=x,this.work=H}schedule(x,H=0){return H>0?super.schedule(x,H):(this.delay=H,this.state=x,this.scheduler.flush(this),this)}execute(x,H){return H>0||this.closed?super.execute(x,H):this._execute(x,H)}requestAsyncId(x,H,me=0){return null!=me&&me>0||null==me&&this.delay>0?super.requestAsyncId(x,H,me):(x.flush(this),0)}});var ya=g(4986),ys=g(8505),xi=g(9468),Co=g(5363);const Yo=new r.GfV("7.5.0"),ks="__angularfire_symbol__analyticsIsSupportedValue",br="__angularfire_symbol__analyticsIsSupported",h="__angularfire_symbol__remoteConfigIsSupportedValue",m="__angularfire_symbol__remoteConfigIsSupported",u="__angularfire_symbol__messagingIsSupportedValue",C="__angularfire_symbol__messagingIsSupported";function f(E,x,H){if(x){if(1===x.length)return x[0];const Je=x.filter(Tt=>Tt.app===H);if(1===Je.length)return Je[0]}return H.container.getProvider(E).getImmediate({optional:!0})}globalThis[br]||(globalThis[br]=Rs().then(E=>globalThis[ks]=E).catch(()=>globalThis[ks]=!1)),globalThis[C]||(globalThis[C]=xo().then(E=>globalThis[u]=E).catch(()=>globalThis[u]=!1)),globalThis[m]||(globalThis[m]=Lo().then(E=>globalThis[h]=E).catch(()=>globalThis[h]=!1));const l=(E,x)=>{const H=x?[x]:(0,c.C6)(),me=[];return H.forEach($e=>{$e.container.getProvider(E).instances.forEach(Tt=>{me.includes(Tt)||me.push(Tt)})}),me};function a(){}class v{constructor(x,H=va){this.zone=x,this.delegate=H}now(){return this.delegate.now()}schedule(x,H,me){const $e=this.zone;return this.delegate.schedule(function(Tt){$e.runGuarded(()=>{x.apply(this,[Tt])})},H,me)}}class F{constructor(x){this.zone=x,this.task=null}call(x,H){const me=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",a,{},a,a)),H.pipe((0,ys.b)({next:me,complete:me,error:me})).subscribe(x).add(me)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let G=(()=>{class E{constructor(H){this.ngZone=H,this.outsideAngular=H.runOutsideAngular(()=>new v(Zone.current)),this.insideAngular=H.run(()=>new v(Zone.current,ya.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return E.\u0275fac=function(H){return new(H||E)(r.LFG(r.R0b))},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();function ge(){const E=globalThis.\u0275AngularFireScheduler;if(!E)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 E}function Kt(E){return ge(),function Ln(E){return function(H){return(H=H.lift(new F(E.ngZone))).pipe((0,xi.R)(E.outsideAngular),(0,Co.Q)(E.insideAngular))}}(ge())(E)}},2090:(Ct,Te,g)=>{g.d(Te,{$s:()=>V,BH:()=>de,L:()=>ee,LL:()=>Xe,Pz:()=>be,UG:()=>xe,US:()=>se,ZB:()=>q,ZR:()=>Ce,aH:()=>et,b$:()=>vt,eu:()=>Et,hl:()=>mt,jU:()=>ze,m9:()=>Ke,ne:()=>Ht,pd:()=>ct,r3:()=>In,ru:()=>dt,tV:()=>ne,uI:()=>Ue,vZ:()=>tt,w1:()=>Mt,xO:()=>Se,xb:()=>Pn,z$:()=>ve,zI:()=>bt,zd:()=>nt});const B=function(K){const ce=[];let De=0;for(let qe=0;qe<K.length;qe++){let Ie=K.charCodeAt(qe);Ie<128?ce[De++]=Ie:Ie<2048?(ce[De++]=Ie>>6|192,ce[De++]=63&Ie|128):55296==(64512&Ie)&&qe+1<K.length&&56320==(64512&K.charCodeAt(qe+1))?(Ie=65536+((1023&Ie)<<10)+(1023&K.charCodeAt(++qe)),ce[De++]=Ie>>18|240,ce[De++]=Ie>>12&63|128,ce[De++]=Ie>>6&63|128,ce[De++]=63&Ie|128):(ce[De++]=Ie>>12|224,ce[De++]=Ie>>6&63|128,ce[De++]=63&Ie|128)}return ce},se={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(K,ce){if(!Array.isArray(K))throw Error("encodeByteArray takes an array as a parameter");this.init_();const De=ce?this.byteToCharMapWebSafe_:this.byteToCharMap_,qe=[];for(let Ie=0;Ie<K.length;Ie+=3){const Rt=K[Ie],Wt=Ie+1<K.length,tn=Wt?K[Ie+1]:0,he=Ie+2<K.length,k=he?K[Ie+2]:0;let I=(15&tn)<<2|k>>6,P=63&k;he||(P=64,Wt||(I=64)),qe.push(De[Rt>>2],De[(3&Rt)<<4|tn>>4],De[I],De[P])}return qe.join("")},encodeString(K,ce){return this.HAS_NATIVE_SUPPORT&&!ce?btoa(K):this.encodeByteArray(B(K),ce)},decodeString(K,ce){return this.HAS_NATIVE_SUPPORT&&!ce?atob(K):function(K){const ce=[];let De=0,qe=0;for(;De<K.length;){const Ie=K[De++];if(Ie<128)ce[qe++]=String.fromCharCode(Ie);else if(Ie>191&&Ie<224){const Rt=K[De++];ce[qe++]=String.fromCharCode((31&Ie)<<6|63&Rt)}else if(Ie>239&&Ie<365){const he=((7&Ie)<<18|(63&K[De++])<<12|(63&K[De++])<<6|63&K[De++])-65536;ce[qe++]=String.fromCharCode(55296+(he>>10)),ce[qe++]=String.fromCharCode(56320+(1023&he))}else{const Rt=K[De++],Wt=K[De++];ce[qe++]=String.fromCharCode((15&Ie)<<12|(63&Rt)<<6|63&Wt)}}return ce.join("")}(this.decodeStringToByteArray(K,ce))},decodeStringToByteArray(K,ce){this.init_();const De=ce?this.charToByteMapWebSafe_:this.charToByteMap_,qe=[];for(let Ie=0;Ie<K.length;){const Rt=De[K.charAt(Ie++)],tn=Ie<K.length?De[K.charAt(Ie)]:0;++Ie;const k=Ie<K.length?De[K.charAt(Ie)]:64;++Ie;const _=Ie<K.length?De[K.charAt(Ie)]:64;if(++Ie,null==Rt||null==tn||null==k||null==_)throw Error();qe.push(Rt<<2|tn>>4),64!==k&&(qe.push(tn<<4&240|k>>2),64!==_&&qe.push(k<<6&192|_))}return qe},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let K=0;K<this.ENCODED_VALS.length;K++)this.byteToCharMap_[K]=this.ENCODED_VALS.charAt(K),this.charToByteMap_[this.byteToCharMap_[K]]=K,this.byteToCharMapWebSafe_[K]=this.ENCODED_VALS_WEBSAFE.charAt(K),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[K]]=K,K>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(K)]=K,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(K)]=K)}}},ee=function(K){return function(K){const ce=B(K);return se.encodeByteArray(ce,!0)}(K).replace(/\./g,"")},ne=function(K){try{return se.decodeString(K,!0)}catch(ce){console.error("base64Decode failed: ",ce)}return null};function q(K,ce){if(!(ce instanceof Object))return ce;switch(ce.constructor){case Date:return new Date(ce.getTime());case Object:void 0===K&&(K={});break;case Array:K=[];break;default:return ce}for(const De in ce)!ce.hasOwnProperty(De)||!le(De)||(K[De]=q(K[De],ce[De]));return K}function le(K){return"__proto__"!==K}const ue=()=>{try{return function He(){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 K=process.env.__FIREBASE_DEFAULTS__;return K?JSON.parse(K):void 0})()||(()=>{if(typeof document>"u")return;let K;try{K=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const ce=K&&ne(K[1]);return ce&&JSON.parse(ce)})()}catch(K){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${K}`)}},et=()=>{var K;return null===(K=ue())||void 0===K?void 0:K.config},be=K=>{var ce;return null===(ce=ue())||void 0===ce?void 0:ce[`_${K}`]};class de{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((ce,De)=>{this.resolve=ce,this.reject=De})}wrapCallback(ce){return(De,qe)=>{De?this.reject(De):this.resolve(qe),"function"==typeof ce&&(this.promise.catch(()=>{}),1===ce.length?ce(De):ce(De,qe))}}}function ve(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Ue(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ve())}function xe(){var K;const ce=null===(K=ue())||void 0===K?void 0:K.forceEnvironment;if("node"===ce)return!0;if("browser"===ce)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function ze(){return"object"==typeof self&&self.self===self}function dt(){const K="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof K&&void 0!==K.id}function vt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Mt(){const K=ve();return K.indexOf("MSIE ")>=0||K.indexOf("Trident/")>=0}function mt(){try{return"object"==typeof indexedDB}catch{return!1}}function Et(){return new Promise((K,ce)=>{try{let De=!0;const qe="validate-browser-context-for-indexeddb-analytics-module",Ie=self.indexedDB.open(qe);Ie.onsuccess=()=>{Ie.result.close(),De||self.indexedDB.deleteDatabase(qe),K(!0)},Ie.onupgradeneeded=()=>{De=!1},Ie.onerror=()=>{var Rt;ce((null===(Rt=Ie.error)||void 0===Rt?void 0:Rt.message)||"")}}catch(De){ce(De)}})}function bt(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class Ce extends Error{constructor(ce,De,qe){super(De),this.code=ce,this.customData=qe,this.name="FirebaseError",Object.setPrototypeOf(this,Ce.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Xe.prototype.create)}}class Xe{constructor(ce,De,qe){this.service=ce,this.serviceName=De,this.errors=qe}create(ce,...De){const qe=De[0]||{},Ie=`${this.service}/${ce}`,Rt=this.errors[ce],Wt=Rt?function L(K,ce){return K.replace(ie,(De,qe)=>{const Ie=ce[qe];return null!=Ie?String(Ie):`<${qe}?>`})}(Rt,qe):"Error";return new Ce(Ie,`${this.serviceName}: ${Wt} (${Ie}).`,qe)}}const ie=/\{\$([^}]+)}/g;function In(K,ce){return Object.prototype.hasOwnProperty.call(K,ce)}function Pn(K){for(const ce in K)if(Object.prototype.hasOwnProperty.call(K,ce))return!1;return!0}function tt(K,ce){if(K===ce)return!0;const De=Object.keys(K),qe=Object.keys(ce);for(const Ie of De){if(!qe.includes(Ie))return!1;const Rt=K[Ie],Wt=ce[Ie];if(W(Rt)&&W(Wt)){if(!tt(Rt,Wt))return!1}else if(Rt!==Wt)return!1}for(const Ie of qe)if(!De.includes(Ie))return!1;return!0}function W(K){return null!==K&&"object"==typeof K}function Se(K){const ce=[];for(const[De,qe]of Object.entries(K))Array.isArray(qe)?qe.forEach(Ie=>{ce.push(encodeURIComponent(De)+"="+encodeURIComponent(Ie))}):ce.push(encodeURIComponent(De)+"="+encodeURIComponent(qe));return ce.length?"&"+ce.join("&"):""}function nt(K){const ce={};return K.replace(/^\?/,"").split("&").forEach(qe=>{if(qe){const[Ie,Rt]=qe.split("=");ce[decodeURIComponent(Ie)]=decodeURIComponent(Rt)}}),ce}function ct(K){const ce=K.indexOf("?");if(!ce)return"";const De=K.indexOf("#",ce);return K.substring(ce,De>0?De:void 0)}function Ht(K,ce){const De=new Pt(K,ce);return De.subscribe.bind(De)}class Pt{constructor(ce,De){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=De,this.task.then(()=>{ce(this)}).catch(qe=>{this.error(qe)})}next(ce){this.forEachObserver(De=>{De.next(ce)})}error(ce){this.forEachObserver(De=>{De.error(ce)}),this.close(ce)}complete(){this.forEachObserver(ce=>{ce.complete()}),this.close()}subscribe(ce,De,qe){let Ie;if(void 0===ce&&void 0===De&&void 0===qe)throw new Error("Missing Observer.");Ie=function we(K,ce){if("object"!=typeof K||null===K)return!1;for(const De of ce)if(De in K&&"function"==typeof K[De])return!0;return!1}(ce,["next","error","complete"])?ce:{next:ce,error:De,complete:qe},void 0===Ie.next&&(Ie.next=lt),void 0===Ie.error&&(Ie.error=lt),void 0===Ie.complete&&(Ie.complete=lt);const Rt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?Ie.error(this.finalError):Ie.complete()}catch{}}),this.observers.push(Ie),Rt}unsubscribeOne(ce){void 0===this.observers||void 0===this.observers[ce]||(delete this.observers[ce],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(ce){if(!this.finalized)for(let De=0;De<this.observers.length;De++)this.sendOne(De,ce)}sendOne(ce,De){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[ce])try{De(this.observers[ce])}catch(qe){typeof console<"u"&&console.error&&console.error(qe)}})}close(ce){this.finalized||(this.finalized=!0,void 0!==ce&&(this.finalError=ce),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function lt(){}function V(K,ce=1e3,De=2){const qe=ce*Math.pow(De,K),Ie=Math.round(.5*qe*(Math.random()-.5)*2);return Math.min(144e5,qe+Ie)}function Ke(K){return K&&K._delegate?K._delegate:K}},3389:(Ct,Te,g)=>{g.d(Te,{$:()=>le});var r=g(1135),c=g(8996),A=g(4004),B=g(3900),X=g(8505),se=g(3942),J=g(4650),ee=g(3893),ne=g(7185),j=g(5200),q=g(1104);class le{constructor(Ee,Ne,Re,ue){this._router=Ee,this.toaster=Ne,this.afAuth=Re,this.http=ue,this._roles$=new r.X([])}login(Ee){this._router.navigate([Ee])}logout(){this._roles$.next([]),localStorage.removeItem("ExpireDate"),localStorage.removeItem("Roles"),this._router.navigate([""])}setRoles(Ee){localStorage.setItem("Roles",JSON.stringify(Ee)),this._roles$.next(Ee)}getRoles(){let Ee=this._roles$.getValue();if(0==Ee.length){let Ne=localStorage.getItem("Roles");Ee=JSON.parse(Ne),this._roles$.next(Ee)}return Ee}isAuthentication(){return null!=localStorage.getItem("Token")&&!this.isTokenExpired()}isTokenExpired(){return!(new Date(localStorage.getItem("ExpireDate")).getTime()-(new Date).getTime()>0)}saveLoginForm(Ee,Ne){localStorage.setItem("Domain",Ee),localStorage.setItem("Username",Ne)}getUsername(){return localStorage.getItem("Username")}getDomain(){return localStorage.getItem("Domain")}isLoginFormExist(){let Ee=this.getDomain(),Ne=this.getUsername(),Re=!1;return Ee&&Ne&&(Re=!0),Re}loginWithGoogle(Ee,Ne){Ee.preventDefault();const Re=new se.Z.auth.GoogleAuthProvider;return Re.setCustomParameters({prompt:"select_account"}),(0,c.D)(this.afAuth.signInWithPopup(Re)).pipe((0,A.U)(ue=>ue.credential),(0,A.U)(ue=>ue.idToken),(0,B.w)(ue=>this.http.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:ue,Host:Ne}))),(0,X.b)(ue=>{this.setLocalStorage(ue,Ne,null)}))}setLocalStorage(Ee,Ne,Re){localStorage.setItem("Token",Ee.access_token),localStorage.setItem("Authorization",JSON.stringify({Host:Ne,username:Re})),localStorage.setItem("Intercom",JSON.stringify(Ee.IntercomWidget))}}le.\u0275fac=function(Ee){return new(Ee||le)(J.LFG(ee.F0),J.LFG(ne._W),J.LFG(j.zQ),J.LFG(q.O))},le.\u0275prov=J.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"})},1104:(Ct,Te,g)=>{g.d(Te,{O:()=>Ne});var r=g(9751),c=g(529),A=g(4986),B=g(1165),X=g(4482),se=g(8421),J=g(3888),ee=g(5403),ne=g(9672);const j=(0,J.d)(Re=>function(ke=null){Re(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ke});function q(Re,ue){const{first:ke,each:Fe,with:et=le,scheduler:be=ue??A.z,meta:de=null}=(0,B.q)(Re)?{first:Re}:"number"==typeof Re?{each:Re}:Re;if(null==ke&&null==Fe)throw new TypeError("No timeout provided.");return(0,X.e)((ye,ve)=>{let Ue,xe,ze=null,dt=0;const vt=Lt=>{xe=(0,ne.f)(ve,be,()=>{try{Ue.unsubscribe(),(0,se.Xf)(et({meta:de,lastValue:ze,seen:dt})).subscribe(ve)}catch(Mt){ve.error(Mt)}},Lt)};Ue=ye.subscribe((0,ee.x)(ve,Lt=>{xe?.unsubscribe(),dt++,ve.next(ze=Lt),Fe>0&&vt(Fe)},void 0,void 0,()=>{xe?.closed||xe?.unsubscribe(),ze=null})),!dt&&vt(null!=ke?"number"==typeof ke?ke:+ke-be.now():Fe)})}function le(Re){throw new j(Re)}var He=g(4650),Ee=g(7185);class Ne{constructor(ue,ke){this.http=ue,this.toastr=ke}postFormData(ue,ke){return new r.y(Fe=>{let et=localStorage.getItem("Token"),de={headers:new c.WM({Authorization:"Bearer "+et})};this.http.post(ue,ke,de).pipe(q(1e5)).subscribe(ye=>{Fe.next(ye),Fe.complete()},ye=>{if(200==ye.status)Fe.next(ye.error.text),Fe.complete();else{let ve=this.errorMessageHandling(ye);this.toastr.error(ve.message,ve.header),Fe.error(ye)}})})}postFormDataWithOutlet(ue,ke){return new r.y(Fe=>{let et=localStorage.getItem("Token"),de={headers:new c.WM({Authorization:"Bearer "+et})};this.http.post(ue,ke,de).pipe(q(1e5)).subscribe(ye=>{Fe.next(ye),Fe.complete()},ye=>{if(200==ye.status)Fe.next(ye.error.text),Fe.complete();else{let ve=this.errorMessageHandling(ye);this.toastr.error(ve.message,ve.header),Fe.error(ye)}})})}post(ue,ke,Fe=1e5){return new r.y(et=>{let be=localStorage.getItem("Token"),de=new c.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});be&&(de=new c.WM({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+be})),this.http.post(ue,ke,{headers:de}).pipe(q(Fe)).subscribe(ve=>{et.next(ve),et.complete()},ve=>{if(200==ve.status)et.next(ve.error.text),et.complete();else{if(!this.unauthorizedErrorHandling(ve)){let xe=this.errorMessageHandling(ve);this.toastr.error(""!=xe.message?xe.message:"An unknown error has occured!",xe.header)}et.error(ve)}})})}unauthorizedErrorHandling(ue){let ke=!1;return 401==ue.status&&(this.toastr.error("We can't log you in because of authenctication error","Unauthorized"),ke=!0),ke}errorMessageHandling(ue){let ke="API Error",Fe="Exception Message";return ue.error?(ke="API Error - "+ue.status,ue.error.Message&&(Fe=ue.error.Message)):ue.message&&(ke="API Error - "+ue.name,Fe=ue.message),{header:ke,message:Fe}}}Ne.\u0275fac=function(ue){return new(ue||Ne)(He.LFG(c.eN),He.LFG(Ee._W))},Ne.\u0275prov=He.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"})},5083:(Ct,Te,g)=>{g.d(Te,{U:()=>A});var r=g(1135),c=g(4650);class A{constructor(){this.store=new r.X({ID:null,billNumber:null,outletName:null})}getState(){return this.store.asObservable()}setState(X){this.store.next(X)}}A.\u0275fac=function(X){return new(X||A)},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})},8412:(Ct,Te,g)=>{g.d(Te,{gT:()=>r});class r{static StringFormat(J,...ee){for(let ne=0;ne<ee.length;ne++)J=J.replace(`{${ne}}`,ee[ne]);return J}static parseJwt(J){var ne=J.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),j=decodeURIComponent(atob(ne).split("").map(function(q){return"%"+("00"+q.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(j)}static IsNotEmpty(J){return""!=J&&J!=r.GuidEmpty&&null!=J&&null!=J}static IsEmpty(J){return""==J||null==J||null==J||J==r.GuidEmpty}static FilterByID(J,ee){try{const ne=J.filter(j=>j.ID==ee);if(ne.length>0)return ne[0]}catch{console.log("error filter")}return null}static DateOnly(J){return J?new Date(new Date(J).toDateString()):new Date((new Date).toDateString())}}r.GuidEmpty="00000000-0000-0000-0000-000000000000",r.DecimalMinValue="-7.922816251426434e+28",r.InputLockTimeSpan=500,r.MinDate="0001-01-01T00:00:00",r.MinTime="00:00:00";class A{}A.emptyDate="Please fill invoice date",A.emptyNumber="Please fill invoice number",A.failGetMenu="Fail to get pos menu",A.failToGetRetur="Fail to get retur",A.failGetLocalPosStorage="Fail to get setting and option from local storage, Please re-cache your data while online!",A.failGetVariant='"Error getting variant with {0} {1}" - {2}',A.failGetLocalVariant="Fail to get variant from local storage, Please re-cache your data while online!",A.emptyBarcodeFormat='No product with barcode "{0}"',A.emptyCustomerFormat='No customer with code "{0}"',A.failGetSalesOrder="Fail to get sales order",A.failBin="Fail to bin transaction",A.failGetCustomer="Fail to get customer's data",A.failCreateCustomer="Fail to create customer",A.noRoleContact="You have no right to create new customer",A.submitLocally="Connection unavailable ~ offline! Order stored locally",A.OfflineOrderNotSupport="Offline order is not Supported!",A.failOrderConnectionTimeOut="Connection timeout! Please try uploading your order again!",A.failDeletePark="Fail to delete park",A.emptyAccessRegister="You do not have access to any Register",A.failGenerateNewNumber="Fail to generate new number",A.emptyPayment="There is no active payment method.",A.failOpenRegister="Fail to open register",A.failGetLocalOutletInfo="Fail to get outlet information from local storage, Please re-cache your data while online!",A.failTrySubmit="[Error submitting order] \n{0}",A.failTryCreateCustomer='"[Error creating customer] \n"{0}',A.createCustomerOffline="Create customer is not supported when the connection offline",A.emptyCustomer="Please select customer!",A.emptySalesPerson="Please select sales person!",A.emptySalesType="Please select sales type!",A.failCreateNewVariant="Fail to create new variant",A.requiredDefaultCategory="[WARNING] - POS / Quick Create Product requires Default Category",A.emptyVariant="Item is undefined, please re-type",A.emptyPOItem="You must have at least one item",A.emptyEntity="Please select entity before proceeding..",A.failGetRetrieve="Fail to get retrieve",A.failTryPark="[Error submitting park] \n{0}",A.failTryGetPark="[Error during get park] \n{0}",A.failTryGetOutStanding="[Error during get outstanding] \n{0}",A.failTryGetParkSelect="[Error during get available park select] \n{0}",A.failGetSerial="Fail to get variant serial",A.successSendOrder="Orders synchronized to server. Upload Transaction Complete!",A.successSyncProduct="Products synchronized to Local Storage",A.failGetPark="Fail to get park",A.failMergePark="Fail to merge park",A.failGetOutStanding="Fail to get outstanding",A.failGetParkSelect="Fail to get available park select",A.confirmationDeleteOrder="Are you sure want to delete this order?",A.confirmationCloseRegister="The Register is still occupied under '{0}'. Do you want to end his / her session?",A.closeActiveRegister="You already have an active register with name '{0}'. Do you want to end your session?",A.successSendEmail="Email is sent successfully to '{0}'",A.wrongOfflineAction="This action is not supported when the connection offline",A.emptyCustomerCredit="Credit Payment requires customer specified!",A.debtLimit="Your debt is over limit!",A.emptyCustomerDeposit="Deposit Payment requires customer specified!",A.creditLock="You have no right to give credit!",A.failToSyncProduct="Fail sync product to local storage!",A.emptyDeliveryOutlet="There is no outlet in delivery module.",A.wrongAuthorizationCode="Wrong Authorize Code!",A.priceMinimumRestriction="You have no right to sell this item lower than {0}",A.clearBrowsingData="A new version of our POS is available, please clear your browsing data to apply changes!",A.offlineModeNotification="WARNING! Your point of sale configuration is set to LOCAL, orders are not synchronized automatically.",A.failServerConnection="Something happen to the server, switch query to local mode to continue work!",A.taxEmpty="Tax options is empty, go to setup and add tax!",A.clearCommission="Are you sure to leave this page without saving?",A.voidConfirm="This will replace current order's item(s) with blank order.",A.notSellAble="This item is not for sell",A.partialLoyaltyPointUnable="You only can fully pay with loyalty point, otherwise please remove the loyalty point and use other available payment options",A.DiffDate="Client date is not equal with Server Date",A.pointOnly="{0} need paid by point only",A.cashOnly="{0} cannot paid by point",A.ovoConfig="WARNING! Your ovo configuration is not set",A.failGenerateQR="Fail to generate qr",A.failPaymentOvo="Fail to pay with ovo, Try again",A.emptyPhone="Please Fill Phone";class B{}B.GetPOSStorage="/API/POS/LoadPOS",B.GenerateNumber="/API/POS/GenerateNumber",B.RemovePark="/API/POS/RemovePark",B.VoidPark="/API/POS/VoidPark",B.ReturInvoice="/API/POS/ReturInvoice",B.GetSalesOrderJSONByID="/API/POS/GetSalesOrderJSONByID",B.GetPOSDataByID="/API/POS/GetPOSDataByID",B.MergePark="/API/POS/MergePark",B.GetPark="/API/POS/GetParkByEntityID",B.GetOutStanding="/API/POS/GetOutStandingByEntityID",B.GetVacant="/API/POS/GetParkInfoByEntityID",B.RecordOpeningCash="/API/POS/RecordOpeningCash",B.OpenRegister="/API/POS/LoadRegister",B.BackdateNumber="/API/POS/GenerateBackdateNumber",B.GetVariantByID="/API/catalog/variant/GetVariantByID",B.GetVariantByCode="/API/catalog/variant/GetVariantByCode",B.GetVariantSerial="/API/catalog/variant/GetVariantSerial",B.CreateVariant="/API/catalog/variant/CreateVariant",B.SendInvoiceEmail="/API/Transaction/SendEmail",B.TransactionNumber="/API/POS/GenerateNumber",B.GetCustomerPrivilegeByID="/API/Contact/GetPrivilegeByID",B.GetCustomerByCode="/API/Contact/GetByCode",B.GetCustomerCode="/API/Contact/GetCode",B.GetCustomerEmailByID="/API/Contact/GetEmailByID",B.GetPriceBookByVariantID="/API/catalog/variant/GetPriceBookByVariantID",B.GetPackageID="/API/POS/GetPackageID",B.Authorize="/API/AuthorizationKey/Authorize",B.Invoice="/API/Orders/InvoiceInfo",B.OrdersLoader="/API/OrdersLoader/CustomerInvoice",B.Orders="/API/Orders/CustomerInvoice",B.PaymentReceivedLoader="/API/PaymentLoader/DailyPaymentLoader",B.PaymentReceived="/API/Payment/DailyPaymentReceived",B.CheckOutUrl="/API/POS/SubmitOrder",B.Scanner="/API/AdjustmentLoader/StockTakeByCSV",B.AdjustmentLoader="/API/AdjustmentLoader/GetInventoryAdjustmentList",B.Adjustment="/API/Adjustment/GetInventoryAdjustmentList",B.AdjustmentStorage="/API/Adjustment/GetStorage",B.GetNumberAdjustment="/API/Adjustment/GenerateNumber",B.GetAccountReceivableLoader="/API/DebtLoader/AccountsReceiveableSummary",B.GetAccountReceivableDetailLoader="/API/DebtLoader/AccountsReceiveableDetails",B.GetAccountReceivableSummary="/API/Debt/AccountsReceiveableSummary",B.getAccountreceivableDetail="/API/Debt/AccountsReceiveableDetails",B.ProductLibrarySuggestion="/API/AC/GetVariantSuggestionByCodeNName",B.VoidInvoiceLoader="/API/OrdersLoader/VoidInvoiceLoader",B.VoidInvoice="/API/Orders/VoidInvoiceList",B.WaitingPatientList="/API/Treatment/WaitingPatientList",B.CheckOutTreatmentByListID="/API/Treatment/CheckOutByListID",B.TreatmentRegisterLoader="/API/TreatmentLoader/Registration",B.TreatmentRegisterOutletInfo="/API/Treatment/RegistrationGetOutletInfo",B.TreatmentCustomerInfo="/API/Treatment/RegistrationGetCustomerInfo",B.SubmitTreatementRegistration="/API/Treatment/RegistrationSubmit",B.SalesOrderMini="/API/Print/SalesOrderMini",B.ProductLoader="/API/ProductLoader/ProductList",B.ProductList="/API/catalog/product/GetProductList",B.DeleteProductList="/API/catalog/product/DeleteProductList",B.ProductForm="/API/ProductLoader/ProductForm",B.SubmitProduct="/API/catalog/product/SubmitProduct",B.ProductInfo="/API/ProductLoader/ProductInfoInitial",B.CreateCategory="/API/catalog/product/CreateProductCategory",B.CreateBrand="/API/catalog/product/CreateBrand",B.CreateTag="/API/catalog/product/CreateTags",B.CreateUOM="/API/catalog/product/CreateProductUOM",B.VariantInfo="/API/catalog/variant/GetVariantInfoModelById",B.VariantFormData="/API/catalog/variant/GetVariantFormInitialData",B.VariantForm="/API/catalog/variant/GetVariantFormModelById",B.SubmitVariant="/API/catalog/variant/SubmitVariant",B.CreateContact="/API/Contact/Create",B.Closure="/API/POS/Closure",B.SyncProducts="/API/POSSync/Products",B.SyncCustomer="/API/POSSync/Customers",B.SynOutletPrice="/API/POSSync/OutletPrices",B.SynOutlet="/API/POSSync/Outlets",B.SyncPark="/API/POSSync/Parks",B.GetRewardByPromotionID="/API/POS/GetRewardByPromotionID",B.GenerateGopayQrCode="/API/POS/GenerateGoPayQrCode",B.GenerateEmpatKaliQrCode="/API/POS/GenerateEmpatKaliQrCode",B.VerifyPayment="/API/PaymentNotification/VerifyPayment",B.PayWithOvo="/API/POS/PayWithOvo",B.InvoiceA4="/API/Print/Invoice",B.UploadCsv="/API/POS/UploadCsv",B.GenerateCommission="/API/Transaction/GetCommission";class X{}X.OfflineQueryMode="OfflineQueryMode",X.POSStorage="POSStorage",X.Products="Products",X.Customers="Customers",X.OutletPrices="OutletPrices",X.Outlet="Outlet",X.Parks="Parks",X.Orders="Orders",X.FailedOrders="FailedOrders",X.CompletedOrders="CompletedOrders",X.NewCustomers="NewCustomers"},6985:(Ct,Te,g)=>{g.d(Te,{O:()=>c});var r=g(512);class c{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}}},4405:(Ct,Te,g)=>{g.d(Te,{M:()=>ke});var r=g(4650),c=g(512),A=g(6985),B=g(6895),X=g(5412);function se(Fe,et){if(1&Fe){const be=r.EpF();r.TgZ(0,"div",8),r.NdJ("click",function(){r.CHM(be);const ye=r.oxw();return r.KtG(ye.onBack.emit())}),r.TgZ(1,"a",9),r._UZ(2,"i",10),r.qZA()()}}function J(Fe,et){if(1&Fe){const be=r.EpF();r.TgZ(0,"div")(1,"a",11),r.NdJ("click",function(){r.CHM(be);const ye=r.oxw();return r.KtG(ye.onCancel.emit())}),r._UZ(2,"i",12),r.qZA()()}}function ee(Fe,et){1&Fe&&r.Hsn(0,2,["*ngIf","more"])}function ne(Fe,et){if(1&Fe){const be=r.EpF();r.TgZ(0,"a",17),r.NdJ("click",function(){r.CHM(be);const ye=r.oxw(2);return r.KtG(ye.more=!ye.more)}),r._uU(1,"More"),r.qZA()}}function j(Fe,et){if(1&Fe){const be=r.EpF();r.TgZ(0,"a",18),r.NdJ("click",function(){r.CHM(be);const ye=r.oxw(2);return r.KtG(ye.onCancel.emit())}),r._uU(1),r.qZA()}if(2&Fe){const be=r.oxw(2);r.xp6(1),r.hij(" ",null!=be.config&&be.config.cancelText?null==be.config?null:be.config.cancelText:"Cancel","")}}function q(Fe,et){if(1&Fe){const be=r.EpF();r.TgZ(0,"button",19),r.NdJ("click",function(){r.CHM(be);const ye=r.oxw(2);return r.KtG(ye.onOk.emit())}),r._uU(1),r.qZA()}if(2&Fe){const be=r.oxw(2);r.Q6J("disabled",!(null!=be.config&&be.config.validated)),r.xp6(1),r.hij(" ",null!=be.config&&be.config.okText?null==be.config?null:be.config.okText:"Ok (F2)"," ")}}function le(Fe,et){if(1&Fe&&(r.TgZ(0,"mat-dialog-actions",13),r.YNc(1,ne,2,0,"a",14),r.Hsn(2,3),r.YNc(3,j,2,1,"a",15),r.YNc(4,q,2,2,"button",16),r.qZA()),2&Fe){const be=r.oxw();r.xp6(1),r.Q6J("ngIf",!(null!=be.config&&be.config.hideMoreButton)),r.xp6(2),r.Q6J("ngIf",!(null!=be.config&&be.config.hideCancel)),r.xp6(1),r.Q6J("ngIf",!(null!=be.config&&be.config.hideOk))}}const He=[[["header"]],[["content"]],[["more-content"]],[["footer"]]],Ee=function(Fe,et){return{bodyScrollable:Fe,hideScrollbar:et}},Ne=function(Fe){return{"mx-auto":Fe}},Re=function(Fe){return{"show-footer":Fe}};class ke{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 A.O),this.config.headerType){case c.n.Success:this.background="bg-success";break;case c.n.Warning:case c.n.Info:this.background="bg-warning";break;case c.n.Error:this.background="bg-danger";break;default:this.background=""}}onKeyup(et){this.config&&(this.config.disableKeyup||"F2"==et.code&&this.onOk.emit())}}ke.\u0275fac=function(et){return new(et||ke)},ke.\u0275cmp=r.Xpm({type:ke,selectors:[["modal-material"]],inputs:{config:"config"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack",onShowMore:"onShowMore"},ngContentSelectors:["header","content","more-content","footer"],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(et,be){1&et&&(r.F$t(He),r.TgZ(0,"div",0),r.NdJ("keyup",function(ye){return be.onKeyup(ye)}),r.TgZ(1,"div",1),r.YNc(2,se,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,J,3,0,"div",5),r.qZA(),r.TgZ(8,"mat-dialog-content",6),r.Hsn(9,1),r.YNc(10,ee,1,0,"ng-content",5),r.qZA(),r.YNc(11,le,5,3,"mat-dialog-actions",7),r.qZA()),2&et&&(r.Udp("width",null==be.config?null:be.config.customWidth),r.Q6J("ngClass",r.WLB(13,Ee,null==be.config?null:be.config.bodyScrollable,null==be.config?null:be.config.hideScrollbar)),r.xp6(1),r.Gre("d-flex w-100 justify-content-between modal-header position-relative ",be.background,""),r.xp6(1),r.Q6J("ngIf",null==be.config?null:be.config.eMoney),r.xp6(1),r.Q6J("ngClass",r.VKq(16,Ne,null==be.config?null:be.config.eMoney)),r.xp6(2),r.Oqu(null==be.config?null:be.config.title),r.xp6(2),r.Q6J("ngIf",!(null!=be.config&&be.config.hideClose)),r.xp6(1),r.Q6J("ngClass",r.VKq(18,Re,!(null!=be.config&&be.config.hideFooter))),r.xp6(2),r.Q6J("ngIf",be.more),r.xp6(1),r.Q6J("ngIf",!(null!=be.config&&be.config.hideFooter)))},dependencies:[B.mk,B.O5,X.uh,X.xY,X.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}"]})},512:(Ct,Te,g)=>{g.d(Te,{n:()=>r});var r=(()=>{return(c=r||(r={})).Success="Success",c.Info="Info",c.Warning="Warning",c.Error="Error",r;var c})()},4949:(Ct,Te,g)=>{g.d(Te,{m:()=>ee});var r=g(6895),c=g(433),A=g(8796),B=g(5412),X=g(4120),se=g(4650);class J{}J.\u0275fac=function(j){return new(j||J)},J.\u0275mod=se.oAB({type:J}),J.\u0275inj=se.cJS({imports:[r.ez]});class ee{}ee.\u0275fac=function(j){return new(j||ee)},ee.\u0275mod=se.oAB({type:ee}),ee.\u0275inj=se.cJS({imports:[r.ez,c.u5,A.A0,c.UX,B.Is,X.Bb,J,c.u5,A.A0,c.UX,B.Is,X.Bb,J]})},7326:(Ct,Te,g)=>{var r=g(1481),c=g(4650),A=g(2011),B=g(5200),X=g(6895),se=g(433),J=g(7340);function ne(f){return new c.vHH(3e3,!1)}function en(){return typeof window<"u"&&typeof window.document<"u"}function zt(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Jt(f){switch(f.length){case 0:return new J.ZN;case 1:return f[0];default:return new J.ZE(f)}}function Tn(f,l,a,v,F=new Map,G=new Map){const ge=[],Me=[];let Qe=-1,_t=null;if(v.forEach(jt=>{const Kt=jt.get("offset"),Ln=Kt==Qe,On=Ln&&_t||new Map;jt.forEach((_n,E)=>{let x=E,H=_n;if("offset"!==E)switch(x=l.normalizePropertyName(x,ge),H){case J.k1:H=F.get(E);break;case J.l3:H=G.get(E);break;default:H=l.normalizeStyleValue(E,x,H,ge)}On.set(x,H)}),Ln||Me.push(On),_t=On,Qe=Kt}),ge.length)throw function rt(f){return new c.vHH(3502,!1)}();return Me}function In(f,l,a,v){switch(l){case"start":f.onStart(()=>v(a&&Fn(a,"start",f)));break;case"done":f.onDone(()=>v(a&&Fn(a,"done",f)));break;case"destroy":f.onDestroy(()=>v(a&&Fn(a,"destroy",f)))}}function Fn(f,l,a){const G=Pn(f.element,f.triggerName,f.fromState,f.toState,l||f.phaseName,a.totalTime??f.totalTime,!!a.disabled),ge=f._data;return null!=ge&&(G._data=ge),G}function Pn(f,l,a,v,F="",G=0,ge){return{element:f,triggerName:l,fromState:a,toState:v,phaseName:F,totalTime:G,disabled:!!ge}}function sn(f,l,a){let v=f.get(l);return v||f.set(l,v=a),v}function tt(f){const l=f.indexOf(":");return[f.substring(1,l),f.slice(l+1)]}let W=(f,l)=>!1,ae=(f,l,a)=>[],Se=null;function nt(f){const l=f.parentNode||f.host;return l===Se?null:l}(zt()||typeof Element<"u")&&(en()?(Se=(()=>document.documentElement)(),W=(f,l)=>{for(;l;){if(l===f)return!0;l=nt(l)}return!1}):W=(f,l)=>f.contains(l),ae=(f,l,a)=>{if(a)return Array.from(f.querySelectorAll(l));const v=f.querySelector(l);return v?[v]:[]});let Ht=null,Pt=!1;const fe=W,Ye=ae;let Ft=(()=>{class f{validateStyleProperty(a){return function St(f){Ht||(Ht=function lt(){return typeof document<"u"?document.body:null}()||{},Pt=!!Ht.style&&"WebkitAppearance"in Ht.style);let l=!0;return Ht.style&&!function At(f){return"ebkit"==f.substring(1,6)}(f)&&(l=f in Ht.style,!l&&Pt&&(l="Webkit"+f.charAt(0).toUpperCase()+f.slice(1)in Ht.style)),l}(a)}matchesElement(a,v){return!1}containsElement(a,v){return fe(a,v)}getParentElement(a){return nt(a)}query(a,v,F){return Ye(a,v,F)}computeStyle(a,v,F){return F||""}animate(a,v,F,G,ge,Me=[],Qe){return new J.ZN(F,G)}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})(),an=(()=>{class f{}return f.NOOP=new Ft,f})();const xn="ng-enter",Sn="ng-leave",Oe="ng-trigger",te=".ng-trigger",V="ng-animating",U=".ng-animating";function re(f){if("number"==typeof f)return f;const l=f.match(/^(-?[\.\d]+)(m?s)/);return!l||l.length<2?0:Ke(parseFloat(l[1]),l[2])}function Ke(f,l){return"s"===l?1e3*f:f}function K(f,l,a){return f.hasOwnProperty("duration")?f:function ce(f,l,a){let F,G=0,ge="";if("string"==typeof f){const Me=f.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Me)return l.push(ne()),{duration:0,delay:0,easing:""};F=Ke(parseFloat(Me[1]),Me[2]);const Qe=Me[3];null!=Qe&&(G=Ke(parseFloat(Qe),Me[4]));const _t=Me[5];_t&&(ge=_t)}else F=f;if(!a){let Me=!1,Qe=l.length;F<0&&(l.push(function j(){return new c.vHH(3100,!1)}()),Me=!0),G<0&&(l.push(function q(){return new c.vHH(3101,!1)}()),Me=!0),Me&&l.splice(Qe,0,ne())}return{duration:F,delay:G,easing:ge}}(f,l,a)}function De(f,l={}){return Object.keys(f).forEach(a=>{l[a]=f[a]}),l}function qe(f){const l=new Map;return Object.keys(f).forEach(a=>{l.set(a,f[a])}),l}function Wt(f,l=new Map,a){if(a)for(let[v,F]of a)l.set(v,F);for(let[v,F]of f)l.set(v,F);return l}function tn(f,l,a){return a?l+":"+a+";":""}function he(f){let l="";for(let a=0;a<f.style.length;a++){const v=f.style.item(a);l+=tn(0,v,f.style.getPropertyValue(v))}for(const a in f.style)f.style.hasOwnProperty(a)&&!a.startsWith("_")&&(l+=tn(0,bn(a),f.style[a]));f.setAttribute("style",l)}function k(f,l,a){f.style&&(l.forEach((v,F)=>{const G=hn(F);a&&!a.has(F)&&a.set(F,f.style[G]),f.style[G]=v}),zt()&&he(f))}function p(f,l){f.style&&(l.forEach((a,v)=>{const F=hn(v);f.style[F]=""}),zt()&&he(f))}function _(f){return Array.isArray(f)?1==f.length?f[0]:(0,J.vP)(f):f}const P=new RegExp("{{\\s*(.+?)\\s*}}","g");function oe(f){let l=[];if("string"==typeof f){let a;for(;a=P.exec(f);)l.push(a[1]);P.lastIndex=0}return l}function Be(f,l,a){const v=f.toString(),F=v.replace(P,(G,ge)=>{let Me=l[ge];return null==Me&&(a.push(function He(f){return new c.vHH(3003,!1)}()),Me=""),Me.toString()});return F==v?f:F}function yt(f){const l=[];let a=f.next();for(;!a.done;)l.push(a.value),a=f.next();return l}const Bt=/-+([a-z0-9])/g;function hn(f){return f.replace(Bt,(...l)=>l[1].toUpperCase())}function bn(f){return f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ae(f,l,a){switch(l.type){case 7:return f.visitTrigger(l,a);case 0:return f.visitState(l,a);case 1:return f.visitTransition(l,a);case 2:return f.visitSequence(l,a);case 3:return f.visitGroup(l,a);case 4:return f.visitAnimate(l,a);case 5:return f.visitKeyframes(l,a);case 6:return f.visitStyle(l,a);case 8:return f.visitReference(l,a);case 9:return f.visitAnimateChild(l,a);case 10:return f.visitAnimateRef(l,a);case 11:return f.visitQuery(l,a);case 12:return f.visitStagger(l,a);default:throw function Ee(f){return new c.vHH(3004,!1)}()}}function ft(f,l){return window.getComputedStyle(f)[l]}function $t(f,l){const a=[];return"string"==typeof f?f.split(/\s*,\s*/).forEach(v=>function cn(f,l,a){if(":"==f[0]){const Qe=function Wn(f,l){switch(f){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,v)=>parseFloat(v)>parseFloat(a);case":decrement":return(a,v)=>parseFloat(v)<parseFloat(a);default:return l.push(function vt(f){return new c.vHH(3016,!1)}()),"* => *"}}(f,a);if("function"==typeof Qe)return void l.push(Qe);f=Qe}const v=f.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return a.push(function dt(f){return new c.vHH(3015,!1)}()),l;const F=v[1],G=v[2],ge=v[3];l.push(Zn(F,ge));"<"==G[0]&&!("*"==F&&"*"==ge)&&l.push(Zn(ge,F))}(v,a,l)):a.push(f),a}const ci=new Set(["true","1"]),bi=new Set(["false","0"]);function Zn(f,l){const a=ci.has(f)||bi.has(f),v=ci.has(l)||bi.has(l);return(F,G)=>{let ge="*"==f||f==F,Me="*"==l||l==G;return!ge&&a&&"boolean"==typeof F&&(ge=F?ci.has(f):bi.has(f)),!Me&&v&&"boolean"==typeof G&&(Me=G?ci.has(l):bi.has(l)),ge&&Me}}const Rn=new RegExp("s*:selfs*,?","g");function di(f,l,a,v){return new An(f).build(l,a,v)}class An{constructor(l){this._driver=l}build(l,a,v){const F=new Zr(a);return this._resetContextStyleTimingState(F),Ae(this,_(l),F)}_resetContextStyleTimingState(l){l.currentQuerySelector="",l.collectedStyles=new Map,l.collectedStyles.set("",new Map),l.currentTime=0}visitTrigger(l,a){let v=a.queryCount=0,F=a.depCount=0;const G=[],ge=[];return"@"==l.name.charAt(0)&&a.errors.push(function Re(){return new c.vHH(3006,!1)}()),l.definitions.forEach(Me=>{if(this._resetContextStyleTimingState(a),0==Me.type){const Qe=Me,_t=Qe.name;_t.toString().split(/\s*,\s*/).forEach(jt=>{Qe.name=jt,G.push(this.visitState(Qe,a))}),Qe.name=_t}else if(1==Me.type){const Qe=this.visitTransition(Me,a);v+=Qe.queryCount,F+=Qe.depCount,ge.push(Qe)}else a.errors.push(function ue(){return new c.vHH(3007,!1)}())}),{type:7,name:l.name,states:G,transitions:ge,queryCount:v,depCount:F,options:null}}visitState(l,a){const v=this.visitStyle(l.styles,a),F=l.options&&l.options.params||null;if(v.containsDynamicStyles){const G=new Set,ge=F||{};v.styles.forEach(Me=>{Me instanceof Map&&Me.forEach(Qe=>{oe(Qe).forEach(_t=>{ge.hasOwnProperty(_t)||G.add(_t)})})}),G.size&&(yt(G.values()),a.errors.push(function ke(f,l){return new c.vHH(3008,!1)}()))}return{type:0,name:l.name,style:v,options:F?{params:F}:null}}visitTransition(l,a){a.queryCount=0,a.depCount=0;const v=Ae(this,_(l.animation),a);return{type:1,matchers:$t(l.expr,a.errors),animation:v,queryCount:a.queryCount,depCount:a.depCount,options:Ui(l.options)}}visitSequence(l,a){return{type:2,steps:l.steps.map(v=>Ae(this,v,a)),options:Ui(l.options)}}visitGroup(l,a){const v=a.currentTime;let F=0;const G=l.steps.map(ge=>{a.currentTime=v;const Me=Ae(this,ge,a);return F=Math.max(F,a.currentTime),Me});return a.currentTime=F,{type:3,steps:G,options:Ui(l.options)}}visitAnimate(l,a){const v=function gi(f,l){if(f.hasOwnProperty("duration"))return f;if("number"==typeof f)return Hi(K(f,l).duration,0,"");const a=f;if(a.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=Hi(0,0,"");return G.dynamic=!0,G.strValue=a,G}const F=K(a,l);return Hi(F.duration,F.delay,F.easing)}(l.timings,a.errors);a.currentAnimateTimings=v;let F,G=l.styles?l.styles:(0,J.oB)({});if(5==G.type)F=this.visitKeyframes(G,a);else{let ge=l.styles,Me=!1;if(!ge){Me=!0;const _t={};v.easing&&(_t.easing=v.easing),ge=(0,J.oB)(_t)}a.currentTime+=v.duration+v.delay;const Qe=this.visitStyle(ge,a);Qe.isEmptyStep=Me,F=Qe}return a.currentAnimateTimings=null,{type:4,timings:v,style:F,options:null}}visitStyle(l,a){const v=this._makeStyleAst(l,a);return this._validateStyleAst(v,a),v}_makeStyleAst(l,a){const v=[],F=Array.isArray(l.styles)?l.styles:[l.styles];for(let Me of F)"string"==typeof Me?Me===J.l3?v.push(Me):a.errors.push(new c.vHH(3002,!1)):v.push(qe(Me));let G=!1,ge=null;return v.forEach(Me=>{if(Me instanceof Map&&(Me.has("easing")&&(ge=Me.get("easing"),Me.delete("easing")),!G))for(let Qe of Me.values())if(Qe.toString().indexOf("{{")>=0){G=!0;break}}),{type:6,styles:v,easing:ge,offset:l.offset,containsDynamicStyles:G,options:null}}_validateStyleAst(l,a){const v=a.currentAnimateTimings;let F=a.currentTime,G=a.currentTime;v&&G>0&&(G-=v.duration+v.delay),l.styles.forEach(ge=>{"string"!=typeof ge&&ge.forEach((Me,Qe)=>{const _t=a.collectedStyles.get(a.currentQuerySelector),jt=_t.get(Qe);let Kt=!0;jt&&(G!=F&&G>=jt.startTime&&F<=jt.endTime&&(a.errors.push(function be(f,l,a,v,F){return new c.vHH(3010,!1)}()),Kt=!1),G=jt.startTime),Kt&&_t.set(Qe,{startTime:G,endTime:F}),a.options&&function I(f,l,a){const v=l.params||{},F=oe(f);F.length&&F.forEach(G=>{v.hasOwnProperty(G)||a.push(function le(f){return new c.vHH(3001,!1)}())})}(Me,a.options,a.errors)})})}visitKeyframes(l,a){const v={type:5,styles:[],options:null};if(!a.currentAnimateTimings)return a.errors.push(function de(){return new c.vHH(3011,!1)}()),v;let G=0;const ge=[];let Me=!1,Qe=!1,_t=0;const jt=l.steps.map(H=>{const me=this._makeStyleAst(H,a);let $e=null!=me.offset?me.offset:function Ii(f){if("string"==typeof f)return null;let l=null;if(Array.isArray(f))f.forEach(a=>{if(a instanceof Map&&a.has("offset")){const v=a;l=parseFloat(v.get("offset")),v.delete("offset")}});else if(f instanceof Map&&f.has("offset")){const a=f;l=parseFloat(a.get("offset")),a.delete("offset")}return l}(me.styles),Je=0;return null!=$e&&(G++,Je=me.offset=$e),Qe=Qe||Je<0||Je>1,Me=Me||Je<_t,_t=Je,ge.push(Je),me});Qe&&a.errors.push(function ye(){return new c.vHH(3012,!1)}()),Me&&a.errors.push(function ve(){return new c.vHH(3200,!1)}());const Kt=l.steps.length;let Ln=0;G>0&&G<Kt?a.errors.push(function Ue(){return new c.vHH(3202,!1)}()):0==G&&(Ln=1/(Kt-1));const On=Kt-1,_n=a.currentTime,E=a.currentAnimateTimings,x=E.duration;return jt.forEach((H,me)=>{const $e=Ln>0?me==On?1:Ln*me:ge[me],Je=$e*x;a.currentTime=_n+E.delay+Je,E.duration=Je,this._validateStyleAst(H,a),H.offset=$e,v.styles.push(H)}),v}visitReference(l,a){return{type:8,animation:Ae(this,_(l.animation),a),options:Ui(l.options)}}visitAnimateChild(l,a){return a.depCount++,{type:9,options:Ui(l.options)}}visitAnimateRef(l,a){return{type:10,animation:this.visitReference(l.animation,a),options:Ui(l.options)}}visitQuery(l,a){const v=a.currentQuerySelector,F=l.options||{};a.queryCount++,a.currentQuery=l;const[G,ge]=function ir(f){const l=!!f.split(/\s*,\s*/).find(a=>":self"==a);return l&&(f=f.replace(Rn,"")),f=f.replace(/@\*/g,te).replace(/@\w+/g,a=>te+"-"+a.slice(1)).replace(/:animating/g,U),[f,l]}(l.selector);a.currentQuerySelector=v.length?v+" "+G:G,sn(a.collectedStyles,a.currentQuerySelector,new Map);const Me=Ae(this,_(l.animation),a);return a.currentQuery=null,a.currentQuerySelector=v,{type:11,selector:G,limit:F.limit||0,optional:!!F.optional,includeSelf:ge,animation:Me,originalSelector:l.selector,options:Ui(l.options)}}visitStagger(l,a){a.currentQuery||a.errors.push(function xe(){return new c.vHH(3013,!1)}());const v="full"===l.timings?{duration:0,delay:0,easing:"full"}:K(l.timings,a.errors,!0);return{type:12,animation:Ae(this,_(l.animation),a),timings:v,options:null}}}class Zr{constructor(l){this.errors=l,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 Ui(f){return f?(f=De(f)).params&&(f.params=function rr(f){return f?De(f):null}(f.params)):f={},f}function Hi(f,l,a){return{duration:f,delay:l,easing:a}}function Mi(f,l,a,v,F,G,ge=null,Me=!1){return{type:1,element:f,keyframes:l,preStyleProps:a,postStyleProps:v,duration:F,delay:G,totalTime:F+G,easing:ge,subTimeline:Me}}class Yi{constructor(){this._map=new Map}get(l){return this._map.get(l)||[]}append(l,a){let v=this._map.get(l);v||this._map.set(l,v=[]),v.push(...a)}has(l){return this._map.has(l)}clear(){this._map.clear()}}const or=new RegExp(":enter","g"),lo=new RegExp(":leave","g");function Ir(f,l,a,v,F,G=new Map,ge=new Map,Me,Qe,_t=[]){return(new ur).buildKeyframes(f,l,a,v,F,G,ge,Me,Qe,_t)}class ur{buildKeyframes(l,a,v,F,G,ge,Me,Qe,_t,jt=[]){_t=_t||new Yi;const Kt=new ui(l,a,_t,F,G,jt,[]);Kt.options=Qe;const Ln=Qe.delay?re(Qe.delay):0;Kt.currentTimeline.delayNextStep(Ln),Kt.currentTimeline.setStyles([ge],null,Kt.errors,Qe),Ae(this,v,Kt);const On=Kt.timelines.filter(_n=>_n.containsAnimation());if(On.length&&Me.size){let _n;for(let E=On.length-1;E>=0;E--){const x=On[E];if(x.element===a){_n=x;break}}_n&&!_n.allowOnlyTimelineStyles()&&_n.setStyles([Me],null,Kt.errors,Qe)}return On.length?On.map(_n=>_n.buildKeyframes()):[Mi(a,[],[],[],0,Ln,"",!1)]}visitTrigger(l,a){}visitState(l,a){}visitTransition(l,a){}visitAnimateChild(l,a){const v=a.subInstructions.get(a.element);if(v){const F=a.createSubContext(l.options),G=a.currentTimeline.currentTime,ge=this._visitSubInstructions(v,F,F.options);G!=ge&&a.transformIntoNewTimeline(ge)}a.previousNode=l}visitAnimateRef(l,a){const v=a.createSubContext(l.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([l.options,l.animation.options],a,v),this.visitReference(l.animation,v),a.transformIntoNewTimeline(v.currentTimeline.currentTime),a.previousNode=l}_applyAnimationRefDelays(l,a,v){for(const F of l){const G=F?.delay;if(G){const ge="number"==typeof G?G:re(Be(G,F?.params??{},a.errors));v.delayNextStep(ge)}}}_visitSubInstructions(l,a,v){let G=a.currentTimeline.currentTime;const ge=null!=v.duration?re(v.duration):null,Me=null!=v.delay?re(v.delay):null;return 0!==ge&&l.forEach(Qe=>{const _t=a.appendInstructionToTimeline(Qe,ge,Me);G=Math.max(G,_t.duration+_t.delay)}),G}visitReference(l,a){a.updateOptions(l.options,!0),Ae(this,l.animation,a),a.previousNode=l}visitSequence(l,a){const v=a.subContextCount;let F=a;const G=l.options;if(G&&(G.params||G.delay)&&(F=a.createSubContext(G),F.transformIntoNewTimeline(),null!=G.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=hi);const ge=re(G.delay);F.delayNextStep(ge)}l.steps.length&&(l.steps.forEach(ge=>Ae(this,ge,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>v&&F.transformIntoNewTimeline()),a.previousNode=l}visitGroup(l,a){const v=[];let F=a.currentTimeline.currentTime;const G=l.options&&l.options.delay?re(l.options.delay):0;l.steps.forEach(ge=>{const Me=a.createSubContext(l.options);G&&Me.delayNextStep(G),Ae(this,ge,Me),F=Math.max(F,Me.currentTimeline.currentTime),v.push(Me.currentTimeline)}),v.forEach(ge=>a.currentTimeline.mergeTimelineCollectedStyles(ge)),a.transformIntoNewTimeline(F),a.previousNode=l}_visitTiming(l,a){if(l.dynamic){const v=l.strValue;return K(a.params?Be(v,a.params,a.errors):v,a.errors)}return{duration:l.duration,delay:l.delay,easing:l.easing}}visitAnimate(l,a){const v=a.currentAnimateTimings=this._visitTiming(l.timings,a),F=a.currentTimeline;v.delay&&(a.incrementTime(v.delay),F.snapshotCurrentStyles());const G=l.style;5==G.type?this.visitKeyframes(G,a):(a.incrementTime(v.duration),this.visitStyle(G,a),F.applyStylesToKeyframe()),a.currentAnimateTimings=null,a.previousNode=l}visitStyle(l,a){const v=a.currentTimeline,F=a.currentAnimateTimings;!F&&v.hasCurrentStyleProperties()&&v.forwardFrame();const G=F&&F.easing||l.easing;l.isEmptyStep?v.applyEmptyStep(G):v.setStyles(l.styles,G,a.errors,a.options),a.previousNode=l}visitKeyframes(l,a){const v=a.currentAnimateTimings,F=a.currentTimeline.duration,G=v.duration,Me=a.createSubContext().currentTimeline;Me.easing=v.easing,l.styles.forEach(Qe=>{Me.forwardTime((Qe.offset||0)*G),Me.setStyles(Qe.styles,Qe.easing,a.errors,a.options),Me.applyStylesToKeyframe()}),a.currentTimeline.mergeTimelineCollectedStyles(Me),a.transformIntoNewTimeline(F+G),a.previousNode=l}visitQuery(l,a){const v=a.currentTimeline.currentTime,F=l.options||{},G=F.delay?re(F.delay):0;G&&(6===a.previousNode.type||0==v&&a.currentTimeline.hasCurrentStyleProperties())&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=hi);let ge=v;const Me=a.invokeQuery(l.selector,l.originalSelector,l.limit,l.includeSelf,!!F.optional,a.errors);a.currentQueryTotal=Me.length;let Qe=null;Me.forEach((_t,jt)=>{a.currentQueryIndex=jt;const Kt=a.createSubContext(l.options,_t);G&&Kt.delayNextStep(G),_t===a.element&&(Qe=Kt.currentTimeline),Ae(this,l.animation,Kt),Kt.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Kt.currentTimeline.currentTime)}),a.currentQueryIndex=0,a.currentQueryTotal=0,a.transformIntoNewTimeline(ge),Qe&&(a.currentTimeline.mergeTimelineCollectedStyles(Qe),a.currentTimeline.snapshotCurrentStyles()),a.previousNode=l}visitStagger(l,a){const v=a.parentContext,F=a.currentTimeline,G=l.timings,ge=Math.abs(G.duration),Me=ge*(a.currentQueryTotal-1);let Qe=ge*a.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":Qe=Me-Qe;break;case"full":Qe=v.currentStaggerTime}const jt=a.currentTimeline;Qe&&jt.delayNextStep(Qe);const Kt=jt.currentTime;Ae(this,l.animation,a),a.previousNode=l,v.currentStaggerTime=F.currentTime-Kt+(F.startTime-v.currentTimeline.startTime)}}const hi={};class ui{constructor(l,a,v,F,G,ge,Me,Qe){this._driver=l,this.element=a,this.subInstructions=v,this._enterClassName=F,this._leaveClassName=G,this.errors=ge,this.timelines=Me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Qe||new Qr(this._driver,a,0),Me.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(l,a){if(!l)return;const v=l;let F=this.options;null!=v.duration&&(F.duration=re(v.duration)),null!=v.delay&&(F.delay=re(v.delay));const G=v.params;if(G){let ge=F.params;ge||(ge=this.options.params={}),Object.keys(G).forEach(Me=>{(!a||!ge.hasOwnProperty(Me))&&(ge[Me]=Be(G[Me],ge,this.errors))})}}_copyOptions(){const l={};if(this.options){const a=this.options.params;if(a){const v=l.params={};Object.keys(a).forEach(F=>{v[F]=a[F]})}}return l}createSubContext(l=null,a,v){const F=a||this.element,G=new ui(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,v||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(l),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(l){return this.previousNode=hi,this.currentTimeline=this.currentTimeline.fork(this.element,l),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(l,a,v){const F={duration:a??l.duration,delay:this.currentTimeline.currentTime+(v??0)+l.delay,easing:""},G=new _i(this._driver,l.element,l.keyframes,l.preStyleProps,l.postStyleProps,F,l.stretchStartingKeyframe);return this.timelines.push(G),F}incrementTime(l){this.currentTimeline.forwardTime(this.currentTimeline.duration+l)}delayNextStep(l){l>0&&this.currentTimeline.delayNextStep(l)}invokeQuery(l,a,v,F,G,ge){let Me=[];if(F&&Me.push(this.element),l.length>0){l=(l=l.replace(or,"."+this._enterClassName)).replace(lo,"."+this._leaveClassName);let _t=this._driver.query(this.element,l,1!=v);0!==v&&(_t=v<0?_t.slice(_t.length+v,_t.length):_t.slice(0,v)),Me.push(..._t)}return!G&&0==Me.length&&ge.push(function ze(f){return new c.vHH(3014,!1)}()),Me}}class Qr{constructor(l,a,v,F){this._driver=l,this.element=a,this.startTime=v,this._elementTimelineStylesLookup=F,this.duration=0,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(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,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(l){const a=1===this._keyframes.size&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+l),a&&this.snapshotCurrentStyles()):this.startTime+=l}fork(l,a){return this.applyStylesToKeyframe(),new Qr(this._driver,l,a||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(l){this.applyStylesToKeyframe(),this.duration=l,this._loadKeyframe()}_updateStyle(l,a){this._localTimelineStyles.set(l,a),this._globalTimelineStyles.set(l,a),this._styleSummary.set(l,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(l){l&&this._previousKeyframe.set("easing",l);for(let[a,v]of this._globalTimelineStyles)this._backFill.set(a,v||J.l3),this._currentKeyframe.set(a,J.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(l,a,v,F){a&&this._previousKeyframe.set("easing",a);const G=F&&F.params||{},ge=function Ki(f,l){const a=new Map;let v;return f.forEach(F=>{if("*"===F){v=v||l.keys();for(let G of v)a.set(G,J.l3)}else Wt(F,a)}),a}(l,this._globalTimelineStyles);for(let[Me,Qe]of ge){const _t=Be(Qe,G,v);this._pendingStyles.set(Me,_t),this._localTimelineStyles.has(Me)||this._backFill.set(Me,this._globalTimelineStyles.get(Me)??J.l3),this._updateStyle(Me,_t)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((l,a)=>{this._currentKeyframe.set(a,l)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((l,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,l)}))}snapshotCurrentStyles(){for(let[l,a]of this._localTimelineStyles)this._pendingStyles.set(l,a),this._updateStyle(l,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const l=[];for(let a in this._currentKeyframe)l.push(a);return l}mergeTimelineCollectedStyles(l){l._styleSummary.forEach((a,v)=>{const F=this._styleSummary.get(v);(!F||a.time>F.time)&&this._updateStyle(v,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();const l=new Set,a=new Set,v=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Me,Qe)=>{const _t=Wt(Me,new Map,this._backFill);_t.forEach((jt,Kt)=>{jt===J.k1?l.add(Kt):jt===J.l3&&a.add(Kt)}),v||_t.set("offset",Qe/this.duration),F.push(_t)});const G=l.size?yt(l.values()):[],ge=a.size?yt(a.values()):[];if(v){const Me=F[0],Qe=new Map(Me);Me.set("offset",0),Qe.set("offset",1),F=[Me,Qe]}return Mi(this.element,F,G,ge,this.duration,this.startTime,this.easing,!1)}}class _i extends Qr{constructor(l,a,v,F,G,ge,Me=!1){super(l,a,ge.delay),this.keyframes=v,this.preStyleProps=F,this.postStyleProps=G,this._stretchStartingKeyframe=Me,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let l=this.keyframes,{delay:a,duration:v,easing:F}=this.timings;if(this._stretchStartingKeyframe&&a){const G=[],ge=v+a,Me=a/ge,Qe=Wt(l[0]);Qe.set("offset",0),G.push(Qe);const _t=Wt(l[0]);_t.set("offset",Ci(Me)),G.push(_t);const jt=l.length-1;for(let Kt=1;Kt<=jt;Kt++){let Ln=Wt(l[Kt]);const On=Ln.get("offset");Ln.set("offset",Ci((a+On*v)/ge)),G.push(Ln)}v=ge,a=0,F="",l=G}return Mi(this.element,l,this.preStyleProps,this.postStyleProps,v,a,F,!0)}}function Ci(f,l=3){const a=Math.pow(10,l-1);return Math.round(f*a)/a}class Or{}const Lo=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 Qi extends Or{normalizePropertyName(l,a){return hn(l)}normalizeStyleValue(l,a,v,F){let G="";const ge=v.toString().trim();if(Lo.has(a)&&0!==v&&"0"!==v)if("number"==typeof v)G="px";else{const Me=v.match(/^[+-]?[\d\.]+([a-z]*)$/);Me&&0==Me[1].length&&F.push(function Ne(f,l){return new c.vHH(3005,!1)}())}return ge+G}}function Pr(f,l,a,v,F,G,ge,Me,Qe,_t,jt,Kt,Ln){return{type:0,element:f,triggerName:l,isRemovalTransition:F,fromState:a,fromStyles:G,toState:v,toStyles:ge,timelines:Me,queriedElements:Qe,preStyleProps:_t,postStyleProps:jt,totalTime:Kt,errors:Ln}}const Xr={};class dr{constructor(l,a,v){this._triggerName=l,this.ast=a,this._stateStyles=v}match(l,a,v,F){return function Dr(f,l,a,v,F){return f.some(G=>G(l,a,v,F))}(this.ast.matchers,l,a,v,F)}buildStyles(l,a,v){let F=this._stateStyles.get("*");return void 0!==l&&(F=this._stateStyles.get(l?.toString())||F),F?F.buildStyles(a,v):new Map}build(l,a,v,F,G,ge,Me,Qe,_t,jt){const Kt=[],Ln=this.ast.options&&this.ast.options.params||Xr,_n=this.buildStyles(v,Me&&Me.params||Xr,Kt),E=Qe&&Qe.params||Xr,x=this.buildStyles(F,E,Kt),H=new Set,me=new Map,$e=new Map,Je="void"===F,Tt={params:co(E,Ln),delay:this.ast.options?.delay},Zt=jt?[]:Ir(l,a,this.ast.animation,G,ge,_n,x,Tt,_t,Kt);let qt=0;if(Zt.forEach(En=>{qt=Math.max(En.duration+En.delay,qt)}),Kt.length)return Pr(a,this._triggerName,v,F,Je,_n,x,[],[],me,$e,qt,Kt);Zt.forEach(En=>{const vn=En.element,Wr=sn(me,vn,new Set);En.preStyleProps.forEach(Eo=>Wr.add(Eo));const wi=sn($e,vn,new Set);En.postStyleProps.forEach(Eo=>wi.add(Eo)),vn!==a&&H.add(vn)});const on=yt(H.values());return Pr(a,this._triggerName,v,F,Je,_n,x,Zt,on,me,$e,qt)}}function co(f,l){const a=De(l);for(const v in f)f.hasOwnProperty(v)&&null!=f[v]&&(a[v]=f[v]);return a}class Lr{constructor(l,a,v){this.styles=l,this.defaultParams=a,this.normalizer=v}buildStyles(l,a){const v=new Map,F=De(this.defaultParams);return Object.keys(l).forEach(G=>{const ge=l[G];null!==ge&&(F[G]=ge)}),this.styles.styles.forEach(G=>{"string"!=typeof G&&G.forEach((ge,Me)=>{ge&&(ge=Be(ge,F,a));const Qe=this.normalizer.normalizePropertyName(Me,a);ge=this.normalizer.normalizeStyleValue(Me,Qe,ge,a),v.set(Me,ge)})}),v}}class Fr{constructor(l,a,v){this.name=l,this.ast=a,this._normalizer=v,this.transitionFactories=[],this.states=new Map,a.states.forEach(F=>{this.states.set(F.name,new Lr(F.style,F.options&&F.options.params||{},v))}),Pe(this.states,"true","1"),Pe(this.states,"false","0"),a.transitions.forEach(F=>{this.transitionFactories.push(new dr(l,F,this.states))}),this.fallbackTransition=function Oi(f,l,a){return new dr(f,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,Me)=>!0],options:null,queryCount:0,depCount:0},l)}(l,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(l,a,v,F){return this.transitionFactories.find(ge=>ge.match(l,a,v,F))||null}matchStyles(l,a,v){return this.fallbackTransition.buildStyles(l,a,v)}}function Pe(f,l,a){f.has(l)?f.has(a)||f.set(a,f.get(l)):f.has(a)&&f.set(l,f.get(a))}const Le=new Yi;class Ze{constructor(l,a,v){this.bodyNode=l,this._driver=a,this._normalizer=v,this._animations=new Map,this._playersById=new Map,this.players=[]}register(l,a){const v=[],G=di(this._driver,a,v,[]);if(v.length)throw function at(f){return new c.vHH(3503,!1)}();this._animations.set(l,G)}_buildPlayer(l,a,v){const F=l.element,G=Tn(0,this._normalizer,0,l.keyframes,a,v);return this._driver.animate(F,G,l.duration,l.delay,l.easing,[],!0)}create(l,a,v={}){const F=[],G=this._animations.get(l);let ge;const Me=new Map;if(G?(ge=Ir(this._driver,a,G,xn,Sn,new Map,new Map,v,Le,F),ge.forEach(jt=>{const Kt=sn(Me,jt.element,new Map);jt.postStyleProps.forEach(Ln=>Kt.set(Ln,null))})):(F.push(function mt(){return new c.vHH(3300,!1)}()),ge=[]),F.length)throw function Et(f){return new c.vHH(3504,!1)}();Me.forEach((jt,Kt)=>{jt.forEach((Ln,On)=>{jt.set(On,this._driver.computeStyle(Kt,On,J.l3))})});const _t=Jt(ge.map(jt=>{const Kt=Me.get(jt.element);return this._buildPlayer(jt,new Map,Kt)}));return this._playersById.set(l,_t),_t.onDestroy(()=>this.destroy(l)),this.players.push(_t),_t}destroy(l){const a=this._getPlayer(l);a.destroy(),this._playersById.delete(l);const v=this.players.indexOf(a);v>=0&&this.players.splice(v,1)}_getPlayer(l){const a=this._playersById.get(l);if(!a)throw function bt(f){return new c.vHH(3301,!1)}();return a}listen(l,a,v,F){const G=Pn(a,"","","");return In(this._getPlayer(l),v,G,F),()=>{}}command(l,a,v,F){if("register"==v)return void this.register(l,F[0]);if("create"==v)return void this.create(l,a,F[0]||{});const G=this._getPlayer(l);switch(v){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(F[0]));break;case"destroy":this.destroy(l)}}}const gt="ng-animate-queued",Gt="ng-animate-disabled",fi=[],Si={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},pi={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vi="__ng_removed";class wr{get params(){return this.options.params}constructor(l,a=""){this.namespaceId=a;const v=l&&l.hasOwnProperty("value");if(this.value=function Hn(f){return f??null}(v?l.value:l),v){const G=De(l);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}absorbOptions(l){const a=l.params;if(a){const v=this.options.params;Object.keys(a).forEach(F=>{null==v[F]&&(v[F]=a[F])})}}}const Li="void",yi=new wr(Li);class Ar{constructor(l,a,v){this.id=l,this.hostElement=a,this._engine=v,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+l,Vn(a,this._hostClassName)}listen(l,a,v,F){if(!this._triggers.has(a))throw function It(f,l){return new c.vHH(3302,!1)}();if(null==v||0==v.length)throw function Ce(f){return new c.vHH(3303,!1)}();if(!function Bi(f){return"start"==f||"done"==f}(v))throw function Xe(f,l){return new c.vHH(3400,!1)}();const G=sn(this._elementListeners,l,[]),ge={name:a,phase:v,callback:F};G.push(ge);const Me=sn(this._engine.statesByElement,l,new Map);return Me.has(a)||(Vn(l,Oe),Vn(l,Oe+"-"+a),Me.set(a,yi)),()=>{this._engine.afterFlush(()=>{const Qe=G.indexOf(ge);Qe>=0&&G.splice(Qe,1),this._triggers.has(a)||Me.delete(a)})}}register(l,a){return!this._triggers.has(l)&&(this._triggers.set(l,a),!0)}_getTrigger(l){const a=this._triggers.get(l);if(!a)throw function L(f){return new c.vHH(3401,!1)}();return a}trigger(l,a,v,F=!0){const G=this._getTrigger(a),ge=new hr(this.id,a,l);let Me=this._engine.statesByElement.get(l);Me||(Vn(l,Oe),Vn(l,Oe+"-"+a),this._engine.statesByElement.set(l,Me=new Map));let Qe=Me.get(a);const _t=new wr(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Qe&&_t.absorbOptions(Qe.options),Me.set(a,_t),Qe||(Qe=yi),_t.value!==Li&&Qe.value===_t.value){if(!function Ao(f,l){const a=Object.keys(f),v=Object.keys(l);if(a.length!=v.length)return!1;for(let F=0;F<a.length;F++){const G=a[F];if(!l.hasOwnProperty(G)||f[G]!==l[G])return!1}return!0}(Qe.params,_t.params)){const E=[],x=G.matchStyles(Qe.value,Qe.params,E),H=G.matchStyles(_t.value,_t.params,E);E.length?this._engine.reportError(E):this._engine.afterFlush(()=>{p(l,x),k(l,H)})}return}const Ln=sn(this._engine.playersByElement,l,[]);Ln.forEach(E=>{E.namespaceId==this.id&&E.triggerName==a&&E.queued&&E.destroy()});let On=G.matchTransition(Qe.value,_t.value,l,_t.params),_n=!1;if(!On){if(!F)return;On=G.fallbackTransition,_n=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:a,transition:On,fromState:Qe,toState:_t,player:ge,isFallbackTransition:_n}),_n||(Vn(l,gt),ge.onStart(()=>{pr(l,gt)})),ge.onDone(()=>{let E=this.players.indexOf(ge);E>=0&&this.players.splice(E,1);const x=this._engine.playersByElement.get(l);if(x){let H=x.indexOf(ge);H>=0&&x.splice(H,1)}}),this.players.push(ge),Ln.push(ge),ge}deregister(l){this._triggers.delete(l),this._engine.statesByElement.forEach(a=>a.delete(l)),this._elementListeners.forEach((a,v)=>{this._elementListeners.set(v,a.filter(F=>F.name!=l))})}clearElementCache(l){this._engine.statesByElement.delete(l),this._elementListeners.delete(l);const a=this._engine.playersByElement.get(l);a&&(a.forEach(v=>v.destroy()),this._engine.playersByElement.delete(l))}_signalRemovalForInnerTriggers(l,a){const v=this._engine.driver.query(l,te,!0);v.forEach(F=>{if(F[vi])return;const G=this._engine.fetchNamespacesByElement(F);G.size?G.forEach(ge=>ge.triggerLeaveAnimation(F,a,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(l,a,v,F){const G=this._engine.statesByElement.get(l),ge=new Map;if(G){const Me=[];if(G.forEach((Qe,_t)=>{if(ge.set(_t,Qe.value),this._triggers.has(_t)){const jt=this.trigger(l,_t,Li,F);jt&&Me.push(jt)}}),Me.length)return this._engine.markElementAsRemoved(this.id,l,!0,a,ge),v&&Jt(Me).onDone(()=>this._engine.processLeaveNode(l)),!0}return!1}prepareLeaveAnimationListeners(l){const a=this._elementListeners.get(l),v=this._engine.statesByElement.get(l);if(a&&v){const F=new Set;a.forEach(G=>{const ge=G.name;if(F.has(ge))return;F.add(ge);const Qe=this._triggers.get(ge).fallbackTransition,_t=v.get(ge)||yi,jt=new wr(Li),Kt=new hr(this.id,ge,l);this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:ge,transition:Qe,fromState:_t,toState:jt,player:Kt,isFallbackTransition:!0})})}}removeNode(l,a){const v=this._engine;if(l.childElementCount&&this._signalRemovalForInnerTriggers(l,a),this.triggerLeaveAnimation(l,a,!0))return;let F=!1;if(v.totalAnimations){const G=v.players.length?v.playersByQueriedElement.get(l):[];if(G&&G.length)F=!0;else{let ge=l;for(;ge=ge.parentNode;)if(v.statesByElement.get(ge)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(l),F)v.markElementAsRemoved(this.id,l,!1,a);else{const G=l[vi];(!G||G===Si)&&(v.afterFlush(()=>this.clearElementCache(l)),v.destroyInnerAnimations(l),v._onRemovalComplete(l,a))}}insertNode(l,a){Vn(l,this._hostClassName)}drainQueuedTransitions(l){const a=[];return this._queue.forEach(v=>{const F=v.player;if(F.destroyed)return;const G=v.element,ge=this._elementListeners.get(G);ge&&ge.forEach(Me=>{if(Me.name==v.triggerName){const Qe=Pn(G,v.triggerName,v.fromState.value,v.toState.value);Qe._data=l,In(v.player,Me.phase,Qe,Me.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):a.push(v)}),this._queue=[],a.sort((v,F)=>{const G=v.transition.ast.depCount,ge=F.transition.ast.depCount;return 0==G||0==ge?G-ge:this._engine.driver.containsElement(v.element,F.element)?1:-1})}destroy(l){this.players.forEach(a=>a.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,l)}elementContainsData(l){let a=!1;return this._elementListeners.has(l)&&(a=!0),a=!!this._queue.find(v=>v.element===l)||a,a}}class Br{_onRemovalComplete(l,a){this.onRemovalComplete(l,a)}constructor(l,a,v){this.bodyNode=l,this.driver=a,this._normalizer=v,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=(F,G)=>{}}get queuedPlayers(){const l=[];return this._namespaceList.forEach(a=>{a.players.forEach(v=>{v.queued&&l.push(v)})}),l}createNamespace(l,a){const v=new Ar(l,a,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,a)?this._balanceNamespaceList(v,a):(this.newHostElements.set(a,v),this.collectEnterElement(a)),this._namespaceLookup[l]=v}_balanceNamespaceList(l,a){const v=this._namespaceList,F=this.namespacesByHostElement;if(v.length-1>=0){let ge=!1,Me=this.driver.getParentElement(a);for(;Me;){const Qe=F.get(Me);if(Qe){const _t=v.indexOf(Qe);v.splice(_t+1,0,l),ge=!0;break}Me=this.driver.getParentElement(Me)}ge||v.unshift(l)}else v.push(l);return F.set(a,l),l}register(l,a){let v=this._namespaceLookup[l];return v||(v=this.createNamespace(l,a)),v}registerTrigger(l,a,v){let F=this._namespaceLookup[l];F&&F.register(a,v)&&this.totalAnimations++}destroy(l,a){if(!l)return;const v=this._fetchNamespace(l);this.afterFlush(()=>{this.namespacesByHostElement.delete(v.hostElement),delete this._namespaceLookup[l];const F=this._namespaceList.indexOf(v);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>v.destroy(a))}_fetchNamespace(l){return this._namespaceLookup[l]}fetchNamespacesByElement(l){const a=new Set,v=this.statesByElement.get(l);if(v)for(let F of v.values())if(F.namespaceId){const G=this._fetchNamespace(F.namespaceId);G&&a.add(G)}return a}trigger(l,a,v,F){if(Un(a)){const G=this._fetchNamespace(l);if(G)return G.trigger(a,v,F),!0}return!1}insertNode(l,a,v,F){if(!Un(a))return;const G=a[vi];if(G&&G.setForRemoval){G.setForRemoval=!1,G.setForMove=!0;const ge=this.collectedLeaveElements.indexOf(a);ge>=0&&this.collectedLeaveElements.splice(ge,1)}if(l){const ge=this._fetchNamespace(l);ge&&ge.insertNode(a,v)}F&&this.collectEnterElement(a)}collectEnterElement(l){this.collectedEnterElements.push(l)}markElementAsDisabled(l,a){a?this.disabledNodes.has(l)||(this.disabledNodes.add(l),Vn(l,Gt)):this.disabledNodes.has(l)&&(this.disabledNodes.delete(l),pr(l,Gt))}removeNode(l,a,v,F){if(Un(a)){const G=l?this._fetchNamespace(l):null;if(G?G.removeNode(a,F):this.markElementAsRemoved(l,a,!1,F),v){const ge=this.namespacesByHostElement.get(a);ge&&ge.id!==l&&ge.removeNode(a,F)}}else this._onRemovalComplete(a,F)}markElementAsRemoved(l,a,v,F,G){this.collectedLeaveElements.push(a),a[vi]={namespaceId:l,setForRemoval:F,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:G}}listen(l,a,v,F,G){return Un(a)?this._fetchNamespace(l).listen(a,v,F,G):()=>{}}_buildInstruction(l,a,v,F,G){return l.transition.build(this.driver,l.element,l.fromState.value,l.toState.value,v,F,l.fromState.options,l.toState.options,a,G)}destroyInnerAnimations(l){let a=this.driver.query(l,te,!0);a.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(a=this.driver.query(l,U,!0),a.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(l){const a=this.playersByElement.get(l);a&&a.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(l){const a=this.playersByQueriedElement.get(l);a&&a.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(l=>{if(this.players.length)return Jt(this.players).onDone(()=>l());l()})}processLeaveNode(l){const a=l[vi];if(a&&a.setForRemoval){if(l[vi]=Si,a.namespaceId){this.destroyInnerAnimations(l);const v=this._fetchNamespace(a.namespaceId);v&&v.clearElementCache(l)}this._onRemovalComplete(l,a.setForRemoval)}l.classList?.contains(Gt)&&this.markElementAsDisabled(l,!1),this.driver.query(l,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(l=-1){let a=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,F)=>this._balanceNamespaceList(v,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;v<this.collectedEnterElements.length;v++)Vn(this.collectedEnterElements[v],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const v=[];try{a=this._flushAnimations(v,l)}finally{for(let F=0;F<v.length;F++)v[F]()}}else for(let v=0;v<this.collectedLeaveElements.length;v++)this.processLeaveNode(this.collectedLeaveElements[v]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(v=>v()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],a.length?Jt(a).onDone(()=>{v.forEach(F=>F())}):v.forEach(F=>F())}}reportError(l){throw function ie(f){return new c.vHH(3402,!1)}()}_flushAnimations(l,a){const v=new Yi,F=[],G=new Map,ge=[],Me=new Map,Qe=new Map,_t=new Map,jt=new Set;this.disabledNodes.forEach(Xt=>{jt.add(Xt);const dn=this.driver.query(Xt,".ng-animate-queued",!0);for(let yn=0;yn<dn.length;yn++)jt.add(dn[yn])});const Kt=this.bodyNode,Ln=Array.from(this.statesByElement.keys()),On=fr(Ln,this.collectedEnterElements),_n=new Map;let E=0;On.forEach((Xt,dn)=>{const yn=xn+E++;_n.set(dn,yn),Xt.forEach(Jn=>Vn(Jn,yn))});const x=[],H=new Set,me=new Set;for(let Xt=0;Xt<this.collectedLeaveElements.length;Xt++){const dn=this.collectedLeaveElements[Xt],yn=dn[vi];yn&&yn.setForRemoval&&(x.push(dn),H.add(dn),yn.hasAnimation?this.driver.query(dn,".ng-star-inserted",!0).forEach(Jn=>H.add(Jn)):me.add(dn))}const $e=new Map,Je=fr(Ln,Array.from(H));Je.forEach((Xt,dn)=>{const yn=Sn+E++;$e.set(dn,yn),Xt.forEach(Jn=>Vn(Jn,yn))}),l.push(()=>{On.forEach((Xt,dn)=>{const yn=_n.get(dn);Xt.forEach(Jn=>pr(Jn,yn))}),Je.forEach((Xt,dn)=>{const yn=$e.get(dn);Xt.forEach(Jn=>pr(Jn,yn))}),x.forEach(Xt=>{this.processLeaveNode(Xt)})});const Tt=[],Zt=[];for(let Xt=this._namespaceList.length-1;Xt>=0;Xt--)this._namespaceList[Xt].drainQueuedTransitions(a).forEach(yn=>{const Jn=yn.player,lr=yn.element;if(Tt.push(Jn),this.collectedEnterElements.length){const cr=lr[vi];if(cr&&cr.setForMove){if(cr.previousTriggersValues&&cr.previousTriggersValues.has(yn.triggerName)){const Ks=cr.previousTriggersValues.get(yn.triggerName),ko=this.statesByElement.get(yn.element);if(ko&&ko.has(yn.triggerName)){const Zs=ko.get(yn.triggerName);Zs.value=Ks,ko.set(yn.triggerName,Zs)}}return void Jn.destroy()}}const Ro=!Kt||!this.driver.containsElement(Kt,lr),Do=$e.get(lr),rs=_n.get(lr),ki=this._buildInstruction(yn,v,rs,Do,Ro);if(ki.errors&&ki.errors.length)return void Zt.push(ki);if(Ro)return Jn.onStart(()=>p(lr,ki.fromStyles)),Jn.onDestroy(()=>k(lr,ki.toStyles)),void F.push(Jn);if(yn.isFallbackTransition)return Jn.onStart(()=>p(lr,ki.fromStyles)),Jn.onDestroy(()=>k(lr,ki.toStyles)),void F.push(Jn);const hl=[];ki.timelines.forEach(cr=>{cr.stretchStartingKeyframe=!0,this.disabledNodes.has(cr.element)||hl.push(cr)}),ki.timelines=hl,v.append(lr,ki.timelines),ge.push({instruction:ki,player:Jn,element:lr}),ki.queriedElements.forEach(cr=>sn(Me,cr,[]).push(Jn)),ki.preStyleProps.forEach((cr,Ks)=>{if(cr.size){let ko=Qe.get(Ks);ko||Qe.set(Ks,ko=new Set),cr.forEach((Zs,fl)=>ko.add(fl))}}),ki.postStyleProps.forEach((cr,Ks)=>{let ko=_t.get(Ks);ko||_t.set(Ks,ko=new Set),cr.forEach((Zs,fl)=>ko.add(fl))})});if(Zt.length){const Xt=[];Zt.forEach(dn=>{Xt.push(function ut(f,l){return new c.vHH(3505,!1)}())}),Tt.forEach(dn=>dn.destroy()),this.reportError(Xt)}const qt=new Map,on=new Map;ge.forEach(Xt=>{const dn=Xt.element;v.has(dn)&&(on.set(dn,dn),this._beforeAnimationBuild(Xt.player.namespaceId,Xt.instruction,qt))}),F.forEach(Xt=>{const dn=Xt.element;this._getPreviousPlayers(dn,!1,Xt.namespaceId,Xt.triggerName,null).forEach(Jn=>{sn(qt,dn,[]).push(Jn),Jn.destroy()})});const En=x.filter(Xt=>fo(Xt,Qe,_t)),vn=new Map;Ti(vn,this.driver,me,_t,J.l3).forEach(Xt=>{fo(Xt,Qe,_t)&&En.push(Xt)});const wi=new Map;On.forEach((Xt,dn)=>{Ti(wi,this.driver,new Set(Xt),Qe,J.k1)}),En.forEach(Xt=>{const dn=vn.get(Xt),yn=wi.get(Xt);vn.set(Xt,new Map([...Array.from(dn?.entries()??[]),...Array.from(yn?.entries()??[])]))});const Eo=[],ia=[],bs={};ge.forEach(Xt=>{const{element:dn,player:yn,instruction:Jn}=Xt;if(v.has(dn)){if(jt.has(dn))return yn.onDestroy(()=>k(dn,Jn.toStyles)),yn.disabled=!0,yn.overrideTotalTime(Jn.totalTime),void F.push(yn);let lr=bs;if(on.size>1){let Do=dn;const rs=[];for(;Do=Do.parentNode;){const ki=on.get(Do);if(ki){lr=ki;break}rs.push(Do)}rs.forEach(ki=>on.set(ki,lr))}const Ro=this._buildAnimation(yn.namespaceId,Jn,qt,G,wi,vn);if(yn.setRealPlayer(Ro),lr===bs)Eo.push(yn);else{const Do=this.playersByElement.get(lr);Do&&Do.length&&(yn.parentPlayer=Jt(Do)),F.push(yn)}}else p(dn,Jn.fromStyles),yn.onDestroy(()=>k(dn,Jn.toStyles)),ia.push(yn),jt.has(dn)&&F.push(yn)}),ia.forEach(Xt=>{const dn=G.get(Xt.element);if(dn&&dn.length){const yn=Jt(dn);Xt.setRealPlayer(yn)}}),F.forEach(Xt=>{Xt.parentPlayer?Xt.syncPlayerEvents(Xt.parentPlayer):Xt.destroy()});for(let Xt=0;Xt<x.length;Xt++){const dn=x[Xt],yn=dn[vi];if(pr(dn,Sn),yn&&yn.hasAnimation)continue;let Jn=[];if(Me.size){let Ro=Me.get(dn);Ro&&Ro.length&&Jn.push(...Ro);let Do=this.driver.query(dn,U,!0);for(let rs=0;rs<Do.length;rs++){let ki=Me.get(Do[rs]);ki&&ki.length&&Jn.push(...ki)}}const lr=Jn.filter(Ro=>!Ro.destroyed);lr.length?ho(this,dn,lr):this.processLeaveNode(dn)}return x.length=0,Eo.forEach(Xt=>{this.players.push(Xt),Xt.onDone(()=>{Xt.destroy();const dn=this.players.indexOf(Xt);this.players.splice(dn,1)}),Xt.play()}),Eo}elementContainsData(l,a){let v=!1;const F=a[vi];return F&&F.setForRemoval&&(v=!0),this.playersByElement.has(a)&&(v=!0),this.playersByQueriedElement.has(a)&&(v=!0),this.statesByElement.has(a)&&(v=!0),this._fetchNamespace(l).elementContainsData(a)||v}afterFlush(l){this._flushFns.push(l)}afterFlushAnimationsDone(l){this._whenQuietFns.push(l)}_getPreviousPlayers(l,a,v,F,G){let ge=[];if(a){const Me=this.playersByQueriedElement.get(l);Me&&(ge=Me)}else{const Me=this.playersByElement.get(l);if(Me){const Qe=!G||G==Li;Me.forEach(_t=>{_t.queued||!Qe&&_t.triggerName!=F||ge.push(_t)})}}return(v||F)&&(ge=ge.filter(Me=>!(v&&v!=Me.namespaceId||F&&F!=Me.triggerName))),ge}_beforeAnimationBuild(l,a,v){const G=a.element,ge=a.isRemovalTransition?void 0:l,Me=a.isRemovalTransition?void 0:a.triggerName;for(const Qe of a.timelines){const _t=Qe.element,jt=_t!==G,Kt=sn(v,_t,[]);this._getPreviousPlayers(_t,jt,ge,Me,a.toState).forEach(On=>{const _n=On.getRealPlayer();_n.beforeDestroy&&_n.beforeDestroy(),On.destroy(),Kt.push(On)})}p(G,a.fromStyles)}_buildAnimation(l,a,v,F,G,ge){const Me=a.triggerName,Qe=a.element,_t=[],jt=new Set,Kt=new Set,Ln=a.timelines.map(_n=>{const E=_n.element;jt.add(E);const x=E[vi];if(x&&x.removedBeforeQueried)return new J.ZN(_n.duration,_n.delay);const H=E!==Qe,me=function mr(f){const l=[];return mi(f,l),l}((v.get(E)||fi).map(qt=>qt.getRealPlayer())).filter(qt=>!!qt.element&&qt.element===E),$e=G.get(E),Je=ge.get(E),Tt=Tn(0,this._normalizer,0,_n.keyframes,$e,Je),Zt=this._buildPlayer(_n,Tt,me);if(_n.subTimeline&&F&&Kt.add(E),H){const qt=new hr(l,Me,E);qt.setRealPlayer(Zt),_t.push(qt)}return Zt});_t.forEach(_n=>{sn(this.playersByQueriedElement,_n.element,[]).push(_n),_n.onDone(()=>function ji(f,l,a){let v=f.get(l);if(v){if(v.length){const F=v.indexOf(a);v.splice(F,1)}0==v.length&&f.delete(l)}return v}(this.playersByQueriedElement,_n.element,_n))}),jt.forEach(_n=>Vn(_n,V));const On=Jt(Ln);return On.onDestroy(()=>{jt.forEach(_n=>pr(_n,V)),k(Qe,a.toStyles)}),Kt.forEach(_n=>{sn(F,_n,[]).push(On)}),On}_buildPlayer(l,a,v){return a.length>0?this.driver.animate(l.element,a,l.duration,l.delay,l.easing,v):new J.ZN(l.duration,l.delay)}}class hr{constructor(l,a,v){this.namespaceId=l,this.triggerName=a,this.element=v,this._player=new J.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(l){this._containsRealPlayer||(this._player=l,this._queuedCallbacks.forEach((a,v)=>{a.forEach(F=>In(l,v,void 0,F))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(l.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(l){this.totalTime=l}syncPlayerEvents(l){const a=this._player;a.triggerCallback&&l.onStart(()=>a.triggerCallback("start")),l.onDone(()=>this.finish()),l.onDestroy(()=>this.destroy())}_queueEvent(l,a){sn(this._queuedCallbacks,l,[]).push(a)}onDone(l){this.queued&&this._queueEvent("done",l),this._player.onDone(l)}onStart(l){this.queued&&this._queueEvent("start",l),this._player.onStart(l)}onDestroy(l){this.queued&&this._queueEvent("destroy",l),this._player.onDestroy(l)}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(l){this.queued||this._player.setPosition(l)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(l){const a=this._player;a.triggerCallback&&a.triggerCallback(l)}}function Un(f){return f&&1===f.nodeType}function ri(f,l){const a=f.style.display;return f.style.display=l??"none",a}function Ti(f,l,a,v,F){const G=[];a.forEach(Qe=>G.push(ri(Qe)));const ge=[];v.forEach((Qe,_t)=>{const jt=new Map;Qe.forEach(Kt=>{const Ln=l.computeStyle(_t,Kt,F);jt.set(Kt,Ln),(!Ln||0==Ln.length)&&(_t[vi]=pi,ge.push(_t))}),f.set(_t,jt)});let Me=0;return a.forEach(Qe=>ri(Qe,G[Me++])),ge}function fr(f,l){const a=new Map;if(f.forEach(Me=>a.set(Me,[])),0==l.length)return a;const F=new Set(l),G=new Map;function ge(Me){if(!Me)return 1;let Qe=G.get(Me);if(Qe)return Qe;const _t=Me.parentNode;return Qe=a.has(_t)?_t:F.has(_t)?1:ge(_t),G.set(Me,Qe),Qe}return l.forEach(Me=>{const Qe=ge(Me);1!==Qe&&a.get(Qe).push(Me)}),a}function Vn(f,l){f.classList?.add(l)}function pr(f,l){f.classList?.remove(l)}function ho(f,l,a){Jt(a).onDone(()=>f.processLeaveNode(l))}function mi(f,l){for(let a=0;a<f.length;a++){const v=f[a];v instanceof J.ZE?mi(v.players,l):l.push(v)}}function fo(f,l,a){const v=a.get(f);if(!v)return!1;let F=l.get(f);return F?v.forEach(G=>F.add(G)):l.set(f,v),a.delete(f),!0}class Mr{constructor(l,a,v){this.bodyNode=l,this._driver=a,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(F,G)=>{},this._transitionEngine=new Br(l,a,v),this._timelineEngine=new Ze(l,a,v),this._transitionEngine.onRemovalComplete=(F,G)=>this.onRemovalComplete(F,G)}registerTrigger(l,a,v,F,G){const ge=l+"-"+F;let Me=this._triggerCache[ge];if(!Me){const Qe=[],jt=di(this._driver,G,Qe,[]);if(Qe.length)throw function We(f,l){return new c.vHH(3404,!1)}();Me=function uo(f,l,a){return new Fr(f,l,a)}(F,jt,this._normalizer),this._triggerCache[ge]=Me}this._transitionEngine.registerTrigger(a,F,Me)}register(l,a){this._transitionEngine.register(l,a)}destroy(l,a){this._transitionEngine.destroy(l,a)}onInsert(l,a,v,F){this._transitionEngine.insertNode(l,a,v,F)}onRemove(l,a,v,F){this._transitionEngine.removeNode(l,a,F||!1,v)}disableAnimations(l,a){this._transitionEngine.markElementAsDisabled(l,a)}process(l,a,v,F){if("@"==v.charAt(0)){const[G,ge]=tt(v);this._timelineEngine.command(G,a,ge,F)}else this._transitionEngine.trigger(l,a,v,F)}listen(l,a,v,F,G){if("@"==v.charAt(0)){const[ge,Me]=tt(v);return this._timelineEngine.listen(ge,a,Me,G)}return this._transitionEngine.listen(l,a,v,F,G)}flush(l=-1){this._transitionEngine.flush(l)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let po=(()=>{class f{constructor(a,v,F){this._element=a,this._startStyles=v,this._endStyles=F,this._state=0;let G=f.initialStylesByElement.get(a);G||f.initialStylesByElement.set(a,G=new Map),this._initialStyles=G}start(){this._state<1&&(this._startStyles&&k(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(k(this._element,this._initialStyles),this._endStyles&&(k(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(f.initialStylesByElement.delete(this._element),this._startStyles&&(p(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(p(this._element,this._endStyles),this._endStyles=null),k(this._element,this._initialStyles),this._state=3)}}return f.initialStylesByElement=new WeakMap,f})();function Rr(f){let l=null;return f.forEach((a,v)=>{(function gn(f){return"display"===f||"position"===f})(v)&&(l=l||new Map,l.set(v,a))}),l}class Sr{constructor(l,a,v,F){this.element=l,this.keyframes=a,this.options=v,this._specialStyles=F,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=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const l=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,l,this.options),this._finalKeyframe=l.length?l[l.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(l){const a=[];return l.forEach(v=>{a.push(Object.fromEntries(v))}),a}_triggerWebAnimation(l,a,v){return l.animate(this._convertKeyframesToObject(a),v)}onStart(l){this._originalOnStartFns.push(l),this._onStartFns.push(l)}onDone(l){this._originalOnDoneFns.push(l),this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(l=>l()),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(l=>l()),this._onDestroyFns=[])}setPosition(l){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=l*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const l=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,F)=>{"offset"!==F&&l.set(F,this._finished?v:ft(this.element,F))}),this.currentSnapshot=l}triggerCallback(l){const a="start"===l?this._onStartFns:this._onDoneFns;a.forEach(v=>v()),a.length=0}}class Ss{validateStyleProperty(l){return!0}validateAnimatableStyleProperty(l){return!0}matchesElement(l,a){return!1}containsElement(l,a){return fe(l,a)}getParentElement(l){return nt(l)}query(l,a,v){return Ye(l,a,v)}computeStyle(l,a,v){return window.getComputedStyle(l)[a]}animate(l,a,v,F,G,ge=[]){const Qe={duration:v,delay:F,fill:0==F?"both":"forwards"};G&&(Qe.easing=G);const _t=new Map,jt=ge.filter(On=>On instanceof Sr);(function ht(f,l){return 0===f||0===l})(v,F)&&jt.forEach(On=>{On.currentSnapshot.forEach((_n,E)=>_t.set(E,_n))});let Kt=function Ie(f){return f.length?f[0]instanceof Map?f:f.map(l=>qe(l)):[]}(a).map(On=>Wt(On));Kt=function Ot(f,l,a){if(a.size&&l.length){let v=l[0],F=[];if(a.forEach((G,ge)=>{v.has(ge)||F.push(ge),v.set(ge,G)}),F.length)for(let G=1;G<l.length;G++){let ge=l[G];F.forEach(Me=>ge.set(Me,ft(f,Me)))}}return l}(l,Kt,_t);const Ln=function $i(f,l){let a=null,v=null;return Array.isArray(l)&&l.length?(a=Rr(l[0]),l.length>1&&(v=Rr(l[l.length-1]))):l instanceof Map&&(a=Rr(l)),a||v?new po(f,a,v):null}(l,Kt);return new Sr(l,Kt,Qe,Ln)}}let Vo=(()=>{class f extends J._j{constructor(a,v){super(),this._nextAnimationId=0,this._renderer=a.createRenderer(v.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(a){const v=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(a)?(0,J.vP)(a):a;return Ho(this._renderer,null,v,"register",[F]),new cs(v,this._renderer)}}return f.\u0275fac=function(a){return new(a||f)(c.LFG(c.FYo),c.LFG(X.K0))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();class cs extends J.LC{constructor(l,a){super(),this._id=l,this._renderer=a}create(l,a){return new Uo(this._id,l,a||{},this._renderer)}}class Uo{constructor(l,a,v,F){this.id=l,this.element=a,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",v)}_listen(l,a){return this._renderer.listen(this.element,`@@${this.id}:${l}`,a)}_command(l,...a){return Ho(this._renderer,this.element,this.id,l,a)}onDone(l){this._listen("done",l)}onStart(l){this._listen("start",l)}onDestroy(l){this._listen("destroy",l)}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(l){this._command("setPosition",l)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Ho(f,l,a,v,F){return f.setProperty(l,`@@${a}:${v}`,F)}const Qo="@.disabled";let D=(()=>{class f{constructor(a,v,F){this.delegate=a,this.engine=v,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),v.onRemovalComplete=(G,ge)=>{const Me=ge?.parentNode(G);Me&&ge.removeChild(Me,G)}}createRenderer(a,v){const G=this.delegate.createRenderer(a,v);if(!(a&&v&&v.data&&v.data.animation)){let jt=this._rendererCache.get(G);return jt||(jt=new M("",G,this.engine,()=>this._rendererCache.delete(G)),this._rendererCache.set(G,jt)),jt}const ge=v.id,Me=v.id+"-"+this._currentId;this._currentId++,this.engine.register(Me,a);const Qe=jt=>{Array.isArray(jt)?jt.forEach(Qe):this.engine.registerTrigger(ge,Me,a,jt.name,jt)};return v.data.animation.forEach(Qe),new S(this,Me,G,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(a,v,F){a>=0&&a<this._microtaskId?this._zone.run(()=>v(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(G=>{const[ge,Me]=G;ge(Me)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([v,F]))}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 f.\u0275fac=function(a){return new(a||f)(c.LFG(c.FYo),c.LFG(Mr),c.LFG(c.R0b))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();class M{constructor(l,a,v,F){this.namespaceId=l,this.delegate=a,this.engine=v,this._onDestroy=F,this.destroyNode=this.delegate.destroyNode?G=>a.destroyNode(G):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(l,a){return this.delegate.createElement(l,a)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}appendChild(l,a){this.delegate.appendChild(l,a),this.engine.onInsert(this.namespaceId,a,l,!1)}insertBefore(l,a,v,F=!0){this.delegate.insertBefore(l,a,v),this.engine.onInsert(this.namespaceId,a,l,F)}removeChild(l,a,v){this.engine.onRemove(this.namespaceId,a,this.delegate,v)}selectRootElement(l,a){return this.delegate.selectRootElement(l,a)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,a,v,F){this.delegate.setAttribute(l,a,v,F)}removeAttribute(l,a,v){this.delegate.removeAttribute(l,a,v)}addClass(l,a){this.delegate.addClass(l,a)}removeClass(l,a){this.delegate.removeClass(l,a)}setStyle(l,a,v,F){this.delegate.setStyle(l,a,v,F)}removeStyle(l,a,v){this.delegate.removeStyle(l,a,v)}setProperty(l,a,v){"@"==a.charAt(0)&&a==Qo?this.disableAnimations(l,!!v):this.delegate.setProperty(l,a,v)}setValue(l,a){this.delegate.setValue(l,a)}listen(l,a,v){return this.delegate.listen(l,a,v)}disableAnimations(l,a){this.engine.disableAnimations(l,a)}}class S extends M{constructor(l,a,v,F,G){super(a,v,F,G),this.factory=l,this.namespaceId=a}setProperty(l,a,v){"@"==a.charAt(0)?"."==a.charAt(1)&&a==Qo?this.disableAnimations(l,v=void 0===v||!!v):this.engine.process(this.namespaceId,l,a.slice(1),v):this.delegate.setProperty(l,a,v)}listen(l,a,v){if("@"==a.charAt(0)){const F=function Z(f){switch(f){case"body":return document.body;case"document":return document;case"window":return window;default:return f}}(l);let G=a.slice(1),ge="";return"@"!=G.charAt(0)&&([G,ge]=function ot(f){const l=f.indexOf(".");return[f.substring(0,l),f.slice(l+1)]}(G)),this.engine.listen(this.namespaceId,F,G,ge,Me=>{this.factory.scheduleListenerCallback(Me._data||-1,v,Me)})}return this.delegate.listen(l,a,v)}}const Xi=[{provide:J._j,useClass:Vo},{provide:Or,useFactory:function Yn(){return new Qi}},{provide:Mr,useClass:(()=>{class f extends Mr{constructor(a,v,F,G){super(a.body,v,F)}ngOnDestroy(){this.flush()}}return f.\u0275fac=function(a){return new(a||f)(c.LFG(X.K0),c.LFG(an),c.LFG(Or),c.LFG(c.z2F))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})()},{provide:c.FYo,useFactory:function oi(f,l,a){return new D(f,l,a)},deps:[r.se,Mr,c.R0b]}],gr=[{provide:an,useFactory:()=>new Ss},{provide:c.QbO,useValue:"BrowserAnimations"},...Xi],Vr=[{provide:an,useClass:Ft},{provide:c.QbO,useValue:"NoopAnimations"},...Xi];let go=(()=>{class f{static withConfig(a){return{ngModule:f,providers:a.disableAnimations?Vr:gr}}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275mod=c.oAB({type:f}),f.\u0275inj=c.cJS({providers:gr,imports:[r.b2]}),f})();var zi=g(3893),_r=g(7579),vr=g(2722),So=g(6985),Jr=g(5412),Ts=g(4405);class To{constructor(l){this.dialogRef=l,this.config=new So.O,this.config.title="There is a new update available",this.config.hideMoreButton=!0}onOk(){document.location.reload()}}To.\u0275fac=function(l){return new(l||To)(c.Y36(Jr.so))},To.\u0275cmp=c.Xpm({type:To,selectors:[["app-modal-confirm-update"]],decls:5,vars:1,consts:[[3,"config","onOk","onCancel"],[1,"row","p-3"]],template:function(l,a){1&l&&(c.TgZ(0,"modal-material",0),c.NdJ("onOk",function(){return a.onOk()})("onCancel",function(){return a.dialogRef.close()}),c.TgZ(1,"content")(2,"div",1)(3,"h2"),c._uU(4,"Do you want to refresh your current app?"),c.qZA()()()()),2&l&&c.Q6J("config",a.config)},dependencies:[Ts.M]});var Xo=g(5083),Ur=g(9770),us=g(2843),xo=g(4968),qr=g(9646),jo=g(7272),_o=g(9751),vo=g(5032);const Hr=new _o.y(vo.Z);var Io=g(6451),eo=g(4004),to=g(9300),jr=g(3900),Fi=g(4033),$r=g(576),si=g(8421),xs=g(4482);const Ri={connector:()=>new _r.x};function ds(f,l=Ri){const{connector:a}=l;return(0,xs.e)((v,F)=>{const G=a();(0,si.Xf)(f(function Is(f){return new _o.y(l=>f.subscribe(l))}(G))).subscribe(F),F.add(v.subscribe(G))})}var zr=g(5698),no=g(8505),b=g(1005);const N="Service workers are disabled or not supported by this browser";class z{constructor(l){if(this.serviceWorker=l,l){const v=(0,xo.R)(l,"controllerchange").pipe((0,eo.U)(()=>l.controller)),F=(0,Ur.P)(()=>(0,qr.of)(l.controller)),G=(0,jo.z)(F,v);this.worker=G.pipe((0,to.h)(jt=>!!jt)),this.registration=this.worker.pipe((0,jr.w)(()=>l.getRegistration()));const _t=(0,xo.R)(l,"message").pipe((0,eo.U)(jt=>jt.data)).pipe((0,to.h)(jt=>jt&&jt.type)).pipe(function Os(f){return f?l=>ds(f)(l):l=>function Hs(f,l){const a=(0,$r.m)(f)?f:()=>f;return(0,$r.m)(l)?ds(l,{connector:a}):v=>new Fi.c(v,a)}(new _r.x)(l)}());_t.connect(),this.events=_t}else this.worker=this.events=this.registration=function T(f){return(0,Ur.P)(()=>(0,us._)(new Error(f)))}(N)}postMessage(l,a){return this.worker.pipe((0,zr.q)(1),(0,no.b)(v=>{v.postMessage({action:l,...a})})).toPromise().then(()=>{})}postMessageWithOperation(l,a,v){const F=this.waitForOperationCompleted(v),G=this.postMessage(l,a);return Promise.all([G,F]).then(([,ge])=>ge)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(l){let a;return a="string"==typeof l?v=>v.type===l:v=>l.includes(v.type),this.events.pipe((0,to.h)(a))}nextEventOfType(l){return this.eventsOfType(l).pipe((0,zr.q)(1))}waitForOperationCompleted(l){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,to.h)(a=>a.nonce===l),(0,zr.q)(1),(0,eo.U)(a=>{if(void 0!==a.result)return a.result;throw new Error(a.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let _e=(()=>{class f{get isEnabled(){return this.sw.isEnabled}constructor(a){if(this.sw=a,this.pushManager=null,this.subscriptionChanges=new _r.x,!a.isEnabled)return this.messages=Hr,this.notificationClicks=Hr,void(this.subscription=Hr);this.messages=this.sw.eventsOfType("PUSH").pipe((0,eo.U)(F=>F.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,eo.U)(F=>F.data)),this.pushManager=this.sw.registration.pipe((0,eo.U)(F=>F.pushManager));const v=this.pushManager.pipe((0,jr.w)(F=>F.getSubscription()));this.subscription=(0,Io.T)(v,this.subscriptionChanges)}requestSubscription(a){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(N));const v={userVisibleOnly:!0};let F=this.decodeBase64(a.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),G=new Uint8Array(new ArrayBuffer(F.length));for(let ge=0;ge<F.length;ge++)G[ge]=F.charCodeAt(ge);return v.applicationServerKey=G,this.pushManager.pipe((0,jr.w)(ge=>ge.subscribe(v)),(0,zr.q)(1)).toPromise().then(ge=>(this.subscriptionChanges.next(ge),ge))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,zr.q)(1),(0,jr.w)(v=>{if(null===v)throw new Error("Not subscribed to push notifications.");return v.unsubscribe().then(F=>{if(!F)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(N))}decodeBase64(a){return atob(a)}}return f.\u0275fac=function(a){return new(a||f)(c.LFG(z))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})(),st=(()=>{class f{get isEnabled(){return this.sw.isEnabled}constructor(a){if(this.sw=a,!a.isEnabled)return this.versionUpdates=Hr,this.available=Hr,this.activated=Hr,void(this.unrecoverable=Hr);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,to.h)(v=>"VERSION_READY"===v.type),(0,eo.U)(v=>({type:"UPDATE_AVAILABLE",current:v.currentVersion,available:v.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(N));const a=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:a},a)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(N));const a=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:a},a)}}return f.\u0275fac=function(a){return new(a||f)(c.LFG(z))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();class pt{}const nn=new c.OlP("NGSW_REGISTER_SCRIPT");function jn(f,l,a,v){return()=>{if(!(0,X.NF)(v)||!("serviceWorker"in navigator)||!1===a.enabled)return;let F;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof a.registrationStrategy)F=a.registrationStrategy();else{const[ge,...Me]=(a.registrationStrategy||"registerWhenStable:30000").split(":");switch(ge){case"registerImmediately":F=(0,qr.of)(null);break;case"registerWithDelay":F=Gn(+Me[0]||0);break;case"registerWhenStable":F=Me[0]?(0,Io.T)($n(f),Gn(+Me[0])):$n(f);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${a.registrationStrategy}`)}}f.get(c.R0b).runOutsideAngular(()=>F.pipe((0,zr.q)(1)).subscribe(()=>navigator.serviceWorker.register(l,{scope:a.scope}).catch(ge=>console.error("Service worker registration failed with:",ge))))}}function Gn(f){return(0,qr.of)(null).pipe((0,b.g)(f))}function $n(f){return f.get(c.z2F).isStable.pipe((0,to.h)(a=>a))}function kn(f,l){return new z((0,X.NF)(l)&&!1!==f.enabled?navigator.serviceWorker:void 0)}let Di=(()=>{class f{static register(a,v={}){return{ngModule:f,providers:[{provide:nn,useValue:a},{provide:pt,useValue:v},{provide:z,useFactory:kn,deps:[pt,c.Lbi]},{provide:c.ip1,useFactory:jn,deps:[c.zs3,nn,pt,c.Lbi],multi:!0}]}}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275mod=c.oAB({type:f}),f.\u0275inj=c.cJS({providers:[_e,st]}),f})();var Kn=g(4707);function ai(f,l){return(a,v)=>!f.call(l,a,v)}var Ji=g(2805),Gi=g(8746),qi=g(5403);function kr(f){return(0,xs.e)((l,a)=>{let v=!1,F=null,G=null;const ge=()=>{if(G?.unsubscribe(),G=null,v){v=!1;const Me=F;F=null,a.next(Me)}};l.subscribe((0,qi.x)(a,Me=>{G?.unsubscribe(),v=!0,F=Me,G=(0,qi.x)(a,ge,vo.Z),(0,si.Xf)(f(Me)).subscribe(G)},()=>{ge(),a.complete()},void 0,()=>{F=G=null}))})}var io=g(1884),yo=g(529);function hs(f,l){1&f&&c.GkF(0)}function Jo(f,l){if(1&f&&c._UZ(0,"sk-cube-grid",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function fs(f,l){if(1&f&&c._UZ(0,"sk-chasing-dots",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function js(f,l){if(1&f&&c._UZ(0,"sk-double-bounce",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function $s(f,l){if(1&f&&c._UZ(0,"sk-rotating-plane",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function Oo(f,l){if(1&f&&c._UZ(0,"sk-spinner-pulse",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function qs(f,l){if(1&f&&c._UZ(0,"sk-three-bounce",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function Tr(f,l){if(1&f&&c._UZ(0,"sk-wandering-cubes",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function zs(f,l){if(1&f&&c._UZ(0,"sk-wave",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}const $o=function(f){return{"background-color":f}};function qo(f,l){if(1&f&&(c.TgZ(0,"div",1),c.YNc(1,hs,1,0,"ng-container",2),c.YNc(2,Jo,1,1,"sk-cube-grid",3),c.YNc(3,fs,1,1,"sk-chasing-dots",3),c.YNc(4,js,1,1,"sk-double-bounce",3),c.YNc(5,$s,1,1,"sk-rotating-plane",3),c.YNc(6,Oo,1,1,"sk-spinner-pulse",3),c.YNc(7,qs,1,1,"sk-three-bounce",3),c.YNc(8,Tr,1,1,"sk-wandering-cubes",3),c.YNc(9,zs,1,1,"sk-wave",3),c.qZA()),2&f){const a=c.oxw();c.Udp("opacity",a.opacity),c.ekj("backdrop",a.backdrop),c.Q6J("ngStyle",c.VKq(14,$o,a.backdrop?a.backdropBackgroundColor:"transparent")),c.xp6(1),c.Q6J("ngComponentOutlet",a.entryComponent),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skCubeGrid),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skChasingDots),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skDoubleBounce),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skRotatingPlane),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skSpinnerPulse),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skThreeBounce),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skWanderingCubes),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skWave)}}let Gr=(()=>{class f{}return f.\u0275fac=function(a){return new(a||f)},f.\u0275dir=c.lG2({type:f,inputs:{backgroundColor:"backgroundColor"}}),f})(),es=(()=>{class f extends Gr{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-chasing-dots"]],features:[c.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(a,v){1&a&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.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)}}"]}),f})(),Vi=(()=>{class f extends Gr{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-cube-grid"]],features:[c.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(a,v){1&a&&(c.TgZ(0,"div",0),c._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),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.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)}}"]}),f})(),ps=(()=>{class f extends Gr{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-double-bounce"]],features:[c.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(a,v){1&a&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.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)}}"]}),f})(),ts=(()=>{class f extends Gr{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-rotating-plane"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(a,v){1&a&&c._UZ(0,"div",0),2&a&&c.Udp("background-color",v.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)}}"]}),f})(),ns=(()=>{class f extends Gr{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-spinner-pulse"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(a,v){1&a&&c._UZ(0,"div",0),2&a&&c.Udp("background-color",v.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}}"]}),f})(),Ps=(()=>{class f extends Gr{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-three-bounce"]],features:[c.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(a,v){1&a&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2)(3,"div",3),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.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)}}"]}),f})(),xr=(()=>{class f extends Gr{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-wandering-cubes"]],features:[c.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(a,v){1&a&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.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)}}"]}),f})(),Gs=(()=>{class f extends Gr{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-wave"]],features:[c.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(a,v){1&a&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.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)}}"]}),f})();const is={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 zo=(()=>{class f{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new Kn.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(a){this._filteredMethods=a}set filteredHeaders(a){this._filteredHeaders=a}set forceByPass(a){this._forceByPass=a}shouldBypassUrl(a){return this._filteredUrlPatterns.some(v=>v.test(a))}shouldBypassMethod(a){return this._filteredMethods.some(v=>v.toUpperCase()===a.method.toUpperCase())}shouldBypassHeader(a){return this._filteredHeaders.some(v=>a.headers.has(v))}shouldBypass(a){return this._forceByPass||this.shouldBypassUrl(a.urlWithParams)||this.shouldBypassMethod(a)||this.shouldBypassHeader(a)}intercept(a,v){const F=this.shouldBypass(a);return F||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),v.handle(a).pipe((0,Gi.x)(()=>{F||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const ms=[{provide:yo.TP,useExisting:zo,multi:!0}];let er=(()=>{class f{constructor(a){this.pendingRequestsInterceptor=a,this._visibility$=new Kn.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 f.\u0275fac=function(a){return new(a||f)(c.LFG(zo))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),Po=(()=>{class f{constructor(a,v){this.pendingRequestsInterceptor=a,this.spinnerVisibility=v,this.spinkit=is,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=is.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[a,v]=function ar(f,l,a){return[(0,to.h)(l,a)((0,si.Xf)(f)),(0,to.h)(ai(l,a))((0,si.Xf)(f))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,F=>F);this.isVisible$=(0,Io.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,jr.w)(()=>a.pipe(kr(()=>(0,Ji.H)(this.debounceDelay))))),a.pipe((0,jr.w)(()=>v.pipe(kr(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,io.x)(),(0,no.b)(F=>this.updateExpirationDelay(F)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(a=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(a)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(a){a&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,Ji.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return f.\u0275fac=function(a){return new(a||f)(c.Y36(zo),c.Y36(er))},f.\u0275cmp=c.Xpm({type:f,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(a,v){1&a&&(c.YNc(0,qo,10,16,"div",0),c.ALo(1,"async")),2&a&&c.Q6J("ngIf",c.lcZ(1,1,v.isVisible$))},dependencies:[X.$G,X.O5,X.PC,Vi,es,ps,ts,ns,Ps,xr,Gs,X.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}"]}),f})(),ea=(()=>{class f{static forRoot(){return{ngModule:f,providers:[ms]}}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275mod=c.oAB({type:f}),f.\u0275inj=c.cJS({imports:[X.ez]}),f})();class yr{constructor(l,a,v,F,G){this.route=l,this.activateRoute=a,this.queryParamService=v,this.matDialog=G,this.destroy$=new _r.x,F.versionUpdates.subscribe(ge=>{F.activateUpdate().then(()=>this.updateApp(ge))})}updateApp(l){"VERSION_READY"==l.type&&this.matDialog.open(To,{disableClose:!0})}ngOnInit(){this.getLastRouteEvent()}getLastRouteEvent(){this.route.events.pipe((0,vr.R)(this.destroy$)).subscribe(l=>{l instanceof zi.m2&&this.getParam()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}getParam(){this.activateRoute.queryParamMap.pipe((0,vr.R)(this.destroy$)).subscribe(l=>{if(l){let a=l.get("ID"),v=l.get("Number"),F=l.get("Outlet");this.queryParamService.setState({ID:a,billNumber:v,outletName:F})}})}}yr.\u0275fac=function(l){return new(l||yr)(c.Y36(zi.F0),c.Y36(zi.gz),c.Y36(Xo.U),c.Y36(st),c.Y36(Jr.uw))},yr.\u0275cmp=c.Xpm({type:yr,selectors:[["app-root"]],decls:2,vars:0,template:function(l,a){1&l&&c._UZ(0,"ng-http-loader")(1,"router-outlet")},dependencies:[zi.lC,Po]});var Go=g(3389);class Wo{constructor(l,a){this._authService=l,this._router=a}canActivate(l,a){return!!this._authService.isAuthentication()||(this._router.navigate([""]),!1)}}function Fs(f){this.message=f}Wo.\u0275fac=function(l){return new(l||Wo)(c.LFG(Go.$),c.LFG(zi.F0))},Wo.\u0275prov=c.Yz7({token:Wo,factory:Wo.\u0275fac}),(Fs.prototype=new Error).name="InvalidCharacterError";var Rs=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(f){var l=String(f).replace(/=+$/,"");if(l.length%4==1)throw new Fs("'atob' failed: The string to be decoded is not correctly encoded.");for(var a,v,F=0,G=0,ge="";v=l.charAt(G++);~v&&(a=F%4?64*a+v:v,F++%4)?ge+=String.fromCharCode(255&a>>(-2*F&6)):0)v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(v);return ge};function so(f){this.message=f}(so.prototype=new Error).name="InvalidTokenError";const Ws=function Fo(f,l){if("string"!=typeof f)throw new so("Invalid token specified");var a=!0===(l=l||{}).header?0:1;try{return JSON.parse(function oo(f){var l=f.replace(/-/g,"+").replace(/_/g,"/");switch(l.length%4){case 0:break;case 2:l+="==";break;case 3:l+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(Rs(l).replace(/(.)/g,function(v,F){var G=F.charCodeAt(0).toString(16).toUpperCase();return G.length<2&&(G="0"+G),"%"+G}))}catch{return Rs(l)}}(f.split(".")[a]))}catch(v){throw new so("Invalid token specified: "+v.message)}};var Ys=g(8412);var ta=g(1104),gs=g(7185);const li=["domainAutoFocus"],ma=["passAutoFocus"];function _s(f,l){if(1&f){const a=c.EpF();c.ynx(0),c.TgZ(1,"div",21)(2,"div",22)(3,"form")(4,"div",23)(5,"h2",24),c._uU(6,"Sign in"),c.qZA(),c.TgZ(7,"div",25)(8,"div",26)(9,"div",27)(10,"span",28),c._UZ(11,"i",29),c.qZA(),c.TgZ(12,"input",30,31),c.NdJ("ngModelChange",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.subdomain=F)}),c.qZA()()(),c.TgZ(14,"select",32),c.NdJ("ngModelChange",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.domain=F)}),c.TgZ(15,"option",33),c._uU(16,".dealpos.co.id"),c.qZA(),c.TgZ(17,"option",34),c._uU(18,".dealpos.net"),c.qZA(),c.TgZ(19,"option",35),c._uU(20,".dealpos.com"),c.qZA()()()(),c.TgZ(21,"div",36)(22,"button",37),c.NdJ("click",function(){c.CHM(a);const F=c.oxw();return c.KtG(F.onNextState())}),c._uU(23," Next "),c.qZA()()()()(),c.BQk()}if(2&f){const a=c.oxw();c.xp6(12),c.Q6J("ngModel",a.subdomain),c.xp6(2),c.Q6J("ngModel",a.domain)}}function $a(f,l){1&f&&(c.TgZ(0,"p"),c._uU(1," Username is required "),c.qZA())}function na(f,l){if(1&f&&(c.TgZ(0,"div",61),c.YNc(1,$a,2,0,"p",62),c.qZA()),2&f){c.oxw();const a=c.MAs(13);c.xp6(1),c.Q6J("ngIf",a.errors.required)}}const ga=function(f,l){return{"fa-eye":f,"fa-eye-slash":l}};function _a(f,l){if(1&f){const a=c.EpF();c.TgZ(0,"i",63),c.NdJ("click",function(){c.CHM(a);const F=c.oxw(2);return c.KtG(F.hideShowPassword())}),c.qZA()}if(2&f){const a=c.oxw(2);c.Q6J("ngClass",c.WLB(1,ga,"eye-off"==a.passwordIcon,"eye"==a.passwordIcon))}}function va(f,l){1&f&&(c.TgZ(0,"p"),c._uU(1," Password is required "),c.qZA())}function vs(f,l){if(1&f&&(c.TgZ(0,"div",61),c.YNc(1,va,2,0,"p",62),c.qZA()),2&f){c.oxw();const a=c.MAs(19);c.xp6(1),c.Q6J("ngIf",a.errors.required)}}function ya(f,l){if(1&f){const a=c.EpF();c.TgZ(0,"div",21)(1,"div",22)(2,"div",38)(3,"h2",24),c._uU(4,"Sign in"),c.qZA(),c.TgZ(5,"div",39),c._uU(6," to "),c.TgZ(7,"h6",40),c._uU(8),c.qZA(),c.TgZ(9,"i",41),c.NdJ("click",function(){c.CHM(a);const F=c.oxw();return c.KtG(F.onEditDomain())}),c.qZA()()(),c.TgZ(10,"form",42)(11,"div",43)(12,"input",44,45),c.NdJ("ngModelChange",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.username=F)}),c.qZA(),c.TgZ(14,"label",46),c._uU(15,"Username"),c.qZA(),c.YNc(16,na,2,1,"div",47),c.qZA(),c.TgZ(17,"div",48)(18,"input",49,50),c.NdJ("ngModelChange",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.password=F)}),c.qZA(),c.TgZ(20,"label",51),c._uU(21,"Password"),c.qZA(),c.YNc(22,_a,1,4,"i",52),c.YNc(23,vs,2,1,"div",47),c.qZA(),c.TgZ(24,"div",53)(25,"a",54),c._uU(26,"Forgot Password?"),c.qZA()(),c.TgZ(27,"div",55)(28,"button",56),c.NdJ("click",function(){c.CHM(a);const F=c.oxw();return c.KtG(F.login())}),c._uU(29," Log in "),c.qZA()(),c.TgZ(30,"div",57),c._UZ(31,"hr"),c.TgZ(32,"span",58),c._uU(33,"or"),c.qZA(),c._UZ(34,"hr"),c.qZA(),c.TgZ(35,"div")(36,"button",59),c.NdJ("click",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.onLoginByGoogle(F))}),c._UZ(37,"i",60),c._uU(38," Sign In with Google "),c.qZA()()()()()}if(2&f){const a=c.MAs(13),v=c.MAs(19),F=c.oxw();c.xp6(8),c.AsE(" (",F.subdomain,"",F.domain,") "),c.xp6(4),c.Q6J("ngModel",F.username),c.xp6(4),c.Q6J("ngIf",a.invalid&&(a.dirty||a.touched)),c.xp6(2),c.Q6J("type",F.passwordType)("ngModel",F.password),c.xp6(4),c.Q6J("ngIf",""!=F.password),c.xp6(1),c.Q6J("ngIf",v.invalid&&(v.dirty||v.touched)),c.xp6(2),c.Q6J("href","https://"+F.subdomain+F.domain+"/ForgotPassword",c.LSH)}}class ys{constructor(l,a,v,F,G){this._httpService=l,this.toastr=a,this.auth=v,this.elementRef=F,this.cdr=G,this.version="1.5.7",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 l=this.auth.isLoginFormExist();if(this.setAutoFocusDomain(),l){this.username=this.auth.getUsername(),this.subdomain=this.auth.getDomain().split(".dealpos")[0];const a=this.auth.getDomain().split(".dealpos")[1];this.domain=".co.id"==a?".dealpos.co.id":".net"==a?".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(){Ys.gT.IsEmpty(this.subdomain)?this.toastr.warning("Account Domain is required","Warning"):this.loginState="FORM_AUTH"}login(){var l={Username:this.username,Password:this.password,Host:this.subdomain+(this.subdomain.includes("localhost")?"":this.domain)};this._httpService.post("/api/Token/Login",JSON.stringify(l)).subscribe(a=>{if(null!=a.access_token||null!=a.access_token){let v=a.access_token,F=a.expiredAt;localStorage.setItem("Token",v),localStorage.setItem("ExpireDate",F),this.auth.saveLoginForm(this.subdomain+(this.subdomain.includes("localhost")?"":this.domain),this.username);let ge=Ws(v)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],Me=ge?ge.find(Qe=>"Products"==Qe||"Prod"==Qe):null;this.auth.setRoles(ge),"Products"==Me||"Prod"==Me?this.auth.login("/pages"):this.toastr.error("Require products role to access this feature!","Error")}},a=>{console.error(a)})}onLoginByGoogle(l){this.auth.loginWithGoogle(l,`${this.subdomain}${this.domain}`).subscribe(v=>{console.log(v);let G=Ws(v.access_token)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];G&&G.find(Me=>"Products"==Me||"Prod"==Me),this.auth.setRoles(G),this.auth.login("/pages")})}}ys.\u0275fac=function(l){return new(l||ys)(c.Y36(ta.O),c.Y36(gs._W),c.Y36(Go.$),c.Y36(c.SBq),c.Y36(c.sBO))},ys.\u0275cmp=c.Xpm({type:ys,selectors:[["app-login"]],viewQuery:function(l,a){if(1&l&&(c.Gf(li,5),c.Gf(ma,5)),2&l){let v;c.iGM(v=c.CRH())&&(a.domainElementRef=v.first),c.iGM(v=c.CRH())&&(a.passElementRef=v.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(l,a){if(1&l&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),c._uU(4,"DealPOS - Barcode"),c.qZA(),c._UZ(5,"img",4),c.qZA(),c.TgZ(6,"div",5)(7,"h1",6),c._uU(8,"DealPOS - Barcode"),c.qZA(),c.YNc(9,_s,24,2,"ng-container",7),c.YNc(10,ya,39,9,"ng-template",null,8,c.W1O),c.qZA(),c.TgZ(12,"div",9)(13,"p",10),c._uU(14,"Powered by : "),c.qZA(),c.TgZ(15,"a",11),c._UZ(16,"img",12),c.qZA(),c.TgZ(17,"a",13)(18,"p",14),c._uU(19),c.qZA()()()()(),c.TgZ(20,"footer",15)(21,"div",16)(22,"div",17)(23,"p",10),c._uU(24,"Powered by : "),c.qZA(),c.TgZ(25,"a",11),c._UZ(26,"img",12),c.qZA()(),c.TgZ(27,"div",18)(28,"h5",19)(29,"a",20)(30,"p",14),c._uU(31),c.qZA()()()()()()),2&l){const v=c.MAs(11);c.xp6(9),c.Q6J("ngIf","FORM_DOMAIN"==a.loginState)("ngIfElse",v),c.xp6(10),c.hij("Version ",a.version,""),c.xp6(12),c.hij("Version ",a.version,"")}},dependencies:[X.mk,X.O5,se._Y,se.YN,se.Kr,se.Fj,se.EJ,se.JJ,se.JL,se.Q7,se.On,se.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}"]});const xi=[{path:"",component:yr,children:[{path:"",component:ys},{path:"pages",loadChildren:()=>g.e(57).then(g.bind(g,1057)).then(f=>f.PagesModule),canActivate:[Wo]},{path:"",redirectTo:"",pathMatch:"full"}]}];class Co{}function ks(f,l){if(1&f){const a=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(a);const F=c.oxw(2);return c.KtG(F.remove())}),c._uU(1," x "),c.qZA()}}function br(f,l){if(1&f&&(c.TgZ(0,"div",6)(1,"div",7)(2,"div")(3,"h4"),c._uU(4),c.qZA()()(),c.TgZ(5,"div",8),c.YNc(6,ks,2,0,"a",9),c.qZA()()),2&f){const a=c.oxw();c.Udp("display","inactive"===a.state.value?"none":""),c.xp6(2),c.Tol(a.options.titleClass),c.uIk("aria-label",a.title),c.xp6(2),c.Oqu(a.title),c.xp6(2),c.Q6J("ngIf",a.options.closeButton)}}Co.\u0275fac=function(l){return new(l||Co)},Co.\u0275mod=c.oAB({type:Co}),Co.\u0275inj=c.cJS({imports:[X.ez,se.u5,go,zi.Bz.forRoot(xi),zi.Bz]});const h=function(f){return{notitle:f}};function m(f,l){if(1&f&&c._UZ(0,"div",11),2&f){const a=c.oxw();c.Tol(a.options.messageClass),c.Q6J("ngClass",c.VKq(4,h,null==a.title))("innerHTML",a.message,c.oJD)}}function u(f,l){if(1&f&&(c.TgZ(0,"div",12),c._uU(1),c.qZA()),2&f){const a=c.oxw();c.Tol(a.options.messageClass),c.Q6J("ngClass",c.VKq(5,h,null==a.title)),c.uIk("aria-label",a.message),c.xp6(1),c.hij(" ",a.message," ")}}function C(f,l){if(1&f){const a=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(a);const F=c.oxw();return c.KtG(F.remove())}),c._uU(1," x "),c.qZA()}}function O(f,l){if(1&f&&(c.TgZ(0,"div"),c._UZ(1,"div",13),c.qZA()),2&f){const a=c.oxw();c.xp6(1),c.Udp("width",a.width+"%")}}class $ extends gs.FN{constructor(l,a){super(l,a),this.toastrService=l,this.toastPackage=a}ngOnInit(){}action(l){return l.stopPropagation(),this.toastPackage.triggerAction(),!1}}$.\u0275fac=function(l){return new(l||$)(c.Y36(gs._W),c.Y36(gs.PR))},$.\u0275cmp=c.Xpm({type:$,selectors:[["","custom-toast-component",""]],features:[c.qOj],attrs:["custom-toast-component",""],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(l,a){1&l&&(c.TgZ(0,"div",0),c.YNc(1,br,7,7,"div",1),c.YNc(2,m,1,6,"div",2),c.YNc(3,u,2,7,"div",3),c.YNc(4,C,2,0,"a",4),c.YNc(5,O,2,2,"div",5),c.qZA()),2&l&&(c.xp6(1),c.Q6J("ngIf",a.title),c.xp6(1),c.Q6J("ngIf",a.message&&a.options.enableHtml),c.xp6(1),c.Q6J("ngIf",a.message&&!a.options.enableHtml),c.xp6(1),c.Q6J("ngIf",a.options.closeButton&&null==a.title),c.xp6(1),c.Q6J("ngIf",a.options.progressBar))},dependencies:[X.mk,X.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,J.X$)("flyInOut",[(0,J.SB)("inactive",(0,J.oB)({opacity:0})),(0,J.eR)("inactive => active",(0,J.jt)("400ms ease-out",(0,J.F4)([(0,J.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,J.oB)({transform:"skewX(20deg)",opacity:1}),(0,J.oB)({transform:"skewX(-5deg)",opacity:1}),(0,J.oB)({transform:"none",opacity:1})]))),(0,J.eR)("active => removed",(0,J.jt)("400ms ease-out",(0,J.F4)([(0,J.oB)({opacity:1}),(0,J.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});var Q=g(4949);class Ge{}Ge.\u0275fac=function(l){return new(l||Ge)},Ge.\u0275mod=c.oAB({type:Ge,bootstrap:[yr]}),Ge.\u0275inj=c.cJS({providers:[Wo],imports:[r.b2,Co,go,yo.JF,gs.Rh.forRoot({toastComponent:$,positionClass:"toast-bottom-right",closeButton:!0}),ea.forRoot(),Di.register("ngsw-worker.js",{enabled:true,registrationStrategy:"registerImmediately"}),Jr.Is,Q.m,A.hO.initializeApp({apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"}),B.ww]}),(0,c.G48)(),r.q6().bootstrapModule(Ge).catch(f=>console.error(f))},1135:(Ct,Te,g)=>{g.d(Te,{X:()=>c});var r=g(7579);class c extends r.x{constructor(B){super(),this._value=B}get value(){return this.getValue()}_subscribe(B){const X=super._subscribe(B);return!X.closed&&B.next(this._value),X}getValue(){const{hasError:B,thrownError:X,_value:se}=this;if(B)throw X;return this._throwIfClosed(),se}next(B){super.next(this._value=B)}}},9751:(Ct,Te,g)=>{g.d(Te,{y:()=>ee});var r=g(930),c=g(727),A=g(8822),B=g(9635),X=g(2416),se=g(576),J=g(2806);let ee=(()=>{class le{constructor(Ee){Ee&&(this._subscribe=Ee)}lift(Ee){const Ne=new le;return Ne.source=this,Ne.operator=Ee,Ne}subscribe(Ee,Ne,Re){const ue=function q(le){return le&&le instanceof r.Lv||function j(le){return le&&(0,se.m)(le.next)&&(0,se.m)(le.error)&&(0,se.m)(le.complete)}(le)&&(0,c.Nn)(le)}(Ee)?Ee:new r.Hp(Ee,Ne,Re);return(0,J.x)(()=>{const{operator:ke,source:Fe}=this;ue.add(ke?ke.call(ue,Fe):Fe?this._subscribe(ue):this._trySubscribe(ue))}),ue}_trySubscribe(Ee){try{return this._subscribe(Ee)}catch(Ne){Ee.error(Ne)}}forEach(Ee,Ne){return new(Ne=ne(Ne))((Re,ue)=>{const ke=new r.Hp({next:Fe=>{try{Ee(Fe)}catch(et){ue(et),ke.unsubscribe()}},error:ue,complete:Re});this.subscribe(ke)})}_subscribe(Ee){var Ne;return null===(Ne=this.source)||void 0===Ne?void 0:Ne.subscribe(Ee)}[A.L](){return this}pipe(...Ee){return(0,B.U)(Ee)(this)}toPromise(Ee){return new(Ee=ne(Ee))((Ne,Re)=>{let ue;this.subscribe(ke=>ue=ke,ke=>Re(ke),()=>Ne(ue))})}}return le.create=He=>new le(He),le})();function ne(le){var He;return null!==(He=le??X.v.Promise)&&void 0!==He?He:Promise}},4707:(Ct,Te,g)=>{g.d(Te,{t:()=>A});var r=g(7579),c=g(6063);class A extends r.x{constructor(X=1/0,se=1/0,J=c.l){super(),this._bufferSize=X,this._windowTime=se,this._timestampProvider=J,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=se===1/0,this._bufferSize=Math.max(1,X),this._windowTime=Math.max(1,se)}next(X){const{isStopped:se,_buffer:J,_infiniteTimeWindow:ee,_timestampProvider:ne,_windowTime:j}=this;se||(J.push(X),!ee&&J.push(ne.now()+j)),this._trimBuffer(),super.next(X)}_subscribe(X){this._throwIfClosed(),this._trimBuffer();const se=this._innerSubscribe(X),{_infiniteTimeWindow:J,_buffer:ee}=this,ne=ee.slice();for(let j=0;j<ne.length&&!X.closed;j+=J?1:2)X.next(ne[j]);return this._checkFinalizedStatuses(X),se}_trimBuffer(){const{_bufferSize:X,_timestampProvider:se,_buffer:J,_infiniteTimeWindow:ee}=this,ne=(ee?1:2)*X;if(X<1/0&&ne<J.length&&J.splice(0,J.length-ne),!ee){const j=se.now();let q=0;for(let le=1;le<J.length&&J[le]<=j;le+=2)q=le;q&&J.splice(0,q+1)}}}},7579:(Ct,Te,g)=>{g.d(Te,{x:()=>J});var r=g(9751),c=g(727);const B=(0,g(3888).d)(ne=>function(){ne(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=g(8737),se=g(2806);let J=(()=>{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 le=new ee(this,this);return le.operator=q,le}_throwIfClosed(){if(this.closed)throw new B}next(q){(0,se.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const le of this.currentObservers)le.next(q)}})}error(q){(0,se.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=q;const{observers:le}=this;for(;le.length;)le.shift().error(q)}})}complete(){(0,se.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:le,isStopped:He,observers:Ee}=this;return le||He?c.Lc:(this.currentObservers=null,Ee.push(q),new c.w0(()=>{this.currentObservers=null,(0,X.P)(Ee,q)}))}_checkFinalizedStatuses(q){const{hasError:le,thrownError:He,isStopped:Ee}=this;le?q.error(He):Ee&&q.complete()}asObservable(){const q=new r.y;return q.source=this,q}}return ne.create=(j,q)=>new ee(j,q),ne})();class ee extends J{constructor(j,q){super(),this.destination=j,this.source=q}next(j){var q,le;null===(le=null===(q=this.destination)||void 0===q?void 0:q.next)||void 0===le||le.call(q,j)}error(j){var q,le;null===(le=null===(q=this.destination)||void 0===q?void 0:q.error)||void 0===le||le.call(q,j)}complete(){var j,q;null===(q=null===(j=this.destination)||void 0===j?void 0:j.complete)||void 0===q||q.call(j)}_subscribe(j){var q,le;return null!==(le=null===(q=this.source)||void 0===q?void 0:q.subscribe(j))&&void 0!==le?le:c.Lc}}},930:(Ct,Te,g)=>{g.d(Te,{Hp:()=>Re,Lv:()=>le});var r=g(576),c=g(727),A=g(2416),B=g(7849),X=g(5032);const se=ne("C",void 0,void 0);function ne(be,de,ye){return{kind:be,value:de,error:ye}}var j=g(3410),q=g(2806);class le extends c.w0{constructor(de){super(),this.isStopped=!1,de?(this.destination=de,(0,c.Nn)(de)&&de.add(this)):this.destination=et}static create(de,ye,ve){return new Re(de,ye,ve)}next(de){this.isStopped?Fe(function ee(be){return ne("N",be,void 0)}(de),this):this._next(de)}error(de){this.isStopped?Fe(function J(be){return ne("E",void 0,be)}(de),this):(this.isStopped=!0,this._error(de))}complete(){this.isStopped?Fe(se,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(de){this.destination.next(de)}_error(de){try{this.destination.error(de)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const He=Function.prototype.bind;function Ee(be,de){return He.call(be,de)}class Ne{constructor(de){this.partialObserver=de}next(de){const{partialObserver:ye}=this;if(ye.next)try{ye.next(de)}catch(ve){ue(ve)}}error(de){const{partialObserver:ye}=this;if(ye.error)try{ye.error(de)}catch(ve){ue(ve)}else ue(de)}complete(){const{partialObserver:de}=this;if(de.complete)try{de.complete()}catch(ye){ue(ye)}}}class Re extends le{constructor(de,ye,ve){let Ue;if(super(),(0,r.m)(de)||!de)Ue={next:de??void 0,error:ye??void 0,complete:ve??void 0};else{let xe;this&&A.v.useDeprecatedNextContext?(xe=Object.create(de),xe.unsubscribe=()=>this.unsubscribe(),Ue={next:de.next&&Ee(de.next,xe),error:de.error&&Ee(de.error,xe),complete:de.complete&&Ee(de.complete,xe)}):Ue=de}this.destination=new Ne(Ue)}}function ue(be){A.v.useDeprecatedSynchronousErrorHandling?(0,q.O)(be):(0,B.h)(be)}function Fe(be,de){const{onStoppedNotification:ye}=A.v;ye&&j.z.setTimeout(()=>ye(be,de))}const et={closed:!0,next:X.Z,error:function ke(be){throw be},complete:X.Z}},727:(Ct,Te,g)=>{g.d(Te,{Lc:()=>se,w0:()=>X,Nn:()=>J});var r=g(576);const A=(0,g(3888).d)(ne=>function(q){ne(this),this.message=q?`${q.length} errors occurred during unsubscription:\n${q.map((le,He)=>`${He+1}) ${le.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=q});var B=g(8737);class X{constructor(j){this.initialTeardown=j,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let j;if(!this.closed){this.closed=!0;const{_parentage:q}=this;if(q)if(this._parentage=null,Array.isArray(q))for(const Ee of q)Ee.remove(this);else q.remove(this);const{initialTeardown:le}=this;if((0,r.m)(le))try{le()}catch(Ee){j=Ee instanceof A?Ee.errors:[Ee]}const{_finalizers:He}=this;if(He){this._finalizers=null;for(const Ee of He)try{ee(Ee)}catch(Ne){j=j??[],Ne instanceof A?j=[...j,...Ne.errors]:j.push(Ne)}}if(j)throw new A(j)}}add(j){var q;if(j&&j!==this)if(this.closed)ee(j);else{if(j instanceof X){if(j.closed||j._hasParent(this))return;j._addParent(this)}(this._finalizers=null!==(q=this._finalizers)&&void 0!==q?q:[]).push(j)}}_hasParent(j){const{_parentage:q}=this;return q===j||Array.isArray(q)&&q.includes(j)}_addParent(j){const{_parentage:q}=this;this._parentage=Array.isArray(q)?(q.push(j),q):q?[q,j]:j}_removeParent(j){const{_parentage:q}=this;q===j?this._parentage=null:Array.isArray(q)&&(0,B.P)(q,j)}remove(j){const{_finalizers:q}=this;q&&(0,B.P)(q,j),j instanceof X&&j._removeParent(this)}}X.EMPTY=(()=>{const ne=new X;return ne.closed=!0,ne})();const se=X.EMPTY;function J(ne){return ne instanceof X||ne&&"closed"in ne&&(0,r.m)(ne.remove)&&(0,r.m)(ne.add)&&(0,r.m)(ne.unsubscribe)}function ee(ne){(0,r.m)(ne)?ne():ne.unsubscribe()}},2416:(Ct,Te,g)=>{g.d(Te,{v:()=>r});const r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4033:(Ct,Te,g)=>{g.d(Te,{c:()=>se});var r=g(9751),c=g(727),A=g(8343),B=g(5403),X=g(4482);class se extends r.y{constructor(ee,ne){super(),this.source=ee,this.subjectFactory=ne,this._subject=null,this._refCount=0,this._connection=null,(0,X.A)(ee)&&(this.lift=ee.lift)}_subscribe(ee){return this.getSubject().subscribe(ee)}getSubject(){const ee=this._subject;return(!ee||ee.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ee}=this;this._subject=this._connection=null,ee?.unsubscribe()}connect(){let ee=this._connection;if(!ee){ee=this._connection=new c.w0;const ne=this.getSubject();ee.add(this.source.subscribe((0,B.x)(ne,void 0,()=>{this._teardown(),ne.complete()},j=>{this._teardown(),ne.error(j)},()=>this._teardown()))),ee.closed&&(this._connection=null,ee=c.w0.EMPTY)}return ee}refCount(){return(0,A.x)()(this)}}},9841:(Ct,Te,g)=>{g.d(Te,{a:()=>j});var r=g(9751),c=g(4742),A=g(8996),B=g(4671),X=g(3268),se=g(3269),J=g(1810),ee=g(5403),ne=g(9672);function j(...He){const Ee=(0,se.yG)(He),Ne=(0,se.jO)(He),{args:Re,keys:ue}=(0,c.D)(He);if(0===Re.length)return(0,A.D)([],Ee);const ke=new r.y(function q(He,Ee,Ne=B.y){return Re=>{le(Ee,()=>{const{length:ue}=He,ke=new Array(ue);let Fe=ue,et=ue;for(let be=0;be<ue;be++)le(Ee,()=>{const de=(0,A.D)(He[be],Ee);let ye=!1;de.subscribe((0,ee.x)(Re,ve=>{ke[be]=ve,ye||(ye=!0,et--),et||Re.next(Ne(ke.slice()))},()=>{--Fe||Re.complete()}))},Re)},Re)}}(Re,Ee,ue?Fe=>(0,J.n)(ue,Fe):B.y));return Ne?ke.pipe((0,X.Z)(Ne)):ke}function le(He,Ee,Ne){He?(0,ne.f)(Ne,He,Ee):Ee()}},7272:(Ct,Te,g)=>{g.d(Te,{z:()=>X});var r=g(8189),A=g(3269),B=g(8996);function X(...se){return function c(){return(0,r.J)(1)}()((0,B.D)(se,(0,A.yG)(se)))}},9770:(Ct,Te,g)=>{g.d(Te,{P:()=>A});var r=g(9751),c=g(8421);function A(B){return new r.y(X=>{(0,c.Xf)(B()).subscribe(X)})}},515:(Ct,Te,g)=>{g.d(Te,{E:()=>c});const c=new(g(9751).y)(X=>X.complete())},8996:(Ct,Te,g)=>{g.d(Te,{D:()=>de});var r=g(8421),c=g(5363),A=g(9468),se=g(9751),ee=g(2202),ne=g(576),j=g(9672);function le(ye,ve){if(!ye)throw new Error("Iterable cannot be null");return new se.y(Ue=>{(0,j.f)(Ue,ve,()=>{const xe=ye[Symbol.asyncIterator]();(0,j.f)(Ue,ve,()=>{xe.next().then(ze=>{ze.done?Ue.complete():Ue.next(ze.value)})},0,!0)})})}var He=g(3670),Ee=g(8239),Ne=g(1144),Re=g(6495),ue=g(2206),ke=g(4532),Fe=g(3260);function de(ye,ve){return ve?function be(ye,ve){if(null!=ye){if((0,He.c)(ye))return function B(ye,ve){return(0,r.Xf)(ye).pipe((0,A.R)(ve),(0,c.Q)(ve))}(ye,ve);if((0,Ne.z)(ye))return function J(ye,ve){return new se.y(Ue=>{let xe=0;return ve.schedule(function(){xe===ye.length?Ue.complete():(Ue.next(ye[xe++]),Ue.closed||this.schedule())})})}(ye,ve);if((0,Ee.t)(ye))return function X(ye,ve){return(0,r.Xf)(ye).pipe((0,A.R)(ve),(0,c.Q)(ve))}(ye,ve);if((0,ue.D)(ye))return le(ye,ve);if((0,Re.T)(ye))return function q(ye,ve){return new se.y(Ue=>{let xe;return(0,j.f)(Ue,ve,()=>{xe=ye[ee.h](),(0,j.f)(Ue,ve,()=>{let ze,dt;try{({value:ze,done:dt}=xe.next())}catch(vt){return void Ue.error(vt)}dt?Ue.complete():Ue.next(ze)},0,!0)}),()=>(0,ne.m)(xe?.return)&&xe.return()})}(ye,ve);if((0,Fe.L)(ye))return function et(ye,ve){return le((0,Fe.Q)(ye),ve)}(ye,ve)}throw(0,ke.z)(ye)}(ye,ve):(0,r.Xf)(ye)}},4968:(Ct,Te,g)=>{g.d(Te,{R:()=>j});var r=g(8421),c=g(9751),A=g(5577),B=g(1144),X=g(576),se=g(3268);const J=["addListener","removeListener"],ee=["addEventListener","removeEventListener"],ne=["on","off"];function j(Ne,Re,ue,ke){if((0,X.m)(ue)&&(ke=ue,ue=void 0),ke)return j(Ne,Re,ue).pipe((0,se.Z)(ke));const[Fe,et]=function Ee(Ne){return(0,X.m)(Ne.addEventListener)&&(0,X.m)(Ne.removeEventListener)}(Ne)?ee.map(be=>de=>Ne[be](Re,de,ue)):function le(Ne){return(0,X.m)(Ne.addListener)&&(0,X.m)(Ne.removeListener)}(Ne)?J.map(q(Ne,Re)):function He(Ne){return(0,X.m)(Ne.on)&&(0,X.m)(Ne.off)}(Ne)?ne.map(q(Ne,Re)):[];if(!Fe&&(0,B.z)(Ne))return(0,A.z)(be=>j(be,Re,ue))((0,r.Xf)(Ne));if(!Fe)throw new TypeError("Invalid event target");return new c.y(be=>{const de=(...ye)=>be.next(1<ye.length?ye:ye[0]);return Fe(de),()=>et(de)})}function q(Ne,Re){return ue=>ke=>Ne[ue](Re,ke)}},8421:(Ct,Te,g)=>{g.d(Te,{Xf:()=>He});var r=g(655),c=g(1144),A=g(8239),B=g(9751),X=g(3670),se=g(2206),J=g(4532),ee=g(6495),ne=g(3260),j=g(576),q=g(7849),le=g(8822);function He(be){if(be instanceof B.y)return be;if(null!=be){if((0,X.c)(be))return function Ee(be){return new B.y(de=>{const ye=be[le.L]();if((0,j.m)(ye.subscribe))return ye.subscribe(de);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(be);if((0,c.z)(be))return function Ne(be){return new B.y(de=>{for(let ye=0;ye<be.length&&!de.closed;ye++)de.next(be[ye]);de.complete()})}(be);if((0,A.t)(be))return function Re(be){return new B.y(de=>{be.then(ye=>{de.closed||(de.next(ye),de.complete())},ye=>de.error(ye)).then(null,q.h)})}(be);if((0,se.D)(be))return ke(be);if((0,ee.T)(be))return function ue(be){return new B.y(de=>{for(const ye of be)if(de.next(ye),de.closed)return;de.complete()})}(be);if((0,ne.L)(be))return function Fe(be){return ke((0,ne.Q)(be))}(be)}throw(0,J.z)(be)}function ke(be){return new B.y(de=>{(function et(be,de){var ye,ve,Ue,xe;return(0,r.mG)(this,void 0,void 0,function*(){try{for(ye=(0,r.KL)(be);!(ve=yield ye.next()).done;)if(de.next(ve.value),de.closed)return}catch(ze){Ue={error:ze}}finally{try{ve&&!ve.done&&(xe=ye.return)&&(yield xe.call(ye))}finally{if(Ue)throw Ue.error}}de.complete()})})(be,de).catch(ye=>de.error(ye))})}},6451:(Ct,Te,g)=>{g.d(Te,{T:()=>se});var r=g(8189),c=g(8421),A=g(515),B=g(3269),X=g(8996);function se(...J){const ee=(0,B.yG)(J),ne=(0,B._6)(J,1/0),j=J;return j.length?1===j.length?(0,c.Xf)(j[0]):(0,r.J)(ne)((0,X.D)(j,ee)):A.E}},9646:(Ct,Te,g)=>{g.d(Te,{of:()=>A});var r=g(3269),c=g(8996);function A(...B){const X=(0,r.yG)(B);return(0,c.D)(B,X)}},2843:(Ct,Te,g)=>{g.d(Te,{_:()=>A});var r=g(9751),c=g(576);function A(B,X){const se=(0,c.m)(B)?B:()=>B,J=ee=>ee.error(se());return new r.y(X?ee=>X.schedule(J,0,ee):J)}},2805:(Ct,Te,g)=>{g.d(Te,{H:()=>X});var r=g(9751),c=g(4986),A=g(3532),B=g(1165);function X(se=0,J,ee=c.P){let ne=-1;return null!=J&&((0,A.K)(J)?ee=J:ne=J),new r.y(j=>{let q=(0,B.q)(se)?+se-ee.now():se;q<0&&(q=0);let le=0;return ee.schedule(function(){j.closed||(j.next(le++),0<=ne?this.schedule(void 0,ne):j.complete())},q)})}},5403:(Ct,Te,g)=>{g.d(Te,{x:()=>c});var r=g(930);function c(B,X,se,J,ee){return new A(B,X,se,J,ee)}class A extends r.Lv{constructor(X,se,J,ee,ne,j){super(X),this.onFinalize=ne,this.shouldUnsubscribe=j,this._next=se?function(q){try{se(q)}catch(le){X.error(le)}}:super._next,this._error=ee?function(q){try{ee(q)}catch(le){X.error(le)}finally{this.unsubscribe()}}:super._error,this._complete=J?function(){try{J()}catch(q){X.error(q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var X;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:se}=this;super.unsubscribe(),!se&&(null===(X=this.onFinalize)||void 0===X||X.call(this))}}}},3601:(Ct,Te,g)=>{g.d(Te,{e:()=>J});var r=g(4986),c=g(4482),A=g(8421),B=g(5403),se=g(2805);function J(ee,ne=r.z){return function X(ee){return(0,c.e)((ne,j)=>{let q=!1,le=null,He=null,Ee=!1;const Ne=()=>{if(He?.unsubscribe(),He=null,q){q=!1;const ue=le;le=null,j.next(ue)}Ee&&j.complete()},Re=()=>{He=null,Ee&&j.complete()};ne.subscribe((0,B.x)(j,ue=>{q=!0,le=ue,He||(0,A.Xf)(ee(ue)).subscribe(He=(0,B.x)(j,Ne,Re))},()=>{Ee=!0,(!q||!He||He.closed)&&j.complete()}))})}(()=>(0,se.H)(ee,ne))}},4351:(Ct,Te,g)=>{g.d(Te,{b:()=>A});var r=g(5577),c=g(576);function A(B,X){return(0,c.m)(X)?(0,r.z)(B,X,1):(0,r.z)(B,1)}},8372:(Ct,Te,g)=>{g.d(Te,{b:()=>B});var r=g(4986),c=g(4482),A=g(5403);function B(X,se=r.z){return(0,c.e)((J,ee)=>{let ne=null,j=null,q=null;const le=()=>{if(ne){ne.unsubscribe(),ne=null;const Ee=j;j=null,ee.next(Ee)}};function He(){const Ee=q+X,Ne=se.now();if(Ne<Ee)return ne=this.schedule(void 0,Ee-Ne),void ee.add(ne);le()}J.subscribe((0,A.x)(ee,Ee=>{j=Ee,q=se.now(),ne||(ne=se.schedule(He,X),ee.add(ne))},()=>{le(),ee.complete()},void 0,()=>{j=ne=null}))})}},6590:(Ct,Te,g)=>{g.d(Te,{d:()=>A});var r=g(4482),c=g(5403);function A(B){return(0,r.e)((X,se)=>{let J=!1;X.subscribe((0,c.x)(se,ee=>{J=!0,se.next(ee)},()=>{J||se.next(B),se.complete()}))})}},1005:(Ct,Te,g)=>{g.d(Te,{g:()=>He});var r=g(4986),c=g(7272),A=g(5698),B=g(4482),X=g(5403),se=g(5032),ee=g(9718),ne=g(5577),j=g(8421);function q(Ee,Ne){return Ne?Re=>(0,c.z)(Ne.pipe((0,A.q)(1),function J(){return(0,B.e)((Ee,Ne)=>{Ee.subscribe((0,X.x)(Ne,se.Z))})}()),Re.pipe(q(Ee))):(0,ne.z)((Re,ue)=>(0,j.Xf)(Ee(Re,ue)).pipe((0,A.q)(1),(0,ee.h)(Re)))}var le=g(2805);function He(Ee,Ne=r.z){const Re=(0,le.H)(Ee,Ne);return q(()=>Re)}},1884:(Ct,Te,g)=>{g.d(Te,{x:()=>B});var r=g(4671),c=g(4482),A=g(5403);function B(se,J=r.y){return se=se??X,(0,c.e)((ee,ne)=>{let j,q=!0;ee.subscribe((0,A.x)(ne,le=>{const He=J(le);(q||!se(j,He))&&(q=!1,j=He,ne.next(le))}))})}function X(se,J){return se===J}},9300:(Ct,Te,g)=>{g.d(Te,{h:()=>A});var r=g(4482),c=g(5403);function A(B,X){return(0,r.e)((se,J)=>{let ee=0;se.subscribe((0,c.x)(J,ne=>B.call(X,ne,ee++)&&J.next(ne)))})}},8746:(Ct,Te,g)=>{g.d(Te,{x:()=>c});var r=g(4482);function c(A){return(0,r.e)((B,X)=>{try{B.subscribe(X)}finally{X.add(A)}})}},590:(Ct,Te,g)=>{g.d(Te,{P:()=>J});var r=g(6805),c=g(9300),A=g(5698),B=g(6590),X=g(8068),se=g(4671);function J(ee,ne){const j=arguments.length>=2;return q=>q.pipe(ee?(0,c.h)((le,He)=>ee(le,He,q)):se.y,(0,A.q)(1),j?(0,B.d)(ne):(0,X.T)(()=>new r.K))}},4004:(Ct,Te,g)=>{g.d(Te,{U:()=>A});var r=g(4482),c=g(5403);function A(B,X){return(0,r.e)((se,J)=>{let ee=0;se.subscribe((0,c.x)(J,ne=>{J.next(B.call(X,ne,ee++))}))})}},9718:(Ct,Te,g)=>{g.d(Te,{h:()=>c});var r=g(4004);function c(A){return(0,r.U)(()=>A)}},8189:(Ct,Te,g)=>{g.d(Te,{J:()=>A});var r=g(5577),c=g(4671);function A(B=1/0){return(0,r.z)(c.y,B)}},5577:(Ct,Te,g)=>{g.d(Te,{z:()=>ee});var r=g(4004),c=g(8421),A=g(4482),B=g(9672),X=g(5403),J=g(576);function ee(ne,j,q=1/0){return(0,J.m)(j)?ee((le,He)=>(0,r.U)((Ee,Ne)=>j(le,Ee,He,Ne))((0,c.Xf)(ne(le,He))),q):("number"==typeof j&&(q=j),(0,A.e)((le,He)=>function se(ne,j,q,le,He,Ee,Ne,Re){const ue=[];let ke=0,Fe=0,et=!1;const be=()=>{et&&!ue.length&&!ke&&j.complete()},de=ve=>ke<le?ye(ve):ue.push(ve),ye=ve=>{Ee&&j.next(ve),ke++;let Ue=!1;(0,c.Xf)(q(ve,Fe++)).subscribe((0,X.x)(j,xe=>{He?.(xe),Ee?de(xe):j.next(xe)},()=>{Ue=!0},void 0,()=>{if(Ue)try{for(ke--;ue.length&&ke<le;){const xe=ue.shift();Ne?(0,B.f)(j,Ne,()=>ye(xe)):ye(xe)}be()}catch(xe){j.error(xe)}}))};return ne.subscribe((0,X.x)(j,de,()=>{et=!0,be()})),()=>{Re?.()}}(le,He,ne,q)))}},5363:(Ct,Te,g)=>{g.d(Te,{Q:()=>B});var r=g(9672),c=g(4482),A=g(5403);function B(X,se=0){return(0,c.e)((J,ee)=>{J.subscribe((0,A.x)(ee,ne=>(0,r.f)(ee,X,()=>ee.next(ne),se),()=>(0,r.f)(ee,X,()=>ee.complete(),se),ne=>(0,r.f)(ee,X,()=>ee.error(ne),se)))})}},8343:(Ct,Te,g)=>{g.d(Te,{x:()=>A});var r=g(4482),c=g(5403);function A(){return(0,r.e)((B,X)=>{let se=null;B._refCount++;const J=(0,c.x)(X,void 0,void 0,void 0,()=>{if(!B||B._refCount<=0||0<--B._refCount)return void(se=null);const ee=B._connection,ne=se;se=null,ee&&(!ne||ee===ne)&&ee.unsubscribe(),X.unsubscribe()});B.subscribe(J),J.closed||(se=B.connect())})}},3099:(Ct,Te,g)=>{g.d(Te,{B:()=>X});var r=g(8421),c=g(7579),A=g(930),B=g(4482);function X(J={}){const{connector:ee=(()=>new c.x),resetOnError:ne=!0,resetOnComplete:j=!0,resetOnRefCountZero:q=!0}=J;return le=>{let He,Ee,Ne,Re=0,ue=!1,ke=!1;const Fe=()=>{Ee?.unsubscribe(),Ee=void 0},et=()=>{Fe(),He=Ne=void 0,ue=ke=!1},be=()=>{const de=He;et(),de?.unsubscribe()};return(0,B.e)((de,ye)=>{Re++,!ke&&!ue&&Fe();const ve=Ne=Ne??ee();ye.add(()=>{Re--,0===Re&&!ke&&!ue&&(Ee=se(be,q))}),ve.subscribe(ye),!He&&Re>0&&(He=new A.Hp({next:Ue=>ve.next(Ue),error:Ue=>{ke=!0,Fe(),Ee=se(et,ne,Ue),ve.error(Ue)},complete:()=>{ue=!0,Fe(),Ee=se(et,j),ve.complete()}}),(0,r.Xf)(de).subscribe(He))})(le)}}function se(J,ee,...ne){if(!0===ee)return void J();if(!1===ee)return;const j=new A.Hp({next:()=>{j.unsubscribe(),J()}});return(0,r.Xf)(ee(...ne)).subscribe(j)}},4782:(Ct,Te,g)=>{g.d(Te,{d:()=>A});var r=g(4707),c=g(3099);function A(B,X,se){let J,ee=!1;return B&&"object"==typeof B?({bufferSize:J=1/0,windowTime:X=1/0,refCount:ee=!1,scheduler:se}=B):J=B??1/0,(0,c.B)({connector:()=>new r.t(J,X,se),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ee})}},8675:(Ct,Te,g)=>{g.d(Te,{O:()=>B});var r=g(7272),c=g(3269),A=g(4482);function B(...X){const se=(0,c.yG)(X);return(0,A.e)((J,ee)=>{(se?(0,r.z)(X,J,se):(0,r.z)(X,J)).subscribe(ee)})}},9468:(Ct,Te,g)=>{g.d(Te,{R:()=>c});var r=g(4482);function c(A,B=0){return(0,r.e)((X,se)=>{se.add(A.schedule(()=>X.subscribe(se),B))})}},3900:(Ct,Te,g)=>{g.d(Te,{w:()=>B});var r=g(8421),c=g(4482),A=g(5403);function B(X,se){return(0,c.e)((J,ee)=>{let ne=null,j=0,q=!1;const le=()=>q&&!ne&&ee.complete();J.subscribe((0,A.x)(ee,He=>{ne?.unsubscribe();let Ee=0;const Ne=j++;(0,r.Xf)(X(He,Ne)).subscribe(ne=(0,A.x)(ee,Re=>ee.next(se?se(He,Re,Ne,Ee++):Re),()=>{ne=null,le()}))},()=>{q=!0,le()}))})}},5698:(Ct,Te,g)=>{g.d(Te,{q:()=>B});var r=g(515),c=g(4482),A=g(5403);function B(X){return X<=0?()=>r.E:(0,c.e)((se,J)=>{let ee=0;se.subscribe((0,A.x)(J,ne=>{++ee<=X&&(J.next(ne),X<=ee&&J.complete())}))})}},2722:(Ct,Te,g)=>{g.d(Te,{R:()=>X});var r=g(4482),c=g(5403),A=g(8421),B=g(5032);function X(se){return(0,r.e)((J,ee)=>{(0,A.Xf)(se).subscribe((0,c.x)(ee,()=>ee.complete(),B.Z)),!ee.closed&&J.subscribe(ee)})}},8505:(Ct,Te,g)=>{g.d(Te,{b:()=>X});var r=g(576),c=g(4482),A=g(5403),B=g(4671);function X(se,J,ee){const ne=(0,r.m)(se)||J||ee?{next:se,error:J,complete:ee}:se;return ne?(0,c.e)((j,q)=>{var le;null===(le=ne.subscribe)||void 0===le||le.call(ne);let He=!0;j.subscribe((0,A.x)(q,Ee=>{var Ne;null===(Ne=ne.next)||void 0===Ne||Ne.call(ne,Ee),q.next(Ee)},()=>{var Ee;He=!1,null===(Ee=ne.complete)||void 0===Ee||Ee.call(ne),q.complete()},Ee=>{var Ne;He=!1,null===(Ne=ne.error)||void 0===Ne||Ne.call(ne,Ee),q.error(Ee)},()=>{var Ee,Ne;He&&(null===(Ee=ne.unsubscribe)||void 0===Ee||Ee.call(ne)),null===(Ne=ne.finalize)||void 0===Ne||Ne.call(ne)}))}):B.y}},8068:(Ct,Te,g)=>{g.d(Te,{T:()=>B});var r=g(6805),c=g(4482),A=g(5403);function B(se=X){return(0,c.e)((J,ee)=>{let ne=!1;J.subscribe((0,A.x)(ee,j=>{ne=!0,ee.next(j)},()=>ne?ee.complete():ee.error(se())))})}function X(){return new r.K}},4408:(Ct,Te,g)=>{g.d(Te,{o:()=>X});var r=g(727);class c extends r.w0{constructor(J,ee){super()}schedule(J,ee=0){return this}}const A={setInterval(se,J,...ee){const{delegate:ne}=A;return ne?.setInterval?ne.setInterval(se,J,...ee):setInterval(se,J,...ee)},clearInterval(se){const{delegate:J}=A;return(J?.clearInterval||clearInterval)(se)},delegate:void 0};var B=g(8737);class X extends c{constructor(J,ee){super(J,ee),this.scheduler=J,this.work=ee,this.pending=!1}schedule(J,ee=0){var ne;if(this.closed)return this;this.state=J;const j=this.id,q=this.scheduler;return null!=j&&(this.id=this.recycleAsyncId(q,j,ee)),this.pending=!0,this.delay=ee,this.id=null!==(ne=this.id)&&void 0!==ne?ne:this.requestAsyncId(q,this.id,ee),this}requestAsyncId(J,ee,ne=0){return A.setInterval(J.flush.bind(J,this),ne)}recycleAsyncId(J,ee,ne=0){if(null!=ne&&this.delay===ne&&!1===this.pending)return ee;null!=ee&&A.clearInterval(ee)}execute(J,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ne=this._execute(J,ee);if(ne)return ne;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(J,ee){let j,ne=!1;try{this.work(J)}catch(q){ne=!0,j=q||new Error("Scheduled action threw falsy error")}if(ne)return this.unsubscribe(),j}unsubscribe(){if(!this.closed){const{id:J,scheduler:ee}=this,{actions:ne}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,B.P)(ne,this),null!=J&&(this.id=this.recycleAsyncId(ee,J,null)),this.delay=null,super.unsubscribe()}}}},7565:(Ct,Te,g)=>{g.d(Te,{v:()=>A});var r=g(6063);class c{constructor(X,se=c.now){this.schedulerActionCtor=X,this.now=se}schedule(X,se=0,J){return new this.schedulerActionCtor(this,X).schedule(J,se)}}c.now=r.l.now;class A extends c{constructor(X,se=c.now){super(X,se),this.actions=[],this._active=!1}flush(X){const{actions:se}=this;if(this._active)return void se.push(X);let J;this._active=!0;do{if(J=X.execute(X.state,X.delay))break}while(X=se.shift());if(this._active=!1,J){for(;X=se.shift();)X.unsubscribe();throw J}}}},6406:(Ct,Te,g)=>{g.d(Te,{Z:()=>J});var r=g(4408),c=g(727);const A={schedule(ne){let j=requestAnimationFrame,q=cancelAnimationFrame;const{delegate:le}=A;le&&(j=le.requestAnimationFrame,q=le.cancelAnimationFrame);const He=j(Ee=>{q=void 0,ne(Ee)});return new c.w0(()=>q?.(He))},requestAnimationFrame(...ne){const{delegate:j}=A;return(j?.requestAnimationFrame||requestAnimationFrame)(...ne)},cancelAnimationFrame(...ne){const{delegate:j}=A;return(j?.cancelAnimationFrame||cancelAnimationFrame)(...ne)},delegate:void 0};var X=g(7565);const J=new class se extends X.v{flush(j){this._active=!0;const q=this._scheduled;this._scheduled=void 0;const{actions:le}=this;let He;j=j||le.shift();do{if(He=j.execute(j.state,j.delay))break}while((j=le[0])&&j.id===q&&le.shift());if(this._active=!1,He){for(;(j=le[0])&&j.id===q&&le.shift();)j.unsubscribe();throw He}}}(class B extends r.o{constructor(j,q){super(j,q),this.scheduler=j,this.work=q}requestAsyncId(j,q,le=0){return null!==le&&le>0?super.requestAsyncId(j,q,le):(j.actions.push(this),j._scheduled||(j._scheduled=A.requestAnimationFrame(()=>j.flush(void 0))))}recycleAsyncId(j,q,le=0){var He;if(null!=le?le>0:this.delay>0)return super.recycleAsyncId(j,q,le);const{actions:Ee}=j;null!=q&&(null===(He=Ee[Ee.length-1])||void 0===He?void 0:He.id)!==q&&(A.cancelAnimationFrame(q),j._scheduled=void 0)}})},3101:(Ct,Te,g)=>{g.d(Te,{E:()=>Ee});var r=g(4408);let A,c=1;const B={};function X(Re){return Re in B&&(delete B[Re],!0)}const se={setImmediate(Re){const ue=c++;return B[ue]=!0,A||(A=Promise.resolve()),A.then(()=>X(ue)&&Re()),ue},clearImmediate(Re){X(Re)}},{setImmediate:ee,clearImmediate:ne}=se,j={setImmediate(...Re){const{delegate:ue}=j;return(ue?.setImmediate||ee)(...Re)},clearImmediate(Re){const{delegate:ue}=j;return(ue?.clearImmediate||ne)(Re)},delegate:void 0};var le=g(7565);const Ee=new class He extends le.v{flush(ue){this._active=!0;const ke=this._scheduled;this._scheduled=void 0;const{actions:Fe}=this;let et;ue=ue||Fe.shift();do{if(et=ue.execute(ue.state,ue.delay))break}while((ue=Fe[0])&&ue.id===ke&&Fe.shift());if(this._active=!1,et){for(;(ue=Fe[0])&&ue.id===ke&&Fe.shift();)ue.unsubscribe();throw et}}}(class q extends r.o{constructor(ue,ke){super(ue,ke),this.scheduler=ue,this.work=ke}requestAsyncId(ue,ke,Fe=0){return null!==Fe&&Fe>0?super.requestAsyncId(ue,ke,Fe):(ue.actions.push(this),ue._scheduled||(ue._scheduled=j.setImmediate(ue.flush.bind(ue,void 0))))}recycleAsyncId(ue,ke,Fe=0){var et;if(null!=Fe?Fe>0:this.delay>0)return super.recycleAsyncId(ue,ke,Fe);const{actions:be}=ue;null!=ke&&(null===(et=be[be.length-1])||void 0===et?void 0:et.id)!==ke&&(j.clearImmediate(ke),ue._scheduled=void 0)}})},4986:(Ct,Te,g)=>{g.d(Te,{P:()=>B,z:()=>A});var r=g(4408);const A=new(g(7565).v)(r.o),B=A},6063:(Ct,Te,g)=>{g.d(Te,{l:()=>r});const r={now:()=>(r.delegate||Date).now(),delegate:void 0}},3410:(Ct,Te,g)=>{g.d(Te,{z:()=>r});const r={setTimeout(c,A,...B){const{delegate:X}=r;return X?.setTimeout?X.setTimeout(c,A,...B):setTimeout(c,A,...B)},clearTimeout(c){const{delegate:A}=r;return(A?.clearTimeout||clearTimeout)(c)},delegate:void 0}},2202:(Ct,Te,g)=>{g.d(Te,{h:()=>c});const c=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Ct,Te,g)=>{g.d(Te,{L:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Ct,Te,g)=>{g.d(Te,{K:()=>c});const c=(0,g(3888).d)(A=>function(){A(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Ct,Te,g)=>{g.d(Te,{_6:()=>se,jO:()=>B,yG:()=>X});var r=g(576),c=g(3532);function A(J){return J[J.length-1]}function B(J){return(0,r.m)(A(J))?J.pop():void 0}function X(J){return(0,c.K)(A(J))?J.pop():void 0}function se(J,ee){return"number"==typeof A(J)?J.pop():ee}},4742:(Ct,Te,g)=>{g.d(Te,{D:()=>X});const{isArray:r}=Array,{getPrototypeOf:c,prototype:A,keys:B}=Object;function X(J){if(1===J.length){const ee=J[0];if(r(ee))return{args:ee,keys:null};if(function se(J){return J&&"object"==typeof J&&c(J)===A}(ee)){const ne=B(ee);return{args:ne.map(j=>ee[j]),keys:ne}}}return{args:J,keys:null}}},8737:(Ct,Te,g)=>{function r(c,A){if(c){const B=c.indexOf(A);0<=B&&c.splice(B,1)}}g.d(Te,{P:()=>r})},3888:(Ct,Te,g)=>{function r(c){const B=c(X=>{Error.call(X),X.stack=(new Error).stack});return B.prototype=Object.create(Error.prototype),B.prototype.constructor=B,B}g.d(Te,{d:()=>r})},1810:(Ct,Te,g)=>{function r(c,A){return c.reduce((B,X,se)=>(B[X]=A[se],B),{})}g.d(Te,{n:()=>r})},2806:(Ct,Te,g)=>{g.d(Te,{O:()=>B,x:()=>A});var r=g(2416);let c=null;function A(X){if(r.v.useDeprecatedSynchronousErrorHandling){const se=!c;if(se&&(c={errorThrown:!1,error:null}),X(),se){const{errorThrown:J,error:ee}=c;if(c=null,J)throw ee}}else X()}function B(X){r.v.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=X)}},9672:(Ct,Te,g)=>{function r(c,A,B,X=0,se=!1){const J=A.schedule(function(){B(),se?c.add(this.schedule(null,X)):this.unsubscribe()},X);if(c.add(J),!se)return J}g.d(Te,{f:()=>r})},4671:(Ct,Te,g)=>{function r(c){return c}g.d(Te,{y:()=>r})},1144:(Ct,Te,g)=>{g.d(Te,{z:()=>r});const r=c=>c&&"number"==typeof c.length&&"function"!=typeof c},2206:(Ct,Te,g)=>{g.d(Te,{D:()=>c});var r=g(576);function c(A){return Symbol.asyncIterator&&(0,r.m)(A?.[Symbol.asyncIterator])}},1165:(Ct,Te,g)=>{function r(c){return c instanceof Date&&!isNaN(c)}g.d(Te,{q:()=>r})},576:(Ct,Te,g)=>{function r(c){return"function"==typeof c}g.d(Te,{m:()=>r})},3670:(Ct,Te,g)=>{g.d(Te,{c:()=>A});var r=g(8822),c=g(576);function A(B){return(0,c.m)(B[r.L])}},6495:(Ct,Te,g)=>{g.d(Te,{T:()=>A});var r=g(2202),c=g(576);function A(B){return(0,c.m)(B?.[r.h])}},8239:(Ct,Te,g)=>{g.d(Te,{t:()=>c});var r=g(576);function c(A){return(0,r.m)(A?.then)}},3260:(Ct,Te,g)=>{g.d(Te,{L:()=>B,Q:()=>A});var r=g(655),c=g(576);function A(X){return(0,r.FC)(this,arguments,function*(){const J=X.getReader();try{for(;;){const{value:ee,done:ne}=yield(0,r.qq)(J.read());if(ne)return yield(0,r.qq)(void 0);yield yield(0,r.qq)(ee)}}finally{J.releaseLock()}})}function B(X){return(0,c.m)(X?.getReader)}},3532:(Ct,Te,g)=>{g.d(Te,{K:()=>c});var r=g(576);function c(A){return A&&(0,r.m)(A.schedule)}},4482:(Ct,Te,g)=>{g.d(Te,{A:()=>c,e:()=>A});var r=g(576);function c(B){return(0,r.m)(B?.lift)}function A(B){return X=>{if(c(X))return X.lift(function(se){try{return B(se,this)}catch(J){this.error(J)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ct,Te,g)=>{g.d(Te,{Z:()=>B});var r=g(4004);const{isArray:c}=Array;function B(X){return(0,r.U)(se=>function A(X,se){return c(se)?X(...se):X(se)}(X,se))}},5032:(Ct,Te,g)=>{function r(){}g.d(Te,{Z:()=>r})},9635:(Ct,Te,g)=>{g.d(Te,{U:()=>A,z:()=>c});var r=g(4671);function c(...B){return A(B)}function A(B){return 0===B.length?r.y:1===B.length?B[0]:function(se){return B.reduce((J,ee)=>ee(J),se)}}},7849:(Ct,Te,g)=>{g.d(Te,{h:()=>A});var r=g(2416),c=g(3410);function A(B){c.z.setTimeout(()=>{const{onUnhandledError:X}=r.v;if(!X)throw B;X(B)})}},4532:(Ct,Te,g)=>{function r(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}g.d(Te,{z:()=>r})},655:(Ct,Te,g)=>{function B(We,rt){var at={};for(var mt in We)Object.prototype.hasOwnProperty.call(We,mt)&&rt.indexOf(mt)<0&&(at[mt]=We[mt]);if(null!=We&&"function"==typeof Object.getOwnPropertySymbols){var Et=0;for(mt=Object.getOwnPropertySymbols(We);Et<mt.length;Et++)rt.indexOf(mt[Et])<0&&Object.prototype.propertyIsEnumerable.call(We,mt[Et])&&(at[mt[Et]]=We[mt[Et]])}return at}function le(We,rt,at,mt){return new(at||(at=Promise))(function(bt,It){function Ce(ie){try{L(mt.next(ie))}catch(Ve){It(Ve)}}function Xe(ie){try{L(mt.throw(ie))}catch(Ve){It(Ve)}}function L(ie){ie.done?bt(ie.value):function Et(bt){return bt instanceof at?bt:new at(function(It){It(bt)})}(ie.value).then(Ce,Xe)}L((mt=mt.apply(We,rt||[])).next())})}function be(We){return this instanceof be?(this.v=We,this):new be(We)}function de(We,rt,at){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Et,mt=at.apply(We,rt||[]),bt=[];return Et={},It("next"),It("throw"),It("return"),Et[Symbol.asyncIterator]=function(){return this},Et;function It(ut){mt[ut]&&(Et[ut]=function(xt){return new Promise(function(en,zt){bt.push([ut,xt,en,zt])>1||Ce(ut,xt)})})}function Ce(ut,xt){try{!function Xe(ut){ut.value instanceof be?Promise.resolve(ut.value.v).then(L,ie):Ve(bt[0][2],ut)}(mt[ut](xt))}catch(en){Ve(bt[0][3],en)}}function L(ut){Ce("next",ut)}function ie(ut){Ce("throw",ut)}function Ve(ut,xt){ut(xt),bt.shift(),bt.length&&Ce(bt[0][0],bt[0][1])}}function ve(We){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var at,rt=We[Symbol.asyncIterator];return rt?rt.call(We):(We=function Re(We){var rt="function"==typeof Symbol&&Symbol.iterator,at=rt&&We[rt],mt=0;if(at)return at.call(We);if(We&&"number"==typeof We.length)return{next:function(){return We&&mt>=We.length&&(We=void 0),{value:We&&We[mt++],done:!We}}};throw new TypeError(rt?"Object is not iterable.":"Symbol.iterator is not defined.")}(We),at={},mt("next"),mt("throw"),mt("return"),at[Symbol.asyncIterator]=function(){return this},at);function mt(bt){at[bt]=We[bt]&&function(It){return new Promise(function(Ce,Xe){!function Et(bt,It,Ce,Xe){Promise.resolve(Xe).then(function(L){bt({value:L,done:Ce})},It)}(Ce,Xe,(It=We[bt](It)).done,It.value)})}}}g.d(Te,{FC:()=>de,KL:()=>ve,_T:()=>B,mG:()=>le,qq:()=>be})},7340:(Ct,Te,g)=>{g.d(Te,{F4:()=>j,IO:()=>Ne,LC:()=>c,SB:()=>ne,X$:()=>B,ZE:()=>Fe,ZN:()=>ke,_j:()=>r,eR:()=>q,jt:()=>X,k1:()=>et,l3:()=>A,oB:()=>ee,pV:()=>He,ru:()=>se,vP:()=>J});class r{}class c{}const A="*";function B(be,de){return{type:7,name:be,definitions:de,options:{}}}function X(be,de=null){return{type:4,styles:de,timings:be}}function se(be,de=null){return{type:3,steps:be,options:de}}function J(be,de=null){return{type:2,steps:be,options:de}}function ee(be){return{type:6,styles:be,offset:null}}function ne(be,de,ye){return{type:0,name:be,styles:de,options:ye}}function j(be){return{type:5,steps:be}}function q(be,de,ye=null){return{type:1,expr:be,animation:de,options:ye}}function He(be=null){return{type:9,options:be}}function Ne(be,de,ye=null){return{type:11,selector:be,animation:de,options:ye}}function ue(be){Promise.resolve().then(be)}class ke{constructor(de=0,ye=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=de+ye}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(de=>de()),this._onDoneFns=[])}onStart(de){this._originalOnStartFns.push(de),this._onStartFns.push(de)}onDone(de){this._originalOnDoneFns.push(de),this._onDoneFns.push(de)}onDestroy(de){this._onDestroyFns.push(de)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ue(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(de=>de()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(de=>de()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(de){this._position=this.totalTime?de*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(de){const ye="start"==de?this._onStartFns:this._onDoneFns;ye.forEach(ve=>ve()),ye.length=0}}class Fe{constructor(de){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=de;let ye=0,ve=0,Ue=0;const xe=this.players.length;0==xe?ue(()=>this._onFinish()):this.players.forEach(ze=>{ze.onDone(()=>{++ye==xe&&this._onFinish()}),ze.onDestroy(()=>{++ve==xe&&this._onDestroy()}),ze.onStart(()=>{++Ue==xe&&this._onStart()})}),this.totalTime=this.players.reduce((ze,dt)=>Math.max(ze,dt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(de=>de()),this._onDoneFns=[])}init(){this.players.forEach(de=>de.init())}onStart(de){this._onStartFns.push(de)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(de=>de()),this._onStartFns=[])}onDone(de){this._onDoneFns.push(de)}onDestroy(de){this._onDestroyFns.push(de)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(de=>de.play())}pause(){this.players.forEach(de=>de.pause())}restart(){this.players.forEach(de=>de.restart())}finish(){this._onFinish(),this.players.forEach(de=>de.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(de=>de.destroy()),this._onDestroyFns.forEach(de=>de()),this._onDestroyFns=[])}reset(){this.players.forEach(de=>de.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(de){const ye=de*this.totalTime;this.players.forEach(ve=>{const Ue=ve.totalTime?Math.min(1,ye/ve.totalTime):1;ve.setPosition(Ue)})}getPosition(){const de=this.players.reduce((ye,ve)=>null===ye||ve.totalTime>ye.totalTime?ve:ye,null);return null!=de?de.getPosition():0}beforeDestroy(){this.players.forEach(de=>{de.beforeDestroy&&de.beforeDestroy()})}triggerCallback(de){const ye="start"==de?this._onStartFns:this._onDoneFns;ye.forEach(ve=>ve()),ye.length=0}}const et="!"},7188:(Ct,Te,g)=>{g.d(Te,{rt:()=>p,s1:()=>zt,tE:()=>Ie,qV:()=>we,qm:()=>k,ic:()=>In,X6:()=>Vt,yG:()=>wn});var r=g(6895),c=g(4650),A=g(3353),B=g(7579),X=g(727),se=g(1135),J=g(9646),ee=g(9521),ne=g(8505),j=g(8372),q=g(9300),le=g(4004),He=g(5698);function Ee(_){return(0,q.h)((I,P)=>_<=P)}var Ne=g(1884),Re=g(2722),ue=g(1281);let ke=(()=>{class _{create(P){return typeof MutationObserver>"u"?null:new MutationObserver(P)}}return _.\u0275fac=function(P){return new(P||_)},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),be=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({providers:[ke]}),_})();var de=g(9841),ye=g(7272),ve=g(9751),Ue=g(8675);const ze=new Set;let dt,vt=(()=>{class _{constructor(P){this._platform=P,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Mt}matchMedia(P){return(this._platform.WEBKIT||this._platform.BLINK)&&function Lt(_){if(!ze.has(_))try{dt||(dt=document.createElement("style"),dt.setAttribute("type","text/css"),document.head.appendChild(dt)),dt.sheet&&(dt.sheet.insertRule(`@media ${_} {body{ }}`,0),ze.add(_))}catch(I){console.error(I)}}(P),this._matchMedia(P)}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(A.t4))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Mt(_){return{matches:"all"===_||""===_,media:_,addListener:()=>{},removeListener:()=>{}}}let We=(()=>{class _{constructor(P,oe){this._mediaMatcher=P,this._zone=oe,this._queries=new Map,this._destroySubject=new B.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(P){return rt((0,ue.Eq)(P)).some(Be=>this._registerQuery(Be).mql.matches)}observe(P){const Be=rt((0,ue.Eq)(P)).map(Bt=>this._registerQuery(Bt).observable);let yt=(0,de.a)(Be);return yt=(0,ye.z)(yt.pipe((0,He.q)(1)),yt.pipe(Ee(1),(0,j.b)(0))),yt.pipe((0,le.U)(Bt=>{const hn={matches:!1,breakpoints:{}};return Bt.forEach(({matches:bn,query:ht})=>{hn.matches=hn.matches||bn,hn.breakpoints[ht]=bn}),hn}))}_registerQuery(P){if(this._queries.has(P))return this._queries.get(P);const oe=this._mediaMatcher.matchMedia(P),yt={observable:new ve.y(Bt=>{const hn=bn=>this._zone.run(()=>Bt.next(bn));return oe.addListener(hn),()=>{oe.removeListener(hn)}}).pipe((0,Ue.O)(oe),(0,le.U)(({matches:Bt})=>({query:P,matches:Bt})),(0,Re.R)(this._destroySubject)),mql:oe};return this._queries.set(P,yt),yt}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(vt),c.LFG(c.R0b))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function rt(_){return _.map(I=>I.split(",")).reduce((I,P)=>I.concat(P)).map(I=>I.trim())}class en{constructor(I){this._items=I,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new B.x,this._typeaheadSubscription=X.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=P=>P.disabled,this._pressedLetters=[],this.tabOut=new B.x,this.change=new B.x,I instanceof c.n_E&&(this._itemChangesSubscription=I.changes.subscribe(P=>{if(this._activeItem){const Be=P.toArray().indexOf(this._activeItem);Be>-1&&Be!==this._activeItemIndex&&(this._activeItemIndex=Be)}}))}skipPredicate(I){return this._skipPredicateFn=I,this}withWrap(I=!0){return this._wrap=I,this}withVerticalOrientation(I=!0){return this._vertical=I,this}withHorizontalOrientation(I){return this._horizontal=I,this}withAllowedModifierKeys(I){return this._allowedModifierKeys=I,this}withTypeAhead(I=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ne.b)(P=>this._pressedLetters.push(P)),(0,j.b)(I),(0,q.h)(()=>this._pressedLetters.length>0),(0,le.U)(()=>this._pressedLetters.join(""))).subscribe(P=>{const oe=this._getItemsArray();for(let Be=1;Be<oe.length+1;Be++){const yt=(this._activeItemIndex+Be)%oe.length,Bt=oe[yt];if(!this._skipPredicateFn(Bt)&&0===Bt.getLabel().toUpperCase().trim().indexOf(P)){this.setActiveItem(yt);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(I=!0){return this._homeAndEnd=I,this}withPageUpDown(I=!0,P=10){return this._pageUpAndDown={enabled:I,delta:P},this}setActiveItem(I){const P=this._activeItem;this.updateActiveItem(I),this._activeItem!==P&&this.change.next(this._activeItemIndex)}onKeydown(I){const P=I.keyCode,Be=["altKey","ctrlKey","metaKey","shiftKey"].every(yt=>!I[yt]||this._allowedModifierKeys.indexOf(yt)>-1);switch(P){case ee.Mf:return void this.tabOut.next();case ee.JH:if(this._vertical&&Be){this.setNextItemActive();break}return;case ee.LH:if(this._vertical&&Be){this.setPreviousItemActive();break}return;case ee.SV:if(this._horizontal&&Be){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case ee.oh:if(this._horizontal&&Be){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case ee.Sd:if(this._homeAndEnd&&Be){this.setFirstItemActive();break}return;case ee.uR:if(this._homeAndEnd&&Be){this.setLastItemActive();break}return;case ee.Ku:if(this._pageUpAndDown.enabled&&Be){const yt=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(yt>0?yt:0,1);break}return;case ee.VM:if(this._pageUpAndDown.enabled&&Be){const yt=this._activeItemIndex+this._pageUpAndDown.delta,Bt=this._getItemsArray().length;this._setActiveItemByIndex(yt<Bt?yt:Bt-1,-1);break}return;default:return void((Be||(0,ee.Vb)(I,"shiftKey"))&&(I.key&&1===I.key.length?this._letterKeyStream.next(I.key.toLocaleUpperCase()):(P>=ee.A&&P<=ee.Z||P>=ee.xE&&P<=ee.aO)&&this._letterKeyStream.next(String.fromCharCode(P))))}this._pressedLetters=[],I.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(I){const P=this._getItemsArray(),oe="number"==typeof I?I:P.indexOf(I);this._activeItem=P[oe]??null,this._activeItemIndex=oe}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(I){this._wrap?this._setActiveInWrapMode(I):this._setActiveInDefaultMode(I)}_setActiveInWrapMode(I){const P=this._getItemsArray();for(let oe=1;oe<=P.length;oe++){const Be=(this._activeItemIndex+I*oe+P.length)%P.length;if(!this._skipPredicateFn(P[Be]))return void this.setActiveItem(Be)}}_setActiveInDefaultMode(I){this._setActiveItemByIndex(this._activeItemIndex+I,I)}_setActiveItemByIndex(I,P){const oe=this._getItemsArray();if(oe[I]){for(;this._skipPredicateFn(oe[I]);)if(!oe[I+=P])return;this.setActiveItem(I)}}_getItemsArray(){return this._items instanceof c.n_E?this._items.toArray():this._items}}class zt extends en{setActiveItem(I){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(I),this.activeItem&&this.activeItem.setActiveStyles()}}let In=(()=>{class _{constructor(P){this._platform=P}isDisabled(P){return P.hasAttribute("disabled")}isVisible(P){return function Pn(_){return!!(_.offsetWidth||_.offsetHeight||"function"==typeof _.getClientRects&&_.getClientRects().length)}(P)&&"visible"===getComputedStyle(P).visibility}isTabbable(P){if(!this._platform.isBrowser)return!1;const oe=function Fn(_){try{return _.frameElement}catch{return null}}(function Pt(_){return _.ownerDocument&&_.ownerDocument.defaultView||window}(P));if(oe&&(-1===ct(oe)||!this.isVisible(oe)))return!1;let Be=P.nodeName.toLowerCase(),yt=ct(P);return P.hasAttribute("contenteditable")?-1!==yt:!("iframe"===Be||"object"===Be||this._platform.WEBKIT&&this._platform.IOS&&!function At(_){let I=_.nodeName.toLowerCase(),P="input"===I&&_.type;return"text"===P||"password"===P||"select"===I||"textarea"===I}(P))&&("audio"===Be?!!P.hasAttribute("controls")&&-1!==yt:"video"===Be?-1!==yt&&(null!==yt||this._platform.FIREFOX||P.hasAttribute("controls")):P.tabIndex>=0)}isFocusable(P,oe){return function Ht(_){return!function tt(_){return function ae(_){return"input"==_.nodeName.toLowerCase()}(_)&&"hidden"==_.type}(_)&&(function sn(_){let I=_.nodeName.toLowerCase();return"input"===I||"select"===I||"button"===I||"textarea"===I}(_)||function W(_){return function Se(_){return"a"==_.nodeName.toLowerCase()}(_)&&_.hasAttribute("href")}(_)||_.hasAttribute("contenteditable")||nt(_))}(P)&&!this.isDisabled(P)&&(oe?.ignoreVisibility||this.isVisible(P))}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(A.t4))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function nt(_){if(!_.hasAttribute("tabindex")||void 0===_.tabIndex)return!1;let I=_.getAttribute("tabindex");return!(!I||isNaN(parseInt(I,10)))}function ct(_){if(!nt(_))return null;const I=parseInt(_.getAttribute("tabindex")||"",10);return isNaN(I)?-1:I}class St{get enabled(){return this._enabled}set enabled(I){this._enabled=I,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(I,this._startAnchor),this._toggleAnchorTabIndex(I,this._endAnchor))}constructor(I,P,oe,Be,yt=!1){this._element=I,this._checker=P,this._ngZone=oe,this._document=Be,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,yt||this.attachAnchors()}destroy(){const I=this._startAnchor,P=this._endAnchor;I&&(I.removeEventListener("focus",this.startAnchorListener),I.remove()),P&&(P.removeEventListener("focus",this.endAnchorListener),P.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(I){return new Promise(P=>{this._executeOnStable(()=>P(this.focusInitialElement(I)))})}focusFirstTabbableElementWhenReady(I){return new Promise(P=>{this._executeOnStable(()=>P(this.focusFirstTabbableElement(I)))})}focusLastTabbableElementWhenReady(I){return new Promise(P=>{this._executeOnStable(()=>P(this.focusLastTabbableElement(I)))})}_getRegionBoundary(I){const P=this._element.querySelectorAll(`[cdk-focus-region-${I}], [cdkFocusRegion${I}], [cdk-focus-${I}]`);return"start"==I?P.length?P[0]:this._getFirstTabbableElement(this._element):P.length?P[P.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(I){const P=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(P){if(!this._checker.isFocusable(P)){const oe=this._getFirstTabbableElement(P);return oe?.focus(I),!!oe}return P.focus(I),!0}return this.focusFirstTabbableElement(I)}focusFirstTabbableElement(I){const P=this._getRegionBoundary("start");return P&&P.focus(I),!!P}focusLastTabbableElement(I){const P=this._getRegionBoundary("end");return P&&P.focus(I),!!P}hasAttached(){return this._hasAttached}_getFirstTabbableElement(I){if(this._checker.isFocusable(I)&&this._checker.isTabbable(I))return I;const P=I.children;for(let oe=0;oe<P.length;oe++){const Be=P[oe].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(P[oe]):null;if(Be)return Be}return null}_getLastTabbableElement(I){if(this._checker.isFocusable(I)&&this._checker.isTabbable(I))return I;const P=I.children;for(let oe=P.length-1;oe>=0;oe--){const Be=P[oe].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(P[oe]):null;if(Be)return Be}return null}_createAnchor(){const I=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,I),I.classList.add("cdk-visually-hidden"),I.classList.add("cdk-focus-trap-anchor"),I.setAttribute("aria-hidden","true"),I}_toggleAnchorTabIndex(I,P){I?P.setAttribute("tabindex","0"):P.removeAttribute("tabindex")}toggleAnchors(I){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(I,this._startAnchor),this._toggleAnchorTabIndex(I,this._endAnchor))}_executeOnStable(I){this._ngZone.isStable?I():this._ngZone.onStable.pipe((0,He.q)(1)).subscribe(I)}}let we=(()=>{class _{constructor(P,oe,Be){this._checker=P,this._ngZone=oe,this._document=Be}create(P,oe=!1){return new St(P,this._checker,this._ngZone,this._document,oe)}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(In),c.LFG(c.R0b),c.LFG(r.K0))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Vt(_){return 0===_.buttons||0===_.offsetX&&0===_.offsetY}function wn(_){const I=_.touches&&_.touches[0]||_.changedTouches&&_.changedTouches[0];return!(!I||-1!==I.identifier||null!=I.radiusX&&1!==I.radiusX||null!=I.radiusY&&1!==I.radiusY)}const ln=new c.OlP("cdk-input-modality-detector-options"),xn={ignoreKeys:[ee.zL,ee.jx,ee.b2,ee.MW,ee.JU]},Oe=(0,A.i$)({passive:!0,capture:!0});let te=(()=>{class _{get mostRecentModality(){return this._modality.value}constructor(P,oe,Be,yt){this._platform=P,this._mostRecentTarget=null,this._modality=new se.X(null),this._lastTouchMs=0,this._onKeydown=Bt=>{this._options?.ignoreKeys?.some(hn=>hn===Bt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,A.sA)(Bt))},this._onMousedown=Bt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Vt(Bt)?"keyboard":"mouse"),this._mostRecentTarget=(0,A.sA)(Bt))},this._onTouchstart=Bt=>{wn(Bt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,A.sA)(Bt))},this._options={...xn,...yt},this.modalityDetected=this._modality.pipe(Ee(1)),this.modalityChanged=this.modalityDetected.pipe((0,Ne.x)()),P.isBrowser&&oe.runOutsideAngular(()=>{Be.addEventListener("keydown",this._onKeydown,Oe),Be.addEventListener("mousedown",this._onMousedown,Oe),Be.addEventListener("touchstart",this._onTouchstart,Oe)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Oe),document.removeEventListener("mousedown",this._onMousedown,Oe),document.removeEventListener("touchstart",this._onTouchstart,Oe))}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(A.t4),c.LFG(c.R0b),c.LFG(r.K0),c.LFG(ln,8))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const De=new c.OlP("cdk-focus-monitor-default-options"),qe=(0,A.i$)({passive:!0,capture:!0});let Ie=(()=>{class _{constructor(P,oe,Be,yt,Bt){this._ngZone=P,this._platform=oe,this._inputModalityDetector=Be,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 B.x,this._rootNodeFocusAndBlurListener=hn=>{for(let ht=(0,A.sA)(hn);ht;ht=ht.parentElement)"focus"===hn.type?this._onFocus(hn,ht):this._onBlur(hn,ht)},this._document=yt,this._detectionMode=Bt?.detectionMode||0}monitor(P,oe=!1){const Be=(0,ue.fI)(P);if(!this._platform.isBrowser||1!==Be.nodeType)return(0,J.of)(null);const yt=(0,A.kV)(Be)||this._getDocument(),Bt=this._elementInfo.get(Be);if(Bt)return oe&&(Bt.checkChildren=!0),Bt.subject;const hn={checkChildren:oe,subject:new B.x,rootNode:yt};return this._elementInfo.set(Be,hn),this._registerGlobalListeners(hn),hn.subject}stopMonitoring(P){const oe=(0,ue.fI)(P),Be=this._elementInfo.get(oe);Be&&(Be.subject.complete(),this._setClasses(oe),this._elementInfo.delete(oe),this._removeGlobalListeners(Be))}focusVia(P,oe,Be){const yt=(0,ue.fI)(P);yt===this._getDocument().activeElement?this._getClosestElementsInfo(yt).forEach(([hn,bn])=>this._originChanged(hn,oe,bn)):(this._setOrigin(oe),"function"==typeof yt.focus&&yt.focus(Be))}ngOnDestroy(){this._elementInfo.forEach((P,oe)=>this.stopMonitoring(oe))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(P){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(P)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:P&&this._isLastInteractionFromInputLabel(P)?"mouse":"program"}_shouldBeAttributedToTouch(P){return 1===this._detectionMode||!!P?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(P,oe){P.classList.toggle("cdk-focused",!!oe),P.classList.toggle("cdk-touch-focused","touch"===oe),P.classList.toggle("cdk-keyboard-focused","keyboard"===oe),P.classList.toggle("cdk-mouse-focused","mouse"===oe),P.classList.toggle("cdk-program-focused","program"===oe)}_setOrigin(P,oe=!1){this._ngZone.runOutsideAngular(()=>{this._origin=P,this._originFromTouchInteraction="touch"===P&&oe,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(P,oe){const Be=this._elementInfo.get(oe),yt=(0,A.sA)(P);!Be||!Be.checkChildren&&oe!==yt||this._originChanged(oe,this._getFocusOrigin(yt),Be)}_onBlur(P,oe){const Be=this._elementInfo.get(oe);!Be||Be.checkChildren&&P.relatedTarget instanceof Node&&oe.contains(P.relatedTarget)||(this._setClasses(oe),this._emitOrigin(Be,null))}_emitOrigin(P,oe){P.subject.observers.length&&this._ngZone.run(()=>P.subject.next(oe))}_registerGlobalListeners(P){if(!this._platform.isBrowser)return;const oe=P.rootNode,Be=this._rootNodeFocusListenerCount.get(oe)||0;Be||this._ngZone.runOutsideAngular(()=>{oe.addEventListener("focus",this._rootNodeFocusAndBlurListener,qe),oe.addEventListener("blur",this._rootNodeFocusAndBlurListener,qe)}),this._rootNodeFocusListenerCount.set(oe,Be+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Re.R)(this._stopInputModalityDetector)).subscribe(yt=>{this._setOrigin(yt,!0)}))}_removeGlobalListeners(P){const oe=P.rootNode;if(this._rootNodeFocusListenerCount.has(oe)){const Be=this._rootNodeFocusListenerCount.get(oe);Be>1?this._rootNodeFocusListenerCount.set(oe,Be-1):(oe.removeEventListener("focus",this._rootNodeFocusAndBlurListener,qe),oe.removeEventListener("blur",this._rootNodeFocusAndBlurListener,qe),this._rootNodeFocusListenerCount.delete(oe))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(P,oe,Be){this._setClasses(P,oe),this._emitOrigin(Be,oe),this._lastFocusOrigin=oe}_getClosestElementsInfo(P){const oe=[];return this._elementInfo.forEach((Be,yt)=>{(yt===P||Be.checkChildren&&yt.contains(P))&&oe.push([yt,Be])}),oe}_isLastInteractionFromInputLabel(P){const{_mostRecentTarget:oe,mostRecentModality:Be}=this._inputModalityDetector;if("mouse"!==Be||!oe||oe===P||"INPUT"!==P.nodeName&&"TEXTAREA"!==P.nodeName||P.disabled)return!1;const yt=P.labels;if(yt)for(let Bt=0;Bt<yt.length;Bt++)if(yt[Bt].contains(oe))return!0;return!1}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(c.R0b),c.LFG(A.t4),c.LFG(te),c.LFG(r.K0,8),c.LFG(De,8))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Wt="cdk-high-contrast-black-on-white",tn="cdk-high-contrast-white-on-black",he="cdk-high-contrast-active";let k=(()=>{class _{constructor(P,oe){this._platform=P,this._document=oe,this._breakpointSubscription=(0,c.f3M)(We).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const P=this._document.createElement("div");P.style.backgroundColor="rgb(1,2,3)",P.style.position="absolute",this._document.body.appendChild(P);const oe=this._document.defaultView||window,Be=oe&&oe.getComputedStyle?oe.getComputedStyle(P):null,yt=(Be&&Be.backgroundColor||"").replace(/ /g,"");switch(P.remove(),yt){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 P=this._document.body.classList;P.remove(he,Wt,tn),this._hasCheckedHighContrastMode=!0;const oe=this.getHighContrastMode();1===oe?P.add(he,Wt):2===oe&&P.add(he,tn)}}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(A.t4),c.LFG(r.K0))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),p=(()=>{class _{constructor(P){P._applyBodyHighContrastModeCssClasses()}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(k))},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({imports:[be]}),_})()},445:(Ct,Te,g)=>{g.d(Te,{Is:()=>J,vT:()=>ne});var r=g(4650),c=g(6895);const A=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function B(){return(0,r.f3M)(c.K0)}}),X=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let J=(()=>{class j{constructor(le){this.value="ltr",this.change=new r.vpe,le&&(this.value=function se(j){const q=j?.toLowerCase()||"";return"auto"===q&&typeof navigator<"u"&&navigator?.language?X.test(navigator.language)?"rtl":"ltr":"rtl"===q?"rtl":"ltr"}((le.body?le.body.dir:null)||(le.documentElement?le.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return j.\u0275fac=function(le){return new(le||j)(r.LFG(A,8))},j.\u0275prov=r.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),ne=(()=>{class j{}return j.\u0275fac=function(le){return new(le||j)},j.\u0275mod=r.oAB({type:j}),j.\u0275inj=r.cJS({}),j})()},1281:(Ct,Te,g)=>{g.d(Te,{Eq:()=>X,HM:()=>se,Ig:()=>c,du:()=>ee,fI:()=>J,su:()=>A});var r=g(4650);function c(ne){return null!=ne&&"false"!=`${ne}`}function A(ne,j=0){return function B(ne){return!isNaN(parseFloat(ne))&&!isNaN(Number(ne))}(ne)?Number(ne):j}function X(ne){return Array.isArray(ne)?ne:[ne]}function se(ne){return null==ne?"":"string"==typeof ne?ne:`${ne}px`}function J(ne){return ne instanceof r.SBq?ne.nativeElement:ne}function ee(ne,j=/\s+/){const q=[];if(null!=ne){const le=Array.isArray(ne)?ne:`${ne}`.split(j);for(const He of le){const Ee=`${He}`.trim();Ee&&q.push(Ee)}}return q}},9521:(Ct,Te,g)=>{g.d(Te,{A:()=>Ce,JH:()=>et,JU:()=>se,K5:()=>X,Ku:()=>He,LH:()=>ke,L_:()=>le,MW:()=>lt,Mf:()=>A,SV:()=>Fe,Sd:()=>Re,VM:()=>Ee,Vb:()=>ei,Z:()=>we,aO:()=>at,b2:()=>Zn,hY:()=>q,jx:()=>J,oh:()=>ue,uR:()=>Ne,xE:()=>Ue,zL:()=>ee});const A=9,X=13,se=16,J=17,ee=18,q=27,le=32,He=33,Ee=34,Ne=35,Re=36,ue=37,ke=38,Fe=39,et=40,Ue=48,at=57,Ce=65,we=90,lt=91,Zn=224;function ei(Rn,...di){return di.length?di.some(Ai=>Rn[Ai]):Rn.altKey||Rn.shiftKey||Rn.ctrlKey||Rn.metaKey}},8184:(Ct,Te,g)=>{g.d(Te,{Iu:()=>We,U8:()=>Pn,X_:()=>de,Xj:()=>Mt,aV:()=>xt});var r=g(7376),c=g(6895),A=g(4650),B=g(1281),X=g(3353),se=g(445),J=g(4080),ee=g(7579),ne=g(727),j=g(6451),q=g(5698),le=g(2722);const He=(0,X.Mq)();class Ee{constructor(W,ae){this._viewportRuler=W,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}attach(){}enable(){if(this._canBeEnabled()){const W=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=W.style.left||"",this._previousHTMLStyles.top=W.style.top||"",W.style.left=(0,B.HM)(-this._previousScrollPosition.left),W.style.top=(0,B.HM)(-this._previousScrollPosition.top),W.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const W=this._document.documentElement,Se=W.style,nt=this._document.body.style,ct=Se.scrollBehavior||"",At=nt.scrollBehavior||"";this._isEnabled=!1,Se.left=this._previousHTMLStyles.left,Se.top=this._previousHTMLStyles.top,W.classList.remove("cdk-global-scrollblock"),He&&(Se.scrollBehavior=nt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),He&&(Se.scrollBehavior=ct,nt.scrollBehavior=At)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,Se=this._viewportRuler.getViewportSize();return ae.scrollHeight>Se.height||ae.scrollWidth>Se.width}}class Re{constructor(W,ae,Se,nt){this._scrollDispatcher=W,this._ngZone=ae,this._viewportRuler=Se,this._config=nt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(W){this._overlayRef=W}enable(){if(this._scrollSubscription)return;const W=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=W.subscribe(()=>{const ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=W.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ue{enable(){}disable(){}attach(){}}function ke(tt,W){return W.some(ae=>tt.bottom<ae.top||tt.top>ae.bottom||tt.right<ae.left||tt.left>ae.right)}function Fe(tt,W){return W.some(ae=>tt.top<ae.top||tt.bottom>ae.bottom||tt.left<ae.left||tt.right>ae.right)}class et{constructor(W,ae,Se,nt){this._scrollDispatcher=W,this._viewportRuler=ae,this._ngZone=Se,this._config=nt,this._scrollSubscription=null}attach(W){this._overlayRef=W}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 ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Se,height:nt}=this._viewportRuler.getViewportSize();ke(ae,[{width:Se,height:nt,bottom:nt,right:Se,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 be=(()=>{class tt{constructor(ae,Se,nt,ct){this._scrollDispatcher=ae,this._viewportRuler=Se,this._ngZone=nt,this.noop=()=>new ue,this.close=At=>new Re(this._scrollDispatcher,this._ngZone,this._viewportRuler,At),this.block=()=>new Ee(this._viewportRuler,this._document),this.reposition=At=>new et(this._scrollDispatcher,this._viewportRuler,this._ngZone,At),this._document=ct}}return tt.\u0275fac=function(ae){return new(ae||tt)(A.LFG(r.mF),A.LFG(r.rL),A.LFG(A.R0b),A.LFG(c.K0))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})();class de{constructor(W){if(this.scrollStrategy=new ue,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,W){const ae=Object.keys(W);for(const Se of ae)void 0!==W[Se]&&(this[Se]=W[Se])}}}class Ue{constructor(W,ae){this.connectionPair=W,this.scrollableViewProperties=ae}}let dt=(()=>{class tt{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const Se=this._attachedOverlays.indexOf(ae);Se>-1&&this._attachedOverlays.splice(Se,1),0===this._attachedOverlays.length&&this.detach()}}return tt.\u0275fac=function(ae){return new(ae||tt)(A.LFG(c.K0))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),vt=(()=>{class tt extends dt{constructor(ae,Se){super(ae),this._ngZone=Se,this._keydownListener=nt=>{const ct=this._attachedOverlays;for(let At=ct.length-1;At>-1;At--)if(ct[At]._keydownEvents.observers.length>0){const Ht=ct[At]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ht.next(nt)):Ht.next(nt);break}}}add(ae){super.add(ae),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 tt.\u0275fac=function(ae){return new(ae||tt)(A.LFG(c.K0),A.LFG(A.R0b,8))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Lt=(()=>{class tt extends dt{constructor(ae,Se,nt){super(ae),this._platform=Se,this._ngZone=nt,this._cursorStyleIsSet=!1,this._pointerDownListener=ct=>{this._pointerDownEventTarget=(0,X.sA)(ct)},this._clickListener=ct=>{const At=(0,X.sA)(ct),Ht="click"===ct.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:At;this._pointerDownEventTarget=null;const Pt=this._attachedOverlays.slice();for(let St=Pt.length-1;St>-1;St--){const we=Pt[St];if(we._outsidePointerEvents.observers.length<1||!we.hasAttached())continue;if(we.overlayElement.contains(At)||we.overlayElement.contains(Ht))break;const lt=we._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>lt.next(ct)):lt.next(ct)}}}add(ae){if(super.add(ae),!this._isAttached){const Se=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Se)):this._addEventListeners(Se),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Se.style.cursor,Se.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ae=this._document.body;ae.removeEventListener("pointerdown",this._pointerDownListener,!0),ae.removeEventListener("click",this._clickListener,!0),ae.removeEventListener("auxclick",this._clickListener,!0),ae.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ae.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ae){ae.addEventListener("pointerdown",this._pointerDownListener,!0),ae.addEventListener("click",this._clickListener,!0),ae.addEventListener("auxclick",this._clickListener,!0),ae.addEventListener("contextmenu",this._clickListener,!0)}}return tt.\u0275fac=function(ae){return new(ae||tt)(A.LFG(c.K0),A.LFG(X.t4),A.LFG(A.R0b,8))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Mt=(()=>{class tt{constructor(ae,Se){this._platform=Se,this._document=ae}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ae="cdk-overlay-container";if(this._platform.isBrowser||(0,X.Oy)()){const nt=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let ct=0;ct<nt.length;ct++)nt[ct].remove()}const Se=this._document.createElement("div");Se.classList.add(ae),(0,X.Oy)()?Se.setAttribute("platform","test"):this._platform.isBrowser||Se.setAttribute("platform","server"),this._document.body.appendChild(Se),this._containerElement=Se}}return tt.\u0275fac=function(ae){return new(ae||tt)(A.LFG(c.K0),A.LFG(X.t4))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})();class We{constructor(W,ae,Se,nt,ct,At,Ht,Pt,St,we=!1){this._portalOutlet=W,this._host=ae,this._pane=Se,this._config=nt,this._ngZone=ct,this._keyboardDispatcher=At,this._document=Ht,this._location=Pt,this._outsideClickDispatcher=St,this._animationsDisabled=we,this._backdropElement=null,this._backdropClick=new ee.x,this._attachments=new ee.x,this._detachments=new ee.x,this._locationChanges=ne.w0.EMPTY,this._backdropClickHandler=lt=>this._backdropClick.next(lt),this._backdropTransitionendHandler=lt=>{this._disposeBackdrop(lt.target)},this._keydownEvents=new ee.x,this._outsidePointerEvents=new ee.x,nt.scrollStrategy&&(this._scrollStrategy=nt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=nt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(W){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ae=this._portalOutlet.attach(W);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,q.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 ae?.onDestroy&&ae.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ae}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const W=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),W}dispose(){const W=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,W&&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(W){W!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=W,this.hasAttached()&&(W.attach(this),this.updatePosition()))}updateSize(W){this._config={...this._config,...W},this._updateElementSize()}setDirection(W){this._config={...this._config,direction:W},this._updateElementDirection()}addPanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!0)}removePanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!1)}getDirection(){const W=this._config.direction;return W?"string"==typeof W?W:W.value:"ltr"}updateScrollStrategy(W){W!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=W,this.hasAttached()&&(W.attach(this),W.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const W=this._pane.style;W.width=(0,B.HM)(this._config.width),W.height=(0,B.HM)(this._config.height),W.minWidth=(0,B.HM)(this._config.minWidth),W.minHeight=(0,B.HM)(this._config.minHeight),W.maxWidth=(0,B.HM)(this._config.maxWidth),W.maxHeight=(0,B.HM)(this._config.maxHeight)}_togglePointerEvents(W){this._pane.style.pointerEvents=W?"":"none"}_attachBackdrop(){const W="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(W)})}):this._backdropElement.classList.add(W)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const W=this._backdropElement;if(W){if(this._animationsDisabled)return void this._disposeBackdrop(W);W.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{W.addEventListener("transitionend",this._backdropTransitionendHandler)}),W.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(W)},500))}}_toggleClasses(W,ae,Se){const nt=(0,B.Eq)(ae||[]).filter(ct=>!!ct);nt.length&&(Se?W.classList.add(...nt):W.classList.remove(...nt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const W=this._ngZone.onStable.pipe((0,le.R)((0,j.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()),W.unsubscribe())})})}_disposeScrollStrategy(){const W=this._scrollStrategy;W&&(W.disable(),W.detach&&W.detach())}_disposeBackdrop(W){W&&(W.removeEventListener("click",this._backdropClickHandler),W.removeEventListener("transitionend",this._backdropTransitionendHandler),W.remove(),this._backdropElement===W&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const rt="cdk-overlay-connected-position-bounding-box",at=/([A-Za-z%]+)$/;class mt{get positions(){return this._preferredPositions}constructor(W,ae,Se,nt,ct){this._viewportRuler=ae,this._document=Se,this._platform=nt,this._overlayContainer=ct,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 ee.x,this._resizeSubscription=ne.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(W)}attach(W){this._validatePositions(),W.hostElement.classList.add(rt),this._overlayRef=W,this._boundingBox=W.hostElement,this._pane=W.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 W=this._originRect,ae=this._overlayRect,Se=this._viewportRect,nt=this._containerRect,ct=[];let At;for(let Ht of this._preferredPositions){let Pt=this._getOriginPoint(W,nt,Ht),St=this._getOverlayPoint(Pt,ae,Ht),we=this._getOverlayFit(St,ae,Se,Ht);if(we.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ht,Pt);this._canFitWithFlexibleDimensions(we,St,Se)?ct.push({position:Ht,origin:Pt,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(Pt,Ht)}):(!At||At.overlayFit.visibleArea<we.visibleArea)&&(At={overlayFit:we,overlayPoint:St,originPoint:Pt,position:Ht,overlayRect:ae})}if(ct.length){let Ht=null,Pt=-1;for(const St of ct){const we=St.boundingBoxRect.width*St.boundingBoxRect.height*(St.position.weight||1);we>Pt&&(Pt=we,Ht=St)}return this._isPushed=!1,void this._applyPosition(Ht.position,Ht.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(At.position,At.originPoint);this._applyPosition(At.position,At.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Et(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const W=this._lastPosition;if(W){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ae=this._getOriginPoint(this._originRect,this._containerRect,W);this._applyPosition(W,ae)}else this.apply()}withScrollableContainers(W){return this._scrollables=W,this}withPositions(W){return this._preferredPositions=W,-1===W.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(W){return this._viewportMargin=W,this}withFlexibleDimensions(W=!0){return this._hasFlexibleDimensions=W,this}withGrowAfterOpen(W=!0){return this._growAfterOpen=W,this}withPush(W=!0){return this._canPush=W,this}withLockedPosition(W=!0){return this._positionLocked=W,this}setOrigin(W){return this._origin=W,this}withDefaultOffsetX(W){return this._offsetX=W,this}withDefaultOffsetY(W){return this._offsetY=W,this}withTransformOriginOn(W){return this._transformOriginSelector=W,this}_getOriginPoint(W,ae,Se){let nt,ct;if("center"==Se.originX)nt=W.left+W.width/2;else{const At=this._isRtl()?W.right:W.left,Ht=this._isRtl()?W.left:W.right;nt="start"==Se.originX?At:Ht}return ae.left<0&&(nt-=ae.left),ct="center"==Se.originY?W.top+W.height/2:"top"==Se.originY?W.top:W.bottom,ae.top<0&&(ct-=ae.top),{x:nt,y:ct}}_getOverlayPoint(W,ae,Se){let nt,ct;return nt="center"==Se.overlayX?-ae.width/2:"start"===Se.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,ct="center"==Se.overlayY?-ae.height/2:"top"==Se.overlayY?0:-ae.height,{x:W.x+nt,y:W.y+ct}}_getOverlayFit(W,ae,Se,nt){const ct=It(ae);let{x:At,y:Ht}=W,Pt=this._getOffset(nt,"x"),St=this._getOffset(nt,"y");Pt&&(At+=Pt),St&&(Ht+=St);let fe=0-Ht,Ye=Ht+ct.height-Se.height,Dt=this._subtractOverflows(ct.width,0-At,At+ct.width-Se.width),Ft=this._subtractOverflows(ct.height,fe,Ye),an=Dt*Ft;return{visibleArea:an,isCompletelyWithinViewport:ct.width*ct.height===an,fitsInViewportVertically:Ft===ct.height,fitsInViewportHorizontally:Dt==ct.width}}_canFitWithFlexibleDimensions(W,ae,Se){if(this._hasFlexibleDimensions){const nt=Se.bottom-ae.y,ct=Se.right-ae.x,At=bt(this._overlayRef.getConfig().minHeight),Ht=bt(this._overlayRef.getConfig().minWidth);return(W.fitsInViewportVertically||null!=At&&At<=nt)&&(W.fitsInViewportHorizontally||null!=Ht&&Ht<=ct)}return!1}_pushOverlayOnScreen(W,ae,Se){if(this._previousPushAmount&&this._positionLocked)return{x:W.x+this._previousPushAmount.x,y:W.y+this._previousPushAmount.y};const nt=It(ae),ct=this._viewportRect,At=Math.max(W.x+nt.width-ct.width,0),Ht=Math.max(W.y+nt.height-ct.height,0),Pt=Math.max(ct.top-Se.top-W.y,0),St=Math.max(ct.left-Se.left-W.x,0);let we=0,lt=0;return we=nt.width<=ct.width?St||-At:W.x<this._viewportMargin?ct.left-Se.left-W.x:0,lt=nt.height<=ct.height?Pt||-Ht:W.y<this._viewportMargin?ct.top-Se.top-W.y:0,this._previousPushAmount={x:we,y:lt},{x:W.x+we,y:W.y+lt}}_applyPosition(W,ae){if(this._setTransformOrigin(W),this._setOverlayElementStyles(ae,W),this._setBoundingBoxStyles(ae,W),W.panelClass&&this._addPanelClasses(W.panelClass),this._lastPosition=W,this._positionChanges.observers.length){const Se=this._getScrollVisibility(),nt=new Ue(W,Se);this._positionChanges.next(nt)}this._isInitialRender=!1}_setTransformOrigin(W){if(!this._transformOriginSelector)return;const ae=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Se,nt=W.overlayY;Se="center"===W.overlayX?"center":this._isRtl()?"start"===W.overlayX?"right":"left":"start"===W.overlayX?"left":"right";for(let ct=0;ct<ae.length;ct++)ae[ct].style.transformOrigin=`${Se} ${nt}`}_calculateBoundingBoxRect(W,ae){const Se=this._viewportRect,nt=this._isRtl();let ct,At,Ht,we,lt,fe;if("top"===ae.overlayY)At=W.y,ct=Se.height-At+this._viewportMargin;else if("bottom"===ae.overlayY)Ht=Se.height-W.y+2*this._viewportMargin,ct=Se.height-Ht+this._viewportMargin;else{const Ye=Math.min(Se.bottom-W.y+Se.top,W.y),Dt=this._lastBoundingBoxSize.height;ct=2*Ye,At=W.y-Ye,ct>Dt&&!this._isInitialRender&&!this._growAfterOpen&&(At=W.y-Dt/2)}if("end"===ae.overlayX&&!nt||"start"===ae.overlayX&&nt)fe=Se.width-W.x+this._viewportMargin,we=W.x-this._viewportMargin;else if("start"===ae.overlayX&&!nt||"end"===ae.overlayX&&nt)lt=W.x,we=Se.right-W.x;else{const Ye=Math.min(Se.right-W.x+Se.left,W.x),Dt=this._lastBoundingBoxSize.width;we=2*Ye,lt=W.x-Ye,we>Dt&&!this._isInitialRender&&!this._growAfterOpen&&(lt=W.x-Dt/2)}return{top:At,left:lt,bottom:Ht,right:fe,width:we,height:ct}}_setBoundingBoxStyles(W,ae){const Se=this._calculateBoundingBoxRect(W,ae);!this._isInitialRender&&!this._growAfterOpen&&(Se.height=Math.min(Se.height,this._lastBoundingBoxSize.height),Se.width=Math.min(Se.width,this._lastBoundingBoxSize.width));const nt={};if(this._hasExactPosition())nt.top=nt.left="0",nt.bottom=nt.right=nt.maxHeight=nt.maxWidth="",nt.width=nt.height="100%";else{const ct=this._overlayRef.getConfig().maxHeight,At=this._overlayRef.getConfig().maxWidth;nt.height=(0,B.HM)(Se.height),nt.top=(0,B.HM)(Se.top),nt.bottom=(0,B.HM)(Se.bottom),nt.width=(0,B.HM)(Se.width),nt.left=(0,B.HM)(Se.left),nt.right=(0,B.HM)(Se.right),nt.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",nt.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",ct&&(nt.maxHeight=(0,B.HM)(ct)),At&&(nt.maxWidth=(0,B.HM)(At))}this._lastBoundingBoxSize=Se,Et(this._boundingBox.style,nt)}_resetBoundingBoxStyles(){Et(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Et(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(W,ae){const Se={},nt=this._hasExactPosition(),ct=this._hasFlexibleDimensions,At=this._overlayRef.getConfig();if(nt){const we=this._viewportRuler.getViewportScrollPosition();Et(Se,this._getExactOverlayY(ae,W,we)),Et(Se,this._getExactOverlayX(ae,W,we))}else Se.position="static";let Ht="",Pt=this._getOffset(ae,"x"),St=this._getOffset(ae,"y");Pt&&(Ht+=`translateX(${Pt}px) `),St&&(Ht+=`translateY(${St}px)`),Se.transform=Ht.trim(),At.maxHeight&&(nt?Se.maxHeight=(0,B.HM)(At.maxHeight):ct&&(Se.maxHeight="")),At.maxWidth&&(nt?Se.maxWidth=(0,B.HM)(At.maxWidth):ct&&(Se.maxWidth="")),Et(this._pane.style,Se)}_getExactOverlayY(W,ae,Se){let nt={top:"",bottom:""},ct=this._getOverlayPoint(ae,this._overlayRect,W);return this._isPushed&&(ct=this._pushOverlayOnScreen(ct,this._overlayRect,Se)),"bottom"===W.overlayY?nt.bottom=this._document.documentElement.clientHeight-(ct.y+this._overlayRect.height)+"px":nt.top=(0,B.HM)(ct.y),nt}_getExactOverlayX(W,ae,Se){let At,nt={left:"",right:""},ct=this._getOverlayPoint(ae,this._overlayRect,W);return this._isPushed&&(ct=this._pushOverlayOnScreen(ct,this._overlayRect,Se)),At=this._isRtl()?"end"===W.overlayX?"left":"right":"end"===W.overlayX?"right":"left","right"===At?nt.right=this._document.documentElement.clientWidth-(ct.x+this._overlayRect.width)+"px":nt.left=(0,B.HM)(ct.x),nt}_getScrollVisibility(){const W=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),Se=this._scrollables.map(nt=>nt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Fe(W,Se),isOriginOutsideView:ke(W,Se),isOverlayClipped:Fe(ae,Se),isOverlayOutsideView:ke(ae,Se)}}_subtractOverflows(W,...ae){return ae.reduce((Se,nt)=>Se-Math.max(nt,0),W)}_getNarrowedViewportRect(){const W=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,Se=this._viewportRuler.getViewportScrollPosition();return{top:Se.top+this._viewportMargin,left:Se.left+this._viewportMargin,right:Se.left+W-this._viewportMargin,bottom:Se.top+ae-this._viewportMargin,width:W-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(W,ae){return"x"===ae?null==W.offsetX?this._offsetX:W.offsetX:null==W.offsetY?this._offsetY:W.offsetY}_validatePositions(){}_addPanelClasses(W){this._pane&&(0,B.Eq)(W).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(W=>{this._pane.classList.remove(W)}),this._appliedPanelClasses=[])}_getOriginRect(){const W=this._origin;if(W instanceof A.SBq)return W.nativeElement.getBoundingClientRect();if(W instanceof Element)return W.getBoundingClientRect();const ae=W.width||0,Se=W.height||0;return{top:W.y,bottom:W.y+Se,left:W.x,right:W.x+ae,height:Se,width:ae}}}function Et(tt,W){for(let ae in W)W.hasOwnProperty(ae)&&(tt[ae]=W[ae]);return tt}function bt(tt){if("number"!=typeof tt&&null!=tt){const[W,ae]=tt.split(at);return ae&&"px"!==ae?null:parseFloat(W)}return tt||null}function It(tt){return{top:Math.floor(tt.top),right:Math.floor(tt.right),bottom:Math.floor(tt.bottom),left:Math.floor(tt.left),width:Math.floor(tt.width),height:Math.floor(tt.height)}}const L="cdk-global-overlay-wrapper";class ie{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(W){const ae=W.getConfig();this._overlayRef=W,this._width&&!ae.width&&W.updateSize({width:this._width}),this._height&&!ae.height&&W.updateSize({height:this._height}),W.hostElement.classList.add(L),this._isDisposed=!1}top(W=""){return this._bottomOffset="",this._topOffset=W,this._alignItems="flex-start",this}left(W=""){return this._xOffset=W,this._xPosition="left",this}bottom(W=""){return this._topOffset="",this._bottomOffset=W,this._alignItems="flex-end",this}right(W=""){return this._xOffset=W,this._xPosition="right",this}start(W=""){return this._xOffset=W,this._xPosition="start",this}end(W=""){return this._xOffset=W,this._xPosition="end",this}width(W=""){return this._overlayRef?this._overlayRef.updateSize({width:W}):this._width=W,this}height(W=""){return this._overlayRef?this._overlayRef.updateSize({height:W}):this._height=W,this}centerHorizontally(W=""){return this.left(W),this._xPosition="center",this}centerVertically(W=""){return this.top(W),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const W=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement.style,Se=this._overlayRef.getConfig(),{width:nt,height:ct,maxWidth:At,maxHeight:Ht}=Se,Pt=!("100%"!==nt&&"100vw"!==nt||At&&"100%"!==At&&"100vw"!==At),St=!("100%"!==ct&&"100vh"!==ct||Ht&&"100%"!==Ht&&"100vh"!==Ht),we=this._xPosition,lt=this._xOffset,fe="rtl"===this._overlayRef.getConfig().direction;let Ye="",Dt="",Ft="";Pt?Ft="flex-start":"center"===we?(Ft="center",fe?Dt=lt:Ye=lt):fe?"left"===we||"end"===we?(Ft="flex-end",Ye=lt):("right"===we||"start"===we)&&(Ft="flex-start",Dt=lt):"left"===we||"start"===we?(Ft="flex-start",Ye=lt):("right"===we||"end"===we)&&(Ft="flex-end",Dt=lt),W.position=this._cssPosition,W.marginLeft=Pt?"0":Ye,W.marginTop=St?"0":this._topOffset,W.marginBottom=this._bottomOffset,W.marginRight=Pt?"0":Dt,ae.justifyContent=Ft,ae.alignItems=St?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const W=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,Se=ae.style;ae.classList.remove(L),Se.justifyContent=Se.alignItems=W.marginTop=W.marginBottom=W.marginLeft=W.marginRight=W.position="",this._overlayRef=null,this._isDisposed=!0}}let Ve=(()=>{class tt{constructor(ae,Se,nt,ct){this._viewportRuler=ae,this._document=Se,this._platform=nt,this._overlayContainer=ct}global(){return new ie}flexibleConnectedTo(ae){return new mt(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return tt.\u0275fac=function(ae){return new(ae||tt)(A.LFG(r.rL),A.LFG(c.K0),A.LFG(X.t4),A.LFG(Mt))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),ut=0,xt=(()=>{class tt{constructor(ae,Se,nt,ct,At,Ht,Pt,St,we,lt,fe,Ye){this.scrollStrategies=ae,this._overlayContainer=Se,this._componentFactoryResolver=nt,this._positionBuilder=ct,this._keyboardDispatcher=At,this._injector=Ht,this._ngZone=Pt,this._document=St,this._directionality=we,this._location=lt,this._outsideClickDispatcher=fe,this._animationsModuleType=Ye}create(ae){const Se=this._createHostElement(),nt=this._createPaneElement(Se),ct=this._createPortalOutlet(nt),At=new de(ae);return At.direction=At.direction||this._directionality.value,new We(ct,Se,nt,At,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ae){const Se=this._document.createElement("div");return Se.id="cdk-overlay-"+ut++,Se.classList.add("cdk-overlay-pane"),ae.appendChild(Se),Se}_createHostElement(){const ae=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ae),ae}_createPortalOutlet(ae){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new J.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return tt.\u0275fac=function(ae){return new(ae||tt)(A.LFG(be),A.LFG(Mt),A.LFG(A._Vd),A.LFG(Ve),A.LFG(vt),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(c.K0),A.LFG(se.Is),A.LFG(c.Ye),A.LFG(Lt),A.LFG(A.QbO,8))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})();const Fn={provide:new A.OlP("cdk-connected-overlay-scroll-strategy"),deps:[xt],useFactory:function In(tt){return()=>tt.scrollStrategies.reposition()}};let Pn=(()=>{class tt{}return tt.\u0275fac=function(ae){return new(ae||tt)},tt.\u0275mod=A.oAB({type:tt}),tt.\u0275inj=A.cJS({providers:[xt,Fn],imports:[se.vT,J.eL,r.Cl,r.Cl]}),tt})()},3353:(Ct,Te,g)=>{g.d(Te,{Mq:()=>Ee,Oy:()=>be,_i:()=>Ne,ht:()=>Fe,i$:()=>q,kV:()=>ke,sA:()=>et,t4:()=>B});var r=g(4650),c=g(6895);let A;try{A=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A=!1}let ne,le,He,Re,B=(()=>{class de{constructor(ve){this._platformId=ve,this.isBrowser=this._platformId?(0,c.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&&!A)&&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 de.\u0275fac=function(ve){return new(ve||de)(r.LFG(r.Lbi))},de.\u0275prov=r.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();function q(de){return function j(){if(null==ne&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ne=!0}))}finally{ne=ne||!1}return ne}()?de:!!de.capture}function Ee(){if(null==He){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return He=!1,He;if("scrollBehavior"in document.documentElement.style)He=!0;else{const de=Element.prototype.scrollTo;He=!!de&&!/\{\s*\[native code\]\s*\}/.test(de.toString())}}return He}function Ne(){if("object"!=typeof document||!document)return 0;if(null==le){const de=document.createElement("div"),ye=de.style;de.dir="rtl",ye.width="1px",ye.overflow="auto",ye.visibility="hidden",ye.pointerEvents="none",ye.position="absolute";const ve=document.createElement("div"),Ue=ve.style;Ue.width="2px",Ue.height="1px",de.appendChild(ve),document.body.appendChild(de),le=0,0===de.scrollLeft&&(de.scrollLeft=1,le=0===de.scrollLeft?1:2),de.remove()}return le}function ke(de){if(function ue(){if(null==Re){const de=typeof document<"u"?document.head:null;Re=!(!de||!de.createShadowRoot&&!de.attachShadow)}return Re}()){const ye=de.getRootNode?de.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ye instanceof ShadowRoot)return ye}return null}function Fe(){let de=typeof document<"u"&&document?document.activeElement:null;for(;de&&de.shadowRoot;){const ye=de.shadowRoot.activeElement;if(ye===de)break;de=ye}return de}function et(de){return de.composedPath?de.composedPath()[0]:de.target}function be(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(Ct,Te,g)=>{g.d(Te,{C5:()=>j,Pl:()=>Fe,UE:()=>q,eL:()=>be,en:()=>He,u0:()=>Ne});var r=g(4650),c=g(6895);class ne{attach(ve){return this._attachedHost=ve,ve.attach(this)}detach(){let ve=this._attachedHost;null!=ve&&(this._attachedHost=null,ve.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ve){this._attachedHost=ve}}class j extends ne{constructor(ve,Ue,xe,ze,dt){super(),this.component=ve,this.viewContainerRef=Ue,this.injector=xe,this.componentFactoryResolver=ze,this.projectableNodes=dt}}class q extends ne{constructor(ve,Ue,xe,ze){super(),this.templateRef=ve,this.viewContainerRef=Ue,this.context=xe,this.injector=ze}get origin(){return this.templateRef.elementRef}attach(ve,Ue=this.context){return this.context=Ue,super.attach(ve)}detach(){return this.context=void 0,super.detach()}}class le extends ne{constructor(ve){super(),this.element=ve instanceof r.SBq?ve.nativeElement:ve}}class He{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ve){return ve instanceof j?(this._attachedPortal=ve,this.attachComponentPortal(ve)):ve instanceof q?(this._attachedPortal=ve,this.attachTemplatePortal(ve)):this.attachDomPortal&&ve instanceof le?(this._attachedPortal=ve,this.attachDomPortal(ve)):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(ve){this._disposeFn=ve}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Ne extends He{constructor(ve,Ue,xe,ze,dt){super(),this.outletElement=ve,this._componentFactoryResolver=Ue,this._appRef=xe,this._defaultInjector=ze,this.attachDomPortal=vt=>{const Lt=vt.element,Mt=this._document.createComment("dom-portal");Lt.parentNode.insertBefore(Mt,Lt),this.outletElement.appendChild(Lt),this._attachedPortal=vt,super.setDisposeFn(()=>{Mt.parentNode&&Mt.parentNode.replaceChild(Lt,Mt)})},this._document=dt}attachComponentPortal(ve){const xe=(ve.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ve.component);let ze;return ve.viewContainerRef?(ze=ve.viewContainerRef.createComponent(xe,ve.viewContainerRef.length,ve.injector||ve.viewContainerRef.injector,ve.projectableNodes||void 0),this.setDisposeFn(()=>ze.destroy())):(ze=xe.create(ve.injector||this._defaultInjector||r.zs3.NULL),this._appRef.attachView(ze.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ze.hostView),ze.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ze)),this._attachedPortal=ve,ze}attachTemplatePortal(ve){let Ue=ve.viewContainerRef,xe=Ue.createEmbeddedView(ve.templateRef,ve.context,{injector:ve.injector});return xe.rootNodes.forEach(ze=>this.outletElement.appendChild(ze)),xe.detectChanges(),this.setDisposeFn(()=>{let ze=Ue.indexOf(xe);-1!==ze&&Ue.remove(ze)}),this._attachedPortal=ve,xe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ve){return ve.hostView.rootNodes[0]}}let Fe=(()=>{class ye extends He{constructor(Ue,xe,ze){super(),this._componentFactoryResolver=Ue,this._viewContainerRef=xe,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=dt=>{const vt=dt.element,Lt=this._document.createComment("dom-portal");dt.setAttachedHost(this),vt.parentNode.insertBefore(Lt,vt),this._getRootNode().appendChild(vt),this._attachedPortal=dt,super.setDisposeFn(()=>{Lt.parentNode&&Lt.parentNode.replaceChild(vt,Lt)})},this._document=ze}get portal(){return this._attachedPortal}set portal(Ue){this.hasAttached()&&!Ue&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ue&&super.attach(Ue),this._attachedPortal=Ue||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Ue){Ue.setAttachedHost(this);const xe=null!=Ue.viewContainerRef?Ue.viewContainerRef:this._viewContainerRef,dt=(Ue.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ue.component),vt=xe.createComponent(dt,xe.length,Ue.injector||xe.injector,Ue.projectableNodes||void 0);return xe!==this._viewContainerRef&&this._getRootNode().appendChild(vt.hostView.rootNodes[0]),super.setDisposeFn(()=>vt.destroy()),this._attachedPortal=Ue,this._attachedRef=vt,this.attached.emit(vt),vt}attachTemplatePortal(Ue){Ue.setAttachedHost(this);const xe=this._viewContainerRef.createEmbeddedView(Ue.templateRef,Ue.context,{injector:Ue.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ue,this._attachedRef=xe,this.attached.emit(xe),xe}_getRootNode(){const Ue=this._viewContainerRef.element.nativeElement;return Ue.nodeType===Ue.ELEMENT_NODE?Ue:Ue.parentNode}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(c.K0))},ye.\u0275dir=r.lG2({type:ye,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),ye})(),be=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275mod=r.oAB({type:ye}),ye.\u0275inj=r.cJS({}),ye})()},7376:(Ct,Te,g)=>{g.d(Te,{Cl:()=>It,ZD:()=>bt,mF:()=>ve,rL:()=>ze});var r=g(1281),c=g(4650),A=g(7579),B=g(9646),X=g(9751),se=g(4968),J=g(6406),ee=g(3101),ne=g(727),j=g(3601),q=g(9300),le=g(2722),He=g(8675),Ee=g(3353),Ne=g(6895),Re=g(445);const ue=["contentWrapper"],ke=["*"],Fe=new c.OlP("VIRTUAL_SCROLL_STRATEGY");let ve=(()=>{class Ce{constructor(L,ie,Ve){this._ngZone=L,this._platform=ie,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ve}register(L){this.scrollContainers.has(L)||this.scrollContainers.set(L,L.elementScrolled().subscribe(()=>this._scrolled.next(L)))}deregister(L){const ie=this.scrollContainers.get(L);ie&&(ie.unsubscribe(),this.scrollContainers.delete(L))}scrolled(L=20){return this._platform.isBrowser?new X.y(ie=>{this._globalSubscription||this._addGlobalListener();const Ve=L>0?this._scrolled.pipe((0,j.e)(L)).subscribe(ie):this._scrolled.subscribe(ie);return this._scrolledCount++,()=>{Ve.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,B.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((L,ie)=>this.deregister(ie)),this._scrolled.complete()}ancestorScrolled(L,ie){const Ve=this.getAncestorScrollContainers(L);return this.scrolled(ie).pipe((0,q.h)(ut=>!ut||Ve.indexOf(ut)>-1))}getAncestorScrollContainers(L){const ie=[];return this.scrollContainers.forEach((Ve,ut)=>{this._scrollableContainsElement(ut,L)&&ie.push(ut)}),ie}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(L,ie){let Ve=(0,r.fI)(ie),ut=L.getElementRef().nativeElement;do{if(Ve==ut)return!0}while(Ve=Ve.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const L=this._getWindow();return(0,se.R)(L.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ce.\u0275fac=function(L){return new(L||Ce)(c.LFG(c.R0b),c.LFG(Ee.t4),c.LFG(Ne.K0,8))},Ce.\u0275prov=c.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Ue=(()=>{class Ce{constructor(L,ie,Ve,ut){this.elementRef=L,this.scrollDispatcher=ie,this.ngZone=Ve,this.dir=ut,this._destroyed=new A.x,this._elementScrolled=new X.y(xt=>this.ngZone.runOutsideAngular(()=>(0,se.R)(this.elementRef.nativeElement,"scroll").pipe((0,le.R)(this._destroyed)).subscribe(xt)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(L){const ie=this.elementRef.nativeElement,Ve=this.dir&&"rtl"==this.dir.value;null==L.left&&(L.left=Ve?L.end:L.start),null==L.right&&(L.right=Ve?L.start:L.end),null!=L.bottom&&(L.top=ie.scrollHeight-ie.clientHeight-L.bottom),Ve&&0!=(0,Ee._i)()?(null!=L.left&&(L.right=ie.scrollWidth-ie.clientWidth-L.left),2==(0,Ee._i)()?L.left=L.right:1==(0,Ee._i)()&&(L.left=L.right?-L.right:L.right)):null!=L.right&&(L.left=ie.scrollWidth-ie.clientWidth-L.right),this._applyScrollToOptions(L)}_applyScrollToOptions(L){const ie=this.elementRef.nativeElement;(0,Ee.Mq)()?ie.scrollTo(L):(null!=L.top&&(ie.scrollTop=L.top),null!=L.left&&(ie.scrollLeft=L.left))}measureScrollOffset(L){const ie="left",ut=this.elementRef.nativeElement;if("top"==L)return ut.scrollTop;if("bottom"==L)return ut.scrollHeight-ut.clientHeight-ut.scrollTop;const xt=this.dir&&"rtl"==this.dir.value;return"start"==L?L=xt?"right":ie:"end"==L&&(L=xt?ie:"right"),xt&&2==(0,Ee._i)()?L==ie?ut.scrollWidth-ut.clientWidth-ut.scrollLeft:ut.scrollLeft:xt&&1==(0,Ee._i)()?L==ie?ut.scrollLeft+ut.scrollWidth-ut.clientWidth:-ut.scrollLeft:L==ie?ut.scrollLeft:ut.scrollWidth-ut.clientWidth-ut.scrollLeft}}return Ce.\u0275fac=function(L){return new(L||Ce)(c.Y36(c.SBq),c.Y36(ve),c.Y36(c.R0b),c.Y36(Re.Is,8))},Ce.\u0275dir=c.lG2({type:Ce,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),Ce})(),ze=(()=>{class Ce{constructor(L,ie,Ve){this._platform=L,this._change=new A.x,this._changeListener=ut=>{this._change.next(ut)},this._document=Ve,ie.runOutsideAngular(()=>{if(L.isBrowser){const ut=this._getWindow();ut.addEventListener("resize",this._changeListener),ut.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const L=this._getWindow();L.removeEventListener("resize",this._changeListener),L.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const L={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),L}getViewportRect(){const L=this.getViewportScrollPosition(),{width:ie,height:Ve}=this.getViewportSize();return{top:L.top,left:L.left,bottom:L.top+Ve,right:L.left+ie,height:Ve,width:ie}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const L=this._document,ie=this._getWindow(),Ve=L.documentElement,ut=Ve.getBoundingClientRect();return{top:-ut.top||L.body.scrollTop||ie.scrollY||Ve.scrollTop||0,left:-ut.left||L.body.scrollLeft||ie.scrollX||Ve.scrollLeft||0}}change(L=20){return L>0?this._change.pipe((0,j.e)(L)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const L=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:L.innerWidth,height:L.innerHeight}:{width:0,height:0}}}return Ce.\u0275fac=function(L){return new(L||Ce)(c.LFG(Ee.t4),c.LFG(c.R0b),c.LFG(Ne.K0,8))},Ce.\u0275prov=c.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();const dt=new c.OlP("VIRTUAL_SCROLLABLE");let vt=(()=>{class Ce extends Ue{constructor(L,ie,Ve,ut){super(L,ie,Ve,ut)}measureViewportSize(L){const ie=this.elementRef.nativeElement;return"horizontal"===L?ie.clientWidth:ie.clientHeight}}return Ce.\u0275fac=function(L){return new(L||Ce)(c.Y36(c.SBq),c.Y36(ve),c.Y36(c.R0b),c.Y36(Re.Is,8))},Ce.\u0275dir=c.lG2({type:Ce,features:[c.qOj]}),Ce})();const Mt=typeof requestAnimationFrame<"u"?J.Z:ee.E;let We=(()=>{class Ce extends vt{get orientation(){return this._orientation}set orientation(L){this._orientation!==L&&(this._orientation=L,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(L){this._appendOnly=(0,r.Ig)(L)}constructor(L,ie,Ve,ut,xt,en,zt,Jt){super(L,en,Ve,xt),this.elementRef=L,this._changeDetectorRef=ie,this._scrollStrategy=ut,this.scrollable=Jt,this._platform=(0,c.f3M)(Ee.t4),this._detachedSubject=new A.x,this._renderedRangeSubject=new A.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new X.y(Tn=>this._scrollStrategy.scrolledIndexChange.subscribe(In=>Promise.resolve().then(()=>this.ngZone.run(()=>Tn.next(In))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=ne.w0.EMPTY,this._viewportChanges=zt.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,He.O)(null),(0,j.e)(0,Mt)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(L){this.ngZone.runOutsideAngular(()=>{this._forOf=L,this._forOf.dataStream.pipe((0,le.R)(this._detachedSubject)).subscribe(ie=>{const Ve=ie.length;Ve!==this._dataLength&&(this._dataLength=Ve,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(L){return this.getElementRef().nativeElement.getBoundingClientRect()[L]}setTotalContentSize(L){this._totalContentSize!==L&&(this._totalContentSize=L,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(L){(function Lt(Ce,Xe){return Ce.start==Xe.start&&Ce.end==Xe.end})(this._renderedRange,L)||(this.appendOnly&&(L={start:0,end:Math.max(this._renderedRange.end,L.end)}),this._renderedRangeSubject.next(this._renderedRange=L),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(L,ie="to-start"){L=this.appendOnly&&"to-start"===ie?0:L;const ut="horizontal"==this.orientation,xt=ut?"X":"Y";let zt=`translate${xt}(${Number((ut&&this.dir&&"rtl"==this.dir.value?-1:1)*L)}px)`;this._renderedContentOffset=L,"to-end"===ie&&(zt+=` translate${xt}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=zt&&(this._renderedContentTransform=zt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(L,ie="auto"){const Ve={behavior:ie};"horizontal"===this.orientation?Ve.start=L:Ve.top=L,this.scrollable.scrollTo(Ve)}scrollToIndex(L,ie="auto"){this._scrollStrategy.scrollToIndex(L,ie)}measureScrollOffset(L){let ie;return ie=this.scrollable==this?Ve=>super.measureScrollOffset(Ve):Ve=>this.scrollable.measureScrollOffset(Ve),Math.max(0,ie(L??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(L){let ie;const xt="rtl"==this.dir?.value;ie="start"==L?xt?"right":"left":"end"==L?xt?"left":"right":L||("horizontal"===this.orientation?"left":"top");const en=this.scrollable.measureBoundingClientRectWithScrollOffset(ie);return this.elementRef.nativeElement.getBoundingClientRect()[ie]-en}measureRenderedContentSize(){const L=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?L.offsetWidth:L.offsetHeight}measureRangeSize(L){return this._forOf?this._forOf.measureRangeSize(L,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(L){L&&this._runAfterChangeDetection.push(L),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const L=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const ie of L)ie()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Ce.\u0275fac=function(L){return new(L||Ce)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(c.R0b),c.Y36(Fe,8),c.Y36(Re.Is,8),c.Y36(ve),c.Y36(ze),c.Y36(dt,8))},Ce.\u0275cmp=c.Xpm({type:Ce,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(L,ie){if(1&L&&c.Gf(ue,7),2&L){let Ve;c.iGM(Ve=c.CRH())&&(ie._contentWrapper=Ve.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(L,ie){2&L&&c.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===ie.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==ie.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[c._Bn([{provide:Ue,useFactory:(Xe,L)=>Xe||L,deps:[[new c.FiY,new c.tBr(dt)],Ce]}]),c.qOj,c.jDz],ngContentSelectors:ke,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(L,ie){1&L&&(c.F$t(),c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA(),c._UZ(3,"div",2)),2&L&&(c.xp6(3),c.Udp("width",ie._totalContentWidth)("height",ie._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Ce})(),bt=(()=>{class Ce{}return Ce.\u0275fac=function(L){return new(L||Ce)},Ce.\u0275mod=c.oAB({type:Ce}),Ce.\u0275inj=c.cJS({}),Ce})(),It=(()=>{class Ce{}return Ce.\u0275fac=function(L){return new(L||Ce)},Ce.\u0275mod=c.oAB({type:Ce}),Ce.\u0275inj=c.cJS({imports:[Re.vT,bt,We,Re.vT,bt]}),Ce})()},6895:(Ct,Te,g)=>{g.d(Te,{$G:()=>Wn,Do:()=>Fe,EM:()=>vi,HT:()=>B,JF:()=>Br,JJ:()=>co,K0:()=>se,Mx:()=>ii,NF:()=>Xn,O5:()=>Ai,OU:()=>Pe,Ov:()=>hi,PC:()=>Yi,PM:()=>Cn,S$:()=>Re,V_:()=>ne,Ye:()=>et,b0:()=>ke,bD:()=>gt,ez:()=>Ze,mk:()=>cn,q:()=>A,sg:()=>ei,tP:()=>Nr,uU:()=>Ei,w_:()=>X});var r=g(4650);let c=null;function A(){return c}function B(b){c||(c=b)}class X{}const se=new r.OlP("DocumentToken");let J=(()=>{class b{historyGo(T){throw new Error("Not implemented")}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275prov=r.Yz7({token:b,factory:function(){return function ee(){return(0,r.LFG)(j)}()},providedIn:"platform"}),b})();const ne=new r.OlP("Location Initialized");let j=(()=>{class b extends J{constructor(T){super(),this._doc=T,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return A().getBaseHref(this._doc)}onPopState(T){const z=A().getGlobalEventTarget(this._doc,"window");return z.addEventListener("popstate",T,!1),()=>z.removeEventListener("popstate",T)}onHashChange(T){const z=A().getGlobalEventTarget(this._doc,"window");return z.addEventListener("hashchange",T,!1),()=>z.removeEventListener("hashchange",T)}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(T){this._location.pathname=T}pushState(T,z,_e){q()?this._history.pushState(T,z,_e):this._location.hash=_e}replaceState(T,z,_e){q()?this._history.replaceState(T,z,_e):this._location.hash=_e}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}}return b.\u0275fac=function(T){return new(T||b)(r.LFG(se))},b.\u0275prov=r.Yz7({token:b,factory:function(){return function le(){return new j((0,r.LFG)(se))}()},providedIn:"platform"}),b})();function q(){return!!window.history.pushState}function He(b,N){if(0==b.length)return N;if(0==N.length)return b;let T=0;return b.endsWith("/")&&T++,N.startsWith("/")&&T++,2==T?b+N.substring(1):1==T?b+N:b+"/"+N}function Ee(b){const N=b.match(/#|\?|$/),T=N&&N.index||b.length;return b.slice(0,T-("/"===b[T-1]?1:0))+b.slice(T)}function Ne(b){return b&&"?"!==b[0]?"?"+b:b}let Re=(()=>{class b{historyGo(T){throw new Error("Not implemented")}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275prov=r.Yz7({token:b,factory:function(){return(0,r.f3M)(ke)},providedIn:"root"}),b})();const ue=new r.OlP("appBaseHref");let ke=(()=>{class b extends Re{constructor(T,z){super(),this._platformLocation=T,this._removeListenerFns=[],this._baseHref=z??this._platformLocation.getBaseHrefFromDOM()??(0,r.f3M)(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return He(this._baseHref,T)}path(T=!1){const z=this._platformLocation.pathname+Ne(this._platformLocation.search),_e=this._platformLocation.hash;return _e&&T?`${z}${_e}`:z}pushState(T,z,_e,st){const pt=this.prepareExternalUrl(_e+Ne(st));this._platformLocation.pushState(T,z,pt)}replaceState(T,z,_e,st){const pt=this.prepareExternalUrl(_e+Ne(st));this._platformLocation.replaceState(T,z,pt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(T=0){this._platformLocation.historyGo?.(T)}}return b.\u0275fac=function(T){return new(T||b)(r.LFG(J),r.LFG(ue,8))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})(),Fe=(()=>{class b extends Re{constructor(T,z){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=z&&(this._baseHref=z)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){let z=this._platformLocation.hash;return null==z&&(z="#"),z.length>0?z.substring(1):z}prepareExternalUrl(T){const z=He(this._baseHref,T);return z.length>0?"#"+z:z}pushState(T,z,_e,st){let pt=this.prepareExternalUrl(_e+Ne(st));0==pt.length&&(pt=this._platformLocation.pathname),this._platformLocation.pushState(T,z,pt)}replaceState(T,z,_e,st){let pt=this.prepareExternalUrl(_e+Ne(st));0==pt.length&&(pt=this._platformLocation.pathname),this._platformLocation.replaceState(T,z,pt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(T=0){this._platformLocation.historyGo?.(T)}}return b.\u0275fac=function(T){return new(T||b)(r.LFG(J),r.LFG(ue,8))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac}),b})(),et=(()=>{class b{constructor(T){this._subject=new r.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=T;const z=this._locationStrategy.getBaseHref();this._basePath=function ve(b){if(new RegExp("^(https?:)?//").test(b)){const[,T]=b.split(/\/\/[^\/]+/);return T}return b}(Ee(ye(z))),this._locationStrategy.onPopState(_e=>{this._subject.emit({url:this.path(!0),pop:!0,state:_e.state,type:_e.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(T=!1){return this.normalize(this._locationStrategy.path(T))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(T,z=""){return this.path()==this.normalize(T+Ne(z))}normalize(T){return b.stripTrailingSlash(function de(b,N){return b&&new RegExp(`^${b}([/;?#]|$)`).test(N)?N.substring(b.length):N}(this._basePath,ye(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._locationStrategy.prepareExternalUrl(T)}go(T,z="",_e=null){this._locationStrategy.pushState(_e,"",T,z),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Ne(z)),_e)}replaceState(T,z="",_e=null){this._locationStrategy.replaceState(_e,"",T,z),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Ne(z)),_e)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(T=0){this._locationStrategy.historyGo?.(T)}onUrlChange(T){return this._urlChangeListeners.push(T),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(z=>{this._notifyUrlChangeListeners(z.url,z.state)})),()=>{const z=this._urlChangeListeners.indexOf(T);this._urlChangeListeners.splice(z,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(T="",z){this._urlChangeListeners.forEach(_e=>_e(T,z))}subscribe(T,z,_e){return this._subject.subscribe({next:T,error:z,complete:_e})}}return b.normalizeQueryParams=Ne,b.joinWithSlash=He,b.stripTrailingSlash=Ee,b.\u0275fac=function(T){return new(T||b)(r.LFG(Re))},b.\u0275prov=r.Yz7({token:b,factory:function(){return function be(){return new et((0,r.LFG)(Re))}()},providedIn:"root"}),b})();function ye(b){return b.replace(/\/index.html$/,"")}var xe=(()=>((xe=xe||{})[xe.Decimal=0]="Decimal",xe[xe.Percent=1]="Percent",xe[xe.Currency=2]="Currency",xe[xe.Scientific=3]="Scientific",xe))(),dt=(()=>((dt=dt||{})[dt.Format=0]="Format",dt[dt.Standalone=1]="Standalone",dt))(),vt=(()=>((vt=vt||{})[vt.Narrow=0]="Narrow",vt[vt.Abbreviated=1]="Abbreviated",vt[vt.Wide=2]="Wide",vt[vt.Short=3]="Short",vt))(),Lt=(()=>((Lt=Lt||{})[Lt.Short=0]="Short",Lt[Lt.Medium=1]="Medium",Lt[Lt.Long=2]="Long",Lt[Lt.Full=3]="Full",Lt))(),Mt=(()=>((Mt=Mt||{})[Mt.Decimal=0]="Decimal",Mt[Mt.Group=1]="Group",Mt[Mt.List=2]="List",Mt[Mt.PercentSign=3]="PercentSign",Mt[Mt.PlusSign=4]="PlusSign",Mt[Mt.MinusSign=5]="MinusSign",Mt[Mt.Exponential=6]="Exponential",Mt[Mt.SuperscriptingExponent=7]="SuperscriptingExponent",Mt[Mt.PerMille=8]="PerMille",Mt[Mt.Infinity=9]="Infinity",Mt[Mt.NaN=10]="NaN",Mt[Mt.TimeSeparator=11]="TimeSeparator",Mt[Mt.CurrencyDecimal=12]="CurrencyDecimal",Mt[Mt.CurrencyGroup=13]="CurrencyGroup",Mt))();function Xe(b,N){return tt((0,r.cg1)(b)[r.wAp.DateFormat],N)}function L(b,N){return tt((0,r.cg1)(b)[r.wAp.TimeFormat],N)}function ie(b,N){return tt((0,r.cg1)(b)[r.wAp.DateTimeFormat],N)}function Ve(b,N){const T=(0,r.cg1)(b),z=T[r.wAp.NumberSymbols][N];if(typeof z>"u"){if(N===Mt.CurrencyDecimal)return T[r.wAp.NumberSymbols][Mt.Decimal];if(N===Mt.CurrencyGroup)return T[r.wAp.NumberSymbols][Mt.Group]}return z}function In(b){if(!b[r.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${b[r.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function tt(b,N){for(let T=N;T>-1;T--)if(typeof b[T]<"u")return b[T];throw new Error("Locale data API: locale data undefined")}function W(b){const[N,T]=b.split(":");return{hours:+N,minutes:+T}}const ct=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,At={},Ht=/((?:[^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 Pt=(()=>((Pt=Pt||{})[Pt.Short=0]="Short",Pt[Pt.ShortGMT=1]="ShortGMT",Pt[Pt.Long=2]="Long",Pt[Pt.Extended=3]="Extended",Pt))(),St=(()=>((St=St||{})[St.FullYear=0]="FullYear",St[St.Month=1]="Month",St[St.Date=2]="Date",St[St.Hours=3]="Hours",St[St.Minutes=4]="Minutes",St[St.Seconds=5]="Seconds",St[St.FractionalSeconds=6]="FractionalSeconds",St[St.Day=7]="Day",St))(),we=(()=>((we=we||{})[we.DayPeriods=0]="DayPeriods",we[we.Days=1]="Days",we[we.Months=2]="Months",we[we.Eras=3]="Eras",we))();function lt(b,N,T,z){let _e=function Rt(b){if(tn(b))return b;if("number"==typeof b&&!isNaN(b))return new Date(b);if("string"==typeof b){if(b=b.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(b)){const[_e,st=1,pt=1]=b.split("-").map(nn=>+nn);return fe(_e,st-1,pt)}const T=parseFloat(b);if(!isNaN(b-T))return new Date(T);let z;if(z=b.match(ct))return function Wt(b){const N=new Date(0);let T=0,z=0;const _e=b[8]?N.setUTCFullYear:N.setFullYear,st=b[8]?N.setUTCHours:N.setHours;b[9]&&(T=Number(b[9]+b[10]),z=Number(b[9]+b[11])),_e.call(N,Number(b[1]),Number(b[2])-1,Number(b[3]));const pt=Number(b[4]||0)-T,nn=Number(b[5]||0)-z,jn=Number(b[6]||0),Gn=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return st.call(N,pt,nn,jn,Gn),N}(z)}const N=new Date(b);if(!tn(N))throw new Error(`Unable to convert "${b}" into a date`);return N}(b);N=Ye(T,N)||N;let nn,pt=[];for(;N;){if(nn=Ht.exec(N),!nn){pt.push(N);break}{pt=pt.concat(nn.slice(1));const $n=pt.pop();if(!$n)break;N=$n}}let jn=_e.getTimezoneOffset();z&&(jn=De(z,jn),_e=function Ie(b,N,T){const z=T?-1:1,_e=b.getTimezoneOffset();return function qe(b,N){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+N),b}(b,z*(De(N,_e)-_e))}(_e,z,!0));let Gn="";return pt.forEach($n=>{const kn=function ce(b){if(K[b])return K[b];let N;switch(b){case"G":case"GG":case"GGG":N=ln(we.Eras,vt.Abbreviated);break;case"GGGG":N=ln(we.Eras,vt.Wide);break;case"GGGGG":N=ln(we.Eras,vt.Narrow);break;case"y":N=Vt(St.FullYear,1,0,!1,!0);break;case"yy":N=Vt(St.FullYear,2,0,!0,!0);break;case"yyy":N=Vt(St.FullYear,3,0,!1,!0);break;case"yyyy":N=Vt(St.FullYear,4,0,!1,!0);break;case"Y":N=Ke(1);break;case"YY":N=Ke(2,!0);break;case"YYY":N=Ke(3);break;case"YYYY":N=Ke(4);break;case"M":case"L":N=Vt(St.Month,1,1);break;case"MM":case"LL":N=Vt(St.Month,2,1);break;case"MMM":N=ln(we.Months,vt.Abbreviated);break;case"MMMM":N=ln(we.Months,vt.Wide);break;case"MMMMM":N=ln(we.Months,vt.Narrow);break;case"LLL":N=ln(we.Months,vt.Abbreviated,dt.Standalone);break;case"LLLL":N=ln(we.Months,vt.Wide,dt.Standalone);break;case"LLLLL":N=ln(we.Months,vt.Narrow,dt.Standalone);break;case"w":N=re(1);break;case"ww":N=re(2);break;case"W":N=re(1,!0);break;case"d":N=Vt(St.Date,1);break;case"dd":N=Vt(St.Date,2);break;case"c":case"cc":N=Vt(St.Day,1);break;case"ccc":N=ln(we.Days,vt.Abbreviated,dt.Standalone);break;case"cccc":N=ln(we.Days,vt.Wide,dt.Standalone);break;case"ccccc":N=ln(we.Days,vt.Narrow,dt.Standalone);break;case"cccccc":N=ln(we.Days,vt.Short,dt.Standalone);break;case"E":case"EE":case"EEE":N=ln(we.Days,vt.Abbreviated);break;case"EEEE":N=ln(we.Days,vt.Wide);break;case"EEEEE":N=ln(we.Days,vt.Narrow);break;case"EEEEEE":N=ln(we.Days,vt.Short);break;case"a":case"aa":case"aaa":N=ln(we.DayPeriods,vt.Abbreviated);break;case"aaaa":N=ln(we.DayPeriods,vt.Wide);break;case"aaaaa":N=ln(we.DayPeriods,vt.Narrow);break;case"b":case"bb":case"bbb":N=ln(we.DayPeriods,vt.Abbreviated,dt.Standalone,!0);break;case"bbbb":N=ln(we.DayPeriods,vt.Wide,dt.Standalone,!0);break;case"bbbbb":N=ln(we.DayPeriods,vt.Narrow,dt.Standalone,!0);break;case"B":case"BB":case"BBB":N=ln(we.DayPeriods,vt.Abbreviated,dt.Format,!0);break;case"BBBB":N=ln(we.DayPeriods,vt.Wide,dt.Format,!0);break;case"BBBBB":N=ln(we.DayPeriods,vt.Narrow,dt.Format,!0);break;case"h":N=Vt(St.Hours,1,-12);break;case"hh":N=Vt(St.Hours,2,-12);break;case"H":N=Vt(St.Hours,1);break;case"HH":N=Vt(St.Hours,2);break;case"m":N=Vt(St.Minutes,1);break;case"mm":N=Vt(St.Minutes,2);break;case"s":N=Vt(St.Seconds,1);break;case"ss":N=Vt(St.Seconds,2);break;case"S":N=Vt(St.FractionalSeconds,1);break;case"SS":N=Vt(St.FractionalSeconds,2);break;case"SSS":N=Vt(St.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":N=Sn(Pt.Short);break;case"ZZZZZ":N=Sn(Pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":N=Sn(Pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":N=Sn(Pt.Long);break;default:return null}return K[b]=N,N}($n);Gn+=kn?kn(_e,T,jn):"''"===$n?"'":$n.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Gn}function fe(b,N,T){const z=new Date(0);return z.setFullYear(b,N,T),z.setHours(0,0,0),z}function Ye(b,N){const T=function rt(b){return(0,r.cg1)(b)[r.wAp.LocaleId]}(b);if(At[T]=At[T]||{},At[T][N])return At[T][N];let z="";switch(N){case"shortDate":z=Xe(b,Lt.Short);break;case"mediumDate":z=Xe(b,Lt.Medium);break;case"longDate":z=Xe(b,Lt.Long);break;case"fullDate":z=Xe(b,Lt.Full);break;case"shortTime":z=L(b,Lt.Short);break;case"mediumTime":z=L(b,Lt.Medium);break;case"longTime":z=L(b,Lt.Long);break;case"fullTime":z=L(b,Lt.Full);break;case"short":const _e=Ye(b,"shortTime"),st=Ye(b,"shortDate");z=Dt(ie(b,Lt.Short),[_e,st]);break;case"medium":const pt=Ye(b,"mediumTime"),nn=Ye(b,"mediumDate");z=Dt(ie(b,Lt.Medium),[pt,nn]);break;case"long":const jn=Ye(b,"longTime"),Gn=Ye(b,"longDate");z=Dt(ie(b,Lt.Long),[jn,Gn]);break;case"full":const $n=Ye(b,"fullTime"),kn=Ye(b,"fullDate");z=Dt(ie(b,Lt.Full),[$n,kn])}return z&&(At[T][N]=z),z}function Dt(b,N){return N&&(b=b.replace(/\{([^}]+)}/g,function(T,z){return null!=N&&z in N?N[z]:T})),b}function Ft(b,N,T="-",z,_e){let st="";(b<0||_e&&b<=0)&&(_e?b=1-b:(b=-b,st=T));let pt=String(b);for(;pt.length<N;)pt="0"+pt;return z&&(pt=pt.slice(pt.length-N)),st+pt}function Vt(b,N,T=0,z=!1,_e=!1){return function(st,pt){let nn=function wn(b,N){switch(b){case St.FullYear:return N.getFullYear();case St.Month:return N.getMonth();case St.Date:return N.getDate();case St.Hours:return N.getHours();case St.Minutes:return N.getMinutes();case St.Seconds:return N.getSeconds();case St.FractionalSeconds:return N.getMilliseconds();case St.Day:return N.getDay();default:throw new Error(`Unknown DateType value "${b}".`)}}(b,st);if((T>0||nn>-T)&&(nn+=T),b===St.Hours)0===nn&&-12===T&&(nn=12);else if(b===St.FractionalSeconds)return function an(b,N){return Ft(b,3).substring(0,N)}(nn,N);const jn=Ve(pt,Mt.MinusSign);return Ft(nn,N,jn,z,_e)}}function ln(b,N,T=dt.Format,z=!1){return function(_e,st){return function xn(b,N,T,z,_e,st){switch(T){case we.Months:return function Et(b,N,T){const z=(0,r.cg1)(b),st=tt([z[r.wAp.MonthsFormat],z[r.wAp.MonthsStandalone]],N);return tt(st,T)}(N,_e,z)[b.getMonth()];case we.Days:return function mt(b,N,T){const z=(0,r.cg1)(b),st=tt([z[r.wAp.DaysFormat],z[r.wAp.DaysStandalone]],N);return tt(st,T)}(N,_e,z)[b.getDay()];case we.DayPeriods:const pt=b.getHours(),nn=b.getMinutes();if(st){const Gn=function Fn(b){const N=(0,r.cg1)(b);return In(N),(N[r.wAp.ExtraData][2]||[]).map(z=>"string"==typeof z?W(z):[W(z[0]),W(z[1])])}(N),$n=function Pn(b,N,T){const z=(0,r.cg1)(b);In(z);const st=tt([z[r.wAp.ExtraData][0],z[r.wAp.ExtraData][1]],N)||[];return tt(st,T)||[]}(N,_e,z),kn=Gn.findIndex(Di=>{if(Array.isArray(Di)){const[Kn,ai]=Di,ar=pt>=Kn.hours&&nn>=Kn.minutes,Ji=pt<ai.hours||pt===ai.hours&&nn<ai.minutes;if(Kn.hours<ai.hours){if(ar&&Ji)return!0}else if(ar||Ji)return!0}else if(Di.hours===pt&&Di.minutes===nn)return!0;return!1});if(-1!==kn)return $n[kn]}return function at(b,N,T){const z=(0,r.cg1)(b),st=tt([z[r.wAp.DayPeriodsFormat],z[r.wAp.DayPeriodsStandalone]],N);return tt(st,T)}(N,_e,z)[pt<12?0:1];case we.Eras:return function bt(b,N){return tt((0,r.cg1)(b)[r.wAp.Eras],N)}(N,z)[b.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${T}`)}}(_e,st,b,N,T,z)}}function Sn(b){return function(N,T,z){const _e=-1*z,st=Ve(T,Mt.MinusSign),pt=_e>0?Math.floor(_e/60):Math.ceil(_e/60);switch(b){case Pt.Short:return(_e>=0?"+":"")+Ft(pt,2,st)+Ft(Math.abs(_e%60),2,st);case Pt.ShortGMT:return"GMT"+(_e>=0?"+":"")+Ft(pt,1,st);case Pt.Long:return"GMT"+(_e>=0?"+":"")+Ft(pt,2,st)+":"+Ft(Math.abs(_e%60),2,st);case Pt.Extended:return 0===z?"Z":(_e>=0?"+":"")+Ft(pt,2,st)+":"+Ft(Math.abs(_e%60),2,st);default:throw new Error(`Unknown zone width "${b}"`)}}}function U(b){return fe(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))}function re(b,N=!1){return function(T,z){let _e;if(N){const st=new Date(T.getFullYear(),T.getMonth(),1).getDay()-1,pt=T.getDate();_e=1+Math.floor((pt+st)/7)}else{const st=U(T),pt=function V(b){const N=fe(b,0,1).getDay();return fe(b,0,1+(N<=4?4:11)-N)}(st.getFullYear()),nn=st.getTime()-pt.getTime();_e=1+Math.round(nn/6048e5)}return Ft(_e,b,Ve(z,Mt.MinusSign))}}function Ke(b,N=!1){return function(T,z){return Ft(U(T).getFullYear(),b,Ve(z,Mt.MinusSign),N)}}const K={};function De(b,N){b=b.replace(/:/g,"");const T=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(T)?N:T}function tn(b){return b instanceof Date&&!isNaN(b.valueOf())}const he=/^(\d+)?\.((\d+)(-(\d+))?)?$/,p=".",_="0";function mn(b){const N=parseInt(b);if(isNaN(N))throw new Error("Invalid integer literal when parsing "+b);return N}function ii(b,N){N=encodeURIComponent(N);for(const T of b.split(";")){const z=T.indexOf("="),[_e,st]=-1==z?[T,""]:[T.slice(0,z),T.slice(z+1)];if(_e.trim()===N)return decodeURIComponent(st)}return null}const ti=/\s+/,$t=[];let cn=(()=>{class b{constructor(T,z,_e,st){this._iterableDiffers=T,this._keyValueDiffers=z,this._ngEl=_e,this._renderer=st,this.initialClasses=$t,this.stateMap=new Map}set klass(T){this.initialClasses=null!=T?T.trim().split(ti):$t}set ngClass(T){this.rawClass="string"==typeof T?T.trim().split(ti):T}ngDoCheck(){for(const z of this.initialClasses)this._updateState(z,!0);const T=this.rawClass;if(Array.isArray(T)||T instanceof Set)for(const z of T)this._updateState(z,!0);else if(null!=T)for(const z of Object.keys(T))this._updateState(z,Boolean(T[z]));this._applyStateDiff()}_updateState(T,z){const _e=this.stateMap.get(T);void 0!==_e?(_e.enabled!==z&&(_e.changed=!0,_e.enabled=z),_e.touched=!0):this.stateMap.set(T,{enabled:z,changed:!0,touched:!0})}_applyStateDiff(){for(const T of this.stateMap){const z=T[0],_e=T[1];_e.changed?(this._toggleClass(z,_e.enabled),_e.changed=!1):_e.touched||(_e.enabled&&this._toggleClass(z,!1),this.stateMap.delete(z)),_e.touched=!1}}_toggleClass(T,z){(T=T.trim()).length>0&&T.split(ti).forEach(_e=>{z?this._renderer.addClass(this._ngEl.nativeElement,_e):this._renderer.removeClass(this._ngEl.nativeElement,_e)})}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),b})(),Wn=(()=>{class b{constructor(T){this._viewContainerRef=T,this.ngComponentOutlet=null}ngOnChanges(T){const{_viewContainerRef:z,ngComponentOutletNgModule:_e,ngComponentOutletNgModuleFactory:st}=this;if(z.clear(),this._componentRef=void 0,this.ngComponentOutlet){const pt=this.ngComponentOutletInjector||z.parentInjector;(T.ngComponentOutletNgModule||T.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=_e?(0,r.Lck)(_e,ci(pt)):st?st.create(ci(pt)):void 0),this._componentRef=z.createComponent(this.ngComponentOutlet,{index:z.length,injector:pt,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.s_b))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[r.TTD]}),b})();function ci(b){return b.get(r.h0i).injector}class Zn{constructor(N,T,z,_e){this.$implicit=N,this.ngForOf=T,this.index=z,this.count=_e}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 ei=(()=>{class b{set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}constructor(T,z,_e){this._viewContainer=T,this._template=z,this._differs=_e,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const z=this._viewContainer;T.forEachOperation((_e,st,pt)=>{if(null==_e.previousIndex)z.createEmbeddedView(this._template,new Zn(_e.item,this._ngForOf,-1,-1),null===pt?void 0:pt);else if(null==pt)z.remove(null===st?void 0:st);else if(null!==st){const nn=z.get(st);z.move(nn,pt),Rn(nn,_e)}});for(let _e=0,st=z.length;_e<st;_e++){const nn=z.get(_e).context;nn.index=_e,nn.count=st,nn.ngForOf=this._ngForOf}T.forEachIdentityChange(_e=>{Rn(z.get(_e.currentIndex),_e)})}static ngTemplateContextGuard(T,z){return!0}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),b})();function Rn(b,N){b.context.$implicit=N.item}let Ai=(()=>{class b{constructor(T,z){this._viewContainer=T,this._context=new An,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=z}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){ir("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){ir("ngIfElse",T),this._elseTemplateRef=T,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(T,z){return!0}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.s_b),r.Y36(r.Rgc))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),b})();class An{constructor(){this.$implicit=null,this.ngIf=null}}function ir(b,N){if(N&&!N.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,r.AaK)(N)}'.`)}let Yi=(()=>{class b{constructor(T,z,_e){this._ngEl=T,this._differs=z,this._renderer=_e,this._ngStyle=null,this._differ=null}set ngStyle(T){this._ngStyle=T,!this._differ&&T&&(this._differ=this._differs.find(T).create())}ngDoCheck(){if(this._differ){const T=this._differ.diff(this._ngStyle);T&&this._applyChanges(T)}}_setStyle(T,z){const[_e,st]=T.split("."),pt=-1===_e.indexOf("-")?void 0:r.JOm.DashCase;null!=z?this._renderer.setStyle(this._ngEl.nativeElement,_e,st?`${z}${st}`:z,pt):this._renderer.removeStyle(this._ngEl.nativeElement,_e,pt)}_applyChanges(T){T.forEachRemovedItem(z=>this._setStyle(z.key,null)),T.forEachAddedItem(z=>this._setStyle(z.key,z.currentValue)),T.forEachChangedItem(z=>this._setStyle(z.key,z.currentValue))}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(r.Qsj))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),b})(),Nr=(()=>{class b{constructor(T){this._viewContainerRef=T,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(T){if(T.ngTemplateOutlet||T.ngTemplateOutletInjector){const z=this._viewContainerRef;if(this._viewRef&&z.remove(z.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:_e,ngTemplateOutletContext:st,ngTemplateOutletInjector:pt}=this;this._viewRef=z.createEmbeddedView(_e,st,pt?{injector:pt}:void 0)}else this._viewRef=null}else this._viewRef&&T.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.s_b))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[r.TTD]}),b})();function or(b,N){return new r.vHH(2100,!1)}class Er{createSubscription(N,T){return N.subscribe({next:T,error:z=>{throw z}})}dispose(N){N.unsubscribe()}}class lo{createSubscription(N,T){return N.then(T,z=>{throw z})}dispose(N){}}const Ir=new lo,ur=new Er;let hi=(()=>{class b{constructor(T){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=T}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(T){return this._obj?T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue:(T&&this._subscribe(T),this._latestValue)}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,z=>this._updateLatestValue(T,z))}_selectStrategy(T){if((0,r.QGY)(T))return Ir;if((0,r.F4k)(T))return ur;throw or()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,z){T===this._obj&&(this._latestValue=z,this._ref.markForCheck())}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.sBO,16))},b.\u0275pipe=r.Yjl({name:"async",type:b,pure:!1,standalone:!0}),b})();const Zi=new r.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Or=new r.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Ei=(()=>{class b{constructor(T,z,_e){this.locale=T,this.defaultTimezone=z,this.defaultOptions=_e}transform(T,z,_e,st){if(null==T||""===T||T!=T)return null;try{return lt(T,z??this.defaultOptions?.dateFormat??"mediumDate",st||this.locale,_e??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(pt){throw or()}}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.soG,16),r.Y36(Zi,24),r.Y36(Or,24))},b.\u0275pipe=r.Yjl({name:"date",type:b,pure:!0,standalone:!0}),b})(),co=(()=>{class b{constructor(T){this._locale=T}transform(T,z,_e){if(!function Fr(b){return!(null==b||""===b||b!=b)}(T))return null;_e=_e||this._locale;try{return function ht(b,N,T){return function Bt(b,N,T,z,_e,st,pt=!1){let nn="",jn=!1;if(isFinite(b)){let Gn=function ft(b){let z,_e,st,pt,nn,N=Math.abs(b)+"",T=0;for((_e=N.indexOf(p))>-1&&(N=N.replace(p,"")),(st=N.search(/e/i))>0?(_e<0&&(_e=st),_e+=+N.slice(st+1),N=N.substring(0,st)):_e<0&&(_e=N.length),st=0;N.charAt(st)===_;st++);if(st===(nn=N.length))z=[0],_e=1;else{for(nn--;N.charAt(nn)===_;)nn--;for(_e-=st,z=[],pt=0;st<=nn;st++,pt++)z[pt]=Number(N.charAt(st))}return _e>22&&(z=z.splice(0,21),T=_e-1,_e=1),{digits:z,exponent:T,integerLen:_e}}(b);pt&&(Gn=function Ae(b){if(0===b.digits[0])return b;const N=b.digits.length-b.integerLen;return b.exponent?b.exponent+=2:(0===N?b.digits.push(0,0):1===N&&b.digits.push(0),b.integerLen+=2),b}(Gn));let $n=N.minInt,kn=N.minFrac,Di=N.maxFrac;if(st){const qi=st.match(he);if(null===qi)throw new Error(`${st} is not a valid digit info`);const kr=qi[1],io=qi[3],yo=qi[5];null!=kr&&($n=mn(kr)),null!=io&&(kn=mn(io)),null!=yo?Di=mn(yo):null!=io&&kn>Di&&(Di=kn)}!function Yt(b,N,T){if(N>T)throw new Error(`The minimum number of digits after fraction (${N}) is higher than the maximum (${T}).`);let z=b.digits,_e=z.length-b.integerLen;const st=Math.min(Math.max(N,_e),T);let pt=st+b.integerLen,nn=z[pt];if(pt>0){z.splice(Math.max(b.integerLen,pt));for(let kn=pt;kn<z.length;kn++)z[kn]=0}else{_e=Math.max(0,_e),b.integerLen=1,z.length=Math.max(1,pt=st+1),z[0]=0;for(let kn=1;kn<pt;kn++)z[kn]=0}if(nn>=5)if(pt-1<0){for(let kn=0;kn>pt;kn--)z.unshift(0),b.integerLen++;z.unshift(1),b.integerLen++}else z[pt-1]++;for(;_e<Math.max(0,st);_e++)z.push(0);let jn=0!==st;const Gn=N+b.integerLen,$n=z.reduceRight(function(kn,Di,Kn,ai){return ai[Kn]=(Di+=kn)<10?Di:Di-10,jn&&(0===ai[Kn]&&Kn>=Gn?ai.pop():jn=!1),Di>=10?1:0},0);$n&&(z.unshift($n),b.integerLen++)}(Gn,kn,Di);let Kn=Gn.digits,ai=Gn.integerLen;const ar=Gn.exponent;let Ji=[];for(jn=Kn.every(qi=>!qi);ai<$n;ai++)Kn.unshift(0);for(;ai<0;ai++)Kn.unshift(0);ai>0?Ji=Kn.splice(ai,Kn.length):(Ji=Kn,Kn=[0]);const Gi=[];for(Kn.length>=N.lgSize&&Gi.unshift(Kn.splice(-N.lgSize,Kn.length).join(""));Kn.length>N.gSize;)Gi.unshift(Kn.splice(-N.gSize,Kn.length).join(""));Kn.length&&Gi.unshift(Kn.join("")),nn=Gi.join(Ve(T,z)),Ji.length&&(nn+=Ve(T,_e)+Ji.join("")),ar&&(nn+=Ve(T,Mt.Exponential)+"+"+ar)}else nn=Ve(T,Mt.Infinity);return nn=b<0&&!jn?N.negPre+nn+N.negSuf:N.posPre+nn+N.posSuf,nn}(b,function Ot(b,N="-"){const T={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},z=b.split(";"),_e=z[0],st=z[1],pt=-1!==_e.indexOf(p)?_e.split(p):[_e.substring(0,_e.lastIndexOf(_)+1),_e.substring(_e.lastIndexOf(_)+1)],nn=pt[0],jn=pt[1]||"";T.posPre=nn.substring(0,nn.indexOf("#"));for(let $n=0;$n<jn.length;$n++){const kn=jn.charAt($n);kn===_?T.minFrac=T.maxFrac=$n+1:"#"===kn?T.maxFrac=$n+1:T.posSuf+=kn}const Gn=nn.split(",");if(T.gSize=Gn[1]?Gn[1].length:0,T.lgSize=Gn[2]||Gn[1]?(Gn[2]||Gn[1]).length:0,st){const $n=_e.length-T.posPre.length-T.posSuf.length,kn=st.indexOf("#");T.negPre=st.substring(0,kn).replace(/'/g,""),T.negSuf=st.slice(kn+$n).replace(/'/g,"")}else T.negPre=N+T.posPre,T.negSuf=T.posSuf;return T}(function ut(b,N){return(0,r.cg1)(b)[r.wAp.NumberFormats][N]}(N,xe.Decimal),Ve(N,Mt.MinusSign)),N,Mt.Group,Mt.Decimal,T)}(function Oi(b){if("string"==typeof b&&!isNaN(Number(b)-parseFloat(b)))return Number(b);if("number"!=typeof b)throw new Error(`${b} is not a number`);return b}(T),_e,z)}catch(st){throw or()}}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.soG,16))},b.\u0275pipe=r.Yjl({name:"number",type:b,pure:!0,standalone:!0}),b})();let Pe=(()=>{class b{transform(T,z,_e){if(null==T)return null;if(!this.supports(T))throw or();return T.slice(z,_e)}supports(T){return"string"==typeof T||Array.isArray(T)}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275pipe=r.Yjl({name:"slice",type:b,pure:!1,standalone:!0}),b})(),Ze=(()=>{class b{}return b.\u0275fac=function(T){return new(T||b)},b.\u0275mod=r.oAB({type:b}),b.\u0275inj=r.cJS({}),b})();const gt="browser";function Xn(b){return b===gt}function Cn(b){return"server"===b}let vi=(()=>{class b{}return b.\u0275prov=(0,r.Yz7)({token:b,providedIn:"root",factory:()=>new wr((0,r.LFG)(se),window)}),b})();class wr{constructor(N,T){this.document=N,this.window=T,this.offset=()=>[0,0]}setOffset(N){this.offset=Array.isArray(N)?()=>N:N}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(N){this.supportsScrolling()&&this.window.scrollTo(N[0],N[1])}scrollToAnchor(N){if(!this.supportsScrolling())return;const T=function yi(b,N){const T=b.getElementById(N)||b.getElementsByName(N)[0];if(T)return T;if("function"==typeof b.createTreeWalker&&b.body&&(b.body.createShadowRoot||b.body.attachShadow)){const z=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT);let _e=z.currentNode;for(;_e;){const st=_e.shadowRoot;if(st){const pt=st.getElementById(N)||st.querySelector(`[name="${N}"]`);if(pt)return pt}_e=z.nextNode()}}return null}(this.document,N);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(N){if(this.supportScrollRestoration()){const T=this.window.history;T&&T.scrollRestoration&&(T.scrollRestoration=N)}}scrollToElement(N){const T=N.getBoundingClientRect(),z=T.left+this.window.pageXOffset,_e=T.top+this.window.pageYOffset,st=this.offset();this.window.scrollTo(z-st[0],_e-st[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const N=Li(this.window.history)||Li(Object.getPrototypeOf(this.window.history));return!(!N||!N.writable&&!N.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Li(b){return Object.getOwnPropertyDescriptor(b,"scrollRestoration")}class Br{}},529:(Ct,Te,g)=>{g.d(Te,{JF:()=>Sn,TP:()=>bt,WM:()=>j,eN:()=>rt});var r=g(6895),c=g(4650),A=g(9646),B=g(9751),X=g(4351),se=g(9300),J=g(4004);class ee{}class ne{}class j{constructor(U){this.normalizedNames=new Map,this.lazyUpdate=null,U?this.lazyInit="string"==typeof U?()=>{this.headers=new Map,U.split("\n").forEach(re=>{const Ke=re.indexOf(":");if(Ke>0){const K=re.slice(0,Ke),ce=K.toLowerCase(),De=re.slice(Ke+1).trim();this.maybeSetNormalizedName(K,ce),this.headers.has(ce)?this.headers.get(ce).push(De):this.headers.set(ce,[De])}})}:()=>{this.headers=new Map,Object.keys(U).forEach(re=>{let Ke=U[re];const K=re.toLowerCase();"string"==typeof Ke&&(Ke=[Ke]),Ke.length>0&&(this.headers.set(K,Ke),this.maybeSetNormalizedName(re,K))})}:this.headers=new Map}has(U){return this.init(),this.headers.has(U.toLowerCase())}get(U){this.init();const re=this.headers.get(U.toLowerCase());return re&&re.length>0?re[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(U){return this.init(),this.headers.get(U.toLowerCase())||null}append(U,re){return this.clone({name:U,value:re,op:"a"})}set(U,re){return this.clone({name:U,value:re,op:"s"})}delete(U,re){return this.clone({name:U,value:re,op:"d"})}maybeSetNormalizedName(U,re){this.normalizedNames.has(re)||this.normalizedNames.set(re,U)}init(){this.lazyInit&&(this.lazyInit instanceof j?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(U=>this.applyUpdate(U)),this.lazyUpdate=null))}copyFrom(U){U.init(),Array.from(U.headers.keys()).forEach(re=>{this.headers.set(re,U.headers.get(re)),this.normalizedNames.set(re,U.normalizedNames.get(re))})}clone(U){const re=new j;return re.lazyInit=this.lazyInit&&this.lazyInit instanceof j?this.lazyInit:this,re.lazyUpdate=(this.lazyUpdate||[]).concat([U]),re}applyUpdate(U){const re=U.name.toLowerCase();switch(U.op){case"a":case"s":let Ke=U.value;if("string"==typeof Ke&&(Ke=[Ke]),0===Ke.length)return;this.maybeSetNormalizedName(U.name,re);const K=("a"===U.op?this.headers.get(re):void 0)||[];K.push(...Ke),this.headers.set(re,K);break;case"d":const ce=U.value;if(ce){let De=this.headers.get(re);if(!De)return;De=De.filter(qe=>-1===ce.indexOf(qe)),0===De.length?(this.headers.delete(re),this.normalizedNames.delete(re)):this.headers.set(re,De)}else this.headers.delete(re),this.normalizedNames.delete(re)}}forEach(U){this.init(),Array.from(this.normalizedNames.keys()).forEach(re=>U(this.normalizedNames.get(re),this.headers.get(re)))}}class le{encodeKey(U){return Re(U)}encodeValue(U){return Re(U)}decodeKey(U){return decodeURIComponent(U)}decodeValue(U){return decodeURIComponent(U)}}const Ee=/%(\d[a-f0-9])/gi,Ne={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Re(V){return encodeURIComponent(V).replace(Ee,(U,re)=>Ne[re]??U)}function ue(V){return`${V}`}class ke{constructor(U={}){if(this.updates=null,this.cloneFrom=null,this.encoder=U.encoder||new le,U.fromString){if(U.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function He(V,U){const re=new Map;return V.length>0&&V.replace(/^\?/,"").split("&").forEach(K=>{const ce=K.indexOf("="),[De,qe]=-1==ce?[U.decodeKey(K),""]:[U.decodeKey(K.slice(0,ce)),U.decodeValue(K.slice(ce+1))],Ie=re.get(De)||[];Ie.push(qe),re.set(De,Ie)}),re}(U.fromString,this.encoder)}else U.fromObject?(this.map=new Map,Object.keys(U.fromObject).forEach(re=>{const Ke=U.fromObject[re],K=Array.isArray(Ke)?Ke.map(ue):[ue(Ke)];this.map.set(re,K)})):this.map=null}has(U){return this.init(),this.map.has(U)}get(U){this.init();const re=this.map.get(U);return re?re[0]:null}getAll(U){return this.init(),this.map.get(U)||null}keys(){return this.init(),Array.from(this.map.keys())}append(U,re){return this.clone({param:U,value:re,op:"a"})}appendAll(U){const re=[];return Object.keys(U).forEach(Ke=>{const K=U[Ke];Array.isArray(K)?K.forEach(ce=>{re.push({param:Ke,value:ce,op:"a"})}):re.push({param:Ke,value:K,op:"a"})}),this.clone(re)}set(U,re){return this.clone({param:U,value:re,op:"s"})}delete(U,re){return this.clone({param:U,value:re,op:"d"})}toString(){return this.init(),this.keys().map(U=>{const re=this.encoder.encodeKey(U);return this.map.get(U).map(Ke=>re+"="+this.encoder.encodeValue(Ke)).join("&")}).filter(U=>""!==U).join("&")}clone(U){const re=new ke({encoder:this.encoder});return re.cloneFrom=this.cloneFrom||this,re.updates=(this.updates||[]).concat(U),re}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(U=>this.map.set(U,this.cloneFrom.map.get(U))),this.updates.forEach(U=>{switch(U.op){case"a":case"s":const re=("a"===U.op?this.map.get(U.param):void 0)||[];re.push(ue(U.value)),this.map.set(U.param,re);break;case"d":if(void 0===U.value){this.map.delete(U.param);break}{let Ke=this.map.get(U.param)||[];const K=Ke.indexOf(ue(U.value));-1!==K&&Ke.splice(K,1),Ke.length>0?this.map.set(U.param,Ke):this.map.delete(U.param)}}}),this.cloneFrom=this.updates=null)}}class et{constructor(){this.map=new Map}set(U,re){return this.map.set(U,re),this}get(U){return this.map.has(U)||this.map.set(U,U.defaultValue()),this.map.get(U)}delete(U){return this.map.delete(U),this}has(U){return this.map.has(U)}keys(){return this.map.keys()}}function de(V){return typeof ArrayBuffer<"u"&&V instanceof ArrayBuffer}function ye(V){return typeof Blob<"u"&&V instanceof Blob}function ve(V){return typeof FormData<"u"&&V instanceof FormData}class xe{constructor(U,re,Ke,K){let ce;if(this.url=re,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=U.toUpperCase(),function be(V){switch(V){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||K?(this.body=void 0!==Ke?Ke:null,ce=K):ce=Ke,ce&&(this.reportProgress=!!ce.reportProgress,this.withCredentials=!!ce.withCredentials,ce.responseType&&(this.responseType=ce.responseType),ce.headers&&(this.headers=ce.headers),ce.context&&(this.context=ce.context),ce.params&&(this.params=ce.params)),this.headers||(this.headers=new j),this.context||(this.context=new et),this.params){const De=this.params.toString();if(0===De.length)this.urlWithParams=re;else{const qe=re.indexOf("?");this.urlWithParams=re+(-1===qe?"?":qe<re.length-1?"&":"")+De}}else this.params=new ke,this.urlWithParams=re}serializeBody(){return null===this.body?null:de(this.body)||ye(this.body)||ve(this.body)||function Ue(V){return typeof URLSearchParams<"u"&&V instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ke?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||ve(this.body)?null:ye(this.body)?this.body.type||null:de(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ke?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(U={}){const re=U.method||this.method,Ke=U.url||this.url,K=U.responseType||this.responseType,ce=void 0!==U.body?U.body:this.body,De=void 0!==U.withCredentials?U.withCredentials:this.withCredentials,qe=void 0!==U.reportProgress?U.reportProgress:this.reportProgress;let Ie=U.headers||this.headers,Rt=U.params||this.params;const Wt=U.context??this.context;return void 0!==U.setHeaders&&(Ie=Object.keys(U.setHeaders).reduce((tn,he)=>tn.set(he,U.setHeaders[he]),Ie)),U.setParams&&(Rt=Object.keys(U.setParams).reduce((tn,he)=>tn.set(he,U.setParams[he]),Rt)),new xe(re,Ke,ce,{params:Rt,headers:Ie,context:Wt,reportProgress:qe,responseType:K,withCredentials:De})}}var ze=(()=>((ze=ze||{})[ze.Sent=0]="Sent",ze[ze.UploadProgress=1]="UploadProgress",ze[ze.ResponseHeader=2]="ResponseHeader",ze[ze.DownloadProgress=3]="DownloadProgress",ze[ze.Response=4]="Response",ze[ze.User=5]="User",ze))();class dt{constructor(U,re=200,Ke="OK"){this.headers=U.headers||new j,this.status=void 0!==U.status?U.status:re,this.statusText=U.statusText||Ke,this.url=U.url||null,this.ok=this.status>=200&&this.status<300}}class vt extends dt{constructor(U={}){super(U),this.type=ze.ResponseHeader}clone(U={}){return new vt({headers:U.headers||this.headers,status:void 0!==U.status?U.status:this.status,statusText:U.statusText||this.statusText,url:U.url||this.url||void 0})}}class Lt extends dt{constructor(U={}){super(U),this.type=ze.Response,this.body=void 0!==U.body?U.body:null}clone(U={}){return new Lt({body:void 0!==U.body?U.body:this.body,headers:U.headers||this.headers,status:void 0!==U.status?U.status:this.status,statusText:U.statusText||this.statusText,url:U.url||this.url||void 0})}}class Mt extends dt{constructor(U){super(U,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${U.url||"(unknown url)"}`:`Http failure response for ${U.url||"(unknown url)"}: ${U.status} ${U.statusText}`,this.error=U.error||null}}function We(V,U){return{body:U,headers:V.headers,context:V.context,observe:V.observe,params:V.params,reportProgress:V.reportProgress,responseType:V.responseType,withCredentials:V.withCredentials}}let rt=(()=>{class V{constructor(re){this.handler=re}request(re,Ke,K={}){let ce;if(re instanceof xe)ce=re;else{let Ie,Rt;Ie=K.headers instanceof j?K.headers:new j(K.headers),K.params&&(Rt=K.params instanceof ke?K.params:new ke({fromObject:K.params})),ce=new xe(re,Ke,void 0!==K.body?K.body:null,{headers:Ie,context:K.context,params:Rt,reportProgress:K.reportProgress,responseType:K.responseType||"json",withCredentials:K.withCredentials})}const De=(0,A.of)(ce).pipe((0,X.b)(Ie=>this.handler.handle(Ie)));if(re instanceof xe||"events"===K.observe)return De;const qe=De.pipe((0,se.h)(Ie=>Ie instanceof Lt));switch(K.observe||"body"){case"body":switch(ce.responseType){case"arraybuffer":return qe.pipe((0,J.U)(Ie=>{if(null!==Ie.body&&!(Ie.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ie.body}));case"blob":return qe.pipe((0,J.U)(Ie=>{if(null!==Ie.body&&!(Ie.body instanceof Blob))throw new Error("Response is not a Blob.");return Ie.body}));case"text":return qe.pipe((0,J.U)(Ie=>{if(null!==Ie.body&&"string"!=typeof Ie.body)throw new Error("Response is not a string.");return Ie.body}));default:return qe.pipe((0,J.U)(Ie=>Ie.body))}case"response":return qe;default:throw new Error(`Unreachable: unhandled observe type ${K.observe}}`)}}delete(re,Ke={}){return this.request("DELETE",re,Ke)}get(re,Ke={}){return this.request("GET",re,Ke)}head(re,Ke={}){return this.request("HEAD",re,Ke)}jsonp(re,Ke){return this.request("JSONP",re,{params:(new ke).append(Ke,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(re,Ke={}){return this.request("OPTIONS",re,Ke)}patch(re,Ke,K={}){return this.request("PATCH",re,We(K,Ke))}post(re,Ke,K={}){return this.request("POST",re,We(K,Ke))}put(re,Ke,K={}){return this.request("PUT",re,We(K,Ke))}}return V.\u0275fac=function(re){return new(re||V)(c.LFG(ee))},V.\u0275prov=c.Yz7({token:V,factory:V.\u0275fac}),V})();function at(V,U){return U(V)}function mt(V,U){return(re,Ke)=>U.intercept(re,{handle:K=>V(K,Ke)})}const bt=new c.OlP("HTTP_INTERCEPTORS"),It=new c.OlP("HTTP_INTERCEPTOR_FNS");function Ce(){let V=null;return(U,re)=>(null===V&&(V=((0,c.f3M)(bt,{optional:!0})??[]).reduceRight(mt,at)),V(U,re))}let Xe=(()=>{class V extends ee{constructor(re,Ke){super(),this.backend=re,this.injector=Ke,this.chain=null}handle(re){if(null===this.chain){const Ke=Array.from(new Set(this.injector.get(It)));this.chain=Ke.reduceRight((K,ce)=>function Et(V,U,re){return(Ke,K)=>re.runInContext(()=>U(Ke,ce=>V(ce,K)))}(K,ce,this.injector),at)}return this.chain(re,Ke=>this.backend.handle(Ke))}}return V.\u0275fac=function(re){return new(re||V)(c.LFG(ne),c.LFG(c.lqb))},V.\u0275prov=c.Yz7({token:V,factory:V.\u0275fac}),V})();const Pn=/^\)\]\}',?\n/;let tt=(()=>{class V{constructor(re){this.xhrFactory=re}handle(re){if("JSONP"===re.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new B.y(Ke=>{const K=this.xhrFactory.build();if(K.open(re.method,re.urlWithParams),re.withCredentials&&(K.withCredentials=!0),re.headers.forEach((k,p)=>K.setRequestHeader(k,p.join(","))),re.headers.has("Accept")||K.setRequestHeader("Accept","application/json, text/plain, */*"),!re.headers.has("Content-Type")){const k=re.detectContentTypeHeader();null!==k&&K.setRequestHeader("Content-Type",k)}if(re.responseType){const k=re.responseType.toLowerCase();K.responseType="json"!==k?k:"text"}const ce=re.serializeBody();let De=null;const qe=()=>{if(null!==De)return De;const k=K.statusText||"OK",p=new j(K.getAllResponseHeaders()),_=function sn(V){return"responseURL"in V&&V.responseURL?V.responseURL:/^X-Request-URL:/m.test(V.getAllResponseHeaders())?V.getResponseHeader("X-Request-URL"):null}(K)||re.url;return De=new vt({headers:p,status:K.status,statusText:k,url:_}),De},Ie=()=>{let{headers:k,status:p,statusText:_,url:I}=qe(),P=null;204!==p&&(P=typeof K.response>"u"?K.responseText:K.response),0===p&&(p=P?200:0);let oe=p>=200&&p<300;if("json"===re.responseType&&"string"==typeof P){const Be=P;P=P.replace(Pn,"");try{P=""!==P?JSON.parse(P):null}catch(yt){P=Be,oe&&(oe=!1,P={error:yt,text:P})}}oe?(Ke.next(new Lt({body:P,headers:k,status:p,statusText:_,url:I||void 0})),Ke.complete()):Ke.error(new Mt({error:P,headers:k,status:p,statusText:_,url:I||void 0}))},Rt=k=>{const{url:p}=qe(),_=new Mt({error:k,status:K.status||0,statusText:K.statusText||"Unknown Error",url:p||void 0});Ke.error(_)};let Wt=!1;const tn=k=>{Wt||(Ke.next(qe()),Wt=!0);let p={type:ze.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(p.total=k.total),"text"===re.responseType&&K.responseText&&(p.partialText=K.responseText),Ke.next(p)},he=k=>{let p={type:ze.UploadProgress,loaded:k.loaded};k.lengthComputable&&(p.total=k.total),Ke.next(p)};return K.addEventListener("load",Ie),K.addEventListener("error",Rt),K.addEventListener("timeout",Rt),K.addEventListener("abort",Rt),re.reportProgress&&(K.addEventListener("progress",tn),null!==ce&&K.upload&&K.upload.addEventListener("progress",he)),K.send(ce),Ke.next({type:ze.Sent}),()=>{K.removeEventListener("error",Rt),K.removeEventListener("abort",Rt),K.removeEventListener("load",Ie),K.removeEventListener("timeout",Rt),re.reportProgress&&(K.removeEventListener("progress",tn),null!==ce&&K.upload&&K.upload.removeEventListener("progress",he)),K.readyState!==K.DONE&&K.abort()}})}}return V.\u0275fac=function(re){return new(re||V)(c.LFG(r.JF))},V.\u0275prov=c.Yz7({token:V,factory:V.\u0275fac}),V})();const W=new c.OlP("XSRF_ENABLED"),ae="XSRF-TOKEN",Se=new c.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>ae}),nt="X-XSRF-TOKEN",ct=new c.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>nt});class At{}let Ht=(()=>{class V{constructor(re,Ke,K){this.doc=re,this.platform=Ke,this.cookieName=K,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const re=this.doc.cookie||"";return re!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.Mx)(re,this.cookieName),this.lastCookieString=re),this.lastToken}}return V.\u0275fac=function(re){return new(re||V)(c.LFG(r.K0),c.LFG(c.Lbi),c.LFG(Se))},V.\u0275prov=c.Yz7({token:V,factory:V.\u0275fac}),V})();function Pt(V,U){const re=V.url.toLowerCase();if(!(0,c.f3M)(W)||"GET"===V.method||"HEAD"===V.method||re.startsWith("http://")||re.startsWith("https://"))return U(V);const Ke=(0,c.f3M)(At).getToken(),K=(0,c.f3M)(ct);return null!=Ke&&!V.headers.has(K)&&(V=V.clone({headers:V.headers.set(K,Ke)})),U(V)}var we=(()=>((we=we||{})[we.Interceptors=0]="Interceptors",we[we.LegacyInterceptors=1]="LegacyInterceptors",we[we.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",we[we.NoXsrfProtection=3]="NoXsrfProtection",we[we.JsonpSupport=4]="JsonpSupport",we[we.RequestsMadeViaParent=5]="RequestsMadeViaParent",we))();function lt(V,U){return{\u0275kind:V,\u0275providers:U}}function fe(...V){const U=[rt,tt,Xe,{provide:ee,useExisting:Xe},{provide:ne,useExisting:tt},{provide:It,useValue:Pt,multi:!0},{provide:W,useValue:!0},{provide:At,useClass:Ht}];for(const re of V)U.push(...re.\u0275providers);return(0,c.MR2)(U)}const Dt=new c.OlP("LEGACY_INTERCEPTOR_FN");function an({cookieName:V,headerName:U}){const re=[];return void 0!==V&&re.push({provide:Se,useValue:V}),void 0!==U&&re.push({provide:ct,useValue:U}),lt(we.CustomXsrfConfiguration,re)}let Sn=(()=>{class V{}return V.\u0275fac=function(re){return new(re||V)},V.\u0275mod=c.oAB({type:V}),V.\u0275inj=c.cJS({providers:[fe(lt(we.LegacyInterceptors,[{provide:Dt,useFactory:Ce},{provide:It,useExisting:Dt,multi:!0}]),an({cookieName:ae,headerName:nt}))]}),V})()},4650:(Ct,Te,g)=>{g.d(Te,{$8M:()=>Rs,$WT:()=>qn,$Z:()=>Eh,AFp:()=>Sm,ALo:()=>Gp,AaK:()=>ee,AsE:()=>vu,BQk:()=>Nl,CHM:()=>S,CRH:()=>im,CZH:()=>Ql,CqO:()=>nf,D6c:()=>UC,Dn7:()=>Kp,EJc:()=>tC,EiD:()=>Vd,EpF:()=>ef,F$t:()=>uf,F4k:()=>tf,FYo:()=>eh,FiY:()=>_n,G48:()=>EC,Gf:()=>tm,GfV:()=>th,GkF:()=>au,Gpc:()=>q,Gre:()=>jf,Hsn:()=>df,Ikx:()=>yu,JOm:()=>Cs,JVY:()=>Gg,JZr:()=>Re,KtG:()=>Z,L6k:()=>Wg,LAX:()=>Kg,LFG:()=>Oe,LSH:()=>Ac,Lbi:()=>Xb,Lck:()=>q0,MAs:()=>qh,MGl:()=>Ll,MMx:()=>xu,MR2:()=>u_,NdJ:()=>cu,OlP:()=>li,Oqu:()=>_u,P3R:()=>jd,PXZ:()=>gC,Q6J:()=>ru,QGY:()=>lu,QbO:()=>Jb,Qsj:()=>A_,R0b:()=>Zo,RDi:()=>Bg,Rgc:()=>ul,SBq:()=>Qa,Sil:()=>iC,Suo:()=>nm,TTD:()=>pi,TgZ:()=>Fl,Tol:()=>Sf,Udp:()=>pu,VKq:()=>Np,W1O:()=>am,WLB:()=>Lp,X6Q:()=>CC,XFs:()=>ae,Xpm:()=>Bt,Xts:()=>Mc,Y36:()=>Ma,YKP:()=>Sp,YNc:()=>Jh,Yjl:()=>mn,Yz7:()=>Ve,Z0I:()=>zt,ZZ4:()=>qu,_Bn:()=>Mp,_UZ:()=>su,_Vd:()=>Za,_c5:()=>BC,_uU:()=>Rf,aQg:()=>ed,c2e:()=>qb,cJS:()=>xt,cg1:()=>Cu,d8E:()=>bu,dDg:()=>hC,dqk:()=>Pt,eBb:()=>Yg,eFA:()=>Um,ekj:()=>mu,eoX:()=>Lm,f3M:()=>V,g9A:()=>xm,h0i:()=>Ua,hGG:()=>VC,hij:()=>Ul,iGM:()=>em,ifc:()=>tn,ip1:()=>Mm,jDz:()=>xp,kEZ:()=>Bp,kL8:()=>Jf,l5B:()=>Vp,lG2:()=>Yt,lcZ:()=>Wp,lqb:()=>la,lri:()=>km,mCW:()=>yl,n5z:()=>yr,n_E:()=>Gl,oAB:()=>Ot,oJD:()=>Ud,oxw:()=>cf,pB0:()=>Zg,q3G:()=>tr,q4F:()=>nh,qLn:()=>Xa,qOj:()=>eu,qZA:()=>Rl,qzn:()=>Ca,rWj:()=>Nm,s9C:()=>uu,sBO:()=>DC,s_b:()=>Yl,soG:()=>Xl,tBr:()=>On,tb:()=>Im,tp0:()=>x,uIk:()=>iu,vHH:()=>ue,vpe:()=>Ms,wAp:()=>Dn,xi3:()=>Yp,xp6:()=>ch,ynx:()=>kl,z2F:()=>Jl,z3N:()=>Ns,zSh:()=>Ic,zs3:()=>ca});var r=g(7579),c=g(727),A=g(9751),B=g(6451),X=g(3099);function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function J(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ee(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ee).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 ne(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const j=se({__forward_ref__:se});function q(e){return e.__forward_ref__=q,e.toString=function(){return ee(this())},e}function le(e){return He(e)?e():e}function He(e){return"function"==typeof e&&e.hasOwnProperty(j)&&e.__forward_ref__===q}function Ee(e){return e&&!!e.\u0275providers}const Re="https://g.co/ng/security#xss";class ue extends Error{constructor(t,n){super(function ke(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function Fe(e){return"string"==typeof e?e:null==e?"":String(e)}function ve(e,t){throw new ue(-201,!1)}function It(e,t){null==e&&function Ce(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function Ve(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function xt(e){return{providers:e.providers||[],imports:e.imports||[]}}function en(e){return Jt(e,Pn)||Jt(e,tt)}function zt(e){return null!==en(e)}function Jt(e,t){return e.hasOwnProperty(t)?e[t]:null}function Fn(e){return e&&(e.hasOwnProperty(sn)||e.hasOwnProperty(W))?e[sn]:null}const Pn=se({\u0275prov:se}),sn=se({\u0275inj:se}),tt=se({ngInjectableDef:se}),W=se({ngInjectorDef:se});var ae=(()=>((ae=ae||{})[ae.Default=0]="Default",ae[ae.Host=1]="Host",ae[ae.Self=2]="Self",ae[ae.SkipSelf=4]="SkipSelf",ae[ae.Optional=8]="Optional",ae))();let Se;function ct(e){const t=Se;return Se=e,t}function At(e,t,n){const i=en(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&ae.Optional?null:void 0!==t?t:void ve(ee(e))}const Pt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),fe={},Ye="__NG_DI_FLAG__",Dt="ngTempTokenPath",an=/\n/gm,wn="__source";let ln;function xn(e){const t=ln;return ln=e,t}function Sn(e,t=ae.Default){if(void 0===ln)throw new ue(-203,!1);return null===ln?At(e,void 0,t):ln.get(e,t&ae.Optional?null:void 0,t)}function Oe(e,t=ae.Default){return(function nt(){return Se}()||Sn)(le(e),t)}function V(e,t=ae.Default){return Oe(e,U(t))}function U(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function re(e){const t=[];for(let n=0;n<e.length;n++){const i=le(e[n]);if(Array.isArray(i)){if(0===i.length)throw new ue(900,!1);let o,s=ae.Default;for(let d=0;d<i.length;d++){const y=i[d],w=K(y);"number"==typeof w?-1===w?o=y.token:s|=w:o=y}t.push(Oe(o,s))}else t.push(Oe(i))}return t}function Ke(e,t){return e[Ye]=t,e.prototype[Ye]=t,e}function K(e){return e[Ye]}function qe(e){return{toString:e}.toString()}var Ie=(()=>((Ie=Ie||{})[Ie.OnPush=0]="OnPush",Ie[Ie.Default=1]="Default",Ie))(),tn=(()=>{return(e=tn||(tn={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",tn;var e})();const he={},k=[],p=se({\u0275cmp:se}),_=se({\u0275dir:se}),I=se({\u0275pipe:se}),P=se({\u0275mod:se}),oe=se({\u0275fac:se}),Be=se({__NG_ELEMENT_ID__:se});let yt=0;function Bt(e){return qe(()=>{const n=!0===e.standalone,i={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ie.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||k,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||tn.Emulated,id:"c"+yt++,styles:e.styles||k,_:null,setInput:null,schemas:e.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},s=e.dependencies,d=e.features;return o.inputs=ft(e.inputs,i),o.outputs=ft(e.outputs),d&&d.forEach(y=>y(o)),o.directiveDefs=s?()=>("function"==typeof s?s():s).map(bn).filter(ht):null,o.pipeDefs=s?()=>("function"==typeof s?s():s).map(ni).filter(ht):null,o})}function bn(e){return fn(e)||zn(e)}function ht(e){return null!==e}function Ot(e){return qe(()=>({type:e.type,bootstrap:e.bootstrap||k,declarations:e.declarations||k,imports:e.imports||k,exports:e.exports||k,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ft(e,t){if(null==e)return he;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),n[o]=i,t&&(t[o]=s)}return n}const Yt=Bt;function mn(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 fn(e){return e[p]||null}function zn(e){return e[_]||null}function ni(e){return e[I]||null}function qn(e){const t=fn(e)||zn(e)||ni(e);return null!==t&&t.standalone}function ii(e,t){const n=e[P]||null;if(!n&&!0===t)throw new Error(`Type ${ee(e)} does not have '\u0275mod' property.`);return n}function _i(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ci(e){return Array.isArray(e)&&!0===e[1]}function Ki(e){return 0!=(4&e.flags)}function Zi(e){return e.componentOffset>-1}function Or(e){return 1==(1&e.flags)}function Ei(e){return null!==e.template}function Lo(e){return 0!=(256&e[2])}function fi(e,t){return e.hasOwnProperty(oe)?e[oe]:null}class Si{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function pi(){return vi}function vi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Li),wr}function wr(){const e=Ar(this),t=e?.current;if(t){const n=e.previous;if(n===he)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Li(e,t,n,i){const o=this.declaredInputs[n],s=Ar(e)||function Br(e,t){return e[yi]=t}(e,{previous:he,current:null}),d=s.current||(s.current={}),y=s.previous,w=y[o];d[o]=new Si(w&&w.currentValue,t,y===he),e[i]=t}pi.ngInherit=!0;const yi="__ngSimpleChanges__";function Ar(e){return e[yi]||null}function ri(e){for(;Array.isArray(e);)e=e[0];return e}function fr(e,t){return ri(t[e])}function Vn(e,t){return ri(t[e.index])}function ho(e,t){return e.data[t]}function mr(e,t){return e[t]}function mi(e,t){const n=t[e];return _i(n)?n:n[0]}function fo(e){return 64==(64&e[2])}function $i(e,t){return null==t?null:e[t]}function po(e){e[18]=0}function Rr(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const gn={lFrame:Hr(null),bindingsEnabled:!0};function Ho(){return gn.bindingsEnabled}function D(){return gn.lFrame.lView}function M(){return gn.lFrame.tView}function S(e){return gn.lFrame.contextLView=e,e[8]}function Z(e){return gn.lFrame.contextLView=null,e}function ot(){let e=rn();for(;null!==e&&64===e.type;)e=e.parent;return e}function rn(){return gn.lFrame.currentTNode}function oi(e,t){const n=gn.lFrame;n.currentTNode=e,n.isParent=t}function Xi(){return gn.lFrame.isParent}function gr(){gn.lFrame.isParent=!1}function Pi(){const e=gn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _r(){return gn.lFrame.bindingIndex++}function vr(e){const t=gn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ts(e,t){const n=gn.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xo(t)}function Xo(e){gn.lFrame.currentDirectiveIndex=e}function Ur(e){const t=gn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function us(){return gn.lFrame.currentQueryIndex}function xo(e){gn.lFrame.currentQueryIndex=e}function qr(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function jo(e,t,n){if(n&ae.SkipSelf){let o=t,s=e;for(;!(o=o.parent,null!==o||n&ae.Host||(o=qr(s),null===o||(s=s[15],10&o.type))););if(null===o)return!1;t=o,e=s}const i=gn.lFrame=vo();return i.currentTNode=t,i.lView=e,!0}function _o(e){const t=vo(),n=e[1];gn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function vo(){const e=gn.lFrame,t=null===e?null:e.child;return null===t?Hr(e):t}function Hr(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 Js(){const e=gn.lFrame;return gn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Io=Js;function eo(){const e=Js();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 Fi(){return gn.lFrame.selectedIndex}function $r(e){gn.lFrame.selectedIndex=e}function si(){const e=gn.lFrame;return ho(e.tView,e.selectedIndex)}function zr(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:d,ngAfterContentChecked:y,ngAfterViewInit:w,ngAfterViewChecked:R,ngOnDestroy:Y}=s;d&&(e.contentHooks||(e.contentHooks=[])).push(-n,d),y&&((e.contentHooks||(e.contentHooks=[])).push(n,y),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,y)),w&&(e.viewHooks||(e.viewHooks=[])).push(-n,w),R&&((e.viewHooks||(e.viewHooks=[])).push(n,R),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,R)),null!=Y&&(e.destroyHooks||(e.destroyHooks=[])).push(n,Y)}}function no(e,t,n){T(e,t,3,n)}function b(e,t,n,i){(3&e[2])===n&&T(e,t,n,i)}function N(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function T(e,t,n,i){const s=i??-1,d=t.length-1;let y=0;for(let w=void 0!==i?65535&e[18]:0;w<d;w++)if("number"==typeof t[w+1]){if(y=t[w],null!=i&&y>=i)break}else t[w]<0&&(e[18]+=65536),(y<s||-1==s)&&(z(e,n,t,w),e[18]=(4294901760&e[18])+w+2),w++}function z(e,t,n,i){const o=n[i]<0,s=n[i+1],y=e[o?-n[i]:n[i]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{s.call(y)}finally{}}}else try{s.call(y)}finally{}}class st{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function ai(e,t,n){let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],d=n[i++],y=n[i++];e.setAttribute(t,d,y,s)}else{const s=o,d=n[++i];Ji(s)?e.setProperty(t,s,d):e.setAttribute(t,s,d),i++}}return i}function ar(e){return 3===e||4===e||6===e}function Ji(e){return 64===e.charCodeAt(0)}function Gi(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 o=t[i];"number"==typeof o?n=o:0===n||qi(e,n,o,null,-1===n||2===n?t[++i]:null)}}return e}function qi(e,t,n,i,o){let s=0,d=e.length;if(-1===t)d=-1;else for(;s<e.length;){const y=e[s++];if("number"==typeof y){if(y===t){d=-1;break}if(y>t){d=s-1;break}}}for(;s<e.length;){const y=e[s];if("number"==typeof y)break;if(y===n){if(null===i)return void(null!==o&&(e[s+1]=o));if(i===e[s+1])return void(e[s+2]=o)}s++,null!==i&&s++,null!==o&&s++}-1!==d&&(e.splice(d,0,t),s=d+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==o&&e.splice(s++,0,o)}function kr(e){return-1!==e}function io(e){return 32767&e}function hs(e,t){let n=function yo(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let Jo=!0;function fs(e){const t=Jo;return Jo=e,t}let qs=0;const Tr={};function $o(e,t){const n=Gr(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,qo(i.data,e),qo(t,null),qo(i.blueprint,null));const o=es(e,t),s=e.injectorIndex;if(kr(o)){const d=io(o),y=hs(o,t),w=y[1].data;for(let R=0;R<8;R++)t[s+R]=y[d+R]|w[d+R]}return t[s+8]=o,s}function qo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Gr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function es(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){if(i=Fs(o),null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Vi(e,t,n){!function zs(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Be)&&(i=n[Be]),null==i&&(i=n[Be]=qs++);const o=255&i;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function ts(e,t,n){if(n&ae.Optional||void 0!==e)return e;ve()}function ns(e,t,n,i){if(n&ae.Optional&&void 0===i&&(i=null),!(n&(ae.Self|ae.Host))){const o=e[9],s=ct(void 0);try{return o?o.get(t,i,n&ae.Optional):At(t,i,n&ae.Optional)}finally{ct(s)}}return ts(i,0,n)}function Ps(e,t,n,i=ae.Default,o){if(null!==e){if(1024&t[2]){const d=function Wo(e,t,n,i,o){let s=e,d=t;for(;null!==s&&null!==d&&1024&d[2]&&!(256&d[2]);){const y=xr(s,d,n,i|ae.Self,Tr);if(y!==Tr)return y;let w=s.parent;if(!w){const R=d[21];if(R){const Y=R.get(n,Tr,i);if(Y!==Tr)return Y}w=Fs(d),d=d[15]}s=w}return o}(e,t,n,i,Tr);if(d!==Tr)return d}const s=xr(e,t,n,i,Tr);if(s!==Tr)return s}return ns(t,n,i,o)}function xr(e,t,n,i,o){const s=function zo(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Be)?e[Be]:void 0;return"number"==typeof t?t>=0?255&t:ea:t}(n);if("function"==typeof s){if(!jo(t,e,i))return i&ae.Host?ts(o,0,i):ns(t,n,i,o);try{const d=s(i);if(null!=d||i&ae.Optional)return d;ve()}finally{Io()}}else if("number"==typeof s){let d=null,y=Gr(e,t),w=-1,R=i&ae.Host?t[16][6]:null;for((-1===y||i&ae.SkipSelf)&&(w=-1===y?es(e,t):t[y+8],-1!==w&&er(i,!1)?(d=t[1],y=io(w),t=hs(w,t)):y=-1);-1!==y;){const Y=t[1];if(ms(s,y,Y.data)){const pe=Gs(y,t,n,d,i,R);if(pe!==Tr)return pe}w=t[y+8],-1!==w&&er(i,t[1].data[y+8]===R)&&ms(s,y,t)?(d=Y,y=io(w),t=hs(w,t)):y=-1}}return o}function Gs(e,t,n,i,o,s){const d=t[1],y=d.data[e+8],Y=is(y,d,n,null==i?Zi(y)&&Jo:i!=d&&0!=(3&y.type),o&ae.Host&&s===y);return null!==Y?ro(t,d,Y,y):Tr}function is(e,t,n,i,o){const s=e.providerIndexes,d=t.data,y=1048575&s,w=e.directiveStart,Y=s>>20,je=o?y+Y:e.directiveEnd;for(let it=i?y:y+Y;it<je;it++){const wt=d[it];if(it<w&&n===wt||it>=w&&wt.type===n)return it}if(o){const it=d[w];if(it&&Ei(it)&&it.type===n)return w}return null}function ro(e,t,n,i){let o=e[n];const s=t.data;if(function pt(e){return e instanceof st}(o)){const d=o;d.resolving&&function be(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ue(-200,`Circular dependency in DI detected for ${e}${n}`)}(function et(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Fe(e)}(s[n]));const y=fs(d.canSeeViewProviders);d.resolving=!0;const w=d.injectImpl?ct(d.injectImpl):null;jo(e,i,ae.Default);try{o=e[n]=d.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Os(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:s}=t.type.prototype;if(i){const d=vi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,d),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,d)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==w&&ct(w),fs(y),d.resolving=!1,Io()}}return o}function ms(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function er(e,t){return!(e&ae.Self||e&ae.Host&&t)}class Po{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return Ps(this._tNode,this._lView,t,U(i),n)}}function ea(){return new Po(ot(),D())}function yr(e){return qe(()=>{const t=e.prototype.constructor,n=t[oe]||Go(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const s=o[oe]||Go(o);if(s&&s!==n)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Go(e){return He(e)?()=>{const t=Go(le(e));return t&&t()}:fi(e)}function Fs(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function Rs(e){return function ps(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 o=0;for(;o<i;){const s=n[o];if(ar(s))break;if(0===s)o+=2;else if("number"==typeof s)for(o++;o<i&&"string"==typeof n[o];)o++;else{if(s===t)return n[o+1];o+=2}}}return null}(ot(),e)}const so="__parameters__";function bo(e,t,n){return qe(()=>{const i=function Ys(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...s){if(this instanceof o)return i.apply(this,s),this;const d=new o(...s);return y.annotation=d,y;function y(w,R,Y){const pe=w.hasOwnProperty(so)?w[so]:Object.defineProperty(w,so,{value:[]})[so];for(;pe.length<=Y;)pe.push(null);return(pe[Y]=pe[Y]||[]).push(d),w}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class li{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=Ve({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function h(e,t){e.forEach(n=>Array.isArray(n)?h(n,t):t(n))}function m(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function u(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function C(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function f(e,t,n){let i=a(e,t);return i>=0?e[1|i]=n:(i=~i,function Q(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function l(e,t){const n=a(e,t);if(n>=0)return e[1|n]}function a(e,t){return function F(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const s=i+(o-i>>1),d=e[s<<n];if(t===d)return s<<n;d>t?o=s:i=s+1}return~(o<<n)}(e,t,1)}const On=Ke(bo("Inject",e=>({token:e})),-1),_n=Ke(bo("Optional"),8),x=Ke(bo("SkipSelf"),4);var Cs=(()=>((Cs=Cs||{})[Cs.Important=1]="Important",Cs[Cs.DashCase=2]="DashCase",Cs))();const rc=new Map;let ag=0;const sc="__ngContext__";function Yr(e,t){_i(t)?(e[sc]=t[20],function cg(e){rc.set(e[20],e)}(t)):e[sc]=t}function lc(e,t){return undefined(e,t)}function Ga(e){const t=e[3];return Ci(t)?t[3]:t}function cc(e){return fd(e[13])}function uc(e){return fd(e[4])}function fd(e){for(;null!==e&&!Ci(e);)e=e[4];return e}function ba(e,t,n,i,o){if(null!=i){let s,d=!1;Ci(i)?s=i:_i(i)&&(d=!0,i=i[0]);const y=ri(i);0===e&&null!==n?null==o?yd(t,n,y):ra(t,n,y,o||null,!0):1===e&&null!==n?ra(t,n,y,o||null,!0):2===e?function _c(e,t,n){const i=pl(e,t);i&&function xg(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,y,d):3===e&&t.destroyNode(y),null!=s&&function Pg(e,t,n,i,o){const s=n[7];s!==ri(n)&&ba(t,e,i,s,o);for(let y=10;y<n.length;y++){const w=n[y];Wa(w[1],w,e,t,i,s)}}(t,e,s,n,o)}}function hc(e,t,n){return e.createElement(t,n)}function md(e,t){const n=e[9],i=n.indexOf(t),o=t[3];512&t[2]&&(t[2]&=-513,Rr(o,-1)),n.splice(i,1)}function fc(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const o=i[17];null!==o&&o!==e&&md(o,i),t>0&&(e[n-1][4]=i[4]);const s=u(e,10+t);!function Cg(e,t){Wa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const d=s[19];null!==d&&d.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function gd(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&Wa(e,t,n,3,null,null),function wg(e){let t=e[13];if(!t)return pc(e[1],e);for(;t;){let n=null;if(_i(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)_i(t)&&pc(t[1],t),t=t[3];null===t&&(t=e),_i(t)&&pc(t[1],t),n=t&&t[4]}t=n}}(t)}}function pc(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function Tg(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const o=t[n[i]];if(!(o instanceof st)){const s=n[i+1];if(Array.isArray(s))for(let d=0;d<s.length;d+=2){const y=o[s[d]],w=s[d+1];try{w.call(y)}finally{}}else try{s.call(o)}finally{}}}}(e,t),function Sg(e,t){const n=e.cleanup,i=t[7];let o=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const d=n[s+3];d>=0?i[o=d]():i[o=-d].unsubscribe(),s+=2}else{const d=i[o=n[s+1]];n[s].call(d)}if(null!==i){for(let s=o+1;s<i.length;s++)(0,i[s])();t[7]=null}}(e,t),1===t[1].type&&t[11].destroy();const n=t[17];if(null!==n&&Ci(t[3])){n!==t[3]&&md(n,t);const i=t[19];null!==i&&i.detachView(e)}!function ug(e){rc.delete(e[20])}(t)}}function _d(e,t,n){return function vd(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];{const{componentOffset:o}=i;if(o>-1){const{encapsulation:s}=e.data[i.directiveStart+o];if(s===tn.None||s===tn.Emulated)return null}return Vn(i,n)}}(e,t.parent,n)}function ra(e,t,n,i,o){e.insertBefore(t,n,i,o)}function yd(e,t,n){e.appendChild(t,n)}function bd(e,t,n,i,o){null!==i?ra(e,t,n,i,o):yd(e,t,n)}function pl(e,t){return e.parentNode(t)}function Cd(e,t,n){return Dd(e,t,n)}let _l,bc,vl,Dd=function Ed(e,t,n){return 40&e.type?Vn(e,n):null};function ml(e,t,n,i){const o=_d(e,i,t),s=t[11],y=Cd(i.parent||t[6],i,t);if(null!=o)if(Array.isArray(n))for(let w=0;w<n.length;w++)bd(s,o,n[w],y,!1);else bd(s,o,n,y,!1)}function gl(e,t){if(null!==t){const n=t.type;if(3&n)return Vn(t,e);if(4&n)return gc(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return gl(e,i);{const o=e[t.index];return Ci(o)?gc(-1,o):ri(o)}}if(32&n)return lc(t,e)()||ri(e[t.index]);{const i=Ad(e,t);return null!==i?Array.isArray(i)?i[0]:gl(Ga(e[16]),i):gl(e,t.next)}}return null}function Ad(e,t){return null!==t?e[16][6].projection[t.projection]:null}function gc(e,t){const n=10+e+1;if(n<t.length){const i=t[n],o=i[1].firstChild;if(null!==o)return gl(i,o)}return t[7]}function vc(e,t,n,i,o,s,d){for(;null!=n;){const y=i[n.index],w=n.type;if(d&&0===t&&(y&&Yr(ri(y),i),n.flags|=2),32!=(32&n.flags))if(8&w)vc(e,t,n.child,i,o,s,!1),ba(t,e,o,y,s);else if(32&w){const R=lc(n,i);let Y;for(;Y=R();)ba(t,e,o,Y,s);ba(t,e,o,y,s)}else 16&w?Md(e,t,i,n,o,s):ba(t,e,o,y,s);n=d?n.projectionNext:n.next}}function Wa(e,t,n,i,o,s){vc(n,i,e.firstChild,t,o,s,!1)}function Md(e,t,n,i,o,s){const d=n[16],w=d[6].projection[i.projection];if(Array.isArray(w))for(let R=0;R<w.length;R++)ba(t,e,o,w[R],s);else vc(e,t,w,d[3],o,s,!0)}function Sd(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Td(e,t,n){const{mergedAttrs:i,classes:o,styles:s}=n;null!==i&&ai(e,t,i),null!==o&&Sd(e,t,o),null!==s&&function Rg(e,t,n){e.setAttribute(t,"style",n)}(e,t,s)}function oa(e){return function yc(){if(void 0===_l&&(_l=null,Pt.trustedTypes))try{_l=Pt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _l}()?.createHTML(e)||e}function Bg(e){bc=e}function Cc(){if(void 0===vl&&(vl=null,Pt.trustedTypes))try{vl=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return vl}function Id(e){return Cc()?.createHTML(e)||e}function Pd(e){return Cc()?.createScriptURL(e)||e}class sa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Re})`}}class Vg extends sa{getTypeName(){return"HTML"}}class Ug extends sa{getTypeName(){return"Style"}}class Hg extends sa{getTypeName(){return"Script"}}class jg extends sa{getTypeName(){return"URL"}}class $g extends sa{getTypeName(){return"ResourceURL"}}function Ns(e){return e instanceof sa?e.changingThisBreaksApplicationSecurity:e}function Ca(e,t){const n=function zg(e){return e instanceof sa&&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 ${Re})`)}return n===t}function Gg(e){return new Vg(e)}function Wg(e){return new Ug(e)}function Yg(e){return new Hg(e)}function Kg(e){return new jg(e)}function Zg(e){return new $g(e)}class Qg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(oa(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Xg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=oa(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=oa(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0<o;o--){const d=n.item(o).name;("xmlns:ns1"===d||0===d.indexOf("ns1:"))&&t.removeAttribute(d)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const qg=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function yl(e){return(e=String(e)).match(qg)?e:"unsafe:"+e}function Ls(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ya(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const Rd=Ls("area,br,col,hr,img,wbr"),kd=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nd=Ls("rp,rt"),Ec=Ya(Rd,Ya(kd,Ls("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")),Ya(Nd,Ls("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")),Ya(Nd,kd)),Dc=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ld=Ya(Dc,Ls("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"),Ls("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")),e_=Ls("script,style,template");class t_{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 o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Ec.hasOwnProperty(n))return this.sanitizedSomething=!0,!e_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let o=0;o<i.length;o++){const s=i.item(o),d=s.name,y=d.toLowerCase();if(!Ld.hasOwnProperty(y)){this.sanitizedSomething=!0;continue}let w=s.value;Dc[y]&&(w=yl(w)),this.buf.push(" ",d,'="',Bd(w),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Ec.hasOwnProperty(n)&&!Rd.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Bd(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 n_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i_=/([^\#-~ |!])/g;function Bd(e){return e.replace(/&/g,"&amp;").replace(n_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(i_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let bl;function Vd(e,t){let n=null;try{bl=bl||function Fd(e){const t=new Xg(e);return function Jg(){try{return!!(new window.DOMParser).parseFromString(oa(""),"text/html")}catch{return!1}}()?new Qg(t):t}(e);let i=t?String(t):"";n=bl.getInertBodyElement(i);let o=5,s=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,s=n.innerHTML,n=bl.getInertBodyElement(i)}while(i!==s);return oa((new t_).sanitizeChildren(wc(n)||n))}finally{if(n){const i=wc(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function wc(e){return"content"in e&&function r_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var tr=(()=>((tr=tr||{})[tr.NONE=0]="NONE",tr[tr.HTML=1]="HTML",tr[tr.STYLE=2]="STYLE",tr[tr.SCRIPT=3]="SCRIPT",tr[tr.URL=4]="URL",tr[tr.RESOURCE_URL=5]="RESOURCE_URL",tr))();function Ud(e){const t=Ka();return t?Id(t.sanitize(tr.HTML,e)||""):Ca(e,"HTML")?Id(Ns(e)):Vd(function xd(){return void 0!==bc?bc:typeof document<"u"?document:void 0}(),Fe(e))}function Ac(e){const t=Ka();return t?t.sanitize(tr.URL,e)||"":Ca(e,"URL")?Ns(e):yl(Fe(e))}function Hd(e){const t=Ka();if(t)return Pd(t.sanitize(tr.RESOURCE_URL,e)||"");if(Ca(e,"ResourceURL"))return Pd(Ns(e));throw new ue(904,!1)}function jd(e,t,n){return function c_(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Hd:Ac}(t,n)(e)}function Ka(){const e=D();return e&&e[12]}const Mc=new li("ENVIRONMENT_INITIALIZER"),$d=new li("INJECTOR",-1),zd=new li("INJECTOR_DEF_TYPES");class Gd{get(t,n=fe){if(n===fe){const i=new Error(`NullInjectorError: No provider for ${ee(t)}!`);throw i.name="NullInjectorError",i}return n}}function u_(e){return{\u0275providers:e}}function d_(...e){return{\u0275providers:Wd(0,e),\u0275fromNgModule:!0}}function Wd(e,...t){const n=[],i=new Set;let o;return h(t,s=>{const d=s;Sc(d,n,[],i)&&(o||(o=[]),o.push(d))}),void 0!==o&&Yd(o,n),n}function Yd(e,t){for(let n=0;n<e.length;n++){const{providers:o}=e[n];Tc(o,s=>{t.push(s)})}}function Sc(e,t,n,i){if(!(e=le(e)))return!1;let o=null,s=Fn(e);const d=!s&&fn(e);if(s||d){if(d&&!d.standalone)return!1;o=e}else{const w=e.ngModule;if(s=Fn(w),!s)return!1;o=w}const y=i.has(o);if(d){if(y)return!1;if(i.add(o),d.dependencies){const w="function"==typeof d.dependencies?d.dependencies():d.dependencies;for(const R of w)Sc(R,t,n,i)}}else{if(!s)return!1;{if(null!=s.imports&&!y){let R;i.add(o);try{h(s.imports,Y=>{Sc(Y,t,n,i)&&(R||(R=[]),R.push(Y))})}finally{}void 0!==R&&Yd(R,t)}if(!y){const R=fi(o)||(()=>new o);t.push({provide:o,useFactory:R,deps:k},{provide:zd,useValue:o,multi:!0},{provide:Mc,useValue:()=>Oe(o),multi:!0})}const w=s.providers;null==w||y||Tc(w,Y=>{t.push(Y)})}}return o!==e&&void 0!==e.providers}function Tc(e,t){for(let n of e)Ee(n)&&(n=n.\u0275providers),Array.isArray(n)?Tc(n,t):t(n)}const h_=se({provide:String,useValue:se});function xc(e){return null!==e&&"object"==typeof e&&h_ in e}function aa(e){return"function"==typeof e}const Ic=new li("Set Injector scope."),Cl={},p_={};let Oc;function El(){return void 0===Oc&&(Oc=new Gd),Oc}class la{}class Qd extends la{get destroyed(){return this._destroyed}constructor(t,n,i,o){super(),this.parent=n,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Fc(t,d=>this.processProvider(d)),this.records.set($d,Ea(void 0,this)),o.has("environment")&&this.records.set(la,Ea(void 0,this));const s=this.records.get(Ic);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(zd.multi,k,ae.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=xn(this),i=ct(void 0);try{return t()}finally{xn(n),ct(i)}}get(t,n=fe,i=ae.Default){this.assertNotDestroyed(),i=U(i);const o=xn(this),s=ct(void 0);try{if(!(i&ae.SkipSelf)){let y=this.records.get(t);if(void 0===y){const w=function y_(e){return"function"==typeof e||"object"==typeof e&&e instanceof li}(t)&&en(t);y=w&&this.injectableDefInScope(w)?Ea(Pc(t),Cl):null,this.records.set(t,y)}if(null!=y)return this.hydrate(t,y)}return(i&ae.Self?El():this.parent).get(t,n=i&ae.Optional&&n===fe?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[Dt]=d[Dt]||[]).unshift(ee(t)),o)throw d;return function ce(e,t,n,i){const o=e[Dt];throw t[wn]&&o.unshift(t[wn]),e.message=function De(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ee(t);if(Array.isArray(t))o=t.map(ee).join(" -> ");else if("object"==typeof t){let s=[];for(let d in t)if(t.hasOwnProperty(d)){let y=t[d];s.push(d+":"+("string"==typeof y?JSON.stringify(y):ee(y)))}o=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(an,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Dt]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{ct(s),xn(o)}}resolveInjectorInitializers(){const t=xn(this),n=ct(void 0);try{const i=this.get(Mc.multi,k,ae.Self);for(const o of i)o()}finally{xn(t),ct(n)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(ee(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(t){let n=aa(t=le(t))?t:le(t&&t.provide);const i=function g_(e){return xc(e)?Ea(void 0,e.useValue):Ea(Xd(e),Cl)}(t);if(aa(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Ea(void 0,Cl,!0),o.factory=()=>re(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,i)}hydrate(t,n){return n.value===Cl&&(n.value=p_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function v_(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=le(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Pc(e){const t=en(e),n=null!==t?t.factory:fi(e);if(null!==n)return n;if(e instanceof li)throw new ue(204,!1);if(e instanceof Function)return function m_(e){const t=e.length;if(t>0)throw C(t,"?"),new ue(204,!1);const n=function Tn(e){const t=e&&(e[Pn]||e[tt]);if(t){const n=function In(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new ue(204,!1)}function Xd(e,t,n){let i;if(aa(e)){const o=le(e);return fi(o)||Pc(o)}if(xc(e))i=()=>le(e.useValue);else if(function Zd(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...re(e.deps||[]));else if(function Kd(e){return!(!e||!e.useExisting)}(e))i=()=>Oe(le(e.useExisting));else{const o=le(e&&(e.useClass||e.provide));if(!function __(e){return!!e.deps}(e))return fi(o)||Pc(o);i=()=>new o(...re(e.deps))}return i}function Ea(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Fc(e,t){for(const n of e)Array.isArray(n)?Fc(n,t):n&&Ee(n)?Fc(n.\u0275providers,t):t(n)}class b_{}class Jd{}class E_{resolveComponentFactory(t){throw function C_(e){const t=Error(`No component factory found for ${ee(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Za=(()=>{class e{}return e.NULL=new E_,e})();function D_(){return Da(ot(),D())}function Da(e,t){return new Qa(Vn(e,t))}let Qa=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=D_,e})();function w_(e){return e instanceof Qa?e.nativeElement:e}class eh{}let A_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function M_(){const e=D(),n=mi(ot().index,e);return(_i(n)?n:e)[11]}(),e})(),S_=(()=>{class e{}return e.\u0275prov=Ve({token:e,providedIn:"root",factory:()=>null}),e})();class th{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const nh=new th("15.1.4"),Rc={};function Nc(e){return e.ngOriginalError}class Xa{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&&Nc(t);for(;n&&Nc(n);)n=Nc(n);return n||null}}function Bs(e){return e instanceof Function?e():e}function rh(e,t,n){let i=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const s=t.length;if(o+s===i||e.charCodeAt(o+s)<=32)return o}n=o+1}}const oh="ng-template";function B_(e,t,n){let i=0;for(;i<e.length;){let o=e[i++];if(n&&"class"===o){if(o=e[i],-1!==rh(o.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}}return!1}function sh(e){return 4===e.type&&e.value!==oh}function V_(e,t,n){return t===(4!==e.type||n?e.value:oh)}function U_(e,t,n){let i=4;const o=e.attrs||[],s=function $_(e){for(let t=0;t<e.length;t++)if(ar(e[t]))return t;return e.length}(o);let d=!1;for(let y=0;y<t.length;y++){const w=t[y];if("number"!=typeof w){if(!d)if(4&i){if(i=2|1&i,""!==w&&!V_(e,w,n)||""===w&&1===t.length){if(os(i))return!1;d=!0}}else{const R=8&i?w:t[++y];if(8&i&&null!==e.attrs){if(!B_(e.attrs,R,n)){if(os(i))return!1;d=!0}continue}const pe=H_(8&i?"class":w,o,sh(e),n);if(-1===pe){if(os(i))return!1;d=!0;continue}if(""!==R){let je;je=pe>s?"":o[pe+1].toLowerCase();const it=8&i?je:null;if(it&&-1!==rh(it,R,0)||2&i&&R!==je){if(os(i))return!1;d=!0}}}}else{if(!d&&!os(i)&&!os(w))return!1;if(d&&os(w))continue;d=!1,i=w|1&i}}return os(i)||d}function os(e){return 0==(1&e)}function H_(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let s=!1;for(;o<t.length;){const d=t[o];if(d===e)return o;if(3===d||6===d)s=!0;else{if(1===d||2===d){let y=t[++o];for(;"string"==typeof y;)y=t[++o];continue}if(4===d)break;if(0===d){o+=4;continue}}o+=s?1:2}return-1}return function z_(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 ah(e,t,n=!1){for(let i=0;i<t.length;i++)if(U_(e,t[i],n))return!0;return!1}function G_(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let o=0;o<e.length;o++)if(e[o]!==i[o])continue e;return!0}}return!1}function lh(e,t){return e?":not("+t.trim()+")":t}function W_(e){let t=e[0],n=1,i=2,o="",s=!1;for(;n<e.length;){let d=e[n];if("string"==typeof d)if(2&i){const y=e[++n];o+="["+d+(y.length>0?'="'+y+'"':"")+"]"}else 8&i?o+="."+d:4&i&&(o+=" "+d);else""!==o&&!os(d)&&(t+=lh(s,o),o=""),i=d,s=s||!os(i);n++}return""!==o&&(t+=lh(s,o)),t}const Bn={};function ch(e){uh(M(),D(),Fi()+e,!1)}function uh(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&no(t,s,n)}else{const s=e.preOrderHooks;null!==s&&b(t,s,0,n)}$r(n)}function ph(e,t=null,n=null,i){const o=mh(e,t,n,i);return o.resolveInjectorInitializers(),o}function mh(e,t=null,n=null,i,o=new Set){const s=[n||k,d_(e)];return i=i||("object"==typeof e?void 0:ee(e)),new Qd(s,t||El(),i||null,o)}let ca=(()=>{class e{static create(n,i){if(Array.isArray(n))return ph({name:""},i,n,"");{const o=n.name??"";return ph({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=fe,e.NULL=new Gd,e.\u0275prov=Ve({token:e,providedIn:"any",factory:()=>Oe($d)}),e.__NG_ELEMENT_ID__=-1,e})();function Ma(e,t=ae.Default){const n=D();return null===n?Oe(e,t):Ps(ot(),n,le(e),t)}function Eh(){throw new Error("invalid")}function Dh(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i+1];if(-1!==s){const d=e.data[s];xo(n[i]),d.contentQueries(2,t[s],s)}}}function wl(e,t,n,i,o,s,d,y,w,R,Y){const pe=t.blueprint.slice();return pe[0]=o,pe[2]=76|i,(null!==Y||e&&1024&e[2])&&(pe[2]|=1024),po(pe),pe[3]=pe[15]=e,pe[8]=n,pe[10]=d||e&&e[10],pe[11]=y||e&&e[11],pe[12]=w||e&&e[12]||null,pe[9]=R||e&&e[9]||null,pe[6]=s,pe[20]=function lg(){return ag++}(),pe[21]=Y,pe[16]=2==t.type?e[16]:pe,pe}function Sa(e,t,n,i,o){let s=e.data[t];if(null===s)s=function Hc(e,t,n,i,o){const s=rn(),d=Xi(),w=e.data[t]=function vv(e,t,n,i,o,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next: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,d?s:s&&s.parent,n,t,i,o);return null===e.firstChild&&(e.firstChild=w),null!==s&&(d?null==s.child&&null!==w.parent&&(s.child=w):null===s.next&&(s.next=w)),w}(e,t,n,i,o),function So(){return gn.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=i,s.attrs=o;const d=function Yn(){const e=gn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===d?-1:d.injectorIndex}return oi(s,!0),s}function Ja(e,t,n,i){if(0===n)return-1;const o=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return o}function jc(e,t,n){_o(t);try{const i=e.viewQuery;null!==i&&Jc(1,i,n);const o=e.template;null!==o&&wh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Dh(e,t),e.staticViewQueries&&Jc(2,e.viewQuery,n);const s=e.components;null!==s&&function mv(e,t){for(let n=0;n<t.length;n++)Lv(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,eo()}}function Al(e,t,n,i){const o=t[2];if(128!=(128&o)){_o(t);try{po(t),function zi(e){return gn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&wh(e,t,n,2,i);const d=3==(3&o);if(d){const R=e.preOrderCheckHooks;null!==R&&no(t,R,null)}else{const R=e.preOrderHooks;null!==R&&b(t,R,0,null),N(t,0)}if(function kv(e){for(let t=cc(e);null!==t;t=uc(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const o=n[i];512&o[2]||Rr(o[3],1),o[2]|=512}}}(t),function Rv(e){for(let t=cc(e);null!==t;t=uc(t))for(let n=10;n<t.length;n++){const i=t[n],o=i[1];fo(i)&&Al(o,i,o.template,i[8])}}(t),null!==e.contentQueries&&Dh(e,t),d){const R=e.contentCheckHooks;null!==R&&no(t,R)}else{const R=e.contentHooks;null!==R&&b(t,R,1),N(t,1)}!function fv(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const o=n[i];if(o<0)$r(~o);else{const s=o,d=n[++i],y=n[++i];Ts(d,s),y(2,t[s])}}}finally{$r(-1)}}(e,t);const y=e.components;null!==y&&function pv(e,t){for(let n=0;n<t.length;n++)Nv(e,t[n])}(t,y);const w=e.viewQuery;if(null!==w&&Jc(2,w,i),d){const R=e.viewCheckHooks;null!==R&&no(t,R)}else{const R=e.viewHooks;null!==R&&b(t,R,2),N(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Rr(t[3],-1))}finally{eo()}}}function wh(e,t,n,i,o){const s=Fi(),d=2&i;try{$r(-1),d&&t.length>22&&uh(e,t,22,!1),n(i,o)}finally{$r(s)}}function $c(e,t,n){if(Ki(t)){const o=t.directiveEnd;for(let s=t.directiveStart;s<o;s++){const d=e.data[s];d.contentQueries&&d.contentQueries(1,n[s],s)}}}function zc(e,t,n){Ho()&&(function wv(e,t,n,i){const o=n.directiveStart,s=n.directiveEnd;Zi(n)&&function Ov(e,t,n){const i=Vn(t,e),o=Ah(n),s=e[10],d=Ml(e,wl(e,o,null,n.onPush?32:16,i,t,s,s.createRenderer(i,n),null,null,null));e[t.index]=d}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||$o(n,t),Yr(i,t);const d=n.initialInputs;for(let y=o;y<s;y++){const w=e.data[y],R=ro(t,e,y,n);Yr(R,t),null!==d&&Pv(0,y-o,R,w,0,d),Ei(w)&&(mi(n.index,t)[8]=ro(t,e,y,n))}}(e,t,n,Vn(n,t)),64==(64&n.flags)&&Oh(e,t,n))}function Gc(e,t,n=Vn){const i=t.localNames;if(null!==i){let o=t.index+1;for(let s=0;s<i.length;s+=2){const d=i[s+1],y=-1===d?n(t,e):e[d];e[o++]=y}}}function Ah(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Wc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Wc(e,t,n,i,o,s,d,y,w,R){const Y=22+i,pe=Y+o,je=function gv(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Bn);return n}(Y,pe),it="function"==typeof R?R():R;return je[1]={type:e,blueprint:je,template:n,queries:null,viewQuery:y,declTNode:t,data:je.slice().fill(null,Y),bindingStartIndex:Y,expandoStartIndex:pe,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 s?s():s,pipeRegistry:"function"==typeof d?d():d,firstChild:null,schemas:w,consts:it,incompleteFirstPass:!1}}function Mh(e,t,n,i){const o=Fh(t);null===n?o.push(i):(o.push(n),e.firstCreatePass&&Rh(e).push(i,o.length-1))}function Sh(e,t,n,i){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const s=e[o];null===i?Th(n,t,o,s):i.hasOwnProperty(o)&&Th(n,t,i[o],s)}return n}function Th(e,t,n,i){e.hasOwnProperty(n)?e[n].push(t,i):e[n]=[t,i]}function No(e,t,n,i,o,s,d,y){const w=Vn(t,n);let Y,R=t.inputs;!y&&null!=R&&(Y=R[i])?(qc(e,n,Y,i,o),Zi(t)&&xh(n,t.index)):3&t.type&&(i=function bv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=d?d(o,t.value||"",i):o,s.setProperty(w,i,o))}function xh(e,t){const n=mi(t,e);16&n[2]||(n[2]|=32)}function Yc(e,t,n,i){let o=!1;if(Ho()){const s=null===i?null:{"":-1},d=function Mv(e,t){const n=e.directiveRegistry;let i=null,o=null;if(n)for(let s=0;s<n.length;s++){const d=n[s];if(ah(t,d.selectors,!1))if(i||(i=[]),Ei(d))if(null!==d.findHostDirectiveDefs){const y=[];o=o||new Map,d.findHostDirectiveDefs(d,y,o),i.unshift(...y,d),Kc(e,t,y.length)}else i.unshift(d),Kc(e,t,0);else o=o||new Map,d.findHostDirectiveDefs?.(d,i,o),i.push(d)}return null===i?null:[i,o]}(e,n);let y,w;null===d?y=w=null:[y,w]=d,null!==y&&(o=!0,Ih(e,t,n,y,s,w)),s&&function Sv(e,t,n){if(t){const i=e.localNames=[];for(let o=0;o<t.length;o+=2){const s=n[t[o+1]];if(null==s)throw new ue(-301,!1);i.push(t[o],s)}}}(n,i,s)}return n.mergedAttrs=Gi(n.mergedAttrs,n.attrs),o}function Ih(e,t,n,i,o,s){for(let R=0;R<i.length;R++)Vi($o(n,t),e,i[R].type);!function xv(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,i.length);for(let R=0;R<i.length;R++){const Y=i[R];Y.providersResolver&&Y.providersResolver(Y)}let d=!1,y=!1,w=Ja(e,t,i.length,null);for(let R=0;R<i.length;R++){const Y=i[R];n.mergedAttrs=Gi(n.mergedAttrs,Y.hostAttrs),Iv(e,n,t,w,Y),Tv(w,Y,o),null!==Y.contentQueries&&(n.flags|=4),(null!==Y.hostBindings||null!==Y.hostAttrs||0!==Y.hostVars)&&(n.flags|=64);const pe=Y.type.prototype;!d&&(pe.ngOnChanges||pe.ngOnInit||pe.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),d=!0),!y&&(pe.ngOnChanges||pe.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),y=!0),w++}!function yv(e,t,n){const o=t.directiveEnd,s=e.data,d=t.attrs,y=[];let w=null,R=null;for(let Y=t.directiveStart;Y<o;Y++){const pe=s[Y],je=n?n.get(pe):null,wt=je?je.outputs:null;w=Sh(pe.inputs,Y,w,je?je.inputs:null),R=Sh(pe.outputs,Y,R,wt);const Ut=null===w||null===d||sh(t)?null:Fv(w,Y,d);y.push(Ut)}null!==w&&(w.hasOwnProperty("class")&&(t.flags|=8),w.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=y,t.inputs=w,t.outputs=R}(e,n,s)}function Oh(e,t,n){const i=n.directiveStart,o=n.directiveEnd,s=n.index,d=function To(){return gn.lFrame.currentDirectiveIndex}();try{$r(s);for(let y=i;y<o;y++){const w=e.data[y],R=t[y];Xo(y),(null!==w.hostBindings||0!==w.hostVars||null!==w.hostAttrs)&&Av(w,R)}}finally{$r(-1),Xo(d)}}function Av(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Kc(e,t,n){t.componentOffset=n,(e.components||(e.components=[])).push(t.index)}function Tv(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Ei(t)&&(n[""]=e)}}function Iv(e,t,n,i,o){e.data[i]=o;const s=o.factory||(o.factory=fi(o.type)),d=new st(s,Ei(o),Ma);e.blueprint[i]=d,n[i]=d,function Ev(e,t,n,i,o){const s=o.hostBindings;if(s){let d=e.hostBindingOpCodes;null===d&&(d=e.hostBindingOpCodes=[]);const y=~t.index;(function Dv(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(d)!=y&&d.push(y),d.push(n,i,s)}}(e,t,i,Ja(e,n,o.hostVars,Bn),o)}function Es(e,t,n,i,o,s){const d=Vn(e,t);!function Zc(e,t,n,i,o,s,d){if(null==s)e.removeAttribute(t,o,n);else{const y=null==d?Fe(s):d(s,i||"",o);e.setAttribute(t,o,y,n)}}(t[11],d,s,e.value,n,i,o)}function Pv(e,t,n,i,o,s){const d=s[t];if(null!==d){const y=i.setInput;for(let w=0;w<d.length;){const R=d[w++],Y=d[w++],pe=d[w++];null!==y?i.setInput(n,pe,R,Y):n[Y]=pe}}}function Fv(e,t,n){let i=null,o=0;for(;o<n.length;){const s=n[o];if(0!==s)if(5!==s){if("number"==typeof s)break;if(e.hasOwnProperty(s)){null===i&&(i=[]);const d=e[s];for(let y=0;y<d.length;y+=2)if(d[y]===t){i.push(s,d[y+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return i}function Ph(e,t,n,i){return[e,!0,!1,t,null,0,i,n,null,null]}function Nv(e,t){const n=mi(t,e);if(fo(n)){const i=n[1];48&n[2]?Al(i,n,i.template,n[8]):n[5]>0&&Qc(n)}}function Qc(e){for(let i=cc(e);null!==i;i=uc(i))for(let o=10;o<i.length;o++){const s=i[o];if(fo(s))if(512&s[2]){const d=s[1];Al(d,s,d.template,s[8])}else s[5]>0&&Qc(s)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const o=mi(n[i],e);fo(o)&&o[5]>0&&Qc(o)}}function Lv(e,t){const n=mi(t,e),i=n[1];(function Bv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),jc(i,n,n[8])}function Ml(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Xc(e){for(;e;){e[2]|=32;const t=Ga(e);if(Lo(e)&&!t)return e;e=t}return null}function Sl(e,t,n,i=!0){const o=t[10];o.begin&&o.begin();try{Al(e,t,e.template,n)}catch(d){throw i&&Nh(t,d),d}finally{o.end&&o.end()}}function Jc(e,t,n){xo(0),t(e,n)}function Fh(e){return e[7]||(e[7]=[])}function Rh(e){return e.cleanup||(e.cleanup=[])}function Nh(e,t){const n=e[9],i=n?n.get(Xa,null):null;i&&i.handleError(t)}function qc(e,t,n,i,o){for(let s=0;s<n.length;){const d=n[s++],y=n[s++],w=t[d],R=e.data[d];null!==R.setInput?R.setInput(w,o,i,y):w[y]=o}}function Vs(e,t,n){const i=fr(t,e);!function pd(e,t,n){e.setValue(t,n)}(e[11],i,n)}function Tl(e,t,n){let i=n?e.styles:null,o=n?e.classes:null,s=0;if(null!==t)for(let d=0;d<t.length;d++){const y=t[d];"number"==typeof y?s=y:1==s?o=ne(o,y):2==s&&(i=ne(i,y+": "+t[++d]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=o:e.classesWithoutHost=o}function xl(e,t,n,i,o=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(ri(s)),Ci(s))for(let y=10;y<s.length;y++){const w=s[y],R=w[1].firstChild;null!==R&&xl(w[1],w,R,i)}const d=n.type;if(8&d)xl(e,t,n.child,i);else if(32&d){const y=lc(n,t);let w;for(;w=y();)i.push(w)}else if(16&d){const y=Ad(t,n);if(Array.isArray(y))i.push(...y);else{const w=Ga(t[16]);xl(w[1],w,y,i,!0)}}n=o?n.projectionNext:n.next}return i}class qa{get rootNodes(){const t=this._lView,n=t[1];return xl(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Ci(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(fc(t,i),u(n,i))}this._attachedToViewContainer=!1}gd(this._lView[1],this._lView)}onDestroy(t){Mh(this._lView[1],this._lView,null,t)}markForCheck(){Xc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Sl(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Dg(e,t){Wa(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=t}}class Vv extends qa{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Sl(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Lh extends Za{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=fn(t);return new el(n,this.ngModule)}}function Bh(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Hv{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){i=U(i);const o=this.injector.get(t,Rc,i);return o!==Rc||n===Rc?o:this.parentInjector.get(t,n,i)}}class el extends Jd{get inputs(){return Bh(this.componentDef.inputs)}get outputs(){return Bh(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Y_(e){return e.map(W_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,i,o){let s=(o=o||this.ngModule)instanceof la?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const d=s?new Hv(t,s):t,y=d.get(eh,null);if(null===y)throw new ue(407,!1);const w=d.get(S_,null),R=y.createRenderer(null,this.componentDef),Y=this.componentDef.selectors[0][0]||"div",pe=i?function _v(e,t,n){return e.selectRootElement(t,n===tn.ShadowDom)}(R,i,this.componentDef.encapsulation):hc(R,Y,function Uv(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(Y)),je=this.componentDef.onPush?288:272,it=Wc(0,null,null,1,0,null,null,null,null,null),wt=wl(null,it,null,je,null,null,y,R,w,d,null);let Ut,Qt;_o(wt);try{const un=this.componentDef;let Mn,kt=null;un.findHostDirectiveDefs?(Mn=[],kt=new Map,un.findHostDirectiveDefs(un,Mn,kt),Mn.push(un)):Mn=[un];const Nn=function $v(e,t){const n=e[1];return e[22]=t,Sa(n,22,2,"#host",null)}(wt,pe),Ni=function zv(e,t,n,i,o,s,d,y){const w=o[1];!function Gv(e,t,n,i){for(const o of e)t.mergedAttrs=Gi(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Tl(t,t.mergedAttrs,!0),null!==n&&Td(i,n,t))}(i,e,t,d);const R=s.createRenderer(t,n),Y=wl(o,Ah(n),null,n.onPush?32:16,o[e.index],e,s,R,y||null,null,null);return w.firstCreatePass&&Kc(w,e,i.length-1),Ml(o,Y),o[e.index]=Y}(Nn,pe,un,Mn,wt,y,R);Qt=ho(it,22),pe&&function Yv(e,t,n,i){if(i)ai(e,n,["ng-version",nh.full]);else{const{attrs:o,classes:s}=function K_(e){const t=[],n=[];let i=1,o=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===o?""!==s&&t.push(s,e[++i]):8===o&&n.push(s);else{if(!os(o))break;o=s}i++}return{attrs:t,classes:n}}(t.selectors[0]);o&&ai(e,n,o),s&&s.length>0&&Sd(e,n,s.join(" "))}}(R,un,pe,i),void 0!==n&&function Kv(e,t,n){const i=e.projection=[];for(let o=0;o<t.length;o++){const s=n[o];i.push(null!=s?Array.from(s):null)}}(Qt,this.ngContentSelectors,n),Ut=function Wv(e,t,n,i,o,s){const d=ot(),y=o[1],w=Vn(d,o);Ih(y,o,d,n,null,i);for(let Y=0;Y<n.length;Y++)Yr(ro(o,y,d.directiveStart+Y,d),o);Oh(y,o,d),w&&Yr(w,o);const R=ro(o,y,d.directiveStart+d.componentOffset,d);if(e[8]=o[8]=R,null!==s)for(const Y of s)Y(R,t);return $c(y,d,e),R}(Ni,un,Mn,kt,wt,[Zv]),jc(it,wt,null)}finally{eo()}return new jv(this.componentType,Ut,Da(Qt,wt),wt,Qt)}}class jv extends b_{constructor(t,n,i,o,s){super(),this.location=i,this._rootLView=o,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new Vv(o),this.componentType=t}setInput(t,n){const i=this._tNode.inputs;let o;if(null!==i&&(o=i[t])){const s=this._rootLView;qc(s[1],s,o,t,n),xh(s,this._tNode.index)}}get injector(){return new Po(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Zv(){const e=ot();zr(D()[1],e)}function eu(e){let t=function Vh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(Ei(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ue(903,!1);o=t.\u0275dir}if(o){if(n){i.push(o);const d=e;d.inputs=tu(e.inputs),d.declaredInputs=tu(e.declaredInputs),d.outputs=tu(e.outputs);const y=o.hostBindings;y&&qv(e,y);const w=o.viewQuery,R=o.contentQueries;if(w&&Xv(e,w),R&&Jv(e,R),J(e.inputs,o.inputs),J(e.declaredInputs,o.declaredInputs),J(e.outputs,o.outputs),Ei(o)&&o.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(o.data.animation)}}const s=o.features;if(s)for(let d=0;d<s.length;d++){const y=s[d];y&&y.ngInherit&&y(e),y===eu&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Qv(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Gi(o.hostAttrs,n=Gi(n,o.hostAttrs))}}(i)}function tu(e){return e===he?{}:e===k?[]:e}function Xv(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function Jv(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,s)=>{t(i,o,s),n(i,o,s)}:t}function qv(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let Il=null;function ua(){if(!Il){const e=Pt.Symbol;if(e&&e.iterator)Il=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Il=i)}}}return Il}function Ol(e){return!!nu(e)&&(Array.isArray(e)||!(e instanceof Map)&&ua()in e)}function nu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ds(e,t,n){return e[t]=n}function Kr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function da(e,t,n,i){const o=Kr(e,t,n);return Kr(e,t+1,i)||o}function iu(e,t,n,i){const o=D();return Kr(o,_r(),t)&&(M(),Es(si(),o,e,t,n,i)),iu}function xa(e,t,n,i){return Kr(e,_r(),n)?t+Fe(n)+i:Bn}function Ia(e,t,n,i,o,s){const y=da(e,function sr(){return gn.lFrame.bindingIndex}(),n,o);return vr(2),y?t+Fe(n)+i+Fe(o)+s:Bn}function Jh(e,t,n,i,o,s,d,y){const w=D(),R=M(),Y=e+22,pe=R.firstCreatePass?function cy(e,t,n,i,o,s,d,y,w){const R=t.consts,Y=Sa(t,e,4,d||null,$i(R,y));Yc(t,n,Y,$i(R,w)),zr(t,Y);const pe=Y.tViews=Wc(2,Y,i,o,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,R);return null!==t.queries&&(t.queries.template(t,Y),pe.queries=t.queries.embeddedTView(Y)),Y}(Y,R,w,t,n,i,o,s,d):R.data[Y];oi(pe,!1);const je=w[11].createComment("");ml(R,w,je,pe),Yr(je,w),Ml(w,w[Y]=Ph(je,w,je,pe)),Or(pe)&&zc(R,w,pe),null!=d&&Gc(w,pe,y)}function qh(e){return mr(function Vr(){return gn.lFrame.contextLView}(),22+e)}function ru(e,t,n){const i=D();return Kr(i,_r(),t)&&No(M(),si(),i,e,t,i[11],n,!1),ru}function ou(e,t,n,i,o){const d=o?"class":"style";qc(e,n,t.inputs[d],d,i)}function Fl(e,t,n,i){const o=D(),s=M(),d=22+e,y=o[11],w=o[d]=hc(y,t,function Hs(){return gn.lFrame.currentNamespace}()),R=s.firstCreatePass?function dy(e,t,n,i,o,s,d){const y=t.consts,R=Sa(t,e,2,o,$i(y,s));return Yc(t,n,R,$i(y,d)),null!==R.attrs&&Tl(R,R.attrs,!1),null!==R.mergedAttrs&&Tl(R,R.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,R),R}(d,s,o,0,t,n,i):s.data[d];return oi(R,!0),Td(y,w,R),32!=(32&R.flags)&&ml(s,o,w,R),0===function Vo(){return gn.lFrame.elementDepthCount}()&&Yr(w,o),function cs(){gn.lFrame.elementDepthCount++}(),Or(R)&&(zc(s,o,R),$c(s,R,o)),null!==i&&Gc(o,R),Fl}function Rl(){let e=ot();Xi()?gr():(e=e.parent,oi(e,!1));const t=e;!function Uo(){gn.lFrame.elementDepthCount--}();const n=M();return n.firstCreatePass&&(zr(n,e),Ki(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function $n(e){return 0!=(8&e.flags)}(t)&&ou(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function kn(e){return 0!=(16&e.flags)}(t)&&ou(n,t,D(),t.stylesWithoutHost,!1),Rl}function su(e,t,n,i){return Fl(e,t,n,i),Rl(),su}function kl(e,t,n){const i=D(),o=M(),s=e+22,d=o.firstCreatePass?function hy(e,t,n,i,o){const s=t.consts,d=$i(s,i),y=Sa(t,e,8,"ng-container",d);return null!==d&&Tl(y,d,!0),Yc(t,n,y,$i(s,o)),null!==t.queries&&t.queries.elementStart(t,y),y}(s,o,i,t,n):o.data[s];oi(d,!0);const y=i[s]=i[11].createComment("");return ml(o,i,y,d),Yr(y,i),Or(d)&&(zc(o,i,d),$c(o,d,i)),null!=n&&Gc(i,d),kl}function Nl(){let e=ot();const t=M();return Xi()?gr():(e=e.parent,oi(e,!1)),t.firstCreatePass&&(zr(t,e),Ki(e)&&t.queries.elementEnd(e)),Nl}function au(e,t,n){return kl(e,t,n),Nl(),au}function ef(){return D()}function lu(e){return!!e&&"function"==typeof e.then}function tf(e){return!!e&&"function"==typeof e.subscribe}const nf=tf;function cu(e,t,n,i){const o=D(),s=M(),d=ot();return function sf(e,t,n,i,o,s,d){const y=Or(i),R=e.firstCreatePass&&Rh(e),Y=t[8],pe=Fh(t);let je=!0;if(3&i.type||d){const Ut=Vn(i,t),Qt=d?d(Ut):Ut,un=pe.length,Mn=d?Nn=>d(ri(Nn[i.index])):i.index;let kt=null;if(!d&&y&&(kt=function fy(e,t,n,i){const o=e.cleanup;if(null!=o)for(let s=0;s<o.length-1;s+=2){const d=o[s];if(d===n&&o[s+1]===i){const y=t[7],w=o[s+2];return y.length>w?y[w]:null}"string"==typeof d&&(s+=2)}return null}(e,t,o,i.index)),null!==kt)(kt.__ngLastListenerFn__||kt).__ngNextListenerFn__=s,kt.__ngLastListenerFn__=s,je=!1;else{s=lf(i,t,Y,s,!1);const Nn=n.listen(Qt,o,s);pe.push(s,Nn),R&&R.push(o,Mn,un,un+1)}}else s=lf(i,t,Y,s,!1);const it=i.outputs;let wt;if(je&&null!==it&&(wt=it[o])){const Ut=wt.length;if(Ut)for(let Qt=0;Qt<Ut;Qt+=2){const Ni=t[wt[Qt]][wt[Qt+1]].subscribe(s),nr=pe.length;pe.push(s,Ni),R&&R.push(o,i.index,nr,-(nr+1))}}}(s,o,o[11],d,e,t,i),cu}function af(e,t,n,i){try{return!1!==n(i)}catch(o){return Nh(e,o),!1}}function lf(e,t,n,i,o){return function s(d){if(d===Function)return i;Xc(e.componentOffset>-1?mi(e.index,t):t);let w=af(t,0,i,d),R=s.__ngNextListenerFn__;for(;R;)w=af(t,0,R,d)&&w,R=R.__ngNextListenerFn__;return o&&!1===w&&(d.preventDefault(),d.returnValue=!1),w}}function cf(e=1){return function to(e){return(gn.lFrame.contextLView=function jr(e,t){for(;e>0;)t=t[15],e--;return t}(e,gn.lFrame.contextLView))[8]}(e)}function py(e,t){let n=null;const i=function j_(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 o=0;o<t.length;o++){const s=t[o];if("*"!==s){if(null===i?ah(e,s,!0):G_(i,s))return o}else n=o}return n}function uf(e){const t=D()[16][6];if(!t.projection){const i=t.projection=C(e?e.length:1,null),o=i.slice();let s=t.child;for(;null!==s;){const d=e?py(s,e):0;null!==d&&(o[d]?o[d].projectionNext=s:i[d]=s,o[d]=s),s=s.next}}}function df(e,t=0,n){const i=D(),o=M(),s=Sa(o,22+e,16,null,n||null);null===s.projection&&(s.projection=t),gr(),32!=(32&s.flags)&&function Og(e,t,n){Md(t[11],0,t,n,_d(e,n,t),Cd(n.parent||t[6],n,t))}(o,i,s)}function uu(e,t,n){return Ll(e,"",t,"",n),uu}function Ll(e,t,n,i,o){const s=D(),d=xa(s,t,n,i);return d!==Bn&&No(M(),si(),s,e,d,s[11],o,!1),Ll}function Bl(e,t){return e<<17|t<<2}function Qs(e){return e>>17&32767}function du(e){return 2|e}function ha(e){return(131068&e)>>2}function hu(e,t){return-131069&e|t<<2}function fu(e){return 1|e}function bf(e,t,n,i,o){const s=e[n+1],d=null===t;let y=i?Qs(s):ha(s),w=!1;for(;0!==y&&(!1===w||d);){const Y=e[y+1];by(e[y],t)&&(w=!0,e[y+1]=i?fu(Y):du(Y)),y=i?Qs(Y):ha(Y)}w&&(e[n+1]=i?du(s):fu(s))}function by(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&a(e,t)>=0}const Cr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Cf(e){return e.substring(Cr.key,Cr.keyEnd)}function Ef(e,t){const n=Cr.textEnd;return n===t?-1:(t=Cr.keyEnd=function wy(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Cr.key=t,n),La(e,t,n))}function La(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function pu(e,t,n){return ss(e,t,n,!1),pu}function mu(e,t){return ss(e,t,null,!0),mu}function Sf(e){as(f,As,e,!0)}function As(e,t){for(let n=function Ey(e){return function wf(e){Cr.key=0,Cr.keyEnd=0,Cr.value=0,Cr.valueEnd=0,Cr.textEnd=e.length}(e),Ef(e,La(e,0,Cr.textEnd))}(t);n>=0;n=Ef(t,n))f(e,Cf(t),!0)}function ss(e,t,n,i){const o=D(),s=M(),d=vr(2);s.firstUpdatePass&&xf(s,e,d,i),t!==Bn&&Kr(o,d,t)&&Of(s,s.data[Fi()],o,o[11],e,o[d+1]=function Ry(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ee(Ns(e)))),e}(t,n),i,d)}function as(e,t,n,i){const o=M(),s=vr(2);o.firstUpdatePass&&xf(o,null,s,i);const d=D();if(n!==Bn&&Kr(d,s,n)){const y=o.data[Fi()];if(Ff(y,i)&&!Tf(o,s)){let w=i?y.classesWithoutHost:y.stylesWithoutHost;null!==w&&(n=ne(w,n||"")),ou(o,y,d,n,i)}else!function Fy(e,t,n,i,o,s,d,y){o===Bn&&(o=k);let w=0,R=0,Y=0<o.length?o[0]:null,pe=0<s.length?s[0]:null;for(;null!==Y||null!==pe;){const je=w<o.length?o[w+1]:void 0,it=R<s.length?s[R+1]:void 0;let Ut,wt=null;Y===pe?(w+=2,R+=2,je!==it&&(wt=pe,Ut=it)):null===pe||null!==Y&&Y<pe?(w+=2,wt=Y):(R+=2,wt=pe,Ut=it),null!==wt&&Of(e,t,n,i,wt,Ut,d,y),Y=w<o.length?o[w]:null,pe=R<s.length?s[R]:null}}(o,y,d,d[11],d[s+1],d[s+1]=function Py(e,t,n){if(null==n||""===n)return k;const i=[],o=Ns(n);if(Array.isArray(o))for(let s=0;s<o.length;s++)e(i,o[s],!0);else if("object"==typeof o)for(const s in o)o.hasOwnProperty(s)&&e(i,s,o[s]);else"string"==typeof o&&t(i,o);return i}(e,t,n),i,s)}}function Tf(e,t){return t>=e.expandoStartIndex}function xf(e,t,n,i){const o=e.data;if(null===o[n+1]){const s=o[Fi()],d=Tf(e,n);Ff(s,i)&&null===t&&!d&&(t=!1),t=function Ty(e,t,n,i){const o=Ur(e);let s=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=nl(n=gu(null,e,t,n,i),t.attrs,i),s=null);else{const d=t.directiveStylingLast;if(-1===d||e[d]!==o)if(n=gu(o,e,t,n,i),null===s){let w=function xy(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==ha(i))return e[Qs(i)]}(e,t,i);void 0!==w&&Array.isArray(w)&&(w=gu(null,e,t,w[1],i),w=nl(w,t.attrs,i),function Iy(e,t,n,i){e[Qs(n?t.classBindings:t.styleBindings)]=i}(e,t,i,w))}else s=function Oy(e,t,n){let i;const o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<o;s++)i=nl(i,e[s].hostAttrs,n);return nl(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(o,s,t,i),function vy(e,t,n,i,o,s){let d=s?t.classBindings:t.styleBindings,y=Qs(d),w=ha(d);e[i]=n;let Y,R=!1;if(Array.isArray(n)?(Y=n[1],(null===Y||a(n,Y)>0)&&(R=!0)):Y=n,o)if(0!==w){const je=Qs(e[y+1]);e[i+1]=Bl(je,y),0!==je&&(e[je+1]=hu(e[je+1],i)),e[y+1]=function gy(e,t){return 131071&e|t<<17}(e[y+1],i)}else e[i+1]=Bl(y,0),0!==y&&(e[y+1]=hu(e[y+1],i)),y=i;else e[i+1]=Bl(w,0),0===y?y=i:e[w+1]=hu(e[w+1],i),w=i;R&&(e[i+1]=du(e[i+1])),bf(e,Y,i,!0),bf(e,Y,i,!1),function yy(e,t,n,i,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&a(s,t)>=0&&(n[i+1]=fu(n[i+1]))}(t,Y,e,i,s),d=Bl(y,w),s?t.classBindings=d:t.styleBindings=d}(o,s,t,n,d,i)}}function gu(e,t,n,i,o){let s=null;const d=n.directiveEnd;let y=n.directiveStylingLast;for(-1===y?y=n.directiveStart:y++;y<d&&(s=t[y],i=nl(i,s.hostAttrs,o),s!==e);)y++;return null!==e&&(n.directiveStylingLast=y),i}function nl(e,t,n){const i=n?1:2;let o=-1;if(null!==t)for(let s=0;s<t.length;s++){const d=t[s];"number"==typeof d?o=d:o===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),f(e,d,!!n||t[++s]))}return void 0===e?null:e}function Of(e,t,n,i,o,s,d,y){if(!(3&t.type))return;const w=e.data,R=w[y+1],Y=function _y(e){return 1==(1&e)}(R)?Pf(w,t,n,o,ha(R),d):void 0;Vl(Y)||(Vl(s)||function my(e){return 2==(2&e)}(R)&&(s=Pf(w,null,n,o,y,d)),function Fg(e,t,n,i,o){if(t)o?e.addClass(n,i):e.removeClass(n,i);else{let s=-1===i.indexOf("-")?void 0:Cs.DashCase;null==o?e.removeStyle(n,i,s):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),s|=Cs.Important),e.setStyle(n,i,o,s))}}(i,d,fr(Fi(),n),o,s))}function Pf(e,t,n,i,o,s){const d=null===t;let y;for(;o>0;){const w=e[o],R=Array.isArray(w),Y=R?w[1]:w,pe=null===Y;let je=n[o+1];je===Bn&&(je=pe?k:void 0);let it=pe?l(je,i):Y===i?je:void 0;if(R&&!Vl(it)&&(it=l(w,i)),Vl(it)&&(y=it,d))return y;const wt=e[o+1];o=d?Qs(wt):ha(wt)}if(null!==t){let w=s?t.residualClasses:t.residualStyles;null!=w&&(y=l(w,i))}return y}function Vl(e){return void 0!==e}function Ff(e,t){return 0!=(e.flags&(t?8:16))}function Rf(e,t=""){const n=D(),i=M(),o=e+22,s=i.firstCreatePass?Sa(i,o,1,t,null):i.data[o],d=n[o]=function dc(e,t){return e.createText(t)}(n[11],t);ml(i,n,d,s),oi(s,!1)}function _u(e){return Ul("",e,""),_u}function Ul(e,t,n){const i=D(),o=xa(i,e,t,n);return o!==Bn&&Vs(i,Fi(),o),Ul}function vu(e,t,n,i,o){const s=D(),d=Ia(s,e,t,n,i,o);return d!==Bn&&Vs(s,Fi(),d),vu}function jf(e,t,n){as(f,As,xa(D(),e,t,n),!0)}function yu(e,t,n){const i=D();return Kr(i,_r(),t)&&No(M(),si(),i,e,t,i[11],n,!0),yu}function bu(e,t,n){const i=D();if(Kr(i,_r(),t)){const s=M(),d=si();No(s,d,i,e,t,function kh(e,t,n){return(null===e||Ei(e))&&(n=function Ti(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}(Ur(s.data),d,i),n,!0)}return bu}const fa=void 0;var qy=["en",[["a","p"],["AM","PM"],fa],[["AM","PM"],fa,fa],[["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"]],fa,[["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"]],fa,[["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}",fa,"{1} 'at' {0}",fa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Jy(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ba={};function Cu(e){const t=function e0(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=qf(t);if(n)return n;const i=t.split("-")[0];if(n=qf(i),n)return n;if("en"===i)return qy;throw new ue(701,!1)}function Jf(e){return Cu(e)[Dn.PluralCase]}function qf(e){return e in Ba||(Ba[e]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[e]),Ba[e]}var Dn=(()=>((Dn=Dn||{})[Dn.LocaleId=0]="LocaleId",Dn[Dn.DayPeriodsFormat=1]="DayPeriodsFormat",Dn[Dn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Dn[Dn.DaysFormat=3]="DaysFormat",Dn[Dn.DaysStandalone=4]="DaysStandalone",Dn[Dn.MonthsFormat=5]="MonthsFormat",Dn[Dn.MonthsStandalone=6]="MonthsStandalone",Dn[Dn.Eras=7]="Eras",Dn[Dn.FirstDayOfWeek=8]="FirstDayOfWeek",Dn[Dn.WeekendRange=9]="WeekendRange",Dn[Dn.DateFormat=10]="DateFormat",Dn[Dn.TimeFormat=11]="TimeFormat",Dn[Dn.DateTimeFormat=12]="DateTimeFormat",Dn[Dn.NumberSymbols=13]="NumberSymbols",Dn[Dn.NumberFormats=14]="NumberFormats",Dn[Dn.CurrencyCode=15]="CurrencyCode",Dn[Dn.CurrencySymbol=16]="CurrencySymbol",Dn[Dn.CurrencyName=17]="CurrencyName",Dn[Dn.Currencies=18]="Currencies",Dn[Dn.Directionality=19]="Directionality",Dn[Dn.PluralCase=20]="PluralCase",Dn[Dn.ExtraData=21]="ExtraData",Dn))();const Va="en-US";let ep=Va;function wu(e,t,n,i,o){if(e=le(e),Array.isArray(e))for(let s=0;s<e.length;s++)wu(e[s],t,n,i,o);else{const s=M(),d=D();let y=aa(e)?e:le(e.provide),w=Xd(e);const R=ot(),Y=1048575&R.providerIndexes,pe=R.directiveStart,je=R.providerIndexes>>20;if(aa(e)||!e.multi){const it=new st(w,o,Ma),wt=Mu(y,t,o?Y:Y+je,pe);-1===wt?(Vi($o(R,d),s,y),Au(s,e,t.length),t.push(y),R.directiveStart++,R.directiveEnd++,o&&(R.providerIndexes+=1048576),n.push(it),d.push(it)):(n[wt]=it,d[wt]=it)}else{const it=Mu(y,t,Y+je,pe),wt=Mu(y,t,Y,Y+je),Qt=wt>=0&&n[wt];if(o&&!Qt||!o&&!(it>=0&&n[it])){Vi($o(R,d),s,y);const un=function J0(e,t,n,i,o){const s=new st(e,n,Ma);return s.multi=[],s.index=t,s.componentProviders=0,Ap(s,o,i&&!n),s}(o?X0:Q0,n.length,o,i,w);!o&&Qt&&(n[wt].providerFactory=un),Au(s,e,t.length,0),t.push(y),R.directiveStart++,R.directiveEnd++,o&&(R.providerIndexes+=1048576),n.push(un),d.push(un)}else Au(s,e,it>-1?it:wt,Ap(n[o?wt:it],w,!o&&i));!o&&i&&Qt&&n[wt].componentProviders++}}}function Au(e,t,n,i){const o=aa(t),s=function f_(e){return!!e.useClass}(t);if(o||s){const w=(s?le(t.useClass):t).prototype.ngOnDestroy;if(w){const R=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const Y=R.indexOf(n);-1===Y?R.push(n,[i,w]):R[Y+1].push(i,w)}else R.push(n,w)}}}function Ap(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Mu(e,t,n,i){for(let o=n;o<i;o++)if(t[o]===e)return o;return-1}function Q0(e,t,n,i){return Su(this.multi,[])}function X0(e,t,n,i){const o=this.multi;let s;if(this.providerFactory){const d=this.providerFactory.componentProviders,y=ro(n,n[1],this.providerFactory.index,i);s=y.slice(0,d),Su(o,s);for(let w=d;w<y.length;w++)s.push(y[w])}else s=[],Su(o,s);return s}function Su(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Mp(e,t=[]){return n=>{n.providersResolver=(i,o)=>function Z0(e,t,n){const i=M();if(i.firstCreatePass){const o=Ei(e);wu(n,i.data,i.blueprint,o,!0),wu(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Ua{}class Sp{}function q0(e,t){return new Tp(e,t??null)}class Tp extends Ua{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Lh(this);const i=ii(t);this._bootstrapComponents=Bs(i.bootstrap),this._r3Injector=mh(t,n,[{provide:Ua,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],ee(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 Tu extends Sp{constructor(t){super(),this.moduleType=t}create(t){return new Tp(this.moduleType,t)}}class eb extends Ua{constructor(t,n,i){super(),this.componentFactoryResolver=new Lh(this),this.instance=null;const o=new Qd([...t,{provide:Ua,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],n||El(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function xu(e,t,n=null){return new eb(e,t,n).injector}let tb=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const i=Wd(0,n.type),o=i.length>0?xu([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=Ve({token:e,providedIn:"environment",factory:()=>new e(Oe(la))}),e})();function xp(e){e.getStandaloneInjector=t=>t.get(tb).getOrCreateStandaloneInjector(e)}function Np(e,t,n,i){return Up(D(),Pi(),e,t,n,i)}function Lp(e,t,n,i,o){return Hp(D(),Pi(),e,t,n,i,o)}function Bp(e,t,n,i,o,s){return jp(D(),Pi(),e,t,n,i,o,s)}function Vp(e,t,n,i,o,s,d){return function $p(e,t,n,i,o,s,d,y,w){const R=t+n;return function Ko(e,t,n,i,o,s){const d=da(e,t,n,i);return da(e,t+2,o,s)||d}(e,R,o,s,d,y)?Ds(e,R+4,w?i.call(w,o,s,d,y):i(o,s,d,y)):ll(e,R+4)}(D(),Pi(),e,t,n,i,o,s,d)}function ll(e,t){const n=e[t];return n===Bn?void 0:n}function Up(e,t,n,i,o,s){const d=t+n;return Kr(e,d,o)?Ds(e,d+1,s?i.call(s,o):i(o)):ll(e,d+1)}function Hp(e,t,n,i,o,s,d){const y=t+n;return da(e,y,o,s)?Ds(e,y+2,d?i.call(d,o,s):i(o,s)):ll(e,y+2)}function jp(e,t,n,i,o,s,d,y){const w=t+n;return function Pl(e,t,n,i,o){const s=da(e,t,n,i);return Kr(e,t+2,o)||s}(e,w,o,s,d)?Ds(e,w+3,y?i.call(y,o,s,d):i(o,s,d)):ll(e,w+3)}function Gp(e,t){const n=M();let i;const o=e+22;n.firstCreatePass?(i=function gb(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[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const s=i.factory||(i.factory=fi(i.type)),d=ct(Ma);try{const y=fs(!1),w=s();return fs(y),function uy(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,D(),o,w),w}finally{ct(d)}}function Wp(e,t,n){const i=e+22,o=D(),s=mr(o,i);return cl(o,i)?Up(o,Pi(),t,s.transform,n,s):s.transform(n)}function Yp(e,t,n,i){const o=e+22,s=D(),d=mr(s,o);return cl(s,o)?Hp(s,Pi(),t,d.transform,n,i,d):d.transform(n,i)}function Kp(e,t,n,i,o){const s=e+22,d=D(),y=mr(d,s);return cl(d,s)?jp(d,Pi(),t,y.transform,n,i,o,y):y.transform(n,i,o)}function cl(e,t){return e[1].data[t].pure}function Ou(e){return t=>{setTimeout(e,void 0,t)}}const Ms=class yb extends r.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){let o=t,s=n||(()=>null),d=i;if(t&&"object"==typeof t){const w=t;o=w.next?.bind(w),s=w.error?.bind(w),d=w.complete?.bind(w)}this.__isAsync&&(s=Ou(s),o&&(o=Ou(o)),d&&(d=Ou(d)));const y=super.subscribe({next:o,error:s,complete:d});return t instanceof c.w0&&t.add(y),y}};function bb(){return this._results[ua()]()}class Gl{get changes(){return this._changes||(this._changes=new Ms)}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=ua(),i=Gl.prototype;i[n]||(i[n]=bb)}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 o=function br(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ks(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let o=e[i],s=t[i];if(n&&(o=n(o),s=n(s)),s!==o)return!1}return!0}(i._results,o,n))&&(i._results=o,i.length=o.length,i.last=o[this.length-1],i.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let ul=(()=>{class e{}return e.__NG_ELEMENT_ID__=Db,e})();const Cb=ul,Eb=class extends Cb{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t,n){const i=this._declarationTContainer.tViews,o=wl(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,n||null);o[17]=this._declarationLView[this._declarationTContainer.index];const d=this._declarationLView[19];return null!==d&&(o[19]=d.createEmbeddedView(i)),jc(i,o,t),new qa(o)}};function Db(){return Wl(ot(),D())}function Wl(e,t){return 4&e.type?new Eb(t,e,Da(e,t)):null}let Yl=(()=>{class e{}return e.__NG_ELEMENT_ID__=wb,e})();function wb(){return Xp(ot(),D())}const Ab=Yl,Zp=class extends Ab{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Da(this._hostTNode,this._hostLView)}get injector(){return new Po(this._hostTNode,this._hostLView)}get parentInjector(){const t=es(this._hostTNode,this._hostLView);if(kr(t)){const n=hs(t,this._hostLView),i=io(t);return new Po(n[1].data[i+8],n)}return new Po(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Qp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){let o,s;"number"==typeof i?o=i:null!=i&&(o=i.index,s=i.injector);const d=t.createEmbeddedView(n||{},s);return this.insert(d,o),d}createComponent(t,n,i,o,s){const d=t&&!function Yo(e){return"function"==typeof e}(t);let y;if(d)y=n;else{const pe=n||{};y=pe.index,i=pe.injector,o=pe.projectableNodes,s=pe.environmentInjector||pe.ngModuleRef}const w=d?t:new el(fn(t)),R=i||this.parentInjector;if(!s&&null==w.ngModule){const je=(d?R:this.parentInjector).get(la,null);je&&(s=je)}const Y=w.create(R,o,void 0,s);return this.insert(Y.hostView,y),Y}insert(t,n){const i=t._lView,o=i[1];if(function Mr(e){return Ci(e[3])}(i)){const Y=this.indexOf(t);if(-1!==Y)this.detach(Y);else{const pe=i[3],je=new Zp(pe,pe[6],pe[3]);je.detach(je.indexOf(t))}}const s=this._adjustIndex(n),d=this._lContainer;!function Ag(e,t,n,i){const o=10+i,s=n.length;i>0&&(n[o-1][4]=t),i<s-10?(t[4]=n[o],m(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const d=t[17];null!==d&&n!==d&&function Mg(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(d,t);const y=t[19];null!==y&&y.insertView(e),t[2]|=64}(o,i,d,s);const y=gc(s,d),w=i[11],R=pl(w,d[7]);return null!==R&&function Eg(e,t,n,i,o,s){i[0]=o,i[6]=t,Wa(e,i,n,1,o,s)}(o,d[6],w,i,R,y),t.attachToViewContainerRef(),m(Pu(d),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Qp(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=fc(this._lContainer,n);i&&(u(Pu(this._lContainer),n),gd(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=fc(this._lContainer,n);return i&&null!=u(Pu(this._lContainer),n)?new qa(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function Qp(e){return e[8]}function Pu(e){return e[8]||(e[8]=[])}function Xp(e,t){let n;const i=t[e.index];if(Ci(i))n=i;else{let o;if(8&e.type)o=ri(i);else{const s=t[11];o=s.createComment("");const d=Vn(e,t);ra(s,pl(s,d),o,function Ig(e,t){return e.nextSibling(t)}(s,d),!1)}t[e.index]=n=Ph(i,t,o,e),Ml(t,n)}return new Zp(n,e,t)}class Fu{constructor(t){this.queryList=t,this.matches=null}clone(){return new Fu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ru{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let s=0;s<i;s++){const d=n.getByIndex(s);o.push(this.queries[d.indexInDeclarationView].clone())}return new Ru(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==sm(t,n).matches&&this.queries[n].setDirty()}}class Jp{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class ku{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 o=null!==n?n.length:0,s=this.getByIndex(i).embeddedTView(t,o);s&&(s.indexInDeclarationView=i,null!==n?n.push(s):n=[s])}return null!==n?new ku(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 Nu{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 Nu(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 o=0;o<i.length;o++){const s=i[o];this.matchTNodeWithReadOption(t,n,Mb(n,s)),this.matchTNodeWithReadOption(t,n,is(n,t,s,!1,!1))}else i===ul?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,is(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===Qa||o===Yl||o===ul&&4&n.type)this.addMatch(n.index,-2);else{const s=is(n,t,o,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function Mb(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 Tb(e,t,n,i){return-1===n?function Sb(e,t){return 11&e.type?Da(e,t):4&e.type?Wl(e,t):null}(t,e):-2===n?function xb(e,t,n){return n===Qa?Da(t,e):n===ul?Wl(t,e):n===Yl?Xp(t,e):void 0}(e,t,i):ro(e,e[1],n,t)}function qp(e,t,n,i){const o=t[19].queries[i];if(null===o.matches){const s=e.data,d=n.matches,y=[];for(let w=0;w<d.length;w+=2){const R=d[w];y.push(R<0?null:Tb(t,s[R],d[w+1],n.metadata.read))}o.matches=y}return o.matches}function Lu(e,t,n,i){const o=e.queries.getByIndex(n),s=o.matches;if(null!==s){const d=qp(e,t,o,n);for(let y=0;y<s.length;y+=2){const w=s[y];if(w>0)i.push(d[y/2]);else{const R=s[y+1],Y=t[-w];for(let pe=10;pe<Y.length;pe++){const je=Y[pe];je[17]===je[3]&&Lu(je[1],je,R,i)}if(null!==Y[9]){const pe=Y[9];for(let je=0;je<pe.length;je++){const it=pe[je];Lu(it[1],it,R,i)}}}}}return i}function em(e){const t=D(),n=M(),i=us();xo(i+1);const o=sm(n,i);if(e.dirty&&function Ao(e){return 4==(4&e[2])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const s=o.crossesNgTemplate?Lu(n,t,i,[]):qp(n,t,o,i);e.reset(s,w_),e.notifyOnChanges()}return!0}return!1}function tm(e,t,n){const i=M();i.firstCreatePass&&(om(i,new Jp(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),rm(i,D(),t)}function nm(e,t,n,i){const o=M();if(o.firstCreatePass){const s=ot();om(o,new Jp(t,n,i),s.index),function Ob(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}rm(o,D(),n)}function im(){return function Ib(e,t){return e[19].queries[t].queryList}(D(),us())}function rm(e,t,n){const i=new Gl(4==(4&n));Mh(e,t,i,i.destroy),null===t[19]&&(t[19]=new Ru),t[19].queries.push(new Fu(i))}function om(e,t,n){null===e.queries&&(e.queries=new ku),e.queries.track(new Nu(t,n))}function sm(e,t){return e.queries.getByIndex(t)}function am(e,t){return Wl(e,t)}function Zl(...e){}const Mm=new li("Application Initializer");let Ql=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Zl,this.reject=Zl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const s=this.appInits[o]();if(lu(s))n.push(s);else if(nf(s)){const d=new Promise((y,w)=>{s.subscribe({complete:y,error:w})});n.push(d)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Oe(Mm,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Sm=new li("AppId",{providedIn:"root",factory:function Tm(){return`${ju()}${ju()}${ju()}`}});function ju(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const xm=new li("Platform Initializer"),Xb=new li("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Im=new li("appBootstrapListener"),Jb=new li("AnimationModuleType");let qb=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Xl=new li("LocaleId",{providedIn:"root",factory:()=>V(Xl,ae.Optional|ae.SkipSelf)||function eC(){return typeof $localize<"u"&&$localize.locale||Va}()}),tC=new li("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class nC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let iC=(()=>{class e{compileModuleSync(n){return new Tu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=Bs(ii(n).declarations).reduce((d,y)=>{const w=fn(y);return w&&d.push(new el(w)),d},[]);return new nC(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sC=(()=>Promise.resolve(0))();function $u(e){typeof Zone>"u"?sC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Zo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ms(!1),this.onMicrotaskEmpty=new Ms(!1),this.onStable=new Ms(!1),this.onError=new Ms(!1),typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function aC(){let e=Pt.requestAnimationFrame,t=Pt.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uC(e){const t=()=>{!function cC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Pt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Gu(e),e.isCheckStableRunning=!0,zu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Gu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,s,d,y)=>{try{return Fm(e),n.invokeTask(o,s,d,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Rm(e)}},onInvoke:(n,i,o,s,d,y,w)=>{try{return Fm(e),n.invoke(o,s,d,y,w)}finally{e.shouldCoalesceRunChangeDetection&&t(),Rm(e)}},onHasTask:(n,i,o,s)=>{n.hasTask(o,s),i===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Gu(e),zu(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,o,s)=>(n.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zo.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(Zo.isInAngularZone())throw new ue(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const s=this._inner,d=s.scheduleEventTask("NgZoneEvent: "+o,t,lC,Zl,Zl);try{return s.runTask(d,n,i)}finally{s.cancelTask(d)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lC={};function zu(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 Gu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Fm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Rm(e){e._nesting--,zu(e)}class dC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ms,this.onMicrotaskEmpty=new Ms,this.onStable=new Ms,this.onError=new Ms}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,o){return t.apply(n,i)}}const km=new li(""),Nm=new li("");let Wu,hC=(()=>{class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Wu||(function fC(e){Wu=e}(o),o.addToWindow(i)),this._watchAngularEvents(),n.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:()=>{Zo.assertNotInAngularZone(),$u(()=>{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())$u(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,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(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(Oe(Zo),Oe(Lm),Oe(Nm))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e})(),Lm=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Wu?.findTestabilityInTree(this,n,i)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Xs=null;const Bm=new li("AllowMultipleToken"),Yu=new li("PlatformDestroyListeners");class gC{constructor(t,n){this.name=t,this.token=n}}function Um(e,t,n=[]){const i=`Platform: ${t}`,o=new li(i);return(s=[])=>{let d=Ku();if(!d||d.injector.get(Bm,!1)){const y=[...n,...s,{provide:o,useValue:!0}];e?e(y):function _C(e){if(Xs&&!Xs.get(Bm,!1))throw new ue(400,!1);Xs=e;const t=e.get(jm);(function Vm(e){const t=e.get(xm,null);t&&t.forEach(n=>n())})(e)}(function Hm(e=[],t){return ca.create({name:t,providers:[{provide:Ic,useValue:"platform"},{provide:Yu,useValue:new Set([()=>Xs=null])},...e]})}(y,i))}return function yC(e){const t=Ku();if(!t)throw new ue(401,!1);return t}()}}function Ku(){return Xs?.get(jm)??null}let jm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const o=function zm(e,t){let n;return n="noop"===e?new dC:("zone.js"===e?void 0:e)||new Zo(t),n}(i?.ngZone,function $m(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:Zo,useValue:o}];return o.run(()=>{const d=ca.create({providers:s,parent:this.injector,name:n.moduleType.name}),y=n.create(d),w=y.injector.get(Xa,null);if(!w)throw new ue(402,!1);return o.runOutsideAngular(()=>{const R=o.onError.subscribe({next:Y=>{w.handleError(Y)}});y.onDestroy(()=>{ql(this._modules,y),R.unsubscribe()})}),function Gm(e,t,n){try{const i=n();return lu(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(w,o,()=>{const R=y.injector.get(Ql);return R.runInitializers(),R.donePromise.then(()=>(function tp(e){It(e,"Expected localeId to be defined"),"string"==typeof e&&(ep=e.toLowerCase().replace(/_/g,"-"))}(y.injector.get(Xl,Va)||Va),this._moduleDoBootstrap(y),y))})})}bootstrapModule(n,i=[]){const o=Wm({},i);return function pC(e,t,n){const i=new Tu(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const i=n.injector.get(Jl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new ue(-403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ue(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(Yu,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Oe(ca))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Wm(e,t){return Array.isArray(t)?t.reduce(Wm,e):{...e,...t}}let Jl=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,i,o){this._zone=n,this._injector=i,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new A.y(y=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{y.next(this._stable),y.complete()})}),d=new A.y(y=>{let w;this._zone.runOutsideAngular(()=>{w=this._zone.onStable.subscribe(()=>{Zo.assertNotInAngularZone(),$u(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,y.next(!0))})})});const R=this._zone.onUnstable.subscribe(()=>{Zo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{y.next(!1)}))});return()=>{w.unsubscribe(),R.unsubscribe()}});this.isStable=(0,B.T)(s,d.pipe((0,X.B)()))}bootstrap(n,i){const o=n instanceof Jd;if(!this._injector.get(Ql).done)throw!o&&qn(n),new ue(405,false);let d;d=o?n:this._injector.get(Za).resolveComponentFactory(n),this.componentTypes.push(d.componentType);const y=function mC(e){return e.isBoundToModule}(d)?void 0:this._injector.get(Ua),R=d.create(ca.NULL,[],i||d.selector,y),Y=R.location.nativeElement,pe=R.injector.get(km,null);return pe?.registerApplication(Y),R.onDestroy(()=>{this.detachView(R.hostView),ql(this.components,R),pe?.unregisterApplication(Y)}),this._loadComponent(R),R}tick(){if(this._runningTick)throw new ue(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;ql(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const i=this._injector.get(Im,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ql(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ue(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(Oe(Zo),Oe(la),Oe(Xa))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function ql(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function CC(){return!1}function EC(){}let DC=(()=>{class e{}return e.__NG_ELEMENT_ID__=wC,e})();function wC(e){return function AC(e,t,n){if(Zi(e)&&!n){const i=mi(e.index,t);return new qa(i,i)}return 47&e.type?new qa(t[16],t):null}(ot(),D(),16==(16&e))}class Xm{constructor(){}supports(t){return Ol(t)}create(t){return new OC(t)}}const IC=(e,t)=>t;class OC{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||IC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,s=null;for(;n||i;){const d=!i||n&&n.currentIndex<qm(i,o,s)?n:i,y=qm(d,o,s),w=d.currentIndex;if(d===i)o--,i=i._nextRemoved;else if(n=n._next,null==d.previousIndex)o++;else{s||(s=[]);const R=y-o,Y=w-o;if(R!=Y){for(let je=0;je<R;je++){const it=je<s.length?s[je]:s[je]=0,wt=it+je;Y<=wt&&wt<R&&(s[je]=it+1)}s[d.previousIndex]=Y-R}}y!==w&&t(d,y,w)}}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=[]),!Ol(t))throw new ue(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,s,d,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let y=0;y<this.length;y++)s=t[y],d=this._trackByFn(y,s),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,s,d,y)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,d,y),i=!0),n=n._next}else o=0,function sy(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[ua()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,y=>{d=this._trackByFn(o,y),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,y,d,o)),Object.is(n.item,y)||this._addIdentityChange(n,y)):(n=this._mismatch(n,y,d,o),i=!0),n=n._next,o++}),this.length=o;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,o){let s;return null===t?s=this._itTail:(s=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,s,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,o)):t=this._addAfter(new PC(n,i),s,o),t}_verifyReinsertion(t,n,i,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),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 o=t._prevRemoved,s=t._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,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 o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Jm),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 Jm),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 PC{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 FC{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 Jm{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new FC,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.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 qm(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i<n.length&&(o=n[i]),i+t+o}class eg{constructor(){}supports(t){return t instanceof Map||nu(t)}create(){return new RC}}class RC{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||nu(t)))throw new ue(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,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,s)}}),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 o=this._records.get(t);this._maybeAddToChanges(o,n);const s=o._prev,d=o._next;return s&&(s._next=d),d&&(d._prev=s),o._next=null,o._prev=null,o}const i=new kC(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 kC{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 tg(){return new qu([new Xm])}let qu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||tg()),deps:[[e,new x,new _n]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new ue(901,!1)}}return e.\u0275prov=Ve({token:e,providedIn:"root",factory:tg}),e})();function ng(){return new ed([new eg])}let ed=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||ng()),deps:[[e,new x,new _n]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(i)return i;throw new ue(901,!1)}}return e.\u0275prov=Ve({token:e,providedIn:"root",factory:ng}),e})();const BC=Um(null,"core",[]);let VC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Oe(Jl))},e.\u0275mod=Ot({type:e}),e.\u0275inj=xt({}),e})();function UC(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},433:(Ct,Te,g)=>{g.d(Te,{Fj:()=>be,oH:()=>dr,u5:()=>mo,JU:()=>Ne,JJ:()=>Ht,JL:()=>Pt,F:()=>rr,On:()=>hi,YN:()=>pn,wV:()=>_i,UX:()=>Qo,Q7:()=>Bi,EJ:()=>Gt,p4:()=>Ui,_Y:()=>ui,Kr:()=>vi});var r=g(4650),c=g(6895),A=g(8996),B=g(9751),X=g(4742),se=g(8421),J=g(3269),ee=g(5403),ne=g(3268),j=g(1810),le=g(4004);let He=(()=>{class D{constructor(S,Z){this._renderer=S,this._elementRef=Z,this.onChange=ot=>{},this.onTouched=()=>{}}setProperty(S,Z){this._renderer.setProperty(this._elementRef.nativeElement,S,Z)}registerOnTouched(S){this.onTouched=S}registerOnChange(S){this.onChange=S}setDisabledState(S){this.setProperty("disabled",S)}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(r.Qsj),r.Y36(r.SBq))},D.\u0275dir=r.lG2({type:D}),D})(),Ee=(()=>{class D extends He{}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,features:[r.qOj]}),D})();const Ne=new r.OlP("NgValueAccessor"),ke={provide:Ne,useExisting:(0,r.Gpc)(()=>be),multi:!0},et=new r.OlP("CompositionEventMode");let be=(()=>{class D extends He{constructor(S,Z,ot){super(S,Z),this._compositionMode=ot,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Fe(){const D=(0,c.q)()?(0,c.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(S){this.setProperty("value",S??"")}_handleInput(S){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(S)}_compositionStart(){this._composing=!0}_compositionEnd(S){this._composing=!1,this._compositionMode&&this.onChange(S)}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(et,8))},D.\u0275dir=r.lG2({type:D,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(S,Z){1&S&&r.NdJ("input",function(rn){return Z._handleInput(rn.target.value)})("blur",function(){return Z.onTouched()})("compositionstart",function(){return Z._compositionStart()})("compositionend",function(rn){return Z._compositionEnd(rn.target.value)})},features:[r._Bn([ke]),r.qOj]}),D})();const Ue=new r.OlP("NgValidators"),xe=new r.OlP("NgAsyncValidators");function Mt(D){return function ye(D){return null==D||("string"==typeof D||Array.isArray(D))&&0===D.length}(D.value)?{required:!0}:null}function bt(D){return null}function It(D){return null!=D}function Ce(D){return(0,r.QGY)(D)?(0,A.D)(D):D}function Xe(D){let M={};return D.forEach(S=>{M=null!=S?{...M,...S}:M}),0===Object.keys(M).length?null:M}function L(D,M){return M.map(S=>S(D))}function Ve(D){return D.map(M=>function ie(D){return!D.validate}(M)?M:S=>M.validate(S))}function xt(D){return null!=D?function ut(D){if(!D)return null;const M=D.filter(It);return 0==M.length?null:function(S){return Xe(L(S,M))}}(Ve(D)):null}function zt(D){return null!=D?function en(D){if(!D)return null;const M=D.filter(It);return 0==M.length?null:function(S){return function q(...D){const M=(0,J.jO)(D),{args:S,keys:Z}=(0,X.D)(D),ot=new B.y(rn=>{const{length:Yn}=S;if(!Yn)return void rn.complete();const oi=new Array(Yn);let Xi=Yn,gr=Yn;for(let Vr=0;Vr<Yn;Vr++){let go=!1;(0,se.Xf)(S[Vr]).subscribe((0,ee.x)(rn,Mo=>{go||(go=!0,gr--),oi[Vr]=Mo},()=>Xi--,void 0,()=>{(!Xi||!go)&&(gr||rn.next(Z?(0,j.n)(Z,oi):oi),rn.complete())}))}});return M?ot.pipe((0,ne.Z)(M)):ot}(L(S,M).map(Ce)).pipe((0,le.U)(Xe))}}(Ve(D)):null}function Jt(D,M){return null===D?[M]:Array.isArray(D)?[...D,M]:[D,M]}function Tn(D){return D._rawValidators}function In(D){return D._rawAsyncValidators}function Fn(D){return D?Array.isArray(D)?D:[D]:[]}function Pn(D,M){return Array.isArray(D)?D.includes(M):D===M}function sn(D,M){const S=Fn(M);return Fn(D).forEach(ot=>{Pn(S,ot)||S.push(ot)}),S}function tt(D,M){return Fn(M).filter(S=>!Pn(D,S))}class W{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(M){this._rawValidators=M||[],this._composedValidatorFn=xt(this._rawValidators)}_setAsyncValidators(M){this._rawAsyncValidators=M||[],this._composedAsyncValidatorFn=zt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(M){this._onDestroyCallbacks.push(M)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(M=>M()),this._onDestroyCallbacks=[]}reset(M){this.control&&this.control.reset(M)}hasError(M,S){return!!this.control&&this.control.hasError(M,S)}getError(M,S){return this.control?this.control.getError(M,S):null}}class ae extends W{get formDirective(){return null}get path(){return null}}class Se extends W{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class nt{constructor(M){this._cd=M}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 Ht=(()=>{class D extends nt{constructor(S){super(S)}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(Se,2))},D.\u0275dir=r.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(S,Z){2&S&&r.ekj("ng-untouched",Z.isUntouched)("ng-touched",Z.isTouched)("ng-pristine",Z.isPristine)("ng-dirty",Z.isDirty)("ng-valid",Z.isValid)("ng-invalid",Z.isInvalid)("ng-pending",Z.isPending)},features:[r.qOj]}),D})(),Pt=(()=>{class D extends nt{constructor(S){super(S)}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(ae,10))},D.\u0275dir=r.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(S,Z){2&S&&r.ekj("ng-untouched",Z.isUntouched)("ng-touched",Z.isTouched)("ng-pristine",Z.isPristine)("ng-dirty",Z.isDirty)("ng-valid",Z.isValid)("ng-invalid",Z.isInvalid)("ng-pending",Z.isPending)("ng-submitted",Z.isSubmitted)},features:[r.qOj]}),D})();const Ke="VALID",K="INVALID",ce="PENDING",De="DISABLED";function qe(D){return(tn(D)?D.validators:D)||null}function Rt(D,M){return(tn(M)?M.asyncValidators:D)||null}function tn(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}class p{constructor(M,S){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(M),this._assignAsyncValidators(S)}get validator(){return this._composedValidatorFn}set validator(M){this._rawValidators=this._composedValidatorFn=M}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(M){this._rawAsyncValidators=this._composedAsyncValidatorFn=M}get parent(){return this._parent}get valid(){return this.status===Ke}get invalid(){return this.status===K}get pending(){return this.status==ce}get disabled(){return this.status===De}get enabled(){return this.status!==De}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(M){this._assignValidators(M)}setAsyncValidators(M){this._assignAsyncValidators(M)}addValidators(M){this.setValidators(sn(M,this._rawValidators))}addAsyncValidators(M){this.setAsyncValidators(sn(M,this._rawAsyncValidators))}removeValidators(M){this.setValidators(tt(M,this._rawValidators))}removeAsyncValidators(M){this.setAsyncValidators(tt(M,this._rawAsyncValidators))}hasValidator(M){return Pn(this._rawValidators,M)}hasAsyncValidator(M){return Pn(this._rawAsyncValidators,M)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(M={}){this.touched=!0,this._parent&&!M.onlySelf&&this._parent.markAsTouched(M)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(M=>M.markAllAsTouched())}markAsUntouched(M={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(S=>{S.markAsUntouched({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}markAsDirty(M={}){this.pristine=!1,this._parent&&!M.onlySelf&&this._parent.markAsDirty(M)}markAsPristine(M={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(S=>{S.markAsPristine({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}markAsPending(M={}){this.status=ce,!1!==M.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!M.onlySelf&&this._parent.markAsPending(M)}disable(M={}){const S=this._parentMarkedDirty(M.onlySelf);this.status=De,this.errors=null,this._forEachChild(Z=>{Z.disable({...M,onlySelf:!0})}),this._updateValue(),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...M,skipPristineCheck:S}),this._onDisabledChange.forEach(Z=>Z(!0))}enable(M={}){const S=this._parentMarkedDirty(M.onlySelf);this.status=Ke,this._forEachChild(Z=>{Z.enable({...M,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent}),this._updateAncestors({...M,skipPristineCheck:S}),this._onDisabledChange.forEach(Z=>Z(!1))}_updateAncestors(M){this._parent&&!M.onlySelf&&(this._parent.updateValueAndValidity(M),M.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(M){this._parent=M}getRawValue(){return this.value}updateValueAndValidity(M={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ke||this.status===ce)&&this._runAsyncValidator(M.emitEvent)),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!M.onlySelf&&this._parent.updateValueAndValidity(M)}_updateTreeValidity(M={emitEvent:!0}){this._forEachChild(S=>S._updateTreeValidity(M)),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?De:Ke}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(M){if(this.asyncValidator){this.status=ce,this._hasOwnPendingAsyncValidator=!0;const S=Ce(this.asyncValidator(this));this._asyncValidationSubscription=S.subscribe(Z=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Z,{emitEvent:M})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(M,S={}){this.errors=M,this._updateControlsErrors(!1!==S.emitEvent)}get(M){let S=M;return null==S||(Array.isArray(S)||(S=S.split(".")),0===S.length)?null:S.reduce((Z,ot)=>Z&&Z._find(ot),this)}getError(M,S){const Z=S?this.get(S):this;return Z&&Z.errors?Z.errors[M]:null}hasError(M,S){return!!this.getError(M,S)}get root(){let M=this;for(;M._parent;)M=M._parent;return M}_updateControlsErrors(M){this.status=this._calculateStatus(),M&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(M)}_initObservables(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}_calculateStatus(){return this._allControlsDisabled()?De:this.errors?K:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ce)?ce:this._anyControlsHaveStatus(K)?K:Ke}_anyControlsHaveStatus(M){return this._anyControls(S=>S.status===M)}_anyControlsDirty(){return this._anyControls(M=>M.dirty)}_anyControlsTouched(){return this._anyControls(M=>M.touched)}_updatePristine(M={}){this.pristine=!this._anyControlsDirty(),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}_updateTouched(M={}){this.touched=this._anyControlsTouched(),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}_registerOnCollectionChange(M){this._onCollectionChange=M}_setUpdateStrategy(M){tn(M)&&null!=M.updateOn&&(this._updateOn=M.updateOn)}_parentMarkedDirty(M){return!M&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(M){return null}_assignValidators(M){this._rawValidators=Array.isArray(M)?M.slice():M,this._composedValidatorFn=function Ie(D){return Array.isArray(D)?xt(D):D||null}(this._rawValidators)}_assignAsyncValidators(M){this._rawAsyncValidators=Array.isArray(M)?M.slice():M,this._composedAsyncValidatorFn=function Wt(D){return Array.isArray(D)?zt(D):D||null}(this._rawAsyncValidators)}}class _ extends p{constructor(M,S,Z){super(qe(S),Rt(Z,S)),this.controls=M,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(M,S){return this.controls[M]?this.controls[M]:(this.controls[M]=S,S.setParent(this),S._registerOnCollectionChange(this._onCollectionChange),S)}addControl(M,S,Z={}){this.registerControl(M,S),this.updateValueAndValidity({emitEvent:Z.emitEvent}),this._onCollectionChange()}removeControl(M,S={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}setControl(M,S,Z={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],S&&this.registerControl(M,S),this.updateValueAndValidity({emitEvent:Z.emitEvent}),this._onCollectionChange()}contains(M){return this.controls.hasOwnProperty(M)&&this.controls[M].enabled}setValue(M,S={}){(function k(D,M,S){D._forEachChild((Z,ot)=>{if(void 0===S[ot])throw new r.vHH(1002,"")})})(this,0,M),Object.keys(M).forEach(Z=>{(function he(D,M,S){const Z=D.controls;if(!(M?Object.keys(Z):Z).length)throw new r.vHH(1e3,"");if(!Z[S])throw new r.vHH(1001,"")})(this,!0,Z),this.controls[Z].setValue(M[Z],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(M,S={}){null!=M&&(Object.keys(M).forEach(Z=>{const ot=this.controls[Z];ot&&ot.patchValue(M[Z],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(M={},S={}){this._forEachChild((Z,ot)=>{Z.reset(M[ot],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this._reduceChildren({},(M,S,Z)=>(M[Z]=S.getRawValue(),M))}_syncPendingControls(){let M=this._reduceChildren(!1,(S,Z)=>!!Z._syncPendingControls()||S);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){Object.keys(this.controls).forEach(S=>{const Z=this.controls[S];Z&&M(Z,S)})}_setUpControls(){this._forEachChild(M=>{M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(M){for(const[S,Z]of Object.entries(this.controls))if(this.contains(S)&&M(Z))return!0;return!1}_reduceValue(){return this._reduceChildren({},(S,Z,ot)=>((Z.enabled||this.disabled)&&(S[ot]=Z.value),S))}_reduceChildren(M,S){let Z=M;return this._forEachChild((ot,rn)=>{Z=S(Z,ot,rn)}),Z}_allControlsDisabled(){for(const M of Object.keys(this.controls))if(this.controls[M].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(M){return this.controls.hasOwnProperty(M)?this.controls[M]:null}}const yt=new r.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Bt}),Bt="always";function bn(D,M,S=Bt){ft(D,M),M.valueAccessor.writeValue(D.value),(D.disabled||"always"===S)&&M.valueAccessor.setDisabledState?.(D.disabled),function mn(D,M){M.valueAccessor.registerOnChange(S=>{D._pendingValue=S,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&zn(D,M)})}(D,M),function ni(D,M){const S=(Z,ot)=>{M.valueAccessor.writeValue(Z),ot&&M.viewToModelUpdate(Z)};D.registerOnChange(S),M._registerOnDestroy(()=>{D._unregisterOnChange(S)})}(D,M),function fn(D,M){M.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&zn(D,M),"submit"!==D.updateOn&&D.markAsTouched()})}(D,M),function Ae(D,M){if(M.valueAccessor.setDisabledState){const S=Z=>{M.valueAccessor.setDisabledState(Z)};D.registerOnDisabledChange(S),M._registerOnDestroy(()=>{D._unregisterOnDisabledChange(S)})}}(D,M)}function ht(D,M,S=!0){const Z=()=>{};M.valueAccessor&&(M.valueAccessor.registerOnChange(Z),M.valueAccessor.registerOnTouched(Z)),function Yt(D,M){let S=!1;if(null!==D){if(null!==M.validator){const ot=Tn(D);if(Array.isArray(ot)&&ot.length>0){const rn=ot.filter(Yn=>Yn!==M.validator);rn.length!==ot.length&&(S=!0,D.setValidators(rn))}}if(null!==M.asyncValidator){const ot=In(D);if(Array.isArray(ot)&&ot.length>0){const rn=ot.filter(Yn=>Yn!==M.asyncValidator);rn.length!==ot.length&&(S=!0,D.setAsyncValidators(rn))}}}const Z=()=>{};return Ot(M._rawValidators,Z),Ot(M._rawAsyncValidators,Z),S}(D,M),D&&(M._invokeOnDestroyCallbacks(),D._registerOnCollectionChange(()=>{}))}function Ot(D,M){D.forEach(S=>{S.registerOnValidatorChange&&S.registerOnValidatorChange(M)})}function ft(D,M){const S=Tn(D);null!==M.validator?D.setValidators(Jt(S,M.validator)):"function"==typeof S&&D.setValidators([S]);const Z=In(D);null!==M.asyncValidator?D.setAsyncValidators(Jt(Z,M.asyncValidator)):"function"==typeof Z&&D.setAsyncValidators([Z]);const ot=()=>D.updateValueAndValidity();Ot(M._rawValidators,ot),Ot(M._rawAsyncValidators,ot)}function zn(D,M){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),M.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function bi(D,M){if(!D.hasOwnProperty("model"))return!1;const S=D.model;return!!S.isFirstChange()||!Object.is(M,S.currentValue)}function Rn(D,M){if(!M)return null;let S,Z,ot;return Array.isArray(M),M.forEach(rn=>{rn.constructor===be?S=rn:function Zn(D){return Object.getPrototypeOf(D.constructor)===Ee}(rn)?Z=rn:ot=rn}),ot||Z||S||null}const An={provide:ae,useExisting:(0,r.Gpc)(()=>rr)},ir=(()=>Promise.resolve())();let rr=(()=>{class D extends ae{constructor(S,Z,ot){super(),this.callSetDisabledState=ot,this.submitted=!1,this._directives=new Set,this.ngSubmit=new r.vpe,this.form=new _({},xt(S),zt(Z))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(S){ir.then(()=>{const Z=this._findContainer(S.path);S.control=Z.registerControl(S.name,S.control),bn(S.control,S,this.callSetDisabledState),S.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(S)})}getControl(S){return this.form.get(S.path)}removeControl(S){ir.then(()=>{const Z=this._findContainer(S.path);Z&&Z.removeControl(S.name),this._directives.delete(S)})}addFormGroup(S){ir.then(()=>{const Z=this._findContainer(S.path),ot=new _({});(function qn(D,M){ft(D,M)})(ot,S),Z.registerControl(S.name,ot),ot.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(S){ir.then(()=>{const Z=this._findContainer(S.path);Z&&Z.removeControl(S.name)})}getFormGroup(S){return this.form.get(S.path)}updateModel(S,Z){ir.then(()=>{this.form.get(S.path).setValue(Z)})}setValue(S){this.control.setValue(S)}onSubmit(S){return this.submitted=!0,function ei(D,M){D._syncPendingControls(),M.forEach(S=>{const Z=S.control;"submit"===Z.updateOn&&Z._pendingChange&&(S.viewToModelUpdate(Z._pendingValue),Z._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(S),"dialog"===S?.target?.method}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(S){return S.pop(),S.length?this.form.get(S):this.form}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(Ue,10),r.Y36(xe,10),r.Y36(yt,8))},D.\u0275dir=r.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(S,Z){1&S&&r.NdJ("submit",function(rn){return Z.onSubmit(rn)})("reset",function(){return Z.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([An]),r.qOj]}),D})();function Zr(D,M){const S=D.indexOf(M);S>-1&&D.splice(S,1)}function Ii(D){return"object"==typeof D&&null!==D&&2===Object.keys(D).length&&"value"in D&&"disabled"in D}const gi=class extends p{constructor(M=null,S,Z){super(qe(S),Rt(Z,S)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(M),this._setUpdateStrategy(S),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),tn(S)&&(S.nonNullable||S.initialValueIsDefault)&&(this.defaultValue=Ii(M)?M.value:M)}setValue(M,S={}){this.value=this._pendingValue=M,this._onChange.length&&!1!==S.emitModelToViewChange&&this._onChange.forEach(Z=>Z(this.value,!1!==S.emitViewToModelChange)),this.updateValueAndValidity(S)}patchValue(M,S={}){this.setValue(M,S)}reset(M=this.defaultValue,S={}){this._applyFormState(M),this.markAsPristine(S),this.markAsUntouched(S),this.setValue(this.value,S),this._pendingChange=!1}_updateValue(){}_anyControls(M){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(M){this._onChange.push(M)}_unregisterOnChange(M){Zr(this._onChange,M)}registerOnDisabledChange(M){this._onDisabledChange.push(M)}_unregisterOnDisabledChange(M){Zr(this._onDisabledChange,M)}_forEachChild(M){}_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(M){Ii(M)?(this.value=this._pendingValue=M.value,M.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=M}},Ui=gi,Ir={provide:Se,useExisting:(0,r.Gpc)(()=>hi)},ur=(()=>Promise.resolve())();let hi=(()=>{class D extends Se{constructor(S,Z,ot,rn,Yn,oi){super(),this._changeDetectorRef=Yn,this.callSetDisabledState=oi,this.control=new gi,this._registered=!1,this.update=new r.vpe,this._parent=S,this._setValidators(Z),this._setAsyncValidators(ot),this.valueAccessor=Rn(0,rn)}ngOnChanges(S){if(this._checkForErrors(),!this._registered||"name"in S){if(this._registered&&(this._checkName(),this.formDirective)){const Z=S.name.previousValue;this.formDirective.removeControl({name:Z,path:this._getPath(Z)})}this._setUpControl()}"isDisabled"in S&&this._updateDisabled(S),bi(S,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(S){this.viewModel=S,this.update.emit(S)}_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(){bn(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(S){ur.then(()=>{this.control.setValue(S,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(S){const Z=S.isDisabled.currentValue,ot=0!==Z&&(0,r.D6c)(Z);ur.then(()=>{ot&&!this.control.disabled?this.control.disable():!ot&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(S){return this._parent?function hn(D,M){return[...M.path,D]}(S,this._parent):[S]}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(ae,9),r.Y36(Ue,10),r.Y36(xe,10),r.Y36(Ne,10),r.Y36(r.sBO,8),r.Y36(yt,8))},D.\u0275dir=r.lG2({type:D,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([Ir]),r.qOj,r.TTD]}),D})(),ui=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275dir=r.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})();const Qr={provide:Ne,useExisting:(0,r.Gpc)(()=>_i),multi:!0};let _i=(()=>{class D extends Ee{writeValue(S){this.setProperty("value",S??"")}registerOnChange(S){this.onChange=Z=>{S(""==Z?null:parseFloat(Z))}}}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(S,Z){1&S&&r.NdJ("input",function(rn){return Z.onChange(rn.target.value)})("blur",function(){return Z.onTouched()})},features:[r._Bn([Qr]),r.qOj]}),D})(),Zi=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=r.oAB({type:D}),D.\u0275inj=r.cJS({}),D})();const Pr=new r.OlP("NgModelWithFormControlWarning"),Xr={provide:Se,useExisting:(0,r.Gpc)(()=>dr)};let dr=(()=>{class D extends Se{set isDisabled(S){}constructor(S,Z,ot,rn,Yn){super(),this._ngModelWarningConfig=rn,this.callSetDisabledState=Yn,this.update=new r.vpe,this._ngModelWarningSent=!1,this._setValidators(S),this._setAsyncValidators(Z),this.valueAccessor=Rn(0,ot)}ngOnChanges(S){if(this._isControlChanged(S)){const Z=S.form.previousValue;Z&&ht(Z,this,!1),bn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}bi(S,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ht(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_isControlChanged(S){return S.hasOwnProperty("form")}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(S){return new(S||D)(r.Y36(Ue,10),r.Y36(xe,10),r.Y36(Ne,10),r.Y36(Pr,8),r.Y36(yt,8))},D.\u0275dir=r.lG2({type:D,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r._Bn([Xr]),r.qOj,r.TTD]}),D})();const Ze={provide:Ne,useExisting:(0,r.Gpc)(()=>Gt),multi:!0};function gt(D,M){return null==D?`${M}`:(M&&"object"==typeof M&&(M="Object"),`${D}: ${M}`.slice(0,50))}let Gt=(()=>{class D extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(S){this._compareWith=S}writeValue(S){this.value=S;const ot=gt(this._getOptionId(S),S);this.setProperty("value",ot)}registerOnChange(S){this.onChange=Z=>{this.value=this._getOptionValue(Z),S(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(S){for(const Z of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Z),S))return Z;return null}_getOptionValue(S){const Z=function Nt(D){return D.split(":")[0]}(S);return this._optionMap.has(Z)?this._optionMap.get(Z):S}}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(S,Z){1&S&&r.NdJ("change",function(rn){return Z.onChange(rn.target.value)})("blur",function(){return Z.onTouched()})},inputs:{compareWith:"compareWith"},features:[r._Bn([Ze]),r.qOj]}),D})(),pn=(()=>{class D{constructor(S,Z,ot){this._element=S,this._renderer=Z,this._select=ot,this._select&&(this.id=this._select._registerOption())}set ngValue(S){null!=this._select&&(this._select._optionMap.set(this.id,S),this._setElementValue(gt(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._setElementValue(S),this._select&&this._select.writeValue(this._select.value)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(Gt,9))},D.\u0275dir=r.lG2({type:D,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),D})();const Xn={provide:Ne,useExisting:(0,r.Gpc)(()=>pi),multi:!0};function Cn(D,M){return null==D?`${M}`:("string"==typeof M&&(M=`'${M}'`),M&&"object"==typeof M&&(M="Object"),`${D}: ${M}`.slice(0,50))}let pi=(()=>{class D extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(S){this._compareWith=S}writeValue(S){let Z;if(this.value=S,Array.isArray(S)){const ot=S.map(rn=>this._getOptionId(rn));Z=(rn,Yn)=>{rn._setSelected(ot.indexOf(Yn.toString())>-1)}}else Z=(ot,rn)=>{ot._setSelected(!1)};this._optionMap.forEach(Z)}registerOnChange(S){this.onChange=Z=>{const ot=[],rn=Z.selectedOptions;if(void 0!==rn){const Yn=rn;for(let oi=0;oi<Yn.length;oi++){const gr=this._getOptionValue(Yn[oi].value);ot.push(gr)}}else{const Yn=Z.options;for(let oi=0;oi<Yn.length;oi++){const Xi=Yn[oi];if(Xi.selected){const gr=this._getOptionValue(Xi.value);ot.push(gr)}}}this.value=ot,S(ot)}}_registerOption(S){const Z=(this._idCounter++).toString();return this._optionMap.set(Z,S),Z}_getOptionId(S){for(const Z of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Z)._value,S))return Z;return null}_getOptionValue(S){const Z=function fi(D){return D.split(":")[0]}(S);return this._optionMap.has(Z)?this._optionMap.get(Z)._value:S}}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(S,Z){1&S&&r.NdJ("change",function(rn){return Z.onChange(rn.target)})("blur",function(){return Z.onTouched()})},inputs:{compareWith:"compareWith"},features:[r._Bn([Xn]),r.qOj]}),D})(),vi=(()=>{class D{constructor(S,Z,ot){this._element=S,this._renderer=Z,this._select=ot,this._select&&(this.id=this._select._registerOption(this))}set ngValue(S){null!=this._select&&(this._value=S,this._setElementValue(Cn(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._select?(this._value=S,this._setElementValue(Cn(this.id,S)),this._select.writeValue(this._select.value)):this._setElementValue(S)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}_setSelected(S){this._renderer.setProperty(this._element.nativeElement,"selected",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(pi,9))},D.\u0275dir=r.lG2({type:D,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),D})(),yi=(()=>{class D{constructor(){this._validator=bt}ngOnChanges(S){if(this.inputName in S){const Z=this.normalizeInput(S[this.inputName].currentValue);this._enabled=this.enabled(Z),this._validator=this._enabled?this.createValidator(Z):bt,this._onChange&&this._onChange()}}validate(S){return this._validator(S)}registerOnValidatorChange(S){this._onChange=S}enabled(S){return null!=S}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275dir=r.lG2({type:D,features:[r.TTD]}),D})();const Hn={provide:Ue,useExisting:(0,r.Gpc)(()=>Bi),multi:!0};let Bi=(()=>{class D extends yi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=r.D6c,this.createValidator=S=>Mt}enabled(S){return S}}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(S,Z){2&S&&r.uIk("required",Z._enabled?"":null)},inputs:{required:"required"},features:[r._Bn([Hn]),r.qOj]}),D})(),po=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=r.oAB({type:D}),D.\u0275inj=r.cJS({imports:[Zi]}),D})(),mo=(()=>{class D{static withConfig(S){return{ngModule:D,providers:[{provide:yt,useValue:S.callSetDisabledState??Bt}]}}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=r.oAB({type:D}),D.\u0275inj=r.cJS({imports:[po]}),D})(),Qo=(()=>{class D{static withConfig(S){return{ngModule:D,providers:[{provide:Pr,useValue:S.warnOnNgModelWithFormControl??"always"},{provide:yt,useValue:S.callSetDisabledState??Bt}]}}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=r.oAB({type:D}),D.\u0275inj=r.cJS({imports:[po]}),D})()},4120:(Ct,Te,g)=>{g.d(Te,{XC:()=>k,Bb:()=>bn,ZL:()=>hn});var r=g(4650),c=g(3238),A=g(6895),B=g(7376),X=g(8184),se=g(7188),J=g(1281),ee=g(3353),ne=g(7340),j=g(727),q=g(7579),le=g(9770),He=g(6451),Ee=g(9646),Ne=g(4968),Re=g(9521),ue=g(4080),ke=g(433);const we=new r.OlP("MatFormField");var ln=g(8675),xn=g(3900),Sn=g(5698),Oe=g(9300),te=g(4004),V=g(8505),U=g(1005),re=g(445);const Ke=["panel"];function K(ht,Ot){if(1&ht&&(r.TgZ(0,"div",0,1),r.Hsn(2),r.qZA()),2&ht){const Ae=Ot.id,ft=r.oxw();r.Q6J("id",ft.id)("ngClass",ft._classList)("@panelAnimation",ft.isOpen?"visible":"hidden"),r.uIk("aria-label",ft.ariaLabel||null)("aria-labelledby",ft._getPanelAriaLabelledby(Ae))}}const ce=["*"],De=(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 qe=0;class Ie{constructor(Ot,Ae){this.source=Ot,this.option=Ae}}const Rt=(0,c.Kr)(class{}),Wt=new r.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function tn(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let he=(()=>{class ht extends Rt{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,J.Ig)(Ae)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ae){this._autoSelectActiveOption=(0,J.Ig)(Ae)}set classList(Ae){this._classList=Ae&&Ae.length?(0,J.du)(Ae).reduce((ft,Yt)=>(ft[Yt]=!0,ft),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(Ae,ft,Yt,mn){super(),this._changeDetectorRef=Ae,this._elementRef=ft,this._activeOptionChanges=j.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-"+qe++,this.inertGroups=mn?.SAFARI||!1,this._autoActiveFirstOption=!!Yt.autoActiveFirstOption,this._autoSelectActiveOption=!!Yt.autoSelectActiveOption}ngAfterContentInit(){this._keyManager=new se.s1(this.options).withWrap(),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 ft=new Ie(this,Ae);this.optionSelected.emit(ft)}_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}}return ht.\u0275fac=function(Ae){return new(Ae||ht)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(Wt),r.Y36(ee.t4))},ht.\u0275dir=r.lG2({type:ht,viewQuery:function(Ae,ft){if(1&Ae&&(r.Gf(r.Rgc,7),r.Gf(Ke,5)),2&Ae){let Yt;r.iGM(Yt=r.CRH())&&(ft.template=Yt.first),r.iGM(Yt=r.CRH())&&(ft.panel=Yt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[r.qOj]}),ht})(),k=(()=>{class ht extends he{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden"}}return ht.\u0275fac=function(){let Ot;return function(ft){return(Ot||(Ot=r.n5z(ht)))(ft||ht)}}(),ht.\u0275cmp=r.Xpm({type:ht,selectors:[["mat-autocomplete"]],contentQueries:function(Ae,ft,Yt){if(1&Ae&&(r.Suo(Yt,c.K7,5),r.Suo(Yt,c.ey,5)),2&Ae){let mn;r.iGM(mn=r.CRH())&&(ft.optionGroups=mn),r.iGM(mn=r.CRH())&&(ft.options=mn)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[r._Bn([{provide:c.HF,useExisting:ht}]),r.qOj],ngContentSelectors:ce,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,ft){1&Ae&&(r.F$t(),r.YNc(0,K,3,5,"ng-template"))},dependencies:[A.mk],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[De]},changeDetection:0}),ht})();const I={provide:ke.JU,useExisting:(0,r.Gpc)(()=>hn),multi:!0},oe=new r.OlP("mat-autocomplete-scroll-strategy"),yt={provide:oe,deps:[X.aV],useFactory:function Be(ht){return()=>ht.scrollStrategies.reposition()}};let Bt=(()=>{class ht{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ae){this._autocompleteDisabled=(0,J.Ig)(Ae)}constructor(Ae,ft,Yt,mn,fn,zn,ni,qn,ii,ti,$t){this._element=Ae,this._overlay=ft,this._viewContainerRef=Yt,this._zone=mn,this._changeDetectorRef=fn,this._dir=ni,this._formField=qn,this._document=ii,this._viewportRuler=ti,this._defaults=$t,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=j.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,le.P)(()=>{const cn=this.autocomplete?this.autocomplete.options:null;return cn?cn.changes.pipe((0,ln.O)(cn),(0,xn.w)(()=>(0,He.T)(...cn.map(Wn=>Wn.onSelectionChange)))):this._zone.onStable.pipe((0,Sn.q)(1),(0,xn.w)(()=>this.optionSelections))}),this._scrollStrategy=zn}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()}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._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,He.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Oe.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Oe.h)(()=>this._overlayAttached)):(0,Ee.of)()).pipe((0,te.U)(Ae=>Ae instanceof c.rN?Ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,He.T)((0,Ne.R)(this._document,"click"),(0,Ne.R)(this._document,"auxclick"),(0,Ne.R)(this._document,"touchend")).pipe((0,Oe.h)(Ae=>{const ft=(0,ee.sA)(Ae),Yt=this._formField?this._formField._elementRef.nativeElement:null,mn=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ft!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Yt||!Yt.contains(ft))&&(!mn||!mn.contains(ft))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ft)}))}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 ft=Ae.keyCode,Yt=(0,Re.Vb)(Ae);if(ft===Re.hY&&!Yt&&Ae.preventDefault(),this.activeOption&&ft===Re.K5&&this.panelOpen&&!Yt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ae.preventDefault();else if(this.autocomplete){const mn=this.autocomplete._keyManager.activeItem,fn=ft===Re.LH||ft===Re.JH;ft===Re.Mf||fn&&!Yt&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ae):fn&&this._canOpen()&&this.openPanel(),(fn||this.autocomplete._keyManager.activeItem!==mn)&&(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 ft=Ae.target,Yt=ft.value;"number"===ft.type&&(Yt=""==Yt?null:parseFloat(Yt)),this._previousValue!==Yt&&(this._previousValue=Yt,this._pendingAutoselectedOption=null,this._onChange(Yt),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,Sn.q)(1)),ft=this.autocomplete.options.changes.pipe((0,V.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,U.g)(0));return(0,He.T)(Ae,ft).pipe((0,xn.w)(()=>(this._zone.run(()=>{const Yt=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Yt!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Sn.q)(1)).subscribe(Yt=>this._setValueAndClose(Yt))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ae){const ft=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ae):Ae;this._updateNativeInputValue(ft??"")}_updateNativeInputValue(Ae){this._formField?this._formField._control.value=Ae:this._element.nativeElement.value=Ae,this._previousValue=Ae}_setValueAndClose(Ae){const ft=Ae?Ae.source:this._pendingAutoselectedOption;ft&&(this._clearPreviousSelectedOption(ft),this._assignOptionValue(ft.value),this._onChange(ft.value),this.autocomplete._emitSelectEvent(ft),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ae){this.autocomplete.options.forEach(ft=>{ft!==Ae&&ft.selected&&ft.deselect()})}_attachOverlay(){let Ae=this._overlayRef;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new ue.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,this._handleOverlayEvents(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 ft=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&ft!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new X.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 ft=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Yt=this._aboveClass,mn=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Yt},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Yt}];let fn;fn="above"===this.position?mn:"below"===this.position?ft:[...ft,...mn],Ae.withPositions(fn)}_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;Ae.autoActiveFirstOption?Ae._keyManager.setFirstItemActive():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 ft=this.autocomplete,Yt=(0,c.CB)(Ae,ft.options,ft.optionGroups);if(0===Ae&&1===Yt)ft._setScrollTop(0);else if(ft.panel){const mn=ft.options.toArray()[Ae];if(mn){const fn=mn._getHostElement(),zn=(0,c.jH)(fn.offsetTop,fn.offsetHeight,ft._getScrollTop(),ft.panel.nativeElement.offsetHeight);ft._setScrollTop(zn)}}}_handleOverlayEvents(Ae){Ae.keydownEvents().subscribe(ft=>{(ft.keyCode===Re.hY&&!(0,Re.Vb)(ft)||ft.keyCode===Re.LH&&(0,Re.Vb)(ft,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),ft.stopPropagation(),ft.preventDefault())}),Ae.outsidePointerEvents().subscribe()}}return ht.\u0275fac=function(Ae){return new(Ae||ht)(r.Y36(r.SBq),r.Y36(X.aV),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(oe),r.Y36(re.Is,8),r.Y36(we,9),r.Y36(A.K0,8),r.Y36(B.rL),r.Y36(Wt,8))},ht.\u0275dir=r.lG2({type:ht,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[r.TTD]}),ht})(),hn=(()=>{class ht extends Bt{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return ht.\u0275fac=function(){let Ot;return function(ft){return(Ot||(Ot=r.n5z(ht)))(ft||ht)}}(),ht.\u0275dir=r.lG2({type:ht,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Ae,ft){1&Ae&&r.NdJ("focusin",function(){return ft._handleFocus()})("blur",function(){return ft._onTouched()})("input",function(mn){return ft._handleInput(mn)})("keydown",function(mn){return ft._handleKeydown(mn)})("click",function(){return ft._handleClick()}),2&Ae&&r.uIk("autocomplete",ft.autocompleteAttribute)("role",ft.autocompleteDisabled?null:"combobox")("aria-autocomplete",ft.autocompleteDisabled?null:"list")("aria-activedescendant",ft.panelOpen&&ft.activeOption?ft.activeOption.id:null)("aria-expanded",ft.autocompleteDisabled?null:ft.panelOpen.toString())("aria-owns",ft.autocompleteDisabled||!ft.panelOpen||null==ft.autocomplete?null:ft.autocomplete.id)("aria-haspopup",ft.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[r._Bn([I]),r.qOj]}),ht})(),bn=(()=>{class ht{}return ht.\u0275fac=function(Ae){return new(Ae||ht)},ht.\u0275mod=r.oAB({type:ht}),ht.\u0275inj=r.cJS({providers:[yt],imports:[X.U8,c.Ng,c.BQ,A.ez,B.ZD,c.Ng,c.BQ]}),ht})()},3238:(Ct,Te,g)=>{g.d(Te,{K7:()=>Ye,HF:()=>St,BQ:()=>de,ey:()=>wn,Ng:()=>Sn,rN:()=>an,wG:()=>ct,si:()=>At,CB:()=>ln,jH:()=>xn,Kr:()=>dt,sb:()=>vt});var r=g(4650),c=g(7188),A=g(445),X=g(6895),se=g(3353),J=g(1281),ee=g(7579),ne=g(9521);const le=["text"];function He(Oe,te){if(1&Oe&&r._UZ(0,"mat-pseudo-checkbox",5),2&Oe){const V=r.oxw();r.Q6J("state",V.selected?"checked":"unchecked")("disabled",V.disabled)}}function Ee(Oe,te){if(1&Oe&&(r.TgZ(0,"span",6),r._uU(1),r.qZA()),2&Oe){const V=r.oxw();r.xp6(1),r.hij("(",V.group.label,")")}}const Ne=[[["mat-icon"]],"*"],Re=["mat-icon","*"],be=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function et(){return!0}});let de=(()=>{class Oe{constructor(V,U,re){this._sanityChecks=U,this._document=re,this._hasDoneGlobalChecks=!1,V._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(V){return!(0,se.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[V])}}return Oe.\u0275fac=function(V){return new(V||Oe)(r.LFG(c.qm),r.LFG(be,8),r.LFG(X.K0))},Oe.\u0275mod=r.oAB({type:Oe}),Oe.\u0275inj=r.cJS({imports:[A.vT,A.vT]}),Oe})();function dt(Oe){return class extends Oe{get disableRipple(){return this._disableRipple}set disableRipple(te){this._disableRipple=(0,J.Ig)(te)}constructor(...te){super(...te),this._disableRipple=!1}}}function vt(Oe,te=0){return class extends Oe{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(V){this._tabIndex=null!=V?(0,J.su)(V):this.defaultTabIndex}constructor(...V){super(...V),this._tabIndex=te,this.defaultTabIndex=te}}}class Jt{constructor(te,V,U,re=!1){this._renderer=te,this.element=V,this.config=U,this._animationForciblyDisabledThroughCss=re,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tn=(0,se.i$)({passive:!0,capture:!0});class In{constructor(){this._events=new Map,this._delegateEventHandler=te=>{const V=(0,se.sA)(te);V&&this._events.get(te.type)?.forEach((U,re)=>{(re===V||re.contains(V))&&U.forEach(Ke=>Ke.handleEvent(te))})}}addHandler(te,V,U,re){const Ke=this._events.get(V);if(Ke){const K=Ke.get(U);K?K.add(re):Ke.set(U,new Set([re]))}else this._events.set(V,new Map([[U,new Set([re])]])),te.runOutsideAngular(()=>{document.addEventListener(V,this._delegateEventHandler,Tn)})}removeHandler(te,V,U){const re=this._events.get(te);if(!re)return;const Ke=re.get(V);Ke&&(Ke.delete(U),0===Ke.size&&re.delete(V),0===re.size&&(this._events.delete(te),document.removeEventListener(te,this._delegateEventHandler,Tn)))}}const Fn={enterDuration:225,exitDuration:150},sn=(0,se.i$)({passive:!0,capture:!0}),tt=["mousedown","touchstart"],W=["mouseup","mouseleave","touchend","touchcancel"];class ae{constructor(te,V,U,re){this._target=te,this._ngZone=V,this._platform=re,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,re.isBrowser&&(this._containerElement=(0,J.fI)(U))}fadeInRipple(te,V,U={}){const re=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ke={...Fn,...U.animation};U.centered&&(te=re.left+re.width/2,V=re.top+re.height/2);const K=U.radius||function Se(Oe,te,V){const U=Math.max(Math.abs(Oe-V.left),Math.abs(Oe-V.right)),re=Math.max(Math.abs(te-V.top),Math.abs(te-V.bottom));return Math.sqrt(U*U+re*re)}(te,V,re),ce=te-re.left,De=V-re.top,qe=Ke.enterDuration,Ie=document.createElement("div");Ie.classList.add("mat-ripple-element"),Ie.style.left=ce-K+"px",Ie.style.top=De-K+"px",Ie.style.height=2*K+"px",Ie.style.width=2*K+"px",null!=U.color&&(Ie.style.backgroundColor=U.color),Ie.style.transitionDuration=`${qe}ms`,this._containerElement.appendChild(Ie);const Rt=window.getComputedStyle(Ie),tn=Rt.transitionDuration,he="none"===Rt.transitionProperty||"0s"===tn||"0s, 0s"===tn||0===re.width&&0===re.height,k=new Jt(this,Ie,U,he);Ie.style.transform="scale3d(1, 1, 1)",k.state=0,U.persistent||(this._mostRecentTransientRipple=k);let p=null;return!he&&(qe||Ke.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _=()=>this._finishRippleTransition(k),I=()=>this._destroyRipple(k);Ie.addEventListener("transitionend",_),Ie.addEventListener("transitioncancel",I),p={onTransitionEnd:_,onTransitionCancel:I}}),this._activeRipples.set(k,p),(he||!qe)&&this._finishRippleTransition(k),k}fadeOutRipple(te){if(2===te.state||3===te.state)return;const V=te.element,U={...Fn,...te.config.animation};V.style.transitionDuration=`${U.exitDuration}ms`,V.style.opacity="0",te.state=2,(te._animationForciblyDisabledThroughCss||!U.exitDuration)&&this._finishRippleTransition(te)}fadeOutAll(){this._getActiveRipples().forEach(te=>te.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(te=>{te.config.persistent||te.fadeOut()})}setupTriggerEvents(te){const V=(0,J.fI)(te);!this._platform.isBrowser||!V||V===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=V,tt.forEach(U=>{ae._eventManager.addHandler(this._ngZone,U,V,this)}))}handleEvent(te){"mousedown"===te.type?this._onMousedown(te):"touchstart"===te.type?this._onTouchStart(te):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{W.forEach(V=>{this._triggerElement.addEventListener(V,this,sn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(te){0===te.state?this._startFadeOutTransition(te):2===te.state&&this._destroyRipple(te)}_startFadeOutTransition(te){const V=te===this._mostRecentTransientRipple,{persistent:U}=te.config;te.state=1,!U&&(!V||!this._isPointerDown)&&te.fadeOut()}_destroyRipple(te){const V=this._activeRipples.get(te)??null;this._activeRipples.delete(te),this._activeRipples.size||(this._containerRect=null),te===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),te.state=3,null!==V&&(te.element.removeEventListener("transitionend",V.onTransitionEnd),te.element.removeEventListener("transitioncancel",V.onTransitionCancel)),te.element.remove()}_onMousedown(te){const V=(0,c.X6)(te),U=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!V&&!U&&(this._isPointerDown=!0,this.fadeInRipple(te.clientX,te.clientY,this._target.rippleConfig))}_onTouchStart(te){if(!this._target.rippleDisabled&&!(0,c.yG)(te)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const V=te.changedTouches;for(let U=0;U<V.length;U++)this.fadeInRipple(V[U].clientX,V[U].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(te=>{!te.config.persistent&&(1===te.state||te.config.terminateOnPointerUp&&0===te.state)&&te.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const te=this._triggerElement;te&&(tt.forEach(V=>ae._eventManager.removeHandler(V,te,this)),this._pointerUpEventsRegistered&&W.forEach(V=>te.removeEventListener(V,this,sn)))}}ae._eventManager=new In;const nt=new r.OlP("mat-ripple-global-options");let ct=(()=>{class Oe{get disabled(){return this._disabled}set disabled(V){V&&this.fadeOutAllNonPersistent(),this._disabled=V,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}constructor(V,U,re,Ke,K){this._elementRef=V,this._animationMode=K,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ke||{},this._rippleRenderer=new ae(this,U,V,re)}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(V,U=0,re){return"number"==typeof V?this._rippleRenderer.fadeInRipple(V,U,{...this.rippleConfig,...re}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...V})}}return Oe.\u0275fac=function(V){return new(V||Oe)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(se.t4),r.Y36(nt,8),r.Y36(r.QbO,8))},Oe.\u0275dir=r.lG2({type:Oe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(V,U){2&V&&r.ekj("mat-ripple-unbounded",U.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"]}),Oe})(),At=(()=>{class Oe{}return Oe.\u0275fac=function(V){return new(V||Oe)},Oe.\u0275mod=r.oAB({type:Oe}),Oe.\u0275inj=r.cJS({imports:[de,de]}),Oe})(),Ht=(()=>{class Oe{constructor(V){this._animationMode=V,this.state="unchecked",this.disabled=!1}}return Oe.\u0275fac=function(V){return new(V||Oe)(r.Y36(r.QbO,8))},Oe.\u0275cmp=r.Xpm({type:Oe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(V,U){2&V&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===U.state)("mat-pseudo-checkbox-checked","checked"===U.state)("mat-pseudo-checkbox-disabled",U.disabled)("_mat-animation-noopable","NoopAnimations"===U._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(V,U){},styles:['.mat-pseudo-checkbox{border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.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{width:18px;height:18px}.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}.mat-pseudo-checkbox-checked::after{top:2.7px;width:10px;height:4px}'],encapsulation:2,changeDetection:0}),Oe})(),Pt=(()=>{class Oe{}return Oe.\u0275fac=function(V){return new(V||Oe)},Oe.\u0275mod=r.oAB({type:Oe}),Oe.\u0275inj=r.cJS({imports:[de]}),Oe})();const St=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),Ye=new r.OlP("MatOptgroup");let Ft=0;class an{constructor(te,V=!1){this.source=te,this.isUserInput=V}}let Vt=(()=>{class Oe{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(V){this._disabled=(0,J.Ig)(V)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}constructor(V,U,re,Ke){this._element=V,this._changeDetectorRef=U,this._parent=re,this.group=Ke,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ft++,this.onSelectionChange=new r.vpe,this._stateChanges=new ee.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(V,U){const re=this._getHostElement();"function"==typeof re.focus&&re.focus(U)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(V){(V.keyCode===ne.K5||V.keyCode===ne.L_)&&!(0,ne.Vb)(V)&&(this._selectViaInteraction(),V.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const V=this.viewValue;V!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=V)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(V=!1){this.onSelectionChange.emit(new an(this,V))}}return Oe.\u0275fac=function(V){r.$Z()},Oe.\u0275dir=r.lG2({type:Oe,viewQuery:function(V,U){if(1&V&&r.Gf(le,7),2&V){let re;r.iGM(re=r.CRH())&&(U._text=re.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Oe})(),wn=(()=>{class Oe extends Vt{constructor(V,U,re,Ke){super(V,U,re,Ke)}}return Oe.\u0275fac=function(V){return new(V||Oe)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(St,8),r.Y36(Ye,8))},Oe.\u0275cmp=r.Xpm({type:Oe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(V,U){1&V&&r.NdJ("click",function(){return U._selectViaInteraction()})("keydown",function(Ke){return U._handleKeydown(Ke)}),2&V&&(r.Ikx("id",U.id),r.uIk("tabindex",U._getTabIndex())("aria-selected",U._getAriaSelected())("aria-disabled",U.disabled.toString()),r.ekj("mdc-list-item--selected",U.selected)("mat-mdc-option-multiple",U.multiple)("mat-mdc-option-active",U.active)("mdc-list-item--disabled",U.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:Re,decls:7,vars:4,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(V,U){1&V&&(r.F$t(Ne),r.YNc(0,He,1,2,"mat-pseudo-checkbox",0),r.Hsn(1),r.TgZ(2,"span",1,2),r.Hsn(4,1),r.qZA(),r.YNc(5,Ee,2,1,"span",3),r._UZ(6,"div",4)),2&V&&(r.Q6J("ngIf",U.multiple),r.xp6(5),r.Q6J("ngIf",U.group&&U.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",U._getHostElement())("matRippleDisabled",U.disabled||U.disableRipple))},dependencies:[ct,X.O5,Ht],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;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);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.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.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{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox{margin-right:0;margin-left:16px}.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}.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::before{content:""}'],encapsulation:2,changeDetection:0}),Oe})();function ln(Oe,te,V){if(V.length){let U=te.toArray(),re=V.toArray(),Ke=0;for(let K=0;K<Oe+1;K++)U[K].group&&U[K].group===re[Ke]&&Ke++;return Ke}return 0}function xn(Oe,te,V,U){return Oe<V?Oe:Oe+te>V+U?Math.max(0,Oe-U+te):V}let Sn=(()=>{class Oe{}return Oe.\u0275fac=function(V){return new(V||Oe)},Oe.\u0275mod=r.oAB({type:Oe}),Oe.\u0275inj=r.cJS({imports:[At,X.ez,de,Pt]}),Oe})()},5412:(Ct,Te,g)=>{g.d(Te,{WI:()=>en,uw:()=>tt,H8:()=>ct,xY:()=>nt,Is:()=>Ht,so:()=>ut,uh:()=>Se});var r=g(8184),c=g(6895),A=g(4650),B=g(7188),X=g(3353),se=g(4080),J=g(9521),ee=g(7579),ne=g(9770),j=g(9646),q=g(445),le=g(8675);function He(we,lt){}class Ee{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}}let Re=(()=>{class we extends se.en{constructor(fe,Ye,Dt,Ft,an,Vt,wn,ln){super(),this._elementRef=fe,this._focusTrapFactory=Ye,this._config=Ft,this._interactivityChecker=an,this._ngZone=Vt,this._overlayRef=wn,this._focusMonitor=ln,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=xn=>{this._portalOutlet.hasAttached();const Sn=this._portalOutlet.attachDomPortal(xn);return this._contentAttached(),Sn},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Dt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(fe){this._portalOutlet.hasAttached();const Ye=this._portalOutlet.attachComponentPortal(fe);return this._contentAttached(),Ye}attachTemplatePortal(fe){this._portalOutlet.hasAttached();const Ye=this._portalOutlet.attachTemplatePortal(fe);return this._contentAttached(),Ye}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(fe,Ye){this._interactivityChecker.isFocusable(fe)||(fe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Dt=()=>{fe.removeEventListener("blur",Dt),fe.removeEventListener("mousedown",Dt),fe.removeAttribute("tabindex")};fe.addEventListener("blur",Dt),fe.addEventListener("mousedown",Dt)})),fe.focus(Ye)}_focusByCssSelector(fe,Ye){let Dt=this._elementRef.nativeElement.querySelector(fe);Dt&&this._forceFocus(Dt,Ye)}_trapFocus(){const fe=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||fe.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ye=>{Ye||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 fe=this._config.restoreFocus;let Ye=null;if("string"==typeof fe?Ye=this._document.querySelector(fe):"boolean"==typeof fe?Ye=fe?this._elementFocusedBeforeDialogWasOpened:null:fe&&(Ye=fe),this._config.restoreFocus&&Ye&&"function"==typeof Ye.focus){const Dt=(0,X.ht)(),Ft=this._elementRef.nativeElement;(!Dt||Dt===this._document.body||Dt===Ft||Ft.contains(Dt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ye,this._closeInteractionType),this._closeInteractionType=null):Ye.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const fe=this._elementRef.nativeElement,Ye=(0,X.ht)();return fe===Ye||fe.contains(Ye)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,X.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return we.\u0275fac=function(fe){return new(fe||we)(A.Y36(A.SBq),A.Y36(B.qV),A.Y36(c.K0,8),A.Y36(Ee),A.Y36(B.ic),A.Y36(A.R0b),A.Y36(r.Iu),A.Y36(B.tE))},we.\u0275cmp=A.Xpm({type:we,selectors:[["cdk-dialog-container"]],viewQuery:function(fe,Ye){if(1&fe&&A.Gf(se.Pl,7),2&fe){let Dt;A.iGM(Dt=A.CRH())&&(Ye._portalOutlet=Dt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(fe,Ye){2&fe&&A.uIk("id",Ye._config.id||null)("role",Ye._config.role)("aria-modal",Ye._config.ariaModal)("aria-labelledby",Ye._config.ariaLabel?null:Ye._ariaLabelledBy)("aria-label",Ye._config.ariaLabel)("aria-describedby",Ye._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(fe,Ye){1&fe&&A.YNc(0,He,0,0,"ng-template",0)},dependencies:[se.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),we})();class ue{constructor(lt,fe){this.overlayRef=lt,this.config=fe,this.closed=new ee.x,this.disableClose=fe.disableClose,this.backdropClick=lt.backdropClick(),this.keydownEvents=lt.keydownEvents(),this.outsidePointerEvents=lt.outsidePointerEvents(),this.id=fe.id,this.keydownEvents.subscribe(Ye=>{Ye.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(Ye)&&(Ye.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(lt,fe){if(this.containerInstance){const Ye=this.closed;this.containerInstance._closeInteractionType=fe?.focusOrigin||"program",this.overlayRef.dispose(),Ye.next(lt),Ye.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(lt="",fe=""){return this.overlayRef.updateSize({width:lt,height:fe}),this}addPanelClass(lt){return this.overlayRef.addPanelClass(lt),this}removePanelClass(lt){return this.overlayRef.removePanelClass(lt),this}}const ke=new A.OlP("DialogScrollStrategy"),Fe=new A.OlP("DialogData"),et=new A.OlP("DefaultDialogConfig"),de={provide:ke,deps:[r.aV],useFactory:function be(we){return()=>we.scrollStrategies.block()}};let ye=0,ve=(()=>{class we{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(fe,Ye,Dt,Ft,an,Vt){this._overlay=fe,this._injector=Ye,this._defaultOptions=Dt,this._parentDialog=Ft,this._overlayContainer=an,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ee.x,this._afterOpenedAtThisLevel=new ee.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ne.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,le.O)(void 0))),this._scrollStrategy=Vt}open(fe,Ye){(Ye={...this._defaultOptions||new Ee,...Ye}).id=Ye.id||"cdk-dialog-"+ye++,Ye.id&&this.getDialogById(Ye.id);const Ft=this._getOverlayConfig(Ye),an=this._overlay.create(Ft),Vt=new ue(an,Ye),wn=this._attachContainer(an,Vt,Ye);return Vt.containerInstance=wn,this._attachDialogContent(fe,Vt,wn,Ye),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Vt),Vt.closed.subscribe(()=>this._removeOpenDialog(Vt,!0)),this.afterOpened.next(Vt),Vt}closeAll(){Ue(this.openDialogs,fe=>fe.close())}getDialogById(fe){return this.openDialogs.find(Ye=>Ye.id===fe)}ngOnDestroy(){Ue(this._openDialogsAtThisLevel,fe=>{!1===fe.config.closeOnDestroy&&this._removeOpenDialog(fe,!1)}),Ue(this._openDialogsAtThisLevel,fe=>fe.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(fe){const Ye=new r.X_({positionStrategy:fe.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:fe.scrollStrategy||this._scrollStrategy(),panelClass:fe.panelClass,hasBackdrop:fe.hasBackdrop,direction:fe.direction,minWidth:fe.minWidth,minHeight:fe.minHeight,maxWidth:fe.maxWidth,maxHeight:fe.maxHeight,width:fe.width,height:fe.height,disposeOnNavigation:fe.closeOnNavigation});return fe.backdropClass&&(Ye.backdropClass=fe.backdropClass),Ye}_attachContainer(fe,Ye,Dt){const Ft=Dt.injector||Dt.viewContainerRef?.injector,an=[{provide:Ee,useValue:Dt},{provide:ue,useValue:Ye},{provide:r.Iu,useValue:fe}];let Vt;Dt.container?"function"==typeof Dt.container?Vt=Dt.container:(Vt=Dt.container.type,an.push(...Dt.container.providers(Dt))):Vt=Re;const wn=new se.C5(Vt,Dt.viewContainerRef,A.zs3.create({parent:Ft||this._injector,providers:an}),Dt.componentFactoryResolver);return fe.attach(wn).instance}_attachDialogContent(fe,Ye,Dt,Ft){if(fe instanceof A.Rgc){const an=this._createInjector(Ft,Ye,Dt,void 0);let Vt={$implicit:Ft.data,dialogRef:Ye};Ft.templateContext&&(Vt={...Vt,..."function"==typeof Ft.templateContext?Ft.templateContext():Ft.templateContext}),Dt.attachTemplatePortal(new se.UE(fe,null,Vt,an))}else{const an=this._createInjector(Ft,Ye,Dt,this._injector),Vt=Dt.attachComponentPortal(new se.C5(fe,Ft.viewContainerRef,an,Ft.componentFactoryResolver));Ye.componentInstance=Vt.instance}}_createInjector(fe,Ye,Dt,Ft){const an=fe.injector||fe.viewContainerRef?.injector,Vt=[{provide:Fe,useValue:fe.data},{provide:ue,useValue:Ye}];return fe.providers&&("function"==typeof fe.providers?Vt.push(...fe.providers(Ye,fe,Dt)):Vt.push(...fe.providers)),fe.direction&&(!an||!an.get(q.Is,null,{optional:!0}))&&Vt.push({provide:q.Is,useValue:{value:fe.direction,change:(0,j.of)()}}),A.zs3.create({parent:an||Ft,providers:Vt})}_removeOpenDialog(fe,Ye){const Dt=this.openDialogs.indexOf(fe);Dt>-1&&(this.openDialogs.splice(Dt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ft,an)=>{Ft?an.setAttribute("aria-hidden",Ft):an.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Ye&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const fe=this._overlayContainer.getContainerElement();if(fe.parentElement){const Ye=fe.parentElement.children;for(let Dt=Ye.length-1;Dt>-1;Dt--){const Ft=Ye[Dt];Ft!==fe&&"SCRIPT"!==Ft.nodeName&&"STYLE"!==Ft.nodeName&&!Ft.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ft,Ft.getAttribute("aria-hidden")),Ft.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const fe=this._parentDialog;return fe?fe._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return we.\u0275fac=function(fe){return new(fe||we)(A.LFG(r.aV),A.LFG(A.zs3),A.LFG(et,8),A.LFG(we,12),A.LFG(r.Xj),A.LFG(ke))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac}),we})();function Ue(we,lt){let fe=we.length;for(;fe--;)lt(we[fe])}let xe=(()=>{class we{}return we.\u0275fac=function(fe){return new(fe||we)},we.\u0275mod=A.oAB({type:we}),we.\u0275inj=A.cJS({providers:[ve,de],imports:[r.U8,se.eL,B.rt,se.eL]}),we})();var ze=g(1281),dt=g(6451),vt=g(9300),Lt=g(5698),Mt=g(3238);function rt(we,lt){}g(7340);class at{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 mt="mdc-dialog--open",Et="mdc-dialog--opening",bt="mdc-dialog--closing";let Xe=(()=>{class we extends Re{constructor(fe,Ye,Dt,Ft,an,Vt,wn,ln){super(fe,Ye,Dt,Ft,an,Vt,wn,ln),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(fe){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:fe})}}return we.\u0275fac=function(fe){return new(fe||we)(A.Y36(A.SBq),A.Y36(B.qV),A.Y36(c.K0,8),A.Y36(at),A.Y36(B.ic),A.Y36(A.R0b),A.Y36(r.Iu),A.Y36(B.tE))},we.\u0275cmp=A.Xpm({type:we,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(fe,Ye){},encapsulation:2}),we})();const L="--mat-dialog-transition-duration";function ie(we){return null==we?null:"number"==typeof we?we:we.endsWith("ms")?(0,ze.su)(we.substring(0,we.length-2)):we.endsWith("s")?1e3*(0,ze.su)(we.substring(0,we.length-1)):"0"===we?0:null}let Ve=(()=>{class we extends Xe{constructor(fe,Ye,Dt,Ft,an,Vt,wn,ln,xn){super(fe,Ye,Dt,Ft,an,Vt,wn,xn),this._animationMode=ln,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?ie(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?ie(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(L,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(Et),this._hostElement.classList.add(mt),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mt),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(mt),this._animationsEnabled?(this._hostElement.style.setProperty(L,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(bt),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(Et),this._hostElement.classList.remove(bt)}_waitForAnimationToComplete(fe,Ye){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Ye,fe)}}return we.\u0275fac=function(fe){return new(fe||we)(A.Y36(A.SBq),A.Y36(B.qV),A.Y36(c.K0,8),A.Y36(at),A.Y36(B.ic),A.Y36(A.R0b),A.Y36(r.Iu),A.Y36(A.QbO,8),A.Y36(B.tE))},we.\u0275cmp=A.Xpm({type:we,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(fe,Ye){2&fe&&(A.Ikx("id",Ye._config.id),A.uIk("aria-modal",Ye._config.ariaModal)("role",Ye._config.role)("aria-labelledby",Ye._config.ariaLabel?null:Ye._ariaLabelledBy)("aria-label",Ye._config.ariaLabel)("aria-describedby",Ye._config.ariaDescribedBy||null),A.ekj("_mat-animation-noopable",!Ye._animationsEnabled))},features:[A.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(fe,Ye){1&fe&&(A.TgZ(0,"div",0)(1,"div",1),A.YNc(2,rt,0,0,"ng-template",2),A.qZA()())},dependencies:[se.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}.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__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{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, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.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}),we})();class ut{constructor(lt,fe,Ye){this._ref=lt,this._containerInstance=Ye,this._afterOpened=new ee.x,this._beforeClosed=new ee.x,this._state=0,this.disableClose=fe.disableClose,this.id=lt.id,Ye._animationStateChanged.pipe((0,vt.h)(Dt=>"opened"===Dt.state),(0,Lt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ye._animationStateChanged.pipe((0,vt.h)(Dt=>"closed"===Dt.state),(0,Lt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),lt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,dt.T)(this.backdropClick(),this.keydownEvents().pipe((0,vt.h)(Dt=>Dt.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(Dt)))).subscribe(Dt=>{this.disableClose||(Dt.preventDefault(),function xt(we,lt,fe){we._closeInteractionType=lt,we.close(fe)}(this,"keydown"===Dt.type?"keyboard":"mouse"))})}close(lt){this._result=lt,this._containerInstance._animationStateChanged.pipe((0,vt.h)(fe=>"closing"===fe.state),(0,Lt.q)(1)).subscribe(fe=>{this._beforeClosed.next(lt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),fe.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(lt){let fe=this._ref.config.positionStrategy;return lt&&(lt.left||lt.right)?lt.left?fe.left(lt.left):fe.right(lt.right):fe.centerHorizontally(),lt&&(lt.top||lt.bottom)?lt.top?fe.top(lt.top):fe.bottom(lt.bottom):fe.centerVertically(),this._ref.updatePosition(),this}updateSize(lt="",fe=""){return this._ref.updateSize(lt,fe),this}addPanelClass(lt){return this._ref.addPanelClass(lt),this}removePanelClass(lt){return this._ref.removePanelClass(lt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const en=new A.OlP("MatMdcDialogData"),zt=new A.OlP("mat-mdc-dialog-default-options"),Jt=new A.OlP("mat-mdc-dialog-scroll-strategy"),In={provide:Jt,deps:[r.aV],useFactory:function Tn(we){return()=>we.scrollStrategies.block()}};let Pn=0,sn=(()=>{class we{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const fe=this._parentDialog;return fe?fe._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(fe,Ye,Dt,Ft,an,Vt,wn,ln,xn,Sn){this._overlay=fe,this._defaultOptions=Dt,this._parentDialog=Ft,this._dialogRefConstructor=wn,this._dialogContainerType=ln,this._dialogDataToken=xn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ee.x,this._afterOpenedAtThisLevel=new ee.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=at,this.afterAllClosed=(0,ne.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,le.O)(void 0))),this._scrollStrategy=Vt,this._dialog=Ye.get(ve)}open(fe,Ye){let Dt;(Ye={...this._defaultOptions||new at,...Ye}).id=Ye.id||`${this._idPrefix}${Pn++}`,Ye.scrollStrategy=Ye.scrollStrategy||this._scrollStrategy();const Ft=this._dialog.open(fe,{...Ye,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Ye},{provide:Ee,useValue:Ye}]},templateContext:()=>({dialogRef:Dt}),providers:(an,Vt,wn)=>(Dt=new this._dialogRefConstructor(an,Ye,wn),Dt.updatePosition(Ye?.position),[{provide:this._dialogContainerType,useValue:wn},{provide:this._dialogDataToken,useValue:Vt.data},{provide:this._dialogRefConstructor,useValue:Dt}])});return Dt.componentInstance=Ft.componentInstance,this.openDialogs.push(Dt),this.afterOpened.next(Dt),Dt.afterClosed().subscribe(()=>{const an=this.openDialogs.indexOf(Dt);an>-1&&(this.openDialogs.splice(an,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Dt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(fe){return this.openDialogs.find(Ye=>Ye.id===fe)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(fe){let Ye=fe.length;for(;Ye--;)fe[Ye].close()}}return we.\u0275fac=function(fe){A.$Z()},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac}),we})(),tt=(()=>{class we extends sn{constructor(fe,Ye,Dt,Ft,an,Vt,wn,ln){super(fe,Ye,Ft,Vt,wn,an,ut,Ve,en,ln),this._idPrefix="mat-mdc-dialog-"}}return we.\u0275fac=function(fe){return new(fe||we)(A.LFG(r.aV),A.LFG(A.zs3),A.LFG(c.Ye,8),A.LFG(zt,8),A.LFG(Jt),A.LFG(we,12),A.LFG(r.Xj),A.LFG(A.QbO,8))},we.\u0275prov=A.Yz7({token:we,factory:we.\u0275fac}),we})(),W=0,Se=(()=>{class we{constructor(fe,Ye,Dt){this._dialogRef=fe,this._elementRef=Ye,this._dialog=Dt,this.id="mat-mdc-dialog-title-"+W++}ngOnInit(){this._dialogRef||(this._dialogRef=function At(we,lt){let fe=we.nativeElement.parentElement;for(;fe&&!fe.classList.contains("mat-mdc-dialog-container");)fe=fe.parentElement;return fe?lt.find(Ye=>Ye.id===fe.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const fe=this._dialogRef._containerInstance;fe&&!fe._ariaLabelledBy&&(fe._ariaLabelledBy=this.id)})}}return we.\u0275fac=function(fe){return new(fe||we)(A.Y36(ut,8),A.Y36(A.SBq),A.Y36(tt))},we.\u0275dir=A.lG2({type:we,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(fe,Ye){2&fe&&A.Ikx("id",Ye.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),we})(),nt=(()=>{class we{}return we.\u0275fac=function(fe){return new(fe||we)},we.\u0275dir=A.lG2({type:we,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),we})(),ct=(()=>{class we{constructor(){this.align="start"}}return we.\u0275fac=function(fe){return new(fe||we)},we.\u0275dir=A.lG2({type:we,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(fe,Ye){2&fe&&A.ekj("mat-mdc-dialog-actions-align-center","center"===Ye.align)("mat-mdc-dialog-actions-align-end","end"===Ye.align)},inputs:{align:"align"}}),we})(),Ht=(()=>{class we{}return we.\u0275fac=function(fe){return new(fe||we)},we.\u0275mod=A.oAB({type:we}),we.\u0275inj=A.cJS({providers:[tt,In],imports:[xe,r.U8,se.eL,Mt.BQ,Mt.BQ]}),we})()},1481:(Ct,Te,g)=>{g.d(Te,{Dx:()=>At,H7:()=>Rt,b2:()=>W,q6:()=>Fn,se:()=>Lt});var r=g(6895),c=g(4650);class A extends r.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class B extends A{static makeCurrent(){(0,r.HT)(new B)}onAndCancel(p,_,I){return p.addEventListener(_,I,!1),()=>{p.removeEventListener(_,I,!1)}}dispatchEvent(p,_){p.dispatchEvent(_)}remove(p){p.parentNode&&p.parentNode.removeChild(p)}createElement(p,_){return(_=_||this.getDefaultDocument()).createElement(p)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(p){return p.nodeType===Node.ELEMENT_NODE}isShadowRoot(p){return p instanceof DocumentFragment}getGlobalEventTarget(p,_){return"window"===_?window:"document"===_?p:"body"===_?p.body:null}getBaseHref(p){const _=function se(){return X=X||document.querySelector("base"),X?X.getAttribute("href"):null}();return null==_?null:function ee(k){J=J||document.createElement("a"),J.setAttribute("href",k);const p=J.pathname;return"/"===p.charAt(0)?p:`/${p}`}(_)}resetBaseElement(){X=null}getUserAgent(){return window.navigator.userAgent}getCookie(p){return(0,r.Mx)(document.cookie,p)}}let J,X=null;const ne=new c.OlP("TRANSITION_ID"),q=[{provide:c.ip1,useFactory:function j(k,p,_){return()=>{_.get(c.CZH).donePromise.then(()=>{const I=(0,r.q)(),P=p.querySelectorAll(`style[ng-transition="${k}"]`);for(let oe=0;oe<P.length;oe++)I.remove(P[oe])})}},deps:[ne,r.K0,c.zs3],multi:!0}];let He=(()=>{class k{build(){return new XMLHttpRequest}}return k.\u0275fac=function(_){return new(_||k)},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();const Ee=new c.OlP("EventManagerPlugins");let Ne=(()=>{class k{constructor(_,I){this._zone=I,this._eventNameToPlugin=new Map,_.forEach(P=>P.manager=this),this._plugins=_.slice().reverse()}addEventListener(_,I,P){return this._findPluginFor(I).addEventListener(_,I,P)}addGlobalEventListener(_,I,P){return this._findPluginFor(I).addGlobalEventListener(_,I,P)}getZone(){return this._zone}_findPluginFor(_){const I=this._eventNameToPlugin.get(_);if(I)return I;const P=this._plugins;for(let oe=0;oe<P.length;oe++){const Be=P[oe];if(Be.supports(_))return this._eventNameToPlugin.set(_,Be),Be}throw new Error(`No event manager plugin found for event ${_}`)}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(Ee),c.LFG(c.R0b))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();class Re{constructor(p){this._doc=p}addGlobalEventListener(p,_,I){const P=(0,r.q)().getGlobalEventTarget(this._doc,p);if(!P)throw new Error(`Unsupported event target ${P} for event ${_}`);return this.addEventListener(P,_,I)}}let ue=(()=>{class k{constructor(){this._stylesSet=new Set}addStyles(_){const I=new Set;_.forEach(P=>{this._stylesSet.has(P)||(this._stylesSet.add(P),I.add(P))}),this.onStylesAdded(I)}onStylesAdded(_){}getAllStyles(){return Array.from(this._stylesSet)}}return k.\u0275fac=function(_){return new(_||k)},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})(),ke=(()=>{class k extends ue{constructor(_){super(),this._doc=_,this._hostNodes=new Map,this._hostNodes.set(_.head,[])}_addStylesToHost(_,I,P){_.forEach(oe=>{const Be=this._doc.createElement("style");Be.textContent=oe,P.push(I.appendChild(Be))})}addHost(_){const I=[];this._addStylesToHost(this._stylesSet,_,I),this._hostNodes.set(_,I)}removeHost(_){const I=this._hostNodes.get(_);I&&I.forEach(Fe),this._hostNodes.delete(_)}onStylesAdded(_){this._hostNodes.forEach((I,P)=>{this._addStylesToHost(_,P,I)})}ngOnDestroy(){this._hostNodes.forEach(_=>_.forEach(Fe))}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();function Fe(k){(0,r.q)().remove(k)}const et={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;function dt(k,p){return p.flat(100).map(_=>_.replace(be,k))}function vt(k){return p=>{if("__ngUnwrap__"===p)return k;!1===k(p)&&(p.preventDefault(),p.returnValue=!1)}}let Lt=(()=>{class k{constructor(_,I,P){this.eventManager=_,this.sharedStylesHost=I,this.appId=P,this.rendererByCompId=new Map,this.defaultRenderer=new Mt(_)}createRenderer(_,I){if(!_||!I)return this.defaultRenderer;switch(I.encapsulation){case c.ifc.Emulated:{let P=this.rendererByCompId.get(I.id);return P||(P=new mt(this.eventManager,this.sharedStylesHost,I,this.appId),this.rendererByCompId.set(I.id,P)),P.applyToHost(_),P}case c.ifc.ShadowDom:return new Et(this.eventManager,this.sharedStylesHost,_,I);default:if(!this.rendererByCompId.has(I.id)){const P=dt(I.id,I.styles);this.sharedStylesHost.addStyles(P),this.rendererByCompId.set(I.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(Ne),c.LFG(ke),c.LFG(c.AFp))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();class Mt{constructor(p){this.eventManager=p,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(p,_){return _?document.createElementNS(et[_]||_,p):document.createElement(p)}createComment(p){return document.createComment(p)}createText(p){return document.createTextNode(p)}appendChild(p,_){(at(p)?p.content:p).appendChild(_)}insertBefore(p,_,I){p&&(at(p)?p.content:p).insertBefore(_,I)}removeChild(p,_){p&&p.removeChild(_)}selectRootElement(p,_){let I="string"==typeof p?document.querySelector(p):p;if(!I)throw new Error(`The selector "${p}" did not match any elements`);return _||(I.textContent=""),I}parentNode(p){return p.parentNode}nextSibling(p){return p.nextSibling}setAttribute(p,_,I,P){if(P){_=P+":"+_;const oe=et[P];oe?p.setAttributeNS(oe,_,I):p.setAttribute(_,I)}else p.setAttribute(_,I)}removeAttribute(p,_,I){if(I){const P=et[I];P?p.removeAttributeNS(P,_):p.removeAttribute(`${I}:${_}`)}else p.removeAttribute(_)}addClass(p,_){p.classList.add(_)}removeClass(p,_){p.classList.remove(_)}setStyle(p,_,I,P){P&(c.JOm.DashCase|c.JOm.Important)?p.style.setProperty(_,I,P&c.JOm.Important?"important":""):p.style[_]=I}removeStyle(p,_,I){I&c.JOm.DashCase?p.style.removeProperty(_):p.style[_]=""}setProperty(p,_,I){p[_]=I}setValue(p,_){p.nodeValue=_}listen(p,_,I){return"string"==typeof p?this.eventManager.addGlobalEventListener(p,_,vt(I)):this.eventManager.addEventListener(p,_,vt(I))}}function at(k){return"TEMPLATE"===k.tagName&&void 0!==k.content}class mt extends Mt{constructor(p,_,I,P){super(p),this.component=I;const oe=dt(P+"-"+I.id,I.styles);_.addStyles(oe),this.contentAttr=function xe(k){return"_ngcontent-%COMP%".replace(be,k)}(P+"-"+I.id),this.hostAttr=function ze(k){return"_nghost-%COMP%".replace(be,k)}(P+"-"+I.id)}applyToHost(p){super.setAttribute(p,this.hostAttr,"")}createElement(p,_){const I=super.createElement(p,_);return super.setAttribute(I,this.contentAttr,""),I}}class Et extends Mt{constructor(p,_,I,P){super(p),this.sharedStylesHost=_,this.hostEl=I,this.shadowRoot=I.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const oe=dt(P.id,P.styles);for(let Be=0;Be<oe.length;Be++){const yt=document.createElement("style");yt.textContent=oe[Be],this.shadowRoot.appendChild(yt)}}nodeOrShadowRoot(p){return p===this.hostEl?this.shadowRoot:p}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(p,_){return super.appendChild(this.nodeOrShadowRoot(p),_)}insertBefore(p,_,I){return super.insertBefore(this.nodeOrShadowRoot(p),_,I)}removeChild(p,_){return super.removeChild(this.nodeOrShadowRoot(p),_)}parentNode(p){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(p)))}}let bt=(()=>{class k extends Re{constructor(_){super(_)}supports(_){return!0}addEventListener(_,I,P){return _.addEventListener(I,P,!1),()=>this.removeEventListener(_,I,P)}removeEventListener(_,I,P){return _.removeEventListener(I,P)}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();const It=["alt","control","meta","shift"],Ce={"\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"},Xe={alt:k=>k.altKey,control:k=>k.ctrlKey,meta:k=>k.metaKey,shift:k=>k.shiftKey};let L=(()=>{class k extends Re{constructor(_){super(_)}supports(_){return null!=k.parseEventName(_)}addEventListener(_,I,P){const oe=k.parseEventName(I),Be=k.eventCallback(oe.fullKey,P,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,r.q)().onAndCancel(_,oe.domEventName,Be))}static parseEventName(_){const I=_.toLowerCase().split("."),P=I.shift();if(0===I.length||"keydown"!==P&&"keyup"!==P)return null;const oe=k._normalizeKey(I.pop());let Be="",yt=I.indexOf("code");if(yt>-1&&(I.splice(yt,1),Be="code."),It.forEach(hn=>{const bn=I.indexOf(hn);bn>-1&&(I.splice(bn,1),Be+=hn+".")}),Be+=oe,0!=I.length||0===oe.length)return null;const Bt={};return Bt.domEventName=P,Bt.fullKey=Be,Bt}static matchEventFullKeyCode(_,I){let P=Ce[_.key]||_.key,oe="";return I.indexOf("code.")>-1&&(P=_.code,oe="code."),!(null==P||!P)&&(P=P.toLowerCase()," "===P?P="space":"."===P&&(P="dot"),It.forEach(Be=>{Be!==P&&(0,Xe[Be])(_)&&(oe+=Be+".")}),oe+=P,oe===I)}static eventCallback(_,I,P){return oe=>{k.matchEventFullKeyCode(oe,_)&&P.runGuarded(()=>I(oe))}}static _normalizeKey(_){return"esc"===_?"escape":_}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();const Fn=(0,c.eFA)(c._c5,"browser",[{provide:c.Lbi,useValue:r.bD},{provide:c.g9A,useValue:function zt(){B.makeCurrent()},multi:!0},{provide:r.K0,useFactory:function Tn(){return(0,c.RDi)(document),document},deps:[]}]),Pn=new c.OlP(""),sn=[{provide:c.rWj,useClass:class le{addToWindow(p){c.dqk.getAngularTestability=(I,P=!0)=>{const oe=p.findTestabilityInTree(I,P);if(null==oe)throw new Error("Could not find testability for element.");return oe},c.dqk.getAllAngularTestabilities=()=>p.getAllTestabilities(),c.dqk.getAllAngularRootElements=()=>p.getAllRootElements(),c.dqk.frameworkStabilizers||(c.dqk.frameworkStabilizers=[]),c.dqk.frameworkStabilizers.push(I=>{const P=c.dqk.getAllAngularTestabilities();let oe=P.length,Be=!1;const yt=function(Bt){Be=Be||Bt,oe--,0==oe&&I(Be)};P.forEach(function(Bt){Bt.whenStable(yt)})})}findTestabilityInTree(p,_,I){return null==_?null:p.getTestability(_)??(I?(0,r.q)().isShadowRoot(_)?this.findTestabilityInTree(p,_.host,!0):this.findTestabilityInTree(p,_.parentElement,!0):null)}},deps:[]},{provide:c.lri,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]},{provide:c.dDg,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]}],tt=[{provide:c.zSh,useValue:"root"},{provide:c.qLn,useFactory:function Jt(){return new c.qLn},deps:[]},{provide:Ee,useClass:bt,multi:!0,deps:[r.K0,c.R0b,c.Lbi]},{provide:Ee,useClass:L,multi:!0,deps:[r.K0]},{provide:Lt,useClass:Lt,deps:[Ne,ke,c.AFp]},{provide:c.FYo,useExisting:Lt},{provide:ue,useExisting:ke},{provide:ke,useClass:ke,deps:[r.K0]},{provide:Ne,useClass:Ne,deps:[Ee,c.R0b]},{provide:r.JF,useClass:He,deps:[]},[]];let W=(()=>{class k{constructor(_){}static withServerTransition(_){return{ngModule:k,providers:[{provide:c.AFp,useValue:_.appId},{provide:ne,useExisting:c.AFp},q]}}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(Pn,12))},k.\u0275mod=c.oAB({type:k}),k.\u0275inj=c.cJS({providers:[...tt,...sn],imports:[r.ez,c.hGG]}),k})(),At=(()=>{class k{constructor(_){this._doc=_}getTitle(){return this._doc.title}setTitle(_){this._doc.title=_||""}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:function(_){let I=null;return I=_?new _:function ct(){return new At((0,c.LFG)(r.K0))}(),I},providedIn:"root"}),k})();typeof window<"u"&&window;let Rt=(()=>{class k{}return k.\u0275fac=function(_){return new(_||k)},k.\u0275prov=c.Yz7({token:k,factory:function(_){let I=null;return I=_?new(_||k):c.LFG(tn),I},providedIn:"root"}),k})(),tn=(()=>{class k extends Rt{constructor(_){super(),this._doc=_}sanitize(_,I){if(null==I)return null;switch(_){case c.q3G.NONE:return I;case c.q3G.HTML:return(0,c.qzn)(I,"HTML")?(0,c.z3N)(I):(0,c.EiD)(this._doc,String(I)).toString();case c.q3G.STYLE:return(0,c.qzn)(I,"Style")?(0,c.z3N)(I):I;case c.q3G.SCRIPT:if((0,c.qzn)(I,"Script"))return(0,c.z3N)(I);throw new Error("unsafe value used in a script context");case c.q3G.URL:return(0,c.qzn)(I,"URL")?(0,c.z3N)(I):(0,c.mCW)(String(I));case c.q3G.RESOURCE_URL:if((0,c.qzn)(I,"ResourceURL"))return(0,c.z3N)(I);throw new Error(`unsafe value used in a resource URL context (see ${c.JZr})`);default:throw new Error(`Unexpected SecurityContext ${_} (see ${c.JZr})`)}}bypassSecurityTrustHtml(_){return(0,c.JVY)(_)}bypassSecurityTrustStyle(_){return(0,c.L6k)(_)}bypassSecurityTrustScript(_){return(0,c.eBb)(_)}bypassSecurityTrustUrl(_){return(0,c.LAX)(_)}bypassSecurityTrustResourceUrl(_){return(0,c.pB0)(_)}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:function(_){let I=null;return I=_?new _:function Wt(k){return new tn(k.get(r.K0))}(c.LFG(c.zs3)),I},providedIn:"root"}),k})()},3893:(Ct,Te,g)=>{g.d(Te,{gz:()=>Qi,m2:()=>di,F0:()=>Vi,Bz:()=>va,lC:()=>Si});var r=g(4650),c=g(8996),A=g(9646),B=g(1135),X=g(6805),se=g(9841),J=g(7272),ee=g(9770),ne=g(9635),j=g(2843),q=g(9751),le=g(515),He=g(4033),Ee=g(7579),Ne=g(6895),Re=g(4004),ue=g(3900),ke=g(5698),Fe=g(8675),et=g(9300),be=g(5577),de=g(590),ye=g(4351),ve=g(8505),Ue=g(8421),xe=g(5403),ze=g(4482);function dt(h){return(0,ze.e)((m,u)=>{let $,C=null,O=!1;C=m.subscribe((0,xe.x)(u,void 0,void 0,Q=>{$=(0,Ue.Xf)(h(Q,dt(h)(m))),C?(C.unsubscribe(),C=null,$.subscribe(u)):O=!0})),O&&(C.unsubscribe(),C=null,$.subscribe(u))})}function vt(h,m,u,C,O){return($,Q)=>{let Ge=u,f=m,l=0;$.subscribe((0,xe.x)(Q,a=>{const v=l++;f=Ge?h(f,a,v):(Ge=!0,a),C&&Q.next(f)},O&&(()=>{Ge&&Q.next(f),Q.complete()})))}}function Lt(h,m){return(0,ze.e)(vt(h,m,arguments.length>=2,!0))}function Mt(h){return h<=0?()=>le.E:(0,ze.e)((m,u)=>{let C=[];m.subscribe((0,xe.x)(u,O=>{C.push(O),h<C.length&&C.shift()},()=>{for(const O of C)u.next(O);u.complete()},void 0,()=>{C=null}))})}var We=g(8068),rt=g(6590),at=g(4671);function mt(h,m){const u=arguments.length>=2;return C=>C.pipe(h?(0,et.h)((O,$)=>h(O,$,C)):at.y,Mt(1),u?(0,rt.d)(m):(0,We.T)(()=>new X.K))}var bt=g(9718),It=g(8746),Ce=g(8343),Xe=g(8189),L=g(1481);const ie="primary",Ve=Symbol("RouteTitle");class ut{constructor(m){this.params=m||{}}has(m){return Object.prototype.hasOwnProperty.call(this.params,m)}get(m){if(this.has(m)){const u=this.params[m];return Array.isArray(u)?u[0]:u}return null}getAll(m){if(this.has(m)){const u=this.params[m];return Array.isArray(u)?u:[u]}return[]}get keys(){return Object.keys(this.params)}}function xt(h){return new ut(h)}function en(h,m,u){const C=u.path.split("/");if(C.length>h.length||"full"===u.pathMatch&&(m.hasChildren()||C.length<h.length))return null;const O={};for(let $=0;$<C.length;$++){const Q=C[$],Ge=h[$];if(Q.startsWith(":"))O[Q.substring(1)]=Ge;else if(Q!==Ge.path)return null}return{consumed:h.slice(0,C.length),posParams:O}}function Jt(h,m){const u=h?Object.keys(h):void 0,C=m?Object.keys(m):void 0;if(!u||!C||u.length!=C.length)return!1;let O;for(let $=0;$<u.length;$++)if(O=u[$],!Tn(h[O],m[O]))return!1;return!0}function Tn(h,m){if(Array.isArray(h)&&Array.isArray(m)){if(h.length!==m.length)return!1;const u=[...h].sort(),C=[...m].sort();return u.every((O,$)=>C[$]===O)}return h===m}function In(h){return Array.prototype.concat.apply([],h)}function Fn(h){return h.length>0?h[h.length-1]:null}function sn(h,m){for(const u in h)h.hasOwnProperty(u)&&m(h[u],u)}function tt(h){return(0,r.CqO)(h)?h:(0,r.QGY)(h)?(0,c.D)(Promise.resolve(h)):(0,A.of)(h)}const W=!1,ae={exact:function At(h,m,u){if(!Ft(h.segments,m.segments)||!we(h.segments,m.segments,u)||h.numberOfChildren!==m.numberOfChildren)return!1;for(const C in m.children)if(!h.children[C]||!At(h.children[C],m.children[C],u))return!1;return!0},subset:Pt},Se={exact:function ct(h,m){return Jt(h,m)},subset:function Ht(h,m){return Object.keys(m).length<=Object.keys(h).length&&Object.keys(m).every(u=>Tn(h[u],m[u]))},ignored:()=>!0};function nt(h,m,u){return ae[u.paths](h.root,m.root,u.matrixParams)&&Se[u.queryParams](h.queryParams,m.queryParams)&&!("exact"===u.fragment&&h.fragment!==m.fragment)}function Pt(h,m,u){return St(h,m,m.segments,u)}function St(h,m,u,C){if(h.segments.length>u.length){const O=h.segments.slice(0,u.length);return!(!Ft(O,u)||m.hasChildren()||!we(O,u,C))}if(h.segments.length===u.length){if(!Ft(h.segments,u)||!we(h.segments,u,C))return!1;for(const O in m.children)if(!h.children[O]||!Pt(h.children[O],m.children[O],C))return!1;return!0}{const O=u.slice(0,h.segments.length),$=u.slice(h.segments.length);return!!(Ft(h.segments,O)&&we(h.segments,O,C)&&h.children[ie])&&St(h.children[ie],m,$,C)}}function we(h,m,u){return m.every((C,O)=>Se[u](h[O].parameters,C.parameters))}class lt{constructor(m=new fe([],{}),u={},C=null){this.root=m,this.queryParams=u,this.fragment=C}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap}toString(){return ln.serialize(this)}}class fe{constructor(m,u){this.segments=m,this.children=u,this.parent=null,sn(u,(C,O)=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xn(this)}}class Ye{constructor(m,u){this.path=m,this.parameters=u}get parameterMap(){return this._parameterMap||(this._parameterMap=xt(this.parameters)),this._parameterMap}toString(){return K(this)}}function Ft(h,m){return h.length===m.length&&h.every((u,C)=>u.path===m[C].path)}let Vt=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return new wn},providedIn:"root"}),h})();class wn{parse(m){const u=new k(m);return new lt(u.parseRootSegment(),u.parseQueryParams(),u.parseFragment())}serialize(m){const u=`/${Sn(m.root,!0)}`,C=function De(h){const m=Object.keys(h).map(u=>{const C=h[u];return Array.isArray(C)?C.map(O=>`${te(u)}=${te(O)}`).join("&"):`${te(u)}=${te(C)}`}).filter(u=>!!u);return m.length?`?${m.join("&")}`:""}(m.queryParams);return`${u}${C}${"string"==typeof m.fragment?`#${function V(h){return encodeURI(h)}(m.fragment)}`:""}`}}const ln=new wn;function xn(h){return h.segments.map(m=>K(m)).join("/")}function Sn(h,m){if(!h.hasChildren())return xn(h);if(m){const u=h.children[ie]?Sn(h.children[ie],!1):"",C=[];return sn(h.children,(O,$)=>{$!==ie&&C.push(`${$}:${Sn(O,!1)}`)}),C.length>0?`${u}(${C.join("//")})`:u}{const u=function an(h,m){let u=[];return sn(h.children,(C,O)=>{O===ie&&(u=u.concat(m(C,O)))}),sn(h.children,(C,O)=>{O!==ie&&(u=u.concat(m(C,O)))}),u}(h,(C,O)=>O===ie?[Sn(h.children[ie],!1)]:[`${O}:${Sn(C,!1)}`]);return 1===Object.keys(h.children).length&&null!=h.children[ie]?`${xn(h)}/${u[0]}`:`${xn(h)}/(${u.join("//")})`}}function Oe(h){return encodeURIComponent(h).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function te(h){return Oe(h).replace(/%3B/gi,";")}function U(h){return Oe(h).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function re(h){return decodeURIComponent(h)}function Ke(h){return re(h.replace(/\+/g,"%20"))}function K(h){return`${U(h.path)}${function ce(h){return Object.keys(h).map(m=>`;${U(m)}=${U(h[m])}`).join("")}(h.parameters)}`}const qe=/^[^\/()?;=#]+/;function Ie(h){const m=h.match(qe);return m?m[0]:""}const Rt=/^[^=?&#]+/,tn=/^[^&#]+/;class k{constructor(m){this.url=m,this.remaining=m}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fe([],{}):new fe([],this.parseChildren())}parseQueryParams(){const m={};if(this.consumeOptional("?"))do{this.parseQueryParam(m)}while(this.consumeOptional("&"));return m}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const m=[];for(this.peekStartsWith("(")||m.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),m.push(this.parseSegment());let u={};this.peekStartsWith("/(")&&(this.capture("/"),u=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(m.length>0||Object.keys(u).length>0)&&(C[ie]=new fe(m,u)),C}parseSegment(){const m=Ie(this.remaining);if(""===m&&this.peekStartsWith(";"))throw new r.vHH(4009,W);return this.capture(m),new Ye(re(m),this.parseMatrixParams())}parseMatrixParams(){const m={};for(;this.consumeOptional(";");)this.parseParam(m);return m}parseParam(m){const u=Ie(this.remaining);if(!u)return;this.capture(u);let C="";if(this.consumeOptional("=")){const O=Ie(this.remaining);O&&(C=O,this.capture(C))}m[re(u)]=re(C)}parseQueryParam(m){const u=function Wt(h){const m=h.match(Rt);return m?m[0]:""}(this.remaining);if(!u)return;this.capture(u);let C="";if(this.consumeOptional("=")){const Q=function he(h){const m=h.match(tn);return m?m[0]:""}(this.remaining);Q&&(C=Q,this.capture(C))}const O=Ke(u),$=Ke(C);if(m.hasOwnProperty(O)){let Q=m[O];Array.isArray(Q)||(Q=[Q],m[O]=Q),Q.push($)}else m[O]=$}parseParens(m){const u={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=Ie(this.remaining),O=this.remaining[C.length];if("/"!==O&&")"!==O&&";"!==O)throw new r.vHH(4010,W);let $;C.indexOf(":")>-1?($=C.slice(0,C.indexOf(":")),this.capture($),this.capture(":")):m&&($=ie);const Q=this.parseChildren();u[$]=1===Object.keys(Q).length?Q[ie]:new fe([],Q),this.consumeOptional("//")}return u}peekStartsWith(m){return this.remaining.startsWith(m)}consumeOptional(m){return!!this.peekStartsWith(m)&&(this.remaining=this.remaining.substring(m.length),!0)}capture(m){if(!this.consumeOptional(m))throw new r.vHH(4011,W)}}function p(h){return h.segments.length>0?new fe([],{[ie]:h}):h}function _(h){const m={};for(const C of Object.keys(h.children)){const $=_(h.children[C]);($.segments.length>0||$.hasChildren())&&(m[C]=$)}return function I(h){if(1===h.numberOfChildren&&h.children[ie]){const m=h.children[ie];return new fe(h.segments.concat(m.segments),m.children)}return h}(new fe(h.segments,m))}function P(h){return h instanceof lt}function hn(h,m,u,C,O){if(0===u.length)return Ot(m.root,m.root,m.root,C,O);const $=function Yt(h){if("string"==typeof h[0]&&1===h.length&&"/"===h[0])return new ft(!0,0,h);let m=0,u=!1;const C=h.reduce((O,$,Q)=>{if("object"==typeof $&&null!=$){if($.outlets){const Ge={};return sn($.outlets,(f,l)=>{Ge[l]="string"==typeof f?f.split("/"):f}),[...O,{outlets:Ge}]}if($.segmentPath)return[...O,$.segmentPath]}return"string"!=typeof $?[...O,$]:0===Q?($.split("/").forEach((Ge,f)=>{0==f&&"."===Ge||(0==f&&""===Ge?u=!0:".."===Ge?m++:""!=Ge&&O.push(Ge))}),O):[...O,$]},[]);return new ft(u,m,C)}(u);return $.toRoot()?Ot(m.root,m.root,new fe([],{}),C,O):function Q(f){const l=function zn(h,m,u,C){if(h.isAbsolute)return new mn(m.root,!0,0);if(-1===C)return new mn(u,u===m.root,0);return function ni(h,m,u){let C=h,O=m,$=u;for(;$>O;){if($-=O,C=C.parent,!C)throw new r.vHH(4005,!1);O=C.segments.length}return new mn(C,!1,O-$)}(u,C+(bn(h.commands[0])?0:1),h.numberOfDoubleDots)}($,m,h.snapshot?._urlSegment,f),a=l.processChildren?ti(l.segmentGroup,l.index,$.commands):ii(l.segmentGroup,l.index,$.commands);return Ot(m.root,l.segmentGroup,a,C,O)}(h.snapshot?._lastPathIndex)}function bn(h){return"object"==typeof h&&null!=h&&!h.outlets&&!h.segmentPath}function ht(h){return"object"==typeof h&&null!=h&&h.outlets}function Ot(h,m,u,C,O){let Q,$={};C&&sn(C,(f,l)=>{$[l]=Array.isArray(f)?f.map(a=>`${a}`):`${f}`}),Q=h===m?u:Ae(h,m,u);const Ge=p(_(Q));return new lt(Ge,$,O)}function Ae(h,m,u){const C={};return sn(h.children,(O,$)=>{C[$]=O===m?u:Ae(O,m,u)}),new fe(h.segments,C)}class ft{constructor(m,u,C){if(this.isAbsolute=m,this.numberOfDoubleDots=u,this.commands=C,m&&C.length>0&&bn(C[0]))throw new r.vHH(4003,!1);const O=C.find(ht);if(O&&O!==Fn(C))throw new r.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class mn{constructor(m,u,C){this.segmentGroup=m,this.processChildren=u,this.index=C}}function ii(h,m,u){if(h||(h=new fe([],{})),0===h.segments.length&&h.hasChildren())return ti(h,m,u);const C=function $t(h,m,u){let C=0,O=m;const $={match:!1,pathIndex:0,commandIndex:0};for(;O<h.segments.length;){if(C>=u.length)return $;const Q=h.segments[O],Ge=u[C];if(ht(Ge))break;const f=`${Ge}`,l=C<u.length-1?u[C+1]:null;if(O>0&&void 0===f)break;if(f&&l&&"object"==typeof l&&void 0===l.outlets){if(!bi(f,l,Q))return $;C+=2}else{if(!bi(f,{},Q))return $;C++}O++}return{match:!0,pathIndex:O,commandIndex:C}}(h,m,u),O=u.slice(C.commandIndex);if(C.match&&C.pathIndex<h.segments.length){const $=new fe(h.segments.slice(0,C.pathIndex),{});return $.children[ie]=new fe(h.segments.slice(C.pathIndex),h.children),ti($,0,O)}return C.match&&0===O.length?new fe(h.segments,{}):C.match&&!h.hasChildren()?cn(h,m,u):C.match?ti(h,0,O):cn(h,m,u)}function ti(h,m,u){if(0===u.length)return new fe(h.segments,{});{const C=function qn(h){return ht(h[0])?h[0].outlets:{[ie]:h}}(u),O={};return!C[ie]&&h.children[ie]&&1===h.numberOfChildren&&0===h.children[ie].segments.length?ti(h.children[ie],m,u):(sn(C,($,Q)=>{"string"==typeof $&&($=[$]),null!==$&&(O[Q]=ii(h.children[Q],m,$))}),sn(h.children,($,Q)=>{void 0===C[Q]&&(O[Q]=$)}),new fe(h.segments,O))}}function cn(h,m,u){const C=h.segments.slice(0,m);let O=0;for(;O<u.length;){const $=u[O];if(ht($)){const f=Wn($.outlets);return new fe(C,f)}if(0===O&&bn(u[0])){C.push(new Ye(h.segments[m].path,ci(u[0]))),O++;continue}const Q=ht($)?$.outlets[ie]:`${$}`,Ge=O<u.length-1?u[O+1]:null;Q&&Ge&&bn(Ge)?(C.push(new Ye(Q,ci(Ge))),O+=2):(C.push(new Ye(Q,{})),O++)}return new fe(C,{})}function Wn(h){const m={};return sn(h,(u,C)=>{"string"==typeof u&&(u=[u]),null!==u&&(m[C]=cn(new fe([],{}),0,u))}),m}function ci(h){const m={};return sn(h,(u,C)=>m[C]=`${u}`),m}function bi(h,m,u){return h==u.path&&Jt(m,u.parameters)}const Zn="imperative";class ei{constructor(m,u){this.id=m,this.url=u}}class Rn extends ei{constructor(m,u,C="imperative",O=null){super(m,u),this.type=0,this.navigationTrigger=C,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class di extends ei{constructor(m,u,C){super(m,u),this.urlAfterRedirects=C,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ai extends ei{constructor(m,u,C,O){super(m,u),this.reason=C,this.code=O,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class An extends ei{constructor(m,u,C,O){super(m,u),this.reason=C,this.code=O,this.type=16}}class ir extends ei{constructor(m,u,C,O){super(m,u),this.error=C,this.target=O,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class rr extends ei{constructor(m,u,C,O){super(m,u),this.urlAfterRedirects=C,this.state=O,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zr extends ei{constructor(m,u,C,O){super(m,u),this.urlAfterRedirects=C,this.state=O,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ii extends ei{constructor(m,u,C,O,$){super(m,u),this.urlAfterRedirects=C,this.state=O,this.shouldActivate=$,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gi extends ei{constructor(m,u,C,O){super(m,u),this.urlAfterRedirects=C,this.state=O,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ui extends ei{constructor(m,u,C,O){super(m,u),this.urlAfterRedirects=C,this.state=O,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hi{constructor(m){this.route=m,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Mi{constructor(m){this.route=m,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yi{constructor(m){this.snapshot=m,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Nr{constructor(m){this.snapshot=m,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qn{constructor(m){this.snapshot=m,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class or{constructor(m){this.snapshot=m,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Er{constructor(m,u,C){this.routerEvent=m,this.position=u,this.anchor=C,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let ur=(()=>{class h{createUrlTree(u,C,O,$,Q,Ge){return hn(u||C.root,O,$,Q,Ge)}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac}),h})(),ui=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(m){return ur.\u0275fac(m)},providedIn:"root"}),h})();class Qr{constructor(m){this._root=m}get root(){return this._root.value}parent(m){const u=this.pathFromRoot(m);return u.length>1?u[u.length-2]:null}children(m){const u=_i(m,this._root);return u?u.children.map(C=>C.value):[]}firstChild(m){const u=_i(m,this._root);return u&&u.children.length>0?u.children[0].value:null}siblings(m){const u=Ci(m,this._root);return u.length<2?[]:u[u.length-2].children.map(O=>O.value).filter(O=>O!==m)}pathFromRoot(m){return Ci(m,this._root).map(u=>u.value)}}function _i(h,m){if(h===m.value)return m;for(const u of m.children){const C=_i(h,u);if(C)return C}return null}function Ci(h,m){if(h===m.value)return[m];for(const u of m.children){const C=Ci(h,u);if(C.length)return C.unshift(m),C}return[]}class Ki{constructor(m,u){this.value=m,this.children=u}toString(){return`TreeNode(${this.value})`}}function Zi(h){const m={};return h&&h.children.forEach(u=>m[u.value.outlet]=u),m}class Or extends Qr{constructor(m,u){super(m),this.snapshot=u,Dr(this,m)}toString(){return this.snapshot.toString()}}function Ei(h,m){const u=function Lo(h,m){const Q=new dr([],{},{},"",{},ie,m,null,h.root,-1,{});return new Bo("",new Ki(Q,[]))}(h,m),C=new B.X([new Ye("",{})]),O=new B.X({}),$=new B.X({}),Q=new B.X({}),Ge=new B.X(""),f=new Qi(C,O,Q,Ge,$,ie,m,u.root);return f.snapshot=u.root,new Or(new Ki(f,[]),u)}class Qi{constructor(m,u,C,O,$,Q,Ge,f){this.url=m,this.params=u,this.queryParams=C,this.fragment=O,this.data=$,this.outlet=Q,this.component=Ge,this.title=this.data?.pipe((0,Re.U)(l=>l[Ve]))??(0,A.of)(void 0),this._futureSnapshot=f}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,Re.U)(m=>xt(m)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Re.U)(m=>xt(m)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Pr(h,m="emptyOnly"){const u=h.pathFromRoot;let C=0;if("always"!==m)for(C=u.length-1;C>=1;){const O=u[C],$=u[C-1];if(O.routeConfig&&""===O.routeConfig.path)C--;else{if($.component)break;C--}}return function Xr(h){return h.reduce((m,u)=>({params:{...m.params,...u.params},data:{...m.data,...u.data},resolve:{...u.data,...m.resolve,...u.routeConfig?.data,...u._resolvedData}}),{params:{},data:{},resolve:{}})}(u.slice(C))}class dr{get title(){return this.data?.[Ve]}constructor(m,u,C,O,$,Q,Ge,f,l,a,v){this.url=m,this.params=u,this.queryParams=C,this.fragment=O,this.data=$,this.outlet=Q,this.component=Ge,this.routeConfig=f,this._urlSegment=l,this._lastPathIndex=a,this._resolve=v}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=xt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bo extends Qr{constructor(m,u){super(u),this.url=m,Dr(this,u)}toString(){return co(this._root)}}function Dr(h,m){m.value._routerState=h,m.children.forEach(u=>Dr(h,u))}function co(h){const m=h.children.length>0?` { ${h.children.map(co).join(", ")} } `:"";return`${h.value}${m}`}function Lr(h){if(h.snapshot){const m=h.snapshot,u=h._futureSnapshot;h.snapshot=u,Jt(m.queryParams,u.queryParams)||h.queryParams.next(u.queryParams),m.fragment!==u.fragment&&h.fragment.next(u.fragment),Jt(m.params,u.params)||h.params.next(u.params),function zt(h,m){if(h.length!==m.length)return!1;for(let u=0;u<h.length;++u)if(!Jt(h[u],m[u]))return!1;return!0}(m.url,u.url)||h.url.next(u.url),Jt(m.data,u.data)||h.data.next(u.data)}else h.snapshot=h._futureSnapshot,h.data.next(h._futureSnapshot.data)}function uo(h,m){const u=Jt(h.params,m.params)&&function Dt(h,m){return Ft(h,m)&&h.every((u,C)=>Jt(u.parameters,m[C].parameters))}(h.url,m.url);return u&&!(!h.parent!=!m.parent)&&(!h.parent||uo(h.parent,m.parent))}function Oi(h,m,u){if(u&&h.shouldReuseRoute(m.value,u.value.snapshot)){const C=u.value;C._futureSnapshot=m.value;const O=function Pe(h,m,u){return m.children.map(C=>{for(const O of u.children)if(h.shouldReuseRoute(C.value,O.value.snapshot))return Oi(h,C,O);return Oi(h,C)})}(h,m,u);return new Ki(C,O)}{if(h.shouldAttach(m.value)){const $=h.retrieve(m.value);if(null!==$){const Q=$.route;return Q.value._futureSnapshot=m.value,Q.children=m.children.map(Ge=>Oi(h,Ge)),Q}}const C=function Le(h){return new Qi(new B.X(h.url),new B.X(h.params),new B.X(h.queryParams),new B.X(h.fragment),new B.X(h.data),h.outlet,h.component,h)}(m.value),O=m.children.map($=>Oi(h,$));return new Ki(C,O)}}const Ze="ngNavigationCancelingError";function gt(h,m){const{redirectTo:u,navigationBehaviorOptions:C}=P(m)?{redirectTo:m,navigationBehaviorOptions:void 0}:m,O=Nt(!1,0,m);return O.url=u,O.navigationBehaviorOptions=C,O}function Nt(h,m,u){const C=new Error("NavigationCancelingError: "+(h||""));return C[Ze]=!0,C.cancellationCode=m,u&&(C.url=u),C}function Gt(h){return pn(h)&&P(h.url)}function pn(h){return h&&h[Ze]}class Xn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Cn,this.attachRef=null}}let Cn=(()=>{class h{constructor(){this.contexts=new Map}onChildOutletCreated(u,C){const O=this.getOrCreateContext(u);O.outlet=C,this.contexts.set(u,O)}onChildOutletDestroyed(u){const C=this.getContext(u);C&&(C.outlet=null,C.attachRef=null)}onOutletDeactivated(){const u=this.contexts;return this.contexts=new Map,u}onOutletReAttached(u){this.contexts=u}getOrCreateContext(u){let C=this.getContext(u);return C||(C=new Xn,this.contexts.set(u,C)),C}getContext(u){return this.contexts.get(u)||null}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const fi=!1;let Si=(()=>{class h{constructor(){this.activated=null,this._activatedRoute=null,this.name=ie,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)(Cn),this.location=(0,r.f3M)(r.s_b),this.changeDetector=(0,r.f3M)(r.sBO),this.environmentInjector=(0,r.f3M)(r.lqb)}ngOnChanges(u){if(u.name){const{firstChange:C,previousValue:O}=u.name;if(C)return;this.isTrackedInParentContexts(O)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(O)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(u){return this.parentContexts.getContext(u)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const u=this.parentContexts.getContext(this.name);u?.route&&(u.attachRef?this.attach(u.attachRef,u.route):this.activateWith(u.route,u.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new r.vHH(4012,fi);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new r.vHH(4012,fi);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new r.vHH(4012,fi);this.location.detach();const u=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(u.instance),u}attach(u,C){this.activated=u,this._activatedRoute=C,this.location.insert(u.hostView),this.attachEvents.emit(u.instance)}deactivate(){if(this.activated){const u=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(u)}}activateWith(u,C){if(this.isActivated)throw new r.vHH(4013,fi);this._activatedRoute=u;const O=this.location,Q=u.snapshot.component,Ge=this.parentContexts.getOrCreateContext(this.name).children,f=new pi(u,Ge,O.injector);if(C&&function vi(h){return!!h.resolveComponentFactory}(C)){const l=C.resolveComponentFactory(Q);this.activated=O.createComponent(l,O.length,f)}else this.activated=O.createComponent(Q,{index:O.length,injector:f,environmentInjector:C??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275dir=r.lG2({type:h,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[r.TTD]}),h})();class pi{constructor(m,u,C){this.route=m,this.childContexts=u,this.parent=C}get(m,u){return m===Qi?this.route:m===Cn?this.childContexts:this.parent.get(m,u)}}let wr=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275cmp=r.Xpm({type:h,selectors:[["ng-component"]],standalone:!0,features:[r.jDz],decls:1,vars:0,template:function(u,C){1&u&&r._UZ(0,"router-outlet")},dependencies:[Si],encapsulation:2}),h})();function Li(h,m){return h.providers&&!h._injector&&(h._injector=(0,r.MMx)(h.providers,m,`Route: ${h.path}`)),h._injector??m}function ri(h){const m=h.children&&h.children.map(ri),u=m?{...h,children:m}:{...h};return!u.component&&!u.loadComponent&&(m||u.loadChildren)&&u.outlet&&u.outlet!==ie&&(u.component=wr),u}function Ti(h){return h.outlet||ie}function fr(h,m){const u=h.filter(C=>Ti(C)===m);return u.push(...h.filter(C=>Ti(C)!==m)),u}function Vn(h){if(!h)return null;if(h.routeConfig?._injector)return h.routeConfig._injector;for(let m=h.parent;m;m=m.parent){const u=m.routeConfig;if(u?._loadedInjector)return u._loadedInjector;if(u?._injector)return u._injector}return null}class ho{constructor(m,u,C,O){this.routeReuseStrategy=m,this.futureState=u,this.currState=C,this.forwardEvent=O}activate(m){const u=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(u,C,m),Lr(this.futureState.root),this.activateChildRoutes(u,C,m)}deactivateChildRoutes(m,u,C){const O=Zi(u);m.children.forEach($=>{const Q=$.value.outlet;this.deactivateRoutes($,O[Q],C),delete O[Q]}),sn(O,($,Q)=>{this.deactivateRouteAndItsChildren($,C)})}deactivateRoutes(m,u,C){const O=m.value,$=u?u.value:null;if(O===$)if(O.component){const Q=C.getContext(O.outlet);Q&&this.deactivateChildRoutes(m,u,Q.children)}else this.deactivateChildRoutes(m,u,C);else $&&this.deactivateRouteAndItsChildren(u,C)}deactivateRouteAndItsChildren(m,u){m.value.component&&this.routeReuseStrategy.shouldDetach(m.value.snapshot)?this.detachAndStoreRouteSubtree(m,u):this.deactivateRouteAndOutlet(m,u)}detachAndStoreRouteSubtree(m,u){const C=u.getContext(m.value.outlet),O=C&&m.value.component?C.children:u,$=Zi(m);for(const Q of Object.keys($))this.deactivateRouteAndItsChildren($[Q],O);if(C&&C.outlet){const Q=C.outlet.detach(),Ge=C.children.onOutletDeactivated();this.routeReuseStrategy.store(m.value.snapshot,{componentRef:Q,route:m,contexts:Ge})}}deactivateRouteAndOutlet(m,u){const C=u.getContext(m.value.outlet),O=C&&m.value.component?C.children:u,$=Zi(m);for(const Q of Object.keys($))this.deactivateRouteAndItsChildren($[Q],O);C&&C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated(),C.attachRef=null,C.resolver=null,C.route=null)}activateChildRoutes(m,u,C){const O=Zi(u);m.children.forEach($=>{this.activateRoutes($,O[$.value.outlet],C),this.forwardEvent(new or($.value.snapshot))}),m.children.length&&this.forwardEvent(new Nr(m.value.snapshot))}activateRoutes(m,u,C){const O=m.value,$=u?u.value:null;if(Lr(O),O===$)if(O.component){const Q=C.getOrCreateContext(O.outlet);this.activateChildRoutes(m,u,Q.children)}else this.activateChildRoutes(m,u,C);else if(O.component){const Q=C.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const Ge=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),Q.children.onOutletReAttached(Ge.contexts),Q.attachRef=Ge.componentRef,Q.route=Ge.route.value,Q.outlet&&Q.outlet.attach(Ge.componentRef,Ge.route.value),Lr(Ge.route.value),this.activateChildRoutes(m,null,Q.children)}else{const Ge=Vn(O.snapshot),f=Ge?.get(r._Vd)??null;Q.attachRef=null,Q.route=O,Q.resolver=f,Q.injector=Ge,Q.outlet&&Q.outlet.activateWith(O,Q.injector),this.activateChildRoutes(m,null,Q.children)}}else this.activateChildRoutes(m,null,C)}}class mr{constructor(m){this.path=m,this.route=this.path[this.path.length-1]}}class mi{constructor(m,u){this.component=m,this.route=u}}function Ao(h,m,u){const C=h._root;return $i(C,m?m._root:null,u,[C.value])}function Mr(h,m){const u=Symbol(),C=m.get(h,u);return C===u?"function"!=typeof h||(0,r.Z0I)(h)?m.get(h):h:C}function $i(h,m,u,C,O={canDeactivateChecks:[],canActivateChecks:[]}){const $=Zi(m);return h.children.forEach(Q=>{(function po(h,m,u,C,O={canDeactivateChecks:[],canActivateChecks:[]}){const $=h.value,Q=m?m.value:null,Ge=u?u.getContext(h.value.outlet):null;if(Q&&$.routeConfig===Q.routeConfig){const f=function Rr(h,m,u){if("function"==typeof u)return u(h,m);switch(u){case"pathParamsChange":return!Ft(h.url,m.url);case"pathParamsOrQueryParamsChange":return!Ft(h.url,m.url)||!Jt(h.queryParams,m.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!uo(h,m)||!Jt(h.queryParams,m.queryParams);default:return!uo(h,m)}}(Q,$,$.routeConfig.runGuardsAndResolvers);f?O.canActivateChecks.push(new mr(C)):($.data=Q.data,$._resolvedData=Q._resolvedData),$i(h,m,$.component?Ge?Ge.children:null:u,C,O),f&&Ge&&Ge.outlet&&Ge.outlet.isActivated&&O.canDeactivateChecks.push(new mi(Ge.outlet.component,Q))}else Q&&gn(m,Ge,O),O.canActivateChecks.push(new mr(C)),$i(h,null,$.component?Ge?Ge.children:null:u,C,O)})(Q,$[Q.value.outlet],u,C.concat([Q.value]),O),delete $[Q.value.outlet]}),sn($,(Q,Ge)=>gn(Q,u.getContext(Ge),O)),O}function gn(h,m,u){const C=Zi(h),O=h.value;sn(C,($,Q)=>{gn($,O.component?m?m.children.getContext(Q):null:m,u)}),u.canDeactivateChecks.push(new mi(O.component&&m&&m.outlet&&m.outlet.isActivated?m.outlet.component:null,O))}function Sr(h){return"function"==typeof h}function M(h){return h instanceof X.K||"EmptyError"===h?.name}const S=Symbol("INITIAL_VALUE");function Z(){return(0,ue.w)(h=>(0,se.a)(h.map(m=>m.pipe((0,ke.q)(1),(0,Fe.O)(S)))).pipe((0,Re.U)(m=>{for(const u of m)if(!0!==u){if(u===S)return S;if(!1===u||u instanceof lt)return u}return!0}),(0,et.h)(m=>m!==S),(0,ke.q)(1)))}function Pi(h){return(0,ne.z)((0,ve.b)(m=>{if(P(m))throw gt(0,m)}),(0,Re.U)(m=>!0===m))}const zi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _r(h,m,u,C,O){const $=vr(h,m,u);return $.matched?function sr(h,m,u,C){const O=m.canMatch;if(!O||0===O.length)return(0,A.of)(!0);const $=O.map(Q=>{const Ge=Mr(Q,h);return tt(function mo(h){return h&&Sr(h.canMatch)}(Ge)?Ge.canMatch(m,u):h.runInContext(()=>Ge(m,u)))});return(0,A.of)($).pipe(Z(),Pi())}(C=Li(m,C),m,u).pipe((0,Re.U)(Q=>!0===Q?$:{...zi})):(0,A.of)($)}function vr(h,m,u){if(""===m.path)return"full"===m.pathMatch&&(h.hasChildren()||u.length>0)?{...zi}:{matched:!0,consumedSegments:[],remainingSegments:u,parameters:{},positionalParamSegments:{}};const O=(m.matcher||en)(u,h,m);if(!O)return{...zi};const $={};sn(O.posParams,(Ge,f)=>{$[f]=Ge.path});const Q=O.consumed.length>0?{...$,...O.consumed[O.consumed.length-1].parameters}:$;return{matched:!0,consumedSegments:O.consumed,remainingSegments:u.slice(O.consumed.length),parameters:Q,positionalParamSegments:O.posParams??{}}}function So(h,m,u,C){if(u.length>0&&function To(h,m,u){return u.some(C=>Ur(h,m,C)&&Ti(C)!==ie)}(h,u,C)){const $=new fe(m,function Ts(h,m,u,C){const O={};O[ie]=C,C._sourceSegment=h,C._segmentIndexShift=m.length;for(const $ of u)if(""===$.path&&Ti($)!==ie){const Q=new fe([],{});Q._sourceSegment=h,Q._segmentIndexShift=m.length,O[Ti($)]=Q}return O}(h,m,C,new fe(u,h.children)));return $._sourceSegment=h,$._segmentIndexShift=m.length,{segmentGroup:$,slicedSegments:[]}}if(0===u.length&&function Xo(h,m,u){return u.some(C=>Ur(h,m,C))}(h,u,C)){const $=new fe(h.segments,function Jr(h,m,u,C,O){const $={};for(const Q of C)if(Ur(h,u,Q)&&!O[Ti(Q)]){const Ge=new fe([],{});Ge._sourceSegment=h,Ge._segmentIndexShift=m.length,$[Ti(Q)]=Ge}return{...O,...$}}(h,m,u,C,h.children));return $._sourceSegment=h,$._segmentIndexShift=m.length,{segmentGroup:$,slicedSegments:u}}const O=new fe(h.segments,h.children);return O._sourceSegment=h,O._segmentIndexShift=m.length,{segmentGroup:O,slicedSegments:u}}function Ur(h,m,u){return(!(h.hasChildren()||m.length>0)||"full"!==u.pathMatch)&&""===u.path}function us(h,m,u,C){return!!(Ti(h)===C||C!==ie&&Ur(m,u,h))&&("**"===h.path||vr(m,h,u).matched)}function xo(h,m,u){return 0===m.length&&!h.children[u]}const qr=!1;class jo{constructor(m){this.segmentGroup=m||null}}class _o{constructor(m){this.urlTree=m}}function vo(h){return(0,j._)(new jo(h))}function Hr(h){return(0,j._)(new _o(h))}class to{constructor(m,u,C,O,$){this.injector=m,this.configLoader=u,this.urlSerializer=C,this.urlTree=O,this.config=$,this.allowRedirects=!0}apply(){const m=So(this.urlTree.root,[],[],this.config).segmentGroup,u=new fe(m.segments,m.children);return this.expandSegmentGroup(this.injector,this.config,u,ie).pipe((0,Re.U)($=>this.createUrlTree(_($),this.urlTree.queryParams,this.urlTree.fragment))).pipe(dt($=>{if($ instanceof _o)return this.allowRedirects=!1,this.match($.urlTree);throw $ instanceof jo?this.noMatchError($):$}))}match(m){return this.expandSegmentGroup(this.injector,this.config,m.root,ie).pipe((0,Re.U)(O=>this.createUrlTree(_(O),m.queryParams,m.fragment))).pipe(dt(O=>{throw O instanceof jo?this.noMatchError(O):O}))}noMatchError(m){return new r.vHH(4002,qr)}createUrlTree(m,u,C){const O=p(m);return new lt(O,u,C)}expandSegmentGroup(m,u,C,O){return 0===C.segments.length&&C.hasChildren()?this.expandChildren(m,u,C).pipe((0,Re.U)($=>new fe([],$))):this.expandSegment(m,C,u,C.segments,O,!0)}expandChildren(m,u,C){const O=[];for(const $ of Object.keys(C.children))"primary"===$?O.unshift($):O.push($);return(0,c.D)(O).pipe((0,ye.b)($=>{const Q=C.children[$],Ge=fr(u,$);return this.expandSegmentGroup(m,Ge,Q,$).pipe((0,Re.U)(f=>({segment:f,outlet:$})))}),Lt(($,Q)=>($[Q.outlet]=Q.segment,$),{}),mt())}expandSegment(m,u,C,O,$,Q){return(0,c.D)(C).pipe((0,ye.b)(Ge=>this.expandSegmentAgainstRoute(m,u,C,Ge,O,$,Q).pipe(dt(l=>{if(l instanceof jo)return(0,A.of)(null);throw l}))),(0,de.P)(Ge=>!!Ge),dt((Ge,f)=>{if(M(Ge))return xo(u,O,$)?(0,A.of)(new fe([],{})):vo(u);throw Ge}))}expandSegmentAgainstRoute(m,u,C,O,$,Q,Ge){return us(O,u,$,Q)?void 0===O.redirectTo?this.matchSegmentAgainstRoute(m,u,O,$,Q):Ge&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(m,u,C,O,$,Q):vo(u):vo(u)}expandSegmentAgainstRouteUsingRedirect(m,u,C,O,$,Q){return"**"===O.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(m,C,O,Q):this.expandRegularSegmentAgainstRouteUsingRedirect(m,u,C,O,$,Q)}expandWildCardWithParamsAgainstRouteUsingRedirect(m,u,C,O){const $=this.applyRedirectCommands([],C.redirectTo,{});return C.redirectTo.startsWith("/")?Hr($):this.lineralizeSegments(C,$).pipe((0,be.z)(Q=>{const Ge=new fe(Q,{});return this.expandSegment(m,Ge,u,Q,O,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(m,u,C,O,$,Q){const{matched:Ge,consumedSegments:f,remainingSegments:l,positionalParamSegments:a}=vr(u,O,$);if(!Ge)return vo(u);const v=this.applyRedirectCommands(f,O.redirectTo,a);return O.redirectTo.startsWith("/")?Hr(v):this.lineralizeSegments(O,v).pipe((0,be.z)(F=>this.expandSegment(m,u,C,F.concat(l),Q,!1)))}matchSegmentAgainstRoute(m,u,C,O,$){return"**"===C.path?(m=Li(C,m),C.loadChildren?(C._loadedRoutes?(0,A.of)({routes:C._loadedRoutes,injector:C._loadedInjector}):this.configLoader.loadChildren(m,C)).pipe((0,Re.U)(Ge=>(C._loadedRoutes=Ge.routes,C._loadedInjector=Ge.injector,new fe(O,{})))):(0,A.of)(new fe(O,{}))):_r(u,C,O,m).pipe((0,ue.w)(({matched:Q,consumedSegments:Ge,remainingSegments:f})=>Q?this.getChildConfig(m=C._injector??m,C,O).pipe((0,be.z)(a=>{const v=a.injector??m,F=a.routes,{segmentGroup:G,slicedSegments:ge}=So(u,Ge,f,F),Me=new fe(G.segments,G.children);if(0===ge.length&&Me.hasChildren())return this.expandChildren(v,F,Me).pipe((0,Re.U)(Kt=>new fe(Ge,Kt)));if(0===F.length&&0===ge.length)return(0,A.of)(new fe(Ge,{}));const Qe=Ti(C)===$;return this.expandSegment(v,Me,F,ge,Qe?ie:$,!0).pipe((0,Re.U)(jt=>new fe(Ge.concat(jt.segments),jt.children)))})):vo(u)))}getChildConfig(m,u,C){return u.children?(0,A.of)({routes:u.children,injector:m}):u.loadChildren?void 0!==u._loadedRoutes?(0,A.of)({routes:u._loadedRoutes,injector:u._loadedInjector}):function Mo(h,m,u,C){const O=m.canLoad;if(void 0===O||0===O.length)return(0,A.of)(!0);const $=O.map(Q=>{const Ge=Mr(Q,h);return tt(function Vo(h){return h&&Sr(h.canLoad)}(Ge)?Ge.canLoad(m,u):h.runInContext(()=>Ge(m,u)))});return(0,A.of)($).pipe(Z(),Pi())}(m,u,C).pipe((0,be.z)(O=>O?this.configLoader.loadChildren(m,u).pipe((0,ve.b)($=>{u._loadedRoutes=$.routes,u._loadedInjector=$.injector})):function Io(h){return(0,j._)(Nt(qr,3))}())):(0,A.of)({routes:[],injector:m})}lineralizeSegments(m,u){let C=[],O=u.root;for(;;){if(C=C.concat(O.segments),0===O.numberOfChildren)return(0,A.of)(C);if(O.numberOfChildren>1||!O.children[ie])return(0,j._)(new r.vHH(4e3,qr));O=O.children[ie]}}applyRedirectCommands(m,u,C){return this.applyRedirectCreateUrlTree(u,this.urlSerializer.parse(u),m,C)}applyRedirectCreateUrlTree(m,u,C,O){const $=this.createSegmentGroup(m,u.root,C,O);return new lt($,this.createQueryParams(u.queryParams,this.urlTree.queryParams),u.fragment)}createQueryParams(m,u){const C={};return sn(m,(O,$)=>{if("string"==typeof O&&O.startsWith(":")){const Ge=O.substring(1);C[$]=u[Ge]}else C[$]=O}),C}createSegmentGroup(m,u,C,O){const $=this.createSegments(m,u.segments,C,O);let Q={};return sn(u.children,(Ge,f)=>{Q[f]=this.createSegmentGroup(m,Ge,C,O)}),new fe($,Q)}createSegments(m,u,C,O){return u.map($=>$.path.startsWith(":")?this.findPosParam(m,$,O):this.findOrReturn($,C))}findPosParam(m,u,C){const O=C[u.path.substring(1)];if(!O)throw new r.vHH(4001,qr);return O}findOrReturn(m,u){let C=0;for(const O of u){if(O.path===m.path)return u.splice(C),O;C++}return m}}class $r{}class Is{constructor(m,u,C,O,$,Q,Ge){this.injector=m,this.rootComponentType=u,this.config=C,this.urlTree=O,this.url=$,this.paramsInheritanceStrategy=Q,this.urlSerializer=Ge}recognize(){const m=So(this.urlTree.root,[],[],this.config.filter(u=>void 0===u.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,m,ie).pipe((0,Re.U)(u=>{if(null===u)return null;const C=new dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ie,this.rootComponentType,null,this.urlTree.root,-1,{}),O=new Ki(C,u),$=new Bo(this.url,O);return this.inheritParamsAndData($._root),$}))}inheritParamsAndData(m){const u=m.value,C=Pr(u,this.paramsInheritanceStrategy);u.params=Object.freeze(C.params),u.data=Object.freeze(C.data),m.children.forEach(O=>this.inheritParamsAndData(O))}processSegmentGroup(m,u,C,O){return 0===C.segments.length&&C.hasChildren()?this.processChildren(m,u,C):this.processSegment(m,u,C,C.segments,O)}processChildren(m,u,C){return(0,c.D)(Object.keys(C.children)).pipe((0,ye.b)(O=>{const $=C.children[O],Q=fr(u,O);return this.processSegmentGroup(m,Q,$,O)}),Lt((O,$)=>O&&$?(O.push(...$),O):null),function Et(h,m=!1){return(0,ze.e)((u,C)=>{let O=0;u.subscribe((0,xe.x)(C,$=>{const Q=h($,O++);(Q||m)&&C.next($),!Q&&C.complete()}))})}(O=>null!==O),(0,rt.d)(null),mt(),(0,Re.U)(O=>{if(null===O)return null;const $=Os(O);return function Ri(h){h.sort((m,u)=>m.value.outlet===ie?-1:u.value.outlet===ie?1:m.value.outlet.localeCompare(u.value.outlet))}($),$}))}processSegment(m,u,C,O,$){return(0,c.D)(u).pipe((0,ye.b)(Q=>this.processSegmentAgainstRoute(Q._injector??m,Q,C,O,$)),(0,de.P)(Q=>!!Q),dt(Q=>{if(M(Q))return xo(C,O,$)?(0,A.of)([]):(0,A.of)(null);throw Q}))}processSegmentAgainstRoute(m,u,C,O,$){if(u.redirectTo||!us(u,C,O,$))return(0,A.of)(null);let Q;if("**"===u.path){const Ge=O.length>0?Fn(O).parameters:{},f=b(C)+O.length,l=new dr(O,Ge,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,T(u),Ti(u),u.component??u._loadedComponent??null,u,no(C),f,z(u));Q=(0,A.of)({snapshot:l,consumedSegments:[],remainingSegments:[]})}else Q=_r(C,u,O,m).pipe((0,Re.U)(({matched:Ge,consumedSegments:f,remainingSegments:l,parameters:a})=>{if(!Ge)return null;const v=b(C)+f.length;return{snapshot:new dr(f,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,T(u),Ti(u),u.component??u._loadedComponent??null,u,no(C),v,z(u)),consumedSegments:f,remainingSegments:l}}));return Q.pipe((0,ue.w)(Ge=>{if(null===Ge)return(0,A.of)(null);const{snapshot:f,consumedSegments:l,remainingSegments:a}=Ge;m=u._injector??m;const v=u._loadedInjector??m,F=function ds(h){return h.children?h.children:h.loadChildren?h._loadedRoutes:[]}(u),{segmentGroup:G,slicedSegments:ge}=So(C,l,a,F.filter(Qe=>void 0===Qe.redirectTo));if(0===ge.length&&G.hasChildren())return this.processChildren(v,F,G).pipe((0,Re.U)(Qe=>null===Qe?null:[new Ki(f,Qe)]));if(0===F.length&&0===ge.length)return(0,A.of)([new Ki(f,[])]);const Me=Ti(u)===$;return this.processSegment(v,F,G,ge,Me?ie:$).pipe((0,Re.U)(Qe=>null===Qe?null:[new Ki(f,Qe)]))}))}}function Hs(h){const m=h.value.routeConfig;return m&&""===m.path&&void 0===m.redirectTo}function Os(h){const m=[],u=new Set;for(const C of h){if(!Hs(C)){m.push(C);continue}const O=m.find($=>C.value.routeConfig===$.value.routeConfig);void 0!==O?(O.children.push(...C.children),u.add(O)):m.push(C)}for(const C of u){const O=Os(C.children);m.push(new Ki(C.value,O))}return m.filter(C=>!u.has(C))}function no(h){let m=h;for(;m._sourceSegment;)m=m._sourceSegment;return m}function b(h){let m=h,u=m._segmentIndexShift??0;for(;m._sourceSegment;)m=m._sourceSegment,u+=m._segmentIndexShift??0;return u-1}function T(h){return h.data||{}}function z(h){return h.resolve||{}}function $n(h){return"string"==typeof h.title||null===h.title}function kn(h){return(0,ue.w)(m=>{const u=h(m);return u?(0,c.D)(u).pipe((0,Re.U)(()=>m)):(0,A.of)(m)})}const ai=new r.OlP("ROUTES");let ar=(()=>{class h{constructor(u,C){this.injector=u,this.compiler=C,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(u){if(this.componentLoaders.get(u))return this.componentLoaders.get(u);if(u._loadedComponent)return(0,A.of)(u._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(u);const C=tt(u.loadComponent()).pipe((0,Re.U)(Gi),(0,ve.b)($=>{this.onLoadEndListener&&this.onLoadEndListener(u),u._loadedComponent=$}),(0,It.x)(()=>{this.componentLoaders.delete(u)})),O=new He.c(C,()=>new Ee.x).pipe((0,Ce.x)());return this.componentLoaders.set(u,O),O}loadChildren(u,C){if(this.childrenLoaders.get(C))return this.childrenLoaders.get(C);if(C._loadedRoutes)return(0,A.of)({routes:C._loadedRoutes,injector:C._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(C);const $=this.loadModuleFactoryOrRoutes(C.loadChildren).pipe((0,Re.U)(Ge=>{this.onLoadEndListener&&this.onLoadEndListener(C);let f,l,a=!1;Array.isArray(Ge)?l=Ge:(f=Ge.create(u).injector,l=In(f.get(ai,[],r.XFs.Self|r.XFs.Optional)));return{routes:l.map(ri),injector:f}}),(0,It.x)(()=>{this.childrenLoaders.delete(C)})),Q=new He.c($,()=>new Ee.x).pipe((0,Ce.x)());return this.childrenLoaders.set(C,Q),Q}loadModuleFactoryOrRoutes(u){return tt(u()).pipe((0,Re.U)(Gi),(0,be.z)(O=>O instanceof r.YKP||Array.isArray(O)?(0,A.of)(O):(0,c.D)(this.compiler.compileModuleAsync(O))))}}return h.\u0275fac=function(u){return new(u||h)(r.LFG(r.zs3),r.LFG(r.Sil))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Gi(h){return function Ji(h){return h&&"object"==typeof h&&"default"in h}(h)?h.default:h}let kr=(()=>{class h{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Ee.x,this.configLoader=(0,r.f3M)(ar),this.environmentInjector=(0,r.f3M)(r.lqb),this.urlSerializer=(0,r.f3M)(Vt),this.rootContexts=(0,r.f3M)(Cn),this.navigationId=0,this.afterPreactivation=()=>(0,A.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=O=>this.events.next(new Mi(O)),this.configLoader.onLoadStartListener=O=>this.events.next(new Hi(O))}complete(){this.transitions?.complete()}handleNavigationRequest(u){const C=++this.navigationId;this.transitions?.next({...this.transitions.value,...u,id:C})}setupNavigations(u){return this.transitions=new B.X({id:0,targetPageId:0,currentUrlTree:u.currentUrlTree,currentRawUrl:u.currentUrlTree,extractedUrl:u.urlHandlingStrategy.extract(u.currentUrlTree),urlAfterRedirects:u.urlHandlingStrategy.extract(u.currentUrlTree),rawUrl:u.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Zn,restoredState:null,currentSnapshot:u.routerState.snapshot,targetSnapshot:null,currentRouterState:u.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,et.h)(C=>0!==C.id),(0,Re.U)(C=>({...C,extractedUrl:u.urlHandlingStrategy.extract(C.rawUrl)})),(0,ue.w)(C=>{let O=!1,$=!1;return(0,A.of)(C).pipe((0,ve.b)(Q=>{this.currentNavigation={id:Q.id,initialUrl:Q.rawUrl,extractedUrl:Q.extractedUrl,trigger:Q.source,extras:Q.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ue.w)(Q=>{const Ge=u.browserUrlTree.toString(),f=!u.navigated||Q.extractedUrl.toString()!==Ge||Ge!==u.currentUrlTree.toString();if(!f&&"reload"!==(Q.extras.onSameUrlNavigation??u.onSameUrlNavigation)){const a="";return this.events.next(new An(Q.id,u.serializeUrl(C.rawUrl),a,0)),u.rawUrlTree=Q.rawUrl,Q.resolve(null),le.E}if(u.urlHandlingStrategy.shouldProcessUrl(Q.rawUrl))return io(Q.source)&&(u.browserUrlTree=Q.extractedUrl),(0,A.of)(Q).pipe((0,ue.w)(a=>{const v=this.transitions?.getValue();return this.events.next(new Rn(a.id,this.urlSerializer.serialize(a.extractedUrl),a.source,a.restoredState)),v!==this.transitions?.getValue()?le.E:Promise.resolve(a)}),function jr(h,m,u,C){return(0,ue.w)(O=>function eo(h,m,u,C,O){return new to(h,m,u,C,O).apply()}(h,m,u,O.extractedUrl,C).pipe((0,Re.U)($=>({...O,urlAfterRedirects:$}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,u.config),(0,ve.b)(a=>{this.currentNavigation={...this.currentNavigation,finalUrl:a.urlAfterRedirects},C.urlAfterRedirects=a.urlAfterRedirects}),function _e(h,m,u,C,O){return(0,be.z)($=>function xs(h,m,u,C,O,$,Q="emptyOnly"){return new Is(h,m,u,C,O,Q,$).recognize().pipe((0,ue.w)(Ge=>null===Ge?function si(h){return new q.y(m=>m.error(h))}(new $r):(0,A.of)(Ge)))}(h,m,u,$.urlAfterRedirects,C.serialize($.urlAfterRedirects),C,O).pipe((0,Re.U)(Q=>({...$,targetSnapshot:Q}))))}(this.environmentInjector,this.rootComponentType,u.config,this.urlSerializer,u.paramsInheritanceStrategy),(0,ve.b)(a=>{if(C.targetSnapshot=a.targetSnapshot,"eager"===u.urlUpdateStrategy){if(!a.extras.skipLocationChange){const F=u.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl);u.setBrowserUrl(F,a)}u.browserUrlTree=a.urlAfterRedirects}const v=new rr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(v)}));if(f&&u.urlHandlingStrategy.shouldProcessUrl(u.rawUrlTree)){const{id:a,extractedUrl:v,source:F,restoredState:G,extras:ge}=Q,Me=new Rn(a,this.urlSerializer.serialize(v),F,G);this.events.next(Me);const Qe=Ei(v,this.rootComponentType).snapshot;return C={...Q,targetSnapshot:Qe,urlAfterRedirects:v,extras:{...ge,skipLocationChange:!1,replaceUrl:!1}},(0,A.of)(C)}{const a="";return this.events.next(new An(Q.id,u.serializeUrl(C.extractedUrl),a,1)),u.rawUrlTree=Q.rawUrl,Q.resolve(null),le.E}}),(0,ve.b)(Q=>{const Ge=new Zr(Q.id,this.urlSerializer.serialize(Q.extractedUrl),this.urlSerializer.serialize(Q.urlAfterRedirects),Q.targetSnapshot);this.events.next(Ge)}),(0,Re.U)(Q=>C={...Q,guards:Ao(Q.targetSnapshot,Q.currentSnapshot,this.rootContexts)}),function ot(h,m){return(0,be.z)(u=>{const{targetSnapshot:C,currentSnapshot:O,guards:{canActivateChecks:$,canDeactivateChecks:Q}}=u;return 0===Q.length&&0===$.length?(0,A.of)({...u,guardsResult:!0}):function rn(h,m,u,C){return(0,c.D)(h).pipe((0,be.z)(O=>function go(h,m,u,C,O){const $=m&&m.routeConfig?m.routeConfig.canDeactivate:null;if(!$||0===$.length)return(0,A.of)(!0);const Q=$.map(Ge=>{const f=Vn(m)??O,l=Mr(Ge,f);return tt(function Ho(h){return h&&Sr(h.canDeactivate)}(l)?l.canDeactivate(h,m,u,C):f.runInContext(()=>l(h,m,u,C))).pipe((0,de.P)())});return(0,A.of)(Q).pipe(Z())}(O.component,O.route,u,m,C)),(0,de.P)(O=>!0!==O,!0))}(Q,C,O,h).pipe((0,be.z)(Ge=>Ge&&function Ss(h){return"boolean"==typeof h}(Ge)?function Yn(h,m,u,C){return(0,c.D)(m).pipe((0,ye.b)(O=>(0,J.z)(function Xi(h,m){return null!==h&&m&&m(new Yi(h)),(0,A.of)(!0)}(O.route.parent,C),function oi(h,m){return null!==h&&m&&m(new Qn(h)),(0,A.of)(!0)}(O.route,C),function Vr(h,m,u){const C=m[m.length-1],$=m.slice(0,m.length-1).reverse().map(Q=>function fo(h){const m=h.routeConfig?h.routeConfig.canActivateChild:null;return m&&0!==m.length?{node:h,guards:m}:null}(Q)).filter(Q=>null!==Q).map(Q=>(0,ee.P)(()=>{const Ge=Q.guards.map(f=>{const l=Vn(Q.node)??u,a=Mr(f,l);return tt(function Uo(h){return h&&Sr(h.canActivateChild)}(a)?a.canActivateChild(C,h):l.runInContext(()=>a(C,h))).pipe((0,de.P)())});return(0,A.of)(Ge).pipe(Z())}));return(0,A.of)($).pipe(Z())}(h,O.path,u),function gr(h,m,u){const C=m.routeConfig?m.routeConfig.canActivate:null;if(!C||0===C.length)return(0,A.of)(!0);const O=C.map($=>(0,ee.P)(()=>{const Q=Vn(m)??u,Ge=Mr($,Q);return tt(function cs(h){return h&&Sr(h.canActivate)}(Ge)?Ge.canActivate(m,h):Q.runInContext(()=>Ge(m,h))).pipe((0,de.P)())}));return(0,A.of)(O).pipe(Z())}(h,O.route,u))),(0,de.P)(O=>!0!==O,!0))}(C,$,h,m):(0,A.of)(Ge)),(0,Re.U)(Ge=>({...u,guardsResult:Ge})))})}(this.environmentInjector,Q=>this.events.next(Q)),(0,ve.b)(Q=>{if(C.guardsResult=Q.guardsResult,P(Q.guardsResult))throw gt(0,Q.guardsResult);const Ge=new Ii(Q.id,this.urlSerializer.serialize(Q.extractedUrl),this.urlSerializer.serialize(Q.urlAfterRedirects),Q.targetSnapshot,!!Q.guardsResult);this.events.next(Ge)}),(0,et.h)(Q=>!!Q.guardsResult||(u.restoreHistory(Q),this.cancelNavigationTransition(Q,"",3),!1)),kn(Q=>{if(Q.guards.canActivateChecks.length)return(0,A.of)(Q).pipe((0,ve.b)(Ge=>{const f=new gi(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),this.urlSerializer.serialize(Ge.urlAfterRedirects),Ge.targetSnapshot);this.events.next(f)}),(0,ue.w)(Ge=>{let f=!1;return(0,A.of)(Ge).pipe(function st(h,m){return(0,be.z)(u=>{const{targetSnapshot:C,guards:{canActivateChecks:O}}=u;if(!O.length)return(0,A.of)(u);let $=0;return(0,c.D)(O).pipe((0,ye.b)(Q=>function pt(h,m,u,C){const O=h.routeConfig,$=h._resolve;return void 0!==O?.title&&!$n(O)&&($[Ve]=O.title),function nn(h,m,u,C){const O=function jn(h){return[...Object.keys(h),...Object.getOwnPropertySymbols(h)]}(h);if(0===O.length)return(0,A.of)({});const $={};return(0,c.D)(O).pipe((0,be.z)(Q=>function Gn(h,m,u,C){const O=Vn(m)??C,$=Mr(h,O);return tt($.resolve?$.resolve(m,u):O.runInContext(()=>$(m,u)))}(h[Q],m,u,C).pipe((0,de.P)(),(0,ve.b)(Ge=>{$[Q]=Ge}))),Mt(1),(0,bt.h)($),dt(Q=>M(Q)?le.E:(0,j._)(Q)))}($,h,m,C).pipe((0,Re.U)(Q=>(h._resolvedData=Q,h.data=Pr(h,u).resolve,O&&$n(O)&&(h.data[Ve]=O.title),null)))}(Q.route,C,h,m)),(0,ve.b)(()=>$++),Mt(1),(0,be.z)(Q=>$===O.length?(0,A.of)(u):le.E))})}(u.paramsInheritanceStrategy,this.environmentInjector),(0,ve.b)({next:()=>f=!0,complete:()=>{f||(u.restoreHistory(Ge),this.cancelNavigationTransition(Ge,"",2))}}))}),(0,ve.b)(Ge=>{const f=new Ui(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),this.urlSerializer.serialize(Ge.urlAfterRedirects),Ge.targetSnapshot);this.events.next(f)}))}),kn(Q=>{const Ge=f=>{const l=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(f.routeConfig).pipe((0,ve.b)(a=>{f.component=a}),(0,Re.U)(()=>{})));for(const a of f.children)l.push(...Ge(a));return l};return(0,se.a)(Ge(Q.targetSnapshot.root)).pipe((0,rt.d)(),(0,ke.q)(1))}),kn(()=>this.afterPreactivation()),(0,Re.U)(Q=>{const Ge=function Fr(h,m,u){const C=Oi(h,m._root,u?u._root:void 0);return new Or(C,m)}(u.routeReuseStrategy,Q.targetSnapshot,Q.currentRouterState);return C={...Q,targetRouterState:Ge}}),(0,ve.b)(Q=>{u.currentUrlTree=Q.urlAfterRedirects,u.rawUrlTree=u.urlHandlingStrategy.merge(Q.urlAfterRedirects,Q.rawUrl),u.routerState=Q.targetRouterState,"deferred"===u.urlUpdateStrategy&&(Q.extras.skipLocationChange||u.setBrowserUrl(u.rawUrlTree,Q),u.browserUrlTree=Q.urlAfterRedirects)}),((h,m,u)=>(0,Re.U)(C=>(new ho(m,C.targetRouterState,C.currentRouterState,u).activate(h),C)))(this.rootContexts,u.routeReuseStrategy,Q=>this.events.next(Q)),(0,ve.b)({next:Q=>{O=!0,this.lastSuccessfulNavigation=this.currentNavigation,u.navigated=!0,this.events.next(new di(Q.id,this.urlSerializer.serialize(Q.extractedUrl),this.urlSerializer.serialize(u.currentUrlTree))),u.titleStrategy?.updateTitle(Q.targetRouterState.snapshot),Q.resolve(!0)},complete:()=>{O=!0}}),(0,It.x)(()=>{O||$||this.cancelNavigationTransition(C,"",1),this.currentNavigation?.id===C.id&&(this.currentNavigation=null)}),dt(Q=>{if($=!0,pn(Q)){Gt(Q)||(u.navigated=!0,u.restoreHistory(C,!0));const Ge=new Ai(C.id,this.urlSerializer.serialize(C.extractedUrl),Q.message,Q.cancellationCode);if(this.events.next(Ge),Gt(Q)){const f=u.urlHandlingStrategy.merge(Q.url,u.rawUrlTree),l={skipLocationChange:C.extras.skipLocationChange,replaceUrl:"eager"===u.urlUpdateStrategy||io(C.source)};u.scheduleNavigation(f,Zn,null,l,{resolve:C.resolve,reject:C.reject,promise:C.promise})}else C.resolve(!1)}else{u.restoreHistory(C,!0);const Ge=new ir(C.id,this.urlSerializer.serialize(C.extractedUrl),Q,C.targetSnapshot??void 0);this.events.next(Ge);try{C.resolve(u.errorHandler(Q))}catch(f){C.reject(f)}}return le.E}))}))}cancelNavigationTransition(u,C,O){const $=new Ai(u.id,this.urlSerializer.serialize(u.extractedUrl),C,O);this.events.next($),u.resolve(!1)}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function io(h){return h!==Zn}let yo=(()=>{class h{buildTitle(u){let C,O=u.root;for(;void 0!==O;)C=this.getResolvedTitleForRoute(O)??C,O=O.children.find($=>$.outlet===ie);return C}getResolvedTitleForRoute(u){return u.data[Ve]}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(hs)},providedIn:"root"}),h})(),hs=(()=>{class h extends yo{constructor(u){super(),this.title=u}updateTitle(u){const C=this.buildTitle(u);void 0!==C&&this.title.setTitle(C)}}return h.\u0275fac=function(u){return new(u||h)(r.LFG(L.Dx))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})(),Jo=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(js)},providedIn:"root"}),h})();class fs{shouldDetach(m){return!1}store(m,u){}shouldAttach(m){return!1}retrieve(m){return null}shouldReuseRoute(m,u){return m.routeConfig===u.routeConfig}}let js=(()=>{class h extends fs{}return h.\u0275fac=function(){let m;return function(C){return(m||(m=r.n5z(h)))(C||h)}}(),h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const Oo=new r.OlP("",{providedIn:"root",factory:()=>({})});let qs=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(Tr)},providedIn:"root"}),h})(),Tr=(()=>{class h{shouldProcessUrl(u){return!0}extract(u){return u}merge(u,C){return u}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function $o(h){throw h}function qo(h,m,u){return m.parse("/")}const Gr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},es={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vi=(()=>{class h{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,r.f3M)(r.c2e),this.isNgZoneEnabled=!1,this.options=(0,r.f3M)(Oo,{optional:!0})||{},this.errorHandler=this.options.errorHandler||$o,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||qo,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,r.f3M)(qs),this.routeReuseStrategy=(0,r.f3M)(Jo),this.urlCreationStrategy=(0,r.f3M)(ui),this.titleStrategy=(0,r.f3M)(yo),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=In((0,r.f3M)(ai,{optional:!0})??[]),this.navigationTransitions=(0,r.f3M)(kr),this.urlSerializer=(0,r.f3M)(Vt),this.location=(0,r.f3M)(Ne.Ye),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=Ei(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(u=>{this.lastSuccessfulId=u.id,this.currentPageId=u.targetPageId},u=>{this.console.warn(`Unhandled Navigation Error: ${u}`)})}resetRootComponentType(u){this.routerState.root.component=u,this.navigationTransitions.rootComponentType=u}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const u=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Zn,u)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(u=>{const C="popstate"===u.type?"popstate":"hashchange";"popstate"===C&&setTimeout(()=>{this.navigateToSyncWithBrowser(u.url,C,u.state)},0)}))}navigateToSyncWithBrowser(u,C,O){const $={replaceUrl:!0},Q=O?.navigationId?O:null;if(O){const f={...O};delete f.navigationId,delete f.\u0275routerPageId,0!==Object.keys(f).length&&($.state=f)}const Ge=this.parseUrl(u);this.scheduleNavigation(Ge,C,Q,$)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(u){this.config=u.map(ri),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}createUrlTree(u,C={}){const{relativeTo:O,queryParams:$,fragment:Q,queryParamsHandling:Ge,preserveFragment:f}=C,l=f?this.currentUrlTree.fragment:Q;let a=null;switch(Ge){case"merge":a={...this.currentUrlTree.queryParams,...$};break;case"preserve":a=this.currentUrlTree.queryParams;break;default:a=$||null}return null!==a&&(a=this.removeEmptyProps(a)),this.urlCreationStrategy.createUrlTree(O,this.routerState,this.currentUrlTree,u,a,l??null)}navigateByUrl(u,C={skipLocationChange:!1}){const O=P(u)?u:this.parseUrl(u),$=this.urlHandlingStrategy.merge(O,this.rawUrlTree);return this.scheduleNavigation($,Zn,null,C)}navigate(u,C={skipLocationChange:!1}){return function ps(h){for(let m=0;m<h.length;m++){if(null==h[m])throw new r.vHH(4008,!1)}}(u),this.navigateByUrl(this.createUrlTree(u,C),C)}serializeUrl(u){return this.urlSerializer.serialize(u)}parseUrl(u){let C;try{C=this.urlSerializer.parse(u)}catch(O){C=this.malformedUriErrorHandler(O,this.urlSerializer,u)}return C}isActive(u,C){let O;if(O=!0===C?{...Gr}:!1===C?{...es}:C,P(u))return nt(this.currentUrlTree,u,O);const $=this.parseUrl(u);return nt(this.currentUrlTree,$,O)}removeEmptyProps(u){return Object.keys(u).reduce((C,O)=>{const $=u[O];return null!=$&&(C[O]=$),C},{})}scheduleNavigation(u,C,O,$,Q){if(this.disposed)return Promise.resolve(!1);let Ge,f,l,a;return Q?(Ge=Q.resolve,f=Q.reject,l=Q.promise):l=new Promise((v,F)=>{Ge=v,f=F}),a="computed"===this.canceledNavigationResolution?O&&O.\u0275routerPageId?O.\u0275routerPageId:$.replaceUrl||$.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:a,source:C,restoredState:O,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:u,extras:$,resolve:Ge,reject:f,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(v=>Promise.reject(v))}setBrowserUrl(u,C){const O=this.urlSerializer.serialize(u),$={...C.extras.state,...this.generateNgRouterState(C.id,C.targetPageId)};this.location.isCurrentPathEqualTo(O)||C.extras.replaceUrl?this.location.replaceState(O,"",$):this.location.go(O,"",$)}restoreHistory(u,C=!1){if("computed"===this.canceledNavigationResolution){const O=this.currentPageId-u.targetPageId;"popstate"!==u.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===O?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===O&&(this.resetState(u),this.browserUrlTree=u.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(O)}else"replace"===this.canceledNavigationResolution&&(C&&this.resetState(u),this.resetUrlToCurrentUrlTree())}resetState(u){this.routerState=u.currentRouterState,this.currentUrlTree=u.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,u.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(u,C){return"computed"===this.canceledNavigationResolution?{navigationId:u,\u0275routerPageId:C}:{navigationId:u}}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();class xr{}let ro=(()=>{class h{constructor(u,C,O,$,Q){this.router=u,this.injector=O,this.preloadingStrategy=$,this.loader=Q}setUpPreloading(){this.subscription=this.router.events.pipe((0,et.h)(u=>u instanceof di),(0,ye.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(u,C){const O=[];for(const $ of C){$.providers&&!$._injector&&($._injector=(0,r.MMx)($.providers,u,`Route: ${$.path}`));const Q=$._injector??u,Ge=$._loadedInjector??Q;$.loadChildren&&!$._loadedRoutes&&void 0===$.canLoad||$.loadComponent&&!$._loadedComponent?O.push(this.preloadConfig(Q,$)):($.children||$._loadedRoutes)&&O.push(this.processRoutes(Ge,$.children??$._loadedRoutes))}return(0,c.D)(O).pipe((0,Xe.J)())}preloadConfig(u,C){return this.preloadingStrategy.preload(C,()=>{let O;O=C.loadChildren&&void 0===C.canLoad?this.loader.loadChildren(u,C):(0,A.of)(null);const $=O.pipe((0,be.z)(Q=>null===Q?(0,A.of)(void 0):(C._loadedRoutes=Q.routes,C._loadedInjector=Q.injector,this.processRoutes(Q.injector??u,Q.routes))));if(C.loadComponent&&!C._loadedComponent){const Q=this.loader.loadComponent(C);return(0,c.D)([$,Q]).pipe((0,Xe.J)())}return $})}}return h.\u0275fac=function(u){return new(u||h)(r.LFG(Vi),r.LFG(r.Sil),r.LFG(r.lqb),r.LFG(xr),r.LFG(ar))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const zo=new r.OlP("");let ms=(()=>{class h{constructor(u,C,O,$,Q={}){this.urlSerializer=u,this.transitions=C,this.viewportScroller=O,this.zone=$,this.options=Q,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Q.scrollPositionRestoration=Q.scrollPositionRestoration||"disabled",Q.anchorScrolling=Q.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(u=>{u instanceof Rn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=u.navigationTrigger,this.restoredId=u.restoredState?u.restoredState.navigationId:0):u instanceof di&&(this.lastId=u.id,this.scheduleScrollEvent(u,this.urlSerializer.parse(u.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(u=>{u instanceof Er&&(u.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(u.position):u.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(u.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(u,C){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Er(u,"popstate"===this.lastSource?this.store[this.restoredId]:null,C))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return h.\u0275fac=function(u){r.$Z()},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac}),h})();function yr(h,m){return{\u0275kind:h,\u0275providers:m}}function oo(){const h=(0,r.f3M)(r.zs3);return m=>{const u=h.get(r.z2F);if(m!==u.components[0])return;const C=h.get(Vi),O=h.get(so);1===h.get(Fo)&&C.initialNavigation(),h.get(ta,null,r.XFs.Optional)?.setUpPreloading(),h.get(zo,null,r.XFs.Optional)?.init(),C.resetRootComponentType(u.componentTypes[0]),O.closed||(O.next(),O.unsubscribe())}}const so=new r.OlP("",{factory:()=>new Ee.x}),Fo=new r.OlP("",{providedIn:"root",factory:()=>1});const ta=new r.OlP("");function gs(h){return yr(0,[{provide:ta,useExisting:ro},{provide:xr,useExisting:h}])}const na=new r.OlP("ROUTER_FORROOT_GUARD"),ga=[Ne.Ye,{provide:Vt,useClass:wn},Vi,Cn,{provide:Qi,useFactory:function ea(h){return h.routerState.root},deps:[Vi]},ar,[]];function _a(){return new r.PXZ("Router",Vi)}let va=(()=>{class h{constructor(u){}static forRoot(u,C){return{ngModule:h,providers:[ga,[],{provide:ai,multi:!0,useValue:u},{provide:na,useFactory:xi,deps:[[Vi,new r.FiY,new r.tp0]]},{provide:Oo,useValue:C||{}},C?.useHash?{provide:Ne.S$,useClass:Ne.Do}:{provide:Ne.S$,useClass:Ne.b0},{provide:zo,useFactory:()=>{const h=(0,r.f3M)(Ne.EM),m=(0,r.f3M)(r.R0b),u=(0,r.f3M)(Oo),C=(0,r.f3M)(kr),O=(0,r.f3M)(Vt);return u.scrollOffset&&h.setOffset(u.scrollOffset),new ms(O,C,h,m,u)}},C?.preloadingStrategy?gs(C.preloadingStrategy).\u0275providers:[],{provide:r.PXZ,multi:!0,useFactory:_a},C?.initialNavigation?Co(C):[],[{provide:Yo,useFactory:oo},{provide:r.tb,multi:!0,useExisting:Yo}]]}}static forChild(u){return{ngModule:h,providers:[{provide:ai,multi:!0,useValue:u}]}}}return h.\u0275fac=function(u){return new(u||h)(r.LFG(na,8))},h.\u0275mod=r.oAB({type:h}),h.\u0275inj=r.cJS({imports:[wr]}),h})();function xi(h){return"guarded"}function Co(h){return["disabled"===h.initialNavigation?yr(3,[{provide:r.ip1,multi:!0,useFactory:()=>{const m=(0,r.f3M)(Vi);return()=>{m.setUpLocationChangeListener()}}},{provide:Fo,useValue:2}]).\u0275providers:[],"enabledBlocking"===h.initialNavigation?yr(2,[{provide:Fo,useValue:0},{provide:r.ip1,multi:!0,deps:[r.zs3],useFactory:m=>{const u=m.get(Ne.V_,Promise.resolve());return()=>u.then(()=>new Promise(O=>{const $=m.get(Vi),Q=m.get(so);(function C(O){m.get(Vi).events.pipe((0,et.h)(Q=>Q instanceof di||Q instanceof Ai||Q instanceof ir),(0,Re.U)(Q=>Q instanceof di||Q instanceof Ai&&(0===Q.code||1===Q.code)&&null),(0,et.h)(Q=>null!==Q),(0,ke.q)(1)).subscribe(()=>{O()})})(()=>{O(!0)}),m.get(kr).afterPreactivation=()=>(O(!0),Q.closed?(0,A.of)(void 0):Q),$.initialNavigation()}))}}]).\u0275providers:[]]}const Yo=new r.OlP("")},3942:(Ct,Te,g)=>{g.d(Te,{Z:()=>Ne});var r=g(2090),c=g(4859),A=g(9681),B=g(1877);class X{constructor(ue,ke){this._delegate=ue,this.firebase=ke,(0,A._addComponent)(ue,new c.wA("app-compat",()=>this,"PUBLIC")),this.container=ue.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ue){this._delegate.automaticDataCollectionEnabled=ue}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(ue=>{this._delegate.checkDestroyed(),ue()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,A.deleteApp)(this._delegate)))}_getService(ue,ke=A._DEFAULT_ENTRY_NAME){var Fe;this._delegate.checkDestroyed();const et=this._delegate.container.getProvider(ue);return!et.isInitialized()&&"EXPLICIT"===(null===(Fe=et.getComponent())||void 0===Fe?void 0:Fe.instantiationMode)&&et.initialize(),et.getImmediate({identifier:ke})}_removeServiceInstance(ue,ke=A._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(ue).clearInstance(ke)}_addComponent(ue){(0,A._addComponent)(this._delegate,ue)}_addOrOverwriteComponent(ue){(0,A._addOrOverwriteComponent)(this._delegate,ue)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const J=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."}),j=function ne(){const Re=function ee(Re){const ue={},ke={__esModule:!0,initializeApp:function be(Ue,xe={}){const ze=A.initializeApp(Ue,xe);if((0,r.r3)(ue,ze.name))return ue[ze.name];const dt=new Re(ze,ke);return ue[ze.name]=dt,dt},app:et,registerVersion:A.registerVersion,setLogLevel:A.setLogLevel,onLog:A.onLog,apps:null,SDK_VERSION:A.SDK_VERSION,INTERNAL:{registerComponent:function ye(Ue){const xe=Ue.name,ze=xe.replace("-compat","");if(A._registerComponent(Ue)&&"PUBLIC"===Ue.type){const dt=(vt=et())=>{if("function"!=typeof vt[ze])throw J.create("invalid-app-argument",{appName:xe});return vt[ze]()};void 0!==Ue.serviceProps&&(0,r.ZB)(dt,Ue.serviceProps),ke[ze]=dt,Re.prototype[ze]=function(...vt){return this._getService.bind(this,xe).apply(this,Ue.multipleInstances?vt:[])}}return"PUBLIC"===Ue.type?ke[ze]:null},removeApp:function Fe(Ue){delete ue[Ue]},useAsService:function ve(Ue,xe){return"serverAuth"===xe?null:xe},modularAPIs:A}};function et(Ue){if(!(0,r.r3)(ue,Ue=Ue||A._DEFAULT_ENTRY_NAME))throw J.create("no-app",{appName:Ue});return ue[Ue]}return ke.default=ke,Object.defineProperty(ke,"apps",{get:function de(){return Object.keys(ue).map(Ue=>ue[Ue])}}),et.App=Re,ke}(X);return Re.INTERNAL=Object.assign(Object.assign({},Re.INTERNAL),{createFirebaseNamespace:ne,extendNamespace:function ue(ke){(0,r.ZB)(Re,ke)},createSubscribe:r.ne,ErrorFactory:r.LL,deepExtend:r.ZB}),Re}(),q=new B.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 Re=self.firebase.SDK_VERSION;Re&&Re.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 Ne=j;!function Ee(Re){(0,A.registerVersion)("@firebase/app-compat","0.2.3",Re)}()},9681:(Ct,Te,g)=>{g.r(Te),g.d(Te,{FirebaseError:()=>B.ZR,SDK_VERSION:()=>Tn,_DEFAULT_ENTRY_NAME:()=>Et,_addComponent:()=>Xe,_addOrOverwriteComponent:()=>L,_apps:()=>It,_clearComponents:()=>xt,_components:()=>Ce,_getProvider:()=>Ve,_registerComponent:()=>ie,_removeServiceInstance:()=>ut,deleteApp:()=>sn,getApp:()=>Fn,getApps:()=>Pn,initializeApp:()=>In,onLog:()=>ae,registerVersion:()=>W,setLogLevel:()=>Se});var r=g(5861),c=g(4859),A=g(1877),B=g(2090),X=g(8766);class se{constructor(te){this.container=te}getPlatformInfoString(){return this.container.getProviders().map(V=>{if(function J(Oe){return"VERSION"===Oe.getComponent()?.type}(V)){const U=V.getImmediate();return`${U.library}/${U.version}`}return null}).filter(V=>V).join(" ")}}const ee="@firebase/app",j=new A.Yd("@firebase/app"),Et="[DEFAULT]",bt={[ee]:"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"},It=new Map,Ce=new Map;function Xe(Oe,te){try{Oe.container.addComponent(te)}catch(V){j.debug(`Component ${te.name} failed to register with FirebaseApp ${Oe.name}`,V)}}function L(Oe,te){Oe.container.addOrOverwriteComponent(te)}function ie(Oe){const te=Oe.name;if(Ce.has(te))return j.debug(`There were multiple attempts to register component ${te}.`),!1;Ce.set(te,Oe);for(const V of It.values())Xe(V,Oe);return!0}function Ve(Oe,te){const V=Oe.container.getProvider("heartbeat").getImmediate({optional:!0});return V&&V.triggerHeartbeat(),Oe.container.getProvider(te)}function ut(Oe,te,V=Et){Ve(Oe,te).clearInstance(V)}function xt(){Ce.clear()}const zt=new B.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","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 Jt{constructor(te,V,U){this._isDeleted=!1,this._options=Object.assign({},te),this._config=Object.assign({},V),this._name=V.name,this._automaticDataCollectionEnabled=V.automaticDataCollectionEnabled,this._container=U,this.container.addComponent(new c.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(te){this.checkDestroyed(),this._automaticDataCollectionEnabled=te}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(te){this._isDeleted=te}checkDestroyed(){if(this.isDeleted)throw zt.create("app-deleted",{appName:this._name})}}const Tn="9.17.1";function In(Oe,te={}){let V=Oe;"object"!=typeof te&&(te={name:te});const U=Object.assign({name:Et,automaticDataCollectionEnabled:!1},te),re=U.name;if("string"!=typeof re||!re)throw zt.create("bad-app-name",{appName:String(re)});if(V||(V=(0,B.aH)()),!V)throw zt.create("no-options");const Ke=It.get(re);if(Ke){if((0,B.vZ)(V,Ke.options)&&(0,B.vZ)(U,Ke.config))return Ke;throw zt.create("duplicate-app",{appName:re})}const K=new c.H0(re);for(const De of Ce.values())K.addComponent(De);const ce=new Jt(V,U,K);return It.set(re,ce),ce}function Fn(Oe=Et){const te=It.get(Oe);if(!te&&Oe===Et)return In();if(!te)throw zt.create("no-app",{appName:Oe});return te}function Pn(){return Array.from(It.values())}function sn(Oe){return tt.apply(this,arguments)}function tt(){return(tt=(0,r.Z)(function*(Oe){const te=Oe.name;It.has(te)&&(It.delete(te),yield Promise.all(Oe.container.getProviders().map(V=>V.delete())),Oe.isDeleted=!0)})).apply(this,arguments)}function W(Oe,te,V){var U;let re=null!==(U=bt[Oe])&&void 0!==U?U:Oe;V&&(re+=`-${V}`);const Ke=re.match(/\s|\//),K=te.match(/\s|\//);if(Ke||K){const ce=[`Unable to register library "${re}" with version "${te}":`];return Ke&&ce.push(`library name "${re}" contains illegal characters (whitespace or "/")`),Ke&&K&&ce.push("and"),K&&ce.push(`version name "${te}" contains illegal characters (whitespace or "/")`),void j.warn(ce.join(" "))}ie(new c.wA(`${re}-version`,()=>({library:re,version:te}),"VERSION"))}function ae(Oe,te){if(null!==Oe&&"function"!=typeof Oe)throw zt.create("invalid-log-argument");(0,A.Am)(Oe,te)}function Se(Oe){(0,A.Ub)(Oe)}const At="firebase-heartbeat-store";let Ht=null;function Pt(){return Ht||(Ht=(0,X.X3)("firebase-heartbeat-database",1,{upgrade:(Oe,te)=>{0===te&&Oe.createObjectStore(At)}}).catch(Oe=>{throw zt.create("idb-open",{originalErrorMessage:Oe.message})})),Ht}function we(){return(we=(0,r.Z)(function*(Oe){try{return(yield Pt()).transaction(At).objectStore(At).get(Ye(Oe))}catch(te){if(te instanceof B.ZR)j.warn(te.message);else{const V=zt.create("idb-get",{originalErrorMessage:te?.message});j.warn(V.message)}}})).apply(this,arguments)}function lt(Oe,te){return fe.apply(this,arguments)}function fe(){return(fe=(0,r.Z)(function*(Oe,te){try{const U=(yield Pt()).transaction(At,"readwrite");return yield U.objectStore(At).put(te,Ye(Oe)),U.done}catch(V){if(V instanceof B.ZR)j.warn(V.message);else{const U=zt.create("idb-set",{originalErrorMessage:V?.message});j.warn(U.message)}}})).apply(this,arguments)}function Ye(Oe){return`${Oe.name}!${Oe.options.appId}`}class an{constructor(te){this.container=te,this._heartbeatsCache=null;const V=this.container.getProvider("app").getImmediate();this._storage=new ln(V),this._heartbeatsCachePromise=this._storage.read().then(U=>(this._heartbeatsCache=U,U))}triggerHeartbeat(){var te=this;return(0,r.Z)(function*(){const U=te.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),re=Vt();if(null===te._heartbeatsCache&&(te._heartbeatsCache=yield te._heartbeatsCachePromise),te._heartbeatsCache.lastSentHeartbeatDate!==re&&!te._heartbeatsCache.heartbeats.some(Ke=>Ke.date===re))return te._heartbeatsCache.heartbeats.push({date:re,agent:U}),te._heartbeatsCache.heartbeats=te._heartbeatsCache.heartbeats.filter(Ke=>{const K=new Date(Ke.date).valueOf();return Date.now()-K<=2592e6}),te._storage.overwrite(te._heartbeatsCache)})()}getHeartbeatsHeader(){var te=this;return(0,r.Z)(function*(){if(null===te._heartbeatsCache&&(yield te._heartbeatsCachePromise),null===te._heartbeatsCache||0===te._heartbeatsCache.heartbeats.length)return"";const V=Vt(),{heartbeatsToSend:U,unsentEntries:re}=function wn(Oe,te=1024){const V=[];let U=Oe.slice();for(const re of Oe){const Ke=V.find(K=>K.agent===re.agent);if(Ke){if(Ke.dates.push(re.date),xn(V)>te){Ke.dates.pop();break}}else if(V.push({agent:re.agent,dates:[re.date]}),xn(V)>te){V.pop();break}U=U.slice(1)}return{heartbeatsToSend:V,unsentEntries:U}}(te._heartbeatsCache.heartbeats),Ke=(0,B.L)(JSON.stringify({version:2,heartbeats:U}));return te._heartbeatsCache.lastSentHeartbeatDate=V,re.length>0?(te._heartbeatsCache.heartbeats=re,yield te._storage.overwrite(te._heartbeatsCache)):(te._heartbeatsCache.heartbeats=[],te._storage.overwrite(te._heartbeatsCache)),Ke})()}}function Vt(){return(new Date).toISOString().substring(0,10)}class ln{constructor(te){this.app=te,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,r.Z)(function*(){return!!(0,B.hl)()&&(0,B.eu)().then(()=>!0).catch(()=>!1)})()}read(){var te=this;return(0,r.Z)(function*(){return(yield te._canUseIndexedDBPromise)&&(yield function St(Oe){return we.apply(this,arguments)}(te.app))||{heartbeats:[]}})()}overwrite(te){var V=this;return(0,r.Z)(function*(){var U;if(yield V._canUseIndexedDBPromise){const Ke=yield V.read();return lt(V.app,{lastSentHeartbeatDate:null!==(U=te.lastSentHeartbeatDate)&&void 0!==U?U:Ke.lastSentHeartbeatDate,heartbeats:te.heartbeats})}})()}add(te){var V=this;return(0,r.Z)(function*(){var U;if(yield V._canUseIndexedDBPromise){const Ke=yield V.read();return lt(V.app,{lastSentHeartbeatDate:null!==(U=te.lastSentHeartbeatDate)&&void 0!==U?U:Ke.lastSentHeartbeatDate,heartbeats:[...Ke.heartbeats,...te.heartbeats]})}})()}}function xn(Oe){return(0,B.L)(JSON.stringify({version:2,heartbeats:Oe})).length}!function Sn(Oe){ie(new c.wA("platform-logger",te=>new se(te),"PRIVATE")),ie(new c.wA("heartbeat",te=>new an(te),"PRIVATE")),W(ee,"0.9.3",Oe),W(ee,"0.9.3","esm2017"),W("fire-js","")}("")},4859:(Ct,Te,g)=>{g.d(Te,{H0:()=>ee,wA:()=>A});var r=g(5861),c=g(2090);class A{constructor(j,q,le){this.name=j,this.instanceFactory=q,this.type=le,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(j){return this.instantiationMode=j,this}setMultipleInstances(j){return this.multipleInstances=j,this}setServiceProps(j){return this.serviceProps=j,this}setInstanceCreatedCallback(j){return this.onInstanceCreated=j,this}}const B="[DEFAULT]";class X{constructor(j,q){this.name=j,this.container=q,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(j){const q=this.normalizeInstanceIdentifier(j);if(!this.instancesDeferred.has(q)){const le=new c.BH;if(this.instancesDeferred.set(q,le),this.isInitialized(q)||this.shouldAutoInitialize())try{const He=this.getOrInitializeService({instanceIdentifier:q});He&&le.resolve(He)}catch{}}return this.instancesDeferred.get(q).promise}getImmediate(j){var q;const le=this.normalizeInstanceIdentifier(j?.identifier),He=null!==(q=j?.optional)&&void 0!==q&&q;if(!this.isInitialized(le)&&!this.shouldAutoInitialize()){if(He)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:le})}catch(Ee){if(He)return null;throw Ee}}getComponent(){return this.component}setComponent(j){if(j.name!==this.name)throw Error(`Mismatching Component ${j.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=j,this.shouldAutoInitialize()){if(function J(ne){return"EAGER"===ne.instantiationMode}(j))try{this.getOrInitializeService({instanceIdentifier:B})}catch{}for(const[q,le]of this.instancesDeferred.entries()){const He=this.normalizeInstanceIdentifier(q);try{const Ee=this.getOrInitializeService({instanceIdentifier:He});le.resolve(Ee)}catch{}}}}clearInstance(j=B){this.instancesDeferred.delete(j),this.instancesOptions.delete(j),this.instances.delete(j)}delete(){var j=this;return(0,r.Z)(function*(){const q=Array.from(j.instances.values());yield Promise.all([...q.filter(le=>"INTERNAL"in le).map(le=>le.INTERNAL.delete()),...q.filter(le=>"_delete"in le).map(le=>le._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(j=B){return this.instances.has(j)}getOptions(j=B){return this.instancesOptions.get(j)||{}}initialize(j={}){const{options:q={}}=j,le=this.normalizeInstanceIdentifier(j.instanceIdentifier);if(this.isInitialized(le))throw Error(`${this.name}(${le}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const He=this.getOrInitializeService({instanceIdentifier:le,options:q});for(const[Ee,Ne]of this.instancesDeferred.entries())le===this.normalizeInstanceIdentifier(Ee)&&Ne.resolve(He);return He}onInit(j,q){var le;const He=this.normalizeInstanceIdentifier(q),Ee=null!==(le=this.onInitCallbacks.get(He))&&void 0!==le?le:new Set;Ee.add(j),this.onInitCallbacks.set(He,Ee);const Ne=this.instances.get(He);return Ne&&j(Ne,He),()=>{Ee.delete(j)}}invokeOnInitCallbacks(j,q){const le=this.onInitCallbacks.get(q);if(le)for(const He of le)try{He(j,q)}catch{}}getOrInitializeService({instanceIdentifier:j,options:q={}}){let le=this.instances.get(j);if(!le&&this.component&&(le=this.component.instanceFactory(this.container,{instanceIdentifier:(ne=j,ne===B?void 0:ne),options:q}),this.instances.set(j,le),this.instancesOptions.set(j,q),this.invokeOnInitCallbacks(le,j),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,j,le)}catch{}var ne;return le||null}normalizeInstanceIdentifier(j=B){return this.component?this.component.multipleInstances?j:B:j}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class ee{constructor(j){this.name=j,this.providers=new Map}addComponent(j){const q=this.getProvider(j.name);if(q.isComponentSet())throw new Error(`Component ${j.name} has already been registered with ${this.name}`);q.setComponent(j)}addOrOverwriteComponent(j){this.getProvider(j.name).isComponentSet()&&this.providers.delete(j.name),this.addComponent(j)}getProvider(j){if(this.providers.has(j))return this.providers.get(j);const q=new X(j,this);return this.providers.set(j,q),q}getProviders(){return Array.from(this.providers.values())}}},1877:(Ct,Te,g)=>{g.d(Te,{Am:()=>ne,Ub:()=>ee,Yd:()=>J,in:()=>c});const r=[];var c=(()=>{return(j=c||(c={}))[j.DEBUG=0]="DEBUG",j[j.VERBOSE=1]="VERBOSE",j[j.INFO=2]="INFO",j[j.WARN=3]="WARN",j[j.ERROR=4]="ERROR",j[j.SILENT=5]="SILENT",c;var j})();const A={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},B=c.INFO,X={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},se=(j,q,...le)=>{if(q<j.logLevel)return;const He=(new Date).toISOString(),Ee=X[q];if(!Ee)throw new Error(`Attempted to log a message with an invalid logType (value: ${q})`);console[Ee](`[${He}] ${j.name}:`,...le)};class J{constructor(q){this.name=q,this._logLevel=B,this._logHandler=se,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(q){if(!(q in c))throw new TypeError(`Invalid value "${q}" assigned to \`logLevel\``);this._logLevel=q}setLogLevel(q){this._logLevel="string"==typeof q?A[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,c.DEBUG,...q),this._logHandler(this,c.DEBUG,...q)}log(...q){this._userLogHandler&&this._userLogHandler(this,c.VERBOSE,...q),this._logHandler(this,c.VERBOSE,...q)}info(...q){this._userLogHandler&&this._userLogHandler(this,c.INFO,...q),this._logHandler(this,c.INFO,...q)}warn(...q){this._userLogHandler&&this._userLogHandler(this,c.WARN,...q),this._logHandler(this,c.WARN,...q)}error(...q){this._userLogHandler&&this._userLogHandler(this,c.ERROR,...q),this._logHandler(this,c.ERROR,...q)}}function ee(j){r.forEach(q=>{q.setLogLevel(j)})}function ne(j,q){for(const le of r){let He=null;q&&q.level&&(He=A[q.level]),le.userLogHandler=null===j?null:(Ee,Ne,...Re)=>{const ue=Re.map(ke=>{if(null==ke)return null;if("string"==typeof ke)return ke;if("number"==typeof ke||"boolean"==typeof ke)return ke.toString();if(ke instanceof Error)return ke.message;try{return JSON.stringify(ke)}catch{return null}}).filter(ke=>ke).join(" ");Ne>=(He??Ee.logLevel)&&j({level:c[Ne].toLowerCase(),message:ue,args:Re,type:Ee.name})}}}},8796:(Ct,Te,g)=>{g.d(Te,{A0:()=>tn,w9:()=>Ie});var r=g(4650),c=g(433),A=g(2722),B=g(3601),X=g(8675),se=g(8505),J=g(8372),ee=g(9300),ne=g(4004),j=g(6406),q=g(3101),le=g(7579),He=g(4968),Ee=g(6451),Ne=g(6895);const Re=["content"],ue=["scroll"],ke=["padding"],Fe=function(he){return{searchTerm:he}};function et(he,k){if(1&he&&(r.TgZ(0,"div",6),r.GkF(1,7),r.qZA()),2&he){const p=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",p.headerTemplate)("ngTemplateOutletContext",r.VKq(2,Fe,p.filterValue))}}function be(he,k){if(1&he&&(r.TgZ(0,"div",8),r.GkF(1,7),r.qZA()),2&he){const p=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",p.footerTemplate)("ngTemplateOutletContext",r.VKq(2,Fe,p.filterValue))}}const de=["*"],ye=["searchInput"];function ve(he,k){if(1&he){const p=r.EpF();r.TgZ(0,"span",15),r.NdJ("click",function(){r.CHM(p);const I=r.oxw().$implicit,P=r.oxw(2);return r.KtG(P.unselect(I))}),r._uU(1,"\xd7"),r.qZA(),r._UZ(2,"span",16)}if(2&he){const p=r.oxw().$implicit,_=r.oxw(2);r.xp6(2),r.Q6J("ngItemLabel",p.label)("escape",_.escapeHTML)}}function Ue(he,k){}const xe=function(he,k,p){return{item:he,clear:k,label:p}};function ze(he,k){if(1&he&&(r.TgZ(0,"div",12),r.YNc(1,ve,3,2,"ng-template",null,13,r.W1O),r.YNc(3,Ue,0,0,"ng-template",14),r.qZA()),2&he){const p=k.$implicit,_=r.MAs(2),I=r.oxw(2);r.ekj("ng-value-disabled",p.disabled),r.xp6(3),r.Q6J("ngTemplateOutlet",I.labelTemplate||_)("ngTemplateOutletContext",r.kEZ(4,xe,p.value,I.clearItem,p.label))}}function dt(he,k){if(1&he&&(r.ynx(0),r.YNc(1,ze,4,8,"div",11),r.BQk()),2&he){const p=r.oxw();r.xp6(1),r.Q6J("ngForOf",p.selectedItems)("ngForTrackBy",p.trackByOption)}}function vt(he,k){}const Lt=function(he,k){return{items:he,clear:k}};function Mt(he,k){if(1&he&&r.YNc(0,vt,0,0,"ng-template",14),2&he){const p=r.oxw();r.Q6J("ngTemplateOutlet",p.multiLabelTemplate)("ngTemplateOutletContext",r.WLB(2,Lt,p.selectedValues,p.clearItem))}}function We(he,k){1&he&&r._UZ(0,"div",19)}function rt(he,k){}function at(he,k){if(1&he&&(r.ynx(0),r.YNc(1,We,1,0,"ng-template",null,17,r.W1O),r.YNc(3,rt,0,0,"ng-template",18),r.BQk()),2&he){const p=r.MAs(2),_=r.oxw();r.xp6(3),r.Q6J("ngTemplateOutlet",_.loadingSpinnerTemplate||p)}}function mt(he,k){if(1&he&&(r.TgZ(0,"span",20)(1,"span",21),r._uU(2,"\xd7"),r.qZA()()),2&he){const p=r.oxw();r.s9C("title",p.clearAllText)}}function Et(he,k){if(1&he&&r._UZ(0,"span",27),2&he){const p=r.oxw().$implicit,_=r.oxw(2);r.Q6J("ngItemLabel",p.label)("escape",_.escapeHTML)}}function bt(he,k){}const It=function(he,k,p,_){return{item:he,item$:k,index:p,searchTerm:_}};function Ce(he,k){if(1&he){const p=r.EpF();r.TgZ(0,"div",25),r.NdJ("click",function(){const P=r.CHM(p).$implicit,oe=r.oxw(2);return r.KtG(oe.toggleItem(P))})("mouseover",function(){const P=r.CHM(p).$implicit,oe=r.oxw(2);return r.KtG(oe.onItemHover(P))}),r.YNc(1,Et,1,2,"ng-template",null,26,r.W1O),r.YNc(3,bt,0,0,"ng-template",14),r.qZA()}if(2&he){const p=k.$implicit,_=r.MAs(2),I=r.oxw(2);r.ekj("ng-option-disabled",p.disabled)("ng-option-selected",p.selected)("ng-optgroup",p.children)("ng-option",!p.children)("ng-option-child",!!p.parent)("ng-option-marked",p===I.itemsList.markedItem),r.uIk("role",p.children?"group":"option")("aria-selected",p.selected)("id",null==p?null:p.htmlId),r.xp6(3),r.Q6J("ngTemplateOutlet",p.children?I.optgroupTemplate||_:I.optionTemplate||_)("ngTemplateOutletContext",r.l5B(17,It,p.value,p,p.index,I.searchTerm))}}function Xe(he,k){if(1&he&&(r.TgZ(0,"span")(1,"span",30),r._uU(2),r.qZA(),r._uU(3),r.qZA()),2&he){const p=r.oxw(3);r.xp6(2),r.Oqu(p.addTagText),r.xp6(1),r.hij('"',p.searchTerm,'"')}}function L(he,k){}function ie(he,k){if(1&he){const p=r.EpF();r.TgZ(0,"div",28),r.NdJ("mouseover",function(){r.CHM(p);const I=r.oxw(2);return r.KtG(I.itemsList.unmarkItem())})("click",function(){r.CHM(p);const I=r.oxw(2);return r.KtG(I.selectTag())}),r.YNc(1,Xe,4,2,"ng-template",null,29,r.W1O),r.YNc(3,L,0,0,"ng-template",14),r.qZA()}if(2&he){const p=r.MAs(2),_=r.oxw(2);r.ekj("ng-option-marked",!_.itemsList.markedItem),r.xp6(3),r.Q6J("ngTemplateOutlet",_.tagTemplate||p)("ngTemplateOutletContext",r.VKq(4,Fe,_.searchTerm))}}function Ve(he,k){if(1&he&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&he){const p=r.oxw(3);r.xp6(1),r.Oqu(p.notFoundText)}}function ut(he,k){}function xt(he,k){if(1&he&&(r.ynx(0),r.YNc(1,Ve,2,1,"ng-template",null,31,r.W1O),r.YNc(3,ut,0,0,"ng-template",14),r.BQk()),2&he){const p=r.MAs(2),_=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",_.notFoundTemplate||p)("ngTemplateOutletContext",r.VKq(2,Fe,_.searchTerm))}}function en(he,k){if(1&he&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&he){const p=r.oxw(3);r.xp6(1),r.Oqu(p.typeToSearchText)}}function zt(he,k){}function Jt(he,k){if(1&he&&(r.ynx(0),r.YNc(1,en,2,1,"ng-template",null,33,r.W1O),r.YNc(3,zt,0,0,"ng-template",18),r.BQk()),2&he){const p=r.MAs(2),_=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",_.typeToSearchTemplate||p)}}function Tn(he,k){if(1&he&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&he){const p=r.oxw(3);r.xp6(1),r.Oqu(p.loadingText)}}function In(he,k){}function Fn(he,k){if(1&he&&(r.ynx(0),r.YNc(1,Tn,2,1,"ng-template",null,34,r.W1O),r.YNc(3,In,0,0,"ng-template",14),r.BQk()),2&he){const p=r.MAs(2),_=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",_.loadingTextTemplate||p)("ngTemplateOutletContext",r.VKq(2,Fe,_.searchTerm))}}function Pn(he,k){if(1&he){const p=r.EpF();r.TgZ(0,"ng-dropdown-panel",22),r.NdJ("update",function(I){r.CHM(p);const P=r.oxw();return r.KtG(P.viewPortItems=I)})("scroll",function(I){r.CHM(p);const P=r.oxw();return r.KtG(P.scroll.emit(I))})("scrollToEnd",function(I){r.CHM(p);const P=r.oxw();return r.KtG(P.scrollToEnd.emit(I))})("outsideClick",function(){r.CHM(p);const I=r.oxw();return r.KtG(I.close())}),r.ynx(1),r.YNc(2,Ce,4,22,"div",23),r.YNc(3,ie,4,6,"div",24),r.BQk(),r.YNc(4,xt,4,4,"ng-container",3),r.YNc(5,Jt,4,1,"ng-container",3),r.YNc(6,Fn,4,4,"ng-container",3),r.qZA()}if(2&he){const p=r.oxw();r.ekj("ng-select-multiple",p.multiple),r.Q6J("virtualScroll",p.virtualScroll)("bufferAmount",p.bufferAmount)("appendTo",p.appendTo)("position",p.dropdownPosition)("headerTemplate",p.headerTemplate)("footerTemplate",p.footerTemplate)("filterValue",p.searchTerm)("items",p.itemsList.filteredItems)("markedItem",p.itemsList.markedItem)("ngClass",p.appendTo?p.classes:null)("id",p.dropdownId),r.xp6(2),r.Q6J("ngForOf",p.viewPortItems)("ngForTrackBy",p.trackByOption),r.xp6(1),r.Q6J("ngIf",p.showAddTag),r.xp6(1),r.Q6J("ngIf",p.showNoItemsFound()),r.xp6(1),r.Q6J("ngIf",p.showTypeToSearch()),r.xp6(1),r.Q6J("ngIf",p.loading&&0===p.itemsList.filteredItems.length)}}const sn=/[&<>"']/g,tt=RegExp(sn.source),W={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Se(he){return null!=he}function nt(he){return"object"==typeof he&&Se(he)}function At(he){return he instanceof Function}let Ht=(()=>{class he{constructor(p){this.element=p,this.escape=!0}ngOnChanges(p){this.element.nativeElement.innerHTML=this.escape?function ae(he){return he&&tt.test(he)?he.replace(sn,k=>W[k]):he}(this.ngItemLabel):this.ngItemLabel}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.SBq))},he.\u0275dir=r.lG2({type:he,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[r.TTD]}),he})(),Pt=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-option-tmp",""]]}),he})(),St=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-optgroup-tmp",""]]}),he})(),we=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-label-tmp",""]]}),he})(),lt=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-multi-label-tmp",""]]}),he})(),fe=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-header-tmp",""]]}),he})(),Ye=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-footer-tmp",""]]}),he})(),Dt=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-notfound-tmp",""]]}),he})(),Ft=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-typetosearch-tmp",""]]}),he})(),an=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-loadingtext-tmp",""]]}),he})(),Vt=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-tag-tmp",""]]}),he})(),wn=(()=>{class he{constructor(p){this.template=p}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Rgc))},he.\u0275dir=r.lG2({type:he,selectors:[["","ng-loadingspinner-tmp",""]]}),he})();function ln(){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 Sn(he){return he.replace(/[^\u0000-\u007E]/g,p=>xn[p]||p)}class Oe{constructor(k,p){this._ngSelect=k,this._selectionModel=p,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 k=this.selectedItems.length-1;for(;k>=0;k--){const p=this.selectedItems[k];if(!p.disabled)return p}return null}setItems(k){this._items=k.map((p,_)=>this.mapItem(p,_)),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(k){if(k.selected||this.maxItemsSelected)return;const p=this._ngSelect.multiple;p||this.clearSelected(),this._selectionModel.select(k,p,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(k)}unselect(k){k.selected&&(this._selectionModel.unselect(k,this._ngSelect.multiple),this._ngSelect.hideSelected&&Se(k.index)&&this._ngSelect.multiple&&this._showSelected(k))}findItem(k){let p;return p=this._ngSelect.compareWith?_=>this._ngSelect.compareWith(_.value,k):this._ngSelect.bindValue?_=>!_.children&&this.resolveNested(_.value,this._ngSelect.bindValue)===k:_=>_.value===k||!_.children&&_.label&&_.label===this.resolveNested(k,this._ngSelect.bindLabel),this._items.find(_=>p(_))}addItem(k){const p=this.mapItem(k,this._items.length);return this._items.push(p),this._filteredItems.push(p),p}clearSelected(k=!1){this._selectionModel.clear(k),this._items.forEach(p=>{p.selected=k&&p.selected&&p.disabled,p.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(k){return k=Sn(k).toLocaleLowerCase(),this.filteredItems.find(p=>Sn(p.label).toLocaleLowerCase().substr(0,k.length)===k)}filter(k){if(!k)return void this.resetFilteredItems();this._filteredItems=[],k=this._ngSelect.searchFn?k:Sn(k).toLocaleLowerCase();const p=this._ngSelect.searchFn||this._defaultSearchFn,_=this._ngSelect.hideSelected;for(const I of Array.from(this._groups.keys())){const P=[];for(const oe of this._groups.get(I))_&&(oe.parent&&oe.parent.selected||oe.selected)||p(k,this._ngSelect.searchFn?oe.value:oe)&&P.push(oe);if(P.length>0){const[oe]=P.slice(-1);if(oe.parent){const Be=this._items.find(yt=>yt===oe.parent);this._filteredItems.push(Be)}this._filteredItems.push(...P)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(k=>!k.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(k){this._markedIndex=this._filteredItems.indexOf(k)}markSelectedOrDefault(k){if(0===this._filteredItems.length)return;const p=this._getLastMarkedIndex();this._markedIndex=p>-1?p:k?this.filteredItems.findIndex(_=>!_.disabled):-1}resolveNested(k,p){if(!nt(k))return k;if(-1===p.indexOf("."))return k[p];{const _=p.split(".");let I=k;for(let P=0,oe=_.length;P<oe;++P){if(null==I)return null;I=I[_[P]]}return I}}mapItem(k,p){const _=Se(k.$ngOptionLabel)?k.$ngOptionLabel:this.resolveNested(k,this._ngSelect.bindLabel),I=Se(k.$ngOptionValue)?k.$ngOptionValue:k;return{index:p,label:Se(_)?_.toString():"",value:I,disabled:k.disabled,htmlId:`${this._ngSelect.dropdownId}-${p}`}}mapSelectedItems(){const k=this._ngSelect.multiple;for(const p of this.selectedItems){const _=this._ngSelect.bindValue?this.resolveNested(p.value,this._ngSelect.bindValue):p.value,I=Se(_)?this.findItem(_):null;this._selectionModel.unselect(p,k),this._selectionModel.select(I||p,k,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(p=>-1===this.selectedItems.indexOf(p)))}_showSelected(k){if(this._filteredItems.push(k),k.parent){const p=k.parent;this._filteredItems.find(I=>I===p)||this._filteredItems.push(p)}else if(k.children)for(const p of k.children)p.selected=!1,this._filteredItems.push(p);this._filteredItems=[...this._filteredItems.sort((p,_)=>p.index-_.index)]}_hideSelected(k){this._filteredItems=this._filteredItems.filter(p=>p!==k),k.parent?k.parent.children.every(_=>_.selected)&&(this._filteredItems=this._filteredItems.filter(_=>_!==k.parent)):k.children&&(this._filteredItems=this.filteredItems.filter(p=>p.parent!==k))}_defaultSearchFn(k,p){return Sn(p.label).toLocaleLowerCase().indexOf(k)>-1}_getNextItemIndex(k){return k>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(k){0===this._filteredItems.length||this._filteredItems.every(p=>p.disabled)||(this._markedIndex=this._getNextItemIndex(k),this.markedItem.disabled&&this._stepToItem(k))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const k=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&k<0?-1:Math.max(this.markedIndex,k)}_groupBy(k,p){const _=new Map;if(0===k.length)return _;if(Array.isArray(k[0].value[p])){for(const oe of k){const Be=(oe.value[p]||[]).map((yt,Bt)=>this.mapItem(yt,Bt));_.set(oe,Be)}return _}const I=At(this._ngSelect.groupBy),P=oe=>{const Be=I?p(oe.value):oe.value[p];return Se(Be)?Be:void 0};for(const oe of k){const Be=P(oe),yt=_.get(Be);yt?yt.push(oe):_.set(Be,[oe])}return _}_flatten(k){const p=At(this._ngSelect.groupBy),_=[];for(const I of Array.from(k.keys())){let P=_.length;if(void 0===I){const bn=k.get(void 0)||[];_.push(...bn.map(ht=>(ht.index=P++,ht)));continue}const oe=nt(I),Be={label:oe?"":String(I),children:void 0,parent:null,index:P++,disabled:!this._ngSelect.selectableGroup,htmlId:ln()},yt=p?this._ngSelect.bindLabel:this._ngSelect.groupBy,Bt=this._ngSelect.groupValue||(()=>oe?I.value:{[yt]:I}),hn=k.get(I).map(bn=>(bn.parent=Be,bn.children=void 0,bn.index=P++,bn));Be.children=hn,Be.value=Bt(I,hn.map(bn=>bn.value)),_.push(Be),_.push(...hn)}return _}}var te=(()=>{return(he=te||(te={}))[he.Tab=9]="Tab",he[he.Enter=13]="Enter",he[he.Esc=27]="Esc",he[he.Space=32]="Space",he[he.ArrowUp=38]="ArrowUp",he[he.ArrowDown=40]="ArrowDown",he[he.Backspace=8]="Backspace",te;var he})();let V=(()=>{class he{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(p,_,I){const P=this._dimensions,oe=P.itemHeight*_,yt=Math.max(0,p)/oe*_;let Bt=Math.min(_,Math.ceil(yt)+(P.itemsPerViewport+1));const bn=Math.max(0,Bt-P.itemsPerViewport);let ht=Math.min(bn,Math.floor(yt)),Ot=P.itemHeight*Math.ceil(ht)-P.itemHeight*Math.min(ht,I);return Ot=isNaN(Ot)?0:Ot,ht=isNaN(ht)?-1:ht,Bt=isNaN(Bt)?-1:Bt,ht-=I,ht=Math.max(0,ht),Bt+=I,Bt=Math.min(_,Bt),{topPadding:Ot,scrollHeight:oe,start:ht,end:Bt}}setDimensions(p,_){const I=Math.max(1,Math.floor(_/p));this._dimensions={itemHeight:p,panelHeight:_,itemsPerViewport:I}}getScrollTo(p,_,I){const{panelHeight:P}=this.dimensions,oe=p+_,yt=I+P;return P>=oe&&I===p?null:oe>yt?I+oe-yt:p<=I?p:null}}return he.\u0275fac=function(p){return new(p||he)},he.\u0275prov=r.Yz7({token:he,factory:he.\u0275fac}),he})();const U=["top","right","bottom","left"],re=typeof requestAnimationFrame<"u"?j.Z:q.E;let Ke=(()=>{class he{constructor(p,_,I,P,oe){this._renderer=p,this._zone=_,this._panelService=I,this._document=oe,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 le.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=P.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(p){p!==this._itemsLength&&(this._itemsLength=p,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:p,panelHeight:_}=this._panelService.dimensions,I=this.markedItem.index*p;return _>I?0:I}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(p){if(p.items){const _=p.items;this._onItemsChange(_.currentValue,_.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(p,_=!1){if(!p)return;const I=this.items.indexOf(p);if(I<0||I>=this.itemsLength)return;let P;if(this.virtualScroll){const oe=this._panelService.dimensions.itemHeight;P=this._panelService.getScrollTo(I*oe,oe,this._lastScrollPosition)}else{const oe=this._dropdown.querySelector(`#${p.htmlId}`);P=this._panelService.getScrollTo(oe.offsetTop,oe.clientHeight,_?oe.offsetTop:this._lastScrollPosition)}Se(P)&&(this._scrollablePanel.scrollTop=P)}scrollToTag(){const p=this._scrollablePanel;p.scrollTop=p.scrollHeight-p.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),U.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(p){U.forEach(I=>{const P=`ng-select-${I}`;this._renderer.removeClass(this._dropdown,P),this._renderer.removeClass(this._select,P)});const _=`ng-select-${p}`;this._renderer.addClass(this._dropdown,_),this._renderer.addClass(this._select,_)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,He.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,A.R)(this._destroy$),(0,B.e)(0,re)).subscribe(p=>{const _=p.path||p.composedPath&&p.composedPath();this._onContentScrolled(_&&0!==_.length?_[0].scrollTop:p.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,Ee.T)((0,He.R)(this._document,"touchstart",{capture:!0}),(0,He.R)(this._document,"mousedown",{capture:!0})).pipe((0,A.R)(this._destroy$)).subscribe(p=>this._checkToClose(p))})}_checkToClose(p){if(this._select.contains(p.target)||this._dropdown.contains(p.target))return;const _=p.path||p.composedPath&&p.composedPath();p.target&&p.target.shadowRoot&&_&&_[0]&&this._select.contains(_[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(p,_){this.items=p||[],this._scrollToEndFired=!1,this.itemsLength=p.length,this.virtualScroll?this._updateItemsRange(_):(this._setVirtualHeight(),this._updateItems(_))}_updateItems(p){this.update.emit(this.items),!1!==p&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,p)})})}_updateItemsRange(p){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{p?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(p){this.virtualScroll&&this._renderItemsRange(p),this._lastScrollPosition=p,this._fireScrollToEnd(p)}_updateVirtualHeight(p){this._updateScrollHeight&&(this._virtualPadding.style.height=`${p}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(p=null){if(p&&this._lastScrollPosition===p)return;const _=this._panelService.calculateItems(p=p||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(_.scrollHeight),this._contentPanel.style.transform=`translateY(${_.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(_.start,_.end)),this.scroll.emit({start:_.start,end:_.end})}),Se(p)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=p,this._lastScrollPosition=p)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[p]=this.items;return this.update.emit([p]),Promise.resolve().then(()=>{const I=this._dropdown.querySelector(`#${p.htmlId}`).clientHeight;return this._virtualPadding.style.height=I*this.itemsLength+"px",this._panelService.setDimensions(I,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(p){this._scrollToEndFired||0===p||p+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(p){if("auto"!==this.position)return this.position;const _=this._select.getBoundingClientRect(),I=document.documentElement.scrollTop||document.body.scrollTop;return _.top+window.pageYOffset+_.height+p.getBoundingClientRect().height>I+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 p=this._select.getBoundingClientRect(),_=this._parent.getBoundingClientRect();this._dropdown.style.left=p.left-_.left+"px",this._dropdown.style.width=p.width+"px",this._dropdown.style.minWidth=p.width+"px"}_updateYPosition(){const p=this._select.getBoundingClientRect(),_=this._parent.getBoundingClientRect(),I=p.height;"top"===this._currentPosition?(this._dropdown.style.bottom=_.bottom-p.bottom+I+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=p.top-_.top+I+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,He.R)(this._dropdown,"mousedown").pipe((0,A.R)(this._destroy$)).subscribe(p=>{"INPUT"!==p.target.tagName&&p.preventDefault()})})}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.Qsj),r.Y36(r.R0b),r.Y36(V),r.Y36(r.SBq),r.Y36(Ne.K0,8))},he.\u0275cmp=r.Xpm({type:he,selectors:[["ng-dropdown-panel"]],viewQuery:function(p,_){if(1&p&&(r.Gf(Re,7,r.SBq),r.Gf(ue,7,r.SBq),r.Gf(ke,7,r.SBq)),2&p){let I;r.iGM(I=r.CRH())&&(_.contentElementRef=I.first),r.iGM(I=r.CRH())&&(_.scrollElementRef=I.first),r.iGM(I=r.CRH())&&(_.paddingElementRef=I.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:de,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[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(p,_){1&p&&(r.F$t(),r.YNc(0,et,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,be,2,4,"div",5)),2&p&&(r.Q6J("ngIf",_.headerTemplate),r.xp6(3),r.ekj("total-padding",_.virtualScroll),r.xp6(2),r.ekj("scrollable-content",_.virtualScroll&&_.items.length),r.xp6(3),r.Q6J("ngIf",_.footerTemplate))},dependencies:[Ne.O5,Ne.tP],encapsulation:2,changeDetection:0}),he})(),K=(()=>{class he{constructor(p){this.elementRef=p,this.stateChange$=new le.x,this._disabled=!1}get disabled(){return this._disabled}set disabled(p){this._disabled=this._isDisabled(p)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(p){p.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(p){return null!=p&&"false"!=`${p}`}}return he.\u0275fac=function(p){return new(p||he)(r.Y36(r.SBq))},he.\u0275cmp=r.Xpm({type:he,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[r.TTD],ngContentSelectors:de,decls:1,vars:0,template:function(p,_){1&p&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),he})(),ce=(()=>{class he{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 he.\u0275fac=function(p){return new(p||he)},he.\u0275prov=r.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he})(),De=(()=>{class he{warn(p){console.warn(p)}}return he.\u0275fac=function(p){return new(p||he)},he.\u0275prov=r.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();const qe=new r.OlP("ng-select-selection-model");let Ie=(()=>{class he{constructor(p,_,I,P,oe,Be,yt){this.classes=p,this.autoFocus=_,this.config=I,this._cd=Be,this._console=yt,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=Bt=>!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=ln(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new le.x,this._keyPress$=new le.x,this._onChange=Bt=>{},this._onTouched=()=>{},this.clearItem=Bt=>{const hn=this.selectedItems.find(bn=>bn.value===Bt);this.unselect(hn)},this.trackByOption=(Bt,hn)=>this.trackByFn?this.trackByFn(hn.value):hn,this._mergeGlobalConfig(I),this.itemsList=new Oe(this,P()),this.element=oe.nativeElement}get items(){return this._items}set items(p){null===p&&(p=[]),this._itemsAreUsed=!0,this._items=p}get compareWith(){return this._compareWith}set compareWith(p){if(null!=p&&!At(p))throw Error("`compareWith` must be a function.");this._compareWith=p}get clearSearchOnAdd(){return Se(this._clearSearchOnAdd)?this._clearSearchOnAdd:Se(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(p){this._clearSearchOnAdd=p}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}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(p=>p.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(p){p.multiple&&this.itemsList.clearSelected(),p.items&&this._setItems(p.items.currentValue||[]),p.isOpen&&(this._manualOpen=Se(p.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Se(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(p){if(te[p.which]){if(!1===this.keyDownFn(p))return;this.handleKeyCode(p)}else p.key&&1===p.key.length&&this._keyPress$.next(p.key.toLocaleLowerCase())}handleKeyCode(p){switch(p.which){case te.ArrowDown:this._handleArrowDown(p);break;case te.ArrowUp:this._handleArrowUp(p);break;case te.Space:this._handleSpace(p);break;case te.Enter:this._handleEnter(p);break;case te.Tab:this._handleTab(p);break;case te.Esc:this.close(),p.preventDefault();break;case te.Backspace:this._handleBackspace()}}handleMousedown(p){const _=p.target;"INPUT"!==_.tagName&&p.preventDefault(),_.classList.contains("ng-clear-wrapper")?this.handleClearClick():_.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():_.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(p){this.itemsList.clearSelected(),this._handleWriteValue(p),this._cd.markForCheck()}registerOnChange(p){this._onChange=p}registerOnTouched(p){this._onTouched=p}setDisabledState(p){this._disabled=p,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(p){!p||p.disabled||this.disabled||(this.multiple&&p.selected?this.unselect(p):this.select(p),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(p){p.selected||(this.itemsList.select(p),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(p.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(p){p&&(this.itemsList.unselect(p),this.focus(),this._updateNgModel(),this.removeEvent.emit(p))}selectTag(){let p;p=At(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const _=I=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(I,null):this.itemsList.addItem(I);!function ct(he){return he instanceof Promise}(p)?p&&this.select(_(p)):p.then(I=>this.select(_(I))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const p=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(_=>_.label.toLowerCase()===p)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(_=>_.label.toLowerCase()===p))&&!this.loading}showNoItemsFound(){const p=0===this.itemsList.filteredItems.length;return(p&&!this._isTypeahead&&!this.loading||p&&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(p){this._isComposing=!1,!this.searchWhileComposing&&this.filter(p)}filter(p){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=p,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(p),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:p,items:this.itemsList.filteredItems.map(_=>_.value)}),this.open())}onInputFocus(p){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(p),this.focused=!0)}onInputBlur(p){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(p),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(p){p.disabled||this.itemsList.markItem(p)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const p=this.selectedItems&&this.selectedItems[0];this.searchTerm=p&&p.label||null}_setItems(p){const _=p[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Se(_)?!nt(_):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(p),p.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Se(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const p=I=>{this.items=I.map(P=>({$ngOptionValue:P.value,$ngOptionLabel:P.elementRef.nativeElement.innerHTML,disabled:P.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},_=()=>{const I=(0,Ee.T)(this.ngOptions.changes,this._destroy$);(0,Ee.T)(...this.ngOptions.map(P=>P.stateChange$)).pipe((0,A.R)(I)).subscribe(P=>{const oe=this.itemsList.findItem(P.value);oe.disabled=P.disabled,oe.label=P.label||oe.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,X.O)(this.ngOptions),(0,A.R)(this._destroy$)).subscribe(I=>{this.bindLabel=this._defaultLabel,p(I),_()})}_isValidWriteValue(p){if(!Se(p)||this.multiple&&""===p||Array.isArray(p)&&0===p.length)return!1;const _=I=>!(!Se(this.compareWith)&&nt(I)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(I)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(p)?p.every(I=>_(I)):(this._console.warn("Multiple select ngModel should be array."),!1):_(p)}_handleWriteValue(p){if(!this._isValidWriteValue(p))return;const _=I=>{let P=this.itemsList.findItem(I);if(P)this.itemsList.select(P);else{const oe=nt(I);oe||!oe&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(I,null)):this.bindValue&&(P={[this.bindLabel]:null,[this.bindValue]:I},this.itemsList.select(this.itemsList.mapItem(P,null)))}};this.multiple?p.forEach(I=>_(I)):_(p)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,A.R)(this._destroy$),(0,se.b)(p=>this._pressedKeys.push(p)),(0,J.b)(200),(0,ee.h)(()=>this._pressedKeys.length>0),(0,ne.U)(()=>this._pressedKeys.join(""))).subscribe(p=>{const _=this.itemsList.findByLabel(p);_&&(this.isOpen?(this.itemsList.markItem(_),this._scrollToMarked(),this._cd.markForCheck()):this.select(_)),this._pressedKeys=[]})}_setInputAttributes(){const p=this.searchInput.nativeElement,_={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const I of Object.keys(_))p.setAttribute(I,_[I])}_updateNgModel(){const p=[];for(const I of this.selectedItems)if(this.bindValue){let P=null;P=I.children?I.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(I.value,this.bindValue),p.push(P)}else p.push(I.value);const _=this.selectedItems.map(I=>I.value);this.multiple?(this._onChange(p),this.changeEvent.emit(_)):(this._onChange(Se(p[0])?p[0]:null),this.changeEvent.emit(_[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(p){this.searchTerm=p,this._isTypeahead&&this.typeahead.next(p)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(p){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),p.preventDefault()):this.showAddTag?(this.selectTag(),p.preventDefault()):this.close():this.close())}_handleEnter(p){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}p.preventDefault()}_handleSpace(p){this.isOpen||this._manualOpen||(this.open(),p.preventDefault())}_handleArrowDown(p){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),p.preventDefault()}_handleArrowUp(p){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),p.preventDefault())}_nextItemIsTag(p){const _=this.itemsList.markedIndex+p;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(_<0||_===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 p=this.searchTerm&&this.searchTerm.trim();return p&&p.length>=this.minTermLength}_mergeGlobalConfig(p){this.placeholder=this.placeholder||p.placeholder,this.notFoundText=this.notFoundText||p.notFoundText,this.typeToSearchText=this.typeToSearchText||p.typeToSearchText,this.addTagText=this.addTagText||p.addTagText,this.loadingText=this.loadingText||p.loadingText,this.clearAllText=this.clearAllText||p.clearAllText,this.virtualScroll=Se(this.virtualScroll)?this.virtualScroll:!!Se(p.disableVirtualScroll)&&!p.disableVirtualScroll,this.openOnEnter=Se(this.openOnEnter)?this.openOnEnter:p.openOnEnter,this.appendTo=this.appendTo||p.appendTo,this.bindValue=this.bindValue||p.bindValue,this.bindLabel=this.bindLabel||p.bindLabel,this.appearance=this.appearance||p.appearance}}return he.\u0275fac=function(p){return new(p||he)(r.$8M("class"),r.$8M("autofocus"),r.Y36(ce),r.Y36(qe),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(De))},he.\u0275cmp=r.Xpm({type:he,selectors:[["ng-select"]],contentQueries:function(p,_,I){if(1&p&&(r.Suo(I,Pt,5,r.Rgc),r.Suo(I,St,5,r.Rgc),r.Suo(I,we,5,r.Rgc),r.Suo(I,lt,5,r.Rgc),r.Suo(I,fe,5,r.Rgc),r.Suo(I,Ye,5,r.Rgc),r.Suo(I,Dt,5,r.Rgc),r.Suo(I,Ft,5,r.Rgc),r.Suo(I,an,5,r.Rgc),r.Suo(I,Vt,5,r.Rgc),r.Suo(I,wn,5,r.Rgc),r.Suo(I,K,5)),2&p){let P;r.iGM(P=r.CRH())&&(_.optionTemplate=P.first),r.iGM(P=r.CRH())&&(_.optgroupTemplate=P.first),r.iGM(P=r.CRH())&&(_.labelTemplate=P.first),r.iGM(P=r.CRH())&&(_.multiLabelTemplate=P.first),r.iGM(P=r.CRH())&&(_.headerTemplate=P.first),r.iGM(P=r.CRH())&&(_.footerTemplate=P.first),r.iGM(P=r.CRH())&&(_.notFoundTemplate=P.first),r.iGM(P=r.CRH())&&(_.typeToSearchTemplate=P.first),r.iGM(P=r.CRH())&&(_.loadingTextTemplate=P.first),r.iGM(P=r.CRH())&&(_.tagTemplate=P.first),r.iGM(P=r.CRH())&&(_.loadingSpinnerTemplate=P.first),r.iGM(P=r.CRH())&&(_.ngOptions=P)}},viewQuery:function(p,_){if(1&p&&(r.Gf(Ke,5),r.Gf(ye,7)),2&p){let I;r.iGM(I=r.CRH())&&(_.dropdownPanel=I.first),r.iGM(I=r.CRH())&&(_.searchInput=I.first)}},hostVars:20,hostBindings:function(p,_){1&p&&r.NdJ("keydown",function(P){return _.handleKeyDown(P)}),2&p&&r.ekj("ng-select-typeahead",_.typeahead)("ng-select-multiple",_.multiple)("ng-select-taggable",_.addTag)("ng-select-searchable",_.searchable)("ng-select-clearable",_.clearable)("ng-select-opened",_.isOpen)("ng-select",_.useDefaultClass)("ng-select-disabled",_.disabled)("ng-select-filtered",_.filtered)("ng-select-single",_.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"},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:c.JU,useExisting:(0,r.Gpc)(()=>he),multi:!0},V]),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(p,_){if(1&p){const I=r.EpF();r.TgZ(0,"div",0),r.NdJ("mousedown",function(oe){return _.handleMousedown(oe)}),r.TgZ(1,"div",1)(2,"div",2),r._uU(3),r.qZA(),r.YNc(4,dt,2,2,"ng-container",3),r.YNc(5,Mt,1,5,null,3),r.TgZ(6,"div",4)(7,"input",5,6),r.NdJ("input",function(){r.CHM(I);const oe=r.MAs(8);return r.KtG(_.filter(oe.value))})("compositionstart",function(){return _.onCompositionStart()})("compositionend",function(){r.CHM(I);const oe=r.MAs(8);return r.KtG(_.onCompositionEnd(oe.value))})("focus",function(oe){return _.onInputFocus(oe)})("blur",function(oe){return _.onInputBlur(oe)})("change",function(oe){return oe.stopPropagation()}),r.qZA()()(),r.YNc(9,at,4,1,"ng-container",3),r.YNc(10,mt,3,1,"span",7),r.TgZ(11,"span",8),r._UZ(12,"span",9),r.qZA()(),r.YNc(13,Pn,7,19,"ng-dropdown-panel",10)}2&p&&(r.ekj("ng-appearance-outline","outline"===_.appearance)("ng-has-value",_.hasValue),r.xp6(3),r.Oqu(_.placeholder),r.xp6(1),r.Q6J("ngIf",(!_.multiLabelTemplate||!_.multiple)&&_.selectedItems.length>0),r.xp6(1),r.Q6J("ngIf",_.multiple&&_.multiLabelTemplate&&_.selectedValues.length>0),r.xp6(1),r.uIk("aria-expanded",_.isOpen)("aria-owns",_.isOpen?_.dropdownId:null),r.xp6(1),r.Q6J("readOnly",!_.searchable||_.itemsList.maxItemsSelected)("disabled",_.disabled)("value",_.searchTerm?_.searchTerm:""),r.uIk("id",_.labelForId)("tabindex",_.tabIndex)("aria-activedescendant",_.isOpen?null==_.itemsList||null==_.itemsList.markedItem?null:_.itemsList.markedItem.htmlId:null)("aria-controls",_.isOpen?_.dropdownId:null),r.xp6(2),r.Q6J("ngIf",_.loading),r.xp6(1),r.Q6J("ngIf",_.showClear()),r.xp6(3),r.Q6J("ngIf",_.isOpen))},dependencies:[Ne.mk,Ne.sg,Ne.O5,Ne.tP,Ke,Ht],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}),he})();function Rt(){return new Wt}class Wt{constructor(){this._selected=[]}get value(){return this._selected}select(k,p,_){if(k.selected=!0,(!k.children||!p&&_)&&this._selected.push(k),p)if(k.parent){const I=k.parent.children.length,P=k.parent.children.filter(oe=>oe.selected).length;k.parent.selected=I===P}else k.children&&(this._setChildrenSelectedState(k.children,!0),this._removeChildren(k),this._selected=_&&this._activeChildren(k)?[...this._selected.filter(I=>I.parent!==k),k]:[...this._selected,...k.children.filter(I=>!I.disabled)])}unselect(k,p){if(this._selected=this._selected.filter(_=>_!==k),k.selected=!1,p)if(k.parent&&k.parent.selected){const _=k.parent.children;this._removeParent(k.parent),this._removeChildren(k.parent),this._selected.push(..._.filter(I=>I!==k&&!I.disabled)),k.parent.selected=!1}else k.children&&(this._setChildrenSelectedState(k.children,!1),this._removeChildren(k))}clear(k){this._selected=k?this._selected.filter(p=>p.disabled):[]}_setChildrenSelectedState(k,p){for(const _ of k)_.disabled||(_.selected=p)}_removeChildren(k){this._selected=[...this._selected.filter(p=>p.parent!==k),...k.children.filter(p=>p.parent===k&&p.disabled&&p.selected)]}_removeParent(k){this._selected=this._selected.filter(p=>p!==k)}_activeChildren(k){return k.children.every(p=>!p.disabled||p.selected)}}let tn=(()=>{class he{}return he.\u0275fac=function(p){return new(p||he)},he.\u0275mod=r.oAB({type:he}),he.\u0275inj=r.cJS({providers:[{provide:qe,useValue:Rt}],imports:[Ne.ez]}),he})()},259:(Ct,Te,g)=>{g.d(Te,{C6:()=>r.getApps,Mq:()=>r.getApp});var r=g(9681);(0,r.registerVersion)("firebase","9.17.1","app")},9260:(Ct,Te,g)=>{g.d(Te,{Z:()=>r.Z});var r=g(3942);r.Z.registerVersion("firebase","9.17.1","app-compat")},8766:(Ct,Te,g)=>{g.d(Te,{Lj:()=>be,X3:()=>et});var r=g(5861);let A,B;const J=new WeakMap,ee=new WeakMap,ne=new WeakMap,j=new WeakMap,q=new WeakMap;let Ee={get(xe,ze,dt){if(xe instanceof IDBTransaction){if("done"===ze)return ee.get(xe);if("objectStoreNames"===ze)return xe.objectStoreNames||ne.get(xe);if("store"===ze)return dt.objectStoreNames[1]?void 0:dt.objectStore(dt.objectStoreNames[0])}return ke(xe[ze])},set:(xe,ze,dt)=>(xe[ze]=dt,!0),has:(xe,ze)=>xe instanceof IDBTransaction&&("done"===ze||"store"===ze)||ze in xe};function ue(xe){return"function"==typeof xe?function Re(xe){return xe!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function se(){return B||(B=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(xe)?function(...ze){return xe.apply(Fe(this),ze),ke(J.get(this))}:function(...ze){return ke(xe.apply(Fe(this),ze))}:function(ze,...dt){const vt=xe.call(Fe(this),ze,...dt);return ne.set(vt,ze.sort?ze.sort():[ze]),ke(vt)}}(xe):(xe instanceof IDBTransaction&&function He(xe){if(ee.has(xe))return;const ze=new Promise((dt,vt)=>{const Lt=()=>{xe.removeEventListener("complete",Mt),xe.removeEventListener("error",We),xe.removeEventListener("abort",We)},Mt=()=>{dt(),Lt()},We=()=>{vt(xe.error||new DOMException("AbortError","AbortError")),Lt()};xe.addEventListener("complete",Mt),xe.addEventListener("error",We),xe.addEventListener("abort",We)});ee.set(xe,ze)}(xe),((xe,ze)=>ze.some(dt=>xe instanceof dt))(xe,function X(){return A||(A=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(xe,Ee):xe)}function ke(xe){if(xe instanceof IDBRequest)return function le(xe){const ze=new Promise((dt,vt)=>{const Lt=()=>{xe.removeEventListener("success",Mt),xe.removeEventListener("error",We)},Mt=()=>{dt(ke(xe.result)),Lt()},We=()=>{vt(xe.error),Lt()};xe.addEventListener("success",Mt),xe.addEventListener("error",We)});return ze.then(dt=>{dt instanceof IDBCursor&&J.set(dt,xe)}).catch(()=>{}),q.set(ze,xe),ze}(xe);if(j.has(xe))return j.get(xe);const ze=ue(xe);return ze!==xe&&(j.set(xe,ze),q.set(ze,xe)),ze}const Fe=xe=>q.get(xe);function et(xe,ze,{blocked:dt,upgrade:vt,blocking:Lt,terminated:Mt}={}){const We=indexedDB.open(xe,ze),rt=ke(We);return vt&&We.addEventListener("upgradeneeded",at=>{vt(ke(We.result),at.oldVersion,at.newVersion,ke(We.transaction))}),dt&&We.addEventListener("blocked",()=>dt()),rt.then(at=>{Mt&&at.addEventListener("close",()=>Mt()),Lt&&at.addEventListener("versionchange",()=>Lt())}).catch(()=>{}),rt}function be(xe,{blocked:ze}={}){const dt=indexedDB.deleteDatabase(xe);return ze&&dt.addEventListener("blocked",()=>ze()),ke(dt).then(()=>{})}const de=["get","getKey","getAll","getAllKeys","count"],ye=["put","add","delete","clear"],ve=new Map;function Ue(xe,ze){if(!(xe instanceof IDBDatabase)||ze in xe||"string"!=typeof ze)return;if(ve.get(ze))return ve.get(ze);const dt=ze.replace(/FromIndex$/,""),vt=ze!==dt,Lt=ye.includes(dt);if(!(dt in(vt?IDBIndex:IDBObjectStore).prototype)||!Lt&&!de.includes(dt))return;const Mt=function(){var We=(0,r.Z)(function*(rt,...at){const mt=this.transaction(rt,Lt?"readwrite":"readonly");let Et=mt.store;return vt&&(Et=Et.index(at.shift())),(yield Promise.all([Et[dt](...at),Lt&&mt.done]))[0]});return function(at){return We.apply(this,arguments)}}();return ve.set(ze,Mt),Mt}!function Ne(xe){Ee=xe(Ee)}(xe=>({...xe,get:(ze,dt,vt)=>Ue(ze,dt)||xe.get(ze,dt,vt),has:(ze,dt)=>!!Ue(ze,dt)||xe.has(ze,dt)}))},7185:(Ct,Te,g)=>{g.d(Te,{FN:()=>We,PR:()=>ve,Rh:()=>at,_W:()=>Mt});var r=g(4650),c=g(7340),A=g(7579),B=g(6895),X=g(1481);const se=["toast-component",""];function J(Ce,Xe){if(1&Ce){const L=r.EpF();r.TgZ(0,"button",5),r.NdJ("click",function(){r.CHM(L);const Ve=r.oxw();return r.KtG(Ve.remove())}),r.TgZ(1,"span",6),r._uU(2,"\xd7"),r.qZA()()}}function ee(Ce,Xe){if(1&Ce&&(r.ynx(0),r._uU(1),r.BQk()),2&Ce){const L=r.oxw(2);r.xp6(1),r.hij("[",L.duplicatesCount+1,"]")}}function ne(Ce,Xe){if(1&Ce&&(r.TgZ(0,"div"),r._uU(1),r.YNc(2,ee,2,1,"ng-container",4),r.qZA()),2&Ce){const L=r.oxw();r.Tol(L.options.titleClass),r.uIk("aria-label",L.title),r.xp6(1),r.hij(" ",L.title," "),r.xp6(1),r.Q6J("ngIf",L.duplicatesCount)}}function j(Ce,Xe){if(1&Ce&&r._UZ(0,"div",7),2&Ce){const L=r.oxw();r.Tol(L.options.messageClass),r.Q6J("innerHTML",L.message,r.oJD)}}function q(Ce,Xe){if(1&Ce&&(r.TgZ(0,"div",8),r._uU(1),r.qZA()),2&Ce){const L=r.oxw();r.Tol(L.options.messageClass),r.uIk("aria-label",L.message),r.xp6(1),r.hij(" ",L.message," ")}}function le(Ce,Xe){if(1&Ce&&(r.TgZ(0,"div"),r._UZ(1,"div",9),r.qZA()),2&Ce){const L=r.oxw();r.xp6(1),r.Udp("width",L.width+"%")}}class be{constructor(Xe,L){this.component=Xe,this.injector=L}attach(Xe,L){return this._attachedHost=Xe,Xe.attach(this,L)}detach(){const Xe=this._attachedHost;if(Xe)return this._attachedHost=void 0,Xe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Xe){this._attachedHost=Xe}}class de{attach(Xe,L){return this._attachedPortal=Xe,this.attachComponentPortal(Xe,L)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Xe){this._disposeFn=Xe}}class ye{constructor(Xe){this._overlayRef=Xe,this.duplicatesCount=0,this._afterClosed=new A.x,this._activate=new A.x,this._manualClose=new A.x,this._resetTimeout=new A.x,this._countDuplicate=new A.x}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(Xe,L){Xe&&this._resetTimeout.next(),L&&this._countDuplicate.next(++this.duplicatesCount)}}class ve{constructor(Xe,L,ie,Ve,ut,xt){this.toastId=Xe,this.config=L,this.message=ie,this.title=Ve,this.toastType=ut,this.toastRef=xt,this._onTap=new A.x,this._onAction=new A.x,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(Xe){this._onAction.next(Xe)}onAction(){return this._onAction.asObservable()}}const xe=new r.OlP("ToastConfig");class ze extends de{constructor(Xe,L,ie){super(),this._hostDomElement=Xe,this._componentFactoryResolver=L,this._appRef=ie}attachComponentPortal(Xe,L){const ie=this._componentFactoryResolver.resolveComponentFactory(Xe.component);let Ve;return Ve=ie.create(Xe.injector),this._appRef.attachView(Ve.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ve.hostView),Ve.destroy()}),L?this._hostDomElement.insertBefore(this._getComponentRootNode(Ve),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ve)),Ve}_getComponentRootNode(Xe){return Xe.hostView.rootNodes[0]}}class dt{constructor(Xe){this._portalHost=Xe}attach(Xe,L=!0){return this._portalHost.attach(Xe,L)}detach(){return this._portalHost.detach()}}let vt=(()=>{class Ce{constructor(L){this._document=L}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const L=this._document.createElement("div");L.classList.add("overlay-container"),L.setAttribute("aria-live","polite"),this._document.body.appendChild(L),this._containerElement=L}}return Ce.\u0275fac=function(L){return new(L||Ce)(r.LFG(B.K0))},Ce.\u0275prov=r.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Lt=(()=>{class Ce{constructor(L,ie,Ve,ut){this._overlayContainer=L,this._componentFactoryResolver=ie,this._appRef=Ve,this._document=ut,this._paneElements=new Map}create(L,ie){return this._createOverlayRef(this.getPaneElement(L,ie))}getPaneElement(L="",ie){return this._paneElements.get(ie)||this._paneElements.set(ie,{}),this._paneElements.get(ie)[L]||(this._paneElements.get(ie)[L]=this._createPaneElement(L,ie)),this._paneElements.get(ie)[L]}_createPaneElement(L,ie){const Ve=this._document.createElement("div");return Ve.id="toast-container",Ve.classList.add(L),Ve.classList.add("toast-container"),ie?ie.getContainerElement().appendChild(Ve):this._overlayContainer.getContainerElement().appendChild(Ve),Ve}_createPortalHost(L){return new ze(L,this._componentFactoryResolver,this._appRef)}_createOverlayRef(L){return new dt(this._createPortalHost(L))}}return Ce.\u0275fac=function(L){return new(L||Ce)(r.LFG(vt),r.LFG(r._Vd),r.LFG(r.z2F),r.LFG(B.K0))},Ce.\u0275prov=r.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Mt=(()=>{class Ce{constructor(L,ie,Ve,ut,xt){this.overlay=ie,this._injector=Ve,this.sanitizer=ut,this.ngZone=xt,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...L.default,...L.config},L.config.iconClasses&&(this.toastrConfig.iconClasses={...L.default.iconClasses,...L.config.iconClasses})}show(L,ie,Ve={},ut=""){return this._preBuildNotification(ut,L,ie,this.applyConfig(Ve))}success(L,ie,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",L,ie,this.applyConfig(Ve))}error(L,ie,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",L,ie,this.applyConfig(Ve))}info(L,ie,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",L,ie,this.applyConfig(Ve))}warning(L,ie,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",L,ie,this.applyConfig(Ve))}clear(L){for(const ie of this.toasts)if(void 0!==L){if(ie.toastId===L)return void ie.toastRef.manualClose()}else ie.toastRef.manualClose()}remove(L){const ie=this._findToast(L);if(!ie||(ie.activeToast.toastRef.close(),this.toasts.splice(ie.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 Ve=this.toasts[this.currentlyActive].toastRef;Ve.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ve.activate())}return!0}findDuplicate(L="",ie="",Ve,ut){const{includeTitleDuplicates:xt}=this.toastrConfig;for(const en of this.toasts)if((!xt||xt&&en.title===L)&&en.message===ie)return en.toastRef.onDuplicate(Ve,ut),en;return null}applyConfig(L={}){return{...this.toastrConfig,...L}}_findToast(L){for(let ie=0;ie<this.toasts.length;ie++)if(this.toasts[ie].toastId===L)return{index:ie,activeToast:this.toasts[ie]};return null}_preBuildNotification(L,ie,Ve,ut){return ut.onActivateTick?this.ngZone.run(()=>this._buildNotification(L,ie,Ve,ut)):this._buildNotification(L,ie,Ve,ut)}_buildNotification(L,ie,Ve,ut){if(!ut.toastComponent)throw new Error("toastComponent required");const xt=this.findDuplicate(Ve,ie,this.toastrConfig.resetTimeoutOnDuplicate&&ut.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ve||ie)&&this.toastrConfig.preventDuplicates&&null!==xt)return xt;this.previousToastMessage=ie;let en=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(en=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const zt=this.overlay.create(ut.positionClass,this.overlayContainer);this.index=this.index+1;let Jt=ie;ie&&ut.enableHtml&&(Jt=this.sanitizer.sanitize(r.q3G.HTML,ie));const Tn=new ye(zt),In=new ve(this.index,ut,Jt,Ve,L,Tn),Pn=r.zs3.create({providers:[{provide:ve,useValue:In}],parent:this._injector}),sn=new be(ut.toastComponent,Pn),tt=zt.attach(sn,ut.newestOnTop);Tn.componentInstance=tt.instance;const W={toastId:this.index,title:Ve||"",message:ie||"",toastRef:Tn,onShown:Tn.afterActivate(),onHidden:Tn.afterClosed(),onTap:In.onTap(),onAction:In.onAction(),portal:tt};return en||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{W.toastRef.activate()})),this.toasts.push(W),W}}return Ce.\u0275fac=function(L){return new(L||Ce)(r.LFG(xe),r.LFG(Lt),r.LFG(r.zs3),r.LFG(X.H7),r.LFG(r.R0b))},Ce.\u0275prov=r.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),We=(()=>{class Ce{constructor(L,ie,Ve){this.toastrService=L,this.toastPackage=ie,this.ngZone=Ve,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=ie.message,this.title=ie.title,this.options=ie.config,this.originalTimeout=ie.config.timeOut,this.toastClasses=`${ie.toastType} ${ie.config.toastClass}`,this.sub=ie.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ie.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ie.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ie.toastRef.countDuplicate().subscribe(ut=>{this.duplicatesCount=ut})}get displayStyle(){if("inactive"===this.state.value)return"none"}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 L=(new Date).getTime();this.width=(this.hideTime-L)/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(L,ie){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(L),ie)):this.timeout=setTimeout(()=>L(),ie)}outsideInterval(L,ie){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(L),ie)):this.intervalId=setInterval(()=>L(),ie)}runInsideAngular(L){this.ngZone?this.ngZone.run(()=>L()):L()}}return Ce.\u0275fac=function(L){return new(L||Ce)(r.Y36(Mt),r.Y36(ve),r.Y36(r.R0b))},Ce.\u0275cmp=r.Xpm({type:Ce,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(L,ie){1&L&&r.NdJ("click",function(){return ie.tapToast()})("mouseenter",function(){return ie.stickAround()})("mouseleave",function(){return ie.delayedHideToast()}),2&L&&(r.d8E("@flyInOut",ie.state),r.Tol(ie.toastClasses),r.Udp("display",ie.displayStyle))},attrs:se,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(L,ie){1&L&&(r.YNc(0,J,3,0,"button",0),r.YNc(1,ne,3,5,"div",1),r.YNc(2,j,1,3,"div",2),r.YNc(3,q,2,4,"div",3),r.YNc(4,le,2,2,"div",4)),2&L&&(r.Q6J("ngIf",ie.options.closeButton),r.xp6(1),r.Q6J("ngIf",ie.title),r.xp6(1),r.Q6J("ngIf",ie.message&&ie.options.enableHtml),r.xp6(1),r.Q6J("ngIf",ie.message&&!ie.options.enableHtml),r.xp6(1),r.Q6J("ngIf",ie.options.progressBar))},dependencies:[B.O5],encapsulation:2,data:{animation:[(0,c.X$)("flyInOut",[(0,c.SB)("inactive",(0,c.oB)({opacity:0})),(0,c.SB)("active",(0,c.oB)({opacity:1})),(0,c.SB)("removed",(0,c.oB)({opacity:0})),(0,c.eR)("inactive => active",(0,c.jt)("{{ easeTime }}ms {{ easing }}")),(0,c.eR)("active => removed",(0,c.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Ce})();const rt={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",payload:null,toastComponent:We};let at=(()=>{class Ce{static forRoot(L={}){return{ngModule:Ce,providers:[{provide:xe,useValue:{default:rt,config:L}}]}}}return Ce.\u0275fac=function(L){return new(L||Ce)},Ce.\u0275mod=r.oAB({type:Ce}),Ce.\u0275inj=r.cJS({imports:[B.ez]}),Ce})()},5861:(Ct,Te,g)=>{function r(A,B,X,se,J,ee,ne){try{var j=A[ee](ne),q=j.value}catch(le){return void X(le)}j.done?B(q):Promise.resolve(q).then(se,J)}function c(A){return function(){var B=this,X=arguments;return new Promise(function(se,J){var ee=A.apply(B,X);function ne(q){r(ee,se,J,ne,j,"next",q)}function j(q){r(ee,se,J,ne,j,"throw",q)}ne(void 0)})}}g.d(Te,{Z:()=>c})}},Ct=>{Ct(Ct.s=7326)}]);