var EC=Object.defineProperty,SC=Object.defineProperties,MC=Object.getOwnPropertyDescriptors,fb=Object.getOwnPropertySymbols,xC=Object.prototype.hasOwnProperty,DC=Object.prototype.propertyIsEnumerable,pb=(ge,G,g)=>G in ge?EC(ge,G,{enumerable:!0,configurable:!0,writable:!0,value:g}):ge[G]=g,ec=(ge,G)=>{for(var g in G||(G={}))xC.call(G,g)&&pb(ge,g,G[g]);if(fb)for(var g of fb(G))DC.call(G,g)&&pb(ge,g,G[g]);return ge},o2=(ge,G)=>SC(ge,MC(G));(self.webpackChunkapps=self.webpackChunkapps||[]).push([[179],{2057:(ge,G,g)=>{"use strict";g.d(G,{mr:()=>De,Ov:()=>Va,ez:()=>Ns,K0:()=>$,uU:()=>jc,Do:()=>$e,V_:()=>z,Ye:()=>at,S$:()=>Ce,mk:()=>ei,sg:()=>$i,O5:()=>we,PC:()=>xn,b0:()=>Pe,lw:()=>I,EM:()=>Wi,JF:()=>pi,NF:()=>gs,PM:()=>Ko,w_:()=>P,bD:()=>yc,q:()=>q,Mx:()=>_i,HT:()=>O});var m=g(4788);let i=null;function q(){return i}function O(W){i||(i=W)}class P{}const $=new m.OlP("DocumentToken");let I=(()=>{class W{historyGo(ie){throw new Error("Not implemented")}}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275prov=(0,m.Yz7)({factory:U,token:W,providedIn:"platform"}),W})();function U(){return(0,m.LFG)(H)}const z=new m.OlP("Location Initialized");let H=(()=>{class W extends I{constructor(ie){super(),this._doc=ie,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return q().getBaseHref(this._doc)}onPopState(ie){const k=q().getGlobalEventTarget(this._doc,"window");return k.addEventListener("popstate",ie,!1),()=>k.removeEventListener("popstate",ie)}onHashChange(ie){const k=q().getGlobalEventTarget(this._doc,"window");return k.addEventListener("hashchange",ie,!1),()=>k.removeEventListener("hashchange",ie)}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(ie){this.location.pathname=ie}pushState(ie,k,R){A()?this._history.pushState(ie,k,R):this.location.hash=R}replaceState(ie,k,R){A()?this._history.replaceState(ie,k,R):this.location.hash=R}forward(){this._history.forward()}back(){this._history.back()}historyGo(ie=0){this._history.go(ie)}getState(){return this._history.state}}return W.\u0275fac=function(ie){return new(ie||W)(m.LFG($))},W.\u0275prov=(0,m.Yz7)({factory:X,token:W,providedIn:"platform"}),W})();function A(){return!!window.history.pushState}function X(){return new H((0,m.LFG)($))}function de(W,_e){if(0==W.length)return _e;if(0==_e.length)return W;let ie=0;return W.endsWith("/")&&ie++,_e.startsWith("/")&&ie++,2==ie?W+_e.substring(1):1==ie?W+_e:W+"/"+_e}function Ie(W){const _e=W.match(/#|\?|$/),ie=_e&&_e.index||W.length;return W.slice(0,ie-("/"===W[ie-1]?1:0))+W.slice(ie)}function ue(W){return W&&"?"!==W[0]?"?"+W:W}let Ce=(()=>{class W{historyGo(ie){throw new Error("Not implemented")}}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275prov=(0,m.Yz7)({factory:ve,token:W,providedIn:"root"}),W})();function ve(W){const _e=(0,m.LFG)($).location;return new Pe((0,m.LFG)(I),_e&&_e.origin||"")}const De=new m.OlP("appBaseHref");let Pe=(()=>{class W extends Ce{constructor(ie,k){if(super(),this._platformLocation=ie,this._removeListenerFns=[],null==k&&(k=this._platformLocation.getBaseHrefFromDOM()),null==k)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=k}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ie){this._removeListenerFns.push(this._platformLocation.onPopState(ie),this._platformLocation.onHashChange(ie))}getBaseHref(){return this._baseHref}prepareExternalUrl(ie){return de(this._baseHref,ie)}path(ie=!1){const k=this._platformLocation.pathname+ue(this._platformLocation.search),R=this._platformLocation.hash;return R&&ie?`${k}${R}`:k}pushState(ie,k,R,V){const le=this.prepareExternalUrl(R+ue(V));this._platformLocation.pushState(ie,k,le)}replaceState(ie,k,R,V){const le=this.prepareExternalUrl(R+ue(V));this._platformLocation.replaceState(ie,k,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(ie=0){var k,R;null===(R=(k=this._platformLocation).historyGo)||void 0===R||R.call(k,ie)}}return W.\u0275fac=function(ie){return new(ie||W)(m.LFG(I),m.LFG(De,8))},W.\u0275prov=m.Yz7({token:W,factory:W.\u0275fac}),W})(),$e=(()=>{class W extends Ce{constructor(ie,k){super(),this._platformLocation=ie,this._baseHref="",this._removeListenerFns=[],null!=k&&(this._baseHref=k)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ie){this._removeListenerFns.push(this._platformLocation.onPopState(ie),this._platformLocation.onHashChange(ie))}getBaseHref(){return this._baseHref}path(ie=!1){let k=this._platformLocation.hash;return null==k&&(k="#"),k.length>0?k.substring(1):k}prepareExternalUrl(ie){const k=de(this._baseHref,ie);return k.length>0?"#"+k:k}pushState(ie,k,R,V){let le=this.prepareExternalUrl(R+ue(V));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(ie,k,le)}replaceState(ie,k,R,V){let le=this.prepareExternalUrl(R+ue(V));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(ie,k,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(ie=0){var k,R;null===(R=(k=this._platformLocation).historyGo)||void 0===R||R.call(k,ie)}}return W.\u0275fac=function(ie){return new(ie||W)(m.LFG(I),m.LFG(De,8))},W.\u0275prov=m.Yz7({token:W,factory:W.\u0275fac}),W})(),at=(()=>{class W{constructor(ie,k){this._subject=new m.vpe,this._urlChangeListeners=[],this._platformStrategy=ie;const R=this._platformStrategy.getBaseHref();this._platformLocation=k,this._baseHref=Ie(C(R)),this._platformStrategy.onPopState(V=>{this._subject.emit({url:this.path(!0),pop:!0,state:V.state,type:V.type})})}path(ie=!1){return this.normalize(this._platformStrategy.path(ie))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(ie,k=""){return this.path()==this.normalize(ie+ue(k))}normalize(ie){return W.stripTrailingSlash(function(W,_e){return W&&_e.startsWith(W)?_e.substring(W.length):_e}(this._baseHref,C(ie)))}prepareExternalUrl(ie){return ie&&"/"!==ie[0]&&(ie="/"+ie),this._platformStrategy.prepareExternalUrl(ie)}go(ie,k="",R=null){this._platformStrategy.pushState(R,"",ie,k),this._notifyUrlChangeListeners(this.prepareExternalUrl(ie+ue(k)),R)}replaceState(ie,k="",R=null){this._platformStrategy.replaceState(R,"",ie,k),this._notifyUrlChangeListeners(this.prepareExternalUrl(ie+ue(k)),R)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(ie=0){var k,R;null===(R=(k=this._platformStrategy).historyGo)||void 0===R||R.call(k,ie)}onUrlChange(ie){this._urlChangeListeners.push(ie),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(k=>{this._notifyUrlChangeListeners(k.url,k.state)}))}_notifyUrlChangeListeners(ie="",k){this._urlChangeListeners.forEach(R=>R(ie,k))}subscribe(ie,k,R){return this._subject.subscribe({next:ie,error:k,complete:R})}}return W.\u0275fac=function(ie){return new(ie||W)(m.LFG(Ce),m.LFG(I))},W.normalizeQueryParams=ue,W.joinWithSlash=de,W.stripTrailingSlash=Ie,W.\u0275prov=(0,m.Yz7)({factory:rt,token:W,providedIn:"root"}),W})();function rt(){return new at((0,m.LFG)(Ce),(0,m.LFG)(I))}function C(W){return W.replace(/\/index.html$/,"")}var je=(()=>((je=je||{})[je.Zero=0]="Zero",je[je.One=1]="One",je[je.Two=2]="Two",je[je.Few=3]="Few",je[je.Many=4]="Many",je[je.Other=5]="Other",je))(),He=(()=>((He=He||{})[He.Format=0]="Format",He[He.Standalone=1]="Standalone",He))(),Ve=(()=>((Ve=Ve||{})[Ve.Narrow=0]="Narrow",Ve[Ve.Abbreviated=1]="Abbreviated",Ve[Ve.Wide=2]="Wide",Ve[Ve.Short=3]="Short",Ve))(),Qe=(()=>((Qe=Qe||{})[Qe.Short=0]="Short",Qe[Qe.Medium=1]="Medium",Qe[Qe.Long=2]="Long",Qe[Qe.Full=3]="Full",Qe))(),nt=(()=>((nt=nt||{})[nt.Decimal=0]="Decimal",nt[nt.Group=1]="Group",nt[nt.List=2]="List",nt[nt.PercentSign=3]="PercentSign",nt[nt.PlusSign=4]="PlusSign",nt[nt.MinusSign=5]="MinusSign",nt[nt.Exponential=6]="Exponential",nt[nt.SuperscriptingExponent=7]="SuperscriptingExponent",nt[nt.PerMille=8]="PerMille",nt[nt.Infinity=9]="Infinity",nt[nt.NaN=10]="NaN",nt[nt.TimeSeparator=11]="TimeSeparator",nt[nt.CurrencyDecimal=12]="CurrencyDecimal",nt[nt.CurrencyGroup=13]="CurrencyGroup",nt))();function Se(W,_e){return Ir((0,m.cg1)(W)[m.wAp.DateFormat],_e)}function Ae(W,_e){return Ir((0,m.cg1)(W)[m.wAp.TimeFormat],_e)}function Ge(W,_e){return Ir((0,m.cg1)(W)[m.wAp.DateTimeFormat],_e)}function Ct(W,_e){const ie=(0,m.cg1)(W),k=ie[m.wAp.NumberSymbols][_e];if(void 0===k){if(_e===nt.CurrencyDecimal)return ie[m.wAp.NumberSymbols][nt.Decimal];if(_e===nt.CurrencyGroup)return ie[m.wAp.NumberSymbols][nt.Group]}return k}const Ei=m.kL8;function Lr(W){if(!W[m.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${W[m.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ir(W,_e){for(let ie=_e;ie>-1;ie--)if(void 0!==W[ie])return W[ie];throw new Error("Locale data API: locale data undefined")}function On(W){const[_e,ie]=W.split(":");return{hours:+_e,minutes:+ie}}const et=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Bt={},Kt=/((?:[^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 Cn=(()=>((Cn=Cn||{})[Cn.Short=0]="Short",Cn[Cn.ShortGMT=1]="ShortGMT",Cn[Cn.Long=2]="Long",Cn[Cn.Extended=3]="Extended",Cn))(),Nt=(()=>((Nt=Nt||{})[Nt.FullYear=0]="FullYear",Nt[Nt.Month=1]="Month",Nt[Nt.Date=2]="Date",Nt[Nt.Hours=3]="Hours",Nt[Nt.Minutes=4]="Minutes",Nt[Nt.Seconds=5]="Seconds",Nt[Nt.FractionalSeconds=6]="FractionalSeconds",Nt[Nt.Day=7]="Day",Nt))(),In=(()=>((In=In||{})[In.DayPeriods=0]="DayPeriods",In[In.Days=1]="Days",In[In.Months=2]="Months",In[In.Eras=3]="Eras",In))();function ii(W,_e,ie,k){let R=function(W){if(jr(W))return W;if("number"==typeof W&&!isNaN(W))return new Date(W);if("string"==typeof W){if(W=W.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(W)){const[R,V=1,le=1]=W.split("-").map(ot=>+ot);return ki(R,V-1,le)}const ie=parseFloat(W);if(!isNaN(W-ie))return new Date(ie);let k;if(k=W.match(et))return function(W){const _e=new Date(0);let ie=0,k=0;const R=W[8]?_e.setUTCFullYear:_e.setFullYear,V=W[8]?_e.setUTCHours:_e.setHours;W[9]&&(ie=Number(W[9]+W[10]),k=Number(W[9]+W[11])),R.call(_e,Number(W[1]),Number(W[2])-1,Number(W[3]));const le=Number(W[4]||0)-ie,ot=Number(W[5]||0)-k,$t=Number(W[6]||0),zn=Math.floor(1e3*parseFloat("0."+(W[7]||0)));return V.call(_e,le,ot,$t,zn),_e}(k)}const _e=new Date(W);if(!jr(_e))throw new Error(`Unable to convert "${W}" into a date`);return _e}(W);_e=Ui(ie,_e)||_e;let ot,le=[];for(;_e;){if(ot=Kt.exec(_e),!ot){le.push(_e);break}{le=le.concat(ot.slice(1));const Qn=le.pop();if(!Qn)break;_e=Qn}}let $t=R.getTimezoneOffset();k&&($t=To(k,$t),R=function(W,_e,ie){const R=W.getTimezoneOffset();return function(W,_e){return(W=new Date(W.getTime())).setMinutes(W.getMinutes()+_e),W}(W,-1*(To(_e,R)-R))}(R,k));let zn="";return le.forEach(Qn=>{const hi=function(W){if(Do[W])return Do[W];let _e;switch(W){case"G":case"GG":case"GGG":_e=fi(In.Eras,Ve.Abbreviated);break;case"GGGG":_e=fi(In.Eras,Ve.Wide);break;case"GGGGG":_e=fi(In.Eras,Ve.Narrow);break;case"y":_e=Zn(Nt.FullYear,1,0,!1,!0);break;case"yy":_e=Zn(Nt.FullYear,2,0,!0,!0);break;case"yyy":_e=Zn(Nt.FullYear,3,0,!1,!0);break;case"yyyy":_e=Zn(Nt.FullYear,4,0,!1,!0);break;case"Y":_e=Jn(1);break;case"YY":_e=Jn(2,!0);break;case"YYY":_e=Jn(3);break;case"YYYY":_e=Jn(4);break;case"M":case"L":_e=Zn(Nt.Month,1,1);break;case"MM":case"LL":_e=Zn(Nt.Month,2,1);break;case"MMM":_e=fi(In.Months,Ve.Abbreviated);break;case"MMMM":_e=fi(In.Months,Ve.Wide);break;case"MMMMM":_e=fi(In.Months,Ve.Narrow);break;case"LLL":_e=fi(In.Months,Ve.Abbreviated,He.Standalone);break;case"LLLL":_e=fi(In.Months,Ve.Wide,He.Standalone);break;case"LLLLL":_e=fi(In.Months,Ve.Narrow,He.Standalone);break;case"w":_e=Fi(1);break;case"ww":_e=Fi(2);break;case"W":_e=Fi(1,!0);break;case"d":_e=Zn(Nt.Date,1);break;case"dd":_e=Zn(Nt.Date,2);break;case"c":case"cc":_e=Zn(Nt.Day,1);break;case"ccc":_e=fi(In.Days,Ve.Abbreviated,He.Standalone);break;case"cccc":_e=fi(In.Days,Ve.Wide,He.Standalone);break;case"ccccc":_e=fi(In.Days,Ve.Narrow,He.Standalone);break;case"cccccc":_e=fi(In.Days,Ve.Short,He.Standalone);break;case"E":case"EE":case"EEE":_e=fi(In.Days,Ve.Abbreviated);break;case"EEEE":_e=fi(In.Days,Ve.Wide);break;case"EEEEE":_e=fi(In.Days,Ve.Narrow);break;case"EEEEEE":_e=fi(In.Days,Ve.Short);break;case"a":case"aa":case"aaa":_e=fi(In.DayPeriods,Ve.Abbreviated);break;case"aaaa":_e=fi(In.DayPeriods,Ve.Wide);break;case"aaaaa":_e=fi(In.DayPeriods,Ve.Narrow);break;case"b":case"bb":case"bbb":_e=fi(In.DayPeriods,Ve.Abbreviated,He.Standalone,!0);break;case"bbbb":_e=fi(In.DayPeriods,Ve.Wide,He.Standalone,!0);break;case"bbbbb":_e=fi(In.DayPeriods,Ve.Narrow,He.Standalone,!0);break;case"B":case"BB":case"BBB":_e=fi(In.DayPeriods,Ve.Abbreviated,He.Format,!0);break;case"BBBB":_e=fi(In.DayPeriods,Ve.Wide,He.Format,!0);break;case"BBBBB":_e=fi(In.DayPeriods,Ve.Narrow,He.Format,!0);break;case"h":_e=Zn(Nt.Hours,1,-12);break;case"hh":_e=Zn(Nt.Hours,2,-12);break;case"H":_e=Zn(Nt.Hours,1);break;case"HH":_e=Zn(Nt.Hours,2);break;case"m":_e=Zn(Nt.Minutes,1);break;case"mm":_e=Zn(Nt.Minutes,2);break;case"s":_e=Zn(Nt.Seconds,1);break;case"ss":_e=Zn(Nt.Seconds,2);break;case"S":_e=Zn(Nt.FractionalSeconds,1);break;case"SS":_e=Zn(Nt.FractionalSeconds,2);break;case"SSS":_e=Zn(Nt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":_e=lr(Cn.Short);break;case"ZZZZZ":_e=lr(Cn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":_e=lr(Cn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":_e=lr(Cn.Long);break;default:return null}return Do[W]=_e,_e}(Qn);zn+=hi?hi(R,ie,$t):"''"===Qn?"'":Qn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),zn}function ki(W,_e,ie){const k=new Date(0);return k.setFullYear(W,_e,ie),k.setHours(0,0,0),k}function Ui(W,_e){const ie=function(W){return(0,m.cg1)(W)[m.wAp.LocaleId]}(W);if(Bt[ie]=Bt[ie]||{},Bt[ie][_e])return Bt[ie][_e];let k="";switch(_e){case"shortDate":k=Se(W,Qe.Short);break;case"mediumDate":k=Se(W,Qe.Medium);break;case"longDate":k=Se(W,Qe.Long);break;case"fullDate":k=Se(W,Qe.Full);break;case"shortTime":k=Ae(W,Qe.Short);break;case"mediumTime":k=Ae(W,Qe.Medium);break;case"longTime":k=Ae(W,Qe.Long);break;case"fullTime":k=Ae(W,Qe.Full);break;case"short":const R=Ui(W,"shortTime"),V=Ui(W,"shortDate");k=Ln(Ge(W,Qe.Short),[R,V]);break;case"medium":const le=Ui(W,"mediumTime"),ot=Ui(W,"mediumDate");k=Ln(Ge(W,Qe.Medium),[le,ot]);break;case"long":const $t=Ui(W,"longTime"),zn=Ui(W,"longDate");k=Ln(Ge(W,Qe.Long),[$t,zn]);break;case"full":const Qn=Ui(W,"fullTime"),hi=Ui(W,"fullDate");k=Ln(Ge(W,Qe.Full),[Qn,hi])}return k&&(Bt[ie][_e]=k),k}function Ln(W,_e){return _e&&(W=W.replace(/\{([^}]+)}/g,function(ie,k){return null!=_e&&k in _e?_e[k]:ie})),W}function Ii(W,_e,ie="-",k,R){let V="";(W<0||R&&W<=0)&&(R?W=1-W:(W=-W,V=ie));let le=String(W);for(;le.length<_e;)le="0"+le;return k&&(le=le.substr(le.length-_e)),V+le}function Zn(W,_e,ie=0,k=!1,R=!1){return function(V,le){let ot=function(W,_e){switch(W){case Nt.FullYear:return _e.getFullYear();case Nt.Month:return _e.getMonth();case Nt.Date:return _e.getDate();case Nt.Hours:return _e.getHours();case Nt.Minutes:return _e.getMinutes();case Nt.Seconds:return _e.getSeconds();case Nt.FractionalSeconds:return _e.getMilliseconds();case Nt.Day:return _e.getDay();default:throw new Error(`Unknown DateType value "${W}".`)}}(W,V);if((ie>0||ot>-ie)&&(ot+=ie),W===Nt.Hours)0===ot&&-12===ie&&(ot=12);else if(W===Nt.FractionalSeconds)return function(W,_e){return Ii(W,3).substr(0,_e)}(ot,_e);const $t=Ct(le,nt.MinusSign);return Ii(ot,_e,$t,k,R)}}function fi(W,_e,ie=He.Format,k=!1){return function(R,V){return function(W,_e,ie,k,R,V){switch(ie){case In.Months:return function(W,_e,ie){const k=(0,m.cg1)(W),V=Ir([k[m.wAp.MonthsFormat],k[m.wAp.MonthsStandalone]],_e);return Ir(V,ie)}(_e,R,k)[W.getMonth()];case In.Days:return function(W,_e,ie){const k=(0,m.cg1)(W),V=Ir([k[m.wAp.DaysFormat],k[m.wAp.DaysStandalone]],_e);return Ir(V,ie)}(_e,R,k)[W.getDay()];case In.DayPeriods:const le=W.getHours(),ot=W.getMinutes();if(V){const zn=function(W){const _e=(0,m.cg1)(W);return Lr(_e),(_e[m.wAp.ExtraData][2]||[]).map(k=>"string"==typeof k?On(k):[On(k[0]),On(k[1])])}(_e),Qn=function(W,_e,ie){const k=(0,m.cg1)(W);Lr(k);const V=Ir([k[m.wAp.ExtraData][0],k[m.wAp.ExtraData][1]],_e)||[];return Ir(V,ie)||[]}(_e,R,k),hi=zn.findIndex(Un=>{if(Array.isArray(Un)){const[Ai,Or]=Un,Vs=le>=Ai.hours&&ot>=Ai.minutes,mo=le0?Math.floor(R/60):Math.ceil(R/60);switch(W){case Cn.Short:return(R>=0?"+":"")+Ii(le,2,V)+Ii(Math.abs(R%60),2,V);case Cn.ShortGMT:return"GMT"+(R>=0?"+":"")+Ii(le,1,V);case Cn.Long:return"GMT"+(R>=0?"+":"")+Ii(le,2,V)+":"+Ii(Math.abs(R%60),2,V);case Cn.Extended:return 0===k?"Z":(R>=0?"+":"")+Ii(le,2,V)+":"+Ii(Math.abs(R%60),2,V);default:throw new Error(`Unknown zone width "${W}"`)}}}function Ro(W){return ki(W.getFullYear(),W.getMonth(),W.getDate()+(4-W.getDay()))}function Fi(W,_e=!1){return function(ie,k){let R;if(_e){const V=new Date(ie.getFullYear(),ie.getMonth(),1).getDay()-1,le=ie.getDate();R=1+Math.floor((le+V)/7)}else{const V=Ro(ie),le=function(W){const _e=ki(W,0,1).getDay();return ki(W,0,1+(_e<=4?4:11)-_e)}(V.getFullYear()),ot=V.getTime()-le.getTime();R=1+Math.round(ot/6048e5)}return Ii(R,W,Ct(k,nt.MinusSign))}}function Jn(W,_e=!1){return function(ie,k){return Ii(Ro(ie).getFullYear(),W,Ct(k,nt.MinusSign),_e)}}const Do={};function To(W,_e){W=W.replace(/:/g,"");const ie=Date.parse("Jan 01, 1970 00:00:00 "+W)/6e4;return isNaN(ie)?_e:ie}function jr(W){return W instanceof Date&&!isNaN(W.valueOf())}class no{}let $r=(()=>{class W extends no{constructor(ie){super(),this.locale=ie}getPluralCategory(ie,k){switch(Ei(k||this.locale)(ie)){case je.Zero:return"zero";case je.One:return"one";case je.Two:return"two";case je.Few:return"few";case je.Many:return"many";default:return"other"}}}return W.\u0275fac=function(ie){return new(ie||W)(m.LFG(m.soG))},W.\u0275prov=m.Yz7({token:W,factory:W.\u0275fac}),W})();function _i(W,_e){_e=encodeURIComponent(_e);for(const ie of W.split(";")){const k=ie.indexOf("="),[R,V]=-1==k?[ie,""]:[ie.slice(0,k),ie.slice(k+1)];if(R.trim()===_e)return decodeURIComponent(V)}return null}let ei=(()=>{class W{constructor(ie,k,R,V){this._iterableDiffers=ie,this._keyValueDiffers=k,this._ngEl=R,this._renderer=V,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(ie){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof ie?ie.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(ie){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof ie?ie.split(/\s+/):ie,this._rawClass&&((0,m.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const ie=this._iterableDiffer.diff(this._rawClass);ie&&this._applyIterableChanges(ie)}else if(this._keyValueDiffer){const ie=this._keyValueDiffer.diff(this._rawClass);ie&&this._applyKeyValueChanges(ie)}}_applyKeyValueChanges(ie){ie.forEachAddedItem(k=>this._toggleClass(k.key,k.currentValue)),ie.forEachChangedItem(k=>this._toggleClass(k.key,k.currentValue)),ie.forEachRemovedItem(k=>{k.previousValue&&this._toggleClass(k.key,!1)})}_applyIterableChanges(ie){ie.forEachAddedItem(k=>{if("string"!=typeof k.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,m.AaK)(k.item)}`);this._toggleClass(k.item,!0)}),ie.forEachRemovedItem(k=>this._toggleClass(k.item,!1))}_applyClasses(ie){ie&&(Array.isArray(ie)||ie instanceof Set?ie.forEach(k=>this._toggleClass(k,!0)):Object.keys(ie).forEach(k=>this._toggleClass(k,!!ie[k])))}_removeClasses(ie){ie&&(Array.isArray(ie)||ie instanceof Set?ie.forEach(k=>this._toggleClass(k,!1)):Object.keys(ie).forEach(k=>this._toggleClass(k,!1)))}_toggleClass(ie,k){(ie=ie.trim())&&ie.split(/\s+/g).forEach(R=>{k?this._renderer.addClass(this._ngEl.nativeElement,R):this._renderer.removeClass(this._ngEl.nativeElement,R)})}}return W.\u0275fac=function(ie){return new(ie||W)(m.Y36(m.ZZ4),m.Y36(m.aQg),m.Y36(m.SBq),m.Y36(m.Qsj))},W.\u0275dir=m.lG2({type:W,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),W})();class Ar{constructor(_e,ie,k,R){this.$implicit=_e,this.ngForOf=ie,this.index=k,this.count=R}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 $i=(()=>{class W{constructor(ie,k,R){this._viewContainer=ie,this._template=k,this._differs=R,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(ie){this._ngForOf=ie,this._ngForOfDirty=!0}set ngForTrackBy(ie){this._trackByFn=ie}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(ie){ie&&(this._template=ie)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ie=this._ngForOf;if(!this._differ&&ie)try{this._differ=this._differs.find(ie).create(this.ngForTrackBy)}catch(k){throw new Error(`Cannot find a differ supporting object '${ie}' of type '${function(W){return W.name||typeof W}(ie)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const ie=this._differ.diff(this._ngForOf);ie&&this._applyChanges(ie)}}_applyChanges(ie){const k=[];ie.forEachOperation((R,V,le)=>{if(null==R.previousIndex){const ot=this._viewContainer.createEmbeddedView(this._template,new Ar(null,this._ngForOf,-1,-1),null===le?void 0:le),$t=new Fs(R,ot);k.push($t)}else if(null==le)this._viewContainer.remove(null===V?void 0:V);else if(null!==V){const ot=this._viewContainer.get(V);this._viewContainer.move(ot,le);const $t=new Fs(R,ot);k.push($t)}});for(let R=0;R{this._viewContainer.get(R.currentIndex).context.$implicit=R.item})}_perViewChange(ie,k){ie.context.$implicit=k.item}static ngTemplateContextGuard(ie,k){return!0}}return W.\u0275fac=function(ie){return new(ie||W)(m.Y36(m.s_b),m.Y36(m.Rgc),m.Y36(m.ZZ4))},W.\u0275dir=m.lG2({type:W,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),W})();class Fs{constructor(_e,ie){this.record=_e,this.view=ie}}let we=(()=>{class W{constructor(ie,k){this._viewContainer=ie,this._context=new he,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=k}set ngIf(ie){this._context.$implicit=this._context.ngIf=ie,this._updateView()}set ngIfThen(ie){Fe("ngIfThen",ie),this._thenTemplateRef=ie,this._thenViewRef=null,this._updateView()}set ngIfElse(ie){Fe("ngIfElse",ie),this._elseTemplateRef=ie,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(ie,k){return!0}}return W.\u0275fac=function(ie){return new(ie||W)(m.Y36(m.s_b),m.Y36(m.Rgc))},W.\u0275dir=m.lG2({type:W,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),W})();class he{constructor(){this.$implicit=null,this.ngIf=null}}function Fe(W,_e){if(_e&&!_e.createEmbeddedView)throw new Error(`${W} must be a TemplateRef, but received '${(0,m.AaK)(_e)}'.`)}let xn=(()=>{class W{constructor(ie,k,R){this._ngEl=ie,this._differs=k,this._renderer=R,this._ngStyle=null,this._differ=null}set ngStyle(ie){this._ngStyle=ie,!this._differ&&ie&&(this._differ=this._differs.find(ie).create())}ngDoCheck(){if(this._differ){const ie=this._differ.diff(this._ngStyle);ie&&this._applyChanges(ie)}}_setStyle(ie,k){const[R,V]=ie.split(".");null!=(k=null!=k&&V?`${k}${V}`:k)?this._renderer.setStyle(this._ngEl.nativeElement,R,k):this._renderer.removeStyle(this._ngEl.nativeElement,R)}_applyChanges(ie){ie.forEachRemovedItem(k=>this._setStyle(k.key,null)),ie.forEachAddedItem(k=>this._setStyle(k.key,k.currentValue)),ie.forEachChangedItem(k=>this._setStyle(k.key,k.currentValue))}}return W.\u0275fac=function(ie){return new(ie||W)(m.Y36(m.SBq),m.Y36(m.aQg),m.Y36(m.Qsj))},W.\u0275dir=m.lG2({type:W,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),W})();function yi(W,_e){return Error(`InvalidPipeArgument: '${_e}' for pipe '${(0,m.AaK)(W)}'`)}class bo{createSubscription(_e,ie){return _e.subscribe({next:ie,error:k=>{throw k}})}dispose(_e){_e.unsubscribe()}onDestroy(_e){_e.unsubscribe()}}class ao{createSubscription(_e,ie){return _e.then(ie,k=>{throw k})}dispose(_e){}onDestroy(_e){}}const wi=new ao,Rs=new bo;let Va=(()=>{class W{constructor(ie){this._ref=ie,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(ie){return this._obj?ie!==this._obj?(this._dispose(),this.transform(ie)):this._latestValue:(ie&&this._subscribe(ie),this._latestValue)}_subscribe(ie){this._obj=ie,this._strategy=this._selectStrategy(ie),this._subscription=this._strategy.createSubscription(ie,k=>this._updateLatestValue(ie,k))}_selectStrategy(ie){if((0,m.QGY)(ie))return wi;if((0,m.F4k)(ie))return Rs;throw yi(W,ie)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ie,k){ie===this._obj&&(this._latestValue=k,this._ref.markForCheck())}}return W.\u0275fac=function(ie){return new(ie||W)(m.Y36(m.sBO,16))},W.\u0275pipe=m.Yjl({name:"async",type:W,pure:!1}),W})(),jc=(()=>{class W{constructor(ie){this.locale=ie}transform(ie,k="mediumDate",R,V){if(null==ie||""===ie||ie!=ie)return null;try{return ii(ie,k,V||this.locale,R)}catch(le){throw yi(W,le.message)}}}return W.\u0275fac=function(ie){return new(ie||W)(m.Y36(m.soG,16))},W.\u0275pipe=m.Yjl({name:"date",type:W,pure:!0}),W})(),Ns=(()=>{class W{}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275mod=m.oAB({type:W}),W.\u0275inj=m.cJS({providers:[{provide:no,useClass:$r}]}),W})();const yc="browser";function gs(W){return W===yc}function Ko(W){return"server"===W}let Wi=(()=>{class W{}return W.\u0275prov=(0,m.Yz7)({token:W,providedIn:"root",factory:()=>new Er((0,m.LFG)($),window)}),W})();class Er{constructor(_e,ie){this.document=_e,this.window=ie,this.offset=()=>[0,0]}setOffset(_e){this.offset=Array.isArray(_e)?()=>_e:_e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(_e){this.supportsScrolling()&&this.window.scrollTo(_e[0],_e[1])}scrollToAnchor(_e){if(!this.supportsScrolling())return;const ie=function(W,_e){const ie=W.getElementById(_e)||W.getElementsByName(_e)[0];if(ie)return ie;if("function"==typeof W.createTreeWalker&&W.body&&(W.body.createShadowRoot||W.body.attachShadow)){const k=W.createTreeWalker(W.body,NodeFilter.SHOW_ELEMENT);let R=k.currentNode;for(;R;){const V=R.shadowRoot;if(V){const le=V.getElementById(_e)||V.querySelector(`[name="${_e}"]`);if(le)return le}R=k.nextNode()}}return null}(this.document,_e);ie&&(this.scrollToElement(ie),this.attemptFocus(ie))}setHistoryScrollRestoration(_e){if(this.supportScrollRestoration()){const ie=this.window.history;ie&&ie.scrollRestoration&&(ie.scrollRestoration=_e)}}scrollToElement(_e){const ie=_e.getBoundingClientRect(),k=ie.left+this.window.pageXOffset,R=ie.top+this.window.pageYOffset,V=this.offset();this.window.scrollTo(k-V[0],R-V[1])}attemptFocus(_e){return _e.focus(),this.document.activeElement===_e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const _e=No(this.window.history)||No(Object.getPrototypeOf(this.window.history));return!(!_e||!_e.writable&&!_e.set)}catch(_e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(_e){return!1}}}function No(W){return Object.getOwnPropertyDescriptor(W,"scrollRestoration")}class pi{}},8497:(ge,G,g)=>{"use strict";g.d(G,{TP:()=>zt,eN:()=>nt,JF:()=>Ir,UA:()=>Ve,PG:()=>I,WM:()=>z,LE:()=>Ce,Zn:()=>He});var m=g(2057),i=g(4788),q=g(5917),D=g(7574),O=g(4612),P=g(5435),$=g(8002);class I{}class U{}class z{constructor(Je){this.normalizedNames=new Map,this.lazyUpdate=null,Je?this.lazyInit="string"==typeof Je?()=>{this.headers=new Map,Je.split("\n").forEach(et=>{const Bt=et.indexOf(":");if(Bt>0){const Kt=et.slice(0,Bt),Cn=Kt.toLowerCase(),Nt=et.slice(Bt+1).trim();this.maybeSetNormalizedName(Kt,Cn),this.headers.has(Cn)?this.headers.get(Cn).push(Nt):this.headers.set(Cn,[Nt])}})}:()=>{this.headers=new Map,Object.keys(Je).forEach(et=>{let Bt=Je[et];const Kt=et.toLowerCase();"string"==typeof Bt&&(Bt=[Bt]),Bt.length>0&&(this.headers.set(Kt,Bt),this.maybeSetNormalizedName(et,Kt))})}:this.headers=new Map}has(Je){return this.init(),this.headers.has(Je.toLowerCase())}get(Je){this.init();const et=this.headers.get(Je.toLowerCase());return et&&et.length>0?et[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Je){return this.init(),this.headers.get(Je.toLowerCase())||null}append(Je,et){return this.clone({name:Je,value:et,op:"a"})}set(Je,et){return this.clone({name:Je,value:et,op:"s"})}delete(Je,et){return this.clone({name:Je,value:et,op:"d"})}maybeSetNormalizedName(Je,et){this.normalizedNames.has(et)||this.normalizedNames.set(et,Je)}init(){this.lazyInit&&(this.lazyInit instanceof z?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Je=>this.applyUpdate(Je)),this.lazyUpdate=null))}copyFrom(Je){Je.init(),Array.from(Je.headers.keys()).forEach(et=>{this.headers.set(et,Je.headers.get(et)),this.normalizedNames.set(et,Je.normalizedNames.get(et))})}clone(Je){const et=new z;return et.lazyInit=this.lazyInit&&this.lazyInit instanceof z?this.lazyInit:this,et.lazyUpdate=(this.lazyUpdate||[]).concat([Je]),et}applyUpdate(Je){const et=Je.name.toLowerCase();switch(Je.op){case"a":case"s":let Bt=Je.value;if("string"==typeof Bt&&(Bt=[Bt]),0===Bt.length)return;this.maybeSetNormalizedName(Je.name,et);const Kt=("a"===Je.op?this.headers.get(et):void 0)||[];Kt.push(...Bt),this.headers.set(et,Kt);break;case"d":const Cn=Je.value;if(Cn){let Nt=this.headers.get(et);if(!Nt)return;Nt=Nt.filter(In=>-1===Cn.indexOf(In)),0===Nt.length?(this.headers.delete(et),this.normalizedNames.delete(et)):this.headers.set(et,Nt)}else this.headers.delete(et),this.normalizedNames.delete(et)}}forEach(Je){this.init(),Array.from(this.normalizedNames.keys()).forEach(et=>Je(this.normalizedNames.get(et),this.headers.get(et)))}}class H{encodeKey(Je){return Ie(Je)}encodeValue(Je){return Ie(Je)}decodeKey(Je){return decodeURIComponent(Je)}decodeValue(Je){return decodeURIComponent(Je)}}const X=/%(\d[a-f0-9])/gi,de={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ie(At){return encodeURIComponent(At).replace(X,(Je,et)=>{var Bt;return null!==(Bt=de[et])&&void 0!==Bt?Bt:Je})}function ue(At){return`${At}`}class Ce{constructor(Je={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Je.encoder||new H,Je.fromString){if(Je.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(At,Je){const et=new Map;return At.length>0&&At.replace(/^\?/,"").split("&").forEach(Kt=>{const Cn=Kt.indexOf("="),[Nt,In]=-1==Cn?[Je.decodeKey(Kt),""]:[Je.decodeKey(Kt.slice(0,Cn)),Je.decodeValue(Kt.slice(Cn+1))],ii=et.get(Nt)||[];ii.push(In),et.set(Nt,ii)}),et}(Je.fromString,this.encoder)}else Je.fromObject?(this.map=new Map,Object.keys(Je.fromObject).forEach(et=>{const Bt=Je.fromObject[et];this.map.set(et,Array.isArray(Bt)?Bt:[Bt])})):this.map=null}has(Je){return this.init(),this.map.has(Je)}get(Je){this.init();const et=this.map.get(Je);return et?et[0]:null}getAll(Je){return this.init(),this.map.get(Je)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Je,et){return this.clone({param:Je,value:et,op:"a"})}appendAll(Je){const et=[];return Object.keys(Je).forEach(Bt=>{const Kt=Je[Bt];Array.isArray(Kt)?Kt.forEach(Cn=>{et.push({param:Bt,value:Cn,op:"a"})}):et.push({param:Bt,value:Kt,op:"a"})}),this.clone(et)}set(Je,et){return this.clone({param:Je,value:et,op:"s"})}delete(Je,et){return this.clone({param:Je,value:et,op:"d"})}toString(){return this.init(),this.keys().map(Je=>{const et=this.encoder.encodeKey(Je);return this.map.get(Je).map(Bt=>et+"="+this.encoder.encodeValue(Bt)).join("&")}).filter(Je=>""!==Je).join("&")}clone(Je){const et=new Ce({encoder:this.encoder});return et.cloneFrom=this.cloneFrom||this,et.updates=(this.updates||[]).concat(Je),et}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Je=>this.map.set(Je,this.cloneFrom.map.get(Je))),this.updates.forEach(Je=>{switch(Je.op){case"a":case"s":const et=("a"===Je.op?this.map.get(Je.param):void 0)||[];et.push(ue(Je.value)),this.map.set(Je.param,et);break;case"d":if(void 0===Je.value){this.map.delete(Je.param);break}{let Bt=this.map.get(Je.param)||[];const Kt=Bt.indexOf(ue(Je.value));-1!==Kt&&Bt.splice(Kt,1),Bt.length>0?this.map.set(Je.param,Bt):this.map.delete(Je.param)}}}),this.cloneFrom=this.updates=null)}}class De{constructor(){this.map=new Map}set(Je,et){return this.map.set(Je,et),this}get(Je){return this.map.has(Je)||this.map.set(Je,Je.defaultValue()),this.map.get(Je)}delete(Je){return this.map.delete(Je),this}keys(){return this.map.keys()}}function $e(At){return"undefined"!=typeof ArrayBuffer&&At instanceof ArrayBuffer}function at(At){return"undefined"!=typeof Blob&&At instanceof Blob}function rt(At){return"undefined"!=typeof FormData&&At instanceof FormData}class C{constructor(Je,et,Bt,Kt){let Cn;if(this.url=et,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Je.toUpperCase(),function(At){switch(At){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Kt?(this.body=void 0!==Bt?Bt:null,Cn=Kt):Cn=Bt,Cn&&(this.reportProgress=!!Cn.reportProgress,this.withCredentials=!!Cn.withCredentials,Cn.responseType&&(this.responseType=Cn.responseType),Cn.headers&&(this.headers=Cn.headers),Cn.context&&(this.context=Cn.context),Cn.params&&(this.params=Cn.params)),this.headers||(this.headers=new z),this.context||(this.context=new De),this.params){const Nt=this.params.toString();if(0===Nt.length)this.urlWithParams=et;else{const In=et.indexOf("?");this.urlWithParams=et+(-1===In?"?":InIi.set(si,Je.setHeaders[si]),ki)),Je.setParams&&(Ui=Object.keys(Je.setParams).reduce((Ii,si)=>Ii.set(si,Je.setParams[si]),Ui)),new C(Bt,Kt,Nt,{params:Ui,headers:ki,context:Ln,reportProgress:ii,responseType:Cn,withCredentials:In})}}var Dt=(()=>((Dt=Dt||{})[Dt.Sent=0]="Sent",Dt[Dt.UploadProgress=1]="UploadProgress",Dt[Dt.ResponseHeader=2]="ResponseHeader",Dt[Dt.DownloadProgress=3]="DownloadProgress",Dt[Dt.Response=4]="Response",Dt[Dt.User=5]="User",Dt))();class Ue{constructor(Je,et=200,Bt="OK"){this.headers=Je.headers||new z,this.status=void 0!==Je.status?Je.status:et,this.statusText=Je.statusText||Bt,this.url=Je.url||null,this.ok=this.status>=200&&this.status<300}}class je extends Ue{constructor(Je={}){super(Je),this.type=Dt.ResponseHeader}clone(Je={}){return new je({headers:Je.headers||this.headers,status:void 0!==Je.status?Je.status:this.status,statusText:Je.statusText||this.statusText,url:Je.url||this.url||void 0})}}class He extends Ue{constructor(Je={}){super(Je),this.type=Dt.Response,this.body=void 0!==Je.body?Je.body:null}clone(Je={}){return new He({body:void 0!==Je.body?Je.body:this.body,headers:Je.headers||this.headers,status:void 0!==Je.status?Je.status:this.status,statusText:Je.statusText||this.statusText,url:Je.url||this.url||void 0})}}class Ve extends Ue{constructor(Je){super(Je,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Je.url||"(unknown url)"}`:`Http failure response for ${Je.url||"(unknown url)"}: ${Je.status} ${Je.statusText}`,this.error=Je.error||null}}function Qe(At,Je){return{body:Je,headers:At.headers,context:At.context,observe:At.observe,params:At.params,reportProgress:At.reportProgress,responseType:At.responseType,withCredentials:At.withCredentials}}let nt=(()=>{class At{constructor(et){this.handler=et}request(et,Bt,Kt={}){let Cn;if(et instanceof C)Cn=et;else{let ii,ki;ii=Kt.headers instanceof z?Kt.headers:new z(Kt.headers),Kt.params&&(ki=Kt.params instanceof Ce?Kt.params:new Ce({fromObject:Kt.params})),Cn=new C(et,Bt,void 0!==Kt.body?Kt.body:null,{headers:ii,context:Kt.context,params:ki,reportProgress:Kt.reportProgress,responseType:Kt.responseType||"json",withCredentials:Kt.withCredentials})}const Nt=(0,q.of)(Cn).pipe((0,O.b)(ii=>this.handler.handle(ii)));if(et instanceof C||"events"===Kt.observe)return Nt;const In=Nt.pipe((0,P.h)(ii=>ii instanceof He));switch(Kt.observe||"body"){case"body":switch(Cn.responseType){case"arraybuffer":return In.pipe((0,$.U)(ii=>{if(null!==ii.body&&!(ii.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ii.body}));case"blob":return In.pipe((0,$.U)(ii=>{if(null!==ii.body&&!(ii.body instanceof Blob))throw new Error("Response is not a Blob.");return ii.body}));case"text":return In.pipe((0,$.U)(ii=>{if(null!==ii.body&&"string"!=typeof ii.body)throw new Error("Response is not a string.");return ii.body}));case"json":default:return In.pipe((0,$.U)(ii=>ii.body))}case"response":return In;default:throw new Error(`Unreachable: unhandled observe type ${Kt.observe}}`)}}delete(et,Bt={}){return this.request("DELETE",et,Bt)}get(et,Bt={}){return this.request("GET",et,Bt)}head(et,Bt={}){return this.request("HEAD",et,Bt)}jsonp(et,Bt){return this.request("JSONP",et,{params:(new Ce).append(Bt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(et,Bt={}){return this.request("OPTIONS",et,Bt)}patch(et,Bt,Kt={}){return this.request("PATCH",et,Qe(Kt,Bt))}post(et,Bt,Kt={}){return this.request("POST",et,Qe(Kt,Bt))}put(et,Bt,Kt={}){return this.request("PUT",et,Qe(Kt,Bt))}}return At.\u0275fac=function(et){return new(et||At)(i.LFG(I))},At.\u0275prov=i.Yz7({token:At,factory:At.\u0275fac}),At})();class Ht{constructor(Je,et){this.next=Je,this.interceptor=et}handle(Je){return this.interceptor.intercept(Je,this.next)}}const zt=new i.OlP("HTTP_INTERCEPTORS");let wt=(()=>{class At{intercept(et,Bt){return Bt.handle(et)}}return At.\u0275fac=function(et){return new(et||At)},At.\u0275prov=i.Yz7({token:At,factory:At.\u0275fac}),At})();const Ge=/^\)\]\}',?\n/;let Rt=(()=>{class At{constructor(et){this.xhrFactory=et}handle(et){if("JSONP"===et.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(Bt=>{const Kt=this.xhrFactory.build();if(Kt.open(et.method,et.urlWithParams),et.withCredentials&&(Kt.withCredentials=!0),et.headers.forEach((si,Zn)=>Kt.setRequestHeader(si,Zn.join(","))),et.headers.has("Accept")||Kt.setRequestHeader("Accept","application/json, text/plain, */*"),!et.headers.has("Content-Type")){const si=et.detectContentTypeHeader();null!==si&&Kt.setRequestHeader("Content-Type",si)}if(et.responseType){const si=et.responseType.toLowerCase();Kt.responseType="json"!==si?si:"text"}const Cn=et.serializeBody();let Nt=null;const In=()=>{if(null!==Nt)return Nt;const si=1223===Kt.status?204:Kt.status,Zn=Kt.statusText||"OK",Xn=new z(Kt.getAllResponseHeaders()),fi=function(At){return"responseURL"in At&&At.responseURL?At.responseURL:/^X-Request-URL:/m.test(At.getAllResponseHeaders())?At.getResponseHeader("X-Request-URL"):null}(Kt)||et.url;return Nt=new je({headers:Xn,status:si,statusText:Zn,url:fi}),Nt},ii=()=>{let{headers:si,status:Zn,statusText:Xn,url:fi}=In(),_r=null;204!==Zn&&(_r=void 0===Kt.response?Kt.responseText:Kt.response),0===Zn&&(Zn=_r?200:0);let lr=Zn>=200&&Zn<300;if("json"===et.responseType&&"string"==typeof _r){const rs=_r;_r=_r.replace(Ge,"");try{_r=""!==_r?JSON.parse(_r):null}catch(xo){_r=rs,lr&&(lr=!1,_r={error:xo,text:_r})}}lr?(Bt.next(new He({body:_r,headers:si,status:Zn,statusText:Xn,url:fi||void 0})),Bt.complete()):Bt.error(new Ve({error:_r,headers:si,status:Zn,statusText:Xn,url:fi||void 0}))},ki=si=>{const{url:Zn}=In(),Xn=new Ve({error:si,status:Kt.status||0,statusText:Kt.statusText||"Unknown Error",url:Zn||void 0});Bt.error(Xn)};let Ui=!1;const Ln=si=>{Ui||(Bt.next(In()),Ui=!0);let Zn={type:Dt.DownloadProgress,loaded:si.loaded};si.lengthComputable&&(Zn.total=si.total),"text"===et.responseType&&!!Kt.responseText&&(Zn.partialText=Kt.responseText),Bt.next(Zn)},Ii=si=>{let Zn={type:Dt.UploadProgress,loaded:si.loaded};si.lengthComputable&&(Zn.total=si.total),Bt.next(Zn)};return Kt.addEventListener("load",ii),Kt.addEventListener("error",ki),Kt.addEventListener("timeout",ki),Kt.addEventListener("abort",ki),et.reportProgress&&(Kt.addEventListener("progress",Ln),null!==Cn&&Kt.upload&&Kt.upload.addEventListener("progress",Ii)),Kt.send(Cn),Bt.next({type:Dt.Sent}),()=>{Kt.removeEventListener("error",ki),Kt.removeEventListener("abort",ki),Kt.removeEventListener("load",ii),Kt.removeEventListener("timeout",ki),et.reportProgress&&(Kt.removeEventListener("progress",Ln),null!==Cn&&Kt.upload&&Kt.upload.removeEventListener("progress",Ii)),Kt.readyState!==Kt.DONE&&Kt.abort()}})}}return At.\u0275fac=function(et){return new(et||At)(i.LFG(m.JF))},At.\u0275prov=i.Yz7({token:At,factory:At.\u0275fac}),At})();const Sn=new i.OlP("XSRF_COOKIE_NAME"),Tn=new i.OlP("XSRF_HEADER_NAME");class Hn{}let ir=(()=>{class At{constructor(et,Bt,Kt){this.doc=et,this.platform=Bt,this.cookieName=Kt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const et=this.doc.cookie||"";return et!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,m.Mx)(et,this.cookieName),this.lastCookieString=et),this.lastToken}}return At.\u0275fac=function(et){return new(et||At)(i.LFG(m.K0),i.LFG(i.Lbi),i.LFG(Sn))},At.\u0275prov=i.Yz7({token:At,factory:At.\u0275fac}),At})(),Ei=(()=>{class At{constructor(et,Bt){this.tokenService=et,this.headerName=Bt}intercept(et,Bt){const Kt=et.url.toLowerCase();if("GET"===et.method||"HEAD"===et.method||Kt.startsWith("http://")||Kt.startsWith("https://"))return Bt.handle(et);const Cn=this.tokenService.getToken();return null!==Cn&&!et.headers.has(this.headerName)&&(et=et.clone({headers:et.headers.set(this.headerName,Cn)})),Bt.handle(et)}}return At.\u0275fac=function(et){return new(et||At)(i.LFG(Hn),i.LFG(Tn))},At.\u0275prov=i.Yz7({token:At,factory:At.\u0275fac}),At})(),Lr=(()=>{class At{constructor(et,Bt){this.backend=et,this.injector=Bt,this.chain=null}handle(et){if(null===this.chain){const Bt=this.injector.get(zt,[]);this.chain=Bt.reduceRight((Kt,Cn)=>new Ht(Kt,Cn),this.backend)}return this.chain.handle(et)}}return At.\u0275fac=function(et){return new(et||At)(i.LFG(U),i.LFG(i.zs3))},At.\u0275prov=i.Yz7({token:At,factory:At.\u0275fac}),At})(),Mn=(()=>{class At{static disable(){return{ngModule:At,providers:[{provide:Ei,useClass:wt}]}}static withOptions(et={}){return{ngModule:At,providers:[et.cookieName?{provide:Sn,useValue:et.cookieName}:[],et.headerName?{provide:Tn,useValue:et.headerName}:[]]}}}return At.\u0275fac=function(et){return new(et||At)},At.\u0275mod=i.oAB({type:At}),At.\u0275inj=i.cJS({providers:[Ei,{provide:zt,useExisting:Ei,multi:!0},{provide:Hn,useClass:ir},{provide:Sn,useValue:"XSRF-TOKEN"},{provide:Tn,useValue:"X-XSRF-TOKEN"}]}),At})(),Ir=(()=>{class At{}return At.\u0275fac=function(et){return new(et||At)},At.\u0275mod=i.oAB({type:At}),At.\u0275inj=i.cJS({providers:[nt,{provide:I,useClass:Lr},Rt,{provide:U,useExisting:Rt}],imports:[[Mn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),At})()},4788:(ge,G,g)=>{"use strict";g.d(G,{deG:()=>Z1,tb:()=>S6,AFp:()=>w6,ip1:()=>Uy,CZH:()=>cm,hGG:()=>x7,z2F:()=>Jg,ahi:()=>ju,sBO:()=>ty,Sil:()=>Xg,_Vd:()=>B1,aQ5:()=>dd,EJc:()=>x6,SBq:()=>id,qLn:()=>Ys,vpe:()=>Zh,L6J:()=>yw,gxx:()=>Nh,tBr:()=>cu,XFs:()=>Mn,OlP:()=>Jo,zs3:()=>Uo,IIB:()=>vw,ZZ4:()=>X0,aQg:()=>J0,soG:()=>s_,YKP:()=>Hv,v3s:()=>o7,h0i:()=>j1,PXZ:()=>Qw,R0b:()=>ku,FiY:()=>Ts,r_U:()=>_w,Lbi:()=>E6,g9A:()=>C6,Qsj:()=>z3,FYo:()=>K0,JOm:()=>Cl,Tiy:()=>kg,q3G:()=>vo,tp0:()=>Wa,EAV:()=>l7,Rgc:()=>Vp,dDg:()=>A6,DyG:()=>Gc,GfV:()=>Ov,i9L:()=>Wc,s_b:()=>Rg,ifc:()=>Nt,eFA:()=>L6,G48:()=>Gw,Gpc:()=>H,f3M:()=>uh,_c5:()=>y7,VLi:()=>Ww,c2e:()=>M6,zSh:()=>M1,wAp:()=>bi,vHH:()=>Ie,EiD:()=>Oc,mCW:()=>vl,qzn:()=>zl,JVY:()=>Ho,pB0:()=>e1,eBb:()=>Uu,L6k:()=>Q1,LAX:()=>uc,cg1:()=>iv,Tjo:()=>v7,kL8:()=>rv,yhl:()=>lc,dqk:()=>Ln,sIi:()=>I1,CqO:()=>rg,QGY:()=>ig,F4k:()=>V2,RDi:()=>wo,AaK:()=>I,z3N:()=>bs,qOj:()=>S0,TTD:()=>Ns,_Bn:()=>Z0,xp6:()=>Ef,uIk:()=>I0,Tol:()=>$_,Gre:()=>i3,IyS:()=>r3,ekj:()=>W2,Suo:()=>J4,Xpm:()=>Jn,lG2:()=>jr,Yz7:()=>Ae,cJS:()=>Ct,oAB:()=>ts,Yjl:()=>uo,Y36:()=>k0,_UZ:()=>R2,BQk:()=>F0,ynx:()=>ng,qZA:()=>tg,TgZ:()=>eg,EpF:()=>N2,n5z:()=>ru,Ikx:()=>H0,LFG:()=>Tr,$8M:()=>dl,$Z:()=>D_,NdJ:()=>R0,CRH:()=>Q4,O4$:()=>Zt,oxw:()=>I_,ALo:()=>W4,lcZ:()=>G4,xi3:()=>Z4,Hsn:()=>O_,F$t:()=>A_,Q6J:()=>Jm,VKq:()=>V4,WLB:()=>B4,iGM:()=>K4,MAs:()=>Q,CHM:()=>tc,LSH:()=>qc,kYT:()=>Si,Udp:()=>$2,d8E:()=>gg,YNc:()=>f,W1O:()=>i6,_uU:()=>X_,Oqu:()=>Y2,hij:()=>cg,AsE:()=>q2,Gf:()=>X4});var m=g(9765),i=g(5319),q=g(7574),D=g(6682),O=g(8819);function P(t){for(let n in t)if(t[n]===P)return n;throw Error("Could not find renamed property on target object.")}function $(t,n){for(const o in n)n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n[o])}function I(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(I).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const o=n.indexOf("\n");return-1===o?n:n.substring(0,o)}function U(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const z=P({__forward_ref__:P});function H(t){return t.__forward_ref__=H,t.toString=function(){return I(this())},t}function A(t){return X(t)?t():t}function X(t){return"function"==typeof t&&t.hasOwnProperty(z)&&t.__forward_ref__===H}class Ie extends Error{constructor(n,o){super(function(t,n){return`${t?`NG0${t}: `:""}${n}`}(n,o)),this.code=n}}function ve(t){return"string"==typeof t?t:null==t?"":String(t)}function De(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ve(t)}function rt(t,n){const o=n?` in ${n}`:"";throw new Ie("201",`No provider for ${De(t)} found${o}`)}function ft(t,n){null==t&&function(t,n,o,c){throw new Error(`ASSERTION ERROR: ${t}`+(null==c?"":` [Expected=> ${o} ${c} ${n} <=Actual]`))}(n,t,null,"!=")}function Ae(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ct(t){return{providers:t.providers||[],imports:t.imports||[]}}function Rt(t){return Sn(t,Ei)||Sn(t,Fo)}function Sn(t,n){return t.hasOwnProperty(n)?t[n]:null}function ir(t){return t&&(t.hasOwnProperty(Lr)||t.hasOwnProperty(cn))?t[Lr]:null}const Ei=P({\u0275prov:P}),Lr=P({\u0275inj:P}),Fo=P({ngInjectableDef:P}),cn=P({ngInjectorDef:P});var Mn=(()=>((Mn=Mn||{})[Mn.Default=0]="Default",Mn[Mn.Host=1]="Host",Mn[Mn.Self=2]="Self",Mn[Mn.SkipSelf=4]="SkipSelf",Mn[Mn.Optional=8]="Optional",Mn))();let Ir;function fr(t){const n=Ir;return Ir=t,n}function At(t,n,o){const c=Rt(t);return c&&"root"==c.providedIn?void 0===c.value?c.value=c.factory():c.value:o&Mn.Optional?null:void 0!==n?n:void rt(I(t),"Injector")}function et(t){return{toString:t}.toString()}var Bt=(()=>((Bt=Bt||{})[Bt.OnPush=0]="OnPush",Bt[Bt.Default=1]="Default",Bt))(),Nt=(()=>((Nt=Nt||{})[Nt.Emulated=0]="Emulated",Nt[Nt.None=2]="None",Nt[Nt.ShadowDom=3]="ShadowDom",Nt))();const In="undefined"!=typeof globalThis&&globalThis,ii="undefined"!=typeof window&&window,ki="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ln=In||"undefined"!=typeof global&&global||ii||ki,Zn={},Xn=[],fi=P({\u0275cmp:P}),_r=P({\u0275dir:P}),lr=P({\u0275pipe:P}),rs=P({\u0275mod:P}),xo=P({\u0275loc:P}),Nr=P({\u0275fac:P}),Ro=P({__NG_ELEMENT_ID__:P});let Fi=0;function Jn(t){return et(()=>{const o={},c={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:o,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Xn,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Nt.Emulated,id:"c",styles:t.styles||Xn,_:null,setInput:null,schemas:t.schemas||null,tView:null},l=t.directives,h=t.features,b=t.pipes;return c.id+=Fi++,c.inputs=un(t.inputs,o),c.outputs=un(t.outputs),h&&h.forEach(E=>E(c)),c.directiveDefs=l?()=>("function"==typeof l?l():l).map(Wo):null,c.pipeDefs=b?()=>("function"==typeof b?b():b).map(To):null,c})}function Wo(t){return Xi(t)||function(t){return t[_r]||null}(t)}function To(t){return function(t){return t[lr]||null}(t)}const ks={};function ts(t){return et(()=>{const n={type:t.type,bootstrap:t.bootstrap||Xn,declarations:t.declarations||Xn,imports:t.imports||Xn,exports:t.exports||Xn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(ks[t.id]=t.type),n})}function Si(t,n){return et(()=>{const o=yr(t,!0);o.declarations=n.declarations||Xn,o.imports=n.imports||Xn,o.exports=n.exports||Xn})}function un(t,n){if(null==t)return Zn;const o={};for(const c in t)if(t.hasOwnProperty(c)){let l=t[c],h=l;Array.isArray(l)&&(h=l[1],l=l[0]),o[l]=c,n&&(n[l]=h)}return o}const jr=Jn;function uo(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Xi(t){return t[fi]||null}function yr(t,n){const o=t[rs]||null;if(!o&&!0===n)throw new Error(`Type ${I(t)} does not have '\u0275mod' property.`);return o}function Ot(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ft(t){return Array.isArray(t)&&!0===t[1]}function Xt(t){return 0!=(8&t.flags)}function xn(t){return 2==(2&t.flags)}function Pn(t){return 1==(1&t.flags)}function Kn(t){return null!==t.template}function yi(t){return 0!=(512&t[2])}function bn(t,n){return t.hasOwnProperty(Nr)?t[Nr]:null}class gr{constructor(n,o,c){this.previousValue=n,this.currentValue=o,this.firstChange=c}isFirstChange(){return this.firstChange}}function Ns(){return yc}function yc(t){return t.type.prototype.ngOnChanges&&(t.setInput=Yn),ss}function ss(){const t=gs(this),n=null==t?void 0:t.current;if(n){const o=t.previous;if(o===Zn)t.previous=n;else for(let c in n)o[c]=n[c];t.current=null,this.ngOnChanges(n)}}function Yn(t,n,o,c){const l=gs(t)||function(t,n){return t[as]=n}(t,{previous:Zn,current:null}),h=l.current||(l.current={}),b=l.previous,E=this.declaredInputs[o],B=b[E];h[E]=new gr(B&&B.currentValue,n,b===Zn),t[c]=n}Ns.ngInherit=!0;const as="__ngSimpleChanges__";function gs(t){return t[as]||null}const Wi="http://www.w3.org/2000/svg";let No;function wo(t){No=t}function W(t){return!!t.listen}const ie={createRenderer:(t,n)=>void 0!==No?No:"undefined"!=typeof document?document:void 0};function R(t){for(;Array.isArray(t);)t=t[0];return t}function ot(t,n){return R(n[t])}function $t(t,n){return R(n[t.index])}function Qn(t,n){return t.data[n]}function hi(t,n){return t[n]}function Un(t,n){const o=n[t];return Ot(o)?o:o[0]}function Ai(t){return 4==(4&t[2])}function Or(t){return 128==(128&t[2])}function mo(t,n){return null==n?null:t[n]}function Bs(t){t[18]=0}function go(t,n){t[5]+=n;let o=t,c=t[3];for(;null!==c&&(1===n&&1===o[5]||-1===n&&0===o[5]);)c[5]+=n,o=c,c=c[3]}const yn={lFrame:Fn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function zc(){return yn.bindingsEnabled}function Wt(){return yn.lFrame.lView}function Vi(){return yn.lFrame.tView}function tc(t){return yn.lFrame.contextLView=t,t[8]}function ho(){let t=Ms();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ms(){return yn.lFrame.currentTNode}function Vo(t,n){const o=yn.lFrame;o.currentTNode=t,o.isParent=n}function ro(){return yn.lFrame.isParent}function ns(){yn.lFrame.isParent=!1}function nc(){return yn.isInCheckNoChangesMode}function js(t){yn.isInCheckNoChangesMode=t}function Br(){const t=yn.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function vs(){return yn.lFrame.bindingIndex}function Co(){return yn.lFrame.bindingIndex++}function Bi(t){const n=yn.lFrame,o=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,o}function il(t,n){const o=yn.lFrame;o.bindingIndex=o.bindingRootIndex=t,_s(n)}function _s(t){yn.lFrame.currentDirectiveIndex=t}function S(t){const n=yn.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Z(){return yn.lFrame.currentQueryIndex}function T(t){yn.lFrame.currentQueryIndex=t}function re(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function ye(t,n,o){if(o&Mn.SkipSelf){let l=n,h=t;for(;!(l=l.parent,null!==l||o&Mn.Host||(l=re(h),null===l||(h=h[15],10&l.type))););if(null===l)return!1;n=l,t=h}const c=yn.lFrame=lt();return c.currentTNode=n,c.lView=t,!0}function Re(t){const n=lt(),o=t[1];yn.lFrame=n,n.currentTNode=o.firstChild,n.lView=t,n.tView=o,n.contextLView=t,n.bindingIndex=o.bindingStartIndex,n.inI18n=!1}function lt(){const t=yn.lFrame,n=null===t?null:t.child;return null===n?Fn(t):n}function Fn(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function dr(){const t=yn.lFrame;return yn.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Nn=dr;function Pr(){const t=dr();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ke(){return yn.lFrame.selectedIndex}function xt(t){yn.lFrame.selectedIndex=t}function ct(){const t=yn.lFrame;return Qn(t.tView,t.selectedIndex)}function Zt(){yn.lFrame.currentNamespace=Wi}function ga(t,n){for(let o=n.directiveStart,c=n.directiveEnd;o=c)break}else n[B]<0&&(t[18]+=65536),(E>11>16&&(3&t[2])===n){t[2]+=2048;try{h.call(E)}finally{}}}else try{h.call(E)}finally{}}class ar{constructor(n,o,c){this.factory=n,this.resolving=!1,this.canSeeViewProviders=o,this.injectImpl=c}}function $s(t,n,o){const c=W(t);let l=0;for(;ln){b=h-1;break}}}for(;h>16}(t),c=n;for(;o>0;)c=c[15],o--;return c}let Nu=!0;function ul(t){const n=Nu;return Nu=t,n}let Y=0;function F(t,n){const o=oe(t,n);if(-1!==o)return o;const c=n[1];c.firstCreatePass&&(t.injectorIndex=n.length,ne(c.data,t),ne(n,null),ne(c.blueprint,null));const l=Ee(t,n),h=t.injectorIndex;if(ll(l)){const b=Cc(l),E=Wn(l,n),B=E[1].data;for(let ee=0;ee<8;ee++)n[h+ee]=E[b+ee]|B[b+ee]}return n[h+8]=l,h}function ne(t,n){t.push(0,0,0,0,0,0,0,0,n)}function oe(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Ee(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let o=0,c=null,l=n;for(;null!==l;){const h=l[1],b=h.type;if(c=2===b?h.declTNode:1===b?l[6]:null,null===c)return-1;if(o++,l=l[15],-1!==c.injectorIndex)return c.injectorIndex|o<<16}return-1}function Le(t,n,o){!function(t,n,o){let c;"string"==typeof o?c=o.charCodeAt(0)||0:o.hasOwnProperty(Ro)&&(c=o[Ro]),null==c&&(c=o[Ro]=Y++);const l=255&c;n.data[t+(l>>5)]|=1<=0?255&n:Dr:n}(o);if("function"==typeof h){if(!ye(n,t,c))return c&Mn.Host?kt(l,o,c):En(n,o,c,l);try{const b=h(c);if(null!=b||c&Mn.Optional)return b;rt(o)}finally{Nn()}}else if("number"==typeof h){let b=null,E=oe(t,n),B=-1,ee=c&Mn.Host?n[16][6]:null;for((-1===E||c&Mn.SkipSelf)&&(B=-1===E?Ee(t,n):n[E+8],-1!==B&&sa(c,!1)?(b=n[1],E=Cc(B),n=Wn(B,n)):E=-1);-1!==E;){const ce=n[1];if(Ec(h,E,ce.data)){const Te=Ji(E,n,o,b,c,ee);if(Te!==ni)return Te}B=n[E+8],-1!==B&&sa(c,n[1].data[E+8]===ee)&&Ec(h,E,n)?(b=ce,E=Cc(B),n=Wn(B,n)):E=-1}}}return En(n,o,c,l)}const ni={};function Dr(){return new is(ho(),Wt())}function Ji(t,n,o,c,l,h){const b=n[1],E=b.data[t+8],ce=oo(E,b,o,null==c?xn(E)&&Nu:c!=b&&0!=(3&E.type),l&Mn.Host&&h===E);return null!==ce?So(n,b,ce,E):ni}function oo(t,n,o,c,l){const h=t.providerIndexes,b=n.data,E=1048575&h,B=t.directiveStart,ce=h>>20,ke=l?E+ce:t.directiveEnd;for(let Ye=c?E:E+ce;Ye=B&&st.type===o)return Ye}if(l){const Ye=b[B];if(Ye&&Kn(Ye)&&Ye.type===o)return B}return null}function So(t,n,o,c){let l=t[o];const h=n.data;if(function(t){return t instanceof ar}(l)){const b=l;b.resolving&&function(t,n){throw new Ie("200",`Circular dependency in DI detected for ${t}`)}(De(h[o]));const E=ul(b.canSeeViewProviders);b.resolving=!0;const B=b.injectImpl?fr(b.injectImpl):null;ye(t,c,Mn.Default);try{l=t[o]=b.factory(void 0,h,t,c),n.firstCreatePass&&o>=c.directiveStart&&function(t,n,o){const{ngOnChanges:c,ngOnInit:l,ngDoCheck:h}=n.type.prototype;if(c){const b=yc(n);(o.preOrderHooks||(o.preOrderHooks=[])).push(t,b),(o.preOrderCheckHooks||(o.preOrderCheckHooks=[])).push(t,b)}l&&(o.preOrderHooks||(o.preOrderHooks=[])).push(0-t,l),h&&((o.preOrderHooks||(o.preOrderHooks=[])).push(t,h),(o.preOrderCheckHooks||(o.preOrderCheckHooks=[])).push(t,h))}(o,h[o],n)}finally{null!==B&&fr(B),ul(E),b.resolving=!1,Nn()}}return l}function Ec(t,n,o){return!!(o[n+(t>>5)]&1<{const n=t.prototype.constructor,o=n[Nr]||G1(n),c=Object.prototype;let l=Object.getPrototypeOf(t.prototype).constructor;for(;l&&l!==c;){const h=l[Nr]||G1(l);if(h&&h!==o)return h;l=Object.getPrototypeOf(l)}return h=>new h})}function G1(t){return X(t)?()=>{const n=G1(A(t));return n&&n()}:bn(t)}function dl(t){return function(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const o=t.attrs;if(o){const c=o.length;let l=0;for(;l{const c=Bu(n);function l(...h){if(this instanceof l)return c.apply(this,h),this;const b=new l(...h);return E.annotation=b,E;function E(B,ee,ce){const Te=B.hasOwnProperty(Ha)?B[Ha]:Object.defineProperty(B,Ha,{value:[]})[Ha];for(;Te.length<=ce;)Te.push(null);return(Te[ce]=Te[ce]||[]).push(b),B}}return o&&(l.prototype=Object.create(o.prototype)),l.prototype.ngMetadataName=t,l.annotationCls=l,l})}function za(t,n,o,c){return et(()=>{const l=Bu(n);function h(...b){if(this instanceof h)return l.apply(this,b),this;const E=new h(...b);return function(ee,ce){const Te=ee.constructor,ke=Te.hasOwnProperty(ja)?Te[ja]:Object.defineProperty(Te,ja,{value:{}})[ja];ke[ce]=ke.hasOwnProperty(ce)&&ke[ce]||[],ke[ce].unshift(E),c&&c(ee,ce,...b)}}return o&&(h.prototype=Object.create(o.prototype)),h.prototype.ngMetadataName=t,h.annotationCls=h,h})}function ya(){return Me("Attribute",t=>({attributeName:t,__NG_ELEMENT_ID__:()=>dl(t)}))}const ju=ya();class Jo{constructor(n,o){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof o?this.__NG_ELEMENT_ID__=o:void 0!==o&&(this.\u0275prov=Ae({token:this,providedIn:o.providedIn||"root",factory:o.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Z1=new Jo("AnalyzeForEntryComponents");class ld{}const dd=za("ContentChild",(t,n={})=>Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},n),ld),Wc=za("ViewChild",(t,n)=>Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},n),ld),Gc=Function;function Ua(t,n){void 0===n&&(n=t);for(let o=0;oArray.isArray(o)?fo(o,n):n(o))}function Ia(t,n,o){n>=t.length?t.push(o):t.splice(n,0,o)}function sc(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ys(t,n){const o=[];for(let c=0;c=0?t[1|c]=o:(c=~c,function(t,n,o,c){let l=t.length;if(l==n)t.push(o,c);else if(1===l)t.push(c,t[0]),t[0]=o;else{for(l--,t.push(t[l-1],t[l]);l>n;)t[l]=t[l-2],l--;t[n]=o,t[n+1]=c}}(t,c,n,o)),c}function ah(t,n){const o=ou(t,n);if(o>=0)return t[1|o]}function ou(t,n){return function(t,n,o){let c=0,l=t.length>>o;for(;l!==c;){const h=c+(l-c>>1),b=t[h<n?l=h:c=h+1}return~(l< ");else if("object"==typeof n){let h=[];for(let b in n)if(n.hasOwnProperty(b)){let E=n[b];h.push(b+":"+("string"==typeof E?JSON.stringify(E):I(E)))}l=`{${h.join(", ")}}`}return`${o}${c?"("+c+")":""}[${l}]: ${t.replace(qh,"\n ")}`}("\n"+t.message,l,o,c),t.ngTokenPath=l,t[Mc]=null,t}const cu=ml(Me("Inject",t=>({token:t})),-1),Ts=ml(Me("Optional"),8),Wa=ml(Me("SkipSelf"),4);let yd;function gl(t){var n;return(null===(n=function(){if(void 0===yd&&(yd=null,Ln.trustedTypes))try{yd=Ln.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return yd}())||void 0===n?void 0:n.createHTML(t))||t}class Is{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ic extends Is{getTypeName(){return"HTML"}}class Yi extends Is{getTypeName(){return"Style"}}class zu extends Is{getTypeName(){return"Script"}}class Xf extends Is{getTypeName(){return"URL"}}class Sd extends Is{getTypeName(){return"ResourceURL"}}function bs(t){return t instanceof Is?t.changingThisBreaksApplicationSecurity:t}function zl(t,n){const o=lc(t);if(null!=o&&o!==n){if("ResourceURL"===o&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${o} (see https://g.co/ng/security#xss)`)}return o===n}function lc(t){return t instanceof Is&&t.getTypeName()||null}function Ho(t){return new Ic(t)}function Q1(t){return new Yi(t)}function Uu(t){return new zu(t)}function uc(t){return new Xf(t)}function e1(t){return new Sd(t)}class hc{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const o=(new window.DOMParser).parseFromString(gl(n),"text/html").body;return null===o?this.inertDocumentHelper.getInertBodyElement(n):(o.removeChild(o.firstChild),o)}catch(o){return null}}}class ws{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const o=this.inertDocument.createElement("html");this.inertDocument.appendChild(o);const c=this.inertDocument.createElement("body");o.appendChild(c)}}getInertBodyElement(n){const o=this.inertDocument.createElement("template");if("content"in o)return o.innerHTML=gl(n),o;const c=this.inertDocument.createElement("body");return c.innerHTML=gl(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(c),c}stripCustomNsAttrs(n){const o=n.attributes;for(let l=o.length-1;0vl(n.trim())).join(", ")),this.buf.push(" ",b,'="',bl(B),'"')}var t;return this.buf.push(">"),!0}endElement(n){const o=n.nodeName.toLowerCase();n1.hasOwnProperty(o)&&!Ac.hasOwnProperty(o)&&(this.buf.push(""))}chars(n){this.buf.push(bl(n))}checkClobberedElement(n,o){if(o&&(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return o}}const Cs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,la=/([^\#-~ |!])/g;function bl(t){return t.replace(/&/g,"&").replace(Cs,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(la,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Ea;function Oc(t,n){let o=null;try{Ea=Ea||function(t){const n=new ws(t);return function(){try{return!!(new window.DOMParser).parseFromString(gl(""),"text/html")}catch(t){return!1}}()?new hc(n):n}(t);let c=n?String(n):"";o=Ea.getInertBodyElement(c);let l=5,h=c;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,c=h,h=o.innerHTML,o=Ea.getInertBodyElement(c)}while(c!==h);return gl((new yh).sanitizeChildren(Sa(o)||o))}finally{if(o){const c=Sa(o)||o;for(;c.firstChild;)c.removeChild(c.firstChild)}}}function Sa(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var vo=(()=>((vo=vo||{})[vo.NONE=0]="NONE",vo[vo.HTML=1]="HTML",vo[vo.STYLE=2]="STYLE",vo[vo.SCRIPT=3]="SCRIPT",vo[vo.URL=4]="URL",vo[vo.RESOURCE_URL=5]="RESOURCE_URL",vo))();function qc(t){const n=function(){const t=Wt();return t&&t[12]}();return n?n.sanitize(vo.URL,t)||"":zl(t,"URL")?bs(t):vl(ve(t))}const Gu="__ngContext__";function jo(t,n){t[Gu]=n}function Od(t){const n=function(t){return t[Gu]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function Ya(t){return t.ngOriginalError}function xh(t,...n){t.error(...n)}class Ys{constructor(){this._console=console}handleError(n){const o=this._findOriginalError(n),c=this._findContext(n),l=(t=n)&&t.ngErrorLogger||xh;var t;l(this._console,"ERROR",n),o&&l(this._console,"ORIGINAL ERROR",o),c&&l(this._console,"ERROR CONTEXT",c)}_findContext(n){return n?n.ngDebugContext||this._findContext(Ya(n)):null}_findOriginalError(n){let o=n&&Ya(n);for(;o&&Ya(o);)o=Ya(o);return o||null}}const a1=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ln))();function fc(t){return t instanceof Function?t():t}var Cl=(()=>((Cl=Cl||{})[Cl.Important=1]="Important",Cl[Cl.DashCase=2]="DashCase",Cl))();function Dh(t,n){return undefined(t,n)}function Ld(t){const n=t[3];return Ft(n)?n[3]:n}function Th(t){return Nd(t[13])}function Ih(t){return Nd(t[4])}function Nd(t){for(;null!==t&&!Ft(t);)t=t[4];return t}function ha(t,n,o,c,l){if(null!=c){let h,b=!1;Ft(c)?h=c:Ot(c)&&(b=!0,c=c[0]);const E=R(c);0===t&&null!==o?null==l?vu(n,o,E):Pc(n,o,E,l||null,!0):1===t&&null!==o?Pc(n,o,E,l||null,!0):2===t?function(t,n,o){const c=h1(t,n);c&&function(t,n,o,c){W(t)?t.removeChild(n,o,c):n.removeChild(o)}(t,c,n,o)}(n,E,b):3===t&&n.destroyNode(E),null!=h&&function(t,n,o,c,l){const h=o[7];h!==R(o)&&ha(n,t,c,h,l);for(let E=10;E0&&(t[o-1][4]=c[4]);const h=sc(t,10+n);!function(t,n){kc(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(c[1],c);const b=h[19];null!==b&&b.detachView(h[1]),c[3]=null,c[4]=null,c[2]&=-129}return c}function ap(t,n){if(!(256&n[2])){const o=n[11];W(o)&&o.destroyNode&&kc(t,n,o,3,null,null),function(t){let n=t[13];if(!n)return ff(t[1],t);for(;n;){let o=null;if(Ot(n))o=n[13];else{const c=n[10];c&&(o=c)}if(!o){for(;n&&!n[4]&&n!==t;)Ot(n)&&ff(n[1],n),n=n[3];null===n&&(n=t),Ot(n)&&ff(n[1],n),o=n&&n[4]}n=o}}(n)}}function ff(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function(t,n){let o;if(null!=t&&null!=(o=t.destroyHooks))for(let c=0;c=0?c[l=ee]():c[l=-ee].unsubscribe(),h+=2}else{const b=c[l=o[h+1]];o[h].call(b)}if(null!==c){for(let h=l+1;hh?"":l[Te+1].toLowerCase();const Ye=8&c?ke:null;if(Ye&&-1!==Ml(Ye,ee,0)||2&c&&ee!==ke){if(Ao(c))return!1;b=!0}}}}else{if(!b&&!Ao(c)&&!Ao(B))return!1;if(b&&Ao(B))continue;b=!1,c=B|1&c}}return Ao(c)||b}function Ao(t){return 0==(1&t)}function up(t,n,o,c){if(null===n)return-1;let l=0;if(c||!o){let h=!1;for(;l-1)for(o++;o0?'="'+E+'"':"")+"]"}else 8&c?l+="."+b:4&c&&(l+=" "+b);else""!==l&&!Ao(b)&&(n+=yu(h,l),l=""),c=b,h=h||!Ao(c);o++}return""!==l&&(n+=yu(h,l)),n}const Hi={};function Ef(t){b1(Vi(),Wt(),Ke()+t,nc())}function b1(t,n,o,c){if(!c)if(3==(3&n[2])){const h=t.preOrderCheckHooks;null!==h&&Xo(n,h,o)}else{const h=t.preOrderHooks;null!==h&&wc(n,h,0,o)}xt(o)}function Ju(t,n){return t<<17|n<<2}function Ka(t){return t>>17&32767}function xl(t){return 2|t}function Jl(t){return(131068&t)>>2}function Wd(t,n){return-131069&t|n<<2}function Cu(t){return 1|t}function Et(t,n){const o=t.contentQueries;if(null!==o)for(let c=0;c20&&b1(t,n,20,nc()),o(c,l)}finally{xt(h)}}function Fr(t,n,o){if(Xt(n)){const l=n.directiveEnd;for(let h=n.directiveStart;h0;){const o=t[--n];if("number"==typeof o&&o<0)return o}return 0})(E)!=B&&E.push(B),E.push(c,l,b)}}function Kp(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function Po(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function Xp(t,n,o){if(o){if(n.exportAs)for(let c=0;c0&&Xa(o)}}function Xa(t){for(let c=Th(t);null!==c;c=Ih(c))for(let l=10;l0&&Xa(h)}const o=t[1].components;if(null!==o)for(let c=0;c0&&Xa(l)}}function Lh(t,n){const o=Un(n,t),c=o[1];(function(t,n){for(let o=n.length;oPromise.resolve(null))();function so(t){return t[7]||(t[7]=[])}function wm(t){return t.cleanup||(t.cleanup=[])}function xf(t,n){const o=t[9],c=o?o.get(Ys,null):null;c&&c.handleError(n)}function o0(t,n,o,c,l){for(let h=0;hthis.processProvider(E,n,o)),fo([n],E=>this.processInjectorType(E,[],h)),this.records.set(Nh,Qs(void 0,this));const b=this.records.get(M1);this.scope=null!=b?b.value:null,this.source=l||("object"==typeof n?null:I(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,o=Pa,c=Mn.Default){this.assertNotDestroyed();const l=Dc(this),h=fr(void 0);try{if(!(c&Mn.SkipSelf)){let E=this.records.get(n);if(void 0===E){const B=("function"==typeof(t=n)||"object"==typeof t&&t instanceof Jo)&&Rt(n);E=B&&this.injectableDefInScope(B)?Qs(wp(n),x1):null,this.records.set(n,E)}if(null!=E)return this.hydrate(n,E)}return(c&Mn.Self?a0():this.parent).get(n,o=c&Mn.Optional&&o===Pa?null:o)}catch(b){if("NullInjectorError"===b.name){if((b[Mc]=b[Mc]||[]).unshift(I(n)),l)throw b;return wa(b,n,"R3InjectorError",this.source)}throw b}finally{fr(h),Dc(l)}var t}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((c,l)=>n.push(I(l))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(n,o,c){if(!(n=A(n)))return!1;let l=ir(n);const h=null==l&&n.ngModule||void 0,b=void 0===h?n:h,E=-1!==c.indexOf(b);if(void 0!==h&&(l=ir(h)),null==l)return!1;if(null!=l.imports&&!E){let ce;c.push(b);try{fo(l.imports,Te=>{this.processInjectorType(Te,o,c)&&(void 0===ce&&(ce=[]),ce.push(Te))})}finally{}if(void 0!==ce)for(let Te=0;Tethis.processProvider(st,ke,Ye||Xn))}}this.injectorDefTypes.add(b);const B=bn(b)||(()=>new b);this.records.set(b,Qs(B,x1));const ee=l.providers;if(null!=ee&&!E){const ce=n;fo(ee,Te=>this.processProvider(Te,ce,ee))}return void 0!==h&&void 0!==n.providers}processProvider(n,o,c){let l=Zd(n=A(n))?n:A(n&&n.provide);const h=l0(t=n)?Qs(void 0,t.useValue):Qs(Js(t),x1);var t;if(Zd(n)||!0!==n.multi)this.records.get(l);else{let b=this.records.get(l);b||(b=Qs(void 0,x1,!0),b.factory=()=>$a(b.multi),this.records.set(l,b)),l=n,b.multi.push(n)}this.records.set(l,h)}hydrate(n,o){return o.value===x1&&(o.value=Sm,o.value=o.factory()),"object"==typeof o.value&&o.value&&null!==(t=o.value)&&"object"==typeof t&&"function"==typeof t.ngOnDestroy&&this.onDestroy.add(o.value),o.value;var t}injectableDefInScope(n){if(!n.providedIn)return!1;const o=A(n.providedIn);return"string"==typeof o?"any"===o||o===this.scope:this.injectorDefTypes.has(o)}}function wp(t){const n=Rt(t),o=null!==n?n.factory:bn(t);if(null!==o)return o;if(t instanceof Jo)throw new Error(`Token ${I(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const n=t.length;if(n>0){const c=ys(n,"?");throw new Error(`Can't resolve all parameters for ${I(t)}: (${c.join(", ")}).`)}const o=function(t){const n=t&&(t[Ei]||t[Fo]);if(n){const o=function(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${o}" 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 "${o}" class.`),n}return null}(t);return null!==o?()=>o.factory(t):()=>new t}(t);throw new Error("unreachable")}function Js(t,n,o){let c;if(Zd(t)){const l=A(t);return bn(l)||wp(l)}if(l0(t))c=()=>A(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))c=()=>t.useFactory(...$a(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))c=()=>Tr(A(t.useExisting));else{const l=A(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return bn(l)||wp(l);c=()=>new l(...$a(t.deps))}return c}function Qs(t,n,o=!1){return{factory:t,value:n,multi:o?[]:void 0}}function l0(t){return null!==t&&"object"==typeof t&&Kh in t}function Zd(t){return"function"==typeof t}const d0=function(t,n,o){return function(t,n=null,o=null,c){const l=c0(t,n,o,c);return l._resolveInjectorDefTypes(),l}({name:o},n,t,o)};let Uo=(()=>{class t{static create(o,c){return Array.isArray(o)?d0(o,c,""):d0(o.providers,o.parent,o.name||"")}}return t.THROW_IF_NOT_FOUND=Pa,t.NULL=new s0,t.\u0275prov=Ae({token:t,providedIn:"any",factory:()=>Tr(Nh)}),t.__NG_ELEMENT_ID__=-1,t})();function x2(t,n){ga(Od(t)[1],ho())}function S0(t){let n=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),o=!0;const c=[t];for(;n;){let l;if(Kn(t))l=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Error("Directives cannot inherit Components");l=n.\u0275dir}if(l){if(o){c.push(l);const b=t;b.inputs=Ja(t.inputs),b.declaredInputs=Ja(t.declaredInputs),b.outputs=Ja(t.outputs);const E=l.hostBindings;E&&I2(t,E);const B=l.viewQuery,ee=l.contentQueries;if(B&&M0(t,B),ee&&T2(t,ee),$(t.inputs,l.inputs),$(t.declaredInputs,l.declaredInputs),$(t.outputs,l.outputs),Kn(l)&&l.data.animation){const ce=t.data;ce.animation=(ce.animation||[]).concat(l.data.animation)}}const h=l.features;if(h)for(let b=0;b=0;c--){const l=t[c];l.hostVars=n+=l.hostVars,l.hostAttrs=va(l.hostAttrs,o=va(o,l.hostAttrs))}}(c)}function Ja(t){return t===Zn?{}:t===Xn?[]:t}function M0(t,n){const o=t.viewQuery;t.viewQuery=o?(c,l)=>{n(c,l),o(c,l)}:n}function T2(t,n){const o=t.contentQueries;t.contentQueries=o?(c,l,h)=>{n(c,l,h),o(c,l,h)}:n}function I2(t,n){const o=t.hostBindings;t.hostBindings=o?(c,l)=>{n(c,l),o(c,l)}:n}let If=null;function ed(){if(!If){const t=Ln.Symbol;if(t&&t.iterator)If=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let o=0;oE(R(Ki[c.index])):c.index;if(W(o)){let Ki=null;if(!E&&B&&(Ki=function(t,n,o,c){const l=t.cleanup;if(null!=l)for(let h=0;hB?E[B]:null}"string"==typeof b&&(h+=2)}return null}(t,n,l,c.index)),null!==Ki)(Ki.__ngLastListenerFn__||Ki).__ngNextListenerFn__=h,Ki.__ngLastListenerFn__=h,Ye=!1;else{h=Ip(c,n,Te,h,!1);const Qr=o.listen(fn,l,h);ke.push(h,Qr),ce&&ce.push(l,di,Ut,Ut+1)}}else h=Ip(c,n,Te,h,!0),fn.addEventListener(l,h,b),ke.push(h),ce&&ce.push(l,di,Ut,b)}else h=Ip(c,n,Te,h,!1);const st=c.outputs;let It;if(Ye&&null!==st&&(It=st[l])){const yt=It.length;if(yt)for(let fn=0;fn0;)n=n[15],t--;return n}(t,yn.lFrame.contextLView))[8]}(t)}function O5(t,n){let o=null;const c=function(t){const n=t.attrs;if(null!=n){const o=n.indexOf(5);if(0==(1&o))return n[o+1]}return null}(t);for(let l=0;l=0}const xa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ap(t){return t.substring(xa.key,xa.keyEnd)}function V0(t,n){const o=xa.textEnd;return o===n?-1:(n=xa.keyEnd=function(t,n,o){for(;n32;)n++;return n}(t,xa.key=n,o),Au(t,n,o))}function Au(t,n,o){for(;n=0;o=V0(n,o))ba(t,Ap(n),!0)}function td(t,n,o,c){const l=Wt(),h=Vi(),b=Bi(2);h.firstUpdatePass&&G_(h,t,b,c),n!==Hi&&pa(l,b,n)&&Y_(h,h.data[Ke()],l,l[11],t,l[b+1]=function(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=I(bs(t)))),t}(n,o),c,b)}function nd(t,n,o,c){const l=Vi(),h=Bi(2);l.firstUpdatePass&&G_(l,null,h,c);const b=Wt();if(o!==Hi&&pa(b,h,o)){const E=l.data[Ke()];if(K_(E,c)&&!W_(l,h)){let B=c?E.classesWithoutHost:E.stylesWithoutHost;null!==B&&(o=U(B,o||"")),Qm(l,E,b,o,c)}else!function(t,n,o,c,l,h,b,E){l===Hi&&(l=Xn);let B=0,ee=0,ce=0=t.expandoStartIndex}function G_(t,n,o,c){const l=t.data;if(null===l[o+1]){const h=l[Ke()],b=W_(t,o);K_(h,c)&&null===n&&!b&&(n=!1),n=function(t,n,o,c){const l=S(t);let h=c?n.residualClasses:n.residualStyles;if(null===l)0===(c?n.classBindings:n.styleBindings)&&(o=B0(o=G2(null,t,n,o,c),n.attrs,c),h=null);else{const b=n.directiveStylingLast;if(-1===b||t[b]!==l)if(o=G2(l,t,n,o,c),null===h){let B=function(t,n,o){const c=o?n.classBindings:n.styleBindings;if(0!==Jl(c))return t[Ka(c)]}(t,n,c);void 0!==B&&Array.isArray(B)&&(B=G2(null,t,n,B[1],c),B=B0(B,n.attrs,c),function(t,n,o,c){t[Ka(o?n.classBindings:n.styleBindings)]=c}(t,n,c,B))}else h=function(t,n,o){let c;const l=n.directiveEnd;for(let h=1+n.directiveStylingLast;h0)&&(ee=!0)}else ce=o;if(l)if(0!==B){const ke=Ka(t[E+1]);t[c+1]=Ju(ke,E),0!==ke&&(t[ke+1]=Wd(t[ke+1],c)),t[E+1]=function(t,n){return 131071&t|n<<17}(t[E+1],c)}else t[c+1]=Ju(E,0),0!==E&&(t[E+1]=Wd(t[E+1],c)),E=c;else t[c+1]=Ju(B,0),0===E?E=c:t[B+1]=Wd(t[B+1],c),B=c;ee&&(t[c+1]=xl(t[c+1])),z2(t,ce,c,!0),z2(t,ce,c,!1),function(t,n,o,c,l){const h=l?t.residualClasses:t.residualStyles;null!=h&&"string"==typeof n&&ou(h,n)>=0&&(o[c+1]=Cu(o[c+1]))}(n,ce,t,c,h),b=Ju(E,B),h?n.classBindings=b:n.styleBindings=b}(l,h,n,o,b,c)}}function G2(t,n,o,c,l){let h=null;const b=o.directiveEnd;let E=o.directiveStylingLast;for(-1===E?E=o.directiveStart:E++;E0;){const B=t[l],ee=Array.isArray(B),ce=ee?B[1]:B,Te=null===ce;let ke=o[l+1];ke===Hi&&(ke=Te?Xn:void 0);let Ye=Te?ah(ke,c):ce===c?ke:void 0;if(ee&&!ag(Ye)&&(Ye=ah(B,c)),ag(Ye)&&(E=Ye,b))return E;const st=t[l+1];l=b?Ka(st):Jl(st)}if(null!==n){let B=h?n.residualClasses:n.residualStyles;null!=B&&(E=ah(B,c))}return E}function ag(t){return void 0!==t}function K_(t,n){return 0!=(t.flags&(n?16:32))}function X_(t,n=""){const o=Wt(),c=Vi(),l=t+20,h=c.firstCreatePass?Lt(c,l,1,n,null):c.data[l],b=o[l]=function(t,n){return W(t)?t.createText(n):t.createTextNode(n)}(o[11],n);_u(c,o,b,h),Vo(h,!1)}function Y2(t){return cg("",t,""),Y2}function cg(t,n,o){const c=Wt(),l=O1(c,t,n,o);return l!==Hi&&xu(c,Ke(),l),cg}function q2(t,n,o,c,l){const h=Wt(),b=function(t,n,o,c,l,h){const E=Iu(t,vs(),o,l);return Bi(2),E?n+ve(o)+c+ve(l)+h:Hi}(h,t,n,o,c,l);return b!==Hi&&xu(h,Ke(),b),q2}function i3(t,n,o){nd(ba,qd,O1(Wt(),t,n,o),!0)}function r3(t,n,o,c,l,h,b){nd(ba,qd,k1(Wt(),t,n,o,c,l,h,b),!0)}function H0(t,n,o){const c=Wt();return pa(c,Co(),n)&&Qc(Vi(),ct(),c,t,n,c[11],o,!0),H0}function gg(t,n,o){const c=Wt();if(pa(c,Co(),n)){const h=Vi(),b=ct();Qc(h,b,c,t,n,function(t,n,o){return(null===t||Kn(t))&&(o=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(o[n.index])),o[11]}(S(h.data),b,c),o,!0)}return gg}const V1=void 0;var l3=["en",[["a","p"],["AM","PM"],V1],[["AM","PM"],V1,V1],[["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"]],V1,[["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"]],V1,[["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}",V1,"{1} 'at' {0}",V1],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const n=Math.floor(Math.abs(t)),o=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===o?1:5}];let Pf={};function iv(t){const n=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let o=u3(n);if(o)return o;const c=n.split("-")[0];if(o=u3(c),o)return o;if("en"===c)return l3;throw new Error(`Missing locale data for the locale "${t}".`)}function rv(t){return iv(t)[bi.PluralCase]}function u3(t){return t in Pf||(Pf[t]=Ln.ng&&Ln.ng.common&&Ln.ng.common.locales&&Ln.ng.common.locales[t]),Pf[t]}var bi=(()=>((bi=bi||{})[bi.LocaleId=0]="LocaleId",bi[bi.DayPeriodsFormat=1]="DayPeriodsFormat",bi[bi.DayPeriodsStandalone=2]="DayPeriodsStandalone",bi[bi.DaysFormat=3]="DaysFormat",bi[bi.DaysStandalone=4]="DaysStandalone",bi[bi.MonthsFormat=5]="MonthsFormat",bi[bi.MonthsStandalone=6]="MonthsStandalone",bi[bi.Eras=7]="Eras",bi[bi.FirstDayOfWeek=8]="FirstDayOfWeek",bi[bi.WeekendRange=9]="WeekendRange",bi[bi.DateFormat=10]="DateFormat",bi[bi.TimeFormat=11]="TimeFormat",bi[bi.DateTimeFormat=12]="DateTimeFormat",bi[bi.NumberSymbols=13]="NumberSymbols",bi[bi.NumberFormats=14]="NumberFormats",bi[bi.CurrencyCode=15]="CurrencyCode",bi[bi.CurrencySymbol=16]="CurrencySymbol",bi[bi.CurrencyName=17]="CurrencyName",bi[bi.Currencies=18]="Currencies",bi[bi.Directionality=19]="Directionality",bi[bi.PluralCase=20]="PluralCase",bi[bi.ExtraData=21]="ExtraData",bi))();const vg="en-US";let h3=vg;function ov(t){ft(t,"Expected localeId to be defined"),"string"==typeof t&&(h3=t.toLowerCase().replace(/_/g,"-"))}function Ag(t,n,o,c,l){if(t=A(t),Array.isArray(t))for(let h=0;h>20;if(Zd(t)||!t.multi){const Ye=new ar(B,l,k0),st=Og(E,n,l?ce:ce+ke,Te);-1===st?(Le(F(ee,b),h,E),Fp(h,t,n.length),n.push(E),ee.directiveStart++,ee.directiveEnd++,l&&(ee.providerIndexes+=1048576),o.push(Ye),b.push(Ye)):(o[st]=Ye,b[st]=Ye)}else{const Ye=Og(E,n,ce+ke,Te),st=Og(E,n,ce,ce+ke),It=Ye>=0&&o[Ye],yt=st>=0&&o[st];if(l&&!yt||!l&&!It){Le(F(ee,b),h,E);const fn=function(t,n,o,c,l){const h=new ar(t,o,k0);return h.multi=[],h.index=n,h.componentProviders=0,xv(h,l,c&&!o),h}(l?Dv:V3,o.length,l,c,B);!l&&yt&&(o[st].providerFactory=fn),Fp(h,t,n.length,0),n.push(E),ee.directiveStart++,ee.directiveEnd++,l&&(ee.providerIndexes+=1048576),o.push(fn),b.push(fn)}else Fp(h,t,Ye>-1?Ye:st,xv(o[l?st:Ye],B,!l&&c));!l&&c&&yt&&o[st].componentProviders++}}}function Fp(t,n,o,c){const l=Zd(n);if(l||function(t){return!!t.useClass}(n)){const b=(n.useClass||n).prototype.ngOnDestroy;if(b){const E=t.destroyHooks||(t.destroyHooks=[]);if(!l&&n.multi){const B=E.indexOf(o);-1===B?E.push(o,[c,b]):E[B+1].push(c,b)}else E.push(o,b)}}}function xv(t,n,o){return o&&t.componentProviders++,t.multi.push(n)-1}function Og(t,n,o,c){for(let l=o;l{o.providersResolver=(c,l)=>function(t,n,o){const c=Vi();if(c.firstCreatePass){const l=Kn(t);Ag(o,c.data,c.blueprint,l,!0),Ag(n,c.data,c.blueprint,l,!1)}}(c,l?l(t):t,n)}}class Lf{}const Tv="ngComponent";class Iv{resolveComponentFactory(n){throw function(t){const n=Error(`No component factory found for ${I(t)}. Did you add it to @NgModule.entryComponents?`);return n[Tv]=t,n}(n)}}let B1=(()=>{class t{}return t.NULL=new Iv,t})();function Xd(...t){}function Vf(t,n){return new id($t(t,n))}const Av=function(){return Vf(ho(),Wt())};let id=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Av,t})();function q0(t){return t instanceof id?t.nativeElement:t}class K0{}let z3=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>$3(),t})();const $3=function(){const t=Wt(),o=Un(ho().index,t);return function(t){return t[11]}(Ot(o)?o:t)};let kg=(()=>{class t{}return t.\u0275prov=Ae({token:t,providedIn:"root",factory:()=>null}),t})();class Ov{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Pv=new Ov("12.2.13");class kv{constructor(){}supports(n){return I1(n)}create(n){return new Z3(n)}}const G3=(t,n)=>n;class Z3{constructor(n){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=n||G3}forEachItem(n){let o;for(o=this._itHead;null!==o;o=o._next)n(o)}forEachOperation(n){let o=this._itHead,c=this._removalsHead,l=0,h=null;for(;o||c;){const b=!c||o&&o.currentIndex{b=this._trackByFn(l,E),null!==o&&Object.is(o.trackById,b)?(c&&(o=this._verifyReinsertion(o,E,b,l)),Object.is(o.item,E)||this._addIdentityChange(o,E)):(o=this._mismatch(o,E,b,l),c=!0),o=o._next,l++}),this.length=l;return this._truncate(o),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,o,c,l){let h;return null===n?h=this._itTail:(h=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null))?(Object.is(n.item,o)||this._addIdentityChange(n,o),this._reinsertAfter(n,h,l)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(c,l))?(Object.is(n.item,o)||this._addIdentityChange(n,o),this._moveAfter(n,h,l)):n=this._addAfter(new Y3(o,c),h,l),n}_verifyReinsertion(n,o,c,l){let h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);return null!==h?n=this._reinsertAfter(h,n._prev,l):n.currentIndex!=l&&(n.currentIndex=l,this._addToMoves(n,l)),n}_truncate(n){for(;null!==n;){const o=n._next;this._addToRemovals(this._unlink(n)),n=o}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(n,o,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const l=n._prevRemoved,h=n._nextRemoved;return null===l?this._removalsHead=h:l._nextRemoved=h,null===h?this._removalsTail=l:h._prevRemoved=l,this._insertAfter(n,o,c),this._addToMoves(n,c),n}_moveAfter(n,o,c){return this._unlink(n),this._insertAfter(n,o,c),this._addToMoves(n,c),n}_addAfter(n,o,c){return this._insertAfter(n,o,c),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,o,c){const l=null===o?this._itHead:o._next;return n._next=l,n._prev=o,null===l?this._itTail=n:l._prev=n,null===o?this._itHead=n:o._next=n,null===this._linkedRecords&&(this._linkedRecords=new Fv),this._linkedRecords.put(n),n.currentIndex=c,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const o=n._prev,c=n._next;return null===o?this._itHead=c:o._next=c,null===c?this._itTail=o:c._prev=o,n}_addToMoves(n,o){return n.previousIndex===o||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fv),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,o){return n.item=o,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Y3{constructor(n,o){this.item=n,this.trackById=o,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 q3{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,o){let c;for(c=this._head;null!==c;c=c._nextDup)if((null===o||o<=c.currentIndex)&&Object.is(c.trackById,n))return c;return null}remove(n){const o=n._prevDup,c=n._nextDup;return null===o?this._head=c:o._nextDup=c,null===c?this._tail=o:c._prevDup=o,null===this._head}}class Fv{constructor(){this.map=new Map}put(n){const o=n.trackById;let c=this.map.get(o);c||(c=new q3,this.map.set(o,c)),c.add(n)}get(n,o){const l=this.map.get(n);return l?l.get(n,o):null}remove(n){const o=n.trackById;return this.map.get(o).remove(n)&&this.map.delete(o),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function es(t,n,o){const c=t.previousIndex;if(null===c)return c;let l=0;return o&&c{if(o&&o.key===l)this._maybeAddToChanges(o,c),this._appendAfter=o,o=o._next;else{const h=this._getOrCreateRecordForKey(l,c);o=this._insertBeforeOrAppend(o,h)}}),o){o._prev&&(o._prev._next=null),this._removalsHead=o;for(let c=o;null!==c;c=c._nextRemoved)c===this._mapHead&&(this._mapHead=null),this._records.delete(c.key),c._nextRemoved=c._next,c.previousValue=c.currentValue,c.currentValue=null,c._prev=null,c._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,o){if(n){const c=n._prev;return o._next=n,o._prev=c,n._prev=o,c&&(c._next=o),n===this._mapHead&&(this._mapHead=o),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=o,o._prev=this._appendAfter):this._mapHead=o,this._appendAfter=o,null}_getOrCreateRecordForKey(n,o){if(this._records.has(n)){const l=this._records.get(n);this._maybeAddToChanges(l,o);const h=l._prev,b=l._next;return h&&(h._next=b),b&&(b._prev=h),l._next=null,l._prev=null,l}const c=new K3(n);return this._records.set(n,c),c.currentValue=o,this._addToAdditions(c),c}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,o){Object.is(o,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=o,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,o){n instanceof Map?n.forEach(o):Object.keys(n).forEach(c=>o(n[c],c))}}class K3{constructor(n){this.key=n,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 Nv(){return new X0([new kv])}let X0=(()=>{class t{constructor(o){this.factories=o}static create(o,c){if(null!=c){const l=c.factories.slice();o=o.concat(l)}return new t(o)}static extend(o){return{provide:t,useFactory:c=>t.create(o,c||Nv()),deps:[[t,new Wa,new Ts]]}}find(o){const c=this.factories.find(l=>l.supports(o));if(null!=c)return c;throw new Error(`Cannot find a differ supporting object '${o}' of type '${function(t){return t.name||typeof t}(o)}'`)}}return t.\u0275prov=Ae({token:t,providedIn:"root",factory:Nv}),t})();function Vv(){return new J0([new Rv])}let J0=(()=>{class t{constructor(o){this.factories=o}static create(o,c){if(c){const l=c.factories.slice();o=o.concat(l)}return new t(o)}static extend(o){return{provide:t,useFactory:c=>t.create(o,c||Vv()),deps:[[t,new Wa,new Ts]]}}find(o){const c=this.factories.find(l=>l.supports(o));if(c)return c;throw new Error(`Cannot find a differ supporting object '${o}'`)}}return t.\u0275prov=Ae({token:t,providedIn:"root",factory:Vv}),t})();function Q0(t,n,o,c,l=!1){for(;null!==o;){const h=n[o.index];if(null!==h&&c.push(R(h)),Ft(h))for(let E=10;E-1&&(Oh(n,c),sc(o,c))}this._attachedToViewContainer=!1}ap(this._lView[1],this._lView)}onDestroy(n){Tl(this._lView[1],this._lView,null,n)}markForCheck(){t0(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){vp(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,n,o){js(!0);try{vp(t,n,o)}finally{js(!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 n;this._appRef=null,kc(this._lView[1],n=this._lView,n[11],2,null,null)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=n}}class J3 extends Lp{constructor(n){super(n),this._view=n}detectChanges(){Mu(this._view)}checkNoChanges(){!function(t){js(!0);try{Mu(t)}finally{js(!1)}}(this._view)}get context(){return null}}const ey=function(t){return function(t,n,o){if(xn(t)&&!o){const c=Un(t.index,n);return new Lp(c,c)}return 47&t.type?new Lp(n[16],n):null}(ho(),Wt(),16==(16&t))};let ty=(()=>{class t{}return t.__NG_ELEMENT_ID__=ey,t})();const em=[new Rv],ry=new X0([new kv]),oy=new J0(em),ay=function(){return H1(ho(),Wt())};let Vp=(()=>{class t{}return t.__NG_ELEMENT_ID__=ay,t})();const cy=Vp,ly=class extends cy{constructor(n,o,c){super(),this._declarationLView=n,this._declarationTContainer=o,this.elementRef=c}createEmbeddedView(n){const o=this._declarationTContainer.tViews,c=vt(this._declarationLView,o,n,16,null,o.declTNode,null,null,null,null);c[17]=this._declarationLView[this._declarationTContainer.index];const h=this._declarationLView[19];return null!==h&&(c[19]=h.createEmbeddedView(o)),hn(o,c,n),new Lp(c)}};function H1(t,n){return 4&t.type?new ly(n,t,Vf(t,n)):null}class j1{}class Hv{}const dy=function(){return $v(ho(),Wt())};let Rg=(()=>{class t{}return t.__NG_ELEMENT_ID__=dy,t})();const Lg=Rg,Ng=class extends Lg{constructor(n,o,c){super(),this._lContainer=n,this._hostTNode=o,this._hostLView=c}get element(){return Vf(this._hostTNode,this._hostLView)}get injector(){return new is(this._hostTNode,this._hostLView)}get parentInjector(){const n=Ee(this._hostTNode,this._hostLView);if(ll(n)){const o=Wn(n,this._hostLView),c=Cc(n);return new is(o[1].data[c+8],o)}return new is(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const o=Uv(this._lContainer);return null!==o&&o[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,o,c){const l=n.createEmbeddedView(o||{});return this.insert(l,c),l}createComponent(n,o,c,l,h){const b=c||this.parentInjector;if(!h&&null==n.ngModule&&b){const B=b.get(j1,null);B&&(h=B)}const E=n.create(b,l,void 0,h);return this.insert(E.hostView,o),E}insert(n,o){const c=n._lView,l=c[1];if(Ft(c[3])){const ce=this.indexOf(n);if(-1!==ce)this.detach(ce);else{const Te=c[3],ke=new Ng(Te,Te[6],Te[3]);ke.detach(ke.indexOf(n))}}const h=this._adjustIndex(o),b=this._lContainer;!function(t,n,o,c){const l=10+c,h=o.length;c>0&&(o[l-1][4]=n),ca1});class R4 extends Lf{constructor(n,o){super(),this.componentDef=n,this.ngModule=o,this.componentType=n.type,this.selector=n.selectors.map(bu).join(","),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!o}get inputs(){return F4(this.componentDef.inputs)}get outputs(){return F4(this.componentDef.outputs)}create(n,o,c,l){const h=(l=l||this.ngModule)?function(t,n){return{get:(o,c,l)=>{const h=t.get(o,Gh,l);return h!==Gh||c===Gh?h:n.get(o,c,l)}}}(n,l.injector):n,b=h.get(K0,ie),E=h.get(kg,null),B=b.createRenderer(null,this.componentDef),ee=this.componentDef.selectors[0][0]||"div",ce=c?function(t,n,o){if(W(t))return t.selectRootElement(n,o===Nt.ShadowDom);let c="string"==typeof n?t.querySelector(n):n;return c.textContent="",c}(B,c,this.componentDef.encapsulation):uf(b.createRenderer(null,this.componentDef),ee,function(t){const n=t.toLowerCase();return"svg"===n?Wi:"math"===n?"http://www.w3.org/1998/MathML/":null}(ee)),Te=this.componentDef.onPush?576:528,ke=function(t,n){return{components:[],scheduler:t||a1,clean:p2,playerHandler:n||null,flags:0}}(),Ye=Ql(0,null,null,1,0,null,null,null,null,null),st=vt(null,Ye,ke,Te,null,null,b,B,E,h);let It,yt;Re(st);try{const fn=function(t,n,o,c,l,h){const b=o[1];o[20]=t;const B=Lt(b,20,2,"#host",null),ee=B.mergedAttrs=n.hostAttrs;null!==ee&&(Df(B,ee,!0),null!==t&&($s(l,t,ee),null!==B.classes&&Jc(l,t,B.classes),null!==B.styles&&Ph(l,t,B.styles)));const ce=c.createRenderer(t,n),Te=vt(o,Rc(n),null,n.onPush?64:16,o[20],B,c,ce,h||null,null);return b.firstCreatePass&&(Le(F(B,o),b,n.type),Po(b,B),_m(B,o.length,1)),gp(o,Te),o[20]=Te}(ce,this.componentDef,st,b,B);if(ce)if(c)$s(B,ce,["ng-version",Pv.full]);else{const{attrs:Ut,classes:di}=function(t){const n=[],o=[];let c=1,l=2;for(;c0&&Jc(B,ce,di.join(" "))}if(yt=Qn(Ye,20),void 0!==o){const Ut=yt.projection=[];for(let di=0;diB(b,n)),n.contentQueries){const B=ho();n.contentQueries(1,b,B.directiveStart)}const E=ho();return!h.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(xt(E.index),qp(o[1],E,0,E.directiveStart,E.directiveEnd,n),Kp(n,b)),b}(fn,this.componentDef,st,ke,[x2]),hn(Ye,st,null)}finally{Pr()}return new Tb(this.componentType,It,Vf(yt,st),st,yt)}}class Tb extends class{}{constructor(n,o,c,l,h){super(),this.location=c,this._rootLView=l,this._tNode=h,this.instance=o,this.hostView=this.changeDetectorRef=new J3(l),this.componentType=n}get injector(){return new is(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}const sm=new Map;class Ob extends j1{constructor(n,o){super(),this._parent=o,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new k4(this);const c=yr(n),l=n[xo]||null;l&&ov(l),this._bootstrapComponents=fc(c.bootstrap),this._r3Injector=c0(n,o,[{provide:j1,useValue:this},{provide:B1,useValue:this.componentFactoryResolver}],I(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,o=Uo.THROW_IF_NOT_FOUND,c=Mn.Default){return n===Uo||n===j1||n===Nh?this:this._r3Injector.get(n,o,c)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(o=>o()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Oy extends Hv{constructor(n){super(),this.moduleType=n,null!==yr(n)&&function(t){const n=new Set;!function o(c){const l=yr(c,!0),h=l.id;null!==h&&(function(t,n,o){if(n&&n!==o)throw new Error(`Duplicate module registered for ${t} - ${I(n)} vs ${I(n.name)}`)}(h,sm.get(h),c),sm.set(h,c));const b=fc(l.imports);for(const E of b)n.has(E)||(n.add(E),o(E))}(t)}(n)}create(n){return new Ob(this.moduleType,n)}}function V4(t,n,o,c){return H4(Wt(),Br(),t,n,o,c)}function B4(t,n,o,c,l){return j4(Wt(),Br(),t,n,o,c,l)}function Zg(t,n){const o=t[n];return o===Hi?void 0:o}function H4(t,n,o,c,l,h){const b=n+o;return pa(t,b,l)?Tu(t,b+1,h?c.call(h,l):c(l)):Zg(t,b+1)}function j4(t,n,o,c,l,h,b){const E=n+o;return Iu(t,E,l,h)?Tu(t,E+2,b?c.call(b,l,h):c(l,h)):Zg(t,E+2)}function W4(t,n){const o=Vi();let c;const l=t+20;o.firstCreatePass?(c=function(t,n){if(n)for(let o=n.length-1;o>=0;o--){const c=n[o];if(t===c.name)return c}throw new Ie("302",`The pipe '${t}' could not be found!`)}(n,o.pipeRegistry),o.data[l]=c,c.onDestroy&&(o.destroyHooks||(o.destroyHooks=[])).push(l,c.onDestroy)):c=o.data[l];const h=c.factory||(c.factory=bn(c.type)),b=fr(k0);try{const E=ul(!1),B=h();return ul(E),function(t,n,o,c){o>=t.data.length&&(t.data[o]=null,t.blueprint[o]=null),n[o]=c}(o,Wt(),l,B),B}finally{fr(b)}}function G4(t,n,o){const c=t+20,l=Wt(),h=hi(l,c);return qg(l,Yg(l,c)?H4(l,Br(),n,h.transform,o,h):h.transform(o))}function Z4(t,n,o,c){const l=t+20,h=Wt(),b=hi(h,l);return qg(h,Yg(h,l)?j4(h,Br(),n,b.transform,o,c,b):b.transform(o,c))}function Yg(t,n){return t[1].data[n].pure}function qg(t,n){return Al.isWrapped(n)&&(n=Al.unwrap(n),t[vs()]=Hi),n}function Py(t){return n=>{setTimeout(t,void 0,n)}}const Zh=class extends m.xQ{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,o,c){var l,h,b;let E=n,B=o||(()=>null),ee=c;if(n&&"object"==typeof n){const Te=n;E=null===(l=Te.next)||void 0===l?void 0:l.bind(Te),B=null===(h=Te.error)||void 0===h?void 0:h.bind(Te),ee=null===(b=Te.complete)||void 0===b?void 0:b.bind(Te)}this.__isAsync&&(B=Py(B),E&&(E=Py(E)),ee&&(ee=Py(ee)));const ce=super.subscribe({next:E,error:B,complete:ee});return n instanceof i.w&&n.add(ce),ce}};function Wb(){return this._results[ed()]()}class i_{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const o=ed(),c=i_.prototype;c[o]||(c[o]=Wb)}get changes(){return this._changes||(this._changes=new Zh)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,o){return this._results.reduce(n,o)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,o){const c=this;c.dirty=!1;const l=Ua(n);(this._changesDetected=!function(t,n,o){if(t.length!==n.length)return!1;for(let c=0;c0)c.push(b[E/2]);else{const ee=h[E+1],ce=n[-B];for(let Te=10;Te({bindingPropertyName:t})),_w=za("Output",t=>({bindingPropertyName:t})),yw=za("HostListener",(t,n)=>({eventName:t,args:n})),Uy=new Jo("Application Initializer");let cm=(()=>{class t{constructor(o){this.appInits=o,this.resolve=Xd,this.reject=Xd,this.initialized=!1,this.done=!1,this.donePromise=new Promise((c,l)=>{this.resolve=c,this.reject=l})}runInitializers(){if(this.initialized)return;const o=[],c=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let l=0;l{h.subscribe({complete:E,error:B})});o.push(b)}}Promise.all(o).then(()=>{c()}).catch(l=>{this.reject(l)}),0===o.length&&c(),this.initialized=!0}}return t.\u0275fac=function(o){return new(o||t)(Tr(Uy,8))},t.\u0275prov=Ae({token:t,factory:t.\u0275fac}),t})();const w6=new Jo("AppId"),Iw={provide:w6,useFactory:function(){return`${$y()}${$y()}${$y()}`},deps:[]};function $y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const C6=new Jo("Platform Initializer"),E6=new Jo("Platform ID"),S6=new Jo("appBootstrapListener");let M6=(()=>{class t{log(o){console.log(o)}warn(o){console.warn(o)}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Ae({token:t,factory:t.\u0275fac}),t})();const s_=new Jo("LocaleId"),x6=new Jo("DefaultCurrencyCode");class Ow{constructor(n,o){this.ngModuleFactory=n,this.componentFactories=o}}const Wy=function(t){return new Oy(t)},Pw=Wy,kw=function(t){return Promise.resolve(Wy(t))},D6=function(t){const n=Wy(t),c=fc(yr(t).declarations).reduce((l,h)=>{const b=Xi(h);return b&&l.push(new R4(b)),l},[]);return new Ow(n,c)},Fw=D6,Rw=function(t){return Promise.resolve(D6(t))};let Xg=(()=>{class t{constructor(){this.compileModuleSync=Pw,this.compileModuleAsync=kw,this.compileModuleAndAllComponentsSync=Fw,this.compileModuleAndAllComponentsAsync=Rw}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Ae({token:t,factory:t.\u0275fac}),t})();const Vw=(()=>Promise.resolve(0))();function Gy(t){"undefined"==typeof Zone?Vw.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ku{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:c=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Zh(!1),this.onMicrotaskEmpty=new Zh(!1),this.onStable=new Zh(!1),this.onError=new Zh(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!c&&o,l.shouldCoalesceRunChangeDetection=c,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function(){let t=Ln.requestAnimationFrame,n=Ln.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const c=n[Zone.__symbol__("OriginalDelegate")];c&&(n=c)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function(t){const n=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ln,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Yy(t),t.isCheckStableRunning=!0,Zy(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Yy(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(o,c,l,h,b,E)=>{try{return T6(t),o.invokeTask(l,h,b,E)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===h.type||t.shouldCoalesceRunChangeDetection)&&n(),I6(t)}},onInvoke:(o,c,l,h,b,E,B)=>{try{return T6(t),o.invoke(l,h,b,E,B)}finally{t.shouldCoalesceRunChangeDetection&&n(),I6(t)}},onHasTask:(o,c,l,h)=>{o.hasTask(l,h),c===l&&("microTask"==h.change?(t._hasPendingMicrotasks=h.microTask,Yy(t),Zy(t)):"macroTask"==h.change&&(t.hasPendingMacrotasks=h.macroTask))},onHandleError:(o,c,l,h)=>(o.handleError(l,h),t.runOutsideAngular(()=>t.onError.emit(h)),!1)})}(l)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ku.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ku.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,o,c){return this._inner.run(n,o,c)}runTask(n,o,c,l){const h=this._inner,b=h.scheduleEventTask("NgZoneEvent: "+l,n,Hw,Xd,Xd);try{return h.runTask(b,o,c)}finally{h.cancelTask(b)}}runGuarded(n,o,c){return this._inner.runGuarded(n,o,c)}runOutsideAngular(n){return this._outer.run(n)}}const Hw={};function Zy(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Yy(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function T6(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function I6(t){t._nesting--,Zy(t)}class Uw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Zh,this.onMicrotaskEmpty=new Zh,this.onStable=new Zh,this.onError=new Zh}run(n,o,c){return n.apply(o,c)}runGuarded(n,o,c){return n.apply(o,c)}runOutsideAngular(n){return n()}runTask(n,o,c,l){return n.apply(o,c)}}let A6=(()=>{class t{constructor(o){this._ngZone=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),o.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:()=>{ku.assertNotInAngularZone(),Gy(()=>{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())Gy(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb(this._didWork)}this._didWork=!1});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(c=>!c.updateCb||!c.updateCb(o)||(clearTimeout(c.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,c,l){let h=-1;c&&c>0&&(h=setTimeout(()=>{this._callbacks=this._callbacks.filter(b=>b.timeoutId!==h),o(this._didWork,this.getPendingTasks())},c)),this._callbacks.push({doneCb:o,timeoutId:h,updateCb:l})}whenStable(o,c,l){if(l&&!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(o,c,l),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(o,c,l){return[]}}return t.\u0275fac=function(o){return new(o||t)(Tr(ku))},t.\u0275prov=Ae({token:t,factory:t.\u0275fac}),t})(),O6=(()=>{class t{constructor(){this._applications=new Map,qy.addToWindow(this)}registerApplication(o,c){this._applications.set(o,c)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,c=!0){return qy.findTestabilityInTree(this,o,c)}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Ae({token:t,factory:t.\u0275fac}),t})();class $w{addToWindow(n){}findTestabilityInTree(n,o,c){return null}}function Ww(t){qy=t}let qy=new $w,P6=!0,k6=!1;function Gw(){if(k6)throw new Error("Cannot enable prod mode after platform setup.");P6=!1}let eh;const R6=new Jo("AllowMultipleToken");class Qw{constructor(n,o){this.name=n,this.token=o}}function L6(t,n,o=[]){const c=`Platform: ${n}`,l=new Jo(c);return(h=[])=>{let b=N6();if(!b||b.injector.get(R6,!1))if(t)t(o.concat(h).concat({provide:l,useValue:!0}));else{const E=o.concat(h).concat({provide:l,useValue:!0},{provide:M1,useValue:"platform"});!function(t){if(eh&&!eh.destroyed&&!eh.injector.get(R6,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");eh=t.get(V6);const n=t.get(C6,null);n&&n.forEach(o=>o())}(Uo.create({providers:E,name:c}))}return function(t){const n=N6();if(!n)throw new Error("No platform exists!");if(!n.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return n}(l)}}function N6(){return eh&&!eh.destroyed?eh:null}let V6=(()=>{class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,c){const E=function(t,n){let o;return o="noop"===t?new Uw:("zone.js"===t?void 0:t)||new ku({enableLongStackTrace:(k6=!0,P6),shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),o}(c?c.ngZone:void 0,{ngZoneEventCoalescing:c&&c.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:c&&c.ngZoneRunCoalescing||!1}),B=[{provide:ku,useValue:E}];return E.run(()=>{const ee=Uo.create({providers:B,parent:this.injector,name:o.moduleType.name}),ce=o.create(ee),Te=ce.injector.get(Ys,null);if(!Te)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return E.runOutsideAngular(()=>{const ke=E.onError.subscribe({next:Ye=>{Te.handleError(Ye)}});ce.onDestroy(()=>{Ky(this._modules,ce),ke.unsubscribe()})}),function(t,n,o){try{const c=o();return ig(c)?c.catch(l=>{throw n.runOutsideAngular(()=>t.handleError(l)),l}):c}catch(c){throw n.runOutsideAngular(()=>t.handleError(c)),c}}(Te,E,()=>{const ke=ce.injector.get(cm);return ke.runInitializers(),ke.donePromise.then(()=>(ov(ce.injector.get(s_,vg)||vg),this._moduleDoBootstrap(ce),ce))})})}bootstrapModule(o,c=[]){const l=B6({},c);return function(t,n,o){const c=new Oy(o);return Promise.resolve(c)}(0,0,o).then(h=>this.bootstrapModuleFactory(h,l))}_moduleDoBootstrap(o){const c=o.injector.get(Jg);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(l=>c.bootstrap(l));else{if(!o.instance.ngDoBootstrap)throw new Error(`The module ${I(o.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);o.instance.ngDoBootstrap(c)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(o){return new(o||t)(Tr(Uo))},t.\u0275prov=Ae({token:t,factory:t.\u0275fac}),t})();function B6(t,n){return Array.isArray(n)?n.reduce(B6,t):Object.assign(Object.assign({},t),n)}let Jg=(()=>{class t{constructor(o,c,l,h,b){this._zone=o,this._injector=c,this._exceptionHandler=l,this._componentFactoryResolver=h,this._initStatus=b,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 E=new q.y(ee=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ee.next(this._stable),ee.complete()})}),B=new q.y(ee=>{let ce;this._zone.runOutsideAngular(()=>{ce=this._zone.onStable.subscribe(()=>{ku.assertNotInAngularZone(),Gy(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ee.next(!0))})})});const Te=this._zone.onUnstable.subscribe(()=>{ku.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ee.next(!1)}))});return()=>{ce.unsubscribe(),Te.unsubscribe()}});this.isStable=(0,D.T)(E,B.pipe((0,O.B)()))}bootstrap(o,c){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 l;l=o instanceof Lf?o:this._componentFactoryResolver.resolveComponentFactory(o),this.componentTypes.push(l.componentType);const h=function(t){return t.isBoundToModule}(l)?void 0:this._injector.get(j1),E=l.create(Uo.NULL,[],c||l.selector,h),B=E.location.nativeElement,ee=E.injector.get(A6,null),ce=ee&&E.injector.get(O6);return ee&&ce&&ce.registerApplication(B,ee),E.onDestroy(()=>{this.detachView(E.hostView),Ky(this.components,E),ce&&ce.unregisterApplication(B)}),this._loadComponent(E),E}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let o of this._views)o.detectChanges()}catch(o){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(o))}finally{this._runningTick=!1}}attachView(o){const c=o;this._views.push(c),c.attachToAppRef(this)}detachView(o){const c=o;Ky(this._views,c),c.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o),this._injector.get(S6,[]).concat(this._bootstrapListeners).forEach(l=>l(o))}ngOnDestroy(){this._views.slice().forEach(o=>o.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(o){return new(o||t)(Tr(ku),Tr(Uo),Tr(Ys),Tr(B1),Tr(cm))},t.\u0275prov=Ae({token:t,factory:t.\u0275fac}),t})();function Ky(t,n){const o=t.indexOf(n);o>-1&&t.splice(o,1)}class o7{}class a7{}const c7={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let l7=(()=>{class t{constructor(o,c){this._compiler=o,this._config=c||c7}load(o){return this.loadAndCompile(o)}loadAndCompile(o){let[c,l]=o.split("#");return void 0===l&&(l="default"),g(6127)(c).then(h=>h[l]).then(h=>U6(h,c,l)).then(h=>this._compiler.compileModuleAsync(h))}loadFactory(o){let[c,l]=o.split("#"),h="NgFactory";return void 0===l&&(l="default",h=""),g(6127)(this._config.factoryPathPrefix+c+this._config.factoryPathSuffix).then(b=>b[l+h]).then(b=>U6(b,c,l))}}return t.\u0275fac=function(o){return new(o||t)(Tr(Xg),Tr(a7,8))},t.\u0275prov=Ae({token:t,factory:t.\u0275fac}),t})();function U6(t,n,o){if(!t)throw new Error(`Cannot find '${o}' in '${n}'`);return t}const v7=function(t){return null},y7=L6(null,"core",[{provide:E6,useValue:"unknown"},{provide:V6,deps:[Uo]},{provide:O6,deps:[]},{provide:M6,deps:[]}]),S7=[{provide:Jg,useClass:Jg,deps:[ku,Uo,Ys,B1,cm]},{provide:Mb,deps:[ku],useFactory:function(t){let n=[];return t.onStable.subscribe(()=>{for(;n.length;)n.pop()()}),function(o){n.push(o)}}},{provide:cm,useClass:cm,deps:[[new Ts,Uy]]},{provide:Xg,useClass:Xg,deps:[]},Iw,{provide:X0,useFactory:function(){return ry},deps:[]},{provide:J0,useFactory:function(){return oy},deps:[]},{provide:s_,useFactory:function(t){return ov(t=t||"undefined"!=typeof $localize&&$localize.locale||vg),t},deps:[[new cu(s_),new Ts,new Wa]]},{provide:x6,useValue:"USD"}];let x7=(()=>{class t{constructor(o){}}return t.\u0275fac=function(o){return new(o||t)(Tr(Jg))},t.\u0275mod=ts({type:t}),t.\u0275inj=Ct({providers:S7}),t})()},4751:(ge,G,g)=>{"use strict";g.d(G,{ve:()=>X,Fj:()=>de,qu:()=>_e,NI:()=>ai,u:()=>Va,cw:()=>Mi,sg:()=>Pn,u5:()=>Gi,Cf:()=>Ce,JU:()=>I,a5:()=>ir,JJ:()=>cn,JL:()=>Mn,F:()=>Ri,On:()=>Ar,UX:()=>pi,kI:()=>Pe,_Y:()=>$i});var m=g(4788),i=g(2057),q=g(4402),D=g(5758),O=g(8002);let P=(()=>{class k{constructor(V,le){this._renderer=V,this._elementRef=le,this.onChange=ot=>{},this.onTouched=()=>{}}setProperty(V,le){this._renderer.setProperty(this._elementRef.nativeElement,V,le)}registerOnTouched(V){this.onTouched=V}registerOnChange(V){this.onChange=V}setDisabledState(V){this.setProperty("disabled",V)}}return k.\u0275fac=function(V){return new(V||k)(m.Y36(m.Qsj),m.Y36(m.SBq))},k.\u0275dir=m.lG2({type:k}),k})(),$=(()=>{class k extends P{}return k.\u0275fac=function(){let R;return function(le){return(R||(R=m.n5z(k)))(le||k)}}(),k.\u0275dir=m.lG2({type:k,features:[m.qOj]}),k})();const I=new m.OlP("NgValueAccessor"),H={provide:I,useExisting:(0,m.Gpc)(()=>de),multi:!0},X=new m.OlP("CompositionEventMode");let de=(()=>{class k extends P{constructor(V,le,ot){super(V,le),this._compositionMode=ot,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const k=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(k.toLowerCase())}())}writeValue(V){this.setProperty("value",null==V?"":V)}_handleInput(V){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(V)}_compositionStart(){this._composing=!0}_compositionEnd(V){this._composing=!1,this._compositionMode&&this.onChange(V)}}return k.\u0275fac=function(V){return new(V||k)(m.Y36(m.Qsj),m.Y36(m.SBq),m.Y36(X,8))},k.\u0275dir=m.lG2({type:k,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(V,le){1&V&&m.NdJ("input",function($t){return le._handleInput($t.target.value)})("blur",function(){return le.onTouched()})("compositionstart",function(){return le._compositionStart()})("compositionend",function($t){return le._compositionEnd($t.target.value)})},features:[m._Bn([H]),m.qOj]}),k})();function Ie(k){return null==k||0===k.length}function ue(k){return null!=k&&"number"==typeof k.length}const Ce=new m.OlP("NgValidators"),ve=new m.OlP("NgAsyncValidators"),De=/^(?=.{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 Pe{static min(R){return k=R,R=>{if(Ie(R.value)||Ie(k))return null;const V=parseFloat(R.value);return!isNaN(V)&&V{if(Ie(R.value)||Ie(k))return null;const V=parseFloat(R.value);return!isNaN(V)&&V>k?{max:{max:k,actual:R.value}}:null};var k}static required(R){return Ie(R.value)?{required:!0}:null}static requiredTrue(R){return!0===R.value?null:{required:!0}}static email(R){return Ie((k=R).value)||De.test(k.value)?null:{email:!0};var k}static minLength(R){return k=R,R=>Ie(R.value)||!ue(R.value)?null:R.value.lengthue(R.value)&&R.value.length>k?{maxlength:{requiredLength:k,actualLength:R.value.length}}:null;var k}static pattern(R){return function(k){if(!k)return He;let R,V;return"string"==typeof k?(V="","^"!==k.charAt(0)&&(V+="^"),V+=k,"$"!==k.charAt(k.length-1)&&(V+="$"),R=new RegExp(V)):(V=k.toString(),R=k),le=>{if(Ie(le.value))return null;const ot=le.value;return R.test(ot)?null:{pattern:{requiredPattern:V,actualValue:ot}}}}(R)}static nullValidator(R){return null}static compose(R){return ht(R)}static composeAsync(R){return Xe(R)}}function He(k){return null}function Ve(k){return null!=k}function Qe(k){const R=(0,m.QGY)(k)?(0,q.D)(k):k;return(0,m.CqO)(R),R}function nt(k){let R={};return k.forEach(V=>{R=null!=V?Object.assign(Object.assign({},R),V):R}),0===Object.keys(R).length?null:R}function Ht(k,R){return R.map(V=>V(k))}function wt(k){return k.map(R=>function(k){return!k.validate}(R)?R:V=>R.validate(V))}function ht(k){if(!k)return null;const R=k.filter(Ve);return 0==R.length?null:function(V){return nt(Ht(V,R))}}function ft(k){return null!=k?ht(wt(k)):null}function Xe(k){if(!k)return null;const R=k.filter(Ve);return 0==R.length?null:function(V){const le=Ht(V,R).map(Qe);return(0,D.D)(le).pipe((0,O.U)(nt))}}function Ne(k){return null!=k?Xe(wt(k)):null}function Be(k,R){return null===k?[R]:Array.isArray(k)?[...k,R]:[k,R]}function Se(k){return k._rawValidators}function Ae(k){return k._rawAsyncValidators}function Ge(k){return k?Array.isArray(k)?k:[k]:[]}function Ct(k,R){return Array.isArray(k)?k.includes(R):k===R}function Rt(k,R){const V=Ge(R);return Ge(k).forEach(ot=>{Ct(V,ot)||V.push(ot)}),V}function Sn(k,R){return Ge(R).filter(V=>!Ct(k,V))}let Tn=(()=>{class k{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(V){this._rawValidators=V||[],this._composedValidatorFn=ft(this._rawValidators)}_setAsyncValidators(V){this._rawAsyncValidators=V||[],this._composedAsyncValidatorFn=Ne(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(V){this._onDestroyCallbacks.push(V)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(V=>V()),this._onDestroyCallbacks=[]}reset(V){this.control&&this.control.reset(V)}hasError(V,le){return!!this.control&&this.control.hasError(V,le)}getError(V,le){return this.control?this.control.getError(V,le):null}}return k.\u0275fac=function(V){return new(V||k)},k.\u0275dir=m.lG2({type:k}),k})(),Hn=(()=>{class k extends Tn{get formDirective(){return null}get path(){return null}}return k.\u0275fac=function(){let R;return function(le){return(R||(R=m.n5z(k)))(le||k)}}(),k.\u0275dir=m.lG2({type:k,features:[m.qOj]}),k})();class ir extends Tn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ei{constructor(R){this._cd=R}is(R){var V,le,ot;return"submitted"===R?!!(null===(V=this._cd)||void 0===V?void 0:V.submitted):!!(null===(ot=null===(le=this._cd)||void 0===le?void 0:le.control)||void 0===ot?void 0:ot[R])}}let cn=(()=>{class k extends Ei{constructor(V){super(V)}}return k.\u0275fac=function(V){return new(V||k)(m.Y36(ir,2))},k.\u0275dir=m.lG2({type:k,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(V,le){2&V&&m.ekj("ng-untouched",le.is("untouched"))("ng-touched",le.is("touched"))("ng-pristine",le.is("pristine"))("ng-dirty",le.is("dirty"))("ng-valid",le.is("valid"))("ng-invalid",le.is("invalid"))("ng-pending",le.is("pending"))},features:[m.qOj]}),k})(),Mn=(()=>{class k extends Ei{constructor(V){super(V)}}return k.\u0275fac=function(V){return new(V||k)(m.Y36(Hn,10))},k.\u0275dir=m.lG2({type:k,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(V,le){2&V&&m.ekj("ng-untouched",le.is("untouched"))("ng-touched",le.is("touched"))("ng-pristine",le.is("pristine"))("ng-dirty",le.is("dirty"))("ng-valid",le.is("valid"))("ng-invalid",le.is("invalid"))("ng-pending",le.is("pending"))("ng-submitted",le.is("submitted"))},features:[m.qOj]}),k})();function ki(k,R){return[...R.path,k]}function Ui(k,R){Zn(k,R),R.valueAccessor.writeValue(k.value),function(k,R){R.valueAccessor.registerOnChange(V=>{k._pendingValue=V,k._pendingChange=!0,k._pendingDirty=!0,"change"===k.updateOn&&lr(k,R)})}(k,R),function(k,R){const V=(le,ot)=>{R.valueAccessor.writeValue(le),ot&&R.viewToModelUpdate(le)};k.registerOnChange(V),R._registerOnDestroy(()=>{k._unregisterOnChange(V)})}(k,R),function(k,R){R.valueAccessor.registerOnTouched(()=>{k._pendingTouched=!0,"blur"===k.updateOn&&k._pendingChange&&lr(k,R),"submit"!==k.updateOn&&k.markAsTouched()})}(k,R),function(k,R){if(R.valueAccessor.setDisabledState){const V=le=>{R.valueAccessor.setDisabledState(le)};k.registerOnDisabledChange(V),R._registerOnDestroy(()=>{k._unregisterOnDisabledChange(V)})}}(k,R)}function Ln(k,R,V=!0){const le=()=>{};R.valueAccessor&&(R.valueAccessor.registerOnChange(le),R.valueAccessor.registerOnTouched(le)),Xn(k,R),k&&(R._invokeOnDestroyCallbacks(),k._registerOnCollectionChange(()=>{}))}function Ii(k,R){k.forEach(V=>{V.registerOnValidatorChange&&V.registerOnValidatorChange(R)})}function Zn(k,R){const V=Se(k);null!==R.validator?k.setValidators(Be(V,R.validator)):"function"==typeof V&&k.setValidators([V]);const le=Ae(k);null!==R.asyncValidator?k.setAsyncValidators(Be(le,R.asyncValidator)):"function"==typeof le&&k.setAsyncValidators([le]);const ot=()=>k.updateValueAndValidity();Ii(R._rawValidators,ot),Ii(R._rawAsyncValidators,ot)}function Xn(k,R){let V=!1;if(null!==k){if(null!==R.validator){const ot=Se(k);if(Array.isArray(ot)&&ot.length>0){const $t=ot.filter(zn=>zn!==R.validator);$t.length!==ot.length&&(V=!0,k.setValidators($t))}}if(null!==R.asyncValidator){const ot=Ae(k);if(Array.isArray(ot)&&ot.length>0){const $t=ot.filter(zn=>zn!==R.asyncValidator);$t.length!==ot.length&&(V=!0,k.setAsyncValidators($t))}}}const le=()=>{};return Ii(R._rawValidators,le),Ii(R._rawAsyncValidators,le),V}function lr(k,R){k._pendingDirty&&k.markAsDirty(),k.setValue(k._pendingValue,{emitModelToViewChange:!1}),R.viewToModelUpdate(k._pendingValue),k._pendingChange=!1}function xo(k,R){Zn(k,R)}function Jn(k,R){if(!k.hasOwnProperty("model"))return!1;const V=k.model;return!!V.isFirstChange()||!Object.is(R,V.currentValue)}function Wo(k,R){k._syncPendingControls(),R.forEach(V=>{const le=V.control;"submit"===le.updateOn&&le._pendingChange&&(V.viewToModelUpdate(le._pendingValue),le._pendingChange=!1)})}function To(k,R){if(!R)return null;let V,le,ot;return Array.isArray(R),R.forEach($t=>{$t.constructor===de?V=$t:function(k){return Object.getPrototypeOf(k.constructor)===$}($t)?le=$t:ot=$t}),ot||le||V||null}function ks(k,R){const V=k.indexOf(R);V>-1&&k.splice(V,1)}const Si="VALID",un="INVALID",jr="PENDING",uo="DISABLED";function pr(k){return(mr(k)?k.validators:k)||null}function Lo(k){return Array.isArray(k)?ft(k):k||null}function yr(k,R){return(mr(R)?R.asyncValidators:k)||null}function Go(k){return Array.isArray(k)?Ne(k):k||null}function mr(k){return null!=k&&!Array.isArray(k)&&"object"==typeof k}class pn{constructor(R,V){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=R,this._rawAsyncValidators=V,this._composedValidatorFn=Lo(this._rawValidators),this._composedAsyncValidatorFn=Go(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(R){this._rawValidators=this._composedValidatorFn=R}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(R){this._rawAsyncValidators=this._composedAsyncValidatorFn=R}get parent(){return this._parent}get valid(){return this.status===Si}get invalid(){return this.status===un}get pending(){return this.status==jr}get disabled(){return this.status===uo}get enabled(){return this.status!==uo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(R){this._rawValidators=R,this._composedValidatorFn=Lo(R)}setAsyncValidators(R){this._rawAsyncValidators=R,this._composedAsyncValidatorFn=Go(R)}addValidators(R){this.setValidators(Rt(R,this._rawValidators))}addAsyncValidators(R){this.setAsyncValidators(Rt(R,this._rawAsyncValidators))}removeValidators(R){this.setValidators(Sn(R,this._rawValidators))}removeAsyncValidators(R){this.setAsyncValidators(Sn(R,this._rawAsyncValidators))}hasValidator(R){return Ct(this._rawValidators,R)}hasAsyncValidator(R){return Ct(this._rawAsyncValidators,R)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(R={}){this.touched=!0,this._parent&&!R.onlySelf&&this._parent.markAsTouched(R)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(R=>R.markAllAsTouched())}markAsUntouched(R={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(V=>{V.markAsUntouched({onlySelf:!0})}),this._parent&&!R.onlySelf&&this._parent._updateTouched(R)}markAsDirty(R={}){this.pristine=!1,this._parent&&!R.onlySelf&&this._parent.markAsDirty(R)}markAsPristine(R={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(V=>{V.markAsPristine({onlySelf:!0})}),this._parent&&!R.onlySelf&&this._parent._updatePristine(R)}markAsPending(R={}){this.status=jr,!1!==R.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!R.onlySelf&&this._parent.markAsPending(R)}disable(R={}){const V=this._parentMarkedDirty(R.onlySelf);this.status=uo,this.errors=null,this._forEachChild(le=>{le.disable(Object.assign(Object.assign({},R),{onlySelf:!0}))}),this._updateValue(),!1!==R.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},R),{skipPristineCheck:V})),this._onDisabledChange.forEach(le=>le(!0))}enable(R={}){const V=this._parentMarkedDirty(R.onlySelf);this.status=Si,this._forEachChild(le=>{le.enable(Object.assign(Object.assign({},R),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:R.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},R),{skipPristineCheck:V})),this._onDisabledChange.forEach(le=>le(!1))}_updateAncestors(R){this._parent&&!R.onlySelf&&(this._parent.updateValueAndValidity(R),R.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(R){this._parent=R}updateValueAndValidity(R={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Si||this.status===jr)&&this._runAsyncValidator(R.emitEvent)),!1!==R.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!R.onlySelf&&this._parent.updateValueAndValidity(R)}_updateTreeValidity(R={emitEvent:!0}){this._forEachChild(V=>V._updateTreeValidity(R)),this.updateValueAndValidity({onlySelf:!0,emitEvent:R.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?uo:Si}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(R){if(this.asyncValidator){this.status=jr,this._hasOwnPendingAsyncValidator=!0;const V=Qe(this.asyncValidator(this));this._asyncValidationSubscription=V.subscribe(le=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(le,{emitEvent:R})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(R,V={}){this.errors=R,this._updateControlsErrors(!1!==V.emitEvent)}get(R){return function(k,R,V){if(null==R||(Array.isArray(R)||(R=R.split(".")),Array.isArray(R)&&0===R.length))return null;let le=k;return R.forEach(ot=>{le=le instanceof Mi?le.controls.hasOwnProperty(ot)?le.controls[ot]:null:le instanceof ur&&le.at(ot)||null}),le}(this,R)}getError(R,V){const le=V?this.get(V):this;return le&&le.errors?le.errors[R]:null}hasError(R,V){return!!this.getError(R,V)}get root(){let R=this;for(;R._parent;)R=R._parent;return R}_updateControlsErrors(R){this.status=this._calculateStatus(),R&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(R)}_initObservables(){this.valueChanges=new m.vpe,this.statusChanges=new m.vpe}_calculateStatus(){return this._allControlsDisabled()?uo:this.errors?un:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jr)?jr:this._anyControlsHaveStatus(un)?un:Si}_anyControlsHaveStatus(R){return this._anyControls(V=>V.status===R)}_anyControlsDirty(){return this._anyControls(R=>R.dirty)}_anyControlsTouched(){return this._anyControls(R=>R.touched)}_updatePristine(R={}){this.pristine=!this._anyControlsDirty(),this._parent&&!R.onlySelf&&this._parent._updatePristine(R)}_updateTouched(R={}){this.touched=this._anyControlsTouched(),this._parent&&!R.onlySelf&&this._parent._updateTouched(R)}_isBoxedValue(R){return"object"==typeof R&&null!==R&&2===Object.keys(R).length&&"value"in R&&"disabled"in R}_registerOnCollectionChange(R){this._onCollectionChange=R}_setUpdateStrategy(R){mr(R)&&null!=R.updateOn&&(this._updateOn=R.updateOn)}_parentMarkedDirty(R){return!R&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ai extends pn{constructor(R=null,V,le){super(pr(V),yr(le,V)),this._onChange=[],this._applyFormState(R),this._setUpdateStrategy(V),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(R,V={}){this.value=this._pendingValue=R,this._onChange.length&&!1!==V.emitModelToViewChange&&this._onChange.forEach(le=>le(this.value,!1!==V.emitViewToModelChange)),this.updateValueAndValidity(V)}patchValue(R,V={}){this.setValue(R,V)}reset(R=null,V={}){this._applyFormState(R),this.markAsPristine(V),this.markAsUntouched(V),this.setValue(this.value,V),this._pendingChange=!1}_updateValue(){}_anyControls(R){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(R){this._onChange.push(R)}_unregisterOnChange(R){ks(this._onChange,R)}registerOnDisabledChange(R){this._onDisabledChange.push(R)}_unregisterOnDisabledChange(R){ks(this._onDisabledChange,R)}_forEachChild(R){}_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(R){this._isBoxedValue(R)?(this.value=this._pendingValue=R.value,R.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=R}}class Mi extends pn{constructor(R,V,le){super(pr(V),yr(le,V)),this.controls=R,this._initObservables(),this._setUpdateStrategy(V),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(R,V){return this.controls[R]?this.controls[R]:(this.controls[R]=V,V.setParent(this),V._registerOnCollectionChange(this._onCollectionChange),V)}addControl(R,V,le={}){this.registerControl(R,V),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}removeControl(R,V={}){this.controls[R]&&this.controls[R]._registerOnCollectionChange(()=>{}),delete this.controls[R],this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}setControl(R,V,le={}){this.controls[R]&&this.controls[R]._registerOnCollectionChange(()=>{}),delete this.controls[R],V&&this.registerControl(R,V),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}contains(R){return this.controls.hasOwnProperty(R)&&this.controls[R].enabled}setValue(R,V={}){this._checkAllValuesPresent(R),Object.keys(R).forEach(le=>{this._throwIfControlMissing(le),this.controls[le].setValue(R[le],{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V)}patchValue(R,V={}){null!=R&&(Object.keys(R).forEach(le=>{this.controls[le]&&this.controls[le].patchValue(R[le],{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V))}reset(R={},V={}){this._forEachChild((le,ot)=>{le.reset(R[ot],{onlySelf:!0,emitEvent:V.emitEvent})}),this._updatePristine(V),this._updateTouched(V),this.updateValueAndValidity(V)}getRawValue(){return this._reduceChildren({},(R,V,le)=>(R[le]=V instanceof ai?V.value:V.getRawValue(),R))}_syncPendingControls(){let R=this._reduceChildren(!1,(V,le)=>!!le._syncPendingControls()||V);return R&&this.updateValueAndValidity({onlySelf:!0}),R}_throwIfControlMissing(R){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[R])throw new Error(`Cannot find form control with name: ${R}.`)}_forEachChild(R){Object.keys(this.controls).forEach(V=>{const le=this.controls[V];le&&R(le,V)})}_setUpControls(){this._forEachChild(R=>{R.setParent(this),R._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(R){for(const V of Object.keys(this.controls)){const le=this.controls[V];if(this.contains(V)&&R(le))return!0}return!1}_reduceValue(){return this._reduceChildren({},(R,V,le)=>((V.enabled||this.disabled)&&(R[le]=V.value),R))}_reduceChildren(R,V){let le=R;return this._forEachChild((ot,$t)=>{le=V(le,ot,$t)}),le}_allControlsDisabled(){for(const R of Object.keys(this.controls))if(this.controls[R].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(R){this._forEachChild((V,le)=>{if(void 0===R[le])throw new Error(`Must supply a value for form control with name: '${le}'.`)})}}class ur extends pn{constructor(R,V,le){super(pr(V),yr(le,V)),this.controls=R,this._initObservables(),this._setUpdateStrategy(V),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(R){return this.controls[R]}push(R,V={}){this.controls.push(R),this._registerControl(R),this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}insert(R,V,le={}){this.controls.splice(R,0,V),this._registerControl(V),this.updateValueAndValidity({emitEvent:le.emitEvent})}removeAt(R,V={}){this.controls[R]&&this.controls[R]._registerOnCollectionChange(()=>{}),this.controls.splice(R,1),this.updateValueAndValidity({emitEvent:V.emitEvent})}setControl(R,V,le={}){this.controls[R]&&this.controls[R]._registerOnCollectionChange(()=>{}),this.controls.splice(R,1),V&&(this.controls.splice(R,0,V),this._registerControl(V)),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(R,V={}){this._checkAllValuesPresent(R),R.forEach((le,ot)=>{this._throwIfControlMissing(ot),this.at(ot).setValue(le,{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V)}patchValue(R,V={}){null!=R&&(R.forEach((le,ot)=>{this.at(ot)&&this.at(ot).patchValue(le,{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V))}reset(R=[],V={}){this._forEachChild((le,ot)=>{le.reset(R[ot],{onlySelf:!0,emitEvent:V.emitEvent})}),this._updatePristine(V),this._updateTouched(V),this.updateValueAndValidity(V)}getRawValue(){return this.controls.map(R=>R instanceof ai?R.value:R.getRawValue())}clear(R={}){this.controls.length<1||(this._forEachChild(V=>V._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:R.emitEvent}))}_syncPendingControls(){let R=this.controls.reduce((V,le)=>!!le._syncPendingControls()||V,!1);return R&&this.updateValueAndValidity({onlySelf:!0}),R}_throwIfControlMissing(R){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(R))throw new Error(`Cannot find form control at index ${R}`)}_forEachChild(R){this.controls.forEach((V,le)=>{R(V,le)})}_updateValue(){this.value=this.controls.filter(R=>R.enabled||this.disabled).map(R=>R.value)}_anyControls(R){return this.controls.some(V=>V.enabled&&R(V))}_setUpControls(){this._forEachChild(R=>this._registerControl(R))}_checkAllValuesPresent(R){this._forEachChild((V,le)=>{if(void 0===R[le])throw new Error(`Must supply a value for form control at index: ${le}.`)})}_allControlsDisabled(){for(const R of this.controls)if(R.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(R){R.setParent(this),R._registerOnCollectionChange(this._onCollectionChange)}}const zr={provide:Hn,useExisting:(0,m.Gpc)(()=>Ri)},rr=(()=>Promise.resolve(null))();let Ri=(()=>{class k extends Hn{constructor(V,le){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new m.vpe,this.form=new Mi({},ft(V),Ne(le))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(V){rr.then(()=>{const le=this._findContainer(V.path);V.control=le.registerControl(V.name,V.control),Ui(V.control,V),V.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(V)})}getControl(V){return this.form.get(V.path)}removeControl(V){rr.then(()=>{const le=this._findContainer(V.path);le&&le.removeControl(V.name),ks(this._directives,V)})}addFormGroup(V){rr.then(()=>{const le=this._findContainer(V.path),ot=new Mi({});xo(ot,V),le.registerControl(V.name,ot),ot.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(V){rr.then(()=>{const le=this._findContainer(V.path);le&&le.removeControl(V.name)})}getFormGroup(V){return this.form.get(V.path)}updateModel(V,le){rr.then(()=>{this.form.get(V.path).setValue(le)})}setValue(V){this.control.setValue(V)}onSubmit(V){return this.submitted=!0,Wo(this.form,this._directives),this.ngSubmit.emit(V),!1}onReset(){this.resetForm()}resetForm(V){this.form.reset(V),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(V){return V.pop(),V.length?this.form.get(V):this.form}}return k.\u0275fac=function(V){return new(V||k)(m.Y36(Ce,10),m.Y36(ve,10))},k.\u0275dir=m.lG2({type:k,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(V,le){1&V&&m.NdJ("submit",function($t){return le.onSubmit($t)})("reset",function(){return le.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[m._Bn([zr]),m.qOj]}),k})();const _i={provide:ir,useExisting:(0,m.Gpc)(()=>Ar)},Li=(()=>Promise.resolve(null))();let Ar=(()=>{class k extends ir{constructor(V,le,ot,$t){super(),this.control=new ai,this._registered=!1,this.update=new m.vpe,this._parent=V,this._setValidators(le),this._setAsyncValidators(ot),this.valueAccessor=To(0,$t)}ngOnChanges(V){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in V&&this._updateDisabled(V),Jn(V,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ki(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ui(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(V){Li.then(()=>{this.control.setValue(V,{emitViewToModelChange:!1})})}_updateDisabled(V){const le=V.isDisabled.currentValue,ot=""===le||le&&"false"!==le;Li.then(()=>{ot&&!this.control.disabled?this.control.disable():!ot&&this.control.disabled&&this.control.enable()})}}return k.\u0275fac=function(V){return new(V||k)(m.Y36(Hn,9),m.Y36(Ce,10),m.Y36(ve,10),m.Y36(I,10))},k.\u0275dir=m.lG2({type:k,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[m._Bn([_i]),m.qOj,m.TTD]}),k})(),$i=(()=>{class k{}return k.\u0275fac=function(V){return new(V||k)},k.\u0275dir=m.lG2({type:k,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),k})(),Fe=(()=>{class k{}return k.\u0275fac=function(V){return new(V||k)},k.\u0275mod=m.oAB({type:k}),k.\u0275inj=m.cJS({}),k})();const Ot=new m.OlP("NgModelWithFormControlWarning"),xn={provide:Hn,useExisting:(0,m.Gpc)(()=>Pn)};let Pn=(()=>{class k extends Hn{constructor(V,le){super(),this.validators=V,this.asyncValidators=le,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new m.vpe,this._setValidators(V),this._setAsyncValidators(le)}ngOnChanges(V){this._checkFormPresent(),V.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Xn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(V){const le=this.form.get(V.path);return Ui(le,V),le.updateValueAndValidity({emitEvent:!1}),this.directives.push(V),le}getControl(V){return this.form.get(V.path)}removeControl(V){Ln(V.control||null,V,!1),ks(this.directives,V)}addFormGroup(V){this._setUpFormContainer(V)}removeFormGroup(V){this._cleanUpFormContainer(V)}getFormGroup(V){return this.form.get(V.path)}addFormArray(V){this._setUpFormContainer(V)}removeFormArray(V){this._cleanUpFormContainer(V)}getFormArray(V){return this.form.get(V.path)}updateModel(V,le){this.form.get(V.path).setValue(le)}onSubmit(V){return this.submitted=!0,Wo(this.form,this.directives),this.ngSubmit.emit(V),!1}onReset(){this.resetForm()}resetForm(V){this.form.reset(V),this.submitted=!1}_updateDomValue(){this.directives.forEach(V=>{const le=V.control,ot=this.form.get(V.path);le!==ot&&(Ln(le||null,V),ot instanceof ai&&(Ui(ot,V),V.control=ot))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(V){const le=this.form.get(V.path);xo(le,V),le.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(V){if(this.form){const le=this.form.get(V.path);le&&function(k,R){return Xn(k,R)}(le,V)&&le.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zn(this.form,this),this._oldForm&&Xn(this._oldForm,this)}_checkFormPresent(){}}return k.\u0275fac=function(V){return new(V||k)(m.Y36(Ce,10),m.Y36(ve,10))},k.\u0275dir=m.lG2({type:k,selectors:[["","formGroup",""]],hostBindings:function(V,le){1&V&&m.NdJ("submit",function($t){return le.onSubmit($t)})("reset",function(){return le.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[m._Bn([xn]),m.qOj,m.TTD]}),k})();const Rs={provide:ir,useExisting:(0,m.Gpc)(()=>Va)};let Va=(()=>{class k extends ir{constructor(V,le,ot,$t,zn){super(),this._ngModelWarningConfig=zn,this._added=!1,this.update=new m.vpe,this._ngModelWarningSent=!1,this._parent=V,this._setValidators(le),this._setAsyncValidators(ot),this.valueAccessor=To(0,$t)}set isDisabled(V){}ngOnChanges(V){this._added||this._setUpControl(),Jn(V,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}get path(){return ki(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 k.\u0275fac=function(V){return new(V||k)(m.Y36(Hn,13),m.Y36(Ce,10),m.Y36(ve,10),m.Y36(I,10),m.Y36(Ot,8))},k.\u0275dir=m.lG2({type:k,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[m._Bn([Rs]),m.qOj,m.TTD]}),k._ngModelWarningSentOnce=!1,k})(),wo=(()=>{class k{}return k.\u0275fac=function(V){return new(V||k)},k.\u0275mod=m.oAB({type:k}),k.\u0275inj=m.cJS({imports:[[Fe]]}),k})(),Gi=(()=>{class k{}return k.\u0275fac=function(V){return new(V||k)},k.\u0275mod=m.oAB({type:k}),k.\u0275inj=m.cJS({imports:[wo]}),k})(),pi=(()=>{class k{static withConfig(V){return{ngModule:k,providers:[{provide:Ot,useValue:V.warnOnNgModelWithFormControl}]}}}return k.\u0275fac=function(V){return new(V||k)},k.\u0275mod=m.oAB({type:k}),k.\u0275inj=m.cJS({imports:[wo]}),k})(),_e=(()=>{class k{group(V,le=null){const ot=this._reduceControls(V);let Qn,$t=null,zn=null;return null!=le&&(function(k){return void 0!==k.asyncValidators||void 0!==k.validators||void 0!==k.updateOn}(le)?($t=null!=le.validators?le.validators:null,zn=null!=le.asyncValidators?le.asyncValidators:null,Qn=null!=le.updateOn?le.updateOn:void 0):($t=null!=le.validator?le.validator:null,zn=null!=le.asyncValidator?le.asyncValidator:null)),new Mi(ot,{asyncValidators:zn,updateOn:Qn,validators:$t})}control(V,le,ot){return new ai(V,le,ot)}array(V,le,ot){const $t=V.map(zn=>this._createControl(zn));return new ur($t,le,ot)}_reduceControls(V){const le={};return Object.keys(V).forEach(ot=>{le[ot]=this._createControl(V[ot])}),le}_createControl(V){return V instanceof ai||V instanceof Mi||V instanceof ur?V:Array.isArray(V)?this.control(V[0],V.length>1?V[1]:null,V.length>2?V[2]:null):this.control(V)}}return k.\u0275fac=function(V){return new(V||k)},k.\u0275prov=(0,m.Yz7)({factory:function(){return new k},token:k,providedIn:pi}),k})()},2636:(ge,G,g)=>{"use strict";g.d(G,{gz:()=>Ar,wM:()=>cn,Eb:()=>Lr,y6:()=>Nn,m2:()=>Se,OD:()=>Be,eC:()=>On,wm:()=>zs,wN:()=>re,F0:()=>Bn,rH:()=>kr,Bz:()=>$s,lC:()=>ol,Hx:()=>ts});var m=g(2057),i=g(4788),q=g(4402),D=g(5917),O=g(6215),P=g(9112),$=g(7574),I=g(3410),U=g(8071),z=g(1439),H=g(9193),A=g(2441),X=g(9765),de=g(7393);function Ie(Y,j){let F=!1;return arguments.length>=2&&(F=!0),function(oe){return oe.lift(new ue(Y,j,F))}}class ue{constructor(j,F,ne=!1){this.accumulator=j,this.seed=F,this.hasSeed=ne}call(j,F){return F.subscribe(new Ce(j,this.accumulator,this.seed,this.hasSeed))}}class Ce extends de.L{constructor(j,F,ne,oe){super(j),this.accumulator=F,this._seed=ne,this.hasSeed=oe,this.index=0}get seed(){return this._seed}set seed(j){this.hasSeed=!0,this._seed=j}_next(j){if(this.hasSeed)return this._tryNext(j);this.seed=j,this.destination.next(j)}_tryNext(j){const F=this.index++;let ne;try{ne=this.accumulator(this.seed,j,F)}catch(oe){this.destination.error(oe)}this.seed=ne,this.destination.next(ne)}}var ve=g(5435),De=g(7108);function Pe(Y){return function(F){return 0===Y?(0,H.c)():F.lift(new $e(Y))}}class $e{constructor(j){if(this.total=j,this.total<0)throw new De.W}call(j,F){return F.subscribe(new at(j,this.total))}}class at extends de.L{constructor(j,F){super(j),this.total=F,this.ring=new Array,this.count=0}_next(j){const F=this.ring,ne=this.total,oe=this.count++;F.length0){const ne=this.count>=this.total?this.total:this.count,oe=this.ring;for(let Ee=0;EeY.length||"full"===F.pathMatch&&(j.hasChildren()||ne.lengthne[Ee]===oe)}return Y===j}function ii(Y){return Array.prototype.concat.apply([],Y)}function ki(Y){return Y.length>0?Y[Y.length-1]:null}function Ln(Y,j){for(const F in Y)Y.hasOwnProperty(F)&&j(Y[F],F)}function Ii(Y){return(0,i.CqO)(Y)?Y:(0,i.QGY)(Y)?(0,q.D)(Promise.resolve(Y)):(0,D.of)(Y)}const Zn={exact:function lr(Y,j,F){if(!To(Y.segments,j.segments)||!Ro(Y.segments,j.segments,F)||Y.numberOfChildren!==j.numberOfChildren)return!1;for(const ne in j.children)if(!Y.children[ne]||!lr(Y.children[ne],j.children[ne],F))return!1;return!0},subset:xo},Xn={exact:function(Y,j){return Nt(Y,j)},subset:function(Y,j){return Object.keys(j).length<=Object.keys(Y).length&&Object.keys(j).every(F=>In(Y[F],j[F]))},ignored:()=>!0};function fi(Y,j,F){return Zn[F.paths](Y.root,j.root,F.matrixParams)&&Xn[F.queryParams](Y.queryParams,j.queryParams)&&!("exact"===F.fragment&&Y.fragment!==j.fragment)}function xo(Y,j,F){return Nr(Y,j,j.segments,F)}function Nr(Y,j,F,ne){if(Y.segments.length>F.length){const oe=Y.segments.slice(0,F.length);return!(!To(oe,F)||j.hasChildren()||!Ro(oe,F,ne))}if(Y.segments.length===F.length){if(!To(Y.segments,F)||!Ro(Y.segments,F,ne))return!1;for(const oe in j.children)if(!Y.children[oe]||!xo(Y.children[oe],j.children[oe],ne))return!1;return!0}{const oe=F.slice(0,Y.segments.length),Ee=F.slice(Y.segments.length);return!!(To(Y.segments,oe)&&Ro(Y.segments,oe,ne)&&Y.children[On])&&Nr(Y.children[On],j,Ee,ne)}}function Ro(Y,j,F){return j.every((ne,oe)=>Xn[F](Y[oe].parameters,ne.parameters))}class Fi{constructor(j,F,ne){this.root=j,this.queryParams=F,this.fragment=ne}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=At(this.queryParams)),this._queryParamMap}toString(){return un.serialize(this)}}class Jn{constructor(j,F){this.segments=j,this.children=F,this.parent=null,Ln(F,(ne,oe)=>ne.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jr(this)}}class Do{constructor(j,F){this.path=j,this.parameters=F}get parameterMap(){return this._parameterMap||(this._parameterMap=At(this.parameters)),this._parameterMap}toString(){return pn(this)}}function To(Y,j){return Y.length===j.length&&Y.every((F,ne)=>F.path===j[ne].path)}class ts{}class Si{parse(j){const F=new Yo(j);return new Fi(F.parseRootSegment(),F.parseQueryParams(),F.parseFragment())}serialize(j){var Y;return`${`/${uo(j.root,!0)}`}${function(Y){const j=Object.keys(Y).map(F=>{const ne=Y[F];return Array.isArray(ne)?ne.map(oe=>`${pr(F)}=${pr(oe)}`).join("&"):`${pr(F)}=${pr(ne)}`}).filter(F=>!!F);return j.length?`?${j.join("&")}`:""}(j.queryParams)}${"string"==typeof j.fragment?`#${Y=j.fragment,encodeURI(Y)}`:""}`}}const un=new Si;function jr(Y){return Y.segments.map(j=>pn(j)).join("/")}function uo(Y,j){if(!Y.hasChildren())return jr(Y);if(j){const F=Y.children[On]?uo(Y.children[On],!1):"",ne=[];return Ln(Y.children,(oe,Ee)=>{Ee!==On&&ne.push(`${Ee}:${uo(oe,!1)}`)}),ne.length>0?`${F}(${ne.join("//")})`:F}{const F=function(Y,j){let F=[];return Ln(Y.children,(ne,oe)=>{oe===On&&(F=F.concat(j(ne,oe)))}),Ln(Y.children,(ne,oe)=>{oe!==On&&(F=F.concat(j(ne,oe)))}),F}(Y,(ne,oe)=>oe===On?[uo(Y.children[On],!1)]:[`${oe}:${uo(ne,!1)}`]);return 1===Object.keys(Y.children).length&&null!=Y.children[On]?`${jr(Y)}/${F[0]}`:`${jr(Y)}/(${F.join("//")})`}}function Xi(Y){return encodeURIComponent(Y).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pr(Y){return Xi(Y).replace(/%3B/gi,";")}function yr(Y){return Xi(Y).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Go(Y){return decodeURIComponent(Y)}function mr(Y){return Go(Y.replace(/\+/g,"%20"))}function pn(Y){return`${yr(Y.path)}${function(Y){return Object.keys(Y).map(j=>`;${yr(j)}=${yr(Y[j])}`).join("")}(Y.parameters)}`}const ur=/^[^\/()?;=#]+/;function zr(Y){const j=Y.match(ur);return j?j[0]:""}const Ur=/^[^=?&#]+/,Ri=/^[^?&#]+/;class Yo{constructor(j){this.url=j,this.remaining=j}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Jn([],{}):new Jn([],this.parseChildren())}parseQueryParams(){const j={};if(this.consumeOptional("?"))do{this.parseQueryParam(j)}while(this.consumeOptional("&"));return j}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const j=[];for(this.peekStartsWith("(")||j.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),j.push(this.parseSegment());let F={};this.peekStartsWith("/(")&&(this.capture("/"),F=this.parseParens(!0));let ne={};return this.peekStartsWith("(")&&(ne=this.parseParens(!1)),(j.length>0||Object.keys(F).length>0)&&(ne[On]=new Jn(j,F)),ne}parseSegment(){const j=zr(this.remaining);if(""===j&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(j),new Do(Go(j),this.parseMatrixParams())}parseMatrixParams(){const j={};for(;this.consumeOptional(";");)this.parseParam(j);return j}parseParam(j){const F=zr(this.remaining);if(!F)return;this.capture(F);let ne="";if(this.consumeOptional("=")){const oe=zr(this.remaining);oe&&(ne=oe,this.capture(ne))}j[Go(F)]=Go(ne)}parseQueryParam(j){const F=function(Y){const j=Y.match(Ur);return j?j[0]:""}(this.remaining);if(!F)return;this.capture(F);let ne="";if(this.consumeOptional("=")){const Le=function(Y){const j=Y.match(Ri);return j?j[0]:""}(this.remaining);Le&&(ne=Le,this.capture(ne))}const oe=mr(F),Ee=mr(ne);if(j.hasOwnProperty(oe)){let Le=j[oe];Array.isArray(Le)||(Le=[Le],j[oe]=Le),Le.push(Ee)}else j[oe]=Ee}parseParens(j){const F={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ne=zr(this.remaining),oe=this.remaining[ne.length];if("/"!==oe&&")"!==oe&&";"!==oe)throw new Error(`Cannot parse url '${this.url}'`);let Ee;ne.indexOf(":")>-1?(Ee=ne.substr(0,ne.indexOf(":")),this.capture(Ee),this.capture(":")):j&&(Ee=On);const Le=this.parseChildren();F[Ee]=1===Object.keys(Le).length?Le[On]:new Jn([],Le),this.consumeOptional("//")}return F}peekStartsWith(j){return this.remaining.startsWith(j)}consumeOptional(j){return!!this.peekStartsWith(j)&&(this.remaining=this.remaining.substring(j.length),!0)}capture(j){if(!this.consumeOptional(j))throw new Error(`Expected "${j}".`)}}class ri{constructor(j){this._root=j}get root(){return this._root.value}parent(j){const F=this.pathFromRoot(j);return F.length>1?F[F.length-2]:null}children(j){const F=no(j,this._root);return F?F.children.map(ne=>ne.value):[]}firstChild(j){const F=no(j,this._root);return F&&F.children.length>0?F.children[0].value:null}siblings(j){const F=ci(j,this._root);return F.length<2?[]:F[F.length-2].children.map(oe=>oe.value).filter(oe=>oe!==j)}pathFromRoot(j){return ci(j,this._root).map(F=>F.value)}}function no(Y,j){if(Y===j.value)return j;for(const F of j.children){const ne=no(Y,F);if(ne)return ne}return null}function ci(Y,j){if(Y===j.value)return[j];for(const F of j.children){const ne=ci(Y,F);if(ne.length)return ne.unshift(j),ne}return[]}class $r{constructor(j,F){this.value=j,this.children=F}toString(){return`TreeNode(${this.value})`}}function yo(Y){const j={};return Y&&Y.children.forEach(F=>j[F.value.outlet]=F),j}class _i extends ri{constructor(j,F){super(j),this.snapshot=F,he(this,j)}toString(){return this.snapshot.toString()}}function ei(Y,j){const F=function(Y,j){const Le=new ia([],{},{},"",{},On,j,null,Y.root,-1,{});return new we("",new $r(Le,[]))}(Y,j),ne=new O.X([new Do("",{})]),oe=new O.X({}),Ee=new O.X({}),Le=new O.X({}),Ze=new O.X(""),kt=new Ar(ne,oe,Le,Ze,Ee,On,j,F.root);return kt.snapshot=F.root,new _i(new $r(kt,[]),F)}class Ar{constructor(j,F,ne,oe,Ee,Le,Ze,kt){this.url=j,this.params=F,this.queryParams=ne,this.fragment=oe,this.data=Ee,this.outlet=Le,this.component=Ze,this._futureSnapshot=kt}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,Ue.U)(j=>At(j)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ue.U)(j=>At(j)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $i(Y,j="emptyOnly"){const F=Y.pathFromRoot;let ne=0;if("always"!==j)for(ne=F.length-1;ne>=1;){const oe=F[ne],Ee=F[ne-1];if(oe.routeConfig&&""===oe.routeConfig.path)ne--;else{if(Ee.component)break;ne--}}return function(Y){return Y.reduce((j,F)=>({params:Object.assign(Object.assign({},j.params),F.params),data:Object.assign(Object.assign({},j.data),F.data),resolve:Object.assign(Object.assign({},j.resolve),F._resolvedData)}),{params:{},data:{},resolve:{}})}(F.slice(ne))}class ia{constructor(j,F,ne,oe,Ee,Le,Ze,kt,En,Zi,ni){this.url=j,this.params=F,this.queryParams=ne,this.fragment=oe,this.data=Ee,this.outlet=Le,this.component=Ze,this.routeConfig=kt,this._urlSegment=En,this._lastPathIndex=Zi,this._resolve=ni}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=At(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=At(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ne=>ne.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class we extends ri{constructor(j,F){super(F),this.url=j,he(this,F)}toString(){return Fe(this._root)}}function he(Y,j){j.value._routerState=Y,j.children.forEach(F=>he(Y,F))}function Fe(Y){const j=Y.children.length>0?` { ${Y.children.map(Fe).join(", ")} } `:"";return`${Y.value}${j}`}function ze(Y){if(Y.snapshot){const j=Y.snapshot,F=Y._futureSnapshot;Y.snapshot=F,Nt(j.queryParams,F.queryParams)||Y.queryParams.next(F.queryParams),j.fragment!==F.fragment&&Y.fragment.next(F.fragment),Nt(j.params,F.params)||Y.params.next(F.params),function(Y,j){if(Y.length!==j.length)return!1;for(let F=0;FNt(F.parameters,j[ne].parameters))}(Y.url,j.url)&&!(!Y.parent!=!j.parent)&&(!Y.parent||pt(Y.parent,j.parent))}function St(Y,j,F){if(F&&Y.shouldReuseRoute(j.value,F.value.snapshot)){const ne=F.value;ne._futureSnapshot=j.value;const oe=function(Y,j,F){return j.children.map(ne=>{for(const oe of F.children)if(Y.shouldReuseRoute(ne.value,oe.value.snapshot))return St(Y,ne,oe);return St(Y,ne)})}(Y,j,F);return new $r(ne,oe)}{if(Y.shouldAttach(j.value)){const Ee=Y.retrieve(j.value);if(null!==Ee){const Le=Ee.route;return Ot(j,Le),Le}}const ne=function(Y){return new Ar(new O.X(Y.url),new O.X(Y.params),new O.X(Y.queryParams),new O.X(Y.fragment),new O.X(Y.data),Y.outlet,Y.component,Y)}(j.value),oe=j.children.map(Ee=>St(Y,Ee));return new $r(ne,oe)}}function Ot(Y,j){if(Y.value.routeConfig!==j.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(Y.children.length!==j.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");j.value._futureSnapshot=Y.value;for(let F=0;F{Ee[Ze]=Array.isArray(Le)?Le.map(kt=>`${kt}`):`${Le}`}),new Fi(F.root===Y?j:bo(F.root,Y,j),Ee,oe)}function bo(Y,j,F){const ne={};return Ln(Y.children,(oe,Ee)=>{ne[Ee]=oe===j?F:bo(oe,j,F)}),new Jn(Y.segments,ne)}class ao{constructor(j,F,ne){if(this.isAbsolute=j,this.numberOfDoubleDots=F,this.commands=ne,j&&ne.length>0&&Pn(ne[0]))throw new Error("Root segment cannot have matrix parameters");const oe=ne.find(Kn);if(oe&&oe!==ki(ne))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rs{constructor(j,F,ne){this.segmentGroup=j,this.processChildren=F,this.index=ne}}function ln(Y,j,F){if(Y||(Y=new Jn([],{})),0===Y.segments.length&&Y.hasChildren())return Ba(Y,j,F);const ne=function(Y,j,F){let ne=0,oe=j;const Ee={match:!1,pathIndex:0,commandIndex:0};for(;oe=F.length)return Ee;const Le=Y.segments[oe],Ze=F[ne];if(Kn(Ze))break;const kt=`${Ze}`,En=ne0&&void 0===kt)break;if(kt&&En&&"object"==typeof En&&void 0===En.outlets){if(!Gr(kt,En,Le))return Ee;ne+=2}else{if(!Gr(kt,{},Le))return Ee;ne++}oe++}return{match:!0,pathIndex:oe,commandIndex:ne}}(Y,j,F),oe=F.slice(ne.commandIndex);if(ne.match&&ne.pathIndex{"string"==typeof Ee&&(Ee=[Ee]),null!==Ee&&(oe[Le]=ln(Y.children[Le],j,Ee))}),Ln(Y.children,(Ee,Le)=>{void 0===ne[Le]&&(oe[Le]=Ee)}),new Jn(Y.segments,oe)}}function Ls(Y,j,F){const ne=Y.segments.slice(0,j);let oe=0;for(;oe{"string"==typeof F&&(F=[F]),null!==F&&(j[ne]=Ls(new Jn([],{}),0,F))}),j}function ms(Y){const j={};return Ln(Y,(F,ne)=>j[ne]=`${F}`),j}function Gr(Y,j,F){return Y==F.path&&Nt(j,F.parameters)}class Vr{constructor(j,F,ne,oe){this.routeReuseStrategy=j,this.futureState=F,this.currState=ne,this.forwardEvent=oe}activate(j){const F=this.futureState._root,ne=this.currState?this.currState._root:null;this.deactivateChildRoutes(F,ne,j),ze(this.futureState.root),this.activateChildRoutes(F,ne,j)}deactivateChildRoutes(j,F,ne){const oe=yo(F);j.children.forEach(Ee=>{const Le=Ee.value.outlet;this.deactivateRoutes(Ee,oe[Le],ne),delete oe[Le]}),Ln(oe,(Ee,Le)=>{this.deactivateRouteAndItsChildren(Ee,ne)})}deactivateRoutes(j,F,ne){const oe=j.value,Ee=F?F.value:null;if(oe===Ee)if(oe.component){const Le=ne.getContext(oe.outlet);Le&&this.deactivateChildRoutes(j,F,Le.children)}else this.deactivateChildRoutes(j,F,ne);else Ee&&this.deactivateRouteAndItsChildren(F,ne)}deactivateRouteAndItsChildren(j,F){this.routeReuseStrategy.shouldDetach(j.value.snapshot)?this.detachAndStoreRouteSubtree(j,F):this.deactivateRouteAndOutlet(j,F)}detachAndStoreRouteSubtree(j,F){const ne=F.getContext(j.value.outlet);if(ne&&ne.outlet){const oe=ne.outlet.detach(),Ee=ne.children.onOutletDeactivated();this.routeReuseStrategy.store(j.value.snapshot,{componentRef:oe,route:j,contexts:Ee})}}deactivateRouteAndOutlet(j,F){const ne=F.getContext(j.value.outlet),oe=ne&&j.value.component?ne.children:F,Ee=yo(j);for(const Le of Object.keys(Ee))this.deactivateRouteAndItsChildren(Ee[Le],oe);ne&&ne.outlet&&(ne.outlet.deactivate(),ne.children.onOutletDeactivated(),ne.attachRef=null,ne.resolver=null,ne.route=null)}activateChildRoutes(j,F,ne){const oe=yo(F);j.children.forEach(Ee=>{this.activateRoutes(Ee,oe[Ee.value.outlet],ne),this.forwardEvent(new Mn(Ee.value.snapshot))}),j.children.length&&this.forwardEvent(new Fo(j.value.snapshot))}activateRoutes(j,F,ne){const oe=j.value,Ee=F?F.value:null;if(ze(oe),oe===Ee)if(oe.component){const Le=ne.getOrCreateContext(oe.outlet);this.activateChildRoutes(j,F,Le.children)}else this.activateChildRoutes(j,F,ne);else if(oe.component){const Le=ne.getOrCreateContext(oe.outlet);if(this.routeReuseStrategy.shouldAttach(oe.snapshot)){const Ze=this.routeReuseStrategy.retrieve(oe.snapshot);this.routeReuseStrategy.store(oe.snapshot,null),Le.children.onOutletReAttached(Ze.contexts),Le.attachRef=Ze.componentRef,Le.route=Ze.route.value,Le.outlet&&Le.outlet.attach(Ze.componentRef,Ze.route.value),qo(Ze.route)}else{const Ze=function(Y){for(let j=Y.parent;j;j=j.parent){const F=j.routeConfig;if(F&&F._loadedConfig)return F._loadedConfig;if(F&&F.component)return null}return null}(oe.snapshot),kt=Ze?Ze.module.componentFactoryResolver:null;Le.attachRef=null,Le.route=oe,Le.resolver=kt,Le.outlet&&Le.outlet.activateWith(oe,kt),this.activateChildRoutes(j,null,Le.children)}}else this.activateChildRoutes(j,null,ne)}}function qo(Y){ze(Y.value),Y.children.forEach(qo)}class dn{constructor(j,F){this.routes=j,this.module=F}}function io(Y){return"function"==typeof Y}function os(Y){return Y instanceof Fi}const ss=Symbol("INITIAL_VALUE");function Yn(){return(0,je.w)(Y=>(0,P.aj)(Y.map(j=>j.pipe((0,He.q)(1),(0,Ve.O)(ss)))).pipe(Ie((j,F)=>{let ne=!1;return F.reduce((oe,Ee,Le)=>oe!==ss?oe:(Ee===ss&&(ne=!0),ne||!1!==Ee&&Le!==F.length-1&&!os(Ee)?oe:Ee),j)},ss),(0,ve.h)(j=>j!==ss),(0,Ue.U)(j=>os(j)?j:!0===j),(0,He.q)(1)))}let as=(()=>{class Y{}return Y.\u0275fac=function(F){return new(F||Y)},Y.\u0275cmp=i.Xpm({type:Y,selectors:[["ng-component"]],decls:1,vars:0,template:function(F,ne){1&F&&i._UZ(0,"router-outlet")},directives:function(){return[ol]},encapsulation:2}),Y})();function gs(Y,j=""){for(let F=0;Fsr(ne)===j);return F.push(...Y.filter(ne=>sr(ne)!==j)),F}const Er={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function No(Y,j,F){var ne;if(""===j.path)return"full"===j.pathMatch&&(Y.hasChildren()||F.length>0)?Object.assign({},Er):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ee=(j.matcher||Kt)(F,Y,j);if(!Ee)return Object.assign({},Er);const Le={};Ln(Ee.posParams,(kt,En)=>{Le[En]=kt.path});const Ze=Ee.consumed.length>0?Object.assign(Object.assign({},Le),Ee.consumed[Ee.consumed.length-1].parameters):Le;return{matched:!0,consumedSegments:Ee.consumed,lastChild:Ee.consumed.length,parameters:Ze,positionalParamSegments:null!==(ne=Ee.posParams)&&void 0!==ne?ne:{}}}function wo(Y,j,F,ne,oe="corrected"){if(F.length>0&&function(Y,j,F){return F.some(ne=>ie(Y,j,ne)&&sr(ne)!==On)}(Y,F,ne)){const Le=new Jn(j,function(Y,j,F,ne){const oe={};oe[On]=ne,ne._sourceSegment=Y,ne._segmentIndexShift=j.length;for(const Ee of F)if(""===Ee.path&&sr(Ee)!==On){const Le=new Jn([],{});Le._sourceSegment=Y,Le._segmentIndexShift=j.length,oe[sr(Ee)]=Le}return oe}(Y,j,ne,new Jn(F,Y.children)));return Le._sourceSegment=Y,Le._segmentIndexShift=j.length,{segmentGroup:Le,slicedSegments:[]}}if(0===F.length&&function(Y,j,F){return F.some(ne=>ie(Y,j,ne))}(Y,F,ne)){const Le=new Jn(Y.segments,function(Y,j,F,ne,oe,Ee){const Le={};for(const Ze of ne)if(ie(Y,F,Ze)&&!oe[sr(Ze)]){const kt=new Jn([],{});kt._sourceSegment=Y,kt._segmentIndexShift="legacy"===Ee?Y.segments.length:j.length,Le[sr(Ze)]=kt}return Object.assign(Object.assign({},oe),Le)}(Y,j,F,ne,Y.children,oe));return Le._sourceSegment=Y,Le._segmentIndexShift=j.length,{segmentGroup:Le,slicedSegments:F}}const Ee=new Jn(Y.segments,Y.children);return Ee._sourceSegment=Y,Ee._segmentIndexShift=j.length,{segmentGroup:Ee,slicedSegments:F}}function ie(Y,j,F){return(!(Y.hasChildren()||j.length>0)||"full"!==F.pathMatch)&&""===F.path}function k(Y,j,F,ne){return!!(sr(Y)===ne||ne!==On&&ie(j,F,Y))&&("**"===Y.path||No(j,Y,F).matched)}function R(Y,j,F){return 0===j.length&&!Y.children[F]}class V{constructor(j){this.segmentGroup=j||null}}class le{constructor(j){this.urlTree=j}}function ot(Y){return new $.y(j=>j.error(new V(Y)))}function $t(Y){return new $.y(j=>j.error(new le(Y)))}function zn(Y){return new $.y(j=>j.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Y}'`)))}class Un{constructor(j,F,ne,oe,Ee){this.configLoader=F,this.urlSerializer=ne,this.urlTree=oe,this.config=Ee,this.allowRedirects=!0,this.ngModule=j.get(i.h0i)}apply(){const j=wo(this.urlTree.root,[],[],this.config).segmentGroup,F=new Jn(j.segments,j.children);return this.expandSegmentGroup(this.ngModule,this.config,F,On).pipe((0,Ue.U)(Ee=>this.createUrlTree(Or(Ee),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Qe.K)(Ee=>{if(Ee instanceof le)return this.allowRedirects=!1,this.match(Ee.urlTree);throw Ee instanceof V?this.noMatchError(Ee):Ee}))}match(j){return this.expandSegmentGroup(this.ngModule,this.config,j.root,On).pipe((0,Ue.U)(oe=>this.createUrlTree(Or(oe),j.queryParams,j.fragment))).pipe((0,Qe.K)(oe=>{throw oe instanceof V?this.noMatchError(oe):oe}))}noMatchError(j){return new Error(`Cannot match any routes. URL Segment: '${j.segmentGroup}'`)}createUrlTree(j,F,ne){const oe=j.segments.length>0?new Jn([],{[On]:j}):j;return new Fi(oe,F,ne)}expandSegmentGroup(j,F,ne,oe){return 0===ne.segments.length&&ne.hasChildren()?this.expandChildren(j,F,ne).pipe((0,Ue.U)(Ee=>new Jn([],Ee))):this.expandSegment(j,ne,F,ne.segments,oe,!0)}expandChildren(j,F,ne){const oe=[];for(const Ee of Object.keys(ne.children))"primary"===Ee?oe.unshift(Ee):oe.push(Ee);return(0,q.D)(oe).pipe((0,nt.b)(Ee=>{const Le=ne.children[Ee],Ze=Wi(F,Ee);return this.expandSegmentGroup(j,Ze,Le,Ee).pipe((0,Ue.U)(kt=>({segment:kt,outlet:Ee})))}),Ie((Ee,Le)=>(Ee[Le.outlet]=Le.segment,Ee),{}),function(Y,j){const F=arguments.length>=2;return ne=>ne.pipe(Y?(0,ve.h)((oe,Ee)=>Y(oe,Ee,ne)):C.y,Pe(1),F?(0,bt.d)(j):(0,rt.T)(()=>new I.K))}())}expandSegment(j,F,ne,oe,Ee,Le){return(0,q.D)(ne).pipe((0,nt.b)(Ze=>this.expandSegmentAgainstRoute(j,F,ne,Ze,oe,Ee,Le).pipe((0,Qe.K)(En=>{if(En instanceof V)return(0,D.of)(null);throw En}))),(0,Ht.P)(Ze=>!!Ze),(0,Qe.K)((Ze,kt)=>{if(Ze instanceof I.K||"EmptyError"===Ze.name){if(R(F,oe,Ee))return(0,D.of)(new Jn([],{}));throw new V(F)}throw Ze}))}expandSegmentAgainstRoute(j,F,ne,oe,Ee,Le,Ze){return k(oe,F,Ee,Le)?void 0===oe.redirectTo?this.matchSegmentAgainstRoute(j,F,oe,Ee,Le):Ze&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(j,F,ne,oe,Ee,Le):ot(F):ot(F)}expandSegmentAgainstRouteUsingRedirect(j,F,ne,oe,Ee,Le){return"**"===oe.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(j,ne,oe,Le):this.expandRegularSegmentAgainstRouteUsingRedirect(j,F,ne,oe,Ee,Le)}expandWildCardWithParamsAgainstRouteUsingRedirect(j,F,ne,oe){const Ee=this.applyRedirectCommands([],ne.redirectTo,{});return ne.redirectTo.startsWith("/")?$t(Ee):this.lineralizeSegments(ne,Ee).pipe((0,zt.zg)(Le=>{const Ze=new Jn(Le,{});return this.expandSegment(j,Ze,F,Le,oe,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(j,F,ne,oe,Ee,Le){const{matched:Ze,consumedSegments:kt,lastChild:En,positionalParamSegments:Zi}=No(F,oe,Ee);if(!Ze)return ot(F);const ni=this.applyRedirectCommands(kt,oe.redirectTo,Zi);return oe.redirectTo.startsWith("/")?$t(ni):this.lineralizeSegments(oe,ni).pipe((0,zt.zg)(Dr=>this.expandSegment(j,F,ne,Dr.concat(Ee.slice(En)),Le,!1)))}matchSegmentAgainstRoute(j,F,ne,oe,Ee){if("**"===ne.path)return ne.loadChildren?(ne._loadedConfig?(0,D.of)(ne._loadedConfig):this.configLoader.load(j.injector,ne)).pipe((0,Ue.U)(Dr=>(ne._loadedConfig=Dr,new Jn(oe,{})))):(0,D.of)(new Jn(oe,{}));const{matched:Le,consumedSegments:Ze,lastChild:kt}=No(F,ne,oe);if(!Le)return ot(F);const En=oe.slice(kt);return this.getChildConfig(j,ne,oe).pipe((0,zt.zg)(ni=>{const Dr=ni.module,Ji=ni.routes,{segmentGroup:oo,slicedSegments:So}=wo(F,Ze,En,Ji),Ws=new Jn(oo.segments,oo.children);if(0===So.length&&Ws.hasChildren())return this.expandChildren(Dr,Ji,Ws).pipe((0,Ue.U)(ru=>new Jn(Ze,ru)));if(0===Ji.length&&0===So.length)return(0,D.of)(new Jn(Ze,{}));const Ec=sr(ne)===Ee;return this.expandSegment(Dr,Ws,Ji,So,Ec?On:Ee,!0).pipe((0,Ue.U)(is=>new Jn(Ze.concat(is.segments),is.children)))}))}getChildConfig(j,F,ne){return F.children?(0,D.of)(new dn(F.children,j)):F.loadChildren?void 0!==F._loadedConfig?(0,D.of)(F._loadedConfig):this.runCanLoadGuards(j.injector,F,ne).pipe((0,zt.zg)(oe=>{return oe?this.configLoader.load(j.injector,F).pipe((0,Ue.U)(Ee=>(F._loadedConfig=Ee,Ee))):(Y=F,new $.y(j=>j.error(et(`Cannot load children because the guard of the route "path: '${Y.path}'" returned false`))));var Y})):(0,D.of)(new dn([],j))}runCanLoadGuards(j,F,ne){const oe=F.canLoad;if(!oe||0===oe.length)return(0,D.of)(!0);const Ee=oe.map(Le=>{const Ze=j.get(Le);let kt;if((Y=Ze)&&io(Y.canLoad))kt=Ze.canLoad(F,ne);else{if(!io(Ze))throw new Error("Invalid CanLoad guard");kt=Ze(F,ne)}var Y;return Ii(kt)});return(0,D.of)(Ee).pipe(Yn(),(0,wt.b)(Le=>{if(!os(Le))return;const Ze=et(`Redirecting to "${this.urlSerializer.serialize(Le)}"`);throw Ze.url=Le,Ze}),(0,Ue.U)(Le=>!0===Le))}lineralizeSegments(j,F){let ne=[],oe=F.root;for(;;){if(ne=ne.concat(oe.segments),0===oe.numberOfChildren)return(0,D.of)(ne);if(oe.numberOfChildren>1||!oe.children[On])return zn(j.redirectTo);oe=oe.children[On]}}applyRedirectCommands(j,F,ne){return this.applyRedirectCreatreUrlTree(F,this.urlSerializer.parse(F),j,ne)}applyRedirectCreatreUrlTree(j,F,ne,oe){const Ee=this.createSegmentGroup(j,F.root,ne,oe);return new Fi(Ee,this.createQueryParams(F.queryParams,this.urlTree.queryParams),F.fragment)}createQueryParams(j,F){const ne={};return Ln(j,(oe,Ee)=>{if("string"==typeof oe&&oe.startsWith(":")){const Ze=oe.substring(1);ne[Ee]=F[Ze]}else ne[Ee]=oe}),ne}createSegmentGroup(j,F,ne,oe){const Ee=this.createSegments(j,F.segments,ne,oe);let Le={};return Ln(F.children,(Ze,kt)=>{Le[kt]=this.createSegmentGroup(j,Ze,ne,oe)}),new Jn(Ee,Le)}createSegments(j,F,ne,oe){return F.map(Ee=>Ee.path.startsWith(":")?this.findPosParam(j,Ee,oe):this.findOrReturn(Ee,ne))}findPosParam(j,F,ne){const oe=ne[F.path.substring(1)];if(!oe)throw new Error(`Cannot redirect to '${j}'. Cannot find '${F.path}'.`);return oe}findOrReturn(j,F){let ne=0;for(const oe of F){if(oe.path===j.path)return F.splice(ne),oe;ne++}return j}}function Or(Y){const j={};for(const ne of Object.keys(Y.children)){const Ee=Or(Y.children[ne]);(Ee.segments.length>0||Ee.hasChildren())&&(j[ne]=Ee)}return function(Y){if(1===Y.numberOfChildren&&Y.children[On]){const j=Y.children[On];return new Jn(Y.segments.concat(j.segments),j.children)}return Y}(new Jn(Y.segments,j))}class mo{constructor(j){this.path=j,this.route=this.path[this.path.length-1]}}class Bs{constructor(j,F){this.component=j,this.route=F}}function go(Y,j,F){const ne=Y._root;return Hs(ne,j?j._root:null,F,[ne.value])}function ma(Y,j,F){const ne=function(Y){if(!Y)return null;for(let j=Y.parent;j;j=j.parent){const F=j.routeConfig;if(F&&F._loadedConfig)return F._loadedConfig}return null}(j);return(ne?ne.module.injector:F).get(Y)}function Hs(Y,j,F,ne,oe={canDeactivateChecks:[],canActivateChecks:[]}){const Ee=yo(j);return Y.children.forEach(Le=>{(function(Y,j,F,ne,oe={canDeactivateChecks:[],canActivateChecks:[]}){const Ee=Y.value,Le=j?j.value:null,Ze=F?F.getContext(Y.value.outlet):null;if(Le&&Ee.routeConfig===Le.routeConfig){const kt=function(Y,j,F){if("function"==typeof F)return F(Y,j);switch(F){case"pathParamsChange":return!To(Y.url,j.url);case"pathParamsOrQueryParamsChange":return!To(Y.url,j.url)||!Nt(Y.queryParams,j.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pt(Y,j)||!Nt(Y.queryParams,j.queryParams);case"paramsChange":default:return!pt(Y,j)}}(Le,Ee,Ee.routeConfig.runGuardsAndResolvers);kt?oe.canActivateChecks.push(new mo(ne)):(Ee.data=Le.data,Ee._resolvedData=Le._resolvedData),Hs(Y,j,Ee.component?Ze?Ze.children:null:F,ne,oe),kt&&Ze&&Ze.outlet&&Ze.outlet.isActivated&&oe.canDeactivateChecks.push(new Bs(Ze.outlet.component,Le))}else Le&&tr(j,Ze,oe),oe.canActivateChecks.push(new mo(ne)),Hs(Y,null,Ee.component?Ze?Ze.children:null:F,ne,oe)})(Le,Ee[Le.value.outlet],F,ne.concat([Le.value]),oe),delete Ee[Le.value.outlet]}),Ln(Ee,(Le,Ze)=>tr(Le,F.getContext(Ze),oe)),oe}function tr(Y,j,F){const ne=yo(Y),oe=Y.value;Ln(ne,(Ee,Le)=>{tr(Ee,oe.component?j?j.children.getContext(Le):null:j,F)}),F.canDeactivateChecks.push(new Bs(oe.component&&j&&j.outlet&&j.outlet.isActivated?j.outlet.component:null,oe))}class ro{}function ns(Y){return new $.y(j=>j.error(Y))}class Da{constructor(j,F,ne,oe,Ee,Le){this.rootComponentType=j,this.config=F,this.urlTree=ne,this.url=oe,this.paramsInheritanceStrategy=Ee,this.relativeLinkResolution=Le}recognize(){const j=wo(this.urlTree.root,[],[],this.config.filter(Le=>void 0===Le.redirectTo),this.relativeLinkResolution).segmentGroup,F=this.processSegmentGroup(this.config,j,On);if(null===F)return null;const ne=new ia([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},On,this.rootComponentType,null,this.urlTree.root,-1,{}),oe=new $r(ne,F),Ee=new we(this.url,oe);return this.inheritParamsAndData(Ee._root),Ee}inheritParamsAndData(j){const F=j.value,ne=$i(F,this.paramsInheritanceStrategy);F.params=Object.freeze(ne.params),F.data=Object.freeze(ne.data),j.children.forEach(oe=>this.inheritParamsAndData(oe))}processSegmentGroup(j,F,ne){return 0===F.segments.length&&F.hasChildren()?this.processChildren(j,F):this.processSegment(j,F,F.segments,ne)}processChildren(j,F){const ne=[];for(const Ee of Object.keys(F.children)){const Le=F.children[Ee],Ze=Wi(j,Ee),kt=this.processSegmentGroup(Ze,Le,Ee);if(null===kt)return null;ne.push(...kt)}const oe=vs(ne);return oe.sort((j,F)=>j.value.outlet===On?-1:F.value.outlet===On?1:j.value.outlet.localeCompare(F.value.outlet)),oe}processSegment(j,F,ne,oe){for(const Ee of j){const Le=this.processSegmentAgainstRoute(Ee,F,ne,oe);if(null!==Le)return Le}return R(F,ne,oe)?[]:null}processSegmentAgainstRoute(j,F,ne,oe){if(j.redirectTo||!k(j,F,ne,oe))return null;let Ee,Le=[],Ze=[];if("**"===j.path){const Ji=ne.length>0?ki(ne).parameters:{};Ee=new ia(ne,Ji,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Bo(j),sr(j),j.component,j,Co(F),Bi(F)+ne.length,iu(j))}else{const Ji=No(F,j,ne);if(!Ji.matched)return null;Le=Ji.consumedSegments,Ze=ne.slice(Ji.lastChild),Ee=new ia(Le,Ji.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Bo(j),sr(j),j.component,j,Co(F),Bi(F)+Le.length,iu(j))}const kt=(Y=j).children?Y.children:Y.loadChildren?Y._loadedConfig.routes:[],{segmentGroup:En,slicedSegments:Zi}=wo(F,Le,Ze,kt.filter(Ji=>void 0===Ji.redirectTo),this.relativeLinkResolution);var Y;if(0===Zi.length&&En.hasChildren()){const Ji=this.processChildren(kt,En);return null===Ji?null:[new $r(Ee,Ji)]}if(0===kt.length&&0===Zi.length)return[new $r(Ee,[])];const ni=sr(j)===oe,Dr=this.processSegment(kt,En,Zi,ni?On:oe);return null===Dr?null:[new $r(Ee,Dr)]}}function Br(Y){const j=Y.value.routeConfig;return j&&""===j.path&&void 0===j.redirectTo}function vs(Y){const j=[],F=new Set;for(const ne of Y){if(!Br(ne)){j.push(ne);continue}const oe=j.find(Ee=>ne.value.routeConfig===Ee.value.routeConfig);void 0!==oe?(oe.children.push(...ne.children),F.add(oe)):j.push(ne)}for(const ne of F){const oe=vs(ne.children);j.push(new $r(ne.value,oe))}return j.filter(ne=>!F.has(ne))}function Co(Y){let j=Y;for(;j._sourceSegment;)j=j._sourceSegment;return j}function Bi(Y){let j=Y,F=j._segmentIndexShift?j._segmentIndexShift:0;for(;j._sourceSegment;)j=j._sourceSegment,F+=j._segmentIndexShift?j._segmentIndexShift:0;return F-1}function Bo(Y){return Y.data||{}}function iu(Y){return Y.resolve||{}}function T(Y){return(0,je.w)(j=>{const F=Y(j);return F?(0,q.D)(F).pipe((0,Ue.U)(()=>j)):(0,D.of)(j)})}class re{}class Re extends class{shouldDetach(j){return!1}store(j,F){}shouldAttach(j){return!1}retrieve(j){return null}shouldReuseRoute(j,F){return j.routeConfig===F.routeConfig}}{}const lt=new i.OlP("ROUTES");class Fn{constructor(j,F,ne,oe){this.loader=j,this.compiler=F,this.onLoadStartListener=ne,this.onLoadEndListener=oe}load(j,F){if(F._loader$)return F._loader$;this.onLoadStartListener&&this.onLoadStartListener(F);const oe=this.loadModuleFactory(F.loadChildren).pipe((0,Ue.U)(Ee=>{this.onLoadEndListener&&this.onLoadEndListener(F);const Le=Ee.create(j);return new dn(ii(Le.injector.get(lt,void 0,i.XFs.Self|i.XFs.Optional)).map(Jt),Le)}),(0,Qe.K)(Ee=>{throw F._loader$=void 0,Ee}));return F._loader$=new A.c(oe,()=>new X.xQ).pipe((0,ht.x)()),F._loader$}loadModuleFactory(j){return"string"==typeof j?(0,q.D)(this.loader.load(j)):Ii(j()).pipe((0,zt.zg)(F=>F instanceof i.YKP?(0,D.of)(F):(0,q.D)(this.compiler.compileModuleAsync(F))))}}class dr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Nn,this.attachRef=null}}class Nn{constructor(){this.contexts=new Map}onChildOutletCreated(j,F){const ne=this.getOrCreateContext(j);ne.outlet=F,this.contexts.set(j,ne)}onChildOutletDestroyed(j){const F=this.getContext(j);F&&(F.outlet=null,F.attachRef=null)}onOutletDeactivated(){const j=this.contexts;return this.contexts=new Map,j}onOutletReAttached(j){this.contexts=j}getOrCreateContext(j){let F=this.getContext(j);return F||(F=new dr,this.contexts.set(j,F)),F}getContext(j){return this.contexts.get(j)||null}}class Pi{shouldProcessUrl(j){return!0}extract(j){return j}merge(j,F){return j}}function Sr(Y){throw Y}function Ke(Y,j,F){return j.parse("/")}function xt(Y,j){return(0,D.of)(null)}const ct={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Bn=(()=>{class Y{constructor(F,ne,oe,Ee,Le,Ze,kt,En){this.rootComponentType=F,this.urlSerializer=ne,this.rootContexts=oe,this.location=Ee,this.config=En,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new X.xQ,this.errorHandler=Sr,this.malformedUriErrorHandler=Ke,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xt,afterPreactivation:xt},this.urlHandlingStrategy=new Pi,this.routeReuseStrategy=new Re,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Le.get(i.h0i),this.console=Le.get(i.c2e);const Dr=Le.get(i.R0b);this.isNgZoneEnabled=Dr instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(En),this.currentUrlTree=new Fi(new Jn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Fn(Ze,kt,Ji=>this.triggerEvent(new ir(Ji)),Ji=>this.triggerEvent(new Ei(Ji))),this.routerState=ei(this.currentUrlTree,this.rootComponentType),this.transitions=new O.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 F;return null===(F=this.location.getState())||void 0===F?void 0:F.\u0275routerPageId}setupNavigations(F){const ne=this.events;return F.pipe((0,ve.h)(oe=>0!==oe.id),(0,Ue.U)(oe=>Object.assign(Object.assign({},oe),{extractedUrl:this.urlHandlingStrategy.extract(oe.rawUrl)})),(0,je.w)(oe=>{let Ee=!1,Le=!1;return(0,D.of)(oe).pipe((0,wt.b)(Ze=>{this.currentNavigation={id:Ze.id,initialUrl:Ze.currentRawUrl,extractedUrl:Ze.extractedUrl,trigger:Ze.source,extras:Ze.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,je.w)(Ze=>{const kt=this.browserUrlTree.toString(),En=!this.navigated||Ze.extractedUrl.toString()!==kt||kt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||En)&&this.urlHandlingStrategy.shouldProcessUrl(Ze.rawUrl))return Hr(Ze.source)&&(this.browserUrlTree=Ze.extractedUrl),(0,D.of)(Ze).pipe((0,je.w)(ni=>{const Dr=this.transitions.getValue();return ne.next(new Be(ni.id,this.serializeUrl(ni.extractedUrl),ni.source,ni.restoredState)),Dr!==this.transitions.getValue()?H.E:Promise.resolve(ni)}),function(Y,j,F,ne){return(0,je.w)(oe=>function(Y,j,F,ne,oe){return new Un(Y,j,F,ne,oe).apply()}(Y,j,F,oe.extractedUrl,ne).pipe((0,Ue.U)(Ee=>Object.assign(Object.assign({},oe),{urlAfterRedirects:Ee}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,wt.b)(ni=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:ni.urlAfterRedirects})}),function(Y,j,F,ne,oe){return(0,zt.zg)(Ee=>function(Y,j,F,ne,oe="emptyOnly",Ee="legacy"){try{const Le=new Da(Y,j,F,ne,oe,Ee).recognize();return null===Le?ns(new ro):(0,D.of)(Le)}catch(Le){return ns(Le)}}(Y,j,Ee.urlAfterRedirects,F(Ee.urlAfterRedirects),ne,oe).pipe((0,Ue.U)(Le=>Object.assign(Object.assign({},Ee),{targetSnapshot:Le}))))}(this.rootComponentType,this.config,ni=>this.serializeUrl(ni),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,wt.b)(ni=>{"eager"===this.urlUpdateStrategy&&(ni.extras.skipLocationChange||this.setBrowserUrl(ni.urlAfterRedirects,ni),this.browserUrlTree=ni.urlAfterRedirects);const Dr=new Ct(ni.id,this.serializeUrl(ni.extractedUrl),this.serializeUrl(ni.urlAfterRedirects),ni.targetSnapshot);ne.next(Dr)}));if(En&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Dr,extractedUrl:Ji,source:oo,restoredState:So,extras:Ws}=Ze,Ec=new Be(Dr,this.serializeUrl(Ji),oo,So);ne.next(Ec);const sa=ei(Ji,this.rootComponentType).snapshot;return(0,D.of)(Object.assign(Object.assign({},Ze),{targetSnapshot:sa,urlAfterRedirects:Ji,extras:Object.assign(Object.assign({},Ws),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Ze.rawUrl,this.browserUrlTree=Ze.urlAfterRedirects,Ze.resolve(null),H.E}),T(Ze=>{const{targetSnapshot:kt,id:En,extractedUrl:Zi,rawUrl:ni,extras:{skipLocationChange:Dr,replaceUrl:Ji}}=Ze;return this.hooks.beforePreactivation(kt,{navigationId:En,appliedUrlTree:Zi,rawUrlTree:ni,skipLocationChange:!!Dr,replaceUrl:!!Ji})}),(0,wt.b)(Ze=>{const kt=new Rt(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot);this.triggerEvent(kt)}),(0,Ue.U)(Ze=>Object.assign(Object.assign({},Ze),{guards:go(Ze.targetSnapshot,Ze.currentSnapshot,this.rootContexts)})),function(Y,j){return(0,zt.zg)(F=>{const{targetSnapshot:ne,currentSnapshot:oe,guards:{canActivateChecks:Ee,canDeactivateChecks:Le}}=F;return 0===Le.length&&0===Ee.length?(0,D.of)(Object.assign(Object.assign({},F),{guardsResult:!0})):function(Y,j,F,ne){return(0,q.D)(Y).pipe((0,zt.zg)(oe=>function(Y,j,F,ne,oe){const Ee=j&&j.routeConfig?j.routeConfig.canDeactivate:null;if(!Ee||0===Ee.length)return(0,D.of)(!0);const Le=Ee.map(Ze=>{const kt=ma(Ze,j,oe);let En;if(function(Y){return Y&&io(Y.canDeactivate)}(kt))En=Ii(kt.canDeactivate(Y,j,F,ne));else{if(!io(kt))throw new Error("Invalid CanDeactivate guard");En=Ii(kt(Y,j,F,ne))}return En.pipe((0,Ht.P)())});return(0,D.of)(Le).pipe(Yn())}(oe.component,oe.route,F,j,ne)),(0,Ht.P)(oe=>!0!==oe,!0))}(Le,ne,oe,Y).pipe((0,zt.zg)(Ze=>Ze&&function(Y){return"boolean"==typeof Y}(Ze)?function(Y,j,F,ne){return(0,q.D)(j).pipe((0,nt.b)(oe=>(0,U.z)(function(Y,j){return null!==Y&&j&&j(new Lr(Y)),(0,D.of)(!0)}(oe.route.parent,ne),function(Y,j){return null!==Y&&j&&j(new cn(Y)),(0,D.of)(!0)}(oe.route,ne),function(Y,j,F){const ne=j[j.length-1],Ee=j.slice(0,j.length-1).reverse().map(Le=>function(Y){const j=Y.routeConfig?Y.routeConfig.canActivateChild:null;return j&&0!==j.length?{node:Y,guards:j}:null}(Le)).filter(Le=>null!==Le).map(Le=>(0,z.P)(()=>{const Ze=Le.guards.map(kt=>{const En=ma(kt,Le.node,F);let Zi;if(function(Y){return Y&&io(Y.canActivateChild)}(En))Zi=Ii(En.canActivateChild(ne,Y));else{if(!io(En))throw new Error("Invalid CanActivateChild guard");Zi=Ii(En(ne,Y))}return Zi.pipe((0,Ht.P)())});return(0,D.of)(Ze).pipe(Yn())}));return(0,D.of)(Ee).pipe(Yn())}(Y,oe.path,F),function(Y,j,F){const ne=j.routeConfig?j.routeConfig.canActivate:null;if(!ne||0===ne.length)return(0,D.of)(!0);const oe=ne.map(Ee=>(0,z.P)(()=>{const Le=ma(Ee,j,F);let Ze;if(function(Y){return Y&&io(Y.canActivate)}(Le))Ze=Ii(Le.canActivate(j,Y));else{if(!io(Le))throw new Error("Invalid CanActivate guard");Ze=Ii(Le(j,Y))}return Ze.pipe((0,Ht.P)())}));return(0,D.of)(oe).pipe(Yn())}(Y,oe.route,F))),(0,Ht.P)(oe=>!0!==oe,!0))}(ne,Ee,Y,j):(0,D.of)(Ze)),(0,Ue.U)(Ze=>Object.assign(Object.assign({},F),{guardsResult:Ze})))})}(this.ngModule.injector,Ze=>this.triggerEvent(Ze)),(0,wt.b)(Ze=>{if(os(Ze.guardsResult)){const En=et(`Redirecting to "${this.serializeUrl(Ze.guardsResult)}"`);throw En.url=Ze.guardsResult,En}const kt=new Sn(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot,!!Ze.guardsResult);this.triggerEvent(kt)}),(0,ve.h)(Ze=>!!Ze.guardsResult||(this.restoreHistory(Ze),this.cancelNavigationTransition(Ze,""),!1)),T(Ze=>{if(Ze.guards.canActivateChecks.length)return(0,D.of)(Ze).pipe((0,wt.b)(kt=>{const En=new Tn(kt.id,this.serializeUrl(kt.extractedUrl),this.serializeUrl(kt.urlAfterRedirects),kt.targetSnapshot);this.triggerEvent(En)}),(0,je.w)(kt=>{let En=!1;return(0,D.of)(kt).pipe(function(Y,j){return(0,zt.zg)(F=>{const{targetSnapshot:ne,guards:{canActivateChecks:oe}}=F;if(!oe.length)return(0,D.of)(F);let Ee=0;return(0,q.D)(oe).pipe((0,nt.b)(Le=>function(Y,j,F,ne){return function(Y,j,F,ne){const oe=Object.keys(Y);if(0===oe.length)return(0,D.of)({});const Ee={};return(0,q.D)(oe).pipe((0,zt.zg)(Le=>function(Y,j,F,ne){const oe=ma(Y,j,ne);return Ii(oe.resolve?oe.resolve(j,F):oe(j,F))}(Y[Le],j,F,ne).pipe((0,wt.b)(Ze=>{Ee[Le]=Ze}))),Pe(1),(0,zt.zg)(()=>Object.keys(Ee).length===oe.length?(0,D.of)(Ee):H.E))}(Y._resolve,Y,j,ne).pipe((0,Ue.U)(Ee=>(Y._resolvedData=Ee,Y.data=Object.assign(Object.assign({},Y.data),$i(Y,F).resolve),null)))}(Le.route,ne,Y,j)),(0,wt.b)(()=>Ee++),Pe(1),(0,zt.zg)(Le=>Ee===oe.length?(0,D.of)(F):H.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,wt.b)({next:()=>En=!0,complete:()=>{En||(this.restoreHistory(kt),this.cancelNavigationTransition(kt,"At least one route resolver didn't emit any value."))}}))}),(0,wt.b)(kt=>{const En=new Hn(kt.id,this.serializeUrl(kt.extractedUrl),this.serializeUrl(kt.urlAfterRedirects),kt.targetSnapshot);this.triggerEvent(En)}))}),T(Ze=>{const{targetSnapshot:kt,id:En,extractedUrl:Zi,rawUrl:ni,extras:{skipLocationChange:Dr,replaceUrl:Ji}}=Ze;return this.hooks.afterPreactivation(kt,{navigationId:En,appliedUrlTree:Zi,rawUrlTree:ni,skipLocationChange:!!Dr,replaceUrl:!!Ji})}),(0,Ue.U)(Ze=>{const kt=function(Y,j,F){const ne=St(Y,j._root,F?F._root:void 0);return new _i(ne,j)}(this.routeReuseStrategy,Ze.targetSnapshot,Ze.currentRouterState);return Object.assign(Object.assign({},Ze),{targetRouterState:kt})}),(0,wt.b)(Ze=>{this.currentUrlTree=Ze.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ze.urlAfterRedirects,Ze.rawUrl),this.routerState=Ze.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ze.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ze),this.browserUrlTree=Ze.urlAfterRedirects)}),((Y,j,F)=>(0,Ue.U)(ne=>(new Vr(j,ne.targetRouterState,ne.currentRouterState,F).activate(Y),ne)))(this.rootContexts,this.routeReuseStrategy,Ze=>this.triggerEvent(Ze)),(0,wt.b)({next(){Ee=!0},complete(){Ee=!0}}),(0,ft.x)(()=>{var Ze;if(!Ee&&!Le){const kt=`Navigation ID ${oe.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(oe),this.cancelNavigationTransition(oe,kt)):this.cancelNavigationTransition(oe,kt)}(null===(Ze=this.currentNavigation)||void 0===Ze?void 0:Ze.id)===oe.id&&(this.currentNavigation=null)}),(0,Qe.K)(Ze=>{if(Le=!0,function(Y){return Y&&Y[Je]}(Ze)){const kt=os(Ze.url);kt||(this.navigated=!0,this.restoreHistory(oe,!0));const En=new Ae(oe.id,this.serializeUrl(oe.extractedUrl),Ze.message);ne.next(En),kt?setTimeout(()=>{const Zi=this.urlHandlingStrategy.merge(Ze.url,this.rawUrlTree),ni={skipLocationChange:oe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Hr(oe.source)};this.scheduleNavigation(Zi,"imperative",null,ni,{resolve:oe.resolve,reject:oe.reject,promise:oe.promise})},0):oe.resolve(!1)}else{this.restoreHistory(oe,!0);const kt=new Ge(oe.id,this.serializeUrl(oe.extractedUrl),Ze);ne.next(kt);try{oe.resolve(this.errorHandler(Ze))}catch(En){oe.reject(En)}}return H.E}))}))}resetRootComponentType(F){this.rootComponentType=F,this.routerState.root.component=this.rootComponentType}getTransition(){const F=this.transitions.value;return F.urlAfterRedirects=this.browserUrlTree,F}setTransition(F){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),F))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(F=>{const ne=this.extractLocationChangeInfoFromEvent(F);this.shouldScheduleNavigation(this.lastLocationChangeInfo,ne)&&setTimeout(()=>{const{source:oe,state:Ee,urlTree:Le}=ne,Ze={replaceUrl:!0};if(Ee){const kt=Object.assign({},Ee);delete kt.navigationId,delete kt.\u0275routerPageId,0!==Object.keys(kt).length&&(Ze.state=kt)}this.scheduleNavigation(Le,oe,Ee,Ze)},0),this.lastLocationChangeInfo=ne}))}extractLocationChangeInfoFromEvent(F){var ne;return{source:"popstate"===F.type?"popstate":"hashchange",urlTree:this.parseUrl(F.url),state:(null===(ne=F.state)||void 0===ne?void 0:ne.navigationId)?F.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(F,ne){if(!F)return!0;const oe=ne.urlTree.toString()===F.urlTree.toString();return ne.transitionId!==F.transitionId||!oe||!("hashchange"===ne.source&&"popstate"===F.source||"popstate"===ne.source&&"hashchange"===F.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(F){this.events.next(F)}resetConfig(F){gs(F),this.config=F.map(Jt),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(F,ne={}){const{relativeTo:oe,queryParams:Ee,fragment:Le,queryParamsHandling:Ze,preserveFragment:kt}=ne,En=oe||this.routerState.root,Zi=kt?this.currentUrlTree.fragment:Le;let ni=null;switch(Ze){case"merge":ni=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ee);break;case"preserve":ni=this.currentUrlTree.queryParams;break;default:ni=Ee||null}return null!==ni&&(ni=this.removeEmptyProps(ni)),function(Y,j,F,ne,oe){if(0===F.length)return yi(j.root,j.root,j,ne,oe);const Ee=function(Y){if("string"==typeof Y[0]&&1===Y.length&&"/"===Y[0])return new ao(!0,0,Y);let j=0,F=!1;const ne=Y.reduce((oe,Ee,Le)=>{if("object"==typeof Ee&&null!=Ee){if(Ee.outlets){const Ze={};return Ln(Ee.outlets,(kt,En)=>{Ze[En]="string"==typeof kt?kt.split("/"):kt}),[...oe,{outlets:Ze}]}if(Ee.segmentPath)return[...oe,Ee.segmentPath]}return"string"!=typeof Ee?[...oe,Ee]:0===Le?(Ee.split("/").forEach((Ze,kt)=>{0==kt&&"."===Ze||(0==kt&&""===Ze?F=!0:".."===Ze?j++:""!=Ze&&oe.push(Ze))}),oe):[...oe,Ee]},[]);return new ao(F,j,ne)}(F);if(Ee.toRoot())return yi(j.root,new Jn([],{}),j,ne,oe);const Le=function(Y,j,F){if(Y.isAbsolute)return new Rs(j.root,!0,0);if(-1===F.snapshot._lastPathIndex){const Ee=F.snapshot._urlSegment;return new Rs(Ee,Ee===j.root,0)}const ne=Pn(Y.commands[0])?0:1;return function(Y,j,F){let ne=Y,oe=j,Ee=F;for(;Ee>oe;){if(Ee-=oe,ne=ne.parent,!ne)throw new Error("Invalid number of '../'");oe=ne.segments.length}return new Rs(ne,!1,oe-Ee)}(F.snapshot._urlSegment,F.snapshot._lastPathIndex+ne,Y.numberOfDoubleDots)}(Ee,j,Y),Ze=Le.processChildren?Ba(Le.segmentGroup,Le.index,Ee.commands):ln(Le.segmentGroup,Le.index,Ee.commands);return yi(Le.segmentGroup,Ze,j,ne,oe)}(En,this.currentUrlTree,F,ni,null!=Zi?Zi:null)}navigateByUrl(F,ne={skipLocationChange:!1}){const oe=os(F)?F:this.parseUrl(F),Ee=this.urlHandlingStrategy.merge(oe,this.rawUrlTree);return this.scheduleNavigation(Ee,"imperative",null,ne)}navigate(F,ne={skipLocationChange:!1}){return function(Y){for(let j=0;j{const Ee=F[oe];return null!=Ee&&(ne[oe]=Ee),ne},{})}processNavigations(){this.navigations.subscribe(F=>{this.navigated=!0,this.lastSuccessfulId=F.id,this.currentPageId=F.targetPageId,this.events.next(new Se(F.id,this.serializeUrl(F.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,F.resolve(!0)},F=>{this.console.warn(`Unhandled Navigation Error: ${F}`)})}scheduleNavigation(F,ne,oe,Ee,Le){var Ze,kt;if(this.disposed)return Promise.resolve(!1);const En=this.getTransition(),Zi=Hr(ne)&&En&&!Hr(En.source),Ji=(this.lastSuccessfulId===En.id||this.currentNavigation?En.rawUrl:En.urlAfterRedirects).toString()===F.toString();if(Zi&&Ji)return Promise.resolve(!0);let oo,So,Ws;Le?(oo=Le.resolve,So=Le.reject,Ws=Le.promise):Ws=new Promise((is,ru)=>{oo=is,So=ru});const Ec=++this.navigationId;let sa;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(oe=this.location.getState()),sa=oe&&oe.\u0275routerPageId?oe.\u0275routerPageId:Ee.replaceUrl||Ee.skipLocationChange?null!==(Ze=this.browserPageId)&&void 0!==Ze?Ze:0:(null!==(kt=this.browserPageId)&&void 0!==kt?kt:0)+1):sa=0,this.setTransition({id:Ec,targetPageId:sa,source:ne,restoredState:oe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:F,extras:Ee,resolve:oo,reject:So,promise:Ws,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ws.catch(is=>Promise.reject(is))}setBrowserUrl(F,ne){const oe=this.urlSerializer.serialize(F),Ee=Object.assign(Object.assign({},ne.extras.state),this.generateNgRouterState(ne.id,ne.targetPageId));this.location.isCurrentPathEqualTo(oe)||ne.extras.replaceUrl?this.location.replaceState(oe,"",Ee):this.location.go(oe,"",Ee)}restoreHistory(F,ne=!1){var oe,Ee;if("computed"===this.canceledNavigationResolution){const Le=this.currentPageId-F.targetPageId;"popstate"!==F.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(oe=this.currentNavigation)||void 0===oe?void 0:oe.finalUrl)||0===Le?this.currentUrlTree===(null===(Ee=this.currentNavigation)||void 0===Ee?void 0:Ee.finalUrl)&&0===Le&&(this.resetState(F),this.browserUrlTree=F.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Le)}else"replace"===this.canceledNavigationResolution&&(ne&&this.resetState(F),this.resetUrlToCurrentUrlTree())}resetState(F){this.routerState=F.currentRouterState,this.currentUrlTree=F.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,F.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(F,ne){const oe=new Ae(F.id,this.serializeUrl(F.extractedUrl),ne);this.triggerEvent(oe),F.resolve(!1)}generateNgRouterState(F,ne){return"computed"===this.canceledNavigationResolution?{navigationId:F,\u0275routerPageId:ne}:{navigationId:F}}}return Y.\u0275fac=function(F){return new(F||Y)(i.LFG(i.DyG),i.LFG(ts),i.LFG(Nn),i.LFG(m.Ye),i.LFG(i.zs3),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(void 0))},Y.\u0275prov=i.Yz7({token:Y,factory:Y.\u0275fac}),Y})();function Hr(Y){return"imperative"!==Y}let kr=(()=>{class Y{constructor(F,ne,oe,Ee,Le){this.router=F,this.route=ne,this.commands=[],this.onChanges=new X.xQ,null==oe&&Ee.setAttribute(Le.nativeElement,"tabindex","0")}ngOnChanges(F){this.onChanges.next(this)}set routerLink(F){this.commands=null!=F?Array.isArray(F)?F:[F]:[]}onClick(){const F={skipLocationChange:ga(this.skipLocationChange),replaceUrl:ga(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,F),!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:ga(this.preserveFragment)})}}return Y.\u0275fac=function(F){return new(F||Y)(i.Y36(Bn),i.Y36(Ar),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},Y.\u0275dir=i.lG2({type:Y,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(F,ne){1&F&&i.NdJ("click",function(){return ne.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.TTD]}),Y})();function ga(Y){return""===Y||!!Y}let ol=(()=>{class Y{constructor(F,ne,oe,Ee,Le){this.parentContexts=F,this.location=ne,this.resolver=oe,this.changeDetector=Le,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.name=Ee||On,F.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const F=this.parentContexts.getContext(this.name);F&&F.route&&(F.attachRef?this.attach(F.attachRef,F.route):this.activateWith(F.route,F.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 F=this.activated;return this.activated=null,this._activatedRoute=null,F}attach(F,ne){this.activated=F,this._activatedRoute=ne,this.location.insert(F.hostView)}deactivate(){if(this.activated){const F=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(F)}}activateWith(F,ne){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=F;const Le=(ne=ne||this.resolver).resolveComponentFactory(F._futureSnapshot.routeConfig.component),Ze=this.parentContexts.getOrCreateContext(this.name).children,kt=new sl(F,Ze,this.location.injector);this.activated=this.location.createComponent(Le,this.location.length,kt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Y.\u0275fac=function(F){return new(F||Y)(i.Y36(Nn),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},Y.\u0275dir=i.lG2({type:Y,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Y})();class sl{constructor(j,F,ne){this.route=j,this.childContexts=F,this.parent=ne}get(j,F){return j===Ar?this.route:j===Nn?this.childContexts:this.parent.get(j,F)}}class Eo{}class zs{preload(j,F){return F().pipe((0,Qe.K)(()=>(0,D.of)(null)))}}class ar{preload(j,F){return(0,D.of)(null)}}let al=(()=>{class Y{constructor(F,ne,oe,Ee,Le){this.router=F,this.injector=Ee,this.preloadingStrategy=Le,this.loader=new Fn(ne,oe,En=>F.triggerEvent(new ir(En)),En=>F.triggerEvent(new Ei(En)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ve.h)(F=>F instanceof Se),(0,nt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const F=this.injector.get(i.h0i);return this.processRoutes(F,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(F,ne){const oe=[];for(const Ee of ne)if(Ee.loadChildren&&!Ee.canLoad&&Ee._loadedConfig){const Le=Ee._loadedConfig;oe.push(this.processRoutes(Le.module,Le.routes))}else Ee.loadChildren&&!Ee.canLoad?oe.push(this.preloadConfig(F,Ee)):Ee.children&&oe.push(this.processRoutes(F,Ee.children));return(0,q.D)(oe).pipe((0,Xe.J)(),(0,Ue.U)(Ee=>{}))}preloadConfig(F,ne){return this.preloadingStrategy.preload(ne,()=>(ne._loadedConfig?(0,D.of)(ne._loadedConfig):this.loader.load(F.injector,ne)).pipe((0,zt.zg)(Ee=>(ne._loadedConfig=Ee,this.processRoutes(Ee.module,Ee.routes)))))}}return Y.\u0275fac=function(F){return new(F||Y)(i.LFG(Bn),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(Eo))},Y.\u0275prov=i.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),oa=(()=>{class Y{constructor(F,ne,oe={}){this.router=F,this.viewportScroller=ne,this.options=oe,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},oe.scrollPositionRestoration=oe.scrollPositionRestoration||"disabled",oe.anchorScrolling=oe.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(F=>{F instanceof Be?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=F.navigationTrigger,this.restoredId=F.restoredState?F.restoredState.navigationId:0):F instanceof Se&&(this.lastId=F.id,this.scheduleScrollEvent(F,this.router.parseUrl(F.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(F=>{F instanceof Ir&&(F.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(F.position):F.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(F.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(F,ne){this.router.triggerEvent(new Ir(F,"popstate"===this.lastSource?this.store[this.restoredId]:null,ne))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Y.\u0275fac=function(F){return new(F||Y)(i.LFG(Bn),i.LFG(m.EM),i.LFG(void 0))},Y.\u0275prov=i.Yz7({token:Y,factory:Y.\u0275fac}),Y})();const qr=new i.OlP("ROUTER_CONFIGURATION"),Ru=new i.OlP("ROUTER_FORROOT_GUARD"),Ta=[m.Ye,{provide:ts,useClass:Si},{provide:Bn,useFactory:function(Y,j,F,ne,oe,Ee,Le,Ze={},kt,En){const Zi=new Bn(null,Y,j,F,ne,oe,Ee,ii(Le));return kt&&(Zi.urlHandlingStrategy=kt),En&&(Zi.routeReuseStrategy=En),function(Y,j){Y.errorHandler&&(j.errorHandler=Y.errorHandler),Y.malformedUriErrorHandler&&(j.malformedUriErrorHandler=Y.malformedUriErrorHandler),Y.onSameUrlNavigation&&(j.onSameUrlNavigation=Y.onSameUrlNavigation),Y.paramsInheritanceStrategy&&(j.paramsInheritanceStrategy=Y.paramsInheritanceStrategy),Y.relativeLinkResolution&&(j.relativeLinkResolution=Y.relativeLinkResolution),Y.urlUpdateStrategy&&(j.urlUpdateStrategy=Y.urlUpdateStrategy)}(Ze,Zi),Ze.enableTracing&&Zi.events.subscribe(ni=>{var Dr,Ji;null===(Dr=console.group)||void 0===Dr||Dr.call(console,`Router Event: ${ni.constructor.name}`),console.log(ni.toString()),console.log(ni),null===(Ji=console.groupEnd)||void 0===Ji||Ji.call(console)}),Zi},deps:[ts,Nn,m.Ye,i.zs3,i.v3s,i.Sil,lt,qr,[class{},new i.FiY],[re,new i.FiY]]},Nn,{provide:Ar,useFactory:function(Y){return Y.routerState.root},deps:[Bn]},{provide:i.v3s,useClass:i.EAV},al,ar,zs,{provide:qr,useValue:{enableTracing:!1}}];function cl(){return new i.PXZ("Router",Bn)}let $s=(()=>{class Y{constructor(F,ne){}static forRoot(F,ne){return{ngModule:Y,providers:[Ta,Lu(F),{provide:Ru,useFactory:va,deps:[[Bn,new i.FiY,new i.tp0]]},{provide:qr,useValue:ne||{}},{provide:m.S$,useFactory:Ds,deps:[m.lw,[new i.tBr(m.mr),new i.FiY],qr]},{provide:oa,useFactory:ic,deps:[Bn,m.EM,qr]},{provide:Eo,useExisting:ne&&ne.preloadingStrategy?ne.preloadingStrategy:ar},{provide:i.PXZ,multi:!0,useFactory:cl},[Wn,{provide:i.ip1,multi:!0,useFactory:Nu,deps:[Wn]},{provide:cd,useFactory:ul,deps:[Wn]},{provide:i.tb,multi:!0,useExisting:cd}]]}}static forChild(F){return{ngModule:Y,providers:[Lu(F)]}}}return Y.\u0275fac=function(F){return new(F||Y)(i.LFG(Ru,8),i.LFG(Bn,8))},Y.\u0275mod=i.oAB({type:Y}),Y.\u0275inj=i.cJS({}),Y})();function ic(Y,j,F){return F.scrollOffset&&j.setOffset(F.scrollOffset),new oa(Y,j,F)}function Ds(Y,j,F={}){return F.useHash?new m.Do(Y,j):new m.b0(Y,j)}function va(Y){return"guarded"}function Lu(Y){return[{provide:i.deG,multi:!0,useValue:Y},{provide:lt,multi:!0,useValue:Y}]}let Wn=(()=>{class Y{constructor(F){this.injector=F,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new X.xQ}appInitializer(){return this.injector.get(m.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let ne=null;const oe=new Promise(Ze=>ne=Ze),Ee=this.injector.get(Bn),Le=this.injector.get(qr);return"disabled"===Le.initialNavigation?(Ee.setUpLocationChangeListener(),ne(!0)):"enabled"===Le.initialNavigation||"enabledBlocking"===Le.initialNavigation?(Ee.hooks.afterPreactivation=()=>this.initNavigation?(0,D.of)(null):(this.initNavigation=!0,ne(!0),this.resultOfPreactivationDone),Ee.initialNavigation()):ne(!0),oe})}bootstrapListener(F){const ne=this.injector.get(qr),oe=this.injector.get(al),Ee=this.injector.get(oa),Le=this.injector.get(Bn),Ze=this.injector.get(i.z2F);F===Ze.components[0]&&(("enabledNonBlocking"===ne.initialNavigation||void 0===ne.initialNavigation)&&Le.initialNavigation(),oe.setUpPreloading(),Ee.init(),Le.resetRootComponentType(Ze.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Y.\u0275fac=function(F){return new(F||Y)(i.LFG(i.zs3))},Y.\u0275prov=i.Yz7({token:Y,factory:Y.\u0275fac}),Y})();function Nu(Y){return Y.appInitializer.bind(Y)}function ul(Y){return Y.bootstrapListener.bind(Y)}const cd=new i.OlP("Router Initializer")},2672:(ge,G)=>{"use strict";function g(){var q=document.querySelectorAll("input, textarea, select");return Array.prototype.slice.call(q).map(function(O){var P=O.tagName.toLowerCase(),$=O.type,I=O.id&&"string"==typeof O.id?O.id:null,U=O.name&&"string"==typeof O.name?O.name:null,z=O.value&&"string"==typeof O.value?O.value:null,H=O.childNodes,A=Boolean(O.selected),X={tag:P,type:null,id:I,name:U,value:"",checked:!1,options:[]};if("input"===P||"textarea"===P){if(X.type=$,"input"!==P)return X.value=z,X;switch($){case"checkbox":case"radio":return X.checked=A,X.value=z,X;case"image":case"button":case"submit":case"reset":default:return X}}else if("select"===P){var Ie=Array.prototype.slice.call(H).map(function(ue,Ce){return{value:ue.value,selected:Boolean(ue.selected)}});return X.options=Ie,X}return X})}function m(q){var D=document.querySelectorAll("input, textarea");q.forEach(function(O,P){if("input"===O.tag||"textarea"===O.tag)if("input"!==O.tag||"checkbox"!==O.type&&"radio"!==O.type)("input"!==O.tagName.toLowerCase()||"image"!==O.type&&"button"!==O.type&&"submit"!==O.type&&"reset"!==O.type)&&(null===O.id&&null===O.name?O.value.length&&D[P]&&D[P].tagName.toLowerCase()===O.tag&&("textarea"===O.tag||D[P].getAttribute("type")===O.type)&&("string"!=typeof D[P].id||!D[P].id.length)&&("string"!=typeof D[P].getAttribute("name")||!D[P].getAttribute("name").length)&&(D[P].value=O.value,D[P].dispatchEvent(new CustomEvent("input",{detail:D[P].value}))):($="input"+(null!==O.id?"#"+O.id:"")+("input"===O.tag?'[type="'+O.type+'"]':"")+(null!==O.name?'[name="'+O.name+'"]':""),(I=document.body.querySelector($))&&O.value.length&&(I.value=O.value,I.dispatchEvent(new CustomEvent("input",{detail:I.value})))));else{var $="input"+(null!==O.id?"#"+O.id:"")+'[type="'+O.type+'"]'+(null!==O.name?'[name="'+O.name+'"]':"")+'[value="'+O.value+'"]';(I=document.body.querySelector($))&&Boolean(O.checked)&&(I.checked="checked",I.dispatchEvent(new CustomEvent("input",{detail:I.checked})))}else if("select"===O.tag){var I,U=null;if(null===O.id&&null===O.name)D[P]&&D[P].tagName.toLowerCase()===O.tag&&("string"!=typeof D[P].id||!D[P].id.length)&&("string"!=typeof D[P].getAttribute("name")||!D[P].getAttribute("name").length)&&(U=D[P]);else $="select"+(null!==O.id?"#"+O.id:"")+(null!==O.name?'[name="'+O.name+'"]':""),(I=document.body.querySelector($))&&(U=I);U&&O.options.forEach(function(z,H){var A=U.querySelector('option[value="'+z.value+'"]');!A&&U.childNodes[H]&&("string"!=typeof U.childNodes[H].value||!U.childNodes[H].value.length)&&(A=U.childNodes[H]),A&&z.selected&&(A.selected="selected",A.dispatchEvent(new CustomEvent("input",{detail:A.selected})))})}})}Object.defineProperty(G,"__esModule",{value:!0}),G.__getInputValues=g,G.__setInputValues=m,G.__createInputTransfer=function(){var q=g();return function(){return m(q)}}},2577:(ge,G)=>{"use strict";function g($){return $}function D(){var $=document.querySelectorAll("input");return Array.prototype.slice.call($).map(function(U){return U.value})}function O($){var I=document.querySelectorAll("input");$&&I.length===$.length&&($.forEach(function(U,z){var H=I[z];H.value=U,H.dispatchEvent(new CustomEvent("input",{detail:H.value}))}),$.length=0)}Object.defineProperty(G,"__esModule",{value:!0}),G.bootloader=function($,I,U){"object"==typeof $&&(I=$.before,U=$.after,$=$.main),I=I||g,U=U||g;var H=document.readyState;switch(H){case"loading":document.addEventListener("DOMContentLoaded",function A(){document.removeEventListener("DOMContentLoaded",A),U($(I(H)))});break;case"interactive":case"complete":default:U($(I(H)))}},G.createNewHosts=function($){var I=Array.prototype.map.call($,function(U){var z=document.createElement(U.tagName),H=U.parentNode,A=z.style.display;return z.style.display="none",H.insertBefore(z,U),function(){z.style.display=A;try{H.removeChild(U)}catch(de){}}});return function(){I.forEach(function(z){return z()})}},G.removeNgStyles=function(){var $=document.head,I=$.querySelectorAll("style");Array.prototype.slice.call(I).filter(function(z){return-1!==z.innerText.indexOf("_ng")}).map(function(z){return $.removeChild(z)})},G.getInputValues=D,G.setInputValues=O,G.createInputTransfer=function(){var $=D();return function(){return O($)}}},2551:(ge,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.MODULE_CONFIG={OnInit:"hmrOnInit",OnStatus:"hmrOnStatus",OnCheck:"hmrOnCheck",OnDecline:"hmrOnDecline",OnDestroy:"hmrOnDestroy",AfterDestroy:"hmrAfterDestroy"},G.hmrModule=function(m,i,q){return void 0===q&&(q=G.MODULE_CONFIG),i.hot&&(i.hot.accept(),m.instance[G.MODULE_CONFIG.OnInit]&&i.hot.data&&m.instance[G.MODULE_CONFIG.OnInit](i.hot.data),m.instance[G.MODULE_CONFIG.OnStatus]&&i.hot.apply(function(O){m.instance[G.MODULE_CONFIG.OnStatus](O)}),m.instance[G.MODULE_CONFIG.OnCheck]&&i.hot.check(function(O,P){m.instance[G.MODULE_CONFIG.OnCheck](O,P)}),m.instance[G.MODULE_CONFIG.OnDecline]&&i.hot.decline(function(O){m.instance[G.MODULE_CONFIG.OnDecline](O)}),i.hot.dispose(function(O){m.instance[G.MODULE_CONFIG.OnDestroy]&&m.instance[G.MODULE_CONFIG.OnDestroy](O),m.destroy(),m.instance[G.MODULE_CONFIG.AfterDestroy]&&m.instance[G.MODULE_CONFIG.AfterDestroy](O)})),m}},1049:(ge,G,g)=>{"use strict";function m(i){for(var q in i)G.hasOwnProperty(q)||(G[q]=i[q])}Object.defineProperty(G,"__esModule",{value:!0}),m(g(2577)),m(g(2672)),m(g(2551))},3498:(ge,G,g)=>{"use strict";function O(S,Z,T,re){var lt,ye=arguments.length,Re=ye<3?Z:null===re?re=Object.getOwnPropertyDescriptor(Z,T):re;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Re=Reflect.decorate(S,Z,T,re);else for(var Fn=S.length-1;Fn>=0;Fn--)(lt=S[Fn])&&(Re=(ye<3?lt(Re):ye>3?lt(Z,T,Re):lt(Z,T))||Re);return ye>3&&Re&&Object.defineProperty(Z,T,Re),Re}function P(S,Z){return function(T,re){Z(T,re,S)}}function I(S,Z,T,re){return new(T||(T=Promise))(function(Re,lt){function Fn(Pr){try{Nn(re.next(Pr))}catch(Pi){lt(Pi)}}function dr(Pr){try{Nn(re.throw(Pr))}catch(Pi){lt(Pi)}}function Nn(Pr){Pr.done?Re(Pr.value):function(Re){return Re instanceof T?Re:new T(function(lt){lt(Re)})}(Pr.value).then(Fn,dr)}Nn((re=re.apply(S,Z||[])).next())})}g.d(G,{dr:()=>jr,YG:()=>yr,Sm:()=>Go,PM:()=>mr,FN:()=>pn,gZ:()=>ur,wI:()=>rr,W2:()=>Ri,jY:()=>$r,Gu:()=>yo,gu:()=>_i,Ie:()=>Fs,Q$:()=>pt,q_:()=>tt,fG:()=>Ft,jP:()=>yn,Nd:()=>Ba,t9:()=>ms,n0:()=>Gr,wd:()=>Ns,sr:()=>ss,Pc:()=>_s,t4:()=>lr,YI:()=>zc,QI:()=>Xn});var C=g(4788),Dt=g(4751),Ue=g(2057),je=g(2636),He=g(4086),nt=(g(9554),g(7405),g(7807)),Ht=g(9461),zt=g(7585),wt=g(2377),ht=g(4001),ft=g(5554),Xe=g(7053),Be=(g(960),g(3150)),Ge=g(9765),Ct=g(2759),Rt=g(6215),Sn=g(5435),Tn=g(3190),Hn=g(7519);const Ei=zt.i,cn=["*"],fr=S=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(S):"function"==typeof requestAnimationFrame?requestAnimationFrame(S):setTimeout(S);let At=(()=>{class S{constructor(T,re){this.injector=T,this.el=re,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(T){this.el.nativeElement.value=this.lastValue=null==T?"":T,Je(this.el)}handleChangeEvent(T,re){T===this.el.nativeElement&&(re!==this.lastValue&&(this.lastValue=re,this.onChange(re)),Je(this.el))}_handleBlurEvent(T){T===this.el.nativeElement&&(this.onTouched(),Je(this.el))}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.el.nativeElement.disabled=T}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let T;try{T=this.injector.get(Dt.a5)}catch(ye){}if(!T)return;T.statusChanges&&(this.statusChanges=T.statusChanges.subscribe(()=>Je(this.el)));const re=T.control;re&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Re=>{if(re[Re]){const lt=re[Re].bind(re);re[Re]=(...Fn)=>{lt(...Fn),Je(this.el)}}})}}return S.\u0275fac=function(T){C.$Z()},S.\u0275dir=C.lG2({type:S,hostBindings:function(T,re){1&T&&C.NdJ("ionBlur",function(Re){return re._handleBlurEvent(Re.target)})}}),O([(0,C.L6J)("ionBlur",["$event.target"])],S.prototype,"_handleBlurEvent",null),S})();const Je=S=>{fr(()=>{const Z=S.nativeElement,T=et(Z);Kt(Z,T);const re=Z.closest("ion-item");re&&Kt(re,T)})},et=S=>{const Z=S.classList,T=[];for(let re=0;re{const T=S.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(re=>T.remove(re)),Z.forEach(re=>T.add(re))},Nt=(S,Z)=>S.substr(0,Z.length)===Z;var ii;let ki=ii=class extends At{constructor(Z,T){super(Z,T)}writeValue(Z){this.el.nativeElement.checked=this.lastValue=null!=Z&&Z,Je(this.el)}_handleIonChange(Z){this.handleChangeEvent(Z,Z.checked)}};var Ui;ki.\u0275fac=function(Z){return new(Z||ki)(C.Y36(C.zs3),C.Y36(C.SBq))},ki.\u0275dir=C.lG2({type:ki,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(Z,T){1&Z&&C.NdJ("ionChange",function(ye){return T._handleIonChange(ye.target)})},features:[C._Bn([{provide:Dt.JU,useExisting:ii,multi:!0}]),C.qOj]}),ki.ctorParameters=()=>[{type:C.zs3},{type:C.SBq}],O([(0,C.L6J)("ionChange",["$event.target"])],ki.prototype,"_handleIonChange",null);let Ln=Ui=class extends At{constructor(Z,T){super(Z,T)}_handleIonChange(Z){this.handleChangeEvent(Z,Z.value)}registerOnChange(Z){super.registerOnChange(T=>{Z(""===T?null:parseFloat(T))})}};var Ii;Ln.\u0275fac=function(Z){return new(Z||Ln)(C.Y36(C.zs3),C.Y36(C.SBq))},Ln.\u0275dir=C.lG2({type:Ln,selectors:[["ion-input","type","number"]],hostBindings:function(Z,T){1&Z&&C.NdJ("ionChange",function(ye){return T._handleIonChange(ye.target)})},features:[C._Bn([{provide:Dt.JU,useExisting:Ui,multi:!0}]),C.qOj]}),Ln.ctorParameters=()=>[{type:C.zs3},{type:C.SBq}],O([(0,C.L6J)("ionChange",["$event.target"])],Ln.prototype,"_handleIonChange",null);let si=Ii=class extends At{constructor(Z,T){super(Z,T)}_handleIonSelect(Z){this.handleChangeEvent(Z,Z.checked)}};var Zn;si.\u0275fac=function(Z){return new(Z||si)(C.Y36(C.zs3),C.Y36(C.SBq))},si.\u0275dir=C.lG2({type:si,selectors:[["ion-radio"]],hostBindings:function(Z,T){1&Z&&C.NdJ("ionSelect",function(ye){return T._handleIonSelect(ye.target)})},features:[C._Bn([{provide:Dt.JU,useExisting:Ii,multi:!0}]),C.qOj]}),si.ctorParameters=()=>[{type:C.zs3},{type:C.SBq}],O([(0,C.L6J)("ionSelect",["$event.target"])],si.prototype,"_handleIonSelect",null);let Xn=Zn=class extends At{constructor(Z,T){super(Z,T)}_handleChangeEvent(Z){this.handleChangeEvent(Z,Z.value)}};var fi;Xn.\u0275fac=function(Z){return new(Z||Xn)(C.Y36(C.zs3),C.Y36(C.SBq))},Xn.\u0275dir=C.lG2({type:Xn,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(Z,T){1&Z&&C.NdJ("ionChange",function(ye){return T._handleChangeEvent(ye.target)})},features:[C._Bn([{provide:Dt.JU,useExisting:Zn,multi:!0}]),C.qOj]}),Xn.ctorParameters=()=>[{type:C.zs3},{type:C.SBq}],O([(0,C.L6J)("ionChange",["$event.target"])],Xn.prototype,"_handleChangeEvent",null);let _r=fi=class extends At{constructor(Z,T){super(Z,T)}_handleInputEvent(Z){this.handleChangeEvent(Z,Z.value)}};_r.\u0275fac=function(Z){return new(Z||_r)(C.Y36(C.zs3),C.Y36(C.SBq))},_r.\u0275dir=C.lG2({type:_r,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(Z,T){1&Z&&C.NdJ("ionChange",function(ye){return T._handleInputEvent(ye.target)})},features:[C._Bn([{provide:Dt.JU,useExisting:fi,multi:!0}]),C.qOj]}),_r.ctorParameters=()=>[{type:C.zs3},{type:C.SBq}],O([(0,C.L6J)("ionChange",["$event.target"])],_r.prototype,"_handleInputEvent",null);let lr=class{constructor(Z,T){this.doc=Z,this.backButton=new Ge.xQ,this.keyboardDidShow=new Ge.xQ,this.keyboardDidHide=new Ge.xQ,this.pause=new Ge.xQ,this.resume=new Ge.xQ,this.resize=new Ge.xQ,T.run(()=>{let re;this.win=Z.defaultView,this.backButton.subscribeWithPriority=function(ye,Re){return this.subscribe(lt=>lt.register(ye,Fn=>T.run(()=>Re(Fn))))},Nr(this.pause,Z,"pause"),Nr(this.resume,Z,"resume"),Nr(this.backButton,Z,"ionBackButton"),Nr(this.resize,this.win,"resize"),Nr(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),Nr(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(ye=>{re=ye}),this.win&&this.win.cordova?Z.addEventListener("deviceready",()=>{re("cordova")},{once:!0}):re("dom")})}is(Z){return(0,zt.a)(this.win,Z)}platforms(){return(0,zt.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(Z){return rs(this.win.location.href,Z)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}testUserAgent(Z){const T=this.win.navigator;return!!(T&&T.userAgent&&T.userAgent.indexOf(Z)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}};lr.\u0275fac=function(Z){return new(Z||lr)(C.LFG(Ue.K0),C.LFG(C.R0b))},lr.\u0275prov=C.Yz7({token:lr,factory:function(S){return lr.\u0275fac(S)},providedIn:"root"}),lr.ngInjectableDef=(0,C.Yz7)({factory:function(){return new lr((0,C.LFG)(Ue.K0),(0,C.LFG)(C.R0b))},token:lr,providedIn:"root"}),lr=O([P(0,(0,C.tBr)(Ue.K0))],lr);const rs=(S,Z)=>{Z=Z.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const re=new RegExp("[\\?&]"+Z+"=([^&#]*)").exec(S);return re?decodeURIComponent(re[1].replace(/\+/g," ")):null},Nr=(S,Z,T)=>{Z&&Z.addEventListener(T,re=>{S.next(null!=re?re.detail:void 0)})};let Fi=class{constructor(Z,T,re,ye){this.location=T,this.serializer=re,this.router=ye,this.direction=Wo,this.animated=To,this.guessDirection="forward",this.lastNavId=-1,ye&&ye.events.subscribe(Re=>{if(Re instanceof je.OD){const lt=Re.restoredState?Re.restoredState.navigationId:Re.id;this.guessDirection=lt{this.pop(),Re()})}navigateForward(Z,T={}){return this.setDirection("forward",T.animated,T.animationDirection,T.animation),this.navigate(Z,T)}navigateBack(Z,T={}){return this.setDirection("back",T.animated,T.animationDirection,T.animation),this.navigate(Z,T)}navigateRoot(Z,T={}){return this.setDirection("root",T.animated,T.animationDirection,T.animation),this.navigate(Z,T)}back(Z={animated:!0,animationDirection:"back"}){return this.setDirection("back",Z.animated,Z.animationDirection,Z.animation),this.location.back()}pop(){return I(this,void 0,void 0,function*(){let Z=this.topOutlet;for(;Z&&!(yield Z.pop());)Z=Z.parentOutlet})}setDirection(Z,T,re,ye){this.direction=Z,this.animated=Jn(Z,T,re),this.animationBuilder=ye}setTopOutlet(Z){this.topOutlet=Z}consumeTransition(){let T,Z="root";const re=this.animationBuilder;return"auto"===this.direction?(Z=this.guessDirection,T=this.guessAnimation):(T=this.animated,Z=this.direction),this.direction=Wo,this.animated=To,this.animationBuilder=void 0,{direction:Z,animation:T,animationBuilder:re}}navigate(Z,T){if(Array.isArray(Z))return this.router.navigate(Z,T);{const re=this.serializer.parse(Z.toString());return void 0!==T.queryParams&&(re.queryParams=Object.assign({},T.queryParams)),void 0!==T.fragment&&(re.fragment=T.fragment),this.router.navigateByUrl(re,T)}}};Fi.\u0275fac=function(Z){return new(Z||Fi)(C.LFG(lr),C.LFG(Ue.Ye),C.LFG(je.Hx),C.LFG(je.F0,8))},Fi.\u0275prov=C.Yz7({token:Fi,factory:function(S){return Fi.\u0275fac(S)},providedIn:"root"}),Fi.ngInjectableDef=(0,C.Yz7)({factory:function(){return new Fi((0,C.LFG)(lr),(0,C.LFG)(Ue.Ye),(0,C.LFG)(je.Hx),(0,C.LFG)(je.F0,8))},token:Fi,providedIn:"root"}),Fi=O([P(3,(0,C.FiY)())],Fi);const Jn=(S,Z,T)=>{if(!1!==Z){if(void 0!==T)return T;if("forward"===S||"back"===S)return S;if("root"===S&&!0===Z)return"forward"}},Wo="auto",To=void 0,ks=(S,Z)=>{const T=S.prototype;Z.forEach(re=>{Object.defineProperty(T,re,{get(){return this.el[re]},set(ye){this.z.runOutsideAngular(()=>this.el[re]=ye)}})})},ts=(S,Z)=>{const T=S.prototype;Z.forEach(re=>{T[re]=function(){const ye=arguments;return this.z.runOutsideAngular(()=>this.el[re].apply(this.el,ye))}})},Si=(S,Z,T)=>{T.forEach(re=>S[re]=(0,Ct.R)(Z,re))};function un(S){return function(T){return S.inputs&&ks(T,S.inputs),S.methods&&ts(T,S.methods),T}}let jr=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-app"]],ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S})(),yr=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement,Si(this,this.el,["ionFocus","ionBlur"])}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],S),S})(),Go=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["collapse"]})],S),S})(),mr=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],S),S})(),pn=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["mode"]})],S),S})(),ur=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["color","mode"]})],S),S})(),rr=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],S),S})(),Ri=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement,Si(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],S),S})(),$r=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["fixed"]})],S),S})(),yo=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["collapse","mode","translucent"]})],S),S})(),_i=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],S),S})(),Fs=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],S),S})(),pt=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["color","mode","position"]})],S),S})(),tt=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],S),S})(),Ft=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["autoHide","color","disabled","menu","mode","type"]})],S),S})(),Ba=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-row"]],ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S})(),ms=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement,Si(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],S),S})(),Gr=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["disabled","value"]})],S),S})(),Ns=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["color","size"]})],S),S})(),ss=(()=>{let S=class{constructor(T,re,ye){this.z=ye,T.detach(),this.el=re.nativeElement}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(C.R0b))},S.\u0275cmp=C.Xpm({type:S,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:cn,decls:1,vars:0,template:function(T,re){1&T&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),S=O([un({inputs:["color","mode"]})],S),S})(),Yn=class{get(Z,T){const re=gs();return re?re.get(Z,T):null}getBoolean(Z,T){const re=gs();return!!re&&re.getBoolean(Z,T)}getNumber(Z,T){const re=gs();return re?re.getNumber(Z,T):0}set(Z,T){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");const re=gs();re&&re.set(Z,T)}};Yn.\u0275fac=function(Z){return new(Z||Yn)},Yn.\u0275prov=C.Yz7({token:Yn,factory:function(S){return Yn.\u0275fac(S)},providedIn:"root"}),Yn.ngInjectableDef=(0,C.Yz7)({factory:function(){return new Yn},token:Yn,providedIn:"root"});const as=new C.OlP("USERCONFIG"),gs=()=>{if("undefined"!=typeof window){const S=window.Ionic;if(S&&S.config)return S.config}return null};class Cr{constructor(Z={}){this.data=Z}get(Z){return this.data[Z]}}let Jt=(()=>{let S=class{constructor(T,re){this.zone=T,this.appRef=re}create(T,re,ye){return new sr(T,re,ye,this.appRef,this.zone)}};return S.\u0275fac=function(T){return new(T||S)(C.LFG(C.R0b),C.LFG(C.z2F))},S.\u0275prov=C.Yz7({token:S,factory:function(Z){return S.\u0275fac(Z)}}),S})();class sr{constructor(Z,T,re,ye,Re){this.resolver=Z,this.injector=T,this.location=re,this.appRef=ye,this.zone=Re,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(Z,T,re,ye){return this.zone.run(()=>new Promise(Re=>{Re(Wi(this.zone,this.resolver,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,Z,T,re,ye))}))}removeViewFromDom(Z,T){return this.zone.run(()=>new Promise(re=>{const ye=this.elRefMap.get(T);if(ye){ye.destroy(),this.elRefMap.delete(T);const Re=this.elEventsMap.get(T);Re&&(Re(),this.elEventsMap.delete(T))}re()}))}}const Wi=(S,Z,T,re,ye,Re,lt,Fn,dr,Nn,Pr)=>{const Pi=Z.resolveComponentFactory(dr),Sr=C.zs3.create({providers:Gi(Nn),parent:T}),Ke=re?re.createComponent(Pi,re.length,Sr):Pi.create(Sr),xt=Ke.instance,ct=Ke.location.nativeElement;if(Nn&&Object.assign(xt,Nn),Pr)for(const Bn of Pr)ct.classList.add(Bn);const Zt=No(S,xt,ct);return Fn.appendChild(ct),re||ye.attachView(Ke.hostView),Ke.changeDetectorRef.reattach(),Re.set(ct,Ke),lt.set(ct,Zt),ct},Er=[ht.L,ht.a,ht.b,ht.c,ht.d],No=(S,Z,T)=>S.run(()=>{const re=Er.filter(ye=>"function"==typeof Z[ye]).map(ye=>{const Re=lt=>Z[ye](lt.detail);return T.addEventListener(ye,Re),()=>T.removeEventListener(ye,Re)});return()=>re.forEach(ye=>ye())}),wo=new C.OlP("NavParamsToken"),Gi=S=>[{provide:wo,useValue:S},{provide:Cr,useFactory:W,deps:[wo]}],W=S=>new Cr(S),k=(S,Z)=>((S=S.filter(T=>T.stackId!==Z.stackId)).push(Z),S),zn=(S,Z)=>{const T=S.createUrlTree(["."],{relativeTo:Z});return S.serializeUrl(T)},hi=(S,Z)=>{if(!S)return;const T=Un(Z);for(let re=0;re=S.length)return T[re];if(T[re]!==S[re])return}},Un=S=>S.split("/").map(Z=>Z.trim()).filter(Z=>""!==Z),Ai=S=>{S&&(S.ref.destroy(),S.unlistenEvents())};class Or{constructor(Z,T,re,ye,Re,lt){this.containerEl=T,this.router=re,this.navCtrl=ye,this.zone=Re,this.location=lt,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==Z?Un(Z):void 0}createView(Z,T){const re=zn(this.router,T),ye=Z&&Z.location&&Z.location.nativeElement,Re=No(this.zone,Z.instance,ye);return{id:this.nextId++,stackId:hi(this.tabsPrefix,re),unlistenEvents:Re,element:ye,ref:Z,url:re}}getExistingView(Z){const T=zn(this.router,Z),re=this.views.find(ye=>ye.url===T);return re&&re.ref.changeDetectorRef.reattach(),re}setActive(Z){const T=this.navCtrl.consumeTransition();let{direction:re,animation:ye,animationBuilder:Re}=T;const lt=this.activeView,Fn=((S,Z)=>!Z||S.stackId!==Z.stackId)(Z,lt);Fn&&(re="back",ye=void 0);const dr=this.views.slice();let Nn;const Pr=this.router;Pr.getCurrentNavigation?Nn=Pr.getCurrentNavigation():Pr.navigations&&Pr.navigations.value&&(Nn=Pr.navigations.value),Nn&&Nn.extras&&Nn.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Pi=this.views.includes(Z),Sr=this.insertView(Z,re);Pi||Z.ref.changeDetectorRef.detectChanges();const Ke=Z.animationBuilder;return void 0===Re&&"back"===re&&!Fn&&void 0!==Ke&&(Re=Ke),lt&&(lt.animationBuilder=Re),this.zone.runOutsideAngular(()=>this.wait(()=>(lt&<.ref.changeDetectorRef.detach(),Z.ref.changeDetectorRef.reattach(),this.transition(Z,lt,ye,this.canGoBack(1),!1,Re).then(()=>Vs(Z,Sr,dr,this.location)).then(()=>({enteringView:Z,direction:re,animation:ye,tabSwitch:Fn})))))}canGoBack(Z,T=this.getActiveStackId()){return this.getStack(T).length>Z}pop(Z,T=this.getActiveStackId()){return this.zone.run(()=>{const re=this.getStack(T);if(re.length<=Z)return Promise.resolve(!1);const ye=re[re.length-Z-1];let Re=ye.url;const lt=ye.savedData;if(lt){const dr=lt.get("primary");dr&&dr.route&&dr.route._routerState&&dr.route._routerState.snapshot&&dr.route._routerState.snapshot.url&&(Re=dr.route._routerState.snapshot.url)}const{animationBuilder:Fn}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(Re,Object.assign({},ye.savedExtras,{animation:Fn})).then(()=>!0)})}startBackTransition(){const Z=this.activeView;if(Z){const T=this.getStack(Z.stackId),re=T[T.length-2],ye=re.animationBuilder;return this.wait(()=>this.transition(re,Z,"back",this.canGoBack(2),!0,ye))}return Promise.resolve()}endBackTransition(Z){Z?(this.skipTransition=!0,this.pop(1)):this.activeView&&Bs(this.activeView,this.views,this.views,this.location)}getLastUrl(Z){const T=this.getStack(Z);return T.length>0?T[T.length-1]:void 0}getRootUrl(Z){const T=this.getStack(Z);return T.length>0?T[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(Ai),this.activeView=void 0,this.views=[]}getStack(Z){return this.views.filter(T=>T.stackId===Z)}insertView(Z,T){return this.activeView=Z,this.views=((S,Z,T)=>"root"===T?k(S,Z):"forward"===T?((S,Z)=>(S.indexOf(Z)>=0?S=S.filter(re=>re.stackId!==Z.stackId||re.id<=Z.id):S.push(Z),S))(S,Z):((S,Z)=>S.indexOf(Z)>=0?S.filter(re=>re.stackId!==Z.stackId||re.id<=Z.id):k(S,Z))(S,Z))(this.views,Z,T),this.views.slice()}transition(Z,T,re,ye,Re,lt){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(T===Z)return Promise.resolve(!1);const Fn=Z?Z.element:void 0,dr=T?T.element:void 0,Nn=this.containerEl;return Fn&&Fn!==dr&&(Fn.classList.add("ion-page"),Fn.classList.add("ion-page-invisible"),Fn.parentElement!==Nn&&Nn.appendChild(Fn),Nn.commit)?Nn.commit(Fn,dr,{deepWait:!0,duration:void 0===re?0:void 0,direction:re,showGoBack:ye,progressAnimation:Re,animationBuilder:lt}):Promise.resolve(!1)}wait(Z){return I(this,void 0,void 0,function*(){void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0);const T=this.runningTask=Z();return T.finally(()=>this.runningTask=void 0),T})}}const Vs=(S,Z,T,re)=>"function"==typeof requestAnimationFrame?new Promise(ye=>{requestAnimationFrame(()=>{Bs(S,Z,T,re),ye()})}):Promise.resolve(),Bs=(S,Z,T,re)=>{T.filter(ye=>!Z.includes(ye)).forEach(Ai),Z.forEach(ye=>{const lt=re.path().split("?")[0].split("#")[0];if(ye!==S&&ye.url!==lt){const Fn=ye.element;Fn.setAttribute("aria-hidden","true"),Fn.classList.add("ion-page-hidden"),ye.ref.changeDetectorRef.detach()}})};let yn=(()=>{let S=class{constructor(T,re,ye,Re,lt,Fn,dr,Nn,Pr,Pi,Sr,Ke,xt){this.parentContexts=T,this.location=re,this.resolver=ye,this.config=Fn,this.navCtrl=dr,this.parentOutlet=xt,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Rt.X(null),this.stackEvents=new C.vpe,this.activateEvents=new C.vpe,this.deactivateEvents=new C.vpe,this.nativeEl=Pr.nativeElement,this.name=Re||je.eC,this.tabsPrefix="true"===lt?zn(Pi,Ke):void 0,this.stackCtrl=new Or(this.tabsPrefix,this.nativeEl,Pi,dr,Sr,Nn),T.onChildOutletCreated(this.name,this)}set animation(T){this.nativeEl.animation=T}set animated(T){this.nativeEl.animated=T}set swipeGesture(T){this._swipeGesture=T,this.nativeEl.swipeHandler=T?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:re=>this.stackCtrl.endBackTransition(re)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const T=this.getContext();T&&T.route&&this.activateWith(T.route,T.resolver||null)}new Promise(T=>(0,wt.c)(this.nativeEl,T)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}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(){throw new Error("incompatible reuse strategy")}attach(T,re){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const re=this.getContext();this.activatedView.savedData=new Map(re.children.contexts);const ye=this.activatedView.savedData.get("primary");if(ye&&re.route&&(ye.route=Object.assign({},re.route)),this.activatedView.savedExtras={},re.route){const Re=re.route.snapshot;this.activatedView.savedExtras.queryParams=Re.queryParams,this.activatedView.savedExtras.fragment=Re.fragment}}const T=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(T)}}activateWith(T,re){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=T;let ye,Re=this.stackCtrl.getExistingView(T);if(Re){ye=this.activated=Re.ref;const lt=Re.savedData;lt&&(this.getContext().children.contexts=lt),this.updateActivatedRouteProxy(ye.instance,T)}else{const dr=(re=re||this.resolver).resolveComponentFactory(T._futureSnapshot.routeConfig.component),Nn=this.parentContexts.getOrCreateContext(this.name).children,Pr=new Rt.X(null),Pi=this.createActivatedRouteProxy(Pr,T),Sr=new ma(Pi,Nn,this.location.injector);ye=this.activated=this.location.createComponent(dr,this.location.length,Sr),Pr.next(ye.instance),Re=this.stackCtrl.createView(this.activated,T),this.proxyMap.set(ye.instance,Pi),this.currentActivatedRoute$.next({component:ye.instance,activatedRoute:T})}this.activatedView=Re,this.stackCtrl.setActive(Re).then(lt=>{this.navCtrl.setTopOutlet(this),this.activateEvents.emit(ye.instance),this.stackEvents.emit(lt)})}canGoBack(T=1,re){return this.stackCtrl.canGoBack(T,re)}pop(T=1,re){return this.stackCtrl.pop(T,re)}getLastUrl(T){const re=this.stackCtrl.getLastUrl(T);return re?re.url:void 0}getLastRouteView(T){return this.stackCtrl.getLastUrl(T)}getRootView(T){return this.stackCtrl.getRootUrl(T)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(T,re){const ye=new je.gz;return ye._futureSnapshot=re._futureSnapshot,ye._routerState=re._routerState,ye.snapshot=re.snapshot,ye.outlet=re.outlet,ye.component=re.component,ye._paramMap=this.proxyObservable(T,"paramMap"),ye._queryParamMap=this.proxyObservable(T,"queryParamMap"),ye.url=this.proxyObservable(T,"url"),ye.params=this.proxyObservable(T,"params"),ye.queryParams=this.proxyObservable(T,"queryParams"),ye.fragment=this.proxyObservable(T,"fragment"),ye.data=this.proxyObservable(T,"data"),ye}proxyObservable(T,re){return T.pipe((0,Sn.h)(ye=>!!ye),(0,Tn.w)(ye=>this.currentActivatedRoute$.pipe((0,Sn.h)(Re=>null!==Re&&Re.component===ye),(0,Tn.w)(Re=>Re&&Re.activatedRoute[re]),(0,Hn.x)())))}updateActivatedRouteProxy(T,re){const ye=this.proxyMap.get(T);if(!ye)throw new Error("Could not find activated route proxy for view");ye._futureSnapshot=re._futureSnapshot,ye._routerState=re._routerState,ye.snapshot=re.snapshot,ye.outlet=re.outlet,ye.component=re.component,this.currentActivatedRoute$.next({component:T,activatedRoute:re})}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(je.y6),C.Y36(C.s_b),C.Y36(C._Vd),C.$8M("name"),C.$8M("tabs"),C.Y36(Yn),C.Y36(Fi),C.Y36(Ue.Ye),C.Y36(C.SBq),C.Y36(je.F0),C.Y36(C.R0b),C.Y36(je.gz),C.Y36(S,12))},S.\u0275dir=C.lG2({type:S,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),O([(0,C.r_U)()],S.prototype,"stackEvents",void 0),O([(0,C.r_U)("activate")],S.prototype,"activateEvents",void 0),O([(0,C.r_U)("deactivate")],S.prototype,"deactivateEvents",void 0),S=O([P(3,(0,C.ahi)("name")),P(4,(0,C.FiY)()),P(4,(0,C.ahi)("tabs")),P(12,(0,C.tp0)()),P(12,(0,C.FiY)())],S),S})();class ma{constructor(Z,T,re){this.route=Z,this.childContexts=T,this.parent=re}get(Z,T){return Z===je.gz?this.route:Z===je.y6?this.childContexts:this.parent.get(Z,T)}}let zc=(()=>{let S=class{constructor(T,re,ye,Re,lt){this.locationStrategy=T,this.navCtrl=re,this.elementRef=ye,this.router=Re,this.routerLink=lt,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateTargetUrlAndHref(){if(this.routerLink){const T=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=T}}onClick(T){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),T.preventDefault()}};return S.\u0275fac=function(T){return new(T||S)(C.Y36(Ue.S$),C.Y36(Fi),C.Y36(C.SBq),C.Y36(je.F0),C.Y36(je.rH,8))},S.\u0275dir=C.lG2({type:S,selectors:[["","routerLink",""]],hostBindings:function(T,re){1&T&&C.NdJ("click",function(Re){return re.onClick(Re)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[C.TTD]}),O([(0,C.L6J)("click",["$event"])],S.prototype,"onClick",null),S=O([P(4,(0,C.FiY)())],S),S})();class Ms{constructor(Z){this.ctrl=Z}create(Z){return this.ctrl.create(Z||{})}dismiss(Z,T,re){return this.ctrl.dismiss(Z,T,re)}getTop(){return this.ctrl.getTop()}}let xs=class extends Ms{constructor(){super(Xe.b)}};xs.\u0275fac=function(Z){return new(Z||xs)},xs.\u0275prov=C.Yz7({token:xs,factory:function(S){return xs.\u0275fac(S)},providedIn:"root"}),xs.ngInjectableDef=(0,C.Yz7)({factory:function(){return new xs},token:xs,providedIn:"root"});let Vo=class extends Ms{constructor(){super(Xe.a)}};Vo.\u0275fac=function(Z){return new(Z||Vo)},Vo.\u0275prov=C.Yz7({token:Vo,factory:function(S){return Vo.\u0275fac(S)},providedIn:"root"}),Vo.ngInjectableDef=(0,C.Yz7)({factory:function(){return new Vo},token:Vo,providedIn:"root"});let ro=class extends Ms{constructor(){super(Xe.l)}};ro.\u0275fac=function(Z){return new(Z||ro)},ro.\u0275prov=C.Yz7({token:ro,factory:function(S){return ro.\u0275fac(S)},providedIn:"root"}),ro.ngInjectableDef=(0,C.Yz7)({factory:function(){return new ro},token:ro,providedIn:"root"});let ns=class{open(Z){return ft.m.open(Z)}close(Z){return ft.m.close(Z)}toggle(Z){return ft.m.toggle(Z)}enable(Z,T){return ft.m.enable(Z,T)}swipeGesture(Z,T){return ft.m.swipeGesture(Z,T)}isOpen(Z){return ft.m.isOpen(Z)}isEnabled(Z){return ft.m.isEnabled(Z)}get(Z){return ft.m.get(Z)}getOpen(){return ft.m.getOpen()}getMenus(){return ft.m.getMenus()}};ns.\u0275fac=function(Z){return new(Z||ns)},ns.\u0275prov=C.Yz7({token:ns,factory:function(S){return ns.\u0275fac(S)},providedIn:"root"}),ns.ngInjectableDef=(0,C.Yz7)({factory:function(){return new ns},token:ns,providedIn:"root"});let ra=class extends Ms{constructor(){super(Xe.p)}};ra.\u0275fac=function(Z){return new(Z||ra)},ra.\u0275prov=C.Yz7({token:ra,factory:function(S){return ra.\u0275fac(S)},providedIn:"root"}),ra.ngInjectableDef=(0,C.Yz7)({factory:function(){return new ra},token:ra,providedIn:"root"});let Da=(()=>{let S=class extends Ms{constructor(T,re,ye){super(Xe.m),this.angularDelegate=T,this.resolver=re,this.injector=ye}create(T){return super.create(Object.assign({},T,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return S.\u0275fac=function(T){return new(T||S)(C.LFG(Jt),C.LFG(C._Vd),C.LFG(C.zs3))},S.\u0275prov=C.Yz7({token:S,factory:function(Z){return S.\u0275fac(Z)}}),S})(),nc=(()=>{let S=class extends Ms{constructor(T,re,ye){super(Xe.c),this.angularDelegate=T,this.resolver=re,this.injector=ye}create(T){return super.create(Object.assign({},T,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return S.\u0275fac=function(T){return new(T||S)(C.LFG(Jt),C.LFG(C._Vd),C.LFG(C.zs3))},S.\u0275prov=C.Yz7({token:S,factory:function(Z){return S.\u0275fac(Z)}}),S})(),js=class extends Ms{constructor(){super(Xe.t)}};js.\u0275fac=function(Z){return new(Z||js)},js.\u0275prov=C.Yz7({token:js,factory:function(S){return js.\u0275fac(S)},providedIn:"root"}),js.ngInjectableDef=(0,C.Yz7)({factory:function(){return new js},token:js,providedIn:"root"});let Br=class{read(Z){vs().read(Z)}write(Z){vs().write(Z)}};Br.\u0275fac=function(Z){return new(Z||Br)},Br.\u0275prov=C.Yz7({token:Br,factory:function(S){return Br.\u0275fac(S)},providedIn:"root"}),Br.ngInjectableDef=(0,C.Yz7)({factory:function(){return new Br},token:Br,providedIn:"root"});const vs=()=>{const S="undefined"!=typeof window?window:null;if(null!=S){const Z=S.Ionic;return Z&&Z.queue?Z.queue:{read:T=>S.requestAnimationFrame(T),write:T=>S.requestAnimationFrame(T)}}return{read:Z=>Z(),write:Z=>Z()}};let Co=class{create(Z){return(0,He.c)(Z)}easingTime(Z,T,re,ye,Re){return(0,nt.g)(Z,T,re,ye,Re)}};Co.\u0275fac=function(Z){return new(Z||Co)},Co.\u0275prov=C.Yz7({token:Co,factory:function(S){return Co.\u0275fac(S)},providedIn:"root"}),Co.ngInjectableDef=(0,C.Yz7)({factory:function(){return new Co},token:Co,providedIn:"root"});let Bi=class{constructor(Z){this.zone=Z}create(Z,T=!1){return T&&Object.getOwnPropertyNames(Z).forEach(re=>{if("function"==typeof Z[re]){const ye=Z[re];Z[re]=(...Re)=>this.zone.run(()=>ye(...Re))}}),(0,Ht.createGesture)(Z)}};Bi.\u0275fac=function(Z){return new(Z||Bi)(C.LFG(C.R0b))},Bi.\u0275prov=C.Yz7({token:Bi,factory:function(S){return Bi.\u0275fac(S)},providedIn:"root"}),Bi.ngInjectableDef=(0,C.Yz7)({factory:function(){return new Bi((0,C.LFG)(C.R0b))},token:Bi,providedIn:"root"});const iu=(S,Z,T)=>()=>{const re=Z.defaultView;if(re&&"undefined"!=typeof window){(re.Ionic=re.Ionic||{}).config=Object.assign({},S,{_zoneGate:lt=>T.run(lt)});const Re="__zone_symbol__addEventListener"in Z.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var S=[];if("undefined"!=typeof window){var Z=window;(!Z.customElements||Z.Element&&(!Z.Element.prototype.closest||!Z.Element.prototype.matches||!Z.Element.prototype.remove||!Z.Element.prototype.getRootNode))&&S.push(g.e(6748).then(g.t.bind(g,5141,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||Z.NodeList&&!Z.NodeList.prototype.forEach||!Z.fetch||!function(){try{var re=new URL("b","http://a");return re.pathname="c%20d","http://a/c%20d"===re.href&&re.searchParams}catch(ye){return!1}}()||"undefined"==typeof WeakMap)&&S.push(g.e(2214).then(g.t.bind(g,7656,23)))}return Promise.all(S)}().then(()=>((S,Z)=>"undefined"==typeof window?Promise.resolve():(Be.C&&Be.C.supports&&Be.C.supports("color","var(--c)")?(0,Be.a)():g.e(1843).then(g.t.bind(g,5902,23)).then(()=>(Be.p.$cssShim$=Be.w.__cssshim)?Be.p.$cssShim$.i():0)).then(()=>(Ei(),(0,Be.b)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[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]}]]],["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"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["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],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["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]}],[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-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],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["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],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"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-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]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["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",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"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],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"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],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[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-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[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],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[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"]]]]],["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-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["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-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[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":[1],"maxlength":[2],"min":[1],"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-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],"snaps":[4],"step":[2],"ticks":[4],"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-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":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["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-datetime_3",[[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],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["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-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["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]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),Z))))(0,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:fr,jmp:lt=>T.runOutsideAngular(lt),ael(lt,Fn,dr,Nn){lt[Re](Fn,dr,Nn)},rel(lt,Fn,dr,Nn){lt.removeEventListener(Fn,dr,Nn)}}))}};var il;let _s=il=class{static forRoot(Z){return{ngModule:il,providers:[{provide:as,useValue:Z},{provide:C.ip1,useFactory:iu,multi:!0,deps:[as,Ue.K0,C.R0b]}]}}};_s.\u0275fac=function(Z){return new(Z||_s)},_s.\u0275mod=C.oAB({type:_s}),_s.\u0275inj=C.cJS({providers:[Jt,Da,nc],imports:[[Ue.ez]]})},4086:(ge,G,g)=>{"use strict";g.d(G,{c:()=>Ie});var m=g(2377);let i;const D=ue=>ue.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),O=ue=>{if(void 0===i){const ve=void 0!==ue.style.webkitAnimationName;i=void 0===ue.style.animationName&&ve?"-webkit-":""}return i},P=(ue,Ce,ve)=>{const De=Ce.startsWith("animation")?O(ue):"";ue.style.setProperty(De+Ce,ve)},$=(ue,Ce)=>{const ve=Ce.startsWith("animation")?O(ue):"";ue.style.removeProperty(ve+Ce)},z=[],de=(ue=[],Ce)=>{if(void 0!==Ce){const ve=Array.isArray(Ce)?Ce:[Ce];return[...ue,...ve]}return ue},Ie=ue=>{let Ce,ve,De,Pe,$e,at,Ue,wt,ht,ft,Xe,Ae,Ge,rt=[],bt=[],C=[],Dt=!1,je={},He=[],Ve=[],Qe={},nt=0,Ht=!1,zt=!1,Ne=!0,Be=!1,Se=!0;const Ct=ue,Rt=[],Sn=[],Tn=[],Hn=[],ir=[],Ei=[],Lr=[],Fo=[],cn=[],Mn=[],Ir="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,On="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Ir,Kt=(he,Fe)=>((Fe&&Fe.oneTimeCallback?Sn:Rt).push({c:he,o:Fe}),Ge),Nt=()=>{if(On)Mn.forEach(he=>{he.cancel()}),Mn.length=0;else{const he=Tn.slice();(0,m.r)(()=>{he.forEach(Fe=>{$(Fe,"animation-name"),$(Fe,"animation-duration"),$(Fe,"animation-timing-function"),$(Fe,"animation-iteration-count"),$(Fe,"animation-delay"),$(Fe,"animation-play-state"),$(Fe,"animation-fill-mode"),$(Fe,"animation-direction")})})}},In=()=>{ir.forEach(he=>{he&&he.parentNode&&he.parentNode.removeChild(he)}),ir.length=0},xo=()=>void 0!==$e?$e:Ue?Ue.getFill():"both",Nr=()=>void 0!==ht?ht:void 0!==at?at:Ue?Ue.getDirection():"normal",Ro=()=>Ht?"linear":void 0!==De?De:Ue?Ue.getEasing():"linear",Fi=()=>zt?0:void 0!==ft?ft:void 0!==ve?ve:Ue?Ue.getDuration():0,Jn=()=>void 0!==Pe?Pe:Ue?Ue.getIterations():1,Do=()=>void 0!==Xe?Xe:void 0!==Ce?Ce:Ue?Ue.getDelay():0,mr=()=>{0!==nt&&(nt--,0===nt&&((()=>{$r(),Fo.forEach(tt=>tt()),cn.forEach(tt=>tt());const he=Ne?1:0,Fe=He,ze=Ve,pt=Qe;Tn.forEach(tt=>{const St=tt.classList;Fe.forEach(Ot=>St.add(Ot)),ze.forEach(Ot=>St.remove(Ot));for(const Ot in pt)pt.hasOwnProperty(Ot)&&P(tt,Ot,pt[Ot])}),Rt.forEach(tt=>tt.c(he,Ge)),Sn.forEach(tt=>tt.c(he,Ge)),Sn.length=0,Se=!0,Ne&&(Be=!0),Ne=!0})(),Ue&&Ue.animationFinish()))},Mi=(he=!0)=>{(()=>{Ei.forEach(pt=>pt()),Lr.forEach(pt=>pt());const he=bt,Fe=C,ze=je;Tn.forEach(pt=>{const tt=pt.classList;he.forEach(St=>tt.add(St)),Fe.forEach(St=>tt.remove(St));for(const St in ze)ze.hasOwnProperty(St)&&P(pt,St,ze[St])})})(),rt.length>0&&(On?(Tn.forEach(he=>{const Fe=he.animate(rt,{id:Ct,delay:Do(),duration:Fi(),easing:Ro(),iterations:Jn(),fill:xo(),direction:Nr()});Fe.pause(),Mn.push(Fe)}),Mn.length>0&&(Mn[0].onfinish=()=>{mr()})):((he=!0)=>{In();const Fe=(ue=>(ue.forEach(Ce=>{for(const ve in Ce)if(Ce.hasOwnProperty(ve)){const De=Ce[ve];if("easing"===ve)Ce["animation-timing-function"]=De,delete Ce[ve];else{const Pe=D(ve);Pe!==ve&&(Ce[Pe]=De,delete Ce[ve])}}}),ue))(rt);Tn.forEach(ze=>{if(Fe.length>0){const pt=((ue=[])=>ue.map(Ce=>{const ve=Ce.offset,De=[];for(const Pe in Ce)Ce.hasOwnProperty(Pe)&&"offset"!==Pe&&De.push(`${Pe}: ${Ce[Pe]};`);return`${100*ve}% { ${De.join(" ")} }`}).join(" "))(Fe);Ae=void 0!==ue?ue:(ue=>{let Ce=z.indexOf(ue);return Ce<0&&(Ce=z.push(ue)-1),`ion-animation-${Ce}`})(pt);const tt=((ue,Ce,ve)=>{const De=(ue=>{const Ce=ue.getRootNode();return Ce.head||Ce})(ve),Pe=O(ve),$e=De.querySelector("#"+ue);if($e)return $e;const at=(ve.ownerDocument||document).createElement("style");return at.id=ue,at.textContent=`@${Pe}keyframes ${ue} { ${Ce} } @${Pe}keyframes ${ue}-alt { ${Ce} }`,De.appendChild(at),at})(Ae,pt,ze);ir.push(tt),P(ze,"animation-duration",`${Fi()}ms`),P(ze,"animation-timing-function",Ro()),P(ze,"animation-delay",`${Do()}ms`),P(ze,"animation-fill-mode",xo()),P(ze,"animation-direction",Nr());const St=Jn()===1/0?"infinite":Jn().toString();P(ze,"animation-iteration-count",St),P(ze,"animation-play-state","paused"),he&&P(ze,"animation-name",`${tt.id}-alt`),(0,m.r)(()=>{P(ze,"animation-name",tt.id||null)})}})})(he)),Dt=!0},ur=he=>{if(he=Math.min(Math.max(he,0),.9999),On)Mn.forEach(Fe=>{Fe.currentTime=Fe.effect.getComputedTiming().delay+Fi()*he,Fe.pause()});else{const Fe=`-${Fi()*he}ms`;Tn.forEach(ze=>{rt.length>0&&(P(ze,"animation-delay",Fe),P(ze,"animation-play-state","paused"))})}},zr=he=>{Mn.forEach(Fe=>{Fe.effect.updateTiming({delay:Do(),duration:Fi(),easing:Ro(),iterations:Jn(),fill:xo(),direction:Nr()})}),void 0!==he&&ur(he)},Ur=(he=!0,Fe)=>{(0,m.r)(()=>{Tn.forEach(ze=>{P(ze,"animation-name",Ae||null),P(ze,"animation-duration",`${Fi()}ms`),P(ze,"animation-timing-function",Ro()),P(ze,"animation-delay",void 0!==Fe?`-${Fe*Fi()}ms`:`${Do()}ms`),P(ze,"animation-fill-mode",xo()||null),P(ze,"animation-direction",Nr()||null);const pt=Jn()===1/0?"infinite":Jn().toString();P(ze,"animation-iteration-count",pt),he&&P(ze,"animation-name",`${Ae}-alt`),(0,m.r)(()=>{P(ze,"animation-name",Ae||null)})})})},rr=(he=!1,Fe=!0,ze)=>(he&&Hn.forEach(pt=>{pt.update(he,Fe,ze)}),On?zr(ze):Ur(Fe,ze),Ge),ri=()=>{Dt&&(On?Mn.forEach(he=>{he.pause()}):Tn.forEach(he=>{P(he,"animation-play-state","paused")}))},ci=()=>{wt=void 0,mr()},$r=()=>{wt&&clearTimeout(wt)},Ar=he=>new Promise(Fe=>{he&&he.sync&&(zt=!0,Kt(()=>zt=!1,{oneTimeCallback:!0})),Dt||Mi(),Be&&(On?(ur(0),zr()):Ur(),Be=!1),Se&&(nt=Hn.length+1,Se=!1),Kt(()=>Fe(),{oneTimeCallback:!0}),Hn.forEach(ze=>{ze.play()}),On?(Mn.forEach(he=>{he.play()}),(0===rt.length||0===Tn.length)&&mr()):(()=>{if($r(),(0,m.r)(()=>{Tn.forEach(he=>{rt.length>0&&P(he,"animation-play-state","running")})}),0===rt.length||0===Tn.length)mr();else{const he=Do()||0,Fe=Fi()||0,ze=Jn()||1;isFinite(ze)&&(wt=setTimeout(ci,he+Fe*ze+100)),((ue,Ce)=>{let ve;const De={passive:!0},$e=at=>{ue===at.target&&(ve&&ve(),$r(),(0,m.r)(()=>{Tn.forEach(he=>{$(he,"animation-duration"),$(he,"animation-delay"),$(he,"animation-play-state")}),(0,m.r)(mr)}))};ue&&(ue.addEventListener("webkitAnimationEnd",$e,De),ue.addEventListener("animationend",$e,De),ve=()=>{ue.removeEventListener("webkitAnimationEnd",$e,De),ue.removeEventListener("animationend",$e,De)})})(Tn[0])}})()}),Fs=(he,Fe)=>{const ze=rt[0];return void 0===ze||void 0!==ze.offset&&0!==ze.offset?rt=[{offset:0,[he]:Fe},...rt]:ze[he]=Fe,Ge};return Ge={parentAnimation:Ue,elements:Tn,childAnimations:Hn,id:Ct,animationFinish:mr,from:Fs,to:(he,Fe)=>{const ze=rt[rt.length-1];return void 0===ze||void 0!==ze.offset&&1!==ze.offset?rt=[...rt,{offset:1,[he]:Fe}]:ze[he]=Fe,Ge},fromTo:(he,Fe,ze)=>Fs(he,Fe).to(he,ze),parent:he=>(Ue=he,Ge),play:Ar,pause:()=>(Hn.forEach(he=>{he.pause()}),ri(),Ge),stop:()=>{Hn.forEach(he=>{he.stop()}),Dt&&(Nt(),Dt=!1),Ht=!1,zt=!1,Se=!0,ht=void 0,ft=void 0,Xe=void 0,nt=0,Be=!1,Ne=!0},destroy:he=>(Hn.forEach(Fe=>{Fe.destroy(he)}),(he=>{Nt(),he&&In()})(he),Tn.length=0,Hn.length=0,rt.length=0,Rt.length=0,Sn.length=0,Dt=!1,Se=!0,Ge),keyframes:he=>(rt=he,Ge),addAnimation:he=>{if(null!=he)if(Array.isArray(he))for(const Fe of he)Fe.parent(Ge),Hn.push(Fe);else he.parent(Ge),Hn.push(he);return Ge},addElement:he=>{if(null!=he)if(1===he.nodeType)Tn.push(he);else if(he.length>=0)for(let Fe=0;Fe($e=he,rr(!0),Ge),direction:he=>(at=he,rr(!0),Ge),iterations:he=>(Pe=he,rr(!0),Ge),duration:he=>(!On&&0===he&&(he=1),ve=he,rr(!0),Ge),easing:he=>(De=he,rr(!0),Ge),delay:he=>(Ce=he,rr(!0),Ge),getWebAnimations:()=>Mn,getKeyframes:()=>rt,getFill:xo,getDirection:Nr,getDelay:Do,getIterations:Jn,getEasing:Ro,getDuration:Fi,afterAddRead:he=>(Fo.push(he),Ge),afterAddWrite:he=>(cn.push(he),Ge),afterClearStyles:(he=[])=>{for(const Fe of he)Qe[Fe]="";return Ge},afterStyles:(he={})=>(Qe=he,Ge),afterRemoveClass:he=>(Ve=de(Ve,he),Ge),afterAddClass:he=>(He=de(He,he),Ge),beforeAddRead:he=>(Ei.push(he),Ge),beforeAddWrite:he=>(Lr.push(he),Ge),beforeClearStyles:(he=[])=>{for(const Fe of he)je[Fe]="";return Ge},beforeStyles:(he={})=>(je=he,Ge),beforeRemoveClass:he=>(C=de(C,he),Ge),beforeAddClass:he=>(bt=de(bt,he),Ge),onFinish:Kt,progressStart:(he=!1,Fe)=>(Hn.forEach(ze=>{ze.progressStart(he,Fe)}),ri(),Ht=he,Dt?rr(!1,!0,Fe):Mi(),Ge),progressStep:he=>(Hn.forEach(Fe=>{Fe.progressStep(he)}),ur(he),Ge),progressEnd:(he,Fe,ze)=>(Ht=!1,Hn.forEach(pt=>{pt.progressEnd(he,Fe,ze)}),void 0!==ze&&(ft=ze),Be=!1,Ne=!0,0===he?(ht="reverse"===Nr()?"normal":"reverse","reverse"===ht&&(Ne=!1),On?(rr(),ur(1-Fe)):(Xe=(1-Fe)*Fi()*-1,rr(!1,!1))):1===he&&(On?(rr(),ur(Fe)):(Xe=Fe*Fi()*-1,rr(!1,!1))),void 0!==he&&(Kt(()=>{ft=void 0,ht=void 0,Xe=void 0},{oneTimeCallback:!0}),Ue||Ar()),Ge)}}},7807:(ge,G,g)=>{"use strict";g.d(G,{g:()=>m});const m=(P,$,I,U,z)=>q(P[1],$[1],I[1],U[1],z).map(H=>i(P[0],$[0],I[0],U[0],H)),i=(P,$,I,U,z)=>z*(3*$*Math.pow(z-1,2)+z*(-3*I*z+3*I+U*z))-P*Math.pow(z-1,3),q=(P,$,I,U,z)=>O((U-=z)-3*(I-=z)+3*($-=z)-(P-=z),3*I-6*$+3*P,3*$-3*P,P).filter(A=>A>=0&&A<=1),O=(P,$,I,U)=>{if(0===P)return((P,$,I)=>{const U=$*$-4*P*I;return U<0?[]:[(-$+Math.sqrt(U))/(2*P),(-$-Math.sqrt(U))/(2*P)]})($,I,U);const z=(3*(I/=P)-($/=P)*$)/3,H=(2*$*$*$-9*$*I+27*(U/=P))/27;if(0===z)return[Math.pow(-H,1/3)];if(0===H)return[Math.sqrt(-z),-Math.sqrt(-z)];const A=Math.pow(H/2,2)+Math.pow(z/3,3);if(0===A)return[Math.pow(H/2,.5)-$/3];if(A>0)return[Math.pow(-H/2+Math.sqrt(A),1/3)-Math.pow(H/2+Math.sqrt(A),1/3)-$/3];const X=Math.sqrt(Math.pow(-z/3,3)),de=Math.acos(-H/(2*Math.sqrt(Math.pow(-z/3,3)))),Ie=2*Math.pow(X,1/3);return[Ie*Math.cos(de/3)-$/3,Ie*Math.cos((de+2*Math.PI)/3)-$/3,Ie*Math.cos((de+4*Math.PI)/3)-$/3]}},960:(ge,G,g)=>{"use strict";g.d(G,{G:()=>O});class i{constructor($,I,U,z,H){this.id=I,this.name=U,this.disableScroll=H,this.priority=1e6*z+I,this.ctrl=$}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 $=this.ctrl.capture(this.name,this.id,this.priority);return $&&this.disableScroll&&this.ctrl.disableScroll(this.id),$}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class q{constructor($,I,U,z){this.id=I,this.disable=U,this.disableScroll=z,this.ctrl=$}block(){if(this.ctrl){if(this.disable)for(const $ of this.disable)this.ctrl.disableGesture($,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const $ of this.disable)this.ctrl.enableGesture($,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const D="backdrop-no-scroll",O=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture($){return new i(this,this.newID(),$.name,$.priority||0,!!$.disableScroll)}createBlocker($={}){return new q(this,this.newID(),$.disable,!!$.disableScroll)}start($,I,U){return this.canStart($)?(this.requestedStart.set(I,U),!0):(this.requestedStart.delete(I),!1)}capture($,I,U){if(!this.start($,I,U))return!1;const z=this.requestedStart;let H=-1e4;if(z.forEach(A=>{H=Math.max(H,A)}),H===U){this.capturedId=I,z.clear();const A=new CustomEvent("ionGestureCaptured",{detail:{gestureName:$}});return document.dispatchEvent(A),!0}return z.delete(I),!1}release($){this.requestedStart.delete($),this.capturedId===$&&(this.capturedId=void 0)}disableGesture($,I){let U=this.disabledGestures.get($);void 0===U&&(U=new Set,this.disabledGestures.set($,U)),U.add(I)}enableGesture($,I){const U=this.disabledGestures.get($);void 0!==U&&U.delete(I)}disableScroll($){this.disabledScroll.add($),1===this.disabledScroll.size&&document.body.classList.add(D)}enableScroll($){this.disabledScroll.delete($),0===this.disabledScroll.size&&document.body.classList.remove(D)}canStart($){return!(void 0!==this.capturedId||this.isDisabled($))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled($){const I=this.disabledGestures.get($);return!!(I&&I.size>0)}newID(){return this.gestureId++,this.gestureId}}},3087:(ge,G,g)=>{"use strict";g.r(G),g.d(G,{MENU_BACK_BUTTON_PRIORITY:()=>O,OVERLAY_BACK_BUTTON_PRIORITY:()=>D,blockHardwareBackButton:()=>i,startHardwareBackButton:()=>q});var m=g(4553);const i=()=>{document.addEventListener("backbutton",()=>{})},q=()=>{const P=document;let $=!1;P.addEventListener("backbutton",()=>{if($)return;let I=0,U=[];const z=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(X,de){U.push({priority:X,handler:de,id:I++})}}});P.dispatchEvent(z);const H=function(){var X=(0,m.Z)(function*(de){try{if(de&&de.handler){const Ie=de.handler(A);null!=Ie&&(yield Ie)}}catch(Ie){console.error(Ie)}});return function(Ie){return X.apply(this,arguments)}}(),A=()=>{if(U.length>0){let X={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};U.forEach(de=>{de.priority>=X.priority&&(X=de)}),$=!0,U=U.filter(de=>de.id!==X.id),H(X).then(()=>$=!1)}};A()})},D=100,O=99},2377:(ge,G,g)=>{"use strict";g.d(G,{a:()=>q,b:()=>D,c:()=>m,d:()=>U,e:()=>z,f:()=>ue,g:()=>O,h:()=>I,i:()=>i,j:()=>H,k:()=>$,l:()=>A,m:()=>Ie,n:()=>Ce,o:()=>X,p:()=>de,r:()=>P});const m=(ve,De)=>{ve.componentOnReady?ve.componentOnReady().then(Pe=>De(Pe)):P(()=>De(ve))},i=(ve,De=[])=>{const Pe={};return De.forEach($e=>{ve.hasAttribute($e)&&(null!==ve.getAttribute($e)&&(Pe[$e]=ve.getAttribute($e)),ve.removeAttribute($e))}),Pe},q=(ve,De,Pe,$e)=>{if("undefined"!=typeof window){const at=window,rt=at&&at.Ionic&&at.Ionic.config;if(rt){const bt=rt.get("_ael");if(bt)return bt(ve,De,Pe,$e);if(rt._ael)return rt._ael(ve,De,Pe,$e)}}return ve.addEventListener(De,Pe,$e)},D=(ve,De,Pe,$e)=>{if("undefined"!=typeof window){const at=window,rt=at&&at.Ionic&&at.Ionic.config;if(rt){const bt=rt.get("_rel");if(bt)return bt(ve,De,Pe,$e);if(rt._rel)return rt._rel(ve,De,Pe,$e)}}return ve.removeEventListener(De,Pe,$e)},O=(ve,De=ve)=>ve.shadowRoot||De,P=ve=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ve):"function"==typeof requestAnimationFrame?requestAnimationFrame(ve):setTimeout(ve),$=ve=>!!ve.shadowRoot&&!!ve.attachShadow,I=ve=>{const De=ve.closest("ion-item");return De?De.querySelector("ion-label"):null},U=(ve,De)=>{let Pe;const $e=ve.getAttribute("aria-labelledby"),at=ve.id;let rt=null!==$e&&""!==$e.trim()?$e:De+"-lbl",bt=null!==$e&&""!==$e.trim()?document.getElementById($e):I(ve);return bt?(null===$e&&(bt.id=rt),Pe=bt.textContent,bt.setAttribute("aria-hidden","true")):""!==at.trim()&&(bt=document.querySelector(`label[for="${at}"]`),bt&&(""!==bt.id?rt=bt.id:bt.id=rt=`${at}-lbl`,Pe=bt.textContent)),{label:bt,labelId:rt,labelText:Pe}},z=(ve,De,Pe,$e,at)=>{if(ve||$(De)){let rt=De.querySelector("input.aux-input");rt||(rt=De.ownerDocument.createElement("input"),rt.type="hidden",rt.classList.add("aux-input"),De.appendChild(rt)),rt.disabled=at,rt.name=Pe,rt.value=$e||""}},H=(ve,De,Pe)=>Math.max(ve,Math.min(De,Pe)),A=(ve,De)=>{if(!ve){const Pe="ASSERT: "+De;throw console.error(Pe),new Error(Pe)}},X=ve=>ve.timeStamp||Date.now(),de=ve=>{if(ve){const De=ve.changedTouches;if(De&&De.length>0){const Pe=De[0];return{x:Pe.clientX,y:Pe.clientY}}if(void 0!==ve.pageX)return{x:ve.pageX,y:ve.pageY}}return{x:0,y:0}},Ie=ve=>{const De="rtl"===document.dir;switch(ve){case"start":return De;case"end":return!De;default:throw new Error(`"${ve}" is not a valid value for [side]. Use "start" or "end" instead.`)}},ue=(ve,De)=>{const Pe=ve._original||ve;return{_original:ve,emit:Ce(Pe.emit.bind(Pe),De)}},Ce=(ve,De=0)=>{let Pe;return(...$e)=>{clearTimeout(Pe),Pe=setTimeout(ve,De,...$e)}}},5554:(ge,G,g)=>{"use strict";g.d(G,{m:()=>H});var m=g(4553),i=g(3087),q=g(2377),D=g(7585),O=g(4086);const P=A=>(0,O.c)().duration(A?400:300),$=A=>{let X,de;const Ie=A.width+8,ue=(0,O.c)(),Ce=(0,O.c)();A.isEndSide?(X=Ie+"px",de="0px"):(X=-Ie+"px",de="0px"),ue.addElement(A.menuInnerEl).fromTo("transform",`translateX(${X})`,`translateX(${de})`);const De="ios"===(0,D.b)(A),Pe=De?.2:.25;return Ce.addElement(A.backdropEl).fromTo("opacity",.01,Pe),P(De).addAnimation([ue,Ce])},I=A=>{let X,de;const Ie=(0,D.b)(A),ue=A.width;A.isEndSide?(X=-ue+"px",de=ue+"px"):(X=ue+"px",de=-ue+"px");const Ce=(0,O.c)().addElement(A.menuInnerEl).fromTo("transform",`translateX(${de})`,"translateX(0px)"),ve=(0,O.c)().addElement(A.contentEl).fromTo("transform","translateX(0px)",`translateX(${X})`),De=(0,O.c)().addElement(A.backdropEl).fromTo("opacity",.01,.32);return P("ios"===Ie).addAnimation([Ce,ve,De])},U=A=>{const X=(0,D.b)(A),de=A.width*(A.isEndSide?-1:1)+"px",Ie=(0,O.c)().addElement(A.contentEl).fromTo("transform","translateX(0px)",`translateX(${de})`);return P("ios"===X).addAnimation(Ie)},H=(()=>{const A=new Map,X=[],de=function(){var ht=(0,m.Z)(function*(ft){const Xe=yield $e(ft);return!!Xe&&Xe.open()});return function(Xe){return ht.apply(this,arguments)}}(),Ie=function(){var ht=(0,m.Z)(function*(ft){const Xe=yield void 0!==ft?$e(ft):at();return void 0!==Xe&&Xe.close()});return function(Xe){return ht.apply(this,arguments)}}(),ue=function(){var ht=(0,m.Z)(function*(ft){const Xe=yield $e(ft);return!!Xe&&Xe.toggle()});return function(Xe){return ht.apply(this,arguments)}}(),Ce=function(){var ht=(0,m.Z)(function*(ft,Xe){const Ne=yield $e(Xe);return Ne&&(Ne.disabled=!ft),Ne});return function(Xe,Ne){return ht.apply(this,arguments)}}(),ve=function(){var ht=(0,m.Z)(function*(ft,Xe){const Ne=yield $e(Xe);return Ne&&(Ne.swipeGesture=ft),Ne});return function(Xe,Ne){return ht.apply(this,arguments)}}(),De=function(){var ht=(0,m.Z)(function*(ft){if(null!=ft){const Xe=yield $e(ft);return void 0!==Xe&&Xe.isOpen()}return void 0!==(yield at())});return function(Xe){return ht.apply(this,arguments)}}(),Pe=function(){var ht=(0,m.Z)(function*(ft){const Xe=yield $e(ft);return!!Xe&&!Xe.disabled});return function(Xe){return ht.apply(this,arguments)}}(),$e=function(){var ht=(0,m.Z)(function*(ft){return yield wt(),"start"===ft||"end"===ft?zt(Be=>Be.side===ft&&!Be.disabled)||zt(Be=>Be.side===ft):null!=ft?zt(Ne=>Ne.menuId===ft):zt(Ne=>!Ne.disabled)||(X.length>0?X[0].el:void 0)});return function(Xe){return ht.apply(this,arguments)}}(),at=function(){var ht=(0,m.Z)(function*(){return yield wt(),Qe()});return function(){return ht.apply(this,arguments)}}(),rt=function(){var ht=(0,m.Z)(function*(){return yield wt(),nt()});return function(){return ht.apply(this,arguments)}}(),bt=function(){var ht=(0,m.Z)(function*(){return yield wt(),Ht()});return function(){return ht.apply(this,arguments)}}(),C=(ht,ft)=>{A.set(ht,ft)},je=ht=>{const ft=ht.side;X.filter(Xe=>Xe.side===ft&&Xe!==ht).forEach(Xe=>Xe.disabled=!0)},He=function(){var ht=(0,m.Z)(function*(ft,Xe,Ne){if(Ht())return!1;if(Xe){const Be=yield at();Be&&ft.el!==Be&&(yield Be.setOpen(!1,!1))}return ft._setOpen(Xe,Ne)});return function(Xe,Ne,Be){return ht.apply(this,arguments)}}(),Qe=()=>zt(ht=>ht._isOpen),nt=()=>X.map(ht=>ht.el),Ht=()=>X.some(ht=>ht.isAnimating),zt=ht=>{const ft=X.find(ht);if(void 0!==ft)return ft.el},wt=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(ht=>new Promise(ft=>(0,q.c)(ht,ft))));return C("reveal",U),C("push",I),C("overlay",$),"undefined"!=typeof document&&document.addEventListener("ionBackButton",ht=>{const ft=Qe();ft&&ht.detail.register(i.MENU_BACK_BUTTON_PRIORITY,()=>ft.close())}),{registerAnimation:C,get:$e,getMenus:rt,getOpen:at,isEnabled:Pe,swipeGesture:ve,isAnimating:bt,isOpen:De,enable:Ce,toggle:ue,close:Ie,open:de,_getOpenSync:Qe,_createAnimation:(ht,ft)=>{const Xe=A.get(ht);if(!Xe)throw new Error("animation not registered");return Xe(ft)},_register:ht=>{X.indexOf(ht)<0&&(ht.disabled||je(ht),X.push(ht))},_unregister:ht=>{const ft=X.indexOf(ht);ft>-1&&X.splice(ft,1)},_setOpen:He,_setActiveMenu:je}})()},9461:(ge,G,g)=>{"use strict";g.r(G),g.d(G,{GESTURE_CONTROLLER:()=>m.G,createGesture:()=>U});var m=g(960);const i=(X,de,Ie,ue)=>{const Ce=q(X)?{capture:!!ue.capture,passive:!!ue.passive}:!!ue.capture;let ve,De;return X.__zone_symbol__addEventListener?(ve="__zone_symbol__addEventListener",De="__zone_symbol__removeEventListener"):(ve="addEventListener",De="removeEventListener"),X[ve](de,Ie,Ce),()=>{X[De](de,Ie,Ce)}},q=X=>{if(void 0===D)try{const de=Object.defineProperty({},"passive",{get:()=>{D=!0}});X.addEventListener("optsTest",()=>{},de)}catch(de){D=!1}return!!D};let D;const $=X=>X instanceof Document?X:X.ownerDocument,U=X=>{let de=!1,Ie=!1,ue=!0,Ce=!1;const ve=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},X),De=ve.canStart,Pe=ve.onWillStart,$e=ve.onStart,at=ve.onEnd,rt=ve.notCaptured,bt=ve.onMove,C=ve.threshold,Dt=ve.passive,Ue=ve.blurOnStart,je={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},He=((X,de,Ie)=>{const ue=Ie*(Math.PI/180),Ce="x"===X,ve=Math.cos(ue),De=de*de;let Pe=0,$e=0,at=!1,rt=0;return{start(bt,C){Pe=bt,$e=C,rt=0,at=!0},detect(bt,C){if(!at)return!1;const Dt=bt-Pe,Ue=C-$e,je=Dt*Dt+Ue*Ue;if(jeve?1:Ve<-ve?-1:0,at=!1,!0},isGesture:()=>0!==rt,getDirection:()=>rt}})(ve.direction,ve.threshold,ve.maxAngle),Ve=m.G.createGesture({name:X.gestureName,priority:X.gesturePriority,disableScroll:X.disableScroll}),Ht=()=>{!de||(Ce=!1,bt&&bt(je))},zt=()=>!(Ve&&!Ve.capture()||(de=!0,ue=!1,je.startX=je.currentX,je.startY=je.currentY,je.startTime=je.currentTime,Pe?Pe(je).then(ht):ht(),0)),ht=()=>{Ue&&(()=>{if("undefined"!=typeof document){const Se=document.activeElement;null!==Se&&Se.blur&&Se.blur()}})(),$e&&$e(je),ue=!0},ft=()=>{de=!1,Ie=!1,Ce=!1,ue=!0,Ve.release()},Xe=Se=>{const Ae=de,Ge=ue;if(ft(),Ge){if(z(je,Se),Ae)return void(at&&at(je));rt&&rt(je)}},Ne=((X,de,Ie,ue,Ce)=>{let ve,De,Pe,$e,at,rt,bt,C=0;const Dt=wt=>{C=Date.now()+2e3,de(wt)&&(!De&&Ie&&(De=i(X,"touchmove",Ie,Ce)),Pe||(Pe=i(wt.target,"touchend",je,Ce)),$e||($e=i(wt.target,"touchcancel",je,Ce)))},Ue=wt=>{C>Date.now()||!de(wt)||(!rt&&Ie&&(rt=i($(X),"mousemove",Ie,Ce)),bt||(bt=i($(X),"mouseup",He,Ce)))},je=wt=>{Ve(),ue&&ue(wt)},He=wt=>{Qe(),ue&&ue(wt)},Ve=()=>{De&&De(),Pe&&Pe(),$e&&$e(),De=Pe=$e=void 0},Qe=()=>{rt&&rt(),bt&&bt(),rt=bt=void 0},nt=()=>{Ve(),Qe()},Ht=(wt=!0)=>{wt?(ve||(ve=i(X,"touchstart",Dt,Ce)),at||(at=i(X,"mousedown",Ue,Ce))):(ve&&ve(),at&&at(),ve=at=void 0,nt())};return{enable:Ht,stop:nt,destroy:()=>{Ht(!1),ue=Ie=de=void 0}}})(ve.el,Se=>{const Ae=A(Se);return!(Ie||!ue||(H(Se,je),je.startX=je.currentX,je.startY=je.currentY,je.startTime=je.currentTime=Ae,je.velocityX=je.velocityY=je.deltaX=je.deltaY=0,je.event=Se,De&&!1===De(je))||(Ve.release(),!Ve.start()))&&(Ie=!0,0===C?zt():(He.start(je.startX,je.startY),!0))},Se=>{de?!Ce&&ue&&(Ce=!0,z(je,Se),requestAnimationFrame(Ht)):(z(je,Se),He.detect(je.currentX,je.currentY)&&(!He.isGesture()||!zt())&&Be())},Xe,{capture:!1,passive:Dt}),Be=()=>{ft(),Ne.stop(),rt&&rt(je)};return{enable(Se=!0){Se||(de&&Xe(void 0),ft()),Ne.enable(Se)},destroy(){Ve.destroy(),Ne.destroy()}}},z=(X,de)=>{if(!de)return;const Ie=X.currentX,ue=X.currentY,Ce=X.currentTime;H(de,X);const ve=X.currentX,De=X.currentY,$e=(X.currentTime=A(de))-Ce;if($e>0&&$e<100){const rt=(De-ue)/$e;X.velocityX=(ve-Ie)/$e*.7+.3*X.velocityX,X.velocityY=.7*rt+.3*X.velocityY}X.deltaX=ve-X.startX,X.deltaY=De-X.startY,X.event=de},H=(X,de)=>{let Ie=0,ue=0;if(X){const Ce=X.changedTouches;if(Ce&&Ce.length>0){const ve=Ce[0];Ie=ve.clientX,ue=ve.clientY}else void 0!==X.pageX&&(Ie=X.pageX,ue=X.pageY)}de.currentX=Ie,de.currentY=ue},A=X=>X.timeStamp||Date.now()},3150:(ge,G,g)=>{"use strict";g.d(G,{B:()=>ia,C:()=>A,H:()=>ir,a:()=>ue,b:()=>ai,c:()=>Fs,e:()=>fi,f:()=>$i,g:()=>Se,h:()=>Tn,i:()=>Xn,j:()=>Jn,k:()=>Mi,p:()=>de,r:()=>Ur,s:()=>Be,w:()=>H});var m=g(4553);let q,D,O,P=!1,$=!1,I=!1,U=!1,z=!1;const H="undefined"!=typeof window?window:{},A=H.CSS,X=H.document||{head:{}},de={$flags$:0,$resourcesUrl$:"",jmp:we=>we(),raf:we=>requestAnimationFrame(we),ael:(we,he,Fe,ze)=>we.addEventListener(he,Fe,ze),rel:(we,he,Fe,ze)=>we.removeEventListener(he,Fe,ze),ce:(we,he)=>new CustomEvent(we,he)},Ie=(()=>(X.head.attachShadow+"").indexOf("[native")>-1)(),ue=we=>Promise.resolve(we),Ce=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(we){}return!1})(),ve=(we,he,Fe,ze)=>{Fe&&Fe.map(([pt,tt,St])=>{const Ot=Pe(we,pt),Ft=De(he,St),Xt=$e(pt);de.ael(Ot,tt,Ft,Xt),(he.$rmListeners$=he.$rmListeners$||[]).push(()=>de.rel(Ot,tt,Ft,Xt))})},De=(we,he)=>Fe=>{try{256&we.$flags$?we.$lazyInstance$[he](Fe):(we.$queuedListeners$=we.$queuedListeners$||[]).push([he,Fe])}catch(ze){Zo(ze)}},Pe=(we,he)=>4&he?X:8&he?H:16&he?X.body:we,$e=we=>0!=(2&we),Dt="s-id",Ue="sty-id",Ve="http://www.w3.org/1999/xlink",Ht=new WeakMap,zt=(we,he,Fe)=>{let ze=no.get(we);Ce&&Fe?(ze=ze||new CSSStyleSheet,ze.replace(he)):ze=he,no.set(we,ze)},wt=(we,he,Fe,ze)=>{let pt=ft(he,Fe),tt=no.get(pt);if(we=11===we.nodeType?we:X,tt)if("string"==typeof tt){let Ot,St=Ht.get(we=we.head||we);if(St||Ht.set(we,St=new Set),!St.has(pt)){if(we.host&&(Ot=we.querySelector(`[${Ue}="${pt}"]`)))Ot.innerHTML=tt;else{if(de.$cssShim$){Ot=de.$cssShim$.createHostStyle(ze,pt,tt,!!(10&he.$flags$));const Ft=Ot["s-sc"];Ft&&(pt=Ft,St=null)}else Ot=X.createElement("style"),Ot.innerHTML=tt;we.insertBefore(Ot,we.querySelector("link"))}St&&St.add(pt)}}else we.adoptedStyleSheets.includes(tt)||(we.adoptedStyleSheets=[...we.adoptedStyleSheets,tt]);return pt},ft=(we,he)=>"sc-"+(he&&32&we.$flags$?we.$tagName$+"-"+he:we.$tagName$),Xe=we=>we.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Be=we=>ci.push(we),Se=we=>zr(we).$modeName$,Ae={},Sn=we=>"object"==(we=typeof we)||"function"===we,Tn=(we,he,...Fe)=>{let ze=null,pt=null,tt=null,St=!1,Ot=!1,Ft=[];const Xt=Pn=>{for(let Kn=0;KnPn[Kn]).join(" "))}}if("function"==typeof we)return we(null===he?{}:he,Ft,Lr);const xn=Hn(we,null);return xn.$attrs$=he,Ft.length>0&&(xn.$children$=Ft),xn.$key$=pt,xn.$name$=tt,xn},Hn=(we,he)=>({$flags$:0,$tag$:we,$text$:he,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),ir={},Lr={forEach:(we,he)=>we.map(Fo).forEach(he),map:(we,he)=>we.map(Fo).map(he).map(cn)},Fo=we=>({vattrs:we.$attrs$,vchildren:we.$children$,vkey:we.$key$,vname:we.$name$,vtag:we.$tag$,vtext:we.$text$}),cn=we=>{if("function"==typeof we.vtag){const Fe=Object.assign({},we.vattrs);return we.vkey&&(Fe.key=we.vkey),we.vname&&(Fe.name=we.vname),Tn(we.vtag,Fe,...we.vchildren||[])}const he=Hn(we.vtag,we.vtext);return he.$attrs$=we.vattrs,he.$children$=we.vchildren,he.$key$=we.vkey,he.$name$=we.vname,he},Mn=(we,he,Fe,ze,pt,tt)=>{if(Fe!==ze){let St=Ri(we,he),Ot=he.toLowerCase();if("class"===he){const Ft=we.classList,Xt=On(Fe),xn=On(ze);Ft.remove(...Xt.filter(Pn=>Pn&&!xn.includes(Pn))),Ft.add(...xn.filter(Pn=>Pn&&!Xt.includes(Pn)))}else if("style"===he){for(const Ft in Fe)(!ze||null==ze[Ft])&&(Ft.includes("-")?we.style.removeProperty(Ft):we.style[Ft]="");for(const Ft in ze)(!Fe||ze[Ft]!==Fe[Ft])&&(Ft.includes("-")?we.style.setProperty(Ft,ze[Ft]):we.style[Ft]=ze[Ft])}else if("key"!==he)if("ref"===he)ze&&ze(we);else if(St||"o"!==he[0]||"n"!==he[1]){const Ft=Sn(ze);if((St||Ft&&null!==ze)&&!pt)try{if(we.tagName.includes("-"))we[he]=ze;else{let xn=null==ze?"":ze;"list"===he?St=!1:(null==Fe||we[he]!=xn)&&(we[he]=xn)}}catch(xn){}let Xt=!1;Ot!==(Ot=Ot.replace(/^xlink\:?/,""))&&(he=Ot,Xt=!0),null==ze||!1===ze?(!1!==ze||""===we.getAttribute(he))&&(Xt?we.removeAttributeNS(Ve,he):we.removeAttribute(he)):(!St||4&tt||pt)&&!Ft&&(ze=!0===ze?"":ze,Xt?we.setAttributeNS(Ve,he,ze):we.setAttribute(he,ze))}else he="-"===he[2]?he.slice(3):Ri(H,Ot)?Ot.slice(2):Ot[2]+he.slice(3),Fe&&de.rel(we,he,Fe,!1),ze&&de.ael(we,he,ze,!1)}},Ir=/\s/,On=we=>we?we.split(Ir):[],fr=(we,he,Fe,ze)=>{const pt=11===he.$elm$.nodeType&&he.$elm$.host?he.$elm$.host:he.$elm$,tt=we&&we.$attrs$||Ae,St=he.$attrs$||Ae;for(ze in tt)ze in St||Mn(pt,ze,tt[ze],void 0,Fe,he.$flags$);for(ze in St)Mn(pt,ze,tt[ze],St[ze],Fe,he.$flags$)},At=(we,he,Fe,ze)=>{let St,Ot,Ft,pt=he.$children$[Fe],tt=0;if(P||(I=!0,"slot"===pt.$tag$&&(q&&ze.classList.add(q+"-s"),pt.$flags$|=pt.$children$?2:1)),null!==pt.$text$)St=pt.$elm$=X.createTextNode(pt.$text$);else if(1&pt.$flags$)St=pt.$elm$=X.createTextNode("");else{if(U||(U="svg"===pt.$tag$),St=pt.$elm$=X.createElementNS(U?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&pt.$flags$?"slot-fb":pt.$tag$),U&&"foreignObject"===pt.$tag$&&(U=!1),fr(null,pt,U),(we=>null!=we)(q)&&St["s-si"]!==q&&St.classList.add(St["s-si"]=q),pt.$children$)for(tt=0;tt{de.$flags$|=1;const Fe=we.childNodes;for(let ze=Fe.length-1;ze>=0;ze--){const pt=Fe[ze];pt["s-hn"]!==O&&pt["s-ol"]&&(In(pt).insertBefore(pt,Nt(pt)),pt["s-ol"].remove(),pt["s-ol"]=void 0,I=!0),he&&Je(pt,he)}de.$flags$&=-2},et=(we,he,Fe,ze,pt,tt)=>{let Ot,St=we["s-cr"]&&we["s-cr"].parentNode||we;for(St.shadowRoot&&St.tagName===O&&(St=St.shadowRoot);pt<=tt;++pt)ze[pt]&&(Ot=At(null,Fe,pt,we),Ot&&(ze[pt].$elm$=Ot,St.insertBefore(Ot,Nt(he))))},Bt=(we,he,Fe,ze,pt)=>{for(;he<=Fe;++he)(ze=we[he])&&(pt=ze.$elm$,si(ze),$=!0,pt["s-ol"]?pt["s-ol"].remove():Je(pt,!0),pt.remove())},Cn=(we,he)=>we.$tag$===he.$tag$&&("slot"===we.$tag$?we.$name$===he.$name$:we.$key$===he.$key$),Nt=we=>we&&we["s-ol"]||we,In=we=>(we["s-ol"]?we["s-ol"]:we).parentNode,ii=(we,he)=>{const Fe=he.$elm$=we.$elm$,ze=we.$children$,pt=he.$children$,tt=he.$tag$,St=he.$text$;let Ot;null===St?(U="svg"===tt||"foreignObject"!==tt&&U,"slot"===tt||fr(we,he,U),null!==ze&&null!==pt?((we,he,Fe,ze)=>{let bo,ao,pt=0,tt=0,St=0,Ot=0,Ft=he.length-1,Xt=he[0],xn=he[Ft],Pn=ze.length-1,Kn=ze[0],yi=ze[Pn];for(;pt<=Ft&&tt<=Pn;)if(null==Xt)Xt=he[++pt];else if(null==xn)xn=he[--Ft];else if(null==Kn)Kn=ze[++tt];else if(null==yi)yi=ze[--Pn];else if(Cn(Xt,Kn))ii(Xt,Kn),Xt=he[++pt],Kn=ze[++tt];else if(Cn(xn,yi))ii(xn,yi),xn=he[--Ft],yi=ze[--Pn];else if(Cn(Xt,yi))("slot"===Xt.$tag$||"slot"===yi.$tag$)&&Je(Xt.$elm$.parentNode,!1),ii(Xt,yi),we.insertBefore(Xt.$elm$,xn.$elm$.nextSibling),Xt=he[++pt],yi=ze[--Pn];else if(Cn(xn,Kn))("slot"===Xt.$tag$||"slot"===yi.$tag$)&&Je(xn.$elm$.parentNode,!1),ii(xn,Kn),we.insertBefore(xn.$elm$,Xt.$elm$),xn=he[--Ft],Kn=ze[++tt];else{for(St=-1,Ot=pt;Ot<=Ft;++Ot)if(he[Ot]&&null!==he[Ot].$key$&&he[Ot].$key$===Kn.$key$){St=Ot;break}St>=0?(ao=he[St],ao.$tag$!==Kn.$tag$?bo=At(he&&he[tt],Fe,St,we):(ii(ao,Kn),he[St]=void 0,bo=ao.$elm$),Kn=ze[++tt]):(bo=At(he&&he[tt],Fe,tt,we),Kn=ze[++tt]),bo&&In(Xt.$elm$).insertBefore(bo,Nt(Xt.$elm$))}pt>Ft?et(we,null==ze[Pn+1]?null:ze[Pn+1].$elm$,Fe,ze,tt,Pn):tt>Pn&&Bt(he,pt,Ft)})(Fe,ze,he,pt):null!==pt?(null!==we.$text$&&(Fe.textContent=""),et(Fe,null,he,pt,0,pt.length-1)):null!==ze&&Bt(ze,0,ze.length-1),U&&"svg"===tt&&(U=!1)):(Ot=Fe["s-cr"])?Ot.parentNode.textContent=St:we.$text$!==St&&(Fe.data=St)},ki=we=>{let Fe,ze,pt,tt,St,Ot,he=we.childNodes;for(ze=0,pt=he.length;ze{let he,Fe,ze,pt,tt,St,Ot=0,Ft=we.childNodes,Xt=Ft.length;for(;Ot=0;St--)Fe=ze[St],!Fe["s-cn"]&&!Fe["s-nr"]&&Fe["s-hn"]!==he["s-hn"]&&(Ii(Fe,pt)?(tt=Ui.find(xn=>xn.$nodeToRelocate$===Fe),$=!0,Fe["s-sn"]=Fe["s-sn"]||pt,tt?tt.$slotRefNode$=he:Ui.push({$slotRefNode$:he,$nodeToRelocate$:Fe}),Fe["s-sr"]&&Ui.map(xn=>{Ii(xn.$nodeToRelocate$,Fe["s-sn"])&&(tt=Ui.find(Pn=>Pn.$nodeToRelocate$===Fe),tt&&!xn.$slotRefNode$&&(xn.$slotRefNode$=tt.$slotRefNode$))})):Ui.some(xn=>xn.$nodeToRelocate$===Fe)||Ui.push({$nodeToRelocate$:Fe}));1===he.nodeType&&Ln(he)}},Ii=(we,he)=>1===we.nodeType?null===we.getAttribute("slot")&&""===he||we.getAttribute("slot")===he:we["s-sn"]===he||""===he,si=we=>{we.$attrs$&&we.$attrs$.ref&&we.$attrs$.ref(null),we.$children$&&we.$children$.map(si)},Xn=we=>zr(we).$hostElement$,fi=(we,he,Fe)=>{const ze=Xn(we);return{emit:pt=>_r(ze,he,{bubbles:!!(4&Fe),composed:!!(2&Fe),cancelable:!!(1&Fe),detail:pt})}},_r=(we,he,Fe)=>{const ze=de.ce(he,Fe);return we.dispatchEvent(ze),ze},lr=(we,he)=>{he&&!we.$onRenderResolve$&&he["s-p"]&&he["s-p"].push(new Promise(Fe=>we.$onRenderResolve$=Fe))},rs=(we,he)=>{if(we.$flags$|=16,!(4&we.$flags$))return lr(we,we.$ancestorComponent$),Fs(()=>xo(we,he));we.$flags$|=512},xo=(we,he)=>{const ze=we.$lazyInstance$;let pt;return he&&(we.$flags$|=256,we.$queuedListeners$&&(we.$queuedListeners$.map(([tt,St])=>Wo(ze,tt,St)),we.$queuedListeners$=null),pt=Wo(ze,"componentWillLoad")),pt=To(pt,()=>Wo(ze,"componentWillRender")),To(pt,()=>Nr(we,ze,he))},Nr=function(){var we=(0,m.Z)(function*(he,Fe,ze){const pt=he.$hostElement$,St=pt["s-rc"];ze&&(we=>{const he=we.$cmpMeta$,Fe=we.$hostElement$,ze=he.$flags$,tt=wt(Ie&&Fe.shadowRoot?Fe.shadowRoot:Fe.getRootNode(),he,we.$modeName$,Fe);10&ze&&(Fe["s-sc"]=tt,Fe.classList.add(tt+"-h"),2&ze&&Fe.classList.add(tt+"-s"))})(he);Ro(he,Fe),de.$cssShim$&&de.$cssShim$.updateHost(pt),St&&(St.map(Ft=>Ft()),pt["s-rc"]=void 0);{const Ft=pt["s-p"],Xt=()=>Fi(he);0===Ft.length?Xt():(Promise.all(Ft).then(Xt),he.$flags$|=4,Ft.length=0)}});return function(Fe,ze,pt){return we.apply(this,arguments)}}(),Ro=(we,he,Fe)=>{try{he=he.render&&he.render(),we.$flags$&=-17,we.$flags$|=2,((we,he)=>{const Fe=we.$hostElement$,ze=we.$cmpMeta$,pt=we.$vnode$||Hn(null,null),tt=(we=>we&&we.$tag$===ir)(he)?he:Tn(null,null,he);if(O=Fe.tagName,ze.$attrsToReflect$&&(tt.$attrs$=tt.$attrs$||{},ze.$attrsToReflect$.map(([St,Ot])=>tt.$attrs$[Ot]=Fe[St])),tt.$tag$=null,tt.$flags$|=4,we.$vnode$=tt,tt.$elm$=pt.$elm$=Fe.shadowRoot||Fe,q=Fe["s-sc"],D=Fe["s-cr"],P=Ie&&0!=(1&ze.$flags$),$=!1,ii(pt,tt),de.$flags$|=1,I){Ln(tt.$elm$);let St,Ot,Ft,Xt,xn,Pn,Kn=0;for(;Kn{const Fe=we.$hostElement$,pt=we.$lazyInstance$,tt=we.$ancestorComponent$;64&we.$flags$?Wo(pt,"componentDidUpdate"):(we.$flags$|=64,ks(Fe),Wo(pt,"componentDidLoad"),we.$onReadyResolve$(Fe),tt||Do()),we.$onInstanceResolve$(Fe),we.$onRenderResolve$&&(we.$onRenderResolve$(),we.$onRenderResolve$=void 0),512&we.$flags$&&Ar(()=>rs(we,!1)),we.$flags$&=-517},Jn=we=>{{const he=zr(we),Fe=he.$hostElement$.isConnected;return Fe&&2==(18&he.$flags$)&&rs(he,!1),Fe}},Do=we=>{ks(X.documentElement),Ar(()=>_r(H,"appload",{detail:{namespace:"ionic"}}))},Wo=(we,he,Fe)=>{if(we&&we[he])try{return we[he](Fe)}catch(ze){Zo(ze)}},To=(we,he)=>we&&we.then?we.then(he):he(),ks=we=>we.classList.add("hydrated"),Si=(we,he,Fe,ze,pt,tt,St)=>{let Ot,Ft,Xt,xn;if(1===tt.nodeType){for(Ot=tt.getAttribute("c-id"),Ot&&(Ft=Ot.split("."),(Ft[0]===St||"0"===Ft[0])&&(Xt={$flags$:0,$hostId$:Ft[0],$nodeId$:Ft[1],$depth$:Ft[2],$index$:Ft[3],$tag$:tt.tagName.toLowerCase(),$elm$:tt,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},he.push(Xt),tt.removeAttribute("c-id"),we.$children$||(we.$children$=[]),we.$children$[Xt.$index$]=Xt,we=Xt,ze&&"0"===Xt.$depth$&&(ze[Xt.$index$]=Xt.$elm$))),xn=tt.childNodes.length-1;xn>=0;xn--)Si(we,he,Fe,ze,pt,tt.childNodes[xn],St);if(tt.shadowRoot)for(xn=tt.shadowRoot.childNodes.length-1;xn>=0;xn--)Si(we,he,Fe,ze,pt,tt.shadowRoot.childNodes[xn],St)}else if(8===tt.nodeType)Ft=tt.nodeValue.split("."),(Ft[1]===St||"0"===Ft[1])&&(Ot=Ft[0],Xt={$flags$:0,$hostId$:Ft[1],$nodeId$:Ft[2],$depth$:Ft[3],$index$:Ft[4],$elm$:tt,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===Ot?(Xt.$elm$=tt.nextSibling,Xt.$elm$&&3===Xt.$elm$.nodeType&&(Xt.$text$=Xt.$elm$.textContent,he.push(Xt),tt.remove(),we.$children$||(we.$children$=[]),we.$children$[Xt.$index$]=Xt,ze&&"0"===Xt.$depth$&&(ze[Xt.$index$]=Xt.$elm$))):Xt.$hostId$===St&&("s"===Ot?(Xt.$tag$="slot",tt["s-sn"]=Ft[5]?Xt.$name$=Ft[5]:"",tt["s-sr"]=!0,ze&&(Xt.$elm$=X.createElement(Xt.$tag$),Xt.$name$&&Xt.$elm$.setAttribute("name",Xt.$name$),tt.parentNode.insertBefore(Xt.$elm$,tt),tt.remove(),"0"===Xt.$depth$&&(ze[Xt.$index$]=Xt.$elm$)),Fe.push(Xt),we.$children$||(we.$children$=[]),we.$children$[Xt.$index$]=Xt):"r"===Ot&&(ze?tt.remove():(pt["s-cr"]=tt,tt["s-cn"]=!0))));else if(we&&"style"===we.$tag$){const Pn=Hn(null,tt.textContent);Pn.$elm$=tt,Pn.$index$="0",we.$children$=[Pn]}},un=(we,he)=>{if(1===we.nodeType){let Fe=0;for(;Fe{if(he.$members$){we.watchers&&(he.$watchers$=we.watchers);const ze=Object.entries(he.$members$),pt=we.prototype;if(ze.map(([tt,[St]])=>{31&St||2&Fe&&32&St?Object.defineProperty(pt,tt,{get(){return((we,he)=>zr(this).$instanceValues$.get(he))(0,tt)},set(Ot){((we,he,Fe,ze)=>{const pt=zr(we),tt=pt.$hostElement$,St=pt.$instanceValues$.get(he),Ot=pt.$flags$,Ft=pt.$lazyInstance$;if(Fe=((we,he)=>null==we||Sn(we)?we:4&he?"false"!==we&&(""===we||!!we):2&he?parseFloat(we):1&he?String(we):we)(Fe,ze.$members$[he][0]),(!(8&Ot)||void 0===St)&&Fe!==St&&(pt.$instanceValues$.set(he,Fe),Ft)){if(ze.$watchers$&&128&Ot){const Xt=ze.$watchers$[he];Xt&&Xt.map(xn=>{try{Ft[xn](Fe,St,he)}catch(Pn){Zo(Pn,tt)}})}2==(18&Ot)&&rs(pt,!1)}})(this,tt,Ot,he)},configurable:!0,enumerable:!0}):1&Fe&&64&St&&Object.defineProperty(pt,tt,{value(...Ot){const Ft=zr(this);return Ft.$onInstancePromise$.then(()=>Ft.$lazyInstance$[tt](...Ot))}})}),1&Fe){const tt=new Map;pt.attributeChangedCallback=function(St,Ot,Ft){de.jmp(()=>{const Xt=tt.get(St);this[Xt]=(null!==Ft||"boolean"!=typeof this[Xt])&&Ft})},we.observedAttributes=ze.filter(([St,Ot])=>15&Ot[0]).map(([St,Ot])=>{const Ft=Ot[1]||St;return tt.set(Ft,St),512&Ot[0]&&he.$attrsToReflect$.push([St,Ft]),Ft})}}return we},Lo=function(){var we=(0,m.Z)(function*(he,Fe,ze,pt,tt){if(0==(32&Fe.$flags$)){{if(Fe.$flags$|=32,(tt=ri(ze)).then){const Xt=()=>{};tt=yield tt,Xt()}tt.isProxied||(ze.$watchers$=tt.watchers,pr(tt,ze,2),tt.isProxied=!0);const Ft=()=>{};Fe.$flags$|=8;try{new tt(Fe)}catch(Xt){Zo(Xt)}Fe.$flags$&=-9,Fe.$flags$|=128,Ft(),yr(Fe.$lazyInstance$)}if(tt.style){let Ft=tt.style;"string"!=typeof Ft&&(Ft=Ft[Fe.$modeName$=(we=>ci.map(he=>he(we)).find(he=>!!he))(he)]);const Xt=ft(ze,Fe.$modeName$);if(!no.has(Xt)){const xn=()=>{};8&ze.$flags$&&(Ft=yield g.e(8810).then(g.bind(g,8810)).then(Pn=>Pn.scopeCss(Ft,Xt,!1))),zt(Xt,Ft,!!(1&ze.$flags$)),xn()}}}const St=Fe.$ancestorComponent$,Ot=()=>rs(Fe,!0);St&&St["s-rc"]?St["s-rc"].push(Ot):Ot()});return function(Fe,ze,pt,tt,St){return we.apply(this,arguments)}}(),yr=we=>{Wo(we,"connectedCallback")},mr=we=>{const he=we["s-cr"]=X.createComment("");he["s-cn"]=!0,we.insertBefore(he,we.firstChild)},ai=(we,he={})=>{const ze=[],pt=he.exclude||[],tt=H.customElements,St=X.head,Ot=St.querySelector("meta[charset]"),Ft=X.createElement("style"),Xt=[],xn=X.querySelectorAll(`[${Ue}]`);let Pn,Kn=!0,yi=0;for(Object.assign(de,he),de.$resourcesUrl$=new URL(he.resourcesUrl||"./",X.baseURI).href,de.$flags$|=2;yibo[1].map(ao=>{const wi={$flags$:ao[0],$tagName$:ao[1],$members$:ao[2],$listeners$:ao[3]};wi.$members$=ao[2],wi.$listeners$=ao[3],wi.$attrsToReflect$=[],wi.$watchers$={},!Ie&&1&wi.$flags$&&(wi.$flags$|=8);const Rs=wi.$tagName$,Va=class extends HTMLElement{constructor(Wr){super(Wr),rr(Wr=this,wi),1&wi.$flags$&&(Ie?Wr.attachShadow({mode:"open",delegatesFocus:!!(16&wi.$flags$)}):"shadowRoot"in Wr||(Wr.shadowRoot=Wr))}connectedCallback(){Pn&&(clearTimeout(Pn),Pn=null),Kn?Xt.push(this):de.jmp(()=>(we=>{if(0==(1&de.$flags$)){const he=zr(we),Fe=he.$cmpMeta$,ze=()=>{};if(1&he.$flags$)ve(we,he,Fe.$listeners$),yr(he.$lazyInstance$);else{let pt;if(he.$flags$|=1,pt=we.getAttribute(Dt),pt){if(Ie&&1&Fe.$flags$){const tt=wt(we.shadowRoot,Fe,we.getAttribute("s-mode"));we.classList.remove(tt+"-h",tt+"-s")}((we,he,Fe,ze)=>{const tt=we.shadowRoot,St=[],Ft=tt?[]:null,Xt=ze.$vnode$=Hn(he,null);de.$orgLocNodes$||un(X.body,de.$orgLocNodes$=new Map),we[Dt]=Fe,we.removeAttribute(Dt),Si(Xt,St,[],Ft,we,we,Fe),St.map(xn=>{const Pn=xn.$hostId$+"."+xn.$nodeId$,Kn=de.$orgLocNodes$.get(Pn),yi=xn.$elm$;Kn&&Ie&&""===Kn["s-en"]&&Kn.parentNode.insertBefore(yi,Kn.nextSibling),tt||(yi["s-hn"]=he,Kn&&(yi["s-ol"]=Kn,yi["s-ol"]["s-nr"]=yi)),de.$orgLocNodes$.delete(Pn)}),tt&&Ft.map(xn=>{xn&&tt.appendChild(xn)})})(we,Fe.$tagName$,pt,he)}pt||12&Fe.$flags$&&mr(we);{let tt=we;for(;tt=tt.parentNode||tt.host;)if(1===tt.nodeType&&tt.hasAttribute("s-id")&&tt["s-p"]||tt["s-p"]){lr(he,he.$ancestorComponent$=tt);break}}Fe.$members$&&Object.entries(Fe.$members$).map(([tt,[St]])=>{if(31&St&&we.hasOwnProperty(tt)){const Ot=we[tt];delete we[tt],we[tt]=Ot}}),Ar(()=>Lo(we,he,Fe))}ze()}})(this))}disconnectedCallback(){de.jmp(()=>(we=>{if(0==(1&de.$flags$)){const he=zr(we),Fe=he.$lazyInstance$;he.$rmListeners$&&(he.$rmListeners$.map(ze=>ze()),he.$rmListeners$=void 0),de.$cssShim$&&de.$cssShim$.removeHost(we),Wo(Fe,"disconnectedCallback")}})(this))}componentOnReady(){return zr(this).$onReadyPromise$}};wi.$lazyBundleId$=bo[0],!pt.includes(Rs)&&!tt.get(Rs)&&(ze.push(Rs),tt.define(Rs,pr(Va,wi,1)))})),Ft.innerHTML=ze+"{visibility:hidden}.hydrated{visibility:inherit}",Ft.setAttribute("data-styles",""),St.insertBefore(Ft,Ot?Ot.nextSibling:St.firstChild),Kn=!1,Xt.length?Xt.map(bo=>bo.connectedCallback()):de.jmp(()=>Pn=setTimeout(Do,30))},Mi=we=>{const he=new URL(we,de.$resourcesUrl$);return he.origin!==H.location.origin?he.href:he.pathname},ur=new WeakMap,zr=we=>ur.get(we),Ur=(we,he)=>ur.set(he.$lazyInstance$=we,he),rr=(we,he)=>{const Fe={$flags$:0,$hostElement$:we,$cmpMeta$:he,$instanceValues$:new Map};return Fe.$onInstancePromise$=new Promise(ze=>Fe.$onInstanceResolve$=ze),Fe.$onReadyPromise$=new Promise(ze=>Fe.$onReadyResolve$=ze),we["s-p"]=[],we["s-rc"]=[],ve(we,Fe,he.$listeners$),ur.set(we,Fe)},Ri=(we,he)=>he in we,Zo=(we,he)=>(0,console.error)(we,he),Yo=new Map,ri=(we,he,Fe)=>{const ze=we.$tagName$.replace(/-/g,"_"),pt=we.$lazyBundleId$,tt=Yo.get(pt);return tt?tt[ze]:g(863)(`./${pt}.entry.js`).then(St=>(Yo.set(pt,St),St[ze]),Zo)},no=new Map,ci=[],$r=[],yo=[],_i=(we,he)=>Fe=>{we.push(Fe),z||(z=!0,he&&4&de.$flags$?Ar(Li):de.raf(Li))},ei=we=>{for(let he=0;he{ei($r),ei(yo),(z=$r.length>0)&&de.raf(Li)},Ar=we=>ue().then(we),$i=_i($r,!1),Fs=_i(yo,!0),ia={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},4001:(ge,G,g)=>{"use strict";g.d(G,{L:()=>D,a:()=>O,b:()=>P,c:()=>$,d:()=>I,e:()=>C,g:()=>je,l:()=>rt,s:()=>Dt,t:()=>H});var m=g(4553),i=g(3150),q=g(2377);const D="ionViewWillEnter",O="ionViewDidEnter",P="ionViewWillLeave",$="ionViewDidLeave",I="ionViewWillUnload",H=He=>new Promise((Ve,Qe)=>{(0,i.c)(()=>{A(He),X(He).then(nt=>{nt.animation&&nt.animation.destroy(),de(He),Ve(nt)},nt=>{de(He),Qe(nt)})})}),A=He=>{const Ve=He.enteringEl,Qe=He.leavingEl;Ue(Ve,Qe,He.direction),He.showGoBack?Ve.classList.add("can-go-back"):Ve.classList.remove("can-go-back"),Dt(Ve,!1),Ve.style.setProperty("pointer-events","none"),Qe&&(Dt(Qe,!1),Qe.style.setProperty("pointer-events","none"))},X=function(){var He=(0,m.Z)(function*(Ve){const Qe=yield Ie(Ve);return Qe&&i.B.isBrowser?ue(Qe,Ve):Ce(Ve)});return function(Qe){return He.apply(this,arguments)}}(),de=He=>{const Ve=He.enteringEl,Qe=He.leavingEl;Ve.classList.remove("ion-page-invisible"),Ve.style.removeProperty("pointer-events"),void 0!==Qe&&(Qe.classList.remove("ion-page-invisible"),Qe.style.removeProperty("pointer-events"))},Ie=function(){var He=(0,m.Z)(function*(Ve){return Ve.leavingEl&&Ve.animated&&0!==Ve.duration?Ve.animationBuilder?Ve.animationBuilder:"ios"===Ve.mode?(yield Promise.resolve().then(g.bind(g,9554))).iosTransitionAnimation:(yield Promise.resolve().then(g.bind(g,7405))).mdTransitionAnimation:void 0});return function(Qe){return He.apply(this,arguments)}}(),ue=function(){var He=(0,m.Z)(function*(Ve,Qe){yield ve(Qe,!0);const nt=Ve(Qe.baseEl,Qe);$e(Qe.enteringEl,Qe.leavingEl);const Ht=yield Pe(nt,Qe);return Qe.progressCallback&&Qe.progressCallback(void 0),Ht&&at(Qe.enteringEl,Qe.leavingEl),{hasCompleted:Ht,animation:nt}});return function(Qe,nt){return He.apply(this,arguments)}}(),Ce=function(){var He=(0,m.Z)(function*(Ve){const Qe=Ve.enteringEl,nt=Ve.leavingEl;return yield ve(Ve,!1),$e(Qe,nt),at(Qe,nt),{hasCompleted:!0}});return function(Qe){return He.apply(this,arguments)}}(),ve=function(){var He=(0,m.Z)(function*(Ve,Qe){const Ht=(void 0!==Ve.deepWait?Ve.deepWait:Qe)?[C(Ve.enteringEl),C(Ve.leavingEl)]:[bt(Ve.enteringEl),bt(Ve.leavingEl)];yield Promise.all(Ht),yield De(Ve.viewIsReady,Ve.enteringEl)});return function(Qe,nt){return He.apply(this,arguments)}}(),De=function(){var He=(0,m.Z)(function*(Ve,Qe){Ve&&(yield Ve(Qe))});return function(Qe,nt){return He.apply(this,arguments)}}(),Pe=(He,Ve)=>{const Qe=Ve.progressCallback,nt=new Promise(Ht=>{He.onFinish(zt=>Ht(1===zt))});return Qe?(He.progressStart(!0),Qe(He)):He.play(),nt},$e=(He,Ve)=>{rt(Ve,P),rt(He,D)},at=(He,Ve)=>{rt(He,O),rt(Ve,$)},rt=(He,Ve)=>{if(He){const Qe=new CustomEvent(Ve,{bubbles:!1,cancelable:!1});He.dispatchEvent(Qe)}},bt=He=>He?new Promise(Ve=>(0,q.c)(He,Ve)):Promise.resolve(),C=function(){var He=(0,m.Z)(function*(Ve){const Qe=Ve;if(Qe){if(null!=Qe.componentOnReady&&null!=(yield Qe.componentOnReady()))return;yield Promise.all(Array.from(Qe.children).map(C))}});return function(Qe){return He.apply(this,arguments)}}(),Dt=(He,Ve)=>{Ve?(He.setAttribute("aria-hidden","true"),He.classList.add("ion-page-hidden")):(He.hidden=!1,He.removeAttribute("aria-hidden"),He.classList.remove("ion-page-hidden"))},Ue=(He,Ve,Qe)=>{void 0!==He&&(He.style.zIndex="back"===Qe?"99":"101"),void 0!==Ve&&(Ve.style.zIndex="100")},je=He=>He.classList.contains("ion-page")?He:He.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||He},7585:(ge,G,g)=>{"use strict";g.d(G,{a:()=>q,b:()=>Ht,c:()=>C,g:()=>i,i:()=>zt});var m=g(3150);const i=wt=>D(wt),q=(wt,ht)=>("string"==typeof wt&&(ht=wt,wt=void 0),i(wt).includes(ht)),D=(wt=window)=>{if(void 0===wt)return[];wt.Ionic=wt.Ionic||{};let ht=wt.Ionic.platforms;return null==ht&&(ht=wt.Ionic.platforms=O(wt),ht.forEach(ft=>wt.document.documentElement.classList.add(`plt-${ft}`))),ht},O=wt=>Object.keys(rt).filter(ht=>rt[ht](wt)),$=wt=>!!($e(wt,/iPad/i)||$e(wt,/Macintosh/i)&&de(wt)),z=wt=>$e(wt,/android|sink/i),de=wt=>at(wt,"(any-pointer:coarse)"),ue=wt=>Ce(wt)||ve(wt),Ce=wt=>!!(wt.cordova||wt.phonegap||wt.PhoneGap),ve=wt=>{const ht=wt.Capacitor;return!(!ht||!ht.isNative)},$e=(wt,ht)=>ht.test(wt.navigator.userAgent),at=(wt,ht)=>wt.matchMedia(ht).matches,rt={ipad:$,iphone:wt=>$e(wt,/iPhone/i),ios:wt=>$e(wt,/iPhone|iPod/i)||$(wt),android:z,phablet:wt=>{const ht=wt.innerWidth,ft=wt.innerHeight,Xe=Math.min(ht,ft),Ne=Math.max(ht,ft);return Xe>390&&Xe<520&&Ne>620&&Ne<800},tablet:wt=>{const ht=wt.innerWidth,ft=wt.innerHeight,Xe=Math.min(ht,ft),Ne=Math.max(ht,ft);return $(wt)||(wt=>z(wt)&&!$e(wt,/mobile/i))(wt)||Xe>460&&Xe<820&&Ne>780&&Ne<1400},cordova:Ce,capacitor:ve,electron:wt=>$e(wt,/electron/i),pwa:wt=>!(!wt.matchMedia("(display-mode: standalone)").matches&&!wt.navigator.standalone),mobile:de,mobileweb:wt=>de(wt)&&!ue(wt),desktop:wt=>!de(wt),hybrid:ue};class bt{constructor(){this.m=new Map}reset(ht){this.m=new Map(Object.entries(ht))}get(ht,ft){const Xe=this.m.get(ht);return void 0!==Xe?Xe:ft}getBoolean(ht,ft=!1){const Xe=this.m.get(ht);return void 0===Xe?ft:"string"==typeof Xe?"true"===Xe:!!Xe}getNumber(ht,ft){const Xe=parseFloat(this.m.get(ht));return isNaN(Xe)?void 0!==ft?ft:NaN:Xe}set(ht,ft){this.m.set(ht,ft)}}const C=new bt,Qe="ionic-persist-config";let nt;const Ht=wt=>wt&&(0,m.g)(wt)||nt,zt=(wt={})=>{if("undefined"==typeof window)return;const ht=window.document,ft=window,Xe=ft.Ionic=ft.Ionic||{};D(ft);const Ne=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(wt=>{try{const ht=wt.sessionStorage.getItem(Qe);return null!==ht?JSON.parse(ht):{}}catch(ht){return{}}})(ft)),{persistConfig:!1}),Xe.config),(wt=>{const ht={};return wt.location.search.slice(1).split("&").map(ft=>ft.split("=")).map(([ft,Xe])=>[decodeURIComponent(ft),decodeURIComponent(Xe)]).filter(([ft])=>((wt,ht)=>wt.substr(0,ht.length)===ht)(ft,"ionic:")).map(([ft,Xe])=>[ft.slice("ionic:".length),Xe]).forEach(([ft,Xe])=>{ht[ft]=Xe}),ht})(ft)),wt);C.reset(Ne),C.getBoolean("persistConfig")&&((wt,ht)=>{try{wt.sessionStorage.setItem(Qe,JSON.stringify(ht))}catch(ft){return}})(ft,Ne),Xe.config=C,Xe.mode=nt=C.get("mode",ht.documentElement.getAttribute("mode")||(q(ft,"ios")?"ios":"md")),C.set("mode",nt),ht.documentElement.setAttribute("mode",nt),ht.documentElement.classList.add(nt),C.getBoolean("_testing")&&C.set("animated",!1);const Be=Ae=>Ae.tagName&&Ae.tagName.startsWith("ION-"),Se=Ae=>["ios","md"].includes(Ae);(0,m.s)(Ae=>{for(;Ae;){const Ge=Ae.mode||Ae.getAttribute("mode");if(Ge){if(Se(Ge))return Ge;Be(Ae)&&console.warn('Invalid ionic mode: "'+Ge+'", expected: "ios" or "md"')}Ae=Ae.parentElement}return nt})}},9554:(ge,G,g)=>{"use strict";g.r(G),g.d(G,{iosTransitionAnimation:()=>A,shadow:()=>P});var m=g(4086),i=g(4001);g(3150);const O=X=>document.querySelector(`${X}.ion-cloned-element`),P=X=>X.shadowRoot||X,$=X=>{const de="ION-TABS"===X.tagName?X:X.querySelector("ion-tabs"),Ie="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=de){const ue=de.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=ue?ue.querySelector(Ie):null}return X.querySelector(Ie)},I=(X,de)=>{const Ie="ION-TABS"===X.tagName?X:X.querySelector("ion-tabs");let ue=[];if(null!=Ie){const Ce=Ie.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=Ce&&(ue=Ce.querySelectorAll("ion-buttons"))}else ue=X.querySelectorAll("ion-buttons");for(const Ce of ue){const ve=Ce.closest("ion-header"),De=ve&&!ve.classList.contains("header-collapse-condense-inactive"),Pe=Ce.querySelector("ion-back-button"),$e=Ce.classList.contains("buttons-collapse"),at="start"===Ce.slot||""===Ce.slot;if(null!==Pe&&at&&($e&&De&&de||!$e))return Pe}return null},z=(X,de,Ie,ue,Ce,ve)=>{const De=de?`calc(100% - ${ve.right+4}px)`:ve.left-4+"px",Pe=de?"7px":"-7px",$e=de?"-4px":"4px",at=de?"-4px":"4px",rt=de?"right":"left",bt=de?"left":"right",Ue=Ie?[{offset:0,opacity:1,transform:`translate3d(${$e}, ${ve.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Pe}, ${Ce.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${Pe}, ${Ce.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${$e}, ${ve.top-46}px, 0) scale(1)`}],Ve=Ie?[{offset:0,opacity:1,transform:`translate3d(${at}, ${ve.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${at}, ${ve.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${at}, ${ve.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${at}, ${ve.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${at}, ${ve.top-46}px, 0) scale(1)`}],Qe=(0,m.c)(),nt=(0,m.c)(),Ht=O("ion-back-button"),zt=P(Ht).querySelector(".button-text"),wt=P(Ht).querySelector("ion-icon");Ht.text=ue.text,Ht.mode=ue.mode,Ht.icon=ue.icon,Ht.color=ue.color,Ht.disabled=ue.disabled,Ht.style.setProperty("display","block"),Ht.style.setProperty("position","fixed"),nt.addElement(wt),Qe.addElement(zt),Qe.beforeStyles({"transform-origin":`${rt} center`}).beforeAddWrite(()=>{ue.style.setProperty("display","none"),Ht.style.setProperty(rt,De)}).afterAddWrite(()=>{ue.style.setProperty("display",""),Ht.style.setProperty("display","none"),Ht.style.removeProperty(rt)}).keyframes(Ue),nt.beforeStyles({"transform-origin":`${bt} center`}).keyframes(Ve),X.addAnimation([Qe,nt])},H=(X,de,Ie,ue,Ce,ve)=>{const De=de?`calc(100% - ${Ce.right}px)`:`${Ce.left}px`,Pe=de?"-18px":"18px",$e=de?"right":"left",bt=Ie?[{offset:0,opacity:0,transform:`translate3d(${Pe}, ${ve.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${Ce.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${Ce.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Pe}, ${ve.top-4}px, 0) scale(0.5)`}],C=O("ion-title"),Dt=(0,m.c)();C.innerText=ue.innerText,C.size=ue.size,C.color=ue.color,Dt.addElement(C),Dt.beforeStyles({"transform-origin":`${$e} center`,height:"46px",display:"",position:"relative",[$e]:De}).beforeAddWrite(()=>{ue.style.setProperty("display","none")}).afterAddWrite(()=>{ue.style.setProperty("display",""),C.style.setProperty("display","none")}).keyframes(bt),X.addAnimation(Dt)},A=(X,de)=>{try{const Ie="cubic-bezier(0.32,0.72,0,1)",ue="opacity",Ce="transform",ve="0%",De=.8,Pe="rtl"===X.ownerDocument.dir,$e=Pe?"-99.5%":"99.5%",at=Pe?"33%":"-33%",rt=de.enteringEl,bt=de.leavingEl,C="back"===de.direction,Dt=rt.querySelector(":scope > ion-content"),Ue=rt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),je=rt.querySelectorAll(":scope > ion-header > ion-toolbar"),He=(0,m.c)(),Ve=(0,m.c)();if(He.addElement(rt).duration(de.duration||540).easing(de.easing||Ie).fill("both").beforeRemoveClass("ion-page-invisible"),bt&&X){const zt=(0,m.c)();zt.addElement(X),He.addAnimation(zt)}if(Dt||0!==je.length||0!==Ue.length?(Ve.addElement(Dt),Ve.addElement(Ue)):Ve.addElement(rt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),He.addAnimation(Ve),C?Ve.beforeClearStyles([ue]).fromTo("transform",`translateX(${at})`,`translateX(${ve})`).fromTo(ue,De,1):Ve.beforeClearStyles([ue]).fromTo("transform",`translateX(${$e})`,`translateX(${ve})`),Dt){const zt=P(Dt).querySelector(".transition-effect");if(zt){const wt=zt.querySelector(".transition-cover"),ht=zt.querySelector(".transition-shadow"),ft=(0,m.c)(),Xe=(0,m.c)(),Ne=(0,m.c)();ft.addElement(zt).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Xe.addElement(wt).beforeClearStyles([ue]).fromTo(ue,0,.1),Ne.addElement(ht).beforeClearStyles([ue]).fromTo(ue,.03,.7),ft.addAnimation([Xe,Ne]),Ve.addAnimation([ft])}}const Qe=rt.querySelector("ion-header.header-collapse-condense"),{forward:nt,backward:Ht}=((X,de,Ie,ue,Ce)=>{const ve=I(ue,Ie),De=$(Ce),Pe=$(ue),$e=I(Ce,Ie),at=null!==ve&&null!==De&&!Ie,rt=null!==Pe&&null!==$e&&Ie;if(at){const bt=De.getBoundingClientRect(),C=ve.getBoundingClientRect();H(X,de,Ie,De,bt,C),z(X,de,Ie,ve,bt,C)}else if(rt){const bt=Pe.getBoundingClientRect(),C=$e.getBoundingClientRect();H(X,de,Ie,Pe,bt,C),z(X,de,Ie,$e,bt,C)}return{forward:at,backward:rt}})(He,Pe,C,rt,bt);if(je.forEach(zt=>{const wt=(0,m.c)();wt.addElement(zt),He.addAnimation(wt);const ht=(0,m.c)();ht.addElement(zt.querySelector("ion-title"));const ft=(0,m.c)(),Xe=Array.from(zt.querySelectorAll("ion-buttons,[menuToggle]")),Ne=zt.closest("ion-header"),Be=Ne&&Ne.classList.contains("header-collapse-condense-inactive");let Se;Se=Xe.filter(C?Sn=>{const Tn=Sn.classList.contains("buttons-collapse");return Tn&&!Be||!Tn}:Sn=>!Sn.classList.contains("buttons-collapse")),ft.addElement(Se);const Ae=(0,m.c)();Ae.addElement(zt.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Ge=(0,m.c)();Ge.addElement(P(zt).querySelector(".toolbar-background"));const Ct=(0,m.c)(),Rt=zt.querySelector("ion-back-button");if(Rt&&Ct.addElement(Rt),wt.addAnimation([ht,ft,Ae,Ge,Ct]),ft.fromTo(ue,.01,1),Ae.fromTo(ue,.01,1),C)Be||ht.fromTo("transform",`translateX(${at})`,`translateX(${ve})`).fromTo(ue,.01,1),Ae.fromTo("transform",`translateX(${at})`,`translateX(${ve})`),Ct.fromTo(ue,.01,1);else if(Qe||ht.fromTo("transform",`translateX(${$e})`,`translateX(${ve})`).fromTo(ue,.01,1),Ae.fromTo("transform",`translateX(${$e})`,`translateX(${ve})`),Ge.beforeClearStyles([ue,"transform"]),(null==Ne?void 0:Ne.translucent)?Ge.fromTo("transform",Pe?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Ge.fromTo(ue,.01,"var(--opacity)"),nt||Ct.fromTo(ue,.01,1),Rt&&!nt){const Tn=(0,m.c)();Tn.addElement(P(Rt).querySelector(".button-text")).fromTo("transform",Pe?"translateX(-100px)":"translateX(100px)","translateX(0px)"),wt.addAnimation(Tn)}}),bt){const zt=(0,m.c)(),wt=bt.querySelector(":scope > ion-content"),ht=bt.querySelectorAll(":scope > ion-header > ion-toolbar"),ft=bt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(wt||0!==ht.length||0!==ft.length?(zt.addElement(wt),zt.addElement(ft)):zt.addElement(bt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),He.addAnimation(zt),C){zt.beforeClearStyles([ue]).fromTo("transform",`translateX(${ve})`,Pe?"translateX(-100%)":"translateX(100%)");const Xe=(0,i.g)(bt);He.afterAddWrite(()=>{"normal"===He.getDirection()&&Xe.style.setProperty("display","none")})}else zt.fromTo("transform",`translateX(${ve})`,`translateX(${at})`).fromTo(ue,1,De);if(wt){const Xe=P(wt).querySelector(".transition-effect");if(Xe){const Ne=Xe.querySelector(".transition-cover"),Be=Xe.querySelector(".transition-shadow"),Se=(0,m.c)(),Ae=(0,m.c)(),Ge=(0,m.c)();Se.addElement(Xe).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Ae.addElement(Ne).beforeClearStyles([ue]).fromTo(ue,.1,0),Ge.addElement(Be).beforeClearStyles([ue]).fromTo(ue,.7,.03),Se.addAnimation([Ae,Ge]),zt.addAnimation([Se])}}ht.forEach(Xe=>{const Ne=(0,m.c)();Ne.addElement(Xe);const Be=(0,m.c)();Be.addElement(Xe.querySelector("ion-title"));const Se=(0,m.c)(),Ae=Xe.querySelectorAll("ion-buttons,[menuToggle]"),Ge=Xe.closest("ion-header"),Ct=Ge&&Ge.classList.contains("header-collapse-condense-inactive"),Rt=Array.from(Ae).filter(Lr=>{const Fo=Lr.classList.contains("buttons-collapse");return Fo&&!Ct||!Fo});Se.addElement(Rt);const Sn=(0,m.c)(),Tn=Xe.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");Tn.length>0&&Sn.addElement(Tn);const Hn=(0,m.c)();Hn.addElement(P(Xe).querySelector(".toolbar-background"));const ir=(0,m.c)(),Ei=Xe.querySelector("ion-back-button");if(Ei&&ir.addElement(Ei),Ne.addAnimation([Be,Se,Sn,ir,Hn]),He.addAnimation(Ne),ir.fromTo(ue,.99,0),Se.fromTo(ue,.99,0),Sn.fromTo(ue,.99,0),C){if(Ct||Be.fromTo("transform",`translateX(${ve})`,Pe?"translateX(-100%)":"translateX(100%)").fromTo(ue,.99,0),Sn.fromTo("transform",`translateX(${ve})`,Pe?"translateX(-100%)":"translateX(100%)"),Hn.beforeClearStyles([ue,"transform"]),(null==Ge?void 0:Ge.translucent)?Hn.fromTo("transform","translateX(0px)",Pe?"translateX(-100%)":"translateX(100%)"):Hn.fromTo(ue,"var(--opacity)",0),Ei&&!Ht){const Fo=(0,m.c)();Fo.addElement(P(Ei).querySelector(".button-text")).fromTo("transform",`translateX(${ve})`,`translateX(${(Pe?-124:124)+"px"})`),Ne.addAnimation(Fo)}}else Ct||Be.fromTo("transform",`translateX(${ve})`,`translateX(${at})`).fromTo(ue,.99,0).afterClearStyles([Ce,ue]),Sn.fromTo("transform",`translateX(${ve})`,`translateX(${at})`).afterClearStyles([Ce,ue]),ir.afterClearStyles([ue]),Be.afterClearStyles([ue]),Se.afterClearStyles([ue])})}return He}catch(Ie){throw Ie}}},7405:(ge,G,g)=>{"use strict";g.r(G),g.d(G,{mdTransitionAnimation:()=>D});var m=g(4086),i=g(4001);g(3150);const D=(O,P)=>{const U="back"===P.direction,H=P.leavingEl,A=(0,i.g)(P.enteringEl),X=A.querySelector("ion-toolbar"),de=(0,m.c)();if(de.addElement(A).fill("both").beforeRemoveClass("ion-page-invisible"),U?de.duration(P.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):de.duration(P.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),X){const Ie=(0,m.c)();Ie.addElement(X),de.addAnimation(Ie)}if(H&&U){de.duration(P.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const Ie=(0,m.c)();Ie.addElement((0,i.g)(H)).onFinish(ue=>{1===ue&&Ie.elements.length>0&&Ie.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),de.addAnimation(Ie)}return de}},7053:(ge,G,g)=>{"use strict";g.d(G,{B:()=>ft,a:()=>I,b:()=>U,c:()=>X,d:()=>Ue,e:()=>Ie,f:()=>He,g:()=>nt,h:()=>P,i:()=>zt,l:()=>z,m:()=>H,p:()=>A,s:()=>ht,t:()=>de});var m=g(4553),i=g(7585),q=g(3087),D=g(2377);let O=0;const P=new WeakMap,$=Xe=>({create:Ne=>ue(Xe,Ne),dismiss:(Ne,Be,Se)=>rt(document,Ne,Be,Xe,Se),getTop:()=>(0,m.Z)(function*(){return C(document,Xe)})()}),I=$("ion-alert"),U=$("ion-action-sheet"),z=$("ion-loading"),H=$("ion-modal"),A=$("ion-picker"),X=$("ion-popover"),de=$("ion-toast"),Ie=Xe=>{"undefined"!=typeof document&&at(document);const Ne=O++;Xe.overlayIndex=Ne,Xe.hasAttribute("id")||(Xe.id=`ion-overlay-${Ne}`)},ue=(Xe,Ne)=>"undefined"!=typeof customElements?customElements.whenDefined(Xe).then(()=>{const Be=document.createElement(Xe);return Be.classList.add("overlay-hidden"),Object.assign(Be,Ne),Ve(document).appendChild(Be),new Promise(Se=>(0,D.c)(Be,Se))}):Promise.resolve(),Ce='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',ve="input:not([type=hidden]), textarea, button, select",at=Xe=>{0===O&&(O=1,Xe.addEventListener("focus",Ne=>((Xe,Ne)=>{const Be=C(Ne),Se=Xe.target;if(Be&&Se)if(Be===Se)Be.lastFocus=void 0;else{const Ae=(0,D.g)(Be);if(!Ae.contains(Se))return;const Ge=Ae.querySelector(".ion-overlay-wrapper");if(!Ge)return;if(Ge.contains(Se))Be.lastFocus=Se;else{const Ct=Be.lastFocus;((Xe,Ne)=>{let Be=Xe.querySelector(Ce);const Se=Be&&Be.shadowRoot;Se&&(Be=Se.querySelector(ve)||Be),Be?Be.focus():Ne.focus()})(Ge,Be),Ct===Ne.activeElement&&((Xe,Ne)=>{const Be=Array.from(Xe.querySelectorAll(Ce));let Se=Be.length>0?Be[Be.length-1]:null;const Ae=Se&&Se.shadowRoot;Ae&&(Se=Ae.querySelector(ve)||Se),Se?Se.focus():Ne.focus()})(Ge,Be),Be.lastFocus=Ne.activeElement}}})(Ne,Xe),!0),Xe.addEventListener("ionBackButton",Ne=>{const Be=C(Xe);Be&&Be.backdropDismiss&&Ne.detail.register(q.OVERLAY_BACK_BUTTON_PRIORITY,()=>Be.dismiss(void 0,ft))}),Xe.addEventListener("keyup",Ne=>{if("Escape"===Ne.key){const Be=C(Xe);Be&&Be.backdropDismiss&&Be.dismiss(void 0,ft)}}))},rt=(Xe,Ne,Be,Se,Ae)=>{const Ge=C(Xe,Se,Ae);return Ge?Ge.dismiss(Ne,Be):Promise.reject("overlay does not exist")},C=(Xe,Ne,Be)=>{const Se=((Xe,Ne)=>(void 0===Ne&&(Ne="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(Xe.querySelectorAll(Ne)).filter(Be=>Be.overlayIndex>0)))(Xe,Ne);return void 0===Be?Se[Se.length-1]:Se.find(Ae=>Ae.id===Be)},Dt=(Xe=!1)=>{const Be=Ve(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");!Be||(Xe?Be.setAttribute("aria-hidden","true"):Be.removeAttribute("aria-hidden"))},Ue=function(){var Xe=(0,m.Z)(function*(Ne,Be,Se,Ae,Ge){if(Ne.presented)return;Dt(!0),Ne.presented=!0,Ne.willPresent.emit();const Ct=(0,i.b)(Ne),Rt=Ne.enterAnimation?Ne.enterAnimation:i.c.get(Be,"ios"===Ct?Se:Ae);(yield Qe(Ne,Rt,Ne.el,Ge))&&Ne.didPresent.emit(),"ION-TOAST"!==Ne.el.tagName&&je(Ne.el),Ne.keyboardClose&&Ne.el.focus()});return function(Be,Se,Ae,Ge,Ct){return Xe.apply(this,arguments)}}(),je=function(){var Xe=(0,m.Z)(function*(Ne){let Be=document.activeElement;if(!Be)return;const Se=Be&&Be.shadowRoot;Se&&(Be=Se.querySelector(ve)||Be),yield Ne.onDidDismiss(),Be.focus()});return function(Be){return Xe.apply(this,arguments)}}(),He=function(){var Xe=(0,m.Z)(function*(Ne,Be,Se,Ae,Ge,Ct,Rt){if(!Ne.presented)return!1;Dt(!1),Ne.presented=!1;try{Ne.el.style.setProperty("pointer-events","none"),Ne.willDismiss.emit({data:Be,role:Se});const Sn=(0,i.b)(Ne),Tn=Ne.leaveAnimation?Ne.leaveAnimation:i.c.get(Ae,"ios"===Sn?Ge:Ct);"gesture"!==Se&&(yield Qe(Ne,Tn,Ne.el,Rt)),Ne.didDismiss.emit({data:Be,role:Se}),P.delete(Ne)}catch(Sn){console.error(Sn)}return Ne.el.remove(),!0});return function(Be,Se,Ae,Ge,Ct,Rt,Sn){return Xe.apply(this,arguments)}}(),Ve=Xe=>Xe.querySelector("ion-app")||Xe.body,Qe=function(){var Xe=(0,m.Z)(function*(Ne,Be,Se,Ae){Se.classList.remove("overlay-hidden");const Ct=Be(Se.shadowRoot||Ne.el,Ae);(!Ne.animated||!i.c.getBoolean("animated",!0))&&Ct.duration(0),Ne.keyboardClose&&Ct.beforeAddWrite(()=>{const Sn=Se.ownerDocument.activeElement;Sn&&Sn.matches("input, ion-input, ion-textarea")&&Sn.blur()});const Rt=P.get(Ne)||[];return P.set(Ne,[...Rt,Ct]),yield Ct.play(),!0});return function(Be,Se,Ae,Ge){return Xe.apply(this,arguments)}}(),nt=(Xe,Ne)=>{let Be;const Se=new Promise(Ae=>Be=Ae);return Ht(Xe,Ne,Ae=>{Be(Ae.detail)}),Se},Ht=(Xe,Ne,Be)=>{const Se=Ae=>{(0,D.b)(Xe,Ne,Se),Be(Ae)};(0,D.a)(Xe,Ne,Se)},zt=Xe=>"cancel"===Xe||Xe===ft,wt=Xe=>Xe(),ht=(Xe,Ne)=>{if("function"==typeof Xe)return i.c.get("_zoneGate",wt)(()=>{try{return Xe(Ne)}catch(Se){console.error(Se)}})},ft="backdrop"},348:(ge,G,g)=>{"use strict";g.d(G,{Pi:()=>wt,aw:()=>Xe,X$:()=>ht,sK:()=>zt});var m=g(4788),i=g(7574);function q(Ne){return!!Ne&&(Ne instanceof i.y||"function"==typeof Ne.lift&&"function"==typeof Ne.subscribe)}var D=g(5917),O=g(5758),P=g(8071),$=g(1439),I=g(5257),U=g(7349),z=g(8002),H=g(4612),A=g(3190);class X{}let de=(()=>{class Ne extends X{getTranslation(Se){return(0,D.of)({})}}return Ne.\u0275fac=function(){let Be;return function(Ae){return(Be||(Be=m.n5z(Ne)))(Ae||Ne)}}(),Ne.\u0275prov=m.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();class ue{}let Ce=(()=>{class Ne{handle(Se){return Se.key}}return Ne.\u0275fac=function(Se){return new(Se||Ne)},Ne.\u0275prov=m.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();function ve(Ne,Be){if(Ne===Be)return!0;if(null===Ne||null===Be)return!1;if(Ne!=Ne&&Be!=Be)return!0;let Ge,Ct,Rt,Se=typeof Ne;if(Se==typeof Be&&"object"==Se){if(!Array.isArray(Ne)){if(Array.isArray(Be))return!1;for(Ct in Rt=Object.create(null),Ne){if(!ve(Ne[Ct],Be[Ct]))return!1;Rt[Ct]=!0}for(Ct in Be)if(!(Ct in Rt)&&void 0!==Be[Ct])return!1;return!0}if(!Array.isArray(Be))return!1;if((Ge=Ne.length)==Be.length){for(Ct=0;Ct{Pe(Be[Ae])?Ae in Ne?Se[Ae]=$e(Ne[Ae],Be[Ae]):Object.assign(Se,{[Ae]:Be[Ae]}):Object.assign(Se,{[Ae]:Be[Ae]})}),Se}class at{}let rt=(()=>{class Ne extends at{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(Se,Ae){let Ge;return Ge="string"==typeof Se?this.interpolateString(Se,Ae):"function"==typeof Se?this.interpolateFunction(Se,Ae):Se,Ge}getValue(Se,Ae){let Ge="string"==typeof Ae?Ae.split("."):[Ae];Ae="";do{Ae+=Ge.shift(),!De(Se)||!De(Se[Ae])||"object"!=typeof Se[Ae]&&Ge.length?Ge.length?Ae+=".":Se=void 0:(Se=Se[Ae],Ae="")}while(Ge.length);return Se}interpolateFunction(Se,Ae){return Se(Ae)}interpolateString(Se,Ae){return Ae?Se.replace(this.templateMatcher,(Ge,Ct)=>{let Rt=this.getValue(Ae,Ct);return De(Rt)?Rt:Ge}):Se}}return Ne.\u0275fac=function(){let Be;return function(Ae){return(Be||(Be=m.n5z(Ne)))(Ae||Ne)}}(),Ne.\u0275prov=m.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();class bt{}let C=(()=>{class Ne extends bt{compile(Se,Ae){return Se}compileTranslations(Se,Ae){return Se}}return Ne.\u0275fac=function(){let Be;return function(Ae){return(Be||(Be=m.n5z(Ne)))(Ae||Ne)}}(),Ne.\u0275prov=m.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();class Dt{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new m.vpe,this.onLangChange=new m.vpe,this.onDefaultLangChange=new m.vpe}}const Ue=new m.OlP("USE_STORE"),je=new m.OlP("USE_DEFAULT_LANG"),He=new m.OlP("DEFAULT_LANGUAGE"),Ve=new m.OlP("USE_EXTEND");let zt=(()=>{class Ne{constructor(Se,Ae,Ge,Ct,Rt,Sn=!0,Tn=!1,Hn=!1,ir){this.store=Se,this.currentLoader=Ae,this.compiler=Ge,this.parser=Ct,this.missingTranslationHandler=Rt,this.useDefaultLang=Sn,this.isolate=Tn,this.extend=Hn,this.pending=!1,this._onTranslationChange=new m.vpe,this._onLangChange=new m.vpe,this._onDefaultLangChange=new m.vpe,this._langs=[],this._translations={},this._translationRequests={},ir&&this.setDefaultLang(ir)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(Se){this.isolate?this._defaultLang=Se:this.store.defaultLang=Se}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(Se){this.isolate?this._currentLang=Se:this.store.currentLang=Se}get langs(){return this.isolate?this._langs:this.store.langs}set langs(Se){this.isolate?this._langs=Se:this.store.langs=Se}get translations(){return this.isolate?this._translations:this.store.translations}set translations(Se){this.isolate?this._translations=Se:this.store.translations=Se}setDefaultLang(Se){if(Se===this.defaultLang)return;let Ae=this.retrieveTranslations(Se);void 0!==Ae?(null==this.defaultLang&&(this.defaultLang=Se),Ae.pipe((0,I.q)(1)).subscribe(Ge=>{this.changeDefaultLang(Se)})):this.changeDefaultLang(Se)}getDefaultLang(){return this.defaultLang}use(Se){if(Se===this.currentLang)return(0,D.of)(this.translations[Se]);let Ae=this.retrieveTranslations(Se);return void 0!==Ae?(this.currentLang||(this.currentLang=Se),Ae.pipe((0,I.q)(1)).subscribe(Ge=>{this.changeLang(Se)}),Ae):(this.changeLang(Se),(0,D.of)(this.translations[Se]))}retrieveTranslations(Se){let Ae;return(void 0===this.translations[Se]||this.extend)&&(this._translationRequests[Se]=this._translationRequests[Se]||this.getTranslation(Se),Ae=this._translationRequests[Se]),Ae}getTranslation(Se){this.pending=!0;const Ae=this.currentLoader.getTranslation(Se).pipe((0,U.d)(1),(0,I.q)(1));return this.loadingTranslations=Ae.pipe((0,z.U)(Ge=>this.compiler.compileTranslations(Ge,Se)),(0,U.d)(1),(0,I.q)(1)),this.loadingTranslations.subscribe({next:Ge=>{this.translations[Se]=this.extend&&this.translations[Se]?Object.assign(Object.assign({},Ge),this.translations[Se]):Ge,this.updateLangs(),this.pending=!1},error:Ge=>{this.pending=!1}}),Ae}setTranslation(Se,Ae,Ge=!1){Ae=this.compiler.compileTranslations(Ae,Se),this.translations[Se]=(Ge||this.extend)&&this.translations[Se]?$e(this.translations[Se],Ae):Ae,this.updateLangs(),this.onTranslationChange.emit({lang:Se,translations:this.translations[Se]})}getLangs(){return this.langs}addLangs(Se){Se.forEach(Ae=>{-1===this.langs.indexOf(Ae)&&this.langs.push(Ae)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(Se,Ae,Ge){let Ct;if(Ae instanceof Array){let Rt={},Sn=!1;for(let Tn of Ae)Rt[Tn]=this.getParsedResult(Se,Tn,Ge),q(Rt[Tn])&&(Sn=!0);if(Sn){const Tn=Ae.map(Hn=>q(Rt[Hn])?Rt[Hn]:(0,D.of)(Rt[Hn]));return(0,O.D)(Tn).pipe((0,z.U)(Hn=>{let ir={};return Hn.forEach((Ei,Lr)=>{ir[Ae[Lr]]=Ei}),ir}))}return Rt}if(Se&&(Ct=this.parser.interpolate(this.parser.getValue(Se,Ae),Ge)),void 0===Ct&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Ct=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Ae),Ge)),void 0===Ct){let Rt={key:Ae,translateService:this};void 0!==Ge&&(Rt.interpolateParams=Ge),Ct=this.missingTranslationHandler.handle(Rt)}return void 0!==Ct?Ct:Ae}get(Se,Ae){if(!De(Se)||!Se.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,H.b)(Ge=>q(Ge=this.getParsedResult(Ge,Se,Ae))?Ge:(0,D.of)(Ge)));{let Ge=this.getParsedResult(this.translations[this.currentLang],Se,Ae);return q(Ge)?Ge:(0,D.of)(Ge)}}getStreamOnTranslationChange(Se,Ae){if(!De(Se)||!Se.length)throw new Error('Parameter "key" required');return(0,P.z)((0,$.P)(()=>this.get(Se,Ae)),this.onTranslationChange.pipe((0,A.w)(Ge=>{const Ct=this.getParsedResult(Ge.translations,Se,Ae);return"function"==typeof Ct.subscribe?Ct:(0,D.of)(Ct)})))}stream(Se,Ae){if(!De(Se)||!Se.length)throw new Error('Parameter "key" required');return(0,P.z)((0,$.P)(()=>this.get(Se,Ae)),this.onLangChange.pipe((0,A.w)(Ge=>{const Ct=this.getParsedResult(Ge.translations,Se,Ae);return q(Ct)?Ct:(0,D.of)(Ct)})))}instant(Se,Ae){if(!De(Se)||!Se.length)throw new Error('Parameter "key" required');let Ge=this.getParsedResult(this.translations[this.currentLang],Se,Ae);if(q(Ge)){if(Se instanceof Array){let Ct={};return Se.forEach((Rt,Sn)=>{Ct[Se[Sn]]=Se[Sn]}),Ct}return Se}return Ge}set(Se,Ae,Ge=this.currentLang){this.translations[Ge][Se]=this.compiler.compile(Ae,Ge),this.updateLangs(),this.onTranslationChange.emit({lang:Ge,translations:this.translations[Ge]})}changeLang(Se){this.currentLang=Se,this.onLangChange.emit({lang:Se,translations:this.translations[Se]}),null==this.defaultLang&&this.changeDefaultLang(Se)}changeDefaultLang(Se){this.defaultLang=Se,this.onDefaultLangChange.emit({lang:Se,translations:this.translations[Se]})}reloadLang(Se){return this.resetLang(Se),this.getTranslation(Se)}resetLang(Se){this._translationRequests[Se]=void 0,this.translations[Se]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let Se=window.navigator.languages?window.navigator.languages[0]:null;return Se=Se||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==Se?(-1!==Se.indexOf("-")&&(Se=Se.split("-")[0]),-1!==Se.indexOf("_")&&(Se=Se.split("_")[0]),Se):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let Se=window.navigator.languages?window.navigator.languages[0]:null;return Se=Se||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,Se}}return Ne.\u0275fac=function(Se){return new(Se||Ne)(m.LFG(Dt),m.LFG(X),m.LFG(bt),m.LFG(at),m.LFG(ue),m.LFG(je),m.LFG(Ue),m.LFG(Ve),m.LFG(He))},Ne.\u0275prov=m.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})(),wt=(()=>{class Ne{constructor(Se,Ae,Ge){this.translateService=Se,this.element=Ae,this._ref=Ge,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(Ct=>{Ct.lang===this.translateService.currentLang&&this.checkNodes(!0,Ct.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(Ct=>{this.checkNodes(!0,Ct.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(Ct=>{this.checkNodes(!0)}))}set translate(Se){Se&&(this.key=Se,this.checkNodes())}set translateParams(Se){ve(this.currentParams,Se)||(this.currentParams=Se,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(Se=!1,Ae){let Ge=this.element.nativeElement.childNodes;Ge.length||(this.setContent(this.element.nativeElement,this.key),Ge=this.element.nativeElement.childNodes);for(let Ct=0;Ct{Rt!==Se&&(Ae.lastKey=Se),Ae.originalContent||(Ae.originalContent=this.getContent(Ae)),Ae.currentValue=De(Rt)?Rt:Ae.originalContent||Se,this.setContent(Ae,this.key?Ae.currentValue:Ae.originalContent.replace(Se,Ae.currentValue)),this._ref.markForCheck()};if(De(Ge)){let Rt=this.translateService.getParsedResult(Ge,Se,this.currentParams);q(Rt)?Rt.subscribe(Ct):Ct(Rt)}else this.translateService.get(Se,this.currentParams).subscribe(Ct)}}getContent(Se){return De(Se.textContent)?Se.textContent:Se.data}setContent(Se,Ae){De(Se.textContent)?Se.textContent=Ae:Se.data=Ae}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return Ne.\u0275fac=function(Se){return new(Se||Ne)(m.Y36(zt),m.Y36(m.SBq),m.Y36(m.sBO))},Ne.\u0275dir=m.lG2({type:Ne,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),Ne})(),ht=(()=>{class Ne{constructor(Se,Ae){this.translate=Se,this._ref=Ae,this.value=""}updateValue(Se,Ae,Ge){let Ct=Rt=>{this.value=void 0!==Rt?Rt:Se,this.lastKey=Se,this._ref.markForCheck()};if(Ge){let Rt=this.translate.getParsedResult(Ge,Se,Ae);q(Rt.subscribe)?Rt.subscribe(Ct):Ct(Rt)}this.translate.get(Se,Ae).subscribe(Ct)}transform(Se,...Ae){if(!Se||!Se.length)return Se;if(ve(Se,this.lastKey)&&ve(Ae,this.lastParams))return this.value;let Ge;if(De(Ae[0])&&Ae.length)if("string"==typeof Ae[0]&&Ae[0].length){let Ct=Ae[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{Ge=JSON.parse(Ct)}catch(Rt){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Ae[0]}`)}}else"object"==typeof Ae[0]&&!Array.isArray(Ae[0])&&(Ge=Ae[0]);return this.lastKey=Se,this.lastParams=Ae,this.updateValue(Se,Ge),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Ct=>{this.lastKey&&Ct.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(Se,Ge,Ct.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Ct=>{this.lastKey&&(this.lastKey=null,this.updateValue(Se,Ge,Ct.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(Se,Ge))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Ne.\u0275fac=function(Se){return new(Se||Ne)(m.Y36(zt,16),m.Y36(m.sBO,16))},Ne.\u0275pipe=m.Yjl({name:"translate",type:Ne,pure:!1}),Ne.\u0275prov=m.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})(),Xe=(()=>{class Ne{static forRoot(Se={}){return{ngModule:Ne,providers:[Se.loader||{provide:X,useClass:de},Se.compiler||{provide:bt,useClass:C},Se.parser||{provide:at,useClass:rt},Se.missingTranslationHandler||{provide:ue,useClass:Ce},Dt,{provide:Ue,useValue:Se.isolate},{provide:je,useValue:Se.useDefaultLang},{provide:Ve,useValue:Se.extend},{provide:He,useValue:Se.defaultLanguage},zt]}}static forChild(Se={}){return{ngModule:Ne,providers:[Se.loader||{provide:X,useClass:de},Se.compiler||{provide:bt,useClass:C},Se.parser||{provide:at,useClass:rt},Se.missingTranslationHandler||{provide:ue,useClass:Ce},{provide:Ue,useValue:Se.isolate},{provide:je,useValue:Se.useDefaultLang},{provide:Ve,useValue:Se.extend},{provide:He,useValue:Se.defaultLanguage},zt]}}}return Ne.\u0275fac=function(Se){return new(Se||Ne)},Ne.\u0275mod=m.oAB({type:Ne}),Ne.\u0275inj=m.cJS({}),Ne})()},729:function(ge,G){var m,i=function(){this._tweens={},this._tweensAddedDuringUpdate={}};i.prototype={getAll:function(){return Object.keys(this._tweens).map(function(D){return this._tweens[D]}.bind(this))},removeAll:function(){this._tweens={}},add:function(D){this._tweens[D.getId()]=D,this._tweensAddedDuringUpdate[D.getId()]=D},remove:function(D){delete this._tweens[D.getId()],delete this._tweensAddedDuringUpdate[D.getId()]},update:function(D,O){var P=Object.keys(this._tweens);if(0===P.length)return!1;for(D=void 0!==D?D:q.now();P.length>0;){this._tweensAddedDuringUpdate={};for(var $=0;$1?1:P),this._valuesEnd)if(void 0!==this._valuesStart[O]){var I=this._valuesStart[O]||0,U=this._valuesEnd[O];U instanceof Array?this._object[O]=this._interpolationFunction(U,$):("string"==typeof U&&(U="+"===U.charAt(0)||"-"===U.charAt(0)?I+parseFloat(U):parseFloat(U)),"number"==typeof U&&(this._object[O]=I+(U-I)*$))}if(null!==this._onUpdateCallback&&this._onUpdateCallback(this._object,P),1===P){if(this._repeat>0){for(O in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat){if("string"==typeof this._valuesEnd[O]&&(this._valuesStartRepeat[O]=this._valuesStartRepeat[O]+parseFloat(this._valuesEnd[O])),this._yoyo){var z=this._valuesStartRepeat[O];this._valuesStartRepeat[O]=this._valuesEnd[O],this._valuesEnd[O]=z}this._valuesStart[O]=this._valuesStartRepeat[O]}return this._yoyo&&(this._reversed=!this._reversed),this._startTime=void 0!==this._repeatDelayTime?D+this._repeatDelayTime:D+this._delayTime,null!==this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}null!==this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var H=0,A=this._chainedTweens.length;H1?U(D[P],D[P-1],P-$):U(D[I],D[I+1>P?P:I+1],$-I)},Bezier:function(D,O){for(var P=0,$=D.length-1,I=Math.pow,U=q.Interpolation.Utils.Bernstein,z=0;z<=$;z++)P+=I(1-O,$-z)*I(O,z)*D[z]*U($,z);return P},CatmullRom:function(D,O){var P=D.length-1,$=P*O,I=Math.floor($),U=q.Interpolation.Utils.CatmullRom;return D[0]===D[P]?(O<0&&(I=Math.floor($=P*(1+O))),U(D[(I-1+P)%P],D[I],D[(I+1)%P],D[(I+2)%P],$-I)):O<0?D[0]-(U(D[0],D[0],D[1],D[1],-$)-D[0]):O>1?D[P]-(U(D[P],D[P],D[P-1],D[P-1],$-P)-D[P]):U(D[I?I-1:0],D[I],D[P1;$--)P*=$;return D[O]=P,P}),CatmullRom:function(D,O,P,$,I){var U=.5*(P-D),z=.5*($-O),H=I*I;return(2*O-2*P+U+z)*(I*H)+(-3*O+3*P-2*U-z)*H+U*I+O}}},void 0!==(m=function(){return q}.apply(G,[]))&&(ge.exports=m)},3661:ge=>{function g(){}ge.exports=function(m,i,q){var D=!1;return q=q||g,O.count=m,0===m?i():O;function O(P,$){if(O.count<=0)throw new Error("after called too many times");--O.count,P?(D=!0,i(P),i=q):0===O.count&&!D&&i(null,$)}}},1072:(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ki:()=>OAuthErrorEvent,zr:()=>OAuthModule,Ct:()=>OAuthService,Hy:()=>OAuthStorage,Mu:()=>OAuthSuccessEvent});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4788),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(2057),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(8497),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4762),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9765),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5917),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(4402),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(8085),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(205),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(9112),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6682),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5435),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3342),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4395),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(5792),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(3190),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(8002),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(8049),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(5304),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(9079),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(5257),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(9773);module=__webpack_require__.hmd(module);class LoginOptions{constructor(){this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class ge{constructor(){this.data=new Map}getItem(g){return this.data.get(g)}removeItem(g){this.data.delete(g)}setItem(g,m){this.data.set(g,m)}}return ge.\u0275fac=function(g){return new(g||ge)},ge.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:ge,factory:ge.\u0275fac}),ge})();class ReceivedTokens{}function b64DecodeUnicode(ge){const G=ge.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(G).split("").map(function(g){return"%"+("00"+g.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(ge){return btoa(ge).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(G){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let g=this.inferHashAlgorithm(G.idTokenHeader),m=yield this.calcHash(G.accessToken,g),q=base64UrlEncode(m.substr(0,m.length/2)),D=G.idTokenClaims.at_hash.replace(/=/g,"");return q!==D&&(console.error("exptected at_hash: "+q),console.error("actual at_hash: "+D)),q===D})}inferHashAlgorithm(G){let g=G.alg;if(!g.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+g);return"sha-"+g.substr(2)}}let UrlHelperService=(()=>{class ge{getHashFragmentParams(g){let m=g||window.location.hash;if(m=decodeURIComponent(m),0!==m.indexOf("#"))return{};const i=m.indexOf("?");return m=m.substr(i>-1?i+1:1),this.parseQueryString(m)}parseQueryString(g){const m={};let i,q,D,O,P,$,I;if(null===g)return m;i=g.split("&");for(let U=0;U{location.href=g},G&&Object.assign(this,G)}}class WebHttpUrlEncodingCodec{encodeKey(G){return encodeURIComponent(G)}encodeValue(G){return encodeURIComponent(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(ge){return"[object Array]"===Object.prototype.toString.call(ge)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(ge){return"object"==typeof ge&&ge.buffer&&ge.buffer.constructor===ArrayBuffer});var createOutputMethod=function(ge,G){return function(g){return new Sha256(G,!0).update(g)[ge]()}};const \u02750=createOutputMethod;var createMethod=function(ge){var G=createOutputMethod("hex",ge);NODE_JS&&(G=nodeWrap(G,ge)),G.create=function(){return new Sha256(ge)},G.update=function(i){return G.create().update(i)};for(var g=0;g>6,q[O++]=128|63&P):P<55296||P>=57344?(q[O++]=224|P>>12,q[O++]=128|P>>6&63,q[O++]=128|63&P):(P=65536+((1023&P)<<10|1023&ge.charCodeAt(++m)),q[O++]=240|P>>18,q[O++]=128|P>>12&63,q[O++]=128|P>>6&63,q[O++]=128|63&P);ge=q}else{if("object"!==i)throw new Error(ERROR);if(null===ge)throw new Error(ERROR);if(ARRAY_BUFFER&&ge.constructor===ArrayBuffer)ge=new Uint8Array(ge);else if(!(Array.isArray(ge)||ARRAY_BUFFER&&ArrayBuffer.isView(ge)))throw new Error(ERROR)}ge.length>64&&(ge=new Sha256(G,!0).update(ge).array());var $=[],I=[];for(m=0;m<64;++m){var U=ge[m]||0;$[m]=92^U,I[m]=54^U}Sha256.call(this,G,g),this.update(I),this.oKeyPad=$,this.inner=!0,this.sharedMemory=g}Sha256.prototype.update=function(ge){if(!this.finalized){var G,g=typeof ge;if("string"!==g){if("object"!==g)throw new Error(ERROR);if(null===ge)throw new Error(ERROR);if(ARRAY_BUFFER&&ge.constructor===ArrayBuffer)ge=new Uint8Array(ge);else if(!(Array.isArray(ge)||ARRAY_BUFFER&&ArrayBuffer.isView(ge)))throw new Error(ERROR);G=!0}for(var m,q,i=0,D=ge.length,O=this.blocks;i>2]|=ge[i]<>2]|=m<>2]|=(192|m>>6)<>2]|=(128|63&m)<=57344?(O[q>>2]|=(224|m>>12)<>2]|=(128|m>>6&63)<>2]|=(128|63&m)<>2]|=(240|m>>18)<>2]|=(128|m>>12&63)<>2]|=(128|m>>6&63)<>2]|=(128|63&m)<=64?(this.block=O[16],this.start=q-64,this.hash(),this.hashed=!0):this.start=q}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var ge=this.blocks,G=this.lastByteIndex;ge[16]=this.block,ge[G>>2]|=EXTRA[3&G],this.block=ge[16],G>=56&&(this.hashed||this.hash(),ge[0]=this.block,ge[16]=ge[1]=ge[2]=ge[3]=ge[4]=ge[5]=ge[6]=ge[7]=ge[8]=ge[9]=ge[10]=ge[11]=ge[12]=ge[13]=ge[14]=ge[15]=0),ge[14]=this.hBytes<<3|this.bytes>>>29,ge[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var $,H,de,Ie,ue,Ce,ge=this.h0,G=this.h1,g=this.h2,m=this.h3,i=this.h4,q=this.h5,D=this.h6,O=this.h7,P=this.blocks;for($=16;$<64;++$)P[$]=P[$-16]+(((H=P[$-15])>>>7|H<<25)^(H>>>18|H<<14)^H>>>3)+P[$-7]+(((H=P[$-2])>>>17|H<<15)^(H>>>19|H<<13)^H>>>10)<<0;for(Ce=G&g,$=0;$<64;$+=4)this.first?(this.is224?(de=300032,O=(H=P[0]-1413257819)-150054599<<0,m=H+24177077<<0):(de=704751109,O=(H=P[0]-210244248)-1521486534<<0,m=H+143694565<<0),this.first=!1):(O=m+(H=O+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&q^~i&D)+K[$]+P[$])<<0,m=H+(((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+((de=ge&G)^ge&g^Ce))<<0),D=g+(H=D+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&i^~O&q)+K[$+1]+P[$+1])<<0,g=H+(((m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10))+((Ie=m&ge)^m&G^de))<<0,q=G+(H=q+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&O^~D&i)+K[$+2]+P[$+2])<<0,G=H+(((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((ue=g&m)^g&ge^Ie))<<0,i=ge+(H=i+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&D^~q&O)+K[$+3]+P[$+3])<<0,ge=H+(((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+((Ce=G&g)^G&m^ue))<<0;this.h0=this.h0+ge<<0,this.h1=this.h1+G<<0,this.h2=this.h2+g<<0,this.h3=this.h3+m<<0,this.h4=this.h4+i<<0,this.h5=this.h5+q<<0,this.h6=this.h6+D<<0,this.h7=this.h7+O<<0},Sha256.prototype.hex=function(){this.finalize();var ge=this.h0,G=this.h1,g=this.h2,m=this.h3,i=this.h4,q=this.h5,D=this.h6,O=this.h7,P=HEX_CHARS[ge>>28&15]+HEX_CHARS[ge>>24&15]+HEX_CHARS[ge>>20&15]+HEX_CHARS[ge>>16&15]+HEX_CHARS[ge>>12&15]+HEX_CHARS[ge>>8&15]+HEX_CHARS[ge>>4&15]+HEX_CHARS[15&ge]+HEX_CHARS[G>>28&15]+HEX_CHARS[G>>24&15]+HEX_CHARS[G>>20&15]+HEX_CHARS[G>>16&15]+HEX_CHARS[G>>12&15]+HEX_CHARS[G>>8&15]+HEX_CHARS[G>>4&15]+HEX_CHARS[15&G]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]+HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[15&m]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[q>>28&15]+HEX_CHARS[q>>24&15]+HEX_CHARS[q>>20&15]+HEX_CHARS[q>>16&15]+HEX_CHARS[q>>12&15]+HEX_CHARS[q>>8&15]+HEX_CHARS[q>>4&15]+HEX_CHARS[15&q]+HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D];return this.is224||(P+=HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var ge=this.h0,G=this.h1,g=this.h2,m=this.h3,i=this.h4,q=this.h5,D=this.h6,O=this.h7,P=[ge>>24&255,ge>>16&255,ge>>8&255,255&ge,G>>24&255,G>>16&255,G>>8&255,255&G,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,i>>24&255,i>>16&255,i>>8&255,255&i,q>>24&255,q>>16&255,q>>8&255,255&q,D>>24&255,D>>16&255,D>>8&255,255&D];return this.is224||P.push(O>>24&255,O>>16&255,O>>8&255,255&O),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var ge=new ArrayBuffer(this.is224?28:32),G=new DataView(ge);return G.setUint32(0,this.h0),G.setUint32(4,this.h1),G.setUint32(8,this.h2),G.setUint32(12,this.h3),G.setUint32(16,this.h4),G.setUint32(20,this.h5),G.setUint32(24,this.h6),this.is224||G.setUint32(28,this.h7),ge},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var ge=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(ge),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class ge{calcHash(g,m){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const i=exports.array(g);return this.toHashString2(i)})}toHashString2(g){let m="";for(let i of g)m+=String.fromCharCode(i);return m}toHashString(g){const m=new Uint8Array(g);let i="";for(let q of m)i+=String.fromCharCode(q);return i}}return ge.\u0275fac=function(g){return new(g||ge)},ge.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:ge,factory:ge.\u0275fac}),ge})(),OAuthService=(()=>{class ge extends AuthConfig{constructor(g,m,i,q,D,O,P,$,I){var U;super(),this.ngZone=g,this.http=m,this.config=D,this.urlHelper=O,this.logger=P,this.crypto=$,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=I,D||(D={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),q&&(this.tokenValidationHandler=q),D&&this.configure(D);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(z){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",z)}if("undefined"!=typeof window&&void 0!==window.localStorage){const z=null===(U=null==window?void 0:window.navigator)||void 0===U?void 0:U.userAgent;((null==z?void 0:z.includes("MSIE "))||(null==z?void 0:z.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}configure(g){Object.assign(this,new AuthConfig,g),this.config=Object.assign({},new AuthConfig,g),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(g=>"token_received"===g.type)).subscribe(g=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(g={},m,i=!0){let q=!0;this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(D=>{"token_received"===D.type?q=!0:"logout"===D.type&&(q=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(D=>"token_expires"===D.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(D=>{(null==m||"any"===m||D.info===m)&&q&&this.refreshInternal(g,i).catch(P=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(g,m){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(g,m):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(g=null){return this.loadDiscoveryDocument().then(m=>this.tryLogin(g))}loadDiscoveryDocumentAndLogin(g=null){return this.loadDiscoveryDocumentAndTryLogin(g=g||{}).then(m=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof g.state?g.state:""),!1))}debug(...g){this.showDebugInformation&&this.logger.debug.apply(this.logger,g)}validateUrlFromDiscoveryDocument(g){const m=[],i=this.validateUrlForHttps(g),q=this.validateUrlAgainstIssuer(g);return i||m.push("https for all urls required. Also for urls received by discovery."),q||m.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),m}validateUrlForHttps(g){if(!g)return!0;const m=g.toLowerCase();return!(!1!==this.requireHttps&&(!m.match(/^http:\/\/localhost($|[:\/])/)&&!m.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||m.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(g,m){if(!g)throw new Error(`'${m}' should not be null`);if(!this.validateUrlForHttps(g))throw new Error(`'${m}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(g){return!this.strictDiscoveryDocumentValidation||!g||g.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(g=>"token_received"===g.type)).subscribe(g=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const g=this.getAccessTokenExpiration(),m=this.getAccessTokenStoredAt(),i=this.calcTimeout(m,g);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(q=>{this.ngZone.run(()=>{this.eventsSubject.next(q)})})})}setupIdTokenTimer(){const g=this.getIdTokenExpiration(),m=this.getIdTokenStoredAt(),i=this.calcTimeout(m,g);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(q=>{this.ngZone.run(()=>{this.eventsSubject.next(q)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}calcTimeout(g,m){const i=Date.now();return Math.max(0,(m-g)*this.timeoutFactor-(i-g))}setStorage(g){this._storage=g,this.configChanged()}loadDiscoveryDocument(g=null){return new Promise((m,i)=>{g||((g=this.issuer||"").endsWith("/")||(g+="/"),g+=".well-known/openid-configuration"),this.validateUrlForHttps(g)?this.http.get(g).subscribe(q=>{if(!this.validateDiscoveryDocument(q))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=q.authorization_endpoint,this.logoutUrl=q.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=q.grant_types_supported,this.issuer=q.issuer,this.tokenEndpoint=q.token_endpoint,this.userinfoEndpoint=q.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=q.jwks_uri,this.sessionCheckIFrameUrl=q.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(q),this.revocationEndpoint=q.revocation_endpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(D=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:q,jwks:D});this.eventsSubject.next(P),m(P)}).catch(D=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),i(D)})},q=>{this.logger.error("error loading discovery document",q),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",q)),i(q)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((g,m)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),g(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),m(i)}):g(null)})}validateDiscoveryDocument(g){let m;return this.skipIssuerCheck||g.issuer===this.issuer?(m=this.validateUrlFromDiscoveryDocument(g.authorization_endpoint),m.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",m),!1):(m=this.validateUrlFromDiscoveryDocument(g.end_session_endpoint),m.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",m),!1):(m=this.validateUrlFromDiscoveryDocument(g.token_endpoint),m.length>0&&this.logger.error("error validating token_endpoint in discovery document",m),m=this.validateUrlFromDiscoveryDocument(g.revocation_endpoint),m.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",m),m=this.validateUrlFromDiscoveryDocument(g.userinfo_endpoint),m.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",m),!1):(m=this.validateUrlFromDiscoveryDocument(g.jwks_uri),m.length>0?(this.logger.error("error validating jwks_uri in discovery document",m),!1):(this.sessionChecksEnabled&&!g.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+g.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(g,m,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingPasswordFlow(g,m,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((g,m)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i}).subscribe(q=>{this.debug("userinfo received",q);const D=this.getIdentityClaims()||{};this.skipSubjectCheck||!this.oidc||D.sub&&q.sub===D.sub?(q=Object.assign({},D,q),this._storage.setItem("id_token_claims_obj",JSON.stringify(q)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),g(q)):m("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false")},q=>{this.logger.error("error loading user info",q),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",q)),m(q)})})}fetchTokenUsingPasswordFlow(g,m,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((q,D)=>{let O=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","password").set("scope",this.scope).set("username",g).set("password",m);if(this.useHttpBasicAuth){const P=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+P)}if(this.useHttpBasicAuth||(O=O.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(O=O.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const P of Object.getOwnPropertyNames(this.customQueryParams))O=O.set(P,this.customQueryParams[P]);i=i.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(this.tokenEndpoint,O,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),q(P)},P=>{this.logger.error("Error performing password flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),D(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((g,m)=>{let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(D,this.customQueryParams[D]);this.http.post(this.tokenEndpoint,i,{headers:q}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.w)(D=>D.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_10__.D)(this.processIdToken(D.id_token,D.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(O=>this.storeIdToken(O)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(O=>D)):(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(D))).subscribe(D=>{this.debug("refresh tokenResponse",D),this.storeAccessTokenResponse(D.access_token,D.refresh_token,D.expires_in||this.fallbackAccessTokenExpirationTimeInSec,D.scope,this.extractRecognizedCustomParameters(D)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),g(D)},D=>{this.logger.error("Error refreshing token",D),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",D)),m(D)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=g=>{const m=this.processMessageEventMessage(g);this.tryLogin({customHashFragment:m,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(g={},m=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(g.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const q=this.document.getElementById(this.silentRefreshIFrameName);q&&this.document.body.removeChild(q),this.silentRefreshSubject=i.sub;const D=this.document.createElement("iframe");D.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,m,g).then(U=>{D.setAttribute("src",U),this.silentRefreshShowIFrame||(D.style.display="none"),this.document.body.appendChild(D)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),$=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(U=>"token_received"===U.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),I=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([P,$,I]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(U=>{if(U instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===U.type||(U=new OAuthErrorEvent("silent_refresh_error",U)),this.eventsSubject.next(U),U;return"token_received"===U.type&&(U=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(U)),U})).toPromise()}initImplicitFlowInPopup(g){return this.initLoginFlowInPopup(g)}initLoginFlowInPopup(g){return g=g||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(m=>new Promise((i,q)=>{let P,O=window.open(m,"_blank",this.calculatePopupFeatures(g));O?P=window.setInterval(()=>{(!O||O.closed)&&(I(),q(new OAuthErrorEvent("popup_closed",{})))},500):q(new OAuthErrorEvent("popup_blocked",{}));const I=()=>{window.clearInterval(P),window.removeEventListener("message",U),null!==O&&O.close(),O=null},U=z=>{const H=this.processMessageEventMessage(z);H&&null!==H?this.tryLogin({customHashFragment:H,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{I(),i()},A=>{I(),q(A)}):console.log("false event firing")};window.addEventListener("message",U)}))}calculatePopupFeatures(g){const m=g.height||470,i=g.width||500,q=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${m},top=${window.screenTop+(window.outerHeight-m)/2},left=${q}`}processMessageEventMessage(g){let m="#";if(this.silentRefreshMessagePrefix&&(m+=this.silentRefreshMessagePrefix),!g||!g.data||"string"!=typeof g.data)return;const i=g.data;return i.startsWith(m)?"#"+i.substr(m.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=g=>{const m=g.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(m)){switch(g.data){case"unchanged":this.handleSessionUnchanged();break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",g)}else this.debug("sessionCheckEventListener","wrong origin",m,"expected",i,"event",g)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged")}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(g=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(g=>{this.debug("token refresh after session change worked")}).catch(g=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(g=>"silently_refreshed"===g.type||"silent_refresh_timeout"===g.type||"silent_refresh_error"===g.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()).subscribe(g=>{"silently_refreshed"!==g.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const g=this.document.getElementById(this.sessionCheckIFrameName);g&&this.document.body.removeChild(g);const m=this.document.createElement("iframe");m.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),m.setAttribute("src",this.sessionCheckIFrameUrl),m.style.display="none",this.document.body.appendChild(m),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const g=this.document.getElementById(this.sessionCheckIFrameName);g||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const m=this.getSessionState();m||this.stopSessionCheckTimer(),g.contentWindow.postMessage(this.clientId+" "+m,this.issuer)}createLoginUrl(g="",m="",i="",q=!1,D={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const O=this;let P;P=i||this.redirectUri;const $=yield this.createAndSaveNonce();if(g=g?$+this.config.nonceStateSeparator+encodeURIComponent(g):$,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const I=O.loginUrl.indexOf("?")>-1?"&":"?";let U=O.scope;this.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let z=O.loginUrl+I+"response_type="+encodeURIComponent(O.responseType)+"&client_id="+encodeURIComponent(O.clientId)+"&state="+encodeURIComponent(g)+"&redirect_uri="+encodeURIComponent(P)+"&scope="+encodeURIComponent(U);if(this.responseType.includes("code")&&!this.disablePKCE){const[H,A]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",A):this._storage.setItem("PKCE_verifier",A),z+="&code_challenge="+H,z+="&code_challenge_method=S256"}m&&(z+="&login_hint="+encodeURIComponent(m)),O.resource&&(z+="&resource="+encodeURIComponent(O.resource)),O.oidc&&(z+="&nonce="+encodeURIComponent($)),q&&(z+="&prompt=none");for(const H of Object.keys(D))z+="&"+encodeURIComponent(H)+"="+encodeURIComponent(D[H]);if(this.customQueryParams)for(const H of Object.getOwnPropertyNames(this.customQueryParams))z+="&"+H+"="+encodeURIComponent(this.customQueryParams[H]);return z})}initImplicitFlowInternal(g="",m=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},q=null;"string"==typeof m?q=m:"object"==typeof m&&(i=m),this.createLoginUrl(g,q,null,!1,i).then(this.config.openUri).catch(D=>{console.error("Error in initImplicitFlow",D),this.inImplicitFlow=!1})}initImplicitFlow(g="",m=""){""!==this.loginUrl?this.initImplicitFlowInternal(g,m):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(g,m))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(g){const m=this;if(g.onTokenReceived){const i={idClaims:m.getIdentityClaims(),idToken:m.getIdToken(),accessToken:m.getAccessToken(),state:m.state};g.onTokenReceived(i)}}storeAccessTokenResponse(g,m,i,q,D){if(this._storage.setItem("access_token",g),q&&!Array.isArray(q)?this._storage.setItem("granted_scopes",JSON.stringify(q.split("+"))):q&&Array.isArray(q)&&this._storage.setItem("granted_scopes",JSON.stringify(q)),this._storage.setItem("access_token_stored_at",""+Date.now()),i){const O=1e3*i,$=(new Date).getTime()+O;this._storage.setItem("expires_at",""+$)}m&&this._storage.setItem("refresh_token",m),D&&D.forEach((O,P)=>{this._storage.setItem(P,O)})}tryLogin(g=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(g).then(m=>!0):this.tryLoginImplicitFlow(g)}parseQueryString(g){return g&&0!==g.length?("?"===g.charAt(0)&&(g=g.substr(1)),this.urlHelper.parseQueryString(g)):{}}tryLoginCodeFlow(g=null){const m=(g=g||{}).customHashFragment?g.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(m),q=i.code,D=i.state,O=i.session_state;if(!g.preventClearHashAfterLogin){const U=location.href.replace(/[&\?]code=[^&\$]*/,"").replace(/[&\?]scope=[^&\$]*/,"").replace(/[&\?]state=[^&\$]*/,"").replace(/[&\?]session_state=[^&\$]*/,"");history.replaceState(null,window.name,U)}let[P,$]=this.parseState(D);if(this.state=$,i.error){this.debug("error trying to login"),this.handleLoginError({},i);const U=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(U),Promise.reject(U)}if(!P)return Promise.resolve();if(!this.validateNonce(P)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.storeSessionState(O),q?this.getTokenFromCode(q,g).then(U=>null):Promise.resolve()}getCodePartsFromUrl(g){return g&&0!==g.length?("?"===g.charAt(0)&&(g=g.substr(1)),this.urlHelper.parseQueryString(g)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(g,m){let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE).set("grant_type","authorization_code").set("code",g).set("redirect_uri",m.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let q;q=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),q?i=i.set("code_verifier",q):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i)}fetchAndProcessToken(g){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let m=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const i=btoa(`${this.clientId}:${this.dummyClientSecret}`);m=m.set("Authorization","Basic "+i)}return this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),new Promise((i,q)=>{if(this.customQueryParams)for(let D of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(D,this.customQueryParams[D]);this.http.post(this.tokenEndpoint,g,{headers:m}).subscribe(D=>{this.debug("refresh tokenResponse",D),this.storeAccessTokenResponse(D.access_token,D.refresh_token,D.expires_in||this.fallbackAccessTokenExpirationTimeInSec,D.scope,this.extractRecognizedCustomParameters(D)),this.oidc&&D.id_token?this.processIdToken(D.id_token,D.access_token).then(O=>{this.storeIdToken(O),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),i(D)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),console.error("Error validating tokens"),console.error(O),q(O)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),i(D))},D=>{console.error("Error getting token",D),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",D)),q(D)})})}tryLoginImplicitFlow(g=null){let m;m=(g=g||{}).customHashFragment?this.urlHelper.getHashFragmentParams(g.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",m);const i=m.state;let[q,D]=this.parseState(i);if(this.state=D,m.error){this.debug("error trying to login"),this.handleLoginError(g,m);const U=new OAuthErrorEvent("token_error",{},m);return this.eventsSubject.next(U),Promise.reject(U)}const O=m.access_token,P=m.id_token,$=m.session_state,I=m.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!O||this.requestAccessToken&&!g.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!$&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!g.disableOAuth2StateCheck&&!this.validateNonce(q)){const z=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(z),Promise.reject(z)}return this.requestAccessToken&&this.storeAccessTokenResponse(O,null,m.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I),this.oidc?this.processIdToken(P,O).then(U=>g.validationHandler?g.validationHandler({accessToken:O,idClaims:U.idTokenClaims,idToken:U.idToken,state:i}).then(z=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState($),this.clearHashAfterLogin&&!g.preventClearHashAfterLogin&&(location.hash=""),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(g),this.inImplicitFlow=!1,!0)).catch(U=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",U)),this.logger.error("Error validating tokens"),this.logger.error(U),Promise.reject(U))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!g.preventClearHashAfterLogin&&(location.hash=""),this.callOnTokenReceivedIfExists(g),Promise.resolve(!0))}parseState(g){let m=g,i="";if(g){const q=g.indexOf(this.config.nonceStateSeparator);q>-1&&(m=g.substr(0,q),i=g.substr(q+this.config.nonceStateSeparator.length))}return[m,i]}validateNonce(g){let m;return m=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),m===g||(console.error("Validating access_token failed, wrong state/nonce.",m,g),!1)}storeIdToken(g){this._storage.setItem("id_token",g.idToken),this._storage.setItem("id_token_claims_obj",g.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+g.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+Date.now())}storeSessionState(g){this._storage.setItem("session_state",g)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(g,m){g.onLoginError&&g.onLoginError(m),this.clearHashAfterLogin&&!g.preventClearHashAfterLogin&&(location.hash="")}processIdToken(g,m,i=!1){const q=g.split("."),O=b64DecodeUnicode(this.padBase64(q[0])),P=JSON.parse(O),I=b64DecodeUnicode(this.padBase64(q[1])),U=JSON.parse(I);let z;if(z=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(ue=>ue!==this.clientId)){const ue="Wrong audience: "+U.aud.join(",");return this.logger.warn(ue),Promise.reject(ue)}}else if(U.aud!==this.clientId){const ue="Wrong audience: "+U.aud;return this.logger.warn(ue),Promise.reject(ue)}if(!U.sub){const ue="No sub claim in id_token";return this.logger.warn(ue),Promise.reject(ue)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const ue=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(ue),Promise.reject(ue)}if(!U.iat){const ue="No iat claim in id_token";return this.logger.warn(ue),Promise.reject(ue)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const ue="Wrong issuer: "+U.iss;return this.logger.warn(ue),Promise.reject(ue)}if(!i&&U.nonce!==z){const ue="Wrong nonce: "+U.nonce;return this.logger.warn(ue),Promise.reject(ue)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const ue="An at_hash is needed!";return this.logger.warn(ue),Promise.reject(ue)}const H=Date.now(),A=1e3*U.iat,X=1e3*U.exp,de=1e3*(this.clockSkewInSec||600);if(A-de>=H||X+de<=H){const ue="Token has expired";return console.error(ue),console.error({now:H,issuedAtMSec:A,expiresAtMSec:X}),Promise.reject(ue)}const Ie={accessToken:m,idToken:g,jwks:this.jwks,idTokenClaims:U,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(Ie).then(ue=>({idToken:g,idTokenClaims:U,idTokenClaimsJson:I,idTokenHeader:P,idTokenHeaderJson:O,idTokenExpiresAt:X})):this.checkAtHash(Ie).then(ue=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ue){const Ce="Wrong at_hash";return this.logger.warn(Ce),Promise.reject(Ce)}return this.checkSignature(Ie).then(Ce=>{const De={idToken:g,idTokenClaims:U,idTokenClaimsJson:I,idTokenHeader:P,idTokenHeaderJson:O,idTokenExpiresAt:X};return this.disableAtHashCheck?De:this.checkAtHash(Ie).then(Pe=>{if(this.requestAccessToken&&!Pe){const $e="Wrong at_hash";return this.logger.warn($e),Promise.reject($e)}return De})})})}getIdentityClaims(){const g=this._storage.getItem("id_token_claims_obj");return g?JSON.parse(g):null}getGrantedScopes(){const g=this._storage.getItem("granted_scopes");return g?JSON.parse(g):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(g){for(;g.length%4!=0;)g+="=";return g}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const g=this._storage.getItem("expires_at"),m=new Date;return!(g&&parseInt(g,10)=0&&null!==this._storage.getItem(g)?JSON.parse(this._storage.getItem(g)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(g={},m=""){let i=!1;"boolean"==typeof g&&(i=g,g={});const q=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(O=>this._storage.removeItem(O)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!q&&!this.postLogoutRedirectUri)return;let D;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)D=this.logoutUrl.replace(/\{\{id_token\}\}/,q).replace(/\{\{client_id\}\}/,this.clientId);else{let O=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE;q&&(O=O.set("id_token_hint",q));const P=this.postLogoutRedirectUri||this.redirectUri;P&&(O=O.set("post_logout_redirect_uri",P),m&&(O=O.set("state",m)));for(let $ in g)O=O.set($,g[$]);D=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+O.toString()}this.config.openUri(D)}createAndSaveNonce(){const g=this;return this.createNonce().then(function(m){return g.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",m):g._storage.setItem("nonce",m),m})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const g=this.document.getElementById(this.silentRefreshIFrameName);g&&g.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const m=this.document.getElementById(this.sessionCheckIFrameName);m&&m.remove()}createNonce(){return new Promise(g=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,q="";const D="undefined"==typeof self?null:self.crypto||self.msCrypto;if(D){let O=new Uint8Array(i);D.getRandomValues(O),O.map||(O.map=Array.prototype.map),O=O.map(P=>m.charCodeAt(P%m.length)),q=String.fromCharCode.apply(null,O)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(g,m))}initCodeFlowInternal(g="",m={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");this.createLoginUrl(g,"",null,!1,m).then(this.config.openUri).catch(i=>{console.error("Error in initAuthorizationCodeFlow"),console.error(i)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const g=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(g,"sha-256")),g]})}extractRecognizedCustomParameters(g){let m=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{g[i]&&m.set(i,JSON.stringify(g[i]))}),m}revokeTokenAndLogout(g={},m=!1){let i=this.revocationEndpoint,q=this.getAccessToken(),D=this.getRefreshToken();if(!q)return;let O=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE,P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const $=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+$)}if(this.useHttpBasicAuth||(O=O.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(O=O.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const $ of Object.getOwnPropertyNames(this.customQueryParams))O=O.set($,this.customQueryParams[$]);return new Promise(($,I)=>{let U,z;if(q){let H=O.set("token",q).set("token_type_hint","access_token");U=this.http.post(i,H,{headers:P})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(D){let H=O.set("token",D).set("token_type_hint","refresh_token");z=this.http.post(i,H,{headers:P})}else z=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);m&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(H=>0===H.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(H))),z=z.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(H=>0===H.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(H)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([U,z]).subscribe(H=>{this.logOut(g),$(H),this.logger.info("Token successfully revoked")},H=>{this.logger.error("Error revoking token",H),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",H)),I(H)})})}}return ge.\u0275fac=function(g){return new(g||ge)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0))},ge.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:ge,factory:ge.\u0275fac}),ge})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(G){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(G)}}let DefaultOAuthInterceptor=(()=>{class ge{constructor(g,m,i,q){this.authStorage=g,this.oAuthService=m,this.errorHandler=i,this.moduleConfig=q}checkUrl(g){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(g):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(m=>g.startsWith(m))}intercept(g,m){const i=g.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(D=>!!D)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(D=>"token_received"===D.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(D=>(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(D=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(D=>{if(D){const P=g.headers.set("Authorization","Bearer "+D);g=g.clone({headers:P})}return m.handle(g).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(O=>this.errorHandler.handleError(O)))})):m.handle(g).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(D=>this.errorHandler.handleError(D))):m.handle(g)}}return ge.\u0275fac=function(g){return new(g||ge)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},ge.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:ge,factory:ge.\u0275fac}),ge})();class NullValidationHandler{validateSignature(G){return Promise.resolve(null)}validateAtHash(G){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class ge{static forRoot(g=null,m=NullValidationHandler){return{ngModule:ge,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:m},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:g},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0}]}}}return ge.\u0275fac=function(g){return new(g||ge)},ge.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:ge}),ge.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),ge})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("AUTH_CONFIG")},3853:ge=>{ge.exports=function(G,g,m){var i=G.byteLength;if(g=g||0,m=m||i,G.slice)return G.slice(g,m);if(g<0&&(g+=i),m<0&&(m+=i),m>i&&(m=i),g>=i||g>=m||0===i)return new ArrayBuffer(0);for(var q=new Uint8Array(G),D=new Uint8Array(m-g),O=g,P=0;O{function G(g){this.ms=(g=g||{}).min||100,this.max=g.max||1e4,this.factor=g.factor||2,this.jitter=g.jitter>0&&g.jitter<=1?g.jitter:0,this.attempts=0}ge.exports=G,G.prototype.duration=function(){var g=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var m=Math.random(),i=Math.floor(m*this.jitter*g);g=0==(1&Math.floor(10*m))?g-i:g+i}return 0|Math.min(g,this.max)},G.prototype.reset=function(){this.attempts=0},G.prototype.setMin=function(g){this.ms=g},G.prototype.setMax=function(g){this.max=g},G.prototype.setJitter=function(g){this.jitter=g}},7846:(ge,G)=>{!function(g){"use strict";G.encode=function(m){var q,i=new Uint8Array(m),D=i.length,O="";for(q=0;q>2],O+=g[(3&i[q])<<4|i[q+1]>>4],O+=g[(15&i[q+1])<<2|i[q+2]>>6],O+=g[63&i[q+2]];return D%3==2?O=O.substring(0,O.length-1)+"=":D%3==1&&(O=O.substring(0,O.length-2)+"=="),O},G.decode=function(m){var D,P,$,I,U,i=.75*m.length,q=m.length,O=0;"="===m[m.length-1]&&(i--,"="===m[m.length-2]&&i--);var z=new ArrayBuffer(i),H=new Uint8Array(z);for(D=0;D>4,H[O++]=(15&$)<<4|I>>2,H[O++]=(3&I)<<6|63&U;return z}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},3084:ge=>{var G=void 0!==G?G:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,g=function(){try{return 2===new Blob(["hi"]).size}catch($){return!1}}(),m=g&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch($){return!1}}(),i=G&&G.prototype.append&&G.prototype.getBlob;function q(P){return P.map(function($){if($.buffer instanceof ArrayBuffer){var I=$.buffer;if($.byteLength!==I.byteLength){var U=new Uint8Array($.byteLength);U.set(new Uint8Array(I,$.byteOffset,$.byteLength)),I=U.buffer}return I}return $})}function D(P,$){$=$||{};var I=new G;return q(P).forEach(function(U){I.append(U)}),$.type?I.getBlob($.type):I.getBlob()}function O(P,$){return new Blob(q(P),$||{})}"undefined"!=typeof Blob&&(D.prototype=Blob.prototype,O.prototype=Blob.prototype),ge.exports=g?m?Blob:O:i?D:void 0},9782:ge=>{var G=[].slice;ge.exports=function(g,m){if("string"==typeof m&&(m=g[m]),"function"!=typeof m)throw new Error("bind() requires a function");var i=G.call(arguments,2);return function(){return m.apply(g,i.concat(G.call(arguments)))}}},5899:ge=>{function G(m){if(m)return function(m){for(var i in G.prototype)m[i]=G.prototype[i];return m}(m)}ge.exports=G,G.prototype.on=G.prototype.addEventListener=function(m,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+m]=this._callbacks["$"+m]||[]).push(i),this},G.prototype.once=function(m,i){function q(){this.off(m,q),i.apply(this,arguments)}return q.fn=i,this.on(m,q),this},G.prototype.off=G.prototype.removeListener=G.prototype.removeAllListeners=G.prototype.removeEventListener=function(m,i){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var q=this._callbacks["$"+m];if(!q)return this;if(1==arguments.length)return delete this._callbacks["$"+m],this;for(var D,O=0;O{ge.exports=function(G,g){var m=function(){};m.prototype=g.prototype,G.prototype=new m,G.prototype.constructor=G}},5748:ge=>{ge.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},8338:(ge,G,g)=>{ge.exports=g(1547),ge.exports.parser=g(9196)},1547:(ge,G,g)=>{var m=g(1674),i=g(5899),q=g(731)("engine.io-client:socket"),D=g(7736),O=g(9196),P=g(4171),$=g(9603);function I(z,H){if(!(this instanceof I))return new I(z,H);H=H||{},z&&"object"==typeof z&&(H=z,z=null),z?(z=P(z),H.hostname=z.host,H.secure="https"===z.protocol||"wss"===z.protocol,H.port=z.port,z.query&&(H.query=z.query)):H.host&&(H.hostname=P(H.host).host),this.secure=null!=H.secure?H.secure:"undefined"!=typeof location&&"https:"===location.protocol,H.hostname&&!H.port&&(H.port=this.secure?"443":"80"),this.agent=H.agent||!1,this.hostname=H.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=H.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=H.query||{},"string"==typeof this.query&&(this.query=$.decode(this.query)),this.upgrade=!1!==H.upgrade,this.path=(H.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!H.forceJSONP,this.jsonp=!1!==H.jsonp,this.forceBase64=!!H.forceBase64,this.enablesXDR=!!H.enablesXDR,this.withCredentials=!1!==H.withCredentials,this.timestampParam=H.timestampParam||"t",this.timestampRequests=H.timestampRequests,this.transports=H.transports||["polling","websocket"],this.transportOptions=H.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=H.policyPort||843,this.rememberUpgrade=H.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=H.onlyBinaryUpgrades,this.perMessageDeflate=!1!==H.perMessageDeflate&&(H.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=H.pfx||void 0,this.key=H.key||void 0,this.passphrase=H.passphrase||void 0,this.cert=H.cert||void 0,this.ca=H.ca||void 0,this.ciphers=H.ciphers||void 0,this.rejectUnauthorized=void 0===H.rejectUnauthorized||H.rejectUnauthorized,this.forceNode=!!H.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(H.extraHeaders&&Object.keys(H.extraHeaders).length>0&&(this.extraHeaders=H.extraHeaders),H.localAddress&&(this.localAddress=H.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}ge.exports=I,I.priorWebsocketSuccess=!1,i(I.prototype),I.protocol=O.protocol,I.Socket=I,I.Transport=g(1505),I.transports=g(1674),I.parser=g(9196),I.prototype.createTransport=function(z){q('creating transport "%s"',z);var H=function(z){var H={};for(var A in z)z.hasOwnProperty(A)&&(H[A]=z[A]);return H}(this.query);H.EIO=O.protocol,H.transport=z;var A=this.transportOptions[z]||{};return this.id&&(H.sid=this.id),new m[z]({query:H,socket:this,agent:A.agent||this.agent,hostname:A.hostname||this.hostname,port:A.port||this.port,secure:A.secure||this.secure,path:A.path||this.path,forceJSONP:A.forceJSONP||this.forceJSONP,jsonp:A.jsonp||this.jsonp,forceBase64:A.forceBase64||this.forceBase64,enablesXDR:A.enablesXDR||this.enablesXDR,withCredentials:A.withCredentials||this.withCredentials,timestampRequests:A.timestampRequests||this.timestampRequests,timestampParam:A.timestampParam||this.timestampParam,policyPort:A.policyPort||this.policyPort,pfx:A.pfx||this.pfx,key:A.key||this.key,passphrase:A.passphrase||this.passphrase,cert:A.cert||this.cert,ca:A.ca||this.ca,ciphers:A.ciphers||this.ciphers,rejectUnauthorized:A.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:A.perMessageDeflate||this.perMessageDeflate,extraHeaders:A.extraHeaders||this.extraHeaders,forceNode:A.forceNode||this.forceNode,localAddress:A.localAddress||this.localAddress,requestTimeout:A.requestTimeout||this.requestTimeout,protocols:A.protocols||void 0,isReactNative:this.isReactNative})},I.prototype.open=function(){var z;if(this.rememberUpgrade&&I.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))z="websocket";else{if(0===this.transports.length){var H=this;return void setTimeout(function(){H.emit("error","No transports available")},0)}z=this.transports[0]}this.readyState="opening";try{z=this.createTransport(z)}catch(A){return this.transports.shift(),void this.open()}z.open(),this.setTransport(z)},I.prototype.setTransport=function(z){q("setting transport %s",z.name);var H=this;this.transport&&(q("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=z,z.on("drain",function(){H.onDrain()}).on("packet",function(A){H.onPacket(A)}).on("error",function(A){H.onError(A)}).on("close",function(){H.onClose("transport close")})},I.prototype.probe=function(z){q('probing transport "%s"',z);var H=this.createTransport(z,{probe:1}),A=!1,X=this;function de(){X.onlyBinaryUpgrades&&(A=A||!this.supportsBinary&&X.transport.supportsBinary),A||(q('probe transport "%s" opened',z),H.send([{type:"ping",data:"probe"}]),H.once("packet",function(at){if(!A)if("pong"===at.type&&"probe"===at.data){if(q('probe transport "%s" pong',z),X.upgrading=!0,X.emit("upgrading",H),!H)return;I.priorWebsocketSuccess="websocket"===H.name,q('pausing current transport "%s"',X.transport.name),X.transport.pause(function(){A||"closed"!==X.readyState&&(q("changing transport and sending upgrade packet"),Pe(),X.setTransport(H),H.send([{type:"upgrade"}]),X.emit("upgrade",H),H=null,X.upgrading=!1,X.flush())})}else{q('probe transport "%s" failed',z);var rt=new Error("probe error");rt.transport=H.name,X.emit("upgradeError",rt)}}))}function Ie(){A||(A=!0,Pe(),H.close(),H=null)}function ue($e){var at=new Error("probe error: "+$e);at.transport=H.name,Ie(),q('probe transport "%s" failed because of error: %s',z,$e),X.emit("upgradeError",at)}function Ce(){ue("transport closed")}function ve(){ue("socket closed")}function De($e){H&&$e.name!==H.name&&(q('"%s" works - aborting "%s"',$e.name,H.name),Ie())}function Pe(){H.removeListener("open",de),H.removeListener("error",ue),H.removeListener("close",Ce),X.removeListener("close",ve),X.removeListener("upgrading",De)}I.priorWebsocketSuccess=!1,H.once("open",de),H.once("error",ue),H.once("close",Ce),this.once("close",ve),this.once("upgrading",De),H.open()},I.prototype.onOpen=function(){if(q("socket open"),this.readyState="open",I.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){q("starting upgrade probes");for(var z=0,H=this.upgrades.length;z{var m=g(9196),i=g(5899);function q(D){this.path=D.path,this.hostname=D.hostname,this.port=D.port,this.secure=D.secure,this.query=D.query,this.timestampParam=D.timestampParam,this.timestampRequests=D.timestampRequests,this.readyState="",this.agent=D.agent||!1,this.socket=D.socket,this.enablesXDR=D.enablesXDR,this.withCredentials=D.withCredentials,this.pfx=D.pfx,this.key=D.key,this.passphrase=D.passphrase,this.cert=D.cert,this.ca=D.ca,this.ciphers=D.ciphers,this.rejectUnauthorized=D.rejectUnauthorized,this.forceNode=D.forceNode,this.isReactNative=D.isReactNative,this.extraHeaders=D.extraHeaders,this.localAddress=D.localAddress}ge.exports=q,i(q.prototype),q.prototype.onError=function(D,O){var P=new Error(D);return P.type="TransportError",P.description=O,this.emit("error",P),this},q.prototype.open=function(){return("closed"===this.readyState||""===this.readyState)&&(this.readyState="opening",this.doOpen()),this},q.prototype.close=function(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this},q.prototype.send=function(D){if("open"!==this.readyState)throw new Error("Transport not open");this.write(D)},q.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},q.prototype.onData=function(D){var O=m.decodePacket(D,this.socket.binaryType);this.onPacket(O)},q.prototype.onPacket=function(D){this.emit("packet",D)},q.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},1674:(ge,G,g)=>{var m=g(1737),i=g(5706),q=g(7662),D=g(9677);G.polling=function(P){var I=!1,U=!1,z=!1!==P.jsonp;if("undefined"!=typeof location){var H="https:"===location.protocol,A=location.port;A||(A=H?443:80),I=P.hostname!==location.hostname||A!==P.port,U=P.secure!==H}if(P.xdomain=I,P.xscheme=U,"open"in new m(P)&&!P.forceJSONP)return new i(P);if(!z)throw new Error("JSONP disabled");return new q(P)},G.websocket=D},7662:(ge,G,g)=>{var m=g(7685),i=g(3338),q=g(5748);ge.exports=I;var P,D=/\n/g,O=/\\n/g;function $(){}function I(U){m.call(this,U),this.query=this.query||{},P||(P=q.___eio=q.___eio||[]),this.index=P.length;var z=this;P.push(function(H){z.onData(H)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){z.script&&(z.script.onerror=$)},!1)}i(I,m),I.prototype.supportsBinary=!1,I.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),m.prototype.doClose.call(this)},I.prototype.doPoll=function(){var U=this,z=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),z.async=!0,z.src=this.uri(),z.onerror=function(X){U.onError("jsonp poll error",X)};var H=document.getElementsByTagName("script")[0];H?H.parentNode.insertBefore(z,H):(document.head||document.body).appendChild(z),this.script=z,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var X=document.createElement("iframe");document.body.appendChild(X),document.body.removeChild(X)},100)},I.prototype.doWrite=function(U,z){var H=this;if(!this.form){var Ie,A=document.createElement("form"),X=document.createElement("textarea"),de=this.iframeId="eio_iframe_"+this.index;A.className="socketio",A.style.position="absolute",A.style.top="-1000px",A.style.left="-1000px",A.target=de,A.method="POST",A.setAttribute("accept-charset","utf-8"),X.name="d",A.appendChild(X),document.body.appendChild(A),this.form=A,this.area=X}function ue(){Ce(),z()}function Ce(){if(H.iframe)try{H.form.removeChild(H.iframe)}catch(De){H.onError("jsonp polling iframe removal error",De)}try{Ie=document.createElement('