(self.webpackChunksnapp_front_app=self.webpackChunksnapp_front_app||[]).push([[179],{8255:Tt=>{function Ge(L){return Promise.resolve().then(()=>{var s=new Error("Cannot find module '"+L+"'");throw s.code="MODULE_NOT_FOUND",s})}Ge.keys=()=>[],Ge.resolve=Ge,Ge.id=8255,Tt.exports=Ge},8583:(Tt,Ge,L)=>{"use strict";L.d(Ge,{mr:()=>Me,ez:()=>go,K0:()=>Y,uU:()=>Nr,Do:()=>we,V_:()=>ee,Ye:()=>Xe,S$:()=>me,mk:()=>Fr,sg:()=>$r,O5:()=>C,tP:()=>ut,b0:()=>Re,lw:()=>Z,EM:()=>Ci,JF:()=>Di,PM:()=>Xr,qS:()=>zn,w_:()=>ve,bD:()=>eo,q:()=>Ne,Mx:()=>En,HT:()=>Te});var s=L(639);let O=null;function Ne(){return O}function Te(A){O||(O=A)}class ve{}const Y=new s.OlP("DocumentToken");let Z=(()=>{class A{historyGo(M){throw new Error("Not implemented")}}return A.\u0275fac=function(M){return new(M||A)},A.\u0275prov=(0,s.Yz7)({factory:Q,token:A,providedIn:"platform"}),A})();function Q(){return(0,s.LFG)(K)}const ee=new s.OlP("Location Initialized");let K=(()=>{class A extends Z{constructor(M){super(),this._doc=M,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ne().getBaseHref(this._doc)}onPopState(M){const z=Ne().getGlobalEventTarget(this._doc,"window");return z.addEventListener("popstate",M,!1),()=>z.removeEventListener("popstate",M)}onHashChange(M){const z=Ne().getGlobalEventTarget(this._doc,"window");return z.addEventListener("hashchange",M,!1),()=>z.removeEventListener("hashchange",M)}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(M){this.location.pathname=M}pushState(M,z,fe){X()?this._history.pushState(M,z,fe):this.location.hash=fe}replaceState(M,z,fe){X()?this._history.replaceState(M,z,fe):this.location.hash=fe}forward(){this._history.forward()}back(){this._history.back()}historyGo(M=0){this._history.go(M)}getState(){return this._history.state}}return A.\u0275fac=function(M){return new(M||A)(s.LFG(Y))},A.\u0275prov=(0,s.Yz7)({factory:te,token:A,providedIn:"platform"}),A})();function X(){return!!window.history.pushState}function te(){return new K((0,s.LFG)(Y))}function ce(A,V){if(0==A.length)return V;if(0==V.length)return A;let M=0;return A.endsWith("/")&&M++,V.startsWith("/")&&M++,2==M?A+V.substring(1):1==M?A+V:A+"/"+V}function _e(A){const V=A.match(/#|\?|$/),M=V&&V.index||A.length;return A.slice(0,M-("/"===A[M-1]?1:0))+A.slice(M)}function se(A){return A&&"?"!==A[0]?"?"+A:A}let me=(()=>{class A{historyGo(M){throw new Error("Not implemented")}}return A.\u0275fac=function(M){return new(M||A)},A.\u0275prov=(0,s.Yz7)({factory:ne,token:A,providedIn:"root"}),A})();function ne(A){const V=(0,s.LFG)(Y).location;return new Re((0,s.LFG)(Z),V&&V.origin||"")}const Me=new s.OlP("appBaseHref");let Re=(()=>{class A extends me{constructor(M,z){if(super(),this._platformLocation=M,this._removeListenerFns=[],null==z&&(z=this._platformLocation.getBaseHrefFromDOM()),null==z)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=z}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}prepareExternalUrl(M){return ce(this._baseHref,M)}path(M=!1){const z=this._platformLocation.pathname+se(this._platformLocation.search),fe=this._platformLocation.hash;return fe&&M?`${z}${fe}`:z}pushState(M,z,fe,Ke){const it=this.prepareExternalUrl(fe+se(Ke));this._platformLocation.pushState(M,z,it)}replaceState(M,z,fe,Ke){const it=this.prepareExternalUrl(fe+se(Ke));this._platformLocation.replaceState(M,z,it)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var z,fe;null===(fe=(z=this._platformLocation).historyGo)||void 0===fe||fe.call(z,M)}}return A.\u0275fac=function(M){return new(M||A)(s.LFG(Z),s.LFG(Me,8))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac}),A})(),we=(()=>{class A extends me{constructor(M,z){super(),this._platformLocation=M,this._baseHref="",this._removeListenerFns=[],null!=z&&(this._baseHref=z)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}path(M=!1){let z=this._platformLocation.hash;return null==z&&(z="#"),z.length>0?z.substring(1):z}prepareExternalUrl(M){const z=ce(this._baseHref,M);return z.length>0?"#"+z:z}pushState(M,z,fe,Ke){let it=this.prepareExternalUrl(fe+se(Ke));0==it.length&&(it=this._platformLocation.pathname),this._platformLocation.pushState(M,z,it)}replaceState(M,z,fe,Ke){let it=this.prepareExternalUrl(fe+se(Ke));0==it.length&&(it=this._platformLocation.pathname),this._platformLocation.replaceState(M,z,it)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var z,fe;null===(fe=(z=this._platformLocation).historyGo)||void 0===fe||fe.call(z,M)}}return A.\u0275fac=function(M){return new(M||A)(s.LFG(Z),s.LFG(Me,8))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac}),A})(),Xe=(()=>{class A{constructor(M,z){this._subject=new s.vpe,this._urlChangeListeners=[],this._platformStrategy=M;const fe=this._platformStrategy.getBaseHref();this._platformLocation=z,this._baseHref=_e($e(fe)),this._platformStrategy.onPopState(Ke=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ke.state,type:Ke.type})})}path(M=!1){return this.normalize(this._platformStrategy.path(M))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(M,z=""){return this.path()==this.normalize(M+se(z))}normalize(M){return A.stripTrailingSlash(function(A,V){return A&&V.startsWith(A)?V.substring(A.length):V}(this._baseHref,$e(M)))}prepareExternalUrl(M){return M&&"/"!==M[0]&&(M="/"+M),this._platformStrategy.prepareExternalUrl(M)}go(M,z="",fe=null){this._platformStrategy.pushState(fe,"",M,z),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+se(z)),fe)}replaceState(M,z="",fe=null){this._platformStrategy.replaceState(fe,"",M,z),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+se(z)),fe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(M=0){var z,fe;null===(fe=(z=this._platformStrategy).historyGo)||void 0===fe||fe.call(z,M)}onUrlChange(M){this._urlChangeListeners.push(M),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(z=>{this._notifyUrlChangeListeners(z.url,z.state)}))}_notifyUrlChangeListeners(M="",z){this._urlChangeListeners.forEach(fe=>fe(M,z))}subscribe(M,z,fe){return this._subject.subscribe({next:M,error:z,complete:fe})}}return A.\u0275fac=function(M){return new(M||A)(s.LFG(me),s.LFG(Z))},A.normalizeQueryParams=se,A.joinWithSlash=ce,A.stripTrailingSlash=_e,A.\u0275prov=(0,s.Yz7)({factory:Je,token:A,providedIn:"root"}),A})();function Je(){return new Xe((0,s.LFG)(me),(0,s.LFG)(Z))}function $e(A){return A.replace(/\/index.html$/,"")}var qe=(()=>((qe=qe||{})[qe.Zero=0]="Zero",qe[qe.One=1]="One",qe[qe.Two=2]="Two",qe[qe.Few=3]="Few",qe[qe.Many=4]="Many",qe[qe.Other=5]="Other",qe))(),xe=(()=>((xe=xe||{})[xe.Format=0]="Format",xe[xe.Standalone=1]="Standalone",xe))(),Ae=(()=>((Ae=Ae||{})[Ae.Narrow=0]="Narrow",Ae[Ae.Abbreviated=1]="Abbreviated",Ae[Ae.Wide=2]="Wide",Ae[Ae.Short=3]="Short",Ae))(),Le=(()=>((Le=Le||{})[Le.Short=0]="Short",Le[Le.Medium=1]="Medium",Le[Le.Long=2]="Long",Le[Le.Full=3]="Full",Le))(),We=(()=>((We=We||{})[We.Decimal=0]="Decimal",We[We.Group=1]="Group",We[We.List=2]="List",We[We.PercentSign=3]="PercentSign",We[We.PlusSign=4]="PlusSign",We[We.MinusSign=5]="MinusSign",We[We.Exponential=6]="Exponential",We[We.SuperscriptingExponent=7]="SuperscriptingExponent",We[We.PerMille=8]="PerMille",We[We.Infinity=9]="Infinity",We[We.NaN=10]="NaN",We[We.TimeSeparator=11]="TimeSeparator",We[We.CurrencyDecimal=12]="CurrencyDecimal",We[We.CurrencyGroup=13]="CurrencyGroup",We))();function He(A,V){return Hn((0,s.cg1)(A)[s.wAp.DateFormat],V)}function _t(A,V){return Hn((0,s.cg1)(A)[s.wAp.TimeFormat],V)}function Et(A,V){return Hn((0,s.cg1)(A)[s.wAp.DateTimeFormat],V)}function ft(A,V){const M=(0,s.cg1)(A),z=M[s.wAp.NumberSymbols][V];if(void 0===z){if(V===We.CurrencyDecimal)return M[s.wAp.NumberSymbols][We.Decimal];if(V===We.CurrencyGroup)return M[s.wAp.NumberSymbols][We.Group]}return z}const Nt=s.kL8;function Fn(A){if(!A[s.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${A[s.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Hn(A,V){for(let M=V;M>-1;M--)if(void 0!==A[M])return A[M];throw new Error("Locale data API: locale data undefined")}function Nn(A){const[V,M]=A.split(":");return{hours:+V,minutes:+M}}const ye=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nt={},Oe=/((?:[^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 bt=(()=>((bt=bt||{})[bt.Short=0]="Short",bt[bt.ShortGMT=1]="ShortGMT",bt[bt.Long=2]="Long",bt[bt.Extended=3]="Extended",bt))(),dt=(()=>((dt=dt||{})[dt.FullYear=0]="FullYear",dt[dt.Month=1]="Month",dt[dt.Date=2]="Date",dt[dt.Hours=3]="Hours",dt[dt.Minutes=4]="Minutes",dt[dt.Seconds=5]="Seconds",dt[dt.FractionalSeconds=6]="FractionalSeconds",dt[dt.Day=7]="Day",dt))(),ht=(()=>((ht=ht||{})[ht.DayPeriods=0]="DayPeriods",ht[ht.Days=1]="Days",ht[ht.Months=2]="Months",ht[ht.Eras=3]="Eras",ht))();function zt(A,V,M,z){let fe=function(A){if(Mr(A))return A;if("number"==typeof A&&!isNaN(A))return new Date(A);if("string"==typeof A){if(A=A.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(A)){const[fe,Ke=1,it=1]=A.split("-").map(T=>+T);return Dn(fe,Ke-1,it)}const M=parseFloat(A);if(!isNaN(A-M))return new Date(M);let z;if(z=A.match(ye))return function(A){const V=new Date(0);let M=0,z=0;const fe=A[8]?V.setUTCFullYear:V.setFullYear,Ke=A[8]?V.setUTCHours:V.setHours;A[9]&&(M=Number(A[9]+A[10]),z=Number(A[9]+A[11])),fe.call(V,Number(A[1]),Number(A[2])-1,Number(A[3]));const it=Number(A[4]||0)-M,T=Number(A[5]||0)-z,D=Number(A[6]||0),b=Math.floor(1e3*parseFloat("0."+(A[7]||0)));return Ke.call(V,it,T,D,b),V}(z)}const V=new Date(A);if(!Mr(V))throw new Error(`Unable to convert "${A}" into a date`);return V}(A);V=Zt(M,V)||V;let T,it=[];for(;V;){if(T=Oe.exec(V),!T){it.push(V);break}{it=it.concat(T.slice(1));const B=it.pop();if(!B)break;V=B}}let D=fe.getTimezoneOffset();z&&(D=dr(z,D),fe=function(A,V,M){const fe=A.getTimezoneOffset();return function(A,V){return(A=new Date(A.getTime())).setMinutes(A.getMinutes()+V),A}(A,-1*(dr(V,fe)-fe))}(fe,z));let b="";return it.forEach(B=>{const Ie=function(A){if(gr[A])return gr[A];let V;switch(A){case"G":case"GG":case"GGG":V=Qt(ht.Eras,Ae.Abbreviated);break;case"GGGG":V=Qt(ht.Eras,Ae.Wide);break;case"GGGGG":V=Qt(ht.Eras,Ae.Narrow);break;case"y":V=wt(dt.FullYear,1,0,!1,!0);break;case"yy":V=wt(dt.FullYear,2,0,!0,!0);break;case"yyy":V=wt(dt.FullYear,3,0,!1,!0);break;case"yyyy":V=wt(dt.FullYear,4,0,!1,!0);break;case"Y":V=ir(1);break;case"YY":V=ir(2,!0);break;case"YYY":V=ir(3);break;case"YYYY":V=ir(4);break;case"M":case"L":V=wt(dt.Month,1,1);break;case"MM":case"LL":V=wt(dt.Month,2,1);break;case"MMM":V=Qt(ht.Months,Ae.Abbreviated);break;case"MMMM":V=Qt(ht.Months,Ae.Wide);break;case"MMMMM":V=Qt(ht.Months,Ae.Narrow);break;case"LLL":V=Qt(ht.Months,Ae.Abbreviated,xe.Standalone);break;case"LLLL":V=Qt(ht.Months,Ae.Wide,xe.Standalone);break;case"LLLLL":V=Qt(ht.Months,Ae.Narrow,xe.Standalone);break;case"w":V=on(1);break;case"ww":V=on(2);break;case"W":V=on(1,!0);break;case"d":V=wt(dt.Date,1);break;case"dd":V=wt(dt.Date,2);break;case"c":case"cc":V=wt(dt.Day,1);break;case"ccc":V=Qt(ht.Days,Ae.Abbreviated,xe.Standalone);break;case"cccc":V=Qt(ht.Days,Ae.Wide,xe.Standalone);break;case"ccccc":V=Qt(ht.Days,Ae.Narrow,xe.Standalone);break;case"cccccc":V=Qt(ht.Days,Ae.Short,xe.Standalone);break;case"E":case"EE":case"EEE":V=Qt(ht.Days,Ae.Abbreviated);break;case"EEEE":V=Qt(ht.Days,Ae.Wide);break;case"EEEEE":V=Qt(ht.Days,Ae.Narrow);break;case"EEEEEE":V=Qt(ht.Days,Ae.Short);break;case"a":case"aa":case"aaa":V=Qt(ht.DayPeriods,Ae.Abbreviated);break;case"aaaa":V=Qt(ht.DayPeriods,Ae.Wide);break;case"aaaaa":V=Qt(ht.DayPeriods,Ae.Narrow);break;case"b":case"bb":case"bbb":V=Qt(ht.DayPeriods,Ae.Abbreviated,xe.Standalone,!0);break;case"bbbb":V=Qt(ht.DayPeriods,Ae.Wide,xe.Standalone,!0);break;case"bbbbb":V=Qt(ht.DayPeriods,Ae.Narrow,xe.Standalone,!0);break;case"B":case"BB":case"BBB":V=Qt(ht.DayPeriods,Ae.Abbreviated,xe.Format,!0);break;case"BBBB":V=Qt(ht.DayPeriods,Ae.Wide,xe.Format,!0);break;case"BBBBB":V=Qt(ht.DayPeriods,Ae.Narrow,xe.Format,!0);break;case"h":V=wt(dt.Hours,1,-12);break;case"hh":V=wt(dt.Hours,2,-12);break;case"H":V=wt(dt.Hours,1);break;case"HH":V=wt(dt.Hours,2);break;case"m":V=wt(dt.Minutes,1);break;case"mm":V=wt(dt.Minutes,2);break;case"s":V=wt(dt.Seconds,1);break;case"ss":V=wt(dt.Seconds,2);break;case"S":V=wt(dt.FractionalSeconds,1);break;case"SS":V=wt(dt.FractionalSeconds,2);break;case"SSS":V=wt(dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":V=Bn(bt.Short);break;case"ZZZZZ":V=Bn(bt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":V=Bn(bt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":V=Bn(bt.Long);break;default:return null}return gr[A]=V,V}(B);b+=Ie?Ie(fe,M,D):"''"===B?"'":B.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),b}function Dn(A,V,M){const z=new Date(0);return z.setFullYear(A,V,M),z.setHours(0,0,0),z}function Zt(A,V){const M=function(A){return(0,s.cg1)(A)[s.wAp.LocaleId]}(A);if(nt[M]=nt[M]||{},nt[M][V])return nt[M][V];let z="";switch(V){case"shortDate":z=He(A,Le.Short);break;case"mediumDate":z=He(A,Le.Medium);break;case"longDate":z=He(A,Le.Long);break;case"fullDate":z=He(A,Le.Full);break;case"shortTime":z=_t(A,Le.Short);break;case"mediumTime":z=_t(A,Le.Medium);break;case"longTime":z=_t(A,Le.Long);break;case"fullTime":z=_t(A,Le.Full);break;case"short":const fe=Zt(A,"shortTime"),Ke=Zt(A,"shortDate");z=In(Et(A,Le.Short),[fe,Ke]);break;case"medium":const it=Zt(A,"mediumTime"),T=Zt(A,"mediumDate");z=In(Et(A,Le.Medium),[it,T]);break;case"long":const D=Zt(A,"longTime"),b=Zt(A,"longDate");z=In(Et(A,Le.Long),[D,b]);break;case"full":const B=Zt(A,"fullTime"),Ie=Zt(A,"fullDate");z=In(Et(A,Le.Full),[B,Ie])}return z&&(nt[M][V]=z),z}function In(A,V){return V&&(A=A.replace(/\{([^}]+)}/g,function(M,z){return null!=V&&z in V?V[z]:M})),A}function On(A,V,M="-",z,fe){let Ke="";(A<0||fe&&A<=0)&&(fe?A=1-A:(A=-A,Ke=M));let it=String(A);for(;it.length0||T>-M)&&(T+=M),A===dt.Hours)0===T&&-12===M&&(T=12);else if(A===dt.FractionalSeconds)return function(A,V){return On(A,3).substr(0,V)}(T,V);const D=ft(it,We.MinusSign);return On(T,V,D,z,fe)}}function Qt(A,V,M=xe.Format,z=!1){return function(fe,Ke){return function(A,V,M,z,fe,Ke){switch(M){case ht.Months:return function(A,V,M){const z=(0,s.cg1)(A),Ke=Hn([z[s.wAp.MonthsFormat],z[s.wAp.MonthsStandalone]],V);return Hn(Ke,M)}(V,fe,z)[A.getMonth()];case ht.Days:return function(A,V,M){const z=(0,s.cg1)(A),Ke=Hn([z[s.wAp.DaysFormat],z[s.wAp.DaysStandalone]],V);return Hn(Ke,M)}(V,fe,z)[A.getDay()];case ht.DayPeriods:const it=A.getHours(),T=A.getMinutes();if(Ke){const b=function(A){const V=(0,s.cg1)(A);return Fn(V),(V[s.wAp.ExtraData][2]||[]).map(z=>"string"==typeof z?Nn(z):[Nn(z[0]),Nn(z[1])])}(V),B=function(A,V,M){const z=(0,s.cg1)(A);Fn(z);const Ke=Hn([z[s.wAp.ExtraData][0],z[s.wAp.ExtraData][1]],V)||[];return Hn(Ke,M)||[]}(V,fe,z),Ie=b.findIndex(ct=>{if(Array.isArray(ct)){const[Wt,un]=ct,Wn=it>=Wt.hours&&T>=Wt.minutes,kn=it0?Math.floor(fe/60):Math.ceil(fe/60);switch(A){case bt.Short:return(fe>=0?"+":"")+On(it,2,Ke)+On(Math.abs(fe%60),2,Ke);case bt.ShortGMT:return"GMT"+(fe>=0?"+":"")+On(it,1,Ke);case bt.Long:return"GMT"+(fe>=0?"+":"")+On(it,2,Ke)+":"+On(Math.abs(fe%60),2,Ke);case bt.Extended:return 0===z?"Z":(fe>=0?"+":"")+On(it,2,Ke)+":"+On(Math.abs(fe%60),2,Ke);default:throw new Error(`Unknown zone width "${A}"`)}}}function pt(A){return Dn(A.getFullYear(),A.getMonth(),A.getDate()+(4-A.getDay()))}function on(A,V=!1){return function(M,z){let fe;if(V){const Ke=new Date(M.getFullYear(),M.getMonth(),1).getDay()-1,it=M.getDate();fe=1+Math.floor((it+Ke)/7)}else{const Ke=pt(M),it=function(A){const V=Dn(A,0,1).getDay();return Dn(A,0,1+(V<=4?4:11)-V)}(Ke.getFullYear()),T=Ke.getTime()-it.getTime();fe=1+Math.round(T/6048e5)}return On(fe,A,ft(z,We.MinusSign))}}function ir(A,V=!1){return function(M,z){return On(pt(M).getFullYear(),A,ft(z,We.MinusSign),V)}}const gr={};function dr(A,V){A=A.replace(/:/g,"");const M=Date.parse("Jan 01, 1970 00:00:00 "+A)/6e4;return isNaN(M)?V:M}function Mr(A){return A instanceof Date&&!isNaN(A.valueOf())}class Jt{}let Sn=(()=>{class A extends Jt{constructor(M){super(),this.locale=M}getPluralCategory(M,z){switch(Nt(z||this.locale)(M)){case qe.Zero:return"zero";case qe.One:return"one";case qe.Two:return"two";case qe.Few:return"few";case qe.Many:return"many";default:return"other"}}}return A.\u0275fac=function(M){return new(M||A)(s.LFG(s.soG))},A.\u0275prov=s.Yz7({token:A,factory:A.\u0275fac}),A})();function zn(A,V,M){return(0,s.dwT)(A,V,M)}function En(A,V){V=encodeURIComponent(V);for(const M of A.split(";")){const z=M.indexOf("="),[fe,Ke]=-1==z?[M,""]:[M.slice(0,z),M.slice(z+1)];if(fe.trim()===V)return decodeURIComponent(Ke)}return null}let Fr=(()=>{class A{constructor(M,z,fe,Ke){this._iterableDiffers=M,this._keyValueDiffers=z,this._ngEl=fe,this._renderer=Ke,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(M){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof M?M.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(M){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof M?M.split(/\s+/):M,this._rawClass&&((0,s.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const M=this._iterableDiffer.diff(this._rawClass);M&&this._applyIterableChanges(M)}else if(this._keyValueDiffer){const M=this._keyValueDiffer.diff(this._rawClass);M&&this._applyKeyValueChanges(M)}}_applyKeyValueChanges(M){M.forEachAddedItem(z=>this._toggleClass(z.key,z.currentValue)),M.forEachChangedItem(z=>this._toggleClass(z.key,z.currentValue)),M.forEachRemovedItem(z=>{z.previousValue&&this._toggleClass(z.key,!1)})}_applyIterableChanges(M){M.forEachAddedItem(z=>{if("string"!=typeof z.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,s.AaK)(z.item)}`);this._toggleClass(z.item,!0)}),M.forEachRemovedItem(z=>this._toggleClass(z.item,!1))}_applyClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(z=>this._toggleClass(z,!0)):Object.keys(M).forEach(z=>this._toggleClass(z,!!M[z])))}_removeClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(z=>this._toggleClass(z,!1)):Object.keys(M).forEach(z=>this._toggleClass(z,!1)))}_toggleClass(M,z){(M=M.trim())&&M.split(/\s+/g).forEach(fe=>{z?this._renderer.addClass(this._ngEl.nativeElement,fe):this._renderer.removeClass(this._ngEl.nativeElement,fe)})}}return A.\u0275fac=function(M){return new(M||A)(s.Y36(s.ZZ4),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Qsj))},A.\u0275dir=s.lG2({type:A,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),A})();class Lt{constructor(V,M,z,fe){this.$implicit=V,this.ngForOf=M,this.index=z,this.count=fe}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 $r=(()=>{class A{constructor(M,z,fe){this._viewContainer=M,this._template=z,this._differs=fe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(M){this._ngForOf=M,this._ngForOfDirty=!0}set ngForTrackBy(M){this._trackByFn=M}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(M){M&&(this._template=M)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const M=this._ngForOf;if(!this._differ&&M)try{this._differ=this._differs.find(M).create(this.ngForTrackBy)}catch(z){throw new Error(`Cannot find a differ supporting object '${M}' of type '${function(A){return A.name||typeof A}(M)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const M=this._differ.diff(this._ngForOf);M&&this._applyChanges(M)}}_applyChanges(M){const z=[];M.forEachOperation((fe,Ke,it)=>{if(null==fe.previousIndex){const T=this._viewContainer.createEmbeddedView(this._template,new Lt(null,this._ngForOf,-1,-1),null===it?void 0:it),D=new U(fe,T);z.push(D)}else if(null==it)this._viewContainer.remove(null===Ke?void 0:Ke);else if(null!==Ke){const T=this._viewContainer.get(Ke);this._viewContainer.move(T,it);const D=new U(fe,T);z.push(D)}});for(let fe=0;fe{this._viewContainer.get(fe.currentIndex).context.$implicit=fe.item})}_perViewChange(M,z){M.context.$implicit=z.item}static ngTemplateContextGuard(M,z){return!0}}return A.\u0275fac=function(M){return new(M||A)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4))},A.\u0275dir=s.lG2({type:A,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),A})();class U{constructor(V,M){this.record=V,this.view=M}}let C=(()=>{class A{constructor(M,z){this._viewContainer=M,this._context=new x,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=z}set ngIf(M){this._context.$implicit=this._context.ngIf=M,this._updateView()}set ngIfThen(M){j("ngIfThen",M),this._thenTemplateRef=M,this._thenViewRef=null,this._updateView()}set ngIfElse(M){j("ngIfElse",M),this._elseTemplateRef=M,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(M,z){return!0}}return A.\u0275fac=function(M){return new(M||A)(s.Y36(s.s_b),s.Y36(s.Rgc))},A.\u0275dir=s.lG2({type:A,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),A})();class x{constructor(){this.$implicit=null,this.ngIf=null}}function j(A,V){if(V&&!V.createEmbeddedView)throw new Error(`${A} must be a TemplateRef, but received '${(0,s.AaK)(V)}'.`)}let ut=(()=>{class A{constructor(M){this._viewContainerRef=M,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(M){if(M.ngTemplateOutlet){const z=this._viewContainerRef;this._viewRef&&z.remove(z.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?z.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&M.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return A.\u0275fac=function(M){return new(M||A)(s.Y36(s.s_b))},A.\u0275dir=s.lG2({type:A,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[s.TTD]}),A})();let Nr=(()=>{class A{constructor(M){this.locale=M}transform(M,z="mediumDate",fe,Ke){if(null==M||""===M||M!=M)return null;try{return zt(M,z,Ke||this.locale,fe)}catch(it){throw function(A,V){return Error(`InvalidPipeArgument: '${V}' for pipe '${(0,s.AaK)(A)}'`)}(A,it.message)}}}return A.\u0275fac=function(M){return new(M||A)(s.Y36(s.soG,16))},A.\u0275pipe=s.Yjl({name:"date",type:A,pure:!0}),A})(),go=(()=>{class A{}return A.\u0275fac=function(M){return new(M||A)},A.\u0275mod=s.oAB({type:A}),A.\u0275inj=s.cJS({providers:[{provide:Jt,useClass:Sn}]}),A})();const eo="browser";function Xr(A){return"server"===A}let Ci=(()=>{class A{}return A.\u0275prov=(0,s.Yz7)({token:A,providedIn:"root",factory:()=>new Vo((0,s.LFG)(Y),window)}),A})();class Vo{constructor(V,M){this.document=V,this.window=M,this.offset=()=>[0,0]}setOffset(V){this.offset=Array.isArray(V)?()=>V:V}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(V){this.supportsScrolling()&&this.window.scrollTo(V[0],V[1])}scrollToAnchor(V){if(!this.supportsScrolling())return;const M=function(A,V){const M=A.getElementById(V)||A.getElementsByName(V)[0];if(M)return M;if("function"==typeof A.createTreeWalker&&A.body&&(A.body.createShadowRoot||A.body.attachShadow)){const z=A.createTreeWalker(A.body,NodeFilter.SHOW_ELEMENT);let fe=z.currentNode;for(;fe;){const Ke=fe.shadowRoot;if(Ke){const it=Ke.getElementById(V)||Ke.querySelector(`[name="${V}"]`);if(it)return it}fe=z.nextNode()}}return null}(this.document,V);M&&(this.scrollToElement(M),this.attemptFocus(M))}setHistoryScrollRestoration(V){if(this.supportScrollRestoration()){const M=this.window.history;M&&M.scrollRestoration&&(M.scrollRestoration=V)}}scrollToElement(V){const M=V.getBoundingClientRect(),z=M.left+this.window.pageXOffset,fe=M.top+this.window.pageYOffset,Ke=this.offset();this.window.scrollTo(z-Ke[0],fe-Ke[1])}attemptFocus(V){return V.focus(),this.document.activeElement===V}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const V=mo(this.window.history)||mo(Object.getPrototypeOf(this.window.history));return!(!V||!V.writable&&!V.set)}catch(V){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(V){return!1}}}function mo(A){return Object.getOwnPropertyDescriptor(A,"scrollRestoration")}class Di{}},1841:(Tt,Ge,L)=>{"use strict";L.d(Ge,{TP:()=>jt,eN:()=>We,JF:()=>Hn,UA:()=>Ae,WM:()=>ee,LE:()=>me,Zn:()=>xe});var s=L(8583),O=L(639),Ne=L(5917),je=L(7574),Te=L(4612),ve=L(5435),Y=L(8002);class Z{}class Q{}class ee{constructor(pe){this.normalizedNames=new Map,this.lazyUpdate=null,pe?this.lazyInit="string"==typeof pe?()=>{this.headers=new Map,pe.split("\n").forEach(ye=>{const nt=ye.indexOf(":");if(nt>0){const Oe=ye.slice(0,nt),bt=Oe.toLowerCase(),dt=ye.slice(nt+1).trim();this.maybeSetNormalizedName(Oe,bt),this.headers.has(bt)?this.headers.get(bt).push(dt):this.headers.set(bt,[dt])}})}:()=>{this.headers=new Map,Object.keys(pe).forEach(ye=>{let nt=pe[ye];const Oe=ye.toLowerCase();"string"==typeof nt&&(nt=[nt]),nt.length>0&&(this.headers.set(Oe,nt),this.maybeSetNormalizedName(ye,Oe))})}:this.headers=new Map}has(pe){return this.init(),this.headers.has(pe.toLowerCase())}get(pe){this.init();const ye=this.headers.get(pe.toLowerCase());return ye&&ye.length>0?ye[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(pe){return this.init(),this.headers.get(pe.toLowerCase())||null}append(pe,ye){return this.clone({name:pe,value:ye,op:"a"})}set(pe,ye){return this.clone({name:pe,value:ye,op:"s"})}delete(pe,ye){return this.clone({name:pe,value:ye,op:"d"})}maybeSetNormalizedName(pe,ye){this.normalizedNames.has(ye)||this.normalizedNames.set(ye,pe)}init(){this.lazyInit&&(this.lazyInit instanceof ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(pe=>this.applyUpdate(pe)),this.lazyUpdate=null))}copyFrom(pe){pe.init(),Array.from(pe.headers.keys()).forEach(ye=>{this.headers.set(ye,pe.headers.get(ye)),this.normalizedNames.set(ye,pe.normalizedNames.get(ye))})}clone(pe){const ye=new ee;return ye.lazyInit=this.lazyInit&&this.lazyInit instanceof ee?this.lazyInit:this,ye.lazyUpdate=(this.lazyUpdate||[]).concat([pe]),ye}applyUpdate(pe){const ye=pe.name.toLowerCase();switch(pe.op){case"a":case"s":let nt=pe.value;if("string"==typeof nt&&(nt=[nt]),0===nt.length)return;this.maybeSetNormalizedName(pe.name,ye);const Oe=("a"===pe.op?this.headers.get(ye):void 0)||[];Oe.push(...nt),this.headers.set(ye,Oe);break;case"d":const bt=pe.value;if(bt){let dt=this.headers.get(ye);if(!dt)return;dt=dt.filter(ht=>-1===bt.indexOf(ht)),0===dt.length?(this.headers.delete(ye),this.normalizedNames.delete(ye)):this.headers.set(ye,dt)}else this.headers.delete(ye),this.normalizedNames.delete(ye)}}forEach(pe){this.init(),Array.from(this.normalizedNames.keys()).forEach(ye=>pe(this.normalizedNames.get(ye),this.headers.get(ye)))}}class K{encodeKey(pe){return _e(pe)}encodeValue(pe){return _e(pe)}decodeKey(pe){return decodeURIComponent(pe)}decodeValue(pe){return decodeURIComponent(pe)}}const te=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _e(ze){return encodeURIComponent(ze).replace(te,(pe,ye)=>{var nt;return null!==(nt=ce[ye])&&void 0!==nt?nt:pe})}function se(ze){return`${ze}`}class me{constructor(pe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=pe.encoder||new K,pe.fromString){if(pe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(ze,pe){const ye=new Map;return ze.length>0&&ze.replace(/^\?/,"").split("&").forEach(Oe=>{const bt=Oe.indexOf("="),[dt,ht]=-1==bt?[pe.decodeKey(Oe),""]:[pe.decodeKey(Oe.slice(0,bt)),pe.decodeValue(Oe.slice(bt+1))],zt=ye.get(dt)||[];zt.push(ht),ye.set(dt,zt)}),ye}(pe.fromString,this.encoder)}else pe.fromObject?(this.map=new Map,Object.keys(pe.fromObject).forEach(ye=>{const nt=pe.fromObject[ye];this.map.set(ye,Array.isArray(nt)?nt:[nt])})):this.map=null}has(pe){return this.init(),this.map.has(pe)}get(pe){this.init();const ye=this.map.get(pe);return ye?ye[0]:null}getAll(pe){return this.init(),this.map.get(pe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(pe,ye){return this.clone({param:pe,value:ye,op:"a"})}appendAll(pe){const ye=[];return Object.keys(pe).forEach(nt=>{const Oe=pe[nt];Array.isArray(Oe)?Oe.forEach(bt=>{ye.push({param:nt,value:bt,op:"a"})}):ye.push({param:nt,value:Oe,op:"a"})}),this.clone(ye)}set(pe,ye){return this.clone({param:pe,value:ye,op:"s"})}delete(pe,ye){return this.clone({param:pe,value:ye,op:"d"})}toString(){return this.init(),this.keys().map(pe=>{const ye=this.encoder.encodeKey(pe);return this.map.get(pe).map(nt=>ye+"="+this.encoder.encodeValue(nt)).join("&")}).filter(pe=>""!==pe).join("&")}clone(pe){const ye=new me({encoder:this.encoder});return ye.cloneFrom=this.cloneFrom||this,ye.updates=(this.updates||[]).concat(pe),ye}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(pe=>this.map.set(pe,this.cloneFrom.map.get(pe))),this.updates.forEach(pe=>{switch(pe.op){case"a":case"s":const ye=("a"===pe.op?this.map.get(pe.param):void 0)||[];ye.push(se(pe.value)),this.map.set(pe.param,ye);break;case"d":if(void 0===pe.value){this.map.delete(pe.param);break}{let nt=this.map.get(pe.param)||[];const Oe=nt.indexOf(se(pe.value));-1!==Oe&&nt.splice(Oe,1),nt.length>0?this.map.set(pe.param,nt):this.map.delete(pe.param)}}}),this.cloneFrom=this.updates=null)}}class Me{constructor(){this.map=new Map}set(pe,ye){return this.map.set(pe,ye),this}get(pe){return this.map.has(pe)||this.map.set(pe,pe.defaultValue()),this.map.get(pe)}delete(pe){return this.map.delete(pe),this}keys(){return this.map.keys()}}function we(ze){return"undefined"!=typeof ArrayBuffer&&ze instanceof ArrayBuffer}function Xe(ze){return"undefined"!=typeof Blob&&ze instanceof Blob}function Je(ze){return"undefined"!=typeof FormData&&ze instanceof FormData}class $e{constructor(pe,ye,nt,Oe){let bt;if(this.url=ye,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=pe.toUpperCase(),function(ze){switch(ze){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Oe?(this.body=void 0!==nt?nt:null,bt=Oe):bt=nt,bt&&(this.reportProgress=!!bt.reportProgress,this.withCredentials=!!bt.withCredentials,bt.responseType&&(this.responseType=bt.responseType),bt.headers&&(this.headers=bt.headers),bt.context&&(this.context=bt.context),bt.params&&(this.params=bt.params)),this.headers||(this.headers=new ee),this.context||(this.context=new Me),this.params){const dt=this.params.toString();if(0===dt.length)this.urlWithParams=ye;else{const ht=ye.indexOf("?");this.urlWithParams=ye+(-1===ht?"?":htOn.set(en,pe.setHeaders[en]),Dn)),pe.setParams&&(Zt=Object.keys(pe.setParams).reduce((On,en)=>On.set(en,pe.setParams[en]),Zt)),new $e(nt,Oe,dt,{params:Zt,headers:Dn,context:In,reportProgress:zt,responseType:bt,withCredentials:ht})}}var Se=(()=>((Se=Se||{})[Se.Sent=0]="Sent",Se[Se.UploadProgress=1]="UploadProgress",Se[Se.ResponseHeader=2]="ResponseHeader",Se[Se.DownloadProgress=3]="DownloadProgress",Se[Se.Response=4]="Response",Se[Se.User=5]="User",Se))();class Qe{constructor(pe,ye=200,nt="OK"){this.headers=pe.headers||new ee,this.status=void 0!==pe.status?pe.status:ye,this.statusText=pe.statusText||nt,this.url=pe.url||null,this.ok=this.status>=200&&this.status<300}}class qe extends Qe{constructor(pe={}){super(pe),this.type=Se.ResponseHeader}clone(pe={}){return new qe({headers:pe.headers||this.headers,status:void 0!==pe.status?pe.status:this.status,statusText:pe.statusText||this.statusText,url:pe.url||this.url||void 0})}}class xe extends Qe{constructor(pe={}){super(pe),this.type=Se.Response,this.body=void 0!==pe.body?pe.body:null}clone(pe={}){return new xe({body:void 0!==pe.body?pe.body:this.body,headers:pe.headers||this.headers,status:void 0!==pe.status?pe.status:this.status,statusText:pe.statusText||this.statusText,url:pe.url||this.url||void 0})}}class Ae extends Qe{constructor(pe){super(pe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${pe.url||"(unknown url)"}`:`Http failure response for ${pe.url||"(unknown url)"}: ${pe.status} ${pe.statusText}`,this.error=pe.error||null}}function Le(ze,pe){return{body:pe,headers:ze.headers,context:ze.context,observe:ze.observe,params:ze.params,reportProgress:ze.reportProgress,responseType:ze.responseType,withCredentials:ze.withCredentials}}let We=(()=>{class ze{constructor(ye){this.handler=ye}request(ye,nt,Oe={}){let bt;if(ye instanceof $e)bt=ye;else{let zt,Dn;zt=Oe.headers instanceof ee?Oe.headers:new ee(Oe.headers),Oe.params&&(Dn=Oe.params instanceof me?Oe.params:new me({fromObject:Oe.params})),bt=new $e(ye,nt,void 0!==Oe.body?Oe.body:null,{headers:zt,context:Oe.context,params:Dn,reportProgress:Oe.reportProgress,responseType:Oe.responseType||"json",withCredentials:Oe.withCredentials})}const dt=(0,Ne.of)(bt).pipe((0,Te.b)(zt=>this.handler.handle(zt)));if(ye instanceof $e||"events"===Oe.observe)return dt;const ht=dt.pipe((0,ve.h)(zt=>zt instanceof xe));switch(Oe.observe||"body"){case"body":switch(bt.responseType){case"arraybuffer":return ht.pipe((0,Y.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return zt.body}));case"blob":return ht.pipe((0,Y.U)(zt=>{if(null!==zt.body&&!(zt.body instanceof Blob))throw new Error("Response is not a Blob.");return zt.body}));case"text":return ht.pipe((0,Y.U)(zt=>{if(null!==zt.body&&"string"!=typeof zt.body)throw new Error("Response is not a string.");return zt.body}));default:return ht.pipe((0,Y.U)(zt=>zt.body))}case"response":return ht;default:throw new Error(`Unreachable: unhandled observe type ${Oe.observe}}`)}}delete(ye,nt={}){return this.request("DELETE",ye,nt)}get(ye,nt={}){return this.request("GET",ye,nt)}head(ye,nt={}){return this.request("HEAD",ye,nt)}jsonp(ye,nt){return this.request("JSONP",ye,{params:(new me).append(nt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ye,nt={}){return this.request("OPTIONS",ye,nt)}patch(ye,nt,Oe={}){return this.request("PATCH",ye,Le(Oe,nt))}post(ye,nt,Oe={}){return this.request("POST",ye,Le(Oe,nt))}put(ye,nt,Oe={}){return this.request("PUT",ye,Le(Oe,nt))}}return ze.\u0275fac=function(ye){return new(ye||ze)(O.LFG(Z))},ze.\u0275prov=O.Yz7({token:ze,factory:ze.\u0275fac}),ze})();class Ot{constructor(pe,ye){this.next=pe,this.interceptor=ye}handle(pe){return this.interceptor.intercept(pe,this.next)}}const jt=new O.OlP("HTTP_INTERCEPTORS");let Ze=(()=>{class ze{intercept(ye,nt){return nt.handle(ye)}}return ze.\u0275fac=function(ye){return new(ye||ze)},ze.\u0275prov=O.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const Et=/^\)\]\}',?\n/;let Rt=(()=>{class ze{constructor(ye){this.xhrFactory=ye}handle(ye){if("JSONP"===ye.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new je.y(nt=>{const Oe=this.xhrFactory.build();if(Oe.open(ye.method,ye.urlWithParams),ye.withCredentials&&(Oe.withCredentials=!0),ye.headers.forEach((en,wt)=>Oe.setRequestHeader(en,wt.join(","))),ye.headers.has("Accept")||Oe.setRequestHeader("Accept","application/json, text/plain, */*"),!ye.headers.has("Content-Type")){const en=ye.detectContentTypeHeader();null!==en&&Oe.setRequestHeader("Content-Type",en)}if(ye.responseType){const en=ye.responseType.toLowerCase();Oe.responseType="json"!==en?en:"text"}const bt=ye.serializeBody();let dt=null;const ht=()=>{if(null!==dt)return dt;const en=1223===Oe.status?204:Oe.status,wt=Oe.statusText||"OK",Zn=new ee(Oe.getAllResponseHeaders()),Qt=function(ze){return"responseURL"in ze&&ze.responseURL?ze.responseURL:/^X-Request-URL:/m.test(ze.getAllResponseHeaders())?ze.getResponseHeader("X-Request-URL"):null}(Oe)||ye.url;return dt=new qe({headers:Zn,status:en,statusText:wt,url:Qt}),dt},zt=()=>{let{headers:en,status:wt,statusText:Zn,url:Qt}=ht(),wn=null;204!==wt&&(wn=void 0===Oe.response?Oe.responseText:Oe.response),0===wt&&(wt=wn?200:0);let Bn=wt>=200&&wt<300;if("json"===ye.responseType&&"string"==typeof wn){const hn=wn;wn=wn.replace(Et,"");try{wn=""!==wn?JSON.parse(wn):null}catch(Pr){wn=hn,Bn&&(Bn=!1,wn={error:Pr,text:wn})}}Bn?(nt.next(new xe({body:wn,headers:en,status:wt,statusText:Zn,url:Qt||void 0})),nt.complete()):nt.error(new Ae({error:wn,headers:en,status:wt,statusText:Zn,url:Qt||void 0}))},Dn=en=>{const{url:wt}=ht(),Zn=new Ae({error:en,status:Oe.status||0,statusText:Oe.statusText||"Unknown Error",url:wt||void 0});nt.error(Zn)};let Zt=!1;const In=en=>{Zt||(nt.next(ht()),Zt=!0);let wt={type:Se.DownloadProgress,loaded:en.loaded};en.lengthComputable&&(wt.total=en.total),"text"===ye.responseType&&!!Oe.responseText&&(wt.partialText=Oe.responseText),nt.next(wt)},On=en=>{let wt={type:Se.UploadProgress,loaded:en.loaded};en.lengthComputable&&(wt.total=en.total),nt.next(wt)};return Oe.addEventListener("load",zt),Oe.addEventListener("error",Dn),Oe.addEventListener("timeout",Dn),Oe.addEventListener("abort",Dn),ye.reportProgress&&(Oe.addEventListener("progress",In),null!==bt&&Oe.upload&&Oe.upload.addEventListener("progress",On)),Oe.send(bt),nt.next({type:Se.Sent}),()=>{Oe.removeEventListener("error",Dn),Oe.removeEventListener("abort",Dn),Oe.removeEventListener("load",zt),Oe.removeEventListener("timeout",Dn),ye.reportProgress&&(Oe.removeEventListener("progress",In),null!==bt&&Oe.upload&&Oe.upload.removeEventListener("progress",On)),Oe.readyState!==Oe.DONE&&Oe.abort()}})}}return ze.\u0275fac=function(ye){return new(ye||ze)(O.LFG(s.JF))},ze.\u0275prov=O.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const It=new O.OlP("XSRF_COOKIE_NAME"),an=new O.OlP("XSRF_HEADER_NAME");class gn{}let rn=(()=>{class ze{constructor(ye,nt,Oe){this.doc=ye,this.platform=nt,this.cookieName=Oe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ye=this.doc.cookie||"";return ye!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,s.Mx)(ye,this.cookieName),this.lastCookieString=ye),this.lastToken}}return ze.\u0275fac=function(ye){return new(ye||ze)(O.LFG(s.K0),O.LFG(O.Lbi),O.LFG(It))},ze.\u0275prov=O.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),Nt=(()=>{class ze{constructor(ye,nt){this.tokenService=ye,this.headerName=nt}intercept(ye,nt){const Oe=ye.url.toLowerCase();if("GET"===ye.method||"HEAD"===ye.method||Oe.startsWith("http://")||Oe.startsWith("https://"))return nt.handle(ye);const bt=this.tokenService.getToken();return null!==bt&&!ye.headers.has(this.headerName)&&(ye=ye.clone({headers:ye.headers.set(this.headerName,bt)})),nt.handle(ye)}}return ze.\u0275fac=function(ye){return new(ye||ze)(O.LFG(gn),O.LFG(an))},ze.\u0275prov=O.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),Fn=(()=>{class ze{constructor(ye,nt){this.backend=ye,this.injector=nt,this.chain=null}handle(ye){if(null===this.chain){const nt=this.injector.get(jt,[]);this.chain=nt.reduceRight((Oe,bt)=>new Ot(Oe,bt),this.backend)}return this.chain.handle(ye)}}return ze.\u0275fac=function(ye){return new(ye||ze)(O.LFG(Q),O.LFG(O.zs3))},ze.\u0275prov=O.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),Jn=(()=>{class ze{static disable(){return{ngModule:ze,providers:[{provide:Nt,useClass:Ze}]}}static withOptions(ye={}){return{ngModule:ze,providers:[ye.cookieName?{provide:It,useValue:ye.cookieName}:[],ye.headerName?{provide:an,useValue:ye.headerName}:[]]}}}return ze.\u0275fac=function(ye){return new(ye||ze)},ze.\u0275mod=O.oAB({type:ze}),ze.\u0275inj=O.cJS({providers:[Nt,{provide:jt,useExisting:Nt,multi:!0},{provide:gn,useClass:rn},{provide:It,useValue:"XSRF-TOKEN"},{provide:an,useValue:"X-XSRF-TOKEN"}]}),ze})(),Hn=(()=>{class ze{}return ze.\u0275fac=function(ye){return new(ye||ze)},ze.\u0275mod=O.oAB({type:ze}),ze.\u0275inj=O.cJS({providers:[We,{provide:Z,useClass:Fn},Rt,{provide:Q,useExisting:Rt}],imports:[[Jn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ze})()},441:(Tt,Ge,L)=>{var s,O,Ne;!function(je){if("object"==typeof Tt.exports){var Te=je(0,Ge);void 0!==Te&&(Tt.exports=Te)}else O=[L,Ge],void 0!==(Ne="function"==typeof(s=je)?s.apply(Ge,O):s)&&(Tt.exports=Ne)}(function(je,Te){"use strict";Object.defineProperty(Te,"__esModule",{value:!0});var ve=void 0;Te.default=["es",[["a.\xa0m.","p.\xa0m."],ve,ve],ve,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],ve,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],ve,[["a. C.","d. C."],ve,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",ve,"{1}, {0}",ve],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[ve,"$"],BRL:[ve,"R$"],CNY:[ve,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[ve,"\xa3"],HKD:[ve,"$"],ILS:[ve,"\u20aa"],INR:[ve,"\u20b9"],JPY:[ve,"\xa5"],KRW:[ve,"\u20a9"],MXN:[ve,"$"],NZD:[ve,"$"],RON:[ve,"L"],THB:["\u0e3f"],TWD:[ve,"NT$"],USD:["US$","$"],XAF:[],XCD:[ve,"$"],XOF:[]},"ltr",function(Z){return 1===Z?1:5}]})},639:(Tt,Ge,L)=>{"use strict";L.d(Ge,{deG:()=>Yo,tb:()=>Sv,AFp:()=>Cv,ip1:()=>xf,CZH:()=>Ml,hGG:()=>NI,z2F:()=>Cc,sBO:()=>w0,Sil:()=>Ec,_Vd:()=>El,EJc:()=>Tv,SBq:()=>Ds,qLn:()=>Za,vpe:()=>ws,gxx:()=>ol,tBr:()=>ra,XFs:()=>Oe,OlP:()=>Qn,zs3:()=>Ar,ZZ4:()=>au,aQg:()=>lu,soG:()=>_u,YKP:()=>hy,v3s:()=>pI,h0i:()=>wa,PXZ:()=>lI,R0b:()=>ai,FiY:()=>Bi,Lbi:()=>wv,g9A:()=>Dv,Qsj:()=>c0,FYo:()=>su,JOm:()=>ur,Tiy:()=>sf,q3G:()=>Lr,tp0:()=>m,EAV:()=>vI,Rgc:()=>cc,dDg:()=>Ov,DyG:()=>$a,GfV:()=>iy,s_b:()=>du,ifc:()=>wt,eFA:()=>Lv,G48:()=>tI,Gpc:()=>Me,_c5:()=>AI,VLi:()=>eI,c2e:()=>Iv,zSh:()=>Ql,wAp:()=>nn,vHH:()=>Je,EiD:()=>Wh,mCW:()=>Yl,qzn:()=>Ja,JVY:()=>B_,pB0:()=>H_,eBb:()=>V_,L6k:()=>$_,LAX:()=>j_,cg1:()=>Xd,Tjo:()=>II,kL8:()=>Tm,yhl:()=>$h,dqk:()=>hn,sIi:()=>ec,CqO:()=>jd,QGY:()=>Vd,F4k:()=>Pg,dwT:()=>oD,RDi:()=>Ke,AaK:()=>se,z3N:()=>Ps,qOj:()=>Id,TTD:()=>Zo,_Bn:()=>ey,xp6:()=>ap,uIk:()=>Md,ekj:()=>zd,Suo:()=>Zy,Xpm:()=>Mr,lG2:()=>ar,Yz7:()=>Nt,cJS:()=>Yt,oAB:()=>Er,Yjl:()=>Wr,Y36:()=>nc,_UZ:()=>Rg,GkF:()=>Og,BQk:()=>$d,ynx:()=>Bd,qZA:()=>Ld,TgZ:()=>kd,EpF:()=>xg,n5z:()=>v,Ikx:()=>qd,LFG:()=>jr,$8M:()=>h,NdJ:()=>Hd,CRH:()=>ev,oxw:()=>Lg,ALo:()=>Wy,lcZ:()=>Ky,Hsn:()=>$g,F$t:()=>Bg,Q6J:()=>Fd,DdM:()=>jy,iGM:()=>Qy,MAs:()=>vg,CHM:()=>$s,LSH:()=>Ju,kYT:()=>Yr,YNc:()=>yg,W1O:()=>ov,_uU:()=>cm,Oqu:()=>Wd,hij:()=>Zc,AsE:()=>Kd,Gf:()=>Jy});var s=L(7574),O=L(4869),Ne=L(3282),je=L(6693),ve=L(7709),Y=L(5319),Z=L(2441);var K=L(1307);function X(){return new ve.xQ}function ce(e){for(let t in e)if(e[t]===ce)return t;throw Error("Could not find renamed property on target object.")}function _e(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function se(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(se).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 me(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ne=ce({__forward_ref__:ce});function Me(e){return e.__forward_ref__=Me,e.toString=function(){return se(this())},e}function Re(e){return we(e)?e():e}function we(e){return"function"==typeof e&&e.hasOwnProperty(ne)&&e.__forward_ref__===Me}class Je extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function Se(e){return"string"==typeof e?e:null==e?"":String(e)}function Qe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Se(e)}function Le(e,t){const n=t?` in ${t}`:"";throw new Je("201",`No provider for ${Qe(e)} found${n}`)}function Rt(e,t){null==e&&function(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Nt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Rn(e){return Jn(e,ze)||Jn(e,ye)}function Jn(e,t){return e.hasOwnProperty(t)?e[t]:null}function br(e){return e&&(e.hasOwnProperty(pe)||e.hasOwnProperty(nt))?e[pe]:null}const ze=ce({\u0275prov:ce}),pe=ce({\u0275inj:ce}),ye=ce({ngInjectableDef:ce}),nt=ce({ngInjectorDef:ce});var Oe=(()=>((Oe=Oe||{})[Oe.Default=0]="Default",Oe[Oe.Host=1]="Host",Oe[Oe.Self=2]="Self",Oe[Oe.SkipSelf=4]="SkipSelf",Oe[Oe.Optional=8]="Optional",Oe))();let bt;function ht(e){const t=bt;return bt=e,t}function zt(e,t,n){const r=Rn(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Oe.Optional?null:void 0!==t?t:void Le(se(e),"Injector")}function Zt(e){return{toString:e}.toString()}var In=(()=>((In=In||{})[In.OnPush=0]="OnPush",In[In.Default=1]="Default",In))(),wt=(()=>((wt=wt||{})[wt.Emulated=0]="Emulated",wt[wt.None=2]="None",wt[wt.ShadowDom=3]="ShadowDom",wt))();const Zn="undefined"!=typeof globalThis&&globalThis,Qt="undefined"!=typeof window&&window,wn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,hn=Zn||"undefined"!=typeof global&&global||Qt||wn,pt={},on=[],ir=ce({\u0275cmp:ce}),gr=ce({\u0275dir:ce}),At=ce({\u0275pipe:ce}),dr=ce({\u0275mod:ce}),er=ce({\u0275loc:ce}),nr=ce({\u0275fac:ce}),rr=ce({__NG_ELEMENT_ID__:ce});let mr=0;function Mr(e){return Zt(()=>{const n={},r={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:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===In.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||on,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||wt.Emulated,id:"c",styles:e.styles||on,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,i=e.features,c=e.pipes;return r.id+=mr++,r.inputs=Tn(e.inputs,n),r.outputs=Tn(e.outputs),i&&i.forEach(f=>f(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Kn):null,r.pipeDefs=c?()=>("function"==typeof c?c():c).map(Un):null,r})}function Kn(e){return kt(e)||function(e){return e[gr]||null}(e)}function Un(e){return function(e){return e[At]||null}(e)}const sr={};function Er(e){return Zt(()=>{const t={type:e.type,bootstrap:e.bootstrap||on,declarations:e.declarations||on,imports:e.imports||on,exports:e.exports||on,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(sr[e.id]=e.type),t})}function Yr(e,t){return Zt(()=>{const n=Vn(e,!0);n.declarations=t.declarations||on,n.imports=t.imports||on,n.exports=t.exports||on})}function Tn(e,t){if(null==e)return pt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}const ar=Mr;function Wr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function kt(e){return e[ir]||null}function Vn(e,t){const n=e[dr]||null;if(!n&&!0===t)throw new Error(`Type ${se(e)} does not have '\u0275mod' property.`);return n}const x=16,$=18,k=20;function sn(e){return Array.isArray(e)&&"object"==typeof e[1]}function An(e){return Array.isArray(e)&&!0===e[1]}function yr(e){return 0!=(8&e.flags)}function Ur(e){return 2==(2&e.flags)}function Yn(e){return 1==(1&e.flags)}function fr(e){return null!==e.template}function Io(e){return 0!=(512&e[2])}function Xr(e,t){return e.hasOwnProperty(nr)?e[nr]:null}class Mo{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Zo(){return $o}function $o(e){return e.type.prototype.ngOnChanges&&(e.setInput=Vo),Ci}function Ci(){const e=yo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===pt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Vo(e,t,n,r){const o=yo(e)||function(e,t){return e[mo]=t}(e,{previous:pt,current:null}),i=o.current||(o.current={}),c=o.previous,f=this.declaredInputs[n],y=c[f];i[f]=new Mo(y&&y.currentValue,t,c===pt),e[r]=t}Zo.ngInherit=!0;const mo="__ngSimpleChanges__";function yo(e){return e[mo]||null}let fe;function Ke(e){fe=e}function D(e){return!!e.listen}const B={createRenderer:(e,t)=>void 0!==fe?fe:"undefined"!=typeof document?document:void 0};function ct(e){for(;Array.isArray(e);)e=e[0];return e}function Wn(e,t){return ct(t[e])}function kn(e,t){return ct(t[e.index])}function kr(e,t){return e.data[t]}function to(e,t){return e[t]}function lr(e,t){const n=t[e];return sn(n)?n:n[0]}function vr(e){return 4==(4&e[2])}function wi(e){return 128==(128&e[2])}function fo(e,t){return null==t?null:e[t]}function ei(e){e[$]=0}function Si(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Pt={lFrame:ls(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ho(){return Pt.bindingsEnabled}function st(){return Pt.lFrame.lView}function yn(){return Pt.lFrame.tView}function $s(e){return Pt.lFrame.contextLView=e,e[8]}function hr(){let e=Is();for(;null!==e&&64===e.type;)e=e.parent;return e}function Is(){return Pt.lFrame.currentTNode}function vo(e,t){const n=Pt.lFrame;n.currentTNode=e,n.isParent=t}function Ti(){return Pt.lFrame.isParent}function ns(){Pt.lFrame.isParent=!1}function rs(){return Pt.isInCheckNoChangesMode}function _o(e){Pt.isInCheckNoChangesMode=e}function pr(){const e=Pt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function no(){return Pt.lFrame.bindingIndex}function Ai(){return Pt.lFrame.bindingIndex++}function Ro(e){const t=Pt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ma(e,t){const n=Pt.lFrame;n.bindingIndex=n.bindingRootIndex=e,is(t)}function is(e){Pt.lFrame.currentDirectiveIndex=e}function ss(){return Pt.lFrame.currentQueryIndex}function Ri(e){Pt.lFrame.currentQueryIndex=e}function Ra(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function js(e,t,n){if(n&Oe.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&Oe.Host||(o=Ra(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=Pt.lFrame=Oa();return r.currentTNode=t,r.lView=e,!0}function as(e){const t=Oa(),n=e[1];Pt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Oa(){const e=Pt.lFrame,t=null===e?null:e.child;return null===t?ls(e):t}function ls(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 xa(){const e=Pt.lFrame;return Pt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const fa=xa;function Ts(){const e=xa();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 d(){return Pt.lFrame.selectedIndex}function _(e){Pt.lFrame.selectedIndex=e}function P(){const e=Pt.lFrame;return kr(e.tView,e.selectedIndex)}function tn(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[y]<0&&(e[$]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{i.call(f)}finally{}}}else try{i.call(f)}finally{}}class Oo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Us(e,t,n){const r=D(e);let o=0;for(;ot){c=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Fi=!0;function zs(e){const t=Fi;return Fi=e,t}let Ac=0;function ds(e,t){const n=fs(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Ws(r.data,e),Ws(t,null),Ws(r.blueprint,null));const o=Rs(e,t),i=e.injectorIndex;if(Na(o)){const c=xi(o),f=Pi(o,t),y=f[1].data;for(let S=0;S<8;S++)t[i+S]=f[c+S]|y[c+S]}return t[i+8]=o,i}function Ws(e,t){e.push(0,0,0,0,0,0,0,0,t)}function fs(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Rs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){const i=o[1],c=i.type;if(r=2===c?i.declTNode:1===c?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ks(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(rr)&&(r=n[rr]),null==r&&(r=n[rr]=Ac++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:kl:t}(n);if("function"==typeof i){if(!js(t,e,r))return r&Oe.Host?ka(o,n,r):La(t,n,r,o);try{const c=i(r);if(null!=c||r&Oe.Optional)return c;Le(n)}finally{fa()}}else if("number"==typeof i){let c=null,f=fs(e,t),y=-1,S=r&Oe.Host?t[x][6]:null;for((-1===f||r&Oe.SkipSelf)&&(y=-1===f?Rs(e,t):t[f+8],-1!==y&&Qs(r,!1)?(c=t[1],f=xi(y),t=Pi(y,t)):f=-1);-1!==f;){const F=t[1];if(Xs(i,f,F.data)){const G=Ll(f,t,n,c,r,S);if(G!==pa)return G}y=t[f+8],-1!==y&&Qs(r,t[1].data[f+8]===S)&&Xs(i,f,t)?(c=F,f=xi(y),t=Pi(y,t)):f=-1}}}return La(t,n,r,o)}const pa={};function kl(){return new hs(hr(),st())}function Ll(e,t,n,r,o,i){const c=t[1],f=c.data[e+8],F=Ni(f,c,n,null==r?Ur(f)&&Fi:r!=c&&0!=(3&f.type),o&Oe.Host&&i===f);return null!==F?Os(t,c,F,f):pa}function Ni(e,t,n,r,o){const i=e.providerIndexes,c=t.data,f=1048575&i,y=e.directiveStart,F=i>>20,q=o?f+F:e.directiveEnd;for(let ue=r?f:f+F;ue=y&&be.type===n)return ue}if(o){const ue=c[y];if(ue&&fr(ue)&&ue.type===n)return y}return null}function Os(e,t,n,r){let o=e[n];const i=t.data;if(function(e){return e instanceof Oo}(o)){const c=o;c.resolving&&function(e,t){throw new Je("200",`Circular dependency in DI detected for ${e}`)}(Qe(i[n]));const f=zs(c.canSeeViewProviders);c.resolving=!0;const y=c.injectImpl?ht(c.injectImpl):null;js(e,r,Oe.Default);try{o=e[n]=c.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const c=$o(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,c),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,c)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==y&&ht(y),zs(f),c.resolving=!1,fa()}}return o}function Xs(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[nr]||g(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[nr]||g(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function g(e){return we(e)?()=>{const t=g(Re(e));return t&&t()}:Xr(e)}function h(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{const r=function(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const c=new o(...i);return f.annotation=c,f;function f(y,S,F){const G=y.hasOwnProperty(R)?y[R]:Object.defineProperty(y,R,{value:[]})[R];for(;G.length<=F;)G.push(null);return(G[F]=G[F]||[]).push(c),y}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class Qn{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=Nt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Yo=new Qn("AnalyzeForEntryComponents"),$a=Function;function Wo(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?ni(n,t):t(n))}function ga(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ps(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Li(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,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]=r}}(e,r,t,n)),r}function Vl(e,t){const n=ea(e,t);if(n>=0)return e[1|n]}function ea(e,t){return function(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),c=e[i<t?o=i:r=i+1}return~(o< ");else if("object"==typeof t){let i=[];for(let c in t)if(t.hasOwnProperty(c)){let f=t[c];i.push(c+":"+("string"==typeof f?JSON.stringify(f):se(f)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(yh,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ta]=null,e}const ra=na(et("Inject",e=>({token:e})),-1),Bi=na(et("Optional"),8),m=na(et("SkipSelf"),4);var ur=(()=>((ur=ur||{})[ur.Important=1]="Important",ur[ur.DashCase=2]="DashCase",ur))();const ia="__ngContext__";function Ir(e,t){e[ia]=t}function qa(e){const t=function(e){return e[ia]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function qo(e,t){return undefined(e,t)}function ii(e){const t=e[3];return An(t)?t[3]:t}function Nu(e){return Eh(e[13])}function ku(e){return Eh(e[4])}function Eh(e){for(;null!==e&&!An(e);)e=e[4];return e}function Qa(e,t,n,r,o){if(null!=r){let i,c=!1;An(r)?i=r:sn(r)&&(c=!0,r=r[0]);const f=ct(r);0===e&&null!==n?null==o?Th(t,n,f):_a(t,n,f,o||null,!0):1===e&&null!==n?_a(t,n,f,o||null,!0):2===e?function(e,t,n){const r=kc(e,t);r&&function(e,t,n,r){D(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,f,c):3===e&&t.destroyNode(f),null!=i&&function(e,t,n,r,o){const i=n[7];i!==ct(n)&&Qa(t,e,r,i,o);for(let f=10;f0&&(e[n-1][4]=r[4]);const i=ps(e,10+t);!function(e,t){zl(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const c=i[19];null!==c&&c.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function wh(e,t){if(!(256&t[2])){const n=t[11];D(n)&&n.destroyNode&&zl(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Vu(e[1],e);for(;t;){let n=null;if(sn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)sn(t)&&Vu(t[1],t),t=t[3];null===t&&(t=e),sn(t)&&Vu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Vu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=S]():r[o=-S].unsubscribe(),i+=2}else{const c=r[o=n[i+1]];n[i].call(c)}if(null!==r){for(let i=o+1;ie,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return $c}())||void 0===t?void 0:t.createHTML(e))||e}class Ea{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class P_ extends Ea{getTypeName(){return"HTML"}}class F_ extends Ea{getTypeName(){return"Style"}}class N_ extends Ea{getTypeName(){return"Script"}}class k_ extends Ea{getTypeName(){return"URL"}}class L_ extends Ea{getTypeName(){return"ResourceURL"}}function Ps(e){return e instanceof Ea?e.changingThisBreaksApplicationSecurity:e}function Ja(e,t){const n=$h(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function $h(e){return e instanceof Ea&&e.getTypeName()||null}function B_(e){return new P_(e)}function $_(e){return new F_(e)}function V_(e){return new N_(e)}function j_(e){return new k_(e)}function H_(e){return new L_(e)}class U_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(ba(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class G_{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 r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=ba(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=ba(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0Yl(t.trim())).join(", ")),this.buf.push(" ",c,'="',Yh(y),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Ku.hasOwnProperty(n)&&!Hh.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Yh(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 X_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Q_=/([^\#-~ |!])/g;function Yh(e){return e.replace(/&/g,"&").replace(X_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Q_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let jc;function Wh(e,t){let n=null;try{jc=jc||function(e){const t=new G_(e);return function(){try{return!!(new window.DOMParser).parseFromString(ba(""),"text/html")}catch(e){return!1}}()?new U_(t):t}(e);let r=t?String(t):"";n=jc.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=jc.getInertBodyElement(r)}while(r!==i);return ba((new q_).sanitizeChildren(Qu(n)||n))}finally{if(n){const r=Qu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Qu(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Lr=(()=>((Lr=Lr||{})[Lr.NONE=0]="NONE",Lr[Lr.HTML=1]="HTML",Lr[Lr.STYLE=2]="STYLE",Lr[Lr.SCRIPT=3]="SCRIPT",Lr[Lr.URL=4]="URL",Lr[Lr.RESOURCE_URL=5]="RESOURCE_URL",Lr))();function Ju(e){const t=function(){const e=st();return e&&e[12]}();return t?t.sanitize(Lr.URL,e)||"":Ja(e,"URL")?Ps(e):Yl(Se(e))}function Hc(e){return e.ngOriginalError}function cb(e,...t){e.error(...t)}class Za{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),o=(e=t)&&e.ngErrorLogger||cb;var e;o(this._console,"ERROR",t),n&&o(this._console,"ORIGINAL ERROR",n),r&&o(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?t.ngDebugContext||this._findContext(Hc(t)):null}_findOriginalError(t){let n=t&&Hc(t);for(;n&&Hc(n);)n=Hc(n);return n||null}}const ep=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(hn))();function vs(e){return e instanceof Function?e():e}function np(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const rp="ng-template";function yb(e,t,n){let r=0;for(;ri?"":o[G+1].toLowerCase();const ue=8&r?q:null;if(ue&&-1!==np(ue,S,0)||2&r&&S!==q){if($i(r))return!1;c=!0}}}}else{if(!c&&!$i(r)&&!$i(y))return!1;if(c&&$i(y))continue;c=!1,r=y|1&r}}return $i(r)||c}function $i(e){return 0==(1&e)}function bb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&r?o+="."+c:4&r&&(o+=" "+c);else""!==o&&!$i(c)&&(t+=sp(i,o),o=""),r=c,i=i||!$i(r);n++}return""!==o&&(t+=sp(i,o)),t}const _n={};function ap(e){lp(yn(),st(),d()+e,rs())}function lp(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&cr(t,i,n)}else{const i=e.preOrderHooks;null!==i&&vn(t,i,0,n)}_(n)}function Uc(e,t){return e<<17|t<<2}function Vi(e){return e>>17&32767}function ed(e){return 2|e}function Fs(e){return(131068&e)>>2}function td(e,t){return-131069&e|t<<2}function nd(e){return 1|e}function vp(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rk&&lp(e,t,k,rs()),n(r,o)}finally{_(i)}}function bp(e,t,n){if(yr(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=y&&f.push(y),f.push(r,o,c)}}function Ap(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Mp(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Qb(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&pd(n)}}function pd(e){for(let r=Nu(e);null!==r;r=ku(r))for(let o=10;o0&&pd(i)}const n=e[1].components;if(null!==n)for(let r=0;r0&&pd(o)}}function oE(e,t){const n=lr(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function Fp(e){return e[7]||(e[7]=[])}function Np(e){return e.cleanup||(e.cleanup=[])}function Lp(e,t){const n=e[9],r=n?n.get(Za,null):null;r&&r.handleError(t)}function Bp(e,t,n,r,o){for(let i=0;ithis.processProvider(f,t,n)),ni([t],f=>this.processInjectorType(f,[],i)),this.records.set(ol,il(void 0,this));const c=this.records.get(Ql);this.scope=null!=c?c.value:null,this.source=o||("object"==typeof t?null:se(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=za,r=Oe.Default){this.assertNotDestroyed();const o=ma(this),i=ht(void 0);try{if(!(r&Oe.SkipSelf)){let f=this.records.get(t);if(void 0===f){const y=("function"==typeof(e=t)||"object"==typeof e&&e instanceof Qn)&&Rn(t);f=y&&this.injectableDefInScope(y)?il(bd(t),Jl):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(r&Oe.Self?Vp():this.parent).get(t,n=r&Oe.Optional&&n===za?null:n)}catch(c){if("NullInjectorError"===c.name){if((c[ta]=c[ta]||[]).unshift(se(t)),o)throw c;return Nc(c,t,"R3InjectorError",this.source)}throw c}finally{ht(i),ma(o)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(se(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=Re(t)))return!1;let o=br(t);const i=null==o&&t.ngModule||void 0,c=void 0===i?t:i,f=-1!==r.indexOf(c);if(void 0!==i&&(o=br(i)),null==o)return!1;if(null!=o.imports&&!f){let F;r.push(c);try{ni(o.imports,G=>{this.processInjectorType(G,n,r)&&(void 0===F&&(F=[]),F.push(G))})}finally{}if(void 0!==F)for(let G=0;Gthis.processProvider(be,q,ue||on))}}this.injectorDefTypes.add(c);const y=Xr(c)||(()=>new c);this.records.set(c,il(y,Jl));const S=o.providers;if(null!=S&&!f){const F=t;ni(S,G=>this.processProvider(G,F,S))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let o=sl(t=Re(t))?t:Re(t&&t.provide);const i=(e=t,Up(e)?il(void 0,e.useValue):il(Hp(e),Jl));var e;if(sl(t)||!0!==t.multi)this.records.get(o);else{let c=this.records.get(o);c||(c=il(void 0,Jl,!0),c.factory=()=>gs(c.multi),this.records.set(o,c)),o=t,c.multi.push(t)}this.records.set(o,i)}hydrate(t,n){return n.value===Jl&&(n.value=fE,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Re(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function bd(e){const t=Rn(e),n=null!==t?t.factory:Xr(e);if(null!==n)return n;if(e instanceof Qn)throw new Error(`Token ${se(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=Li(t,"?");throw new Error(`Can't resolve all parameters for ${se(e)}: (${r.join(", ")}).`)}const n=function(e){const t=e&&(e[ze]||e[ye]);if(t){const n=function(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 Error("unreachable")}function Hp(e,t,n){let r;if(sl(e)){const o=Re(e);return Xr(o)||bd(o)}if(Up(e))r=()=>Re(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...gs(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>jr(Re(e.useExisting));else{const o=Re(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Xr(o)||bd(o);r=()=>new o(...gs(e.deps))}return r}function il(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Up(e){return null!==e&&"object"==typeof e&&Pc in e}function sl(e){return"function"==typeof e}const Gp=function(e,t,n){return function(e,t=null,n=null,r){const o=jp(e,t,n,r);return o._resolveInjectorDefTypes(),o}({name:n},t,e,n)};let Ar=(()=>{class e{static create(n,r){return Array.isArray(n)?Gp(n,r,""):Gp(n.providers,n.parent,n.name||"")}}return e.THROW_IF_NOT_FOUND=za,e.NULL=new $p,e.\u0275prov=Nt({token:e,providedIn:"any",factory:()=>jr(ol)}),e.__NG_ELEMENT_ID__=-1,e})();function NE(e,t){tn(qa(e)[1],hr())}function Id(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(fr(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(n){r.push(o);const c=e;c.inputs=Td(e.inputs),c.declaredInputs=Td(e.declaredInputs),c.outputs=Td(e.outputs);const f=o.hostBindings;f&&$E(e,f);const y=o.viewQuery,S=o.contentQueries;if(y&&LE(e,y),S&&BE(e,S),_e(e.inputs,o.inputs),_e(e.declaredInputs,o.declaredInputs),_e(e.outputs,o.outputs),fr(o)&&o.data.animation){const F=e.data;F.animation=(F.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let c=0;c=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=us(o.hostAttrs,n=us(n,o.hostAttrs))}}(r)}function Td(e){return e===pt?{}:e===on?[]:e}function LE(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function BE(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function $E(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}let qc=null;function al(){if(!qc){const e=hn.Symbol;if(e&&e.iterator)qc=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nf(ct(cn[r.index])):r.index;if(D(n)){let cn=null;if(!f&&y&&(cn=function(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;iy?f[y]:null}"string"==typeof c&&(i+=2)}return null}(e,t,o,r.index)),null!==cn)(cn.__ngLastListenerFn__||cn).__ngNextListenerFn__=i,cn.__ngLastListenerFn__=i,ue=!1;else{i=Ud(r,t,G,i,!1);const Pn=n.listen(vt,o,i);q.push(i,Pn),F&&F.push(o,Gt,ot,ot+1)}}else i=Ud(r,t,G,i,!0),vt.addEventListener(o,i,c),q.push(i),F&&F.push(o,Gt,ot,c)}else i=Ud(r,t,G,i,!1);const be=r.outputs;let Ye;if(ue&&null!==be&&(Ye=be[o])){const Pe=Ye.length;if(Pe)for(let vt=0;vt0;)t=t[15],e--;return t}(e,Pt.lFrame.contextLView))[8]}(e)}function _C(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o=0}function zd(e,t){return function(e,t,n,r){const o=st(),i=yn(),c=Ro(2);i.firstUpdatePass&&function(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[d()],c=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(i,r)&&null===t&&!c&&(t=!1),t=function(e,t,n,r){const o=function(e){const t=Pt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=rc(n=Yd(null,e,t,n,r),t.attrs,r),i=null);else{const c=t.directiveStylingLast;if(-1===c||e[c]!==o)if(n=Yd(o,e,t,n,r),null===i){let y=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Fs(r))return e[Vi(r)]}(e,t,r);void 0!==y&&Array.isArray(y)&&(y=Yd(null,e,t,y[1],r),y=rc(y,t.attrs,r),function(e,t,n,r){e[Vi(n?t.classBindings:t.styleBindings)]=r}(e,t,r,y))}else i=function(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(S=!0)}else F=n;if(o)if(0!==y){const q=Vi(e[f+1]);e[r+1]=Uc(q,f),0!==q&&(e[q+1]=td(e[q+1],r)),e[f+1]=function(e,t){return 131071&e|t<<17}(e[f+1],r)}else e[r+1]=Uc(f,0),0!==f&&(e[f+1]=td(e[f+1],r)),f=r;else e[r+1]=Uc(y,0),0===f?f=r:e[y+1]=td(e[y+1],r),y=r;S&&(e[r+1]=ed(e[r+1])),qg(e,F,r,!0),qg(e,F,r,!1),function(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ea(i,t)>=0&&(n[r+1]=nd(n[r+1]))}(t,F,e,r,i),c=Uc(f,y),i?t.classBindings=c:t.styleBindings=c}(o,i,t,n,c,r)}}(i,e,c,r),t!==_n&&Do(o,c,t)&&function(e,t,n,r,o,i,c,f){if(!(3&t.type))return;const y=e.data,S=y[f+1];Jc(function(e){return 1==(1&e)}(S)?am(y,t,n,o,Fs(S),c):void 0)||(Jc(i)||function(e){return 2==(2&e)}(S)&&(i=am(y,null,n,o,f,c)),function(e,t,n,r,o){const i=D(e);if(t)o?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r);else{let c=-1===r.indexOf("-")?void 0:ur.DashCase;if(null==o)i?e.removeStyle(n,r,c):n.style.removeProperty(r);else{const f="string"==typeof o&&o.endsWith("!important");f&&(o=o.slice(0,-10),c|=ur.Important),i?e.setStyle(n,r,o,c):n.style.setProperty(r,o,f?"important":"")}}}(r,c,Wn(d(),n),o,i))}(i,i.data[d()],o,o[11],e,o[c+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=se(Ps(e)))),e}(t,n),r,c)}(e,t,null,!0),zd}function Yd(e,t,n,r,o){let i=null;const c=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const y=e[o],S=Array.isArray(y),F=S?y[1]:y,G=null===F;let q=n[o+1];q===_n&&(q=G?on:void 0);let ue=G?Vl(q,r):F===r?q:void 0;if(S&&!Jc(ue)&&(ue=Vl(y,r)),Jc(ue)&&(f=ue,c))return f;const be=e[o+1];o=c?Vi(be):Fs(be)}if(null!==t){let y=i?t.residualClasses:t.residualStyles;null!=y&&(f=Vl(y,r))}return f}function Jc(e){return void 0!==e}function cm(e,t=""){const n=st(),r=yn(),o=e+k,i=r.firstCreatePass?tl(r,o,1,t,null):r.data[o],c=n[o]=function(e,t){return D(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Lc(r,n,c,i),vo(i,!1)}function Wd(e){return Zc("",e,""),Wd}function Zc(e,t,n){const r=st(),o=function(e,t,n,r){return Do(e,Ai(),n)?t+Se(n)+r:_n}(r,e,t,n);return o!==_n&&ks(r,d(),o),Zc}function Kd(e,t,n,r,o){const i=st(),c=ul(i,e,t,n,r,o);return c!==_n&&ks(i,d(),c),Kd}function qd(e,t,n){const r=st();return Do(r,Ai(),t)&&si(yn(),P(),r,e,t,r[11],n,!0),qd}const Da=void 0;var rD=["en",[["a","p"],["AM","PM"],Da],[["AM","PM"],Da,Da],[["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"]],Da,[["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"]],Da,[["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}",Da,"{1} 'at' {0}",Da],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let _l={};function oD(e,t,n){"string"!=typeof t&&(n=t,t=e[nn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),_l[t]=e,n&&(_l[t][nn.ExtraData]=n)}function Xd(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Am(t);if(n)return n;const r=t.split("-")[0];if(n=Am(r),n)return n;if("en"===r)return rD;throw new Error(`Missing locale data for the locale "${e}".`)}function Tm(e){return Xd(e)[nn.PluralCase]}function Am(e){return e in _l||(_l[e]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[e]),_l[e]}var nn=(()=>((nn=nn||{})[nn.LocaleId=0]="LocaleId",nn[nn.DayPeriodsFormat=1]="DayPeriodsFormat",nn[nn.DayPeriodsStandalone=2]="DayPeriodsStandalone",nn[nn.DaysFormat=3]="DaysFormat",nn[nn.DaysStandalone=4]="DaysStandalone",nn[nn.MonthsFormat=5]="MonthsFormat",nn[nn.MonthsStandalone=6]="MonthsStandalone",nn[nn.Eras=7]="Eras",nn[nn.FirstDayOfWeek=8]="FirstDayOfWeek",nn[nn.WeekendRange=9]="WeekendRange",nn[nn.DateFormat=10]="DateFormat",nn[nn.TimeFormat=11]="TimeFormat",nn[nn.DateTimeFormat=12]="DateTimeFormat",nn[nn.NumberSymbols=13]="NumberSymbols",nn[nn.NumberFormats=14]="NumberFormats",nn[nn.CurrencyCode=15]="CurrencyCode",nn[nn.CurrencySymbol=16]="CurrencySymbol",nn[nn.CurrencyName=17]="CurrencyName",nn[nn.Currencies=18]="Currencies",nn[nn.Directionality=19]="Directionality",nn[nn.PluralCase=20]="PluralCase",nn[nn.ExtraData=21]="ExtraData",nn))();const eu="en-US";let Mm=eu;function Qd(e){Rt(e,"Expected localeId to be defined"),"string"==typeof e&&(Mm=e.toLowerCase().replace(/_/g,"-"))}function ef(e,t,n,r,o){if(e=Re(e),Array.isArray(e))for(let i=0;i>20;if(sl(e)||!e.multi){const ue=new Oo(y,o,nc),be=nf(f,t,o?F:F+q,G);-1===be?(Ks(ds(S,c),i,f),tf(i,e,t.length),t.push(f),S.directiveStart++,S.directiveEnd++,o&&(S.providerIndexes+=1048576),n.push(ue),c.push(ue)):(n[be]=ue,c[be]=ue)}else{const ue=nf(f,t,F+q,G),be=nf(f,t,F,F+q),Ye=ue>=0&&n[ue],Pe=be>=0&&n[be];if(o&&!Pe||!o&&!Ye){Ks(ds(S,c),i,f);const vt=function(e,t,n,r,o){const i=new Oo(e,n,nc);return i.multi=[],i.index=t,i.componentProviders=0,Zm(i,o,r&&!n),i}(o?t0:e0,n.length,o,r,y);!o&&Pe&&(n[be].providerFactory=vt),tf(i,e,t.length,0),t.push(f),S.directiveStart++,S.directiveEnd++,o&&(S.providerIndexes+=1048576),n.push(vt),c.push(vt)}else tf(i,e,ue>-1?ue:be,Zm(n[o?be:ue],y,!o&&r));!o&&r&&Pe&&n[be].componentProviders++}}}function tf(e,t,n,r){const o=sl(t);if(o||function(e){return!!e.useClass}(t)){const c=(t.useClass||t).prototype.ngOnDestroy;if(c){const f=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const y=f.indexOf(n);-1===y?f.push(n,[r,c]):f[y+1].push(r,c)}else f.push(n,c)}}}function Zm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nf(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function(e,t,n){const r=yn();if(r.firstCreatePass){const o=fr(e);ef(n,r.data,r.blueprint,o,!0),ef(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class ty{}const ry="ngComponent";class o0{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${se(e)}. Did you add it to @NgModule.entryComponents?`);return t[ry]=e,t}(t)}}let El=(()=>{class e{}return e.NULL=new o0,e})();function iu(...e){}function Cl(e,t){return new Ds(kn(e,t))}const l0=function(){return Cl(hr(),st())};let Ds=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=l0,e})();function oy(e){return e instanceof Ds?e.nativeElement:e}class su{}let c0=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>d0(),e})();const d0=function(){const e=st(),n=lr(hr().index,e);return function(e){return e[11]}(sn(n)?n:e)};let sf=(()=>{class e{}return e.\u0275prov=Nt({token:e,providedIn:"root",factory:()=>null}),e})();class iy{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sy=new iy("12.2.17");class ay{constructor(){}supports(t){return ec(t)}create(t){return new g0(t)}}const p0=(e,t)=>t;class g0{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||p0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const c=!r||n&&n.currentIndex{c=this._trackByFn(o,f),null!==n&&Object.is(n.trackById,c)?(r&&(n=this._verifyReinsertion(n,f,c,o)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,c,o),r=!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,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new m0(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,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,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){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 ly),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._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 ly),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 m0{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 y0{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 r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class ly{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new y0,this.map.set(n,r)),r.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 cy(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._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 i=o._prev,c=o._next;return i&&(i._next=c),c&&(c._prev=i),o._next=null,o._prev=null,o}const r=new _0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_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(r=>n(t[r],r))}}class _0{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 dy(){return new au([new ay])}let au=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||dy()),deps:[[e,new m,new Bi]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=Nt({token:e,providedIn:"root",factory:dy}),e})();function fy(){return new lu([new uy])}let lu=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fy()),deps:[[e,new m,new Bi]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=Nt({token:e,providedIn:"root",factory:fy}),e})();function cu(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(ct(i)),An(i))for(let f=10;f-1&&($u(t,r),ps(n,r))}this._attachedToViewContainer=!1}wh(this._lView[1],this._lView)}onDestroy(t){wp(this._lView[1],this._lView,null,t)}markForCheck(){gd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){yd(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){_o(!0);try{yd(e,t,n)}finally{_o(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,zl(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class E0 extends lc{constructor(t){super(t),this._view=t}detectChanges(){Pp(this._view)}checkNoChanges(){!function(e){_o(!0);try{Pp(e)}finally{_o(!1)}}(this._view)}get context(){return null}}const D0=function(e){return function(e,t,n){if(Ur(e)&&!n){const r=lr(e.index,t);return new lc(r,r)}return 47&e.type?new lc(t[x],t):null}(hr(),st(),16==(16&e))};let w0=(()=>{class e{}return e.__NG_ELEMENT_ID__=D0,e})();const T0=[new uy],M0=new au([new ay]),R0=new lu(T0),x0=function(){return uu(hr(),st())};let cc=(()=>{class e{}return e.__NG_ELEMENT_ID__=x0,e})();const P0=cc,F0=class extends P0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=ql(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),Xl(n,r,t),new lc(r)}};function uu(e,t){return 4&e.type?new F0(t,e,Cl(e,t)):null}class wa{}class hy{}const L0=function(){return my(hr(),st())};let du=(()=>{class e{}return e.__NG_ELEMENT_ID__=L0,e})();const $0=du,py=class extends $0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Cl(this._hostTNode,this._hostLView)}get injector(){return new hs(this._hostTNode,this._hostLView)}get parentInjector(){const t=Rs(this._hostTNode,this._hostLView);if(Na(t)){const n=Pi(t,this._hostLView),r=xi(t);return new hs(n[1].data[r+8],n)}return new hs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=gy(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const o=t.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(t,n,r,o,i){const c=r||this.parentInjector;if(!i&&null==t.ngModule&&c){const y=c.get(wa,null);y&&(i=y)}const f=t.create(c,o,void 0,i);return this.insert(f.hostView,n),f}insert(t,n){const r=t._lView,o=r[1];if(An(r[3])){const F=this.indexOf(t);if(-1!==F)this.detach(F);else{const G=r[3],q=new py(G,G[6],G[3]);q.detach(q.indexOf(t))}}const i=this._adjustIndex(n),c=this._lContainer;!function(e,t,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=t),rep});class By extends ty{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(Sb).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Ly(this.componentDef.inputs)}get outputs(){return Ly(this.componentDef.outputs)}create(t,n,r,o){const i=(o=o||this.ngModule)?function(e,t){return{get:(n,r,o)=>{const i=e.get(n,Il,o);return i!==Il||r===Il?i:t.get(n,r,o)}}}(t,o.injector):t,c=i.get(su,B),f=i.get(sf,null),y=c.createRenderer(null,this.componentDef),S=this.componentDef.selectors[0][0]||"div",F=r?function(e,t,n){if(D(e))return e.selectRootElement(t,n===wt.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(y,r,this.componentDef.encapsulation):Bu(c.createRenderer(null,this.componentDef),S,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(S)),G=this.componentDef.onPush?576:528,q=function(e,t){return{components:[],scheduler:e||ep,clean:cE,playerHandler:t||null,flags:0}}(),ue=Yc(0,null,null,1,0,null,null,null,null,null),be=ql(null,ue,q,G,null,null,c,y,f,i);let Ye,Pe;as(be);try{const vt=function(e,t,n,r,o,i){const c=n[1];n[20]=e;const y=tl(c,20,2,"#host",null),S=y.mergedAttrs=t.hostAttrs;null!==S&&(Kc(y,S,!0),null!==e&&(Us(o,e,S),null!==y.classes&&zu(o,e,y.classes),null!==y.styles&&Nh(o,e,y.styles)));const F=r.createRenderer(e,t),G=ql(n,Ep(t),null,t.onPush?64:16,n[20],y,r,F,i||null,null);return c.firstCreatePass&&(Ks(ds(y,n),c,t.type),Mp(c,y),Rp(y,n.length,1)),Wc(n,G),n[20]=G}(F,this.componentDef,be,c,y);if(F)if(r)Us(y,F,["ng-version",sy.full]);else{const{attrs:ot,classes:Gt}=function(e){const t=[],n=[];let r=1,o=2;for(;r0&&zu(y,F,Gt.join(" "))}if(Pe=kr(ue,k),void 0!==n){const ot=Pe.projection=[];for(let Gt=0;Gty(c,t)),t.contentQueries){const y=hr();t.contentQueries(1,c,y.directiveStart)}const f=hr();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(_(f.index),Tp(n[1],f,0,f.directiveStart,f.directiveEnd,t),Ap(t,c)),c}(vt,this.componentDef,be,q,[NE]),Xl(ue,be,null)}finally{Ts()}return new Bw(this.componentType,Ye,Cl(Pe,be),be,Pe)}}class Bw extends class{}{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new E0(o),this.componentType=t}get injector(){return new hs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Tl=new Map;class jw extends wa{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ky(this);const r=Vn(t),o=t[er]||null;o&&Qd(o),this._bootstrapComponents=vs(r.bootstrap),this._r3Injector=jp(t,n,[{provide:wa,useValue:this},{provide:El,useValue:this.componentFactoryResolver}],se(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Ar.THROW_IF_NOT_FOUND,r=Oe.Default){return t===Ar||t===wa||t===ol?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class bf extends hy{constructor(t){super(),this.moduleType=t,null!==Vn(t)&&function(e){const t=new Set;!function n(r){const o=Vn(r,!0),i=o.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${se(t)} vs ${se(t.name)}`)}(i,Tl.get(i),r),Tl.set(i,r));const c=vs(o.imports);for(const f of c)t.has(f)||(t.add(f),n(f))}(e)}(t)}create(t){return new jw(this.moduleType,t)}}function jy(e,t,n){const r=pr()+e,o=st();return o[r]===_n?bs(o,r,n?t.call(n):t()):function(e,t){return e[t]}(o,r)}function Hy(e,t,n,r,o,i){const c=t+n;return Do(e,c,o)?bs(e,c+1,i?r.call(i,o):r(o)):function(e,t){const n=e[t];return n===_n?void 0:n}(e,c+1)}function Wy(e,t){const n=yn();let r;const o=e+k;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new Je("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Xr(r.type)),c=ht(nc);try{const f=zs(!1),y=i();return zs(f),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,st(),o,y),y}finally{ht(c)}}function Ky(e,t,n){const r=e+k,o=st(),i=to(o,r);return function(e,t){Hi.isWrapped(t)&&(t=Hi.unwrap(t),e[no()]=_n);return t}(o,function(e,t){return e[1].data[t].pure}(o,r)?Hy(o,pr(),t,i.transform,n,i):i.transform(n))}function Ef(e){return t=>{setTimeout(e,void 0,t)}}const ws=class extends ve.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,i,c;let f=t,y=n||(()=>null),S=r;if(t&&"object"==typeof t){const G=t;f=null===(o=G.next)||void 0===o?void 0:o.bind(G),y=null===(i=G.error)||void 0===i?void 0:i.bind(G),S=null===(c=G.complete)||void 0===c?void 0:c.bind(G)}this.__isAsync&&(y=Ef(y),f&&(f=Ef(f)),S&&(S=Ef(S)));const F=super.subscribe({next:f,error:y,complete:S});return t instanceof Y.w&&t.add(F),F}};function rS(){return this._results[al()]()}class mu{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=al(),r=mu.prototype;r[n]||(r[n]=rS)}get changes(){return this._changes||(this._changes=new ws)}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 r=this;r.dirty=!1;const o=Wo(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)r.push(c[f/2]);else{const S=i[f+1],F=t[-y];for(let G=10;G{class e{constructor(n){this.appInits=n,this.resolve=iu,this.reject=iu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:f,error:y})});n.push(c)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(jr(xf,8))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),e})();const Cv=new Qn("AppId"),BS={provide:Cv,useFactory:function(){return`${Pf()}${Pf()}${Pf()}`},deps:[]};function Pf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dv=new Qn("Platform Initializer"),wv=new Qn("Platform ID"),Sv=new Qn("appBootstrapListener");let Iv=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),e})();const _u=new Qn("LocaleId"),Tv=new Qn("DefaultCurrencyCode");class VS{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Ff=function(e){return new bf(e)},jS=Ff,HS=function(e){return Promise.resolve(Ff(e))},Av=function(e){const t=Ff(e),r=vs(Vn(e).declarations).reduce((o,i)=>{const c=kt(i);return c&&o.push(new By(c)),o},[]);return new VS(t,r)},US=Av,GS=function(e){return Promise.resolve(Av(e))};let Ec=(()=>{class e{constructor(){this.compileModuleSync=jS,this.compileModuleAsync=HS,this.compileModuleAndAllComponentsSync=US,this.compileModuleAndAllComponentsAsync=GS}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),e})();const WS=(()=>Promise.resolve(0))();function Nf(e){"undefined"==typeof Zone?WS.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ai{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ws(!1),this.onMicrotaskEmpty=new ws(!1),this.onStable=new ws(!1),this.onError=new ws(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");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=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let e=hn.requestAnimationFrame,t=hn.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(hn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Lf(e),e.isCheckStableRunning=!0,kf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Lf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,c,f)=>{try{return Mv(e),n.invokeTask(o,i,c,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Rv(e)}},onInvoke:(n,r,o,i,c,f,y)=>{try{return Mv(e),n.invoke(o,i,c,f,y)}finally{e.shouldCoalesceRunChangeDetection&&t(),Rv(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Lf(e),kf(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ai.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ai.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,c=i.scheduleEventTask("NgZoneEvent: "+o,t,qS,iu,iu);try{return i.runTask(c,n,r)}finally{i.cancelTask(c)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const qS={};function kf(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 Lf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Mv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Rv(e){e._nesting--,kf(e)}class JS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ws,this.onMicrotaskEmpty=new ws,this.onStable=new ws,this.onError=new ws}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}let Ov=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{ai.assertNotInAngularZone(),Nf(()=>{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())Nf(()=>{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(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.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,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,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,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(jr(ai))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),e})(),xv=(()=>{class e{constructor(){this._applications=new Map,Bf.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}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,r=!0){return Bf.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),e})();class ZS{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function eI(e){Bf=e}let Bf=new ZS,Pv=!0,Fv=!1;function tI(){if(Fv)throw new Error("Cannot enable prod mode after platform setup.");Pv=!1}let Wi;const kv=new Qn("AllowMultipleToken");class lI{constructor(t,n){this.name=t,this.token=n}}function Lv(e,t,n=[]){const r=`Platform: ${t}`,o=new Qn(r);return(i=[])=>{let c=Bv();if(!c||c.injector.get(kv,!1))if(e)e(n.concat(i).concat({provide:o,useValue:!0}));else{const f=n.concat(i).concat({provide:o,useValue:!0},{provide:Ql,useValue:"platform"});!function(e){if(Wi&&!Wi.destroyed&&!Wi.injector.get(kv,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Wi=e.get($v);const t=e.get(Dv,null);t&&t.forEach(n=>n())}(Ar.create({providers:f,name:r}))}return function(e){const t=Bv();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Bv(){return Wi&&!Wi.destroyed?Wi:null}let $v=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const f=function(e,t){let n;return n="noop"===e?new JS:("zone.js"===e?void 0:e)||new ai({enableLongStackTrace:(Fv=!0,Pv),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),y=[{provide:ai,useValue:f}];return f.run(()=>{const S=Ar.create({providers:y,parent:this.injector,name:n.moduleType.name}),F=n.create(S),G=F.injector.get(Za,null);if(!G)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return f.runOutsideAngular(()=>{const q=f.onError.subscribe({next:ue=>{G.handleError(ue)}});F.onDestroy(()=>{$f(this._modules,F),q.unsubscribe()})}),function(e,t,n){try{const r=n();return Vd(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(G,f,()=>{const q=F.injector.get(Ml);return q.runInitializers(),q.donePromise.then(()=>(Qd(F.injector.get(_u,eu)||eu),this._moduleDoBootstrap(F),F))})})}bootstrapModule(n,r=[]){const o=Vv({},r);return function(e,t,n){const r=new bf(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Cc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${se(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(jr(Ar))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),e})();function Vv(e,t){return Array.isArray(t)?t.reduce(Vv,e):Object.assign(Object.assign({},e),t)}let Cc=(()=>{class e{constructor(n,r,o,i,c){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const f=new s.y(S=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{S.next(this._stable),S.complete()})}),y=new s.y(S=>{let F;this._zone.runOutsideAngular(()=>{F=this._zone.onStable.subscribe(()=>{ai.assertNotInAngularZone(),Nf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,S.next(!0))})})});const G=this._zone.onUnstable.subscribe(()=>{ai.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{S.next(!1)}))});return()=>{F.unsubscribe(),G.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return(0,O.K)(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof s.y?e[0]:(0,Ne.J)(t)((0,je.n)(e,n))}(f,y.pipe(e=>(0,K.x)()(function(e,t){return function(r){let o;o="function"==typeof e?e:function(){return e};const i=Object.create(r,Z.N);return i.source=r,i.subjectFactory=o,i}}(X)(e))))}bootstrap(n,r){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let o;o=n instanceof ty?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function(e){return e.isBoundToModule}(o)?void 0:this._injector.get(wa),f=o.create(Ar.NULL,[],r||o.selector,i),y=f.location.nativeElement,S=f.injector.get(Ov,null),F=S&&f.injector.get(xv);return S&&F&&F.registerApplication(y,S),f.onDestroy(()=>{this.detachView(f.hostView),$f(this.components,f),F&&F.unregisterApplication(y)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");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 r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;$f(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Sv,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(jr(ai),jr(Ar),jr(Za),jr(El),jr(Ml))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),e})();function $f(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class pI{}class mI{}const yI={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let vI=(()=>{class e{constructor(n,r){this._compiler=n,this._config=r||yI}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,o]=n.split("#");return void 0===o&&(o="default"),L(8255)(r).then(i=>i[o]).then(i=>Gv(i,r,o)).then(i=>this._compiler.compileModuleAsync(i))}loadFactory(n){let[r,o]=n.split("#"),i="NgFactory";return void 0===o&&(o="default",i=""),L(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(c=>c[o+i]).then(c=>Gv(c,r,o))}}return e.\u0275fac=function(n){return new(n||e)(jr(Ec),jr(mI,8))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),e})();function Gv(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const II=function(e){return null},AI=Lv(null,"core",[{provide:wv,useValue:"unknown"},{provide:$v,deps:[Ar]},{provide:xv,deps:[]},{provide:Iv,deps:[]}]),PI=[{provide:Cc,useClass:Cc,deps:[ai,Ar,Za,El,Ml]},{provide:Nw,deps:[ai],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Ml,useClass:Ml,deps:[[new Bi,xf]]},{provide:Ec,useClass:Ec,deps:[]},BS,{provide:au,useFactory:function(){return M0},deps:[]},{provide:lu,useFactory:function(){return R0},deps:[]},{provide:_u,useFactory:function(e){return Qd(e=e||"undefined"!=typeof $localize&&$localize.locale||eu),e},deps:[[new ra(_u),new Bi,new m]]},{provide:Tv,useValue:"USD"}];let NI=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(jr(Cc))},e.\u0275mod=Er({type:e}),e.\u0275inj=Yt({providers:PI}),e})()},665:(Tt,Ge,L)=>{"use strict";L.d(Ge,{gN:()=>Yt,Fj:()=>ne,qu:()=>Ke,NI:()=>Vn,oH:()=>Ct,u:()=>co,sg:()=>sn,JU:()=>X,a5:()=>Rn,JJ:()=>br,JL:()=>ze,UX:()=>z,kI:()=>De,_Y:()=>x});var s=L(639),O=L(8583),Ne=L(7574),je=L(9796),Te=L(8002),ve=L(1555),Y=L(4402);function Q(T,D){return new Ne.y(b=>{const B=T.length;if(0===B)return void b.complete();const Ie=new Array(B);let ct=0,Wt=0;for(let un=0;un{kn||(kn=!0,Wt++),Ie[un]=Gr},error:Gr=>b.error(Gr),complete:()=>{ct++,(ct===B||!kn)&&(Wt===B&&b.next(D?D.reduce((Gr,kr,to)=>(Gr[kr]=Ie[to],Gr),{}):Ie),b.complete())}}))}})}let ee=(()=>{class T{constructor(b,B){this._renderer=b,this._elementRef=B,this.onChange=Ie=>{},this.onTouched=()=>{}}setProperty(b,B){this._renderer.setProperty(this._elementRef.nativeElement,b,B)}registerOnTouched(b){this.onTouched=b}registerOnChange(b){this.onChange=b}setDisabledState(b){this.setProperty("disabled",b)}}return T.\u0275fac=function(b){return new(b||T)(s.Y36(s.Qsj),s.Y36(s.SBq))},T.\u0275dir=s.lG2({type:T}),T})(),K=(()=>{class T extends ee{}return T.\u0275fac=function(){let D;return function(B){return(D||(D=s.n5z(T)))(B||T)}}(),T.\u0275dir=s.lG2({type:T,features:[s.qOj]}),T})();const X=new s.OlP("NgValueAccessor"),_e={provide:X,useExisting:(0,s.Gpc)(()=>ne),multi:!0},me=new s.OlP("CompositionEventMode");let ne=(()=>{class T extends ee{constructor(b,B,Ie){super(b,B),this._compositionMode=Ie,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const T=(0,O.q)()?(0,O.q)().getUserAgent():"";return/android (\d+)/.test(T.toLowerCase())}())}writeValue(b){this.setProperty("value",null==b?"":b)}_handleInput(b){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(b)}_compositionStart(){this._composing=!0}_compositionEnd(b){this._composing=!1,this._compositionMode&&this.onChange(b)}}return T.\u0275fac=function(b){return new(b||T)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(me,8))},T.\u0275dir=s.lG2({type:T,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(b,B){1&b&&s.NdJ("input",function(ct){return B._handleInput(ct.target.value)})("blur",function(){return B.onTouched()})("compositionstart",function(){return B._compositionStart()})("compositionend",function(ct){return B._compositionEnd(ct.target.value)})},features:[s._Bn([_e]),s.qOj]}),T})();function Me(T){return null==T||0===T.length}function Re(T){return null!=T&&"number"==typeof T.length}const we=new s.OlP("NgValidators"),Xe=new s.OlP("NgAsyncValidators"),Je=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class De{static min(D){return T=D,D=>{if(Me(D.value)||Me(T))return null;const b=parseFloat(D.value);return!isNaN(b)&&b{if(Me(D.value)||Me(T))return null;const b=parseFloat(D.value);return!isNaN(b)&&b>T?{max:{max:T,actual:D.value}}:null};var T}static required(D){return Me(D.value)?{required:!0}:null}static requiredTrue(D){return!0===D.value?null:{required:!0}}static email(D){return Me((T=D).value)||Je.test(T.value)?null:{email:!0};var T}static minLength(D){return T=D,D=>Me(D.value)||!Re(D.value)?null:D.value.lengthRe(D.value)&&D.value.length>T?{maxlength:{requiredLength:T,actualLength:D.value.length}}:null;var T}static pattern(D){return function(T){if(!T)return Ot;let D,b;return"string"==typeof T?(b="","^"!==T.charAt(0)&&(b+="^"),b+=T,"$"!==T.charAt(T.length-1)&&(b+="$"),D=new RegExp(b)):(b=T.toString(),D=T),B=>{if(Me(B.value))return null;const Ie=B.value;return D.test(Ie)?null:{pattern:{requiredPattern:b,actualValue:Ie}}}}(D)}static nullValidator(D){return null}static compose(D){return Be(D)}static composeAsync(D){return _t(D)}}function Ot(T){return null}function jt(T){return null!=T}function Ze(T){const D=(0,s.QGY)(T)?(0,Y.D)(T):T;return(0,s.CqO)(D),D}function Fe(T){let D={};return T.forEach(b=>{D=null!=b?Object.assign(Object.assign({},D),b):D}),0===Object.keys(D).length?null:D}function Ve(T,D){return D.map(b=>b(T))}function rt(T){return T.map(D=>function(T){return!T.validate}(D)?D:b=>D.validate(b))}function Be(T){if(!T)return null;const D=T.filter(jt);return 0==D.length?null:function(b){return Fe(Ve(b,D))}}function He(T){return null!=T?Be(rt(T)):null}function _t(T){if(!T)return null;const D=T.filter(jt);return 0==D.length?null:function(b){return function(...T){if(1===T.length){const D=T[0];if((0,je.k)(D))return Q(D,null);if((0,ve.K)(D)&&Object.getPrototypeOf(D)===Object.prototype){const b=Object.keys(D);return Q(b.map(B=>D[B]),b)}}if("function"==typeof T[T.length-1]){const D=T.pop();return Q(T=1===T.length&&(0,je.k)(T[0])?T[0]:T,null).pipe((0,Te.U)(b=>D(...b)))}return Q(T,null)}(Ve(b,D).map(Ze)).pipe((0,Te.U)(Fe))}}function Et(T){return null!=T?_t(rt(T)):null}function ft(T,D){return null===T?[D]:Array.isArray(T)?[...T,D]:[T,D]}function Rt(T){return T._rawValidators}function It(T){return T._rawAsyncValidators}function an(T){return T?Array.isArray(T)?T:[T]:[]}function gn(T,D){return Array.isArray(T)?T.includes(D):T===D}function rn(T,D){const b=an(D);return an(T).forEach(Ie=>{gn(b,Ie)||b.push(Ie)}),b}function Nt(T,D){return an(D).filter(b=>!gn(T,b))}let Fn=(()=>{class T{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(b){this._rawValidators=b||[],this._composedValidatorFn=He(this._rawValidators)}_setAsyncValidators(b){this._rawAsyncValidators=b||[],this._composedAsyncValidatorFn=Et(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(b){this._onDestroyCallbacks.push(b)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(b=>b()),this._onDestroyCallbacks=[]}reset(b){this.control&&this.control.reset(b)}hasError(b,B){return!!this.control&&this.control.hasError(b,B)}getError(b,B){return this.control?this.control.getError(b,B):null}}return T.\u0275fac=function(b){return new(b||T)},T.\u0275dir=s.lG2({type:T}),T})(),Yt=(()=>{class T extends Fn{get formDirective(){return null}get path(){return null}}return T.\u0275fac=function(){let D;return function(B){return(D||(D=s.n5z(T)))(B||T)}}(),T.\u0275dir=s.lG2({type:T,features:[s.qOj]}),T})();class Rn extends Fn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Jn{constructor(D){this._cd=D}is(D){var b,B,Ie;return"submitted"===D?!!(null===(b=this._cd)||void 0===b?void 0:b.submitted):!!(null===(Ie=null===(B=this._cd)||void 0===B?void 0:B.control)||void 0===Ie?void 0:Ie[D])}}let br=(()=>{class T extends Jn{constructor(b){super(b)}}return T.\u0275fac=function(b){return new(b||T)(s.Y36(Rn,2))},T.\u0275dir=s.lG2({type:T,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(b,B){2&b&&s.ekj("ng-untouched",B.is("untouched"))("ng-touched",B.is("touched"))("ng-pristine",B.is("pristine"))("ng-dirty",B.is("dirty"))("ng-valid",B.is("valid"))("ng-invalid",B.is("invalid"))("ng-pending",B.is("pending"))},features:[s.qOj]}),T})(),ze=(()=>{class T extends Jn{constructor(b){super(b)}}return T.\u0275fac=function(b){return new(b||T)(s.Y36(Yt,10))},T.\u0275dir=s.lG2({type:T,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(b,B){2&b&&s.ekj("ng-untouched",B.is("untouched"))("ng-touched",B.is("touched"))("ng-pristine",B.is("pristine"))("ng-dirty",B.is("dirty"))("ng-valid",B.is("valid"))("ng-invalid",B.is("invalid"))("ng-pending",B.is("pending"))("ng-submitted",B.is("submitted"))},features:[s.qOj]}),T})();function wt(T,D){Bn(T,D),D.valueAccessor.writeValue(T.value),function(T,D){D.valueAccessor.registerOnChange(b=>{T._pendingValue=b,T._pendingChange=!0,T._pendingDirty=!0,"change"===T.updateOn&&pt(T,D)})}(T,D),function(T,D){const b=(B,Ie)=>{D.valueAccessor.writeValue(B),Ie&&D.viewToModelUpdate(B)};T.registerOnChange(b),D._registerOnDestroy(()=>{T._unregisterOnChange(b)})}(T,D),function(T,D){D.valueAccessor.registerOnTouched(()=>{T._pendingTouched=!0,"blur"===T.updateOn&&T._pendingChange&&pt(T,D),"submit"!==T.updateOn&&T.markAsTouched()})}(T,D),function(T,D){if(D.valueAccessor.setDisabledState){const b=B=>{D.valueAccessor.setDisabledState(B)};T.registerOnDisabledChange(b),D._registerOnDestroy(()=>{T._unregisterOnDisabledChange(b)})}}(T,D)}function Zn(T,D,b=!0){const B=()=>{};D.valueAccessor&&(D.valueAccessor.registerOnChange(B),D.valueAccessor.registerOnTouched(B)),hn(T,D),T&&(D._invokeOnDestroyCallbacks(),T._registerOnCollectionChange(()=>{}))}function Qt(T,D){T.forEach(b=>{b.registerOnValidatorChange&&b.registerOnValidatorChange(D)})}function Bn(T,D){const b=Rt(T);null!==D.validator?T.setValidators(ft(b,D.validator)):"function"==typeof b&&T.setValidators([b]);const B=It(T);null!==D.asyncValidator?T.setAsyncValidators(ft(B,D.asyncValidator)):"function"==typeof B&&T.setAsyncValidators([B]);const Ie=()=>T.updateValueAndValidity();Qt(D._rawValidators,Ie),Qt(D._rawAsyncValidators,Ie)}function hn(T,D){let b=!1;if(null!==T){if(null!==D.validator){const Ie=Rt(T);if(Array.isArray(Ie)&&Ie.length>0){const ct=Ie.filter(Wt=>Wt!==D.validator);ct.length!==Ie.length&&(b=!0,T.setValidators(ct))}}if(null!==D.asyncValidator){const Ie=It(T);if(Array.isArray(Ie)&&Ie.length>0){const ct=Ie.filter(Wt=>Wt!==D.asyncValidator);ct.length!==Ie.length&&(b=!0,T.setAsyncValidators(ct))}}}const B=()=>{};return Qt(D._rawValidators,B),Qt(D._rawAsyncValidators,B),b}function pt(T,D){T._pendingDirty&&T.markAsDirty(),T.setValue(T._pendingValue,{emitModelToViewChange:!1}),D.viewToModelUpdate(T._pendingValue),T._pendingChange=!1}function er(T,D){if(!T.hasOwnProperty("model"))return!1;const b=T.model;return!!b.isFirstChange()||!Object.is(D,b.currentValue)}function mr(T,D){if(!D)return null;let b,B,Ie;return Array.isArray(D),D.forEach(ct=>{ct.constructor===ne?b=ct:function(T){return Object.getPrototypeOf(T.constructor)===K}(ct)?B=ct:Ie=ct}),Ie||B||b||null}function Mr(T,D){const b=T.indexOf(D);b>-1&&T.splice(b,1)}const Kn="VALID",Un="INVALID",sr="PENDING",Er="DISABLED";function Tn(T){return(Gn(T)?T.validators:T)||null}function ar(T){return Array.isArray(T)?He(T):T||null}function Wr(T,D){return(Gn(D)?D.asyncValidators:T)||null}function kt(T){return Array.isArray(T)?Et(T):T||null}function Gn(T){return null!=T&&!Array.isArray(T)&&"object"==typeof T}class at{constructor(D,b){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=D,this._rawAsyncValidators=b,this._composedValidatorFn=ar(this._rawValidators),this._composedAsyncValidatorFn=kt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(D){this._rawValidators=this._composedValidatorFn=D}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(D){this._rawAsyncValidators=this._composedAsyncValidatorFn=D}get parent(){return this._parent}get valid(){return this.status===Kn}get invalid(){return this.status===Un}get pending(){return this.status==sr}get disabled(){return this.status===Er}get enabled(){return this.status!==Er}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(D){this._rawValidators=D,this._composedValidatorFn=ar(D)}setAsyncValidators(D){this._rawAsyncValidators=D,this._composedAsyncValidatorFn=kt(D)}addValidators(D){this.setValidators(rn(D,this._rawValidators))}addAsyncValidators(D){this.setAsyncValidators(rn(D,this._rawAsyncValidators))}removeValidators(D){this.setValidators(Nt(D,this._rawValidators))}removeAsyncValidators(D){this.setAsyncValidators(Nt(D,this._rawAsyncValidators))}hasValidator(D){return gn(this._rawValidators,D)}hasAsyncValidator(D){return gn(this._rawAsyncValidators,D)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(D={}){this.touched=!0,this._parent&&!D.onlySelf&&this._parent.markAsTouched(D)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(D=>D.markAllAsTouched())}markAsUntouched(D={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(b=>{b.markAsUntouched({onlySelf:!0})}),this._parent&&!D.onlySelf&&this._parent._updateTouched(D)}markAsDirty(D={}){this.pristine=!1,this._parent&&!D.onlySelf&&this._parent.markAsDirty(D)}markAsPristine(D={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(b=>{b.markAsPristine({onlySelf:!0})}),this._parent&&!D.onlySelf&&this._parent._updatePristine(D)}markAsPending(D={}){this.status=sr,!1!==D.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!D.onlySelf&&this._parent.markAsPending(D)}disable(D={}){const b=this._parentMarkedDirty(D.onlySelf);this.status=Er,this.errors=null,this._forEachChild(B=>{B.disable(Object.assign(Object.assign({},D),{onlySelf:!0}))}),this._updateValue(),!1!==D.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},D),{skipPristineCheck:b})),this._onDisabledChange.forEach(B=>B(!0))}enable(D={}){const b=this._parentMarkedDirty(D.onlySelf);this.status=Kn,this._forEachChild(B=>{B.enable(Object.assign(Object.assign({},D),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:D.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},D),{skipPristineCheck:b})),this._onDisabledChange.forEach(B=>B(!1))}_updateAncestors(D){this._parent&&!D.onlySelf&&(this._parent.updateValueAndValidity(D),D.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(D){this._parent=D}updateValueAndValidity(D={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Kn||this.status===sr)&&this._runAsyncValidator(D.emitEvent)),!1!==D.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!D.onlySelf&&this._parent.updateValueAndValidity(D)}_updateTreeValidity(D={emitEvent:!0}){this._forEachChild(b=>b._updateTreeValidity(D)),this.updateValueAndValidity({onlySelf:!0,emitEvent:D.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Er:Kn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(D){if(this.asyncValidator){this.status=sr,this._hasOwnPendingAsyncValidator=!0;const b=Ze(this.asyncValidator(this));this._asyncValidationSubscription=b.subscribe(B=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(B,{emitEvent:D})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(D,b={}){this.errors=D,this._updateControlsErrors(!1!==b.emitEvent)}get(D){return function(T,D,b){if(null==D||(Array.isArray(D)||(D=D.split(".")),Array.isArray(D)&&0===D.length))return null;let B=T;return D.forEach(Ie=>{B=B instanceof Dr?B.controls.hasOwnProperty(Ie)?B.controls[Ie]:null:B instanceof jn&&B.at(Ie)||null}),B}(this,D)}getError(D,b){const B=b?this.get(b):this;return B&&B.errors?B.errors[D]:null}hasError(D,b){return!!this.getError(D,b)}get root(){let D=this;for(;D._parent;)D=D._parent;return D}_updateControlsErrors(D){this.status=this._calculateStatus(),D&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(D)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?Er:this.errors?Un:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(sr)?sr:this._anyControlsHaveStatus(Un)?Un:Kn}_anyControlsHaveStatus(D){return this._anyControls(b=>b.status===D)}_anyControlsDirty(){return this._anyControls(D=>D.dirty)}_anyControlsTouched(){return this._anyControls(D=>D.touched)}_updatePristine(D={}){this.pristine=!this._anyControlsDirty(),this._parent&&!D.onlySelf&&this._parent._updatePristine(D)}_updateTouched(D={}){this.touched=this._anyControlsTouched(),this._parent&&!D.onlySelf&&this._parent._updateTouched(D)}_isBoxedValue(D){return"object"==typeof D&&null!==D&&2===Object.keys(D).length&&"value"in D&&"disabled"in D}_registerOnCollectionChange(D){this._onCollectionChange=D}_setUpdateStrategy(D){Gn(D)&&null!=D.updateOn&&(this._updateOn=D.updateOn)}_parentMarkedDirty(D){return!D&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Vn extends at{constructor(D=null,b,B){super(Tn(b),Wr(B,b)),this._onChange=[],this._applyFormState(D),this._setUpdateStrategy(b),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(D,b={}){this.value=this._pendingValue=D,this._onChange.length&&!1!==b.emitModelToViewChange&&this._onChange.forEach(B=>B(this.value,!1!==b.emitViewToModelChange)),this.updateValueAndValidity(b)}patchValue(D,b={}){this.setValue(D,b)}reset(D=null,b={}){this._applyFormState(D),this.markAsPristine(b),this.markAsUntouched(b),this.setValue(this.value,b),this._pendingChange=!1}_updateValue(){}_anyControls(D){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(D){this._onChange.push(D)}_unregisterOnChange(D){Mr(this._onChange,D)}registerOnDisabledChange(D){this._onDisabledChange.push(D)}_unregisterOnDisabledChange(D){Mr(this._onDisabledChange,D)}_forEachChild(D){}_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(D){this._isBoxedValue(D)?(this.value=this._pendingValue=D.value,D.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=D}}class Dr extends at{constructor(D,b,B){super(Tn(b),Wr(B,b)),this.controls=D,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(D,b){return this.controls[D]?this.controls[D]:(this.controls[D]=b,b.setParent(this),b._registerOnCollectionChange(this._onCollectionChange),b)}addControl(D,b,B={}){this.registerControl(D,b),this.updateValueAndValidity({emitEvent:B.emitEvent}),this._onCollectionChange()}removeControl(D,b={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),delete this.controls[D],this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}setControl(D,b,B={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),delete this.controls[D],b&&this.registerControl(D,b),this.updateValueAndValidity({emitEvent:B.emitEvent}),this._onCollectionChange()}contains(D){return this.controls.hasOwnProperty(D)&&this.controls[D].enabled}setValue(D,b={}){this._checkAllValuesPresent(D),Object.keys(D).forEach(B=>{this._throwIfControlMissing(B),this.controls[B].setValue(D[B],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(D,b={}){null!=D&&(Object.keys(D).forEach(B=>{this.controls[B]&&this.controls[B].patchValue(D[B],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(D={},b={}){this._forEachChild((B,Ie)=>{B.reset(D[Ie],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this._reduceChildren({},(D,b,B)=>(D[B]=b instanceof Vn?b.value:b.getRawValue(),D))}_syncPendingControls(){let D=this._reduceChildren(!1,(b,B)=>!!B._syncPendingControls()||b);return D&&this.updateValueAndValidity({onlySelf:!0}),D}_throwIfControlMissing(D){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[D])throw new Error(`Cannot find form control with name: ${D}.`)}_forEachChild(D){Object.keys(this.controls).forEach(b=>{const B=this.controls[b];B&&D(B,b)})}_setUpControls(){this._forEachChild(D=>{D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(D){for(const b of Object.keys(this.controls)){const B=this.controls[b];if(this.contains(b)&&D(B))return!0}return!1}_reduceValue(){return this._reduceChildren({},(D,b,B)=>((b.enabled||this.disabled)&&(D[B]=b.value),D))}_reduceChildren(D,b){let B=D;return this._forEachChild((Ie,ct)=>{B=b(B,Ie,ct)}),B}_allControlsDisabled(){for(const D of Object.keys(this.controls))if(this.controls[D].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(D){this._forEachChild((b,B)=>{if(void 0===D[B])throw new Error(`Must supply a value for form control with name: '${B}'.`)})}}class jn extends at{constructor(D,b,B){super(Tn(b),Wr(B,b)),this.controls=D,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(D){return this.controls[D]}push(D,b={}){this.controls.push(D),this._registerControl(D),this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}insert(D,b,B={}){this.controls.splice(D,0,b),this._registerControl(b),this.updateValueAndValidity({emitEvent:B.emitEvent})}removeAt(D,b={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),this.controls.splice(D,1),this.updateValueAndValidity({emitEvent:b.emitEvent})}setControl(D,b,B={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),this.controls.splice(D,1),b&&(this.controls.splice(D,0,b),this._registerControl(b)),this.updateValueAndValidity({emitEvent:B.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(D,b={}){this._checkAllValuesPresent(D),D.forEach((B,Ie)=>{this._throwIfControlMissing(Ie),this.at(Ie).setValue(B,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(D,b={}){null!=D&&(D.forEach((B,Ie)=>{this.at(Ie)&&this.at(Ie).patchValue(B,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(D=[],b={}){this._forEachChild((B,Ie)=>{B.reset(D[Ie],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this.controls.map(D=>D instanceof Vn?D.value:D.getRawValue())}clear(D={}){this.controls.length<1||(this._forEachChild(b=>b._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:D.emitEvent}))}_syncPendingControls(){let D=this.controls.reduce((b,B)=>!!B._syncPendingControls()||b,!1);return D&&this.updateValueAndValidity({onlySelf:!0}),D}_throwIfControlMissing(D){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(D))throw new Error(`Cannot find form control at index ${D}`)}_forEachChild(D){this.controls.forEach((b,B)=>{D(b,B)})}_updateValue(){this.value=this.controls.filter(D=>D.enabled||this.disabled).map(D=>D.value)}_anyControls(D){return this.controls.some(b=>b.enabled&&D(b))}_setUpControls(){this._forEachChild(D=>this._registerControl(D))}_checkAllValuesPresent(D){this._forEachChild((b,B)=>{if(void 0===D[B])throw new Error(`Must supply a value for form control at index: ${B}.`)})}_allControlsDisabled(){for(const D of this.controls)if(D.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(D){D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange)}}let x=(()=>{class T{}return T.\u0275fac=function(b){return new(b||T)},T.\u0275dir=s.lG2({type:T,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),T})(),J=(()=>{class T{}return T.\u0275fac=function(b){return new(b||T)},T.\u0275mod=s.oAB({type:T}),T.\u0275inj=s.cJS({}),T})();const ut=new s.OlP("NgModelWithFormControlWarning"),Dt={provide:Rn,useExisting:(0,s.Gpc)(()=>Ct)};let Ct=(()=>{class T extends Rn{constructor(b,B,Ie,ct){super(),this._ngModelWarningConfig=ct,this.update=new s.vpe,this._ngModelWarningSent=!1,this._setValidators(b),this._setAsyncValidators(B),this.valueAccessor=mr(0,Ie)}set isDisabled(b){}ngOnChanges(b){if(this._isControlChanged(b)){const B=b.form.previousValue;B&&Zn(B,this,!1),wt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}er(b,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Zn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}_isControlChanged(b){return b.hasOwnProperty("form")}}return T.\u0275fac=function(b){return new(b||T)(s.Y36(we,10),s.Y36(Xe,10),s.Y36(X,10),s.Y36(ut,8))},T.\u0275dir=s.lG2({type:T,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s._Bn([Dt]),s.qOj,s.TTD]}),T._ngModelWarningSentOnce=!1,T})();const mn={provide:Yt,useExisting:(0,s.Gpc)(()=>sn)};let sn=(()=>{class T extends Yt{constructor(b,B){super(),this.validators=b,this.asyncValidators=B,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(b),this._setAsyncValidators(B)}ngOnChanges(b){this._checkFormPresent(),b.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(hn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(b){const B=this.form.get(b.path);return wt(B,b),B.updateValueAndValidity({emitEvent:!1}),this.directives.push(b),B}getControl(b){return this.form.get(b.path)}removeControl(b){Zn(b.control||null,b,!1),Mr(this.directives,b)}addFormGroup(b){this._setUpFormContainer(b)}removeFormGroup(b){this._cleanUpFormContainer(b)}getFormGroup(b){return this.form.get(b.path)}addFormArray(b){this._setUpFormContainer(b)}removeFormArray(b){this._cleanUpFormContainer(b)}getFormArray(b){return this.form.get(b.path)}updateModel(b,B){this.form.get(b.path).setValue(B)}onSubmit(b){return this.submitted=!0,function(T,D){T._syncPendingControls(),D.forEach(b=>{const B=b.control;"submit"===B.updateOn&&B._pendingChange&&(b.viewToModelUpdate(B._pendingValue),B._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(b),!1}onReset(){this.resetForm()}resetForm(b){this.form.reset(b),this.submitted=!1}_updateDomValue(){this.directives.forEach(b=>{const B=b.control,Ie=this.form.get(b.path);B!==Ie&&(Zn(B||null,b),Ie instanceof Vn&&(wt(Ie,b),b.control=Ie))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(b){const B=this.form.get(b.path);(function(T,D){Bn(T,D)})(B,b),B.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(b){if(this.form){const B=this.form.get(b.path);B&&function(T,D){return hn(T,D)}(B,b)&&B.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bn(this.form,this),this._oldForm&&hn(this._oldForm,this)}_checkFormPresent(){}}return T.\u0275fac=function(b){return new(b||T)(s.Y36(we,10),s.Y36(Xe,10))},T.\u0275dir=s.lG2({type:T,selectors:[["","formGroup",""]],hostBindings:function(b,B){1&b&&s.NdJ("submit",function(ct){return B.onSubmit(ct)})("reset",function(){return B.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([mn]),s.qOj,s.TTD]}),T})();const Io={provide:Rn,useExisting:(0,s.Gpc)(()=>co)};let co=(()=>{class T extends Rn{constructor(b,B,Ie,ct,Wt){super(),this._ngModelWarningConfig=Wt,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=b,this._setValidators(B),this._setAsyncValidators(Ie),this.valueAccessor=mr(0,ct)}set isDisabled(b){}ngOnChanges(b){this._added||this._setUpControl(),er(b,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}get path(){return function(T,D){return[...D.path,T]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return T.\u0275fac=function(b){return new(b||T)(s.Y36(Yt,13),s.Y36(we,10),s.Y36(Xe,10),s.Y36(X,10),s.Y36(ut,8))},T.\u0275dir=s.lG2({type:T,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([Io]),s.qOj,s.TTD]}),T._ngModelWarningSentOnce=!1,T})(),V=(()=>{class T{}return T.\u0275fac=function(b){return new(b||T)},T.\u0275mod=s.oAB({type:T}),T.\u0275inj=s.cJS({imports:[[J]]}),T})(),z=(()=>{class T{static withConfig(b){return{ngModule:T,providers:[{provide:ut,useValue:b.warnOnNgModelWithFormControl}]}}}return T.\u0275fac=function(b){return new(b||T)},T.\u0275mod=s.oAB({type:T}),T.\u0275inj=s.cJS({imports:[V]}),T})(),Ke=(()=>{class T{group(b,B=null){const Ie=this._reduceControls(b);let un,ct=null,Wt=null;return null!=B&&(function(T){return void 0!==T.asyncValidators||void 0!==T.validators||void 0!==T.updateOn}(B)?(ct=null!=B.validators?B.validators:null,Wt=null!=B.asyncValidators?B.asyncValidators:null,un=null!=B.updateOn?B.updateOn:void 0):(ct=null!=B.validator?B.validator:null,Wt=null!=B.asyncValidator?B.asyncValidator:null)),new Dr(Ie,{asyncValidators:Wt,updateOn:un,validators:ct})}control(b,B,Ie){return new Vn(b,B,Ie)}array(b,B,Ie){const ct=b.map(Wt=>this._createControl(Wt));return new jn(ct,B,Ie)}_reduceControls(b){const B={};return Object.keys(b).forEach(Ie=>{B[Ie]=this._createControl(b[Ie])}),B}_createControl(b){return b instanceof Vn||b instanceof Dr||b instanceof jn?b:Array.isArray(b)?this.control(b[0],b.length>1?b[1]:null,b.length>2?b[2]:null):this.control(b)}}return T.\u0275fac=function(b){return new(b||T)},T.\u0275prov=(0,s.Yz7)({factory:function(){return new T},token:T,providedIn:z}),T})()},8739:(Tt,Ge,L)=>{"use strict";L.d(Ge,{gz:()=>Kr,y6:()=>Oo,OD:()=>Zt,eC:()=>At,wm:()=>zs,F0:()=>oo,rH:()=>cs,Bz:()=>Ks,lC:()=>Gs,Hx:()=>qn});var s=L(8583),O=L(639),Ne=L(4869),je=L(9796),Te=L(7393);class ve extends Te.L{notifyNext(g,h,w,R,H){this.destination.next(h)}notifyError(g,h){this.destination.error(g)}notifyComplete(g){this.destination.complete()}}class Y extends Te.L{constructor(g,h,w){super(),this.parent=g,this.outerValue=h,this.outerIndex=w,this.index=0}_next(g){this.parent.notifyNext(this.outerValue,g,this.outerIndex,this.index++,this)}_error(g){this.parent.notifyError(g,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var Z=L(7444),Q=L(7574);function ee(v,g,h,w,R=new Y(v,h,w)){if(!R.closed)return g instanceof Q.y?g.subscribe(R):(0,Z.s)(g)(R)}var K=L(6693);const X={};class ce{constructor(g){this.resultSelector=g}call(g,h){return h.subscribe(new _e(g,this.resultSelector))}}class _e extends ve{constructor(g,h){super(g),this.resultSelector=h,this.active=0,this.values=[],this.observables=[]}_next(g){this.values.push(X),this.observables.push(g)}_complete(){const g=this.observables,h=g.length;if(0===h)this.destination.complete();else{this.active=h,this.toRespond=h;for(let w=0;w{function v(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return v.prototype=Object.create(Error.prototype),v})();var ne=L(5917),Me=L(3282);function we(...v){return(0,Me.J)(1)((0,ne.of)(...v))}var Xe=L(4402);const Je=new Q.y(v=>v.complete());function De(v){return v?function(v){return new Q.y(g=>v.schedule(()=>g.complete()))}(v):Je}function Se(v){return new Q.y(g=>{let h;try{h=v()}catch(R){return void g.error(R)}return(h?(0,Xe.D)(h):De()).subscribe(g)})}var Qe=L(6215),qe=L(2441),xe=L(7709);const Le=(()=>{function v(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return v.prototype=Object.create(Error.prototype),v})();function We(v){return g=>0===v?De():g.lift(new Ot(v))}class Ot{constructor(g){if(this.total=g,this.total<0)throw new Le}call(g,h){return h.subscribe(new jt(g,this.total))}}class jt extends Te.L{constructor(g,h){super(g),this.total=h,this.count=0}_next(g){const h=this.total,w=++this.count;w<=h&&(this.destination.next(g),w===h&&(this.destination.complete(),this.unsubscribe()))}}function Fe(v,g){let h=!1;return arguments.length>=2&&(h=!0),function(R){return R.lift(new Ve(v,g,h))}}class Ve{constructor(g,h,w=!1){this.accumulator=g,this.seed=h,this.hasSeed=w}call(g,h){return h.subscribe(new lt(g,this.accumulator,this.seed,this.hasSeed))}}class lt extends Te.L{constructor(g,h,w,R){super(g),this.accumulator=h,this._seed=w,this.hasSeed=R,this.index=0}get seed(){return this._seed}set seed(g){this.hasSeed=!0,this._seed=g}_next(g){if(this.hasSeed)return this._tryNext(g);this.seed=g,this.destination.next(g)}_tryNext(g){const h=this.index++;let w;try{w=this.accumulator(this.seed,g,h)}catch(R){this.destination.error(R)}this.seed=w,this.destination.next(w)}}var rt=L(5345);function Be(v){return function(h){const w=new He(v),R=h.lift(w);return w.caught=R}}class He{constructor(g){this.selector=g}call(g,h){return h.subscribe(new _t(g,this.selector,this.caught))}}class _t extends rt.Ds{constructor(g,h,w){super(g),this.selector=h,this.caught=w}error(g){if(!this.isStopped){let h;try{h=this.selector(g,this.caught)}catch(H){return void super.error(H)}this._unsubscribeAndRecycle();const w=new rt.IY(this);this.add(w);const R=(0,rt.ft)(h,w);R!==w&&this.add(R)}}}var Et=L(5435);function ft(v){return function(h){return 0===v?De():h.lift(new Rt(v))}}class Rt{constructor(g){if(this.total=g,this.total<0)throw new Le}call(g,h){return h.subscribe(new It(g,this.total))}}class It extends Te.L{constructor(g,h){super(g),this.total=h,this.ring=new Array,this.count=0}_next(g){const h=this.ring,w=this.total,R=this.count++;h.length0){const w=this.count>=this.total?this.total:this.count,R=this.ring;for(let H=0;Hg.lift(new gn(v))}class gn{constructor(g){this.errorFactory=g}call(g,h){return h.subscribe(new rn(g,this.errorFactory))}}class rn extends Te.L{constructor(g,h){super(g),this.errorFactory=h,this.hasValue=!1}_next(g){this.hasValue=!0,this.destination.next(g)}_complete(){if(this.hasValue)return this.destination.complete();{let g;try{g=this.errorFactory()}catch(h){g=h}this.destination.error(g)}}}function Nt(){return new me}function Fn(v=null){return g=>g.lift(new Yt(v))}class Yt{constructor(g){this.defaultValue=g}call(g,h){return h.subscribe(new Rn(g,this.defaultValue))}}class Rn extends Te.L{constructor(g,h){super(g),this.defaultValue=h,this.isEmpty=!0}_next(g){this.isEmpty=!1,this.destination.next(g)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Jn=L(4487);function Nn(v,g){const h=arguments.length>=2;return w=>w.pipe(v?(0,Et.h)((R,H)=>v(R,H,w)):Jn.y,We(1),h?Fn(g):an(()=>new me))}var br=L(5319);class pe{constructor(g){this.callback=g}call(g,h){return h.subscribe(new ye(g,this.callback))}}class ye extends Te.L{constructor(g,h){super(g),this.add(new br.w(h))}}var nt=L(8002),Oe=L(3190),bt=L(4612),dt=L(9773),ht=L(3342),zt=L(1307);class Dn{constructor(g,h){this.id=g,this.url=h}}class Zt extends Dn{constructor(g,h,w="imperative",R=null){super(g,h),this.navigationTrigger=w,this.restoredState=R}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class In extends Dn{constructor(g,h,w){super(g,h),this.urlAfterRedirects=w}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class On extends Dn{constructor(g,h,w){super(g,h),this.reason=w}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class en extends Dn{constructor(g,h,w){super(g,h),this.error=w}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wt extends Dn{constructor(g,h,w,R){super(g,h),this.urlAfterRedirects=w,this.state=R}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zn extends Dn{constructor(g,h,w,R){super(g,h),this.urlAfterRedirects=w,this.state=R}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qt extends Dn{constructor(g,h,w,R,H){super(g,h),this.urlAfterRedirects=w,this.state=R,this.shouldActivate=H}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class wn extends Dn{constructor(g,h,w,R){super(g,h),this.urlAfterRedirects=w,this.state=R}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bn extends Dn{constructor(g,h,w,R){super(g,h),this.urlAfterRedirects=w,this.state=R}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hn{constructor(g){this.route=g}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Pr{constructor(g){this.route=g}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ao{constructor(g){this.snapshot=g}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pt{constructor(g){this.snapshot=g}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class on{constructor(g){this.snapshot=g}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ir{constructor(g){this.snapshot=g}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gr{constructor(g,h,w){this.routerEvent=g,this.position=h,this.anchor=w}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const At="primary";class dr{constructor(g){this.params=g||{}}has(g){return Object.prototype.hasOwnProperty.call(this.params,g)}get(g){if(this.has(g)){const h=this.params[g];return Array.isArray(h)?h[0]:h}return null}getAll(g){if(this.has(g)){const h=this.params[g];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function er(v){return new dr(v)}const nr="ngNavigationCancelingError";function rr(v){const g=Error("NavigationCancelingError: "+v);return g[nr]=!0,g}function Mr(v,g,h){const w=h.path.split("/");if(w.length>v.length||"full"===h.pathMatch&&(g.hasChildren()||w.lengthw[H]===R)}return v===g}function sr(v){return Array.prototype.concat.apply([],v)}function Er(v){return v.length>0?v[v.length-1]:null}function Tn(v,g){for(const h in v)v.hasOwnProperty(h)&&g(v[h],h)}function ar(v){return(0,O.CqO)(v)?v:(0,O.QGY)(v)?(0,Xe.D)(Promise.resolve(v)):(0,ne.of)(v)}const kt={exact:function Dr(v,g,h){if(!En(v.segments,g.segments)||!Ut(v.segments,g.segments,h)||v.numberOfChildren!==g.numberOfChildren)return!1;for(const w in g.children)if(!v.children[w]||!Dr(v.children[w],g.children[w],h))return!1;return!0},subset:yt},Gn={exact:function(v,g){return Kn(v,g)},subset:function(v,g){return Object.keys(g).length<=Object.keys(v).length&&Object.keys(g).every(h=>Un(v[h],g[h]))},ignored:()=>!0};function at(v,g,h){return kt[h.paths](v.root,g.root,h.matrixParams)&&Gn[h.queryParams](v.queryParams,g.queryParams)&&!("exact"===h.fragment&&v.fragment!==g.fragment)}function yt(v,g,h){return Ht(v,g,g.segments,h)}function Ht(v,g,h,w){if(v.segments.length>h.length){const R=v.segments.slice(0,h.length);return!(!En(R,h)||g.hasChildren()||!Ut(R,h,w))}if(v.segments.length===h.length){if(!En(v.segments,h)||!Ut(v.segments,h,w))return!1;for(const R in g.children)if(!v.children[R]||!yt(v.children[R],g.children[R],w))return!1;return!0}{const R=h.slice(0,v.segments.length),H=h.slice(v.segments.length);return!!(En(v.segments,R)&&Ut(v.segments,R,w)&&v.children[At])&&Ht(v.children[At],g,H,w)}}function Ut(v,g,h){return g.every((w,R)=>Gn[h](v[R].parameters,w.parameters))}class Jt{constructor(g,h,w){this.root=g,this.queryParams=h,this.fragment=w}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=er(this.queryParams)),this._queryParamMap}toString(){return $r.serialize(this)}}class Vt{constructor(g,h){this.segments=g,this.children=h,this.parent=null,Tn(h,(w,R)=>w.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return U(this)}}class Sn{constructor(g,h){this.path=g,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=er(this.parameters)),this._parameterMap}toString(){return J(this)}}function En(v,g){return v.length===g.length&&v.every((h,w)=>h.path===g[w].path)}class qn{}class Lt{parse(g){const h=new sn(g);return new Jt(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(g){const h=`/${de(g.root,!0)}`,w=function(v){const g=Object.keys(v).map(h=>{const w=v[h];return Array.isArray(w)?w.map(R=>`${x(h)}=${x(R)}`).join("&"):`${x(h)}=${x(w)}`}).filter(h=>!!h);return g.length?`?${g.join("&")}`:""}(g.queryParams);var v;return`${h}${w}${"string"==typeof g.fragment?`#${v=g.fragment,encodeURI(v)}`:""}`}}const $r=new Lt;function U(v){return v.segments.map(g=>J(g)).join("/")}function de(v,g){if(!v.hasChildren())return U(v);if(g){const h=v.children[At]?de(v.children[At],!1):"",w=[];return Tn(v.children,(R,H)=>{H!==At&&w.push(`${H}:${de(R,!1)}`)}),w.length>0?`${h}(${w.join("//")})`:h}{const h=function(v,g){let h=[];return Tn(v.children,(w,R)=>{R===At&&(h=h.concat(g(w,R)))}),Tn(v.children,(w,R)=>{R!==At&&(h=h.concat(g(w,R)))}),h}(v,(w,R)=>R===At?[de(v.children[At],!1)]:[`${R}:${de(w,!1)}`]);return 1===Object.keys(v.children).length&&null!=v.children[At]?`${U(v)}/${h[0]}`:`${U(v)}/(${h.join("//")})`}}function C(v){return encodeURIComponent(v).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function x(v){return C(v).replace(/%3B/gi,";")}function $(v){return C(v).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function re(v){return decodeURIComponent(v)}function k(v){return re(v.replace(/\+/g,"%20"))}function J(v){return`${$(v.path)}${function(v){return Object.keys(v).map(g=>`;${$(g)}=${$(v[g])}`).join("")}(v.parameters)}`}const Ce=/^[^\/()?;=#]+/;function tt(v){const g=v.match(Ce);return g?g[0]:""}const ut=/^[^=?&#]+/,Ct=/^[^?&#]+/;class sn{constructor(g){this.url=g,this.remaining=g}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vt([],{}):new Vt([],this.parseChildren())}parseQueryParams(){const g={};if(this.consumeOptional("?"))do{this.parseQueryParam(g)}while(this.consumeOptional("&"));return g}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const g=[];for(this.peekStartsWith("(")||g.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),g.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let w={};return this.peekStartsWith("(")&&(w=this.parseParens(!1)),(g.length>0||Object.keys(h).length>0)&&(w[At]=new Vt(g,h)),w}parseSegment(){const g=tt(this.remaining);if(""===g&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(g),new Sn(re(g),this.parseMatrixParams())}parseMatrixParams(){const g={};for(;this.consumeOptional(";");)this.parseParam(g);return g}parseParam(g){const h=tt(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const R=tt(this.remaining);R&&(w=R,this.capture(w))}g[re(h)]=re(w)}parseQueryParam(g){const h=function(v){const g=v.match(ut);return g?g[0]:""}(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const ae=function(v){const g=v.match(Ct);return g?g[0]:""}(this.remaining);ae&&(w=ae,this.capture(w))}const R=k(h),H=k(w);if(g.hasOwnProperty(R)){let ae=g[R];Array.isArray(ae)||(ae=[ae],g[R]=ae),ae.push(H)}else g[R]=H}parseParens(g){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const w=tt(this.remaining),R=this.remaining[w.length];if("/"!==R&&")"!==R&&";"!==R)throw new Error(`Cannot parse url '${this.url}'`);let H;w.indexOf(":")>-1?(H=w.substr(0,w.indexOf(":")),this.capture(H),this.capture(":")):g&&(H=At);const ae=this.parseChildren();h[H]=1===Object.keys(ae).length?ae[At]:new Vt([],ae),this.consumeOptional("//")}return h}peekStartsWith(g){return this.remaining.startsWith(g)}consumeOptional(g){return!!this.peekStartsWith(g)&&(this.remaining=this.remaining.substring(g.length),!0)}capture(g){if(!this.consumeOptional(g))throw new Error(`Expected "${g}".`)}}class An{constructor(g){this._root=g}get root(){return this._root.value}parent(g){const h=this.pathFromRoot(g);return h.length>1?h[h.length-2]:null}children(g){const h=yr(g,this._root);return h?h.children.map(w=>w.value):[]}firstChild(g){const h=yr(g,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(g){const h=Ur(g,this._root);return h.length<2?[]:h[h.length-2].children.map(R=>R.value).filter(R=>R!==g)}pathFromRoot(g){return Ur(g,this._root).map(h=>h.value)}}function yr(v,g){if(v===g.value)return g;for(const h of g.children){const w=yr(v,h);if(w)return w}return null}function Ur(v,g){if(v===g.value)return[g];for(const h of g.children){const w=Ur(v,h);if(w.length)return w.unshift(g),w}return[]}class Yn{constructor(g,h){this.value=g,this.children=h}toString(){return`TreeNode(${this.value})`}}function fr(v){const g={};return v&&v.children.forEach(h=>g[h.value.outlet]=h),g}class Io extends An{constructor(g,h){super(g),this.snapshot=h,Lo(this,g)}toString(){return this.snapshot.toString()}}function co(v,g){const h=function(v,g){const ae=new To([],{},{},"",{},At,g,null,v.root,-1,{});return new Rr("",new Yn(ae,[]))}(v,g),w=new Qe.X([new Sn("",{})]),R=new Qe.X({}),H=new Qe.X({}),ae=new Qe.X({}),ge=new Qe.X(""),et=new Kr(w,R,ae,ge,H,At,g,h.root);return et.snapshot=h.root,new Io(new Yn(et,[]),h)}class Kr{constructor(g,h,w,R,H,ae,ge,et){this.url=g,this.params=h,this.queryParams=w,this.fragment=R,this.data=H,this.outlet=ae,this.component=ge,this._futureSnapshot=et}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,nt.U)(g=>er(g)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,nt.U)(g=>er(g)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xo(v,g="emptyOnly"){const h=v.pathFromRoot;let w=0;if("always"!==g)for(w=h.length-1;w>=1;){const R=h[w],H=h[w-1];if(R.routeConfig&&""===R.routeConfig.path)w--;else{if(H.component)break;w--}}return function(v){return v.reduce((g,h)=>({params:Object.assign(Object.assign({},g.params),h.params),data:Object.assign(Object.assign({},g.data),h.data),resolve:Object.assign(Object.assign({},g.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(w))}class To{constructor(g,h,w,R,H,ae,ge,et,Mt,Ln,qt){this.url=g,this.params=h,this.queryParams=w,this.fragment=R,this.data=H,this.outlet=ae,this.component=ge,this.routeConfig=et,this._urlSegment=Mt,this._lastPathIndex=Ln,this._resolve=qt}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=er(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=er(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(w=>w.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Rr extends An{constructor(g,h){super(h),this.url=g,Lo(this,h)}toString(){return Bo(this._root)}}function Lo(v,g){g.value._routerState=v,g.children.forEach(h=>Lo(v,h))}function Bo(v){const g=v.children.length>0?` { ${v.children.map(Bo).join(", ")} } `:"";return`${v.value}${g}`}function Xi(v){if(v.snapshot){const g=v.snapshot,h=v._futureSnapshot;v.snapshot=h,Kn(g.queryParams,h.queryParams)||v.queryParams.next(h.queryParams),g.fragment!==h.fragment&&v.fragment.next(h.fragment),Kn(g.params,h.params)||v.params.next(h.params),function(v,g){if(v.length!==g.length)return!1;for(let h=0;hKn(h.parameters,g[w].parameters))}(v.url,g.url);return h&&!(!v.parent!=!g.parent)&&(!v.parent||po(v.parent,g.parent))}function uo(v,g,h){if(h&&v.shouldReuseRoute(g.value,h.value.snapshot)){const w=h.value;w._futureSnapshot=g.value;const R=function(v,g,h){return g.children.map(w=>{for(const R of h.children)if(v.shouldReuseRoute(w.value,R.value.snapshot))return uo(v,w,R);return uo(v,w)})}(v,g,h);return new Yn(w,R)}{if(v.shouldAttach(g.value)){const H=v.retrieve(g.value);if(null!==H){const ae=H.route;return Qo(g,ae),ae}}const w=function(v){return new Kr(new Qe.X(v.url),new Qe.X(v.params),new Qe.X(v.queryParams),new Qe.X(v.fragment),new Qe.X(v.data),v.outlet,v.component,v)}(g.value),R=g.children.map(H=>uo(v,H));return new Yn(w,R)}}function Qo(v,g){if(v.value.routeConfig!==g.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(v.children.length!==g.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");g.value._futureSnapshot=v.value;for(let h=0;h{H[ge]=Array.isArray(ae)?ae.map(et=>`${et}`):`${ae}`}),new Jt(h.root===v?g:Ao(h.root,v,g),H,R)}function Ao(v,g,h){const w={};return Tn(v.children,(R,H)=>{w[H]=R===g?h:Ao(R,g,h)}),new Vt(v.segments,w)}class Jo{constructor(g,h,w){if(this.isAbsolute=g,this.numberOfDoubleDots=h,this.commands=w,g&&w.length>0&&eo(w[0]))throw new Error("Root segment cannot have matrix parameters");const R=w.find(qr);if(R&&R!==Er(w))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mo{constructor(g,h,w){this.segmentGroup=g,this.processChildren=h,this.index=w}}function Vo(v,g,h){if(v||(v=new Vt([],{})),0===v.segments.length&&v.hasChildren())return mo(v,g,h);const w=function(v,g,h){let w=0,R=g;const H={match:!1,pathIndex:0,commandIndex:0};for(;R=h.length)return H;const ae=v.segments[R],ge=h[w];if(qr(ge))break;const et=`${ge}`,Mt=w0&&void 0===et)break;if(et&&Mt&&"object"==typeof Mt&&void 0===Mt.outlets){if(!V(et,Mt,ae))return H;w+=2}else{if(!V(et,{},ae))return H;w++}R++}return{match:!0,pathIndex:R,commandIndex:w}}(v,g,h),R=h.slice(w.commandIndex);if(w.match&&w.pathIndex{"string"==typeof H&&(H=[H]),null!==H&&(R[ae]=Vo(v.children[ae],g,H))}),Tn(v.children,(H,ae)=>{void 0===w[ae]&&(R[ae]=H)}),new Vt(v.segments,R)}}function jo(v,g,h){const w=v.segments.slice(0,g);let R=0;for(;R{"string"==typeof h&&(h=[h]),null!==h&&(g[w]=jo(new Vt([],{}),0,h))}),g}function A(v){const g={};return Tn(v,(h,w)=>g[w]=`${h}`),g}function V(v,g,h){return v==h.path&&Kn(g,h.parameters)}class z{constructor(g,h,w,R){this.routeReuseStrategy=g,this.futureState=h,this.currState=w,this.forwardEvent=R}activate(g){const h=this.futureState._root,w=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,w,g),Xi(this.futureState.root),this.activateChildRoutes(h,w,g)}deactivateChildRoutes(g,h,w){const R=fr(h);g.children.forEach(H=>{const ae=H.value.outlet;this.deactivateRoutes(H,R[ae],w),delete R[ae]}),Tn(R,(H,ae)=>{this.deactivateRouteAndItsChildren(H,w)})}deactivateRoutes(g,h,w){const R=g.value,H=h?h.value:null;if(R===H)if(R.component){const ae=w.getContext(R.outlet);ae&&this.deactivateChildRoutes(g,h,ae.children)}else this.deactivateChildRoutes(g,h,w);else H&&this.deactivateRouteAndItsChildren(h,w)}deactivateRouteAndItsChildren(g,h){this.routeReuseStrategy.shouldDetach(g.value.snapshot)?this.detachAndStoreRouteSubtree(g,h):this.deactivateRouteAndOutlet(g,h)}detachAndStoreRouteSubtree(g,h){const w=h.getContext(g.value.outlet);if(w&&w.outlet){const R=w.outlet.detach(),H=w.children.onOutletDeactivated();this.routeReuseStrategy.store(g.value.snapshot,{componentRef:R,route:g,contexts:H})}}deactivateRouteAndOutlet(g,h){const w=h.getContext(g.value.outlet),R=w&&g.value.component?w.children:h,H=fr(g);for(const ae of Object.keys(H))this.deactivateRouteAndItsChildren(H[ae],R);w&&w.outlet&&(w.outlet.deactivate(),w.children.onOutletDeactivated(),w.attachRef=null,w.resolver=null,w.route=null)}activateChildRoutes(g,h,w){const R=fr(h);g.children.forEach(H=>{this.activateRoutes(H,R[H.value.outlet],w),this.forwardEvent(new ir(H.value.snapshot))}),g.children.length&&this.forwardEvent(new pt(g.value.snapshot))}activateRoutes(g,h,w){const R=g.value,H=h?h.value:null;if(Xi(R),R===H)if(R.component){const ae=w.getOrCreateContext(R.outlet);this.activateChildRoutes(g,h,ae.children)}else this.activateChildRoutes(g,h,w);else if(R.component){const ae=w.getOrCreateContext(R.outlet);if(this.routeReuseStrategy.shouldAttach(R.snapshot)){const ge=this.routeReuseStrategy.retrieve(R.snapshot);this.routeReuseStrategy.store(R.snapshot,null),ae.children.onOutletReAttached(ge.contexts),ae.attachRef=ge.componentRef,ae.route=ge.route.value,ae.outlet&&ae.outlet.attach(ge.componentRef,ge.route.value),fe(ge.route)}else{const ge=function(v){for(let g=v.parent;g;g=g.parent){const h=g.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(R.snapshot),et=ge?ge.module.componentFactoryResolver:null;ae.attachRef=null,ae.route=R,ae.resolver=et,ae.outlet&&ae.outlet.activateWith(R,et),this.activateChildRoutes(g,null,ae.children)}}else this.activateChildRoutes(g,null,w)}}function fe(v){Xi(v.value),v.children.forEach(fe)}class it{constructor(g,h){this.routes=g,this.module=h}}function T(v){return"function"==typeof v}function b(v){return v instanceof Jt}const un=Symbol("INITIAL_VALUE");function Wn(){return(0,Oe.w)(v=>function(...v){let g,h;return(0,Ne.K)(v[v.length-1])&&(h=v.pop()),"function"==typeof v[v.length-1]&&(g=v.pop()),1===v.length&&(0,je.k)(v[0])&&(v=v[0]),(0,K.n)(v,h).lift(new ce(g))}(v.map(g=>g.pipe(We(1),function(...v){const g=v[v.length-1];return(0,Ne.K)(g)?(v.pop(),h=>we(v,h,g)):h=>we(v,h)}(un)))).pipe(Fe((g,h)=>{let w=!1;return h.reduce((R,H,ae)=>R!==un?R:(H===un&&(w=!0),w||!1!==H&&ae!==h.length-1&&!b(H)?R:H),g)},un),(0,Et.h)(g=>g!==un),(0,nt.U)(g=>b(g)?g:!0===g),We(1)))}let kn=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275cmp=O.Xpm({type:v,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,w){1&h&&O._UZ(0,"router-outlet")},directives:function(){return[Gs]},encapsulation:2}),v})();function Gr(v,g=""){for(let h=0;hvr(w)===g);return h.push(...v.filter(w=>vr(w)!==g)),h}const Ji={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function fo(v,g,h){var w;if(""===g.path)return"full"===g.pathMatch&&(v.hasChildren()||h.length>0)?Object.assign({},Ji):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const H=(g.matcher||Mr)(h,v,g);if(!H)return Object.assign({},Ji);const ae={};Tn(H.posParams,(et,Mt)=>{ae[Mt]=et.path});const ge=H.consumed.length>0?Object.assign(Object.assign({},ae),H.consumed[H.consumed.length-1].parameters):ae;return{matched:!0,consumedSegments:H.consumed,lastChild:H.consumed.length,parameters:ge,positionalParamSegments:null!==(w=H.posParams)&&void 0!==w?w:{}}}function ei(v,g,h,w,R="corrected"){if(h.length>0&&function(v,g,h){return h.some(w=>ts(v,g,w)&&vr(w)!==At)}(v,h,w)){const ae=new Vt(g,function(v,g,h,w){const R={};R[At]=w,w._sourceSegment=v,w._segmentIndexShift=g.length;for(const H of h)if(""===H.path&&vr(H)!==At){const ae=new Vt([],{});ae._sourceSegment=v,ae._segmentIndexShift=g.length,R[vr(H)]=ae}return R}(v,g,w,new Vt(h,v.children)));return ae._sourceSegment=v,ae._segmentIndexShift=g.length,{segmentGroup:ae,slicedSegments:[]}}if(0===h.length&&function(v,g,h){return h.some(w=>ts(v,g,w))}(v,h,w)){const ae=new Vt(v.segments,function(v,g,h,w,R,H){const ae={};for(const ge of w)if(ts(v,h,ge)&&!R[vr(ge)]){const et=new Vt([],{});et._sourceSegment=v,et._segmentIndexShift="legacy"===H?v.segments.length:g.length,ae[vr(ge)]=et}return Object.assign(Object.assign({},R),ae)}(v,g,h,w,v.children,R));return ae._sourceSegment=v,ae._segmentIndexShift=g.length,{segmentGroup:ae,slicedSegments:h}}const H=new Vt(v.segments,v.children);return H._sourceSegment=v,H._segmentIndexShift=g.length,{segmentGroup:H,slicedSegments:h}}function ts(v,g,h){return(!(v.hasChildren()||g.length>0)||"full"!==h.pathMatch)&&""===h.path}function ti(v,g,h,w){return!!(vr(v)===w||w!==At&&ts(g,h,v))&&("**"===v.path||fo(g,v,h).matched)}function Ho(v,g,h){return 0===g.length&&!v.children[h]}class Uo{constructor(g){this.segmentGroup=g||null}}class ci{constructor(g){this.urlTree=g}}function st(v){return new Q.y(g=>g.error(new Uo(v)))}function yn(v){return new Q.y(g=>g.error(new ci(v)))}function $s(v){return new Q.y(g=>g.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${v}'`)))}class Ii{constructor(g,h,w,R,H){this.configLoader=h,this.urlSerializer=w,this.urlTree=R,this.config=H,this.allowRedirects=!0,this.ngModule=g.get(O.h0i)}apply(){const g=ei(this.urlTree.root,[],[],this.config).segmentGroup,h=new Vt(g.segments,g.children);return this.expandSegmentGroup(this.ngModule,this.config,h,At).pipe((0,nt.U)(H=>this.createUrlTree(Ti(H),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Be(H=>{if(H instanceof ci)return this.allowRedirects=!1,this.match(H.urlTree);throw H instanceof Uo?this.noMatchError(H):H}))}match(g){return this.expandSegmentGroup(this.ngModule,this.config,g.root,At).pipe((0,nt.U)(R=>this.createUrlTree(Ti(R),g.queryParams,g.fragment))).pipe(Be(R=>{throw R instanceof Uo?this.noMatchError(R):R}))}noMatchError(g){return new Error(`Cannot match any routes. URL Segment: '${g.segmentGroup}'`)}createUrlTree(g,h,w){const R=g.segments.length>0?new Vt([],{[At]:g}):g;return new Jt(R,h,w)}expandSegmentGroup(g,h,w,R){return 0===w.segments.length&&w.hasChildren()?this.expandChildren(g,h,w).pipe((0,nt.U)(H=>new Vt([],H))):this.expandSegment(g,w,h,w.segments,R,!0)}expandChildren(g,h,w){const R=[];for(const H of Object.keys(w.children))"primary"===H?R.unshift(H):R.push(H);return(0,Xe.D)(R).pipe((0,bt.b)(H=>{const ae=w.children[H],ge=wi(h,H);return this.expandSegmentGroup(g,ge,ae,H).pipe((0,nt.U)(et=>({segment:et,outlet:H})))}),Fe((H,ae)=>(H[ae.outlet]=ae.segment,H),{}),function(v,g){const h=arguments.length>=2;return w=>w.pipe(v?(0,Et.h)((R,H)=>v(R,H,w)):Jn.y,ft(1),h?Fn(g):an(()=>new me))}())}expandSegment(g,h,w,R,H,ae){return(0,Xe.D)(w).pipe((0,bt.b)(ge=>this.expandSegmentAgainstRoute(g,h,w,ge,R,H,ae).pipe(Be(Mt=>{if(Mt instanceof Uo)return(0,ne.of)(null);throw Mt}))),Nn(ge=>!!ge),Be((ge,et)=>{if(ge instanceof me||"EmptyError"===ge.name){if(Ho(h,R,H))return(0,ne.of)(new Vt([],{}));throw new Uo(h)}throw ge}))}expandSegmentAgainstRoute(g,h,w,R,H,ae,ge){return ti(R,h,H,ae)?void 0===R.redirectTo?this.matchSegmentAgainstRoute(g,h,R,H,ae):ge&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(g,h,w,R,H,ae):st(h):st(h)}expandSegmentAgainstRouteUsingRedirect(g,h,w,R,H,ae){return"**"===R.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(g,w,R,ae):this.expandRegularSegmentAgainstRouteUsingRedirect(g,h,w,R,H,ae)}expandWildCardWithParamsAgainstRouteUsingRedirect(g,h,w,R){const H=this.applyRedirectCommands([],w.redirectTo,{});return w.redirectTo.startsWith("/")?yn(H):this.lineralizeSegments(w,H).pipe((0,dt.zg)(ae=>{const ge=new Vt(ae,{});return this.expandSegment(g,ge,h,ae,R,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(g,h,w,R,H,ae){const{matched:ge,consumedSegments:et,lastChild:Mt,positionalParamSegments:Ln}=fo(h,R,H);if(!ge)return st(h);const qt=this.applyRedirectCommands(et,R.redirectTo,Ln);return R.redirectTo.startsWith("/")?yn(qt):this.lineralizeSegments(R,qt).pipe((0,dt.zg)(or=>this.expandSegment(g,h,w,or.concat(H.slice(Mt)),ae,!1)))}matchSegmentAgainstRoute(g,h,w,R,H){if("**"===w.path)return w.loadChildren?(w._loadedConfig?(0,ne.of)(w._loadedConfig):this.configLoader.load(g.injector,w)).pipe((0,nt.U)(or=>(w._loadedConfig=or,new Vt(R,{})))):(0,ne.of)(new Vt(R,{}));const{matched:ae,consumedSegments:ge,lastChild:et}=fo(h,w,R);if(!ae)return st(h);const Mt=R.slice(et);return this.getChildConfig(g,w,R).pipe((0,dt.zg)(qt=>{const or=qt.module,Mn=qt.routes,{segmentGroup:Qn,slicedSegments:Yo}=ei(h,ge,Mt,Mn),xo=new Vt(Qn.segments,Qn.children);if(0===Yo.length&&xo.hasChildren())return this.expandChildren(or,Mn,xo).pipe((0,nt.U)(Ba=>new Vt(ge,Ba)));if(0===Mn.length&&0===Yo.length)return(0,ne.of)(new Vt(ge,{}));const Js=vr(w)===H;return this.expandSegment(or,xo,Mn,Yo,Js?At:H,!0).pipe((0,nt.U)(ki=>new Vt(ge.concat(ki.segments),ki.children)))}))}getChildConfig(g,h,w){return h.children?(0,ne.of)(new it(h.children,g)):h.loadChildren?void 0!==h._loadedConfig?(0,ne.of)(h._loadedConfig):this.runCanLoadGuards(g.injector,h,w).pipe((0,dt.zg)(R=>{return R?this.configLoader.load(g.injector,h).pipe((0,nt.U)(H=>(h._loadedConfig=H,H))):(v=h,new Q.y(g=>g.error(rr(`Cannot load children because the guard of the route "path: '${v.path}'" returned false`))));var v})):(0,ne.of)(new it([],g))}runCanLoadGuards(g,h,w){const R=h.canLoad;if(!R||0===R.length)return(0,ne.of)(!0);const H=R.map(ae=>{const ge=g.get(ae);let et;if((v=ge)&&T(v.canLoad))et=ge.canLoad(h,w);else{if(!T(ge))throw new Error("Invalid CanLoad guard");et=ge(h,w)}var v;return ar(et)});return(0,ne.of)(H).pipe(Wn(),(0,ht.b)(ae=>{if(!b(ae))return;const ge=rr(`Redirecting to "${this.urlSerializer.serialize(ae)}"`);throw ge.url=ae,ge}),(0,nt.U)(ae=>!0===ae))}lineralizeSegments(g,h){let w=[],R=h.root;for(;;){if(w=w.concat(R.segments),0===R.numberOfChildren)return(0,ne.of)(w);if(R.numberOfChildren>1||!R.children[At])return $s(g.redirectTo);R=R.children[At]}}applyRedirectCommands(g,h,w){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),g,w)}applyRedirectCreatreUrlTree(g,h,w,R){const H=this.createSegmentGroup(g,h.root,w,R);return new Jt(H,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(g,h){const w={};return Tn(g,(R,H)=>{if("string"==typeof R&&R.startsWith(":")){const ge=R.substring(1);w[H]=h[ge]}else w[H]=R}),w}createSegmentGroup(g,h,w,R){const H=this.createSegments(g,h.segments,w,R);let ae={};return Tn(h.children,(ge,et)=>{ae[et]=this.createSegmentGroup(g,ge,w,R)}),new Vt(H,ae)}createSegments(g,h,w,R){return h.map(H=>H.path.startsWith(":")?this.findPosParam(g,H,R):this.findOrReturn(H,w))}findPosParam(g,h,w){const R=w[h.path.substring(1)];if(!R)throw new Error(`Cannot redirect to '${g}'. Cannot find '${h.path}'.`);return R}findOrReturn(g,h){let w=0;for(const R of h){if(R.path===g.path)return h.splice(w),R;w++}return g}}function Ti(v){const g={};for(const w of Object.keys(v.children)){const H=Ti(v.children[w]);(H.segments.length>0||H.hasChildren())&&(g[w]=H)}return function(v){if(1===v.numberOfChildren&&v.children[At]){const g=v.children[At];return new Vt(v.segments.concat(g.segments),g.children)}return v}(new Vt(v.segments,g))}class Vs{constructor(g){this.path=g,this.route=this.path[this.path.length-1]}}class Go{constructor(g,h){this.component=g,this.route=h}}function rs(v,g,h){const w=v._root;return Qr(w,g?g._root:null,h,[w.value])}function pr(v,g,h){const w=function(v){if(!v)return null;for(let g=v.parent;g;g=g.parent){const h=g.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(g);return(w?w.module.injector:h).get(v)}function Qr(v,g,h,w,R={canDeactivateChecks:[],canActivateChecks:[]}){const H=fr(g);return v.children.forEach(ae=>{(function(v,g,h,w,R={canDeactivateChecks:[],canActivateChecks:[]}){const H=v.value,ae=g?g.value:null,ge=h?h.getContext(v.value.outlet):null;if(ae&&H.routeConfig===ae.routeConfig){const et=function(v,g,h){if("function"==typeof h)return h(v,g);switch(h){case"pathParamsChange":return!En(v.url,g.url);case"pathParamsOrQueryParamsChange":return!En(v.url,g.url)||!Kn(v.queryParams,g.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!po(v,g)||!Kn(v.queryParams,g.queryParams);default:return!po(v,g)}}(ae,H,H.routeConfig.runGuardsAndResolvers);et?R.canActivateChecks.push(new Vs(w)):(H.data=ae.data,H._resolvedData=ae._resolvedData),Qr(v,g,H.component?ge?ge.children:null:h,w,R),et&&ge&&ge.outlet&&ge.outlet.isActivated&&R.canDeactivateChecks.push(new Go(ge.outlet.component,ae))}else ae&&Mi(g,ge,R),R.canActivateChecks.push(new Vs(w)),Qr(v,null,H.component?ge?ge.children:null:h,w,R)})(ae,H[ae.value.outlet],h,w.concat([ae.value]),R),delete H[ae.value.outlet]}),Tn(H,(ae,ge)=>Mi(ae,h.getContext(ge),R)),R}function Mi(v,g,h){const w=fr(v),R=v.value;Tn(w,(H,ae)=>{Mi(H,R.component?g?g.children.getContext(ae):null:g,h)}),h.canDeactivateChecks.push(new Go(R.component&&g&&g.outlet&&g.outlet.isActivated?g.outlet.component:null,R))}class js{}function as(v){return new Q.y(g=>g.error(v))}class ls{constructor(g,h,w,R,H,ae){this.rootComponentType=g,this.config=h,this.urlTree=w,this.url=R,this.paramsInheritanceStrategy=H,this.relativeLinkResolution=ae}recognize(){const g=ei(this.urlTree.root,[],[],this.config.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,g,At);if(null===h)return null;const w=new To([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},At,this.rootComponentType,null,this.urlTree.root,-1,{}),R=new Yn(w,h),H=new Rr(this.url,R);return this.inheritParamsAndData(H._root),H}inheritParamsAndData(g){const h=g.value,w=Xo(h,this.paramsInheritanceStrategy);h.params=Object.freeze(w.params),h.data=Object.freeze(w.data),g.children.forEach(R=>this.inheritParamsAndData(R))}processSegmentGroup(g,h,w){return 0===h.segments.length&&h.hasChildren()?this.processChildren(g,h):this.processSegment(g,h,h.segments,w)}processChildren(g,h){const w=[];for(const H of Object.keys(h.children)){const ae=h.children[H],ge=wi(g,H),et=this.processSegmentGroup(ge,ae,H);if(null===et)return null;w.push(...et)}const R=u(w);return R.sort((g,h)=>g.value.outlet===At?-1:h.value.outlet===At?1:g.value.outlet.localeCompare(h.value.outlet)),R}processSegment(g,h,w,R){for(const H of g){const ae=this.processSegmentAgainstRoute(H,h,w,R);if(null!==ae)return ae}return Ho(h,w,R)?[]:null}processSegmentAgainstRoute(g,h,w,R){if(g.redirectTo||!ti(g,h,w,R))return null;let H,ae=[],ge=[];if("**"===g.path){const Mn=w.length>0?Er(w).parameters:{};H=new To(w,Mn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,P(g),vr(g),g.component,g,d(h),_(h)+w.length,le(g))}else{const Mn=fo(h,g,w);if(!Mn.matched)return null;ae=Mn.consumedSegments,ge=w.slice(Mn.lastChild),H=new To(ae,Mn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,P(g),vr(g),g.component,g,d(h),_(h)+ae.length,le(g))}const et=(v=g).children?v.children:v.loadChildren?v._loadedConfig.routes:[],{segmentGroup:Mt,slicedSegments:Ln}=ei(h,ae,ge,et.filter(Mn=>void 0===Mn.redirectTo),this.relativeLinkResolution);var v;if(0===Ln.length&&Mt.hasChildren()){const Mn=this.processChildren(et,Mt);return null===Mn?null:[new Yn(H,Mn)]}if(0===et.length&&0===Ln.length)return[new Yn(H,[])];const qt=vr(g)===R,or=this.processSegment(et,Mt,Ln,qt?At:R);return null===or?null:[new Yn(H,or)]}}function Ts(v){const g=v.value.routeConfig;return g&&""===g.path&&void 0===g.redirectTo}function u(v){const g=[],h=new Set;for(const w of v){if(!Ts(w)){g.push(w);continue}const R=g.find(H=>w.value.routeConfig===H.value.routeConfig);void 0!==R?(R.children.push(...w.children),h.add(R)):g.push(w)}for(const w of h){const R=u(w.children);g.push(new Yn(w.value,R))}return g.filter(w=>!h.has(w))}function d(v){let g=v;for(;g._sourceSegment;)g=g._sourceSegment;return g}function _(v){let g=v,h=g._segmentIndexShift?g._segmentIndexShift:0;for(;g._sourceSegment;)g=g._sourceSegment,h+=g._segmentIndexShift?g._segmentIndexShift:0;return h-1}function P(v){return v.data||{}}function le(v){return v.resolve||{}}function tn(v){return(0,Oe.w)(g=>{const h=v(g);return h?(0,Xe.D)(h).pipe((0,nt.U)(()=>g)):(0,ne.of)(g)})}class Xn extends class{shouldDetach(g){return!1}store(g,h){}shouldAttach(g){return!1}retrieve(g){return null}shouldReuseRoute(g,h){return g.routeConfig===h.routeConfig}}{}const _r=new O.OlP("ROUTES");class wr{constructor(g,h,w,R){this.loader=g,this.compiler=h,this.onLoadStartListener=w,this.onLoadEndListener=R}load(g,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const R=this.loadModuleFactory(h.loadChildren).pipe((0,nt.U)(H=>{this.onLoadEndListener&&this.onLoadEndListener(h);const ae=H.create(g);return new it(sr(ae.injector.get(_r,void 0,O.XFs.Self|O.XFs.Optional)).map(lr),ae)}),Be(H=>{throw h._loader$=void 0,H}));return h._loader$=new qe.c(R,()=>new xe.xQ).pipe((0,zt.x)()),h._loader$}loadModuleFactory(g){return"string"==typeof g?(0,Xe.D)(this.loader.load(g)):ar(g()).pipe((0,dt.zg)(h=>h instanceof O.YKP?(0,ne.of)(h):(0,Xe.D)(this.compiler.compileModuleAsync(h))))}}class zr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Oo,this.attachRef=null}}class Oo{constructor(){this.contexts=new Map}onChildOutletCreated(g,h){const w=this.getOrCreateContext(g);w.outlet=h,this.contexts.set(g,w)}onChildOutletDestroyed(g){const h=this.getContext(g);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const g=this.contexts;return this.contexts=new Map,g}onOutletReAttached(g){this.contexts=g}getOrCreateContext(g){let h=this.getContext(g);return h||(h=new zr,this.contexts.set(g,h)),h}getContext(g){return this.contexts.get(g)||null}}class Pa{shouldProcessUrl(g){return!0}extract(g){return g}merge(g,h){return g}}function As(v){throw v}function ro(v,g,h){return g.parse("/")}function Hs(v,g){return(0,ne.of)(null)}const Ms={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fa={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let oo=(()=>{class v{constructor(h,w,R,H,ae,ge,et,Mt){this.rootComponentType=h,this.urlSerializer=w,this.rootContexts=R,this.location=H,this.config=Mt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new xe.xQ,this.errorHandler=As,this.malformedUriErrorHandler=ro,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hs,afterPreactivation:Hs},this.urlHandlingStrategy=new Pa,this.routeReuseStrategy=new Xn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=ae.get(O.h0i),this.console=ae.get(O.c2e);const or=ae.get(O.R0b);this.isNgZoneEnabled=or instanceof O.R0b&&O.R0b.isInAngularZone(),this.resetConfig(Mt),this.currentUrlTree=new Jt(new Vt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new wr(ge,et,Mn=>this.triggerEvent(new hn(Mn)),Mn=>this.triggerEvent(new Pr(Mn))),this.routerState=co(this.currentUrlTree,this.rootComponentType),this.transitions=new Qe.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const w=this.events;return h.pipe((0,Et.h)(R=>0!==R.id),(0,nt.U)(R=>Object.assign(Object.assign({},R),{extractedUrl:this.urlHandlingStrategy.extract(R.rawUrl)})),(0,Oe.w)(R=>{let H=!1,ae=!1;return(0,ne.of)(R).pipe((0,ht.b)(ge=>{this.currentNavigation={id:ge.id,initialUrl:ge.currentRawUrl,extractedUrl:ge.extractedUrl,trigger:ge.source,extras:ge.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Oe.w)(ge=>{const et=this.browserUrlTree.toString(),Mt=!this.navigated||ge.extractedUrl.toString()!==et||et!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Mt)&&this.urlHandlingStrategy.shouldProcessUrl(ge.rawUrl))return Oi(ge.source)&&(this.browserUrlTree=ge.extractedUrl),(0,ne.of)(ge).pipe((0,Oe.w)(qt=>{const or=this.transitions.getValue();return w.next(new Zt(qt.id,this.serializeUrl(qt.extractedUrl),qt.source,qt.restoredState)),or!==this.transitions.getValue()?Je:Promise.resolve(qt)}),function(v,g,h,w){return(0,Oe.w)(R=>function(v,g,h,w,R){return new Ii(v,g,h,w,R).apply()}(v,g,h,R.extractedUrl,w).pipe((0,nt.U)(H=>Object.assign(Object.assign({},R),{urlAfterRedirects:H}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,ht.b)(qt=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:qt.urlAfterRedirects})}),function(v,g,h,w,R){return(0,dt.zg)(H=>function(v,g,h,w,R="emptyOnly",H="legacy"){try{const ae=new ls(v,g,h,w,R,H).recognize();return null===ae?as(new js):(0,ne.of)(ae)}catch(ae){return as(ae)}}(v,g,H.urlAfterRedirects,h(H.urlAfterRedirects),w,R).pipe((0,nt.U)(ae=>Object.assign(Object.assign({},H),{targetSnapshot:ae}))))}(this.rootComponentType,this.config,qt=>this.serializeUrl(qt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,ht.b)(qt=>{"eager"===this.urlUpdateStrategy&&(qt.extras.skipLocationChange||this.setBrowserUrl(qt.urlAfterRedirects,qt),this.browserUrlTree=qt.urlAfterRedirects);const or=new wt(qt.id,this.serializeUrl(qt.extractedUrl),this.serializeUrl(qt.urlAfterRedirects),qt.targetSnapshot);w.next(or)}));if(Mt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:or,extractedUrl:Mn,source:Qn,restoredState:Yo,extras:xo}=ge,Js=new Zt(or,this.serializeUrl(Mn),Qn,Yo);w.next(Js);const hi=co(Mn,this.rootComponentType).snapshot;return(0,ne.of)(Object.assign(Object.assign({},ge),{targetSnapshot:hi,urlAfterRedirects:Mn,extras:Object.assign(Object.assign({},xo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ge.rawUrl,this.browserUrlTree=ge.urlAfterRedirects,ge.resolve(null),Je}),tn(ge=>{const{targetSnapshot:et,id:Mt,extractedUrl:Ln,rawUrl:qt,extras:{skipLocationChange:or,replaceUrl:Mn}}=ge;return this.hooks.beforePreactivation(et,{navigationId:Mt,appliedUrlTree:Ln,rawUrlTree:qt,skipLocationChange:!!or,replaceUrl:!!Mn})}),(0,ht.b)(ge=>{const et=new Zn(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot);this.triggerEvent(et)}),(0,nt.U)(ge=>Object.assign(Object.assign({},ge),{guards:rs(ge.targetSnapshot,ge.currentSnapshot,this.rootContexts)})),function(v,g){return(0,dt.zg)(h=>{const{targetSnapshot:w,currentSnapshot:R,guards:{canActivateChecks:H,canDeactivateChecks:ae}}=h;return 0===ae.length&&0===H.length?(0,ne.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function(v,g,h,w){return(0,Xe.D)(v).pipe((0,dt.zg)(R=>function(v,g,h,w,R){const H=g&&g.routeConfig?g.routeConfig.canDeactivate:null;if(!H||0===H.length)return(0,ne.of)(!0);const ae=H.map(ge=>{const et=pr(ge,g,R);let Mt;if(function(v){return v&&T(v.canDeactivate)}(et))Mt=ar(et.canDeactivate(v,g,h,w));else{if(!T(et))throw new Error("Invalid CanDeactivate guard");Mt=ar(et(v,g,h,w))}return Mt.pipe(Nn())});return(0,ne.of)(ae).pipe(Wn())}(R.component,R.route,h,g,w)),Nn(R=>!0!==R,!0))}(ae,w,R,v).pipe((0,dt.zg)(ge=>ge&&function(v){return"boolean"==typeof v}(ge)?function(v,g,h,w){return(0,Xe.D)(g).pipe((0,bt.b)(R=>we(function(v,g){return null!==v&&g&&g(new ao(v)),(0,ne.of)(!0)}(R.route.parent,w),function(v,g){return null!==v&&g&&g(new on(v)),(0,ne.of)(!0)}(R.route,w),function(v,g,h){const w=g[g.length-1],H=g.slice(0,g.length-1).reverse().map(ae=>function(v){const g=v.routeConfig?v.routeConfig.canActivateChild:null;return g&&0!==g.length?{node:v,guards:g}:null}(ae)).filter(ae=>null!==ae).map(ae=>Se(()=>{const ge=ae.guards.map(et=>{const Mt=pr(et,ae.node,h);let Ln;if(function(v){return v&&T(v.canActivateChild)}(Mt))Ln=ar(Mt.canActivateChild(w,v));else{if(!T(Mt))throw new Error("Invalid CanActivateChild guard");Ln=ar(Mt(w,v))}return Ln.pipe(Nn())});return(0,ne.of)(ge).pipe(Wn())}));return(0,ne.of)(H).pipe(Wn())}(v,R.path,h),function(v,g,h){const w=g.routeConfig?g.routeConfig.canActivate:null;if(!w||0===w.length)return(0,ne.of)(!0);const R=w.map(H=>Se(()=>{const ae=pr(H,g,h);let ge;if(function(v){return v&&T(v.canActivate)}(ae))ge=ar(ae.canActivate(g,v));else{if(!T(ae))throw new Error("Invalid CanActivate guard");ge=ar(ae(g,v))}return ge.pipe(Nn())}));return(0,ne.of)(R).pipe(Wn())}(v,R.route,h))),Nn(R=>!0!==R,!0))}(w,H,v,g):(0,ne.of)(ge)),(0,nt.U)(ge=>Object.assign(Object.assign({},h),{guardsResult:ge})))})}(this.ngModule.injector,ge=>this.triggerEvent(ge)),(0,ht.b)(ge=>{if(b(ge.guardsResult)){const Mt=rr(`Redirecting to "${this.serializeUrl(ge.guardsResult)}"`);throw Mt.url=ge.guardsResult,Mt}const et=new Qt(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot,!!ge.guardsResult);this.triggerEvent(et)}),(0,Et.h)(ge=>!!ge.guardsResult||(this.restoreHistory(ge),this.cancelNavigationTransition(ge,""),!1)),tn(ge=>{if(ge.guards.canActivateChecks.length)return(0,ne.of)(ge).pipe((0,ht.b)(et=>{const Mt=new wn(et.id,this.serializeUrl(et.extractedUrl),this.serializeUrl(et.urlAfterRedirects),et.targetSnapshot);this.triggerEvent(Mt)}),(0,Oe.w)(et=>{let Mt=!1;return(0,ne.of)(et).pipe(function(v,g){return(0,dt.zg)(h=>{const{targetSnapshot:w,guards:{canActivateChecks:R}}=h;if(!R.length)return(0,ne.of)(h);let H=0;return(0,Xe.D)(R).pipe((0,bt.b)(ae=>function(v,g,h,w){return function(v,g,h,w){const R=Object.keys(v);if(0===R.length)return(0,ne.of)({});const H={};return(0,Xe.D)(R).pipe((0,dt.zg)(ae=>function(v,g,h,w){const R=pr(v,g,w);return ar(R.resolve?R.resolve(g,h):R(g,h))}(v[ae],g,h,w).pipe((0,ht.b)(ge=>{H[ae]=ge}))),ft(1),(0,dt.zg)(()=>Object.keys(H).length===R.length?(0,ne.of)(H):Je))}(v._resolve,v,g,w).pipe((0,nt.U)(H=>(v._resolvedData=H,v.data=Object.assign(Object.assign({},v.data),Xo(v,h).resolve),null)))}(ae.route,w,v,g)),(0,ht.b)(()=>H++),ft(1),(0,dt.zg)(ae=>H===R.length?(0,ne.of)(h):Je))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,ht.b)({next:()=>Mt=!0,complete:()=>{Mt||(this.restoreHistory(et),this.cancelNavigationTransition(et,"At least one route resolver didn't emit any value."))}}))}),(0,ht.b)(et=>{const Mt=new Bn(et.id,this.serializeUrl(et.extractedUrl),this.serializeUrl(et.urlAfterRedirects),et.targetSnapshot);this.triggerEvent(Mt)}))}),tn(ge=>{const{targetSnapshot:et,id:Mt,extractedUrl:Ln,rawUrl:qt,extras:{skipLocationChange:or,replaceUrl:Mn}}=ge;return this.hooks.afterPreactivation(et,{navigationId:Mt,appliedUrlTree:Ln,rawUrlTree:qt,skipLocationChange:!!or,replaceUrl:!!Mn})}),(0,nt.U)(ge=>{const et=function(v,g,h){const w=uo(v,g._root,h?h._root:void 0);return new Io(w,g)}(this.routeReuseStrategy,ge.targetSnapshot,ge.currentRouterState);return Object.assign(Object.assign({},ge),{targetRouterState:et})}),(0,ht.b)(ge=>{this.currentUrlTree=ge.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ge.urlAfterRedirects,ge.rawUrl),this.routerState=ge.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ge.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ge),this.browserUrlTree=ge.urlAfterRedirects)}),((v,g,h)=>(0,nt.U)(w=>(new z(g,w.targetRouterState,w.currentRouterState,h).activate(v),w)))(this.rootContexts,this.routeReuseStrategy,ge=>this.triggerEvent(ge)),(0,ht.b)({next(){H=!0},complete(){H=!0}}),function(v){return g=>g.lift(new pe(v))}(()=>{var ge;if(!H&&!ae){const et=`Navigation ID ${R.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(R),this.cancelNavigationTransition(R,et)):this.cancelNavigationTransition(R,et)}(null===(ge=this.currentNavigation)||void 0===ge?void 0:ge.id)===R.id&&(this.currentNavigation=null)}),Be(ge=>{if(ae=!0,function(v){return v&&v[nr]}(ge)){const et=b(ge.url);et||(this.navigated=!0,this.restoreHistory(R,!0));const Mt=new On(R.id,this.serializeUrl(R.extractedUrl),ge.message);w.next(Mt),et?setTimeout(()=>{const Ln=this.urlHandlingStrategy.merge(ge.url,this.rawUrlTree),qt={skipLocationChange:R.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Oi(R.source)};this.scheduleNavigation(Ln,"imperative",null,qt,{resolve:R.resolve,reject:R.reject,promise:R.promise})},0):R.resolve(!1)}else{this.restoreHistory(R,!0);const et=new en(R.id,this.serializeUrl(R.extractedUrl),ge);w.next(et);try{R.resolve(this.errorHandler(ge))}catch(Mt){R.reject(Mt)}}return Je}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}getTransition(){const h=this.transitions.value;return h.urlAfterRedirects=this.browserUrlTree,h}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const w=this.extractLocationChangeInfoFromEvent(h);this.shouldScheduleNavigation(this.lastLocationChangeInfo,w)&&setTimeout(()=>{const{source:R,state:H,urlTree:ae}=w,ge={replaceUrl:!0};if(H){const et=Object.assign({},H);delete et.navigationId,delete et.\u0275routerPageId,0!==Object.keys(et).length&&(ge.state=et)}this.scheduleNavigation(ae,R,H,ge)},0),this.lastLocationChangeInfo=w}))}extractLocationChangeInfoFromEvent(h){var w;return{source:"popstate"===h.type?"popstate":"hashchange",urlTree:this.parseUrl(h.url),state:(null===(w=h.state)||void 0===w?void 0:w.navigationId)?h.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(h,w){if(!h)return!0;const R=w.urlTree.toString()===h.urlTree.toString();return w.transitionId!==h.transitionId||!R||!("hashchange"===w.source&&"popstate"===h.source||"popstate"===w.source&&"hashchange"===h.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){Gr(h),this.config=h.map(lr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,w={}){const{relativeTo:R,queryParams:H,fragment:ae,queryParamsHandling:ge,preserveFragment:et}=w,Mt=R||this.routerState.root,Ln=et?this.currentUrlTree.fragment:ae;let qt=null;switch(ge){case"merge":qt=Object.assign(Object.assign({},this.currentUrlTree.queryParams),H);break;case"preserve":qt=this.currentUrlTree.queryParams;break;default:qt=H||null}return null!==qt&&(qt=this.removeEmptyProps(qt)),function(v,g,h,w,R){if(0===h.length)return li(g.root,g.root,g,w,R);const H=function(v){if("string"==typeof v[0]&&1===v.length&&"/"===v[0])return new Jo(!0,0,v);let g=0,h=!1;const w=v.reduce((R,H,ae)=>{if("object"==typeof H&&null!=H){if(H.outlets){const ge={};return Tn(H.outlets,(et,Mt)=>{ge[Mt]="string"==typeof et?et.split("/"):et}),[...R,{outlets:ge}]}if(H.segmentPath)return[...R,H.segmentPath]}return"string"!=typeof H?[...R,H]:0===ae?(H.split("/").forEach((ge,et)=>{0==et&&"."===ge||(0==et&&""===ge?h=!0:".."===ge?g++:""!=ge&&R.push(ge))}),R):[...R,H]},[]);return new Jo(h,g,w)}(h);if(H.toRoot())return li(g.root,new Vt([],{}),g,w,R);const ae=function(v,g,h){if(v.isAbsolute)return new Mo(g.root,!0,0);if(-1===h.snapshot._lastPathIndex){const H=h.snapshot._urlSegment;return new Mo(H,H===g.root,0)}const w=eo(v.commands[0])?0:1;return function(v,g,h){let w=v,R=g,H=h;for(;H>R;){if(H-=R,w=w.parent,!w)throw new Error("Invalid number of '../'");R=w.segments.length}return new Mo(w,!1,R-H)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+w,v.numberOfDoubleDots)}(H,g,v),ge=ae.processChildren?mo(ae.segmentGroup,ae.index,H.commands):Vo(ae.segmentGroup,ae.index,H.commands);return li(ae.segmentGroup,ge,g,w,R)}(Mt,this.currentUrlTree,h,qt,null!=Ln?Ln:null)}navigateByUrl(h,w={skipLocationChange:!1}){const R=b(h)?h:this.parseUrl(h),H=this.urlHandlingStrategy.merge(R,this.rawUrlTree);return this.scheduleNavigation(H,"imperative",null,w)}navigate(h,w={skipLocationChange:!1}){return function(v){for(let g=0;g{const H=h[R];return null!=H&&(w[R]=H),w},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new In(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,w,R,H,ae){var ge,et;if(this.disposed)return Promise.resolve(!1);const Mt=this.getTransition(),Ln=Oi(w)&&Mt&&!Oi(Mt.source),Mn=(this.lastSuccessfulId===Mt.id||this.currentNavigation?Mt.rawUrl:Mt.urlAfterRedirects).toString()===h.toString();if(Ln&&Mn)return Promise.resolve(!0);let Qn,Yo,xo;ae?(Qn=ae.resolve,Yo=ae.reject,xo=ae.promise):xo=new Promise((ki,Ba)=>{Qn=ki,Yo=Ba});const Js=++this.navigationId;let hi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(R=this.location.getState()),hi=R&&R.\u0275routerPageId?R.\u0275routerPageId:H.replaceUrl||H.skipLocationChange?null!==(ge=this.browserPageId)&&void 0!==ge?ge:0:(null!==(et=this.browserPageId)&&void 0!==et?et:0)+1):hi=0,this.setTransition({id:Js,targetPageId:hi,source:w,restoredState:R,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:H,resolve:Qn,reject:Yo,promise:xo,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),xo.catch(ki=>Promise.reject(ki))}setBrowserUrl(h,w){const R=this.urlSerializer.serialize(h),H=Object.assign(Object.assign({},w.extras.state),this.generateNgRouterState(w.id,w.targetPageId));this.location.isCurrentPathEqualTo(R)||w.extras.replaceUrl?this.location.replaceState(R,"",H):this.location.go(R,"",H)}restoreHistory(h,w=!1){var R,H;if("computed"===this.canceledNavigationResolution){const ae=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(R=this.currentNavigation)||void 0===R?void 0:R.finalUrl)||0===ae?this.currentUrlTree===(null===(H=this.currentNavigation)||void 0===H?void 0:H.finalUrl)&&0===ae&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ae)}else"replace"===this.canceledNavigationResolution&&(w&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,w){const R=new On(h.id,this.serializeUrl(h.extractedUrl),w);this.triggerEvent(R),h.resolve(!1)}generateNgRouterState(h,w){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:w}:{navigationId:h}}}return v.\u0275fac=function(h){return new(h||v)(O.LFG(O.DyG),O.LFG(qn),O.LFG(Oo),O.LFG(s.Ye),O.LFG(O.zs3),O.LFG(O.v3s),O.LFG(O.Sil),O.LFG(void 0))},v.\u0275prov=O.Yz7({token:v,factory:v.\u0275fac}),v})();function Oi(v){return"imperative"!==v}let cs=(()=>{class v{constructor(h,w,R,H,ae){this.router=h,this.route=w,this.commands=[],this.onChanges=new xe.xQ,null==R&&H.setAttribute(ae.nativeElement,"tabindex","0")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:[]}onClick(){const h={skipLocationChange:zo(this.skipLocationChange),replaceUrl:zo(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:zo(this.preserveFragment)})}}return v.\u0275fac=function(h){return new(h||v)(O.Y36(oo),O.Y36(Kr),O.$8M("tabindex"),O.Y36(O.Qsj),O.Y36(O.SBq))},v.\u0275dir=O.lG2({type:v,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,w){1&h&&O.NdJ("click",function(){return w.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[O.TTD]}),v})();function zo(v){return""===v||!!v}let Gs=(()=>{class v{constructor(h,w,R,H,ae){this.parentContexts=h,this.location=w,this.resolver=R,this.changeDetector=ae,this.activated=null,this._activatedRoute=null,this.activateEvents=new O.vpe,this.deactivateEvents=new O.vpe,this.name=H||At,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,h}attach(h,w){this.activated=h,this._activatedRoute=w,this.location.insert(h.hostView)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,w){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const ae=(w=w||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),ge=this.parentContexts.getOrCreateContext(this.name).children,et=new Pi(h,ge,this.location.injector);this.activated=this.location.createComponent(ae,this.location.length,et),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return v.\u0275fac=function(h){return new(h||v)(O.Y36(Oo),O.Y36(O.s_b),O.Y36(O._Vd),O.$8M("name"),O.Y36(O.sBO))},v.\u0275dir=O.lG2({type:v,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),v})();class Pi{constructor(g,h,w){this.route=g,this.childContexts=h,this.parent=w}get(g,h){return g===Kr?this.route:g===Oo?this.childContexts:this.parent.get(g,h)}}class Fi{}class zs{preload(g,h){return h().pipe(Be(()=>(0,ne.of)(null)))}}class bo{preload(g,h){return(0,ne.of)(null)}}let di=(()=>{class v{constructor(h,w,R,H,ae){this.router=h,this.injector=H,this.preloadingStrategy=ae,this.loader=new wr(w,R,Mt=>h.triggerEvent(new hn(Mt)),Mt=>h.triggerEvent(new Pr(Mt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Et.h)(h=>h instanceof In),(0,bt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(O.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,w){const R=[];for(const H of w)if(H.loadChildren&&!H.canLoad&&H._loadedConfig){const ae=H._loadedConfig;R.push(this.processRoutes(ae.module,ae.routes))}else H.loadChildren&&!H.canLoad?R.push(this.preloadConfig(h,H)):H.children&&R.push(this.processRoutes(h,H.children));return(0,Xe.D)(R).pipe((0,Me.J)(),(0,nt.U)(H=>{}))}preloadConfig(h,w){return this.preloadingStrategy.preload(w,()=>(w._loadedConfig?(0,ne.of)(w._loadedConfig):this.loader.load(h.injector,w)).pipe((0,dt.zg)(H=>(w._loadedConfig=H,this.processRoutes(H.module,H.routes)))))}}return v.\u0275fac=function(h){return new(h||v)(O.LFG(oo),O.LFG(O.v3s),O.LFG(O.Sil),O.LFG(O.zs3),O.LFG(Fi))},v.\u0275prov=O.Yz7({token:v,factory:v.\u0275fac}),v})(),Ys=(()=>{class v{constructor(h,w,R={}){this.router=h,this.viewportScroller=w,this.options=R,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},R.scrollPositionRestoration=R.scrollPositionRestoration||"disabled",R.anchorScrolling=R.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof Zt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof In&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof gr&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,w){this.router.triggerEvent(new gr(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,w))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return v.\u0275fac=function(h){return new(h||v)(O.LFG(oo),O.LFG(s.EM),O.LFG(void 0))},v.\u0275prov=O.Yz7({token:v,factory:v.\u0275fac}),v})();const fi=new O.OlP("ROUTER_CONFIGURATION"),ds=new O.OlP("ROUTER_FORROOT_GUARD"),fs=[s.Ye,{provide:qn,useClass:Lt},{provide:oo,useFactory:function(v,g,h,w,R,H,ae,ge={},et,Mt){const Ln=new oo(null,v,g,h,w,R,H,sr(ae));return et&&(Ln.urlHandlingStrategy=et),Mt&&(Ln.routeReuseStrategy=Mt),function(v,g){v.errorHandler&&(g.errorHandler=v.errorHandler),v.malformedUriErrorHandler&&(g.malformedUriErrorHandler=v.malformedUriErrorHandler),v.onSameUrlNavigation&&(g.onSameUrlNavigation=v.onSameUrlNavigation),v.paramsInheritanceStrategy&&(g.paramsInheritanceStrategy=v.paramsInheritanceStrategy),v.relativeLinkResolution&&(g.relativeLinkResolution=v.relativeLinkResolution),v.urlUpdateStrategy&&(g.urlUpdateStrategy=v.urlUpdateStrategy)}(ge,Ln),ge.enableTracing&&Ln.events.subscribe(qt=>{var or,Mn;null===(or=console.group)||void 0===or||or.call(console,`Router Event: ${qt.constructor.name}`),console.log(qt.toString()),console.log(qt),null===(Mn=console.groupEnd)||void 0===Mn||Mn.call(console)}),Ln},deps:[qn,Oo,s.Ye,O.zs3,O.v3s,O.Sil,_r,fi,[class{},new O.FiY],[class{},new O.FiY]]},Oo,{provide:Kr,useFactory:function(v){return v.routerState.root},deps:[oo]},{provide:O.v3s,useClass:O.EAV},di,bo,zs,{provide:fi,useValue:{enableTracing:!1}}];function Rs(){return new O.PXZ("Router",oo)}let Ks=(()=>{class v{constructor(h,w){}static forRoot(h,w){return{ngModule:v,providers:[fs,qs(h),{provide:ds,useFactory:La,deps:[[oo,new O.FiY,new O.tp0]]},{provide:fi,useValue:w||{}},{provide:s.S$,useFactory:ka,deps:[s.lw,[new O.tBr(s.mr),new O.FiY],fi]},{provide:Ys,useFactory:ha,deps:[oo,s.EM,fi]},{provide:Fi,useExisting:w&&w.preloadingStrategy?w.preloadingStrategy:bo},{provide:O.PXZ,multi:!0,useFactory:Rs},[Ni,{provide:O.ip1,multi:!0,useFactory:Os,deps:[Ni]},{provide:Xs,useFactory:Bl,deps:[Ni]},{provide:O.tb,multi:!0,useExisting:Xs}]]}}static forChild(h){return{ngModule:v,providers:[qs(h)]}}}return v.\u0275fac=function(h){return new(h||v)(O.LFG(ds,8),O.LFG(oo,8))},v.\u0275mod=O.oAB({type:v}),v.\u0275inj=O.cJS({}),v})();function ha(v,g,h){return h.scrollOffset&&g.setOffset(h.scrollOffset),new Ys(v,g,h)}function ka(v,g,h={}){return h.useHash?new s.Do(v,g):new s.b0(v,g)}function La(v){return"guarded"}function qs(v){return[{provide:O.deG,multi:!0,useValue:v},{provide:_r,multi:!0,useValue:v}]}let Ni=(()=>{class v{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new xe.xQ}appInitializer(){return this.injector.get(s.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let w=null;const R=new Promise(ge=>w=ge),H=this.injector.get(oo),ae=this.injector.get(fi);return"disabled"===ae.initialNavigation?(H.setUpLocationChangeListener(),w(!0)):"enabled"===ae.initialNavigation||"enabledBlocking"===ae.initialNavigation?(H.hooks.afterPreactivation=()=>this.initNavigation?(0,ne.of)(null):(this.initNavigation=!0,w(!0),this.resultOfPreactivationDone),H.initialNavigation()):w(!0),R})}bootstrapListener(h){const w=this.injector.get(fi),R=this.injector.get(di),H=this.injector.get(Ys),ae=this.injector.get(oo),ge=this.injector.get(O.z2F);h===ge.components[0]&&(("enabledNonBlocking"===w.initialNavigation||void 0===w.initialNavigation)&&ae.initialNavigation(),R.setUpPreloading(),H.init(),ae.resetRootComponentType(ge.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return v.\u0275fac=function(h){return new(h||v)(O.LFG(O.zs3))},v.\u0275prov=O.Yz7({token:v,factory:v.\u0275fac}),v})();function Os(v){return v.appInitializer.bind(v)}function Bl(v){return v.bootstrapListener.bind(v)}const Xs=new O.OlP("Router Initializer")},700:(Tt,Ge,L)=>{"use strict";L.d(Ge,{Br:()=>Ro,W2:()=>j,ki:()=>pr,Pc:()=>Ts,HT:()=>Mi,IN:()=>is,SH:()=>Ho,yF:()=>ss});var s=L(639);function Y(u,E,d,_){var Ue,P=arguments.length,le=P<3?E:null===_?_=Object.getOwnPropertyDescriptor(E,d):_;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)le=Reflect.decorate(u,E,d,_);else for(var gt=u.length-1;gt>=0;gt--)(Ue=u[gt])&&(le=(P<3?Ue(le):P>3?Ue(E,d,le):Ue(E,d))||le);return P>3&&le&&Object.defineProperty(E,d,le),le}L(665),"function"==typeof SuppressedError&&SuppressedError;var Be=L(7574),He=L(9796),_t=L(9105),Et=L(8002);function Rt(u,E,d,_){return(0,_t.m)(d)&&(_=d,d=void 0),_?Rt(u,E,d).pipe((0,Et.U)(P=>(0,He.k)(P)?_(...P):_(P))):new Be.y(P=>{It(u,E,function(Ue){P.next(arguments.length>1?Array.prototype.slice.call(arguments):Ue)},P,d)})}function It(u,E,d,_,P){let le;if(function(u){return u&&"function"==typeof u.addEventListener&&"function"==typeof u.removeEventListener}(u)){const Ue=u;u.addEventListener(E,d,P),le=()=>Ue.removeEventListener(E,d,P)}else if(function(u){return u&&"function"==typeof u.on&&"function"==typeof u.off}(u)){const Ue=u;u.on(E,d),le=()=>Ue.off(E,d)}else if(function(u){return u&&"function"==typeof u.addListener&&"function"==typeof u.removeListener}(u)){const Ue=u;u.addListener(E,d),le=()=>Ue.removeListener(E,d)}else{if(!u||!u.length)throw new TypeError("Invalid event target");for(let Ue=0,gt=u.length;Ue"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(u):"function"==typeof requestAnimationFrame?requestAnimationFrame(u):setTimeout(u),ar=(u,E)=>{const d=u.prototype;E.forEach(_=>{Object.defineProperty(d,_,{get(){return this.el[_]},set(P){this.z.runOutsideAngular(()=>this.el[_]=P)}})})},Wr=(u,E)=>{const d=u.prototype;E.forEach(_=>{d[_]=function(){const P=arguments;return this.z.runOutsideAngular(()=>this.el[_].apply(this.el,P))}})},kt=(u,E,d)=>{d.forEach(_=>u[_]=Rt(E,_))};function at(u){return function(d){const{defineCustomElementFn:_,inputs:P,methods:le}=u;return void 0!==_&&_(),P&&ar(d,P),le&&Wr(d,le),d}}let j=(()=>{let u=class{constructor(d,_,P){this.z=P,d.detach(),this.el=_.nativeElement,kt(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return u.\u0275fac=function(d){return new(d||u)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(s.R0b))},u.\u0275cmp=s.Xpm({type:u,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:pt,decls:1,vars:0,template:function(d,_){1&d&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),u=Y([at({defineCustomElementFn:void 0,inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],u),u})();class Ke{constructor(E={}){this.data=E}get(E){return this.data[E]}}let it=(()=>{class u{constructor(d,_){this.zone=d,this.appRef=_}create(d,_,P,le){return new T(d,_,P,this.appRef,this.zone,le)}}return u.\u0275fac=function(d){return new(d||u)(s.LFG(s.R0b),s.LFG(s.z2F))},u.\u0275prov=s.Yz7({token:u,factory:u.\u0275fac}),u})();class T{constructor(E,d,_,P,le,Ue){this.resolverOrInjector=E,this.injector=d,this.location=_,this.appRef=P,this.zone=le,this.elementReferenceKey=Ue,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(E,d,_,P){return this.zone.run(()=>new Promise(le=>{const Ue=Object.assign({},_);void 0!==this.elementReferenceKey&&(Ue[this.elementReferenceKey]=E),le(D(this.zone,this.resolverOrInjector,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,E,d,Ue,P))}))}removeViewFromDom(E,d){return this.zone.run(()=>new Promise(_=>{const P=this.elRefMap.get(d);if(P){P.destroy(),this.elRefMap.delete(d);const le=this.elEventsMap.get(d);le&&(le(),this.elEventsMap.delete(d))}_()}))}}const D=(u,E,d,_,P,le,Ue,gt,Bt,St,ln)=>{let tn;const cr=s.zs3.create({providers:ct(St),parent:d});if(E&&(u=>!!u.resolveComponentFactory)(E)){const wr=E.resolveComponentFactory(Bt);tn=_?_.createComponent(wr,_.length,cr):wr.create(cr)}else{if(!_)return null;tn=_.createComponent(Bt,{index:_.indexOf,injector:cr,environmentInjector:E})}const vn=tn.instance,Xn=tn.location.nativeElement;if(St&&Object.assign(vn,St),ln)for(const wr of ln)Xn.classList.add(wr);const _r=B(u,vn,Xn);return gt.appendChild(Xn),_||P.attachView(tn.hostView),tn.changeDetectorRef.reattach(),le.set(Xn,tn),Ue.set(Xn,_r),Xn},b=[ye.L,ye.a,ye.b,ye.c,ye.d],B=(u,E,d)=>u.run(()=>{const _=b.filter(P=>"function"==typeof E[P]).map(P=>{const le=Ue=>E[P](Ue.detail);return d.addEventListener(P,le),()=>d.removeEventListener(P,le)});return()=>_.forEach(P=>P())}),Ie=new s.OlP("NavParamsToken"),ct=u=>[{provide:Ie,useValue:u},{provide:Ke,useFactory:Wt,deps:[Ie]}],Wt=u=>new Ke(u),Pt=new s.OlP("USERCONFIG");let es=(()=>{class u{constructor(d,_){this.doc=d,this.backButton=new Nt.xQ,this.keyboardDidShow=new Nt.xQ,this.keyboardDidHide=new Nt.xQ,this.pause=new Nt.xQ,this.resume=new Nt.xQ,this.resize=new Nt.xQ,_.run(()=>{var P;let le;this.win=d.defaultView,this.backButton.subscribeWithPriority=function(Ue,gt){return this.subscribe(Bt=>Bt.register(Ue,St=>_.run(()=>gt(St))))},ti(this.pause,d,"pause"),ti(this.resume,d,"resume"),ti(this.backButton,d,"ionBackButton"),ti(this.resize,this.win,"resize"),ti(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),ti(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(Ue=>{le=Ue}),(null===(P=this.win)||void 0===P?void 0:P.cordova)?d.addEventListener("deviceready",()=>{le("cordova")},{once:!0}):le("dom")})}is(d){return(0,br.a)(this.win,d)}platforms(){return(0,br.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(d){return ts(this.win.location.href,d)}isLandscape(){return!this.isPortrait()}isPortrait(){var d,_;return null===(_=(d=this.win).matchMedia)||void 0===_?void 0:_.call(d,"(orientation: portrait)").matches}testUserAgent(d){const _=this.win.navigator;return!!((null==_?void 0:_.userAgent)&&_.userAgent.indexOf(d)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return u.\u0275fac=function(d){return new(d||u)(s.LFG(wn.K0),s.LFG(s.R0b))},u.\u0275prov=s.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const ts=(u,E)=>{E=E.replace(/[[\]\\]/g,"\\$&");const _=new RegExp("[\\?&]"+E+"=([^&#]*)").exec(u);return _?decodeURIComponent(_[1].replace(/\+/g," ")):null},ti=(u,E,d)=>{E&&E.addEventListener(d,_=>{u.next(null!=_?_.detail:void 0)})};let Ho=(()=>{class u{constructor(d,_,P,le){this.location=_,this.serializer=P,this.router=le,this.direction=ci,this.animated=st,this.guessDirection="forward",this.lastNavId=-1,le&&le.events.subscribe(Ue=>{if(Ue instanceof Yt.OD){const gt=Ue.restoredState?Ue.restoredState.navigationId:Ue.id;this.guessDirection=gt{this.pop(),Ue()})}navigateForward(d,_={}){return this.setDirection("forward",_.animated,_.animationDirection,_.animation),this.navigate(d,_)}navigateBack(d,_={}){return this.setDirection("back",_.animated,_.animationDirection,_.animation),this.navigate(d,_)}navigateRoot(d,_={}){return this.setDirection("root",_.animated,_.animationDirection,_.animation),this.navigate(d,_)}back(d={animated:!0,animationDirection:"back"}){return this.setDirection("back",d.animated,d.animationDirection,d.animation),this.location.back()}pop(){return function(u,E,d,_){return new(d||(d=Promise))(function(le,Ue){function gt(ln){try{St(_.next(ln))}catch(tn){Ue(tn)}}function Bt(ln){try{St(_.throw(ln))}catch(tn){Ue(tn)}}function St(ln){ln.done?le(ln.value):function(le){return le instanceof d?le:new d(function(Ue){Ue(le)})}(ln.value).then(gt,Bt)}St((_=_.apply(u,E||[])).next())})}(this,void 0,void 0,function*(){let d=this.topOutlet;for(;d&&!(yield d.pop());)d=d.parentOutlet})}setDirection(d,_,P,le){this.direction=d,this.animated=Uo(d,_,P),this.animationBuilder=le}setTopOutlet(d){this.topOutlet=d}consumeTransition(){let _,d="root";const P=this.animationBuilder;return"auto"===this.direction?(d=this.guessDirection,_=this.guessAnimation):(_=this.animated,d=this.direction),this.direction=ci,this.animated=st,this.animationBuilder=void 0,{direction:d,animation:_,animationBuilder:P}}navigate(d,_){if(Array.isArray(d))return this.router.navigate(d,_);{const P=this.serializer.parse(d.toString());return void 0!==_.queryParams&&(P.queryParams=Object.assign({},_.queryParams)),void 0!==_.fragment&&(P.fragment=_.fragment),this.router.navigateByUrl(P,_)}}}return u.\u0275fac=function(d){return new(d||u)(s.LFG(es),s.LFG(wn.Ye),s.LFG(Yt.Hx),s.LFG(Yt.F0,8))},u.\u0275prov=s.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const Uo=(u,E,d)=>{if(!1!==E){if(void 0!==d)return d;if("forward"===u||"back"===u)return u;if("root"===u&&!0===E)return"forward"}},ci="auto",st=void 0;let pr=(()=>{let u=class{constructor(d,_,P){this.z=P,this.isCmpOpen=!1,this.el=_.nativeElement,this.el.addEventListener("willPresent",()=>{this.isCmpOpen=!0,d.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,d.detectChanges()}),kt(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}};return u.\u0275fac=function(d){return new(d||u)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(s.R0b))},u.\u0275cmp=s.Xpm({type:u,selectors:[["ion-modal"]],contentQueries:function(d,_,P){if(1&d&&s.Suo(P,s.Rgc,5),2&d){let le;s.iGM(le=s.CRH())&&(_.template=le.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",swipeToClose:"swipeToClose",translucent:"translucent",trigger:"trigger"},decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(d,_){1&d&&s.YNc(0,At,2,1,"div",0),2&d&&s.Q6J("ngIf",_.isCmpOpen||_.keepContentsMounted)},directives:[wn.O5,wn.tP],encapsulation:2,changeDetection:0}),u=Y([at({inputs:["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","swipeToClose","translucent","trigger"],methods:["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"]})],u),u})();class Qr{constructor(E){this.ctrl=E}create(E){return this.ctrl.create(E||{})}dismiss(E,d,_){return this.ctrl.dismiss(E,d,_)}getTop(){return this.ctrl.getTop()}}let Ro=(()=>{class u extends Qr{constructor(){super(Oe.a)}}return u.\u0275fac=function(d){return new(d||u)},u.\u0275prov=s.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),Mi=(()=>{class u extends Qr{constructor(){super(Oe.l)}}return u.\u0275fac=function(d){return new(d||u)},u.\u0275prov=s.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();class os{}let is=(()=>{class u extends Qr{constructor(d,_,P,le){super(Oe.m),this.angularDelegate=d,this.resolver=_,this.injector=P,this.environmentInjector=le}create(d){var _;return super.create(Object.assign(Object.assign({},d),{delegate:this.angularDelegate.create(null!==(_=this.resolver)&&void 0!==_?_:this.environmentInjector,this.injector,void 0,"modal")}))}}return u.\u0275fac=function(d){return new(d||u)(s.LFG(it),s.LFG(s._Vd),s.LFG(s.zs3),s.LFG(os,8))},u.\u0275prov=s.Yz7({token:u,factory:u.\u0275fac}),u})(),ui=(()=>{class u extends Qr{constructor(d,_,P,le){super(Oe.c),this.angularDelegate=d,this.resolver=_,this.injector=P,this.environmentInjector=le}create(d){var _;return super.create(Object.assign(Object.assign({},d),{delegate:this.angularDelegate.create(null!==(_=this.resolver)&&void 0!==_?_:this.environmentInjector,this.injector,void 0,"popover")}))}}return u.\u0275fac=function(d){return new(d||u)(s.LFG(it),s.LFG(s._Vd),s.LFG(s.zs3),s.LFG(os,8))},u.\u0275prov=s.Yz7({token:u,factory:u.\u0275fac}),u})(),ss=(()=>{class u extends Qr{constructor(){super(Oe.t)}}return u.\u0275fac=function(d){return new(d||u)},u.\u0275prov=s.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const ls=(u,E,d)=>()=>{if(E.defaultView&&"undefined"!=typeof window){(0,pe.s)(Object.assign(Object.assign({},u),{_zoneGate:le=>d.run(le)}));const P="__zone_symbol__addEventListener"in E.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var u=[];if("undefined"!=typeof window){var E=window;(!E.customElements||E.Element&&(!E.Element.prototype.closest||!E.Element.prototype.matches||!E.Element.prototype.remove||!E.Element.prototype.getRootNode))&&u.push(L.e(6748).then(L.t.bind(L,5141,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||E.NodeList&&!E.NodeList.prototype.forEach||!E.fetch||!function(){try{var _=new URL("b","http://a");return _.pathname="c%20d","http://a/c%20d"===_.href&&_.searchParams}catch(P){return!1}}()||"undefined"==typeof WeakMap)&&u.push(L.e(2214).then(L.t.bind(L,7656,23)))}return Promise.all(u)}().then(()=>((u,E)=>"undefined"==typeof window?Promise.resolve():(0,ht.p)().then(()=>(hn(),(0,ht.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]]]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[1],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]]]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32],"setFocus":[64]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]]]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[1,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"activated":[32]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-picker-column-internal",[[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]}]]],["ion-picker-internal",[[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32],"ariaLabel":[32]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isPresented":[32],"isTimePopoverOpen":[32],"confirm":[64],"reset":[64],"cancel":[64]}],[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8]}]]],["ion-select_3",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]},[[0,"ionChange","onSelect"]]]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-note",{"color":[513]}]]]]'),E))))(0,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:er,jmp:le=>d.runOutsideAngular(le),ael(le,Ue,gt,Bt){le[P](Ue,gt,Bt)},rel(le,Ue,gt,Bt){le.removeEventListener(Ue,gt,Bt)}}))}};let Ts=(()=>{class u{static forRoot(d){return{ngModule:u,providers:[{provide:Pt,useValue:d},{provide:s.ip1,useFactory:ls,multi:!0,deps:[Pt,wn.K0,s.R0b]}]}}}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=s.oAB({type:u}),u.\u0275inj=s.cJS({providers:[it,is,ui],imports:[[wn.ez]]}),u})()},1527:(Tt,Ge,L)=>{"use strict";L.d(Ge,{c:()=>se});var s=L(1572),O=L(7857);let Ne;const Te=me=>me.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ve=me=>{if(void 0===Ne){const Me=void 0!==me.style.webkitAnimationName;Ne=void 0===me.style.animationName&&Me?"-webkit-":""}return Ne},Y=(me,ne,Me)=>{const Re=ne.startsWith("animation")?ve(me):"";me.style.setProperty(Re+ne,Me)},Z=(me,ne)=>{const Me=ne.startsWith("animation")?ve(me):"";me.style.removeProperty(Me+ne)},K=[],_e=(me=[],ne)=>{if(void 0!==ne){const Me=Array.isArray(ne)?ne:[ne];return[...me,...Me]}return me},se=me=>{let ne,Me,Re,we,Xe,Je,qe,Fe,Ve,lt,rt,Et,ft,De=[],$e=[],Se=[],Qe=!1,xe={},Ae=[],Le=[],We={},Ot=0,jt=!1,Ze=!1,Be=!0,He=!1,_t=!0,Rt=!1;const It=me,an=[],gn=[],rn=[],Nt=[],Fn=[],Yt=[],Rn=[],Jn=[],Hn=[],Nn=[],br="function"==typeof AnimationEffect||void 0!==O.w&&"function"==typeof O.w.AnimationEffect,ze="function"==typeof Element&&"function"==typeof Element.prototype.animate&&br,ye=()=>Nn,ht=(k,J)=>(((null==J?void 0:J.oneTimeCallback)?gn:an).push({c:k,o:J}),ft),Dn=()=>{if(ze)Nn.forEach(k=>{k.cancel()}),Nn.length=0;else{const k=rn.slice();(0,s.r)(()=>{k.forEach(J=>{Z(J,"animation-name"),Z(J,"animation-duration"),Z(J,"animation-timing-function"),Z(J,"animation-iteration-count"),Z(J,"animation-delay"),Z(J,"animation-play-state"),Z(J,"animation-fill-mode"),Z(J,"animation-direction")})})}},Zt=()=>{Fn.forEach(k=>{(null==k?void 0:k.parentNode)&&k.parentNode.removeChild(k)}),Fn.length=0},on=()=>void 0!==Xe?Xe:qe?qe.getFill():"both",ir=()=>void 0!==Ve?Ve:void 0!==Je?Je:qe?qe.getDirection():"normal",gr=()=>jt?"linear":void 0!==Re?Re:qe?qe.getEasing():"linear",At=()=>Ze?0:void 0!==lt?lt:void 0!==Me?Me:qe?qe.getDuration():0,dr=()=>void 0!==we?we:qe?qe.getIterations():1,er=()=>void 0!==rt?rt:void 0!==ne?ne:qe?qe.getDelay():0,Gn=()=>{0!==Ot&&(Ot--,0===Ot&&((()=>{qn(),Jn.forEach(Ce=>Ce()),Hn.forEach(Ce=>Ce());const k=Be?1:0,J=Ae,ie=Le,he=We;rn.forEach(Ce=>{const tt=Ce.classList;J.forEach(ut=>tt.add(ut)),ie.forEach(ut=>tt.remove(ut));for(const ut in he)he.hasOwnProperty(ut)&&Y(Ce,ut,he[ut])}),an.forEach(Ce=>Ce.c(k,ft)),gn.forEach(Ce=>Ce.c(k,ft)),gn.length=0,_t=!0,Be&&(He=!0),Be=!0})(),qe&&qe.animationFinish()))},at=(k=!0)=>{Zt();const J=(me=>(me.forEach(ne=>{for(const Me in ne)if(ne.hasOwnProperty(Me)){const Re=ne[Me];if("easing"===Me)ne["animation-timing-function"]=Re,delete ne[Me];else{const we=Te(Me);we!==Me&&(ne[we]=Re,delete ne[Me])}}}),me))(De);rn.forEach(ie=>{if(J.length>0){const he=((me=[])=>me.map(ne=>{const Me=ne.offset,Re=[];for(const we in ne)ne.hasOwnProperty(we)&&"offset"!==we&&Re.push(`${we}: ${ne[we]};`);return`${100*Me}% { ${Re.join(" ")} }`}).join(" "))(J);Et=void 0!==me?me:(me=>{let ne=K.indexOf(me);return ne<0&&(ne=K.push(me)-1),`ion-animation-${ne}`})(he);const Ce=((me,ne,Me)=>{var Re;const we=(me=>{const ne=void 0!==me.getRootNode?me.getRootNode():me;return ne.head||ne})(Me),Xe=ve(Me),Je=we.querySelector("#"+me);if(Je)return Je;const De=(null!==(Re=Me.ownerDocument)&&void 0!==Re?Re:document).createElement("style");return De.id=me,De.textContent=`@${Xe}keyframes ${me} { ${ne} } @${Xe}keyframes ${me}-alt { ${ne} }`,we.appendChild(De),De})(Et,he,ie);Fn.push(Ce),Y(ie,"animation-duration",`${At()}ms`),Y(ie,"animation-timing-function",gr()),Y(ie,"animation-delay",`${er()}ms`),Y(ie,"animation-fill-mode",on()),Y(ie,"animation-direction",ir());const tt=dr()===1/0?"infinite":dr().toString();Y(ie,"animation-iteration-count",tt),Y(ie,"animation-play-state","paused"),k&&Y(ie,"animation-name",`${Ce.id}-alt`),(0,s.r)(()=>{Y(ie,"animation-name",Ce.id||null)})}})},Dr=(k=!0)=>{(()=>{Yt.forEach(he=>he()),Rn.forEach(he=>he());const k=$e,J=Se,ie=xe;rn.forEach(he=>{const Ce=he.classList;k.forEach(tt=>Ce.add(tt)),J.forEach(tt=>Ce.remove(tt));for(const tt in ie)ie.hasOwnProperty(tt)&&Y(he,tt,ie[tt])})})(),De.length>0&&(ze?(rn.forEach(k=>{const J=k.animate(De,{id:It,delay:er(),duration:At(),easing:gr(),iterations:dr(),fill:on(),direction:ir()});J.pause(),Nn.push(J)}),Nn.length>0&&(Nn[0].onfinish=()=>{Gn()})):at(k)),Qe=!0},jn=k=>{if(k=Math.min(Math.max(k,0),.9999),ze)Nn.forEach(J=>{J.currentTime=J.effect.getComputedTiming().delay+At()*k,J.pause()});else{const J=`-${At()*k}ms`;rn.forEach(ie=>{De.length>0&&(Y(ie,"animation-delay",J),Y(ie,"animation-play-state","paused"))})}},yt=k=>{Nn.forEach(J=>{J.effect.updateTiming({delay:er(),duration:At(),easing:gr(),iterations:dr(),fill:on(),direction:ir()})}),void 0!==k&&jn(k)},Ht=(k=!0,J)=>{(0,s.r)(()=>{rn.forEach(ie=>{Y(ie,"animation-name",Et||null),Y(ie,"animation-duration",`${At()}ms`),Y(ie,"animation-timing-function",gr()),Y(ie,"animation-delay",void 0!==J?`-${J*At()}ms`:`${er()}ms`),Y(ie,"animation-fill-mode",on()||null),Y(ie,"animation-direction",ir()||null);const he=dr()===1/0?"infinite":dr().toString();Y(ie,"animation-iteration-count",he),k&&Y(ie,"animation-name",`${Et}-alt`),(0,s.r)(()=>{Y(ie,"animation-name",Et||null)})})})},Ut=(k=!1,J=!0,ie)=>(k&&Nt.forEach(he=>{he.update(k,J,ie)}),ze?yt(ie):Ht(J,ie),ft),zn=()=>{Qe&&(ze?Nn.forEach(k=>{k.pause()}):rn.forEach(k=>{Y(k,"animation-play-state","paused")}),Rt=!0)},Fr=()=>{Fe=void 0,Gn()},qn=()=>{Fe&&clearTimeout(Fe)},C=k=>new Promise(J=>{(null==k?void 0:k.sync)&&(Ze=!0,ht(()=>Ze=!1,{oneTimeCallback:!0})),Qe||Dr(),He&&(ze?(jn(0),yt()):Ht(),He=!1),_t&&(Ot=Nt.length+1,_t=!1),ht(()=>J(),{oneTimeCallback:!0}),Nt.forEach(ie=>{ie.play()}),ze?(Nn.forEach(k=>{k.play()}),(0===De.length||0===rn.length)&&Gn()):(()=>{if(qn(),(0,s.r)(()=>{rn.forEach(k=>{De.length>0&&Y(k,"animation-play-state","running")})}),0===De.length||0===rn.length)Gn();else{const k=er()||0,J=At()||0,ie=dr()||1;isFinite(ie)&&(Fe=setTimeout(Fr,k+J*ie+100)),((me,ne)=>{let Me;const Re={passive:!0},Xe=Je=>{me===Je.target&&(Me&&Me(),qn(),(0,s.r)(()=>{rn.forEach(k=>{Z(k,"animation-duration"),Z(k,"animation-delay"),Z(k,"animation-play-state")}),(0,s.r)(Gn)}))};me&&(me.addEventListener("webkitAnimationEnd",Xe,Re),me.addEventListener("animationend",Xe,Re),Me=()=>{me.removeEventListener("webkitAnimationEnd",Xe,Re),me.removeEventListener("animationend",Xe,Re)})})(rn[0])}})(),Rt=!1}),j=(k,J)=>{const ie=De[0];return void 0===ie||void 0!==ie.offset&&0!==ie.offset?De=[{offset:0,[k]:J},...De]:ie[k]=J,ft};return ft={parentAnimation:qe,elements:rn,childAnimations:Nt,id:It,animationFinish:Gn,from:j,to:(k,J)=>{const ie=De[De.length-1];return void 0===ie||void 0!==ie.offset&&1!==ie.offset?De=[...De,{offset:1,[k]:J}]:ie[k]=J,ft},fromTo:(k,J,ie)=>j(k,J).to(k,ie),parent:k=>(qe=k,ft),play:C,pause:()=>(Nt.forEach(k=>{k.pause()}),zn(),ft),stop:()=>{Nt.forEach(k=>{k.stop()}),Qe&&(Dn(),Qe=!1),jt=!1,Ze=!1,_t=!0,Ve=void 0,lt=void 0,rt=void 0,Ot=0,He=!1,Be=!0,Rt=!1},destroy:k=>(Nt.forEach(J=>{J.destroy(k)}),(k=>{Dn(),k&&Zt()})(k),rn.length=0,Nt.length=0,De.length=0,an.length=0,gn.length=0,Qe=!1,_t=!0,ft),keyframes:k=>{const J=De!==k;return De=k,J&&(k=>{ze?ye().forEach(J=>{if(J.effect.setKeyframes)J.effect.setKeyframes(k);else{const ie=new KeyframeEffect(J.effect.target,k,J.effect.getTiming());J.effect=ie}}):at()})(De),ft},addAnimation:k=>{if(null!=k)if(Array.isArray(k))for(const J of k)J.parent(ft),Nt.push(J);else k.parent(ft),Nt.push(k);return ft},addElement:k=>{if(null!=k)if(1===k.nodeType)rn.push(k);else if(k.length>=0)for(let J=0;J(Xe=k,Ut(!0),ft),direction:k=>(Je=k,Ut(!0),ft),iterations:k=>(we=k,Ut(!0),ft),duration:k=>(!ze&&0===k&&(k=1),Me=k,Ut(!0),ft),easing:k=>(Re=k,Ut(!0),ft),delay:k=>(ne=k,Ut(!0),ft),getWebAnimations:ye,getKeyframes:()=>De,getFill:on,getDirection:ir,getDelay:er,getIterations:dr,getEasing:gr,getDuration:At,afterAddRead:k=>(Jn.push(k),ft),afterAddWrite:k=>(Hn.push(k),ft),afterClearStyles:(k=[])=>{for(const J of k)We[J]="";return ft},afterStyles:(k={})=>(We=k,ft),afterRemoveClass:k=>(Le=_e(Le,k),ft),afterAddClass:k=>(Ae=_e(Ae,k),ft),beforeAddRead:k=>(Yt.push(k),ft),beforeAddWrite:k=>(Rn.push(k),ft),beforeClearStyles:(k=[])=>{for(const J of k)xe[J]="";return ft},beforeStyles:(k={})=>(xe=k,ft),beforeRemoveClass:k=>(Se=_e(Se,k),ft),beforeAddClass:k=>($e=_e($e,k),ft),onFinish:ht,isRunning:()=>0!==Ot&&!Rt,progressStart:(k=!1,J)=>(Nt.forEach(ie=>{ie.progressStart(k,J)}),zn(),jt=k,Qe||Dr(),Ut(!1,!0,J),ft),progressStep:k=>(Nt.forEach(J=>{J.progressStep(k)}),jn(k),ft),progressEnd:(k,J,ie)=>(jt=!1,Nt.forEach(he=>{he.progressEnd(k,J,ie)}),void 0!==ie&&(lt=ie),He=!1,Be=!0,0===k?(Ve="reverse"===ir()?"normal":"reverse","reverse"===Ve&&(Be=!1),ze?(Ut(),jn(1-J)):(rt=(1-J)*At()*-1,Ut(!1,!1))):1===k&&(ze?(Ut(),jn(J)):(rt=J*At()*-1,Ut(!1,!1))),void 0!==k&&(ht(()=>{lt=void 0,Ve=void 0,rt=void 0},{oneTimeCallback:!0}),qe||C()),ft)}}},4619:(Tt,Ge,L)=>{"use strict";L.d(Ge,{E:()=>ee,a:()=>s,s:()=>Z});const s=K=>{try{if(K instanceof class{constructor(X){this.value=X}})return K.value;if(!je()||"string"!=typeof K||""===K)return K;if(K.includes("onload="))return"";const X=document.createDocumentFragment(),te=document.createElement("div");X.appendChild(te),te.innerHTML=K,ve.forEach(me=>{const ne=X.querySelectorAll(me);for(let Me=ne.length-1;Me>=0;Me--){const Re=ne[Me];Re.parentNode?Re.parentNode.removeChild(Re):X.removeChild(Re);const we=Ne(Re);for(let Xe=0;Xe{if(K.nodeType&&1!==K.nodeType)return;if("undefined"!=typeof NamedNodeMap&&!(K.attributes instanceof NamedNodeMap))return void K.remove();for(let te=K.attributes.length-1;te>=0;te--){const ce=K.attributes.item(te),_e=ce.name;if(!Te.includes(_e.toLowerCase())){K.removeAttribute(_e);continue}const se=ce.value,me=K[_e];(null!=se&&se.toLowerCase().includes("javascript:")||null!=me&&me.toLowerCase().includes("javascript:"))&&K.removeAttribute(_e)}const X=Ne(K);for(let te=0;tenull!=K.children?K.children:K.childNodes,je=()=>{var K;const X=window,te=null===(K=null==X?void 0:X.Ionic)||void 0===K?void 0:K.config;return!te||(te.get?te.get("sanitizerEnabled",!0):!0===te.sanitizerEnabled||void 0===te.sanitizerEnabled)},Te=["class","id","href","src","name","slot"],ve=["script","style","iframe","meta","link","object","embed"],Z=K=>{const X=window,te=X.Ionic;if(!te||!te.config||"Object"===te.config.constructor.name)return X.Ionic=X.Ionic||{},X.Ionic.config=Object.assign(Object.assign({},X.Ionic.config),K),X.Ionic.config},ee=!0},1433:(Tt,Ge,L)=>{"use strict";L.d(Ge,{G:()=>Te});class O{constructor(Y,Z,Q,ee,K){this.id=Z,this.name=Q,this.disableScroll=K,this.priority=1e6*ee+Z,this.ctrl=Y}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const Y=this.ctrl.capture(this.name,this.id,this.priority);return Y&&this.disableScroll&&this.ctrl.disableScroll(this.id),Y}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Ne{constructor(Y,Z,Q,ee){this.id=Z,this.disable=Q,this.disableScroll=ee,this.ctrl=Y}block(){if(this.ctrl){if(this.disable)for(const Y of this.disable)this.ctrl.disableGesture(Y,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const Y of this.disable)this.ctrl.enableGesture(Y,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const je="backdrop-no-scroll",Te=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(Y){var Z;return new O(this,this.newID(),Y.name,null!==(Z=Y.priority)&&void 0!==Z?Z:0,!!Y.disableScroll)}createBlocker(Y={}){return new Ne(this,this.newID(),Y.disable,!!Y.disableScroll)}start(Y,Z,Q){return this.canStart(Y)?(this.requestedStart.set(Z,Q),!0):(this.requestedStart.delete(Z),!1)}capture(Y,Z,Q){if(!this.start(Y,Z,Q))return!1;const ee=this.requestedStart;let K=-1e4;if(ee.forEach(X=>{K=Math.max(K,X)}),K===Q){this.capturedId=Z,ee.clear();const X=new CustomEvent("ionGestureCaptured",{detail:{gestureName:Y}});return document.dispatchEvent(X),!0}return ee.delete(Z),!1}release(Y){this.requestedStart.delete(Y),this.capturedId===Y&&(this.capturedId=void 0)}disableGesture(Y,Z){let Q=this.disabledGestures.get(Y);void 0===Q&&(Q=new Set,this.disabledGestures.set(Y,Q)),Q.add(Z)}enableGesture(Y,Z){const Q=this.disabledGestures.get(Y);void 0!==Q&&Q.delete(Z)}disableScroll(Y){this.disabledScroll.add(Y),1===this.disabledScroll.size&&document.body.classList.add(je)}enableScroll(Y){this.disabledScroll.delete(Y),0===this.disabledScroll.size&&document.body.classList.remove(je)}canStart(Y){return!(void 0!==this.capturedId||this.isDisabled(Y))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(Y){const Z=this.disabledGestures.get(Y);return!!(Z&&Z.size>0)}newID(){return this.gestureId++,this.gestureId}}},8657:(Tt,Ge,L)=>{"use strict";L.r(Ge),L.d(Ge,{MENU_BACK_BUTTON_PRIORITY:()=>Te,OVERLAY_BACK_BUTTON_PRIORITY:()=>je,blockHardwareBackButton:()=>O,startHardwareBackButton:()=>Ne});var s=L(8239);const O=()=>{document.addEventListener("backbutton",()=>{})},Ne=()=>{const ve=document;let Y=!1;ve.addEventListener("backbutton",()=>{if(Y)return;let Z=0,Q=[];const ee=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(te,ce){Q.push({priority:te,handler:ce,id:Z++})}}});ve.dispatchEvent(ee);const K=function(){var te=(0,s.Z)(function*(ce){try{if(null==ce?void 0:ce.handler){const _e=ce.handler(X);null!=_e&&(yield _e)}}catch(_e){console.error(_e)}});return function(_e){return te.apply(this,arguments)}}(),X=()=>{if(Q.length>0){let te={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Q.forEach(ce=>{ce.priority>=te.priority&&(te=ce)}),Y=!0,Q=Q.filter(ce=>ce.id!==te.id),K(te).then(()=>Y=!1)}};X()})},je=100,Te=99},1572:(Tt,Ge,L)=>{"use strict";L.d(Ge,{a:()=>Y,b:()=>Z,c:()=>Ne,d:()=>ce,e:()=>_e,f:()=>te,g:()=>Q,h:()=>we,i:()=>ve,j:()=>je,k:()=>X,l:()=>se,m:()=>K,n:()=>me,o:()=>Re,p:()=>Me,q:()=>Xe,r:()=>ee,s:()=>Je,t:()=>s,u:()=>ne});const s=(De,$e=0)=>new Promise(Se=>{O(De,$e,Se)}),O=(De,$e=0,Se)=>{let Qe,qe;const xe={passive:!0},Le=()=>{Qe&&Qe()},We=Ot=>{(void 0===Ot||De===Ot.target)&&(Le(),Se(Ot))};return De&&(De.addEventListener("webkitTransitionEnd",We,xe),De.addEventListener("transitionend",We,xe),qe=setTimeout(We,$e+500),Qe=()=>{qe&&(clearTimeout(qe),qe=void 0),De.removeEventListener("webkitTransitionEnd",We,xe),De.removeEventListener("transitionend",We,xe)}),Le},Ne=(De,$e)=>{De.componentOnReady?De.componentOnReady().then(Se=>$e(Se)):ee(()=>$e(De))},je=(De,$e=[])=>{const Se={};return $e.forEach(Qe=>{De.hasAttribute(Qe)&&(null!==De.getAttribute(Qe)&&(Se[Qe]=De.getAttribute(Qe)),De.removeAttribute(Qe))}),Se},Te=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],ve=(De,$e)=>{let Se=Te;return $e&&$e.length>0&&(Se=Se.filter(Qe=>!$e.includes(Qe))),je(De,Se)},Y=(De,$e,Se,Qe)=>{var qe;if("undefined"!=typeof window){const xe=window,Ae=null===(qe=null==xe?void 0:xe.Ionic)||void 0===qe?void 0:qe.config;if(Ae){const Le=Ae.get("_ael");if(Le)return Le(De,$e,Se,Qe);if(Ae._ael)return Ae._ael(De,$e,Se,Qe)}}return De.addEventListener($e,Se,Qe)},Z=(De,$e,Se,Qe)=>{var qe;if("undefined"!=typeof window){const xe=window,Ae=null===(qe=null==xe?void 0:xe.Ionic)||void 0===qe?void 0:qe.config;if(Ae){const Le=Ae.get("_rel");if(Le)return Le(De,$e,Se,Qe);if(Ae._rel)return Ae._rel(De,$e,Se,Qe)}}return De.removeEventListener($e,Se,Qe)},Q=(De,$e=De)=>De.shadowRoot||$e,ee=De=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(De):"function"==typeof requestAnimationFrame?requestAnimationFrame(De):setTimeout(De),K=De=>!!De.shadowRoot&&!!De.attachShadow,X=De=>{const $e=De.closest("ion-item");return $e?$e.querySelector("ion-label"):null},te=De=>{if(De.focus(),De.classList.contains("ion-focusable")){const $e=De.closest("ion-app");$e&&$e.setFocus([De])}},ce=(De,$e)=>{let Se;const Qe=De.getAttribute("aria-labelledby"),qe=De.id;let xe=null!==Qe&&""!==Qe.trim()?Qe:$e+"-lbl",Ae=null!==Qe&&""!==Qe.trim()?document.getElementById(Qe):X(De);return Ae?(null===Qe&&(Ae.id=xe),Se=Ae.textContent,Ae.setAttribute("aria-hidden","true")):""!==qe.trim()&&(Ae=document.querySelector(`label[for="${qe}"]`),Ae&&(""!==Ae.id?xe=Ae.id:Ae.id=xe=`${qe}-lbl`,Se=Ae.textContent)),{label:Ae,labelId:xe,labelText:Se}},_e=(De,$e,Se,Qe,qe)=>{if(De||K($e)){let xe=$e.querySelector("input.aux-input");xe||(xe=$e.ownerDocument.createElement("input"),xe.type="hidden",xe.classList.add("aux-input"),$e.appendChild(xe)),xe.disabled=qe,xe.name=Se,xe.value=Qe||""}},se=(De,$e,Se)=>Math.max(De,Math.min($e,Se)),me=(De,$e)=>{if(!De){const Se="ASSERT: "+$e;throw console.error(Se),new Error(Se)}},ne=De=>De.timeStamp||Date.now(),Me=De=>{if(De){const $e=De.changedTouches;if($e&&$e.length>0){const Se=$e[0];return{x:Se.clientX,y:Se.clientY}}if(void 0!==De.pageX)return{x:De.pageX,y:De.pageY}}return{x:0,y:0}},Re=De=>{const $e="rtl"===document.dir;switch(De){case"start":return $e;case"end":return!$e;default:throw new Error(`"${De}" is not a valid value for [side]. Use "start" or "end" instead.`)}},we=(De,$e)=>{const Se=De._original||De;return{_original:De,emit:Xe(Se.emit.bind(Se),$e)}},Xe=(De,$e=0)=>{let Se;return(...Qe)=>{clearTimeout(Se),Se=setTimeout(De,$e,...Qe)}},Je=(De,$e)=>{if(null!=De||(De={}),null!=$e||($e={}),De===$e)return!0;const Se=Object.keys(De);if(Se.length!==Object.keys($e).length)return!1;for(const Qe of Se)if(!(Qe in $e)||De[Qe]!==$e[Qe])return!1;return!0}},6387:(Tt,Ge,L)=>{"use strict";L.d(Ge,{L:()=>je,a:()=>Te,b:()=>ve,c:()=>Y,d:()=>Z,e:()=>$e,g:()=>qe,l:()=>Je,s:()=>Se,t:()=>K});var s=L(8239),O=L(1027),Ne=L(1572);const je="ionViewWillEnter",Te="ionViewDidEnter",ve="ionViewWillLeave",Y="ionViewDidLeave",Z="ionViewWillUnload",K=xe=>new Promise((Ae,Le)=>{(0,O.c)(()=>{X(xe),te(xe).then(We=>{We.animation&&We.animation.destroy(),ce(xe),Ae(We)},We=>{ce(xe),Le(We)})})}),X=xe=>{const Ae=xe.enteringEl,Le=xe.leavingEl;Qe(Ae,Le,xe.direction),xe.showGoBack?Ae.classList.add("can-go-back"):Ae.classList.remove("can-go-back"),Se(Ae,!1),Ae.style.setProperty("pointer-events","none"),Le&&(Se(Le,!1),Le.style.setProperty("pointer-events","none"))},te=function(){var xe=(0,s.Z)(function*(Ae){const Le=yield _e(Ae);return Le&&O.B.isBrowser?se(Le,Ae):me(Ae)});return function(Le){return xe.apply(this,arguments)}}(),ce=xe=>{const Ae=xe.enteringEl,Le=xe.leavingEl;Ae.classList.remove("ion-page-invisible"),Ae.style.removeProperty("pointer-events"),void 0!==Le&&(Le.classList.remove("ion-page-invisible"),Le.style.removeProperty("pointer-events"))},_e=function(){var xe=(0,s.Z)(function*(Ae){return Ae.leavingEl&&Ae.animated&&0!==Ae.duration?Ae.animationBuilder?Ae.animationBuilder:"ios"===Ae.mode?(yield Promise.resolve().then(L.bind(L,2816))).iosTransitionAnimation:(yield Promise.resolve().then(L.bind(L,5323))).mdTransitionAnimation:void 0});return function(Le){return xe.apply(this,arguments)}}(),se=function(){var xe=(0,s.Z)(function*(Ae,Le){yield ne(Le,!0);const We=Ae(Le.baseEl,Le);we(Le.enteringEl,Le.leavingEl);const Ot=yield Re(We,Le);return Le.progressCallback&&Le.progressCallback(void 0),Ot&&Xe(Le.enteringEl,Le.leavingEl),{hasCompleted:Ot,animation:We}});return function(Le,We){return xe.apply(this,arguments)}}(),me=function(){var xe=(0,s.Z)(function*(Ae){const Le=Ae.enteringEl,We=Ae.leavingEl;return yield ne(Ae,!1),we(Le,We),Xe(Le,We),{hasCompleted:!0}});return function(Le){return xe.apply(this,arguments)}}(),ne=function(){var xe=(0,s.Z)(function*(Ae,Le){const Ot=(void 0!==Ae.deepWait?Ae.deepWait:Le)?[$e(Ae.enteringEl),$e(Ae.leavingEl)]:[De(Ae.enteringEl),De(Ae.leavingEl)];yield Promise.all(Ot),yield Me(Ae.viewIsReady,Ae.enteringEl)});return function(Le,We){return xe.apply(this,arguments)}}(),Me=function(){var xe=(0,s.Z)(function*(Ae,Le){Ae&&(yield Ae(Le))});return function(Le,We){return xe.apply(this,arguments)}}(),Re=(xe,Ae)=>{const Le=Ae.progressCallback,We=new Promise(Ot=>{xe.onFinish(jt=>Ot(1===jt))});return Le?(xe.progressStart(!0),Le(xe)):xe.play(),We},we=(xe,Ae)=>{Je(Ae,ve),Je(xe,je)},Xe=(xe,Ae)=>{Je(xe,Te),Je(Ae,Y)},Je=(xe,Ae)=>{if(xe){const Le=new CustomEvent(Ae,{bubbles:!1,cancelable:!1});xe.dispatchEvent(Le)}},De=xe=>xe?new Promise(Ae=>(0,Ne.c)(xe,Ae)):Promise.resolve(),$e=function(){var xe=(0,s.Z)(function*(Ae){const Le=Ae;if(Le){if(null!=Le.componentOnReady){if(null!=(yield Le.componentOnReady()))return}else if(null!=Le.__registerHost)return void(yield new Promise(Ot=>(0,Ne.r)(Ot)));yield Promise.all(Array.from(Le.children).map($e))}});return function(Le){return xe.apply(this,arguments)}}(),Se=(xe,Ae)=>{Ae?(xe.setAttribute("aria-hidden","true"),xe.classList.add("ion-page-hidden")):(xe.hidden=!1,xe.removeAttribute("aria-hidden"),xe.classList.remove("ion-page-hidden"))},Qe=(xe,Ae,Le)=>{void 0!==xe&&(xe.style.zIndex="back"===Le?"99":"101"),void 0!==Ae&&(Ae.style.zIndex="100")},qe=xe=>xe.classList.contains("ion-page")?xe:xe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||xe},5241:(Tt,Ge,L)=>{"use strict";L.d(Ge,{m:()=>K});var s=L(8239),O=L(8657),Ne=L(1572),je=L(6894),Te=L(1527);const ve=X=>(0,Te.c)().duration(X?400:300),Y=X=>{let te,ce;const _e=X.width+8,se=(0,Te.c)(),me=(0,Te.c)();X.isEndSide?(te=_e+"px",ce="0px"):(te=-_e+"px",ce="0px"),se.addElement(X.menuInnerEl).fromTo("transform",`translateX(${te})`,`translateX(${ce})`);const Me="ios"===(0,je.b)(X),Re=Me?.2:.25;return me.addElement(X.backdropEl).fromTo("opacity",.01,Re),ve(Me).addAnimation([se,me])},Z=X=>{let te,ce;const _e=(0,je.b)(X),se=X.width;X.isEndSide?(te=-se+"px",ce=se+"px"):(te=se+"px",ce=-se+"px");const me=(0,Te.c)().addElement(X.menuInnerEl).fromTo("transform",`translateX(${ce})`,"translateX(0px)"),ne=(0,Te.c)().addElement(X.contentEl).fromTo("transform","translateX(0px)",`translateX(${te})`),Me=(0,Te.c)().addElement(X.backdropEl).fromTo("opacity",.01,.32);return ve("ios"===_e).addAnimation([me,ne,Me])},Q=X=>{const te=(0,je.b)(X),ce=X.width*(X.isEndSide?-1:1)+"px",_e=(0,Te.c)().addElement(X.contentEl).fromTo("transform","translateX(0px)",`translateX(${ce})`);return ve("ios"===te).addAnimation(_e)},K=(()=>{const X=new Map,te=[],ce=function(){var Fe=(0,s.Z)(function*(Ve){const lt=yield we(Ve);return!!lt&<.open()});return function(lt){return Fe.apply(this,arguments)}}(),_e=function(){var Fe=(0,s.Z)(function*(Ve){const lt=yield void 0!==Ve?we(Ve):Xe();return void 0!==lt&<.close()});return function(lt){return Fe.apply(this,arguments)}}(),se=function(){var Fe=(0,s.Z)(function*(Ve){const lt=yield we(Ve);return!!lt&<.toggle()});return function(lt){return Fe.apply(this,arguments)}}(),me=function(){var Fe=(0,s.Z)(function*(Ve,lt){const rt=yield we(lt);return rt&&(rt.disabled=!Ve),rt});return function(lt,rt){return Fe.apply(this,arguments)}}(),ne=function(){var Fe=(0,s.Z)(function*(Ve,lt){const rt=yield we(lt);return rt&&(rt.swipeGesture=Ve),rt});return function(lt,rt){return Fe.apply(this,arguments)}}(),Me=function(){var Fe=(0,s.Z)(function*(Ve){if(null!=Ve){const lt=yield we(Ve);return void 0!==lt&<.isOpen()}return void 0!==(yield Xe())});return function(lt){return Fe.apply(this,arguments)}}(),Re=function(){var Fe=(0,s.Z)(function*(Ve){const lt=yield we(Ve);return!!lt&&!lt.disabled});return function(lt){return Fe.apply(this,arguments)}}(),we=function(){var Fe=(0,s.Z)(function*(Ve){return yield Ze(),"start"===Ve||"end"===Ve?jt(Be=>Be.side===Ve&&!Be.disabled)||jt(Be=>Be.side===Ve):null!=Ve?jt(rt=>rt.menuId===Ve):jt(rt=>!rt.disabled)||(te.length>0?te[0].el:void 0)});return function(lt){return Fe.apply(this,arguments)}}(),Xe=function(){var Fe=(0,s.Z)(function*(){return yield Ze(),Le()});return function(){return Fe.apply(this,arguments)}}(),Je=function(){var Fe=(0,s.Z)(function*(){return yield Ze(),We()});return function(){return Fe.apply(this,arguments)}}(),De=function(){var Fe=(0,s.Z)(function*(){return yield Ze(),Ot()});return function(){return Fe.apply(this,arguments)}}(),$e=(Fe,Ve)=>{X.set(Fe,Ve)},qe=Fe=>{const Ve=Fe.side;te.filter(lt=>lt.side===Ve&<!==Fe).forEach(lt=>lt.disabled=!0)},xe=function(){var Fe=(0,s.Z)(function*(Ve,lt,rt){if(Ot())return!1;if(lt){const Be=yield Xe();Be&&Ve.el!==Be&&(yield Be.setOpen(!1,!1))}return Ve._setOpen(lt,rt)});return function(lt,rt,Be){return Fe.apply(this,arguments)}}(),Le=()=>jt(Fe=>Fe._isOpen),We=()=>te.map(Fe=>Fe.el),Ot=()=>te.some(Fe=>Fe.isAnimating),jt=Fe=>{const Ve=te.find(Fe);if(void 0!==Ve)return Ve.el},Ze=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(Fe=>new Promise(Ve=>(0,Ne.c)(Fe,Ve))));return $e("reveal",Q),$e("push",Z),$e("overlay",Y),"undefined"!=typeof document&&document.addEventListener("ionBackButton",Fe=>{const Ve=Le();Ve&&Fe.detail.register(O.MENU_BACK_BUTTON_PRIORITY,()=>Ve.close())}),{registerAnimation:$e,get:we,getMenus:Je,getOpen:Xe,isEnabled:Re,swipeGesture:ne,isAnimating:De,isOpen:Me,enable:me,toggle:se,close:_e,open:ce,_getOpenSync:Le,_createAnimation:(Fe,Ve)=>{const lt=X.get(Fe);if(!lt)throw new Error("animation not registered");return lt(Ve)},_register:Fe=>{te.indexOf(Fe)<0&&(Fe.disabled||qe(Fe),te.push(Fe))},_unregister:Fe=>{const Ve=te.indexOf(Fe);Ve>-1&&te.splice(Ve,1)},_setOpen:xe,_setActiveMenu:qe}})()},7857:(Tt,Ge,L)=>{"use strict";L.d(Ge,{w:()=>s});const s="undefined"!=typeof window?window:void 0},9509:(Tt,Ge,L)=>{"use strict";L.r(Ge),L.d(Ge,{GESTURE_CONTROLLER:()=>s.G,createGesture:()=>Q});var s=L(1433);const O=(te,ce,_e,se)=>{const me=Ne(te)?{capture:!!se.capture,passive:!!se.passive}:!!se.capture;let ne,Me;return te.__zone_symbol__addEventListener?(ne="__zone_symbol__addEventListener",Me="__zone_symbol__removeEventListener"):(ne="addEventListener",Me="removeEventListener"),te[ne](ce,_e,me),()=>{te[Me](ce,_e,me)}},Ne=te=>{if(void 0===je)try{const ce=Object.defineProperty({},"passive",{get:()=>{je=!0}});te.addEventListener("optsTest",()=>{},ce)}catch(ce){je=!1}return!!je};let je;const Y=te=>te instanceof Document?te:te.ownerDocument,Q=te=>{let ce=!1,_e=!1,se=!0,me=!1;const ne=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},te),Me=ne.canStart,Re=ne.onWillStart,we=ne.onStart,Xe=ne.onEnd,Je=ne.notCaptured,De=ne.onMove,$e=ne.threshold,Se=ne.passive,Qe=ne.blurOnStart,qe={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},xe=((te,ce,_e)=>{const se=_e*(Math.PI/180),me="x"===te,ne=Math.cos(se),Me=ce*ce;let Re=0,we=0,Xe=!1,Je=0;return{start(De,$e){Re=De,we=$e,Je=0,Xe=!0},detect(De,$e){if(!Xe)return!1;const Se=De-Re,Qe=$e-we,qe=Se*Se+Qe*Qe;if(qene?1:Ae<-ne?-1:0,Xe=!1,!0},isGesture:()=>0!==Je,getDirection:()=>Je}})(ne.direction,ne.threshold,ne.maxAngle),Ae=s.G.createGesture({name:te.gestureName,priority:te.gesturePriority,disableScroll:te.disableScroll}),Ot=()=>{!ce||(me=!1,De&&De(qe))},jt=()=>!!Ae.capture()&&(ce=!0,se=!1,qe.startX=qe.currentX,qe.startY=qe.currentY,qe.startTime=qe.currentTime,Re?Re(qe).then(Fe):Fe(),!0),Fe=()=>{Qe&&(()=>{if("undefined"!=typeof document){const He=document.activeElement;(null==He?void 0:He.blur)&&He.blur()}})(),we&&we(qe),se=!0},Ve=()=>{ce=!1,_e=!1,me=!1,se=!0,Ae.release()},lt=He=>{const _t=ce,Et=se;if(Ve(),Et){if(ee(qe,He),_t)return void(Xe&&Xe(qe));Je&&Je(qe)}},rt=((te,ce,_e,se,me)=>{let ne,Me,Re,we,Xe,Je,De,$e=0;const Se=Ze=>{$e=Date.now()+2e3,ce(Ze)&&(!Me&&_e&&(Me=O(te,"touchmove",_e,me)),Re||(Re=O(Ze.target,"touchend",qe,me)),we||(we=O(Ze.target,"touchcancel",qe,me)))},Qe=Ze=>{$e>Date.now()||!ce(Ze)||(!Je&&_e&&(Je=O(Y(te),"mousemove",_e,me)),De||(De=O(Y(te),"mouseup",xe,me)))},qe=Ze=>{Ae(),se&&se(Ze)},xe=Ze=>{Le(),se&&se(Ze)},Ae=()=>{Me&&Me(),Re&&Re(),we&&we(),Me=Re=we=void 0},Le=()=>{Je&&Je(),De&&De(),Je=De=void 0},We=()=>{Ae(),Le()},Ot=(Ze=!0)=>{Ze?(ne||(ne=O(te,"touchstart",Se,me)),Xe||(Xe=O(te,"mousedown",Qe,me))):(ne&&ne(),Xe&&Xe(),ne=Xe=void 0,We())};return{enable:Ot,stop:We,destroy:()=>{Ot(!1),se=_e=ce=void 0}}})(ne.el,He=>{const _t=X(He);return!(_e||!se||(K(He,qe),qe.startX=qe.currentX,qe.startY=qe.currentY,qe.startTime=qe.currentTime=_t,qe.velocityX=qe.velocityY=qe.deltaX=qe.deltaY=0,qe.event=He,Me&&!1===Me(qe))||(Ae.release(),!Ae.start()))&&(_e=!0,0===$e?jt():(xe.start(qe.startX,qe.startY),!0))},He=>{ce?!me&&se&&(me=!0,ee(qe,He),requestAnimationFrame(Ot)):(ee(qe,He),xe.detect(qe.currentX,qe.currentY)&&(!xe.isGesture()||!jt())&&Be())},lt,{capture:!1,passive:Se}),Be=()=>{Ve(),rt.stop(),Je&&Je(qe)};return{enable(He=!0){He||(ce&<(void 0),Ve()),rt.enable(He)},destroy(){Ae.destroy(),rt.destroy()}}},ee=(te,ce)=>{if(!ce)return;const _e=te.currentX,se=te.currentY,me=te.currentTime;K(ce,te);const ne=te.currentX,Me=te.currentY,we=(te.currentTime=X(ce))-me;if(we>0&&we<100){const Je=(Me-se)/we;te.velocityX=(ne-_e)/we*.7+.3*te.velocityX,te.velocityY=.7*Je+.3*te.velocityY}te.deltaX=ne-te.startX,te.deltaY=Me-te.startY,te.event=ce},K=(te,ce)=>{let _e=0,se=0;if(te){const me=te.changedTouches;if(me&&me.length>0){const ne=me[0];_e=ne.clientX,se=ne.clientY}else void 0!==te.pageX&&(_e=te.pageX,se=te.pageY)}ce.currentX=_e,ce.currentY=se},X=te=>te.timeStamp||Date.now()},1027:(Tt,Ge,L)=>{"use strict";L.d(Ge,{B:()=>de,H:()=>rn,a:()=>Be,b:()=>Wr,c:()=>U,e:()=>Qt,f:()=>$r,g:()=>He,h:()=>an,i:()=>Zn,j:()=>ir,k:()=>kt,p:()=>se,r:()=>Vn,s:()=>ce});var s=L(8239);let Ne,je,Te,ve=!1,Y=!1,Z=!1,Q=!1,ee=!1;const K="undefined"!=typeof window?window:{},X=K.document||{head:{}},te={$flags$:0,$resourcesUrl$:"",jmp:C=>C(),raf:C=>requestAnimationFrame(C),ael:(C,x,j,$)=>C.addEventListener(x,j,$),rel:(C,x,j,$)=>C.removeEventListener(x,j,$),ce:(C,x)=>new CustomEvent(C,x)},ce=C=>{Object.assign(te,C)},se=C=>Promise.resolve(C),me=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(C){}return!1})(),ne=(C,x,j,$)=>{j&&j.map(([re,k,J])=>{const ie=Re(C,re),he=Me(x,J),Ce=we(re);te.ael(ie,k,he,Ce),(x.$rmListeners$=x.$rmListeners$||[]).push(()=>te.rel(ie,k,he,Ce))})},Me=(C,x)=>j=>{try{256&C.$flags$?C.$lazyInstance$[x](j):(C.$queuedListeners$=C.$queuedListeners$||[]).push([x,j])}catch($){yt($)}},Re=(C,x)=>4&x?X:8&x?K:16&x?X.body:C,we=C=>0!=(2&C),Se="s-id",Qe="sty-id",Ae="http://www.w3.org/1999/xlink",Ot=new WeakMap,jt=(C,x,j)=>{let $=Jt.get(C);me&&j?($=$||new CSSStyleSheet,"string"==typeof $?$=x:$.replaceSync(x)):$=x,Jt.set(C,$)},Ze=(C,x,j,$)=>{let re=Ve(x,j);const k=Jt.get(re);if(C=11===C.nodeType?C:X,k)if("string"==typeof k){let ie,J=Ot.get(C=C.head||C);J||Ot.set(C,J=new Set),J.has(re)||(C.host&&(ie=C.querySelector(`[${Qe}="${re}"]`))?ie.innerHTML=k:(ie=X.createElement("style"),ie.innerHTML=k,C.insertBefore(ie,C.querySelector("link"))),J&&J.add(re))}else C.adoptedStyleSheets.includes(k)||(C.adoptedStyleSheets=[...C.adoptedStyleSheets,k]);return re},Ve=(C,x)=>"sc-"+(x&&32&C.$flags$?C.$tagName$+"-"+x:C.$tagName$),lt=C=>C.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Be=C=>Vt.push(C),He=C=>at(C).$modeName$,_t={},It=C=>"object"==(C=typeof C)||"function"===C,an=(C,x,...j)=>{let $=null,re=null,k=null,J=!1,ie=!1;const he=[],Ce=ut=>{for(let Dt=0;Dtut[Dt]).join(" "))}}if("function"==typeof C)return C(null===x?{}:x,he,Fn);const tt=gn(C,null);return tt.$attrs$=x,he.length>0&&(tt.$children$=he),tt.$key$=re,tt.$name$=k,tt},gn=(C,x)=>({$flags$:0,$tag$:C,$text$:x,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),rn={},Fn={forEach:(C,x)=>C.map(Yt).forEach(x),map:(C,x)=>C.map(Yt).map(x).map(Rn)},Yt=C=>({vattrs:C.$attrs$,vchildren:C.$children$,vkey:C.$key$,vname:C.$name$,vtag:C.$tag$,vtext:C.$text$}),Rn=C=>{if("function"==typeof C.vtag){const j=Object.assign({},C.vattrs);return C.vkey&&(j.key=C.vkey),C.vname&&(j.name=C.vname),an(C.vtag,j,...C.vchildren||[])}const x=gn(C.vtag,C.vtext);return x.$attrs$=C.vattrs,x.$children$=C.vchildren,x.$key$=C.vkey,x.$name$=C.vname,x},Jn=(C,x,j,$,re,k)=>{if(j!==$){let J=jn(C,x),ie=x.toLowerCase();if("class"===x){const he=C.classList,Ce=Nn(j),tt=Nn($);he.remove(...Ce.filter(ut=>ut&&!tt.includes(ut))),he.add(...tt.filter(ut=>ut&&!Ce.includes(ut)))}else if("style"===x){for(const he in j)(!$||null==$[he])&&(he.includes("-")?C.style.removeProperty(he):C.style[he]="");for(const he in $)(!j||$[he]!==j[he])&&(he.includes("-")?C.style.setProperty(he,$[he]):C.style[he]=$[he])}else if("key"!==x)if("ref"===x)$&&$(C);else if(J||"o"!==x[0]||"n"!==x[1]){const he=It($);if((J||he&&null!==$)&&!re)try{if(C.tagName.includes("-"))C[x]=$;else{const tt=null==$?"":$;"list"===x?J=!1:(null==j||C[x]!=tt)&&(C[x]=tt)}}catch(tt){}let Ce=!1;ie!==(ie=ie.replace(/^xlink\:?/,""))&&(x=ie,Ce=!0),null==$||!1===$?(!1!==$||""===C.getAttribute(x))&&(Ce?C.removeAttributeNS(Ae,x):C.removeAttribute(x)):(!J||4&k||re)&&!he&&($=!0===$?"":$,Ce?C.setAttributeNS(Ae,x,$):C.setAttribute(x,$))}else x="-"===x[2]?x.slice(3):jn(K,ie)?ie.slice(2):ie[2]+x.slice(3),j&&te.rel(C,x,j,!1),$&&te.ael(C,x,$,!1)}},Hn=/\s/,Nn=C=>C?C.split(Hn):[],br=(C,x,j,$)=>{const re=11===x.$elm$.nodeType&&x.$elm$.host?x.$elm$.host:x.$elm$,k=C&&C.$attrs$||_t,J=x.$attrs$||_t;for($ in k)$ in J||Jn(re,$,k[$],void 0,j,x.$flags$);for($ in J)Jn(re,$,k[$],J[$],j,x.$flags$)},ze=(C,x,j,$)=>{const re=x.$children$[j];let J,ie,he,k=0;if(ve||(Z=!0,"slot"===re.$tag$&&(Ne&&$.classList.add(Ne+"-s"),re.$flags$|=re.$children$?2:1)),null!==re.$text$)J=re.$elm$=X.createTextNode(re.$text$);else if(1&re.$flags$)J=re.$elm$=X.createTextNode("");else{if(Q||(Q="svg"===re.$tag$),J=re.$elm$=X.createElementNS(Q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&re.$flags$?"slot-fb":re.$tag$),Q&&"foreignObject"===re.$tag$&&(Q=!1),br(null,re,Q),(C=>null!=C)(Ne)&&J["s-si"]!==Ne&&J.classList.add(J["s-si"]=Ne),re.$children$)for(k=0;k{te.$flags$|=1;const j=C.childNodes;for(let $=j.length-1;$>=0;$--){const re=j[$];re["s-hn"]!==Te&&re["s-ol"]&&(ht(re).insertBefore(re,dt(re)),re["s-ol"].remove(),re["s-ol"]=void 0,Z=!0),x&&pe(re,x)}te.$flags$&=-2},ye=(C,x,j,$,re,k)=>{let ie,J=C["s-cr"]&&C["s-cr"].parentNode||C;for(J.shadowRoot&&J.tagName===Te&&(J=J.shadowRoot);re<=k;++re)$[re]&&(ie=ze(null,j,re,C),ie&&($[re].$elm$=ie,J.insertBefore(ie,dt(x))))},nt=(C,x,j,$,re)=>{for(;x<=j;++x)($=C[x])&&(re=$.$elm$,en($),Y=!0,re["s-ol"]?re["s-ol"].remove():pe(re,!0),re.remove())},bt=(C,x)=>C.$tag$===x.$tag$&&("slot"===C.$tag$?C.$name$===x.$name$:C.$key$===x.$key$),dt=C=>C&&C["s-ol"]||C,ht=C=>(C["s-ol"]?C["s-ol"]:C).parentNode,zt=(C,x)=>{const j=x.$elm$=C.$elm$,$=C.$children$,re=x.$children$,k=x.$tag$,J=x.$text$;let ie;null===J?(Q="svg"===k||"foreignObject"!==k&&Q,"slot"===k||br(C,x,Q),null!==$&&null!==re?((C,x,j,$)=>{let mn,sn,re=0,k=0,J=0,ie=0,he=x.length-1,Ce=x[0],tt=x[he],ut=$.length-1,Dt=$[0],Ct=$[ut];for(;re<=he&&k<=ut;)if(null==Ce)Ce=x[++re];else if(null==tt)tt=x[--he];else if(null==Dt)Dt=$[++k];else if(null==Ct)Ct=$[--ut];else if(bt(Ce,Dt))zt(Ce,Dt),Ce=x[++re],Dt=$[++k];else if(bt(tt,Ct))zt(tt,Ct),tt=x[--he],Ct=$[--ut];else if(bt(Ce,Ct))("slot"===Ce.$tag$||"slot"===Ct.$tag$)&&pe(Ce.$elm$.parentNode,!1),zt(Ce,Ct),C.insertBefore(Ce.$elm$,tt.$elm$.nextSibling),Ce=x[++re],Ct=$[--ut];else if(bt(tt,Dt))("slot"===Ce.$tag$||"slot"===Ct.$tag$)&&pe(tt.$elm$.parentNode,!1),zt(tt,Dt),C.insertBefore(tt.$elm$,Ce.$elm$),tt=x[--he],Dt=$[++k];else{for(J=-1,ie=re;ie<=he;++ie)if(x[ie]&&null!==x[ie].$key$&&x[ie].$key$===Dt.$key$){J=ie;break}J>=0?(sn=x[J],sn.$tag$!==Dt.$tag$?mn=ze(x&&x[k],j,J,C):(zt(sn,Dt),x[J]=void 0,mn=sn.$elm$),Dt=$[++k]):(mn=ze(x&&x[k],j,k,C),Dt=$[++k]),mn&&ht(Ce.$elm$).insertBefore(mn,dt(Ce.$elm$))}re>he?ye(C,null==$[ut+1]?null:$[ut+1].$elm$,j,$,k,ut):k>ut&&nt(x,re,he)})(j,$,x,re):null!==re?(null!==C.$text$&&(j.textContent=""),ye(j,null,x,re,0,re.length-1)):null!==$&&nt($,0,$.length-1),Q&&"svg"===k&&(Q=!1)):(ie=j["s-cr"])?ie.parentNode.textContent=J:C.$text$!==J&&(j.data=J)},Dn=C=>{const x=C.childNodes;let j,$,re,k,J,ie;for($=0,re=x.length;${let x,j,$,re,k,J,ie=0;const he=C.childNodes,Ce=he.length;for(;ie=0;J--)j=$[J],!j["s-cn"]&&!j["s-nr"]&&j["s-hn"]!==x["s-hn"]&&(On(j,re)?(k=Zt.find(tt=>tt.$nodeToRelocate$===j),Y=!0,j["s-sn"]=j["s-sn"]||re,k?k.$slotRefNode$=x:Zt.push({$slotRefNode$:x,$nodeToRelocate$:j}),j["s-sr"]&&Zt.map(tt=>{On(tt.$nodeToRelocate$,j["s-sn"])&&(k=Zt.find(ut=>ut.$nodeToRelocate$===j),k&&!tt.$slotRefNode$&&(tt.$slotRefNode$=k.$slotRefNode$))})):Zt.some(tt=>tt.$nodeToRelocate$===j)||Zt.push({$nodeToRelocate$:j}));1===x.nodeType&&In(x)}},On=(C,x)=>1===C.nodeType?null===C.getAttribute("slot")&&""===x||C.getAttribute("slot")===x:C["s-sn"]===x||""===x,en=C=>{C.$attrs$&&C.$attrs$.ref&&C.$attrs$.ref(null),C.$children$&&C.$children$.map(en)},Zn=C=>at(C).$hostElement$,Qt=(C,x,j)=>{const $=Zn(C);return{emit:re=>wn($,x,{bubbles:!!(4&j),composed:!!(2&j),cancelable:!!(1&j),detail:re})}},wn=(C,x,j)=>{const $=te.ce(x,j);return C.dispatchEvent($),$},Bn=(C,x)=>{x&&!C.$onRenderResolve$&&x["s-p"]&&x["s-p"].push(new Promise(j=>C.$onRenderResolve$=j))},hn=(C,x)=>{if(C.$flags$|=16,!(4&C.$flags$))return Bn(C,C.$ancestorComponent$),U(()=>Pr(C,x));C.$flags$|=512},Pr=(C,x)=>{const $=C.$lazyInstance$;let re;return x&&(C.$flags$|=256,C.$queuedListeners$&&(C.$queuedListeners$.map(([k,J])=>At($,k,J)),C.$queuedListeners$=null),re=At($,"componentWillLoad")),re=dr(re,()=>At($,"componentWillRender")),dr(re,()=>ao(C,$,x))},ao=function(){var C=(0,s.Z)(function*(x,j,$){const re=x.$hostElement$,J=re["s-rc"];$&&(C=>{const x=C.$cmpMeta$,j=C.$hostElement$,$=x.$flags$,k=Ze(j.shadowRoot?j.shadowRoot:j.getRootNode(),x,C.$modeName$);10&$&&(j["s-sc"]=k,j.classList.add(k+"-h"),2&$&&j.classList.add(k+"-s"))})(x);pt(x,j),J&&(J.map(he=>he()),re["s-rc"]=void 0);{const he=re["s-p"],Ce=()=>on(x);0===he.length?Ce():(Promise.all(he).then(Ce),x.$flags$|=4,he.length=0)}});return function(j,$,re){return C.apply(this,arguments)}}(),pt=(C,x,j)=>{try{x=x.render&&x.render(),C.$flags$&=-17,C.$flags$|=2,((C,x)=>{const j=C.$hostElement$,$=C.$cmpMeta$,re=C.$vnode$||gn(null,null),k=(C=>C&&C.$tag$===rn)(x)?x:an(null,null,x);if(Te=j.tagName,$.$attrsToReflect$&&(k.$attrs$=k.$attrs$||{},$.$attrsToReflect$.map(([J,ie])=>k.$attrs$[ie]=j[J])),k.$tag$=null,k.$flags$|=4,C.$vnode$=k,k.$elm$=re.$elm$=j.shadowRoot||j,Ne=j["s-sc"],je=j["s-cr"],ve=0!=(1&$.$flags$),Y=!1,zt(re,k),te.$flags$|=1,Z){In(k.$elm$);let J,ie,he,Ce,tt,ut,Dt=0;for(;Dt{const j=C.$hostElement$,re=C.$lazyInstance$,k=C.$ancestorComponent$;At(re,"componentDidRender"),64&C.$flags$?At(re,"componentDidUpdate"):(C.$flags$|=64,er(j),At(re,"componentDidLoad"),C.$onReadyResolve$(j),k||gr()),C.$onInstanceResolve$(j),C.$onRenderResolve$&&(C.$onRenderResolve$(),C.$onRenderResolve$=void 0),512&C.$flags$&&Lt(()=>hn(C,!1)),C.$flags$&=-517},ir=C=>{{const x=at(C),j=x.$hostElement$.isConnected;return j&&2==(18&x.$flags$)&&hn(x,!1),j}},gr=C=>{er(X.documentElement),Lt(()=>wn(K,"appload",{detail:{namespace:"ionic"}}))},At=(C,x,j)=>{if(C&&C[x])try{return C[x](j)}catch($){yt($)}},dr=(C,x)=>C&&C.then?C.then(x):x(),er=C=>C.classList.add("hydrated"),rr=(C,x,j,$,re,k,J)=>{let ie,he,Ce,tt;if(1===k.nodeType){for(ie=k.getAttribute("c-id"),ie&&(he=ie.split("."),(he[0]===J||"0"===he[0])&&(Ce={$flags$:0,$hostId$:he[0],$nodeId$:he[1],$depth$:he[2],$index$:he[3],$tag$:k.tagName.toLowerCase(),$elm$:k,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},x.push(Ce),k.removeAttribute("c-id"),C.$children$||(C.$children$=[]),C.$children$[Ce.$index$]=Ce,C=Ce,$&&"0"===Ce.$depth$&&($[Ce.$index$]=Ce.$elm$))),tt=k.childNodes.length-1;tt>=0;tt--)rr(C,x,j,$,re,k.childNodes[tt],J);if(k.shadowRoot)for(tt=k.shadowRoot.childNodes.length-1;tt>=0;tt--)rr(C,x,j,$,re,k.shadowRoot.childNodes[tt],J)}else if(8===k.nodeType)he=k.nodeValue.split("."),(he[1]===J||"0"===he[1])&&(ie=he[0],Ce={$flags$:0,$hostId$:he[1],$nodeId$:he[2],$depth$:he[3],$index$:he[4],$elm$:k,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===ie?(Ce.$elm$=k.nextSibling,Ce.$elm$&&3===Ce.$elm$.nodeType&&(Ce.$text$=Ce.$elm$.textContent,x.push(Ce),k.remove(),C.$children$||(C.$children$=[]),C.$children$[Ce.$index$]=Ce,$&&"0"===Ce.$depth$&&($[Ce.$index$]=Ce.$elm$))):Ce.$hostId$===J&&("s"===ie?(Ce.$tag$="slot",k["s-sn"]=he[5]?Ce.$name$=he[5]:"",k["s-sr"]=!0,$&&(Ce.$elm$=X.createElement(Ce.$tag$),Ce.$name$&&Ce.$elm$.setAttribute("name",Ce.$name$),k.parentNode.insertBefore(Ce.$elm$,k),k.remove(),"0"===Ce.$depth$&&($[Ce.$index$]=Ce.$elm$)),j.push(Ce),C.$children$||(C.$children$=[]),C.$children$[Ce.$index$]=Ce):"r"===ie&&($?k.remove():(re["s-cr"]=k,k["s-cn"]=!0))));else if(C&&"style"===C.$tag$){const ut=gn(null,k.textContent);ut.$elm$=k,ut.$index$="0",C.$children$=[ut]}},mr=(C,x)=>{if(1===C.nodeType){let j=0;for(;j{if(x.$members$){C.watchers&&(x.$watchers$=C.watchers);const $=Object.entries(x.$members$),re=C.prototype;if($.map(([k,[J]])=>{31&J||2&j&&32&J?Object.defineProperty(re,k,{get(){return((C,x)=>at(this).$instanceValues$.get(x))(0,k)},set(ie){((C,x,j,$)=>{const re=at(C),k=re.$hostElement$,J=re.$instanceValues$.get(x),ie=re.$flags$,he=re.$lazyInstance$;j=((C,x)=>null==C||It(C)?C:4&x?"false"!==C&&(""===C||!!C):2&x?parseFloat(C):1&x?String(C):C)(j,$.$members$[x][0]);const Ce=Number.isNaN(J)&&Number.isNaN(j);if((!(8&ie)||void 0===J)&&j!==J&&!Ce&&(re.$instanceValues$.set(x,j),he)){if($.$watchers$&&128&ie){const ut=$.$watchers$[x];ut&&ut.map(Dt=>{try{he[Dt](j,J,x)}catch(Ct){yt(Ct,k)}})}2==(18&ie)&&hn(re,!1)}})(this,k,ie,x)},configurable:!0,enumerable:!0}):1&j&&64&J&&Object.defineProperty(re,k,{value(...ie){const he=at(this);return he.$onInstancePromise$.then(()=>he.$lazyInstance$[k](...ie))}})}),1&j){const k=new Map;re.attributeChangedCallback=function(J,ie,he){te.jmp(()=>{const Ce=k.get(J);if(this.hasOwnProperty(Ce))he=this[Ce],delete this[Ce];else if(re.hasOwnProperty(Ce)&&"number"==typeof this[Ce]&&this[Ce]==he)return;this[Ce]=(null!==he||"boolean"!=typeof this[Ce])&&he})},C.observedAttributes=$.filter(([J,ie])=>15&ie[0]).map(([J,ie])=>{const he=ie[1]||J;return k.set(he,J),512&ie[0]&&x.$attrsToReflect$.push([J,he]),he})}}return C},sr=function(){var C=(0,s.Z)(function*(x,j,$,re,k){if(0==(32&j.$flags$)){{if(j.$flags$|=32,(k=Ut($)).then){const Ce=()=>{};k=yield k,Ce()}k.isProxied||($.$watchers$=k.watchers,Un(k,$,2),k.isProxied=!0);const he=()=>{};j.$flags$|=8;try{new k(j)}catch(Ce){yt(Ce)}j.$flags$&=-9,j.$flags$|=128,he(),Er(j.$lazyInstance$)}if(k.style){let he=k.style;"string"!=typeof he&&(he=he[j.$modeName$=(C=>Vt.map(x=>x(C)).find(x=>!!x))(x)]);const Ce=Ve($,j.$modeName$);if(!Jt.has(Ce)){const tt=()=>{};jt(Ce,he,!!(1&$.$flags$)),tt()}}}const J=j.$ancestorComponent$,ie=()=>hn(j,!0);J&&J["s-rc"]?J["s-rc"].push(ie):ie()});return function(j,$,re,k,J){return C.apply(this,arguments)}}(),Er=C=>{At(C,"connectedCallback")},Tn=C=>{const x=C["s-cr"]=X.createComment("");x["s-cn"]=!0,C.insertBefore(x,C.firstChild)},Wr=(C,x={})=>{const $=[],re=x.exclude||[],k=K.customElements,J=X.head,ie=J.querySelector("meta[charset]"),he=X.createElement("style"),Ce=[],tt=X.querySelectorAll(`[${Qe}]`);let ut,Dt=!0,Ct=0;for(Object.assign(te,x),te.$resourcesUrl$=new URL(x.resourcesUrl||"./",X.baseURI).href,te.$flags$|=2;Ct{mn[1].map(sn=>{const An={$flags$:sn[0],$tagName$:sn[1],$members$:sn[2],$listeners$:sn[3]};An.$members$=sn[2],An.$listeners$=sn[3],An.$attrsToReflect$=[],An.$watchers$={};const yr=An.$tagName$,Ur=class extends HTMLElement{constructor(Yn){super(Yn),Dr(Yn=this,An),1&An.$flags$&&Yn.attachShadow({mode:"open",delegatesFocus:!!(16&An.$flags$)})}connectedCallback(){ut&&(clearTimeout(ut),ut=null),Dt?Ce.push(this):te.jmp(()=>(C=>{if(0==(1&te.$flags$)){const x=at(C),j=x.$cmpMeta$,$=()=>{};if(1&x.$flags$)ne(C,x,j.$listeners$),Er(x.$lazyInstance$);else{let re;if(x.$flags$|=1,re=C.getAttribute(Se),re){if(1&j.$flags$){const k=Ze(C.shadowRoot,j,C.getAttribute("s-mode"));C.classList.remove(k+"-h",k+"-s")}((C,x,j,$)=>{const k=C.shadowRoot,J=[],he=k?[]:null,Ce=$.$vnode$=gn(x,null);te.$orgLocNodes$||mr(X.body,te.$orgLocNodes$=new Map),C[Se]=j,C.removeAttribute(Se),rr(Ce,J,[],he,C,C,j),J.map(tt=>{const ut=tt.$hostId$+"."+tt.$nodeId$,Dt=te.$orgLocNodes$.get(ut),Ct=tt.$elm$;Dt&&""===Dt["s-en"]&&Dt.parentNode.insertBefore(Ct,Dt.nextSibling),k||(Ct["s-hn"]=x,Dt&&(Ct["s-ol"]=Dt,Ct["s-ol"]["s-nr"]=Ct)),te.$orgLocNodes$.delete(ut)}),k&&he.map(tt=>{tt&&k.appendChild(tt)})})(C,j.$tagName$,re,x)}re||12&j.$flags$&&Tn(C);{let k=C;for(;k=k.parentNode||k.host;)if(1===k.nodeType&&k.hasAttribute("s-id")&&k["s-p"]||k["s-p"]){Bn(x,x.$ancestorComponent$=k);break}}j.$members$&&Object.entries(j.$members$).map(([k,[J]])=>{if(31&J&&C.hasOwnProperty(k)){const ie=C[k];delete C[k],C[k]=ie}}),Lt(()=>sr(C,x,j))}$()}})(this))}disconnectedCallback(){te.jmp(()=>(C=>{if(0==(1&te.$flags$)){const x=at(this),j=x.$lazyInstance$;x.$rmListeners$&&(x.$rmListeners$.map($=>$()),x.$rmListeners$=void 0),At(j,"disconnectedCallback")}})())}componentOnReady(){return at(this).$onReadyPromise$}};An.$lazyBundleId$=mn[0],!re.includes(yr)&&!k.get(yr)&&($.push(yr),k.define(yr,Un(Ur,An,1)))})}),he.innerHTML=$+"{visibility:hidden}.hydrated{visibility:inherit}",he.setAttribute("data-styles",""),J.insertBefore(he,ie?ie.nextSibling:J.firstChild),Dt=!1,Ce.length?Ce.map(mn=>mn.connectedCallback()):te.jmp(()=>ut=setTimeout(gr,30))},kt=C=>{const x=new URL(C,te.$resourcesUrl$);return x.origin!==K.location.origin?x.href:x.pathname},Gn=new WeakMap,at=C=>Gn.get(C),Vn=(C,x)=>Gn.set(x.$lazyInstance$=C,x),Dr=(C,x)=>{const j={$flags$:0,$hostElement$:C,$cmpMeta$:x,$instanceValues$:new Map};return j.$onInstancePromise$=new Promise($=>j.$onInstanceResolve$=$),j.$onReadyPromise$=new Promise($=>j.$onReadyResolve$=$),C["s-p"]=[],C["s-rc"]=[],ne(C,j,x.$listeners$),Gn.set(C,j)},jn=(C,x)=>x in C,yt=(C,x)=>(0,console.error)(C,x),Ht=new Map,Ut=(C,x,j)=>{const $=C.$tagName$.replace(/-/g,"_"),re=C.$lazyBundleId$,k=Ht.get(re);return k?k[$]:L(863)(`./${re}.entry.js`).then(J=>(Ht.set(re,J),J[$]),yt)},Jt=new Map,Vt=[],Sn=[],zn=[],En=(C,x)=>j=>{C.push(j),ee||(ee=!0,x&&4&te.$flags$?Lt(qn):te.raf(qn))},Fr=C=>{for(let x=0;x{Fr(Sn),Fr(zn),(ee=Sn.length>0)&&te.raf(qn)},Lt=C=>se().then(C),$r=En(Sn,!1),U=En(zn,!0),de={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},6894:(Tt,Ge,L)=>{"use strict";L.d(Ge,{a:()=>K,b:()=>Ot,c:()=>Ne,g:()=>ee,i:()=>jt});var s=L(1027);class O{constructor(){this.m=new Map}reset(Fe){this.m=new Map(Object.entries(Fe))}get(Fe,Ve){const lt=this.m.get(Fe);return void 0!==lt?lt:Ve}getBoolean(Fe,Ve=!1){const lt=this.m.get(Fe);return void 0===lt?Ve:"string"==typeof lt?"true"===lt:!!lt}getNumber(Fe,Ve){const lt=parseFloat(this.m.get(Fe));return isNaN(lt)?void 0!==Ve?Ve:NaN:lt}set(Fe,Ve){this.m.set(Fe,Ve)}}const Ne=new O,Z="ionic:",Q="ionic-persist-config",ee=Ze=>X(Ze),K=(Ze,Fe)=>("string"==typeof Ze&&(Fe=Ze,Ze=void 0),ee(Ze).includes(Fe)),X=(Ze=window)=>{if(void 0===Ze)return[];Ze.Ionic=Ze.Ionic||{};let Fe=Ze.Ionic.platforms;return null==Fe&&(Fe=Ze.Ionic.platforms=te(Ze),Fe.forEach(Ve=>Ze.document.documentElement.classList.add(`plt-${Ve}`))),Fe},te=Ze=>{const Fe=Ne.get("platform");return Object.keys(Le).filter(Ve=>{const lt=null==Fe?void 0:Fe[Ve];return"function"==typeof lt?lt(Ze):Le[Ve](Ze)})},_e=Ze=>!!(xe(Ze,/iPad/i)||xe(Ze,/Macintosh/i)&&Xe(Ze)),ne=Ze=>xe(Ze,/android|sink/i),Xe=Ze=>Ae(Ze,"(any-pointer:coarse)"),De=Ze=>$e(Ze)||Se(Ze),$e=Ze=>!!(Ze.cordova||Ze.phonegap||Ze.PhoneGap),Se=Ze=>{const Fe=Ze.Capacitor;return!!(null==Fe?void 0:Fe.isNative)},xe=(Ze,Fe)=>Fe.test(Ze.navigator.userAgent),Ae=(Ze,Fe)=>{var Ve;return null===(Ve=Ze.matchMedia)||void 0===Ve?void 0:Ve.call(Ze,Fe).matches},Le={ipad:_e,iphone:Ze=>xe(Ze,/iPhone/i),ios:Ze=>xe(Ze,/iPhone|iPod/i)||_e(Ze),android:ne,phablet:Ze=>{const Fe=Ze.innerWidth,Ve=Ze.innerHeight,lt=Math.min(Fe,Ve),rt=Math.max(Fe,Ve);return lt>390&<<520&&rt>620&&rt<800},tablet:Ze=>{const Fe=Ze.innerWidth,Ve=Ze.innerHeight,lt=Math.min(Fe,Ve),rt=Math.max(Fe,Ve);return _e(Ze)||(Ze=>ne(Ze)&&!xe(Ze,/mobile/i))(Ze)||lt>460&<<820&&rt>780&&rt<1400},cordova:$e,capacitor:Se,electron:Ze=>xe(Ze,/electron/i),pwa:Ze=>{var Fe;return!(!(null===(Fe=Ze.matchMedia)||void 0===Fe?void 0:Fe.call(Ze,"(display-mode: standalone)").matches)&&!Ze.navigator.standalone)},mobile:Xe,mobileweb:Ze=>Xe(Ze)&&!De(Ze),desktop:Ze=>!Xe(Ze),hybrid:De};let We;const Ot=Ze=>Ze&&(0,s.g)(Ze)||We,jt=(Ze={})=>{if("undefined"==typeof window)return;const Fe=window.document,Ve=window,lt=Ve.Ionic=Ve.Ionic||{},rt={};Ze._ael&&(rt.ael=Ze._ael),Ze._rel&&(rt.rel=Ze._rel),Ze._ce&&(rt.ce=Ze._ce),(0,s.s)(rt);const Be=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(Ze=>{try{const Fe=Ze.sessionStorage.getItem(Q);return null!==Fe?JSON.parse(Fe):{}}catch(Fe){return{}}})(Ve)),{persistConfig:!1}),lt.config),(Ze=>{const Fe={};return Ze.location.search.slice(1).split("&").map(Ve=>Ve.split("=")).map(([Ve,lt])=>[decodeURIComponent(Ve),decodeURIComponent(lt)]).filter(([Ve])=>((Ze,Fe)=>Ze.substr(0,Fe.length)===Fe)(Ve,Z)).map(([Ve,lt])=>[Ve.slice(Z.length),lt]).forEach(([Ve,lt])=>{Fe[Ve]=lt}),Fe})(Ve)),Ze);Ne.reset(Be),Ne.getBoolean("persistConfig")&&((Ze,Fe)=>{try{Ze.sessionStorage.setItem(Q,JSON.stringify(Fe))}catch(Ve){return}})(Ve,Be),X(Ve),lt.config=Ne,lt.mode=We=Ne.get("mode",Fe.documentElement.getAttribute("mode")||(K(Ve,"ios")?"ios":"md")),Ne.set("mode",We),Fe.documentElement.setAttribute("mode",We),Fe.documentElement.classList.add(We),Ne.getBoolean("_testing")&&Ne.set("animated",!1);const He=Et=>{var ft;return null===(ft=Et.tagName)||void 0===ft?void 0:ft.startsWith("ION-")},_t=Et=>["ios","md"].includes(Et);(0,s.a)(Et=>{for(;Et;){const ft=Et.mode||Et.getAttribute("mode");if(ft){if(_t(ft))return ft;He(Et)&&console.warn('Invalid ionic mode: "'+ft+'", expected: "ios" or "md"')}Et=Et.parentElement}return We})}},2816:(Tt,Ge,L)=>{"use strict";L.r(Ge),L.d(Ge,{iosTransitionAnimation:()=>te,shadow:()=>Y});var s=L(1527),O=L(6387);L(7857),L(1027);const ve=ce=>document.querySelector(`${ce}.ion-cloned-element`),Y=ce=>ce.shadowRoot||ce,Z=ce=>{const _e="ION-TABS"===ce.tagName?ce:ce.querySelector("ion-tabs"),se="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=_e){const me=_e.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=me?me.querySelector(se):null}return ce.querySelector(se)},Q=(ce,_e)=>{const se="ION-TABS"===ce.tagName?ce:ce.querySelector("ion-tabs");let me=[];if(null!=se){const ne=se.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=ne&&(me=ne.querySelectorAll("ion-buttons"))}else me=ce.querySelectorAll("ion-buttons");for(const ne of me){const Me=ne.closest("ion-header"),Re=Me&&!Me.classList.contains("header-collapse-condense-inactive"),we=ne.querySelector("ion-back-button"),Xe=ne.classList.contains("buttons-collapse"),Je="start"===ne.slot||""===ne.slot;if(null!==we&&Je&&(Xe&&Re&&_e||!Xe))return we}return null},K=(ce,_e,se,me,ne,Me)=>{const Re=_e?`calc(100% - ${Me.right+4}px)`:Me.left-4+"px",we=_e?"7px":"-7px",Xe=_e?"-4px":"4px",Je=_e?"-4px":"4px",De=_e?"right":"left",$e=_e?"left":"right",qe=se?[{offset:0,opacity:1,transform:`translate3d(${Xe}, ${Me.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${we}, ${ne.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${we}, ${ne.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${Xe}, ${Me.top-46}px, 0) scale(1)`}],Le=se?[{offset:0,opacity:1,transform:`translate3d(${Je}, ${Me.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${Je}, ${Me.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${Je}, ${Me.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${Je}, ${Me.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${Je}, ${Me.top-46}px, 0) scale(1)`}],We=(0,s.c)(),Ot=(0,s.c)(),jt=ve("ion-back-button"),Ze=Y(jt).querySelector(".button-text"),Fe=Y(jt).querySelector("ion-icon");jt.text=me.text,jt.mode=me.mode,jt.icon=me.icon,jt.color=me.color,jt.disabled=me.disabled,jt.style.setProperty("display","block"),jt.style.setProperty("position","fixed"),Ot.addElement(Fe),We.addElement(Ze),We.beforeStyles({"transform-origin":`${De} center`}).beforeAddWrite(()=>{me.style.setProperty("display","none"),jt.style.setProperty(De,Re)}).afterAddWrite(()=>{me.style.setProperty("display",""),jt.style.setProperty("display","none"),jt.style.removeProperty(De)}).keyframes(qe),Ot.beforeStyles({"transform-origin":`${$e} center`}).keyframes(Le),ce.addAnimation([We,Ot])},X=(ce,_e,se,me,ne,Me)=>{const Re=_e?`calc(100% - ${ne.right}px)`:`${ne.left}px`,we=_e?"-18px":"18px",Xe=_e?"right":"left",$e=se?[{offset:0,opacity:0,transform:`translate3d(${we}, ${Me.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${ne.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${ne.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${we}, ${Me.top-4}px, 0) scale(0.5)`}],Se=ve("ion-title"),Qe=(0,s.c)();Se.innerText=me.innerText,Se.size=me.size,Se.color=me.color,Qe.addElement(Se),Qe.beforeStyles({"transform-origin":`${Xe} center`,height:"46px",display:"",position:"relative",[Xe]:Re}).beforeAddWrite(()=>{me.style.setProperty("display","none")}).afterAddWrite(()=>{me.style.setProperty("display",""),Se.style.setProperty("display","none")}).keyframes($e),ce.addAnimation(Qe)},te=(ce,_e)=>{var se;try{const me="cubic-bezier(0.32,0.72,0,1)",ne="opacity",Me="transform",Re="0%",we=.8,Xe="rtl"===ce.ownerDocument.dir,Je=Xe?"-99.5%":"99.5%",De=Xe?"33%":"-33%",$e=_e.enteringEl,Se=_e.leavingEl,Qe="back"===_e.direction,qe=$e.querySelector(":scope > ion-content"),xe=$e.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),Ae=$e.querySelectorAll(":scope > ion-header > ion-toolbar"),Le=(0,s.c)(),We=(0,s.c)();if(Le.addElement($e).duration((null!==(se=_e.duration)&&void 0!==se?se:0)||540).easing(_e.easing||me).fill("both").beforeRemoveClass("ion-page-invisible"),Se&&null!=ce){const Fe=(0,s.c)();Fe.addElement(ce),Le.addAnimation(Fe)}if(qe||0!==Ae.length||0!==xe.length?(We.addElement(qe),We.addElement(xe)):We.addElement($e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Le.addAnimation(We),Qe?We.beforeClearStyles([ne]).fromTo("transform",`translateX(${De})`,`translateX(${Re})`).fromTo(ne,we,1):We.beforeClearStyles([ne]).fromTo("transform",`translateX(${Je})`,`translateX(${Re})`),qe){const Fe=Y(qe).querySelector(".transition-effect");if(Fe){const Ve=Fe.querySelector(".transition-cover"),lt=Fe.querySelector(".transition-shadow"),rt=(0,s.c)(),Be=(0,s.c)(),He=(0,s.c)();rt.addElement(Fe).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Be.addElement(Ve).beforeClearStyles([ne]).fromTo(ne,0,.1),He.addElement(lt).beforeClearStyles([ne]).fromTo(ne,.03,.7),rt.addAnimation([Be,He]),We.addAnimation([rt])}}const Ot=$e.querySelector("ion-header.header-collapse-condense"),{forward:jt,backward:Ze}=((ce,_e,se,me,ne)=>{const Me=Q(me,se),Re=Z(ne),we=Z(me),Xe=Q(ne,se),Je=null!==Me&&null!==Re&&!se,De=null!==we&&null!==Xe&&se;if(Je){const $e=Re.getBoundingClientRect(),Se=Me.getBoundingClientRect();X(ce,_e,se,Re,$e,Se),K(ce,_e,se,Me,$e,Se)}else if(De){const $e=we.getBoundingClientRect(),Se=Xe.getBoundingClientRect();X(ce,_e,se,we,$e,Se),K(ce,_e,se,Xe,$e,Se)}return{forward:Je,backward:De}})(Le,Xe,Qe,$e,Se);if(Ae.forEach(Fe=>{const Ve=(0,s.c)();Ve.addElement(Fe),Le.addAnimation(Ve);const lt=(0,s.c)();lt.addElement(Fe.querySelector("ion-title"));const rt=(0,s.c)(),Be=Array.from(Fe.querySelectorAll("ion-buttons,[menuToggle]")),He=Fe.closest("ion-header"),_t=null==He?void 0:He.classList.contains("header-collapse-condense-inactive");let Et;Et=Be.filter(Qe?gn=>{const rn=gn.classList.contains("buttons-collapse");return rn&&!_t||!rn}:gn=>!gn.classList.contains("buttons-collapse")),rt.addElement(Et);const ft=(0,s.c)();ft.addElement(Fe.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Rt=(0,s.c)();Rt.addElement(Y(Fe).querySelector(".toolbar-background"));const It=(0,s.c)(),an=Fe.querySelector("ion-back-button");if(an&&It.addElement(an),Ve.addAnimation([lt,rt,ft,Rt,It]),rt.fromTo(ne,.01,1),ft.fromTo(ne,.01,1),Qe)_t||lt.fromTo("transform",`translateX(${De})`,`translateX(${Re})`).fromTo(ne,.01,1),ft.fromTo("transform",`translateX(${De})`,`translateX(${Re})`),It.fromTo(ne,.01,1);else if(Ot||lt.fromTo("transform",`translateX(${Je})`,`translateX(${Re})`).fromTo(ne,.01,1),ft.fromTo("transform",`translateX(${Je})`,`translateX(${Re})`),Rt.beforeClearStyles([ne,"transform"]),(null==He?void 0:He.translucent)?Rt.fromTo("transform",Xe?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Rt.fromTo(ne,.01,"var(--opacity)"),jt||It.fromTo(ne,.01,1),an&&!jt){const rn=(0,s.c)();rn.addElement(Y(an).querySelector(".button-text")).fromTo("transform",Xe?"translateX(-100px)":"translateX(100px)","translateX(0px)"),Ve.addAnimation(rn)}}),Se){const Fe=(0,s.c)(),Ve=Se.querySelector(":scope > ion-content"),lt=Se.querySelectorAll(":scope > ion-header > ion-toolbar"),rt=Se.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(Ve||0!==lt.length||0!==rt.length?(Fe.addElement(Ve),Fe.addElement(rt)):Fe.addElement(Se.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Le.addAnimation(Fe),Qe){Fe.beforeClearStyles([ne]).fromTo("transform",`translateX(${Re})`,Xe?"translateX(-100%)":"translateX(100%)");const Be=(0,O.g)(Se);Le.afterAddWrite(()=>{"normal"===Le.getDirection()&&Be.style.setProperty("display","none")})}else Fe.fromTo("transform",`translateX(${Re})`,`translateX(${De})`).fromTo(ne,1,we);if(Ve){const Be=Y(Ve).querySelector(".transition-effect");if(Be){const He=Be.querySelector(".transition-cover"),_t=Be.querySelector(".transition-shadow"),Et=(0,s.c)(),ft=(0,s.c)(),Rt=(0,s.c)();Et.addElement(Be).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),ft.addElement(He).beforeClearStyles([ne]).fromTo(ne,.1,0),Rt.addElement(_t).beforeClearStyles([ne]).fromTo(ne,.7,.03),Et.addAnimation([ft,Rt]),Fe.addAnimation([Et])}}lt.forEach(Be=>{const He=(0,s.c)();He.addElement(Be);const _t=(0,s.c)();_t.addElement(Be.querySelector("ion-title"));const Et=(0,s.c)(),ft=Be.querySelectorAll("ion-buttons,[menuToggle]"),Rt=Be.closest("ion-header"),It=null==Rt?void 0:Rt.classList.contains("header-collapse-condense-inactive"),an=Array.from(ft).filter(Rn=>{const Jn=Rn.classList.contains("buttons-collapse");return Jn&&!It||!Jn});Et.addElement(an);const gn=(0,s.c)(),rn=Be.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");rn.length>0&&gn.addElement(rn);const Nt=(0,s.c)();Nt.addElement(Y(Be).querySelector(".toolbar-background"));const Fn=(0,s.c)(),Yt=Be.querySelector("ion-back-button");if(Yt&&Fn.addElement(Yt),He.addAnimation([_t,Et,gn,Fn,Nt]),Le.addAnimation(He),Fn.fromTo(ne,.99,0),Et.fromTo(ne,.99,0),gn.fromTo(ne,.99,0),Qe){if(It||_t.fromTo("transform",`translateX(${Re})`,Xe?"translateX(-100%)":"translateX(100%)").fromTo(ne,.99,0),gn.fromTo("transform",`translateX(${Re})`,Xe?"translateX(-100%)":"translateX(100%)"),Nt.beforeClearStyles([ne,"transform"]),(null==Rt?void 0:Rt.translucent)?Nt.fromTo("transform","translateX(0px)",Xe?"translateX(-100%)":"translateX(100%)"):Nt.fromTo(ne,"var(--opacity)",0),Yt&&!Ze){const Jn=(0,s.c)();Jn.addElement(Y(Yt).querySelector(".button-text")).fromTo("transform",`translateX(${Re})`,`translateX(${(Xe?-124:124)+"px"})`),He.addAnimation(Jn)}}else It||_t.fromTo("transform",`translateX(${Re})`,`translateX(${De})`).fromTo(ne,.99,0).afterClearStyles([Me,ne]),gn.fromTo("transform",`translateX(${Re})`,`translateX(${De})`).afterClearStyles([Me,ne]),Fn.afterClearStyles([ne]),_t.afterClearStyles([ne]),Et.afterClearStyles([ne])})}return Le}catch(me){throw me}}},5323:(Tt,Ge,L)=>{"use strict";L.r(Ge),L.d(Ge,{mdTransitionAnimation:()=>Te});var s=L(1527),O=L(6387);L(7857),L(1027);const Te=(ve,Y)=>{var Z,Q,ee;const te="back"===Y.direction,_e=Y.leavingEl,se=(0,O.g)(Y.enteringEl),me=se.querySelector("ion-toolbar"),ne=(0,s.c)();if(ne.addElement(se).fill("both").beforeRemoveClass("ion-page-invisible"),te?ne.duration((null!==(Z=Y.duration)&&void 0!==Z?Z:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):ne.duration((null!==(Q=Y.duration)&&void 0!==Q?Q:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),me){const Me=(0,s.c)();Me.addElement(me),ne.addAnimation(Me)}if(_e&&te){ne.duration((null!==(ee=Y.duration)&&void 0!==ee?ee:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const Me=(0,s.c)();Me.addElement((0,O.g)(_e)).onFinish(Re=>{1===Re&&Me.elements.length>0&&Me.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),ne.addAnimation(Me)}return ne}},1963:(Tt,Ge,L)=>{"use strict";L.d(Ge,{B:()=>Ve,G:()=>lt,a:()=>Z,b:()=>Q,c:()=>te,d:()=>Qe,e:()=>_e,f:()=>xe,g:()=>We,h:()=>ve,i:()=>jt,j:()=>ne,k:()=>$e,l:()=>ee,m:()=>K,s:()=>Fe,t:()=>ce});var s=L(8239),O=L(6894),Ne=L(8657),je=L(1572);let Te=0;const ve=new WeakMap,Y=rt=>({create:Be=>se(rt,Be),dismiss:(Be,He,_t)=>Je(document,Be,He,rt,_t),getTop:()=>(0,s.Z)(function*(){return $e(document,rt)})()}),Z=Y("ion-alert"),Q=Y("ion-action-sheet"),ee=Y("ion-loading"),K=Y("ion-modal"),te=Y("ion-popover"),ce=Y("ion-toast"),_e=rt=>{"undefined"!=typeof document&&Xe(document);const Be=Te++;rt.overlayIndex=Be,rt.hasAttribute("id")||(rt.id=`ion-overlay-${Be}`)},se=(rt,Be)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(rt).then(()=>{const He=document.createElement(rt);return He.classList.add("overlay-hidden"),Object.assign(He,Object.assign(Object.assign({},Be),{hasController:!0})),Ae(document).appendChild(He),new Promise(_t=>(0,je.c)(He,_t))}):Promise.resolve(),me='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',ne=(rt,Be)=>{let He=rt.querySelector(me);const _t=null==He?void 0:He.shadowRoot;_t&&(He=_t.querySelector(me)||He),He?(0,je.f)(He):Be.focus()},Re=(rt,Be)=>{const He=Array.from(rt.querySelectorAll(me));let _t=He.length>0?He[He.length-1]:null;const Et=null==_t?void 0:_t.shadowRoot;Et&&(_t=Et.querySelector(me)||_t),_t?_t.focus():Be.focus()},Xe=rt=>{0===Te&&(Te=1,rt.addEventListener("focus",Be=>{((rt,Be)=>{const He=$e(Be,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),_t=rt.target;He&&_t&&!He.classList.contains("ion-disable-focus-trap")&&(He.shadowRoot?(()=>{if(He.contains(_t))He.lastFocus=_t;else{const Rt=He.lastFocus;ne(He,He),Rt===Be.activeElement&&Re(He,He),He.lastFocus=Be.activeElement}})():(()=>{if(He===_t)He.lastFocus=void 0;else{const Rt=(0,je.g)(He);if(!Rt.contains(_t))return;const It=Rt.querySelector(".ion-overlay-wrapper");if(!It)return;if(It.contains(_t))He.lastFocus=_t;else{const an=He.lastFocus;ne(It,He),an===Be.activeElement&&Re(It,He),He.lastFocus=Be.activeElement}}})())})(Be,rt)},!0),rt.addEventListener("ionBackButton",Be=>{const He=$e(rt);(null==He?void 0:He.backdropDismiss)&&Be.detail.register(Ne.OVERLAY_BACK_BUTTON_PRIORITY,()=>He.dismiss(void 0,Ve))}),rt.addEventListener("keyup",Be=>{if("Escape"===Be.key){const He=$e(rt);(null==He?void 0:He.backdropDismiss)&&He.dismiss(void 0,Ve)}}))},Je=(rt,Be,He,_t,Et)=>{const ft=$e(rt,_t,Et);return ft?ft.dismiss(Be,He):Promise.reject("overlay does not exist")},$e=(rt,Be,He)=>{const _t=((rt,Be)=>(void 0===Be&&(Be="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(rt.querySelectorAll(Be)).filter(He=>He.overlayIndex>0)))(rt,Be).filter(Et=>!(rt=>rt.classList.contains("overlay-hidden"))(Et));return void 0===He?_t[_t.length-1]:_t.find(Et=>Et.id===He)},Se=(rt=!1)=>{const He=Ae(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");!He||(rt?He.setAttribute("aria-hidden","true"):He.removeAttribute("aria-hidden"))},Qe=function(){var rt=(0,s.Z)(function*(Be,He,_t,Et,ft){var Rt,It;if(Be.presented)return;Se(!0),Be.presented=!0,Be.willPresent.emit(),null===(Rt=Be.willPresentShorthand)||void 0===Rt||Rt.emit();const an=(0,O.b)(Be),gn=Be.enterAnimation?Be.enterAnimation:O.c.get(He,"ios"===an?_t:Et);(yield Le(Be,gn,Be.el,ft))&&(Be.didPresent.emit(),null===(It=Be.didPresentShorthand)||void 0===It||It.emit()),"ION-TOAST"!==Be.el.tagName&&qe(Be.el),Be.keyboardClose&&(null===document.activeElement||!Be.el.contains(document.activeElement))&&Be.el.focus()});return function(He,_t,Et,ft,Rt){return rt.apply(this,arguments)}}(),qe=function(){var rt=(0,s.Z)(function*(Be){let He=document.activeElement;if(!He)return;const _t=null==He?void 0:He.shadowRoot;_t&&(He=_t.querySelector(me)||He),yield Be.onDidDismiss(),He.focus()});return function(He){return rt.apply(this,arguments)}}(),xe=function(){var rt=(0,s.Z)(function*(Be,He,_t,Et,ft,Rt,It){var an,gn;if(!Be.presented)return!1;Se(!1),Be.presented=!1;try{Be.el.style.setProperty("pointer-events","none"),Be.willDismiss.emit({data:He,role:_t}),null===(an=Be.willDismissShorthand)||void 0===an||an.emit({data:He,role:_t});const rn=(0,O.b)(Be),Nt=Be.leaveAnimation?Be.leaveAnimation:O.c.get(Et,"ios"===rn?ft:Rt);_t!==lt&&(yield Le(Be,Nt,Be.el,It)),Be.didDismiss.emit({data:He,role:_t}),null===(gn=Be.didDismissShorthand)||void 0===gn||gn.emit({data:He,role:_t}),ve.delete(Be),Be.el.classList.add("overlay-hidden"),Be.el.style.removeProperty("pointer-events"),void 0!==Be.el.lastFocus&&(Be.el.lastFocus=void 0)}catch(rn){console.error(rn)}return Be.el.remove(),!0});return function(He,_t,Et,ft,Rt,It,an){return rt.apply(this,arguments)}}(),Ae=rt=>rt.querySelector("ion-app")||rt.body,Le=function(){var rt=(0,s.Z)(function*(Be,He,_t,Et){_t.classList.remove("overlay-hidden");const Rt=He(Be.el,Et);(!Be.animated||!O.c.getBoolean("animated",!0))&&Rt.duration(0),Be.keyboardClose&&Rt.beforeAddWrite(()=>{const an=_t.ownerDocument.activeElement;(null==an?void 0:an.matches("input,ion-input, ion-textarea"))&&an.blur()});const It=ve.get(Be)||[];return ve.set(Be,[...It,Rt]),yield Rt.play(),!0});return function(He,_t,Et,ft){return rt.apply(this,arguments)}}(),We=(rt,Be)=>{let He;const _t=new Promise(Et=>He=Et);return Ot(rt,Be,Et=>{He(Et.detail)}),_t},Ot=(rt,Be,He)=>{const _t=Et=>{(0,je.b)(rt,Be,_t),He(Et)};(0,je.a)(rt,Be,_t)},jt=rt=>"cancel"===rt||rt===Ve,Ze=rt=>rt(),Fe=(rt,Be)=>{if("function"==typeof rt)return O.c.get("_zoneGate",Ze)(()=>{try{return rt(Be)}catch(_t){throw _t}})},Ve="backdrop",lt="gesture"},1628:(Tt,Ge,L)=>{"use strict";L.d(Ge,{K:()=>ve});var s=L(8239),O=L(2430),Ne=L.n(O);const je={SecureStorage:"ionicSecureStorage",IndexedDB:Ne().INDEXEDDB,LocalStorage:Ne().LOCALSTORAGE},Te={name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:[je.SecureStorage,je.IndexedDB,je.LocalStorage]};class ve{constructor(Z=Te){this._db=null,this._secureStorageDriver=null;const Q=Object.assign({},Te,Z||{});this._config=Q}create(){var Z=this;return(0,s.Z)(function*(){const Q=Ne().createInstance(Z._config);return Z._db=Q,yield Q.setDriver(Z._config.driverOrder||[]),Z})()}defineDriver(Z){var Q=this;return(0,s.Z)(function*(){return Z._driver===je.SecureStorage&&(Q._secureStorageDriver=Z),Ne().defineDriver(Z)})()}get driver(){var Z;return(null===(Z=this._db)||void 0===Z?void 0:Z.driver())||null}assertDb(){if(!this._db)throw new Error("Database not created. Must call create() first");return this._db}get(Z){return this.assertDb().getItem(Z)}set(Z,Q){return this.assertDb().setItem(Z,Q)}remove(Z){return this.assertDb().removeItem(Z)}clear(){return this.assertDb().clear()}length(){return this.assertDb().length()}keys(){return this.assertDb().keys()}forEach(Z){return this.assertDb().iterate(Z)}setEncryptionKey(Z){var Q;if(!this._secureStorageDriver)throw new Error("@ionic-enterprise/secure-storage not installed. Encryption support not available");null===(Q=this._secureStorageDriver)||void 0===Q||Q.setEncryptionKey(Z)}}},2430:Tt=>{Tt.exports=function O(Ne,je,Te){function ve(Q,ee){if(!je[Q]){if(!Ne[Q]){if(Y)return Y(Q,!0);var X=new Error("Cannot find module '"+Q+"'");throw X.code="MODULE_NOT_FOUND",X}var te=je[Q]={exports:{}};Ne[Q][0].call(te.exports,function(ce){return ve(Ne[Q][1][ce]||ce)},te,te.exports,O,Ne,je,Te)}return je[Q].exports}for(var Y=void 0,Z=0;Z=43)}}).catch(function(){return!1})}(U).then(function(de){return me=de})}function $e(U){var de=ne[U.name],C={};C.promise=new K(function(x,j){C.resolve=x,C.reject=j}),de.deferredOperations.push(C),de.dbReady=de.dbReady?de.dbReady.then(function(){return C.promise}):C.promise}function Se(U){var C=ne[U.name].deferredOperations.pop();if(C)return C.resolve(),C.promise}function Qe(U,de){var x=ne[U.name].deferredOperations.pop();if(x)return x.reject(de),x.promise}function qe(U,de){return new K(function(C,x){if(ne[U.name]=ne[U.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},U.db){if(!de)return C(U.db);$e(U),U.db.close()}var j=[U.name];de&&j.push(U.version);var $=Z.open.apply(Z,j);de&&($.onupgradeneeded=function(re){var k=$.result;try{k.createObjectStore(U.storeName),re.oldVersion<=1&&k.createObjectStore(se)}catch(J){if("ConstraintError"!==J.name)throw J;console.warn('The database "'+U.name+'" has been upgraded from version '+re.oldVersion+" to version "+re.newVersion+', but the storage "'+U.storeName+'" already exists.')}}),$.onerror=function(re){re.preventDefault(),x($.error)},$.onsuccess=function(){var re=$.result;re.onversionchange=function(k){k.target.close()},C(re),Se(U)}})}function xe(U){return qe(U,!1)}function Ae(U){return qe(U,!0)}function Le(U,de){if(!U.db)return!0;var C=!U.db.objectStoreNames.contains(U.storeName),j=U.version>U.db.version;if(U.versionU.version&&(U.version=$)}return!0}return!1}function Ot(U){return ee([Xe(atob(U.data))],{type:U.type})}function jt(U){return U&&U.__local_forage_encoded_blob}function Ze(U){var de=this,C=de._initReady().then(function(){var x=ne[de._dbInfo.name];if(x&&x.dbReady)return x.dbReady});return te(C,U,U),C}function Ve(U,de,C,x){void 0===x&&(x=1);try{var j=U.db.transaction(U.storeName,de);C(null,j)}catch($){if(x>0&&(!U.db||"InvalidStateError"===$.name||"NotFoundError"===$.name))return K.resolve().then(function(){if(!U.db||"NotFoundError"===$.name&&!U.db.objectStoreNames.contains(U.storeName)&&U.version<=U.db.version)return U.db&&(U.version=U.db.version+1),Ae(U)}).then(function(){return function(U){$e(U);for(var de=ne[U.name],C=de.forages,x=0;x>4,he[j++]=(15&re)<<4|k>>2,he[j++]=(3&k)<<6|63&J;return ie}function On(U){var x,de=new Uint8Array(U),C="";for(x=0;x>2],C+=Fn[(3&de[x])<<4|de[x+1]>>4],C+=Fn[(15&de[x+1])<<2|de[x+2]>>6],C+=Fn[63&de[x+2]];return de.length%3==2?C=C.substring(0,C.length-1)+"=":de.length%3==1&&(C=C.substring(0,C.length-2)+"=="),C}var Zn={serialize:function(U,de){var C="";if(U&&(C=Zt.call(U)),U&&("[object ArrayBuffer]"===C||U.buffer&&"[object ArrayBuffer]"===Zt.call(U.buffer))){var x,j=Jn;U instanceof ArrayBuffer?(x=U,j+=Nn):(x=U.buffer,"[object Int8Array]"===C?j+="si08":"[object Uint8Array]"===C?j+="ui08":"[object Uint8ClampedArray]"===C?j+="uic8":"[object Int16Array]"===C?j+="si16":"[object Uint16Array]"===C?j+="ur16":"[object Int32Array]"===C?j+="si32":"[object Uint32Array]"===C?j+="ui32":"[object Float32Array]"===C?j+="fl32":"[object Float64Array]"===C?j+="fl64":de(new Error("Failed to get type for BinaryArray"))),de(j+On(x))}else if("[object Blob]"===C){var $=new FileReader;$.onload=function(){var re="~~local_forage_type~"+U.type+"~"+On(this.result);de(Jn+br+re)},$.readAsArrayBuffer(U)}else try{de(JSON.stringify(U))}catch(re){console.error("Couldn't convert value into a JSON string: ",U),de(null,re)}},deserialize:function(U){if(U.substring(0,Hn)!==Jn)return JSON.parse(U);var x,de=U.substring(Dn),C=U.substring(Hn,Dn);if(C===br&&Rn.test(de)){var j=de.match(Rn);x=j[1],de=de.substring(j[0].length)}var $=In(de);switch(C){case Nn:return $;case br:return ee([$],{type:x});case"si08":return new Int8Array($);case"ui08":return new Uint8Array($);case"uic8":return new Uint8ClampedArray($);case"si16":return new Int16Array($);case"ur16":return new Uint16Array($);case"si32":return new Int32Array($);case"ui32":return new Uint32Array($);case"fl32":return new Float32Array($);case"fl64":return new Float64Array($);default:throw new Error("Unkown type: "+C)}},stringToBuffer:In,bufferToString:On};function Qt(U,de,C,x){U.executeSql("CREATE TABLE IF NOT EXISTS "+de.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,x)}function Bn(U,de,C,x,j,$){U.executeSql(C,x,j,function(re,k){k.code===k.SYNTAX_ERR?re.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[de.storeName],function(J,ie){ie.rows.length?$(J,k):Qt(J,de,function(){J.executeSql(C,x,j,$)},$)},$):$(re,k)},$)}function ao(U,de,C,x){var j=this;U=ce(U);var $=new K(function(re,k){j.ready().then(function(){void 0===de&&(de=null);var J=de,ie=j._dbInfo;ie.serializer.serialize(de,function(he,Ce){Ce?k(Ce):ie.db.transaction(function(tt){Bn(tt,ie,"INSERT OR REPLACE INTO "+ie.storeName+" (key, value) VALUES (?, ?)",[U,he],function(){re(J)},function(ut,Dt){k(Dt)})},function(tt){if(tt.code===tt.QUOTA_ERR){if(x>0)return void re(ao.apply(j,[U,J,C,x-1]));k(tt)}})})}).catch(k)});return X($,C),$}function er(U){return new K(function(de,C){U.transaction(function(x){x.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(j,$){for(var re=[],k=0;k<$.rows.length;k++)re.push($.rows.item(k).name);de({db:U,storeNames:re})},function(j,$){C($)})},function(x){C(x)})})}var rr={_driver:"webSQLStorage",_initStorage:function(U){var de=this,C={db:null};if(U)for(var x in U)C[x]="string"!=typeof U[x]?U[x].toString():U[x];var j=new K(function($,re){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(k){return re(k)}C.db.transaction(function(k){Qt(k,C,function(){de._dbInfo=C,$()},function(J,ie){re(ie)})},re)});return C.serializer=Zn,j},_support:"function"==typeof openDatabase,iterate:function(U,de){var C=this,x=new K(function(j,$){C.ready().then(function(){var re=C._dbInfo;re.db.transaction(function(k){Bn(k,re,"SELECT * FROM "+re.storeName,[],function(J,ie){for(var he=ie.rows,Ce=he.length,tt=0;tt0}var Vn={_driver:"localStorageWrapper",_initStorage:function(U){var C={};if(U)for(var x in U)C[x]=U[x];return C.keyPrefix=Mr(U,this._defaultConfig),Kn()?(this._dbInfo=C,C.serializer=Zn,K.resolve()):K.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(U){return!1}}(),iterate:function(U,de){var C=this,x=C.ready().then(function(){for(var j=C._dbInfo,$=j.keyPrefix,re=$.length,k=localStorage.length,J=1,ie=0;ie=0;j--){var $=localStorage.key(j);0===$.indexOf(x)&&localStorage.removeItem($)}});return X(C,U),C},length:function(U){var C=this.keys().then(function(x){return x.length});return X(C,U),C},key:function(U,de){var C=this,x=C.ready().then(function(){var $,j=C._dbInfo;try{$=localStorage.key(U)}catch(re){$=null}return $&&($=$.substring(j.keyPrefix.length)),$});return X(x,de),x},keys:function(U){var de=this,C=de.ready().then(function(){for(var x=de._dbInfo,j=localStorage.length,$=[],re=0;re=0;re--){var k=localStorage.key(re);0===k.indexOf($)&&localStorage.removeItem(k)}}):K.reject("Invalid arguments"),de),j}},Dr=function(de,C){return de===C||"number"==typeof de&&"number"==typeof C&&isNaN(de)&&isNaN(C)},jn=function(de,C){for(var x=de.length,j=0;j{"use strict";L.d(Ge,{X:()=>Ne});var s=L(7709),O=L(7971);class Ne extends s.xQ{constructor(Te){super(),this._value=Te}get value(){return this.getValue()}_subscribe(Te){const ve=super._subscribe(Te);return ve&&!ve.closed&&Te.next(this._value),ve}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new O.N;return this._value}next(Te){super.next(this._value=Te)}}},7574:(Tt,Ge,L)=>{"use strict";L.d(Ge,{y:()=>K});var s=L(7393),Ne=L(9181),je=L(6490),ve=L(6554),Y=L(4487);var ee=L(2494);let K=(()=>{class te{constructor(_e){this._isScalar=!1,_e&&(this._subscribe=_e)}lift(_e){const se=new te;return se.source=this,se.operator=_e,se}subscribe(_e,se,me){const{operator:ne}=this,Me=function(te,ce,_e){if(te){if(te instanceof s.L)return te;if(te[Ne.b])return te[Ne.b]()}return te||ce||_e?new s.L(te,ce,_e):new s.L(je.c)}(_e,se,me);if(Me.add(ne?ne.call(Me,this.source):this.source||ee.v.useDeprecatedSynchronousErrorHandling&&!Me.syncErrorThrowable?this._subscribe(Me):this._trySubscribe(Me)),ee.v.useDeprecatedSynchronousErrorHandling&&Me.syncErrorThrowable&&(Me.syncErrorThrowable=!1,Me.syncErrorThrown))throw Me.syncErrorValue;return Me}_trySubscribe(_e){try{return this._subscribe(_e)}catch(se){ee.v.useDeprecatedSynchronousErrorHandling&&(_e.syncErrorThrown=!0,_e.syncErrorValue=se),function(te){for(;te;){const{closed:ce,destination:_e,isStopped:se}=te;if(ce||se)return!1;te=_e&&_e instanceof s.L?_e:null}return!0}(_e)?_e.error(se):console.warn(se)}}forEach(_e,se){return new(se=X(se))((me,ne)=>{let Me;Me=this.subscribe(Re=>{try{_e(Re)}catch(we){ne(we),Me&&Me.unsubscribe()}},ne,me)})}_subscribe(_e){const{source:se}=this;return se&&se.subscribe(_e)}[ve.L](){return this}pipe(..._e){return 0===_e.length?this:function(te){return 0===te.length?Y.y:1===te.length?te[0]:function(_e){return te.reduce((se,me)=>me(se),_e)}}(_e)(this)}toPromise(_e){return new(_e=X(_e))((se,me)=>{let ne;this.subscribe(Me=>ne=Me,Me=>me(Me),()=>se(ne))})}}return te.create=ce=>new te(ce),te})();function X(te){if(te||(te=ee.v.Promise||Promise),!te)throw new Error("no Promise impl found");return te}},6490:(Tt,Ge,L)=>{"use strict";L.d(Ge,{c:()=>Ne});var s=L(2494),O=L(4449);const Ne={closed:!0,next(je){},error(je){if(s.v.useDeprecatedSynchronousErrorHandling)throw je;(0,O.z)(je)},complete(){}}},7709:(Tt,Ge,L)=>{"use strict";L.d(Ge,{xQ:()=>Z,Yc:()=>Y});var s=L(7574),O=L(7393),Ne=L(5319),je=L(7971);class Te extends Ne.w{constructor(K,X){super(),this.subject=K,this.subscriber=X,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const K=this.subject,X=K.observers;if(this.subject=null,!X||0===X.length||K.isStopped||K.closed)return;const te=X.indexOf(this.subscriber);-1!==te&&X.splice(te,1)}}var ve=L(9181);class Y extends O.L{constructor(K){super(K),this.destination=K}}let Z=(()=>{class ee extends s.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ve.b](){return new Y(this)}lift(X){const te=new Q(this,this);return te.operator=X,te}next(X){if(this.closed)throw new je.N;if(!this.isStopped){const{observers:te}=this,ce=te.length,_e=te.slice();for(let se=0;senew Q(K,X),ee})();class Q extends Z{constructor(K,X){super(),this.destination=K,this.source=X}next(K){const{destination:X}=this;X&&X.next&&X.next(K)}error(K){const{destination:X}=this;X&&X.error&&this.destination.error(K)}complete(){const{destination:K}=this;K&&K.complete&&this.destination.complete()}_subscribe(K){const{source:X}=this;return X?this.source.subscribe(K):Ne.w.EMPTY}}},7393:(Tt,Ge,L)=>{"use strict";L.d(Ge,{L:()=>Y});var s=L(9105),O=L(6490),Ne=L(5319),je=L(9181),Te=L(2494),ve=L(4449);class Y extends Ne.w{constructor(ee,K,X){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=O.c;break;case 1:if(!ee){this.destination=O.c;break}if("object"==typeof ee){ee instanceof Y?(this.syncErrorThrowable=ee.syncErrorThrowable,this.destination=ee,ee.add(this)):(this.syncErrorThrowable=!0,this.destination=new Z(this,ee));break}default:this.syncErrorThrowable=!0,this.destination=new Z(this,ee,K,X)}}[je.b](){return this}static create(ee,K,X){const te=new Y(ee,K,X);return te.syncErrorThrowable=!1,te}next(ee){this.isStopped||this._next(ee)}error(ee){this.isStopped||(this.isStopped=!0,this._error(ee))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(ee){this.destination.next(ee)}_error(ee){this.destination.error(ee),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:ee}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=ee,this}}class Z extends Y{constructor(ee,K,X,te){super(),this._parentSubscriber=ee;let ce,_e=this;(0,s.m)(K)?ce=K:K&&(ce=K.next,X=K.error,te=K.complete,K!==O.c&&(_e=Object.create(K),(0,s.m)(_e.unsubscribe)&&this.add(_e.unsubscribe.bind(_e)),_e.unsubscribe=this.unsubscribe.bind(this))),this._context=_e,this._next=ce,this._error=X,this._complete=te}next(ee){if(!this.isStopped&&this._next){const{_parentSubscriber:K}=this;Te.v.useDeprecatedSynchronousErrorHandling&&K.syncErrorThrowable?this.__tryOrSetError(K,this._next,ee)&&this.unsubscribe():this.__tryOrUnsub(this._next,ee)}}error(ee){if(!this.isStopped){const{_parentSubscriber:K}=this,{useDeprecatedSynchronousErrorHandling:X}=Te.v;if(this._error)X&&K.syncErrorThrowable?(this.__tryOrSetError(K,this._error,ee),this.unsubscribe()):(this.__tryOrUnsub(this._error,ee),this.unsubscribe());else if(K.syncErrorThrowable)X?(K.syncErrorValue=ee,K.syncErrorThrown=!0):(0,ve.z)(ee),this.unsubscribe();else{if(this.unsubscribe(),X)throw ee;(0,ve.z)(ee)}}}complete(){if(!this.isStopped){const{_parentSubscriber:ee}=this;if(this._complete){const K=()=>this._complete.call(this._context);Te.v.useDeprecatedSynchronousErrorHandling&&ee.syncErrorThrowable?(this.__tryOrSetError(ee,K),this.unsubscribe()):(this.__tryOrUnsub(K),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(ee,K){try{ee.call(this._context,K)}catch(X){if(this.unsubscribe(),Te.v.useDeprecatedSynchronousErrorHandling)throw X;(0,ve.z)(X)}}__tryOrSetError(ee,K,X){if(!Te.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{K.call(this._context,X)}catch(te){return Te.v.useDeprecatedSynchronousErrorHandling?(ee.syncErrorValue=te,ee.syncErrorThrown=!0,!0):((0,ve.z)(te),!0)}return!1}_unsubscribe(){const{_parentSubscriber:ee}=this;this._context=null,this._parentSubscriber=null,ee.unsubscribe()}}},5319:(Tt,Ge,L)=>{"use strict";L.d(Ge,{w:()=>ve});var s=L(9796),O=L(1555),Ne=L(9105);const Te=(()=>{function Z(Q){return Error.call(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((ee,K)=>`${K+1}) ${ee.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q,this}return Z.prototype=Object.create(Error.prototype),Z})();class ve{constructor(Q){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,Q&&(this._ctorUnsubscribe=!0,this._unsubscribe=Q)}unsubscribe(){let Q;if(this.closed)return;let{_parentOrParents:ee,_ctorUnsubscribe:K,_unsubscribe:X,_subscriptions:te}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,ee instanceof ve)ee.remove(this);else if(null!==ee)for(let ce=0;ceQ.concat(ee instanceof Te?ee.errors:ee),[])}ve.EMPTY=((Z=new ve).closed=!0,Z)},2494:(Tt,Ge,L)=>{"use strict";L.d(Ge,{v:()=>O});let s=!1;const O={Promise:void 0,set useDeprecatedSynchronousErrorHandling(Ne){if(Ne){const je=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+je.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=Ne},get useDeprecatedSynchronousErrorHandling(){return s}}},5345:(Tt,Ge,L)=>{"use strict";L.d(Ge,{IY:()=>je,Ds:()=>ve,ft:()=>Z});var s=L(7393),O=L(7574),Ne=L(7444);class je extends s.L{constructor(ee){super(),this.parent=ee}_next(ee){this.parent.notifyNext(ee)}_error(ee){this.parent.notifyError(ee),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class ve extends s.L{notifyNext(ee){this.destination.next(ee)}notifyError(ee){this.destination.error(ee)}notifyComplete(){this.destination.complete()}}function Z(Q,ee){if(ee.closed)return;if(Q instanceof O.y)return Q.subscribe(ee);let K;try{K=(0,Ne.s)(Q)(ee)}catch(X){ee.error(X)}return K}},2441:(Tt,Ge,L)=>{"use strict";L.d(Ge,{c:()=>Te,N:()=>ve});var s=L(7709),O=L(7574),Ne=L(5319),je=L(1307);class Te extends O.y{constructor(K,X){super(),this.source=K,this.subjectFactory=X,this._refCount=0,this._isComplete=!1}_subscribe(K){return this.getSubject().subscribe(K)}getSubject(){const K=this._subject;return(!K||K.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let K=this._connection;return K||(this._isComplete=!1,K=this._connection=new Ne.w,K.add(this.source.subscribe(new Y(this.getSubject(),this))),K.closed&&(this._connection=null,K=Ne.w.EMPTY)),K}refCount(){return(0,je.x)()(this)}}const ve=(()=>{const ee=Te.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ee._subscribe},_isComplete:{value:ee._isComplete,writable:!0},getSubject:{value:ee.getSubject},connect:{value:ee.connect},refCount:{value:ee.refCount}}})();class Y extends s.Yc{constructor(K,X){super(K),this.connectable=X}_error(K){this._unsubscribe(),super._error(K)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const K=this.connectable;if(K){this.connectable=null;const X=K._connection;K._refCount=0,K._subject=null,K._connection=null,X&&X.unsubscribe()}}}},4402:(Tt,Ge,L)=>{"use strict";L.d(Ge,{D:()=>_e});var s=L(7574),O=L(7444),Ne=L(5319),je=L(6554),Y=L(4087),Z=L(377),K=L(4072),X=L(9489);function _e(se,me){return me?function(se,me){if(null!=se){if(function(se){return se&&"function"==typeof se[je.L]}(se))return function(se,me){return new s.y(ne=>{const Me=new Ne.w;return Me.add(me.schedule(()=>{const Re=se[je.L]();Me.add(Re.subscribe({next(we){Me.add(me.schedule(()=>ne.next(we)))},error(we){Me.add(me.schedule(()=>ne.error(we)))},complete(){Me.add(me.schedule(()=>ne.complete()))}}))})),Me})}(se,me);if((0,K.t)(se))return function(se,me){return new s.y(ne=>{const Me=new Ne.w;return Me.add(me.schedule(()=>se.then(Re=>{Me.add(me.schedule(()=>{ne.next(Re),Me.add(me.schedule(()=>ne.complete()))}))},Re=>{Me.add(me.schedule(()=>ne.error(Re)))}))),Me})}(se,me);if((0,X.z)(se))return(0,Y.r)(se,me);if(function(se){return se&&"function"==typeof se[Z.hZ]}(se)||"string"==typeof se)return function(se,me){if(!se)throw new Error("Iterable cannot be null");return new s.y(ne=>{const Me=new Ne.w;let Re;return Me.add(()=>{Re&&"function"==typeof Re.return&&Re.return()}),Me.add(me.schedule(()=>{Re=se[Z.hZ](),Me.add(me.schedule(function(){if(ne.closed)return;let we,Xe;try{const Je=Re.next();we=Je.value,Xe=Je.done}catch(Je){return void ne.error(Je)}Xe?ne.complete():(ne.next(we),this.schedule())}))})),Me})}(se,me)}throw new TypeError((null!==se&&typeof se||se)+" is not observable")}(se,me):se instanceof s.y?se:new s.y((0,O.s)(se))}},6693:(Tt,Ge,L)=>{"use strict";L.d(Ge,{n:()=>je});var s=L(7574),O=L(5015),Ne=L(4087);function je(Te,ve){return ve?(0,Ne.r)(Te,ve):new s.y((0,O.V)(Te))}},5917:(Tt,Ge,L)=>{"use strict";L.d(Ge,{of:()=>je});var s=L(4869),O=L(6693),Ne=L(4087);function je(...Te){let ve=Te[Te.length-1];return(0,s.K)(ve)?(Te.pop(),(0,Ne.r)(Te,ve)):(0,O.n)(Te)}},4612:(Tt,Ge,L)=>{"use strict";L.d(Ge,{b:()=>O});var s=L(9773);function O(Ne,je){return(0,s.zg)(Ne,je,1)}},5435:(Tt,Ge,L)=>{"use strict";L.d(Ge,{h:()=>O});var s=L(7393);function O(Te,ve){return function(Z){return Z.lift(new Ne(Te,ve))}}class Ne{constructor(ve,Y){this.predicate=ve,this.thisArg=Y}call(ve,Y){return Y.subscribe(new je(ve,this.predicate,this.thisArg))}}class je extends s.L{constructor(ve,Y,Z){super(ve),this.predicate=Y,this.thisArg=Z,this.count=0}_next(ve){let Y;try{Y=this.predicate.call(this.thisArg,ve,this.count++)}catch(Z){return void this.destination.error(Z)}Y&&this.destination.next(ve)}}},8002:(Tt,Ge,L)=>{"use strict";L.d(Ge,{U:()=>O});var s=L(7393);function O(Te,ve){return function(Z){if("function"!=typeof Te)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return Z.lift(new Ne(Te,ve))}}class Ne{constructor(ve,Y){this.project=ve,this.thisArg=Y}call(ve,Y){return Y.subscribe(new je(ve,this.project,this.thisArg))}}class je extends s.L{constructor(ve,Y,Z){super(ve),this.project=Y,this.count=0,this.thisArg=Z||this}_next(ve){let Y;try{Y=this.project.call(this.thisArg,ve,this.count++)}catch(Z){return void this.destination.error(Z)}this.destination.next(Y)}}},3282:(Tt,Ge,L)=>{"use strict";L.d(Ge,{J:()=>Ne});var s=L(9773),O=L(4487);function Ne(je=Number.POSITIVE_INFINITY){return(0,s.zg)(O.y,je)}},9773:(Tt,Ge,L)=>{"use strict";L.d(Ge,{zg:()=>je});var s=L(8002),O=L(4402),Ne=L(5345);function je(Z,Q,ee=Number.POSITIVE_INFINITY){return"function"==typeof Q?K=>K.pipe(je((X,te)=>(0,O.D)(Z(X,te)).pipe((0,s.U)((ce,_e)=>Q(X,ce,te,_e))),ee)):("number"==typeof Q&&(ee=Q),K=>K.lift(new Te(Z,ee)))}class Te{constructor(Q,ee=Number.POSITIVE_INFINITY){this.project=Q,this.concurrent=ee}call(Q,ee){return ee.subscribe(new ve(Q,this.project,this.concurrent))}}class ve extends Ne.Ds{constructor(Q,ee,K=Number.POSITIVE_INFINITY){super(Q),this.project=ee,this.concurrent=K,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(Q){this.active0?this._next(Q.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(Tt,Ge,L)=>{"use strict";L.d(Ge,{x:()=>O});var s=L(7393);function O(){return function(ve){return ve.lift(new Ne(ve))}}class Ne{constructor(ve){this.connectable=ve}call(ve,Y){const{connectable:Z}=this;Z._refCount++;const Q=new je(ve,Z),ee=Y.subscribe(Q);return Q.closed||(Q.connection=Z.connect()),ee}}class je extends s.L{constructor(ve,Y){super(ve),this.connectable=Y}_unsubscribe(){const{connectable:ve}=this;if(!ve)return void(this.connection=null);this.connectable=null;const Y=ve._refCount;if(Y<=0)return void(this.connection=null);if(ve._refCount=Y-1,Y>1)return void(this.connection=null);const{connection:Z}=this,Q=ve._connection;this.connection=null,Q&&(!Z||Q===Z)&&Q.unsubscribe()}}},3190:(Tt,Ge,L)=>{"use strict";L.d(Ge,{w:()=>je});var s=L(8002),O=L(4402),Ne=L(5345);function je(Y,Z){return"function"==typeof Z?Q=>Q.pipe(je((ee,K)=>(0,O.D)(Y(ee,K)).pipe((0,s.U)((X,te)=>Z(ee,X,K,te))))):Q=>Q.lift(new Te(Y))}class Te{constructor(Z){this.project=Z}call(Z,Q){return Q.subscribe(new ve(Z,this.project))}}class ve extends Ne.Ds{constructor(Z,Q){super(Z),this.project=Q,this.index=0}_next(Z){let Q;const ee=this.index++;try{Q=this.project(Z,ee)}catch(K){return void this.destination.error(K)}this._innerSub(Q)}_innerSub(Z){const Q=this.innerSubscription;Q&&Q.unsubscribe();const ee=new Ne.IY(this),K=this.destination;K.add(ee),this.innerSubscription=(0,Ne.ft)(Z,ee),this.innerSubscription!==ee&&K.add(this.innerSubscription)}_complete(){const{innerSubscription:Z}=this;(!Z||Z.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(Z){this.destination.next(Z)}}},3342:(Tt,Ge,L)=>{"use strict";L.d(Ge,{b:()=>je});var s=L(7393);function O(){}var Ne=L(9105);function je(Y,Z,Q){return function(K){return K.lift(new Te(Y,Z,Q))}}class Te{constructor(Z,Q,ee){this.nextOrObserver=Z,this.error=Q,this.complete=ee}call(Z,Q){return Q.subscribe(new ve(Z,this.nextOrObserver,this.error,this.complete))}}class ve extends s.L{constructor(Z,Q,ee,K){super(Z),this._tapNext=O,this._tapError=O,this._tapComplete=O,this._tapError=ee||O,this._tapComplete=K||O,(0,Ne.m)(Q)?(this._context=this,this._tapNext=Q):Q&&(this._context=Q,this._tapNext=Q.next||O,this._tapError=Q.error||O,this._tapComplete=Q.complete||O)}_next(Z){try{this._tapNext.call(this._context,Z)}catch(Q){return void this.destination.error(Q)}this.destination.next(Z)}_error(Z){try{this._tapError.call(this._context,Z)}catch(Q){return void this.destination.error(Q)}this.destination.error(Z)}_complete(){try{this._tapComplete.call(this._context)}catch(Z){return void this.destination.error(Z)}return this.destination.complete()}}},4087:(Tt,Ge,L)=>{"use strict";L.d(Ge,{r:()=>Ne});var s=L(7574),O=L(5319);function Ne(je,Te){return new s.y(ve=>{const Y=new O.w;let Z=0;return Y.add(Te.schedule(function(){Z!==je.length?(ve.next(je[Z++]),ve.closed||Y.add(this.schedule())):ve.complete()})),Y})}},377:(Tt,Ge,L)=>{"use strict";L.d(Ge,{hZ:()=>O});const O="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:(Tt,Ge,L)=>{"use strict";L.d(Ge,{L:()=>s});const s="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(Tt,Ge,L)=>{"use strict";L.d(Ge,{b:()=>s});const s="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7971:(Tt,Ge,L)=>{"use strict";L.d(Ge,{N:()=>O});const O=(()=>{function Ne(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return Ne.prototype=Object.create(Error.prototype),Ne})()},4449:(Tt,Ge,L)=>{"use strict";function s(O){setTimeout(()=>{throw O},0)}L.d(Ge,{z:()=>s})},4487:(Tt,Ge,L)=>{"use strict";function s(O){return O}L.d(Ge,{y:()=>s})},9796:(Tt,Ge,L)=>{"use strict";L.d(Ge,{k:()=>s});const s=Array.isArray||(O=>O&&"number"==typeof O.length)},9489:(Tt,Ge,L)=>{"use strict";L.d(Ge,{z:()=>s});const s=O=>O&&"number"==typeof O.length&&"function"!=typeof O},9105:(Tt,Ge,L)=>{"use strict";function s(O){return"function"==typeof O}L.d(Ge,{m:()=>s})},1555:(Tt,Ge,L)=>{"use strict";function s(O){return null!==O&&"object"==typeof O}L.d(Ge,{K:()=>s})},4072:(Tt,Ge,L)=>{"use strict";function s(O){return!!O&&"function"!=typeof O.subscribe&&"function"==typeof O.then}L.d(Ge,{t:()=>s})},4869:(Tt,Ge,L)=>{"use strict";function s(O){return O&&"function"==typeof O.schedule}L.d(Ge,{K:()=>s})},7444:(Tt,Ge,L)=>{"use strict";L.d(Ge,{s:()=>K});var s=L(5015),O=L(4449),je=L(377),ve=L(6554),Z=L(9489),Q=L(4072),ee=L(1555);const K=X=>{if(X&&"function"==typeof X[ve.L])return(X=>te=>{const ce=X[ve.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(te)})(X);if((0,Z.z)(X))return(0,s.V)(X);if((0,Q.t)(X))return(X=>te=>(X.then(ce=>{te.closed||(te.next(ce),te.complete())},ce=>te.error(ce)).then(null,O.z),te))(X);if(X&&"function"==typeof X[je.hZ])return(X=>te=>{const ce=X[je.hZ]();for(;;){let _e;try{_e=ce.next()}catch(se){return te.error(se),te}if(_e.done){te.complete();break}if(te.next(_e.value),te.closed)break}return"function"==typeof ce.return&&te.add(()=>{ce.return&&ce.return()}),te})(X);{const ce=`You provided ${(0,ee.K)(X)?"an invalid object":`'${X}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},5015:(Tt,Ge,L)=>{"use strict";L.d(Ge,{V:()=>s});const s=O=>Ne=>{for(let je=0,Te=O.length;je{"use strict";L.d(Ge,{U:()=>O});const s={env:"production",development:{version:"0.9.0",baseURL:"https://localhost:2399",managerURL:"https://192.168.1.187:4000/",frontUrl:"https://192.168.1.187:4000/",iosstoreid:"id0123456",androidstoreid:"snapp.cl",phoneSupport:"56944770416",fintoc:{public_key:"pk_test_H5mt65eZ828ipAs2nx8GAncVA-rakCmD",secret_key:"sk_test_U-kZoPfyB2Yp5d2Sz9JiomEMKq7obTyy"},google:{public_key:"354895794882-hoobmhq9cqjkr6nu1ld400jnltg3s6sm.apps.googleusercontent.com",script:"https://accounts.google.com/gsi/client"}},test:{version:"0.9.0",baseURL:"https://services.snapp.cl:2398",managerURL:"https://snapp.cl/",frontUrl:"https://snapp.cl/",iosstoreid:"id0123456",androidstoreid:"cl.snapp.payments",phoneSupport:"56944770416",fintoc:{public_key:"pk_test_H5mt65eZ828ipAs2nx8GAncVA-rakCmD",secret_key:"sk_test_U-kZoPfyB2Yp5d2Sz9JiomEMKq7obTyy"},google:{public_key:"354895794882-hoobmhq9cqjkr6nu1ld400jnltg3s6sm.apps.googleusercontent.com",script:"https://accounts.google.com/gsi/client"}},production:{version:"0.9.0",baseURL:"https://services.snapp.cl:2399",managerURL:"https://snapp.cl/",frontUrl:"https://snapp.cl/",iosstoreid:"id0123456",androidstoreid:"cl.snapp.payments",phoneSupport:"56944770416",fintoc:{public_key:"pk_live_rdzjkaje4hhM5Eaf3Uj5NRtjG1NsCCtE",secret_key:"sk_live_An1ZzXj9yi39TFcTW-g7BXUz1NGgHPxH"},google:{public_key:"354895794882-hoobmhq9cqjkr6nu1ld400jnltg3s6sm.apps.googleusercontent.com",script:"https://accounts.google.com/gsi/client"}},localcloud:{version:"0.9.0",baseURL:"https://services.snapp.cl:2398",managerURL:"https://192.168.1.187:4000/",frontUrl:"https://192.168.1.187:4000/",iosstoreid:"id0123456",androidstoreid:"snapp.cl",phoneSupport:"56944770416",fintoc:{public_key:"pk_test_H5mt65eZ828ipAs2nx8GAncVA-rakCmD",secret_key:"sk_test_U-kZoPfyB2Yp5d2Sz9JiomEMKq7obTyy"},google:{public_key:"354895794882-hoobmhq9cqjkr6nu1ld400jnltg3s6sm.apps.googleusercontent.com",script:"https://accounts.google.com/gsi/client"}}},O=Ne=>{if(!s[s.env])throw new Error("Bad configuration");return Ne?s[s.env][Ne]:s[s.env]}},1228:(Tt,Ge,L)=>{"use strict";L.d(Ge,{e:()=>Te});var s=L(8239),O=L(639),Ne=L(7119),je=L(2300);let Te=(()=>{class ve{constructor(Z,Q){this.methods=Z,this.memory=Q}registerUser(Z){var Q=this;return(0,s.Z)(function*(){try{const ee=yield Q.methods.put("/user",Z,{},{},0);return Object.assign({status:200},ee)}catch(ee){return Object.assign(Object.assign({status:ee.status},0===ee.status?{message:"No se ha podido conectar con nuestros servicios. Intente de nuevo mas tarde o contacte con su administrador"}:500===ee.status?{message:"Ocurrio un error al cargar la informaci\xf3n, Si el error persiste contacte con su administrador"}:void 0),ee.error)}})()}login(Z,Q){var ee=this;return(0,s.Z)(function*(){try{const K=btoa(`${Z}:${Q}`),X=yield ee.methods.get("/user/login",{authorization:`Basic ${K}`},{},0);if(X.hasOwnProperty("token")){yield ee.memory.saveAuthorizationToken(X.token);let ce=yield ee.memory.loadDeviceKey();ce=((yield ee.methods.get("/user/device/assig",{},{},0))||{deviceKey:null}).deviceKey,yield ee.memory.saveDeviceKey(ce);const _e=yield ee.methods.get("/user",{},{},0);return ee.memory.userAttr=Object.assign({},_e),{status:200,token:X.token,loged:!0,userAttributes:Object.assign({},_e),requireMFA:!1}}return X.hasOwnProperty("newPasswordRequired")?(ee.memory.saveAuthorizationToken(void 0),{status:200,token:X.changePasswordToken,loged:!1,userAttributes:{},requireMFA:!1,requirePasswordChange:!0}):(ee.memory.saveAuthorizationToken(void 0),{status:401,token:void 0,loged:!1,userAttributes:{},requireMFA:!1,message:"Error en las credenciales. Por favor revisarlas e intentar nuevamente."})}catch(K){return Object.assign(Object.assign({status:K.status},0===K.status?{message:"No se ha podido conectar con nuestros servicios. Intente de nuevo mas tarde o contacte con su administrador"}:500===K.status?{message:"Ocurrio un error al cargar la informaci\xf3n, Si el error persiste contacte con su administrador"}:void 0),K.error)}})()}getUserSessionFromLocalStorage(){var Z=this;return new Promise(function(){var Q=(0,s.Z)(function*(ee,K){try{const X=yield Z.memory.loadAuthorizationToken();if(X){let ce,te=yield Z.memory.loadDeviceKey();te||(te=((yield Z.methods.get("/user/device",{},{},0))||{deviceKey:null}).deviceKey,yield Z.memory.saveDeviceKey(te)),ce=yield Z.methods.get("/user",{},{},0).catch(_e=>console.error(_e)),(null==ce?void 0:ce.error)||"object"!=typeof ce?(Z.memory.saveAuthorizationToken(void 0),ee({token:void 0,loged:!1,userAttributes:{},requireMFA:!1})):(Z.memory.saveAuthorizationToken(X),Z.memory.userAttr=Object.assign({},ce),te=((yield Z.methods.get("/user/device/assig",{},{},0))||{deviceKey:null}).deviceKey,yield Z.memory.saveDeviceKey(te),ee({token:X,loged:!0,userAttributes:Object.assign({},ce),requireMFA:!1}))}else ee({token:void 0,loged:!1,userAttributes:{},requireMFA:!1})}catch(X){ee({token:void 0,loged:!1,userAttributes:{},requireMFA:!1})}});return function(ee,K){return Q.apply(this,arguments)}}())}leanLogout(){var Z=this;return(0,s.Z)(function*(){yield Z.memory.removeSession()})()}loginChangingPass(Z,Q,ee,K){var X=this;const te=btoa(`${Z}:${Q}`);return new Promise(function(){var ce=(0,s.Z)(function*(_e,se){try{const me=yield X.methods.post("/user/login/password",{newPassword:ee,changePasswordToken:K},{authorization:`Basic ${te}`});if(me&&me.token){yield X.memory.saveAuthorizationToken(me.token);let ne=yield X.memory.loadDeviceKey();ne=((yield X.methods.get("/user/device/assig"))||{deviceKey:null}).deviceKey,yield X.memory.saveDeviceKey(ne);let Me={};try{Me=yield X.methods.get("/user")}catch(Re){console.error(Re)}X.memory.userAttr=Object.assign({},Me),_e({token:me.token,loged:!0,userAttributes:Object.assign({},Me),requireMFA:!1,message:me.message})}else X.memory.saveAuthorizationToken(void 0),se({token:void 0,loged:!1,userAttributes:{},requireMFA:!1,message:"Error en las credenciales. por favor revisarlas e intentar nuevamente."})}catch(me){console.error(me),X.memory.saveAuthorizationToken(void 0),se({token:void 0,loged:!1,userAttributes:{},requireMFA:!1,message:"Ha ocurrido un error desconocido. Por favor revisarlas e intentar nuevamente."})}});return function(_e,se){return ce.apply(this,arguments)}}())}loginWithGoogle(Z){var Q=this;return(0,s.Z)(function*(){try{const ee=yield Q.methods.post("/auth/google/sign-in",{token:Z},void 0,void 0,0);yield Q.memory.saveAuthorizationToken(ee.token);let K=yield Q.memory.loadDeviceKey();K=((yield Q.methods.get("/user/device/assig",{},{},0))||{deviceKey:null}).deviceKey,yield Q.memory.saveDeviceKey(K);const X=yield Q.methods.get("/user",{},{},0);return Q.memory.userAttr=Object.assign({},X),{status:200,token:ee.token,loged:!0,userAttributes:Object.assign({},X),requirePasswordChange:!1,requireMFA:!1}}catch(ee){return Object.assign({status:ee.status},0===ee.status?{message:"No se ha podido conectar con nuestros servicios. Intente de nuevo mas tarde o contacte con su administrador"}:500===ee.status?{message:"Ocurrio un error al cargar la informaci\xf3n, Si el error persiste contacte con su administrador"}:void 0)}})()}registerWithGoogle(Z){var Q=this;return(0,s.Z)(function*(){try{const ee=yield Q.methods.post("/auth/google/sign-up",{token:Z},void 0,void 0,0);return Object.assign({status:200},ee)}catch(ee){return Object.assign(Object.assign({status:ee.status},0===ee.status?{message:"No se ha podido conectar con nuestros servicios. Intente de nuevo mas tarde o contacte con su administrador"}:500===ee.status?{message:"Ocurrio un error al cargar la informaci\xf3n, Si el error persiste contacte con su administrador"}:void 0),ee.error)}})()}}return ve.\u0275fac=function(Z){return new(Z||ve)(O.LFG(Ne.O),O.LFG(je.S))},ve.\u0275prov=O.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})()},2300:(Tt,Ge,L)=>{"use strict";L.d(Ge,{S:()=>Te});var s=L(8239),O=L(639),Ne=L(1628),je=L(169);let Te=(()=>{class ve{constructor(Z,Q){this.storage=Z,this.toastService=Q,this.eqList=[],this.startScan=!1,this.newVerAvailable=!1,this.loggedIn=!1,this.previousUrl=null,this.ngOnInit()}ngOnInit(){var Z=this;return(0,s.Z)(function*(){yield Z.storage.create()})()}get eqsList(){return this.eqList.filter((Z,Q)=>Q==this.eqList.findIndex(ee=>Z.serial==ee.serial))}get isLogged(){return this.loggedIn}get sessionToken(){return this.authToken}saveEqList(Z){var Q=this;return(0,s.Z)(function*(){if(!Z.hasOwnProperty("qr"))return;let ee=yield Q.loadEqList();if(ee.some(K=>K.qr===Z.qr))return Q.toastService.presentToast("Ocurrio un error","El equipo ingresado ya existe en el carro de compras.",3e3);ee.push(Z),yield Q.storage.set("eqList",JSON.stringify(ee||[]))})()}cleanEqList(){var Z=this;return(0,s.Z)(function*(){yield Z.storage.set("eqList",JSON.stringify([]))})()}loadEqList(){var Z=this;return(0,s.Z)(function*(){var Q;try{return JSON.parse(null!==(Q=yield Z.storage.get("eqList"))&&void 0!==Q?Q:"[]")}catch(ee){return yield Z.storage.set("eqList",JSON.stringify([])),[]}})()}loadAuthorizationToken(){var Z=this;return(0,s.Z)(function*(){if(Z.loggedIn&&Z.authToken)return Z.authToken;const Q=(yield Z.storage.get("authorization_token"))||!1;return Q&&(Z.authToken=Q),Q})()}loadDeviceKey(){var Z=this;return(0,s.Z)(function*(){if(Z.deviceKey)return Z.deviceKey;const Q=yield Z.storage.get("device_key");return Q&&(Z.deviceKey=Q),Q})()}removeEqFromList(Z){var Q=this;return(0,s.Z)(function*(){let ee=yield Q.loadEqList();ee.splice(Z,1),yield Q.storage.set("eqList",JSON.stringify(ee||[]))})()}notificationsPermisionRes(){var Z=this;return(0,s.Z)(function*(){return(yield Z.storage.get("notificationsPermisionRes"))||!1})()}setNotificationPermisionRes(Z){var Q=this;return(0,s.Z)(function*(){yield Q.storage.set("notificationsPermisionRes",Z||!1)})()}saveAuthorizationToken(Z){var Q=this;return(0,s.Z)(function*(){return!!Z&&(Q.authToken=Z,Q.loggedIn=!!Q.authToken,yield Q.storage.set("authorization_token",Z),Q.authToken)})()}saveDeviceKey(Z){var Q=this;return(0,s.Z)(function*(){return Q.deviceKey=Z,yield Q.storage.set("device_key",Z),Q.deviceKey})()}removeSession(){var Z=this;return(0,s.Z)(function*(){Z.storage.set("authorization_token",void 0),Z.userInfo={},Z.loggedIn=!1,Z.authToken=void 0})()}}return ve.\u0275fac=function(Z){return new(Z||ve)(O.LFG(Ne.K),O.LFG(je.i))},ve.\u0275prov=O.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})()},7119:(Tt,Ge,L)=>{"use strict";L.d(Ge,{O:()=>je});var s=L(1841),O=L(9698),Ne=L(639);let je=(()=>{class Te{constructor(Y){this.http=Y,this.baseURL=O.U("baseURL")}get baseUrl(){return this.baseURL}post(Y,Z,Q={},ee={},K=0,X="json"){return new Promise((te,ce)=>{const _e={};for(const ne in Q)_e[ne]=Q[ne].toString();let se;se="arraybuffer"===X?{responseType:"arraybuffer"}:{responseType:"json"};let me=new s.LE;Object.keys(ee).forEach(ne=>{me=me.append(ne,ee[ne].toString())}),this.http.post(`${this.baseURL}${Y}`,Z,Object.assign(Object.assign({},se),{headers:new s.WM(_e),params:me})).subscribe(ne=>{te(ne)},ne=>{ce(ne)})})}get(Y,Z,Q,ee=0,K=!0){return new Promise((X,te)=>{const ce={};for(const se in Z)ce[se]=Z[se].toString();let _e=new s.LE;for(const se in Q)null!=Q[se]&&(_e=_e.append(se,Q[se].toString()));this.http.get(`${this.baseURL}${Y}`,{headers:new s.WM(ce),params:_e}).subscribe(se=>{X(se)},se=>{te(se)})})}delete(Y,Z,Q,ee=0,K=!0){return new Promise((X,te)=>{const ce={};for(const se in Z)ce[se]=Z[se].toString();let _e=new s.LE;for(const se in Q)null!=Q[se]&&(_e=_e.append(se,Q[se].toString()));this.http.delete(`${this.baseURL}${Y}`,{headers:new s.WM(ce),params:_e}).subscribe(se=>{X(se)},se=>{te(se)})})}put(Y,Z,Q,ee,K=0,X="json"){return new Promise((te,ce)=>{const _e={};for(const ne in Q)_e[ne]=Q[ne].toString();const se={responseType:X};let me=new s.LE;for(const ne in ee)null!=ee[ne]&&(me=me.append(ne,ee[ne].toString()));this.http.put(`${this.baseURL}${Y}`,Z,Object.assign(Object.assign({},se),{headers:new s.WM(_e),params:me})).subscribe(ne=>{te(ne)},ne=>{ce(ne)})})}}return Te.\u0275fac=function(Y){return new(Y||Te)(Ne.LFG(s.eN))},Te.\u0275prov=Ne.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})()},4156:(Tt,Ge,L)=>{"use strict";L.d(Ge,{V:()=>Ne});var s=L(6215),O=L(639);let Ne=(()=>{class je{constructor(){this.loadingSubject=new s.X(!1),this.messageSubject=new s.X(void 0),this.loading$=this.loadingSubject.asObservable(),this.message$=this.messageSubject.asObservable(),this.loading=!1}show(ve){this.loadingSubject.value||this.loadingSubject.next(!0),this.messageSubject.value!==ve&&this.messageSubject.next(ve)}hide(){this.loadingSubject.value&&this.loadingSubject.next(!1),this.messageSubject.next(void 0)}setLoading(ve,Y){this.loading=ve,this.message=Y}getLoading(){return this.loading}getMessage(){return this.message}}return je.\u0275fac=function(ve){return new(ve||je)},je.\u0275prov=O.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})()},169:(Tt,Ge,L)=>{"use strict";L.d(Ge,{i:()=>je});var s=L(8239),O=L(639),Ne=L(700);let je=(()=>{class Te{constructor(Y){this.toastCtrl=Y}presentToast(Y,Z,Q){var ee=this;return(0,s.Z)(function*(){(yield ee.toastCtrl.create({header:Y,message:Z,position:"bottom",duration:Q,cssClass:"toast-notification",color:"dark",buttons:[{text:"Cerrar",role:"cancel",handler:()=>{}}]})).present()})()}}return Te.\u0275fac=function(Y){return new(Y||Te)(O.LFG(Ne.yF))},Te.\u0275prov=O.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})()},8149:(Tt,Ge,L)=>{"use strict";var s=L(8583),O=L(639);class Ne extends s.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class je extends Ne{static makeCurrent(){(0,s.HT)(new je)}onAndCancel(a,l,p){return a.addEventListener(l,p,!1),()=>{a.removeEventListener(l,p,!1)}}dispatchEvent(a,l){a.dispatchEvent(l)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,l){return(l=l||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,l){return"window"===l?window:"document"===l?a:"body"===l?a.body:null}getBaseHref(a){const l=(Te=Te||document.querySelector("base"),Te?Te.getAttribute("href"):null);return null==l?null:function(m){Y=Y||document.createElement("a"),Y.setAttribute("href",m);const a=Y.pathname;return"/"===a.charAt(0)?a:`/${a}`}(l)}resetBaseElement(){Te=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,s.Mx)(document.cookie,a)}}let Y,Te=null;const Q=new O.OlP("TRANSITION_ID"),K=[{provide:O.ip1,useFactory:function(m,a,l){return()=>{l.get(O.CZH).donePromise.then(()=>{const p=(0,s.q)(),I=a.querySelectorAll(`style[ng-transition="${m}"]`);for(let N=0;N{const N=a.findTestabilityInTree(p,I);if(null==N)throw new Error("Could not find testability for element.");return N},O.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),O.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),O.dqk.frameworkStabilizers||(O.dqk.frameworkStabilizers=[]),O.dqk.frameworkStabilizers.push(p=>{const I=O.dqk.getAllAngularTestabilities();let N=I.length,W=!1;const oe=function(Ee){W=W||Ee,N--,0==N&&p(W)};I.forEach(function(Ee){Ee.whenStable(oe)})})}findTestabilityInTree(a,l,p){if(null==l)return null;const I=a.getTestability(l);return null!=I?I:p?(0,s.q)().isShadowRoot(l)?this.findTestabilityInTree(a,l.host,!0):this.findTestabilityInTree(a,l.parentElement,!0):null}}let te=(()=>{class m{build(){return new XMLHttpRequest}}return m.\u0275fac=function(l){return new(l||m)},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})();const xe=new O.OlP("EventManagerPlugins");let Ae=(()=>{class m{constructor(l,p){this._zone=p,this._eventNameToPlugin=new Map,l.forEach(I=>I.manager=this),this._plugins=l.slice().reverse()}addEventListener(l,p,I){return this._findPluginFor(p).addEventListener(l,p,I)}addGlobalEventListener(l,p,I){return this._findPluginFor(p).addGlobalEventListener(l,p,I)}getZone(){return this._zone}_findPluginFor(l){const p=this._eventNameToPlugin.get(l);if(p)return p;const I=this._plugins;for(let N=0;N{class m{constructor(){this._stylesSet=new Set}addStyles(l){const p=new Set;l.forEach(I=>{this._stylesSet.has(I)||(this._stylesSet.add(I),p.add(I))}),this.onStylesAdded(p)}onStylesAdded(l){}getAllStyles(){return Array.from(this._stylesSet)}}return m.\u0275fac=function(l){return new(l||m)},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})(),Ot=(()=>{class m extends We{constructor(l){super(),this._doc=l,this._hostNodes=new Map,this._hostNodes.set(l.head,[])}_addStylesToHost(l,p,I){l.forEach(N=>{const W=this._doc.createElement("style");W.textContent=N,I.push(p.appendChild(W))})}addHost(l){const p=[];this._addStylesToHost(this._stylesSet,l,p),this._hostNodes.set(l,p)}removeHost(l){const p=this._hostNodes.get(l);p&&p.forEach(jt),this._hostNodes.delete(l)}onStylesAdded(l){this._hostNodes.forEach((p,I)=>{this._addStylesToHost(l,I,p)})}ngOnDestroy(){this._hostNodes.forEach(l=>l.forEach(jt))}}return m.\u0275fac=function(l){return new(l||m)(O.LFG(s.K0))},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})();function jt(m){(0,s.q)().remove(m)}const Ze={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/"},Fe=/%COMP%/g;function Et(m,a,l){for(let p=0;p{if("__ngUnwrap__"===a)return m;!1===m(a)&&(a.preventDefault(),a.returnValue=!1)}}let It=(()=>{class m{constructor(l,p,I){this.eventManager=l,this.sharedStylesHost=p,this.appId=I,this.rendererByCompId=new Map,this.defaultRenderer=new an(l)}createRenderer(l,p){if(!l||!p)return this.defaultRenderer;switch(p.encapsulation){case O.ifc.Emulated:{let I=this.rendererByCompId.get(p.id);return I||(I=new Fn(this.eventManager,this.sharedStylesHost,p,this.appId),this.rendererByCompId.set(p.id,I)),I.applyToHost(l),I}case 1:case O.ifc.ShadowDom:return new Yt(this.eventManager,this.sharedStylesHost,l,p);default:if(!this.rendererByCompId.has(p.id)){const I=Et(p.id,p.styles,[]);this.sharedStylesHost.addStyles(I),this.rendererByCompId.set(p.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return m.\u0275fac=function(l){return new(l||m)(O.LFG(Ae),O.LFG(Ot),O.LFG(O.AFp))},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})();class an{constructor(a){this.eventManager=a,this.data=Object.create(null)}destroy(){}createElement(a,l){return l?document.createElementNS(Ze[l]||l,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,l){a.appendChild(l)}insertBefore(a,l,p){a&&a.insertBefore(l,p)}removeChild(a,l){a&&a.removeChild(l)}selectRootElement(a,l){let p="string"==typeof a?document.querySelector(a):a;if(!p)throw new Error(`The selector "${a}" did not match any elements`);return l||(p.textContent=""),p}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,l,p,I){if(I){l=I+":"+l;const N=Ze[I];N?a.setAttributeNS(N,l,p):a.setAttribute(l,p)}else a.setAttribute(l,p)}removeAttribute(a,l,p){if(p){const I=Ze[p];I?a.removeAttributeNS(I,l):a.removeAttribute(`${p}:${l}`)}else a.removeAttribute(l)}addClass(a,l){a.classList.add(l)}removeClass(a,l){a.classList.remove(l)}setStyle(a,l,p,I){I&(O.JOm.DashCase|O.JOm.Important)?a.style.setProperty(l,p,I&O.JOm.Important?"important":""):a.style[l]=p}removeStyle(a,l,p){p&O.JOm.DashCase?a.style.removeProperty(l):a.style[l]=""}setProperty(a,l,p){a[l]=p}setValue(a,l){a.nodeValue=l}listen(a,l,p){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,l,ft(p)):this.eventManager.addEventListener(a,l,ft(p))}}class Fn extends an{constructor(a,l,p,I){super(a),this.component=p;const N=Et(I+"-"+p.id,p.styles,[]);l.addStyles(N),this.contentAttr="_ngcontent-%COMP%".replace(Fe,I+"-"+p.id),this.hostAttr="_nghost-%COMP%".replace(Fe,I+"-"+p.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,l){const p=super.createElement(a,l);return super.setAttribute(p,this.contentAttr,""),p}}class Yt extends an{constructor(a,l,p,I){super(a),this.sharedStylesHost=l,this.hostEl=p,this.shadowRoot=p.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const N=Et(I.id,I.styles,[]);for(let W=0;W{class m extends Le{constructor(l){super(l)}supports(l){return!0}addEventListener(l,p,I){return l.addEventListener(p,I,!1),()=>this.removeEventListener(l,p,I)}removeEventListener(l,p,I){return l.removeEventListener(p,I)}}return m.\u0275fac=function(l){return new(l||m)(O.LFG(s.K0))},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})();const bt=["alt","control","meta","shift"],ht={"\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"},zt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},en={alt:m=>m.altKey,control:m=>m.ctrlKey,meta:m=>m.metaKey,shift:m=>m.shiftKey};let wt=(()=>{class m extends Le{constructor(l){super(l)}supports(l){return null!=m.parseEventName(l)}addEventListener(l,p,I){const N=m.parseEventName(p),W=m.eventCallback(N.fullKey,I,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,s.q)().onAndCancel(l,N.domEventName,W))}static parseEventName(l){const p=l.toLowerCase().split("."),I=p.shift();if(0===p.length||"keydown"!==I&&"keyup"!==I)return null;const N=m._normalizeKey(p.pop());let W="";if(bt.forEach(Ee=>{const ke=p.indexOf(Ee);ke>-1&&(p.splice(ke,1),W+=Ee+".")}),W+=N,0!=p.length||0===N.length)return null;const oe={};return oe.domEventName=I,oe.fullKey=W,oe}static getEventFullKey(l){let p="",I=function(m){let a=m.key;if(null==a){if(a=m.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===m.location&&zt.hasOwnProperty(a)&&(a=zt[a]))}return ht[a]||a}(l);return I=I.toLowerCase()," "===I?I="space":"."===I&&(I="dot"),bt.forEach(N=>{N!=I&&en[N](l)&&(p+=N+".")}),p+=I,p}static eventCallback(l,p,I){return N=>{m.getEventFullKey(N)===l&&I.runGuarded(()=>p(N))}}static _normalizeKey(l){return"esc"===l?"escape":l}}return m.\u0275fac=function(l){return new(l||m)(O.LFG(s.K0))},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})();const dr=(0,O.eFA)(O._c5,"browser",[{provide:O.Lbi,useValue:s.bD},{provide:O.g9A,useValue:function(){je.makeCurrent(),X.init()},multi:!0},{provide:s.K0,useFactory:function(){return(0,O.RDi)(document),document},deps:[]}]),er=[[],{provide:O.zSh,useValue:"root"},{provide:O.qLn,useFactory:function(){return new O.qLn},deps:[]},{provide:xe,useClass:Rn,multi:!0,deps:[s.K0,O.R0b,O.Lbi]},{provide:xe,useClass:wt,multi:!0,deps:[s.K0]},[],{provide:It,useClass:It,deps:[Ae,Ot,O.AFp]},{provide:O.FYo,useExisting:It},{provide:We,useExisting:Ot},{provide:Ot,useClass:Ot,deps:[s.K0]},{provide:O.dDg,useClass:O.dDg,deps:[O.R0b]},{provide:Ae,useClass:Ae,deps:[xe,O.R0b]},{provide:s.JF,useClass:te,deps:[]},[]];let nr=(()=>{class m{constructor(l){if(l)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(l){return{ngModule:m,providers:[{provide:O.AFp,useValue:l.appId},{provide:Q,useExisting:O.AFp},K]}}}return m.\u0275fac=function(l){return new(l||m)(O.LFG(m,12))},m.\u0275mod=O.oAB({type:m}),m.\u0275inj=O.cJS({providers:er,imports:[s.ez,O.hGG]}),m})();"undefined"!=typeof window&&window;var Jt=L(8739),Vt=L(8239),Sn=L(2300);let zn=(()=>{class m{constructor(l,p){this.memory=l,this.router=p}canActivate(l,p){var I=this;return new Promise(function(){var N=(0,Vt.Z)(function*(W,oe){const Ee=window.location.href.replace(window.location.origin,"");return I.memory.isLogged&&I.memory.userAttr?W(!0):(I.memory.previousUrl=Ee,I.router.navigateByUrl("/reload"),W(!1))});return function(W,oe){return N.apply(this,arguments)}}())}}return m.\u0275fac=function(l){return new(l||m)(O.LFG(Sn.S),O.LFG(Jt.F0))},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();const En=[{path:"",redirectTo:"/login",pathMatch:"full"},{path:"login",loadChildren:()=>Promise.all([L.e(3743),L.e(1999),L.e(8592),L.e(6158)]).then(L.bind(L,6158)).then(m=>m.LoginModule)},{path:"register",loadChildren:()=>Promise.all([L.e(3743),L.e(8592),L.e(4174)]).then(L.bind(L,4174)).then(m=>m.RegisterModule)},{path:"restore",loadChildren:()=>Promise.all([L.e(3743),L.e(1999),L.e(5970)]).then(L.bind(L,5970)).then(m=>m.RestoreModule)},{path:"home",loadChildren:()=>Promise.all([L.e(7482),L.e(1898),L.e(100),L.e(8592),L.e(7054)]).then(L.bind(L,7054)).then(m=>m.HomeModule),canActivate:[zn]},{path:"menu",loadChildren:()=>L.e(4909).then(L.bind(L,4909)).then(m=>m.MenuModule),canActivate:[zn]},{path:"edit-user",loadChildren:()=>Promise.all([L.e(8592),L.e(6173)]).then(L.bind(L,6173)).then(m=>m.EditUserModule),canActivate:[zn]},{path:"payment-methods",loadChildren:()=>Promise.all([L.e(7482),L.e(1898),L.e(6890)]).then(L.bind(L,6890)).then(m=>m.PaymentMethodsModule),canActivate:[zn]},{path:"payment-history",loadChildren:()=>Promise.all([L.e(8592),L.e(2986)]).then(L.bind(L,2986)).then(m=>m.PaymentHistoryModule),canActivate:[zn]},{path:"wallet-history",loadChildren:()=>Promise.all([L.e(7482),L.e(8592),L.e(3134)]).then(L.bind(L,3134)).then(m=>m.WalletHistoryModule),canActivate:[zn]},{path:"reload",loadChildren:()=>L.e(4591).then(L.bind(L,4591)).then(m=>m.ReloadModule)},{path:"list",loadChildren:()=>Promise.all([L.e(7482),L.e(1898),L.e(341)]).then(L.bind(L,341)).then(m=>m.ListModule),canActivate:[zn]},{path:"code",loadChildren:()=>Promise.all([L.e(100),L.e(7488)]).then(L.bind(L,7488)).then(m=>m.CodeModule),canActivate:[zn]},{path:"payresult",loadChildren:()=>L.e(1348).then(L.bind(L,1348)).then(m=>m.PayresultModule)},{path:"device",loadChildren:()=>L.e(1348).then(L.bind(L,1348)).then(m=>m.PayresultModule)},{path:"registerresult",loadChildren:()=>L.e(1348).then(L.bind(L,1348)).then(m=>m.PayresultModule)}];let Fr=(()=>{class m{}return m.\u0275fac=function(l){return new(l||m)},m.\u0275mod=O.oAB({type:m}),m.\u0275inj=O.cJS({imports:[[Jt.Bz.forRoot(En,{preloadingStrategy:Jt.wm})],Jt.Bz]}),m})();var qn=L(4156);class Lt{}const U="*";function de(m,a){return{type:7,name:m,definitions:a,options:{}}}function C(m,a=null){return{type:4,styles:a,timings:m}}function j(m,a=null){return{type:2,steps:m,options:a}}function $(m){return{type:6,styles:m,offset:null}}function J(m,a,l=null){return{type:1,expr:m,animation:a,options:l}}function Dt(m){Promise.resolve(null).then(m)}class Ct{constructor(a=0,l=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+l}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Dt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(p=>p()),l.length=0}}class mn{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let l=0,p=0,I=0;const N=this.players.length;0==N?Dt(()=>this._onFinish()):this.players.forEach(W=>{W.onDone(()=>{++l==N&&this._onFinish()}),W.onDestroy(()=>{++p==N&&this._onDestroy()}),W.onStart(()=>{++I==N&&this._onStart()})}),this.totalTime=this.players.reduce((W,oe)=>Math.max(W,oe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const l=a*this.totalTime;this.players.forEach(p=>{const I=p.totalTime?Math.min(1,l/p.totalTime):1;p.setPosition(I)})}getPosition(){const a=this.players.reduce((l,p)=>null===l||p.totalTime>l.totalTime?p:l,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(p=>p()),l.length=0}}function An(m,a){if(1&m&&(O.TgZ(0,"span",3),O._uU(1),O.qZA()),2&m){const l=O.oxw();O.xp6(1),O.Oqu(l.spinnerMessage)}}let yr=(()=>{class m{constructor(l){this.spinner=l,this.spinner.message$.subscribe(p=>{this.spinnerMessage=p})}ngOnInit(){}}return m.\u0275fac=function(l){return new(l||m)(O.Y36(qn.V))},m.\u0275cmp=O.Xpm({type:m,selectors:[["app-loader-page"]],decls:4,vars:1,consts:[[1,"box-loader"],[1,"loader"],["class","text-span",4,"ngIf"],[1,"text-span"]],template:function(l,p){1&l&&(O.TgZ(0,"main"),O.TgZ(1,"div",0),O._UZ(2,"div",1),O.YNc(3,An,2,1,"span",2),O.qZA(),O.qZA()),2&l&&(O.xp6(3),O.Q6J("ngIf",p.spinnerMessage))},directives:[s.O5],styles:['@charset "UTF-8";main[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;display:flex;align-items:center;justify-content:center;background-color:#fff}.box-loader[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%}span[_ngcontent-%COMP%]{margin-top:1rem;font-family:"Roboto";font-size:1.25rem;font-weight:400;line-height:1.25rem;text-align:center}.loader[_ngcontent-%COMP%]{width:50px;aspect-ratio:1;border-radius:50%;border:8px solid;border-color:#000 #0000;animation:l1 1s infinite}@keyframes l1{to{transform:rotate(.5turn)}}'],data:{animation:[de("fadeInOut",[J(":enter",[$({opacity:0}),C("3000ms ease-in",$({opacity:1}))]),J(":leave",[C("3000ms ease-out",$({opacity:0}))])])]}}),m})();function Ur(m,a){1&m&&O._UZ(0,"app-loader-page")}let Yn=(()=>{class m{constructor(l,p){this.spinner=l,this.cdr=p,this.canViewSpinner=!1}ngOnInit(){this.spinner.loading$.subscribe(l=>{this.canViewSpinner=l,this.cdr.detectChanges()})}ngAfterViewInit(){}}return m.\u0275fac=function(l){return new(l||m)(O.Y36(qn.V),O.Y36(O.sBO))},m.\u0275cmp=O.Xpm({type:m,selectors:[["app-root"]],decls:2,vars:1,consts:[[4,"ngIf"]],template:function(l,p){1&l&&(O._UZ(0,"router-outlet"),O.YNc(1,Ur,1,0,"app-loader-page",0)),2&l&&(O.xp6(1),O.Q6J("ngIf",p.canViewSpinner))},directives:[Jt.lC,s.O5,yr],styles:[""]}),m})();var fr=L(700);function Io(){return"undefined"!=typeof window&&void 0!==window.document}function co(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Nr(m){switch(m.length){case 0:return new Ct;case 1:return m[0];default:return new mn(m)}}function Kr(m,a,l,p,I={},N={}){const W=[],oe=[];let Ee=-1,ke=null;if(p.forEach(mt=>{const xt=mt.offset,$t=xt==Ee,Cn=$t&&ke||{};Object.keys(mt).forEach(Kt=>{let dn=Kt,xn=mt[Kt];if("offset"!==Kt)switch(dn=a.normalizePropertyName(dn,W),xn){case"!":xn=I[Kt];break;case U:xn=N[Kt];break;default:xn=a.normalizeStyleValue(Kt,dn,xn,W)}Cn[dn]=xn}),$t||oe.push(Cn),ke=Cn,Ee=xt}),W.length){const mt="\n - ";throw new Error(`Unable to animate due to the following errors:${mt}${W.join(mt)}`)}return oe}function Xo(m,a,l,p){switch(a){case"start":m.onStart(()=>p(l&&ko(l,"start",m)));break;case"done":m.onDone(()=>p(l&&ko(l,"done",m)));break;case"destroy":m.onDestroy(()=>p(l&&ko(l,"destroy",m)))}}function ko(m,a,l){const p=l.totalTime,N=To(m.element,m.triggerName,m.fromState,m.toState,a||m.phaseName,null==p?m.totalTime:p,!!l.disabled),W=m._data;return null!=W&&(N._data=W),N}function To(m,a,l,p,I="",N=0,W){return{element:m,triggerName:a,fromState:l,toState:p,phaseName:I,totalTime:N,disabled:!!W}}function Rr(m,a,l){let p;return m instanceof Map?(p=m.get(a),p||m.set(a,p=l)):(p=m[a],p||(p=m[a]=l)),p}function Lo(m){const a=m.indexOf(":");return[m.substring(1,a),m.substr(a+1)]}let Bo=(m,a)=>!1,po=(m,a)=>!1,uo=(m,a,l)=>[];const Ei=co();(Ei||"undefined"!=typeof Element)&&(Bo=Io()?(m,a)=>{for(;a&&a!==document.documentElement;){if(a===m)return!0;a=a.parentNode||a.host}return!1}:(m,a)=>m.contains(a),po=(()=>{if(Ei||Element.prototype.matches)return(m,a)=>m.matches(a);{const m=Element.prototype,a=m.matchesSelector||m.mozMatchesSelector||m.msMatchesSelector||m.oMatchesSelector||m.webkitMatchesSelector;return a?(l,p)=>a.apply(l,[p]):po}})(),uo=(m,a,l)=>{let p=[];if(l){const I=m.querySelectorAll(a);for(let N=0;N{const p=l.replace(/([a-z])([A-Z])/g,"$1-$2");a[p]=m[l]}),a}let Zo=(()=>{class m{validateStyleProperty(l){return qr(l)}matchesElement(l,p){return Ao(l,p)}containsElement(l,p){return Jo(l,p)}query(l,p,I){return Xr(l,p,I)}computeStyle(l,p,I){return I||""}animate(l,p,I,N,W,oe=[],Ee){return new Ct(I,N)}}return m.\u0275fac=function(l){return new(l||m)},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})(),$o=(()=>{class m{}return m.NOOP=new Zo,m})();const yo="ng-enter",jo="ng-leave",V="ng-trigger",M=".ng-trigger",z="ng-animating",fe=".ng-animating";function Ke(m){if("number"==typeof m)return m;const a=m.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:it(parseFloat(a[1]),a[2])}function it(m,a){return"s"===a?1e3*m:m}function T(m,a,l){return m.hasOwnProperty("duration")?m:function(m,a,l){let I,N=0,W="";if("string"==typeof m){const oe=m.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===oe)return a.push(`The provided timing value "${m}" is invalid.`),{duration:0,delay:0,easing:""};I=it(parseFloat(oe[1]),oe[2]);const Ee=oe[3];null!=Ee&&(N=it(parseFloat(Ee),oe[4]));const ke=oe[5];ke&&(W=ke)}else I=m;if(!l){let oe=!1,Ee=a.length;I<0&&(a.push("Duration values below 0 are not allowed for this animation step."),oe=!0),N<0&&(a.push("Delay values below 0 are not allowed for this animation step."),oe=!0),oe&&a.splice(Ee,0,`The provided timing value "${m}" is invalid.`)}return{duration:I,delay:N,easing:W}}(m,a,l)}function b(m,a={}){return Object.keys(m).forEach(l=>{a[l]=m[l]}),a}function Ie(m,a,l={}){if(a)for(let p in m)l[p]=m[p];else b(m,l);return l}function ct(m,a,l){return l?a+":"+l+";":""}function Wt(m){let a="";for(let l=0;l{const I=Ji(p);l&&!l.hasOwnProperty(p)&&(l[p]=m.style[I]),m.style[I]=a[p]}),co()&&Wt(m))}function Wn(m,a){m.style&&(Object.keys(a).forEach(l=>{const p=Ji(l);m.style[p]=""}),co()&&Wt(m))}function kn(m){return Array.isArray(m)?1==m.length?m[0]:j(m):m}const kr=new RegExp("{{\\s*(.+?)\\s*}}","g");function to(m){let a=[];if("string"==typeof m){let l;for(;l=kr.exec(m);)a.push(l[1]);kr.lastIndex=0}return a}function lr(m,a,l){const p=m.toString(),I=p.replace(kr,(N,W)=>{let oe=a[W];return a.hasOwnProperty(W)||(l.push(`Please provide a value for the animation param ${W}`),oe=""),oe.toString()});return I==p?m:I}function vr(m){const a=[];let l=m.next();for(;!l.done;)a.push(l.value),l=m.next();return a}const wi=/-+([a-z0-9])/g;function Ji(m){return m.replace(wi,(...a)=>a[1].toUpperCase())}function fo(m){return m.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ei(m,a){return 0===m||0===a}function Si(m,a,l){const p=Object.keys(l);if(p.length&&a.length){let N=a[0],W=[];if(p.forEach(oe=>{N.hasOwnProperty(oe)||W.push(oe),N[oe]=l[oe]}),W.length)for(var I=1;Ifunction(m,a,l){if(":"==m[0]){const Ee=function(m,a){switch(m){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,p)=>parseFloat(p)>parseFloat(l);case":decrement":return(l,p)=>parseFloat(p) *"}}(m,l);if("function"==typeof Ee)return void a.push(Ee);m=Ee}const p=m.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==p||p.length<4)return l.push(`The provided transition expression "${m}" is not supported`),a;const I=p[1],N=p[2],W=p[3];a.push(st(I,W));"<"==N[0]&&!("*"==I&&"*"==W)&&a.push(st(W,I))}(p,l,a)):l.push(m),l}const Uo=new Set(["true","1"]),ci=new Set(["false","0"]);function st(m,a){const l=Uo.has(m)||ci.has(m),p=Uo.has(a)||ci.has(a);return(I,N)=>{let W="*"==m||m==I,oe="*"==a||a==N;return!W&&l&&"boolean"==typeof I&&(W=I?Uo.has(m):ci.has(m)),!oe&&p&&"boolean"==typeof N&&(oe=N?Uo.has(a):ci.has(a)),W&&oe}}const $s=new RegExp("s*:selfs*,?","g");function hr(m,a,l){return new Ii(m).build(a,l)}class Ii{constructor(a){this._driver=a}build(a,l){const p=new ns(l);return this._resetContextStyleTimingState(p),Pt(this,kn(a),p)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,l){let p=l.queryCount=0,I=l.depCount=0;const N=[],W=[];return"@"==a.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(oe=>{if(this._resetContextStyleTimingState(l),0==oe.type){const Ee=oe,ke=Ee.name;ke.toString().split(/\s*,\s*/).forEach(mt=>{Ee.name=mt,N.push(this.visitState(Ee,l))}),Ee.name=ke}else if(1==oe.type){const Ee=this.visitTransition(oe,l);p+=Ee.queryCount,I+=Ee.depCount,W.push(Ee)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:N,transitions:W,queryCount:p,depCount:I,options:null}}visitState(a,l){const p=this.visitStyle(a.styles,l),I=a.options&&a.options.params||null;if(p.containsDynamicStyles){const N=new Set,W=I||{};if(p.styles.forEach(oe=>{if(Go(oe)){const Ee=oe;Object.keys(Ee).forEach(ke=>{to(Ee[ke]).forEach(mt=>{W.hasOwnProperty(mt)||N.add(mt)})})}}),N.size){const oe=vr(N.values());l.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${oe.join(", ")}`)}}return{type:0,name:a.name,style:p,options:I?{params:I}:null}}visitTransition(a,l){l.queryCount=0,l.depCount=0;const p=Pt(this,kn(a.animation),l);return{type:1,matchers:ts(a.expr,l.errors),animation:p,queryCount:l.queryCount,depCount:l.depCount,options:_o(a.options)}}visitSequence(a,l){return{type:2,steps:a.steps.map(p=>Pt(this,p,l)),options:_o(a.options)}}visitGroup(a,l){const p=l.currentTime;let I=0;const N=a.steps.map(W=>{l.currentTime=p;const oe=Pt(this,W,l);return I=Math.max(I,l.currentTime),oe});return l.currentTime=I,{type:3,steps:N,options:_o(a.options)}}visitAnimate(a,l){const p=function(m,a){let l=null;if(m.hasOwnProperty("duration"))l=m;else if("number"==typeof m)return pr(T(m,a).duration,0,"");const p=m;if(p.split(/\s+/).some(N=>"{"==N.charAt(0)&&"{"==N.charAt(1))){const N=pr(0,0,"");return N.dynamic=!0,N.strValue=p,N}return l=l||T(p,a),pr(l.duration,l.delay,l.easing)}(a.timings,l.errors);l.currentAnimateTimings=p;let I,N=a.styles?a.styles:$({});if(5==N.type)I=this.visitKeyframes(N,l);else{let W=a.styles,oe=!1;if(!W){oe=!0;const ke={};p.easing&&(ke.easing=p.easing),W=$(ke)}l.currentTime+=p.duration+p.delay;const Ee=this.visitStyle(W,l);Ee.isEmptyStep=oe,I=Ee}return l.currentAnimateTimings=null,{type:4,timings:p,style:I,options:null}}visitStyle(a,l){const p=this._makeStyleAst(a,l);return this._validateStyleAst(p,l),p}_makeStyleAst(a,l){const p=[];Array.isArray(a.styles)?a.styles.forEach(W=>{"string"==typeof W?W==U?p.push(W):l.errors.push(`The provided style string value ${W} is not allowed.`):p.push(W)}):p.push(a.styles);let I=!1,N=null;return p.forEach(W=>{if(Go(W)){const oe=W,Ee=oe.easing;if(Ee&&(N=Ee,delete oe.easing),!I)for(let ke in oe)if(oe[ke].toString().indexOf("{{")>=0){I=!0;break}}}),{type:6,styles:p,easing:N,offset:a.offset,containsDynamicStyles:I,options:null}}_validateStyleAst(a,l){const p=l.currentAnimateTimings;let I=l.currentTime,N=l.currentTime;p&&N>0&&(N-=p.duration+p.delay),a.styles.forEach(W=>{"string"!=typeof W&&Object.keys(W).forEach(oe=>{if(!this._driver.validateStyleProperty(oe))return void l.errors.push(`The provided animation property "${oe}" is not a supported CSS property for animations`);const Ee=l.collectedStyles[l.currentQuerySelector],ke=Ee[oe];let mt=!0;ke&&(N!=I&&N>=ke.startTime&&I<=ke.endTime&&(l.errors.push(`The CSS property "${oe}" that exists between the times of "${ke.startTime}ms" and "${ke.endTime}ms" is also being animated in a parallel animation between the times of "${N}ms" and "${I}ms"`),mt=!1),N=ke.startTime),mt&&(Ee[oe]={startTime:N,endTime:I}),l.options&&function(m,a,l){const p=a.params||{},I=to(m);I.length&&I.forEach(N=>{p.hasOwnProperty(N)||l.push(`Unable to resolve the local animation param ${N} in the given list of values`)})}(W[oe],l.options,l.errors)})})}visitKeyframes(a,l){const p={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),p;let N=0;const W=[];let oe=!1,Ee=!1,ke=0;const mt=a.steps.map(Sr=>{const Or=this._makeStyleAst(Sr,l);let Eo=null!=Or.offset?Or.offset:function(m){if("string"==typeof m)return null;let a=null;if(Array.isArray(m))m.forEach(l=>{if(Go(l)&&l.hasOwnProperty("offset")){const p=l;a=parseFloat(p.offset),delete p.offset}});else if(Go(m)&&m.hasOwnProperty("offset")){const l=m;a=parseFloat(l.offset),delete l.offset}return a}(Or.styles),ur=0;return null!=Eo&&(N++,ur=Or.offset=Eo),Ee=Ee||ur<0||ur>1,oe=oe||ur0&&N{const Eo=$t>0?Or==Cn?1:$t*Or:W[Or],ur=Eo*xn;l.currentTime=Kt+dn.delay+ur,dn.duration=ur,this._validateStyleAst(Sr,l),Sr.offset=Eo,p.styles.push(Sr)}),p}visitReference(a,l){return{type:8,animation:Pt(this,kn(a.animation),l),options:_o(a.options)}}visitAnimateChild(a,l){return l.depCount++,{type:9,options:_o(a.options)}}visitAnimateRef(a,l){return{type:10,animation:this.visitReference(a.animation,l),options:_o(a.options)}}visitQuery(a,l){const p=l.currentQuerySelector,I=a.options||{};l.queryCount++,l.currentQuery=a;const[N,W]=function(m){const a=!!m.split(/\s*,\s*/).find(l=>":self"==l);return a&&(m=m.replace($s,"")),m=m.replace(/@\*/g,M).replace(/@\w+/g,l=>M+"-"+l.substr(1)).replace(/:animating/g,fe),[m,a]}(a.selector);l.currentQuerySelector=p.length?p+" "+N:N,Rr(l.collectedStyles,l.currentQuerySelector,{});const oe=Pt(this,kn(a.animation),l);return l.currentQuery=null,l.currentQuerySelector=p,{type:11,selector:N,limit:I.limit||0,optional:!!I.optional,includeSelf:W,animation:oe,originalSelector:a.selector,options:_o(a.options)}}visitStagger(a,l){l.currentQuery||l.errors.push("stagger() can only be used inside of query()");const p="full"===a.timings?{duration:0,delay:0,easing:"full"}:T(a.timings,l.errors,!0);return{type:12,animation:Pt(this,kn(a.animation),l),timings:p,options:null}}}class ns{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Go(m){return!Array.isArray(m)&&"object"==typeof m}function _o(m){return m?(m=b(m)).params&&(m.params=function(m){return m?b(m):null}(m.params)):m={},m}function pr(m,a,l){return{duration:m,delay:a,easing:l}}function no(m,a,l,p,I,N,W=null,oe=!1){return{type:1,element:m,keyframes:a,preStyleProps:l,postStyleProps:p,duration:I,delay:N,totalTime:I+N,easing:W,subTimeline:oe}}class Qr{constructor(){this._map=new Map}consume(a){let l=this._map.get(a);return l?this._map.delete(a):l=[],l}append(a,l){let p=this._map.get(a);p||this._map.set(a,p=[]),p.push(...l)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Mi=new RegExp(":enter","g"),Ma=new RegExp(":leave","g");function os(m,a,l,p,I,N={},W={},oe,Ee,ke=[]){return(new is).buildKeyframes(m,a,l,p,I,N,W,oe,Ee,ke)}class is{buildKeyframes(a,l,p,I,N,W,oe,Ee,ke,mt=[]){ke=ke||new Qr;const xt=new ss(a,l,ke,I,N,mt,[]);xt.options=Ee,xt.currentTimeline.setStyles([W],null,xt.errors,Ee),Pt(this,p,xt);const $t=xt.timelines.filter(Cn=>Cn.containsAnimation());if($t.length&&Object.keys(oe).length){const Cn=$t[$t.length-1];Cn.allowOnlyTimelineStyles()||Cn.setStyles([oe],null,xt.errors,Ee)}return $t.length?$t.map(Cn=>Cn.buildKeyframes()):[no(l,[],[],[],0,0,"",!1)]}visitTrigger(a,l){}visitState(a,l){}visitTransition(a,l){}visitAnimateChild(a,l){const p=l.subInstructions.consume(l.element);if(p){const I=l.createSubContext(a.options),N=l.currentTimeline.currentTime,W=this._visitSubInstructions(p,I,I.options);N!=W&&l.transformIntoNewTimeline(W)}l.previousNode=a}visitAnimateRef(a,l){const p=l.createSubContext(a.options);p.transformIntoNewTimeline(),this.visitReference(a.animation,p),l.transformIntoNewTimeline(p.currentTimeline.currentTime),l.previousNode=a}_visitSubInstructions(a,l,p){let N=l.currentTimeline.currentTime;const W=null!=p.duration?Ke(p.duration):null,oe=null!=p.delay?Ke(p.delay):null;return 0!==W&&a.forEach(Ee=>{const ke=l.appendInstructionToTimeline(Ee,W,oe);N=Math.max(N,ke.duration+ke.delay)}),N}visitReference(a,l){l.updateOptions(a.options,!0),Pt(this,a.animation,l),l.previousNode=a}visitSequence(a,l){const p=l.subContextCount;let I=l;const N=a.options;if(N&&(N.params||N.delay)&&(I=l.createSubContext(N),I.transformIntoNewTimeline(),null!=N.delay)){6==I.previousNode.type&&(I.currentTimeline.snapshotCurrentStyles(),I.previousNode=ui);const W=Ke(N.delay);I.delayNextStep(W)}a.steps.length&&(a.steps.forEach(W=>Pt(this,W,I)),I.currentTimeline.applyStylesToKeyframe(),I.subContextCount>p&&I.transformIntoNewTimeline()),l.previousNode=a}visitGroup(a,l){const p=[];let I=l.currentTimeline.currentTime;const N=a.options&&a.options.delay?Ke(a.options.delay):0;a.steps.forEach(W=>{const oe=l.createSubContext(a.options);N&&oe.delayNextStep(N),Pt(this,W,oe),I=Math.max(I,oe.currentTimeline.currentTime),p.push(oe.currentTimeline)}),p.forEach(W=>l.currentTimeline.mergeTimelineCollectedStyles(W)),l.transformIntoNewTimeline(I),l.previousNode=a}_visitTiming(a,l){if(a.dynamic){const p=a.strValue;return T(l.params?lr(p,l.params,l.errors):p,l.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,l){const p=l.currentAnimateTimings=this._visitTiming(a.timings,l),I=l.currentTimeline;p.delay&&(l.incrementTime(p.delay),I.snapshotCurrentStyles());const N=a.style;5==N.type?this.visitKeyframes(N,l):(l.incrementTime(p.duration),this.visitStyle(N,l),I.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=a}visitStyle(a,l){const p=l.currentTimeline,I=l.currentAnimateTimings;!I&&p.getCurrentStyleProperties().length&&p.forwardFrame();const N=I&&I.easing||a.easing;a.isEmptyStep?p.applyEmptyStep(N):p.setStyles(a.styles,N,l.errors,l.options),l.previousNode=a}visitKeyframes(a,l){const p=l.currentAnimateTimings,I=l.currentTimeline.duration,N=p.duration,oe=l.createSubContext().currentTimeline;oe.easing=p.easing,a.styles.forEach(Ee=>{oe.forwardTime((Ee.offset||0)*N),oe.setStyles(Ee.styles,Ee.easing,l.errors,l.options),oe.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(oe),l.transformIntoNewTimeline(I+N),l.previousNode=a}visitQuery(a,l){const p=l.currentTimeline.currentTime,I=a.options||{},N=I.delay?Ke(I.delay):0;N&&(6===l.previousNode.type||0==p&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=ui);let W=p;const oe=l.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!I.optional,l.errors);l.currentQueryTotal=oe.length;let Ee=null;oe.forEach((ke,mt)=>{l.currentQueryIndex=mt;const xt=l.createSubContext(a.options,ke);N&&xt.delayNextStep(N),ke===l.element&&(Ee=xt.currentTimeline),Pt(this,a.animation,xt),xt.currentTimeline.applyStylesToKeyframe(),W=Math.max(W,xt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(W),Ee&&(l.currentTimeline.mergeTimelineCollectedStyles(Ee),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=a}visitStagger(a,l){const p=l.parentContext,I=l.currentTimeline,N=a.timings,W=Math.abs(N.duration),oe=W*(l.currentQueryTotal-1);let Ee=W*l.currentQueryIndex;switch(N.duration<0?"reverse":N.easing){case"reverse":Ee=oe-Ee;break;case"full":Ee=p.currentStaggerTime}const mt=l.currentTimeline;Ee&&mt.delayNextStep(Ee);const xt=mt.currentTime;Pt(this,a.animation,l),l.previousNode=a,p.currentStaggerTime=I.currentTime-xt+(I.startTime-p.currentTimeline.startTime)}}const ui={};class ss{constructor(a,l,p,I,N,W,oe,Ee){this._driver=a,this.element=l,this.subInstructions=p,this._enterClassName=I,this._leaveClassName=N,this.errors=W,this.timelines=oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ui,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ee||new Ri(this._driver,l,0),oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,l){if(!a)return;const p=a;let I=this.options;null!=p.duration&&(I.duration=Ke(p.duration)),null!=p.delay&&(I.delay=Ke(p.delay));const N=p.params;if(N){let W=I.params;W||(W=this.options.params={}),Object.keys(N).forEach(oe=>{(!l||!W.hasOwnProperty(oe))&&(W[oe]=lr(N[oe],W,this.errors))})}}_copyOptions(){const a={};if(this.options){const l=this.options.params;if(l){const p=a.params={};Object.keys(l).forEach(I=>{p[I]=l[I]})}}return a}createSubContext(a=null,l,p){const I=l||this.element,N=new ss(this._driver,I,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(I,p||0));return N.previousNode=this.previousNode,N.currentAnimateTimings=this.currentAnimateTimings,N.options=this._copyOptions(),N.updateOptions(a),N.currentQueryIndex=this.currentQueryIndex,N.currentQueryTotal=this.currentQueryTotal,N.parentContext=this,this.subContextCount++,N}transformIntoNewTimeline(a){return this.previousNode=ui,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,l,p){const I={duration:null!=l?l:a.duration,delay:this.currentTimeline.currentTime+(null!=p?p:0)+a.delay,easing:""},N=new Ra(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,I,a.stretchStartingKeyframe);return this.timelines.push(N),I}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,l,p,I,N,W){let oe=[];if(I&&oe.push(this.element),a.length>0){a=(a=a.replace(Mi,"."+this._enterClassName)).replace(Ma,"."+this._leaveClassName);let ke=this._driver.query(this.element,a,1!=p);0!==p&&(ke=p<0?ke.slice(ke.length+p,ke.length):ke.slice(0,p)),oe.push(...ke)}return!N&&0==oe.length&&W.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),oe}}class Ri{constructor(a,l,p,I){this._driver=a,this.element=l,this.startTime=p,this._elementTimelineStylesLookup=I,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+a),l&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,l){return this.applyStylesToKeyframe(),new Ri(this._driver,a,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,l){this._localTimelineStyles[a]=l,this._globalTimelineStyles[a]=l,this._styleSummary[a]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||U,this._currentKeyframe[l]=U}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,l,p,I){l&&(this._previousKeyframe.easing=l);const N=I&&I.params||{},W=function(m,a){const l={};let p;return m.forEach(I=>{"*"===I?(p=p||Object.keys(a),p.forEach(N=>{l[N]=U})):Ie(I,!1,l)}),l}(a,this._globalTimelineStyles);Object.keys(W).forEach(oe=>{const Ee=lr(W[oe],N,p);this._pendingStyles[oe]=Ee,this._localTimelineStyles.hasOwnProperty(oe)||(this._backFill[oe]=this._globalTimelineStyles.hasOwnProperty(oe)?this._globalTimelineStyles[oe]:U),this._updateStyle(oe,Ee)})}applyStylesToKeyframe(){const a=this._pendingStyles,l=Object.keys(a);0!=l.length&&(this._pendingStyles={},l.forEach(p=>{this._currentKeyframe[p]=a[p]}),Object.keys(this._localTimelineStyles).forEach(p=>{this._currentKeyframe.hasOwnProperty(p)||(this._currentKeyframe[p]=this._localTimelineStyles[p])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const l=this._localTimelineStyles[a];this._pendingStyles[a]=l,this._updateStyle(a,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let l in this._currentKeyframe)a.push(l);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(l=>{const p=this._styleSummary[l],I=a._styleSummary[l];(!p||I.time>p.time)&&this._updateStyle(l,I.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,l=new Set,p=1===this._keyframes.size&&0===this.duration;let I=[];this._keyframes.forEach((oe,Ee)=>{const ke=Ie(oe,!0);Object.keys(ke).forEach(mt=>{const xt=ke[mt];"!"==xt?a.add(mt):xt==U&&l.add(mt)}),p||(ke.offset=Ee/this.duration),I.push(ke)});const N=a.size?vr(a.values()):[],W=l.size?vr(l.values()):[];if(p){const oe=I[0],Ee=b(oe);oe.offset=0,Ee.offset=1,I=[oe,Ee]}return no(this.element,I,N,W,this.duration,this.startTime,this.easing,!1)}}class Ra extends Ri{constructor(a,l,p,I,N,W,oe=!1){super(a,l,W.delay),this.keyframes=p,this.preStyleProps=I,this.postStyleProps=N,this._stretchStartingKeyframe=oe,this.timings={duration:W.duration,delay:W.delay,easing:W.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:l,duration:p,easing:I}=this.timings;if(this._stretchStartingKeyframe&&l){const N=[],W=p+l,oe=l/W,Ee=Ie(a[0],!1);Ee.offset=0,N.push(Ee);const ke=Ie(a[0],!1);ke.offset=js(oe),N.push(ke);const mt=a.length-1;for(let xt=1;xt<=mt;xt++){let $t=Ie(a[xt],!1);$t.offset=js((l+$t.offset*p)/W),N.push($t)}p=W,l=0,I="",a=N}return no(this.element,a,this.preStyleProps,this.postStyleProps,p,l,I,!0)}}function js(m,a=3){const l=Math.pow(10,a-1);return Math.round(m*l)/l}class ls{}class fa extends ls{normalizePropertyName(a,l){return Ji(a)}normalizeStyleValue(a,l,p,I){let N="";const W=p.toString().trim();if(u[l]&&0!==p&&"0"!==p)if("number"==typeof p)N="px";else{const oe=p.match(/^[+-]?[\d\.]+([a-z]*)$/);oe&&0==oe[1].length&&I.push(`Please provide a CSS unit value for ${a}:${p}`)}return W+N}}const u=(()=>function(m){const a={};return m.forEach(l=>a[l]=!0),a}("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".split(",")))();function d(m,a,l,p,I,N,W,oe,Ee,ke,mt,xt,$t){return{type:0,element:m,triggerName:a,isRemovalTransition:I,fromState:l,fromStyles:N,toState:p,toStyles:W,timelines:oe,queriedElements:Ee,preStyleProps:ke,postStyleProps:mt,totalTime:xt,errors:$t}}const _={};class P{constructor(a,l,p){this._triggerName=a,this.ast=l,this._stateStyles=p}match(a,l,p,I){return function(m,a,l,p,I){return m.some(N=>N(a,l,p,I))}(this.ast.matchers,a,l,p,I)}buildStyles(a,l,p){const I=this._stateStyles["*"],N=this._stateStyles[a],W=I?I.buildStyles(l,p):{};return N?N.buildStyles(l,p):W}build(a,l,p,I,N,W,oe,Ee,ke,mt){const xt=[],$t=this.ast.options&&this.ast.options.params||_,Kt=this.buildStyles(p,oe&&oe.params||_,xt),dn=Ee&&Ee.params||_,xn=this.buildStyles(I,dn,xt),Sr=new Set,Or=new Map,Eo=new Map,ur="void"===I,oa={params:Object.assign(Object.assign({},$t),dn)},pi=mt?[]:os(a,l,this.ast.animation,N,W,Kt,xn,oa,ke,xt);let ho=0;if(pi.forEach(Cr=>{ho=Math.max(Cr.duration+Cr.delay,ho)}),xt.length)return d(l,this._triggerName,p,I,ur,Kt,xn,[],[],Or,Eo,ho,xt);pi.forEach(Cr=>{const oi=Cr.element,Ul=Rr(Or,oi,{});Cr.preStyleProps.forEach(Ir=>Ul[Ir]=!0);const ia=Rr(Eo,oi,{});Cr.postStyleProps.forEach(Ir=>ia[Ir]=!0),oi!==l&&Sr.add(oi)});const Ko=vr(Sr.values());return d(l,this._triggerName,p,I,ur,Kt,xn,pi,Ko,Or,Eo,ho)}}class Ue{constructor(a,l,p){this.styles=a,this.defaultParams=l,this.normalizer=p}buildStyles(a,l){const p={},I=b(this.defaultParams);return Object.keys(a).forEach(N=>{const W=a[N];null!=W&&(I[N]=W)}),this.styles.styles.forEach(N=>{if("string"!=typeof N){const W=N;Object.keys(W).forEach(oe=>{let Ee=W[oe];Ee.length>1&&(Ee=lr(Ee,I,l));const ke=this.normalizer.normalizePropertyName(oe,l);Ee=this.normalizer.normalizeStyleValue(oe,ke,Ee,l),p[ke]=Ee})}}),p}}class Bt{constructor(a,l,p){this.name=a,this.ast=l,this._normalizer=p,this.transitionFactories=[],this.states={},l.states.forEach(I=>{this.states[I.name]=new Ue(I.style,I.options&&I.options.params||{},p)}),ln(this.states,"true","1"),ln(this.states,"false","0"),l.transitions.forEach(I=>{this.transitionFactories.push(new P(a,I,this.states))}),this.fallbackTransition=function(m,a,l){return new P(m,{type:1,animation:{type:2,steps:[],options:null},matchers:[(W,oe)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,l,p,I){return this.transitionFactories.find(W=>W.match(a,l,p,I))||null}matchStyles(a,l,p){return this.fallbackTransition.buildStyles(a,l,p)}}function ln(m,a,l){m.hasOwnProperty(a)?m.hasOwnProperty(l)||(m[l]=m[a]):m.hasOwnProperty(l)&&(m[a]=m[l])}const tn=new Qr;class cr{constructor(a,l,p){this.bodyNode=a,this._driver=l,this._normalizer=p,this._animations={},this._playersById={},this.players=[]}register(a,l){const p=[],I=hr(this._driver,l,p);if(p.length)throw new Error(`Unable to build the animation due to the following errors: ${p.join("\n")}`);this._animations[a]=I}_buildPlayer(a,l,p){const I=a.element,N=Kr(0,this._normalizer,0,a.keyframes,l,p);return this._driver.animate(I,N,a.duration,a.delay,a.easing,[],!0)}create(a,l,p={}){const I=[],N=this._animations[a];let W;const oe=new Map;if(N?(W=os(this._driver,l,N,yo,jo,{},{},p,tn,I),W.forEach(mt=>{const xt=Rr(oe,mt.element,{});mt.postStyleProps.forEach($t=>xt[$t]=null)})):(I.push("The requested animation doesn't exist or has already been destroyed"),W=[]),I.length)throw new Error(`Unable to create the animation due to the following errors: ${I.join("\n")}`);oe.forEach((mt,xt)=>{Object.keys(mt).forEach($t=>{mt[$t]=this._driver.computeStyle(xt,$t,U)})});const ke=Nr(W.map(mt=>{const xt=oe.get(mt.element);return this._buildPlayer(mt,{},xt)}));return this._playersById[a]=ke,ke.onDestroy(()=>this.destroy(a)),this.players.push(ke),ke}destroy(a){const l=this._getPlayer(a);l.destroy(),delete this._playersById[a];const p=this.players.indexOf(l);p>=0&&this.players.splice(p,1)}_getPlayer(a){const l=this._playersById[a];if(!l)throw new Error(`Unable to find the timeline player referenced by ${a}`);return l}listen(a,l,p,I){const N=To(l,"","","");return Xo(this._getPlayer(a),p,N,I),()=>{}}command(a,l,p,I){if("register"==p)return void this.register(a,I[0]);if("create"==p)return void this.create(a,l,I[0]||{});const N=this._getPlayer(a);switch(p){case"play":N.play();break;case"pause":N.pause();break;case"reset":N.reset();break;case"restart":N.restart();break;case"finish":N.finish();break;case"init":N.init();break;case"setPosition":N.setPosition(parseFloat(I[0]));break;case"destroy":this.destroy(a)}}}const vn="ng-animate-queued",_r="ng-animate-disabled",wr=".ng-animate-disabled",Nl=[],Pa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},As={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ro="__ng_removed";class Hs{constructor(a,l=""){this.namespaceId=l;const p=a&&a.hasOwnProperty("value");if(this.value=null!=(m=p?a.value:a)?m:null,p){const N=b(a);delete N.value,this.options=N}else this.options={};var m;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const l=a.params;if(l){const p=this.options.params;Object.keys(l).forEach(I=>{null==p[I]&&(p[I]=l[I])})}}}const Ms="void",Fa=new Hs(Ms);class oo{constructor(a,l,p){this.id=a,this.hostElement=l,this._engine=p,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,bo(l,this._hostClassName)}listen(a,l,p,I){if(!this._triggers.hasOwnProperty(l))throw new Error(`Unable to listen on the animation trigger event "${p}" because the animation trigger "${l}" doesn't exist!`);if(null==p||0==p.length)throw new Error(`Unable to listen on the animation trigger "${l}" because the provided event is undefined!`);if("start"!=(m=p)&&"done"!=m)throw new Error(`The provided animation trigger event "${p}" for the animation trigger "${l}" is not supported!`);var m;const N=Rr(this._elementListeners,a,[]),W={name:l,phase:p,callback:I};N.push(W);const oe=Rr(this._engine.statesByElement,a,{});return oe.hasOwnProperty(l)||(bo(a,V),bo(a,V+"-"+l),oe[l]=Fa),()=>{this._engine.afterFlush(()=>{const Ee=N.indexOf(W);Ee>=0&&N.splice(Ee,1),this._triggers[l]||delete oe[l]})}}register(a,l){return!this._triggers[a]&&(this._triggers[a]=l,!0)}_getTrigger(a){const l=this._triggers[a];if(!l)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return l}trigger(a,l,p,I=!0){const N=this._getTrigger(l),W=new Oi(this.id,l,a);let oe=this._engine.statesByElement.get(a);oe||(bo(a,V),bo(a,V+"-"+l),this._engine.statesByElement.set(a,oe={}));let Ee=oe[l];const ke=new Hs(p,this.id);if(!(p&&p.hasOwnProperty("value"))&&Ee&&ke.absorbOptions(Ee.options),oe[l]=ke,Ee||(Ee=Fa),ke.value!==Ms&&Ee.value===ke.value){if(!function(m,a){const l=Object.keys(m),p=Object.keys(a);if(l.length!=p.length)return!1;for(let I=0;I{Wn(a,xn),un(a,Sr)})}return}const $t=Rr(this._engine.playersByElement,a,[]);$t.forEach(dn=>{dn.namespaceId==this.id&&dn.triggerName==l&&dn.queued&&dn.destroy()});let Cn=N.matchTransition(Ee.value,ke.value,a,ke.params),Kt=!1;if(!Cn){if(!I)return;Cn=N.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:Cn,fromState:Ee,toState:ke,player:W,isFallbackTransition:Kt}),Kt||(bo(a,vn),W.onStart(()=>{di(a,vn)})),W.onDone(()=>{let dn=this.players.indexOf(W);dn>=0&&this.players.splice(dn,1);const xn=this._engine.playersByElement.get(a);if(xn){let Sr=xn.indexOf(W);Sr>=0&&xn.splice(Sr,1)}}),this.players.push(W),$t.push(W),W}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((l,p)=>{delete l[a]}),this._elementListeners.forEach((l,p)=>{this._elementListeners.set(p,l.filter(I=>I.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const l=this._engine.playersByElement.get(a);l&&(l.forEach(p=>p.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,l){const p=this._engine.driver.query(a,M,!0);p.forEach(I=>{if(I[ro])return;const N=this._engine.fetchNamespacesByElement(I);N.size?N.forEach(W=>W.triggerLeaveAnimation(I,l,!1,!0)):this.clearElementCache(I)}),this._engine.afterFlushAnimationsDone(()=>p.forEach(I=>this.clearElementCache(I)))}triggerLeaveAnimation(a,l,p,I){const N=this._engine.statesByElement.get(a);if(N){const W=[];if(Object.keys(N).forEach(oe=>{if(this._triggers[oe]){const Ee=this.trigger(a,oe,Ms,I);Ee&&W.push(Ee)}}),W.length)return this._engine.markElementAsRemoved(this.id,a,!0,l),p&&Nr(W).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const l=this._elementListeners.get(a),p=this._engine.statesByElement.get(a);if(l&&p){const I=new Set;l.forEach(N=>{const W=N.name;if(I.has(W))return;I.add(W);const Ee=this._triggers[W].fallbackTransition,ke=p[W]||Fa,mt=new Hs(Ms),xt=new Oi(this.id,W,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:W,transition:Ee,fromState:ke,toState:mt,player:xt,isFallbackTransition:!0})})}}removeNode(a,l){const p=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,l),this.triggerLeaveAnimation(a,l,!0))return;let I=!1;if(p.totalAnimations){const N=p.players.length?p.playersByQueriedElement.get(a):[];if(N&&N.length)I=!0;else{let W=a;for(;W=W.parentNode;)if(p.statesByElement.get(W)){I=!0;break}}}if(this.prepareLeaveAnimationListeners(a),I)p.markElementAsRemoved(this.id,a,!1,l);else{const N=a[ro];(!N||N===Pa)&&(p.afterFlush(()=>this.clearElementCache(a)),p.destroyInnerAnimations(a),p._onRemovalComplete(a,l))}}insertNode(a,l){bo(a,this._hostClassName)}drainQueuedTransitions(a){const l=[];return this._queue.forEach(p=>{const I=p.player;if(I.destroyed)return;const N=p.element,W=this._elementListeners.get(N);W&&W.forEach(oe=>{if(oe.name==p.triggerName){const Ee=To(N,p.triggerName,p.fromState.value,p.toState.value);Ee._data=a,Xo(p.player,oe.phase,Ee,oe.callback)}}),I.markedForDestroy?this._engine.afterFlush(()=>{I.destroy()}):l.push(p)}),this._queue=[],l.sort((p,I)=>{const N=p.transition.ast.depCount,W=I.transition.ast.depCount;return 0==N||0==W?N-W:this._engine.driver.containsElement(p.element,I.element)?1:-1})}destroy(a){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let l=!1;return this._elementListeners.has(a)&&(l=!0),l=!!this._queue.find(p=>p.element===a)||l,l}}class Us{constructor(a,l,p){this.bodyNode=a,this.driver=l,this._normalizer=p,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(I,N)=>{}}_onRemovalComplete(a,l){this.onRemovalComplete(a,l)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(l=>{l.players.forEach(p=>{p.queued&&a.push(p)})}),a}createNamespace(a,l){const p=new oo(a,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(p,l):(this.newHostElements.set(l,p),this.collectEnterElement(l)),this._namespaceLookup[a]=p}_balanceNamespaceList(a,l){const p=this._namespaceList.length-1;if(p>=0){let I=!1;for(let N=p;N>=0;N--)if(this.driver.containsElement(this._namespaceList[N].hostElement,l)){this._namespaceList.splice(N+1,0,a),I=!0;break}I||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.set(l,a),a}register(a,l){let p=this._namespaceLookup[a];return p||(p=this.createNamespace(a,l)),p}registerTrigger(a,l,p){let I=this._namespaceLookup[a];I&&I.register(l,p)&&this.totalAnimations++}destroy(a,l){if(!a)return;const p=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(p.hostElement),delete this._namespaceLookup[a];const I=this._namespaceList.indexOf(p);I>=0&&this._namespaceList.splice(I,1)}),this.afterFlushAnimationsDone(()=>p.destroy(l))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const l=new Set,p=this.statesByElement.get(a);if(p){const I=Object.keys(p);for(let N=0;N=0&&this.collectedLeaveElements.splice(W,1)}if(a){const W=this._fetchNamespace(a);W&&W.insertNode(l,p)}I&&this.collectEnterElement(l)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,l){l?this.disabledNodes.has(a)||(this.disabledNodes.add(a),bo(a,_r)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),di(a,_r))}removeNode(a,l,p,I){if(zo(l)){const N=a?this._fetchNamespace(a):null;if(N?N.removeNode(l,I):this.markElementAsRemoved(a,l,!1,I),p){const W=this.namespacesByHostElement.get(l);W&&W.id!==a&&W.removeNode(l,I)}}else this._onRemovalComplete(l,I)}markElementAsRemoved(a,l,p,I){this.collectedLeaveElements.push(l),l[ro]={namespaceId:a,setForRemoval:I,hasAnimation:p,removedBeforeQueried:!1}}listen(a,l,p,I,N){return zo(l)?this._fetchNamespace(a).listen(l,p,I,N):()=>{}}_buildInstruction(a,l,p,I,N){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,p,I,a.fromState.options,a.toState.options,l,N)}destroyInnerAnimations(a){let l=this.driver.query(a,M,!0);l.forEach(p=>this.destroyActiveAnimationsForElement(p)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(a,fe,!0),l.forEach(p=>this.finishActiveQueriedAnimationOnElement(p)))}destroyActiveAnimationsForElement(a){const l=this.playersByElement.get(a);l&&l.forEach(p=>{p.queued?p.markedForDestroy=!0:p.destroy()})}finishActiveQueriedAnimationOnElement(a){const l=this.playersByQueriedElement.get(a);l&&l.forEach(p=>p.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Nr(this.players).onDone(()=>a());a()})}processLeaveNode(a){const l=a[ro];if(l&&l.setForRemoval){if(a[ro]=Pa,l.namespaceId){this.destroyInnerAnimations(a);const p=this._fetchNamespace(l.namespaceId);p&&p.clearElementCache(a)}this._onRemovalComplete(a,l.setForRemoval)}this.driver.matchesElement(a,wr)&&this.markElementAsDisabled(a,!1),this.driver.query(a,wr,!0).forEach(p=>{this.markElementAsDisabled(p,!1)})}flush(a=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((p,I)=>this._balanceNamespaceList(p,I)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let p=0;pp()),this._flushFns=[],this._whenQuietFns.length){const p=this._whenQuietFns;this._whenQuietFns=[],l.length?Nr(l).onDone(()=>{p.forEach(I=>I())}):p.forEach(I=>I())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,l){const p=new Qr,I=[],N=new Map,W=[],oe=new Map,Ee=new Map,ke=new Map,mt=new Set;this.disabledNodes.forEach(Ft=>{mt.add(Ft);const Xt=this.driver.query(Ft,".ng-animate-queued",!0);for(let fn=0;fn{const fn=yo+dn++;Kt.set(Xt,fn),Ft.forEach($n=>bo($n,fn))});const xn=[],Sr=new Set,Or=new Set;for(let Ft=0;FtSr.add($n)):Or.add(Xt))}const Eo=new Map,ur=Pi($t,Array.from(Sr));ur.forEach((Ft,Xt)=>{const fn=jo+dn++;Eo.set(Xt,fn),Ft.forEach($n=>bo($n,fn))}),a.push(()=>{Cn.forEach((Ft,Xt)=>{const fn=Kt.get(Xt);Ft.forEach($n=>di($n,fn))}),ur.forEach((Ft,Xt)=>{const fn=Eo.get(Xt);Ft.forEach($n=>di($n,fn))}),xn.forEach(Ft=>{this.processLeaveNode(Ft)})});const oa=[],pi=[];for(let Ft=this._namespaceList.length-1;Ft>=0;Ft--)this._namespaceList[Ft].drainQueuedTransitions(l).forEach(fn=>{const $n=fn.player,Hr=fn.element;if(oa.push($n),this.collectedEnterElements.length){const qo=Hr[ro];if(qo&&qo.setForMove)return void $n.destroy()}const gi=!xt||!this.driver.containsElement(xt,Hr),Co=Eo.get(Hr),ms=Kt.get(Hr),Tr=this._buildInstruction(fn,p,ms,Co,gi);if(Tr.errors&&Tr.errors.length)pi.push(Tr);else{if(gi)return $n.onStart(()=>Wn(Hr,Tr.fromStyles)),$n.onDestroy(()=>un(Hr,Tr.toStyles)),void I.push($n);if(fn.isFallbackTransition)return $n.onStart(()=>Wn(Hr,Tr.fromStyles)),$n.onDestroy(()=>un(Hr,Tr.toStyles)),void I.push($n);Tr.timelines.forEach(qo=>qo.stretchStartingKeyframe=!0),p.append(Hr,Tr.timelines),W.push({instruction:Tr,player:$n,element:Hr}),Tr.queriedElements.forEach(qo=>Rr(oe,qo,[]).push($n)),Tr.preStyleProps.forEach((qo,ya)=>{const va=Object.keys(qo);if(va.length){let ii=Ee.get(ya);ii||Ee.set(ya,ii=new Set),va.forEach(Xa=>ii.add(Xa))}}),Tr.postStyleProps.forEach((qo,ya)=>{const va=Object.keys(qo);let ii=ke.get(ya);ii||ke.set(ya,ii=new Set),va.forEach(Xa=>ii.add(Xa))})}});if(pi.length){const Ft=[];pi.forEach(Xt=>{Ft.push(`@${Xt.triggerName} has failed due to:\n`),Xt.errors.forEach(fn=>Ft.push(`- ${fn}\n`))}),oa.forEach(Xt=>Xt.destroy()),this.reportError(Ft)}const ho=new Map,Ko=new Map;W.forEach(Ft=>{const Xt=Ft.element;p.has(Xt)&&(Ko.set(Xt,Xt),this._beforeAnimationBuild(Ft.player.namespaceId,Ft.instruction,ho))}),I.forEach(Ft=>{const Xt=Ft.element;this._getPreviousPlayers(Xt,!1,Ft.namespaceId,Ft.triggerName,null).forEach($n=>{Rr(ho,Xt,[]).push($n),$n.destroy()})});const Cr=xn.filter(Ft=>Ws(Ft,Ee,ke)),oi=new Map;Gs(oi,this.driver,Or,ke,U).forEach(Ft=>{Ws(Ft,Ee,ke)&&Cr.push(Ft)});const ia=new Map;Cn.forEach((Ft,Xt)=>{Gs(ia,this.driver,new Set(Ft),Ee,"!")}),Cr.forEach(Ft=>{const Xt=oi.get(Ft),fn=ia.get(Ft);oi.set(Ft,Object.assign(Object.assign({},Xt),fn))});const Ir=[],sa=[],qa={};W.forEach(Ft=>{const{element:Xt,player:fn,instruction:$n}=Ft;if(p.has(Xt)){if(mt.has(Xt))return fn.onDestroy(()=>un(Xt,$n.toStyles)),fn.disabled=!0,fn.overrideTotalTime($n.totalTime),void I.push(fn);let Hr=qa;if(Ko.size>1){let Co=Xt;const ms=[];for(;Co=Co.parentNode;){const Tr=Ko.get(Co);if(Tr){Hr=Tr;break}ms.push(Co)}ms.forEach(Tr=>Ko.set(Tr,Hr))}const gi=this._buildAnimation(fn.namespaceId,$n,ho,N,ia,oi);if(fn.setRealPlayer(gi),Hr===qa)Ir.push(fn);else{const Co=this.playersByElement.get(Hr);Co&&Co.length&&(fn.parentPlayer=Nr(Co)),I.push(fn)}}else Wn(Xt,$n.fromStyles),fn.onDestroy(()=>un(Xt,$n.toStyles)),sa.push(fn),mt.has(Xt)&&I.push(fn)}),sa.forEach(Ft=>{const Xt=N.get(Ft.element);if(Xt&&Xt.length){const fn=Nr(Xt);Ft.setRealPlayer(fn)}}),I.forEach(Ft=>{Ft.parentPlayer?Ft.syncPlayerEvents(Ft.parentPlayer):Ft.destroy()});for(let Ft=0;Ft!gi.destroyed);Hr.length?Ys(this,Xt,Hr):this.processLeaveNode(Xt)}return xn.length=0,Ir.forEach(Ft=>{this.players.push(Ft),Ft.onDone(()=>{Ft.destroy();const Xt=this.players.indexOf(Ft);this.players.splice(Xt,1)}),Ft.play()}),Ir}elementContainsData(a,l){let p=!1;const I=l[ro];return I&&I.setForRemoval&&(p=!0),this.playersByElement.has(l)&&(p=!0),this.playersByQueriedElement.has(l)&&(p=!0),this.statesByElement.has(l)&&(p=!0),this._fetchNamespace(a).elementContainsData(l)||p}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,l,p,I,N){let W=[];if(l){const oe=this.playersByQueriedElement.get(a);oe&&(W=oe)}else{const oe=this.playersByElement.get(a);if(oe){const Ee=!N||N==Ms;oe.forEach(ke=>{ke.queued||!Ee&&ke.triggerName!=I||W.push(ke)})}}return(p||I)&&(W=W.filter(oe=>!(p&&p!=oe.namespaceId||I&&I!=oe.triggerName))),W}_beforeAnimationBuild(a,l,p){const N=l.element,W=l.isRemovalTransition?void 0:a,oe=l.isRemovalTransition?void 0:l.triggerName;for(const Ee of l.timelines){const ke=Ee.element,mt=ke!==N,xt=Rr(p,ke,[]);this._getPreviousPlayers(ke,mt,W,oe,l.toState).forEach(Cn=>{const Kt=Cn.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),Cn.destroy(),xt.push(Cn)})}Wn(N,l.fromStyles)}_buildAnimation(a,l,p,I,N,W){const oe=l.triggerName,Ee=l.element,ke=[],mt=new Set,xt=new Set,$t=l.timelines.map(Kt=>{const dn=Kt.element;mt.add(dn);const xn=dn[ro];if(xn&&xn.removedBeforeQueried)return new Ct(Kt.duration,Kt.delay);const Sr=dn!==Ee,Or=function(m){const a=[];return fi(m,a),a}((p.get(dn)||Nl).map(ho=>ho.getRealPlayer())).filter(ho=>!!ho.element&&ho.element===dn),Eo=N.get(dn),ur=W.get(dn),oa=Kr(0,this._normalizer,0,Kt.keyframes,Eo,ur),pi=this._buildPlayer(Kt,oa,Or);if(Kt.subTimeline&&I&&xt.add(dn),Sr){const ho=new Oi(a,oe,dn);ho.setRealPlayer(pi),ke.push(ho)}return pi});ke.forEach(Kt=>{Rr(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function(m,a,l){let p;if(m instanceof Map){if(p=m.get(a),p){if(p.length){const I=p.indexOf(l);p.splice(I,1)}0==p.length&&m.delete(a)}}else if(p=m[a],p){if(p.length){const I=p.indexOf(l);p.splice(I,1)}0==p.length&&delete m[a]}return p}(this.playersByQueriedElement,Kt.element,Kt))}),mt.forEach(Kt=>bo(Kt,z));const Cn=Nr($t);return Cn.onDestroy(()=>{mt.forEach(Kt=>di(Kt,z)),un(Ee,l.toStyles)}),xt.forEach(Kt=>{Rr(I,Kt,[]).push(Cn)}),Cn}_buildPlayer(a,l,p){return l.length>0?this.driver.animate(a.element,l,a.duration,a.delay,a.easing,p):new Ct(a.duration,a.delay)}}class Oi{constructor(a,l,p){this.namespaceId=a,this.triggerName=l,this.element=p,this._player=new Ct,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(p=>Xo(a,l,void 0,p))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const l=this._player;l.triggerCallback&&a.onStart(()=>l.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,l){Rr(this._queuedCallbacks,a,[]).push(l)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const l=this._player;l.triggerCallback&&l.triggerCallback(a)}}function zo(m){return m&&1===m.nodeType}function xi(m,a){const l=m.style.display;return m.style.display=null!=a?a:"none",l}function Gs(m,a,l,p,I){const N=[];l.forEach(Ee=>N.push(xi(Ee)));const W=[];p.forEach((Ee,ke)=>{const mt={};Ee.forEach(xt=>{const $t=mt[xt]=a.computeStyle(ke,xt,I);(!$t||0==$t.length)&&(ke[ro]=As,W.push(ke))}),m.set(ke,mt)});let oe=0;return l.forEach(Ee=>xi(Ee,N[oe++])),W}function Pi(m,a){const l=new Map;if(m.forEach(oe=>l.set(oe,[])),0==a.length)return l;const I=new Set(a),N=new Map;function W(oe){if(!oe)return 1;let Ee=N.get(oe);if(Ee)return Ee;const ke=oe.parentNode;return Ee=l.has(ke)?ke:I.has(ke)?1:W(ke),N.set(oe,Ee),Ee}return a.forEach(oe=>{const Ee=W(oe);1!==Ee&&l.get(Ee).push(oe)}),l}const Fi="$$classes";function bo(m,a){if(m.classList)m.classList.add(a);else{let l=m[Fi];l||(l=m[Fi]={}),l[a]=!0}}function di(m,a){if(m.classList)m.classList.remove(a);else{let l=m[Fi];l&&delete l[a]}}function Ys(m,a,l){Nr(l).onDone(()=>m.processLeaveNode(a))}function fi(m,a){for(let l=0;lI.add(N)):a.set(m,p),l.delete(m),!0}class fs{constructor(a,l,p){this.bodyNode=a,this._driver=l,this._normalizer=p,this._triggerCache={},this.onRemovalComplete=(I,N)=>{},this._transitionEngine=new Us(a,l,p),this._timelineEngine=new cr(a,l,p),this._transitionEngine.onRemovalComplete=(I,N)=>this.onRemovalComplete(I,N)}registerTrigger(a,l,p,I,N){const W=a+"-"+I;let oe=this._triggerCache[W];if(!oe){const Ee=[],ke=hr(this._driver,N,Ee);if(Ee.length)throw new Error(`The animation trigger "${I}" has failed to build due to the following errors:\n - ${Ee.join("\n - ")}`);oe=function(m,a,l){return new Bt(m,a,l)}(I,ke,this._normalizer),this._triggerCache[W]=oe}this._transitionEngine.registerTrigger(l,I,oe)}register(a,l){this._transitionEngine.register(a,l)}destroy(a,l){this._transitionEngine.destroy(a,l)}onInsert(a,l,p,I){this._transitionEngine.insertNode(a,l,p,I)}onRemove(a,l,p,I){this._transitionEngine.removeNode(a,l,I||!1,p)}disableAnimations(a,l){this._transitionEngine.markElementAsDisabled(a,l)}process(a,l,p,I){if("@"==p.charAt(0)){const[N,W]=Lo(p);this._timelineEngine.command(N,l,W,I)}else this._transitionEngine.trigger(a,l,p,I)}listen(a,l,p,I,N){if("@"==p.charAt(0)){const[W,oe]=Lo(p);return this._timelineEngine.listen(W,l,oe,N)}return this._transitionEngine.listen(a,l,p,I,N)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Rs(m,a){let l=null,p=null;return Array.isArray(a)&&a.length?(l=ha(a[0]),a.length>1&&(p=ha(a[a.length-1]))):a&&(l=ha(a)),l||p?new Ks(m,l,p):null}let Ks=(()=>{class m{constructor(l,p,I){this._element=l,this._startStyles=p,this._endStyles=I,this._state=0;let N=m.initialStylesByElement.get(l);N||m.initialStylesByElement.set(l,N={}),this._initialStyles=N}start(){this._state<1&&(this._startStyles&&un(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(un(this._element,this._initialStyles),this._endStyles&&(un(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(m.initialStylesByElement.delete(this._element),this._startStyles&&(Wn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Wn(this._element,this._endStyles),this._endStyles=null),un(this._element,this._initialStyles),this._state=3)}}return m.initialStylesByElement=new WeakMap,m})();function ha(m){let a=null;const l=Object.keys(m);for(let p=0;pthis._handleCallback(Ee)}apply(){(function(m,a){const l=g(m,"").trim();let p=0;l.length&&(function(m,a){let l=0;for(let p=0;p=this._delay&&p>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),hs(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(m,a){const p=g(m,"").split(","),I=Qs(p,a);I>=0&&(p.splice(I,1),v(m,"",p.join(",")))}(this._element,this._name))}}function Ni(m,a,l){v(m,"PlayState",l,Xs(m,a))}function Xs(m,a){const l=g(m,"");return l.indexOf(",")>0?Qs(l.split(","),a):Qs([l],a)}function Qs(m,a){for(let l=0;l=0)return l;return-1}function hs(m,a,l){l?m.removeEventListener(pa,a):m.addEventListener(pa,a)}function v(m,a,l,p){const I=qs+a;if(null!=p){const N=m.style[I];if(N.length){const W=N.split(",");W[p]=l,l=W.join(",")}}m.style[I]=l}function g(m,a){return m.style[qs+a]||""}class H{constructor(a,l,p,I,N,W,oe,Ee){this.element=a,this.keyframes=l,this.animationName=p,this._duration=I,this._delay=N,this._finalStyles=oe,this._specialStyles=Ee,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=W||"linear",this.totalTime=I+N,this._buildStyler()}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(a=>a()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(a){this._styler.setPosition(a)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Ll(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(p=>p()),l.length=0}beforeDestroy(){this.init();const a={};if(this.hasStarted()){const l=this._state>=3;Object.keys(this._finalStyles).forEach(p=>{"offset"!=p&&(a[p]=l?this._finalStyles[p]:Zi(this.element,p))})}this.currentSnapshot=a}}class ae extends Ct{constructor(a,l){super(),this.element=a,this._startingStyles={},this.__initialized=!1,this._styles=Mo(l)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(a=>{this._startingStyles[a]=this.element.style[a]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(a=>this.element.style.setProperty(a,this._styles[a])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(a=>{const l=this._startingStyles[a];l?this.element.style.setProperty(a,l):this.element.style.removeProperty(a)}),this._startingStyles=null,super.destroy())}}class Mt{constructor(){this._count=0}validateStyleProperty(a){return qr(a)}matchesElement(a,l){return Ao(a,l)}containsElement(a,l){return Jo(a,l)}query(a,l,p){return Xr(a,l,p)}computeStyle(a,l,p){return window.getComputedStyle(a)[l]}buildKeyframeElement(a,l,p){p=p.map(oe=>Mo(oe));let I=`@keyframes ${l} {\n`,N="";p.forEach(oe=>{N=" ";const Ee=parseFloat(oe.offset);I+=`${N}${100*Ee}% {\n`,N+=" ",Object.keys(oe).forEach(ke=>{const mt=oe[ke];switch(ke){case"offset":return;case"easing":return void(mt&&(I+=`${N}animation-timing-function: ${mt};\n`));default:return void(I+=`${N}${ke}: ${mt};\n`)}}),I+=`${N}}\n`}),I+="}\n";const W=document.createElement("style");return W.textContent=I,W}animate(a,l,p,I,N,W=[],oe){const Ee=W.filter(xn=>xn instanceof H),ke={};ei(p,I)&&Ee.forEach(xn=>{let Sr=xn.currentSnapshot;Object.keys(Sr).forEach(Or=>ke[Or]=Sr[Or])});const mt=function(m){let a={};return m&&(Array.isArray(m)?m:[m]).forEach(p=>{Object.keys(p).forEach(I=>{"offset"==I||"easing"==I||(a[I]=p[I])})}),a}(l=Si(a,l,ke));if(0==p)return new ae(a,mt);const xt="gen_css_kf_"+this._count++,$t=this.buildKeyframeElement(a,xt,l);(function(m){var a;const l=null===(a=m.getRootNode)||void 0===a?void 0:a.call(m);return"undefined"!=typeof ShadowRoot&&l instanceof ShadowRoot?l:document.head})(a).appendChild($t);const Kt=Rs(a,l),dn=new H(a,l,xt,p,I,N,mt,Kt);return dn.onDestroy(()=>{var m;(m=$t).parentNode.removeChild(m)}),dn}}class Yo{constructor(a,l,p,I){this.element=a,this.keyframes=l,this.options=p,this._specialStyles=I,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=p.duration,this._delay=p.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,l,p){return a.animate(l,p)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(l=>{"offset"!=l&&(a[l]=this._finished?this._finalKeyframe[l]:Zi(this.element,l))}),this.currentSnapshot=a}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(p=>p()),l.length=0}}class xo{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(hi().toString()),this._cssKeyframesDriver=new Mt}validateStyleProperty(a){return qr(a)}matchesElement(a,l){return Ao(a,l)}containsElement(a,l){return Jo(a,l)}query(a,l,p){return Xr(a,l,p)}computeStyle(a,l,p){return window.getComputedStyle(a)[l]}overrideWebAnimationsSupport(a){this._isNativeImpl=a}animate(a,l,p,I,N,W=[],oe){if(!oe&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(a,l,p,I,N,W);const mt={duration:p,delay:I,fill:0==I?"both":"forwards"};N&&(mt.easing=N);const xt={},$t=W.filter(Kt=>Kt instanceof Yo);ei(p,I)&&$t.forEach(Kt=>{let dn=Kt.currentSnapshot;Object.keys(dn).forEach(xn=>xt[xn]=dn[xn])});const Cn=Rs(a,l=Si(a,l=l.map(Kt=>Ie(Kt,!1)),xt));return new Yo(a,l,mt,Cn)}}function hi(){return Io()&&Element.prototype.animate||{}}let ki=(()=>{class m extends Lt{constructor(l,p){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(p.body,{id:"0",encapsulation:O.ifc.None,styles:[],data:{animation:[]}})}build(l){const p=this._nextAnimationId.toString();this._nextAnimationId++;const I=Array.isArray(l)?j(l):l;return Ru(this._renderer,null,p,"register",[I]),new Ba(p,this._renderer)}}return m.\u0275fac=function(l){return new(l||m)(O.LFG(O.FYo),O.LFG(s.K0))},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})();class Ba extends class{}{constructor(a,l){super(),this._id=a,this._renderer=l}create(a,l){return new ih(this._id,a,l||{},this._renderer)}}class ih{constructor(a,l,p,I){this.id=a,this.element=l,this._renderer=I,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",p)}_listen(a,l){return this._renderer.listen(this.element,`@@${this.id}:${a}`,l)}_command(a,...l){return Ru(this._renderer,this.element,this.id,a,l)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,l;return null!==(l=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==l?l:0}}function Ru(m,a,l,p,I){return m.setProperty(a,`@@${l}:${p}`,I)}const Ou="@.disabled";let sh=(()=>{class m{constructor(l,p,I){this.delegate=l,this.engine=p,this._zone=I,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),p.onRemovalComplete=(N,W)=>{W&&W.parentNode(N)&&W.removeChild(N.parentNode,N)}}createRenderer(l,p){const N=this.delegate.createRenderer(l,p);if(!(l&&p&&p.data&&p.data.animation)){let mt=this._rendererCache.get(N);return mt||(mt=new Zs("",N,this.engine),this._rendererCache.set(N,mt)),mt}const W=p.id,oe=p.id+"-"+this._currentId;this._currentId++,this.engine.register(oe,l);const Ee=mt=>{Array.isArray(mt)?mt.forEach(Ee):this.engine.registerTrigger(W,oe,l,mt.name,mt)};return p.data.animation.forEach(Ee),new ah(this,oe,N,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,p,I){l>=0&&lp(I)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(N=>{const[W,oe]=N;W(oe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([p,I]))}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 m.\u0275fac=function(l){return new(l||m)(O.LFG(O.FYo),O.LFG(fs),O.LFG(O.R0b))},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})();class Zs{constructor(a,l,p){this.namespaceId=a,this.delegate=l,this.engine=p,this.destroyNode=this.delegate.destroyNode?I=>l.destroyNode(I):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,l){return this.delegate.createElement(a,l)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,l){this.delegate.appendChild(a,l),this.engine.onInsert(this.namespaceId,l,a,!1)}insertBefore(a,l,p,I=!0){this.delegate.insertBefore(a,l,p),this.engine.onInsert(this.namespaceId,l,a,I)}removeChild(a,l,p){this.engine.onRemove(this.namespaceId,l,this.delegate,p)}selectRootElement(a,l){return this.delegate.selectRootElement(a,l)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,l,p,I){this.delegate.setAttribute(a,l,p,I)}removeAttribute(a,l,p){this.delegate.removeAttribute(a,l,p)}addClass(a,l){this.delegate.addClass(a,l)}removeClass(a,l){this.delegate.removeClass(a,l)}setStyle(a,l,p,I){this.delegate.setStyle(a,l,p,I)}removeStyle(a,l,p){this.delegate.removeStyle(a,l,p)}setProperty(a,l,p){"@"==l.charAt(0)&&l==Ou?this.disableAnimations(a,!!p):this.delegate.setProperty(a,l,p)}setValue(a,l){this.delegate.setValue(a,l)}listen(a,l,p){return this.delegate.listen(a,l,p)}disableAnimations(a,l){this.engine.disableAnimations(a,l)}}class ah extends Zs{constructor(a,l,p,I){super(l,p,I),this.factory=a,this.namespaceId=l}setProperty(a,l,p){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Ou?this.disableAnimations(a,p=void 0===p||!!p):this.engine.process(this.namespaceId,a,l.substr(1),p):this.delegate.setProperty(a,l,p)}listen(a,l,p){if("@"==l.charAt(0)){const I=function(m){switch(m){case"body":return document.body;case"document":return document;case"window":return window;default:return m}}(a);let N=l.substr(1),W="";return"@"!=N.charAt(0)&&([N,W]=function(m){const a=m.indexOf(".");return[m.substring(0,a),m.substr(a+1)]}(N)),this.engine.listen(this.namespaceId,I,N,W,oe=>{this.factory.scheduleListenerCallback(oe._data||-1,p,oe)})}return this.delegate.listen(a,l,p)}}let Va=(()=>{class m extends fs{constructor(l,p,I){super(l.body,p,I)}ngOnDestroy(){this.flush()}}return m.\u0275fac=function(l){return new(l||m)(O.LFG(s.K0),O.LFG($o),O.LFG(ls))},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac}),m})();const ni=new O.OlP("AnimationModuleType"),ga=[{provide:Lt,useClass:ki},{provide:ls,useFactory:function(){return new fa}},{provide:fs,useClass:Va},{provide:O.FYo,useFactory:function(m,a,l){return new sh(m,a,l)},deps:[It,fs,O.R0b]}],ps=[{provide:$o,useFactory:function(){return"function"==typeof hi()?new xo:new Mt}},{provide:ni,useValue:"BrowserAnimations"},...ga],Li=[{provide:$o,useClass:Zo},{provide:ni,useValue:"NoopAnimations"},...ga];let Mc=(()=>{class m{static withConfig(l){return{ngModule:m,providers:l.disableAnimations?Li:ps}}}return m.\u0275fac=function(l){return new(l||m)},m.\u0275mod=O.oAB({type:m}),m.\u0275inj=O.cJS({providers:ps,imports:[nr]}),m})();var ja=L(1841),uh=L(3342);class Ha extends Error{}Ha.prototype.name="InvalidTokenError";var ea=L(1228);let dh=(()=>{class m{constructor(l,p,I){this.memory=l,this.auth=p,this.router=I}setHeaders(){var l;const p=null===(l=this.memory)||void 0===l?void 0:l.deviceKey;return this.memory.isLogged?Object.assign(Object.assign({},this.memory.userAttr&&this.memory.userAttr.username?{username:this.memory.userAttr.username}:{}),{userkey:this.memory.sessionToken||"undefined",devkey:p||"undefined"}):this.memory.sessionToken?{userkey:this.memory.sessionToken,devkey:p||"undefined"}:{devkey:p||"undefined"}}intercept(l,p){const I=l.clone({setHeaders:this.setHeaders()});return p.handle(I).pipe((0,uh.b)(N=>{if(N instanceof ja.Zn){const W=N.headers.get("userinfo");if(W)try{const oe=function(m,a){if("string"!=typeof m)throw new Ha("Invalid token specified: must be a string");a||(a={});const l=!0===a.header?0:1,p=m.split(".")[l];if("string"!=typeof p)throw new Ha(`Invalid token specified: missing part #${l+1}`);let I;try{I=function(m){let a=m.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(m){return decodeURIComponent(atob(m).replace(/(.)/g,(a,l)=>{let p=l.charCodeAt(0).toString(16).toUpperCase();return p.length<2&&(p="0"+p),"%"+p}))}(a)}catch(l){return atob(a)}}(p)}catch(N){throw new Ha(`Invalid token specified: invalid base64 for part #${l+1} (${N.message})`)}try{return JSON.parse(I)}catch(N){throw new Ha(`Invalid token specified: invalid json for part #${l+1} (${N.message})`)}}(W);this.memory.userInfo=Object.assign({},oe)}catch(oe){}}return N},N=>{N instanceof ja.UA&&401==N.status&&this.refreshSession()}))}refreshSession(){var l=this;return(0,Vt.Z)(function*(){try{const p=yield l.auth.getUserSessionFromLocalStorage();p.loged&&(l.memory.userAttr=p.userAttributes,l.memory.saveAuthorizationToken(p.token))}catch(p){l.auth.leanLogout(),l.router.navigateByUrl("/home")}})()}}return m.\u0275fac=function(l){return new(l||m)(O.LFG(Sn.S),O.LFG(ea.e),O.LFG(Jt.F0))},m.\u0275prov=O.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function ri(m,a,l,p){return new(l||(l=Promise))(function(N,W){function oe(mt){try{ke(p.next(mt))}catch(xt){W(xt)}}function Ee(mt){try{ke(p.throw(mt))}catch(xt){W(xt)}}function ke(mt){mt.done?N(mt.value):function(N){return N instanceof l?N:new l(function(W){W(N)})}(mt.value).then(oe,Ee)}ke((p=p.apply(m,a||[])).next())})}var gs,Fc=L(1628);const na=new O.OlP("STORAGE_CONFIG_TOKEN");class Fu extends Fc.K{constructor(){super()}create(){return ri(this,void 0,void 0,function*(){return this})}defineDriver(){return ri(this,void 0,void 0,function*(){})}get driver(){return"noop"}get(a){return ri(this,void 0,void 0,function*(){return null})}set(a,l){return ri(this,void 0,void 0,function*(){})}remove(a){return ri(this,void 0,void 0,function*(){})}clear(){return ri(this,void 0,void 0,function*(){})}length(){return ri(this,void 0,void 0,function*(){return 0})}keys(){return ri(this,void 0,void 0,function*(){return[]})}forEach(a){return ri(this,void 0,void 0,function*(){})}setEncryptionKey(a){}}function Nc(m){return(0,s.PM)(this.platformId)?new Fu:new Fc.K(m)}let xs=gs=class{static forRoot(a=null){return{ngModule:gs,providers:[{provide:na,useValue:a},{provide:Fc.K,useFactory:Nc,deps:[na]}]}}};xs.\u0275fac=function(a){return new(a||xs)},xs.\u0275mod=O.oAB({type:xs}),xs.\u0275inj=O.cJS({});var _h=L(441);(0,s.qS)(L.n(_h)());let Bi=(()=>{class m{}return m.\u0275fac=function(l){return new(l||m)},m.\u0275mod=O.oAB({type:m,bootstrap:[Yn]}),m.\u0275inj=O.cJS({providers:[{provide:ja.TP,useClass:dh,multi:!0},{provide:O.soG,useValue:"es-ES"}],imports:[[nr,Fr,Mc,ja.JF,fr.Pc.forRoot(),xs.forRoot()]]}),m})();(0,O.G48)(),dr().bootstrapModule(Bi).catch(m=>console.error(m))},863:(Tt,Ge,L)=>{var s={"./ion-accordion_2.entry.js":[8359,8592,8359],"./ion-action-sheet.entry.js":[7321,8592,7321],"./ion-alert.entry.js":[6108,8592,6108],"./ion-app_8.entry.js":[1489,8592,1710],"./ion-avatar_3.entry.js":[305,305],"./ion-back-button.entry.js":[5830,8592,5830],"./ion-backdrop.entry.js":[7757,7757],"./ion-breadcrumb_2.entry.js":[4355,8592,4355],"./ion-button_2.entry.js":[392,392],"./ion-card_5.entry.js":[6911,6911],"./ion-checkbox.entry.js":[937,937],"./ion-chip.entry.js":[8695,8695],"./ion-col_3.entry.js":[6034,6034],"./ion-datetime-button.entry.js":[1135,890,1135],"./ion-datetime_3.entry.js":[8837,890,8592,8837],"./ion-fab_3.entry.js":[4195,8592,4195],"./ion-img.entry.js":[1709,1709],"./ion-infinite-scroll_2.entry.js":[3087,8592,1729],"./ion-input.entry.js":[4513,8592,4513],"./ion-item-option_3.entry.js":[8056,8592,8043],"./ion-item_8.entry.js":[862,8592,862],"./ion-loading.entry.js":[7509,7509],"./ion-menu_3.entry.js":[6272,8592,6272],"./ion-modal.entry.js":[1855,8592,1855],"./ion-nav_2.entry.js":[8708,8592,8708],"./ion-picker-column-internal.entry.js":[1349,8592,1349],"./ion-picker-internal.entry.js":[7915,7915],"./ion-popover.entry.js":[3527,8592,3527],"./ion-progress-bar.entry.js":[4694,4694],"./ion-radio_2.entry.js":[9222,9222],"./ion-range.entry.js":[5277,8592,5277],"./ion-refresher_2.entry.js":[9921,8592,1296],"./ion-reorder_2.entry.js":[3122,8592,1658],"./ion-ripple-effect.entry.js":[1602,1602],"./ion-route_4.entry.js":[5174,5174],"./ion-searchbar.entry.js":[7895,8592,7895],"./ion-segment_2.entry.js":[6164,8592,6164],"./ion-select_3.entry.js":[592,592],"./ion-slide_2.entry.js":[7162,7162],"./ion-spinner.entry.js":[1374,8592,1374],"./ion-split-pane.entry.js":[7896,7896],"./ion-tab-bar_2.entry.js":[5043,8592,5043],"./ion-tab_2.entry.js":[7802,8592,7802],"./ion-text.entry.js":[9072,9072],"./ion-textarea.entry.js":[2191,2191],"./ion-toast.entry.js":[801,801],"./ion-toggle.entry.js":[7110,8592,7110],"./ion-virtual-scroll.entry.js":[431,431]};function O(Ne){if(!L.o(s,Ne))return Promise.resolve().then(()=>{var ve=new Error("Cannot find module '"+Ne+"'");throw ve.code="MODULE_NOT_FOUND",ve});var je=s[Ne],Te=je[0];return Promise.all(je.slice(1).map(L.e)).then(()=>L(Te))}O.keys=()=>Object.keys(s),O.id=863,Tt.exports=O},8239:(Tt,Ge,L)=>{"use strict";function s(Ne,je,Te,ve,Y,Z,Q){try{var ee=Ne[Z](Q),K=ee.value}catch(X){return void Te(X)}ee.done?je(K):Promise.resolve(K).then(ve,Y)}function O(Ne){return function(){var je=this,Te=arguments;return new Promise(function(ve,Y){var Z=Ne.apply(je,Te);function Q(K){s(Z,ve,Y,Q,ee,"next",K)}function ee(K){s(Z,ve,Y,Q,ee,"throw",K)}Q(void 0)})}}L.d(Ge,{Z:()=>O})}},Tt=>{Tt(Tt.s=8149)}]);