var kle=Object.defineProperty,Ple=Object.defineProperties,Nle=Object.getOwnPropertyDescriptors,GU=Object.getOwnPropertySymbols,Rle=Object.prototype.hasOwnProperty,Fle=Object.prototype.propertyIsEnumerable,UU=(_t,le,P)=>le in _t?kle(_t,le,{enumerable:!0,configurable:!0,writable:!0,value:P}):_t[le]=P,MT=(_t,le)=>{for(var P in le||(le={}))Rle.call(le,P)&&UU(_t,P,le[P]);if(GU)for(var P of GU(le))Fle.call(le,P)&&UU(_t,P,le[P]);return _t},IT=(_t,le)=>Ple(_t,Nle(le));(self.webpackChunklastletterfirst=self.webpackChunklastletterfirst||[]).push([[179],{2011:(_t,le,P)=>{"use strict";P.d(le,{Dh:()=>ee,GT:()=>z,cc:()=>se,on:()=>Ze,pX:()=>Se,xv:()=>Ie});var t=P(5e3),J=P(9260);_t=P.hmd(_t);const B=["ngOnDestroy"],Se=(me,ke,pe,De={})=>new Proxy(me,{get:(Ve,et)=>pe.runOutsideAngular(()=>{var ze;if(me[et])return(null===(ze=null==De?void 0:De.spy)||void 0===ze?void 0:ze.get)&&De.spy.get(et,me[et]),me[et];if(B.indexOf(et)>-1)return()=>{};const st=ke.toPromise().then(Ee=>{const G=Ee&&Ee[et];return"function"==typeof G?G.bind(Ee):G&&G.then?G.then(d=>pe.run(()=>d)):pe.run(()=>G)});return new Proxy(()=>{},{get:(Ee,G)=>st[G],apply:(Ee,G,d)=>st.then(U=>{var H;const O=U&&U(...d);return(null===(H=null==De?void 0:De.spy)||void 0===H?void 0:H.apply)&&De.spy.apply(et,d,O),O})})})}),z=(me,ke)=>{ke.forEach(pe=>{Object.getOwnPropertyNames(pe.prototype||pe).forEach(De=>{Object.defineProperty(me.prototype,De,Object.getOwnPropertyDescriptor(pe.prototype||pe,De))})})};class de{constructor(ke){return ke}}const ee=new t.OlP("angularfire2.app.options"),Ie=new t.OlP("angularfire2.app.name");function Ze(me,ke,pe){const Ve="object"==typeof pe&&pe||{};Ve.name=Ve.name||"string"==typeof pe&&pe||"[DEFAULT]";const ze=J.Z.apps.filter(st=>st&&st.name===Ve.name)[0]||ke.runOutsideAngular(()=>J.Z.initializeApp(me,Ve));try{JSON.stringify(me)!==JSON.stringify(ze.options)&&te("error",`${ze.name} Firebase App already initialized with different options${_t.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch(st){}return new de(ze)}const te=(me,...ke)=>{(0,t.X6Q)()&&"undefined"!=typeof console&&console[me](...ke)};function se(me,ke,pe,De,Ve){const[,et,ze]=globalThis.\u0275AngularfireInstanceCache.find(st=>st[0]===me)||[];if(et)return function Ce(me,ke){try{return me.toString()===ke.toString()}catch(pe){return me===ke}}(Ve,ze)||(Ye("error",`${ke} was already initialized on the ${pe} Firebase App with different settings.${He?" You may need to reload as Firebase is not HMR aware.":""}`),Ye("warn",{is:Ve,was:ze})),et;{const st=De();return globalThis.\u0275AngularfireInstanceCache.push([me,st,Ve]),st}}const He=!!_t.hot,Ye=(me,...ke)=>{(0,t.X6Q)()&&"undefined"!=typeof console&&console[me](...ke)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},4064:(_t,le,P)=>{"use strict";P.d(le,{Uw:()=>me,fo:()=>Ce});var t=P(5861);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var Ie=(()=>{return(H=Ie||(Ie={})).Unimplemented="UNIMPLEMENTED",H.Unavailable="UNAVAILABLE",Ie;var H})();class Ze extends Error{constructor(O,Z,Y){super(O),this.message=O,this.code=Z,this.data=Y}}const re=H=>{var O,Z,Y,Pe,Oe;const ct=H.CapacitorCustomPlatform||null,j=H.Capacitor||{},oe=j.Plugins=j.Plugins||{},he=H.CapacitorPlatforms,Ge=(null===(O=null==he?void 0:he.currentPlatform)||void 0===O?void 0:O.getPlatform)||(()=>null!==ct?ct.name:(H=>{var O,Z;return(null==H?void 0:H.androidBridge)?"android":(null===(Z=null===(O=null==H?void 0:H.webkit)||void 0===O?void 0:O.messageHandlers)||void 0===Z?void 0:Z.bridge)?"ios":"web"})(H)),bt=(null===(Z=null==he?void 0:he.currentPlatform)||void 0===Z?void 0:Z.isNativePlatform)||(()=>"web"!==Ge()),Ot=(null===(Y=null==he?void 0:he.currentPlatform)||void 0===Y?void 0:Y.isPluginAvailable)||(it=>{const Ke=Mt.get(it);return!(!(null==Ke?void 0:Ke.platforms.has(Ge()))&&!at(it))}),at=(null===(Pe=null==he?void 0:he.currentPlatform)||void 0===Pe?void 0:Pe.getPluginHeader)||(it=>{var Ke;return null===(Ke=j.PluginHeaders)||void 0===Ke?void 0:Ke.find(bn=>bn.name===it)}),Mt=new Map,rn=(null===(Oe=null==he?void 0:he.currentPlatform)||void 0===Oe?void 0:Oe.registerPlugin)||((it,Ke={})=>{const bn=Mt.get(it);if(bn)return console.warn(`Capacitor plugin "${it}" already registered. Cannot register plugins twice.`),bn.proxy;const ln=Ge(),Xt=at(it);let An;const hr=function(){var tt=(0,t.Z)(function*(){return!An&&ln in Ke?An=An="function"==typeof Ke[ln]?yield Ke[ln]():Ke[ln]:null!==ct&&!An&&"web"in Ke&&(An=An="function"==typeof Ke.web?yield Ke.web():Ke.web),An});return function(){return tt.apply(this,arguments)}}(),Cn=tt=>{let Zt;const yn=(...Et)=>{const zn=hr().then(jt=>{const qt=((tt,Zt)=>{var yn,Et;if(!Xt){if(tt)return null===(Et=tt[Zt])||void 0===Et?void 0:Et.bind(tt);throw new Ze(`"${it}" plugin is not implemented on ${ln}`,Ie.Unimplemented)}{const zn=null==Xt?void 0:Xt.methods.find(jt=>Zt===jt.name);if(zn)return"promise"===zn.rtype?jt=>j.nativePromise(it,Zt.toString(),jt):(jt,qt)=>j.nativeCallback(it,Zt.toString(),jt,qt);if(tt)return null===(yn=tt[Zt])||void 0===yn?void 0:yn.bind(tt)}})(jt,tt);if(qt){const wt=qt(...Et);return Zt=null==wt?void 0:wt.remove,wt}throw new Ze(`"${it}.${tt}()" is not implemented on ${ln}`,Ie.Unimplemented)});return"addListener"===tt&&(zn.remove=(0,t.Z)(function*(){return Zt()})),zn};return yn.toString=()=>`${tt.toString()}() { [capacitor code] }`,Object.defineProperty(yn,"name",{value:tt,writable:!1,configurable:!1}),yn},qn=Cn("addListener"),ni=Cn("removeListener"),cn=(tt,Zt)=>{const yn=qn({eventName:tt},Zt),Et=function(){var jt=(0,t.Z)(function*(){const qt=yield yn;ni({eventName:tt,callbackId:qt},Zt)});return function(){return jt.apply(this,arguments)}}(),zn=new Promise(jt=>yn.then(()=>jt({remove:Et})));return zn.remove=(0,t.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Et()}),zn},St=new Proxy({},{get(tt,Zt){switch(Zt){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return Xt?cn:qn;case"removeListener":return ni;default:return Cn(Zt)}}});return oe[it]=St,Mt.set(it,{name:it,proxy:St,platforms:new Set([...Object.keys(Ke),...Xt?[ln]:[]])}),St});return j.convertFileSrc||(j.convertFileSrc=it=>it),j.getPlatform=Ge,j.handleError=it=>H.console.error(it),j.isNativePlatform=bt,j.isPluginAvailable=Ot,j.pluginMethodNoop=(it,Ke,bn)=>Promise.reject(`${bn} does not have an implementation of "${Ke}".`),j.registerPlugin=rn,j.Exception=Ze,j.DEBUG=!!j.DEBUG,j.isLoggingEnabled=!!j.isLoggingEnabled,j.platform=j.getPlatform(),j.isNative=j.isNativePlatform(),j},se=(H=>H.Capacitor=re(H))("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),Ce=se.registerPlugin;class me{constructor(O){this.listeners={},this.windowListeners={},O&&(console.warn(`Capacitor WebPlugin "${O.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=O)}addListener(O,Z){var Y=this;this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push(Z);const Oe=this.windowListeners[O];Oe&&!Oe.registered&&this.addWindowListener(Oe);const ct=function(){var oe=(0,t.Z)(function*(){return Y.removeListener(O,Z)});return function(){return oe.apply(this,arguments)}}(),j=Promise.resolve({remove:ct});return Object.defineProperty(j,"remove",{value:(oe=(0,t.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield ct()}),function(){return oe.apply(this,arguments)})}),j;var oe}removeAllListeners(){var O=this;return(0,t.Z)(function*(){O.listeners={};for(const Z in O.windowListeners)O.removeWindowListener(O.windowListeners[Z]);O.windowListeners={}})()}notifyListeners(O,Z){const Y=this.listeners[O];Y&&Y.forEach(Pe=>Pe(Z))}hasListeners(O){return!!this.listeners[O].length}registerWindowListener(O,Z){this.windowListeners[Z]={registered:!1,windowEventName:O,pluginEventName:Z,handler:Y=>{this.notifyListeners(Z,Y)}}}unimplemented(O="not implemented"){return new se.Exception(O,Ie.Unimplemented)}unavailable(O="not available"){return new se.Exception(O,Ie.Unavailable)}removeListener(O,Z){var Y=this;return(0,t.Z)(function*(){const Pe=Y.listeners[O];if(!Pe)return;const Oe=Pe.indexOf(Z);Y.listeners[O].splice(Oe,1),Y.listeners[O].length||Y.removeWindowListener(Y.windowListeners[O])})()}addWindowListener(O){window.addEventListener(O.windowEventName,O.handler),O.registered=!0}removeWindowListener(O){!O||(window.removeEventListener(O.windowEventName,O.handler),O.registered=!1)}}const pe=H=>encodeURIComponent(H).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),De=H=>H.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class Ve extends me{getCookies(){return(0,t.Z)(function*(){const O=document.cookie,Z={};return O.split(";").forEach(Y=>{if(Y.length<=0)return;let[Pe,Oe]=Y.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");Pe=De(Pe).trim(),Oe=De(Oe).trim(),Z[Pe]=Oe}),Z})()}setCookie(O){return(0,t.Z)(function*(){try{const Z=pe(O.key),Y=pe(O.value),Pe=`; expires=${(O.expires||"").replace("expires=","")}`,Oe=(O.path||"/").replace("path=",""),ct=null!=O.url&&O.url.length>0?`domain=${O.url}`:"";document.cookie=`${Z}=${Y||""}${Pe}; path=${Oe}; ${ct};`}catch(Z){return Promise.reject(Z)}})()}deleteCookie(O){return(0,t.Z)(function*(){try{document.cookie=`${O.key}=; Max-Age=0`}catch(Z){return Promise.reject(Z)}})()}clearCookies(){return(0,t.Z)(function*(){try{const O=document.cookie.split(";")||[];for(const Z of O)document.cookie=Z.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(O){return Promise.reject(O)}})()}clearAllCookies(){var O=this;return(0,t.Z)(function*(){try{yield O.clearCookies()}catch(Z){return Promise.reject(Z)}})()}}Ce("CapacitorCookies",{web:()=>new Ve});const ze=function(){var H=(0,t.Z)(function*(O){return new Promise((Z,Y)=>{const Pe=new FileReader;Pe.onload=()=>{const Oe=Pe.result;Z(Oe.indexOf(",")>=0?Oe.split(",")[1]:Oe)},Pe.onerror=Oe=>Y(Oe),Pe.readAsDataURL(O)})});return function(Z){return H.apply(this,arguments)}}();class d extends me{request(O){return(0,t.Z)(function*(){const Z=((H,O={})=>{const Z=Object.assign({method:H.method||"GET",headers:H.headers},O),Pe=((H={})=>{const O=Object.keys(H);return Object.keys(H).map(Pe=>Pe.toLocaleLowerCase()).reduce((Pe,Oe,ct)=>(Pe[Oe]=H[O[ct]],Pe),{})})(H.headers)["content-type"]||"";if("string"==typeof H.data)Z.body=H.data;else if(Pe.includes("application/x-www-form-urlencoded")){const Oe=new URLSearchParams;for(const[ct,j]of Object.entries(H.data||{}))Oe.set(ct,j);Z.body=Oe.toString()}else if(Pe.includes("multipart/form-data")){const Oe=new FormData;if(H.data instanceof FormData)H.data.forEach((j,oe)=>{Oe.append(oe,j)});else for(const j of Object.keys(H.data))Oe.append(j,H.data[j]);Z.body=Oe;const ct=new Headers(Z.headers);ct.delete("content-type"),Z.headers=ct}else(Pe.includes("application/json")||"object"==typeof H.data)&&(Z.body=JSON.stringify(H.data));return Z})(O,O.webFetchExtra),Y=((H,O=!0)=>H?Object.entries(H).reduce((Y,Pe)=>{const[Oe,ct]=Pe;let j,oe;return Array.isArray(ct)?(oe="",ct.forEach(he=>{j=O?encodeURIComponent(he):he,oe+=`${Oe}=${j}&`}),oe.slice(0,-1)):(j=O?encodeURIComponent(ct):ct,oe=`${Oe}=${j}`),`${Y}&${oe}`},"").substr(1):null)(O.params,O.shouldEncodeUrlParams),Pe=Y?`${O.url}?${Y}`:O.url,Oe=yield fetch(Pe,Z),ct=Oe.headers.get("content-type")||"";let oe,he,{responseType:j="text"}=Oe.ok?O:{};switch(ct.includes("application/json")&&(j="json"),j){case"arraybuffer":case"blob":he=yield Oe.blob(),oe=yield ze(he);break;case"json":oe=yield Oe.json();break;default:oe=yield Oe.text()}const ve={};return Oe.headers.forEach((Ge,je)=>{ve[je]=Ge}),{data:oe,headers:ve,status:Oe.status,url:Oe.url}})()}get(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"GET"}))})()}post(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"POST"}))})()}put(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"PUT"}))})()}patch(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"PATCH"}))})()}delete(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"DELETE"}))})()}}Ce("CapacitorHttp",{web:()=>new d})},7423:(_t,le,P)=>{"use strict";P.d(le,{Uw:()=>me,dV:()=>se,fo:()=>Ce});var t=P(5861);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var Ie=(()=>{return(H=Ie||(Ie={})).Unimplemented="UNIMPLEMENTED",H.Unavailable="UNAVAILABLE",Ie;var H})();class Ze extends Error{constructor(O,Z,Y){super(O),this.message=O,this.code=Z,this.data=Y}}const re=H=>{var O,Z,Y,Pe,Oe;const ct=H.CapacitorCustomPlatform||null,j=H.Capacitor||{},oe=j.Plugins=j.Plugins||{},he=H.CapacitorPlatforms,Ge=(null===(O=null==he?void 0:he.currentPlatform)||void 0===O?void 0:O.getPlatform)||(()=>null!==ct?ct.name:(H=>{var O,Z;return(null==H?void 0:H.androidBridge)?"android":(null===(Z=null===(O=null==H?void 0:H.webkit)||void 0===O?void 0:O.messageHandlers)||void 0===Z?void 0:Z.bridge)?"ios":"web"})(H)),bt=(null===(Z=null==he?void 0:he.currentPlatform)||void 0===Z?void 0:Z.isNativePlatform)||(()=>"web"!==Ge()),Ot=(null===(Y=null==he?void 0:he.currentPlatform)||void 0===Y?void 0:Y.isPluginAvailable)||(it=>{const Ke=Mt.get(it);return!(!(null==Ke?void 0:Ke.platforms.has(Ge()))&&!at(it))}),at=(null===(Pe=null==he?void 0:he.currentPlatform)||void 0===Pe?void 0:Pe.getPluginHeader)||(it=>{var Ke;return null===(Ke=j.PluginHeaders)||void 0===Ke?void 0:Ke.find(bn=>bn.name===it)}),Mt=new Map,rn=(null===(Oe=null==he?void 0:he.currentPlatform)||void 0===Oe?void 0:Oe.registerPlugin)||((it,Ke={})=>{const bn=Mt.get(it);if(bn)return console.warn(`Capacitor plugin "${it}" already registered. Cannot register plugins twice.`),bn.proxy;const ln=Ge(),Xt=at(it);let An;const hr=function(){var tt=(0,t.Z)(function*(){return!An&&ln in Ke?An=An="function"==typeof Ke[ln]?yield Ke[ln]():Ke[ln]:null!==ct&&!An&&"web"in Ke&&(An=An="function"==typeof Ke.web?yield Ke.web():Ke.web),An});return function(){return tt.apply(this,arguments)}}(),Cn=tt=>{let Zt;const yn=(...Et)=>{const zn=hr().then(jt=>{const qt=((tt,Zt)=>{var yn,Et;if(!Xt){if(tt)return null===(Et=tt[Zt])||void 0===Et?void 0:Et.bind(tt);throw new Ze(`"${it}" plugin is not implemented on ${ln}`,Ie.Unimplemented)}{const zn=null==Xt?void 0:Xt.methods.find(jt=>Zt===jt.name);if(zn)return"promise"===zn.rtype?jt=>j.nativePromise(it,Zt.toString(),jt):(jt,qt)=>j.nativeCallback(it,Zt.toString(),jt,qt);if(tt)return null===(yn=tt[Zt])||void 0===yn?void 0:yn.bind(tt)}})(jt,tt);if(qt){const wt=qt(...Et);return Zt=null==wt?void 0:wt.remove,wt}throw new Ze(`"${it}.${tt}()" is not implemented on ${ln}`,Ie.Unimplemented)});return"addListener"===tt&&(zn.remove=(0,t.Z)(function*(){return Zt()})),zn};return yn.toString=()=>`${tt.toString()}() { [capacitor code] }`,Object.defineProperty(yn,"name",{value:tt,writable:!1,configurable:!1}),yn},qn=Cn("addListener"),ni=Cn("removeListener"),cn=(tt,Zt)=>{const yn=qn({eventName:tt},Zt),Et=function(){var jt=(0,t.Z)(function*(){const qt=yield yn;ni({eventName:tt,callbackId:qt},Zt)});return function(){return jt.apply(this,arguments)}}(),zn=new Promise(jt=>yn.then(()=>jt({remove:Et})));return zn.remove=(0,t.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Et()}),zn},St=new Proxy({},{get(tt,Zt){switch(Zt){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return Xt?cn:qn;case"removeListener":return ni;default:return Cn(Zt)}}});return oe[it]=St,Mt.set(it,{name:it,proxy:St,platforms:new Set([...Object.keys(Ke),...Xt?[ln]:[]])}),St});return j.convertFileSrc||(j.convertFileSrc=it=>it),j.getPlatform=Ge,j.handleError=it=>H.console.error(it),j.isNativePlatform=bt,j.isPluginAvailable=Ot,j.pluginMethodNoop=(it,Ke,bn)=>Promise.reject(`${bn} does not have an implementation of "${Ke}".`),j.registerPlugin=rn,j.Exception=Ze,j.DEBUG=!!j.DEBUG,j.isLoggingEnabled=!!j.isLoggingEnabled,j.platform=j.getPlatform(),j.isNative=j.isNativePlatform(),j},se=(H=>H.Capacitor=re(H))("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),Ce=se.registerPlugin;class me{constructor(O){this.listeners={},this.windowListeners={},O&&(console.warn(`Capacitor WebPlugin "${O.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=O)}addListener(O,Z){var Y=this;this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push(Z);const Oe=this.windowListeners[O];Oe&&!Oe.registered&&this.addWindowListener(Oe);const ct=function(){var oe=(0,t.Z)(function*(){return Y.removeListener(O,Z)});return function(){return oe.apply(this,arguments)}}(),j=Promise.resolve({remove:ct});return Object.defineProperty(j,"remove",{value:(oe=(0,t.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield ct()}),function(){return oe.apply(this,arguments)})}),j;var oe}removeAllListeners(){var O=this;return(0,t.Z)(function*(){O.listeners={};for(const Z in O.windowListeners)O.removeWindowListener(O.windowListeners[Z]);O.windowListeners={}})()}notifyListeners(O,Z){const Y=this.listeners[O];Y&&Y.forEach(Pe=>Pe(Z))}hasListeners(O){return!!this.listeners[O].length}registerWindowListener(O,Z){this.windowListeners[Z]={registered:!1,windowEventName:O,pluginEventName:Z,handler:Y=>{this.notifyListeners(Z,Y)}}}unimplemented(O="not implemented"){return new se.Exception(O,Ie.Unimplemented)}unavailable(O="not available"){return new se.Exception(O,Ie.Unavailable)}removeListener(O,Z){var Y=this;return(0,t.Z)(function*(){const Pe=Y.listeners[O];if(!Pe)return;const Oe=Pe.indexOf(Z);Y.listeners[O].splice(Oe,1),Y.listeners[O].length||Y.removeWindowListener(Y.windowListeners[O])})()}addWindowListener(O){window.addEventListener(O.windowEventName,O.handler),O.registered=!0}removeWindowListener(O){!O||(window.removeEventListener(O.windowEventName,O.handler),O.registered=!1)}}const pe=H=>encodeURIComponent(H).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),De=H=>H.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class Ve extends me{getCookies(){return(0,t.Z)(function*(){const O=document.cookie,Z={};return O.split(";").forEach(Y=>{if(Y.length<=0)return;let[Pe,Oe]=Y.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");Pe=De(Pe).trim(),Oe=De(Oe).trim(),Z[Pe]=Oe}),Z})()}setCookie(O){return(0,t.Z)(function*(){try{const Z=pe(O.key),Y=pe(O.value),Pe=`; expires=${(O.expires||"").replace("expires=","")}`,Oe=(O.path||"/").replace("path=",""),ct=null!=O.url&&O.url.length>0?`domain=${O.url}`:"";document.cookie=`${Z}=${Y||""}${Pe}; path=${Oe}; ${ct};`}catch(Z){return Promise.reject(Z)}})()}deleteCookie(O){return(0,t.Z)(function*(){try{document.cookie=`${O.key}=; Max-Age=0`}catch(Z){return Promise.reject(Z)}})()}clearCookies(){return(0,t.Z)(function*(){try{const O=document.cookie.split(";")||[];for(const Z of O)document.cookie=Z.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(O){return Promise.reject(O)}})()}clearAllCookies(){var O=this;return(0,t.Z)(function*(){try{yield O.clearCookies()}catch(Z){return Promise.reject(Z)}})()}}Ce("CapacitorCookies",{web:()=>new Ve});const ze=function(){var H=(0,t.Z)(function*(O){return new Promise((Z,Y)=>{const Pe=new FileReader;Pe.onload=()=>{const Oe=Pe.result;Z(Oe.indexOf(",")>=0?Oe.split(",")[1]:Oe)},Pe.onerror=Oe=>Y(Oe),Pe.readAsDataURL(O)})});return function(Z){return H.apply(this,arguments)}}();class d extends me{request(O){return(0,t.Z)(function*(){const Z=((H,O={})=>{const Z=Object.assign({method:H.method||"GET",headers:H.headers},O),Pe=((H={})=>{const O=Object.keys(H);return Object.keys(H).map(Pe=>Pe.toLocaleLowerCase()).reduce((Pe,Oe,ct)=>(Pe[Oe]=H[O[ct]],Pe),{})})(H.headers)["content-type"]||"";if("string"==typeof H.data)Z.body=H.data;else if(Pe.includes("application/x-www-form-urlencoded")){const Oe=new URLSearchParams;for(const[ct,j]of Object.entries(H.data||{}))Oe.set(ct,j);Z.body=Oe.toString()}else if(Pe.includes("multipart/form-data")){const Oe=new FormData;if(H.data instanceof FormData)H.data.forEach((j,oe)=>{Oe.append(oe,j)});else for(const j of Object.keys(H.data))Oe.append(j,H.data[j]);Z.body=Oe;const ct=new Headers(Z.headers);ct.delete("content-type"),Z.headers=ct}else(Pe.includes("application/json")||"object"==typeof H.data)&&(Z.body=JSON.stringify(H.data));return Z})(O,O.webFetchExtra),Y=((H,O=!0)=>H?Object.entries(H).reduce((Y,Pe)=>{const[Oe,ct]=Pe;let j,oe;return Array.isArray(ct)?(oe="",ct.forEach(he=>{j=O?encodeURIComponent(he):he,oe+=`${Oe}=${j}&`}),oe.slice(0,-1)):(j=O?encodeURIComponent(ct):ct,oe=`${Oe}=${j}`),`${Y}&${oe}`},"").substr(1):null)(O.params,O.shouldEncodeUrlParams),Pe=Y?`${O.url}?${Y}`:O.url,Oe=yield fetch(Pe,Z),ct=Oe.headers.get("content-type")||"";let oe,he,{responseType:j="text"}=Oe.ok?O:{};switch(ct.includes("application/json")&&(j="json"),j){case"arraybuffer":case"blob":he=yield Oe.blob(),oe=yield ze(he);break;case"json":oe=yield Oe.json();break;default:oe=yield Oe.text()}const ve={};return Oe.headers.forEach((Ge,je)=>{ve[je]=Ge}),{data:oe,headers:ve,status:Oe.status,url:Oe.url}})()}get(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"GET"}))})()}post(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"POST"}))})()}put(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"PUT"}))})()}patch(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"PATCH"}))})()}delete(O){var Z=this;return(0,t.Z)(function*(){return Z.request(Object.assign(Object.assign({},O),{method:"DELETE"}))})()}}Ce("CapacitorHttp",{web:()=>new d})},1389:(_t,le,P)=>{"use strict";P.d(le,{$:()=>gh,A:()=>re,D:()=>Ce,I:()=>$n,J:()=>Q,L:()=>Sr,N:()=>sr,P:()=>Np,Q:()=>Cu,R:()=>FT,U:()=>ba,V:()=>OT,W:()=>Li,X:()=>va,Y:()=>uh,Z:()=>my,_:()=>pc,a:()=>Nu,a0:()=>Xe,a1:()=>vp,a2:()=>Hr,a3:()=>uo,a4:()=>Hs,a5:()=>cl,a6:()=>bp,a7:()=>yp,a8:()=>_h,a9:()=>bc,aA:()=>G,aB:()=>Bp,aC:()=>vi,aD:()=>Fi,aE:()=>ss,aF:()=>rs,aG:()=>fr,aH:()=>Vt,aL:()=>Ma,aO:()=>ya,aa:()=>vh,ab:()=>xp,ac:()=>Du,ad:()=>Cp,ae:()=>x_,af:()=>kr,ai:()=>_y,aj:()=>vy,ak:()=>C_,an:()=>xa,ao:()=>Cc,aq:()=>ul,ar:()=>Dp,as:()=>U,at:()=>kt,au:()=>We,av:()=>Ve,aw:()=>gr,ax:()=>Bo,ay:()=>sn,az:()=>et,b:()=>Ec,c:()=>Ah,d:()=>Nc,e:()=>Kn,f:()=>Ci,g:()=>Fp,h:()=>En,i:()=>k_,j:()=>vt,k:()=>zp,l:()=>Oc,m:()=>Yp,o:()=>Jp,p:()=>Ie,r:()=>ts,s:()=>eo,u:()=>Yn});var t=P(5861),J=P(2090),B=P(6881),Se=P(7582),z=P(1877),de=P(4859);const Ie={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},re={EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"};const Ce=function be(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend."}},He=function se(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},Ye=new J.LL("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),ke=new z.Yd("@firebase/auth");function De(x,...m){ke.logLevel<=z.in.ERROR&&ke.error(`Auth (${B.SDK_VERSION}): ${x}`,...m)}function Ve(x,...m){throw Ee(x,...m)}function et(x,...m){return Ee(x,...m)}function ze(x,m,b){const C=Object.assign(Object.assign({},He()),{[m]:b});return new J.LL("auth","Firebase",C).create(m,{appName:x.name})}function st(x,m,b){if(!(m instanceof b))throw b.name!==m.constructor.name&&Ve(x,"argument-error"),ze(x,"argument-error",`Type of ${m.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Ee(x,...m){if("string"!=typeof x){const b=m[0],C=[...m.slice(1)];return C[0]&&(C[0].appName=x.name),x._errorFactory.create(b,...C)}return Ye.create(x,...m)}function G(x,m,...b){if(!x)throw Ee(m,...b)}function d(x){const m="INTERNAL ASSERTION FAILED: "+x;throw De(m),new Error(m)}function U(x,m){x||d(m)}function H(){var x;return"undefined"!=typeof self&&(null===(x=self.location)||void 0===x?void 0:x.href)||""}function O(){return"http:"===Z()||"https:"===Z()}function Z(){var x;return"undefined"!=typeof self&&(null===(x=self.location)||void 0===x?void 0:x.protocol)||null}class Oe{constructor(m,b){this.shortDelay=m,this.longDelay=b,U(b>m,"Short delay should be less than long delay!"),this.isMobile=(0,J.uI)()||(0,J.b$)()}get(){return function Y(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(O()||(0,J.ru)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ct(x,m){U(x.emulator,"Emulator should always be set here");const{url:b}=x.emulator;return m?`${b}${m.startsWith("/")?m.slice(1):m}`:b}class j{static initialize(m,b,C){this.fetchImpl=m,b&&(this.headersImpl=b),C&&(this.responseImpl=C)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:void d("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:void d("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:void d("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const oe={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},he=new Oe(3e4,6e4);function ve(x,m){return x.tenantId&&!m.tenantId?Object.assign(Object.assign({},m),{tenantId:x.tenantId}):m}function Ge(x,m,b,C){return je.apply(this,arguments)}function je(){return(je=(0,t.Z)(function*(x,m,b,C,A={}){return bt(x,A,(0,t.Z)(function*(){let N={},ge={};C&&("GET"===m?ge=C:N={body:JSON.stringify(C)});const Re=(0,J.xO)(Object.assign({key:x.config.apiKey},ge)).slice(1),nt=yield x._getAdditionalHeaders();return nt["Content-Type"]="application/json",x.languageCode&&(nt["X-Firebase-Locale"]=x.languageCode),j.fetch()(at(x,x.config.apiHost,b,Re),Object.assign({method:m,headers:nt,referrerPolicy:"no-referrer"},N))}))})).apply(this,arguments)}function bt(x,m,b){return Ft.apply(this,arguments)}function Ft(){return(Ft=(0,t.Z)(function*(x,m,b){x._canInitEmulator=!1;const C=Object.assign(Object.assign({},oe),m);try{const A=new ht(x),N=yield Promise.race([b(),A.promise]);A.clearNetworkTimeout();const ge=yield N.json();if("needConfirmation"in ge)throw yt(x,"account-exists-with-different-credential",ge);if(N.ok&&!("errorMessage"in ge))return ge;{const Re=N.ok?ge.errorMessage:ge.error.message,[nt,gt]=Re.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===nt)throw yt(x,"credential-already-in-use",ge);if("EMAIL_EXISTS"===nt)throw yt(x,"email-already-in-use",ge);if("USER_DISABLED"===nt)throw yt(x,"user-disabled",ge);const Nt=C[nt]||nt.toLowerCase().replace(/[_\s]+/g,"-");if(gt)throw ze(x,Nt,gt);Ve(x,Nt)}}catch(A){if(A instanceof J.ZR)throw A;Ve(x,"network-request-failed",{message:String(A)})}})).apply(this,arguments)}function Ot(x,m,b,C){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,t.Z)(function*(x,m,b,C,A={}){const N=yield Ge(x,m,b,C,A);return"mfaPendingCredential"in N&&Ve(x,"multi-factor-auth-required",{_serverResponse:N}),N})).apply(this,arguments)}function at(x,m,b,C){const A=`${m}${b}?${C}`;return x.config.emulator?ct(x.config,A):`${x.config.apiScheme}://${A}`}class ht{constructor(m){this.auth=m,this.timer=null,this.promise=new Promise((b,C)=>{this.timer=setTimeout(()=>C(et(this.auth,"network-request-failed")),he.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function yt(x,m,b){const C={appName:x.name};b.email&&(C.email=b.email),b.phoneNumber&&(C.phoneNumber=b.phoneNumber);const A=et(x,m,C);return A.customData._tokenResponse=b,A}function Jt(){return(Jt=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:delete",m)})).apply(this,arguments)}function rn(x,m){return it.apply(this,arguments)}function it(){return(it=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:update",m)})).apply(this,arguments)}function Ke(x,m){return bn.apply(this,arguments)}function bn(){return(bn=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:lookup",m)})).apply(this,arguments)}function ln(x){if(x)try{const m=new Date(Number(x));if(!isNaN(m.getTime()))return m.toUTCString()}catch(m){}}function hr(){return(hr=(0,t.Z)(function*(x,m=!1){const b=(0,J.m9)(x),C=yield b.getIdToken(m),A=Cn(C);G(A&&A.exp&&A.auth_time&&A.iat,b.auth,"internal-error");const N="object"==typeof A.firebase?A.firebase:void 0,ge=null==N?void 0:N.sign_in_provider;return{claims:A,token:C,authTime:ln(Nn(A.auth_time)),issuedAtTime:ln(Nn(A.iat)),expirationTime:ln(Nn(A.exp)),signInProvider:ge||null,signInSecondFactor:(null==N?void 0:N.sign_in_second_factor)||null}})).apply(this,arguments)}function Nn(x){return 1e3*Number(x)}function Cn(x){const[m,b,C]=x.split(".");if(void 0===m||void 0===b||void 0===C)return De("JWT malformed, contained fewer than 3 sections"),null;try{const A=(0,J.tV)(b);return A?JSON.parse(A):(De("Failed to decode base64 JWT payload"),null)}catch(A){return De("Caught error parsing JWT payload as JSON",null==A?void 0:A.toString()),null}}function ni(x,m){return cn.apply(this,arguments)}function cn(){return(cn=(0,t.Z)(function*(x,m,b=!1){if(b)return m;try{return yield m}catch(C){throw C instanceof J.ZR&&St(C)&&x.auth.currentUser===x&&(yield x.auth.signOut()),C}})).apply(this,arguments)}function St({code:x}){return"auth/user-disabled"===x||"auth/user-token-expired"===x}class tt{constructor(m){this.user=m,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){!this.isRunning||(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(m){var b;if(m){const C=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),C}{this.errorBackoff=3e4;const A=(null!==(b=this.user.stsTokenManager.expirationTime)&&void 0!==b?b:0)-Date.now()-3e5;return Math.max(0,A)}}schedule(m=!1){var b=this;if(!this.isRunning)return;const C=this.getInterval(m);this.timerId=setTimeout((0,t.Z)(function*(){yield b.iteration()}),C)}iteration(){var m=this;return(0,t.Z)(function*(){try{yield m.user.getIdToken(!0)}catch(b){return void("auth/network-request-failed"===(null==b?void 0:b.code)&&m.schedule(!0))}m.schedule()})()}}class Zt{constructor(m,b){this.createdAt=m,this.lastLoginAt=b,this._initializeTime()}_initializeTime(){this.lastSignInTime=ln(this.lastLoginAt),this.creationTime=ln(this.createdAt)}_copy(m){this.createdAt=m.createdAt,this.lastLoginAt=m.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function yn(x){return Et.apply(this,arguments)}function Et(){return(Et=(0,t.Z)(function*(x){var m;const b=x.auth,C=yield x.getIdToken(),A=yield ni(x,Ke(b,{idToken:C}));G(null==A?void 0:A.users.length,b,"internal-error");const N=A.users[0];x._notifyReloadListener(N);const ge=(null===(m=N.providerUserInfo)||void 0===m?void 0:m.length)?wt(N.providerUserInfo):[],Re=qt(x.providerData,ge),Nt=!!x.isAnonymous&&!(x.email&&N.passwordHash||(null==Re?void 0:Re.length)),Sn={uid:N.localId,displayName:N.displayName||null,photoURL:N.photoUrl||null,email:N.email||null,emailVerified:N.emailVerified||!1,phoneNumber:N.phoneNumber||null,tenantId:N.tenantId||null,providerData:Re,metadata:new Zt(N.createdAt,N.lastLoginAt),isAnonymous:Nt};Object.assign(x,Sn)})).apply(this,arguments)}function jt(){return(jt=(0,t.Z)(function*(x){const m=(0,J.m9)(x);yield yn(m),yield m.auth._persistUserIfCurrent(m),m.auth._notifyListenersIfCurrent(m)})).apply(this,arguments)}function qt(x,m){return[...x.filter(C=>!m.some(A=>A.providerId===C.providerId)),...m]}function wt(x){return x.map(m=>{var{providerId:b}=m,C=(0,Se._T)(m,["providerId"]);return{providerId:b,uid:C.rawId||"",displayName:C.displayName||null,email:C.email||null,phoneNumber:C.phoneNumber||null,photoURL:C.photoUrl||null}})}function gn(){return(gn=(0,t.Z)(function*(x,m){const b=yield bt(x,{},(0,t.Z)(function*(){const C=(0,J.xO)({grant_type:"refresh_token",refresh_token:m}).slice(1),{tokenApiHost:A,apiKey:N}=x.config,ge=at(x,A,"/v1/token",`key=${N}`),Re=yield x._getAdditionalHeaders();return Re["Content-Type"]="application/x-www-form-urlencoded",j.fetch()(ge,{method:"POST",headers:Re,body:C})}));return{accessToken:b.access_token,expiresIn:b.expires_in,refreshToken:b.refresh_token}})).apply(this,arguments)}class Jn{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(m){G(m.idToken,"internal-error"),G(void 0!==m.idToken,"internal-error"),G(void 0!==m.refreshToken,"internal-error");const b="expiresIn"in m&&void 0!==m.expiresIn?Number(m.expiresIn):function qn(x){const m=Cn(x);return G(m,"internal-error"),G(void 0!==m.exp,"internal-error"),G(void 0!==m.iat,"internal-error"),Number(m.exp)-Number(m.iat)}(m.idToken);this.updateTokensAndExpiration(m.idToken,m.refreshToken,b)}getToken(m,b=!1){var C=this;return(0,t.Z)(function*(){return G(!C.accessToken||C.refreshToken,m,"user-token-expired"),b||!C.accessToken||C.isExpired?C.refreshToken?(yield C.refresh(m,C.refreshToken),C.accessToken):null:C.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(m,b){var C=this;return(0,t.Z)(function*(){const{accessToken:A,refreshToken:N,expiresIn:ge}=yield function Ri(x,m){return gn.apply(this,arguments)}(m,b);C.updateTokensAndExpiration(A,N,Number(ge))})()}updateTokensAndExpiration(m,b,C){this.refreshToken=b||null,this.accessToken=m||null,this.expirationTime=Date.now()+1e3*C}static fromJSON(m,b){const{refreshToken:C,accessToken:A,expirationTime:N}=b,ge=new Jn;return C&&(G("string"==typeof C,"internal-error",{appName:m}),ge.refreshToken=C),A&&(G("string"==typeof A,"internal-error",{appName:m}),ge.accessToken=A),N&&(G("number"==typeof N,"internal-error",{appName:m}),ge.expirationTime=N),ge}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(m){this.accessToken=m.accessToken,this.refreshToken=m.refreshToken,this.expirationTime=m.expirationTime}_clone(){return Object.assign(new Jn,this.toJSON())}_performRefresh(){return d("not implemented")}}function Qn(x,m){G("string"==typeof x||void 0===x,"internal-error",{appName:m})}class Hn{constructor(m){var{uid:b,auth:C,stsTokenManager:A}=m,N=(0,Se._T)(m,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new tt(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=b,this.auth=C,this.stsTokenManager=A,this.accessToken=A.accessToken,this.displayName=N.displayName||null,this.email=N.email||null,this.emailVerified=N.emailVerified||!1,this.phoneNumber=N.phoneNumber||null,this.photoURL=N.photoURL||null,this.isAnonymous=N.isAnonymous||!1,this.tenantId=N.tenantId||null,this.providerData=N.providerData?[...N.providerData]:[],this.metadata=new Zt(N.createdAt||void 0,N.lastLoginAt||void 0)}getIdToken(m){var b=this;return(0,t.Z)(function*(){const C=yield ni(b,b.stsTokenManager.getToken(b.auth,m));return G(C,b.auth,"internal-error"),b.accessToken!==C&&(b.accessToken=C,yield b.auth._persistUserIfCurrent(b),b.auth._notifyListenersIfCurrent(b)),C})()}getIdTokenResult(m){return function An(x){return hr.apply(this,arguments)}(this,m)}reload(){return function zn(x){return jt.apply(this,arguments)}(this)}_assign(m){this!==m&&(G(this.uid===m.uid,this.auth,"internal-error"),this.displayName=m.displayName,this.photoURL=m.photoURL,this.email=m.email,this.emailVerified=m.emailVerified,this.phoneNumber=m.phoneNumber,this.isAnonymous=m.isAnonymous,this.tenantId=m.tenantId,this.providerData=m.providerData.map(b=>Object.assign({},b)),this.metadata._copy(m.metadata),this.stsTokenManager._assign(m.stsTokenManager))}_clone(m){const b=new Hn(Object.assign(Object.assign({},this),{auth:m,stsTokenManager:this.stsTokenManager._clone()}));return b.metadata._copy(this.metadata),b}_onReload(m){G(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=m,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(m){this.reloadListener?this.reloadListener(m):this.reloadUserInfo=m}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(m,b=!1){var C=this;return(0,t.Z)(function*(){let A=!1;m.idToken&&m.idToken!==C.stsTokenManager.accessToken&&(C.stsTokenManager.updateFromServerResponse(m),A=!0),b&&(yield yn(C)),yield C.auth._persistUserIfCurrent(C),A&&C.auth._notifyListenersIfCurrent(C)})()}delete(){var m=this;return(0,t.Z)(function*(){const b=yield m.getIdToken();return yield ni(m,function Mt(x,m){return Jt.apply(this,arguments)}(m.auth,{idToken:b})),m.stsTokenManager.clearRefreshToken(),m.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(m=>Object.assign({},m)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(m,b){var C,A,N,ge,Re,nt,gt,Nt;const Sn=null!==(C=b.displayName)&&void 0!==C?C:void 0,Er=null!==(A=b.email)&&void 0!==A?A:void 0,go=null!==(N=b.phoneNumber)&&void 0!==N?N:void 0,Wu=null!==(ge=b.photoURL)&&void 0!==ge?ge:void 0,qu=null!==(Re=b.tenantId)&&void 0!==Re?Re:void 0,jc=null!==(nt=b._redirectEventId)&&void 0!==nt?nt:void 0,zu=null!==(gt=b.createdAt)&&void 0!==gt?gt:void 0,To=null!==(Nt=b.lastLoginAt)&&void 0!==Nt?Nt:void 0,{uid:Go,emailVerified:Tl,isAnonymous:Vc,providerData:ls,stsTokenManager:mr}=b;G(Go&&mr,m,"internal-error");const Qp=Jn.fromJSON(this.name,mr);G("string"==typeof Go,m,"internal-error"),Qn(Sn,m.name),Qn(Er,m.name),G("boolean"==typeof Tl,m,"internal-error"),G("boolean"==typeof Vc,m,"internal-error"),Qn(go,m.name),Qn(Wu,m.name),Qn(qu,m.name),Qn(jc,m.name),Qn(zu,m.name),Qn(To,m.name);const Kp=new Hn({uid:Go,auth:m,email:Er,emailVerified:Tl,displayName:Sn,isAnonymous:Vc,photoURL:Wu,phoneNumber:go,tenantId:qu,stsTokenManager:Qp,createdAt:zu,lastLoginAt:To});return ls&&Array.isArray(ls)&&(Kp.providerData=ls.map($u=>Object.assign({},$u))),jc&&(Kp._redirectEventId=jc),Kp}static _fromIdTokenResponse(m,b,C=!1){return(0,t.Z)(function*(){const A=new Jn;A.updateFromServerResponse(b);const N=new Hn({uid:b.localId,auth:m,stsTokenManager:A,isAnonymous:C});return yield yn(N),N})()}}const oi=new Map;function vi(x){U(x instanceof Function,"Expected a class definition");let m=oi.get(x);return m?(U(m instanceof x,"Instance stored in cache mismatched with class"),m):(m=new x,oi.set(x,m),m)}const sr=(()=>{class x{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,t.Z)(function*(){return!0})()}_set(b,C){var A=this;return(0,t.Z)(function*(){A.storage[b]=C})()}_get(b){var C=this;return(0,t.Z)(function*(){const A=C.storage[b];return void 0===A?null:A})()}_remove(b){var C=this;return(0,t.Z)(function*(){delete C.storage[b]})()}_addListener(b,C){}_removeListener(b,C){}}return x.type="NONE",x})();function Fi(x,m,b){return`firebase:${x}:${m}:${b}`}class ie{constructor(m,b,C){this.persistence=m,this.auth=b,this.userKey=C;const{config:A,name:N}=this.auth;this.fullUserKey=Fi(this.userKey,A.apiKey,N),this.fullPersistenceKey=Fi("persistence",A.apiKey,N),this.boundEventHandler=b._onStorageEvent.bind(b),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(m){return this.persistence._set(this.fullUserKey,m.toJSON())}getCurrentUser(){var m=this;return(0,t.Z)(function*(){const b=yield m.persistence._get(m.fullUserKey);return b?Hn._fromJSON(m.auth,b):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(m){var b=this;return(0,t.Z)(function*(){if(b.persistence===m)return;const C=yield b.getCurrentUser();return yield b.removeCurrentUser(),b.persistence=m,C?b.setCurrentUser(C):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(m,b,C="authUser"){return(0,t.Z)(function*(){if(!b.length)return new ie(vi(sr),m,C);const A=(yield Promise.all(b.map(function(){var gt=(0,t.Z)(function*(Nt){if(yield Nt._isAvailable())return Nt});return function(Nt){return gt.apply(this,arguments)}}()))).filter(gt=>gt);let N=A[0]||vi(sr);const ge=Fi(C,m.config.apiKey,m.name);let Re=null;for(const gt of b)try{const Nt=yield gt._get(ge);if(Nt){const Sn=Hn._fromJSON(m,Nt);gt!==N&&(Re=Sn),N=gt;break}}catch(Nt){}const nt=A.filter(gt=>gt._shouldAllowMigration);return N._shouldAllowMigration&&nt.length?(N=nt[0],Re&&(yield N._set(ge,Re.toJSON())),yield Promise.all(b.map(function(){var gt=(0,t.Z)(function*(Nt){if(Nt!==N)try{yield Nt._remove(ge)}catch(Sn){}});return function(Nt){return gt.apply(this,arguments)}}())),new ie(N,m,C)):new ie(N,m,C)})()}}function X(x){const m=x.toLowerCase();if(m.includes("opera/")||m.includes("opr/")||m.includes("opios/"))return"Opera";if(ye(m))return"IEMobile";if(m.includes("msie")||m.includes("trident/"))return"IE";if(m.includes("edge/"))return"Edge";if(F(m))return"Firefox";if(m.includes("silk/"))return"Silk";if(ot(m))return"Blackberry";if(Lt(m))return"Webos";if(L(m))return"Safari";if((m.includes("chrome/")||k(m))&&!m.includes("edge/"))return"Chrome";if(We(m))return"Android";{const C=x.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==C?void 0:C.length))return C[1]}return"Other"}function F(x=(0,J.z$)()){return/firefox\//i.test(x)}function L(x=(0,J.z$)()){const m=x.toLowerCase();return m.includes("safari/")&&!m.includes("chrome/")&&!m.includes("crios/")&&!m.includes("android")}function k(x=(0,J.z$)()){return/crios\//i.test(x)}function ye(x=(0,J.z$)()){return/iemobile/i.test(x)}function We(x=(0,J.z$)()){return/android/i.test(x)}function ot(x=(0,J.z$)()){return/blackberry/i.test(x)}function Lt(x=(0,J.z$)()){return/webos/i.test(x)}function kt(x=(0,J.z$)()){return/iphone|ipad|ipod/i.test(x)||/macintosh/i.test(x)&&/mobile/i.test(x)}function sn(x=(0,J.z$)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(x)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(x)}function on(x=(0,J.z$)()){return kt(x)||We(x)||Lt(x)||ot(x)||/windows phone/i.test(x)||ye(x)}function ue(x,m=[]){let b;switch(x){case"Browser":b=X((0,J.z$)());break;case"Worker":b=`${X((0,J.z$)())}-${x}`;break;default:b=x}const C=m.length?m.join(","):"FirebaseCore-web";return`${b}/JsCore/${B.SDK_VERSION}/${C}`}function ne(){return(ne=(0,t.Z)(function*(x){return(yield Ge(x,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""})).apply(this,arguments)}function we(x,m){return Te.apply(this,arguments)}function Te(){return(Te=(0,t.Z)(function*(x,m){return Ge(x,"GET","/v2/recaptchaConfig",ve(x,m))})).apply(this,arguments)}function $e(x){return void 0!==x&&void 0!==x.getResponse}function lt(x){return void 0!==x&&void 0!==x.enterprise}class en{constructor(m){if(this.siteKey="",this.emailPasswordEnabled=!1,void 0===m.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=m.recaptchaKey.split("/")[3],this.emailPasswordEnabled=m.recaptchaEnforcementState.some(b=>"EMAIL_PASSWORD_PROVIDER"===b.provider&&"OFF"!==b.enforcementState)}}function un(x){return new Promise((m,b)=>{const C=document.createElement("script");C.setAttribute("src",x),C.onload=m,C.onerror=A=>{const N=et("internal-error");N.customData=A,b(N)},C.type="text/javascript",C.charset="UTF-8",function jn(){var x,m;return null!==(m=null===(x=document.getElementsByTagName("head"))||void 0===x?void 0:x[0])&&void 0!==m?m:document}().appendChild(C)})}function bi(x){return`__${x}${Math.floor(1e6*Math.random())}`}class hn{constructor(m){this.type="recaptcha-enterprise",this.auth=Vt(m)}verify(m="verify",b=!1){var C=this;return(0,t.Z)(function*(){function N(){return N=(0,t.Z)(function*(Re){if(!b){if(null==Re.tenantId&&null!=Re._agentRecaptchaConfig)return Re._agentRecaptchaConfig.siteKey;if(null!=Re.tenantId&&void 0!==Re._tenantRecaptchaConfigs[Re.tenantId])return Re._tenantRecaptchaConfigs[Re.tenantId].siteKey}return new Promise(function(){var nt=(0,t.Z)(function*(gt,Nt){we(Re,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(Sn=>{if(void 0!==Sn.recaptchaKey){const Er=new en(Sn);return null==Re.tenantId?Re._agentRecaptchaConfig=Er:Re._tenantRecaptchaConfigs[Re.tenantId]=Er,gt(Er.siteKey)}Nt(new Error("recaptcha Enterprise site key undefined"))}).catch(Sn=>{Nt(Sn)})});return function(gt,Nt){return nt.apply(this,arguments)}}())}),N.apply(this,arguments)}function ge(Re,nt,gt){const Nt=window.grecaptcha;lt(Nt)?Nt.enterprise.ready(()=>{Nt.enterprise.execute(Re,{action:m}).then(Sn=>{nt(Sn)}).catch(()=>{nt("NO_RECAPTCHA")})}):gt(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Re,nt)=>{(function A(Re){return N.apply(this,arguments)})(C.auth).then(gt=>{if(!b&<(window.grecaptcha))ge(gt,Re,nt);else{if("undefined"==typeof window)return void nt(new Error("RecaptchaVerifier is only supported in browser"));un("https://www.google.com/recaptcha/enterprise.js?render="+gt).then(()=>{ge(gt,Re,nt)}).catch(Nt=>{nt(Nt)})}}).catch(gt=>{nt(gt)})})})()}}function Tr(x,m,b){return wn.apply(this,arguments)}function wn(){return(wn=(0,t.Z)(function*(x,m,b,C=!1){const A=new hn(x);let N;try{N=yield A.verify(b)}catch(Re){N=yield A.verify(b,!0)}const ge=Object.assign({},m);return Object.assign(ge,C?{captchaResp:N}:{captchaResponse:N}),Object.assign(ge,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(ge,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),ge})).apply(this,arguments)}class cc{constructor(m){this.auth=m,this.queue=[]}pushCallback(m,b){const C=N=>new Promise((ge,Re)=>{try{ge(m(N))}catch(nt){Re(nt)}});C.onAbort=b,this.queue.push(C);const A=this.queue.length-1;return()=>{this.queue[A]=()=>Promise.resolve()}}runMiddleware(m){var b=this;return(0,t.Z)(function*(){if(b.auth.currentUser===m)return;const C=[];try{for(const A of b.queue)yield A(m),A.onAbort&&C.push(A.onAbort)}catch(A){C.reverse();for(const N of C)try{N()}catch(ge){}throw b.auth._errorFactory.create("login-blocked",{originalMessage:null==A?void 0:A.message})}})()}}class No{constructor(m,b,C,A){this.app=m,this.heartbeatServiceProvider=b,this.appCheckServiceProvider=C,this.config=A,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Rs(this),this.idTokenSubscription=new Rs(this),this.beforeStateQueue=new cc(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Ye,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=m.name,this.clientVersion=A.sdkClientVersion}_initializeWithPersistence(m,b){var C=this;return b&&(this._popupRedirectResolver=vi(b)),this._initializationPromise=this.queue((0,t.Z)(function*(){var A,N;if(!C._deleted&&(C.persistenceManager=yield ie.create(C,m),!C._deleted)){if(null===(A=C._popupRedirectResolver)||void 0===A?void 0:A._shouldInitProactively)try{yield C._popupRedirectResolver._initialize(C)}catch(ge){}yield C.initializeCurrentUser(b),C.lastNotifiedUid=(null===(N=C.currentUser)||void 0===N?void 0:N.uid)||null,!C._deleted&&(C._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var m=this;return(0,t.Z)(function*(){if(m._deleted)return;const b=yield m.assertedPersistence.getCurrentUser();if(m.currentUser||b){if(m.currentUser&&b&&m.currentUser.uid===b.uid)return m._currentUser._assign(b),void(yield m.currentUser.getIdToken());yield m._updateCurrentUser(b,!0)}})()}initializeCurrentUser(m){var b=this;return(0,t.Z)(function*(){var C;const A=yield b.assertedPersistence.getCurrentUser();let N=A,ge=!1;if(m&&b.config.authDomain){yield b.getOrInitRedirectPersistenceManager();const Re=null===(C=b.redirectUser)||void 0===C?void 0:C._redirectEventId,nt=null==N?void 0:N._redirectEventId,gt=yield b.tryRedirectSignIn(m);(!Re||Re===nt)&&(null==gt?void 0:gt.user)&&(N=gt.user,ge=!0)}if(!N)return b.directlySetCurrentUser(null);if(!N._redirectEventId){if(ge)try{yield b.beforeStateQueue.runMiddleware(N)}catch(Re){N=A,b._popupRedirectResolver._overrideRedirectResult(b,()=>Promise.reject(Re))}return N?b.reloadAndSetCurrentUserOrClear(N):b.directlySetCurrentUser(null)}return G(b._popupRedirectResolver,b,"argument-error"),yield b.getOrInitRedirectPersistenceManager(),b.redirectUser&&b.redirectUser._redirectEventId===N._redirectEventId?b.directlySetCurrentUser(N):b.reloadAndSetCurrentUserOrClear(N)})()}tryRedirectSignIn(m){var b=this;return(0,t.Z)(function*(){let C=null;try{C=yield b._popupRedirectResolver._completeRedirectFn(b,m,!0)}catch(A){yield b._setRedirectUser(null)}return C})()}reloadAndSetCurrentUserOrClear(m){var b=this;return(0,t.Z)(function*(){try{yield yn(m)}catch(C){if("auth/network-request-failed"!==(null==C?void 0:C.code))return b.directlySetCurrentUser(null)}return b.directlySetCurrentUser(m)})()}useDeviceLanguage(){this.languageCode=function Pe(){if("undefined"==typeof navigator)return null;const x=navigator;return x.languages&&x.languages[0]||x.language||null}()}_delete(){var m=this;return(0,t.Z)(function*(){m._deleted=!0})()}updateCurrentUser(m){var b=this;return(0,t.Z)(function*(){const C=m?(0,J.m9)(m):null;return C&&G(C.auth.config.apiKey===b.config.apiKey,b,"invalid-user-token"),b._updateCurrentUser(C&&C._clone(b))})()}_updateCurrentUser(m,b=!1){var C=this;return(0,t.Z)(function*(){if(!C._deleted)return m&&G(C.tenantId===m.tenantId,C,"tenant-id-mismatch"),b||(yield C.beforeStateQueue.runMiddleware(m)),C.queue((0,t.Z)(function*(){yield C.directlySetCurrentUser(m),C.notifyAuthListeners()}))})()}signOut(){var m=this;return(0,t.Z)(function*(){return yield m.beforeStateQueue.runMiddleware(null),(m.redirectPersistenceManager||m._popupRedirectResolver)&&(yield m._setRedirectUser(null)),m._updateCurrentUser(null,!0)})()}setPersistence(m){var b=this;return this.queue((0,t.Z)(function*(){yield b.assertedPersistence.setPersistence(vi(m))}))}initializeRecaptchaConfig(){var m=this;return(0,t.Z)(function*(){const b=yield we(m,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),C=new en(b);null==m.tenantId?m._agentRecaptchaConfig=C:m._tenantRecaptchaConfigs[m.tenantId]=C,C.emailPasswordEnabled&&new hn(m).verify()})()}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(m){this._errorFactory=new J.LL("auth","Firebase",m())}onAuthStateChanged(m,b,C){return this.registerStateListener(this.authStateSubscription,m,b,C)}beforeAuthStateChanged(m,b){return this.beforeStateQueue.pushCallback(m,b)}onIdTokenChanged(m,b,C){return this.registerStateListener(this.idTokenSubscription,m,b,C)}toJSON(){var m;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(m=this._currentUser)||void 0===m?void 0:m.toJSON()}}_setRedirectUser(m,b){var C=this;return(0,t.Z)(function*(){const A=yield C.getOrInitRedirectPersistenceManager(b);return null===m?A.removeCurrentUser():A.setCurrentUser(m)})()}getOrInitRedirectPersistenceManager(m){var b=this;return(0,t.Z)(function*(){if(!b.redirectPersistenceManager){const C=m&&vi(m)||b._popupRedirectResolver;G(C,b,"argument-error"),b.redirectPersistenceManager=yield ie.create(b,[vi(C._redirectPersistence)],"redirectUser"),b.redirectUser=yield b.redirectPersistenceManager.getCurrentUser()}return b.redirectPersistenceManager})()}_redirectUserForId(m){var b=this;return(0,t.Z)(function*(){var C,A;return b._isInitialized&&(yield b.queue((0,t.Z)(function*(){}))),(null===(C=b._currentUser)||void 0===C?void 0:C._redirectEventId)===m?b._currentUser:(null===(A=b.redirectUser)||void 0===A?void 0:A._redirectEventId)===m?b.redirectUser:null})()}_persistUserIfCurrent(m){var b=this;return(0,t.Z)(function*(){if(m===b.currentUser)return b.queue((0,t.Z)(function*(){return b.directlySetCurrentUser(m)}))})()}_notifyListenersIfCurrent(m){m===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var m,b;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const C=null!==(b=null===(m=this.currentUser)||void 0===m?void 0:m.uid)&&void 0!==b?b:null;this.lastNotifiedUid!==C&&(this.lastNotifiedUid=C,this.authStateSubscription.next(this.currentUser))}registerStateListener(m,b,C,A){if(this._deleted)return()=>{};const N="function"==typeof b?b:b.next.bind(b),ge=this._isInitialized?Promise.resolve():this._initializationPromise;return G(ge,this,"internal-error"),ge.then(()=>N(this.currentUser)),"function"==typeof b?m.addObserver(b,C,A):m.addObserver(b)}directlySetCurrentUser(m){var b=this;return(0,t.Z)(function*(){b.currentUser&&b.currentUser!==m&&b._currentUser._stopProactiveRefresh(),m&&b.isProactiveRefreshEnabled&&m._startProactiveRefresh(),b.currentUser=m,m?yield b.assertedPersistence.setCurrentUser(m):yield b.assertedPersistence.removeCurrentUser()})()}queue(m){return this.operations=this.operations.then(m,m),this.operations}get assertedPersistence(){return G(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(m){!m||this.frameworks.includes(m)||(this.frameworks.push(m),this.frameworks.sort(),this.clientVersion=ue(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var m=this;return(0,t.Z)(function*(){var b;const C={"X-Client-Version":m.clientVersion};m.app.options.appId&&(C["X-Firebase-gmpid"]=m.app.options.appId);const A=yield null===(b=m.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===b?void 0:b.getHeartbeatsHeader();A&&(C["X-Firebase-Client"]=A);const N=yield m._getAppCheckToken();return N&&(C["X-Firebase-AppCheck"]=N),C})()}_getAppCheckToken(){var m=this;return(0,t.Z)(function*(){var b;const C=yield null===(b=m.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===b?void 0:b.getToken();return(null==C?void 0:C.error)&&function pe(x,...m){ke.logLevel<=z.in.WARN&&ke.warn(`Auth (${B.SDK_VERSION}): ${x}`,...m)}(`Error while retrieving App Check token: ${C.error}`),null==C?void 0:C.token})()}}function Vt(x){return(0,J.m9)(x)}class Rs{constructor(m){this.auth=m,this.observer=null,this.addObserver=(0,J.ne)(b=>this.observer=b)}get next(){return G(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function $n(x,m,b){const C=Vt(x);G(C._canInitEmulator,C,"emulator-config-failed"),G(/^https?:\/\//.test(m),C,"invalid-emulator-scheme");const A=!!(null==b?void 0:b.disableWarnings),N=uc(m),{host:ge,port:Re}=function vu(x){const m=uc(x),b=/(\/\/)?([^?#/]+)/.exec(x.substr(m.length));if(!b)return{host:"",port:null};const C=b[2].split("@").pop()||"",A=/^(\[[^\]]+\])(:|$)/.exec(C);if(A){const N=A[1];return{host:N,port:Qr(C.substr(N.length+1))}}{const[N,ge]=C.split(":");return{host:N,port:Qr(ge)}}}(m);C.config.emulator={url:`${N}//${ge}${null===Re?"":`:${Re}`}/`},C.settings.appVerificationDisabledForTesting=!0,C.emulatorConfig=Object.freeze({host:ge,port:Re,protocol:N.replace(":",""),options:Object.freeze({disableWarnings:A})}),A||function Kr(){function x(){const m=document.createElement("p"),b=m.style;m.innerText="Running in emulator mode. Do not use with production credentials.",b.position="fixed",b.width="100%",b.backgroundColor="#ffffff",b.border=".1em solid #000000",b.color="#b50000",b.bottom="0px",b.left="0px",b.margin="0px",b.zIndex="10000",b.textAlign="center",m.classList.add("firebase-emulator-warning"),document.body.appendChild(m)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",x):x())}()}function uc(x){const m=x.indexOf(":");return m<0?"":x.substr(0,m+1)}function Qr(x){if(!x)return null;const m=Number(x);return isNaN(m)?null:m}class Q{constructor(m,b){this.providerId=m,this.signInMethod=b}toJSON(){return d("not implemented")}_getIdTokenResponse(m){return d("not implemented")}_linkToIdToken(m,b){return d("not implemented")}_getReauthenticationResolver(m){return d("not implemented")}}function _e(x,m){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:resetPassword",ve(x,m))})).apply(this,arguments)}function pt(x,m){return Mn.apply(this,arguments)}function Mn(){return(Mn=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:update",m)})).apply(this,arguments)}function Ut(x,m){return Vn.apply(this,arguments)}function Vn(){return(Vn=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:update",ve(x,m))})).apply(this,arguments)}function fi(x,m){return Xi.apply(this,arguments)}function Xi(){return(Xi=(0,t.Z)(function*(x,m){return Ot(x,"POST","/v1/accounts:signInWithPassword",ve(x,m))})).apply(this,arguments)}function ar(x,m){return Fs.apply(this,arguments)}function Fs(){return(Fs=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:sendOobCode",ve(x,m))})).apply(this,arguments)}function cy(x,m){return dc.apply(this,arguments)}function dc(){return(dc=(0,t.Z)(function*(x,m){return ar(x,m)})).apply(this,arguments)}function up(x,m){return hc.apply(this,arguments)}function hc(){return(hc=(0,t.Z)(function*(x,m){return ar(x,m)})).apply(this,arguments)}function dp(x,m){return hp.apply(this,arguments)}function hp(){return(hp=(0,t.Z)(function*(x,m){return ar(x,m)})).apply(this,arguments)}function uy(x,m){return fp.apply(this,arguments)}function fp(){return(fp=(0,t.Z)(function*(x,m){return ar(x,m)})).apply(this,arguments)}function u_(){return(u_=(0,t.Z)(function*(x,m){return Ot(x,"POST","/v1/accounts:signInWithEmailLink",ve(x,m))})).apply(this,arguments)}function bu(){return(bu=(0,t.Z)(function*(x,m){return Ot(x,"POST","/v1/accounts:signInWithEmailLink",ve(x,m))})).apply(this,arguments)}class _a extends Q{constructor(m,b,C,A=null){super("password",C),this._email=m,this._password=b,this._tenantId=A}static _fromEmailAndPassword(m,b){return new _a(m,b,"password")}static _fromEmailAndCode(m,b,C=null){return new _a(m,b,"emailLink",C)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(m){const b="string"==typeof m?JSON.parse(m):m;if((null==b?void 0:b.email)&&(null==b?void 0:b.password)){if("password"===b.signInMethod)return this._fromEmailAndPassword(b.email,b.password);if("emailLink"===b.signInMethod)return this._fromEmailAndCode(b.email,b.password,b.tenantId)}return null}_getIdTokenResponse(m){var b=this;return(0,t.Z)(function*(){var C;switch(b.signInMethod){case"password":const A={returnSecureToken:!0,email:b._email,password:b._password,clientType:"CLIENT_TYPE_WEB"};if(null===(C=m._getRecaptchaConfig())||void 0===C?void 0:C.emailPasswordEnabled){const N=yield Tr(m,A,"signInWithPassword");return fi(m,N)}return fi(m,A).catch(function(){var N=(0,t.Z)(function*(ge){if("auth/missing-recaptcha-token"===ge.code){console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const Re=yield Tr(m,A,"signInWithPassword");return fi(m,Re)}return Promise.reject(ge)});return function(ge){return N.apply(this,arguments)}}());case"emailLink":return function dy(x,m){return u_.apply(this,arguments)}(m,{email:b._email,oobCode:b._password});default:Ve(m,"internal-error")}})()}_linkToIdToken(m,b){var C=this;return(0,t.Z)(function*(){switch(C.signInMethod){case"password":return pt(m,{idToken:b,returnSecureToken:!0,email:C._email,password:C._password});case"emailLink":return function hy(x,m){return bu.apply(this,arguments)}(m,{idToken:b,email:C._email,oobCode:C._password});default:Ve(m,"internal-error")}})()}_getReauthenticationResolver(m){return this._getIdTokenResponse(m)}}function Ls(x,m){return d_.apply(this,arguments)}function d_(){return(d_=(0,t.Z)(function*(x,m){return Ot(x,"POST","/v1/accounts:signInWithIdp",ve(x,m))})).apply(this,arguments)}class Sr extends Q{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(m){const b=new Sr(m.providerId,m.signInMethod);return m.idToken||m.accessToken?(m.idToken&&(b.idToken=m.idToken),m.accessToken&&(b.accessToken=m.accessToken),m.nonce&&!m.pendingToken&&(b.nonce=m.nonce),m.pendingToken&&(b.pendingToken=m.pendingToken)):m.oauthToken&&m.oauthTokenSecret?(b.accessToken=m.oauthToken,b.secret=m.oauthTokenSecret):Ve("argument-error"),b}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(m){const b="string"==typeof m?JSON.parse(m):m,{providerId:C,signInMethod:A}=b,N=(0,Se._T)(b,["providerId","signInMethod"]);if(!C||!A)return null;const ge=new Sr(C,A);return ge.idToken=N.idToken||void 0,ge.accessToken=N.accessToken||void 0,ge.secret=N.secret,ge.nonce=N.nonce,ge.pendingToken=N.pendingToken||null,ge}_getIdTokenResponse(m){return Ls(m,this.buildRequest())}_linkToIdToken(m,b){const C=this.buildRequest();return C.idToken=b,Ls(m,C)}_getReauthenticationResolver(m){const b=this.buildRequest();return b.autoCreate=!1,Ls(m,b)}buildRequest(){const m={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)m.pendingToken=this.pendingToken;else{const b={};this.idToken&&(b.id_token=this.idToken),this.accessToken&&(b.access_token=this.accessToken),this.secret&&(b.oauth_token_secret=this.secret),b.providerId=this.providerId,this.nonce&&!this.pendingToken&&(b.nonce=this.nonce),m.postBody=(0,J.xO)(b)}return m}}function h_(x,m){return fc.apply(this,arguments)}function fc(){return(fc=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:sendVerificationCode",ve(x,m))})).apply(this,arguments)}function ah(){return(ah=(0,t.Z)(function*(x,m){return Ot(x,"POST","/v1/accounts:signInWithPhoneNumber",ve(x,m))})).apply(this,arguments)}function lh(){return(lh=(0,t.Z)(function*(x,m){const b=yield Ot(x,"POST","/v1/accounts:signInWithPhoneNumber",ve(x,m));if(b.temporaryProof)throw yt(x,"account-exists-with-different-credential",b);return b})).apply(this,arguments)}const p_={USER_NOT_FOUND:"user-not-found"};function yu(){return(yu=(0,t.Z)(function*(x,m){return Ot(x,"POST","/v1/accounts:signInWithPhoneNumber",ve(x,Object.assign(Object.assign({},m),{operation:"REAUTH"})),p_)})).apply(this,arguments)}class ll extends Q{constructor(m){super("phone","phone"),this.params=m}static _fromVerification(m,b){return new ll({verificationId:m,verificationCode:b})}static _fromTokenResponse(m,b){return new ll({phoneNumber:m,temporaryProof:b})}_getIdTokenResponse(m){return function f_(x,m){return ah.apply(this,arguments)}(m,this._makeVerificationRequest())}_linkToIdToken(m,b){return function py(x,m){return lh.apply(this,arguments)}(m,Object.assign({idToken:b},this._makeVerificationRequest()))}_getReauthenticationResolver(m){return function gy(x,m){return yu.apply(this,arguments)}(m,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:m,phoneNumber:b,verificationId:C,verificationCode:A}=this.params;return m&&b?{temporaryProof:m,phoneNumber:b}:{sessionInfo:C,code:A}}toJSON(){const m={providerId:this.providerId};return this.params.phoneNumber&&(m.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(m.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(m.verificationCode=this.params.verificationCode),this.params.verificationId&&(m.verificationId=this.params.verificationId),m}static fromJSON(m){"string"==typeof m&&(m=JSON.parse(m));const{verificationId:b,verificationCode:C,phoneNumber:A,temporaryProof:N}=m;return C||b||A||N?new ll({verificationId:b,verificationCode:C,phoneNumber:A,temporaryProof:N}):null}}class xu{constructor(m){var b,C,A,N,ge,Re;const nt=(0,J.zd)((0,J.pd)(m)),gt=null!==(b=nt.apiKey)&&void 0!==b?b:null,Nt=null!==(C=nt.oobCode)&&void 0!==C?C:null,Sn=function co(x){switch(x){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(A=nt.mode)&&void 0!==A?A:null);G(gt&&Nt&&Sn,"argument-error"),this.apiKey=gt,this.operation=Sn,this.code=Nt,this.continueUrl=null!==(N=nt.continueUrl)&&void 0!==N?N:null,this.languageCode=null!==(ge=nt.languageCode)&&void 0!==ge?ge:null,this.tenantId=null!==(Re=nt.tenantId)&&void 0!==Re?Re:null}static parseLink(m){const b=function pp(x){const m=(0,J.zd)((0,J.pd)(x)).link,b=m?(0,J.zd)((0,J.pd)(m)).deep_link_id:null,C=(0,J.zd)((0,J.pd)(x)).deep_link_id;return(C?(0,J.zd)((0,J.pd)(C)).link:null)||C||b||m||x}(m);try{return new xu(b)}catch(C){return null}}}let Cu=(()=>{class x{constructor(){this.providerId=x.PROVIDER_ID}static credential(b,C){return _a._fromEmailAndPassword(b,C)}static credentialWithLink(b,C){const A=xu.parseLink(C);return G(A,"argument-error"),_a._fromEmailAndCode(b,A.code,A.tenantId)}}return x.PROVIDER_ID="password",x.EMAIL_PASSWORD_SIGN_IN_METHOD="password",x.EMAIL_LINK_SIGN_IN_METHOD="emailLink",x})();class Ko{constructor(m){this.providerId=m,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(m){this.defaultLanguageCode=m}setCustomParameters(m){return this.customParameters=m,this}getCustomParameters(){return this.customParameters}}class Bs extends Ko{constructor(){super(...arguments),this.scopes=[]}addScope(m){return this.scopes.includes(m)||this.scopes.push(m),this}getScopes(){return[...this.scopes]}}class va extends Bs{static credentialFromJSON(m){const b="string"==typeof m?JSON.parse(m):m;return G("providerId"in b&&"signInMethod"in b,"argument-error"),Sr._fromParams(b)}credential(m){return this._credential(Object.assign(Object.assign({},m),{nonce:m.rawNonce}))}_credential(m){return G(m.idToken||m.accessToken,"argument-error"),Sr._fromParams(Object.assign(Object.assign({},m),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(m){return va.oauthCredentialFromTaggedObject(m)}static credentialFromError(m){return va.oauthCredentialFromTaggedObject(m.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:m}){if(!m)return null;const{oauthIdToken:b,oauthAccessToken:C,oauthTokenSecret:A,pendingToken:N,nonce:ge,providerId:Re}=m;if(!C&&!A&&!b&&!N||!Re)return null;try{return new va(Re)._credential({idToken:b,accessToken:C,nonce:ge,pendingToken:N})}catch(nt){return null}}}let ba=(()=>{class x extends Bs{constructor(){super("facebook.com")}static credential(b){return Sr._fromParams({providerId:x.PROVIDER_ID,signInMethod:x.FACEBOOK_SIGN_IN_METHOD,accessToken:b})}static credentialFromResult(b){return x.credentialFromTaggedObject(b)}static credentialFromError(b){return x.credentialFromTaggedObject(b.customData||{})}static credentialFromTaggedObject({_tokenResponse:b}){if(!b||!("oauthAccessToken"in b)||!b.oauthAccessToken)return null;try{return x.credential(b.oauthAccessToken)}catch(C){return null}}}return x.FACEBOOK_SIGN_IN_METHOD="facebook.com",x.PROVIDER_ID="facebook.com",x})(),OT=(()=>{class x extends Bs{constructor(){super("google.com"),this.addScope("profile")}static credential(b,C){return Sr._fromParams({providerId:x.PROVIDER_ID,signInMethod:x.GOOGLE_SIGN_IN_METHOD,idToken:b,accessToken:C})}static credentialFromResult(b){return x.credentialFromTaggedObject(b)}static credentialFromError(b){return x.credentialFromTaggedObject(b.customData||{})}static credentialFromTaggedObject({_tokenResponse:b}){if(!b)return null;const{oauthIdToken:C,oauthAccessToken:A}=b;if(!C&&!A)return null;try{return x.credential(C,A)}catch(N){return null}}}return x.GOOGLE_SIGN_IN_METHOD="google.com",x.PROVIDER_ID="google.com",x})(),Li=(()=>{class x extends Bs{constructor(){super("github.com")}static credential(b){return Sr._fromParams({providerId:x.PROVIDER_ID,signInMethod:x.GITHUB_SIGN_IN_METHOD,accessToken:b})}static credentialFromResult(b){return x.credentialFromTaggedObject(b)}static credentialFromError(b){return x.credentialFromTaggedObject(b.customData||{})}static credentialFromTaggedObject({_tokenResponse:b}){if(!b||!("oauthAccessToken"in b)||!b.oauthAccessToken)return null;try{return x.credential(b.oauthAccessToken)}catch(C){return null}}}return x.GITHUB_SIGN_IN_METHOD="github.com",x.PROVIDER_ID="github.com",x})();class ya extends Q{constructor(m,b){super(m,m),this.pendingToken=b}_getIdTokenResponse(m){return Ls(m,this.buildRequest())}_linkToIdToken(m,b){const C=this.buildRequest();return C.idToken=b,Ls(m,C)}_getReauthenticationResolver(m){const b=this.buildRequest();return b.autoCreate=!1,Ls(m,b)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(m){const b="string"==typeof m?JSON.parse(m):m,{providerId:C,signInMethod:A,pendingToken:N}=b;return C&&A&&N&&C===A?new ya(C,N):null}static _create(m,b){return new ya(m,b)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class uh extends Ko{constructor(m){G(m.startsWith("saml."),"argument-error"),super(m)}static credentialFromResult(m){return uh.samlCredentialFromTaggedObject(m)}static credentialFromError(m){return uh.samlCredentialFromTaggedObject(m.customData||{})}static credentialFromJSON(m){const b=ya.fromJSON(m);return G(b,"argument-error"),b}static samlCredentialFromTaggedObject({_tokenResponse:m}){if(!m)return null;const{pendingToken:b,providerId:C}=m;if(!b||!C)return null;try{return ya._create(C,b)}catch(A){return null}}}let my=(()=>{class x extends Bs{constructor(){super("twitter.com")}static credential(b,C){return Sr._fromParams({providerId:x.PROVIDER_ID,signInMethod:x.TWITTER_SIGN_IN_METHOD,oauthToken:b,oauthTokenSecret:C})}static credentialFromResult(b){return x.credentialFromTaggedObject(b)}static credentialFromError(b){return x.credentialFromTaggedObject(b.customData||{})}static credentialFromTaggedObject({_tokenResponse:b}){if(!b)return null;const{oauthAccessToken:C,oauthTokenSecret:A}=b;if(!C||!A)return null;try{return x.credential(C,A)}catch(N){return null}}}return x.TWITTER_SIGN_IN_METHOD="twitter.com",x.PROVIDER_ID="twitter.com",x})();function Gs(x,m){return Gr.apply(this,arguments)}function Gr(){return(Gr=(0,t.Z)(function*(x,m){return Ot(x,"POST","/v1/accounts:signUp",ve(x,m))})).apply(this,arguments)}class yo{constructor(m){this.user=m.user,this.providerId=m.providerId,this._tokenResponse=m._tokenResponse,this.operationType=m.operationType}static _fromIdTokenResponse(m,b,C,A=!1){return(0,t.Z)(function*(){const N=yield Hn._fromIdTokenResponse(m,C,A),ge=dh(C);return new yo({user:N,providerId:ge,_tokenResponse:C,operationType:b})})()}static _forOperation(m,b,C){return(0,t.Z)(function*(){yield m._updateTokensIfNecessary(C,!0);const A=dh(C);return new yo({user:m,providerId:A,_tokenResponse:C,operationType:b})})()}}function dh(x){return x.providerId?x.providerId:"phoneNumber"in x?"phone":null}function pc(x){return Ur.apply(this,arguments)}function Ur(){return(Ur=(0,t.Z)(function*(x){var m;const b=Vt(x);if(yield b._initializationPromise,null===(m=b.currentUser)||void 0===m?void 0:m.isAnonymous)return new yo({user:b.currentUser,providerId:null,operationType:"signIn"});const C=yield Gs(b,{returnSecureToken:!0}),A=yield yo._fromIdTokenResponse(b,"signIn",C,!0);return yield b._updateCurrentUser(A.user),A})).apply(this,arguments)}class wu extends J.ZR{constructor(m,b,C,A){var N;super(b.code,b.message),this.operationType=C,this.user=A,Object.setPrototypeOf(this,wu.prototype),this.customData={appName:m.name,tenantId:null!==(N=m.tenantId)&&void 0!==N?N:void 0,_serverResponse:b.customData._serverResponse,operationType:C}}static _fromErrorAndOperation(m,b,C,A){return new wu(m,b,C,A)}}function hh(x,m,b,C){return("reauthenticate"===m?b._getReauthenticationResolver(x):b._getIdTokenResponse(x)).catch(N=>{throw"auth/multi-factor-auth-required"===N.code?wu._fromErrorAndOperation(x,N,m,C):N})}function m_(x){return new Set(x.map(({providerId:m})=>m).filter(m=>!!m))}function xa(x,m){return fh.apply(this,arguments)}function fh(){return(fh=(0,t.Z)(function*(x,m){const b=(0,J.m9)(x);yield mc(!0,b,m);const{providerUserInfo:C}=yield rn(b.auth,{idToken:yield b.getIdToken(),deleteProvider:[m]}),A=m_(C||[]);return b.providerData=b.providerData.filter(N=>A.has(N.providerId)),A.has("phone")||(b.phoneNumber=null),yield b.auth._persistUserIfCurrent(b),b})).apply(this,arguments)}function gc(x,m){return dn.apply(this,arguments)}function dn(){return(dn=(0,t.Z)(function*(x,m,b=!1){const C=yield ni(x,m._linkToIdToken(x.auth,yield x.getIdToken()),b);return yo._forOperation(x,"link",C)})).apply(this,arguments)}function mc(x,m,b){return gp.apply(this,arguments)}function gp(){return(gp=(0,t.Z)(function*(x,m,b){yield yn(m);const A=!1===x?"provider-already-linked":"no-such-provider";G(m_(m.providerData).has(b)===x,m.auth,A)})).apply(this,arguments)}function __(x,m){return mp.apply(this,arguments)}function mp(){return(mp=(0,t.Z)(function*(x,m,b=!1){const{auth:C}=x,A="reauthenticate";try{const N=yield ni(x,hh(C,A,m,x),b);G(N.idToken,C,"internal-error");const ge=Cn(N.idToken);G(ge,C,"internal-error");const{sub:Re}=ge;return G(x.uid===Re,C,"user-mismatch"),yo._forOperation(x,A,N)}catch(N){throw"auth/user-not-found"===(null==N?void 0:N.code)&&Ve(C,"user-mismatch"),N}})).apply(this,arguments)}function v_(x,m){return ph.apply(this,arguments)}function ph(){return(ph=(0,t.Z)(function*(x,m,b=!1){const C="signIn",A=yield hh(x,C,m),N=yield yo._fromIdTokenResponse(x,C,A);return b||(yield x._updateCurrentUser(N.user)),N})).apply(this,arguments)}function gh(x,m){return _p.apply(this,arguments)}function _p(){return(_p=(0,t.Z)(function*(x,m){return v_(Vt(x),m)})).apply(this,arguments)}function Xe(x,m){return Rn.apply(this,arguments)}function Rn(){return(Rn=(0,t.Z)(function*(x,m){const b=(0,J.m9)(x);return yield mc(!1,b,m.providerId),gc(b,m)})).apply(this,arguments)}function vp(x,m){return Zi.apply(this,arguments)}function Zi(){return(Zi=(0,t.Z)(function*(x,m){return __((0,J.m9)(x),m)})).apply(this,arguments)}function b_(x,m){return Xo.apply(this,arguments)}function Xo(){return(Xo=(0,t.Z)(function*(x,m){return Ot(x,"POST","/v1/accounts:signInWithCustomToken",ve(x,m))})).apply(this,arguments)}function Hr(x,m){return Ca.apply(this,arguments)}function Ca(){return(Ca=(0,t.Z)(function*(x,m){const b=Vt(x),C=yield b_(b,{token:m,returnSecureToken:!0}),A=yield yo._fromIdTokenResponse(b,"signIn",C);return yield b._updateCurrentUser(A.user),A})).apply(this,arguments)}class Us{constructor(m,b){this.factorId=m,this.uid=b.mfaEnrollmentId,this.enrollmentTime=new Date(b.enrolledAt).toUTCString(),this.displayName=b.displayName}static _fromServerResponse(m,b){return"phoneInfo"in b?y_._fromServerResponse(m,b):"totpInfo"in b?Tu._fromServerResponse(m,b):Ve(m,"internal-error")}}class y_ extends Us{constructor(m){super("phone",m),this.phoneNumber=m.phoneInfo}static _fromServerResponse(m,b){return new y_(b)}}class Tu extends Us{constructor(m){super("totp",m)}static _fromServerResponse(m,b){return new Tu(b)}}function _c(x,m,b){var C;G((null===(C=b.url)||void 0===C?void 0:C.length)>0,x,"invalid-continue-uri"),G(void 0===b.dynamicLinkDomain||b.dynamicLinkDomain.length>0,x,"invalid-dynamic-link-domain"),m.continueUrl=b.url,m.dynamicLinkDomain=b.dynamicLinkDomain,m.canHandleCodeInApp=b.handleCodeInApp,b.iOS&&(G(b.iOS.bundleId.length>0,x,"missing-ios-bundle-id"),m.iOSBundleId=b.iOS.bundleId),b.android&&(G(b.android.packageName.length>0,x,"missing-android-pkg-name"),m.androidInstallApp=b.android.installApp,m.androidMinimumVersionCode=b.android.minimumVersion,m.androidPackageName=b.android.packageName)}function uo(x,m,b){return Bi.apply(this,arguments)}function Bi(){return Bi=(0,t.Z)(function*(x,m,b){var C;const A=Vt(x),N={requestType:"PASSWORD_RESET",email:m,clientType:"CLIENT_TYPE_WEB"};if(null===(C=A._getRecaptchaConfig())||void 0===C?void 0:C.emailPasswordEnabled){const ge=yield Tr(A,N,"getOobCode",!0);b&&_c(A,ge,b),yield up(A,ge)}else b&&_c(A,N,b),yield up(A,N).catch(function(){var ge=(0,t.Z)(function*(Re){if("auth/missing-recaptcha-token"!==Re.code)return Promise.reject(Re);{console.log("Password resets are protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the password reset flow.");const nt=yield Tr(A,N,"getOobCode",!0);b&&_c(A,nt,b),yield up(A,nt)}});return function(Re){return ge.apply(this,arguments)}}())}),Bi.apply(this,arguments)}function Hs(x,m,b){return jr.apply(this,arguments)}function jr(){return(jr=(0,t.Z)(function*(x,m,b){yield _e((0,J.m9)(x),{oobCode:m,newPassword:b})})).apply(this,arguments)}function cl(x,m){return xo.apply(this,arguments)}function xo(){return(xo=(0,t.Z)(function*(x,m){yield Ut((0,J.m9)(x),{oobCode:m})})).apply(this,arguments)}function bp(x,m){return Su.apply(this,arguments)}function Su(){return(Su=(0,t.Z)(function*(x,m){const b=(0,J.m9)(x),C=yield _e(b,{oobCode:m}),A=C.requestType;switch(G(A,b,"internal-error"),A){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":G(C.newEmail,b,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":G(C.mfaInfo,b,"internal-error");default:G(C.email,b,"internal-error")}let N=null;return C.mfaInfo&&(N=Us._fromServerResponse(Vt(b),C.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===C.requestType?C.newEmail:C.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===C.requestType?C.email:C.newEmail)||null,multiFactorInfo:N},operation:A}})).apply(this,arguments)}function yp(x,m){return mh.apply(this,arguments)}function mh(){return(mh=(0,t.Z)(function*(x,m){const{data:b}=yield bp((0,J.m9)(x),m);return b.email})).apply(this,arguments)}function _h(x,m,b){return vc.apply(this,arguments)}function vc(){return vc=(0,t.Z)(function*(x,m,b){var C;const A=Vt(x),N={returnSecureToken:!0,email:m,password:b,clientType:"CLIENT_TYPE_WEB"};let ge;if(null===(C=A._getRecaptchaConfig())||void 0===C?void 0:C.emailPasswordEnabled){const gt=yield Tr(A,N,"signUpPassword");ge=Gs(A,gt)}else ge=Gs(A,N).catch(function(){var gt=(0,t.Z)(function*(Nt){if("auth/missing-recaptcha-token"===Nt.code){console.log("Sign-up is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-up flow.");const Sn=yield Tr(A,N,"signUpPassword");return Gs(A,Sn)}return Promise.reject(Nt)});return function(Nt){return gt.apply(this,arguments)}}());const Re=yield ge.catch(gt=>Promise.reject(gt)),nt=yield yo._fromIdTokenResponse(A,"signIn",Re);return yield A._updateCurrentUser(nt.user),nt}),vc.apply(this,arguments)}function bc(x,m,b){return gh((0,J.m9)(x),Cu.credential(m,b))}function vh(x,m,b){return bh.apply(this,arguments)}function bh(){return bh=(0,t.Z)(function*(x,m,b){var C;const A=Vt(x),N={requestType:"EMAIL_SIGNIN",email:m,clientType:"CLIENT_TYPE_WEB"};function ge(Re,nt){G(nt.handleCodeInApp,A,"argument-error"),nt&&_c(A,Re,nt)}if(null===(C=A._getRecaptchaConfig())||void 0===C?void 0:C.emailPasswordEnabled){const Re=yield Tr(A,N,"getOobCode",!0);ge(Re,b),yield dp(A,Re)}else ge(N,b),yield dp(A,N).catch(function(){var Re=(0,t.Z)(function*(nt){if("auth/missing-recaptcha-token"!==nt.code)return Promise.reject(nt);{console.log("Email link sign-in is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const gt=yield Tr(A,N,"getOobCode",!0);ge(gt,b),yield dp(A,gt)}});return function(nt){return Re.apply(this,arguments)}}())}),bh.apply(this,arguments)}function xp(x,m){const b=xu.parseLink(m);return"EMAIL_SIGNIN"===(null==b?void 0:b.operation)}function Du(x,m,b){return Eu.apply(this,arguments)}function Eu(){return(Eu=(0,t.Z)(function*(x,m,b){const C=(0,J.m9)(x),A=Cu.credentialWithLink(m,b||H());return G(A._tenantId===(C.tenantId||null),C,"tenant-id-mismatch"),gh(C,A)})).apply(this,arguments)}function yh(x,m){return Au.apply(this,arguments)}function Au(){return(Au=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:createAuthUri",ve(x,m))})).apply(this,arguments)}function Cp(x,m){return wa.apply(this,arguments)}function wa(){return(wa=(0,t.Z)(function*(x,m){const C={identifier:m,continueUri:O()?H():"http://localhost"},{signinMethods:A}=yield yh((0,J.m9)(x),C);return A||[]})).apply(this,arguments)}function x_(x,m){return xh.apply(this,arguments)}function xh(){return(xh=(0,t.Z)(function*(x,m){const b=(0,J.m9)(x),A={requestType:"VERIFY_EMAIL",idToken:yield x.getIdToken()};m&&_c(b.auth,A,m);const{email:N}=yield cy(b.auth,A);N!==x.email&&(yield x.reload())})).apply(this,arguments)}function kr(x,m,b){return ho.apply(this,arguments)}function ho(){return(ho=(0,t.Z)(function*(x,m,b){const C=(0,J.m9)(x),N={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:yield x.getIdToken(),newEmail:m};b&&_c(C.auth,N,b);const{email:ge}=yield uy(C.auth,N);ge!==x.email&&(yield x.reload())})).apply(this,arguments)}function pi(x,m){return yc.apply(this,arguments)}function yc(){return(yc=(0,t.Z)(function*(x,m){return Ge(x,"POST","/v1/accounts:update",m)})).apply(this,arguments)}function _y(x,m){return si.apply(this,arguments)}function si(){return(si=(0,t.Z)(function*(x,{displayName:m,photoURL:b}){if(void 0===m&&void 0===b)return;const C=(0,J.m9)(x),N={idToken:yield C.getIdToken(),displayName:m,photoUrl:b,returnSecureToken:!0},ge=yield ni(C,pi(C.auth,N));C.displayName=ge.displayName||null,C.photoURL=ge.photoUrl||null;const Re=C.providerData.find(({providerId:nt})=>"password"===nt);Re&&(Re.displayName=C.displayName,Re.photoURL=C.photoURL),yield C._updateTokensIfNecessary(ge)})).apply(this,arguments)}function vy(x,m){return wp((0,J.m9)(x),m,null)}function C_(x,m){return wp((0,J.m9)(x),null,m)}function wp(x,m,b){return Ta.apply(this,arguments)}function Ta(){return(Ta=(0,t.Z)(function*(x,m,b){const{auth:C}=x,N={idToken:yield x.getIdToken(),returnSecureToken:!0};m&&(N.email=m),b&&(N.password=b);const ge=yield ni(x,pt(C,N));yield x._updateTokensIfNecessary(ge,!0)})).apply(this,arguments)}class js{constructor(m,b,C={}){this.isNewUser=m,this.providerId=b,this.profile=C}}class xc extends js{constructor(m,b,C,A){super(m,b,C),this.username=A}}class w_ extends js{constructor(m,b){super(m,"facebook.com",b)}}class T_ extends xc{constructor(m,b){super(m,"github.com",b,"string"==typeof(null==b?void 0:b.login)?null==b?void 0:b.login:null)}}class Vs extends js{constructor(m,b){super(m,"google.com",b)}}class Sa extends xc{constructor(m,b,C){super(m,"twitter.com",b,C)}}function Cc(x){const{user:m,_tokenResponse:b}=x;return m.isAnonymous&&!b?{providerId:null,isNewUser:!1,profile:null}:function Mu(x){var m,b;if(!x)return null;const{providerId:C}=x,A=x.rawUserInfo?JSON.parse(x.rawUserInfo):{},N=x.isNewUser||"identitytoolkit#SignupNewUserResponse"===x.kind;if(!C&&(null==x?void 0:x.idToken)){const ge=null===(b=null===(m=Cn(x.idToken))||void 0===m?void 0:m.firebase)||void 0===b?void 0:b.sign_in_provider;if(ge)return new js(N,"anonymous"!==ge&&"custom"!==ge?ge:null)}if(!C)return null;switch(C){case"facebook.com":return new w_(N,A);case"github.com":return new T_(N,A);case"google.com":return new Vs(N,A);case"twitter.com":return new Sa(N,A,x.screenName||null);case"custom":case"anonymous":return new js(N,null);default:return new js(N,C,A)}}(b)}class Co{constructor(m,b,C){this.type=m,this.credential=b,this.auth=C}static _fromIdtoken(m,b){return new Co("enroll",m,b)}static _fromMfaPendingCredential(m){return new Co("signin",m)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(m){var b,C;if(null==m?void 0:m.multiFactorSession){if(null===(b=m.multiFactorSession)||void 0===b?void 0:b.pendingCredential)return Co._fromMfaPendingCredential(m.multiFactorSession.pendingCredential);if(null===(C=m.multiFactorSession)||void 0===C?void 0:C.idToken)return Co._fromIdtoken(m.multiFactorSession.idToken)}return null}}class wc{constructor(m,b,C){this.session=m,this.hints=b,this.signInResolver=C}static _fromError(m,b){const C=Vt(m),A=b.customData._serverResponse,N=(A.mfaInfo||[]).map(Re=>Us._fromServerResponse(C,Re));G(A.mfaPendingCredential,C,"internal-error");const ge=Co._fromMfaPendingCredential(A.mfaPendingCredential);return new wc(ge,N,function(){var Re=(0,t.Z)(function*(nt){const gt=yield nt._process(C,ge);delete A.mfaInfo,delete A.mfaPendingCredential;const Nt=Object.assign(Object.assign({},A),{idToken:gt.idToken,refreshToken:gt.refreshToken});switch(b.operationType){case"signIn":const Sn=yield yo._fromIdTokenResponse(C,b.operationType,Nt);return yield C._updateCurrentUser(Sn.user),Sn;case"reauthenticate":return G(b.user,C,"internal-error"),yo._forOperation(b.user,b.operationType,Nt);default:Ve(C,"internal-error")}});return function(nt){return Re.apply(this,arguments)}}())}resolveSignIn(m){var b=this;return(0,t.Z)(function*(){return b.signInResolver(m)})()}}function ul(x,m){var b;const C=(0,J.m9)(x),A=m;return G(m.customData.operationType,C,"argument-error"),G(null===(b=A.customData._serverResponse)||void 0===b?void 0:b.mfaPendingCredential,C,"argument-error"),wc._fromError(C,A)}function Ea(x,m){return Ge(x,"POST","/v2/accounts/mfaEnrollment:start",ve(x,m))}class Sp{constructor(m){this.user=m,this.enrolledFactors=[],m._onReload(b=>{b.mfaInfo&&(this.enrolledFactors=b.mfaInfo.map(C=>Us._fromServerResponse(m.auth,C)))})}static _fromUser(m){return new Sp(m)}getSession(){var m=this;return(0,t.Z)(function*(){return Co._fromIdtoken(yield m.user.getIdToken(),m.user.auth)})()}enroll(m,b){var C=this;return(0,t.Z)(function*(){const A=m,N=yield C.getSession(),ge=yield ni(C.user,A._process(C.user.auth,N,b));return yield C.user._updateTokensIfNecessary(ge),C.user.reload()})()}unenroll(m){var b=this;return(0,t.Z)(function*(){const C="string"==typeof m?m:m.uid,A=yield b.user.getIdToken();try{const N=yield ni(b.user,function Tc(x,m){return Ge(x,"POST","/v2/accounts/mfaEnrollment:withdraw",ve(x,m))}(b.user.auth,{idToken:A,mfaEnrollmentId:C}));b.enrolledFactors=b.enrolledFactors.filter(({uid:ge})=>ge!==C),yield b.user._updateTokensIfNecessary(N),yield b.user.reload()}catch(N){throw N}})()}}const ku=new WeakMap;function Dp(x){const m=(0,J.m9)(x);return ku.has(m)||ku.set(m,Sp._fromUser(m)),ku.get(m)}const Pu="__sak";class Sc{constructor(m,b){this.storageRetriever=m,this.type=b}_isAvailable(){try{return this.storage?(this.storage.setItem(Pu,"1"),this.storage.removeItem(Pu),Promise.resolve(!0)):Promise.resolve(!1)}catch(m){return Promise.resolve(!1)}}_set(m,b){return this.storage.setItem(m,JSON.stringify(b)),Promise.resolve()}_get(m){const b=this.storage.getItem(m);return Promise.resolve(b?JSON.parse(b):null)}_remove(m){return this.storage.removeItem(m),Promise.resolve()}get storage(){return this.storageRetriever()}}const Ec=(()=>{class x extends Sc{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(b,C)=>this.onStorageEvent(b,C),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function dl(){const x=(0,J.z$)();return L(x)||kt(x)}()&&function ui(){try{return!(!window||window===window.top)}catch(x){return!1}}(),this.fallbackToPolling=on(),this._shouldAllowMigration=!0}forAllChangedKeys(b){for(const C of Object.keys(this.listeners)){const A=this.storage.getItem(C),N=this.localCache[C];A!==N&&b(C,N,A)}}onStorageEvent(b,C=!1){if(!b.key)return void this.forAllChangedKeys((Re,nt,gt)=>{this.notifyListeners(Re,gt)});const A=b.key;if(C?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Re=this.storage.getItem(A);if(b.newValue!==Re)null!==b.newValue?this.storage.setItem(A,b.newValue):this.storage.removeItem(A);else if(this.localCache[A]===b.newValue&&!C)return}const N=()=>{const Re=this.storage.getItem(A);!C&&this.localCache[A]===Re||this.notifyListeners(A,Re)},ge=this.storage.getItem(A);!function Gn(){return(0,J.w1)()&&10===document.documentMode}()||ge===b.newValue||b.newValue===b.oldValue?N():setTimeout(N,10)}notifyListeners(b,C){this.localCache[b]=C;const A=this.listeners[b];if(A)for(const N of Array.from(A))N(C&&JSON.parse(C))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((b,C,A)=>{this.onStorageEvent(new StorageEvent("storage",{key:b,oldValue:C,newValue:A}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(b,C){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[b]||(this.listeners[b]=new Set,this.localCache[b]=this.storage.getItem(b)),this.listeners[b].add(C)}_removeListener(b,C){this.listeners[b]&&(this.listeners[b].delete(C),0===this.listeners[b].size&&delete this.listeners[b]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(b,C){var A=()=>super._set,N=this;return(0,t.Z)(function*(){yield A().call(N,b,C),N.localCache[b]=JSON.stringify(C)})()}_get(b){var C=()=>super._get,A=this;return(0,t.Z)(function*(){const N=yield C().call(A,b);return A.localCache[b]=JSON.stringify(N),N})()}_remove(b){var C=()=>super._remove,A=this;return(0,t.Z)(function*(){yield C().call(A,b),delete A.localCache[b]})()}}return x.type="LOCAL",x})(),Nu=(()=>{class x extends Sc{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(b,C){}_removeListener(b,C){}}return x.type="SESSION",x})();let Mp=(()=>{class x{constructor(b){this.eventTarget=b,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(b){const C=this.receivers.find(N=>N.isListeningto(b));if(C)return C;const A=new x(b);return this.receivers.push(A),A}isListeningto(b){return this.eventTarget===b}handleEvent(b){var C=this;return(0,t.Z)(function*(){const A=b,{eventId:N,eventType:ge,data:Re}=A.data,nt=C.handlersMap[ge];if(!(null==nt?void 0:nt.size))return;A.ports[0].postMessage({status:"ack",eventId:N,eventType:ge});const gt=Array.from(nt).map(function(){var Sn=(0,t.Z)(function*(Er){return Er(A.origin,Re)});return function(Er){return Sn.apply(this,arguments)}}()),Nt=yield function Ap(x){return Promise.all(x.map(function(){var m=(0,t.Z)(function*(b){try{return{fulfilled:!0,value:yield b}}catch(C){return{fulfilled:!1,reason:C}}});return function(b){return m.apply(this,arguments)}}()))}(gt);A.ports[0].postMessage({status:"done",eventId:N,eventType:ge,response:Nt})})()}_subscribe(b,C){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[b]||(this.handlersMap[b]=new Set),this.handlersMap[b].add(C)}_unsubscribe(b,C){this.handlersMap[b]&&C&&this.handlersMap[b].delete(C),(!C||0===this.handlersMap[b].size)&&delete this.handlersMap[b],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return x.receivers=[],x})();function Ma(x="",m=10){let b="";for(let C=0;C{const Nt=Ma("",20);N.port1.start();const Sn=setTimeout(()=>{gt(new Error("unsupported_event"))},C);Re={messageChannel:N,onMessage(Er){const go=Er;if(go.data.eventId===Nt)switch(go.data.status){case"ack":clearTimeout(Sn),ge=setTimeout(()=>{gt(new Error("timeout"))},3e3);break;case"done":clearTimeout(ge),nt(go.data.response);break;default:clearTimeout(Sn),clearTimeout(ge),gt(new Error("invalid_response"))}}},A.handlers.add(Re),N.port1.addEventListener("message",Re.onMessage),A.target.postMessage({eventType:m,eventId:Nt,data:b},[N.port2])}).finally(()=>{Re&&A.removeMessageHandler(Re)})})()}}function Wi(){return window}function Ia(){return void 0!==Wi().WorkerGlobalScope&&"function"==typeof Wi().importScripts}function Ru(){return(Ru=(0,t.Z)(function*(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{return(yield navigator.serviceWorker.ready).active}catch(x){return null}})).apply(this,arguments)}const Sh="firebaseLocalStorageDb",pl="firebaseLocalStorage",Oa="fbase_key";class wo{constructor(m){this.request=m}toPromise(){return new Promise((m,b)=>{this.request.addEventListener("success",()=>{m(this.request.result)}),this.request.addEventListener("error",()=>{b(this.request.error)})})}}function Ws(x,m){return x.transaction([pl],m?"readwrite":"readonly").objectStore(pl)}function Fu(){const x=indexedDB.open(Sh,1);return new Promise((m,b)=>{x.addEventListener("error",()=>{b(x.error)}),x.addEventListener("upgradeneeded",()=>{const C=x.result;try{C.createObjectStore(pl,{keyPath:Oa})}catch(A){b(A)}}),x.addEventListener("success",(0,t.Z)(function*(){const C=x.result;C.objectStoreNames.contains(pl)?m(C):(C.close(),yield function Op(){const x=indexedDB.deleteDatabase(Sh);return new wo(x).toPromise()}(),m(yield Fu()))}))})}function gl(x,m,b){return kp.apply(this,arguments)}function kp(){return(kp=(0,t.Z)(function*(x,m,b){const C=Ws(x,!0).put({[Oa]:m,value:b});return new wo(C).toPromise()})).apply(this,arguments)}function yi(){return(yi=(0,t.Z)(function*(x,m){const b=Ws(x,!1).get(m),C=yield new wo(b).toPromise();return void 0===C?null:C.value})).apply(this,arguments)}function I_(x,m){const b=Ws(x,!0).delete(m);return new wo(b).toPromise()}const k_=(()=>{class x{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var b=this;return(0,t.Z)(function*(){return b.db||(b.db=yield Fu()),b.db})()}_withRetries(b){var C=this;return(0,t.Z)(function*(){let A=0;for(;;)try{const N=yield C._openDb();return yield b(N)}catch(N){if(A++>3)throw N;C.db&&(C.db.close(),C.db=void 0)}})()}initializeServiceWorkerMessaging(){var b=this;return(0,t.Z)(function*(){return Ia()?b.initializeReceiver():b.initializeSender()})()}initializeReceiver(){var b=this;return(0,t.Z)(function*(){b.receiver=Mp._getInstance(function fl(){return Ia()?self:null}()),b.receiver._subscribe("keyChanged",function(){var C=(0,t.Z)(function*(A,N){return{keyProcessed:(yield b._poll()).includes(N.key)}});return function(A,N){return C.apply(this,arguments)}}()),b.receiver._subscribe("ping",function(){var C=(0,t.Z)(function*(A,N){return["keyChanged"]});return function(A,N){return C.apply(this,arguments)}}())})()}initializeSender(){var b=this;return(0,t.Z)(function*(){var C,A;if(b.activeServiceWorker=yield function A_(){return Ru.apply(this,arguments)}(),!b.activeServiceWorker)return;b.sender=new E_(b.activeServiceWorker);const N=yield b.sender._send("ping",{},800);!N||(null===(C=N[0])||void 0===C?void 0:C.fulfilled)&&(null===(A=N[0])||void 0===A?void 0:A.value.includes("keyChanged"))&&(b.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(b){var C=this;return(0,t.Z)(function*(){if(C.sender&&C.activeServiceWorker&&function Ip(){var x;return(null===(x=null==navigator?void 0:navigator.serviceWorker)||void 0===x?void 0:x.controller)||null}()===C.activeServiceWorker)try{yield C.sender._send("keyChanged",{key:b},C.serviceWorkerReceiverAvailable?800:50)}catch(A){}})()}_isAvailable(){return(0,t.Z)(function*(){try{if(!indexedDB)return!1;const b=yield Fu();return yield gl(b,Pu,"1"),yield I_(b,Pu),!0}catch(b){}return!1})()}_withPendingWrite(b){var C=this;return(0,t.Z)(function*(){C.pendingWrites++;try{yield b()}finally{C.pendingWrites--}})()}_set(b,C){var A=this;return(0,t.Z)(function*(){return A._withPendingWrite((0,t.Z)(function*(){return yield A._withRetries(N=>gl(N,b,C)),A.localCache[b]=C,A.notifyServiceWorker(b)}))})()}_get(b){var C=this;return(0,t.Z)(function*(){const A=yield C._withRetries(N=>function M_(x,m){return yi.apply(this,arguments)}(N,b));return C.localCache[b]=A,A})()}_remove(b){var C=this;return(0,t.Z)(function*(){return C._withPendingWrite((0,t.Z)(function*(){return yield C._withRetries(A=>I_(A,b)),delete C.localCache[b],C.notifyServiceWorker(b)}))})()}_poll(){var b=this;return(0,t.Z)(function*(){const C=yield b._withRetries(ge=>{const Re=Ws(ge,!1).getAll();return new wo(Re).toPromise()});if(!C)return[];if(0!==b.pendingWrites)return[];const A=[],N=new Set;for(const{fbase_key:ge,value:Re}of C)N.add(ge),JSON.stringify(b.localCache[ge])!==JSON.stringify(Re)&&(b.notifyListeners(ge,Re),A.push(ge));for(const ge of Object.keys(b.localCache))b.localCache[ge]&&!N.has(ge)&&(b.notifyListeners(ge,null),A.push(ge));return A})()}notifyListeners(b,C){this.localCache[b]=C;const A=this.listeners[b];if(A)for(const N of Array.from(A))N(C)}startPolling(){var b=this;this.stopPolling(),this.pollTimer=setInterval((0,t.Z)(function*(){return b._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(b,C){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[b]||(this.listeners[b]=new Set,this._get(b)),this.listeners[b].add(C)}_removeListener(b,C){this.listeners[b]&&(this.listeners[b].delete(C),0===this.listeners[b].size&&delete this.listeners[b]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return x.type="LOCAL",x})();function xy(x,m){return Ge(x,"POST","/v2/accounts/mfaSignIn:start",ve(x,m))}const Mc=1e12;class Ic{constructor(m){this.auth=m,this.counter=Mc,this._widgets=new Map}render(m,b){const C=this.counter;return this._widgets.set(C,new RT(m,this.auth.name,b||{})),this.counter++,C}reset(m){var b;const C=m||Mc;null===(b=this._widgets.get(C))||void 0===b||b.delete(),this._widgets.delete(C)}getResponse(m){var b;return(null===(b=this._widgets.get(m||Mc))||void 0===b?void 0:b.getResponse())||""}execute(m){var b=this;return(0,t.Z)(function*(){var C;return null===(C=b._widgets.get(m||Mc))||void 0===C||C.execute(),""})()}}class RT{constructor(m,b,C){this.params=C,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const A="string"==typeof m?document.getElementById(m):m;G(A,"argument-error",{appName:b}),this.container=A,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=function P_(x){const m=[],b="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let C=0;C{if(this.timerId=null,this.responseToken=null,b)try{b()}catch(C){}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const Xr=bi("rcb"),es=new Oe(3e4,6e4);class Lu{constructor(){var m;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(m=Wi().grecaptcha)||void 0===m?void 0:m.render)}load(m,b=""){return G(function Bu(x){return x.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(x)}(b),m,"argument-error"),this.shouldResolveImmediately(b)&&$e(Wi().grecaptcha)?Promise.resolve(Wi().grecaptcha):new Promise((C,A)=>{const N=Wi().setTimeout(()=>{A(et(m,"network-request-failed"))},es.get());Wi()[Xr]=()=>{Wi().clearTimeout(N),delete Wi()[Xr];const Re=Wi().grecaptcha;if(!Re||!$e(Re))return void A(et(m,"internal-error"));const nt=Re.render;Re.render=(gt,Nt)=>{const Sn=nt(gt,Nt);return this.counter++,Sn},this.hostLanguage=b,C(Re)},un(`https://www.google.com/recaptcha/api.js??${(0,J.xO)({onload:Xr,render:"explicit",hl:b})}`).catch(()=>{clearTimeout(N),A(et(m,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(m){var b;return!!(null===(b=Wi().grecaptcha)||void 0===b?void 0:b.render)&&(m===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class R_{load(m){return(0,t.Z)(function*(){return new Ic(m)})()}clearedOneInstance(){}}const F_="recaptcha",Cy={theme:"light",type:"image"};class FT{constructor(m,b=Object.assign({},Cy),C){this.parameters=b,this.type=F_,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Vt(C),this.isInvisible="invisible"===this.parameters.size,G("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment");const A="string"==typeof m?document.getElementById(m):m;G(A,this.auth,"argument-error"),this.container=A,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new R_:new Lu,this.validateStartingState()}verify(){var m=this;return(0,t.Z)(function*(){m.assertNotDestroyed();const b=yield m.render(),C=m.getAssertedRecaptcha();return C.getResponse(b)||new Promise(N=>{const ge=Re=>{!Re||(m.tokenChangeListeners.delete(ge),N(Re))};m.tokenChangeListeners.add(ge),m.isInvisible&&C.execute(b)})})()}render(){try{this.assertNotDestroyed()}catch(m){return Promise.reject(m)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(m=>{throw this.renderPromise=null,m})),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach(m=>{this.container.removeChild(m)})}validateStartingState(){G(!this.parameters.sitekey,this.auth,"argument-error"),G(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),G("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(m){return b=>{if(this.tokenChangeListeners.forEach(C=>C(b)),"function"==typeof m)m(b);else if("string"==typeof m){const C=Wi()[m];"function"==typeof C&&C(b)}}}assertNotDestroyed(){G(!this.destroyed,this.auth,"internal-error")}makeRenderPromise(){var m=this;return(0,t.Z)(function*(){if(yield m.init(),!m.widgetId){let b=m.container;if(!m.isInvisible){const C=document.createElement("div");b.appendChild(C),b=C}m.widgetId=m.getAssertedRecaptcha().render(b,m.parameters)}return m.widgetId})()}init(){var m=this;return(0,t.Z)(function*(){G(O()&&!Ia(),m.auth,"internal-error"),yield function LT(){let x=null;return new Promise(m=>{"complete"!==document.readyState?(x=()=>m(),window.addEventListener("load",x)):m()}).catch(m=>{throw x&&window.removeEventListener("load",x),m})}(),m.recaptcha=yield m._recaptchaLoader.load(m.auth,m.auth.languageCode||void 0);const b=yield function W(x){return ne.apply(this,arguments)}(m.auth);G(b,m.auth,"internal-error"),m.parameters.sitekey=b})()}getAssertedRecaptcha(){return G(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class Ro{constructor(m,b){this.verificationId=m,this.onConfirmation=b}confirm(m){const b=ll._fromVerification(this.verificationId,m);return this.onConfirmation(b)}}function eo(x,m,b){return vl.apply(this,arguments)}function vl(){return(vl=(0,t.Z)(function*(x,m,b){const C=Vt(x),A=yield ft(C,m,(0,J.m9)(b));return new Ro(A,N=>gh(C,N))})).apply(this,arguments)}function Oc(x,m,b){return qi.apply(this,arguments)}function qi(){return(qi=(0,t.Z)(function*(x,m,b){const C=(0,J.m9)(x);yield mc(!1,C,"phone");const A=yield ft(C.auth,m,(0,J.m9)(b));return new Ro(A,N=>Xe(C,N))})).apply(this,arguments)}function ts(x,m,b){return ut.apply(this,arguments)}function ut(){return(ut=(0,t.Z)(function*(x,m,b){const C=(0,J.m9)(x),A=yield ft(C.auth,m,(0,J.m9)(b));return new Ro(A,N=>vp(C,N))})).apply(this,arguments)}function ft(x,m,b){return xi.apply(this,arguments)}function xi(){return(xi=(0,t.Z)(function*(x,m,b){var C;const A=yield b.verify();try{let N;if(G("string"==typeof A,x,"argument-error"),G(b.type===F_,x,"argument-error"),N="string"==typeof m?{phoneNumber:m}:m,"session"in N){const ge=N.session;if("phoneNumber"in N)return G("enroll"===ge.type,x,"internal-error"),(yield Ea(x,{idToken:ge.credential,phoneEnrollmentInfo:{phoneNumber:N.phoneNumber,recaptchaToken:A}})).phoneSessionInfo.sessionInfo;{G("signin"===ge.type,x,"internal-error");const Re=(null===(C=N.multiFactorHint)||void 0===C?void 0:C.uid)||N.multiFactorUid;return G(Re,x,"missing-multi-factor-info"),(yield xy(x,{mfaPendingCredential:ge.credential,mfaEnrollmentId:Re,phoneSignInInfo:{recaptchaToken:A}})).phoneResponseInfo.sessionInfo}}{const{sessionInfo:ge}=yield h_(x,{phoneNumber:N.phoneNumber,recaptchaToken:A});return ge}}finally{b._reset()}})).apply(this,arguments)}function Yn(x,m){return Eh.apply(this,arguments)}function Eh(){return(Eh=(0,t.Z)(function*(x,m){yield gc((0,J.m9)(x),m)})).apply(this,arguments)}let Np=(()=>{class x{constructor(b){this.providerId=x.PROVIDER_ID,this.auth=Vt(b)}verifyPhoneNumber(b,C){return ft(this.auth,b,(0,J.m9)(C))}static credential(b,C){return ll._fromVerification(b,C)}static credentialFromResult(b){return x.credentialFromTaggedObject(b)}static credentialFromError(b){return x.credentialFromTaggedObject(b.customData||{})}static credentialFromTaggedObject({_tokenResponse:b}){if(!b)return null;const{phoneNumber:C,temporaryProof:A}=b;return C&&A?ll._fromTokenResponse(C,A):null}}return x.PROVIDER_ID="phone",x.PHONE_SIGN_IN_METHOD="phone",x})();function ns(x,m){return m?vi(m):(G(x._popupRedirectResolver,x,"argument-error"),x._popupRedirectResolver)}class bl extends Q{constructor(m){super("custom","custom"),this.params=m}_getIdTokenResponse(m){return Ls(m,this._buildIdpRequest())}_linkToIdToken(m,b){return Ls(m,this._buildIdpRequest(b))}_getReauthenticationResolver(m){return Ls(m,this._buildIdpRequest())}_buildIdpRequest(m){const b={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return m&&(b.idToken=m),b}}function L_(x){return v_(x.auth,new bl(x),x.bypassAuthState)}function kc(x){const{auth:m,user:b}=x;return G(b,m,"internal-error"),__(b,new bl(x),x.bypassAuthState)}function is(x){return Le.apply(this,arguments)}function Le(){return(Le=(0,t.Z)(function*(x){const{auth:m,user:b}=x;return G(b,m,"internal-error"),gc(b,new bl(x),x.bypassAuthState)})).apply(this,arguments)}class Rp{constructor(m,b,C,A,N=!1){this.auth=m,this.resolver=C,this.user=A,this.bypassAuthState=N,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(b)?b:[b]}execute(){var m=this;return new Promise(function(){var b=(0,t.Z)(function*(C,A){m.pendingPromise={resolve:C,reject:A};try{m.eventManager=yield m.resolver._initialize(m.auth),yield m.onExecution(),m.eventManager.registerConsumer(m)}catch(N){m.reject(N)}});return function(C,A){return b.apply(this,arguments)}}())}onAuthEvent(m){var b=this;return(0,t.Z)(function*(){const{urlResponse:C,sessionId:A,postBody:N,tenantId:ge,error:Re,type:nt}=m;if(Re)return void b.reject(Re);const gt={auth:b.auth,requestUri:C,sessionId:A,tenantId:ge||void 0,postBody:N||void 0,user:b.user,bypassAuthState:b.bypassAuthState};try{b.resolve(yield b.getIdpTask(nt)(gt))}catch(Nt){b.reject(Nt)}})()}onError(m){this.reject(m)}getIdpTask(m){switch(m){case"signInViaPopup":case"signInViaRedirect":return L_;case"linkViaPopup":case"linkViaRedirect":return is;case"reauthViaPopup":case"reauthViaRedirect":return kc;default:Ve(this.auth,"internal-error")}}resolve(m){U(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(m),this.unregisterAndCleanUp()}reject(m){U(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(m),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const B_=new Oe(2e3,1e4);function Ah(x,m,b){return Pc.apply(this,arguments)}function Pc(){return(Pc=(0,t.Z)(function*(x,m,b){const C=Vt(x);st(x,m,Ko);const A=ns(C,b);return new zi(C,"signInViaPopup",m,A).executeNotNull()})).apply(this,arguments)}function Kn(x,m,b){return ka.apply(this,arguments)}function ka(){return(ka=(0,t.Z)(function*(x,m,b){const C=(0,J.m9)(x);st(C.auth,m,Ko);const A=ns(C.auth,b);return new zi(C.auth,"reauthViaPopup",m,A,C).executeNotNull()})).apply(this,arguments)}function Nc(x,m,b){return Mh.apply(this,arguments)}function Mh(){return(Mh=(0,t.Z)(function*(x,m,b){const C=(0,J.m9)(x);st(C.auth,m,Ko);const A=ns(C.auth,b);return new zi(C.auth,"linkViaPopup",m,A,C).executeNotNull()})).apply(this,arguments)}let zi=(()=>{class x extends Rp{constructor(b,C,A,N,ge){super(b,C,N,ge),this.provider=A,this.authWindow=null,this.pollId=null,x.currentPopupAction&&x.currentPopupAction.cancel(),x.currentPopupAction=this}executeNotNull(){var b=this;return(0,t.Z)(function*(){const C=yield b.execute();return G(C,b.auth,"internal-error"),C})()}onExecution(){var b=this;return(0,t.Z)(function*(){U(1===b.filter.length,"Popup operations only handle one event");const C=Ma();b.authWindow=yield b.resolver._openPopup(b.auth,b.provider,b.filter[0],C),b.authWindow.associatedEvent=C,b.resolver._originValidation(b.auth).catch(A=>{b.reject(A)}),b.resolver._isIframeWebStorageSupported(b.auth,A=>{A||b.reject(et(b.auth,"web-storage-unsupported"))}),b.pollUserCancellation()})()}get eventId(){var b;return(null===(b=this.authWindow)||void 0===b?void 0:b.associatedEvent)||null}cancel(){this.reject(et(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,x.currentPopupAction=null}pollUserCancellation(){const b=()=>{var C,A;this.pollId=(null===(A=null===(C=this.authWindow)||void 0===C?void 0:C.window)||void 0===A?void 0:A.closed)?window.setTimeout(()=>{this.pollId=null,this.reject(et(this.auth,"popup-closed-by-user"))},8e3):window.setTimeout(b,B_.get())};b()}}return x.currentPopupAction=null,x})();const Fo=new Map;class Ih extends Rp{constructor(m,b,C=!1){super(m,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],b,void 0,C),this.eventId=null}execute(){var m=()=>super.execute,b=this;return(0,t.Z)(function*(){let C=Fo.get(b.auth._key());if(!C){try{const N=(yield function qs(x,m){return yl.apply(this,arguments)}(b.resolver,b.auth))?yield m().call(b):null;C=()=>Promise.resolve(N)}catch(A){C=()=>Promise.reject(A)}Fo.set(b.auth._key(),C)}return b.bypassAuthState||Fo.set(b.auth._key(),()=>Promise.resolve(null)),C()})()}onAuthEvent(m){var b=()=>super.onAuthEvent,C=this;return(0,t.Z)(function*(){if("signInViaRedirect"===m.type)return b().call(C,m);if("unknown"!==m.type){if(m.eventId){const A=yield C.auth._redirectUserForId(m.eventId);if(A)return C.user=A,b().call(C,m);C.resolve(null)}}else C.resolve(null)})()}onExecution(){return(0,t.Z)(function*(){})()}cleanUp(){}}function yl(){return(yl=(0,t.Z)(function*(x,m){const b=Xn(m),C=Zr(x);if(!(yield C._isAvailable()))return!1;const A="true"===(yield C._get(b));return yield C._remove(b),A})).apply(this,arguments)}function Oh(x,m){return Lo.apply(this,arguments)}function Lo(){return(Lo=(0,t.Z)(function*(x,m){return Zr(x)._set(Xn(m),"true")})).apply(this,arguments)}function fr(){Fo.clear()}function rs(x,m){Fo.set(x._key(),m)}function Zr(x){return vi(x._redirectPersistence)}function Xn(x){return Fi("pendingRedirect",x.config.apiKey,x.name)}function Ci(x,m,b){return function kh(x,m,b){return Rc.apply(this,arguments)}(x,m,b)}function Rc(){return(Rc=(0,t.Z)(function*(x,m,b){const C=Vt(x);st(x,m,Ko),yield C._initializationPromise;const A=ns(C,b);return yield Oh(A,C),A._openRedirect(C,m,"signInViaRedirect")})).apply(this,arguments)}function En(x,m,b){return function _n(x,m,b){return wi.apply(this,arguments)}(x,m,b)}function wi(){return(wi=(0,t.Z)(function*(x,m,b){const C=(0,J.m9)(x);st(C.auth,m,Ko),yield C.auth._initializationPromise;const A=ns(C.auth,b);yield Oh(A,C.auth);const N=yield Lp(C);return A._openRedirect(C.auth,m,"reauthViaRedirect",N)})).apply(this,arguments)}function Fp(x,m,b){return function os(x,m,b){return Yt.apply(this,arguments)}(x,m,b)}function Yt(){return(Yt=(0,t.Z)(function*(x,m,b){const C=(0,J.m9)(x);st(C.auth,m,Ko),yield C.auth._initializationPromise;const A=ns(C.auth,b);yield mc(!1,C,m.providerId),yield Oh(A,C.auth);const N=yield Lp(C);return A._openRedirect(C.auth,m,"linkViaRedirect",N)})).apply(this,arguments)}function vt(x,m){return Gi.apply(this,arguments)}function Gi(){return(Gi=(0,t.Z)(function*(x,m){return yield Vt(x)._initializationPromise,ss(x,m,!1)})).apply(this,arguments)}function ss(x,m){return Fc.apply(this,arguments)}function Fc(){return(Fc=(0,t.Z)(function*(x,m,b=!1){const C=Vt(x),A=ns(C,m),ge=yield new Ih(C,A,b).execute();return ge&&!b&&(delete ge.user._redirectEventId,yield C._persistUserIfCurrent(ge.user),yield C._setRedirectUser(null,m)),ge})).apply(this,arguments)}function Lp(x){return Ph.apply(this,arguments)}function Ph(){return(Ph=(0,t.Z)(function*(x){const m=Ma(`${x.uid}:::`);return x._redirectEventId=m,yield x.auth._setRedirectUser(x),yield x.auth._persistUserIfCurrent(x),m})).apply(this,arguments)}class Bp{constructor(m){this.auth=m,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(m){this.consumers.add(m),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,m)&&(this.sendToConsumer(this.queuedRedirectEvent,m),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(m){this.consumers.delete(m)}onEvent(m){if(this.hasEventBeenHandled(m))return!1;let b=!1;return this.consumers.forEach(C=>{this.isEventForConsumer(m,C)&&(b=!0,this.sendToConsumer(m,C),this.saveEventToCache(m))}),this.hasHandledPotentialRedirect||!function fo(x){switch(x.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return gi(x);default:return!1}}(m)||(this.hasHandledPotentialRedirect=!0,b||(this.queuedRedirectEvent=m,b=!0)),b}sendToConsumer(m,b){var C;if(m.error&&!gi(m)){const A=(null===(C=m.error.code)||void 0===C?void 0:C.split("auth/")[1])||"internal-error";b.onError(et(this.auth,A))}else b.onAuthEvent(m)}isEventForConsumer(m,b){const C=null===b.eventId||!!m.eventId&&m.eventId===b.eventId;return b.filter.includes(m.type)&&C}hasEventBeenHandled(m){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(zs(m))}saveEventToCache(m){this.cachedEventUids.add(zs(m)),this.lastProcessedEventTime=Date.now()}}function zs(x){return[x.type,x.eventId,x.sessionId,x.tenantId].filter(m=>m).join("-")}function gi({type:x,error:m}){return"unknown"===x&&"auth/no-auth-event"===(null==m?void 0:m.code)}function Bo(x){return $s.apply(this,arguments)}function $s(){return($s=(0,t.Z)(function*(x,m={}){return Ge(x,"GET","/v1/projects",m)})).apply(this,arguments)}const Pa=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Rh=/^https?/;function Lc(){return(Lc=(0,t.Z)(function*(x){if(x.config.emulator)return;const{authorizedDomains:m}=yield Bo(x);for(const b of m)try{if(Gp(b))return}catch(C){}Ve(x,"unauthorized-domain")})).apply(this,arguments)}function Gp(x){const m=H(),{protocol:b,hostname:C}=new URL(m);if(x.startsWith("chrome-extension://")){const ge=new URL(x);return""===ge.hostname&&""===C?"chrome-extension:"===b&&x.replace("chrome-extension://","")===m.replace("chrome-extension://",""):"chrome-extension:"===b&&ge.hostname===C}if(!Rh.test(b))return!1;if(Pa.test(x))return C===x;const A=x.replace(/\./g,"\\.");return new RegExp("^(.+\\."+A+"|"+A+")$","i").test(C)}const Up=new Oe(3e4,6e4);function pr(){const x=Wi().___jsl;if(null==x?void 0:x.H)for(const m of Object.keys(x.H))if(x.H[m].r=x.H[m].r||[],x.H[m].L=x.H[m].L||[],x.H[m].r=[...x.H[m].L],x.CP)for(let b=0;b{var C,A,N;function ge(){pr(),gapi.load("gapi.iframes",{callback:()=>{m(gapi.iframes.getContext())},ontimeout:()=>{pr(),b(et(x,"network-request-failed"))},timeout:Up.get()})}if(null===(A=null===(C=Wi().gapi)||void 0===C?void 0:C.iframes)||void 0===A?void 0:A.Iframe)m(gapi.iframes.getContext());else{if(!(null===(N=Wi().gapi)||void 0===N?void 0:N.load)){const Re=bi("iframefcb");return Wi()[Re]=()=>{gapi.load?ge():b(et(x,"network-request-failed"))},un(`https://apis.google.com/js/api.js?onload=${Re}`).catch(nt=>b(nt))}ge()}}).catch(m=>{throw Na=null,m})}(x),Na}const G_=new Oe(5e3,15e3),Vp={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Zp=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function Tn(x){const m=x.config;G(m.authDomain,x,"auth-domain-config-required");const b=m.emulator?ct(m,"emulator/auth/iframe"):`https://${x.config.authDomain}/__/auth/iframe`,C={apiKey:m.apiKey,appName:x.name,v:B.SDK_VERSION},A=Zp.get(x.config.apiHost);A&&(C.eid=A);const N=x._getFrameworks();return N.length&&(C.fw=N.join(",")),`${b}?${(0,J.xO)(C).slice(1)}`}function Ys(){return Ys=(0,t.Z)(function*(x){const m=yield Hp(x),b=Wi().gapi;return G(b,x,"internal-error"),m.open({where:document.body,url:Tn(x),messageHandlersFilter:b.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Vp,dontclear:!0},C=>new Promise(function(){var A=(0,t.Z)(function*(N,ge){yield C.restyle({setHideOnLeave:!1});const Re=et(x,"network-request-failed"),nt=Wi().setTimeout(()=>{ge(Re)},G_.get());function gt(){Wi().clearTimeout(nt),N(C)}C.ping(gt).then(gt,()=>{ge(Re)})});return function(N,ge){return A.apply(this,arguments)}}()))}),Ys.apply(this,arguments)}const Gu={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class po{constructor(m){this.window=m,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(m){}}}const Dr=encodeURIComponent("fac");function gr(x,m,b,C,A,N){return Hc.apply(this,arguments)}function Hc(){return(Hc=(0,t.Z)(function*(x,m,b,C,A,N){G(x.config.authDomain,x,"auth-domain-config-required"),G(x.config.apiKey,x,"invalid-api-key");const ge={apiKey:x.config.apiKey,appName:x.name,authType:b,redirectUrl:C,v:B.SDK_VERSION,eventId:A};if(m instanceof Ko){m.setDefaultLanguage(x.languageCode),ge.providerId=m.providerId||"",(0,J.xb)(m.getCustomParameters())||(ge.customParameters=JSON.stringify(m.getCustomParameters()));for(const[Nt,Sn]of Object.entries(N||{}))ge[Nt]=Sn}if(m instanceof Bs){const Nt=m.getScopes().filter(Sn=>""!==Sn);Nt.length>0&&(ge.scopes=Nt.join(","))}x.tenantId&&(ge.tid=x.tenantId);const Re=ge;for(const Nt of Object.keys(Re))void 0===Re[Nt]&&delete Re[Nt];const nt=yield x._getAppCheckToken(),gt=nt?`#${Dr}=${encodeURIComponent(nt)}`:"";return`${qp(x)}?${(0,J.xO)(Re).slice(1)}${gt}`})).apply(this,arguments)}function qp({config:x}){return x.emulator?ct(x,"emulator/auth/handler"):`https://${x.authDomain}/__/auth/handler`}const ju="webStorageSupport",zp=class Vu{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Nu,this._completeRedirectFn=ss,this._overrideRedirectResult=rs}_openPopup(m,b,C,A){var N=this;return(0,t.Z)(function*(){var ge;U(null===(ge=N.eventManagers[m._key()])||void 0===ge?void 0:ge.manager,"_initialize() not called before _openPopup()");const Re=yield gr(m,b,C,H(),A);return function Fh(x,m,b,C=500,A=600){const N=Math.max((window.screen.availHeight-A)/2,0).toString(),ge=Math.max((window.screen.availWidth-C)/2,0).toString();let Re="";const nt=Object.assign(Object.assign({},Gu),{width:C.toString(),height:A.toString(),top:N,left:ge}),gt=(0,J.z$)().toLowerCase();b&&(Re=k(gt)?"_blank":b),F(gt)&&(m=m||"http://localhost",nt.scrollbars="yes");const Nt=Object.entries(nt).reduce((Er,[go,Wu])=>`${Er}${go}=${Wu},`,"");if(function Bt(x=(0,J.z$)()){var m;return kt(x)&&!!(null===(m=window.navigator)||void 0===m?void 0:m.standalone)}(gt)&&"_self"!==Re)return function Uu(x,m){const b=document.createElement("a");b.href=x,b.target=m;const C=document.createEvent("MouseEvent");C.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),b.dispatchEvent(C)}(m||"",Re),new po(null);const Sn=window.open(m||"",Re,Nt);G(Sn,x,"popup-blocked");try{Sn.focus()}catch(Er){}return new po(Sn)}(m,Re,Ma())})()}_openRedirect(m,b,C,A){var N=this;return(0,t.Z)(function*(){return yield N._originValidation(m),function Ac(x){Wi().location.href=x}(yield gr(m,b,C,H(),A)),new Promise(()=>{})})()}_initialize(m){const b=m._key();if(this.eventManagers[b]){const{manager:A,promise:N}=this.eventManagers[b];return A?Promise.resolve(A):(U(N,"If manager is not set, promise should be"),N)}const C=this.initAndGetManager(m);return this.eventManagers[b]={promise:C},C.catch(()=>{delete this.eventManagers[b]}),C}initAndGetManager(m){var b=this;return(0,t.Z)(function*(){const C=yield function H_(x){return Ys.apply(this,arguments)}(m),A=new Bp(m);return C.register("authEvent",N=>(G(null==N?void 0:N.authEvent,m,"invalid-auth-event"),{status:A.onEvent(N.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),b.eventManagers[m._key()]={manager:A},b.iframes[m._key()]=C,A})()}_isIframeWebStorageSupported(m,b){this.iframes[m._key()].send(ju,{type:ju},A=>{var N;const ge=null===(N=null==A?void 0:A[0])||void 0===N?void 0:N[ju];void 0!==ge&&b(!!ge),Ve(m,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(m){const b=m._key();return this.originValidationPromises[b]||(this.originValidationPromises[b]=function Pr(x){return Lc.apply(this,arguments)}(m)),this.originValidationPromises[b]}get _shouldInitProactively(){return on()||L()||kt()}};class Lh extends class $p{constructor(m){this.factorId=m}_process(m,b,C){switch(b.type){case"enroll":return this._finalizeEnroll(m,b.credential,C);case"signin":return this._finalizeSignIn(m,b.credential);default:return d("unexpected MultiFactorSessionType")}}}{constructor(m){super("phone"),this.credential=m}static _fromCredential(m){return new Lh(m)}_finalizeEnroll(m,b,C){return function Th(x,m){return Ge(x,"POST","/v2/accounts/mfaEnrollment:finalize",ve(x,m))}(m,{idToken:b,displayName:C,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(m,b){return function Pp(x,m){return Ge(x,"POST","/v2/accounts/mfaSignIn:finalize",ve(x,m))}(m,{mfaPendingCredential:b,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}let Yp=(()=>{class x{constructor(){}static assertion(b){return Lh._fromCredential(b)}}return x.FACTOR_ID="phone",x})();var Ra="@firebase/auth";class Fa{constructor(m){this.auth=m,this.internalListeners=new Map}getUid(){var m;return this.assertAuthConfigured(),(null===(m=this.auth.currentUser)||void 0===m?void 0:m.uid)||null}getToken(m){var b=this;return(0,t.Z)(function*(){return b.assertAuthConfigured(),yield b.auth._initializationPromise,b.auth.currentUser?{accessToken:yield b.auth.currentUser.getIdToken(m)}:null})()}addAuthTokenListener(m){if(this.assertAuthConfigured(),this.internalListeners.has(m))return;const b=this.auth.onIdTokenChanged(C=>{m((null==C?void 0:C.stsTokenManager.accessToken)||null)});this.internalListeners.set(m,b),this.updateProactiveRefresh()}removeAuthTokenListener(m){this.assertAuthConfigured();const b=this.internalListeners.get(m);!b||(this.internalListeners.delete(m),b(),this.updateProactiveRefresh())}assertAuthConfigured(){G(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const La=(0,J.Pz)("authIdTokenMaxAge")||300;let Cl=null;const wl=x=>function(){var m=(0,t.Z)(function*(b){const C=b&&(yield b.getIdTokenResult()),A=C&&((new Date).getTime()-Date.parse(C.issuedAtTime))/1e3;if(A&&A>La)return;const N=null==C?void 0:C.token;Cl!==N&&(Cl=N,yield fetch(x,{method:N?"POST":"DELETE",headers:N?{Authorization:`Bearer ${N}`}:{}}))});return function(b){return m.apply(this,arguments)}}();function Jp(x=(0,B.getApp)()){const m=(0,B._getProvider)(x,"auth");if(m.isInitialized())return m.getImmediate();const b=function ma(x,m){const b=(0,B._getProvider)(x,"auth");if(b.isInitialized()){const A=b.getImmediate(),N=b.getOptions();if((0,J.vZ)(N,null!=m?m:{}))return A;Ve(A,"already-initialized")}return b.initialize({options:m})}(x,{popupRedirectResolver:zp,persistence:[k_,Ec,Nu]}),C=(0,J.Pz)("authTokenSyncURL");if(C){const N=wl(C);(function Tp(x,m,b){(0,J.m9)(x).beforeAuthStateChanged(m,b)})(b,N,()=>N(b.currentUser)),function Ch(x,m,b,C){(0,J.m9)(x).onIdTokenChanged(m,b,C)}(b,ge=>N(ge))}const A=(0,J.q4)("auth");return A&&$n(b,`http://${A}`),b}!function Bh(x){(0,B._registerComponent)(new de.wA("auth",(m,{options:b})=>{const C=m.getProvider("app").getImmediate(),A=m.getProvider("heartbeat"),N=m.getProvider("app-check-internal"),{apiKey:ge,authDomain:Re}=C.options;G(ge&&!ge.includes(":"),"invalid-api-key",{appName:C.name});const nt={apiKey:ge,authDomain:Re,clientPlatform:x,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:ue(x)},gt=new No(C,A,N,nt);return function Gt(x,m){const b=(null==m?void 0:m.persistence)||[],C=(Array.isArray(b)?b:[b]).map(vi);(null==m?void 0:m.errorMap)&&x._updateErrorMap(m.errorMap),x._initializeWithPersistence(C,null==m?void 0:m.popupRedirectResolver)}(gt,b),gt},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((m,b,C)=>{m.getProvider("auth-internal").initialize()})),(0,B._registerComponent)(new de.wA("auth-internal",m=>{const b=Vt(m.getProvider("auth").getImmediate());return new Fa(b)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,B.registerVersion)(Ra,"0.23.2",function W_(x){switch(x){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(x)),(0,B.registerVersion)(Ra,"0.23.2","esm2017")}("Browser")},2090:(_t,le,P)=>{"use strict";P.d(le,{$s:()=>vi,BH:()=>ze,DV:()=>it,Dv:()=>yn,GJ:()=>Jt,L:()=>Ze,LL:()=>je,Pz:()=>et,Sg:()=>st,UG:()=>d,UI:()=>bn,US:()=>de,Wj:()=>jt,Wl:()=>Tt,Yr:()=>Oe,ZB:()=>be,ZR:()=>Ge,aH:()=>Ve,b$:()=>O,cI:()=>Ot,dS:()=>wt,eu:()=>oe,g5:()=>B,gK:()=>Et,gQ:()=>qn,h$:()=>Ie,hl:()=>j,hu:()=>J,jU:()=>U,lb:()=>qt,m9:()=>Fi,ne:()=>ni,p$:()=>re,pd:()=>Cn,q4:()=>pe,r3:()=>rn,ru:()=>H,tV:()=>te,uI:()=>G,ug:()=>Ri,vZ:()=>ln,w1:()=>Y,w9:()=>Mt,xO:()=>hr,xb:()=>Ke,z$:()=>Ee,zI:()=>he,zd:()=>Nn});const J=function(ie,X){if(!ie)throw B(X)},B=function(ie){return new Error("Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: "+ie)},Se=function(ie){const X=[];let F=0;for(let L=0;L>6|192,X[F++]=63&k|128):55296==(64512&k)&&L+1>18|240,X[F++]=k>>12&63|128,X[F++]=k>>6&63|128,X[F++]=63&k|128):(X[F++]=k>>12|224,X[F++]=k>>6&63|128,X[F++]=63&k|128)}return X},de={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(ie,X){if(!Array.isArray(ie))throw Error("encodeByteArray takes an array as a parameter");this.init_();const F=X?this.byteToCharMapWebSafe_:this.byteToCharMap_,L=[];for(let k=0;k>6,on=63&kt;Lt||(on=64,We||(Gn=64)),L.push(F[ye>>2],F[(3&ye)<<4|ot>>4],F[Gn],F[on])}return L.join("")},encodeString(ie,X){return this.HAS_NATIVE_SUPPORT&&!X?btoa(ie):this.encodeByteArray(Se(ie),X)},decodeString(ie,X){return this.HAS_NATIVE_SUPPORT&&!X?atob(ie):function(ie){const X=[];let F=0,L=0;for(;F191&&k<224){const ye=ie[F++];X[L++]=String.fromCharCode((31&k)<<6|63&ye)}else if(k>239&&k<365){const Lt=((7&k)<<18|(63&ie[F++])<<12|(63&ie[F++])<<6|63&ie[F++])-65536;X[L++]=String.fromCharCode(55296+(Lt>>10)),X[L++]=String.fromCharCode(56320+(1023&Lt))}else{const ye=ie[F++],We=ie[F++];X[L++]=String.fromCharCode((15&k)<<12|(63&ye)<<6|63&We)}}return X.join("")}(this.decodeStringToByteArray(ie,X))},decodeStringToByteArray(ie,X){this.init_();const F=X?this.charToByteMapWebSafe_:this.charToByteMap_,L=[];for(let k=0;k>4),64!==kt&&(L.push(ot<<4&240|kt>>2),64!==Bt&&L.push(kt<<6&192|Bt))}return L},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ie=0;ie=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ie)]=ie,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ie)]=ie)}}};class ee extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Ie=function(ie){const X=Se(ie);return de.encodeByteArray(X,!0)},Ze=function(ie){return Ie(ie).replace(/\./g,"")},te=function(ie){try{return de.decodeString(ie,!0)}catch(X){console.error("base64Decode failed: ",X)}return null};function re(ie){return be(void 0,ie)}function be(ie,X){if(!(X instanceof Object))return X;switch(X.constructor){case Date:return new Date(X.getTime());case Object:void 0===ie&&(ie={});break;case Array:ie=[];break;default:return X}for(const F in X)!X.hasOwnProperty(F)||!se(F)||(ie[F]=be(ie[F],X[F]));return ie}function se(ie){return"__proto__"!==ie}const ke=()=>{try{return function Ce(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if("undefined"==typeof process||void 0===process.env)return;const ie=process.env.__FIREBASE_DEFAULTS__;return ie?JSON.parse(ie):void 0})()||(()=>{if("undefined"==typeof document)return;let ie;try{ie=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(F){return}const X=ie&&te(ie[1]);return X&&JSON.parse(X)})()}catch(ie){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ie}`)}},pe=ie=>{var X,F;return null===(F=null===(X=ke())||void 0===X?void 0:X.emulatorHosts)||void 0===F?void 0:F[ie]},Ve=()=>{var ie;return null===(ie=ke())||void 0===ie?void 0:ie.config},et=ie=>{var X;return null===(X=ke())||void 0===X?void 0:X[`_${ie}`]};class ze{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((X,F)=>{this.resolve=X,this.reject=F})}wrapCallback(X){return(F,L)=>{F?this.reject(F):this.resolve(L),"function"==typeof X&&(this.promise.catch(()=>{}),1===X.length?X(F):X(F,L))}}}function st(ie,X){if(ie.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const L=X||"demo-project",k=ie.iat||0,ye=ie.sub||ie.user_id;if(!ye)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const We=Object.assign({iss:`https://securetoken.google.com/${L}`,aud:L,iat:k,exp:k+3600,auth_time:k,sub:ye,user_id:ye,firebase:{sign_in_provider:"custom",identities:{}}},ie);return[Ze(JSON.stringify({alg:"none",type:"JWT"})),Ze(JSON.stringify(We)),""].join(".")}function Ee(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function G(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ee())}function d(){var ie;const X=null===(ie=ke())||void 0===ie?void 0:ie.forceEnvironment;if("node"===X)return!0;if("browser"===X)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(F){return!1}}function U(){return"object"==typeof self&&self.self===self}function H(){const ie="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ie&&void 0!==ie.id}function O(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Y(){const ie=Ee();return ie.indexOf("MSIE ")>=0||ie.indexOf("Trident/")>=0}function Oe(){return!1}function j(){try{return"object"==typeof indexedDB}catch(ie){return!1}}function oe(){return new Promise((ie,X)=>{try{let F=!0;const L="validate-browser-context-for-indexeddb-analytics-module",k=self.indexedDB.open(L);k.onsuccess=()=>{k.result.close(),F||self.indexedDB.deleteDatabase(L),ie(!0)},k.onupgradeneeded=()=>{F=!1},k.onerror=()=>{var ye;X((null===(ye=k.error)||void 0===ye?void 0:ye.message)||"")}}catch(F){X(F)}})}function he(){return!("undefined"==typeof navigator||!navigator.cookieEnabled)}class Ge extends Error{constructor(X,F,L){super(F),this.code=X,this.customData=L,this.name="FirebaseError",Object.setPrototypeOf(this,Ge.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,je.prototype.create)}}class je{constructor(X,F,L){this.service=X,this.serviceName=F,this.errors=L}create(X,...F){const L=F[0]||{},k=`${this.service}/${X}`,ye=this.errors[X],We=ye?function bt(ie,X){return ie.replace(Ft,(F,L)=>{const k=X[L];return null!=k?String(k):`<${L}?>`})}(ye,L):"Error";return new Ge(k,`${this.serviceName}: ${We} (${k}).`,L)}}const Ft=/\{\$([^}]+)}/g;function Ot(ie){return JSON.parse(ie)}function Tt(ie){return JSON.stringify(ie)}const at=function(ie){let X={},F={},L={},k="";try{const ye=ie.split(".");X=Ot(te(ye[0])||""),F=Ot(te(ye[1])||""),k=ye[2],L=F.d||{},delete F.d}catch(ye){}return{header:X,claims:F,data:L,signature:k}},Mt=function(ie){const F=at(ie).claims;return!!F&&"object"==typeof F&&F.hasOwnProperty("iat")},Jt=function(ie){const X=at(ie).claims;return"object"==typeof X&&!0===X.admin};function rn(ie,X){return Object.prototype.hasOwnProperty.call(ie,X)}function it(ie,X){if(Object.prototype.hasOwnProperty.call(ie,X))return ie[X]}function Ke(ie){for(const X in ie)if(Object.prototype.hasOwnProperty.call(ie,X))return!1;return!0}function bn(ie,X,F){const L={};for(const k in ie)Object.prototype.hasOwnProperty.call(ie,k)&&(L[k]=X.call(F,ie[k],k,ie));return L}function ln(ie,X){if(ie===X)return!0;const F=Object.keys(ie),L=Object.keys(X);for(const k of F){if(!L.includes(k))return!1;const ye=ie[k],We=X[k];if(Xt(ye)&&Xt(We)){if(!ln(ye,We))return!1}else if(ye!==We)return!1}for(const k of L)if(!F.includes(k))return!1;return!0}function Xt(ie){return null!==ie&&"object"==typeof ie}function hr(ie){const X=[];for(const[F,L]of Object.entries(ie))Array.isArray(L)?L.forEach(k=>{X.push(encodeURIComponent(F)+"="+encodeURIComponent(k))}):X.push(encodeURIComponent(F)+"="+encodeURIComponent(L));return X.length?"&"+X.join("&"):""}function Nn(ie){const X={};return ie.replace(/^\?/,"").split("&").forEach(L=>{if(L){const[k,ye]=L.split("=");X[decodeURIComponent(k)]=decodeURIComponent(ye)}}),X}function Cn(ie){const X=ie.indexOf("?");if(!X)return"";const F=ie.indexOf("#",X);return ie.substring(X,F>0?F:void 0)}class qn{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let X=1;X>>31)}let kt,sn,k=this.chain_[0],ye=this.chain_[1],We=this.chain_[2],ot=this.chain_[3],Lt=this.chain_[4];for(let Bt=0;Bt<80;Bt++){Bt<40?Bt<20?(kt=ot^ye&(We^ot),sn=1518500249):(kt=ye^We^ot,sn=1859775393):Bt<60?(kt=ye&We|ot&(ye|We),sn=2400959708):(kt=ye^We^ot,sn=3395469782);const Gn=(k<<5|k>>>27)+kt+Lt+sn+L[Bt]&4294967295;Lt=ot,ot=We,We=4294967295&(ye<<30|ye>>>2),ye=k,k=Gn}this.chain_[0]=this.chain_[0]+k&4294967295,this.chain_[1]=this.chain_[1]+ye&4294967295,this.chain_[2]=this.chain_[2]+We&4294967295,this.chain_[3]=this.chain_[3]+ot&4294967295,this.chain_[4]=this.chain_[4]+Lt&4294967295}update(X,F){if(null==X)return;void 0===F&&(F=X.length);const L=F-this.blockSize;let k=0;const ye=this.buf_;let We=this.inbuf_;for(;k=56;k--)this.buf_[k]=255&F,F/=256;this.compress_(this.buf_);let L=0;for(let k=0;k<5;k++)for(let ye=24;ye>=0;ye-=8)X[L]=this.chain_[k]>>ye&255,++L;return X}}function ni(ie,X){const F=new cn(ie,X);return F.subscribe.bind(F)}class cn{constructor(X,F){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=F,this.task.then(()=>{X(this)}).catch(L=>{this.error(L)})}next(X){this.forEachObserver(F=>{F.next(X)})}error(X){this.forEachObserver(F=>{F.error(X)}),this.close(X)}complete(){this.forEachObserver(X=>{X.complete()}),this.close()}subscribe(X,F,L){let k;if(void 0===X&&void 0===F&&void 0===L)throw new Error("Missing Observer.");k=function tt(ie,X){if("object"!=typeof ie||null===ie)return!1;for(const F of X)if(F in ie&&"function"==typeof ie[F])return!0;return!1}(X,["next","error","complete"])?X:{next:X,error:F,complete:L},void 0===k.next&&(k.next=Zt),void 0===k.error&&(k.error=Zt),void 0===k.complete&&(k.complete=Zt);const ye=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?k.error(this.finalError):k.complete()}catch(We){}}),this.observers.push(k),ye}unsubscribeOne(X){void 0===this.observers||void 0===this.observers[X]||(delete this.observers[X],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(X){if(!this.finalized)for(let F=0;F{if(void 0!==this.observers&&void 0!==this.observers[X])try{F(this.observers[X])}catch(L){"undefined"!=typeof console&&console.error&&console.error(L)}})}close(X){this.finalized||(this.finalized=!0,void 0!==X&&(this.finalError=X),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Zt(){}const yn=function(ie,X,F,L){let k;if(LF&&(k=0===F?"none":"no more than "+F),k)throw new Error(ie+" failed: Was called with "+L+(1===L?" argument.":" arguments.")+" Expects "+k+".")};function Et(ie,X){return`${ie} failed: ${X} argument `}function jt(ie,X,F,L){if((!L||F)&&"function"!=typeof F)throw new Error(Et(ie,X)+"must be a valid function.")}function qt(ie,X,F,L){if((!L||F)&&("object"!=typeof F||null===F))throw new Error(Et(ie,X)+"must be a valid context object.")}const wt=function(ie){const X=[];let F=0;for(let L=0;L=55296&&k<=56319){const ye=k-55296;L++,J(L>6|192,X[F++]=63&k|128):k<65536?(X[F++]=k>>12|224,X[F++]=k>>6&63|128,X[F++]=63&k|128):(X[F++]=k>>18|240,X[F++]=k>>12&63|128,X[F++]=k>>6&63|128,X[F++]=63&k|128)}return X},Ri=function(ie){let X=0;for(let F=0;F=55296&&L<=56319?(X+=4,F++):X+=3}return X};function vi(ie,X=1e3,F=2){const L=X*Math.pow(F,ie),k=Math.round(.5*L*(Math.random()-.5)*2);return Math.min(144e5,L+k)}function Fi(ie){return ie&&ie._delegate?ie._delegate:ie}},1310:(_t,le,P)=>{"use strict";var t=P(5e3);let J=null;function B(){return J}const ee=new t.OlP("DocumentToken");let Ie=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:function(){return function Ze(){return(0,t.LFG)(re)}()},providedIn:"platform"}),n})();const te=new t.OlP("Location Initialized");let re=(()=>{class n extends Ie{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return B().getBaseHref(this._doc)}onPopState(e){const r=B().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=B().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,r,o){be()?this._history.pushState(e,r,o):this.location.hash=o}replaceState(e,r,o){be()?this._history.replaceState(e,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:function(){return function se(){return new re((0,t.LFG)(ee))}()},providedIn:"platform"}),n})();function be(){return!!window.history.pushState}function Ce(n,i){if(0==n.length)return i;if(0==i.length)return n;let e=0;return n.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?n+i.substring(1):1==e?n+i:n+"/"+i}function He(n){const i=n.match(/#|\?|$/),e=i&&i.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Ye(n){return n&&"?"!==n[0]?"?"+n:n}let me=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:function(){return function ke(n){const i=(0,t.LFG)(ee).location;return new De((0,t.LFG)(Ie),i&&i.origin||"")}()},providedIn:"root"}),n})();const pe=new t.OlP("appBaseHref");let De=(()=>{class n extends me{constructor(e,r){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)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=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Ce(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+Ye(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${r}${o}`:r}pushState(e,r,o,s){const c=this.prepareExternalUrl(o+Ye(s));this._platformLocation.pushState(e,r,c)}replaceState(e,r,o,s){const c=this.prepareExternalUrl(o+Ye(s));this._platformLocation.replaceState(e,r,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,e)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ie),t.LFG(pe,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ve=(()=>{class n extends me{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=Ce(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,o,s){let c=this.prepareExternalUrl(o+Ye(s));0==c.length&&(c=this._platformLocation.pathname),this._platformLocation.pushState(e,r,c)}replaceState(e,r,o,s){let c=this.prepareExternalUrl(o+Ye(s));0==c.length&&(c=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,e)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ie),t.LFG(pe,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),et=(()=>{class n{constructor(e,r){this._subject=new t.vpe,this._urlChangeListeners=[],this._platformStrategy=e;const o=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=He(Ee(o)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+Ye(r))}normalize(e){return n.stripTrailingSlash(function st(n,i){return n&&i.startsWith(n)?i.substring(n.length):i}(this._baseHref,Ee(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,r="",o=null){this._platformStrategy.pushState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ye(r)),o)}replaceState(e,r="",o=null){this._platformStrategy.replaceState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ye(r)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var r,o;null===(o=(r=this._platformStrategy).historyGo)||void 0===o||o.call(r,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(o=>o(e,r))}subscribe(e,r,o){return this._subject.subscribe({next:e,error:r,complete:o})}}return n.normalizeQueryParams=Ye,n.joinWithSlash=Ce,n.stripTrailingSlash=He,n.\u0275fac=function(e){return new(e||n)(t.LFG(me),t.LFG(Ie))},n.\u0275prov=t.Yz7({token:n,factory:function(){return function ze(){return new et((0,t.LFG)(me),(0,t.LFG)(Ie))}()},providedIn:"root"}),n})();function Ee(n){return n.replace(/\/index.html$/,"")}function Tr(n,i){i=encodeURIComponent(i);for(const e of n.split(";")){const r=e.indexOf("="),[o,s]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(o.trim()===i)return decodeURIComponent(s)}return null}let wn=(()=>{class n{constructor(e,r,o,s){this._iterableDiffers=e,this._keyValueDiffers=r,this._ngEl=o,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&((0,t.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),e.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),e.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,t.AaK)(r.item)}`);this._toggleClass(r.item,!0)}),e.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!0)):Object.keys(e).forEach(r=>this._toggleClass(r,!!e[r])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!1)):Object.keys(e).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(e,r){(e=e.trim())&&e.split(/\s+/g).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})(),cc=(()=>{class n{constructor(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}ngOnChanges(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const c=r.get(t.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(c.injector)}else this._moduleRef=null;const s=(this._moduleRef?this._moduleRef.componentFactoryResolver:r.get(t._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(s,this._viewContainerRef.length,r,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[t.TTD]}),n})();class No{constructor(i,e,r,o){this.$implicit=i,this.ngForOf=e,this.index=r,this.count=o}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 Vt=(()=>{class n{constructor(e,r,o){this._viewContainer=e,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((o,s,c)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new No(o.item,this._ngForOf,-1,-1),null===c?void 0:c);else if(null==c)r.remove(null===s?void 0:s);else if(null!==s){const f=r.get(s);r.move(f,c),Rs(f,o)}});for(let o=0,s=r.length;o{Rs(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Rs(n,i){n.context.$implicit=i.item}let Gt=(()=>{class n{constructor(e,r){this._viewContainer=e,this._context=new $n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){uc("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){uc("ngIfElse",e),this._elseTemplateRef=e,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(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b),t.Y36(t.Rgc))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class $n{constructor(){this.$implicit=null,this.ngIf=null}}function uc(n,i){if(i&&!i.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${(0,t.AaK)(i)}'.`)}const vu="browser";function _e(n){return n===vu}function Ue(n){return"server"===n}class Xo{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let Hr=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const r=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let r=0;r{class n{constructor(e,r,o){this.ngSwitch=o,o._addCase(),this._view=new Xo(e,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Hr,9))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),Us=(()=>{class n{constructor(e,r,o){o._addDefault(new Xo(e,r))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Hr,9))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),uo=(()=>{class n{constructor(e,r,o){this._ngEl=e,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){const[o,s]=e.split(".");null!=(r=null!=r&&s?`${r}${s}`:r)?this._renderer.setStyle(this._ngEl.nativeElement,o,r):this._renderer.removeStyle(this._ngEl.nativeElement,o)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})();function jr(n,i){return new t.vHH(2100,"")}class cl{createSubscription(i,e){return i.subscribe({next:e,error:r=>{throw r}})}dispose(i){i.unsubscribe()}onDestroy(i){i.unsubscribe()}}class xo{createSubscription(i,e){return i.then(e,r=>{throw r})}dispose(i){}onDestroy(i){}}const bp=new xo,Su=new cl;let yp=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r))}_selectStrategy(e){if((0,t.QGY)(e))return bp;if((0,t.F4k)(e))return Su;throw jr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO,16))},n.\u0275pipe=t.Yjl({name:"async",type:n,pure:!1}),n})(),bc=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw jr();return e.toUpperCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"uppercase",type:n,pure:!0}),n})(),yh=(()=>{class n{transform(e){return JSON.stringify(e,null,2)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"json",type:n,pure:!1}),n})(),yc=(()=>{class n{transform(e,r,o){if(null==e)return null;if(!this.supports(e))throw jr();return e.slice(r,o)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"slice",type:n,pure:!1}),n})(),si=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})(),C_=(()=>{class n{}return n.\u0275prov=(0,t.Yz7)({token:n,providedIn:"root",factory:()=>new wp((0,t.LFG)(ee),window)}),n})();class wp{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function Mu(n,i){const e=n.getElementById(i)||n.getElementsByName(i)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const s=o.shadowRoot;if(s){const c=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(c)return c}o=r.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const e=i.getBoundingClientRect(),r=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(r-s[0],o-s[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const i=Ta(this.window.history)||Ta(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}catch(i){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(i){return!1}}}function Ta(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class xc{}class Sa extends class Vs extends class de{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function z(n){J||(J=n)}(new Sa)}onAndCancel(i,e,r){return i.addEventListener(e,r,!1),()=>{i.removeEventListener(e,r,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function by(){return Cc=Cc||document.querySelector("base"),Cc?Cc.getAttribute("href"):null}();return null==e?null:function Ch(n){Da=Da||document.createElement("a"),Da.setAttribute("href",n);const i=Da.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Cc=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Tr(document.cookie,i)}}let Da,Cc=null;const Tp=new t.OlP("TRANSITION_ID"),kT=[{provide:t.ip1,useFactory:function yy(n,i,e){return()=>{e.get(t.CZH).donePromise.then(()=>{const r=B(),o=i.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s{const s=i.findTestabilityInTree(r,o);if(null==s)throw new Error("Could not find testability for element.");return s},t.dqk.getAllAngularTestabilities=()=>i.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>i.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(r=>{const o=t.dqk.getAllAngularTestabilities();let s=o.length,c=!1;const f=function(g){c=c||g,s--,0==s&&r(c)};o.forEach(function(g){g.whenStable(f)})})}findTestabilityInTree(i,e,r){if(null==e)return null;const o=i.getTestability(e);return null!=o?o:r?B().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null}}let wh=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const Iu=new t.OlP("EventManagerPlugins");let Zs=(()=>{class n{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,r,o){return this._findPluginFor(r).addEventListener(e,r,o)}addGlobalEventListener(e,r,o){return this._findPluginFor(r).addGlobalEventListener(e,r,o)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const o=this._plugins;for(let s=0;s{class n{constructor(){this._stylesSet=new Set}addStyles(e){const r=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ul=(()=>{class n extends wc{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,o){e.forEach(s=>{const c=this._doc.createElement("style");c.textContent=s,o.push(r.appendChild(c))})}addHost(e){const r=[];this._addStylesToHost(this._stylesSet,e,r),this._hostNodes.set(e,r)}removeHost(e){const r=this._hostNodes.get(e);r&&r.forEach(Ea),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(e,o,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ea))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();function Ea(n){B().remove(n)}const Th={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Aa=/%COMP%/g;function Sc(n,i,e){for(let r=0;r{if("__ngUnwrap__"===i)return n;!1===n(i)&&(i.preventDefault(),i.returnValue=!1)}}let hl=(()=>{class n{constructor(e,r,o){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Dc(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case t.ifc.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new Nu(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(e),o}case 1:case t.ifc.ShadowDom:return new Ap(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const o=Sc(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Zs),t.LFG(ul),t.LFG(t.AFp))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();class Dc{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(Th[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){i.appendChild(e)}insertBefore(i,e,r){i&&i.insertBefore(e,r)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let r="string"==typeof i?document.querySelector(i):i;if(!r)throw new Error(`The selector "${i}" did not match any elements`);return e||(r.textContent=""),r}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,r,o){if(o){e=o+":"+e;const s=Th[o];s?i.setAttributeNS(s,e,r):i.setAttribute(e,r)}else i.setAttribute(e,r)}removeAttribute(i,e,r){if(r){const o=Th[r];o?i.removeAttributeNS(o,e):i.removeAttribute(`${r}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,r,o){o&(t.JOm.DashCase|t.JOm.Important)?i.style.setProperty(e,r,o&t.JOm.Important?"important":""):i.style[e]=r}removeStyle(i,e,r){r&t.JOm.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,r){i[e]=r}setValue(i,e){i.nodeValue=e}listen(i,e,r){return"string"==typeof i?this.eventManager.addGlobalEventListener(i,e,dl(r)):this.eventManager.addEventListener(i,e,dl(r))}}class Nu extends Dc{constructor(i,e,r,o){super(i),this.component=r;const s=Sc(o+"-"+r.id,r.styles,[]);e.addStyles(s),this.contentAttr=function Dp(n){return"_ngcontent-%COMP%".replace(Aa,n)}(o+"-"+r.id),this.hostAttr=function Pu(n){return"_nghost-%COMP%".replace(Aa,n)}(o+"-"+r.id)}applyToHost(i){super.setAttribute(i,this.hostAttr,"")}createElement(i,e){const r=super.createElement(i,e);return super.setAttribute(r,this.contentAttr,""),r}}class Ap extends Dc{constructor(i,e,r,o){super(i),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Sc(o.id,o.styles,[]);for(let c=0;c{class n extends Co{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o){return e.addEventListener(r,o,!1),()=>this.removeEventListener(e,r,o)}removeEventListener(e,r,o){return e.removeEventListener(r,o)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const Ma=["alt","control","meta","shift"],Wi={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ac={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ia={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let A_=(()=>{class n extends Co{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,r,o){const s=n.parseEventName(r),c=n.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>B().onAndCancel(e,s.domEventName,c))}static parseEventName(e){const r=e.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=n._normalizeKey(r.pop());let c="";if(Ma.forEach(g=>{const v=r.indexOf(g);v>-1&&(r.splice(v,1),c+=g+".")}),c+=s,0!=r.length||0===s.length)return null;const f={};return f.domEventName=o,f.fullKey=c,f}static getEventFullKey(e){let r="",o=function Ru(n){let i=n.key;if(null==i){if(i=n.keyIdentifier,null==i)return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===n.location&&Ac.hasOwnProperty(i)&&(i=Ac[i]))}return Wi[i]||i}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Ma.forEach(s=>{s!=o&&Ia[s](e)&&(r+=s+".")}),r+=o,r}static eventCallback(e,r,o){return s=>{n.getEventFullKey(s)===e&&o.runGuarded(()=>r(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const pl=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:vu},{provide:t.g9A,useValue:function Ip(){Sa.makeCurrent(),S_.init()},multi:!0},{provide:ee,useFactory:function Sh(){return(0,t.RDi)(document),document},deps:[]}]),Oa=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function fl(){return new t.qLn},deps:[]},{provide:Iu,useClass:Mp,multi:!0,deps:[ee,t.R0b,t.Lbi]},{provide:Iu,useClass:A_,multi:!0,deps:[ee]},{provide:hl,useClass:hl,deps:[Zs,ul,t.AFp]},{provide:t.FYo,useExisting:hl},{provide:wc,useExisting:ul},{provide:ul,useClass:ul,deps:[ee]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b]},{provide:Zs,useClass:Zs,deps:[Iu,t.R0b]},{provide:xc,useClass:wh,deps:[]}];let wo=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:t.AFp,useValue:e.appId},{provide:Tp,useExisting:t.AFp},kT]}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(n,12))},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:Oa,imports:[si,t.hGG]}),n})();"undefined"!=typeof window&&window;let Ro=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:function(e){let r=null;return r=e?new(e||n):t.LFG(vl),r},providedIn:"root"}),n})(),vl=(()=>{class n extends Ro{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case t.q3G.NONE:return r;case t.q3G.HTML:return(0,t.qzn)(r,"HTML")?(0,t.z3N)(r):(0,t.EiD)(this._doc,String(r)).toString();case t.q3G.STYLE:return(0,t.qzn)(r,"Style")?(0,t.z3N)(r):r;case t.q3G.SCRIPT:if((0,t.qzn)(r,"Script"))return(0,t.z3N)(r);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.yhl)(r),(0,t.qzn)(r,"URL")?(0,t.z3N)(r):(0,t.mCW)(String(r));case t.q3G.RESOURCE_URL:if((0,t.qzn)(r,"ResourceURL"))return(0,t.z3N)(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,t.JVY)(e)}bypassSecurityTrustStyle(e){return(0,t.L6k)(e)}bypassSecurityTrustScript(e){return(0,t.eBb)(e)}bypassSecurityTrustUrl(e){return(0,t.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,t.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:function(e){let r=null;return r=e?new e:function eo(n){return new vl(n.get(ee))}(t.LFG(t.zs3)),r},providedIn:"root"}),n})();var qi=P(8996),ts=P(3269);function ut(...n){const i=(0,ts.yG)(n);return(0,qi.D)(n,i)}var ft=P(7579);class xi extends ft.x{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:r}=this;if(i)throw e;return this._throwIfClosed(),r}next(i){super.next(this._value=i)}}var Yn=P(8306);const{isArray:Eh}=Array,{getPrototypeOf:Np,prototype:ns,keys:bl}=Object;function L_(n){if(1===n.length){const i=n[0];if(Eh(i))return{args:i,keys:null};if(function kc(n){return n&&"object"==typeof n&&Np(n)===ns}(i)){const e=bl(i);return{args:e.map(r=>i[r]),keys:e}}}return{args:n,keys:null}}var is=P(4671),Le=P(4004);const{isArray:Rp}=Array;function Ah(n){return(0,Le.U)(i=>function B_(n,i){return Rp(i)?n(...i):n(i)}(n,i))}function Pc(n,i){return n.reduce((e,r,o)=>(e[r]=i[o],e),{})}var Kn=P(5403),ka=P(9672);function Nc(...n){const i=(0,ts.yG)(n),e=(0,ts.jO)(n),{args:r,keys:o}=L_(n);if(0===r.length)return(0,qi.D)([],i);const s=new Yn.y(function Mh(n,i,e=is.y){return r=>{zi(i,()=>{const{length:o}=n,s=new Array(o);let c=o,f=o;for(let g=0;g{const v=(0,qi.D)(n[g],i);let T=!1;v.subscribe(new Kn.Q(r,D=>{s[g]=D,T||(T=!0,f--),f||r.next(e(s.slice()))},()=>{--c||r.complete()}))},r)},r)}}(r,i,o?c=>Pc(o,c):is.y));return e?s.pipe(Ah(e)):s}function zi(n,i,e){n?(0,ka.f)(e,n,i):i()}var Vr=P(576);function Fo(n,i){const e=(0,Vr.m)(n)?n:()=>n,r=o=>o.error(e());return new Yn.y(i?o=>i.schedule(r,0,o):r)}const qs=(0,P(3888).d)(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});var yl=P(8189);function Lo(...n){return function Oh(){return(0,yl.J)(1)}()((0,qi.D)(n,(0,ts.yG)(n)))}var fr=P(8421);function rs(n){return new Yn.y(i=>{(0,fr.Xf)(n()).subscribe(i)})}var Zr=P(515),Xn=P(727),Ci=P(4482);function kh(){return(0,Ci.e)((n,i)=>{let e=null;n._refCount++;const r=new Kn.Q(i,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const o=n._connection,s=e;e=null,o&&(!s||o===s)&&o.unsubscribe(),i.unsubscribe()});n.subscribe(r),r.closed||(e=n.connect())})}class Rc extends Yn.y{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Ci.A)(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,null==i||i.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Xn.w0;const e=this.getSubject();i.add(this.source.subscribe(new Kn.Q(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Xn.w0.EMPTY)}return i}refCount(){return kh()(this)}}function En(n,i){return(0,Ci.e)((e,r)=>{let o=null,s=0,c=!1;const f=()=>c&&!o&&r.complete();e.subscribe(new Kn.Q(r,g=>{null==o||o.unsubscribe();let v=0;const T=s++;(0,fr.Xf)(n(g,T)).subscribe(o=new Kn.Q(r,D=>r.next(i?i(g,D,T,v++):D),()=>{o=null,f()}))},()=>{c=!0,f()}))})}var _n=P(5698);function wi(...n){const i=(0,ts.yG)(n);return(0,Ci.e)((e,r)=>{(i?Lo(n,e,i):Lo(n,e)).subscribe(r)})}function Fp(n,i,e,r,o){return(s,c)=>{let f=e,g=i,v=0;s.subscribe(new Kn.Q(c,T=>{const D=v++;g=f?n(g,T,D):(f=!0,T),r&&c.next(g)},o&&(()=>{f&&c.next(g),c.complete()})))}}function os(n,i){return(0,Ci.e)(Fp(n,i,arguments.length>=2,!0))}function Yt(n,i){return(0,Ci.e)((e,r)=>{let o=0;e.subscribe(new Kn.Q(r,s=>n.call(i,s,o++)&&r.next(s)))})}function vt(n){return(0,Ci.e)((i,e)=>{let s,r=null,o=!1;r=i.subscribe(new Kn.Q(e,void 0,void 0,c=>{s=(0,fr.Xf)(n(c,vt(n)(i))),r?(r.unsubscribe(),r=null,s.subscribe(e)):o=!0})),o&&(r.unsubscribe(),r=null,s.subscribe(e))})}var Gi=P(5577);function ss(n,i){return(0,Vr.m)(i)?(0,Gi.z)(n,i,1):(0,Gi.z)(n,1)}function Fc(n){return n<=0?()=>Zr.E:(0,Ci.e)((i,e)=>{let r=[];i.subscribe(new Kn.Q(e,o=>{r.push(o),n{for(const o of r)e.next(o);e.complete()},void 0,()=>{r=null}))})}function Lp(n=Ph){return(0,Ci.e)((i,e)=>{let r=!1;i.subscribe(new Kn.Q(e,o=>{r=!0,e.next(o)},()=>r?e.complete():e.error(n())))})}function Ph(){return new qs}function Nh(n){return(0,Ci.e)((i,e)=>{let r=!1;i.subscribe(new Kn.Q(e,o=>{r=!0,e.next(o)},()=>{r||e.next(n),e.complete()}))})}function zs(n,i){const e=arguments.length>=2;return r=>r.pipe(n?Yt((o,s)=>n(o,s,r)):is.y,(0,_n.q)(1),e?Nh(i):Lp(()=>new qs))}function gi(n,i,e){const r=(0,Vr.m)(n)||i||e?{next:n,error:i,complete:e}:n;return r?(0,Ci.e)((o,s)=>{var c;null===(c=r.subscribe)||void 0===c||c.call(r);let f=!0;o.subscribe(new Kn.Q(s,g=>{var v;null===(v=r.next)||void 0===v||v.call(r,g),s.next(g)},()=>{var g;f=!1,null===(g=r.complete)||void 0===g||g.call(r),s.complete()},g=>{var v;f=!1,null===(v=r.error)||void 0===v||v.call(r,g),s.error(g)},()=>{var g,v;f&&(null===(g=r.unsubscribe)||void 0===g||g.call(r)),null===(v=r.finalize)||void 0===v||v.call(r)}))}):is.y}function fo(n){return(0,Ci.e)((i,e)=>{try{i.subscribe(e)}finally{e.add(n)}})}class Bo{constructor(i,e){this.id=i,this.url=e}}class $s extends Bo{constructor(i,e,r="imperative",o=null){super(i,e),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pa extends Bo{constructor(i,e,r){super(i,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Rh extends Bo{constructor(i,e,r){super(i,e),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Pr extends Bo{constructor(i,e,r){super(i,e),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Lc extends Bo{constructor(i,e,r,o){super(i,e),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gp extends Bo{constructor(i,e,r,o){super(i,e),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Up extends Bo{constructor(i,e,r,o,s){super(i,e),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class pr extends Bo{constructor(i,e,r,o){super(i,e),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bc extends Bo{constructor(i,e,r,o){super(i,e),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Na{constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Hp{constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class G_{constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jp{constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class U_{constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vp{constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zp{constructor(i,e,r){this.routerEvent=i,this.position=e,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Tn="primary";class H_{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ys(n){return new H_(n)}const Gu="ngNavigationCancelingError";function Gc(n){const i=Error("NavigationCancelingError: "+n);return i[Gu]=!0,i}function Wp(n,i,e){const r=e.path.split("/");if(r.length>n.length||"full"===e.pathMatch&&(i.hasChildren()||r.lengthr[s]===o)}return n===i}function Uu(n){return Array.prototype.concat.apply([],n)}function Hu(n){return n.length>0?n[n.length-1]:null}function Dr(n,i){for(const e in n)n.hasOwnProperty(e)&&i(n[e],e)}function gr(n){return(0,t.CqO)(n)?n:(0,t.QGY)(n)?(0,qi.D)(Promise.resolve(n)):ut(n)}const qp={exact:function $p(n,i,e){if(!Fa(n.segments,i.segments)||!xl(n.segments,i.segments,e)||n.numberOfChildren!==i.numberOfChildren)return!1;for(const r in i.children)if(!n.children[r]||!$p(n.children[r],i.children[r],e))return!1;return!0},subset:Yp},ju={exact:function zp(n,i){return po(n,i)},subset:function Lh(n,i){return Object.keys(i).length<=Object.keys(n).length&&Object.keys(i).every(e=>Fh(n[e],i[e]))},ignored:()=>!0};function Vu(n,i,e){return qp[e.paths](n.root,i.root,e.matrixParams)&&ju[e.queryParams](n.queryParams,i.queryParams)&&!("exact"===e.fragment&&n.fragment!==i.fragment)}function Yp(n,i,e){return Z_(n,i,i.segments,e)}function Z_(n,i,e,r){if(n.segments.length>e.length){const o=n.segments.slice(0,e.length);return!(!Fa(o,e)||i.hasChildren()||!xl(o,e,r))}if(n.segments.length===e.length){if(!Fa(n.segments,e)||!xl(n.segments,e,r))return!1;for(const o in i.children)if(!n.children[o]||!Yp(n.children[o],i.children[o],r))return!1;return!0}{const o=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!(Fa(n.segments,o)&&xl(n.segments,o,r)&&n.children[Tn])&&Z_(n.children[Tn],i,s,r)}}function xl(n,i,e){return i.every((r,o)=>ju[e](n[o].parameters,r.parameters))}class as{constructor(i,e,r){this.root=i,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ys(this.queryParams)),this._queryParamMap}toString(){return La.serialize(this)}}class vn{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Dr(e,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cl(this)}}class Ra{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ys(this.parameters)),this._parameterMap}toString(){return N(this)}}function Fa(n,i){return n.length===i.length&&n.every((e,r)=>e.path===i[r].path)}class Bh{}class Gh{parse(i){const e=new Wu(i);return new as(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${wl(i.root,!0)}`,r=function Re(n){const i=Object.keys(n).map(e=>{const r=n[e];return Array.isArray(r)?r.map(o=>`${x(e)}=${x(o)}`).join("&"):`${x(e)}=${x(r)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${r}${"string"==typeof i.fragment?`#${function m(n){return encodeURI(n)}(i.fragment)}`:""}`}}const La=new Gh;function Cl(n){return n.segments.map(i=>N(i)).join("/")}function wl(n,i){if(!n.hasChildren())return Cl(n);if(i){const e=n.children[Tn]?wl(n.children[Tn],!1):"",r=[];return Dr(n.children,(o,s)=>{s!==Tn&&r.push(`${s}:${wl(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function W_(n,i){let e=[];return Dr(n.children,(r,o)=>{o===Tn&&(e=e.concat(i(r,o)))}),Dr(n.children,(r,o)=>{o!==Tn&&(e=e.concat(i(r,o)))}),e}(n,(r,o)=>o===Tn?[wl(n.children[Tn],!1)]:[`${o}:${wl(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Tn]?`${Cl(n)}/${e[0]}`:`${Cl(n)}/(${e.join("//")})`}}function Jp(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function x(n){return Jp(n).replace(/%3B/gi,";")}function b(n){return Jp(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function C(n){return decodeURIComponent(n)}function A(n){return C(n.replace(/\+/g,"%20"))}function N(n){return`${b(n.path)}${function ge(n){return Object.keys(n).map(i=>`;${b(i)}=${b(n[i])}`).join("")}(n.parameters)}`}const nt=/^[^\/()?;=#]+/;function gt(n){const i=n.match(nt);return i?i[0]:""}const Nt=/^[^=?&#]+/,Er=/^[^&#]+/;class Wu{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vn([],{}):new vn([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(r[Tn]=new vn(i,e)),r}parseSegment(){const i=gt(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(i),new Ra(C(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=gt(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const o=gt(this.remaining);o&&(r=o,this.capture(r))}i[C(e)]=C(r)}parseQueryParam(i){const e=function Sn(n){const i=n.match(Nt);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const c=function go(n){const i=n.match(Er);return i?i[0]:""}(this.remaining);c&&(r=c,this.capture(r))}const o=A(e),s=A(r);if(i.hasOwnProperty(o)){let c=i[o];Array.isArray(c)||(c=[c],i[o]=c),c.push(s)}else i[o]=s}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=gt(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let s;r.indexOf(":")>-1?(s=r.substr(0,r.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=Tn);const c=this.parseChildren();e[s]=1===Object.keys(c).length?c[Tn]:new vn([],c),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new Error(`Expected "${i}".`)}}class qu{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=jc(i,this._root);return e?e.children.map(r=>r.value):[]}firstChild(i){const e=jc(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=zu(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return zu(i,this._root).map(e=>e.value)}}function jc(n,i){if(n===i.value)return i;for(const e of i.children){const r=jc(n,e);if(r)return r}return null}function zu(n,i){if(n===i.value)return[i];for(const e of i.children){const r=zu(n,e);if(r.length)return r.unshift(i),r}return[]}class To{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Go(n){const i={};return n&&n.children.forEach(e=>i[e.value.outlet]=e),i}class Tl extends qu{constructor(i,e){super(i),this.snapshot=e,Hh(this,i)}toString(){return this.snapshot.toString()}}function Vc(n,i){const e=function ls(n,i){const c=new $u([],{},{},"",{},Tn,i,null,n.root,-1,{});return new Uh("",new To(c,[]))}(n,i),r=new xi([new Ra("",{})]),o=new xi({}),s=new xi({}),c=new xi({}),f=new xi(""),g=new mr(r,o,c,f,s,Tn,i,e.root);return g.snapshot=e.root,new Tl(new To(g,[]),e)}class mr{constructor(i,e,r,o,s,c,f,g){this.url=i,this.params=e,this.queryParams=r,this.fragment=o,this.data=s,this.outlet=c,this.component=f,this._futureSnapshot=g}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,Le.U)(i=>Ys(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Le.U)(i=>Ys(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Qp(n,i="emptyOnly"){const e=n.pathFromRoot;let r=0;if("always"!==i)for(r=e.length-1;r>=1;){const o=e[r],s=e[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(s.component)break;r--}}return function Kp(n){return n.reduce((i,e)=>({params:Object.assign(Object.assign({},i.params),e.params),data:Object.assign(Object.assign({},i.data),e.data),resolve:Object.assign(Object.assign({},i.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(r))}class $u{constructor(i,e,r,o,s,c,f,g,v,T,D){this.url=i,this.params=e,this.queryParams=r,this.fragment=o,this.data=s,this.outlet=c,this.component=f,this.routeConfig=g,this._urlSegment=v,this._lastPathIndex=T,this._resolve=D}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=Ys(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ys(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Uh extends qu{constructor(i,e){super(e),this.url=i,Hh(this,e)}toString(){return q_(this._root)}}function Hh(n,i){i.value._routerState=n,i.children.forEach(e=>Hh(n,e))}function q_(n){const i=n.children.length>0?` { ${n.children.map(q_).join(", ")} } `:"";return`${n.value}${i}`}function Xp(n){if(n.snapshot){const i=n.snapshot,e=n._futureSnapshot;n.snapshot=e,po(i.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),i.fragment!==e.fragment&&n.fragment.next(e.fragment),po(i.params,e.params)||n.params.next(e.params),function Uc(n,i){if(n.length!==i.length)return!1;for(let e=0;epo(e.parameters,i[r].parameters))}(n.url,i.url);return e&&!(!n.parent!=!i.parent)&&(!n.parent||eg(n.parent,i.parent))}function jh(n,i,e){if(e&&n.shouldReuseRoute(i.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=i.value;const o=function BT(n,i,e){return i.children.map(r=>{for(const o of e.children)if(n.shouldReuseRoute(r.value,o.value.snapshot))return jh(n,r,o);return jh(n,r)})}(n,i,e);return new To(r,o)}{if(n.shouldAttach(i.value)){const s=n.retrieve(i.value);if(null!==s){const c=s.route;return c.value._futureSnapshot=i.value,c.children=i.children.map(f=>jh(n,f)),c}}const r=function GT(n){return new mr(new xi(n.url),new xi(n.params),new xi(n.queryParams),new xi(n.fragment),new xi(n.data),n.outlet,n.component,n)}(i.value),o=i.children.map(s=>jh(n,s));return new To(r,o)}}function tg(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function So(n){return"object"==typeof n&&null!=n&&n.outlets}function Sl(n,i,e,r,o){let s={};if(r&&Dr(r,(f,g)=>{s[g]=Array.isArray(f)?f.map(v=>`${v}`):`${f}`}),n===i)return new as(e,s,o);const c=z_(n,i,e);return new as(c,s,o)}function z_(n,i,e){const r={};return Dr(n.children,(o,s)=>{r[s]=o===i?e:z_(o,i,e)}),new vn(n.segments,r)}class wy{constructor(i,e,r){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=r,i&&r.length>0&&tg(r[0]))throw new Error("Root segment cannot have matrix parameters");const o=r.find(So);if(o&&o!==Hu(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class $_{constructor(i,e,r){this.segmentGroup=i,this.processChildren=e,this.index=r}}function Sy(n,i,e){if(n||(n=new vn([],{})),0===n.segments.length&&n.hasChildren())return ng(n,i,e);const r=function ZT(n,i,e){let r=0,o=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return s;const c=n.segments[o],f=e[r];if(So(f))break;const g=`${f}`,v=r0&&void 0===g)break;if(g&&v&&"object"==typeof v&&void 0===v.outlets){if(!Yu(g,v,c))return s;r+=2}else{if(!Yu(g,{},c))return s;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(n,i,e),o=e.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[c]=Sy(n.children[c],i,s))}),Dr(n.children,(s,c)=>{void 0===r[c]&&(o[c]=s)}),new vn(n.segments,o)}}function Y_(n,i,e){const r=n.segments.slice(0,i);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(i[r]=Y_(new vn([],{}),0,e))}),i}function Dy(n){const i={};return Dr(n,(e,r)=>i[r]=`${e}`),i}function Yu(n,i,e){return n==e.path&&po(i,e.parameters)}class Js{constructor(i,e,r,o){this.routeReuseStrategy=i,this.futureState=e,this.currState=r,this.forwardEvent=o}activate(i){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,i),Xp(this.futureState.root),this.activateChildRoutes(e,r,i)}deactivateChildRoutes(i,e,r){const o=Go(e);i.children.forEach(s=>{const c=s.value.outlet;this.deactivateRoutes(s,o[c],r),delete o[c]}),Dr(o,(s,c)=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(i,e,r){const o=i.value,s=e?e.value:null;if(o===s)if(o.component){const c=r.getContext(o.outlet);c&&this.deactivateChildRoutes(i,e,c.children)}else this.deactivateChildRoutes(i,e,r);else s&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const r=e.getContext(i.value.outlet),o=r&&i.value.component?r.children:e,s=Go(i);for(const c of Object.keys(s))this.deactivateRouteAndItsChildren(s[c],o);if(r&&r.outlet){const c=r.outlet.detach(),f=r.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:c,route:i,contexts:f})}}deactivateRouteAndOutlet(i,e){const r=e.getContext(i.value.outlet),o=r&&i.value.component?r.children:e,s=Go(i);for(const c of Object.keys(s))this.deactivateRouteAndItsChildren(s[c],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(i,e,r){const o=Go(e);i.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],r),this.forwardEvent(new Vp(s.value.snapshot))}),i.children.length&&this.forwardEvent(new jp(i.value.snapshot))}activateRoutes(i,e,r){const o=i.value,s=e?e.value:null;if(Xp(o),o===s)if(o.component){const c=r.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,c.children)}else this.activateChildRoutes(i,e,r);else if(o.component){const c=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const f=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),c.children.onOutletReAttached(f.contexts),c.attachRef=f.componentRef,c.route=f.route.value,c.outlet&&c.outlet.attach(f.componentRef,f.route.value),Xp(f.route.value),this.activateChildRoutes(i,null,c.children)}else{const f=function Vh(n){for(let i=n.parent;i;i=i.parent){const e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(o.snapshot),g=f?f.module.componentFactoryResolver:null;c.attachRef=null,c.route=o,c.resolver=g,c.outlet&&c.outlet.activateWith(o,g),this.activateChildRoutes(i,null,c.children)}}else this.activateChildRoutes(i,null,r)}}class ig{constructor(i,e){this.routes=i,this.module=e}}function Ba(n){return"function"==typeof n}function Ju(n){return n instanceof as}const Wc=Symbol("INITIAL_VALUE");function rg(){return En(n=>Nc(n.map(i=>i.pipe((0,_n.q)(1),wi(Wc)))).pipe(os((i,e)=>{let r=!1;return e.reduce((o,s,c)=>o!==Wc?o:(s===Wc&&(r=!0),r||!1!==s&&c!==e.length-1&&!Ju(s)?o:s),i)},Wc),Yt(i=>i!==Wc),(0,Le.U)(i=>Ju(i)?i:!0===i),(0,_n.q)(1)))}class Ik{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Qu,this.attachRef=null}}class Qu{constructor(){this.contexts=new Map}onChildOutletCreated(i,e){const r=this.getOrCreateContext(i);r.outlet=e,this.contexts.set(i,r)}onChildOutletDestroyed(i){const e=this.getContext(i);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let e=this.getContext(i);return e||(e=new Ik,this.contexts.set(i,e)),e}getContext(i){return this.contexts.get(i)||null}}let K_=(()=>{class n{constructor(e,r,o,s,c){this.parentContexts=e,this.location=r,this.resolver=o,this.changeDetector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=s||Tn,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const c=(r=r||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),f=this.parentContexts.getOrCreateContext(this.name).children,g=new WT(e,f,this.location.injector);this.activated=this.location.createComponent(c,this.location.length,g),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Qu),t.Y36(t.s_b),t.Y36(t._Vd),t.$8M("name"),t.Y36(t.sBO))},n.\u0275dir=t.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class WT{constructor(i,e,r){this.route=i,this.childContexts=e,this.parent=r}get(i,e){return i===mr?this.route:i===Qu?this.childContexts:this.parent.get(i,e)}}let My=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,r){1&e&&t._UZ(0,"router-outlet")},directives:[K_],encapsulation:2}),n})();function Iy(n,i=""){for(let e=0;emo(r)===i);return e.push(...n.filter(r=>mo(r)!==i)),e}const $i={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Zh(n,i,e){var r;if(""===i.path)return"full"===i.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},$i):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(i.matcher||Wp)(e,n,i);if(!s)return Object.assign({},$i);const c={};Dr(s.posParams,(g,v)=>{c[v]=g.path});const f=s.consumed.length>0?Object.assign(Object.assign({},c),s.consumed[s.consumed.length-1].parameters):c;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:f,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function ag(n,i,e,r,o="corrected"){if(e.length>0&&function qT(n,i,e){return e.some(r=>lg(n,i,r)&&mo(r)!==Tn)}(n,e,r)){const c=new vn(i,function Py(n,i,e,r){const o={};o[Tn]=r,r._sourceSegment=n,r._segmentIndexShift=i.length;for(const s of e)if(""===s.path&&mo(s)!==Tn){const c=new vn([],{});c._sourceSegment=n,c._segmentIndexShift=i.length,o[mo(s)]=c}return o}(n,i,r,new vn(e,n.children)));return c._sourceSegment=n,c._segmentIndexShift=i.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function zT(n,i,e){return e.some(r=>lg(n,i,r))}(n,e,r)){const c=new vn(n.segments,function X_(n,i,e,r,o,s){const c={};for(const f of r)if(lg(n,e,f)&&!o[mo(f)]){const g=new vn([],{});g._sourceSegment=n,g._segmentIndexShift="legacy"===s?n.segments.length:i.length,c[mo(f)]=g}return Object.assign(Object.assign({},o),c)}(n,i,e,r,n.children,o));return c._sourceSegment=n,c._segmentIndexShift=i.length,{segmentGroup:c,slicedSegments:e}}const s=new vn(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=i.length,{segmentGroup:s,slicedSegments:e}}function lg(n,i,e){return(!(n.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function Ny(n,i,e,r){return!!(mo(n)===r||r!==Tn&&lg(i,e,n))&&("**"===n.path||Zh(i,n,e).matched)}function Ry(n,i,e){return 0===i.length&&!n.children[e]}class e0{constructor(i){this.segmentGroup=i||null}}class $T{constructor(i){this.urlTree=i}}function Ga(n){return Fo(new e0(n))}function cg(n){return Fo(new $T(n))}class QT{constructor(i,e,r,o,s){this.configLoader=e,this.urlSerializer=r,this.urlTree=o,this.config=s,this.allowRedirects=!0,this.ngModule=i.get(t.h0i)}apply(){const i=ag(this.urlTree.root,[],[],this.config).segmentGroup,e=new vn(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Tn).pipe((0,Le.U)(s=>this.createUrlTree(Ku(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(vt(s=>{if(s instanceof $T)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof e0?this.noMatchError(s):s}))}match(i){return this.expandSegmentGroup(this.ngModule,this.config,i.root,Tn).pipe((0,Le.U)(o=>this.createUrlTree(Ku(o),i.queryParams,i.fragment))).pipe(vt(o=>{throw o instanceof e0?this.noMatchError(o):o}))}noMatchError(i){return new Error(`Cannot match any routes. URL Segment: '${i.segmentGroup}'`)}createUrlTree(i,e,r){const o=i.segments.length>0?new vn([],{[Tn]:i}):i;return new as(o,e,r)}expandSegmentGroup(i,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(i,e,r).pipe((0,Le.U)(s=>new vn([],s))):this.expandSegment(i,r,e,r.segments,o,!0)}expandChildren(i,e,r){const o=[];for(const s of Object.keys(r.children))"primary"===s?o.unshift(s):o.push(s);return(0,qi.D)(o).pipe(ss(s=>{const c=r.children[s],f=ky(e,s);return this.expandSegmentGroup(i,f,c,s).pipe((0,Le.U)(g=>({segment:g,outlet:s})))}),os((s,c)=>(s[c.outlet]=c.segment,s),{}),function Bp(n,i){const e=arguments.length>=2;return r=>r.pipe(n?Yt((o,s)=>n(o,s,r)):is.y,Fc(1),e?Nh(i):Lp(()=>new qs))}())}expandSegment(i,e,r,o,s,c){return(0,qi.D)(r).pipe(ss(f=>this.expandSegmentAgainstRoute(i,e,r,f,o,s,c).pipe(vt(v=>{if(v instanceof e0)return ut(null);throw v}))),zs(f=>!!f),vt((f,g)=>{if(f instanceof qs||"EmptyError"===f.name)return Ry(e,o,s)?ut(new vn([],{})):Ga(e);throw f}))}expandSegmentAgainstRoute(i,e,r,o,s,c,f){return Ny(o,e,s,c)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(i,e,o,s,c):f&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,r,o,s,c):Ga(e):Ga(e)}expandSegmentAgainstRouteUsingRedirect(i,e,r,o,s,c){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,r,o,c):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,r,o,s,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,r,o){const s=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?cg(s):this.lineralizeSegments(r,s).pipe((0,Gi.z)(c=>{const f=new vn(c,{});return this.expandSegment(i,f,e,c,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,r,o,s,c){const{matched:f,consumedSegments:g,remainingSegments:v,positionalParamSegments:T}=Zh(e,o,s);if(!f)return Ga(e);const D=this.applyRedirectCommands(g,o.redirectTo,T);return o.redirectTo.startsWith("/")?cg(D):this.lineralizeSegments(o,D).pipe((0,Gi.z)(M=>this.expandSegment(i,e,r,M.concat(v),c,!1)))}matchSegmentAgainstRoute(i,e,r,o,s){if("**"===r.path)return r.loadChildren?(r._loadedConfig?ut(r._loadedConfig):this.configLoader.load(i.injector,r)).pipe((0,Le.U)(D=>(r._loadedConfig=D,new vn(o,{})))):ut(new vn(o,{}));const{matched:c,consumedSegments:f,remainingSegments:g}=Zh(e,r,o);return c?this.getChildConfig(i,r,o).pipe((0,Gi.z)(T=>{const D=T.module,M=T.routes,{segmentGroup:R,slicedSegments:K}=ag(e,f,g,M),fe=new vn(R.segments,R.children);if(0===K.length&&fe.hasChildren())return this.expandChildren(D,M,fe).pipe((0,Le.U)(xt=>new vn(f,xt)));if(0===M.length&&0===K.length)return ut(new vn(f,{}));const Me=mo(r)===s;return this.expandSegment(D,fe,M,K,Me?Tn:s,!0).pipe((0,Le.U)(qe=>new vn(f.concat(qe.segments),qe.children)))})):Ga(e)}getChildConfig(i,e,r){return e.children?ut(new ig(e.children,i)):e.loadChildren?void 0!==e._loadedConfig?ut(e._loadedConfig):this.runCanLoadGuards(i.injector,e,r).pipe((0,Gi.z)(o=>o?this.configLoader.load(i.injector,e).pipe((0,Le.U)(s=>(e._loadedConfig=s,s))):function JT(n){return Fo(Gc(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`))}(e))):ut(new ig([],i))}runCanLoadGuards(i,e,r){const o=e.canLoad;return o&&0!==o.length?ut(o.map(c=>{const f=i.get(c);let g;if(function Ak(n){return n&&Ba(n.canLoad)}(f))g=f.canLoad(e,r);else{if(!Ba(f))throw new Error("Invalid CanLoad guard");g=f(e,r)}return gr(g)})).pipe(rg(),gi(c=>{if(!Ju(c))return;const f=Gc(`Redirecting to "${this.urlSerializer.serialize(c)}"`);throw f.url=c,f}),(0,Le.U)(c=>!0===c)):ut(!0)}lineralizeSegments(i,e){let r=[],o=e.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return ut(r);if(o.numberOfChildren>1||!o.children[Tn])return Fo(new Error(`Only absolute redirects can have named outlets. redirectTo: '${i.redirectTo}'`));o=o.children[Tn]}}applyRedirectCommands(i,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),i,r)}applyRedirectCreatreUrlTree(i,e,r,o){const s=this.createSegmentGroup(i,e.root,r,o);return new as(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const r={};return Dr(i,(o,s)=>{if("string"==typeof o&&o.startsWith(":")){const f=o.substring(1);r[s]=e[f]}else r[s]=o}),r}createSegmentGroup(i,e,r,o){const s=this.createSegments(i,e.segments,r,o);let c={};return Dr(e.children,(f,g)=>{c[g]=this.createSegmentGroup(i,f,r,o)}),new vn(s,c)}createSegments(i,e,r,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,o):this.findOrReturn(s,r))}findPosParam(i,e,r){const o=r[e.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${i}'. Cannot find '${e.path}'.`);return o}findOrReturn(i,e){let r=0;for(const o of e){if(o.path===i.path)return e.splice(r),o;r++}return i}}function Ku(n){const i={};for(const r of Object.keys(n.children)){const s=Ku(n.children[r]);(s.segments.length>0||s.hasChildren())&&(i[r]=s)}return function KT(n){if(1===n.numberOfChildren&&n.children[Tn]){const i=n.children[Tn];return new vn(n.segments.concat(i.segments),i.children)}return n}(new vn(n.segments,i))}class Fy{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class ug{constructor(i,e){this.component=i,this.route=e}}function eS(n,i,e){const r=n._root;return Xu(r,i?i._root:null,e,[r.value])}function dg(n,i,e){const r=function nS(n){if(!n)return null;for(let i=n.parent;i;i=i.parent){const e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(i);return(r?r.module.injector:e).get(n)}function Xu(n,i,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Go(i);return n.children.forEach(c=>{(function iS(n,i,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,c=i?i.value:null,f=e?e.getContext(n.value.outlet):null;if(c&&s.routeConfig===c.routeConfig){const g=function rS(n,i,e){if("function"==typeof e)return e(n,i);switch(e){case"pathParamsChange":return!Fa(n.url,i.url);case"pathParamsOrQueryParamsChange":return!Fa(n.url,i.url)||!po(n.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!eg(n,i)||!po(n.queryParams,i.queryParams);default:return!eg(n,i)}}(c,s,s.routeConfig.runGuardsAndResolvers);g?o.canActivateChecks.push(new Fy(r)):(s.data=c.data,s._resolvedData=c._resolvedData),Xu(n,i,s.component?f?f.children:null:e,r,o),g&&f&&f.outlet&&f.outlet.isActivated&&o.canDeactivateChecks.push(new ug(f.outlet.component,c))}else c&&Qs(i,f,o),o.canActivateChecks.push(new Fy(r)),Xu(n,null,s.component?f?f.children:null:e,r,o)})(c,s[c.value.outlet],e,r.concat([c.value]),o),delete s[c.value.outlet]}),Dr(s,(c,f)=>Qs(c,e.getContext(f),o)),o}function Qs(n,i,e){const r=Go(n),o=n.value;Dr(r,(s,c)=>{Qs(s,o.component?i?i.children.getContext(c):null:i,e)}),e.canDeactivateChecks.push(new ug(o.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,o))}class oS{}function n0(n){return new Yn.y(i=>i.error(n))}class aS{constructor(i,e,r,o,s,c){this.rootComponentType=i,this.config=e,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=c}recognize(){const i=ag(this.urlTree.root,[],[],this.config.filter(c=>void 0===c.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,i,Tn);if(null===e)return null;const r=new $u([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Tn,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new To(r,e),s=new Uh(this.url,o);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(i){const e=i.value,r=Qp(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),i.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(i,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(i,e):this.processSegment(i,e,e.segments,r)}processChildren(i,e){const r=[];for(const s of Object.keys(e.children)){const c=e.children[s],f=ky(i,s),g=this.processSegmentGroup(f,c,s);if(null===g)return null;r.push(...g)}const o=Hy(r);return function cs(n){n.sort((i,e)=>i.value.outlet===Tn?-1:e.value.outlet===Tn?1:i.value.outlet.localeCompare(e.value.outlet))}(o),o}processSegment(i,e,r,o){for(const s of i){const c=this.processSegmentAgainstRoute(s,e,r,o);if(null!==c)return c}return Ry(e,r,o)?[]:null}processSegmentAgainstRoute(i,e,r,o){if(i.redirectTo||!Ny(i,e,r,o))return null;let s,c=[],f=[];if("**"===i.path){const R=r.length>0?Hu(r).parameters:{};s=new $u(r,R,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,r0(i),mo(i),i.component,i,jy(e),Vy(e)+r.length,Zy(i))}else{const R=Zh(e,i,r);if(!R.matched)return null;c=R.consumedSegments,f=R.remainingSegments,s=new $u(c,R.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,r0(i),mo(i),i.component,i,jy(e),Vy(e)+c.length,Zy(i))}const g=function lS(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(i),{segmentGroup:v,slicedSegments:T}=ag(e,c,f,g.filter(R=>void 0===R.redirectTo),this.relativeLinkResolution);if(0===T.length&&v.hasChildren()){const R=this.processChildren(g,v);return null===R?null:[new To(s,R)]}if(0===g.length&&0===T.length)return[new To(s,[])];const D=mo(i)===o,M=this.processSegment(g,v,T,D?Tn:o);return null===M?null:[new To(s,M)]}}function Uy(n){const i=n.value.routeConfig;return i&&""===i.path&&void 0===i.redirectTo}function Hy(n){const i=[],e=new Set;for(const r of n){if(!Uy(r)){i.push(r);continue}const o=i.find(s=>r.value.routeConfig===s.value.routeConfig);void 0!==o?(o.children.push(...r.children),e.add(o)):i.push(r)}for(const r of e){const o=Hy(r.children);i.push(new To(r.value,o))}return i.filter(r=>!e.has(r))}function jy(n){let i=n;for(;i._sourceSegment;)i=i._sourceSegment;return i}function Vy(n){let i=n,e=i._segmentIndexShift?i._segmentIndexShift:0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift?i._segmentIndexShift:0;return e-1}function r0(n){return n.data||{}}function Zy(n){return n.resolve||{}}function o0(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function ed(n){return En(i=>{const e=n(i);return e?(0,qi.D)(e).pipe((0,Le.U)(()=>i)):ut(i)})}class dS extends class zy{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}{}const Wh=new t.OlP("ROUTES");class Xs{constructor(i,e,r,o){this.injector=i,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=o}load(i,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const o=this.loadModuleFactory(e.loadChildren).pipe((0,Le.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const c=s.create(i);return new ig(Uu(c.injector.get(Wh,void 0,t.XFs.Self|t.XFs.Optional)).map(sg),c)}),vt(s=>{throw e._loader$=void 0,s}));return e._loader$=new Rc(o,()=>new ft.x).pipe(kh()),e._loader$}loadModuleFactory(i){return gr(i()).pipe((0,Gi.z)(e=>e instanceof t.YKP?ut(e):(0,qi.D)(this.compiler.compileModuleAsync(e))))}}class $y{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,e){return i}}function a0(n){throw n}function Fk(n,i,e){return i.parse("/")}function l0(n,i){return ut(null)}const Lk={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hg={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ht=(()=>{class n{constructor(e,r,o,s,c,f,g){this.rootComponentType=e,this.urlSerializer=r,this.rootContexts=o,this.location=s,this.config=g,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ft.x,this.errorHandler=a0,this.malformedUriErrorHandler=Fk,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:l0,afterPreactivation:l0},this.urlHandlingStrategy=new $y,this.routeReuseStrategy=new dS,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=c.get(t.h0i),this.console=c.get(t.c2e);const D=c.get(t.R0b);this.isNgZoneEnabled=D instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(g),this.currentUrlTree=function Hc(){return new as(new vn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Xs(c,f,M=>this.triggerEvent(new Na(M)),M=>this.triggerEvent(new Hp(M))),this.routerState=Vc(this.currentUrlTree,this.rootComponentType),this.transitions=new xi({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 e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const r=this.events;return e.pipe(Yt(o=>0!==o.id),(0,Le.U)(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),En(o=>{let s=!1,c=!1;return ut(o).pipe(gi(f=>{this.currentNavigation={id:f.id,initialUrl:f.currentRawUrl,extractedUrl:f.extractedUrl,trigger:f.source,extras:f.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),En(f=>{const g=this.browserUrlTree.toString(),v=!this.navigated||f.extractedUrl.toString()!==g||g!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||v)&&this.urlHandlingStrategy.shouldProcessUrl(f.rawUrl))return fg(f.source)&&(this.browserUrlTree=f.extractedUrl),ut(f).pipe(En(D=>{const M=this.transitions.getValue();return r.next(new $s(D.id,this.serializeUrl(D.extractedUrl),D.source,D.restoredState)),M!==this.transitions.getValue()?Zr.E:Promise.resolve(D)}),function XT(n,i,e,r){return En(o=>function t0(n,i,e,r,o){return new QT(n,i,e,r,o).apply()}(n,i,e,o.extractedUrl,r).pipe((0,Le.U)(s=>Object.assign(Object.assign({},o),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),gi(D=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:D.urlAfterRedirects})}),function cS(n,i,e,r,o){return(0,Gi.z)(s=>function sS(n,i,e,r,o="emptyOnly",s="legacy"){try{const c=new aS(n,i,e,r,o,s).recognize();return null===c?n0(new oS):ut(c)}catch(c){return n0(c)}}(n,i,s.urlAfterRedirects,e(s.urlAfterRedirects),r,o).pipe((0,Le.U)(c=>Object.assign(Object.assign({},s),{targetSnapshot:c}))))}(this.rootComponentType,this.config,D=>this.serializeUrl(D),this.paramsInheritanceStrategy,this.relativeLinkResolution),gi(D=>{if("eager"===this.urlUpdateStrategy){if(!D.extras.skipLocationChange){const R=this.urlHandlingStrategy.merge(D.urlAfterRedirects,D.rawUrl);this.setBrowserUrl(R,D)}this.browserUrlTree=D.urlAfterRedirects}const M=new Lc(D.id,this.serializeUrl(D.extractedUrl),this.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);r.next(M)}));if(v&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:M,extractedUrl:R,source:K,restoredState:fe,extras:Me}=f,Fe=new $s(M,this.serializeUrl(R),K,fe);r.next(Fe);const qe=Vc(R,this.rootComponentType).snapshot;return ut(Object.assign(Object.assign({},f),{targetSnapshot:qe,urlAfterRedirects:R,extras:Object.assign(Object.assign({},Me),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=f.rawUrl,f.resolve(null),Zr.E}),ed(f=>{const{targetSnapshot:g,id:v,extractedUrl:T,rawUrl:D,extras:{skipLocationChange:M,replaceUrl:R}}=f;return this.hooks.beforePreactivation(g,{navigationId:v,appliedUrlTree:T,rawUrlTree:D,skipLocationChange:!!M,replaceUrl:!!R})}),gi(f=>{const g=new Gp(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);this.triggerEvent(g)}),(0,Le.U)(f=>Object.assign(Object.assign({},f),{guards:eS(f.targetSnapshot,f.currentSnapshot,this.rootContexts)})),function Ks(n,i){return(0,Gi.z)(e=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:c}}=e;return 0===c.length&&0===s.length?ut(Object.assign(Object.assign({},e),{guardsResult:!0})):function Ok(n,i,e,r){return(0,qi.D)(n).pipe((0,Gi.z)(o=>function Gy(n,i,e,r,o){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ut(s.map(f=>{const g=dg(f,i,o);let v;if(function Q_(n){return n&&Ba(n.canDeactivate)}(g))v=gr(g.canDeactivate(n,i,e,r));else{if(!Ba(g))throw new Error("Invalid CanDeactivate guard");v=gr(g(n,i,e,r))}return v.pipe(zs())})).pipe(rg()):ut(!0)}(o.component,o.route,e,i,r)),zs(o=>!0!==o,!0))}(c,r,o,n).pipe((0,Gi.z)(f=>f&&function Ay(n){return"boolean"==typeof n}(f)?function kk(n,i,e,r){return(0,qi.D)(i).pipe(ss(o=>Lo(function Pk(n,i){return null!==n&&i&&i(new G_(n)),ut(!0)}(o.route.parent,r),function Ly(n,i){return null!==n&&i&&i(new U_(n)),ut(!0)}(o.route,r),function Nk(n,i,e){const r=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(c=>function tS(n){const i=n.routeConfig?n.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:n,guards:i}:null}(c)).filter(c=>null!==c).map(c=>rs(()=>ut(c.guards.map(g=>{const v=dg(g,c.node,e);let T;if(function J_(n){return n&&Ba(n.canActivateChild)}(v))T=gr(v.canActivateChild(r,n));else{if(!Ba(v))throw new Error("Invalid CanActivateChild guard");T=gr(v(r,n))}return T.pipe(zs())})).pipe(rg())));return ut(s).pipe(rg())}(n,o.path,e),function By(n,i,e){const r=i.routeConfig?i.routeConfig.canActivate:null;if(!r||0===r.length)return ut(!0);const o=r.map(s=>rs(()=>{const c=dg(s,i,e);let f;if(function Mk(n){return n&&Ba(n.canActivate)}(c))f=gr(c.canActivate(i,n));else{if(!Ba(c))throw new Error("Invalid CanActivate guard");f=gr(c(i,n))}return f.pipe(zs())}));return ut(o).pipe(rg())}(n,o.route,e))),zs(o=>!0!==o,!0))}(r,s,n,i):ut(f)),(0,Le.U)(f=>Object.assign(Object.assign({},e),{guardsResult:f})))})}(this.ngModule.injector,f=>this.triggerEvent(f)),gi(f=>{if(Ju(f.guardsResult)){const v=Gc(`Redirecting to "${this.serializeUrl(f.guardsResult)}"`);throw v.url=f.guardsResult,v}const g=new Up(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot,!!f.guardsResult);this.triggerEvent(g)}),Yt(f=>!!f.guardsResult||(this.restoreHistory(f),this.cancelNavigationTransition(f,""),!1)),ed(f=>{if(f.guards.canActivateChecks.length)return ut(f).pipe(gi(g=>{const v=new pr(g.id,this.serializeUrl(g.extractedUrl),this.serializeUrl(g.urlAfterRedirects),g.targetSnapshot);this.triggerEvent(v)}),En(g=>{let v=!1;return ut(g).pipe(function uS(n,i){return(0,Gi.z)(e=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=e;if(!o.length)return ut(e);let s=0;return(0,qi.D)(o).pipe(ss(c=>function mn(n,i,e,r){return function Wy(n,i,e,r){const o=o0(n);if(0===o.length)return ut({});const s={};return(0,qi.D)(o).pipe((0,Gi.z)(c=>function qy(n,i,e,r){const o=dg(n,i,r);return gr(o.resolve?o.resolve(i,e):o(i,e))}(n[c],i,e,r).pipe(gi(f=>{s[c]=f}))),Fc(1),(0,Gi.z)(()=>o0(s).length===o.length?ut(s):Zr.E))}(n._resolve,n,i,r).pipe((0,Le.U)(s=>(n._resolvedData=s,n.data=Object.assign(Object.assign({},n.data),Qp(n,e).resolve),null)))}(c.route,r,n,i)),gi(()=>s++),Fc(1),(0,Gi.z)(c=>s===o.length?ut(e):Zr.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),gi({next:()=>v=!0,complete:()=>{v||(this.restoreHistory(g),this.cancelNavigationTransition(g,"At least one route resolver didn't emit any value."))}}))}),gi(g=>{const v=new Bc(g.id,this.serializeUrl(g.extractedUrl),this.serializeUrl(g.urlAfterRedirects),g.targetSnapshot);this.triggerEvent(v)}))}),ed(f=>{const{targetSnapshot:g,id:v,extractedUrl:T,rawUrl:D,extras:{skipLocationChange:M,replaceUrl:R}}=f;return this.hooks.afterPreactivation(g,{navigationId:v,appliedUrlTree:T,rawUrlTree:D,skipLocationChange:!!M,replaceUrl:!!R})}),(0,Le.U)(f=>{const g=function Zc(n,i,e){const r=jh(n,i._root,e?e._root:void 0);return new Tl(r,i)}(this.routeReuseStrategy,f.targetSnapshot,f.currentRouterState);return Object.assign(Object.assign({},f),{targetRouterState:g})}),gi(f=>{this.currentUrlTree=f.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl),this.routerState=f.targetRouterState,"deferred"===this.urlUpdateStrategy&&(f.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,f),this.browserUrlTree=f.urlAfterRedirects)}),((n,i,e)=>(0,Le.U)(r=>(new Js(i,r.targetRouterState,r.currentRouterState,e).activate(n),r)))(this.rootContexts,this.routeReuseStrategy,f=>this.triggerEvent(f)),gi({next(){s=!0},complete(){s=!0}}),fo(()=>{var f;s||c||this.cancelNavigationTransition(o,`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`),(null===(f=this.currentNavigation)||void 0===f?void 0:f.id)===o.id&&(this.currentNavigation=null)}),vt(f=>{if(c=!0,function j_(n){return n&&n[Gu]}(f)){const g=Ju(f.url);g||(this.navigated=!0,this.restoreHistory(o,!0));const v=new Rh(o.id,this.serializeUrl(o.extractedUrl),f.message);r.next(v),g?setTimeout(()=>{const T=this.urlHandlingStrategy.merge(f.url,this.rawUrlTree),D={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||fg(o.source)};this.scheduleNavigation(T,"imperative",null,D,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const g=new Pr(o.id,this.serializeUrl(o.extractedUrl),f);r.next(g);try{o.resolve(this.errorHandler(f))}catch(v){o.reject(v)}}return Zr.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var o;const s={replaceUrl:!0},c=(null===(o=e.state)||void 0===o?void 0:o.navigationId)?e.state:null;if(c){const g=Object.assign({},c);delete g.navigationId,delete g.\u0275routerPageId,0!==Object.keys(g).length&&(s.state=g)}const f=this.parseUrl(e.url);this.scheduleNavigation(f,r,c,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Iy(e),this.config=e.map(sg),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(e,r={}){const{relativeTo:o,queryParams:s,fragment:c,queryParamsHandling:f,preserveFragment:g}=r,v=o||this.routerState.root,T=g?this.currentUrlTree.fragment:c;let D=null;switch(f){case"merge":D=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":D=this.currentUrlTree.queryParams;break;default:D=s||null}return null!==D&&(D=this.removeEmptyProps(D)),function UT(n,i,e,r,o){if(0===e.length)return Sl(i.root,i.root,i.root,r,o);const s=function HT(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new wy(!0,0,n);let i=0,e=!1;const r=n.reduce((o,s,c)=>{if("object"==typeof s&&null!=s){if(s.outlets){const f={};return Dr(s.outlets,(g,v)=>{f[v]="string"==typeof g?g.split("/"):g}),[...o,{outlets:f}]}if(s.segmentPath)return[...o,s.segmentPath]}return"string"!=typeof s?[...o,s]:0===c?(s.split("/").forEach((f,g)=>{0==g&&"."===f||(0==g&&""===f?e=!0:".."===f?i++:""!=f&&o.push(f))}),o):[...o,s]},[]);return new wy(e,i,r)}(e);if(s.toRoot())return Sl(i.root,i.root,new vn([],{}),r,o);const c=function jT(n,i,e){if(n.isAbsolute)return new $_(i.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new $_(s,s===i.root,0)}const r=tg(n.commands[0])?0:1;return function VT(n,i,e){let r=n,o=i,s=e;for(;s>o;){if(s-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new $_(r,!1,o-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+r,n.numberOfDoubleDots)}(s,i,n),f=c.processChildren?ng(c.segmentGroup,c.index,s.commands):Sy(c.segmentGroup,c.index,s.commands);return Sl(i.root,c.segmentGroup,f,r,o)}(v,this.currentUrlTree,e,D,null!=T?T:null)}navigateByUrl(e,r={skipLocationChange:!1}){const o=Ju(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,r)}navigate(e,r={skipLocationChange:!1}){return function c0(n){for(let i=0;i{const s=e[o];return null!=s&&(r[o]=s),r},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Pa(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,r,o,s,c){var f,g;if(this.disposed)return Promise.resolve(!1);let v,T,D;c?(v=c.resolve,T=c.reject,D=c.promise):D=new Promise((K,fe)=>{v=K,T=fe});const M=++this.navigationId;let R;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),R=o&&o.\u0275routerPageId?o.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(f=this.browserPageId)&&void 0!==f?f:0:(null!==(g=this.browserPageId)&&void 0!==g?g:0)+1):R=0,this.setTransition({id:M,targetPageId:R,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:v,reject:T,promise:D,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),D.catch(K=>Promise.reject(K))}setBrowserUrl(e,r){const o=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",s):this.location.go(o,"",s)}restoreHistory(e,r=!1){var o,s;if("computed"===this.canceledNavigationResolution){const c=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===c?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===c&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(c)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,r){const o=new Rh(e.id,this.serializeUrl(e.extractedUrl),r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return n.\u0275fac=function(e){t.$Z()},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();function fg(n){return"imperative"!==n}let ea=(()=>{class n{constructor(e,r,o,s,c){this.router=e,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=c,this.commands=null,this.onChanges=new ft.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const r=this.renderer,o=this.el.nativeElement;null!==e?r.setAttribute(o,"tabindex",e):r.removeAttribute(o,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:td(this.skipLocationChange),replaceUrl:td(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:td(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht),t.Y36(mr),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,r){1&e&&t.NdJ("click",function(){return r.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),n})(),ds=(()=>{class n{constructor(e,r,o){this.router=e,this.route=r,this.locationStrategy=o,this.commands=null,this.href=null,this.onChanges=new ft.x,this.subscription=e.events.subscribe(s=>{s instanceof Pa&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,r,o,s,c){if(0!==e||r||o||s||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const f={skipLocationChange:td(this.skipLocationChange),replaceUrl:td(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,f),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:td(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht),t.Y36(mr),t.Y36(me))},n.\u0275dir=t.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,r){1&e&&t.NdJ("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&t.uIk("target",r.target)("href",r.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),n})();function td(n){return""===n||!!n}class Yy{}class pS{preload(i,e){return ut(null)}}let Qy=(()=>{class n{constructor(e,r,o,s){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=new Xs(o,r,g=>e.triggerEvent(new Na(g)),g=>e.triggerEvent(new Hp(g)))}setUpPreloading(){this.subscription=this.router.events.pipe(Yt(e=>e instanceof Pa),ss(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(t.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const o=[];for(const s of r)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const c=s._loadedConfig;o.push(this.processRoutes(c.module,c.routes))}else s.loadChildren&&!s.canLoad?o.push(this.preloadConfig(e,s)):s.children&&o.push(this.processRoutes(e,s.children));return(0,qi.D)(o).pipe((0,yl.J)(),(0,Le.U)(s=>{}))}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?ut(r._loadedConfig):this.loader.load(e.injector,r)).pipe((0,Gi.z)(s=>(r._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ht),t.LFG(t.Sil),t.LFG(t.zs3),t.LFG(Yy))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ky=(()=>{class n{constructor(e,r,o={}){this.router=e,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.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(e=>{e instanceof $s?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Pa&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Zp&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.router.triggerEvent(new Zp(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){t.$Z()},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const Dl=new t.OlP("ROUTER_CONFIGURATION"),Xy=new t.OlP("ROUTER_FORROOT_GUARD"),u0=[et,{provide:Bh,useClass:Gh},{provide:Ht,useFactory:function jk(n,i,e,r,o,s,c={},f,g){const v=new Ht(null,n,i,e,r,o,Uu(s));return f&&(v.urlHandlingStrategy=f),g&&(v.routeReuseStrategy=g),function Vk(n,i){n.errorHandler&&(i.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(i.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(i.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(i.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(i.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(i.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(i.canceledNavigationResolution=n.canceledNavigationResolution)}(c,v),c.enableTracing&&v.events.subscribe(T=>{var D,M;null===(D=console.group)||void 0===D||D.call(console,`Router Event: ${T.constructor.name}`),console.log(T.toString()),console.log(T),null===(M=console.groupEnd)||void 0===M||M.call(console)}),v},deps:[Bh,Qu,et,t.zs3,t.Sil,Wh,Dl,[class s0{},new t.FiY],[class us{},new t.FiY]]},Qu,{provide:mr,useFactory:function Zk(n){return n.routerState.root},deps:[Ht]},Qy,pS,class Jy{preload(i,e){return e().pipe(vt(()=>ut(null)))}},{provide:Dl,useValue:{enableTracing:!1}}];function Bk(){return new t.PXZ("Router",Ht)}let mS=(()=>{class n{constructor(e,r){}static forRoot(e,r){return{ngModule:n,providers:[u0,_S(e),{provide:Xy,useFactory:Hk,deps:[[Ht,new t.FiY,new t.tp0]]},{provide:Dl,useValue:r||{}},{provide:me,useFactory:Uk,deps:[Ie,[new t.tBr(pe),new t.FiY],Dl]},{provide:Ky,useFactory:Gk,deps:[Ht,C_,Dl]},{provide:Yy,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:pS},{provide:t.PXZ,multi:!0,useFactory:Bk},[ex,{provide:t.ip1,multi:!0,useFactory:El,deps:[ex]},{provide:tx,useFactory:d0,deps:[ex]},{provide:t.tb,multi:!0,useExisting:tx}]]}}static forChild(e){return{ngModule:n,providers:[_S(e)]}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Xy,8),t.LFG(Ht,8))},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();function Gk(n,i,e){return e.scrollOffset&&i.setOffset(e.scrollOffset),new Ky(n,i,e)}function Uk(n,i,e={}){return e.useHash?new Ve(n,i):new De(n,i)}function Hk(n){return"guarded"}function _S(n){return[{provide:t.deG,multi:!0,useValue:n},{provide:Wh,multi:!0,useValue:n}]}let ex=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ft.x}appInitializer(){return this.injector.get(te,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const o=new Promise(f=>r=f),s=this.injector.get(Ht),c=this.injector.get(Dl);return"disabled"===c.initialNavigation?(s.setUpLocationChangeListener(),r(!0)):"enabled"===c.initialNavigation||"enabledBlocking"===c.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?ut(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),s.initialNavigation()):r(!0),o})}bootstrapListener(e){const r=this.injector.get(Dl),o=this.injector.get(Qy),s=this.injector.get(Ky),c=this.injector.get(Ht),f=this.injector.get(t.z2F);e===f.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&c.initialNavigation(),o.setUpPreloading(),s.init(),c.resetRootComponentType(f.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();function El(n){return n.appInitializer.bind(n)}function d0(n){return n.bootstrapListener.bind(n)}const tx=new t.OlP("Router Initializer");var Ti=P(7582);class h0{constructor(){this.email="",this.password="",this.gameToken="",this.code=""}}var xn=(()=>{return(n=xn||(xn={})).success="success",n.error="error",xn;var n})();const ce={production:!0,version:"2.1",buildTimestamp:"2023-07-20T11:18:57.727Z",apiEndPoint:"https://api.lastletterfirst.com/",webBaseUrl:"https://app.lastletterfirst.com/",userProfile:"LLFUserProfile",noInternetImgSrc:"noInternetImgSrc",gameId:"game",BROADCAST_URL:"push.lastletterfirst.com",BROADCAST_PORT:"443",googleToken:"googleToken",language:"language",showTechInfo:"techInfo",firebase:{apiKey:"AIzaSyAur9rvpDrT7LtvYPh0EPxYIjo5DLhKPDM",authDomain:"llf-qa01.firebaseapp.com",databaseURL:"https://llf-qa01.firebaseio.com",projectId:"llf-qa01",storageBucket:"llf-qa01.appspot.com",messagingSenderId:"829904516854",appId:"1:829904516854:web:1507b799d2c98f4e92ded7"}};class f0{constructor(){this.userId="",this.tokenId="",this.displayName="",this.imageUrl="",this.email="",this.firstName="",this.lastName=""}}class rx{constructor(){this.userId="",this.tokenId="",this.displayName="",this.email="",this.imageUrl="",this.firstName="",this.lastName="",this.code=""}}function qh(n){this.message=n}(qh.prototype=new Error).name="InvalidCharacterError";var ox="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var i=String(n).replace(/=+$/,"");if(i.length%4==1)throw new qh("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,o=0,s=0,c="";r=i.charAt(s++);~r&&(e=o%4?64*e+r:r,o++%4)?c+=String.fromCharCode(255&e>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return c};function pg(n){this.message=n}(pg.prototype=new Error).name="InvalidTokenError";const nd=function vS(n,i){if("string"!=typeof n)throw new pg("Invalid token specified");var e=!0===(i=i||{}).header?0:1;try{return JSON.parse(function sx(n){var i=n.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(ox(i).replace(/(.)/g,function(r,o){var s=o.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}catch(e){return ox(i)}}(n.split(".")[e]))}catch(r){throw new pg("Invalid token specified: "+r.message)}};class qc{constructor(){this.email=""}}class to{constructor(){this.main=ce.apiEndPoint,this.HomePing=this.main,this.Login=this.main+"auth/login",this.SignUp=this.main+"auth/signup",this.Search=this.main+"games/search",this.StartGame=this.main+"games/resume-game",this.createGame=this.main+"games/create-game",this.SubmitScore=this.main+"games/update-game-data",this.ForgotPassword=this.main+"auth/forgotpassword",this.GetForgotPasswordEmail=this.main+"auth/getforgotpasswordemail",this.ResetPassword=this.main+"auth/resetpassword",this.Spelling=this.main+"games/spelling",this.ChangePassword=this.main+"auth/changepassword",this.Logout=this.main+"auth/logout",this.AccountDetail=this.main+"auth/account-detail",this.ProfileImageUpload=this.main+"auth/profile-image-upload",this.gamePlayersList=this.main+"games/game-players-list",this.RunnigGame=this.main+"games/game-list",this.IsUserTurn=this.main+"games/userturn-game",this.ResumeGame=this.main+"games/start-game",this.JoinGame=this.main+"games/join-to-game",this.GoogleSignIn=this.main+"auth/signin/gmail",this.FacebookSignIn=this.main+"auth/signin/facebook",this.ScoreBoard=this.main+"games/dashboard-scoreboard",this.EditUserData=this.main+"auth/edituserdata",this.ActivateAccount=this.main+"auth/activateaccount",this.EmailUnsubscribed=this.main+"auth/emailUnsubscribed",this.CheckEmailUnsubscribed=this.main+"auth/checkEmailUnsubscribed",this.UpdateBirthdate=this.main+"auth/updateBirthdate",this.insertFCMDeviceId=this.main+"auth/insertFCMDeviceId",this.removeFCMDeviceId=this.main+"auth/removeFCMDeviceId",this.getFAQ=this.main+"games/faq",this.getPrivacyPolicy=this.main+"games/privacy-policy",this.getTermsOfService=this.main+"games/terms-of-service",this.getPlayedUsers=this.main+"games/played-users-list",this.feedback=this.main+"auth/sendFeedback",this.getFeedbackType=this.main+"auth/getFeedbackTypeList",this.changeMode=this.main+"auth/updateGameAdvanceMode",this.getTheme=this.main+"auth/getThemes",this.updateTheme=this.main+"auth/updateTheme",this.Check=this.main+"general/check",this.endGame=this.main+"games/end-game",this.languageList=this.main+"auth/getLanguageList",this.updateLanguage=this.main+"auth/updateLanguageList",this.checkThirdPartyLoginEnabled=this.main+"auth/checkThirdPartyLoginEnabled",this.getInfo=this.main+"auth/getInfo",this.removeInfo=this.main+"auth/removeInfo",this.removeAppNoticeInfo=this.main+"games/removeAppNoticeInfo",this.getAppNoticeInfo=this.main+"games/getAppNoticeInfo",this.hindiGame=this.main+"games/update-hindi-game-data",this.gameScoreboard=this.main+"games/game-scoreboard",this.getTechInfo=this.main+"auth/getTechInfo",this.getScoreboard=this.main+"games/scoreboard",this.getBadges=this.main+"games/get-badges",this.gameStart=this.main+"games/game-start",this.uninvitedPlayerJoin=this.main+"auth/store-unregistered-user",this.allowUninvitedPlayer=this.main+"games/allow-uninvited-user",this.allowPlayerViaGameCode=this.main+"games/allow-player",this.poke=this.main+"games/poke-player",this.getFooterDetail=this.main+"auth/getUpdatedUserProfile",this.gameStatistics=this.main+"auth/getGameStatistics",this.getGameInfo=this.main+"games/gameInfoOnHomePage",this.updateScoreTheGame=this.main+"games/updateScoreTheGame",this.updateTheGame=this.main+"games/updateTheGame",this.getScoreHints=this.main+"games/score-hints",this.getPreRegisteredImages=this.main+"auth/get-preregistered-Images",this.updateGameNotification=this.main+"games/updateGameNotification",this.deleteAccount=this.main+"auth/deleteAccount",this.getProfilePicture=this.main+"auth/getProfilePicture",this.appleSignIn=this.main+"auth/signin/apple",this.verifyAndroidReceipt=this.main+"auth/receipt-validator",this.verifyIosReceipt=this.main+"auth/ios-receipt-validator",this.getPurchasePro=this.main+"auth/get-purchase-products",this.setPurchaseProduct=this.main+"auth/store-purchase-product"}}class zc{}class id{}class ai{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const o=e.slice(0,r),s=o.toLowerCase(),c=e.slice(r+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(c):this.headers.set(s,[c])}})}:()=>{this.headers=new Map,Object.keys(i).forEach(e=>{let r=i[e];const o=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof ai?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new ai;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ai?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let r=i.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(i.name,e);const o=("a"===i.op?this.headers.get(e):void 0)||[];o.push(...r),this.headers.set(e,o);break;case"d":const s=i.value;if(s){let c=this.headers.get(e);if(!c)return;c=c.filter(f=>-1===s.indexOf(f)),0===c.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,c)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class bS{encodeKey(i){return gg(i)}encodeValue(i){return gg(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const lx=/%(\d[a-f0-9])/gi,p0={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function gg(n){return encodeURIComponent(n).replace(lx,(i,e)=>{var r;return null!==(r=p0[e])&&void 0!==r?r:i})}function g0(n){return`${n}`}class hs{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new bS,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ax(n,i){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[c,f]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],g=e.get(c)||[];g.push(f),e.set(c,g)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const r=i.fromObject[e];this.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(r=>{const o=i[r];Array.isArray(o)?o.forEach(s=>{e.push({param:r,value:s,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new hs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(g0(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let r=this.map.get(i.param)||[];const o=r.indexOf(g0(i.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(i.param,r):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class cx{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function m0(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function _0(n){return"undefined"!=typeof Blob&&n instanceof Blob}function ux(n){return"undefined"!=typeof FormData&&n instanceof FormData}class zh{constructor(i,e,r,o){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function qk(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,s=o):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new ai),this.context||(this.context=new cx),this.params){const c=this.params.toString();if(0===c.length)this.urlWithParams=e;else{const f=e.indexOf("?");this.urlWithParams=e+(-1===f?"?":fM.set(R,i.setHeaders[R]),v)),i.setParams&&(T=Object.keys(i.setParams).reduce((M,R)=>M.set(R,i.setParams[R]),T)),new zh(r,o,c,{params:T,headers:v,context:D,reportProgress:g,responseType:s,withCredentials:f})}}var cr=(()=>((cr=cr||{})[cr.Sent=0]="Sent",cr[cr.UploadProgress=1]="UploadProgress",cr[cr.ResponseHeader=2]="ResponseHeader",cr[cr.DownloadProgress=3]="DownloadProgress",cr[cr.Response=4]="Response",cr[cr.User=5]="User",cr))();class no{constructor(i,e=200,r="OK"){this.headers=i.headers||new ai,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||r,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class v0 extends no{constructor(i={}){super(i),this.type=cr.ResponseHeader}clone(i={}){return new v0({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class rd extends no{constructor(i={}){super(i),this.type=cr.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new rd({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class yS extends no{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function hx(n,i){return{body:i,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Ar=(()=>{class n{constructor(e){this.handler=e}request(e,r,o={}){let s;if(e instanceof zh)s=e;else{let g,v;g=o.headers instanceof ai?o.headers:new ai(o.headers),o.params&&(v=o.params instanceof hs?o.params:new hs({fromObject:o.params})),s=new zh(e,r,void 0!==o.body?o.body:null,{headers:g,context:o.context,params:v,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const c=ut(s).pipe(ss(g=>this.handler.handle(g)));if(e instanceof zh||"events"===o.observe)return c;const f=c.pipe(Yt(g=>g instanceof rd));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return f.pipe((0,Le.U)(g=>{if(null!==g.body&&!(g.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return g.body}));case"blob":return f.pipe((0,Le.U)(g=>{if(null!==g.body&&!(g.body instanceof Blob))throw new Error("Response is not a Blob.");return g.body}));case"text":return f.pipe((0,Le.U)(g=>{if(null!==g.body&&"string"!=typeof g.body)throw new Error("Response is not a string.");return g.body}));default:return f.pipe((0,Le.U)(g=>g.body))}case"response":return f;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new hs).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,hx(o,r))}post(e,r,o={}){return this.request("POST",e,hx(o,r))}put(e,r,o={}){return this.request("PUT",e,hx(o,r))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(zc))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();class xS{constructor(i,e){this.next=i,this.interceptor=e}handle(i){return this.interceptor.intercept(i,this.next)}}const mg=new t.OlP("HTTP_INTERCEPTORS");let b0=(()=>{class n{intercept(e,r){return r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const SS=/^\)\]\}',?\n/;let y0=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Yn.y(r=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((R,K)=>o.setRequestHeader(R,K.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const R=e.detectContentTypeHeader();null!==R&&o.setRequestHeader("Content-Type",R)}if(e.responseType){const R=e.responseType.toLowerCase();o.responseType="json"!==R?R:"text"}const s=e.serializeBody();let c=null;const f=()=>{if(null!==c)return c;const R=o.statusText||"OK",K=new ai(o.getAllResponseHeaders()),fe=function fx(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(o)||e.url;return c=new v0({headers:K,status:o.status,statusText:R,url:fe}),c},g=()=>{let{headers:R,status:K,statusText:fe,url:Me}=f(),Fe=null;204!==K&&(Fe=void 0===o.response?o.responseText:o.response),0===K&&(K=Fe?200:0);let qe=K>=200&&K<300;if("json"===e.responseType&&"string"==typeof Fe){const xt=Fe;Fe=Fe.replace(SS,"");try{Fe=""!==Fe?JSON.parse(Fe):null}catch(dt){Fe=xt,qe&&(qe=!1,Fe={error:dt,text:Fe})}}qe?(r.next(new rd({body:Fe,headers:R,status:K,statusText:fe,url:Me||void 0})),r.complete()):r.error(new yS({error:Fe,headers:R,status:K,statusText:fe,url:Me||void 0}))},v=R=>{const{url:K}=f(),fe=new yS({error:R,status:o.status||0,statusText:o.statusText||"Unknown Error",url:K||void 0});r.error(fe)};let T=!1;const D=R=>{T||(r.next(f()),T=!0);let K={type:cr.DownloadProgress,loaded:R.loaded};R.lengthComputable&&(K.total=R.total),"text"===e.responseType&&!!o.responseText&&(K.partialText=o.responseText),r.next(K)},M=R=>{let K={type:cr.UploadProgress,loaded:R.loaded};R.lengthComputable&&(K.total=R.total),r.next(K)};return o.addEventListener("load",g),o.addEventListener("error",v),o.addEventListener("timeout",v),o.addEventListener("abort",v),e.reportProgress&&(o.addEventListener("progress",D),null!==s&&o.upload&&o.upload.addEventListener("progress",M)),o.send(s),r.next({type:cr.Sent}),()=>{o.removeEventListener("error",v),o.removeEventListener("abort",v),o.removeEventListener("load",g),o.removeEventListener("timeout",v),e.reportProgress&&(o.removeEventListener("progress",D),null!==s&&o.upload&&o.upload.removeEventListener("progress",M)),o.readyState!==o.DONE&&o.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(xc))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const x0=new t.OlP("XSRF_COOKIE_NAME"),Uo=new t.OlP("XSRF_HEADER_NAME");class _g{}let DS=(()=>{class n{constructor(e,r,o){this.doc=e,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Tr(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee),t.LFG(t.Lbi),t.LFG(x0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),C0=(()=>{class n{constructor(e,r){this.tokenService=e,this.headerName=r}intercept(e,r){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(_g),t.LFG(Uo))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Kk=(()=>{class n{constructor(e,r){this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=this.injector.get(mg,[]);this.chain=r.reduceRight((o,s)=>new xS(o,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(id),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),AS=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:C0,useClass:b0}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:x0,useValue:e.cookieName}:[],e.headerName?{provide:Uo,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[C0,{provide:mg,useExisting:C0,multi:!0},{provide:_g,useClass:DS},{provide:x0,useValue:"XSRF-TOKEN"},{provide:Uo,useValue:"X-XSRF-TOKEN"}]}),n})(),MS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Ar,{provide:zc,useClass:Kk},y0,{provide:id,useExisting:y0}],imports:[[AS.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();var IS=P(7473),vg=P.n(IS),zt=P(7423);const w0=(0,zt.fo)("Network",{web:()=>P.e(203).then(P.bind(P,4203)).then(n=>new n.NetworkWeb)});var $c=(()=>{return(n=$c||($c={})).SizeChanged="bannerAdSizeChanged",n.Loaded="bannerAdLoaded",n.FailedToLoad="bannerAdFailedToLoad",n.Opened="bannerAdOpened",n.Closed="bannerAdClosed",n.AdImpression="bannerAdImpression",$c;var n})(),od=(()=>{return(n=od||(od={})).BANNER="BANNER",n.FULL_BANNER="FULL_BANNER",n.LARGE_BANNER="LARGE_BANNER",n.MEDIUM_RECTANGLE="MEDIUM_RECTANGLE",n.LEADERBOARD="LEADERBOARD",n.ADAPTIVE_BANNER="ADAPTIVE_BANNER",n.SMART_BANNER="SMART_BANNER",od;var n})();const Al=(0,zt.fo)("AdMob",{web:()=>P.e(223).then(P.bind(P,223)).then(n=>new n.AdMobWeb)});var _r=P(6451),bg=P(3099);const tP=(n,i)=>(n.push(i),n);class sd{}let S0=(()=>{class n extends sd{getTranslation(e){return ut({})}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();class yg{}let D0=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();class $h{}let ta=(()=>{class n extends $h{compile(e,r){return e}compileTranslations(e,r){return e}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();function Ml(n,i){if(n===i)return!0;if(null===n||null===i)return!1;if(n!=n&&i!=i)return!0;let o,s,c,e=typeof n;if(e==typeof i&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(i))return!1;for(s in c=Object.create(null),n){if(!Ml(n[s],i[s]))return!1;c[s]=!0}for(s in i)if(!(s in c)&&void 0!==i[s])return!1;return!0}if(!Array.isArray(i))return!1;if((o=n.length)==i.length){for(s=0;s{E0(i[r])?r in n?e[r]=kS(n[r],i[r]):Object.assign(e,{[r]:i[r]}):Object.assign(e,{[r]:i[r]})}),e}class ad{}let A0=(()=>{class n extends ad{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,r){let o;return o="string"==typeof e?this.interpolateString(e,r):"function"==typeof e?this.interpolateFunction(e,r):e,o}getValue(e,r){let o=r.split(".");r="";do{r+=o.shift(),!fs(e)||!fs(e[r])||"object"!=typeof e[r]&&o.length?o.length?r+=".":e=void 0:(e=e[r],r="")}while(o.length);return e}interpolateFunction(e,r){return e(r)}interpolateString(e,r){return r?e.replace(this.templateMatcher,(o,s)=>{let c=this.getValue(r,s);return fs(c)?c:o}):e}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();class xg{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new t.vpe,this.onLangChange=new t.vpe,this.onDefaultLangChange=new t.vpe}}const Yc=new t.OlP("USE_STORE"),M0=new t.OlP("USE_DEFAULT_LANG");let Zn=(()=>{class n{constructor(e,r,o,s,c,f=!0,g=!1){this.store=e,this.currentLoader=r,this.compiler=o,this.parser=s,this.missingTranslationHandler=c,this.useDefaultLang=f,this.isolate=g,this.pending=!1,this._onTranslationChange=new t.vpe,this._onLangChange=new t.vpe,this._onDefaultLangChange=new t.vpe,this._langs=[],this._translations={},this._translationRequests={}}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(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let r=this.retrieveTranslations(e);void 0!==r?(this.defaultLang||(this.defaultLang=e),r.pipe((0,_n.q)(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return ut(this.translations[e]);let r=this.retrieveTranslations(e);return void 0!==r?(this.currentLang||(this.currentLang=e),r.pipe((0,_n.q)(1)).subscribe(o=>{this.changeLang(e)}),r):(this.changeLang(e),ut(this.translations[e]))}retrieveTranslations(e){let r;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),r=this._translationRequests[e]),r}getTranslation(e){this.pending=!0;const r=this.currentLoader.getTranslation(e).pipe((0,bg.B)());return this.loadingTranslations=r.pipe((0,_n.q)(1),(0,Le.U)(o=>this.compiler.compileTranslations(o,e)),(0,bg.B)()),this.loadingTranslations.subscribe(o=>{this.translations[e]=o,this.updateLangs(),this.pending=!1},o=>{this.pending=!1}),r}setTranslation(e,r,o=!1){r=this.compiler.compileTranslations(r,e),this.translations[e]=o&&this.translations[e]?kS(this.translations[e],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,r,o){let s;if(r instanceof Array){let c={},f=!1;for(let g of r)c[g]=this.getParsedResult(e,g,o),"function"==typeof c[g].subscribe&&(f=!0);if(f){let g;for(let v of r){let T="function"==typeof c[v].subscribe?c[v]:ut(c[v]);g=void 0===g?T:(0,_r.T)(g,T)}return g.pipe(function OS(){return(0,Ci.e)((n,i)=>{(function T0(n,i){return(0,Ci.e)(Fp(n,i,arguments.length>=2,!1,!0))})(tP,[])(n).subscribe(i)})}(),(0,Le.U)(v=>{let T={};return v.forEach((D,M)=>{T[r[M]]=D}),T}))}return c}if(e&&(s=this.parser.interpolate(this.parser.getValue(e,r),o)),void 0===s&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),o)),void 0===s){let c={key:r,translateService:this};void 0!==o&&(c.interpolateParams=o),s=this.missingTranslationHandler.handle(c)}return void 0!==s?s:r}get(e,r){if(!fs(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return Yn.y.create(o=>{let s=f=>{o.next(f),o.complete()},c=f=>{o.error(f)};this.loadingTranslations.subscribe(f=>{"function"==typeof(f=this.getParsedResult(f,e,r)).subscribe?f.subscribe(s,c):s(f)},c)});{let o=this.getParsedResult(this.translations[this.currentLang],e,r);return"function"==typeof o.subscribe?o:ut(o)}}stream(e,r){if(!fs(e)||!e.length)throw new Error('Parameter "key" required');return Lo(this.get(e,r),this.onLangChange.pipe(En(o=>{const s=this.getParsedResult(o.translations,e,r);return"function"==typeof s.subscribe?s:ut(s)})))}instant(e,r){if(!fs(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,r);if(void 0!==o.subscribe){if(e instanceof Array){let s={};return e.forEach((c,f)=>{s[e[f]]=e[f]}),s}return e}return o}set(e,r,o=this.currentLang){this.translations[o][e]=this.compiler.compile(r,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(xg),t.LFG(sd),t.LFG($h),t.LFG(ad),t.LFG(yg),t.LFG(M0),t.LFG(Yc))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),pn=(()=>{class n{constructor(e,r){this.translate=e,this._ref=r,this.value=""}updateValue(e,r,o){let s=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(o){let c=this.translate.getParsedResult(o,e,r);"function"==typeof c.subscribe?c.subscribe(s):s(c)}this.translate.get(e,r).subscribe(s)}transform(e,...r){if(!e||0===e.length)return e;if(Ml(e,this.lastKey)&&Ml(r,this.lastParams))return this.value;let o;if(fs(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let s=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(s)}catch(c){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(o=r[0]);return this.lastKey=e,this.lastParams=r,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{this.lastKey&&s.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,s.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,s.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(Zn,16),t.Y36(t.sBO,16))},n.\u0275pipe=t.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),gx=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:sd,useClass:S0},e.compiler||{provide:$h,useClass:ta},e.parser||{provide:ad,useClass:A0},e.missingTranslationHandler||{provide:yg,useClass:D0},xg,{provide:Yc,useValue:e.isolate},{provide:M0,useValue:e.useDefaultLang},Zn]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:sd,useClass:S0},e.compiler||{provide:$h,useClass:ta},e.parser||{provide:ad,useClass:A0},e.missingTranslationHandler||{provide:yg,useClass:D0},{provide:Yc,useValue:e.isolate},{provide:M0,useValue:e.useDefaultLang},Zn]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var mi;let fn=(()=>{class n{constructor(e,r,o,s){this.http=e,this.router=r,this.translate=o,this.ngZone=s,this.sockets=[],this.isRefreshToken=!0,this.currentUrl="",this.tokenVal="",this.isiOS=!1,this.ep=new to,this.socket={},this.prevoiusUrl="",mi=this}login(e){return this.http.post(this.ep.Login,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("Login")))}register(e){return this.http.post(this.ep.SignUp,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("Register")))}IsAuthenthicated(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));return null!=e&&null!=e.apiToken}getLoggedInUser(){return JSON.parse(window.localStorage.getItem(ce.userProfile))}forgotPassword(e){return this.http.post(this.ep.ForgotPassword,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("ForgotPassword")))}getforgotpasswordemail(e){return this.http.post(this.ep.GetForgotPasswordEmail,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("Getforgotpasswordemail")))}resetPassword(e){return this.http.post(this.ep.ResetPassword,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("ResetPassword")))}googleSignIn(e){return this.http.post(this.ep.GoogleSignIn,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("GoogleSignIn")))}facebookSignIn(e){return this.http.post(this.ep.FacebookSignIn,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("FacebookSignIn")))}emailUnsubscribed(e){return this.http.post(this.ep.EmailUnsubscribed,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("EmailUnsubscribed")))}checkThirdPartyLoginEnabled(){return this.http.post(this.ep.checkThirdPartyLoginEnabled,this.setRequestHeaders()).pipe((0,Le.U)(e=>e),vt(this.handleError("checkThirdPartyLoginEnabled")))}appleLogin(e){return this.http.post(this.ep.appleSignIn,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("AppleSignIn")))}setRequestHeaders(){var e=(new Date).getTimezoneOffset();return{headers:new ai({"Content-Type":"application/json",timezoneoffsetminutes:(e=0==e?0:-e).toString()})}}getLoginInstance(e,r){this.authObj=e,this.gapiObj=r}createSocketObj(e){this.socket=new WebSocket("wss://"+ce.BROADCAST_URL+"/wss2/:"+ce.BROADCAST_PORT+"/?game="+e),this.sockets.push(this.socket)}pulltoRefresh(e,r){this.translate.get("PULLTOFREFRESH").subscribe(o=>{mi.translateObj=o,console.log(this.translateObj),vg().init({mainElement:"router-outlet",triggerElement:"#"+e,instructionsReleaseToRefresh:mi.translateObj.RELEASETXT,instructionsRefreshing:mi.translateObj.REFRESHTXT,instructionsPullToRefresh:mi.translateObj.PULLDOWNTXT,distIgnore:10,shouldPullToRefresh:()=>0===document.scrollingElement.scrollTop,onRefresh(){return(0,Ti.mG)(this,void 0,void 0,function*(){(yield w0.getStatus()).connected?mi.ngZone.run(()=>mi.router.navigateByUrl("/no-internet-connection",{skipLocationChange:!0}).then(()=>{"/newGame"!=r||"5"!=mi.getLoggedInUser().signUpType?mi.router.navigate([r]):mi.router.navigate([r],{queryParams:{game:mi.getLoggedInUser().gameCode}})})):mi.ngZone.run(()=>mi.router.navigate(["/no-internet-connection"]))})}})})}handleError(e="operation",r){return o=>((401==o.error.status||403==o.error.status)&&(window.localStorage.clear(),this.router.navigate(["/login"])),ut(r))}getFAQ(e){return this.http.post(this.ep.getFAQ,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r))}getPrivacyPolicy(e){return this.http.post(this.ep.getPrivacyPolicy,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r))}getTermsOfService(e){return this.http.post(this.ep.getTermsOfService,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r))}androidDevice(){if(/android/i.test(navigator.userAgent))return!0}iOSPhoneDevice(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream)return!0}iOSSafariDesktop(){if(/Safari/i.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)&&!/Mobi|Android/i.test(navigator.userAgent))return!0}adShow(){return(0,Ti.mG)(this,void 0,void 0,function*(){const e={adId:"ca-app-pub-7488532877697541/4832145469",adSize:od.FULL_BANNER,isTesting:!0},r=yield Al.showBanner(e).catch(o=>console.log(o));console.log(r)})}isShowAds(e,r){var o=JSON.parse(window.localStorage.getItem(ce.userProfile)),s=!1;""!=e&&""!=r&&((e!=o.isPlanSubscribed||r!=o.isExpired)&&(s=!0),o.isPlanSubscribed=e,o.isExpired=r,window.localStorage.setItem(ce.userProfile,JSON.stringify(o))),"ios"==zt.dV.getPlatform()&&1==mi.getLoggedInUser().isPlanSubscribed&&0==mi.getLoggedInUser().isExpired&&$("#footer").attr("style","height: 82px !important"),s&&null!=mi.IsAuthenthicated()&&mi.IsAuthenthicated()&&(0==mi.getLoggedInUser().isPlanSubscribed&&0==mi.getLoggedInUser().isExpired||1==mi.getLoggedInUser().isPlanSubscribed&&1==mi.getLoggedInUser().isExpired)?mi.adShow():1==mi.IsAuthenthicated()&&1==mi.getLoggedInUser().isPlanSubscribed&&0==mi.getLoggedInUser().isExpired?("ios"==zt.dV.getPlatform()&&$("#footer").attr("style","height: 82px !important"),Al.hideBanner()):0==mi.IsAuthenthicated()&&mi.adShow()}getBrowserLang(e){var r;r="en-US"==(r=""==e?navigator.language||navigator.userLanguage:e)||"en"==r||"en-IN"==r?"en":"hi-EN"==r||"hi"==r?"hi":"es-ES"==r||"es"==r?"es":"fr"==r?"fr":"en",window.localStorage.setItem(ce.language,r),this.translate.use(r)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar),t.LFG(Ht),t.LFG(Zn),t.LFG(t.R0b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Wt(n){return null!=n&&"false"!=`${n}`}function Ua(n,i=0){return function mx(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):i}function Ha(n){return Array.isArray(n)?n:[n]}function tr(n){return null==n?"":"string"==typeof n?n:`${n}px`}function ja(n){return n instanceof t.SBq?n.nativeElement:n}var ld=P(1144);const NS=["addListener","removeListener"],RS=["addEventListener","removeEventListener"],FS=["on","off"];function Si(n,i,e,r){if((0,Vr.m)(e)&&(r=e,e=void 0),r)return Si(n,i,e).pipe(Ah(r));const[o,s]=function vx(n){return(0,Vr.m)(n.addEventListener)&&(0,Vr.m)(n.removeEventListener)}(n)?RS.map(c=>f=>n[c](i,f,e)):function I0(n){return(0,Vr.m)(n.addListener)&&(0,Vr.m)(n.removeListener)}(n)?NS.map(ps(n,i)):function _x(n){return(0,Vr.m)(n.on)&&(0,Vr.m)(n.off)}(n)?FS.map(ps(n,i)):[];if(!o&&(0,ld.z)(n))return(0,Gi.z)(c=>Si(c,i,e))((0,fr.Xf)(n));if(!o)throw new TypeError("Invalid event target");return new Yn.y(c=>{const f=(...g)=>c.next(1s(f)})}function ps(n,i){return e=>r=>n[e](i,r)}class bx extends Xn.w0{constructor(i,e){super()}schedule(i,e=0){return this}}const Yh={setInterval(...n){const{delegate:i}=Yh;return((null==i?void 0:i.setInterval)||setInterval)(...n)},clearInterval(n){const{delegate:i}=Yh;return((null==i?void 0:i.clearInterval)||clearInterval)(n)},delegate:void 0};var LS=P(8737);class Cg extends bx{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(o,this.id,e),this}requestAsyncId(i,e,r=0){return Yh.setInterval(i.flush.bind(i,this),r)}recycleAsyncId(i,e,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return e;Yh.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(i,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let o,r=!1;try{this.work(i)}catch(s){r=!0,o=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,(0,LS.P)(r,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}const Jh={schedule(n){let i=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:r}=Jh;r&&(i=r.requestAnimationFrame,e=r.cancelAnimationFrame);const o=i(s=>{e=void 0,n(s)});return new Xn.w0(()=>null==e?void 0:e(o))},requestAnimationFrame(...n){const{delegate:i}=Jh;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:i}=Jh;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame)(...n)},delegate:void 0},wg={now:()=>(wg.delegate||Date).now(),delegate:void 0};class Tg{constructor(i,e=Tg.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,r){return new this.schedulerActionCtor(this,i).schedule(r,e)}}Tg.now=wg.now;class Qh extends Tg{constructor(i,e=Tg.now){super(i,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let r;this._active=!0;do{if(r=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,r){for(;i=e.shift();)i.unsubscribe();throw r}}}new class GS extends Qh{flush(i){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let r,o=-1;i=i||e.shift();const s=e.length;do{if(r=i.execute(i.state,i.delay))break}while(++o0?super.requestAsyncId(i,e,r):(i.actions.push(this),i._scheduled||(i._scheduled=Jh.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,r=0){if(null!=r&&r>0||null==r&&this.delay>0)return super.recycleAsyncId(i,e,r);0===i.actions.length&&(Jh.cancelAnimationFrame(e),i._scheduled=void 0)}});let Kh,iP=1;const Sg={};function O0(n){return n in Sg&&(delete Sg[n],!0)}const yx={setImmediate(n){const i=iP++;return Sg[i]=!0,Kh||(Kh=Promise.resolve()),Kh.then(()=>O0(i)&&n()),i},clearImmediate(n){O0(n)}},{setImmediate:gs,clearImmediate:rP}=yx,k0={setImmediate(...n){const{delegate:i}=k0;return((null==i?void 0:i.setImmediate)||gs)(...n)},clearImmediate(n){const{delegate:i}=k0;return((null==i?void 0:i.clearImmediate)||rP)(n)},delegate:void 0},Dg=new class Cx extends Qh{flush(i){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let r,o=-1;i=i||e.shift();const s=e.length;do{if(r=i.execute(i.state,i.delay))break}while(++o0?super.requestAsyncId(i,e,r):(i.actions.push(this),i._scheduled||(i._scheduled=k0.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,r=0){if(null!=r&&r>0||null==r&&this.delay>0)return super.recycleAsyncId(i,e,r);0===i.actions.length&&(k0.clearImmediate(e),i._scheduled=void 0)}}),cd=new Qh(Cg),P0=cd;var HS=P(3532);function Il(n=0,i,e=P0){let r=-1;return null!=i&&((0,HS.K)(i)?e=i:r=i),new Yn.y(o=>{let s=function R0(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;s<0&&(s=0);let c=0;return e.schedule(function(){o.closed||(o.next(c++),0<=r?this.schedule(void 0,r):o.complete())},s)})}function wx(n,i=P0){return function N0(n){return(0,Ci.e)((i,e)=>{let r=!1,o=null,s=null,c=!1;const f=()=>{if(null==s||s.unsubscribe(),s=null,r){r=!1;const v=o;o=null,e.next(v)}c&&e.complete()},g=()=>{s=null,c&&e.complete()};i.subscribe(new Kn.Q(e,v=>{r=!0,o=v,s||(0,fr.Xf)(n(v)).subscribe(s=new Kn.Q(e,f,g))},()=>{c=!0,(!r||!s||s.closed)&&e.complete()}))})}(()=>Il(n,i))}var ud=P(5032);function It(n){return(0,Ci.e)((i,e)=>{(0,fr.Xf)(n).subscribe(new Kn.Q(e,()=>e.complete(),ud.Z)),!e.closed&&i.subscribe(e)})}let F0;try{F0="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){F0=!1}let ms,vr=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?_e(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!F0)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.Lbi))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Tx=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function dd(){if(ms)return ms;if("object"!=typeof document||!document)return ms=new Set(Tx),ms;let n=document.createElement("input");return ms=new Set(Tx.filter(i=>(n.setAttribute("type",i),n.type===i))),ms}let Xh,Do,_s,hd;function Ol(n){return function jS(){if(null==Xh&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Xh=!0}))}finally{Xh=Xh||!1}return Xh}()?n:!!n.capture}function Nr(){if(null==_s){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return _s=!1,_s;if("scrollBehavior"in document.documentElement.style)_s=!0;else{const n=Element.prototype.scrollTo;_s=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return _s}function vs(){if("object"!=typeof document||!document)return 0;if(null==Do){const n=document.createElement("div"),i=n.style;n.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const e=document.createElement("div"),r=e.style;r.width="2px",r.height="1px",n.appendChild(e),document.body.appendChild(n),Do=0,0===n.scrollLeft&&(n.scrollLeft=1,Do=0===n.scrollLeft?1:2),n.remove()}return Do}function kl(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const i=n.shadowRoot.activeElement;if(i===n)break;n=i}return n}function jo(n){return n.composedPath?n.composedPath()[0]:n.target}function Pl(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const fd=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function pd(){return(0,t.f3M)(ee)}}),gd=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ui=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new t.vpe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function md(n){const i=(null==n?void 0:n.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?gd.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(fd,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})(),Eg=(()=>{class n{constructor(e,r,o){this._ngZone=e,this._platform=r,this._scrolled=new ft.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const r=this.scrollContainers.get(e);r&&(r.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Yn.y(r=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(wx(e)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ut()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(e,r){const o=this.getAncestorScrollContainers(e);return this.scrolled(r).pipe(Yt(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(e){const r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,e)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,r){let o=ja(r),s=e.getElementRef().nativeElement;do{if(o==s)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Si(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b),t.LFG(vr),t.LFG(ee,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),G0=(()=>{class n{constructor(e,r,o,s){this.elementRef=e,this.scrollDispatcher=r,this.ngZone=o,this.dir=s,this._destroyed=new ft.x,this._elementScrolled=new Yn.y(c=>this.ngZone.runOutsideAngular(()=>Si(this.elementRef.nativeElement,"scroll").pipe(It(this._destroyed)).subscribe(c)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const r=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=r.scrollHeight-r.clientHeight-e.bottom),o&&0!=vs()?(null!=e.left&&(e.right=r.scrollWidth-r.clientWidth-e.left),2==vs()?e.left=e.right:1==vs()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=r.scrollWidth-r.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const r=this.elementRef.nativeElement;Nr()?r.scrollTo(e):(null!=e.top&&(r.scrollTop=e.top),null!=e.left&&(r.scrollLeft=e.left))}measureScrollOffset(e){const r="left",o="right",s=this.elementRef.nativeElement;if("top"==e)return s.scrollTop;if("bottom"==e)return s.scrollHeight-s.clientHeight-s.scrollTop;const c=this.dir&&"rtl"==this.dir.value;return"start"==e?e=c?o:r:"end"==e&&(e=c?r:o),c&&2==vs()?e==r?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:c&&1==vs()?e==r?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==r?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(Eg),t.Y36(t.R0b),t.Y36(Ui,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Nl=(()=>{class n{constructor(e,r,o){this._platform=e,this._change=new ft.x,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,r=this._getWindow(),o=e.documentElement,s=o.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||r.scrollY||o.scrollTop||0,left:-s.left||e.body.scrollLeft||r.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(wx(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(vr),t.LFG(t.R0b),t.LFG(ee,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_d=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})(),Ag=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[Jc,_d],Jc,_d]}),n})();class U0{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;null!=i&&(this._attachedHost=null,i.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(i){this._attachedHost=i}}class Mx extends U0{constructor(i,e,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=r,this.componentFactoryResolver=o}}class vd extends U0{constructor(i,e,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=r}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}}class dP extends U0{constructor(i){super(),this.element=i instanceof t.SBq?i.nativeElement:i}}class H0{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof Mx?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof vd?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof dP?(this._attachedPortal=i,this.attachDomPortal(i)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class hP extends H0{constructor(i,e,r,o,s){super(),this.outletElement=i,this._componentFactoryResolver=e,this._appRef=r,this._defaultInjector=o,this.attachDomPortal=c=>{const f=c.element,g=this._document.createComment("dom-portal");f.parentNode.insertBefore(g,f),this.outletElement.appendChild(f),this._attachedPortal=c,super.setDisposeFn(()=>{g.parentNode&&g.parentNode.replaceChild(f,g)})},this._document=s}attachComponentPortal(i){const r=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);let o;return i.viewContainerRef?(o=i.viewContainerRef.createComponent(r,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=r.create(i.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=i,o}attachTemplatePortal(i){let e=i.viewContainerRef,r=e.createEmbeddedView(i.templateRef,i.context);return r.rootNodes.forEach(o=>this.outletElement.appendChild(o)),r.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(r);-1!==o&&e.remove(o)}),this._attachedPortal=i,r}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}}let bd=(()=>{class n extends vd{constructor(e,r){super(e,r)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc),t.Y36(t.s_b))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),n})(),Qc=(()=>{class n extends H0{constructor(e,r,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=s=>{const c=s.element,f=this._document.createComment("dom-portal");s.setAttachedHost(this),c.parentNode.insertBefore(f,c),this._getRootNode().appendChild(c),this._attachedPortal=s,super.setDisposeFn(()=>{f.parentNode&&f.parentNode.replaceChild(c,f)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const r=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=r.createComponent(s,r.length,e.injector||r.injector);return r!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(ee))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),n})(),tf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();function ra(n,...i){return i.length?i.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const Yx=Nr();class UD{constructor(i,e){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=tr(-this._previousScrollPosition.left),i.style.top=tr(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,r=i.style,o=this._document.body.style,s=r.scrollBehavior||"",c=o.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),Yx&&(r.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Yx&&(r.scrollBehavior=s,o.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,r=this._viewportRuler.getViewportSize();return e.scrollHeight>r.height||e.scrollWidth>r.width}}class HD{constructor(i,e,r,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=r,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Jx{enable(){}disable(){}attach(){}}function Og(n,i){return i.some(e=>n.bottome.bottom||n.righte.right)}function K0(n,i){return i.some(e=>n.tope.bottom||n.lefte.right)}class Qx{constructor(i,e,r,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=r,this._config=o,this._scrollSubscription=null}attach(i){this._overlayRef=i}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:r,height:o}=this._viewportRuler.getViewportSize();Og(e,[{width:r,height:o,bottom:o,right:r,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Kx=(()=>{class n{constructor(e,r,o,s){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new Jx,this.close=c=>new HD(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new UD(this._viewportRuler,this._document),this.reposition=c=>new Qx(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Eg),t.LFG(Nl),t.LFG(t.R0b),t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class lf{constructor(i){if(this.scrollStrategy=new Jx,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const e=Object.keys(i);for(const r of e)void 0!==i[r]&&(this[r]=i[r])}}}class Xx{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}}class X0{constructor(i,e,r,o,s,c,f,g,v){this._portalOutlet=i,this._host=e,this._pane=r,this._config=o,this._ngZone=s,this._keyboardDispatcher=c,this._document=f,this._location=g,this._outsideClickDispatcher=v,this._backdropElement=null,this._backdropClick=new ft.x,this._attachments=new ft.x,this._detachments=new ft.x,this._locationChanges=Xn.w0.EMPTY,this._backdropClickHandler=T=>this._backdropClick.next(T),this._backdropTransitionendHandler=T=>{this._disposeBackdrop(T.target)},this._keydownEvents=new ft.x,this._outsidePointerEvents=new ft.x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,_n.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){var i;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(i=this._host)||void 0===i||i.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=Object.assign(Object.assign({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Object.assign(Object.assign({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=tr(this._config.width),i.height=tr(this._config.height),i.minWidth=tr(this._config.minWidth),i.minHeight=tr(this._config.minHeight),i.maxWidth=tr(this._config.maxWidth),i.maxHeight=tr(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;!i||(i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500)))}_toggleClasses(i,e,r){const o=Ha(e||[]).filter(s=>!!s);o.length&&(r?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe(It((0,_r.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let Wa=(()=>{class n{constructor(e,r){this._platform=r,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Pl()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._originRect,e=this._overlayRect,r=this._viewportRect,o=this._containerRect,s=[];let c;for(let f of this._preferredPositions){let g=this._getOriginPoint(i,o,f),v=this._getOverlayPoint(g,e,f),T=this._getOverlayFit(v,e,r,f);if(T.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(f,g);this._canFitWithFlexibleDimensions(T,v,r)?s.push({position:f,origin:g,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(g,f)}):(!c||c.overlayFit.visibleAreag&&(g=T,f=v)}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Sd(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tC),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,r){let o,s;if("center"==r.originX)o=i.left+i.width/2;else{const c=this._isRtl()?i.right:i.left,f=this._isRtl()?i.left:i.right;o="start"==r.originX?c:f}return e.left<0&&(o-=e.left),s="center"==r.originY?i.top+i.height/2:"top"==r.originY?i.top:i.bottom,e.top<0&&(s-=e.top),{x:o,y:s}}_getOverlayPoint(i,e,r){let o,s;return o="center"==r.overlayX?-e.width/2:"start"===r.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==r.overlayY?-e.height/2:"top"==r.overlayY?0:-e.height,{x:i.x+o,y:i.y+s}}_getOverlayFit(i,e,r,o){const s=qD(e);let{x:c,y:f}=i,g=this._getOffset(o,"x"),v=this._getOffset(o,"y");g&&(c+=g),v&&(f+=v);let M=0-f,R=f+s.height-r.height,K=this._subtractOverflows(s.width,0-c,c+s.width-r.width),fe=this._subtractOverflows(s.height,M,R),Me=K*fe;return{visibleArea:Me,isCompletelyWithinViewport:s.width*s.height===Me,fitsInViewportVertically:fe===s.height,fitsInViewportHorizontally:K==s.width}}_canFitWithFlexibleDimensions(i,e,r){if(this._hasFlexibleDimensions){const o=r.bottom-e.y,s=r.right-e.x,c=kg(this._overlayRef.getConfig().minHeight),f=kg(this._overlayRef.getConfig().minWidth),v=i.fitsInViewportHorizontally||null!=f&&f<=s;return(i.fitsInViewportVertically||null!=c&&c<=o)&&v}return!1}_pushOverlayOnScreen(i,e,r){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const o=qD(e),s=this._viewportRect,c=Math.max(i.x+o.width-s.width,0),f=Math.max(i.y+o.height-s.height,0),g=Math.max(s.top-r.top-i.y,0),v=Math.max(s.left-r.left-i.x,0);let T=0,D=0;return T=o.width<=s.width?v||-c:i.xK&&!this._isInitialRender&&!this._growAfterOpen&&(c=i.y-K/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)M=r.width-i.x+this._viewportMargin,T=i.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)D=i.x,T=r.right-i.x;else{const R=Math.min(r.right-i.x+r.left,i.x),K=this._lastBoundingBoxSize.width;T=2*R,D=i.x-R,T>K&&!this._isInitialRender&&!this._growAfterOpen&&(D=i.x-K/2)}return{top:c,left:D,bottom:f,right:M,width:T,height:s}}_setBoundingBoxStyles(i,e){const r=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(r.height=Math.min(r.height,this._lastBoundingBoxSize.height),r.width=Math.min(r.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;o.height=tr(r.height),o.top=tr(r.top),o.bottom=tr(r.bottom),o.width=tr(r.width),o.left=tr(r.left),o.right=tr(r.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(o.maxHeight=tr(s)),c&&(o.maxWidth=tr(c))}this._lastBoundingBoxSize=r,Sd(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Sd(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Sd(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){const r={},o=this._hasExactPosition(),s=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(o){const T=this._viewportRuler.getViewportScrollPosition();Sd(r,this._getExactOverlayY(e,i,T)),Sd(r,this._getExactOverlayX(e,i,T))}else r.position="static";let f="",g=this._getOffset(e,"x"),v=this._getOffset(e,"y");g&&(f+=`translateX(${g}px) `),v&&(f+=`translateY(${v}px)`),r.transform=f.trim(),c.maxHeight&&(o?r.maxHeight=tr(c.maxHeight):s&&(r.maxHeight="")),c.maxWidth&&(o?r.maxWidth=tr(c.maxWidth):s&&(r.maxWidth="")),Sd(this._pane.style,r)}_getExactOverlayY(i,e,r){let o={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,r)),"bottom"===i.overlayY?o.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":o.top=tr(s.y),o}_getExactOverlayX(i,e,r){let c,o={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,r)),c=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===c?o.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":o.left=tr(s.x),o}_getScrollVisibility(){const i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),r=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:K0(i,r),isOriginOutsideView:Og(i,r),isOverlayClipped:K0(e,r),isOverlayOutsideView:Og(e,r)}}_subtractOverflows(i,...e){return e.reduce((r,o)=>r-Math.max(o,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,r=this._viewportRuler.getViewportScrollPosition();return{top:r.top+this._viewportMargin,left:r.left+this._viewportMargin,right:r.left+i-this._viewportMargin,bottom:r.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return"x"===e?null==i.offsetX?this._offsetX:i.offsetX:null==i.offsetY?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Ha(i).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof t.SBq)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const e=i.width||0,r=i.height||0;return{top:i.y,bottom:i.y+r,left:i.x,right:i.x+e,height:r,width:e}}}function Sd(n,i){for(let e in i)i.hasOwnProperty(e)&&(n[e]=i[e]);return n}function kg(n){if("number"!=typeof n&&null!=n){const[i,e]=n.split(WD);return e&&"px"!==e?null:parseFloat(i)}return n||null}function qD(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const ev="cdk-global-overlay-wrapper";class nC{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(i){const e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(ev),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._rightOffset="",this._leftOffset=i,this._justifyContent="flex-start",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._leftOffset="",this._rightOffset=i,this._justifyContent="flex-end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._justifyContent="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:o,height:s,maxWidth:c,maxHeight:f}=r,g=!("100%"!==o&&"100vw"!==o||c&&"100%"!==c&&"100vw"!==c),v=!("100%"!==s&&"100vh"!==s||f&&"100%"!==f&&"100vh"!==f);i.position=this._cssPosition,i.marginLeft=g?"0":this._leftOffset,i.marginTop=v?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=this._rightOffset,g?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=v?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,r=e.style;e.classList.remove(ev),r.justifyContent=r.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let JP=(()=>{class n{constructor(e,r,o,s){this._viewportRuler=e,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new nC}flexibleConnectedTo(e){return new Td(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Nl),t.LFG(ee),t.LFG(vr),t.LFG(Wa))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qt=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const r=this._attachedOverlays.indexOf(e);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zD=(()=>{class n extends Qt{constructor(e,r){super(e),this._ngZone=r,this._keydownListener=o=>{const s=this._attachedOverlays;for(let c=s.length-1;c>-1;c--)if(s[c]._keydownEvents.observers.length>0){const f=s[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>f.next(o)):f.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee),t.LFG(t.R0b,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$D=(()=>{class n extends Qt{constructor(e,r,o){super(e),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=jo(s)},this._clickListener=s=>{const c=jo(s),f="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const g=this._attachedOverlays.slice();for(let v=g.length-1;v>-1;v--){const T=g[v];if(T._outsidePointerEvents.observers.length<1||!T.hasAttached())continue;if(T.overlayElement.contains(c)||T.overlayElement.contains(f))break;const D=T._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>D.next(s)):D.next(s)}}}add(e){if(super.add(e),!this._isAttached){const r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee),t.LFG(vr),t.LFG(t.R0b,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YD=0,bs=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M){this.scrollStrategies=e,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=c,this._injector=f,this._ngZone=g,this._document=v,this._directionality=T,this._location=D,this._outsideClickDispatcher=M}create(e){const r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),c=new lf(e);return c.direction=c.direction||this._directionality.value,new X0(s,r,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const r=this._document.createElement("div");return r.id="cdk-overlay-"+YD++,r.classList.add("cdk-overlay-pane"),e.appendChild(r),r}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(t.z2F)),new hP(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Kx),t.LFG(Wa),t.LFG(t._Vd),t.LFG(JP),t.LFG(zD),t.LFG(t.zs3),t.LFG(t.R0b),t.LFG(ee),t.LFG(Ui),t.LFG(et),t.LFG($D))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const JD=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],cf=new t.OlP("cdk-connected-overlay-scroll-strategy");let uf=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Hi=(()=>{class n{constructor(e,r,o,s,c){this._overlay=e,this._dir=c,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Xn.w0.EMPTY,this._attachSubscription=Xn.w0.EMPTY,this._detachSubscription=Xn.w0.EMPTY,this._positionSubscription=Xn.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new t.vpe,this.positionChange=new t.vpe,this.attach=new t.vpe,this.detach=new t.vpe,this.overlayKeydown=new t.vpe,this.overlayOutsideClick=new t.vpe,this._templatePortal=new vd(r,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Wt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Wt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Wt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Wt(e)}get push(){return this._push}set push(e){this._push=Wt(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=JD);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),27===r.keyCode&&!this.disableClose&&!ra(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{this.overlayOutsideClick.next(r)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),r=new lf({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(r.width=this.width),(this.height||0===this.height)&&(r.height=this.height),(this.minWidth||0===this.minWidth)&&(r.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(e){const r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof uf?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function XS(n,i=!1){return(0,Ci.e)((e,r)=>{let o=0;e.subscribe(new Kn.Q(r,s=>{const c=n(s,o++);(c||i)&&r.next(s),!c&&r.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bs),t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(cf),t.Y36(Ui,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[t.TTD]}),n})();const iC={provide:cf,deps:[bs],useFactory:function QP(n){return()=>n.scrollStrategies.reposition()}};let tv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[bs,iC],imports:[[Jc,tf,Ag],Ag]}),n})();function Dd(n,i=cd){return(0,Ci.e)((e,r)=>{let o=null,s=null,c=null;const f=()=>{if(o){o.unsubscribe(),o=null;const v=s;s=null,r.next(v)}};function g(){const v=c+n,T=i.now();if(T{s=v,c=i.now(),o||(o=i.schedule(g,n),r.add(o))},()=>{f(),r.complete()},void 0,()=>{s=o=null}))})}function Ed(n){return Yt((i,e)=>n<=e)}function ys(n,i=is.y){return n=null!=n?n:QD,(0,Ci.e)((e,r)=>{let o,s=!0;e.subscribe(new Kn.Q(r,c=>{const f=i(c);(s||!n(o,f))&&(s=!1,o=f,r.next(c))}))})}function QD(n,i){return n===i}let rC=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KD=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,r)=>this._cleanupObserver(r))}observe(e){const r=ja(e);return new Yn.y(o=>{const c=this._observeElement(r).subscribe(o);return()=>{c.unsubscribe(),this._unobserveElement(r)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const r=new ft.x,o=this._mutationObserverFactory.create(s=>r.next(s));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:r,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:r,stream:o}=this._observedElements.get(e);r&&r.disconnect(),o.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(rC))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rl=(()=>{class n{constructor(e,r,o){this._contentObserver=e,this._elementRef=r,this._ngZone=o,this.event=new t.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Wt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Ua(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Dd(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(KD),t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),df=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[rC]}),n})();class aC{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ft.x,this._typeaheadSubscription=Xn.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new ft.x,this.change=new ft.x,i instanceof t.n_E&&i.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(gi(e=>this._pressedLetters.push(e)),Dd(i),Yt(()=>this._pressedLetters.length>0),(0,Le.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const r=this._getItemsArray();for(let o=1;o!i[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||ra(i,"shiftKey"))&&(i.key&&1===i.key.length?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){const e=this._getItemsArray(),r="number"==typeof i?i:e.indexOf(i),o=e[r];this._activeItem=null==o?null:o,this._activeItemIndex=r}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){const e=this._getItemsArray();for(let r=1;r<=e.length;r++){const o=(this._activeItemIndex+i*r+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){const r=this._getItemsArray();if(r[i]){for(;this._skipPredicateFn(r[i]);)if(!r[i+=e])return;this.setActiveItem(i)}}_getItemsArray(){return this._items instanceof t.n_E?this._items.toArray():this._items}}class lC extends aC{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class Ng extends aC{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}}let ov=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function tE(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const r=function cC(n){try{return n.frameElement}catch(i){return null}}(function uC(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(r&&(-1===ff(r)||!this.isVisible(r)))return!1;let o=e.nodeName.toLowerCase(),s=ff(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function iE(n){let i=n.nodeName.toLowerCase(),e="input"===i&&n.type;return"text"===e||"password"===e||"select"===i||"textarea"===i}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==s:"video"===o?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,r){return function rE(n){return!function iN(n){return function oN(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function nE(n){let i=n.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(n)||function rN(n){return function sN(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||sv(n))}(e)&&!this.isDisabled(e)&&((null==r?void 0:r.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(vr))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sv(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let i=n.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function ff(n){if(!sv(n))return null;const i=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class pf{constructor(i,e,r,o,s=!1){this._element=i,this._checker=e,this._ngZone=r,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}destroy(){const i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){const e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return"start"==i?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const r=this._getFirstTabbableElement(e);return null==r||r.focus(i),!!r}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){const e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){const e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const e=i.children;for(let r=0;r=0;r--){const o=e[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[r]):null;if(o)return o}return null}_createAnchor(){const i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe((0,_n.q)(1)).subscribe(i)}}let dC=(()=>{class n{constructor(e,r,o){this._checker=e,this._ngZone=r,this._document=o}create(e,r=!1){return new pf(e,this._checker,this._ngZone,this._document,r)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ov),t.LFG(t.R0b),t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function av(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Fl(n){const i=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}const sE=new t.OlP("cdk-input-modality-detector-options"),hC={ignoreKeys:[18,17,224,91,16]},Kc=Ol({passive:!0,capture:!0});let aE=(()=>{class n{constructor(e,r,o,s){this._platform=e,this._mostRecentTarget=null,this._modality=new xi(null),this._lastTouchMs=0,this._onKeydown=c=>{var f,g;(null===(g=null===(f=this._options)||void 0===f?void 0:f.ignoreKeys)||void 0===g?void 0:g.some(v=>v===c.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=jo(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(av(c)?"keyboard":"mouse"),this._mostRecentTarget=jo(c))},this._onTouchstart=c=>{Fl(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=jo(c))},this._options=Object.assign(Object.assign({},hC),s),this.modalityDetected=this._modality.pipe(Ed(1)),this.modalityChanged=this.modalityDetected.pipe(ys()),e.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Kc),o.addEventListener("mousedown",this._onMousedown,Kc),o.addEventListener("touchstart",this._onTouchstart,Kc)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Kc),document.removeEventListener("mousedown",this._onMousedown,Kc),document.removeEventListener("touchstart",this._onTouchstart,Kc))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(vr),t.LFG(t.R0b),t.LFG(ee),t.LFG(sE,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pC=new t.OlP("liveAnnouncerElement",{providedIn:"root",factory:function lE(){return null}}),lv=new t.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let cE=(()=>{class n{constructor(e,r,o,s){this._ngZone=r,this._defaultOptions=s,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...r){const o=this._defaultOptions;let s,c;return 1===r.length&&"number"==typeof r[0]?c=r[0]:[s,c]=r,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),null==c&&o&&(c=o.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(f=>this._currentResolve=f)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof c&&(this._previousTimeout=setTimeout(()=>this.clear(),c)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,r;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(r=this._currentResolve)||void 0===r||r.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",r=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let s=0;s{class n{constructor(e,r,o,s,c){this._ngZone=e,this._platform=r,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ft.x,this._rootNodeFocusAndBlurListener=f=>{const g=jo(f),v="focus"===f.type?this._onFocus:this._onBlur;for(let T=g;T;T=T.parentElement)v.call(this,f,T)},this._document=s,this._detectionMode=(null==c?void 0:c.detectionMode)||0}monitor(e,r=!1){const o=ja(e);if(!this._platform.isBrowser||1!==o.nodeType)return ut(null);const s=function B0(n){if(function Ho(){if(null==hd){const n="undefined"!=typeof document?document.head:null;hd=!(!n||!n.createShadowRoot&&!n.attachShadow)}return hd}()){const i=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return r&&(c.checkChildren=!0),c.subject;const f={checkChildren:r,subject:new ft.x,rootNode:s};return this._elementInfo.set(o,f),this._registerGlobalListeners(f),f.subject}stopMonitoring(e){const r=ja(e),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(e,r,o){const s=ja(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([f,g])=>this._originChanged(f,r,g)):(this._setOrigin(r),"function"==typeof s.focus&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,r){e.classList.toggle("cdk-focused",!!r),e.classList.toggle("cdk-touch-focused","touch"===r),e.classList.toggle("cdk-keyboard-focused","keyboard"===r),e.classList.toggle("cdk-mouse-focused","mouse"===r),e.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(e,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,r){const o=this._elementInfo.get(r),s=jo(e);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(e,r){const o=this._elementInfo.get(r);!o||o.checkChildren&&e.relatedTarget instanceof Node&&r.contains(e.relatedTarget)||(this._setClasses(r),this._emitOrigin(o.subject,null))}_emitOrigin(e,r){this._ngZone.run(()=>e.next(r))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const r=e.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Rg),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Rg)}),this._rootNodeFocusListenerCount.set(r,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(It(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const r=e.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Rg),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Rg),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,r,o){this._setClasses(e,r),this._emitOrigin(o.subject,r),this._lastFocusOrigin=r}_getClosestElementsInfo(e){const r=[];return this._elementInfo.forEach((o,s)=>{(s===e||o.checkChildren&&s.contains(e))&&r.push([s,o])}),r}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b),t.LFG(vr),t.LFG(aE),t.LFG(ee,8),t.LFG(gC,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dE=(()=>{class n{constructor(e,r){this._elementRef=e,this._focusMonitor=r,this.cdkFocusChange=new t.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>this.cdkFocusChange.emit(r))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(oa))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const Fg="cdk-high-contrast-black-on-white",mC="cdk-high-contrast-white-on-black",Lg="cdk-high-contrast-active";let _C=(()=>{class n{constructor(e,r){this._platform=e,this._document=r}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(e):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Lg),e.remove(Fg),e.remove(mC),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?(e.add(Lg),e.add(Fg)):2===r&&(e.add(Lg),e.add(mC))}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(vr),t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hE=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(_C))},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[df]]}),n})();class vC{}const qa="*";function xs(n,i){return{type:7,name:n,definitions:i,options:{}}}function Wr(n,i=null){return{type:4,styles:i,timings:n}}function bC(n,i=null){return{type:3,steps:n,options:i}}function cv(n,i=null){return{type:2,steps:n,options:i}}function ei(n){return{type:6,styles:n,offset:null}}function br(n,i,e){return{type:0,name:n,styles:i,options:e}}function yr(n,i,e=null){return{type:1,expr:n,animation:i,options:e}}function uv(n=null){return{type:9,options:n}}function gf(n,i,e=null){return{type:11,selector:n,animation:i,options:e}}function dv(n){Promise.resolve(null).then(n)}class Xc{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){dv(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class xC{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,r=0,o=0;const s=this.players.length;0==s?dv(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==s&&this._onFinish()}),c.onDestroy(()=>{++r==s&&this._onDestroy()}),c.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((c,f)=>Math.max(c,f.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(r=>{const o=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(o)})}getPosition(){const i=this.players.reduce((e,r)=>null===e||r.totalTime>e.totalTime?r:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}const Pn=!1;function fv(n){return new t.vHH(3e3,Pn)}function vN(){return"undefined"!=typeof window&&void 0!==window.document}function Hg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ll(n){switch(n.length){case 0:return new Xc;case 1:return n[0];default:return new xC(n)}}function IE(n,i,e,r,o={},s={}){const c=[],f=[];let g=-1,v=null;if(r.forEach(T=>{const D=T.offset,M=D==g,R=M&&v||{};Object.keys(T).forEach(K=>{let fe=K,Me=T[K];if("offset"!==K)switch(fe=i.normalizePropertyName(fe,c),Me){case"!":Me=o[K];break;case qa:Me=s[K];break;default:Me=i.normalizeStyleValue(K,fe,Me,c)}R[fe]=Me}),M||f.push(R),v=R,g=D}),c.length)throw function EC(n){return new t.vHH(3502,Pn)}();return f}function jg(n,i,e,r){switch(i){case"start":n.onStart(()=>r(e&&MC(e,"start",n)));break;case"done":n.onDone(()=>r(e&&MC(e,"done",n)));break;case"destroy":n.onDestroy(()=>r(e&&MC(e,"destroy",n)))}}function MC(n,i,e){const r=e.totalTime,s=Vg(n.element,n.triggerName,n.fromState,n.toState,i||n.phaseName,null==r?n.totalTime:r,!!e.disabled),c=n._data;return null!=c&&(s._data=c),s}function Vg(n,i,e,r,o="",s=0,c){return{element:n,triggerName:i,fromState:e,toState:r,phaseName:o,totalTime:s,disabled:!!c}}function io(n,i,e){let r;return n instanceof Map?(r=n.get(i),r||n.set(i,r=e)):(r=n[i],r||(r=n[i]=e)),r}function mv(n){const i=n.indexOf(":");return[n.substring(1,i),n.substr(i+1)]}let Zg=(n,i)=>!1,_v=(n,i,e)=>[],vv=null;function Wg(n){const i=n.parentNode||n.host;return i===vv?null:i}(Hg()||"undefined"!=typeof Element)&&(vN()?(vv=(()=>document.documentElement)(),Zg=(n,i)=>{for(;i;){if(i===n)return!0;i=Wg(i)}return!1}):Zg=(n,i)=>n.contains(i),_v=(n,i,e)=>{if(e)return Array.from(n.querySelectorAll(i));const r=n.querySelector(i);return r?[r]:[]});let Bl=null,IC=!1;function OC(n){Bl||(Bl=function vf(){return"undefined"!=typeof document?document.body:null}()||{},IC=!!Bl.style&&"WebkitAppearance"in Bl.style);let i=!0;return Bl.style&&!function OE(n){return"ebkit"==n.substring(1,6)}(n)&&(i=n in Bl.style,!i&&IC&&(i="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Bl.style)),i}const bv=Zg,yv=_v;let xv=(()=>{class n{validateStyleProperty(e){return OC(e)}matchesElement(e,r){return!1}containsElement(e,r){return bv(e,r)}getParentElement(e){return Wg(e)}query(e,r,o){return yv(e,r,o)}computeStyle(e,r,o){return o||""}animate(e,r,o,s,c,f=[],g){return new Xc(o,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),qg=(()=>{class n{}return n.NOOP=new xv,n})();const Cv="ng-enter",bf="ng-leave",zg="ng-trigger",$g=".ng-trigger",Od="ng-animating",wv=".ng-animating";function za(n){if("number"==typeof n)return n;const i=n.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:Vo(parseFloat(i[1]),i[2])}function Vo(n,i){return"s"===i?1e3*n:n}function Yg(n,i,e){return n.hasOwnProperty("duration")?n:function Jg(n,i,e){let o,s=0,c="";if("string"==typeof n){const f=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===f)return i.push(fv()),{duration:0,delay:0,easing:""};o=Vo(parseFloat(f[1]),f[2]);const g=f[3];null!=g&&(s=Vo(parseFloat(g),f[4]));const v=f[5];v&&(c=v)}else o=n;if(!e){let f=!1,g=i.length;o<0&&(i.push(function gE(){return new t.vHH(3100,Pn)}()),f=!0),s<0&&(i.push(function CC(){return new t.vHH(3101,Pn)}()),f=!0),f&&i.splice(g,0,fv())}return{duration:o,delay:s,easing:c}}(n,i,e)}function sa(n,i={}){return Object.keys(n).forEach(e=>{i[e]=n[e]}),i}function Gl(n,i,e={}){if(i)for(let r in n)e[r]=n[r];else sa(n,e);return e}function FC(n,i,e){return e?i+":"+e+";":""}function yf(n){let i="";for(let e=0;e{const o=BC(r);e&&!e.hasOwnProperty(r)&&(e[r]=n.style[o]),n.style[o]=i[r]}),Hg()&&yf(n))}function eu(n,i){n.style&&(Object.keys(i).forEach(e=>{const r=BC(e);n.style[r]=""}),Hg()&&yf(n))}function xf(n){return Array.isArray(n)?1==n.length?n[0]:cv(n):n}const Qg=new RegExp("{{\\s*(.+?)\\s*}}","g");function Kg(n){let i=[];if("string"==typeof n){let e;for(;e=Qg.exec(n);)i.push(e[1]);Qg.lastIndex=0}return i}function Cf(n,i,e){const r=n.toString(),o=r.replace(Qg,(s,c)=>{let f=i[c];return i.hasOwnProperty(c)||(e.push(function wC(n){return new t.vHH(3003,Pn)}()),f=""),f.toString()});return o==r?n:o}function Xg(n){const i=[];let e=n.next();for(;!e.done;)i.push(e.value),e=n.next();return i}const PE=/-+([a-z0-9])/g;function BC(n){return n.replace(PE,(...i)=>i[1].toUpperCase())}function Tv(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ro(n,i,e){switch(i.type){case 7:return n.visitTrigger(i,e);case 0:return n.visitState(i,e);case 1:return n.visitTransition(i,e);case 2:return n.visitSequence(i,e);case 3:return n.visitGroup(i,e);case 4:return n.visitAnimate(i,e);case 5:return n.visitKeyframes(i,e);case 6:return n.visitStyle(i,e);case 8:return n.visitReference(i,e);case 9:return n.visitAnimateChild(i,e);case 10:return n.visitAnimateRef(i,e);case 11:return n.visitQuery(i,e);case 12:return n.visitStagger(i,e);default:throw function pN(n){return new t.vHH(3004,Pn)}()}}function em(n,i){return window.getComputedStyle(n)[i]}function jC(n,i){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function VC(n,i,e){if(":"==n[0]){const g=function LE(n,i){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r) *"}}(n,e);if("function"==typeof g)return void i.push(g);n=g}const r=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return e.push(function DC(n){return new t.vHH(3015,Pn)}()),i;const o=r[1],s=r[2],c=r[3];i.push(ZC(o,c));"<"==s[0]&&!("*"==o&&"*"==c)&&i.push(ZC(c,o))}(r,e,i)):e.push(n),e}const Tf=new Set(["true","1"]),Sf=new Set(["false","0"]);function ZC(n,i){const e=Tf.has(n)||Sf.has(n),r=Tf.has(i)||Sf.has(i);return(o,s)=>{let c="*"==n||n==o,f="*"==i||i==s;return!c&&e&&"boolean"==typeof o&&(c=o?Tf.has(n):Sf.has(n)),!f&&r&&"boolean"==typeof s&&(f=s?Tf.has(i):Sf.has(i)),c&&f}}const WC=new RegExp("s*:selfs*,?","g");function Rr(n,i,e,r){return new BE(n).build(i,e,r)}class BE{constructor(i){this._driver=i}build(i,e,r){const o=new Df(e);this._resetContextStyleTimingState(o);const s=ro(this,xf(i),o);return o.unsupportedCSSPropertiesFound.size&&o.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles={},i.collectedStyles[""]={},i.currentTime=0}visitTrigger(i,e){let r=e.queryCount=0,o=e.depCount=0;const s=[],c=[];return"@"==i.name.charAt(0)&&e.errors.push(function Gg(){return new t.vHH(3006,Pn)}()),i.definitions.forEach(f=>{if(this._resetContextStyleTimingState(e),0==f.type){const g=f,v=g.name;v.toString().split(/\s*,\s*/).forEach(T=>{g.name=T,s.push(this.visitState(g,e))}),g.name=v}else if(1==f.type){const g=this.visitTransition(f,e);r+=g.queryCount,o+=g.depCount,c.push(g)}else e.errors.push(function vE(){return new t.vHH(3007,Pn)}())}),{type:7,name:i.name,states:s,transitions:c,queryCount:r,depCount:o,options:null}}visitState(i,e){const r=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(r.containsDynamicStyles){const s=new Set,c=o||{};r.styles.forEach(f=>{if(kd(f)){const g=f;Object.keys(g).forEach(v=>{Kg(g[v]).forEach(T=>{c.hasOwnProperty(T)||s.add(T)})})}}),s.size&&(Xg(s.values()),e.errors.push(function Ad(n,i){return new t.vHH(3008,Pn)}()))}return{type:0,name:i.name,style:r,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const r=ro(this,xf(i.animation),e);return{type:1,matchers:jC(i.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:Ul(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(r=>ro(this,r,e)),options:Ul(i.options)}}visitGroup(i,e){const r=e.currentTime;let o=0;const s=i.steps.map(c=>{e.currentTime=r;const f=ro(this,c,e);return o=Math.max(o,e.currentTime),f});return e.currentTime=o,{type:3,steps:s,options:Ul(i.options)}}visitAnimate(i,e){const r=function HE(n,i){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Ev(Yg(n,i).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Ev(0,0,"");return s.dynamic=!0,s.strValue=e,s}const o=Yg(e,i);return Ev(o.duration,o.delay,o.easing)}(i.timings,e.errors);e.currentAnimateTimings=r;let o,s=i.styles?i.styles:ei({});if(5==s.type)o=this.visitKeyframes(s,e);else{let c=i.styles,f=!1;if(!c){f=!0;const v={};r.easing&&(v.easing=r.easing),c=ei(v)}e.currentTime+=r.duration+r.delay;const g=this.visitStyle(c,e);g.isEmptyStep=f,o=g}return e.currentAnimateTimings=null,{type:4,timings:r,style:o,options:null}}visitStyle(i,e){const r=this._makeStyleAst(i,e);return this._validateStyleAst(r,e),r}_makeStyleAst(i,e){const r=[];Array.isArray(i.styles)?i.styles.forEach(c=>{"string"==typeof c?c==qa?r.push(c):e.errors.push(function mf(n){return new t.vHH(3002,Pn)}()):r.push(c)}):r.push(i.styles);let o=!1,s=null;return r.forEach(c=>{if(kd(c)){const f=c,g=f.easing;if(g&&(s=g,delete f.easing),!o)for(let v in f)if(f[v].toString().indexOf("{{")>=0){o=!0;break}}}),{type:6,styles:r,easing:s,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){const r=e.currentAnimateTimings;let o=e.currentTime,s=e.currentTime;r&&s>0&&(s-=r.duration+r.delay),i.styles.forEach(c=>{"string"!=typeof c&&Object.keys(c).forEach(f=>{if(!this._driver.validateStyleProperty(f))return delete c[f],void e.unsupportedCSSPropertiesFound.add(f);const g=e.collectedStyles[e.currentQuerySelector],v=g[f];let T=!0;v&&(s!=o&&s>=v.startTime&&o<=v.endTime&&(e.errors.push(function mN(n,i,e,r,o){return new t.vHH(3010,Pn)}()),T=!1),s=v.startTime),T&&(g[f]={startTime:s,endTime:o}),e.options&&function LC(n,i,e){const r=i.params||{},o=Kg(n);o.length&&o.forEach(s=>{r.hasOwnProperty(s)||e.push(function mE(n){return new t.vHH(3001,Pn)}())})}(c[f],e.options,e.errors)})})}visitKeyframes(i,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function TC(){return new t.vHH(3011,Pn)}()),r;let s=0;const c=[];let f=!1,g=!1,v=0;const T=i.steps.map(Fe=>{const qe=this._makeStyleAst(Fe,e);let xt=null!=qe.offset?qe.offset:function UE(n){if("string"==typeof n)return null;let i=null;if(Array.isArray(n))n.forEach(e=>{if(kd(e)&&e.hasOwnProperty("offset")){const r=e;i=parseFloat(r.offset),delete r.offset}});else if(kd(n)&&n.hasOwnProperty("offset")){const e=n;i=parseFloat(e.offset),delete e.offset}return i}(qe.styles),dt=0;return null!=xt&&(s++,dt=qe.offset=xt),g=g||dt<0||dt>1,f=f||dt0&&s{const xt=M>0?qe==R?1:M*qe:c[qe],dt=xt*Me;e.currentTime=K+fe.delay+dt,fe.duration=dt,this._validateStyleAst(Fe,e),Fe.offset=xt,r.styles.push(Fe)}),r}visitReference(i,e){return{type:8,animation:ro(this,xf(i.animation),e),options:Ul(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:Ul(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:Ul(i.options)}}visitQuery(i,e){const r=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;const[s,c]=function GE(n){const i=!!n.split(/\s*,\s*/).find(e=>":self"==e);return i&&(n=n.replace(WC,"")),n=n.replace(/@\*/g,$g).replace(/@\w+/g,e=>$g+"-"+e.substr(1)).replace(/:animating/g,wv),[n,i]}(i.selector);e.currentQuerySelector=r.length?r+" "+s:s,io(e.collectedStyles,e.currentQuerySelector,{});const f=ro(this,xf(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:c,animation:f,originalSelector:i.selector,options:Ul(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function CE(){return new t.vHH(3013,Pn)}());const r="full"===i.timings?{duration:0,delay:0,easing:"full"}:Yg(i.timings,e.errors,!0);return{type:12,animation:ro(this,xf(i.animation),e),timings:r,options:null}}}class Df{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function kd(n){return!Array.isArray(n)&&"object"==typeof n}function Ul(n){return n?(n=sa(n)).params&&(n.params=function yN(n){return n?sa(n):null}(n.params)):n={},n}function Ev(n,i,e){return{duration:n,delay:i,easing:e}}function Av(n,i,e,r,o,s,c=null,f=!1){return{type:1,element:n,keyframes:i,preStyleProps:e,postStyleProps:r,duration:o,delay:s,totalTime:o+s,easing:c,subTimeline:f}}class Pd{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let r=this._map.get(i);r||this._map.set(i,r=[]),r.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const im=new RegExp(":enter","g"),xN=new RegExp(":leave","g");function rm(n,i,e,r,o,s={},c={},f,g,v=[]){return(new jE).buildKeyframes(n,i,e,r,o,s,c,f,g,v)}class jE{buildKeyframes(i,e,r,o,s,c,f,g,v,T=[]){v=v||new Pd;const D=new Nd(i,e,v,o,s,T,[]);D.options=g,D.currentTimeline.setStyles([c],null,D.errors,g),ro(this,r,D);const M=D.timelines.filter(R=>R.containsAnimation());if(Object.keys(f).length){let R;for(let K=M.length-1;K>=0;K--){const fe=M[K];if(fe.element===e){R=fe;break}}R&&!R.allowOnlyTimelineStyles()&&R.setStyles([f],null,D.errors,g)}return M.length?M.map(R=>R.buildKeyframes()):[Av(e,[],[],[],0,0,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const r=e.subInstructions.get(e.element);if(r){const o=e.createSubContext(i.options),s=e.currentTimeline.currentTime,c=this._visitSubInstructions(r,o,o.options);s!=c&&e.transformIntoNewTimeline(c)}e.previousNode=i}visitAnimateRef(i,e){const r=e.createSubContext(i.options);r.transformIntoNewTimeline(),this.visitReference(i.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=i}_visitSubInstructions(i,e,r){let s=e.currentTimeline.currentTime;const c=null!=r.duration?za(r.duration):null,f=null!=r.delay?za(r.delay):null;return 0!==c&&i.forEach(g=>{const v=e.appendInstructionToTimeline(g,c,f);s=Math.max(s,v.duration+v.delay)}),s}visitReference(i,e){e.updateOptions(i.options,!0),ro(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const r=e.subContextCount;let o=e;const s=i.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ef);const c=za(s.delay);o.delayNextStep(c)}i.steps.length&&(i.steps.forEach(c=>ro(this,c,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const r=[];let o=e.currentTimeline.currentTime;const s=i.options&&i.options.delay?za(i.options.delay):0;i.steps.forEach(c=>{const f=e.createSubContext(i.options);s&&f.delayNextStep(s),ro(this,c,f),o=Math.max(o,f.currentTimeline.currentTime),r.push(f.currentTimeline)}),r.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const r=i.strValue;return Yg(e.params?Cf(r,e.params,e.errors):r,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const r=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),o.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(r.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const r=e.currentTimeline,o=e.currentAnimateTimings;!o&&r.getCurrentStyleProperties().length&&r.forwardFrame();const s=o&&o.easing||i.easing;i.isEmptyStep?r.applyEmptyStep(s):r.setStyles(i.styles,s,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const r=e.currentAnimateTimings,o=e.currentTimeline.duration,s=r.duration,f=e.createSubContext().currentTimeline;f.easing=r.easing,i.styles.forEach(g=>{f.forwardTime((g.offset||0)*s),f.setStyles(g.styles,g.easing,e.errors,e.options),f.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(f),e.transformIntoNewTimeline(o+s),e.previousNode=i}visitQuery(i,e){const r=e.currentTimeline.currentTime,o=i.options||{},s=o.delay?za(o.delay):0;s&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ef);let c=r;const f=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=f.length;let g=null;f.forEach((v,T)=>{e.currentQueryIndex=T;const D=e.createSubContext(i.options,v);s&&D.delayNextStep(s),v===e.element&&(g=D.currentTimeline),ro(this,i.animation,D),D.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,D.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),g&&(e.currentTimeline.mergeTimelineCollectedStyles(g),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const r=e.parentContext,o=e.currentTimeline,s=i.timings,c=Math.abs(s.duration),f=c*(e.currentQueryTotal-1);let g=c*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":g=f-g;break;case"full":g=r.currentStaggerTime}const T=e.currentTimeline;g&&T.delayNextStep(g);const D=T.currentTime;ro(this,i.animation,e),e.previousNode=i,r.currentStaggerTime=o.currentTime-D+(o.startTime-r.currentTimeline.startTime)}}const Ef={};class Nd{constructor(i,e,r,o,s,c,f,g){this._driver=i,this.element=e,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=s,this.errors=c,this.timelines=f,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ef,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=g||new Af(this._driver,e,0),f.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const r=i;let o=this.options;null!=r.duration&&(o.duration=za(r.duration)),null!=r.delay&&(o.delay=za(r.delay));const s=r.params;if(s){let c=o.params;c||(c=this.options.params={}),Object.keys(s).forEach(f=>{(!e||!c.hasOwnProperty(f))&&(c[f]=Cf(s[f],c,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const r=i.params={};Object.keys(e).forEach(o=>{r[o]=e[o]})}}return i}createSubContext(i=null,e,r){const o=e||this.element,s=new Nd(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=Ef,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,r){const o={duration:null!=e?e:i.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+i.delay,easing:""},s=new VE(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,r,o,s,c){let f=[];if(o&&f.push(this.element),i.length>0){i=(i=i.replace(im,"."+this._enterClassName)).replace(xN,"."+this._leaveClassName);let v=this._driver.query(this.element,i,1!=r);0!==r&&(v=r<0?v.slice(v.length+r,v.length):v.slice(0,r)),f.push(...v)}return!s&&0==f.length&&c.push(function SC(n){return new t.vHH(3014,Pn)}()),f}}class Af{constructor(i,e,r,o){this._driver=i,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new Af(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles[i]=e,this._globalTimelineStyles[i]=e,this._styleSummary[i]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&(this._previousKeyframe.easing=i),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||qa,this._currentKeyframe[e]=qa}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,r,o){e&&(this._previousKeyframe.easing=e);const s=o&&o.params||{},c=function Iv(n,i){const e={};let r;return n.forEach(o=>{"*"===o?(r=r||Object.keys(i),r.forEach(s=>{e[s]=qa})):Gl(o,!1,e)}),e}(i,this._globalTimelineStyles);Object.keys(c).forEach(f=>{const g=Cf(c[f],s,r);this._pendingStyles[f]=g,this._localTimelineStyles.hasOwnProperty(f)||(this._backFill[f]=this._globalTimelineStyles.hasOwnProperty(f)?this._globalTimelineStyles[f]:qa),this._updateStyle(f,g)})}applyStylesToKeyframe(){const i=this._pendingStyles,e=Object.keys(i);0!=e.length&&(this._pendingStyles={},e.forEach(r=>{this._currentKeyframe[r]=i[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(i=>{const e=this._localTimelineStyles[i];this._pendingStyles[i]=e,this._updateStyle(i,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){Object.keys(i._styleSummary).forEach(e=>{const r=this._styleSummary[e],o=i._styleSummary[e];(!r||o.time>r.time)&&this._updateStyle(e,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,r=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((f,g)=>{const v=Gl(f,!0);Object.keys(v).forEach(T=>{const D=v[T];"!"==D?i.add(T):D==qa&&e.add(T)}),r||(v.offset=g/this.duration),o.push(v)});const s=i.size?Xg(i.values()):[],c=e.size?Xg(e.values()):[];if(r){const f=o[0],g=sa(f);f.offset=0,g.offset=1,o=[f,g]}return Av(this.element,o,s,c,this.duration,this.startTime,this.easing,!1)}}class VE extends Af{constructor(i,e,r,o,s,c,f=!1){super(i,e,c.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=f,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:r,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],c=r+e,f=e/c,g=Gl(i[0],!1);g.offset=0,s.push(g);const v=Gl(i[0],!1);v.offset=om(f),s.push(v);const T=i.length-1;for(let D=1;D<=T;D++){let M=Gl(i[D],!1);M.offset=om((e+M.offset*r)/c),s.push(M)}r=c,e=0,o="",i=s}return Av(this.element,i,this.preStyleProps,this.postStyleProps,r,e,o,!0)}}function om(n,i=3){const e=Math.pow(10,i-1);return Math.round(n*e)/e}class Ov{}class $C extends Ov{normalizePropertyName(i,e){return BC(i)}normalizeStyleValue(i,e,r,o){let s="";const c=r.toString().trim();if(YC[e]&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const f=r.match(/^[+-]?[\d\.]+([a-z]*)$/);f&&0==f[1].length&&o.push(function _E(n,i){return new t.vHH(3005,Pn)}())}return c+s}}const YC=(()=>function ZE(n){const i={};return n.forEach(e=>i[e]=!0),i}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function kv(n,i,e,r,o,s,c,f,g,v,T,D,M){return{type:0,element:n,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:s,toState:r,toStyles:c,timelines:f,queriedElements:g,preStyleProps:v,postStyleProps:T,totalTime:D,errors:M}}const sm={};class JC{constructor(i,e,r){this._triggerName=i,this.ast=e,this._stateStyles=r}match(i,e,r,o){return function WE(n,i,e,r,o){return n.some(s=>s(i,e,r,o))}(this.ast.matchers,i,e,r,o)}buildStyles(i,e,r){const o=this._stateStyles["*"],s=this._stateStyles[i],c=o?o.buildStyles(e,r):{};return s?s.buildStyles(e,r):c}build(i,e,r,o,s,c,f,g,v,T){const D=[],M=this.ast.options&&this.ast.options.params||sm,K=this.buildStyles(r,f&&f.params||sm,D),fe=g&&g.params||sm,Me=this.buildStyles(o,fe,D),Fe=new Set,qe=new Map,xt=new Map,dt="void"===o,tn={params:Object.assign(Object.assign({},M),fe)},an=T?[]:rm(i,e,this.ast.animation,s,c,K,Me,tn,v,D);let On=0;if(an.forEach(Mi=>{On=Math.max(Mi.duration+Mi.delay,On)}),D.length)return kv(e,this._triggerName,r,o,dt,K,Me,[],[],qe,xt,On,D);an.forEach(Mi=>{const _i=Mi.element,Lr=io(qe,_i,{});Mi.preStyleProps.forEach(rr=>Lr[rr]=!0);const lo=io(xt,_i,{});Mi.postStyleProps.forEach(rr=>lo[rr]=!0),_i!==e&&Fe.add(_i)});const Wn=Xg(Fe.values());return kv(e,this._triggerName,r,o,dt,K,Me,an,Wn,qe,xt,On)}}class QC{constructor(i,e,r){this.styles=i,this.defaultParams=e,this.normalizer=r}buildStyles(i,e){const r={},o=sa(this.defaultParams);return Object.keys(i).forEach(s=>{const c=i[s];null!=c&&(o[s]=c)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const c=s;Object.keys(c).forEach(f=>{let g=c[f];g.length>1&&(g=Cf(g,o,e));const v=this.normalizer.normalizePropertyName(f,e);g=this.normalizer.normalizeStyleValue(f,v,g,e),r[v]=g})}}),r}}class KC{constructor(i,e,r){this.name=i,this.ast=e,this._normalizer=r,this.transitionFactories=[],this.states={},e.states.forEach(o=>{this.states[o.name]=new QC(o.style,o.options&&o.options.params||{},r)}),Pv(this.states,"true","1"),Pv(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new JC(i,o,this.states))}),this.fallbackTransition=function XC(n,i,e){return new JC(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,f)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,r,o){return this.transitionFactories.find(c=>c.match(i,e,r,o))||null}matchStyles(i,e,r){return this.fallbackTransition.buildStyles(i,e,r)}}function Pv(n,i,e){n.hasOwnProperty(i)?n.hasOwnProperty(e)||(n[e]=n[i]):n.hasOwnProperty(e)&&(n[i]=n[e])}const e1=new Pd;class zE{constructor(i,e,r){this.bodyNode=i,this._driver=e,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(i,e){const r=[],s=Rr(this._driver,e,r,[]);if(r.length)throw function AC(n){return new t.vHH(3503,Pn)}();this._animations[i]=s}_buildPlayer(i,e,r){const o=i.element,s=IE(0,this._normalizer,0,i.keyframes,e,r);return this._driver.animate(o,s,i.duration,i.delay,i.easing,[],!0)}create(i,e,r={}){const o=[],s=this._animations[i];let c;const f=new Map;if(s?(c=rm(this._driver,e,s,Cv,bf,{},{},r,e1,o),c.forEach(T=>{const D=io(f,T.element,{});T.postStyleProps.forEach(M=>D[M]=null)})):(o.push(function TE(){return new t.vHH(3300,Pn)}()),c=[]),o.length)throw function SE(n){return new t.vHH(3504,Pn)}();f.forEach((T,D)=>{Object.keys(T).forEach(M=>{T[M]=this._driver.computeStyle(D,M,qa)})});const v=Ll(c.map(T=>{const D=f.get(T.element);return this._buildPlayer(T,{},D)}));return this._playersById[i]=v,v.onDestroy(()=>this.destroy(i)),this.players.push(v),v}destroy(i){const e=this._getPlayer(i);e.destroy(),delete this._playersById[i];const r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(i){const e=this._playersById[i];if(!e)throw function gv(n){return new t.vHH(3301,Pn)}();return e}listen(i,e,r,o){const s=Vg(e,"","","");return jg(this._getPlayer(i),r,s,o),()=>{}}command(i,e,r,o){if("register"==r)return void this.register(i,o[0]);if("create"==r)return void this.create(i,e,o[0]||{});const s=this._getPlayer(i);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i)}}}const t1="ng-animate-queued",am="ng-animate-disabled",EN=[],$E={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},AN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cs="__ng_removed";class n1{constructor(i,e=""){this.namespaceId=e;const r=i&&i.hasOwnProperty("value");if(this.value=function MN(n){return null!=n?n:null}(r?i.value:i),r){const s=sa(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(i){const e=i.params;if(e){const r=this.options.params;Object.keys(e).forEach(o=>{null==r[o]&&(r[o]=e[o])})}}}const Hl="void",r1=new n1(Hl);class o1{constructor(i,e,r){this.id=i,this.hostElement=e,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Zo(e,this._hostClassName)}listen(i,e,r,o){if(!this._triggers.hasOwnProperty(e))throw function DE(n,i){return new t.vHH(3302,Pn)}();if(null==r||0==r.length)throw function _N(n){return new t.vHH(3303,Pn)}();if(!function a1(n){return"start"==n||"done"==n}(r))throw function EE(n,i){return new t.vHH(3400,Pn)}();const s=io(this._elementListeners,i,[]),c={name:e,phase:r,callback:o};s.push(c);const f=io(this._engine.statesByElement,i,{});return f.hasOwnProperty(e)||(Zo(i,zg),Zo(i,zg+"-"+e),f[e]=r1),()=>{this._engine.afterFlush(()=>{const g=s.indexOf(c);g>=0&&s.splice(g,1),this._triggers[e]||delete f[e]})}}register(i,e){return!this._triggers[i]&&(this._triggers[i]=e,!0)}_getTrigger(i){const e=this._triggers[i];if(!e)throw function AE(n){return new t.vHH(3401,Pn)}();return e}trigger(i,e,r,o=!0){const s=this._getTrigger(e),c=new lm(this.id,e,i);let f=this._engine.statesByElement.get(i);f||(Zo(i,zg),Zo(i,zg+"-"+e),this._engine.statesByElement.set(i,f={}));let g=f[e];const v=new n1(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&g&&v.absorbOptions(g.options),f[e]=v,g||(g=r1),v.value!==Hl&&g.value===v.value){if(!function IN(n,i){const e=Object.keys(n),r=Object.keys(i);if(e.length!=r.length)return!1;for(let o=0;o{eu(i,Me),Eo(i,Fe)})}return}const M=io(this._engine.playersByElement,i,[]);M.forEach(fe=>{fe.namespaceId==this.id&&fe.triggerName==e&&fe.queued&&fe.destroy()});let R=s.matchTransition(g.value,v.value,i,v.params),K=!1;if(!R){if(!o)return;R=s.fallbackTransition,K=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:R,fromState:g,toState:v,player:c,isFallbackTransition:K}),K||(Zo(i,t1),c.onStart(()=>{Fd(i,t1)})),c.onDone(()=>{let fe=this.players.indexOf(c);fe>=0&&this.players.splice(fe,1);const Me=this._engine.playersByElement.get(i);if(Me){let Fe=Me.indexOf(c);Fe>=0&&Me.splice(Fe,1)}}),this.players.push(c),M.push(c),c}deregister(i){delete this._triggers[i],this._engine.statesByElement.forEach((e,r)=>{delete e[i]}),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const r=this._engine.driver.query(i,$g,!0);r.forEach(o=>{if(o[Cs])return;const s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(c=>c.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,r,o){const s=this._engine.statesByElement.get(i),c=new Map;if(s){const f=[];if(Object.keys(s).forEach(g=>{if(c.set(g,s[g].value),this._triggers[g]){const v=this.trigger(i,g,Hl,o);v&&f.push(v)}}),f.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,c),r&&Ll(f).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),r=this._engine.statesByElement.get(i);if(e&&r){const o=new Set;e.forEach(s=>{const c=s.name;if(o.has(c))return;o.add(c);const g=this._triggers[c].fallbackTransition,v=r[c]||r1,T=new n1(Hl),D=new lm(this.id,c,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:c,transition:g,fromState:v,toState:T,player:D,isFallbackTransition:!0})})}}removeNode(i,e){const r=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(i):[];if(s&&s.length)o=!0;else{let c=i;for(;c=c.parentNode;)if(r.statesByElement.get(c)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)r.markElementAsRemoved(this.id,i,!1,e);else{const s=i[Cs];(!s||s===$E)&&(r.afterFlush(()=>this.clearElementCache(i)),r.destroyInnerAnimations(i),r._onRemovalComplete(i,e))}}insertNode(i,e){Zo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(r=>{const o=r.player;if(o.destroyed)return;const s=r.element,c=this._elementListeners.get(s);c&&c.forEach(f=>{if(f.name==r.triggerName){const g=Vg(s,r.triggerName,r.fromState.value,r.toState.value);g._data=i,jg(r.player,f.phase,g,f.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(r)}),this._queue=[],e.sort((r,o)=>{const s=r.transition.ast.depCount,c=o.transition.ast.depCount;return 0==s||0==c?s-c:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let e=!1;return this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(r=>r.element===i)||e,e}}class Nv{constructor(i,e,r){this.bodyNode=i,this.driver=e,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&i.push(r)})}),i}createNamespace(i,e){const r=new o1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[i]=r}_balanceNamespaceList(i,e){const r=this._namespaceList,o=this.namespacesByHostElement,s=r.length-1;if(s>=0){let c=!1;if(void 0!==this.driver.getParentElement){let f=this.driver.getParentElement(e);for(;f;){const g=o.get(f);if(g){const v=r.indexOf(g);r.splice(v+1,0,i),c=!0;break}f=this.driver.getParentElement(f)}}else for(let f=s;f>=0;f--)if(this.driver.containsElement(r[f].hostElement,e)){r.splice(f+1,0,i),c=!0;break}c||r.unshift(i)}else r.push(i);return o.set(e,i),i}register(i,e){let r=this._namespaceLookup[i];return r||(r=this.createNamespace(i,e)),r}registerTrigger(i,e,r){let o=this._namespaceLookup[i];o&&o.register(e,r)&&this.totalAnimations++}destroy(i,e){if(!i)return;const r=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[i];const o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>r.destroy(e))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,r=this.statesByElement.get(i);if(r){const o=Object.keys(r);for(let s=0;s=0&&this.collectedLeaveElements.splice(c,1)}if(i){const c=this._fetchNamespace(i);c&&c.insertNode(e,r)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Zo(i,am)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Fd(i,am))}removeNode(i,e,r,o){if(Rd(e)){const s=i?this._fetchNamespace(i):null;if(s?s.removeNode(e,o):this.markElementAsRemoved(i,e,!1,o),r){const c=this.namespacesByHostElement.get(e);c&&c.id!==i&&c.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(i,e,r,o,s){this.collectedLeaveElements.push(e),e[Cs]={namespaceId:i,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,e,r,o,s){return Rd(e)?this._fetchNamespace(i).listen(e,r,o,s):()=>{}}_buildInstruction(i,e,r,o,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,r,o,i.fromState.options,i.toState.options,e,s)}destroyInnerAnimations(i){let e=this.driver.query(i,$g,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,wv,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Ll(this.players).onDone(()=>i());i()})}processLeaveNode(i){var e;const r=i[Cs];if(r&&r.setForRemoval){if(i[Cs]=$E,r.namespaceId){this.destroyInnerAnimations(i);const o=this._fetchNamespace(r.namespaceId);o&&o.clearElementCache(i)}this._onRemovalComplete(i,r.setForRemoval)}(null===(e=i.classList)||void 0===e?void 0:e.contains(am))&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],e.length?Ll(e).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(i){throw function Md(n){return new t.vHH(3402,Pn)}()}_flushAnimations(i,e){const r=new Pd,o=[],s=new Map,c=[],f=new Map,g=new Map,v=new Map,T=new Set;this.disabledNodes.forEach(Ct=>{T.add(Ct);const Rt=this.driver.query(Ct,".ng-animate-queued",!0);for(let nn=0;nn{const nn=Cv+fe++;K.set(Rt,nn),Ct.forEach(kn=>Zo(kn,nn))});const Me=[],Fe=new Set,qe=new Set;for(let Ct=0;CtFe.add(kn)):qe.add(Rt))}const xt=new Map,dt=YE(M,Array.from(Fe));dt.forEach((Ct,Rt)=>{const nn=bf+fe++;xt.set(Rt,nn),Ct.forEach(kn=>Zo(kn,nn))}),i.push(()=>{R.forEach((Ct,Rt)=>{const nn=K.get(Rt);Ct.forEach(kn=>Fd(kn,nn))}),dt.forEach((Ct,Rt)=>{const nn=xt.get(Rt);Ct.forEach(kn=>Fd(kn,nn))}),Me.forEach(Ct=>{this.processLeaveNode(Ct)})});const tn=[],an=[];for(let Ct=this._namespaceList.length-1;Ct>=0;Ct--)this._namespaceList[Ct].drainQueuedTransitions(e).forEach(nn=>{const kn=nn.player,or=nn.element;if(tn.push(kn),this.collectedEnterElements.length){const Or=or[Cs];if(Or&&Or.setForMove){if(Or.previousTriggersValues&&Or.previousTriggersValues.has(nn.triggerName)){const ko=Or.previousTriggersValues.get(nn.triggerName),ga=this.statesByElement.get(nn.element);ga&&ga[nn.triggerName]&&(ga[nn.triggerName].value=ko)}return void kn.destroy()}}const Qo=!D||!this.driver.containsElement(D,or),Br=xt.get(or),Ps=K.get(or),hi=this._buildInstruction(nn,r,Ps,Br,Qo);if(hi.errors&&hi.errors.length)return void an.push(hi);if(Qo)return kn.onStart(()=>eu(or,hi.fromStyles)),kn.onDestroy(()=>Eo(or,hi.toStyles)),void o.push(kn);if(nn.isFallbackTransition)return kn.onStart(()=>eu(or,hi.fromStyles)),kn.onDestroy(()=>Eo(or,hi.toStyles)),void o.push(kn);const al=[];hi.timelines.forEach(Or=>{Or.stretchStartingKeyframe=!0,this.disabledNodes.has(Or.element)||al.push(Or)}),hi.timelines=al,r.append(or,hi.timelines),c.push({instruction:hi,player:kn,element:or}),hi.queriedElements.forEach(Or=>io(f,Or,[]).push(kn)),hi.preStyleProps.forEach((Or,ko)=>{const ga=Object.keys(Or);if(ga.length){let _u=g.get(ko);_u||g.set(ko,_u=new Set),ga.forEach(lp=>_u.add(lp))}}),hi.postStyleProps.forEach((Or,ko)=>{const ga=Object.keys(Or);let _u=v.get(ko);_u||v.set(ko,_u=new Set),ga.forEach(lp=>_u.add(lp))})});if(an.length){const Ct=[];an.forEach(Rt=>{Ct.push(function Id(n,i){return new t.vHH(3505,Pn)}())}),tn.forEach(Rt=>Rt.destroy()),this.reportError(Ct)}const On=new Map,Wn=new Map;c.forEach(Ct=>{const Rt=Ct.element;r.has(Rt)&&(Wn.set(Rt,Rt),this._beforeAnimationBuild(Ct.player.namespaceId,Ct.instruction,On))}),o.forEach(Ct=>{const Rt=Ct.element;this._getPreviousPlayers(Rt,!1,Ct.namespaceId,Ct.triggerName,null).forEach(kn=>{io(On,Rt,[]).push(kn),kn.destroy()})});const Mi=Me.filter(Ct=>KE(Ct,g,v)),_i=new Map;Rv(_i,this.driver,qe,v,qa).forEach(Ct=>{KE(Ct,g,v)&&Mi.push(Ct)});const lo=new Map;R.forEach((Ct,Rt)=>{Rv(lo,this.driver,new Set(Ct),g,"!")}),Mi.forEach(Ct=>{const Rt=_i.get(Ct),nn=lo.get(Ct);_i.set(Ct,Object.assign(Object.assign({},Rt),nn))});const rr=[],ac=[],lc={};c.forEach(Ct=>{const{element:Rt,player:nn,instruction:kn}=Ct;if(r.has(Rt)){if(T.has(Rt))return nn.onDestroy(()=>Eo(Rt,kn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(kn.totalTime),void o.push(nn);let or=lc;if(Wn.size>1){let Br=Rt;const Ps=[];for(;Br=Br.parentNode;){const hi=Wn.get(Br);if(hi){or=hi;break}Ps.push(Br)}Ps.forEach(hi=>Wn.set(hi,or))}const Qo=this._buildAnimation(nn.namespaceId,kn,On,s,lo,_i);if(nn.setRealPlayer(Qo),or===lc)rr.push(nn);else{const Br=this.playersByElement.get(or);Br&&Br.length&&(nn.parentPlayer=Ll(Br)),o.push(nn)}}else eu(Rt,kn.fromStyles),nn.onDestroy(()=>Eo(Rt,kn.toStyles)),ac.push(nn),T.has(Rt)&&o.push(nn)}),ac.forEach(Ct=>{const Rt=s.get(Ct.element);if(Rt&&Rt.length){const nn=Ll(Rt);Ct.setRealPlayer(nn)}}),o.forEach(Ct=>{Ct.parentPlayer?Ct.syncPlayerEvents(Ct.parentPlayer):Ct.destroy()});for(let Ct=0;Ct!Qo.destroyed);or.length?Fv(this,Rt,or):this.processLeaveNode(Rt)}return Me.length=0,rr.forEach(Ct=>{this.players.push(Ct),Ct.onDone(()=>{Ct.destroy();const Rt=this.players.indexOf(Ct);this.players.splice(Rt,1)}),Ct.play()}),rr}elementContainsData(i,e){let r=!1;const o=e[Cs];return o&&o.setForRemoval&&(r=!0),this.playersByElement.has(e)&&(r=!0),this.playersByQueriedElement.has(e)&&(r=!0),this.statesByElement.has(e)&&(r=!0),this._fetchNamespace(i).elementContainsData(e)||r}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,r,o,s){let c=[];if(e){const f=this.playersByQueriedElement.get(i);f&&(c=f)}else{const f=this.playersByElement.get(i);if(f){const g=!s||s==Hl;f.forEach(v=>{v.queued||!g&&v.triggerName!=o||c.push(v)})}}return(r||o)&&(c=c.filter(f=>!(r&&r!=f.namespaceId||o&&o!=f.triggerName))),c}_beforeAnimationBuild(i,e,r){const s=e.element,c=e.isRemovalTransition?void 0:i,f=e.isRemovalTransition?void 0:e.triggerName;for(const g of e.timelines){const v=g.element,T=v!==s,D=io(r,v,[]);this._getPreviousPlayers(v,T,c,f,e.toState).forEach(R=>{const K=R.getRealPlayer();K.beforeDestroy&&K.beforeDestroy(),R.destroy(),D.push(R)})}eu(s,e.fromStyles)}_buildAnimation(i,e,r,o,s,c){const f=e.triggerName,g=e.element,v=[],T=new Set,D=new Set,M=e.timelines.map(K=>{const fe=K.element;T.add(fe);const Me=fe[Cs];if(Me&&Me.removedBeforeQueried)return new Xc(K.duration,K.delay);const Fe=fe!==g,qe=function JE(n){const i=[];return QE(n,i),i}((r.get(fe)||EN).map(On=>On.getRealPlayer())).filter(On=>!!On.element&&On.element===fe),xt=s.get(fe),dt=c.get(fe),tn=IE(0,this._normalizer,0,K.keyframes,xt,dt),an=this._buildPlayer(K,tn,qe);if(K.subTimeline&&o&&D.add(fe),Fe){const On=new lm(i,f,fe);On.setRealPlayer(an),v.push(On)}return an});v.forEach(K=>{io(this.playersByQueriedElement,K.element,[]).push(K),K.onDone(()=>function s1(n,i,e){let r;if(n instanceof Map){if(r=n.get(i),r){if(r.length){const o=r.indexOf(e);r.splice(o,1)}0==r.length&&n.delete(i)}}else if(r=n[i],r){if(r.length){const o=r.indexOf(e);r.splice(o,1)}0==r.length&&delete n[i]}return r}(this.playersByQueriedElement,K.element,K))}),T.forEach(K=>Zo(K,Od));const R=Ll(M);return R.onDestroy(()=>{T.forEach(K=>Fd(K,Od)),Eo(g,e.toStyles)}),D.forEach(K=>{io(o,K,[]).push(R)}),R}_buildPlayer(i,e,r){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,r):new Xc(i.duration,i.delay)}}class lm{constructor(i,e,r){this.namespaceId=i,this.triggerName=e,this.element=r,this._player=new Xc,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(r=>jg(i,e,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){io(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function Rd(n){return n&&1===n.nodeType}function l1(n,i){const e=n.style.display;return n.style.display=null!=i?i:"none",e}function Rv(n,i,e,r,o){const s=[];e.forEach(g=>s.push(l1(g)));const c=[];r.forEach((g,v)=>{const T={};g.forEach(D=>{const M=T[D]=i.computeStyle(v,D,o);(!M||0==M.length)&&(v[Cs]=AN,c.push(v))}),n.set(v,T)});let f=0;return e.forEach(g=>l1(g,s[f++])),c}function YE(n,i){const e=new Map;if(n.forEach(f=>e.set(f,[])),0==i.length)return e;const o=new Set(i),s=new Map;function c(f){if(!f)return 1;let g=s.get(f);if(g)return g;const v=f.parentNode;return g=e.has(v)?v:o.has(v)?1:c(v),s.set(f,g),g}return i.forEach(f=>{const g=c(f);1!==g&&e.get(g).push(f)}),e}function Zo(n,i){var e;null===(e=n.classList)||void 0===e||e.add(i)}function Fd(n,i){var e;null===(e=n.classList)||void 0===e||e.remove(i)}function Fv(n,i,e){Ll(e).onDone(()=>n.processLeaveNode(i))}function QE(n,i){for(let e=0;eo.add(s)):i.set(n,r),e.delete(n),!0}class cm{constructor(i,e,r){this.bodyNode=i,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Nv(i,e,r),this._timelineEngine=new zE(i,e,r),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(i,e,r,o,s){const c=i+"-"+o;let f=this._triggerCache[c];if(!f){const g=[],T=Rr(this._driver,s,g,[]);if(g.length)throw function wE(n,i){return new t.vHH(3404,Pn)}();f=function qE(n,i,e){return new KC(n,i,e)}(o,T,this._normalizer),this._triggerCache[c]=f}this._transitionEngine.registerTrigger(e,o,f)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,r,o){this._transitionEngine.insertNode(i,e,r,o)}onRemove(i,e,r,o){this._transitionEngine.removeNode(i,e,o||!1,r)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,r,o){if("@"==r.charAt(0)){const[s,c]=mv(r);this._timelineEngine.command(s,e,c,o)}else this._transitionEngine.trigger(i,e,r,o)}listen(i,e,r,o,s){if("@"==r.charAt(0)){const[c,f]=mv(r);return this._timelineEngine.listen(c,e,f,s)}return this._transitionEngine.listen(i,e,r,o,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let eA=(()=>{class n{constructor(e,r,o){this._element=e,this._startStyles=r,this._endStyles=o,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Eo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Eo(this._element,this._initialStyles),this._endStyles&&(Eo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(eu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(eu(this._element,this._endStyles),this._endStyles=null),Eo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function c1(n){let i=null;const e=Object.keys(n);for(let r=0;ri()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(i,e,r){return i.animate(e,r)}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(r=>{"offset"!=r&&(i[r]=this._finished?e[r]:em(this.element,r))})}this.currentSnapshot=i}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class nA{validateStyleProperty(i){return OC(i)}matchesElement(i,e){return!1}containsElement(i,e){return bv(i,e)}getParentElement(i){return Wg(i)}query(i,e,r){return yv(i,e,r)}computeStyle(i,e,r){return window.getComputedStyle(i)[e]}animate(i,e,r,o,s,c=[]){const g={duration:r,delay:o,fill:0==o?"both":"forwards"};s&&(g.easing=s);const v={},T=c.filter(M=>M instanceof um);(function Sv(n,i){return 0===n||0===i})(r,o)&&T.forEach(M=>{let R=M.currentSnapshot;Object.keys(R).forEach(K=>v[K]=R[K])}),e=function GC(n,i,e){const r=Object.keys(e);if(r.length&&i.length){let s=i[0],c=[];if(r.forEach(f=>{s.hasOwnProperty(f)||c.push(f),s[f]=e[f]}),c.length)for(var o=1;oGl(M,!1)),v);const D=function XE(n,i){let e=null,r=null;return Array.isArray(i)&&i.length?(e=c1(i[0]),i.length>1&&(r=c1(i[i.length-1]))):i&&(e=c1(i)),e||r?new eA(n,e,r):null}(i,e);return new um(i,e,g,D)}}let ws=(()=>{class n extends vC{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?cv(e):e;return u1(this._renderer,null,r,"register",[o]),new iA(r,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.FYo),t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();class iA extends class fE{}{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new Lv(this._id,i,e||{},this._renderer)}}class Lv{constructor(i,e,r,o){this.id=i,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return u1(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){var i,e;return null!==(e=null===(i=this._renderer.engine.players[+this.id])||void 0===i?void 0:i.getPosition())&&void 0!==e?e:0}}function u1(n,i,e,r,o){return n.setProperty(i,`@@${e}:${r}`,o)}const hm="@.disabled";let d1=(()=>{class n{constructor(e,r,o){this.delegate=e,this.engine=r,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(s,c)=>{const f=null==c?void 0:c.parentNode(s);f&&c.removeChild(f,s)}}createRenderer(e,r){const s=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let T=this._rendererCache.get(s);return T||(T=new Bv("",s,this.engine),this._rendererCache.set(s,T)),T}const c=r.id,f=r.id+"-"+this._currentId;this._currentId++,this.engine.register(f,e);const g=T=>{Array.isArray(T)?T.forEach(g):this.engine.registerTrigger(c,f,e,T.name,T)};return r.data.animation.forEach(g),new rA(this,f,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,o){e>=0&&er(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[c,f]=s;c(f)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.FYo),t.LFG(cm),t.LFG(t.R0b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();class Bv{constructor(i,e,r){this.namespaceId=i,this.delegate=e,this.engine=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,r,o=!0){this.delegate.insertBefore(i,e,r),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,r){this.engine.onRemove(this.namespaceId,e,this.delegate,r)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,r,o){this.delegate.setAttribute(i,e,r,o)}removeAttribute(i,e,r){this.delegate.removeAttribute(i,e,r)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,r,o){this.delegate.setStyle(i,e,r,o)}removeStyle(i,e,r){this.delegate.removeStyle(i,e,r)}setProperty(i,e,r){"@"==e.charAt(0)&&e==hm?this.disableAnimations(i,!!r):this.delegate.setProperty(i,e,r)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,r){return this.delegate.listen(i,e,r)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class rA extends Bv{constructor(i,e,r,o){super(e,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,r){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hm?this.disableAnimations(i,r=void 0===r||!!r):this.engine.process(this.namespaceId,i,e.substr(1),r):this.delegate.setProperty(i,e,r)}listen(i,e,r){if("@"==e.charAt(0)){const o=function h1(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(i);let s=e.substr(1),c="";return"@"!=s.charAt(0)&&([s,c]=function oA(n){const i=n.indexOf(".");return[n.substring(0,i),n.substr(i+1)]}(s)),this.engine.listen(this.namespaceId,o,s,c,f=>{this.factory.scheduleListenerCallback(f._data||-1,r,f)})}return this.delegate.listen(i,e,r)}}let sA=(()=>{class n extends cm{constructor(e,r,o){super(e.body,r,o)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee),t.LFG(qg),t.LFG(Ov))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const Ii=new t.OlP("AnimationModuleType"),Uv=[{provide:vC,useClass:ws},{provide:Ov,useFactory:function aA(){return new $C}},{provide:cm,useClass:sA},{provide:t.FYo,useFactory:function Gv(n,i,e){return new d1(n,i,e)},deps:[hl,cm,t.R0b]}],Hv=[{provide:qg,useFactory:()=>new nA},{provide:Ii,useValue:"BrowserAnimations"},...Uv],lA=[{provide:qg,useClass:xv},{provide:Ii,useValue:"NoopAnimations"},...Uv];let ON=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?lA:Hv}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:Hv,imports:[wo]}),n})();function f1(n,i){if(1&n&&t._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=t.oxw();t.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function cA(n,i){if(1&n&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("(",e.group.label,")")}}const uA=["*"],pA=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function fA(){return!0}});let In=(()=>{class n{constructor(e,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Pl()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(_C),t.LFG(pA,8),t.LFG(ee))},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[Jc],Jc]}),n})();function nu(n){return class extends n{constructor(...i){super(...i),this._disabled=!1}get disabled(){return this._disabled}set disabled(i){this._disabled=Wt(i)}}}function iu(n,i){return class extends n{constructor(...e){super(...e),this.defaultColor=i,this.color=i}get color(){return this._color}set color(e){const r=e||this.defaultColor;r!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),r&&this._elementRef.nativeElement.classList.add(`mat-${r}`),this._color=r)}}}function jl(n){return class extends n{constructor(...i){super(...i),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=Wt(i)}}}function fm(n,i=0){return class extends n{constructor(...e){super(...e),this._tabIndex=i,this.defaultTabIndex=i}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Ua(e):this.defaultTabIndex}}}function _1(n){return class extends n{constructor(...i){super(...i),this.stateChanges=new ft.x,this.errorState=!1}updateErrorState(){const i=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==i&&(this.errorState=s,this.stateChanges.next())}}}let Ld=(()=>{class n{isErrorState(e,r){return!!(e&&e.invalid&&(e.touched||r&&r.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function Bd(n,i,e){n.nativeElement.classList.toggle(i,e)}let Vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[In],In]}),n})();class b1{constructor(i,e,r){this._renderer=i,this.element=e,this.config=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const pm={enterDuration:225,exitDuration:150},Vv=Ol({passive:!0}),gm=["mousedown","touchstart"],mm=["mouseup","mouseleave","touchend","touchcancel"];class _m{constructor(i,e,r,o){this._target=i,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=ja(r))}fadeInRipple(i,e,r={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},pm),r.animation);r.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);const c=r.radius||function UN(n,i,e){const r=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(r*r+o*o)}(i,e,o),f=i-o.left,g=e-o.top,v=s.enterDuration,T=document.createElement("div");T.classList.add("mat-ripple-element"),T.style.left=f-c+"px",T.style.top=g-c+"px",T.style.height=2*c+"px",T.style.width=2*c+"px",null!=r.color&&(T.style.backgroundColor=r.color),T.style.transitionDuration=`${v}ms`,this._containerElement.appendChild(T),function GN(n){window.getComputedStyle(n).getPropertyValue("opacity")}(T),T.style.transform="scale(1)";const D=new b1(this,T,r);return D.state=0,this._activeRipples.add(D),r.persistent||(this._mostRecentTransientRipple=D),this._runTimeoutOutsideZone(()=>{const M=D===this._mostRecentTransientRipple;D.state=1,!r.persistent&&(!M||!this._isPointerDown)&&D.fadeOut()},v),D}fadeOutRipple(i){const e=this._activeRipples.delete(i);if(i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const r=i.element,o=Object.assign(Object.assign({},pm),i.config.animation);r.style.transitionDuration=`${o.exitDuration}ms`,r.style.opacity="0",i.state=2,this._runTimeoutOutsideZone(()=>{i.state=3,r.remove()},o.exitDuration)}fadeOutAll(){this._activeRipples.forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){const e=ja(i);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(gm))}handleEvent(i){"mousedown"===i.type?this._onMousedown(i):"touchstart"===i.type?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(mm),this._pointerUpEventsRegistered=!0)}_onMousedown(i){const e=av(i),r=this._lastTouchStartEvent&&Date.now(){!i.config.persistent&&(1===i.state||i.config.terminateOnPointerUp&&0===i.state)&&i.fadeOut()}))}_runTimeoutOutsideZone(i,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(i,e))}_registerEvents(i){this._ngZone.runOutsideAngular(()=>{i.forEach(e=>{this._triggerElement.addEventListener(e,this,Vv)})})}_removeTriggerEvents(){this._triggerElement&&(gm.forEach(i=>{this._triggerElement.removeEventListener(i,this,Vv)}),this._pointerUpEventsRegistered&&mm.forEach(i=>{this._triggerElement.removeEventListener(i,this,Vv)}))}}const HN=new t.OlP("mat-ripple-global-options");let $a=(()=>{class n{constructor(e,r,o,s,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new _m(this,r,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,r=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,r,Object.assign(Object.assign({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(vr),t.Y36(HN,8),t.Y36(Ii,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,r){2&e&&t.ekj("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),Zl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[In],In]}),n})(),vA=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ii,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,r){2&e&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===r.state)("mat-pseudo-checkbox-checked","checked"===r.state)("mat-pseudo-checkbox-disabled",r.disabled)("_mat-animation-noopable","NoopAnimations"===r._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,r){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),bA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[In]]}),n})();const y1=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),Zv=new t.OlP("MatOptgroup");let CA=0;class x1{constructor(i,e=!1){this.source=i,this.isUserInput=e}}let Wv=(()=>{class n{constructor(e,r,o,s){this._element=e,this._changeDetectorRef=r,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+CA++,this.onSelectionChange=new t.vpe,this._stateChanges=new ft.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Wt(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,r){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ra(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new x1(this,e))}}return n.\u0275fac=function(e){t.$Z()},n.\u0275dir=t.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Mf=(()=>{class n extends Wv{constructor(e,r,o,s){super(e,r,o,s)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(y1,8),t.Y36(Zv,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,r){1&e&&t.NdJ("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),2&e&&(t.Ikx("id",r.id),t.uIk("tabindex",r._getTabIndex())("aria-selected",r._getAriaSelected())("aria-disabled",r.disabled.toString()),t.ekj("mat-selected",r.selected)("mat-option-multiple",r.multiple)("mat-active",r.active)("mat-option-disabled",r.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:uA,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,r){1&e&&(t.F$t(),t.YNc(0,f1,1,2,"mat-pseudo-checkbox",0),t.TgZ(1,"span",1),t.Hsn(2),t.qZA(),t.YNc(3,cA,2,1,"span",2),t._UZ(4,"div",3)),2&e&&(t.Q6J("ngIf",r.multiple),t.xp6(3),t.Q6J("ngIf",r.group&&r.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},directives:[vA,Gt,$a],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function qv(n,i,e){if(e.length){let r=i.toArray(),o=e.toArray(),s=0;for(let c=0;c{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[Zl,si,In,bA]]}),n})();function wA(n,i){}class w1{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const ZN={dialogContainer:xs("dialogContainer",[br("void, exit",ei({opacity:0,transform:"scale(0.7)"})),br("enter",ei({transform:"none"})),yr("* => enter",bC([Wr("150ms cubic-bezier(0, 0, 0.2, 1)",ei({transform:"none",opacity:1})),gf("@*",uv(),{optional:!0})])),yr("* => void, * => exit",bC([Wr("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ei({opacity:0})),gf("@*",uv(),{optional:!0})]))])};let TA=(()=>{class n extends H0{constructor(e,r,o,s,c,f,g,v){super(),this._elementRef=e,this._focusTrapFactory=r,this._changeDetectorRef=o,this._config=c,this._interactivityChecker=f,this._ngZone=g,this._focusMonitor=v,this._animationStateChanged=new t.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=T=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(T)),this._ariaLabelledBy=c.ariaLabelledBy||null,this._document=s}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=kl())}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,r){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(r)}_focusByCssSelector(e,r){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,r)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(r=>{r||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const r=kl(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,r=kl();return e===r||e.contains(r)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(dC),t.Y36(t.sBO),t.Y36(ee,8),t.Y36(w1),t.Y36(ov),t.Y36(t.R0b),t.Y36(oa))},n.\u0275dir=t.lG2({type:n,viewQuery:function(e,r){if(1&e&&t.Gf(Qc,7),2&e){let o;t.iGM(o=t.CRH())&&(r._portalOutlet=o.first)}},features:[t.qOj]}),n})(),qN=(()=>{class n extends TA{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:r}){"enter"===e?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:r})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:r}))}_onAnimationStart({toState:e,totalTime:r}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:r}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:r})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,r){1&e&&t.WFA("@dialogContainer.start",function(s){return r._onAnimationStart(s)})("@dialogContainer.done",function(s){return r._onAnimationDone(s)}),2&e&&(t.Ikx("id",r._id),t.uIk("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledBy)("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),t.d8E("@dialogContainer",r._state))},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,r){1&e&&t.YNc(0,wA,0,0,"ng-template",0)},directives:[Qc],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ZN.dialogContainer]}}),n})(),zN=0;class qr{constructor(i,e,r="mat-dialog-"+zN++){this._overlayRef=i,this._containerInstance=e,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new ft.x,this._afterClosed=new ft.x,this._beforeClosed=new ft.x,this._state=0,e._id=r,e._animationStateChanged.pipe(Yt(o=>"opened"===o.state),(0,_n.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Yt(o=>"closed"===o.state),(0,_n.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),i.keydownEvents().pipe(Yt(o=>27===o.keyCode&&!this.disableClose&&!ra(o))).subscribe(o=>{o.preventDefault(),T1(this,"keyboard")}),i.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():T1(this,"mouse")})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(Yt(e=>"closing"===e.state),(0,_n.q)(1)).subscribe(e=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(i){let e=this._getPositionStrategy();return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(i="",e=""){return this._overlayRef.updateSize({width:i,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(i){return this._overlayRef.addPanelClass(i),this}removePanelClass(i){return this._overlayRef.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function T1(n,i,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=i),n.close(e)}const Gd=new t.OlP("MatDialogData"),SA=new t.OlP("mat-dialog-default-options"),DA=new t.OlP("mat-dialog-scroll-strategy"),YN={provide:DA,deps:[bs],useFactory:function $N(n){return()=>n.scrollStrategies.block()}};let a=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D){this._overlay=e,this._injector=r,this._defaultOptions=o,this._parentDialog=s,this._overlayContainer=c,this._dialogRefConstructor=g,this._dialogContainerType=v,this._dialogDataToken=T,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ft.x,this._afterOpenedAtThisLevel=new ft.x,this._ariaHiddenElements=new Map,this.afterAllClosed=rs(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wi(void 0))),this._scrollStrategy=f}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,r){r=function u(n,i){return Object.assign(Object.assign({},i),n)}(r,this._defaultOptions||new w1),r.id&&this.getDialogById(r.id);const o=this._createOverlay(r),s=this._attachDialogContainer(o,r),c=this._attachDialogContent(e,s,o,r);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.afterClosed().subscribe(()=>this._removeOpenDialog(c)),this.afterOpened.next(c),s._initializeWithAttachedContent(),c}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(r=>r.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const r=this._getOverlayConfig(e);return this._overlay.create(r)}_getOverlayConfig(e){const r=new lf({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(r.backdropClass=e.backdropClass),r}_attachDialogContainer(e,r){const s=t.zs3.create({parent:r&&r.viewContainerRef&&r.viewContainerRef.injector||this._injector,providers:[{provide:w1,useValue:r}]}),c=new Mx(this._dialogContainerType,r.viewContainerRef,s,r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,r,o,s){const c=new this._dialogRefConstructor(o,r,s.id);if(e instanceof t.Rgc)r.attachTemplatePortal(new vd(e,null,{$implicit:s.data,dialogRef:c}));else{const f=this._createInjector(s,c,r),g=r.attachComponentPortal(new Mx(e,s.viewContainerRef,f,s.componentFactoryResolver));c.componentInstance=g.instance}return c.updateSize(s.width,s.height).updatePosition(s.position),c}_createInjector(e,r,o){const s=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:r}];return e.direction&&(!s||!s.get(Ui,null,t.XFs.Optional))&&c.push({provide:Ui,useValue:{value:e.direction,change:ut()}}),t.zs3.create({parent:s||this._injector,providers:c})}_removeOpenDialog(e){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const r=e.parentElement.children;for(let o=r.length-1;o>-1;o--){let s=r[o];s!==e&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let r=e.length;for(;r--;)e[r].close()}}return n.\u0275fac=function(e){t.$Z()},n.\u0275dir=t.lG2({type:n}),n})(),l=(()=>{class n extends a{constructor(e,r,o,s,c,f,g,v){super(e,r,s,f,g,c,qr,qN,Gd,v)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(bs),t.LFG(t.zs3),t.LFG(et,8),t.LFG(SA,8),t.LFG(DA),t.LFG(n,12),t.LFG(Wa),t.LFG(Ii,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),h=0,p=(()=>{class n{constructor(e,r,o){this.dialogRef=e,this._elementRef=r,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=S(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const r=e._matDialogClose||e._matDialogCloseResult;r&&(this.dialogResult=r.currentValue)}_onButtonClick(e){T1(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr,8),t.Y36(t.SBq),t.Y36(l))},n.\u0275dir=t.lG2({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,r){1&e&&t.NdJ("click",function(s){return r._onButtonClick(s)}),2&e&&t.uIk("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[t.TTD]}),n})(),_=(()=>{class n{constructor(e,r,o){this._dialogRef=e,this._elementRef=r,this._dialog=o,this.id="mat-dialog-title-"+h++}ngOnInit(){this._dialogRef||(this._dialogRef=S(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr,8),t.Y36(t.SBq),t.Y36(l))},n.\u0275dir=t.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,r){2&e&&t.Ikx("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),y=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),w=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})();function S(n,i){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?i.find(r=>r.id===e.id):null}let E=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[l,YN],imports:[[tv,tf,In],In]}),n})(),I=(()=>{class n{constructor(e,r){this.translate=e,this.loginService=r}Success(e,r,o){this.translate.get("TOASTER").subscribe(s=>{toastr.success(e,s.SUCCESS)})}Warning(e,r){toastr.warning(r,e)}Error(e,r){toastr.remove(),this.translate.get("TOASTER").subscribe(o=>{toastr.error(e,o.ERROR)})}strikeError(e,r){toastr.remove(),toastr.error(e,r)}Info(e){toastr.info(e)}playgameMsg(e,r){toastr.remove(),""!=r?toastr.success(r,"",{extendedTimeOut:0,timeOut:0,iconClass:"toast-success removeIcon",positionClass:this.loginService.isNative?"app-custom-playgame-toast toast-top-center":"custom-playgame-toast toast-top-center"}).css("width","fit-content"):toastr.success(e,"",{timeOut:5e3,iconClass:"toast-success removeIcon",positionClass:this.loginService.isNative?"app-custom-playgame-toast toast-top-center":"custom-playgame-toast toast-top-center"}).css("width","fit-content")}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Zn),t.LFG(fn))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();function q(...n){const i=(0,ts.jO)(n),{args:e,keys:r}=L_(n),o=new Yn.y(s=>{const{length:c}=e;if(!c)return void s.complete();const f=new Array(c);let g=c,v=c;for(let T=0;T{D||(D=!0,v--),f[T]=M},()=>g--,void 0,()=>{(!g||!D)&&(v||s.next(r?Pc(r,f):f),s.complete())}))}});return i?o.pipe(Ah(i)):o}let ae=(()=>{class n{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n}),n})(),xe=(()=>{class n extends ae{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,features:[t.qOj]}),n})();const Be=new t.OlP("NgValueAccessor"),At={provide:Be,useExisting:(0,t.Gpc)(()=>Kt),multi:!0},$t=new t.OlP("CompositionEventMode");let Kt=(()=>{class n extends ae{constructor(e,r,o){super(e,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Qe(){const n=B()?B().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36($t,8))},n.\u0275dir=t.lG2({type:n,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(e,r){1&e&&t.NdJ("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[t._Bn([At]),t.qOj]}),n})();function Fn(n){return null==n||0===n.length}function _o(n){return null!=n&&"number"==typeof n.length}const Oi=new t.OlP("NgValidators"),aa=new t.OlP("NgAsyncValidators"),$v=/^(?=.{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 Wo{static min(i){return function vm(n){return i=>{if(Fn(i.value)||Fn(n))return null;const e=parseFloat(i.value);return!isNaN(e)&&e{if(Fn(i.value)||Fn(n))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>n?{max:{max:n,actual:i.value}}:null}}(i)}static required(i){return ym(i)}static requiredTrue(i){return function xm(n){return!0===n.value?null:{required:!0}}(i)}static email(i){return Cm(i)}static minLength(i){return wm(i)}static maxLength(i){return JN(i)}static pattern(i){return function QN(n){if(!n)return S1;let i,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),i=new RegExp(e)):(e=n.toString(),i=n),r=>{if(Fn(r.value))return null;const o=r.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(i)}static nullValidator(i){return null}static compose(i){return iR(i)}static composeAsync(i){return rR(i)}}function ym(n){return Fn(n.value)?{required:!0}:null}function Cm(n){return Fn(n.value)||$v.test(n.value)?null:{email:!0}}function wm(n){return i=>Fn(i.value)||!_o(i.value)?null:i.value.length_o(i.value)&&i.value.length>n?{maxlength:{requiredLength:n,actualLength:i.value.length}}:null}function S1(n){return null}function KN(n){return null!=n}function XN(n){const i=(0,t.QGY)(n)?(0,qi.D)(n):n;return(0,t.CqO)(i),i}function eR(n){let i={};return n.forEach(e=>{i=null!=e?Object.assign(Object.assign({},i),e):i}),0===Object.keys(i).length?null:i}function tR(n,i){return i.map(e=>e(n))}function nR(n){return n.map(i=>function n5(n){return!n.validate}(i)?i:e=>i.validate(e))}function iR(n){if(!n)return null;const i=n.filter(KN);return 0==i.length?null:function(e){return eR(tR(e,i))}}function EA(n){return null!=n?iR(nR(n)):null}function rR(n){if(!n)return null;const i=n.filter(KN);return 0==i.length?null:function(e){return q(tR(e,i).map(XN)).pipe((0,Le.U)(eR))}}function AA(n){return null!=n?rR(nR(n)):null}function oR(n,i){return null===n?[i]:Array.isArray(n)?[...n,i]:[n,i]}function sR(n){return n._rawValidators}function aR(n){return n._rawAsyncValidators}function MA(n){return n?Array.isArray(n)?n:[n]:[]}function D1(n,i){return Array.isArray(n)?n.includes(i):n===i}function lR(n,i){const e=MA(i);return MA(n).forEach(o=>{D1(e,o)||e.push(o)}),e}function cR(n,i){return MA(i).filter(e=>!D1(n,e))}class uR{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(i){this._rawValidators=i||[],this._composedValidatorFn=EA(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=AA(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class Ya extends uR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ao extends uR{get formDirective(){return null}get path(){return null}}class dR{constructor(i){this._cd=i}is(i){var e,r,o;return"submitted"===i?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[i])}}let xr=(()=>{class n extends dR{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ya,2))},n.\u0275dir=t.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&t.ekj("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[t.qOj]}),n})(),Ud=(()=>{class n extends dR{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ao,10))},n.\u0275dir=t.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&t.ekj("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[t.qOj]}),n})();function A1(n,i){return[...i.path,n]}function Yv(n,i){kA(n,i),i.valueAccessor.writeValue(n.value),function d5(n,i){i.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&fR(n,i)})}(n,i),function f5(n,i){const e=(r,o)=>{i.valueAccessor.writeValue(r),o&&i.viewToModelUpdate(r)};n.registerOnChange(e),i._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,i),function h5(n,i){i.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&fR(n,i),"submit"!==n.updateOn&&n.markAsTouched()})}(n,i),function u5(n,i){if(i.valueAccessor.setDisabledState){const e=r=>{i.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),i._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,i)}function M1(n,i,e=!0){const r=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(r),i.valueAccessor.registerOnTouched(r)),O1(n,i),n&&(i._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function I1(n,i){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function kA(n,i){const e=sR(n);null!==i.validator?n.setValidators(oR(e,i.validator)):"function"==typeof e&&n.setValidators([e]);const r=aR(n);null!==i.asyncValidator?n.setAsyncValidators(oR(r,i.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const o=()=>n.updateValueAndValidity();I1(i._rawValidators,o),I1(i._rawAsyncValidators,o)}function O1(n,i){let e=!1;if(null!==n){if(null!==i.validator){const o=sR(n);if(Array.isArray(o)&&o.length>0){const s=o.filter(c=>c!==i.validator);s.length!==o.length&&(e=!0,n.setValidators(s))}}if(null!==i.asyncValidator){const o=aR(n);if(Array.isArray(o)&&o.length>0){const s=o.filter(c=>c!==i.asyncValidator);s.length!==o.length&&(e=!0,n.setAsyncValidators(s))}}}const r=()=>{};return I1(i._rawValidators,r),I1(i._rawAsyncValidators,r),e}function fR(n,i){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function pR(n,i){kA(n,i)}function PA(n,i){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function mR(n,i){n._syncPendingControls(),i.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function NA(n,i){if(!i)return null;let e,r,o;return Array.isArray(i),i.forEach(s=>{s.constructor===Kt?e=s:function m5(n){return Object.getPrototypeOf(n.constructor)===xe}(s)?r=s:o=s}),o||r||e||null}function RA(n,i){const e=n.indexOf(i);e>-1&&n.splice(e,1)}const Jv="VALID",k1="INVALID",Tm="PENDING",Qv="DISABLED";function LA(n){return(P1(n)?n.validators:n)||null}function _R(n){return Array.isArray(n)?EA(n):n||null}function BA(n,i){return(P1(i)?i.asyncValidators:n)||null}function vR(n){return Array.isArray(n)?AA(n):n||null}function P1(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const bR=n=>n instanceof If,GA=n=>n instanceof N1;function yR(n){return bR(n)?n.value:n.getRawValue()}function xR(n,i){const e=GA(n),r=n.controls;if(!(e?Object.keys(r):r).length)throw new t.vHH(1e3,"");if(!r[i])throw new t.vHH(1001,"")}function CR(n,i){GA(n),n._forEachChild((r,o)=>{if(void 0===i[o])throw new t.vHH(1002,"")})}class UA{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=i,this._rawAsyncValidators=e,this._composedValidatorFn=_R(this._rawValidators),this._composedAsyncValidatorFn=vR(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===Jv}get invalid(){return this.status===k1}get pending(){return this.status==Tm}get disabled(){return this.status===Qv}get enabled(){return this.status!==Qv}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._rawValidators=i,this._composedValidatorFn=_R(i)}setAsyncValidators(i){this._rawAsyncValidators=i,this._composedAsyncValidatorFn=vR(i)}addValidators(i){this.setValidators(lR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(lR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(cR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(cR(i,this._rawAsyncValidators))}hasValidator(i){return D1(this._rawValidators,i)}hasAsyncValidator(i){return D1(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Tm,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Qv,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Jv,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Jv||this.status===Tm)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qv:Jv}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Tm,this._hasOwnPendingAsyncValidator=!0;const e=XN(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){return function _5(n,i,e){if(null==i||(Array.isArray(i)||(i=i.split(e)),Array.isArray(i)&&0===i.length))return null;let r=n;return i.forEach(o=>{r=GA(r)?r.controls.hasOwnProperty(o)?r.controls[o]:null:(n=>n instanceof b5)(r)&&r.at(o)||null}),r}(this,i,".")}getError(i,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Qv:this.errors?k1:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tm)?Tm:this._anyControlsHaveStatus(k1)?k1:Jv}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_isBoxedValue(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){P1(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class If extends UA{constructor(i=null,e,r){super(LA(e),BA(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),P1(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){RA(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){RA(this._onDisabledChange,i)}_forEachChild(i){}_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(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}class N1 extends UA{constructor(i,e,r){super(LA(e),BA(r,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,r={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,r={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){CR(this,i),Object.keys(i).forEach(r=>{xR(this,r),this.controls[r].setValue(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((r,o)=>{r.reset(i[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,r)=>(i[r]=yR(e),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&i(r,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const e of Object.keys(this.controls)){const r=this.controls[e];if(this.contains(e)&&i(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(i,e,r)=>((e.enabled||this.disabled)&&(i[r]=e.value),i))}_reduceChildren(i,e){let r=i;return this._forEachChild((o,s)=>{r=e(r,o,s)}),r}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class b5 extends UA{constructor(i,e,r){super(LA(e),BA(r,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[i]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,r={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,r={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){CR(this,i),i.forEach((r,o)=>{xR(this,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((r,o)=>{r.reset(i[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>yR(i))}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_syncPendingControls(){let i=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,r)=>{i(e,r)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}const y5={provide:Ao,useExisting:(0,t.Gpc)(()=>Ja)},Kv=(()=>Promise.resolve(null))();let Ja=(()=>{class n extends Ao{constructor(e,r){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new N1({},EA(e),AA(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Kv.then(()=>{const r=this._findContainer(e.path);e.control=r.registerControl(e.name,e.control),Yv(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Kv.then(()=>{const r=this._findContainer(e.path);r&&r.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Kv.then(()=>{const r=this._findContainer(e.path),o=new N1({});pR(o,e),r.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Kv.then(()=>{const r=this._findContainer(e.path);r&&r.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,r){Kv.then(()=>{this.form.get(e.path).setValue(r)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,mR(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Oi,10),t.Y36(aa,10))},n.\u0275dir=t.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,r){1&e&&t.NdJ("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([y5]),t.qOj]}),n})();const C5={provide:Ya,useExisting:(0,t.Gpc)(()=>Cr)},SR=(()=>Promise.resolve(null))();let Cr=(()=>{class n extends Ya{constructor(e,r,o,s,c){super(),this._changeDetectorRef=c,this.control=new If,this._registered=!1,this.update=new t.vpe,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=NA(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),PA(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Yv(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(e){SR.then(()=>{var r;this.control.setValue(e,{emitViewToModelChange:!1}),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,o=""===r||r&&"false"!==r;SR.then(()=>{var s;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(e){return this._parent?A1(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ao,9),t.Y36(Oi,10),t.Y36(aa,10),t.Y36(Be,10),t.Y36(t.sBO,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([C5]),t.qOj,t.TTD]}),n})(),Hd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),ER=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();const HA=new t.OlP("NgModelWithFormControlWarning"),A5={provide:Ao,useExisting:(0,t.Gpc)(()=>Sm)};let Sm=(()=>{class n extends Ao{constructor(e,r){super(),this.validators=e,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(O1(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return Yv(r,e),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){M1(e.control||null,e,!1),RA(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,mR(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,o=this.form.get(e.path);r!==o&&(M1(r||null,e),bR(o)&&(Yv(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);pR(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function p5(n,i){return O1(n,i)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){kA(this.form,this),this._oldForm&&O1(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Oi,10),t.Y36(aa,10))},n.\u0275dir=t.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&t.NdJ("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([A5]),t.qOj,t.TTD]}),n})();const O5={provide:Ya,useExisting:(0,t.Gpc)(()=>ZA)};let ZA=(()=>{class n extends Ya{constructor(e,r,o,s,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=NA(0,s)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),PA(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return A1(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 n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(t.Y36(Ao,13),t.Y36(Oi,10),t.Y36(aa,10),t.Y36(Be,10),t.Y36(HA,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([O5]),t.qOj,t.TTD]}),n})();function NR(n){return"number"==typeof n?n:parseInt(n,10)}let Of=(()=>{class n{constructor(){this._validator=S1}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):S1,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,features:[t.TTD]}),n})();const H5={provide:Oi,useExisting:(0,t.Gpc)(()=>jd),multi:!0};let jd=(()=>{class n extends Of{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function B5(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>ym}enabled(e){return e}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,r){2&e&&t.uIk("required",r._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([H5]),t.qOj]}),n})();const V5={provide:Oi,useExisting:(0,t.Gpc)(()=>Xv),multi:!0};let Xv=(()=>{class n extends Of{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=e=>""===e||!0===e||"true"===e,this.createValidator=e=>Cm}enabled(e){return e}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[t._Bn([V5]),t.qOj]}),n})();const Z5={provide:Oi,useExisting:(0,t.Gpc)(()=>F1),multi:!0};let F1=(()=>{class n extends Of{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>NR(e),this.createValidator=e=>wm(e)}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&t.uIk("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[t._Bn([Z5]),t.qOj]}),n})();const W5={provide:Oi,useExisting:(0,t.Gpc)(()=>zA),multi:!0};let zA=(()=>{class n extends Of{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>NR(e),this.createValidator=e=>JN(e)}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&t.uIk("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t._Bn([W5]),t.qOj]}),n})(),GR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ER]]}),n})(),L1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[GR]}),n})(),z5=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:HA,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[GR]}),n})();const $5=["mat-button",""],Y5=["*"],Q5=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],K5=iu(nu(jl(class{constructor(n){this._elementRef=n}})));let Di=(()=>{class n extends K5{constructor(e,r,o){super(e),this._focusMonitor=r,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of Q5)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,r){e?this._focusMonitor.focusVia(this._getHostElement(),e,r):this._getHostElement().focus(r)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(r=>this._getHostElement().hasAttribute(r))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(oa),t.Y36(Ii,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,r){if(1&e&&t.Gf($a,5),2&e){let o;t.iGM(o=t.CRH())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,r){2&e&&(t.uIk("disabled",r.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-button-disabled",r.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:$5,ngContentSelectors:Y5,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&e&&(t.xp6(2),t.ekj("mat-button-ripple-round",r.isRoundButton||r.isIconButton),t.Q6J("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",r.isIconButton)("matRippleTrigger",r._getHostElement()))},directives:[$a],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),X5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[Zl,In],In]}),n})();function UR(n){for(let i in n){let e=n[i]||"";switch(i){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+i]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+i]=isNaN(+e)?"0":e}}return n}const $A="inline",B1=["row","column","row-reverse","column-reverse"];function HR(n){let[i,e,r]=jR(n);return function t4(n,i=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":i||null}}(i,e,r)}function jR(n){var i;n=null!==(i=null==n?void 0:n.toLowerCase())&&void 0!==i?i:"";let[e,r,o]=n.split(" ");return B1.find(s=>s===e)||(e=B1[0]),r===$A&&(r=o!==$A?o:"",o=$A),[e,e4(r),!!o]}function eb(n){let[i]=jR(n);return i.indexOf("row")>-1}function e4(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function ru(n,...i){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of i)if(null!=e)for(let r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}const r4={provide:t.tb,useFactory:function n4(n,i){return()=>{if(_e(i)){const e=Array.from(n.querySelectorAll(`[class*=${VR}]`)),r=/\bflex-layout-.+?\b/g;e.forEach(o=>{o.classList.contains(`${VR}ssr`)&&o.parentNode?o.parentNode.removeChild(o):o.className.replace(r,"")})}}},deps:[ee,t.Lbi],multi:!0},VR="flex-layout-";let YA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[r4]}),n})();class kf{constructor(i=!1,e="all",r="",o="",s=0){this.matches=i,this.mediaQuery=e,this.mqAlias=r,this.suffix=o,this.priority=s,this.property=""}clone(){return new kf(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let o4=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,r,o){const s=this.stylesheet.get(e);s?s.set(r,o):this.stylesheet.set(e,new Map([[r,o]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,r){const o=this.stylesheet.get(e);let s="";if(o){const c=o.get(r);("number"==typeof c||"string"==typeof c)&&(s=c+"")}return s}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const JA={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Qa=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>JA}),Dm=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),QA=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ZR(n,i){return n=n?n.clone():new kf,i&&(n.mqAlias=i.alias,n.mediaQuery=i.mediaQuery,n.suffix=i.suffix,n.priority=i.priority),n}class ur{constructor(){this.shouldCache=!0}sideEffect(i,e,r){}}let ji=(()=>{class n{constructor(e,r,o,s){this._serverStylesheet=e,this._serverModuleLoaded=r,this._platformId=o,this.layoutConfig=s}applyStyleToElement(e,r,o=null){let s={};"string"==typeof r&&(s[r]=o,r=s),s=this.layoutConfig.disableVendorPrefixes?r:UR(r),this._applyMultiValueStyleToElement(s,e)}applyStyleToElements(e,r=[]){const o=this.layoutConfig.disableVendorPrefixes?e:UR(e);r.forEach(s=>{this._applyMultiValueStyleToElement(o,s)})}getFlowDirection(e){const r="flex-direction";let o=this.lookupStyle(e,r);return[o||"row",this.lookupInlineStyle(e,r)||Ue(this._platformId)&&this._serverModuleLoaded?o:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,r){var o;return null!==(o=e.getAttribute(r))&&void 0!==o?o:""}lookupInlineStyle(e,r){return _e(this._platformId)?e.style.getPropertyValue(r):function s4(n,i){var e;return null!==(e=WR(n)[i])&&void 0!==e?e:""}(e,r)}lookupStyle(e,r,o=!1){let s="";return e&&((s=this.lookupInlineStyle(e,r))||(_e(this._platformId)?o||(s=getComputedStyle(e).getPropertyValue(r)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(e,r)))),s?s.trim():""}_applyMultiValueStyleToElement(e,r){Object.keys(e).sort().forEach(o=>{const s=e[o],c=Array.isArray(s)?s:[s];c.sort();for(let f of c)f=f?f+"":"",_e(this._platformId)||!this._serverModuleLoaded?_e(this._platformId)?r.style.setProperty(o,f):a4(r,o,f):this._serverStylesheet.addStyleToElement(r,o,f)})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(o4),t.LFG(Dm),t.LFG(t.Lbi),t.LFG(Qa))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function a4(n,i,e){i=i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const r=WR(n);r[i]=null!=e?e:"",function l4(n,i){let e="";for(const r in i)i[r]&&(e+=`${r}:${i[r]};`);n.setAttribute("style",e)}(n,r)}function WR(n){const i={},e=n.getAttribute("style");if(e){const r=e.split(/;+/g);for(let o=0;o0){const c=s.indexOf(":");if(-1===c)throw new Error(`Invalid CSS style: ${s}`);i[s.substr(0,c).trim()]=s.substr(c+1).trim()}}}return i}function tb(n,i){return(i&&i.priority||0)-(n&&n.priority||0)}function c4(n,i){return(n.priority||0)-(i.priority||0)}let KA=(()=>{class n{constructor(e,r,o){this._zone=e,this._platformId=r,this._document=o,this.source=new xi(new kf(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((r,o)=>{r.matches&&e.push(o)}),e}isActive(e){var r;const o=this.registry.get(e);return null!==(r=null==o?void 0:o.matches)&&void 0!==r?r:this.registerQuery(e).some(s=>s.matches)}observe(e,r=!1){if(e&&e.length){const o=this._observable$.pipe(Yt(c=>!r||e.indexOf(c.mediaQuery)>-1)),s=new Yn.y(c=>{const f=this.registerQuery(e);if(f.length){const g=f.pop();f.forEach(v=>{c.next(v)}),this.source.next(g)}c.complete()});return(0,_r.T)(s,o)}return this._observable$}registerQuery(e){const r=Array.isArray(e)?e:[e],o=[];return function u4(n,i){const e=n.filter(r=>!qR[r]);if(e.length>0){const r=e.join(", ");try{const o=i.createElement("style");o.setAttribute("type","text/css"),o.styleSheet||o.appendChild(i.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${r} {.fx-query-test{ }}\n`)),i.head.appendChild(o),e.forEach(s=>qR[s]=o)}catch(o){console.error(o)}}}(r,this._document),r.forEach(s=>{const c=g=>{this._zone.run(()=>this.source.next(new kf(g.matches,s)))};let f=this.registry.get(s);f||(f=this.buildMQL(s),f.addListener(c),this.pendingRemoveListenerFns.push(()=>f.removeListener(c)),this.registry.set(s,f)),f.matches&&o.push(new kf(!0,s))}),o}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function d4(n,i){return i&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,_e(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qR={},h4=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],zR="(orientation: portrait) and (max-width: 599.98px)",$R="(orientation: landscape) and (max-width: 959.98px)",YR="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",JR="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",QR="(orientation: portrait) and (min-width: 840px)",KR="(orientation: landscape) and (min-width: 1280px)",ou={HANDSET:`${zR}, ${$R}`,TABLET:`${YR} , ${JR}`,WEB:`${QR}, ${KR} `,HANDSET_PORTRAIT:`${zR}`,TABLET_PORTRAIT:`${YR} `,WEB_PORTRAIT:`${QR}`,HANDSET_LANDSCAPE:`${$R}`,TABLET_LANDSCAPE:`${JR}`,WEB_LANDSCAPE:`${KR}`},f4=[{alias:"handset",priority:2e3,mediaQuery:ou.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ou.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ou.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ou.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ou.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ou.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ou.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ou.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ou.WEB_PORTRAIT,overlapping:!0}],p4=/(\.|-|_)/g;function g4(n){let i=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return i.toUpperCase()+e}const b4=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,t.f3M)(QA),i=(0,t.f3M)(Qa),e=[].concat.apply([],(n||[]).map(o=>Array.isArray(o)?o:[o]));return function v4(n,i=[]){const e={};return n.forEach(r=>{e[r.alias]=r}),i.forEach(r=>{e[r.alias]?ru(e[r.alias],r):e[r.alias]=r}),function _4(n){return n.forEach(i=>{i.suffix||(i.suffix=function m4(n){return n.replace(p4,"|").split("|").map(g4).join("")}(i.alias),i.overlapping=!!i.overlapping)}),n}(Object.keys(e).map(r=>e[r]))}((i.disableDefaultBps?[]:h4).concat(i.addOrientationBps?f4:[]),e)}});let XA=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(c4)}findByAlias(e){return e?this.findWithPredicate(e,r=>r.alias===e):null}findByQuery(e){return this.findWithPredicate(e,r=>r.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var r;return null!==(r=null==e?void 0:e.suffix)&&void 0!==r?r:""})}findWithPredicate(e,r){var o;let s=this.findByMap.get(e);return s||(s=null!==(o=this.items.find(r))&&void 0!==o?o:null,this.findByMap.set(e,s)),null!=s?s:null}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(b4))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Em="print",y4={alias:Em,mediaQuery:Em,priority:1e3};let x4=(()=>{class n{constructor(e,r,o){this.breakpoints=e,this.layoutConfig=r,this._document=o,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new C4,this.deactivations=[]}withPrintQuery(e){return[...e,Em]}isPrintEvent(e){return e.mediaQuery.startsWith(Em)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const r=this.breakpoints.findByQuery(e);return(r?[...this.printBreakPoints,r]:this.printBreakPoints).sort(tb)}updateEvent(e){var r;let o=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(o=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(r=null==o?void 0:o.mediaQuery)&&void 0!==r?r:""),ZR(e,o)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const r=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new kf(!0,Em))),e.updateStyles())},o=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",r),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(r),this.afterPrintEventListeners.push(o)}interceptEvents(e){return r=>{this.isPrintEvent(r)?r.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(r)),e.updateStyles()):!r.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,r)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,r){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(r)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,r){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!r.matches){const o=this.breakpoints.findByQuery(r.mediaQuery);if(o){const s=this.formerActivations&&this.formerActivations.includes(o),c=!this.formerActivations&&e.activatedBreakpoints.includes(o);(s||c)&&(this.deactivations.push(o),this.deactivations.sort(tb))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(XA),t.LFG(Qa),t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class C4{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(i){return i.push(y4),i.sort(tb),i.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(i){i&&void 0===this.printBreakpoints.find(r=>r.mediaQuery===i.mediaQuery)&&(this.printBreakpoints=function w4(n){var i;return null!==(i=null==n?void 0:n.mediaQuery.startsWith(Em))&&void 0!==i&&i}(i)?[i,...this.printBreakpoints]:[...this.printBreakpoints,i])}clear(){this.printBreakpoints=[]}}let Yi=(()=>{class n{constructor(e,r,o){this.matchMedia=e,this.breakpoints=r,this.hook=o,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new ft.x,this.observeActivations()}get activatedAlias(){var e,r;return null!==(r=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==r?r:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const r=this.findByQuery(e.mediaQuery);if(r){e=ZR(e,r);const o=this.activatedBreakpoints.indexOf(r);e.matches&&-1===o?(this._activatedBreakpoints.push(r),this._activatedBreakpoints.sort(tb),this.updateStyles()):!e.matches&&-1!==o&&(this._activatedBreakpoints.splice(o,1),this._activatedBreakpoints.sort(tb),this.updateStyles())}}init(e,r,o,s,c=[]){XR(this.updateMap,e,r,o),XR(this.clearMap,e,r,s),this.buildElementKeyMap(e,r),this.watchExtraTriggers(e,r,c)}getValue(e,r,o){const s=this.elementMap.get(e);if(s){const c=void 0!==o?s.get(o):this.getActivatedValues(s,r);if(c)return c.get(r)}}hasValue(e,r){const o=this.elementMap.get(e);if(o){const s=this.getActivatedValues(o,r);if(s)return void 0!==s.get(r)||!1}return!1}setValue(e,r,o,s){var c;let f=this.elementMap.get(e);if(f){const v=(null!==(c=f.get(s))&&void 0!==c?c:new Map).set(r,o);f.set(s,v),this.elementMap.set(e,f)}else f=(new Map).set(s,(new Map).set(r,o)),this.elementMap.set(e,f);const g=this.getValue(e,r);void 0!==g&&this.updateElement(e,r,g)}trackValue(e,r){return this.subject.asObservable().pipe(Yt(o=>o.element===e&&o.key===r))}updateStyles(){this.elementMap.forEach((e,r)=>{const o=new Set(this.elementKeyMap.get(r));let s=this.getActivatedValues(e);s&&s.forEach((c,f)=>{this.updateElement(r,f,c),o.delete(f)}),o.forEach(c=>{if(s=this.getActivatedValues(e,c),s){const f=s.get(c);this.updateElement(r,c,f)}else this.clearElement(r,c)})})}clearElement(e,r){const o=this.clearMap.get(e);if(o){const s=o.get(r);s&&(s(),this.subject.next({element:e,key:r,value:""}))}}updateElement(e,r,o){const s=this.updateMap.get(e);if(s){const c=s.get(r);c&&(c(o),this.subject.next({element:e,key:r,value:o}))}}releaseElement(e){const r=this.watcherMap.get(e);r&&(r.forEach(s=>s.unsubscribe()),this.watcherMap.delete(e));const o=this.elementMap.get(e);o&&(o.forEach((s,c)=>o.delete(c)),this.elementMap.delete(e))}triggerUpdate(e,r){const o=this.elementMap.get(e);if(o){const s=this.getActivatedValues(o,r);s&&(r?this.updateElement(e,r,s.get(r)):s.forEach((c,f)=>this.updateElement(e,f,c)))}}buildElementKeyMap(e,r){let o=this.elementKeyMap.get(e);o||(o=new Set,this.elementKeyMap.set(e,o)),o.add(r)}watchExtraTriggers(e,r,o){if(o&&o.length){let s=this.watcherMap.get(e);if(s||(s=new Map,this.watcherMap.set(e,s)),!s.get(r)){const f=(0,_r.T)(...o).subscribe(()=>{const g=this.getValue(e,r);this.updateElement(e,r,g)});s.set(r,f)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,r){for(let s=0;sr.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(gi(this.hook.interceptEvents(this)),Yt(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(KA),t.LFG(XA),t.LFG(x4))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function XR(n,i,e,r){var o;if(void 0!==r){const s=null!==(o=n.get(i))&&void 0!==o?o:new Map;s.set(e,r),n.set(i,s)}}let nr=(()=>{class n{constructor(e,r,o,s){this.elementRef=e,this.styleBuilder=r,this.styler=o,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new ft.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(r=>{if(-1!==this.inputs.indexOf(r)){const o=r.split(".").slice(1).join(".");this.setValue(e[r].currentValue,o)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,r){const o=this.styleBuilder,s=o.shouldCache;let c=this.styleCache.get(e);(!c||!s)&&(c=o.buildStyles(e,r),s&&this.styleCache.set(e,c)),this.mru=Object.assign({},c),this.applyStyleToElement(c),o.sideEffect(e,c,r)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,r=!1){if(e){const[o,s]=this.styler.getFlowDirection(e);if(!s&&r){const c=HR(o);this.styler.applyStyleToElements(c,[e])}return o.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,r,o=this.nativeElement){this.styler.applyStyleToElement(o,e,r)}setValue(e,r){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,r)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(ur),t.Y36(ji),t.Y36(Yi))},n.\u0275dir=t.lG2({type:n,features:[t.TTD]}),n})();function eF(n,i="1",e="1"){let r=[i,e,n],o=n.indexOf("calc");if(o>0){r[2]=tF(n.substring(o).trim());let s=n.substr(0,o).trim().split(" ");2==s.length&&(r[0]=s[0],r[1]=s[1])}else if(0==o)r[2]=tF(n.trim());else{let s=n.split(" ");r=3===s.length?s:[i,e,n]}return r}function tF(n){return n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function G1(n,i){if(void 0===i)return n;const e=r=>{const o=+r.slice(0,-"x".length);return n.endsWith("x")&&!isNaN(o)?`${o*i.value}${i.unit}`:n};return n.includes(" ")?n.split(" ").map(e).join(" "):e(n)}let D4=(()=>{class n extends ur{buildStyles(e,{display:r}){const o=HR(e);return Object.assign(Object.assign({},o),{display:"none"===r?r:o.display})}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const E4=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let A4=(()=>{class n extends nr{constructor(e,r,o,s,c){super(e,o,r,s),this._config=c,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var r;const s=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(r=iF.get(s))&&void 0!==r?r:new Map,iF.set(s,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:s}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(ji),t.Y36(D4),t.Y36(Yi),t.Y36(Qa))},n.\u0275dir=t.lG2({type:n,features:[t.qOj]}),n})(),ti=(()=>{class n extends A4{constructor(){super(...arguments),this.inputs=E4}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[t.qOj]}),n})();const iF=new Map,rF={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let M4=(()=>{class n extends ur{constructor(e,r){super(),this._styler=e,this._config=r}buildStyles(e,r){return e.endsWith(U1)?function L4(n,i){const[e,r]=n.split(" "),s=v=>`-${v}`;let c="0px",f=s(null!=r?r:e),g="0px";return"rtl"===i?g=s(e):c=s(e),{margin:`0px ${c} ${f} ${g}`}}(e=G1(e=e.slice(0,e.indexOf(U1)),this._config.multiplier),r.directionality):{}}sideEffect(e,r,o){const s=o.items;if(e.endsWith(U1)){const c=function F4(n,i){const[e,r]=n.split(" ");let s="0px",f="0px";return"rtl"===i?f=e:s=e,{padding:`0px ${s} ${null!=r?r:e} ${f}`}}(e=G1(e=e.slice(0,e.indexOf(U1)),this._config.multiplier),o.directionality);this._styler.applyStyleToElements(c,o.items)}else{e=G1(e,this._config.multiplier),e=this.addFallbackUnit(e);const c=s.pop(),f=function B4(n,i){const e=oF(i.directionality,i.layout),r=Object.assign({},rF);return r[e]=n,r}(e,o);this._styler.applyStyleToElements(f,s),this._styler.applyStyleToElements(rF,[c])}}addFallbackUnit(e){return isNaN(+e)?e:`${e}${this._config.defaultUnit}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ji),t.LFG(Qa))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const I4=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let O4=(()=>{class n extends nr{constructor(e,r,o,s,c,f){super(e,c,s,f),this.zone=r,this.directionality=o,this.styleUtils=s,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new ft.x;const g=[this.directionality.change,this.observerSubject.asObservable()];this.init(g),this.marshal.trackValue(this.nativeElement,"layout").pipe(It(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const e=this.nativeElement.children,r=[];for(let o=e.length;o--;)r[o]=e[o];return r}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){const o=e.value.split(" ");this.layout=o[0],B1.find(s=>s===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(e){const r=this.childrenNodes.filter(o=>1===o.nodeType&&this.willDisplay(o)).sort((o,s)=>{const c=+this.styler.lookupStyle(o,"order"),f=+this.styler.lookupStyle(s,"order");return isNaN(c)||isNaN(f)||c===f?0:c>f?1:-1});if(r.length>0){const o=this.directionality.value,s=this.layout;"row"===s&&"rtl"===o?this.styleCache=k4:"row"===s&&"rtl"!==o?this.styleCache=N4:"column"===s&&"rtl"===o?this.styleCache=P4:"column"===s&&"rtl"!==o&&(this.styleCache=R4),this.addStyles(e,{directionality:o,items:r,layout:s})}}clearStyles(){const e=Object.keys(this.mru).length>0,r=e?"padding":oF(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[r]:""},this.childrenNodes)}willDisplay(e){const r=this.marshal.getValue(e,"show-hide");return!0===r||void 0===r&&"none"!==this.styleUtils.lookupStyle(e,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(e=>{e.some(o=>o.addedNodes&&o.addedNodes.length>0||o.removedNodes&&o.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Ui),t.Y36(ji),t.Y36(M4),t.Y36(Yi))},n.\u0275dir=t.lG2({type:n,features:[t.qOj]}),n})(),qo=(()=>{class n extends O4{constructor(){super(...arguments),this.inputs=I4}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[t.qOj]}),n})();const k4=new Map,P4=new Map,N4=new Map,R4=new Map,U1=" grid";function oF(n,i){switch(i){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===n?"margin-left":"margin-right";case"row-reverse":return"rtl"===n?"margin-right":"margin-left"}}let G4=(()=>{class n extends ur{constructor(e){super(),this.layoutConfig=e}buildStyles(e,r){let[o,s,...c]=e.split(" "),f=c.join(" ");const g=r.direction.indexOf("column")>-1?"column":"row",v=eb(g)?"max-width":"max-height",T=eb(g)?"min-width":"min-height",D=String(f).indexOf("calc")>-1,M=D||"auto"===f,R=String(f).indexOf("%")>-1&&!D,K=String(f).indexOf("px")>-1||String(f).indexOf("rem")>-1||String(f).indexOf("em")>-1||String(f).indexOf("vw")>-1||String(f).indexOf("vh")>-1;let fe=D||K;o="0"==o?0:o,s="0"==s?0:s;const Me=!o&&!s;let Fe={};const qe={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(f||""){case"":const xt=!1!==this.layoutConfig.useColumnBasisZero;f="row"===g?"0%":xt?"0.000000001px":"auto";break;case"initial":case"nogrow":o=0,f="auto";break;case"grow":f="100%";break;case"noshrink":s=0,f="auto";break;case"auto":break;case"none":o=0,s=0,f="auto";break;default:!fe&&!R&&!isNaN(f)&&(f+="%"),"0%"===f&&(fe=!0),"0px"===f&&(f="0%"),Fe=ru(qe,D?{"flex-grow":o,"flex-shrink":s,"flex-basis":fe?f:"100%"}:{flex:`${o} ${s} ${fe?f:"100%"}`})}return Fe.flex||Fe["flex-grow"]||(Fe=ru(qe,D?{"flex-grow":o,"flex-shrink":s,"flex-basis":f}:{flex:`${o} ${s} ${f}`})),"0%"!==f&&"0px"!==f&&"0.000000001px"!==f&&"auto"!==f&&(Fe[T]=Me||fe&&o?f:null,Fe[v]=Me||!M&&s?f:null),Fe[T]||Fe[v]?r.hasWrap&&(Fe[D?"flex-basis":"flex"]=Fe[v]?D?Fe[v]:`${o} ${s} ${Fe[v]}`:D?Fe[T]:`${o} ${s} ${Fe[T]}`):Fe=ru(qe,D?{"flex-grow":o,"flex-shrink":s,"flex-basis":f}:{flex:`${o} ${s} ${f}`}),ru(Fe,{"box-sizing":"border-box"})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Qa))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const U4=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let H4=(()=>{class n extends nr{constructor(e,r,o,s,c){super(e,s,r,c),this.layoutConfig=o,this.marshal=c,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(It(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(It(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const o=e.value.split(" ");this.direction=o[0],this.wrap=void 0!==o[1]&&"wrap"===o[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const o=this.direction,s=o.startsWith("row"),c=this.wrap;s&&c?this.styleCache=Z4:s&&!c?this.styleCache=j4:!s&&c?this.styleCache=W4:!s&&!c&&(this.styleCache=V4);const g=eF(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(g.join(" "),{direction:o,hasWrap:c})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const r=eF(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,r.join(" "))}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(ji),t.Y36(Qa),t.Y36(G4),t.Y36(Yi))},n.\u0275dir=t.lG2({type:n,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),n})(),Ei=(()=>{class n extends H4{constructor(){super(...arguments),this.inputs=U4}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[t.qOj]}),n})();const j4=new Map,V4=new Map,Z4=new Map,W4=new Map;let Q4=(()=>{class n extends ur{constructor(e){super(),this._config=e}buildStyles(e,r){e||(e="0"),e=G1(e,this._config.multiplier);const o=String(e).indexOf("%")>-1;!(String(e).indexOf("px")>-1)&&!o&&!isNaN(+e)&&(e=`${e}%`);const c=r.isRtl?"margin-right":"margin-left";return eb(r.layout)?{[c]:e}:{"margin-top":e}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Qa))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const K4=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"];let X4=(()=>{class n extends nr{constructor(e,r,o,s,c){super(e,o,c,s),this.directionality=r,this.DIRECTIVE_KEY="flex-offset",this.init([this.directionality.change]),this.parentElement&&this.marshal.trackValue(this.parentElement,"layout-gap").pipe(It(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))}updateWithValue(e=""){const r=this.getFlexFlowDirection(this.parentElement,!0),o="rtl"===this.directionality.value;"row"===r&&o?this.styleCache=eH:"row"!==r||o?"column"===r&&o?this.styleCache=tH:"column"===r&&!o&&(this.styleCache=iH):this.styleCache=nH,this.addStyles(e+"",{layout:r,isRtl:o})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(Ui),t.Y36(Q4),t.Y36(Yi),t.Y36(ji))},n.\u0275dir=t.lG2({type:n,features:[t.qOj]}),n})(),sF=(()=>{class n extends X4{constructor(){super(...arguments),this.inputs=K4}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[t.qOj]}),n})();const eH=new Map,tH=new Map,nH=new Map,iH=new Map;let rH=(()=>{class n extends ur{buildStyles(e){const r={};switch(e=e||"stretch"){case"start":r["align-self"]="flex-start";break;case"end":r["align-self"]="flex-end";break;default:r["align-self"]=e}return r}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oH=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let sH=(()=>{class n extends nr{constructor(e,r,o,s){super(e,o,r,s),this.DIRECTIVE_KEY="flex-align",this.styleCache=aH,this.init()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(ji),t.Y36(rH),t.Y36(Yi))},n.\u0275dir=t.lG2({type:n,features:[t.qOj]}),n})();const aH=new Map;let Wl=(()=>{class n extends sH{constructor(){super(...arguments),this.inputs=oH}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[t.qOj]}),n})(),hH=(()=>{class n extends ur{buildStyles(e,r){const o={},[s,c]=e.split(" ");switch(s){case"center":o["justify-content"]="center";break;case"space-around":o["justify-content"]="space-around";break;case"space-between":o["justify-content"]="space-between";break;case"space-evenly":o["justify-content"]="space-evenly";break;case"end":case"flex-end":o["justify-content"]="flex-end";break;default:o["justify-content"]="flex-start"}switch(c){case"start":case"flex-start":o["align-items"]=o["align-content"]="flex-start";break;case"center":o["align-items"]=o["align-content"]="center";break;case"end":case"flex-end":o["align-items"]=o["align-content"]="flex-end";break;case"space-between":o["align-content"]="space-between",o["align-items"]="stretch";break;case"space-around":o["align-content"]="space-around",o["align-items"]="stretch";break;case"baseline":o["align-content"]="stretch",o["align-items"]="baseline";break;default:o["align-items"]=o["align-content"]="stretch"}return ru(o,{display:r.inline?"inline-flex":"flex","flex-direction":r.layout,"box-sizing":"border-box","max-width":"stretch"===c?eb(r.layout)?null:"100%":null,"max-height":"stretch"===c&&eb(r.layout)?"100%":null})}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fH=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let pH=(()=>{class n extends nr{constructor(e,r,o,s){super(e,o,r,s),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(It(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const r=this.layout||"row",o=this.inline;"row"===r&&o?this.styleCache=bH:"row"!==r||o?"row-reverse"===r&&o?this.styleCache=xH:"row-reverse"!==r||o?"column"===r&&o?this.styleCache=yH:"column"!==r||o?"column-reverse"===r&&o?this.styleCache=CH:"column-reverse"===r&&!o&&(this.styleCache=vH):this.styleCache=mH:this.styleCache=_H:this.styleCache=gH,this.addStyles(e,{layout:r,inline:o})}onLayoutChange(e){const r=e.value.split(" ");this.layout=r[0],this.inline=e.value.includes("inline"),B1.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(ji),t.Y36(hH),t.Y36(Yi))},n.\u0275dir=t.lG2({type:n,features:[t.qOj]}),n})(),Ir=(()=>{class n extends pH{constructor(){super(...arguments),this.inputs=fH}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[t.qOj]}),n})();const gH=new Map,mH=new Map,_H=new Map,vH=new Map,bH=new Map,yH=new Map,xH=new Map,CH=new Map;let aF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[YA,Jc]]}),n})();function wH(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"FORGOTPW.EMAILVALIDMSG")))}function TH(n,i){if(1&n&&(t.TgZ(0,"div",10),t.YNc(1,wH,3,3,"div",11),t.qZA()),2&n){t.oxw();const e=t.MAs(10);t.xp6(1),t.Q6J("ngIf",e.errors.email)}}let SH=(()=>{class n{constructor(e,r,o,s){this._loginService=e,this.dialogRef=r,this.toasterService=o,this.translate=s,this.forgotScreenModel=new qc}ngOnInit(){this.translate.get("FORGOTPW").subscribe(e=>{this.translateObj=e})}sendForgotPasswordEmail(){""!=this.forgotScreenModel.email?this._loginService.forgotPassword(this.forgotScreenModel).subscribe(e=>{e&&e.statusType==xn.success?e&&e.msg&&(this.toasterService.Success(e.msg,"Success"),this.dialogRef.close()):e&&e.msg&&this.toasterService.Error(e.msg,"Error")}):this.toasterService.Error(this.translateObj.ENTEREMAIL,"Error")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(qr),t.Y36(I),t.Y36(Zn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-forgot-password-dialog"]],decls:19,vars:15,consts:[[1,"form-title","m-b-5"],[1,"reset-link-text"],[1,"form","validate-form"],["data-validate","Enter Email",1,"wrap-input","validate-input","margin-bottom-30"],["type","text","name","Email","placeholder","EMAIL ADDRESS",1,"input",3,"ngModel","ngModelChange"],["email","ngModel"],["class","invalid-feedback",4,"ngIf"],["fLayout","row"],["mat-raised-button","","color","accent","fxFlex","50",1,"btn-submit",3,"click"],["mat-stroked-button","","color","accent","fxFlex","49","fxFlexOffset","1",1,"btn-submit",3,"mat-dialog-close"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(e,r){if(1&e&&(t.TgZ(0,"div")(1,"span",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"span",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"form",2)(8,"div",3)(9,"input",4,5),t.NdJ("ngModelChange",function(s){return r.forgotScreenModel.email=s}),t.qZA()(),t.YNc(11,TH,2,1,"div",6),t.TgZ(12,"div",7)(13,"button",8),t.NdJ("click",function(){return r.sendForgotPasswordEmail()}),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.TgZ(16,"button",9),t._uU(17),t.ALo(18,"translate"),t.qZA()()()()),2&e){const o=t.MAs(10);t.xp6(2),t.hij(" ",t.lcZ(3,7,"FORGOTPW.FORGOTPWTITLE")," "),t.xp6(3),t.Oqu(t.lcZ(6,9,"FORGOTPW.EMAILLBL")),t.xp6(4),t.Q6J("ngModel",r.forgotScreenModel.email),t.xp6(2),t.Q6J("ngIf",o.invalid),t.xp6(3),t.Oqu(t.lcZ(15,11,"FORGOTPW.SUBMITBTN")),t.xp6(2),t.Q6J("mat-dialog-close",!0),t.xp6(1),t.Oqu(t.lcZ(18,13,"FORGOTPW.CANCELBTN"))}},directives:[Hd,Ud,Ja,Kt,xr,Cr,Gt,Di,Ei,sF,p],pipes:[pn],styles:[".wrap-input[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;border-radius:20px}.input[_ngcontent-%COMP%]::placeholder{font-size:14px;color:#000}.input[_ngcontent-%COMP%]{font-family:Segoe UI Bold;font-size:16px;color:#4b2354;line-height:50px;display:block;width:100%;height:50px;background:transparent;padding:0 20px 0 23px;border:1px solid #9f9f9f;border-radius:30px}.input[_ngcontent-%COMP%]:focus{border:1px solid #9f9f9f!important;border-radius:30px!important}.form-title[_ngcontent-%COMP%]{display:block;font-family:Segoe UI Bold;font-size:22px;font-weight:700;line-height:1.2;padding-top:15px}.reset-link-text[_ngcontent-%COMP%]{display:block;font-family:Segoe UI Bold;font-size:14px;font-weight:700;line-height:1.2;padding-bottom:33px} .border-radius>.mat-dialog-container{border-radius:55px;width:40vw}.btn-submit[_ngcontent-%COMP%]{height:50px;font-size:16px;text-transform:uppercase;font-weight:600}.margin-bottom-30[_ngcontent-%COMP%]{margin-bottom:30px}@media only screen and (max-width: 1024px){ .border-radius>.mat-dialog-container{width:80vw}}"]}),n})();const Pf=(0,zt.fo)("GoogleAuth",{web:()=>P.e(733).then(P.bind(P,7733)).then(n=>new n.GoogleAuthWeb)}),Am=(0,P(4064).fo)("FacebookLogin",{web:()=>P.e(884).then(P.bind(P,9884)).then(n=>new n.FacebookLoginWeb)}),su=(0,zt.fo)("Device",{web:()=>P.e(356).then(P.bind(P,5356)).then(n=>new n.DeviceWeb)}),lF=(0,zt.fo)("SignInWithApple",{web:()=>P.e(830).then(P.bind(P,830)).then(n=>new n.SignInWithAppleWeb)});class cF{constructor(){this.userId="",this.tokenId="",this.displayName="",this.email="",this.imageUrl="",this.firstName="",this.lastName="",this.authCode=""}}var uF=P(3377);let ql=(()=>{class n{constructor(e,r,o){this.http=e,this.router=r,this.loginService=o,this.ep=new to}changePassword(e){var r=(new Date).getTimezoneOffset();r=0==r?0:-r,this.userProfile=JSON.parse(window.localStorage.getItem(ce.userProfile));const o={headers:new ai({"Content-Type":"application/json",apiKey:this.userProfile.apiKey,apiToken:this.userProfile.apiToken,timezoneoffsetminutes:r.toString(),authToken:null==this.userProfile.authToken?"":this.userProfile.authToken,loginType:this.userProfile.loginType})};return this.http.post(this.ep.ChangePassword,e,o).pipe((0,Le.U)(s=>s),vt(this.handleError("ChangePassword")))}signOut(e){var r=(new Date).getTimezoneOffset();const o={headers:new ai({"Content-Type":"application/json",timezoneoffsetminutes:(r=0==r?0:-r).toString()})};return this.http.post(this.ep.Logout,e,o).pipe((0,Le.U)(s=>s),vt(this.handleError("SignOut")))}removeFCMDeviceId(e){var r=(new Date).getTimezoneOffset();r=0==r?0:-r,this.userProfile=JSON.parse(window.localStorage.getItem(ce.userProfile));const o={headers:new ai({"Content-Type":"application/json",apiKey:this.userProfile.apiKey,apiToken:this.userProfile.apiToken,timezoneoffsetminutes:r.toString()})};return this.http.post(this.ep.removeFCMDeviceId,e,o).pipe((0,Le.U)(s=>s),vt(this.handleError("removeFCMDeviceId")))}handleError(e="operation",r){return o=>{if(401==o.error.status||403==o.error.status){"emptyRefreshToken"==o.error.errMsgCode&&(this.loginService.isRefreshToken=!1);var s=JSON.parse(window.localStorage.getItem(ce.userProfile)),c=this.getUUID(),f={userId:s.id,deviceId:c,firebaseToken:window.localStorage.getItem("firebaseToken")};this.removeFCMDeviceId(f).subscribe(g=>{}),window.localStorage.clear(),this.loginService.getBrowserLang(""),this.router.navigate(["/login"])}return ut(r)}}getUUID(){var e=(new uF.DeviceUUID).parse();return e.hashMD5([e.language,e.platform,e.os,e.cpuCores,e.isAuthoritative,e.silkAccelerated,e.isKindleFire,e.isDesktop,e.isMobile,e.isTablet,e.isWindows,e.isLinux,e.isLinux64,e.isMac,e.isiPad,e.isiPhone,e.isiPod,e.isSmartTV,e.pixelDepth,e.isTouchScreen,e.browser].join(":"))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar),t.LFG(Ht),t.LFG(fn))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ka=(()=>{class n{constructor(e,r,o,s){this.http=e,this.router=r,this.changePasswordService=o,this.loginService=s,this.ep=new to}getRunningGames(e){return this.http.post(this.ep.RunnigGame,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("GetRunningGames")))}resumeGame(e){return this.http.post(this.ep.StartGame,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("ResumeGame")))}gamePlayersList(e){return this.http.post(this.ep.gamePlayersList,e).pipe((0,Le.U)(r=>r),vt(this.handleError("GamePlayersList")))}joinGame(e){return this.http.post(this.ep.JoinGame,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("joinGame")))}isUserTurn(e){return this.http.post(this.ep.IsUserTurn,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("IsUserTurn")))}endGame(e){return this.http.post(this.ep.endGame,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("endGame")))}gameStart(e){return this.http.post(this.ep.gameStart,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("gameStart")))}allowUninvitedPlayer(e){return this.http.post(this.ep.allowUninvitedPlayer,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("allowUninvitedPlayer")))}allowPlayerViaGameCode(e){return this.http.post(this.ep.allowPlayerViaGameCode,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("allowPlayerViaGameCode")))}setRequestHeaders(){var e=(new Date).getTimezoneOffset();e=0==e?0:-e;var r=JSON.parse(window.localStorage.getItem(ce.userProfile));return{headers:new ai({"Content-Type":"application/json",apiKey:r.apiKey,apiToken:r.apiToken,timezoneoffsetminutes:e.toString(),authToken:null==r.authToken?"":r.authToken,loginType:r.loginType})}}handleError(e="operation",r){return o=>{if(401==o.error.status||403==o.error.status){"emptyRefreshToken"==o.error.errMsgCode&&(this.loginService.isRefreshToken=!1);var s=JSON.parse(window.localStorage.getItem(ce.userProfile)),c=this.changePasswordService.getUUID(),f={userId:s.id,deviceId:c,firebaseToken:window.localStorage.getItem("firebaseToken")};this.changePasswordService.removeFCMDeviceId(f).subscribe(g=>{}),window.localStorage.clear(),this.loginService.getBrowserLang(""),this.router.navigate(["/login"])}return ut(r)}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar),t.LFG(Ht),t.LFG(ql),t.LFG(fn))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Mm extends ft.x{constructor(i=1/0,e=1/0,r=wg){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:c}=this;e||(r.push(i),!o&&r.push(s.now()+c)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:r,_buffer:o}=this,s=o.slice();for(let c=0;c!n.call(i,e,r)}function dF(n){return(0,Ci.e)((i,e)=>{let r=!1,o=null,s=null;const c=()=>{if(null==s||s.unsubscribe(),s=null,r){r=!1;const f=o;o=null,e.next(f)}};i.subscribe(new Kn.Q(e,f=>{null==s||s.unsubscribe(),r=!0,o=f,s=new Kn.Q(e,c,ud.Z),(0,fr.Xf)(n(f)).subscribe(s)},()=>{c(),e.complete()},void 0,()=>{o=s=null}))})}function MH(n,i){1&n&&t.GkF(0)}function IH(n,i){if(1&n&&t._UZ(0,"sk-cube-grid",4),2&n){const e=t.oxw(2);t.Q6J("backgroundColor",e.backgroundColor)}}function OH(n,i){if(1&n&&t._UZ(0,"sk-chasing-dots",4),2&n){const e=t.oxw(2);t.Q6J("backgroundColor",e.backgroundColor)}}function kH(n,i){if(1&n&&t._UZ(0,"sk-double-bounce",4),2&n){const e=t.oxw(2);t.Q6J("backgroundColor",e.backgroundColor)}}function PH(n,i){if(1&n&&t._UZ(0,"sk-rotating-plane",4),2&n){const e=t.oxw(2);t.Q6J("backgroundColor",e.backgroundColor)}}function NH(n,i){if(1&n&&t._UZ(0,"sk-spinner-pulse",4),2&n){const e=t.oxw(2);t.Q6J("backgroundColor",e.backgroundColor)}}function RH(n,i){if(1&n&&t._UZ(0,"sk-three-bounce",4),2&n){const e=t.oxw(2);t.Q6J("backgroundColor",e.backgroundColor)}}function FH(n,i){if(1&n&&t._UZ(0,"sk-wandering-cubes",4),2&n){const e=t.oxw(2);t.Q6J("backgroundColor",e.backgroundColor)}}function LH(n,i){if(1&n&&t._UZ(0,"sk-wave",4),2&n){const e=t.oxw(2);t.Q6J("backgroundColor",e.backgroundColor)}}const BH=function(n){return{"background-color":n}};function GH(n,i){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,MH,1,0,"ng-container",2),t.YNc(2,IH,1,1,"sk-cube-grid",3),t.YNc(3,OH,1,1,"sk-chasing-dots",3),t.YNc(4,kH,1,1,"sk-double-bounce",3),t.YNc(5,PH,1,1,"sk-rotating-plane",3),t.YNc(6,NH,1,1,"sk-spinner-pulse",3),t.YNc(7,RH,1,1,"sk-three-bounce",3),t.YNc(8,FH,1,1,"sk-wandering-cubes",3),t.YNc(9,LH,1,1,"sk-wave",3),t.qZA()),2&n){const e=t.oxw();t.Udp("opacity",e.opacity),t.ekj("backdrop",e.backdrop),t.Q6J("ngStyle",t.VKq(14,BH,e.backdrop?e.backdropBackgroundColor:"transparent")),t.xp6(1),t.Q6J("ngComponentOutlet",e.entryComponent),t.xp6(1),t.Q6J("ngIf",e.spinner===e.spinkit.skCubeGrid),t.xp6(1),t.Q6J("ngIf",e.spinner===e.spinkit.skChasingDots),t.xp6(1),t.Q6J("ngIf",e.spinner===e.spinkit.skDoubleBounce),t.xp6(1),t.Q6J("ngIf",e.spinner===e.spinkit.skRotatingPlane),t.xp6(1),t.Q6J("ngIf",e.spinner===e.spinkit.skSpinnerPulse),t.xp6(1),t.Q6J("ngIf",e.spinner===e.spinkit.skThreeBounce),t.xp6(1),t.Q6J("ngIf",e.spinner===e.spinkit.skWanderingCubes),t.xp6(1),t.Q6J("ngIf",e.spinner===e.spinkit.skWave)}}let Vd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,inputs:{backgroundColor:"backgroundColor"}}),n})(),hF=(()=>{class n extends Vd{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["sk-chasing-dots"]],features:[t.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2),t.qZA()),2&e&&(t.ekj("colored",!r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),n})(),fF=(()=>{class n extends Vd{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["sk-cube-grid"]],features:[t.qOj],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),t.qZA()),2&e&&(t.ekj("colored",!r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes sk-cubeGridScaleDelay{0%,70%,to{transform:scale(1)}35%{transform:scale(0)}}"]}),n})(),pF=(()=>{class n extends Vd{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["sk-double-bounce"]],features:[t.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2),t.qZA()),2&e&&(t.ekj("colored",!r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),n})(),gF=(()=>{class n extends Vd{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["sk-rotating-plane"]],features:[t.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(e,r){1&e&&t._UZ(0,"div",0),2&e&&t.Udp("background-color",r.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:sk-rotatePlane 1.2s infinite ease-in-out}@keyframes sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),n})(),mF=(()=>{class n extends Vd{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["sk-spinner-pulse"]],features:[t.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(e,r){1&e&&t._UZ(0,"div",0),2&e&&t.Udp("background-color",r.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:sk-pulseScaleOut 1s infinite ease-in-out}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),n})(),_F=(()=>{class n extends Vd{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["sk-three-bounce"]],features:[t.qOj],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2)(3,"div",3),t.qZA()),2&e&&(t.ekj("colored",!r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),n})(),vF=(()=>{class n extends Vd{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["sk-wandering-cubes"]],features:[t.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2),t.qZA()),2&e&&(t.ekj("colored",!r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),n})(),bF=(()=>{class n extends Vd{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["sk-wave"]],features:[t.qOj],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),t.qZA()),2&e&&(t.ekj("colored",!r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor),t.xp6(1),t.Udp("background-color",r.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),n})();const eM={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};let tM=(()=>{class n{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new Mm(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(e){this._filteredMethods=e}set filteredHeaders(e){this._filteredHeaders=e}set forceByPass(e){this._forceByPass=e}shouldBypassUrl(e){return this._filteredUrlPatterns.some(r=>r.test(e))}shouldBypassMethod(e){return this._filteredMethods.some(r=>r.toUpperCase()===e.method.toUpperCase())}shouldBypassHeader(e){return this._filteredHeaders.some(r=>e.headers.has(r))}shouldBypass(e){return this._forceByPass||this.shouldBypassUrl(e.urlWithParams)||this.shouldBypassMethod(e)||this.shouldBypassHeader(e)}intercept(e,r){const o=this.shouldBypass(e);return o||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),r.handle(e).pipe(fo(()=>{o||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const UH=[{provide:mg,useExisting:tM,multi:!0}];let Nf=(()=>{class n{constructor(e){this.pendingRequestsInterceptor=e,this._visibility$=new Mm(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(tM))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HH=(()=>{class n{constructor(e,r){this.pendingRequestsInterceptor=e,this.spinnerVisibility=r,this.spinkit=eM,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=eM.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[e,r]=function AH(n,i,e){return[Yt(i,e)((0,fr.Xf)(n)),Yt(EH(i,e))((0,fr.Xf)(n))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,o=>o);this.isVisible$=(0,_r.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe(En(()=>e.pipe(dF(()=>Il(this.debounceDelay))))),e.pipe(En(()=>r.pipe(dF(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(ys(),gi(o=>this.updateExpirationDelay(o)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(e=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(e)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(e){e&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return Il(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tM),t.Y36(Nf))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(e,r){1&e&&(t.YNc(0,GH,10,16,"div",0),t.ALo(1,"async")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,r.isVisible$))},directives:[fF,hF,pF,gF,mF,_F,vF,bF,Gt,uo,cc],pipes:[yp],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),n})(),jH=(()=>{class n{static forRoot(){return{ngModule:n,providers:[UH]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})();function H1(...n){const i=(0,ts.jO)(n);return(0,Ci.e)((e,r)=>{const o=n.length,s=new Array(o);let c=n.map(()=>!1),f=!1;for(let g=0;g{s[g]=v,!f&&!c[g]&&(c[g]=!0,(f=c.every(is.y))&&(c=null))},ud.Z));e.subscribe(new Kn.Q(r,g=>{if(f){const v=[g,...s];r.next(i?i(...v):v)}}))})}var Ji=P(6881);(0,Ji.registerVersion)("firebase","9.23.0","app");var Ai=P(5861),V=P(2090),zl=P(4859),Rf=P(1877);P(4727);const nM="@firebase/remote-config",zo=new V.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class nj{constructor(i,e,r,o){this.client=i,this.storage=e,this.storageCache=r,this.logger=o}isCachedDataFresh(i,e){if(!e)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const r=Date.now()-e,o=r<=i;return this.logger.debug(`Config fetch cache check. Cache age millis: ${r}. Cache max age millis (minimumFetchIntervalMillis setting): ${i}. Is cache hit: ${o}.`),o}fetch(i){var e=this;return(0,Ai.Z)(function*(){const[r,o]=yield Promise.all([e.storage.getLastSuccessfulFetchTimestampMillis(),e.storage.getLastSuccessfulFetchResponse()]);if(o&&e.isCachedDataFresh(i.cacheMaxAgeMillis,r))return o;i.eTag=o&&o.eTag;const s=yield e.client.fetch(i),c=[e.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===s.status&&c.push(e.storage.setLastSuccessfulFetchResponse(s)),yield Promise.all(c),s})()}}function ij(n=navigator){return n.languages&&n.languages[0]||n.language}class rj{constructor(i,e,r,o,s,c){this.firebaseInstallations=i,this.sdkVersion=e,this.namespace=r,this.projectId=o,this.apiKey=s,this.appId=c}fetch(i){var e=this;return(0,Ai.Z)(function*(){const[r,o]=yield Promise.all([e.firebaseInstallations.getId(),e.firebaseInstallations.getToken()]),c=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${e.projectId}/namespaces/${e.namespace}:fetch?key=${e.apiKey}`,f={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":i.eTag||"*"},g={sdk_version:e.sdkVersion,app_instance_id:r,app_instance_id_token:o,app_id:e.appId,language_code:ij()},v={method:"POST",headers:f,body:JSON.stringify(g)},T=fetch(c,v),D=new Promise((Fe,qe)=>{i.signal.addEventListener(()=>{const xt=new Error("The operation was aborted.");xt.name="AbortError",qe(xt)})});let M;try{yield Promise.race([T,D]),M=yield T}catch(Fe){let qe="fetch-client-network";throw"AbortError"===(null==Fe?void 0:Fe.name)&&(qe="fetch-timeout"),zo.create(qe,{originalErrorMessage:null==Fe?void 0:Fe.message})}let R=M.status;const K=M.headers.get("ETag")||void 0;let fe,Me;if(200===M.status){let Fe;try{Fe=yield M.json()}catch(qe){throw zo.create("fetch-client-parse",{originalErrorMessage:null==qe?void 0:qe.message})}fe=Fe.entries,Me=Fe.state}if("INSTANCE_STATE_UNSPECIFIED"===Me?R=500:"NO_CHANGE"===Me?R=304:("NO_TEMPLATE"===Me||"EMPTY_CONFIG"===Me)&&(fe={}),304!==R&&200!==R)throw zo.create("fetch-status",{httpStatus:R});return{status:R,eTag:K,config:fe}})()}}class aj{constructor(i,e){this.client=i,this.storage=e}fetch(i){var e=this;return(0,Ai.Z)(function*(){const r=(yield e.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return e.attemptFetch(i,r)})()}attemptFetch(i,{throttleEndTimeMillis:e,backoffCount:r}){var o=this;return(0,Ai.Z)(function*(){yield function oj(n,i){return new Promise((e,r)=>{const o=Math.max(i-Date.now(),0),s=setTimeout(e,o);n.addEventListener(()=>{clearTimeout(s),r(zo.create("fetch-throttle",{throttleEndTimeMillis:i}))})})}(i.signal,e);try{const s=yield o.client.fetch(i);return yield o.storage.deleteThrottleMetadata(),s}catch(s){if(!function sj(n){if(!(n instanceof V.ZR&&n.customData))return!1;const i=Number(n.customData.httpStatus);return 429===i||500===i||503===i||504===i}(s))throw s;const c={throttleEndTimeMillis:Date.now()+(0,V.$s)(r),backoffCount:r+1};return yield o.storage.setThrottleMetadata(c),o.attemptFetch(i,c)}})()}}class uj{constructor(i,e,r,o,s){this.app=i,this._client=e,this._storageCache=r,this._storage=o,this._logger=s,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function V1(n,i){const e=n.target.error||void 0;return zo.create(i,{originalErrorMessage:e&&(null==e?void 0:e.message)})}const Ff="app_namespace_store";class pj{constructor(i,e,r,o=function fj(){return new Promise((n,i)=>{try{const e=indexedDB.open("firebase_remote_config",1);e.onerror=r=>{i(V1(r,"storage-open"))},e.onsuccess=r=>{n(r.target.result)},e.onupgradeneeded=r=>{0===r.oldVersion&&r.target.result.createObjectStore(Ff,{keyPath:"compositeKey"})}}catch(e){i(zo.create("storage-open",{originalErrorMessage:null==e?void 0:e.message}))}})}()){this.appId=i,this.appName=e,this.namespace=r,this.openDbPromise=o}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(i){return this.set("last_fetch_status",i)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(i){return this.set("last_successful_fetch_timestamp_millis",i)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(i){return this.set("last_successful_fetch_response",i)}getActiveConfig(){return this.get("active_config")}setActiveConfig(i){return this.set("active_config",i)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(i){return this.set("active_config_etag",i)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(i){return this.set("throttle_metadata",i)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(i){var e=this;return(0,Ai.Z)(function*(){const r=yield e.openDbPromise;return new Promise((o,s)=>{const f=r.transaction([Ff],"readonly").objectStore(Ff),g=e.createCompositeKey(i);try{const v=f.get(g);v.onerror=T=>{s(V1(T,"storage-get"))},v.onsuccess=T=>{const D=T.target.result;o(D?D.value:void 0)}}catch(v){s(zo.create("storage-get",{originalErrorMessage:null==v?void 0:v.message}))}})})()}set(i,e){var r=this;return(0,Ai.Z)(function*(){const o=yield r.openDbPromise;return new Promise((s,c)=>{const g=o.transaction([Ff],"readwrite").objectStore(Ff),v=r.createCompositeKey(i);try{const T=g.put({compositeKey:v,value:e});T.onerror=D=>{c(V1(D,"storage-set"))},T.onsuccess=()=>{s()}}catch(T){c(zo.create("storage-set",{originalErrorMessage:null==T?void 0:T.message}))}})})()}delete(i){var e=this;return(0,Ai.Z)(function*(){const r=yield e.openDbPromise;return new Promise((o,s)=>{const f=r.transaction([Ff],"readwrite").objectStore(Ff),g=e.createCompositeKey(i);try{const v=f.delete(g);v.onerror=T=>{s(V1(T,"storage-delete"))},v.onsuccess=()=>{o()}}catch(v){s(zo.create("storage-delete",{originalErrorMessage:null==v?void 0:v.message}))}})})()}createCompositeKey(i){return[this.appId,this.appName,this.namespace,i].join()}}class gj{constructor(i){this.storage=i}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var i=this;return(0,Ai.Z)(function*(){const e=i.storage.getLastFetchStatus(),r=i.storage.getLastSuccessfulFetchTimestampMillis(),o=i.storage.getActiveConfig(),s=yield e;s&&(i.lastFetchStatus=s);const c=yield r;c&&(i.lastSuccessfulFetchTimestampMillis=c);const f=yield o;f&&(i.activeConfig=f)})()}setLastFetchStatus(i){return this.lastFetchStatus=i,this.storage.setLastFetchStatus(i)}setLastSuccessfulFetchTimestampMillis(i){return this.lastSuccessfulFetchTimestampMillis=i,this.storage.setLastSuccessfulFetchTimestampMillis(i)}setActiveConfig(i){return this.activeConfig=i,this.storage.setActiveConfig(i)}}function _j(){return aM.apply(this,arguments)}function aM(){return(aM=(0,Ai.Z)(function*(){if(!(0,V.hl)())return!1;try{return yield(0,V.eu)()}catch(n){return!1}})).apply(this,arguments)}!function mj(){(0,Ji._registerComponent)(new zl.wA("remote-config",function n(i,{instanceIdentifier:e}){const r=i.getProvider("app").getImmediate(),o=i.getProvider("installations-internal").getImmediate();if("undefined"==typeof window)throw zo.create("registration-window");if(!(0,V.hl)())throw zo.create("indexed-db-unavailable");const{projectId:s,apiKey:c,appId:f}=r.options;if(!s)throw zo.create("registration-project-id");if(!c)throw zo.create("registration-api-key");if(!f)throw zo.create("registration-app-id");const g=new pj(f,r.name,e=e||"firebase"),v=new gj(g),T=new Rf.Yd(nM);T.logLevel=Rf.in.ERROR;const D=new rj(o,Ji.SDK_VERSION,e,s,c,f),M=new aj(D,g),R=new nj(M,g,v,T),K=new uj(r,R,v,g,T);return function XH(n){const i=(0,V.m9)(n);i._initializePromise||(i._initializePromise=i._storageCache.loadFromStorage().then(()=>{i._isInitializationComplete=!0}))}(K),K},"PUBLIC").setMultipleInstances(!0)),(0,Ji.registerVersion)(nM,"0.4.4"),(0,Ji.registerVersion)(nM,"0.4.4","esm2017")}();var wF=P(908);const Z1="analytics",vj="firebase_id",xj="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",lM="https://www.googletagmanager.com/gtag/js",zr=new Rf.Yd("@firebase/analytics"),Mo=new V.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function wj(n){if(!n.startsWith(lM)){const i=Mo.create("invalid-gtag-resource",{gtagURL:n});return zr.warn(i.message),""}return n}function TF(n){return Promise.all(n.map(i=>i.catch(e=>e)))}function Sj(n,i){const e=function Tj(n,i){let e;return window.trustedTypes&&(e=window.trustedTypes.createPolicy(n,i)),e}("firebase-js-sdk-policy",{createScriptURL:wj}),r=document.createElement("script"),o=`${lM}?l=${n}&id=${i}`;r.src=e?null==e?void 0:e.createScriptURL(o):o,r.async=!0,document.head.appendChild(r)}function Ej(n,i,e,r,o,s){return cM.apply(this,arguments)}function cM(){return(cM=(0,Ai.Z)(function*(n,i,e,r,o,s){const c=r[o];try{if(c)yield i[c];else{const g=(yield TF(e)).find(v=>v.measurementId===o);g&&(yield i[g.appId])}}catch(f){zr.error(f)}n("config",o,s)})).apply(this,arguments)}function Aj(n,i,e,r,o){return uM.apply(this,arguments)}function uM(){return(uM=(0,Ai.Z)(function*(n,i,e,r,o){try{let s=[];if(o&&o.send_to){let c=o.send_to;Array.isArray(c)||(c=[c]);const f=yield TF(e);for(const g of c){const v=f.find(D=>D.measurementId===g),T=v&&i[v.appId];if(!T){s=[];break}s.push(T)}}0===s.length&&(s=Object.values(i)),yield Promise.all(s),n("event",r,o||{})}catch(s){zr.error(s)}})).apply(this,arguments)}function Oj(n){const i=window.document.getElementsByTagName("script");for(const e of Object.values(i))if(e.src&&e.src.includes(lM)&&e.src.includes(n))return e;return null}const SF=new class Nj{constructor(i={},e=1e3){this.throttleMetadata=i,this.intervalMillis=e}getThrottleMetadata(i){return this.throttleMetadata[i]}setThrottleMetadata(i,e){this.throttleMetadata[i]=e}deleteThrottleMetadata(i){delete this.throttleMetadata[i]}};function Rj(n){return new Headers({Accept:"application/json","x-goog-api-key":n})}function Fj(n){return dM.apply(this,arguments)}function dM(){return(dM=(0,Ai.Z)(function*(n){var i;const{appId:e,apiKey:r}=n,o={method:"GET",headers:Rj(r)},s=xj.replace("{app-id}",e),c=yield fetch(s,o);if(200!==c.status&&304!==c.status){let f="";try{const g=yield c.json();(null===(i=g.error)||void 0===i?void 0:i.message)&&(f=g.error.message)}catch(g){}throw Mo.create("config-fetch-failed",{httpStatus:c.status,responseMessage:f})}return c.json()})).apply(this,arguments)}function Lj(n){return hM.apply(this,arguments)}function hM(){return(hM=(0,Ai.Z)(function*(n,i=SF,e){const{appId:r,apiKey:o,measurementId:s}=n.options;if(!r)throw Mo.create("no-app-id");if(!o){if(s)return{measurementId:s,appId:r};throw Mo.create("no-api-key")}const c=i.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},f=new Uj;return setTimeout((0,Ai.Z)(function*(){f.abort()}),void 0!==e?e:6e4),DF({appId:r,apiKey:o,measurementId:s},c,f,i)})).apply(this,arguments)}function DF(n,i,e){return fM.apply(this,arguments)}function fM(){return(fM=(0,Ai.Z)(function*(n,{throttleEndTimeMillis:i,backoffCount:e},r,o=SF){var s;const{appId:c,measurementId:f}=n;try{yield Bj(r,i)}catch(g){if(f)return zr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${f} provided in the "measurementId" field in the local Firebase config. [${null==g?void 0:g.message}]`),{appId:c,measurementId:f};throw g}try{const g=yield Fj(n);return o.deleteThrottleMetadata(c),g}catch(g){const v=g;if(!Gj(v)){if(o.deleteThrottleMetadata(c),f)return zr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${f} provided in the "measurementId" field in the local Firebase config. [${null==v?void 0:v.message}]`),{appId:c,measurementId:f};throw g}const T=503===Number(null===(s=null==v?void 0:v.customData)||void 0===s?void 0:s.httpStatus)?(0,V.$s)(e,o.intervalMillis,30):(0,V.$s)(e,o.intervalMillis),D={throttleEndTimeMillis:Date.now()+T,backoffCount:e+1};return o.setThrottleMetadata(c,D),zr.debug(`Calling attemptFetch again in ${T} millis`),DF(n,D,r,o)}})).apply(this,arguments)}function Bj(n,i){return new Promise((e,r)=>{const o=Math.max(i-Date.now(),0),s=setTimeout(e,o);n.addEventListener(()=>{clearTimeout(s),r(Mo.create("fetch-throttle",{throttleEndTimeMillis:i}))})})}function Gj(n){if(!(n instanceof V.ZR&&n.customData))return!1;const i=Number(n.customData.httpStatus);return 429===i||500===i||503===i||504===i}class Uj{constructor(){this.listeners=[]}addEventListener(i){this.listeners.push(i)}abort(){this.listeners.forEach(i=>i())}}let pM,xM;function gM(){return(gM=(0,Ai.Z)(function*(n,i,e,r,o){if(o&&o.global)n("event",e,r);else{const s=yield i;n("event",e,Object.assign(Object.assign({},r),{send_to:s}))}})).apply(this,arguments)}function EF(n){xM=n}function AF(n){pM=n}function zj(){return CM.apply(this,arguments)}function CM(){return(CM=(0,Ai.Z)(function*(){if(!(0,V.hl)())return zr.warn(Mo.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,V.eu)()}catch(n){return zr.warn(Mo.create("indexeddb-unavailable",{errorInfo:null==n?void 0:n.toString()}).message),!1}return!0})).apply(this,arguments)}function wM(){return(wM=(0,Ai.Z)(function*(n,i,e,r,o,s,c){var f;const g=Lj(n);g.then(R=>{e[R.measurementId]=R.appId,n.options.measurementId&&R.measurementId!==n.options.measurementId&&zr.warn(`The measurement ID in the local Firebase config (${n.options.measurementId}) does not match the measurement ID fetched from the server (${R.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(R=>zr.error(R)),i.push(g);const v=zj().then(R=>{if(R)return r.getId()}),[T,D]=yield Promise.all([g,v]);Oj(s)||Sj(s,T.measurementId),xM&&(o("consent","default",xM),EF(void 0)),o("js",new Date);const M=null!==(f=null==c?void 0:c.config)&&void 0!==f?f:{};return M.origin="firebase",M.update=!0,null!=D&&(M[vj]=D),o("config",T.measurementId,M),pM&&(o("set",pM),AF(void 0)),T.measurementId})).apply(this,arguments)}class Yj{constructor(i){this.app=i}_delete(){return delete $l[this.app.options.appId],Promise.resolve()}}let $l={},MF=[];const IF={};let kF,Yl,W1="dataLayer",TM=!1;function Qj(n,i,e){!function Jj(){const n=[];if((0,V.ru)()&&n.push("This is a browser extension environment."),(0,V.zI)()||n.push("Cookies are not available."),n.length>0){const i=n.map((r,o)=>`(${o+1}) ${r}`).join(" "),e=Mo.create("invalid-analytics-context",{errorInfo:i});zr.warn(e.message)}}();const r=n.options.appId;if(!r)throw Mo.create("no-app-id");if(!n.options.apiKey){if(!n.options.measurementId)throw Mo.create("no-api-key");zr.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${n.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=$l[r])throw Mo.create("already-exists",{id:r});if(!TM){!function Dj(n){let i=[];Array.isArray(window[n])?i=window[n]:window[n]=i}(W1);const{wrappedGtag:s,gtagCore:c}=function Ij(n,i,e,r,o){let s=function(...c){window[r].push(arguments)};return window[o]&&"function"==typeof window[o]&&(s=window[o]),window[o]=function Mj(n,i,e,r){function s(){return(s=(0,Ai.Z)(function*(c,...f){try{if("event"===c){const[g,v]=f;yield Aj(n,i,e,g,v)}else if("config"===c){const[g,v]=f;yield Ej(n,i,e,r,g,v)}else if("consent"===c){const[g]=f;n("consent","update",g)}else if("get"===c){const[g,v,T]=f;n("get",g,v,T)}else if("set"===c){const[g]=f;n("set",g)}else n(c,...f)}catch(g){zr.error(g)}})).apply(this,arguments)}return function o(c){return s.apply(this,arguments)}}(s,n,i,e),{gtagCore:s,wrappedGtag:window[o]}}($l,MF,IF,W1,"gtag");Yl=s,kF=c,TM=!0}return $l[r]=function $j(n,i,e,r,o,s,c){return wM.apply(this,arguments)}(n,MF,IF,i,kF,W1,e),new Yj(n)}function Xj(){return SM.apply(this,arguments)}function SM(){return(SM=(0,Ai.Z)(function*(){if((0,V.ru)()||!(0,V.zI)()||!(0,V.hl)())return!1;try{return yield(0,V.eu)()}catch(n){return!1}})).apply(this,arguments)}const PF="@firebase/analytics";!function tV(){(0,Ji._registerComponent)(new zl.wA(Z1,(i,{options:e})=>Qj(i.getProvider("app").getImmediate(),i.getProvider("installations-internal").getImmediate(),e),"PUBLIC")),(0,Ji._registerComponent)(new zl.wA("analytics-internal",function n(i){try{const e=i.getProvider(Z1).getImmediate();return{logEvent:(r,o,s)=>function eV(n,i,e,r){n=(0,V.m9)(n),function Hj(n,i,e,r,o){return gM.apply(this,arguments)}(Yl,$l[n.app.options.appId],i,e,r).catch(o=>zr.error(o))}(e,r,o,s)}}catch(e){throw Mo.create("interop-component-reg-failed",{reason:e})}},"PRIVATE")),(0,Ji.registerVersion)(PF,"0.10.0"),(0,Ji.registerVersion)(PF,"0.10.0","esm2017")}();const rV=new class iV extends Qh{}(class nV extends Cg{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,r=0){return null!=r&&r>0||null==r&&this.delay>0?super.requestAsyncId(i,e,r):i.flush(this)}});var Ts=P(9468),$o=P(5363);const EM=new t.GfV("7.6.1"),AM="__angularfire_symbol__analyticsIsSupportedValue",MM="__angularfire_symbol__analyticsIsSupported",IM="__angularfire_symbol__remoteConfigIsSupportedValue",OM="__angularfire_symbol__remoteConfigIsSupported",kM="__angularfire_symbol__messagingIsSupportedValue",PM="__angularfire_symbol__messagingIsSupported";globalThis[MM]||(globalThis[MM]=Xj().then(n=>globalThis[AM]=n).catch(()=>globalThis[AM]=!1)),globalThis[PM]||(globalThis[PM]=(0,wF.Gb)().then(n=>globalThis[kM]=n).catch(()=>globalThis[kM]=!1)),globalThis[OM]||(globalThis[OM]=_j().then(n=>globalThis[IM]=n).catch(()=>globalThis[IM]=!1));const FF=(n,i)=>{const e=i?[i]:(0,Ji.getApps)(),r=[];return e.forEach(o=>{o.container.getProvider(n).instances.forEach(c=>{r.includes(c)||r.push(c)})}),r};function Im(){}class LF{constructor(i,e=rV){this.zone=i,this.delegate=e}now(){return this.delegate.now()}schedule(i,e,r){const o=this.zone;return this.delegate.schedule(function(c){o.runGuarded(()=>{i.apply(this,[c])})},e,r)}}class oV{constructor(i){this.zone=i,this.task=null}call(i,e){const r=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Im,{},Im,Im)),e.pipe(gi({next:r,complete:r,error:r})).subscribe(i).add(r)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let nb=(()=>{class n{constructor(e){this.ngZone=e,this.outsideAngular=e.runOutsideAngular(()=>new LF(Zone.current)),this.insideAngular=e.run(()=>new LF(Zone.current,cd)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Lf(){const n=globalThis.\u0275AngularFireScheduler;if(!n)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return n}function sV(n){return Lf().ngZone.runOutsideAngular(()=>n())}function Bf(n){return Lf().ngZone.run(()=>n())}function Zd(n){return Lf(),function aV(n){return function(e){return(e=e.lift(new oV(n.ngZone))).pipe((0,Ts.R)(n.outsideAngular),(0,$o.Q)(n.insideAngular))}}(Lf())(n)}const lV=(n,i)=>function(){const r=arguments;return i&&setTimeout(()=>{"scheduled"===i.state&&i.invoke()},10),Bf(()=>n.apply(void 0,r))},BF=(n,i)=>function(){let e;const r=arguments;for(let s=0;sZone.current.scheduleMacroTask("firebaseZoneBlock",Im,{},Im,Im)))),r[s]=lV(r[s],e));const o=sV(()=>n.apply(this,r));if(!i){if(o instanceof Yn.y){const s=Lf();return o.pipe((0,Ts.R)(s.outsideAngular),(0,$o.Q)(s.insideAngular))}return Bf(()=>o)}return o instanceof Yn.y?o.pipe(Zd):o instanceof Promise?Bf(()=>new Promise((s,c)=>o.then(f=>Bf(()=>s(f)),f=>Bf(()=>c(f))))):"function"==typeof o&&e?function(){return setTimeout(()=>{e&&"scheduled"===e.state&&e.invoke()},10),o.apply(this,arguments)}:Bf(()=>o)};var oo=P(2011),cV=(P(9568),P(3942));const GF="@firebase/database";let RM="";function HF(n){RM=n}class uV{constructor(i){this.domStorage_=i,this.prefix_="firebase:"}set(i,e){null==e?this.domStorage_.removeItem(this.prefixedName_(i)):this.domStorage_.setItem(this.prefixedName_(i),(0,V.Wl)(e))}get(i){const e=this.domStorage_.getItem(this.prefixedName_(i));return null==e?null:(0,V.cI)(e)}remove(i){this.domStorage_.removeItem(this.prefixedName_(i))}prefixedName_(i){return this.prefix_+i}toString(){return this.domStorage_.toString()}}class dV{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(i,e){null==e?delete this.cache_[i]:this.cache_[i]=e}get(i){return(0,V.r3)(this.cache_,i)?this.cache_[i]:null}remove(i){delete this.cache_[i]}}const jF=function(n){try{if("undefined"!=typeof window&&void 0!==window[n]){const i=window[n];return i.setItem("firebase:sentinel","cache"),i.removeItem("firebase:sentinel"),new uV(i)}}catch(i){}return new dV},Gf=jF("localStorage"),FM=jF("sessionStorage"),Om=new Rf.Yd("@firebase/database"),VF=function(){let n=1;return function(){return n++}}(),ZF=function(n){const i=(0,V.dS)(n),e=new V.gQ;e.update(i);const r=e.digest();return V.US.encodeByteArray(r)},ib=function(...n){let i="";for(let e=0;ee?e:o+i));return r};function Yr(n,i){for(const e in n)n.hasOwnProperty(e)&&i(e,n[e])}const $F=function(n){(0,V.hu)(!q1(n),"Invalid JSON number");const r=1023;let o,s,c,f,g;0===n?(s=0,c=0,o=1/n==-1/0?1:0):(o=n<0,(n=Math.abs(n))>=Math.pow(2,1-r)?(f=Math.min(Math.floor(Math.log(n)/Math.LN2),r),s=f+r,c=Math.round(n*Math.pow(2,52-f)-Math.pow(2,52))):(s=0,c=Math.round(n/Math.pow(2,-1074))));const v=[];for(g=52;g;g-=1)v.push(c%2?1:0),c=Math.floor(c/2);for(g=11;g;g-=1)v.push(s%2?1:0),s=Math.floor(s/2);v.push(o?1:0),v.reverse();const T=v.join("");let D="";for(g=0;g<64;g+=8){let M=parseInt(T.substr(g,8),2).toString(16);1===M.length&&(M="0"+M),D+=M}return D.toLowerCase()},vV=new RegExp("^-?(0*)\\d{1,10}$"),YF=function(n){if(vV.test(n)){const i=Number(n);if(i>=-2147483648&&i<=2147483647)return i}return null},km=function(n){try{n()}catch(i){setTimeout(()=>{throw vo("Exception was thrown by user callback.",i.stack||""),i},Math.floor(0))}},sb=function(n,i){const e=setTimeout(n,i);return"number"==typeof e&&"undefined"!=typeof Deno&&Deno.unrefTimer?Deno.unrefTimer(e):"object"==typeof e&&e.unref&&e.unref(),e};class CV{constructor(i,e){this.appName_=i,this.appCheckProvider=e,this.appCheck=null==e?void 0:e.getImmediate({optional:!0}),this.appCheck||null==e||e.get().then(r=>this.appCheck=r)}getToken(i){return this.appCheck?this.appCheck.getToken(i):new Promise((e,r)=>{setTimeout(()=>{this.appCheck?this.getToken(i).then(e,r):e(null)},0)})}addTokenChangeListener(i){var e;null===(e=this.appCheckProvider)||void 0===e||e.get().then(r=>r.addTokenListener(i))}notifyForInvalidToken(){vo(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}class wV{constructor(i,e,r){this.appName_=i,this.firebaseOptions_=e,this.authProvider_=r,this.auth_=null,this.auth_=r.getImmediate({optional:!0}),this.auth_||r.onInit(o=>this.auth_=o)}getToken(i){return this.auth_?this.auth_.getToken(i).catch(e=>e&&"auth/token-not-initialized"===e.code?($r("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(e)):new Promise((e,r)=>{setTimeout(()=>{this.auth_?this.getToken(i).then(e,r):e(null)},0)})}addTokenChangeListener(i){this.auth_?this.auth_.addAuthTokenListener(i):this.authProvider_.get().then(e=>e.addAuthTokenListener(i))}removeTokenChangeListener(i){this.authProvider_.get().then(e=>e.removeAuthTokenListener(i))}notifyForInvalidToken(){let i='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';i+="credential"in this.firebaseOptions_?'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',vo(i)}}let ab=(()=>{class n{constructor(e){this.accessToken=e}getToken(e){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(e){e(this.accessToken)}removeTokenChangeListener(e){}notifyForInvalidToken(){}}return n.OWNER="owner",n})();const eL=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,iL="websocket",rL="long_polling";class UM{constructor(i,e,r,o,s=!1,c="",f=!1,g=!1){this.secure=e,this.namespace=r,this.webSocketOnly=o,this.nodeAdmin=s,this.persistenceKey=c,this.includeNamespaceInQueryParams=f,this.isUsingEmulator=g,this._host=i.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=Gf.get("host:"+i)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(i){i!==this.internalHost&&(this.internalHost=i,this.isCacheableHost()&&Gf.set("host:"+this._host,this.internalHost))}toString(){let i=this.toURLString();return this.persistenceKey&&(i+="<"+this.persistenceKey+">"),i}toURLString(){return`${this.secure?"https://":"http://"}${this.host}/${this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:""}`}}function oL(n,i,e){let r;if((0,V.hu)("string"==typeof i,"typeof type must == string"),(0,V.hu)("object"==typeof e,"typeof params must == object"),i===iL)r=(n.secure?"wss://":"ws://")+n.internalHost+"/.ws?";else{if(i!==rL)throw new Error("Unknown connection type: "+i);r=(n.secure?"https://":"http://")+n.internalHost+"/.lp?"}(function TV(n){return n.host!==n.internalHost||n.isCustomHost()||n.includeNamespaceInQueryParams})(n)&&(e.ns=n.namespace);const o=[];return Yr(e,(s,c)=>{o.push(s+"="+c)}),r+o.join("&")}class SV{constructor(){this.counters_={}}incrementCounter(i,e=1){(0,V.r3)(this.counters_,i)||(this.counters_[i]=0),this.counters_[i]+=e}get(){return(0,V.p$)(this.counters_)}}const HM={},jM={};function VM(n){const i=n.toString();return HM[i]||(HM[i]=new SV),HM[i]}class EV{constructor(i){this.onMessage_=i,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(i,e){this.closeAfterResponse=i,this.onClose=e,this.closeAfterResponse{this.onMessage_(r[o])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}class qd{constructor(i,e,r,o,s,c,f){this.connId=i,this.repoInfo=e,this.applicationId=r,this.appCheckToken=o,this.authToken=s,this.transportSessionId=c,this.lastSessionId=f,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=rb(i),this.stats_=VM(e),this.urlFn=g=>(this.appCheckToken&&(g.ac=this.appCheckToken),oL(e,rL,g))}open(i,e){this.curSegmentNum=0,this.onDisconnect_=e,this.myPacketOrderer=new EV(i),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(3e4)),function(n){if((0,V.Yr)()||"complete"===document.readyState)n();else{let i=!1;const e=function(){document.body?i||(i=!0,n()):setTimeout(e,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&e()}),window.attachEvent("onload",e))}}(()=>{if(this.isClosed_)return;this.scriptTagHolder=new ZM((...s)=>{const[c,f,g,v,T]=s;if(this.incrementIncomingBytes_(s),this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,"start"===c)this.id=f,this.password=g;else{if("close"!==c)throw new Error("Unrecognized command received: "+c);f?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(f,()=>{this.onClosed_()})):this.onClosed_()}},(...s)=>{const[c,f]=s;this.incrementIncomingBytes_(s),this.myPacketOrderer.handleResponse(c,f)},()=>{this.onClosed_()},this.urlFn);const r={start:"t"};r.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(r.cb=this.scriptTagHolder.uniqueCallbackIdentifier),r.v="5",this.transportSessionId&&(r.s=this.transportSessionId),this.lastSessionId&&(r.ls=this.lastSessionId),this.applicationId&&(r.p=this.applicationId),this.appCheckToken&&(r.ac=this.appCheckToken),"undefined"!=typeof location&&location.hostname&&eL.test(location.hostname)&&(r.r="f");const o=this.urlFn(r);this.log_("Connecting via long-poll to "+o),this.scriptTagHolder.addTag(o,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){qd.forceAllow_=!0}static forceDisallow(){qd.forceDisallow_=!0}static isAvailable(){return!((0,V.Yr)()||!qd.forceAllow_&&(qd.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(i){const e=(0,V.Wl)(i);this.bytesSent+=e.length,this.stats_.incrementCounter("bytes_sent",e.length);const r=(0,V.h$)(e),o=zF(r,1840);for(let s=0;sdocument.domain="'+document.domain+'";<\/script>');const c=""+s+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(c),this.myIFrame.doc.close()}catch(f){$r("frame writing exception"),f.stack&&$r(f.stack),$r(f)}}}static createIFrame_(){const i=document.createElement("iframe");if(i.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(i);try{i.contentWindow.document||$r("No IE domain setting required")}catch(e){const r=document.domain;i.src="javascript:void((function(){document.open();document.domain='"+r+"';document.close();})())"}return i.contentDocument?i.doc=i.contentDocument:i.contentWindow?i.doc=i.contentWindow.document:i.document&&(i.doc=i.document),i}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const i=this.onDisconnect;i&&(this.onDisconnect=null,i())}startLongPoll(i,e){for(this.myID=i,this.myPW=e,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const i={};i.id=this.myID,i.pw=this.myPW,i.ser=this.currentSerial;let e=this.urlFn(i),r="",o=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+r.length<=1870;){const c=this.pendingSegs.shift();r=r+"&seg"+o+"="+c.seg+"&ts"+o+"="+c.ts+"&d"+o+"="+c.d,o++}return e+=r,this.addLongPollTag_(e,this.currentSerial),!0}return!1}enqueueSegment(i,e,r){this.pendingSegs.push({seg:i,ts:e,d:r}),this.alive&&this.newRequest_()}addLongPollTag_(i,e){this.outstandingRequests.add(e);const r=()=>{this.outstandingRequests.delete(e),this.newRequest_()},o=setTimeout(r,Math.floor(25e3));this.addTag(i,()=>{clearTimeout(o),r()})}addTag(i,e){(0,V.Yr)()?this.doNodeLongPoll(i,e):setTimeout(()=>{try{if(!this.sendNewPolls)return;const r=this.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=i,r.onload=r.onreadystatechange=function(){const o=r.readyState;(!o||"loaded"===o||"complete"===o)&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),e())},r.onerror=()=>{$r("Long-poll script failed to load: "+i),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(r)}catch(r){}},Math.floor(1))}}let $1=null;"undefined"!=typeof MozWebSocket?$1=MozWebSocket:"undefined"!=typeof WebSocket&&($1=WebSocket);let Pm=(()=>{class n{constructor(e,r,o,s,c,f,g){this.connId=e,this.applicationId=o,this.appCheckToken=s,this.authToken=c,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=rb(this.connId),this.stats_=VM(r),this.connURL=n.connectionURL_(r,f,g,s,o),this.nodeAdmin=r.nodeAdmin}static connectionURL_(e,r,o,s,c){const f={v:"5"};return!(0,V.Yr)()&&"undefined"!=typeof location&&location.hostname&&eL.test(location.hostname)&&(f.r="f"),r&&(f.s=r),o&&(f.ls=o),s&&(f.ac=s),c&&(f.p=c),oL(e,iL,f)}open(e,r){this.onDisconnect=r,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,Gf.set("previous_websocket_failure",!0);try{let o;if((0,V.Yr)()){o={headers:{"User-Agent":`Firebase/5/${RM}/${process.platform}/${this.nodeAdmin?"AdminNode":"Node"}`,"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(o.headers.Authorization=`Bearer ${this.authToken}`),this.appCheckToken&&(o.headers["X-Firebase-AppCheck"]=this.appCheckToken);const c=process.env,f=0===this.connURL.indexOf("wss://")?c.HTTPS_PROXY||c.https_proxy:c.HTTP_PROXY||c.http_proxy;f&&(o.proxy={origin:f})}this.mySock=new $1(this.connURL,[],o)}catch(o){this.log_("Error instantiating WebSocket.");const s=o.message||o.data;return s&&this.log_(s),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=o=>{this.handleIncomingFrame(o)},this.mySock.onerror=o=>{this.log_("WebSocket error. Closing connection.");const s=o.message||o.data;s&&this.log_(s),this.onClosed_()}}start(){}static forceDisallow(){n.forceDisallow_=!0}static isAvailable(){let e=!1;if("undefined"!=typeof navigator&&navigator.userAgent){const o=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);o&&o.length>1&&parseFloat(o[1])<4.4&&(e=!0)}return!e&&null!==$1&&!n.forceDisallow_}static previouslyFailed(){return Gf.isInMemoryStorage||!0===Gf.get("previous_websocket_failure")}markConnectionHealthy(){Gf.remove("previous_websocket_failure")}appendFrame_(e){if(this.frames.push(e),this.frames.length===this.totalFrames){const r=this.frames.join("");this.frames=null;const o=(0,V.cI)(r);this.onMessage(o)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if((0,V.hu)(null===this.frames,"We already have a frame buffer"),e.length<=6){const r=Number(e);if(!isNaN(r))return this.handleNewFrameCount_(r),null}return this.handleNewFrameCount_(1),e}handleIncomingFrame(e){if(null===this.mySock)return;const r=e.data;if(this.bytesReceived+=r.length,this.stats_.incrementCounter("bytes_received",r.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(r);else{const o=this.extractFrameCount_(r);null!==o&&this.appendFrame_(o)}}send(e){this.resetKeepAlive();const r=(0,V.Wl)(e);this.bytesSent+=r.length,this.stats_.incrementCounter("bytes_sent",r.length);const o=zF(r,16384);o.length>1&&this.sendString_(String(o.length));for(let s=0;s{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(45e3))}sendString_(e){try{this.mySock.send(e)}catch(r){this.log_("Exception thrown from WebSocket.send():",r.message||r.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}return n.responsesRequiredToBeHealthy=2,n.healthyTimeout=3e4,n})(),hL=(()=>{class n{constructor(e){this.initTransports_(e)}static get ALL_TRANSPORTS(){return[qd,Pm]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(e){const r=Pm&&Pm.isAvailable();let o=r&&!Pm.previouslyFailed();if(e.webSocketOnly&&(r||vo("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),o=!0),o)this.transports_=[Pm];else{const s=this.transports_=[];for(const c of n.ALL_TRANSPORTS)c&&c.isAvailable()&&s.push(c);n.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}return n.globalTransportInitialized_=!1,n})();class bL{constructor(i,e,r,o,s,c,f,g,v,T){this.id=i,this.repoInfo_=e,this.applicationId_=r,this.appCheckToken_=o,this.authToken_=s,this.onMessage_=c,this.onReady_=f,this.onDisconnect_=g,this.onKill_=v,this.lastSessionId=T,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=rb("c:"+this.id+":"),this.transportManager_=new hL(e),this.log_("Connection created"),this.start_()}start_(){const i=this.transportManager_.initialTransport();this.conn_=new i(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=i.responsesRequiredToBeHealthy||0;const e=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(e,r)},Math.floor(0));const o=i.healthyTimeout||0;o>0&&(this.healthyTimeout_=sb(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>102400?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes. Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>10240?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes. Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(o)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(i){return e=>{i===this.conn_?this.onConnectionLost_(e):i===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(i){return e=>{2!==this.state_&&(i===this.rx_?this.onPrimaryMessageReceived_(e):i===this.secondaryConn_?this.onSecondaryMessageReceived_(e):this.log_("message on old connection"))}}sendRequest(i){this.sendData_({t:"d",d:i})}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(i){if("t"in i){const e=i.t;"a"===e?this.upgradeIfSecondaryHealthy_():"r"===e?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):"o"===e&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(i){const e=ob("t",i),r=ob("d",i);if("c"===e)this.onSecondaryControl_(r);else{if("d"!==e)throw new Error("Unknown protocol layer: "+e);this.pendingDataMessages.push(r)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(i){const e=ob("t",i),r=ob("d",i);"c"===e?this.onControl_(r):"d"===e&&this.onDataMessage_(r)}onDataMessage_(i){this.onPrimaryResponse_(),this.onMessage_(i)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(i){const e=ob("t",i);if("d"in i){const r=i.d;if("h"===e){const o=Object.assign({},r);this.repoInfo_.isUsingEmulator&&(o.h=this.repoInfo_.host),this.onHandshake_(o)}else if("n"===e){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let o=0;o{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(6e4))}onReset_(i){this.log_("Reset packet received. New host: "+i),this.repoInfo_.host=i,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(i,e){this.log_("Realtime connection established."),this.conn_=i,this.state_=1,this.onReady_&&(this.onReady_(e,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):sb(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&1===this.state_&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}onSecondaryConnectionLost_(){const i=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===i||this.rx_===i)&&this.close()}onConnectionLost_(i){this.conn_=null,i||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(Gf.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(i){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(i),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(i){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(i)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}class yL{put(i,e,r,o){}merge(i,e,r,o){}refreshAuthToken(i){}refreshAppCheckToken(i){}onDisconnectPut(i,e,r){}onDisconnectMerge(i,e,r){}onDisconnectCancel(i,e){}reportStats(i){}}class xL{constructor(i){this.allowedEvents_=i,this.listeners_={},(0,V.hu)(Array.isArray(i)&&i.length>0,"Requires a non-empty array")}trigger(i,...e){if(Array.isArray(this.listeners_[i])){const r=[...this.listeners_[i]];for(let o=0;oe===i),"Unknown event: "+i)}}class Y1 extends xL{constructor(){super(["online"]),this.online_=!0,"undefined"!=typeof window&&void 0!==window.addEventListener&&!(0,V.uI)()&&(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}static getInstance(){return new Y1}getInitialEvent(i){return(0,V.hu)("online"===i,"Unknown event type: "+i),[this.online_]}currentlyOnline(){return this.online_}}class di{constructor(i,e){if(void 0===e){this.pieces_=i.split("/");let r=0;for(let o=0;o0&&(this.pieces_[r]=this.pieces_[o],r++);this.pieces_.length=r,this.pieceNum_=0}else this.pieces_=i,this.pieceNum_=e}toString(){let i="";for(let e=this.pieceNum_;e=n.pieces_.length?null:n.pieces_[n.pieceNum_]}function zd(n){return n.pieces_.length-n.pieceNum_}function ki(n){let i=n.pieceNum_;return i=n.pieces_.length)return null;const i=[];for(let e=n.pieceNum_;e0&&e.push(r[o])}return new di(e,0)}function Bn(n){return n.pieceNum_>=n.pieces_.length}function Io(n,i){const e=Ln(n),r=Ln(i);if(null===e)return i;if(e===r)return Io(ki(n),ki(i));throw new Error("INTERNAL ERROR: innerPath ("+i+") is not within outerPath ("+n+")")}function YV(n,i){const e=lb(n,0),r=lb(i,0);for(let o=0;ozd(i))return!1;for(;e768)throw new Error(n.errorPrefix_+"has a key path longer than 768 bytes ("+n.byteLength_+").");if(n.parts_.length>32)throw new Error(n.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+jf(n))}function jf(n){return 0===n.parts_.length?"":"in property '"+n.parts_.join(".")+"'"}class $M extends xL{constructor(){let i,e;super(["visible"]),"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(e="visibilitychange",i="hidden"):void 0!==document.mozHidden?(e="mozvisibilitychange",i="mozHidden"):void 0!==document.msHidden?(e="msvisibilitychange",i="msHidden"):void 0!==document.webkitHidden&&(e="webkitvisibilitychange",i="webkitHidden")),this.visible_=!0,e&&document.addEventListener(e,()=>{const r=!document[i];r!==this.visible_&&(this.visible_=r,this.trigger("visible",r))},!1)}static getInstance(){return new $M}getInitialEvent(i){return(0,V.hu)("visible"===i,"Unknown event type: "+i),[this.visible_]}}const cb=1e3;let Q1,Vf=(()=>{class n extends yL{constructor(e,r,o,s,c,f,g,v){if(super(),this.repoInfo_=e,this.applicationId_=r,this.onDataUpdate_=o,this.onConnectStatus_=s,this.onServerInfoUpdate_=c,this.authTokenProvider_=f,this.appCheckTokenProvider_=g,this.authOverride_=v,this.id=n.nextPersistentConnectionId_++,this.log_=rb("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=cb,this.maxReconnectDelay_=3e5,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,v&&!(0,V.Yr)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");$M.getInstance().on("visible",this.onVisible_,this),-1===e.host.indexOf("fblocal")&&Y1.getInstance().on("online",this.onOnline_,this)}sendRequest(e,r,o){const s=++this.requestNumber_,c={r:s,a:e,b:r};this.log_((0,V.Wl)(c)),(0,V.hu)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(c),o&&(this.requestCBHash_[s]=o)}get(e){this.initConnection_();const r=new V.BH,o={p:e._path.toString(),q:e._queryObject};return this.outstandingGets_.push({action:"g",request:o,onComplete:f=>{const g=f.d;"ok"===f.s?r.resolve(g):r.reject(g)}}),this.outstandingGetCount_++,this.connected_&&this.sendGet_(this.outstandingGets_.length-1),r.promise}listen(e,r,o,s){this.initConnection_();const c=e._queryIdentifier,f=e._path.toString();this.log_("Listen called for "+f+" "+c),this.listens.has(f)||this.listens.set(f,new Map),(0,V.hu)(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),(0,V.hu)(!this.listens.get(f).has(c),"listen() called twice for same path/queryId.");const g={onComplete:s,hashFn:r,query:e,tag:o};this.listens.get(f).set(c,g),this.connected_&&this.sendListen_(g)}sendGet_(e){const r=this.outstandingGets_[e];this.sendRequest("g",r.request,o=>{delete this.outstandingGets_[e],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),r.onComplete&&r.onComplete(o)})}sendListen_(e){const r=e.query,o=r._path.toString(),s=r._queryIdentifier;this.log_("Listen on "+o+" for "+s);const c={p:o};e.tag&&(c.q=r._queryObject,c.t=e.tag),c.h=e.hashFn(),this.sendRequest("q",c,g=>{const v=g.d,T=g.s;n.warnOnListenWarnings_(v,r),(this.listens.get(o)&&this.listens.get(o).get(s))===e&&(this.log_("listen response",g),"ok"!==T&&this.removeListen_(o,s),e.onComplete&&e.onComplete(T,v))})}static warnOnListenWarnings_(e,r){if(e&&"object"==typeof e&&(0,V.r3)(e,"w")){const o=(0,V.DV)(e,"w");if(Array.isArray(o)&&~o.indexOf("no_index")){const s='".indexOn": "'+r._queryParams.getIndex().toString()+'"',c=r._path.toString();vo(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${s} at ${c} to your security rules for better performance.`)}}}refreshAuthToken(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(e)}reduceReconnectDelayIfAdminCredential_(e){(e&&40===e.length||(0,V.GJ)(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const e=this.authToken_,r=(0,V.w9)(e)?"auth":"gauth",o={cred:e};null===this.authOverride_?o.noauth=!0:"object"==typeof this.authOverride_&&(o.authvar=this.authOverride_),this.sendRequest(r,o,s=>{const c=s.s,f=s.d||"error";this.authToken_===e&&("ok"===c?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(c,f))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},e=>{const r=e.s,o=e.d||"error";"ok"===r?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(r,o)})}unlisten(e,r){const o=e._path.toString(),s=e._queryIdentifier;this.log_("Unlisten called for "+o+" "+s),(0,V.hu)(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(o,s)&&this.connected_&&this.sendUnlisten_(o,s,e._queryObject,r)}sendUnlisten_(e,r,o,s){this.log_("Unlisten on "+e+" for "+r);const c={p:e};s&&(c.q=o,c.t=s),this.sendRequest("n",c)}onDisconnectPut(e,r,o){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,r,o):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:r,onComplete:o})}onDisconnectMerge(e,r,o){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,r,o):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:r,onComplete:o})}onDisconnectCancel(e,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,r):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:r})}sendOnDisconnect_(e,r,o,s){const c={p:r,d:o};this.log_("onDisconnect "+e,c),this.sendRequest(e,c,f=>{s&&setTimeout(()=>{s(f.s,f.d)},Math.floor(0))})}put(e,r,o,s){this.putInternal("p",e,r,o,s)}merge(e,r,o,s){this.putInternal("m",e,r,o,s)}putInternal(e,r,o,s,c){this.initConnection_();const f={p:r,d:o};void 0!==c&&(f.h=c),this.outstandingPuts_.push({action:e,request:f,onComplete:s}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+r)}sendPut_(e){const r=this.outstandingPuts_[e].action,o=this.outstandingPuts_[e].request,s=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(r,o,c=>{this.log_(r+" response",c),delete this.outstandingPuts_[e],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),s&&s(c.s,c.d)})}reportStats(e){if(this.connected_){const r={c:e};this.log_("reportStats",r),this.sendRequest("s",r,o=>{"ok"!==o.s&&this.log_("reportStats","Error sending stats: "+o.d)})}}onDataMessage_(e){if("r"in e){this.log_("from server: "+(0,V.Wl)(e));const r=e.r,o=this.requestCBHash_[r];o&&(delete this.requestCBHash_[r],o(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}}onDataPush_(e,r){this.log_("handleServerMessage",e,r),"d"===e?this.onDataUpdate_(r.p,r.d,!1,r.t):"m"===e?this.onDataUpdate_(r.p,r.d,!0,r.t):"c"===e?this.onListenRevoked_(r.p,r.q):"ac"===e?this.onAuthRevoked_(r.s,r.d):"apc"===e?this.onAppCheckRevoked_(r.s,r.d):"sd"===e?this.onSecurityDebugPacket_(r):LM("Unrecognized action received from server: "+(0,V.Wl)(e)+"\nAre you using the latest client?")}onReady_(e,r){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=r,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(e){(0,V.hu)(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(e))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=cb,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_("Browser went online."),this.reconnectDelay_=cb,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=cb),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());const e=(new Date).getTime()-this.lastConnectionAttemptTime_;let r=Math.max(0,this.reconnectDelay_-e);r=Math.random()*r,this.log_("Trying to reconnect in "+r+"ms"),this.scheduleConnect_(r),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}establishConnection_(){var e=this;return(0,Ai.Z)(function*(){if(e.shouldReconnect_()){e.log_("Making a connection attempt"),e.lastConnectionAttemptTime_=(new Date).getTime(),e.lastConnectionEstablishedTime_=null;const r=e.onDataMessage_.bind(e),o=e.onReady_.bind(e),s=e.onRealtimeDisconnect_.bind(e),c=e.id+":"+n.nextConnectionId_++,f=e.lastSessionId;let g=!1,v=null;const T=function(){v?v.close():(g=!0,s())};e.realtime_={close:T,sendRequest:function(R){(0,V.hu)(v,"sendRequest call when we're not connected not allowed."),v.sendRequest(R)}};const M=e.forceTokenRefresh_;e.forceTokenRefresh_=!1;try{const[R,K]=yield Promise.all([e.authTokenProvider_.getToken(M),e.appCheckTokenProvider_.getToken(M)]);g?$r("getToken() completed but was canceled"):($r("getToken() completed. Creating connection."),e.authToken_=R&&R.accessToken,e.appCheckToken_=K&&K.token,v=new bL(c,e.repoInfo_,e.applicationId_,e.appCheckToken_,e.authToken_,r,o,s,fe=>{vo(fe+" ("+e.repoInfo_.toString()+")"),e.interrupt("server_kill")},f))}catch(R){e.log_("Failed to get token: "+R),g||(e.repoInfo_.nodeAdmin&&vo(R),T())}}})()}interrupt(e){$r("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(e){$r("Resuming connection for reason: "+e),delete this.interruptReasons_[e],(0,V.xb)(this.interruptReasons_)&&(this.reconnectDelay_=cb,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){const r=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:r})}cancelSentTransactions_(){for(let e=0;eBM(c)).join("$"):"default";const s=this.removeListen_(e,o);s&&s.onComplete&&s.onComplete("permission_denied")}removeListen_(e,r){const o=new di(e).toString();let s;if(this.listens.has(o)){const c=this.listens.get(o);s=c.get(r),c.delete(r),0===c.size&&this.listens.delete(o)}else s=void 0;return s}onAuthRevoked_(e,r){$r("Auth token revoked: "+e+"/"+r),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),("invalid_token"===e||"permission_denied"===e)&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,r){$r("App check token revoked: "+e+"/"+r),this.appCheckToken_=null,this.forceTokenRefresh_=!0,("invalid_token"===e||"permission_denied"===e)&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of this.listens.values())for(const r of e.values())this.sendListen_(r);for(let e=0;e0}peek(){if(0===this.nodeStack_.length)return null;const i=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(i.key,i.value):{key:i.key,value:i.value}}}let JM,Xa=(()=>{class n{constructor(e,r,o,s,c){this.key=e,this.value=r,this.color=null!=o?o:n.RED,this.left=null!=s?s:Yo.EMPTY_NODE,this.right=null!=c?c:Yo.EMPTY_NODE}copy(e,r,o,s,c){return new n(null!=e?e:this.key,null!=r?r:this.value,null!=o?o:this.color,null!=s?s:this.left,null!=c?c:this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,r,o){let s=this;const c=o(e,s.key);return s=c<0?s.copy(null,null,null,s.left.insert(e,r,o),null):0===c?s.copy(null,r,null,null,null):s.copy(null,null,null,null,s.right.insert(e,r,o)),s.fixUp_()}removeMin_(){if(this.left.isEmpty())return Yo.EMPTY_NODE;let e=this;return!e.left.isRed_()&&!e.left.left.isRed_()&&(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()}remove(e,r){let o,s;if(o=this,r(e,o.key)<0)!o.left.isEmpty()&&!o.left.isRed_()&&!o.left.left.isRed_()&&(o=o.moveRedLeft_()),o=o.copy(null,null,null,o.left.remove(e,r),null);else{if(o.left.isRed_()&&(o=o.rotateRight_()),!o.right.isEmpty()&&!o.right.isRed_()&&!o.right.left.isRed_()&&(o=o.moveRedRight_()),0===r(e,o.key)){if(o.right.isEmpty())return Yo.EMPTY_NODE;s=o.right.min_(),o=o.copy(s.key,s.value,null,null,o.right.removeMin_())}o=o.copy(null,null,null,null,o.right.remove(e,r))}return o.fixUp_()}isRed_(){return this.color}fixUp_(){let e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e}moveRedLeft_(){let e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e}moveRedRight_(){let e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e}rotateLeft_(){const e=this.copy(null,null,n.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight_(){const e=this.copy(null,null,n.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip_(){const e=this.left.copy(null,null,!this.left.color,null,null),r=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,r)}checkMaxDepth_(){const e=this.check_();return Math.pow(2,e)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)}}return n.RED=!0,n.BLACK=!1,n})();class Yo{constructor(i,e=Yo.EMPTY_NODE){this.comparator_=i,this.root_=e}insert(i,e){return new Yo(this.comparator_,this.root_.insert(i,e,this.comparator_).copy(null,null,Xa.BLACK,null,null))}remove(i){return new Yo(this.comparator_,this.root_.remove(i,this.comparator_).copy(null,null,Xa.BLACK,null,null))}get(i){let e,r=this.root_;for(;!r.isEmpty();){if(e=this.comparator_(i,r.key),0===e)return r.value;e<0?r=r.left:e>0&&(r=r.right)}return null}getPredecessorKey(i){let e,r=this.root_,o=null;for(;!r.isEmpty();){if(e=this.comparator_(i,r.key),0===e){if(r.left.isEmpty())return o?o.key:null;for(r=r.left;!r.right.isEmpty();)r=r.right;return r.key}e<0?r=r.left:e>0&&(o=r,r=r.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(i){return this.root_.inorderTraversal(i)}reverseTraversal(i){return this.root_.reverseTraversal(i)}getIterator(i){return new K1(this.root_,null,this.comparator_,!1,i)}getIteratorFrom(i,e){return new K1(this.root_,i,this.comparator_,!1,e)}getReverseIteratorFrom(i,e){return new K1(this.root_,i,this.comparator_,!0,e)}getReverseIterator(i){return new K1(this.root_,null,this.comparator_,!0,i)}}function rZ(n,i){return Hf(n.name,i.name)}function YM(n,i){return Hf(n,i)}Yo.EMPTY_NODE=new class iZ{copy(i,e,r,o,s){return this}insert(i,e,r){return new Xa(i,e,null)}remove(i,e){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(i){return!1}reverseTraversal(i){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const ML=function(n){return"number"==typeof n?"number:"+$F(n):"string:"+n},IL=function(n){if(n.isLeafNode()){const i=n.val();(0,V.hu)("string"==typeof i||"number"==typeof i||"object"==typeof i&&(0,V.r3)(i,".sv"),"Priority must be a string or number.")}else(0,V.hu)(n===JM||n.isEmpty(),"priority of unexpected type.");(0,V.hu)(n===JM||n.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};let OL,kL,PL,Nm=(()=>{class n{constructor(e,r=n.__childrenNodeConstructor.EMPTY_NODE){this.value_=e,this.priorityNode_=r,this.lazyHash_=null,(0,V.hu)(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),IL(this.priorityNode_)}static set __childrenNodeConstructor(e){OL=e}static get __childrenNodeConstructor(){return OL}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(e){return new n(this.value_,e)}getImmediateChild(e){return".priority"===e?this.priorityNode_:n.__childrenNodeConstructor.EMPTY_NODE}getChild(e){return Bn(e)?this:".priority"===Ln(e)?this.priorityNode_:n.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(e,r){return null}updateImmediateChild(e,r){return".priority"===e?this.updatePriority(r):r.isEmpty()&&".priority"!==e?this:n.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,r).updatePriority(this.priorityNode_)}updateChild(e,r){const o=Ln(e);return null===o?r:r.isEmpty()&&".priority"!==o?this:((0,V.hu)(".priority"!==o||1===zd(e),".priority must be the last token in a path"),this.updateImmediateChild(o,n.__childrenNodeConstructor.EMPTY_NODE.updateChild(ki(e),r)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(e,r){return!1}val(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let e="";this.priorityNode_.isEmpty()||(e+="priority:"+ML(this.priorityNode_.val())+":");const r=typeof this.value_;e+=r+":",e+="number"===r?$F(this.value_):this.value_,this.lazyHash_=ZF(e)}return this.lazyHash_}getValue(){return this.value_}compareTo(e){return e===n.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof n.__childrenNodeConstructor?-1:((0,V.hu)(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))}compareToLeafNode_(e){const r=typeof e.value_,o=typeof this.value_,s=n.VALUE_TYPE_ORDER.indexOf(r),c=n.VALUE_TYPE_ORDER.indexOf(o);return(0,V.hu)(s>=0,"Unknown leaf type: "+r),(0,V.hu)(c>=0,"Unknown leaf type: "+o),s===c?"object"===o?0:this.value_parseInt(Array(this.count+1).join("1"),2))();this.bits_=i+1&o}nextBitIsOne(){const i=!(this.bits_&1<{const c=(0,V.DV)(this.indexSet_,s);if((0,V.hu)(c,"Missing index implementation for "+s),o===Rm){if(c.isDefinedOn(i.node)){const f=[],g=e.getIterator(Un.Wrap);let v=g.getNext();for(;v;)v.name!==i.name&&f.push(v),v=g.getNext();return f.push(i),X1(f,c.getCompare())}return Rm}{const f=e.get(i.name);let g=o;return f&&(g=g.remove(new Un(i.name,f))),g.insert(i,i.node)}});return new lu(r,this.indexSet_)}removeFromIndexes(i,e){const r=(0,V.UI)(this.indexes_,o=>{if(o===Rm)return o;{const s=e.get(i.name);return s?o.remove(new Un(i.name,s)):o}});return new lu(r,this.indexSet_)}}let ub,Dn=(()=>{class n{constructor(e,r,o){this.children_=e,this.priorityNode_=r,this.indexMap_=o,this.lazyHash_=null,this.priorityNode_&&IL(this.priorityNode_),this.children_.isEmpty()&&(0,V.hu)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return ub||(ub=new n(new Yo(YM),null,lu.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||ub}updatePriority(e){return this.children_.isEmpty()?this:new n(this.children_,e,this.indexMap_)}getImmediateChild(e){if(".priority"===e)return this.getPriority();{const r=this.children_.get(e);return null===r?ub:r}}getChild(e){const r=Ln(e);return null===r?this:this.getImmediateChild(r).getChild(ki(e))}hasChild(e){return null!==this.children_.get(e)}updateImmediateChild(e,r){if((0,V.hu)(r,"We should always be passing snapshot nodes"),".priority"===e)return this.updatePriority(r);{const o=new Un(e,r);let s,c;r.isEmpty()?(s=this.children_.remove(e),c=this.indexMap_.removeFromIndexes(o,this.children_)):(s=this.children_.insert(e,r),c=this.indexMap_.addToIndexes(o,this.children_));const f=s.isEmpty()?ub:this.priorityNode_;return new n(s,f,c)}}updateChild(e,r){const o=Ln(e);if(null===o)return r;{(0,V.hu)(".priority"!==Ln(e)||1===zd(e),".priority must be the last token in a path");const s=this.getImmediateChild(o).updateChild(ki(e),r);return this.updateImmediateChild(o,s)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(e){if(this.isEmpty())return null;const r={};let o=0,s=0,c=!0;if(this.forEachChild(Pi,(f,g)=>{r[f]=g.val(e),o++,c&&n.INTEGER_REGEXP_.test(f)?s=Math.max(s,Number(f)):c=!1}),!e&&c&&s<2*o){const f=[];for(const g in r)f[g]=r[g];return f}return e&&!this.getPriority().isEmpty()&&(r[".priority"]=this.getPriority().val()),r}hash(){if(null===this.lazyHash_){let e="";this.getPriority().isEmpty()||(e+="priority:"+ML(this.getPriority().val())+":"),this.forEachChild(Pi,(r,o)=>{const s=o.hash();""!==s&&(e+=":"+r+":"+s)}),this.lazyHash_=""===e?"":ZF(e)}return this.lazyHash_}getPredecessorChildName(e,r,o){const s=this.resolveIndex_(o);if(s){const c=s.getPredecessorKey(new Un(e,r));return c?c.name:null}return this.children_.getPredecessorKey(e)}getFirstChildName(e){const r=this.resolveIndex_(e);if(r){const o=r.minKey();return o&&o.name}return this.children_.minKey()}getFirstChild(e){const r=this.getFirstChildName(e);return r?new Un(r,this.children_.get(r)):null}getLastChildName(e){const r=this.resolveIndex_(e);if(r){const o=r.maxKey();return o&&o.name}return this.children_.maxKey()}getLastChild(e){const r=this.getLastChildName(e);return r?new Un(r,this.children_.get(r)):null}forEachChild(e,r){const o=this.resolveIndex_(e);return o?o.inorderTraversal(s=>r(s.name,s.node)):this.children_.inorderTraversal(r)}getIterator(e){return this.getIteratorFrom(e.minPost(),e)}getIteratorFrom(e,r){const o=this.resolveIndex_(r);if(o)return o.getIteratorFrom(e,s=>s);{const s=this.children_.getIteratorFrom(e.name,Un.Wrap);let c=s.peek();for(;null!=c&&r.compare(c,e)<0;)s.getNext(),c=s.peek();return s}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,r){const o=this.resolveIndex_(r);if(o)return o.getReverseIteratorFrom(e,s=>s);{const s=this.children_.getReverseIteratorFrom(e.name,Un.Wrap);let c=s.peek();for(;null!=c&&r.compare(c,e)>0;)s.getNext(),c=s.peek();return s}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===db?-1:0}withIndex(e){if(e===Ql||this.indexMap_.hasIndex(e))return this;{const r=this.indexMap_.addIndex(e,this.children_);return new n(this.children_,this.priorityNode_,r)}}isIndexed(e){return e===Ql||this.indexMap_.hasIndex(e)}equals(e){if(e===this)return!0;if(e.isLeafNode())return!1;{const r=e;if(this.getPriority().equals(r.getPriority())){if(this.children_.count()===r.children_.count()){const o=this.getIterator(Pi),s=r.getIterator(Pi);let c=o.getNext(),f=s.getNext();for(;c&&f;){if(c.name!==f.name||!c.node.equals(f.node))return!1;c=o.getNext(),f=s.getNext()}return null===c&&null===f}return!1}return!1}}resolveIndex_(e){return e===Ql?null:this.indexMap_.get(e.toString())}}return n.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,n})();const db=new class dZ extends Dn{constructor(){super(new Yo(YM),Dn.EMPTY_NODE,lu.Default)}compareTo(i){return i===this?0:1}equals(i){return i===this}getPriority(){return this}getImmediateChild(i){return Dn.EMPTY_NODE}isEmpty(){return!1}};function ir(n,i=null){if(null===n)return Dn.EMPTY_NODE;if("object"==typeof n&&".priority"in n&&(i=n[".priority"]),(0,V.hu)(null===i||"string"==typeof i||"number"==typeof i||"object"==typeof i&&".sv"in i,"Invalid priority type found: "+typeof i),"object"==typeof n&&".value"in n&&null!==n[".value"]&&(n=n[".value"]),"object"!=typeof n||".sv"in n)return new Nm(n,ir(i));if(n instanceof Array){let e=Dn.EMPTY_NODE;return Yr(n,(r,o)=>{if((0,V.r3)(n,r)&&"."!==r.substring(0,1)){const s=ir(o);(s.isLeafNode()||!s.isEmpty())&&(e=e.updateImmediateChild(r,s))}}),e.updatePriority(ir(i))}{const e=[];let r=!1;if(Yr(n,(c,f)=>{if("."!==c.substring(0,1)){const g=ir(f);g.isEmpty()||(r=r||!g.getPriority().isEmpty(),e.push(new Un(c,g)))}}),0===e.length)return Dn.EMPTY_NODE;const s=X1(e,rZ,c=>c.name,YM);if(r){const c=X1(e,Pi.getCompare());return new Dn(s,ir(i),new lu({".priority":c},{".priority":Pi}))}return new Dn(s,ir(i),lu.Default)}}Object.defineProperties(Un,{MIN:{value:new Un(Wd,Dn.EMPTY_NODE)},MAX:{value:new Un(au,db)}}),AL.__EMPTY_NODE=Dn.EMPTY_NODE,Nm.__childrenNodeConstructor=Dn,function oZ(n){JM=n}(db),function aZ(n){PL=n}(db),function sZ(n){kL=n}(ir);class KM extends J1{constructor(i){super(),this.indexPath_=i,(0,V.hu)(!Bn(i)&&".priority"!==Ln(i),"Can't create PathIndex with empty path or .priority key")}extractChild(i){return i.getChild(this.indexPath_)}isDefinedOn(i){return!i.getChild(this.indexPath_).isEmpty()}compare(i,e){const r=this.extractChild(i.node),o=this.extractChild(e.node),s=r.compareTo(o);return 0===s?Hf(i.name,e.name):s}makePost(i,e){const r=ir(i),o=Dn.EMPTY_NODE.updateChild(this.indexPath_,r);return new Un(e,o)}maxPost(){const i=Dn.EMPTY_NODE.updateChild(this.indexPath_,db);return new Un(au,i)}toString(){return lb(this.indexPath_,0).join("/")}}const XM=new class fZ extends J1{compare(i,e){const r=i.node.compareTo(e.node);return 0===r?Hf(i.name,e.name):r}isDefinedOn(i){return!0}indexedValueChanged(i,e){return!i.equals(e)}minPost(){return Un.MIN}maxPost(){return Un.MAX}makePost(i,e){const r=ir(i);return new Un(e,r)}toString(){return".value"}};function NL(n){return{type:"value",snapshotNode:n}}function Fm(n,i){return{type:"child_added",snapshotNode:i,childName:n}}function hb(n,i){return{type:"child_removed",snapshotNode:i,childName:n}}function fb(n,i,e){return{type:"child_changed",snapshotNode:i,childName:n,oldSnap:e}}class eI{constructor(i){this.index_=i}updateChild(i,e,r,o,s,c){(0,V.hu)(i.isIndexed(this.index_),"A node must be indexed if only a child is updated");const f=i.getImmediateChild(e);return f.getChild(o).equals(r.getChild(o))&&f.isEmpty()===r.isEmpty()||(null!=c&&(r.isEmpty()?i.hasChild(e)?c.trackChildChange(hb(e,f)):(0,V.hu)(i.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):f.isEmpty()?c.trackChildChange(Fm(e,r)):c.trackChildChange(fb(e,r,f))),i.isLeafNode()&&r.isEmpty())?i:i.updateImmediateChild(e,r).withIndex(this.index_)}updateFullNode(i,e,r){return null!=r&&(i.isLeafNode()||i.forEachChild(Pi,(o,s)=>{e.hasChild(o)||r.trackChildChange(hb(o,s))}),e.isLeafNode()||e.forEachChild(Pi,(o,s)=>{if(i.hasChild(o)){const c=i.getImmediateChild(o);c.equals(s)||r.trackChildChange(fb(o,s,c))}else r.trackChildChange(Fm(o,s))})),e.withIndex(this.index_)}updatePriority(i,e){return i.isEmpty()?Dn.EMPTY_NODE:i.updatePriority(e)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}class pb{constructor(i){this.indexedFilter_=new eI(i.getIndex()),this.index_=i.getIndex(),this.startPost_=pb.getStartPost_(i),this.endPost_=pb.getEndPost_(i),this.startIsInclusive_=!i.startAfterSet_,this.endIsInclusive_=!i.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(i){const e=this.startIsInclusive_?this.index_.compare(this.getStartPost(),i)<=0:this.index_.compare(this.getStartPost(),i)<0,r=this.endIsInclusive_?this.index_.compare(i,this.getEndPost())<=0:this.index_.compare(i,this.getEndPost())<0;return e&&r}updateChild(i,e,r,o,s,c){return this.matches(new Un(e,r))||(r=Dn.EMPTY_NODE),this.indexedFilter_.updateChild(i,e,r,o,s,c)}updateFullNode(i,e,r){e.isLeafNode()&&(e=Dn.EMPTY_NODE);let o=e.withIndex(this.index_);o=o.updatePriority(Dn.EMPTY_NODE);const s=this;return e.forEachChild(Pi,(c,f)=>{s.matches(new Un(c,f))||(o=o.updateImmediateChild(c,Dn.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(i,o,r)}updatePriority(i,e){return i}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(i){if(i.hasStart()){const e=i.getIndexStartName();return i.getIndex().makePost(i.getIndexStartValue(),e)}return i.getIndex().minPost()}static getEndPost_(i){if(i.hasEnd()){const e=i.getIndexEndName();return i.getIndex().makePost(i.getIndexEndValue(),e)}return i.getIndex().maxPost()}}class gZ{constructor(i){this.withinDirectionalStart=e=>this.reverse_?this.withinEndPost(e):this.withinStartPost(e),this.withinDirectionalEnd=e=>this.reverse_?this.withinStartPost(e):this.withinEndPost(e),this.withinStartPost=e=>{const r=this.index_.compare(this.rangedFilter_.getStartPost(),e);return this.startIsInclusive_?r<=0:r<0},this.withinEndPost=e=>{const r=this.index_.compare(e,this.rangedFilter_.getEndPost());return this.endIsInclusive_?r<=0:r<0},this.rangedFilter_=new pb(i),this.index_=i.getIndex(),this.limit_=i.getLimit(),this.reverse_=!i.isViewFromLeft(),this.startIsInclusive_=!i.startAfterSet_,this.endIsInclusive_=!i.endBeforeSet_}updateChild(i,e,r,o,s,c){return this.rangedFilter_.matches(new Un(e,r))||(r=Dn.EMPTY_NODE),i.getImmediateChild(e).equals(r)?i:i.numChildren()D(R,M)}else c=this.index_.getCompare();const f=i;(0,V.hu)(f.numChildren()===this.limit_,"");const g=new Un(e,r),v=this.reverse_?f.getFirstChild(this.index_):f.getLastChild(this.index_),T=this.rangedFilter_.matches(g);if(f.hasChild(e)){const D=f.getImmediateChild(e);let M=o.getChildAfterChild(this.index_,v,this.reverse_);for(;null!=M&&(M.name===e||f.hasChild(M.name));)M=o.getChildAfterChild(this.index_,M,this.reverse_);const R=null==M?1:c(M,g);if(T&&!r.isEmpty()&&R>=0)return null!=s&&s.trackChildChange(fb(e,r,D)),f.updateImmediateChild(e,r);{null!=s&&s.trackChildChange(hb(e,D));const fe=f.updateImmediateChild(e,Dn.EMPTY_NODE);return null!=M&&this.rangedFilter_.matches(M)?(null!=s&&s.trackChildChange(Fm(M.name,M.node)),fe.updateImmediateChild(M.name,M.node)):fe}}return r.isEmpty()?i:T&&c(v,g)>=0?(null!=s&&(s.trackChildChange(hb(v.name,v.node)),s.trackChildChange(Fm(e,r))),f.updateImmediateChild(e,r).updateImmediateChild(v.name,Dn.EMPTY_NODE)):i}}class ew{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Pi}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return(0,V.hu)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return(0,V.hu)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:Wd}hasEnd(){return this.endSet_}getIndexEndValue(){return(0,V.hu)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return(0,V.hu)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:au}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return(0,V.hu)(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===Pi}copy(){const i=new ew;return i.limitSet_=this.limitSet_,i.limit_=this.limit_,i.startSet_=this.startSet_,i.startAfterSet_=this.startAfterSet_,i.indexStartValue_=this.indexStartValue_,i.startNameSet_=this.startNameSet_,i.indexStartName_=this.indexStartName_,i.endSet_=this.endSet_,i.endBeforeSet_=this.endBeforeSet_,i.indexEndValue_=this.indexEndValue_,i.endNameSet_=this.endNameSet_,i.indexEndName_=this.indexEndName_,i.index_=this.index_,i.viewFrom_=this.viewFrom_,i}}function tI(n,i,e){const r=n.copy();return r.startSet_=!0,void 0===i&&(i=null),r.indexStartValue_=i,null!=e?(r.startNameSet_=!0,r.indexStartName_=e):(r.startNameSet_=!1,r.indexStartName_=""),r}function nI(n,i,e){const r=n.copy();return r.endSet_=!0,void 0===i&&(i=null),r.indexEndValue_=i,void 0!==e?(r.endNameSet_=!0,r.indexEndName_=e):(r.endNameSet_=!1,r.indexEndName_=""),r}function tw(n,i){const e=n.copy();return e.index_=i,e}function RL(n){const i={};if(n.isDefault())return i;let e;if(n.index_===Pi?e="$priority":n.index_===XM?e="$value":n.index_===Ql?e="$key":((0,V.hu)(n.index_ instanceof KM,"Unrecognized index type!"),e=n.index_.toString()),i.orderBy=(0,V.Wl)(e),n.startSet_){const r=n.startAfterSet_?"startAfter":"startAt";i[r]=(0,V.Wl)(n.indexStartValue_),n.startNameSet_&&(i[r]+=","+(0,V.Wl)(n.indexStartName_))}if(n.endSet_){const r=n.endBeforeSet_?"endBefore":"endAt";i[r]=(0,V.Wl)(n.indexEndValue_),n.endNameSet_&&(i[r]+=","+(0,V.Wl)(n.indexEndName_))}return n.limitSet_&&(n.isViewFromLeft()?i.limitToFirst=n.limit_:i.limitToLast=n.limit_),i}function FL(n){const i={};if(n.startSet_&&(i.sp=n.indexStartValue_,n.startNameSet_&&(i.sn=n.indexStartName_),i.sin=!n.startAfterSet_),n.endSet_&&(i.ep=n.indexEndValue_,n.endNameSet_&&(i.en=n.indexEndName_),i.ein=!n.endBeforeSet_),n.limitSet_){i.l=n.limit_;let e=n.viewFrom_;""===e&&(e=n.isViewFromLeft()?"l":"r"),i.vf=e}return n.index_!==Pi&&(i.i=n.index_.toString()),i}class nw extends yL{constructor(i,e,r,o){super(),this.repoInfo_=i,this.onDataUpdate_=e,this.authTokenProvider_=r,this.appCheckTokenProvider_=o,this.log_=rb("p:rest:"),this.listens_={}}reportStats(i){throw new Error("Method not implemented.")}static getListenId_(i,e){return void 0!==e?"tag$"+e:((0,V.hu)(i._queryParams.isDefault(),"should have a tag if it's not a default query."),i._path.toString())}listen(i,e,r,o){const s=i._path.toString();this.log_("Listen called for "+s+" "+i._queryIdentifier);const c=nw.getListenId_(i,r),f={};this.listens_[c]=f;const g=RL(i._queryParams);this.restRequest_(s+".json",g,(v,T)=>{let D=T;if(404===v&&(D=null,v=null),null===v&&this.onDataUpdate_(s,D,!1,r),(0,V.DV)(this.listens_,c)===f){let M;M=v?401===v?"permission_denied":"rest_error:"+v:"ok",o(M,null)}})}unlisten(i,e){const r=nw.getListenId_(i,e);delete this.listens_[r]}get(i){const e=RL(i._queryParams),r=i._path.toString(),o=new V.BH;return this.restRequest_(r+".json",e,(s,c)=>{let f=c;404===s&&(f=null,s=null),null===s?(this.onDataUpdate_(r,f,!1,null),o.resolve(f)):o.reject(new Error(f))}),o.promise}refreshAuthToken(i){}restRequest_(i,e={},r){return e.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([o,s])=>{o&&o.accessToken&&(e.auth=o.accessToken),s&&s.token&&(e.ac=s.token);const c=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+i+"?ns="+this.repoInfo_.namespace+(0,V.xO)(e);this.log_("Sending REST request for "+c);const f=new XMLHttpRequest;f.onreadystatechange=()=>{if(r&&4===f.readyState){this.log_("REST Response for "+c+" received. status:",f.status,"response:",f.responseText);let g=null;if(f.status>=200&&f.status<300){try{g=(0,V.cI)(f.responseText)}catch(v){vo("Failed to parse JSON response for "+c+": "+f.responseText)}r(null,g)}else 401!==f.status&&404!==f.status&&vo("Got unsuccessful REST response for "+c+" Status: "+f.status),r(f.status);r=null}},f.open("GET",c,!0),f.send()})}}class xZ{constructor(){this.rootNode_=Dn.EMPTY_NODE}getNode(i){return this.rootNode_.getChild(i)}updateSnapshot(i,e){this.rootNode_=this.rootNode_.updateChild(i,e)}}function iw(){return{value:null,children:new Map}}function Lm(n,i,e){if(Bn(i))n.value=e,n.children.clear();else if(null!==n.value)n.value=n.value.updateChild(i,e);else{const r=Ln(i);n.children.has(r)||n.children.set(r,iw()),Lm(n.children.get(r),i=ki(i),e)}}function iI(n,i){if(Bn(i))return n.value=null,n.children.clear(),!0;if(null!==n.value){if(n.value.isLeafNode())return!1;{const e=n.value;return n.value=null,e.forEachChild(Pi,(r,o)=>{Lm(n,new di(r),o)}),iI(n,i)}}if(n.children.size>0){const e=Ln(i);return i=ki(i),n.children.has(e)&&iI(n.children.get(e),i)&&n.children.delete(e),0===n.children.size}return!0}function rI(n,i,e){null!==n.value?e(i,n.value):function CZ(n,i){n.children.forEach((e,r)=>{i(r,e)})}(n,(r,o)=>{rI(o,new di(i.toString()+"/"+r),e)})}class wZ{constructor(i){this.collection_=i,this.last_=null}get(){const i=this.collection_.get(),e=Object.assign({},i);return this.last_&&Yr(this.last_,(r,o)=>{e[r]=e[r]-o}),this.last_=i,e}}class DZ{constructor(i,e){this.server_=e,this.statsToReport_={},this.statsListener_=new wZ(i);const r=1e4+2e4*Math.random();sb(this.reportStats_.bind(this),Math.floor(r))}reportStats_(){const i=this.statsListener_.get(),e={};let r=!1;Yr(i,(o,s)=>{s>0&&(0,V.r3)(this.statsToReport_,o)&&(e[o]=s,r=!0)}),r&&this.server_.reportStats(e),sb(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}var ca=(()=>{return(n=ca||(ca={}))[n.OVERWRITE=0]="OVERWRITE",n[n.MERGE=1]="MERGE",n[n.ACK_USER_WRITE=2]="ACK_USER_WRITE",n[n.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",ca;var n})();function aI(n){return{fromUser:!1,fromServer:!0,queryId:n,tagged:!0}}class rw{constructor(i,e,r){this.path=i,this.affectedTree=e,this.revert=r,this.type=ca.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(i){if(Bn(this.path)){if(null!=this.affectedTree.value)return(0,V.hu)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const e=this.affectedTree.subtree(new di(i));return new rw(ii(),e,this.revert)}}return(0,V.hu)(Ln(this.path)===i,"operationForChild called for unrelated child."),new rw(ki(this.path),this.affectedTree,this.revert)}}class gb{constructor(i,e){this.source=i,this.path=e,this.type=ca.LISTEN_COMPLETE}operationForChild(i){return Bn(this.path)?new gb(this.source,ii()):new gb(this.source,ki(this.path))}}class Zf{constructor(i,e,r){this.source=i,this.path=e,this.snap=r,this.type=ca.OVERWRITE}operationForChild(i){return Bn(this.path)?new Zf(this.source,ii(),this.snap.getImmediateChild(i)):new Zf(this.source,ki(this.path),this.snap)}}class Bm{constructor(i,e,r){this.source=i,this.path=e,this.children=r,this.type=ca.MERGE}operationForChild(i){if(Bn(this.path)){const e=this.children.subtree(new di(i));return e.isEmpty()?null:e.value?new Zf(this.source,ii(),e.value):new Bm(this.source,ii(),e)}return(0,V.hu)(Ln(this.path)===i,"Can't get a merge for a child not on the path of the operation"),new Bm(this.source,ki(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}class $d{constructor(i,e,r){this.node_=i,this.fullyInitialized_=e,this.filtered_=r}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(i){if(Bn(i))return this.isFullyInitialized()&&!this.filtered_;const e=Ln(i);return this.isCompleteForChild(e)}isCompleteForChild(i){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(i)}getNode(){return this.node_}}class EZ{constructor(i){this.query_=i,this.index_=this.query_._queryParams.getIndex()}}function mb(n,i,e,r,o,s){const c=r.filter(f=>f.type===e);c.sort((f,g)=>function IZ(n,i,e){if(null==i.childName||null==e.childName)throw(0,V.g5)("Should only compare child_ events.");const r=new Un(i.childName,i.snapshotNode),o=new Un(e.childName,e.snapshotNode);return n.index_.compare(r,o)}(n,f,g)),c.forEach(f=>{const g=function MZ(n,i,e){return"value"===i.type||"child_removed"===i.type||(i.prevName=e.getPredecessorChildName(i.childName,i.snapshotNode,n.index_)),i}(n,f,s);o.forEach(v=>{v.respondsTo(f.type)&&i.push(v.createEvent(g,n.query_))})})}function ow(n,i){return{eventCache:n,serverCache:i}}function _b(n,i,e,r){return ow(new $d(i,e,r),n.serverCache)}function BL(n,i,e,r){return ow(n.eventCache,new $d(i,e,r))}function sw(n){return n.eventCache.isFullyInitialized()?n.eventCache.getNode():null}function Wf(n){return n.serverCache.isFullyInitialized()?n.serverCache.getNode():null}let lI;class Ni{constructor(i,e=(()=>(lI||(lI=new Yo(pV)),lI))()){this.value=i,this.children=e}static fromObject(i){let e=new Ni(null);return Yr(i,(r,o)=>{e=e.set(new di(r),o)}),e}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(i,e){if(null!=this.value&&e(this.value))return{path:ii(),value:this.value};if(Bn(i))return null;{const r=Ln(i),o=this.children.get(r);if(null!==o){const s=o.findRootMostMatchingPathAndValue(ki(i),e);return null!=s?{path:Qi(new di(r),s.path),value:s.value}:null}return null}}findRootMostValueAndPath(i){return this.findRootMostMatchingPathAndValue(i,()=>!0)}subtree(i){if(Bn(i))return this;{const e=Ln(i),r=this.children.get(e);return null!==r?r.subtree(ki(i)):new Ni(null)}}set(i,e){if(Bn(i))return new Ni(e,this.children);{const r=Ln(i),s=(this.children.get(r)||new Ni(null)).set(ki(i),e),c=this.children.insert(r,s);return new Ni(this.value,c)}}remove(i){if(Bn(i))return this.children.isEmpty()?new Ni(null):new Ni(null,this.children);{const e=Ln(i),r=this.children.get(e);if(r){const o=r.remove(ki(i));let s;return s=o.isEmpty()?this.children.remove(e):this.children.insert(e,o),null===this.value&&s.isEmpty()?new Ni(null):new Ni(this.value,s)}return this}}get(i){if(Bn(i))return this.value;{const e=Ln(i),r=this.children.get(e);return r?r.get(ki(i)):null}}setTree(i,e){if(Bn(i))return e;{const r=Ln(i),s=(this.children.get(r)||new Ni(null)).setTree(ki(i),e);let c;return c=s.isEmpty()?this.children.remove(r):this.children.insert(r,s),new Ni(this.value,c)}}fold(i){return this.fold_(ii(),i)}fold_(i,e){const r={};return this.children.inorderTraversal((o,s)=>{r[o]=s.fold_(Qi(i,o),e)}),e(i,this.value,r)}findOnPath(i,e){return this.findOnPath_(i,ii(),e)}findOnPath_(i,e,r){const o=!!this.value&&r(e,this.value);if(o)return o;if(Bn(i))return null;{const s=Ln(i),c=this.children.get(s);return c?c.findOnPath_(ki(i),Qi(e,s),r):null}}foreachOnPath(i,e){return this.foreachOnPath_(i,ii(),e)}foreachOnPath_(i,e,r){if(Bn(i))return this;{this.value&&r(e,this.value);const o=Ln(i),s=this.children.get(o);return s?s.foreachOnPath_(ki(i),Qi(e,o),r):new Ni(null)}}foreach(i){this.foreach_(ii(),i)}foreach_(i,e){this.children.inorderTraversal((r,o)=>{o.foreach_(Qi(i,r),e)}),this.value&&e(i,this.value)}foreachChild(i){this.children.inorderTraversal((e,r)=>{r.value&&i(e,r.value)})}}class el{constructor(i){this.writeTree_=i}static empty(){return new el(new Ni(null))}}function vb(n,i,e){if(Bn(i))return new el(new Ni(e));{const r=n.writeTree_.findRootMostValueAndPath(i);if(null!=r){const o=r.path;let s=r.value;const c=Io(o,i);return s=s.updateChild(c,e),new el(n.writeTree_.set(o,s))}{const o=new Ni(e),s=n.writeTree_.setTree(i,o);return new el(s)}}}function cI(n,i,e){let r=n;return Yr(e,(o,s)=>{r=vb(r,Qi(i,o),s)}),r}function GL(n,i){if(Bn(i))return el.empty();{const e=n.writeTree_.setTree(i,new Ni(null));return new el(e)}}function uI(n,i){return null!=qf(n,i)}function qf(n,i){const e=n.writeTree_.findRootMostValueAndPath(i);return null!=e?n.writeTree_.get(e.path).getChild(Io(e.path,i)):null}function UL(n){const i=[],e=n.writeTree_.value;return null!=e?e.isLeafNode()||e.forEachChild(Pi,(r,o)=>{i.push(new Un(r,o))}):n.writeTree_.children.inorderTraversal((r,o)=>{null!=o.value&&i.push(new Un(r,o.value))}),i}function Yd(n,i){if(Bn(i))return n;{const e=qf(n,i);return new el(null!=e?new Ni(e):n.writeTree_.subtree(i))}}function dI(n){return n.writeTree_.isEmpty()}function Gm(n,i){return HL(ii(),n.writeTree_,i)}function HL(n,i,e){if(null!=i.value)return e.updateChild(n,i.value);{let r=null;return i.children.inorderTraversal((o,s)=>{".priority"===o?((0,V.hu)(null!==s.value,"Priority writes must always be leaf nodes"),r=s.value):e=HL(Qi(n,o),s,e)}),!e.getChild(n).isEmpty()&&null!==r&&(e=e.updateChild(Qi(n,".priority"),r)),e}}function aw(n,i){return qL(i,n)}function FZ(n,i){if(n.snap)return la(n.path,i);for(const e in n.children)if(n.children.hasOwnProperty(e)&&la(Qi(n.path,e),i))return!0;return!1}function BZ(n){return n.visible}function jL(n,i,e){let r=el.empty();for(let o=0;o{r=r.updateImmediateChild(s,c)}),r;if(e){const s=Yd(n.visibleWrites,i);return e.forEachChild(Pi,(c,f)=>{const g=Gm(Yd(s,new di(c)),f);r=r.updateImmediateChild(c,g)}),UL(s).forEach(c=>{r=r.updateImmediateChild(c.name,c.node)}),r}return UL(Yd(n.visibleWrites,i)).forEach(c=>{r=r.updateImmediateChild(c.name,c.node)}),r}(n.writeTree,n.treePath,i)}function ZL(n,i,e,r){return function UZ(n,i,e,r,o){(0,V.hu)(r||o,"Either existingEventSnap or existingServerSnap must exist");const s=Qi(i,e);if(uI(n.visibleWrites,s))return null;{const c=Yd(n.visibleWrites,s);return dI(c)?o.getChild(e):Gm(c,o.getChild(e))}}(n.writeTree,n.treePath,i,e,r)}function cw(n,i){return function jZ(n,i){return qf(n.visibleWrites,i)}(n.writeTree,Qi(n.treePath,i))}function fI(n,i,e){return function HZ(n,i,e,r){const o=Qi(i,e),s=qf(n.visibleWrites,o);return null!=s?s:r.isCompleteForChild(e)?Gm(Yd(n.visibleWrites,o),r.getNode().getImmediateChild(e)):null}(n.writeTree,n.treePath,i,e)}function WL(n,i){return qL(Qi(n.treePath,i),n.writeTree)}function qL(n,i){return{treePath:n,writeTree:i}}class qZ{constructor(){this.changeMap=new Map}trackChildChange(i){const e=i.type,r=i.childName;(0,V.hu)("child_added"===e||"child_changed"===e||"child_removed"===e,"Only child changes supported for tracking"),(0,V.hu)(".priority"!==r,"Only non-priority child changes can be tracked.");const o=this.changeMap.get(r);if(o){const s=o.type;if("child_added"===e&&"child_removed"===s)this.changeMap.set(r,fb(r,i.snapshotNode,o.snapshotNode));else if("child_removed"===e&&"child_added"===s)this.changeMap.delete(r);else if("child_removed"===e&&"child_changed"===s)this.changeMap.set(r,hb(r,o.oldSnap));else if("child_changed"===e&&"child_added"===s)this.changeMap.set(r,Fm(r,i.snapshotNode));else{if("child_changed"!==e||"child_changed"!==s)throw(0,V.g5)("Illegal combination of changes: "+i+" occurred after "+o);this.changeMap.set(r,fb(r,i.snapshotNode,o.oldSnap))}}else this.changeMap.set(r,i)}getChanges(){return Array.from(this.changeMap.values())}}const zL=new class zZ{getCompleteChild(i){return null}getChildAfterChild(i,e,r){return null}};class pI{constructor(i,e,r=null){this.writes_=i,this.viewCache_=e,this.optCompleteServerCache_=r}getCompleteChild(i){const e=this.viewCache_.eventCache;if(e.isCompleteForChild(i))return e.getNode().getImmediateChild(i);{const r=null!=this.optCompleteServerCache_?new $d(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return fI(this.writes_,i,r)}}getChildAfterChild(i,e,r){const o=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:Wf(this.viewCache_),s=function WZ(n,i,e,r,o,s){return function VZ(n,i,e,r,o,s,c){let f;const g=Yd(n.visibleWrites,i),v=qf(g,ii());if(null!=v)f=v;else{if(null==e)return[];f=Gm(g,e)}if(f=f.withIndex(c),f.isEmpty()||f.isLeafNode())return[];{const T=[],D=c.getCompare(),M=s?f.getReverseIteratorFrom(r,c):f.getIteratorFrom(r,c);let R=M.getNext();for(;R&&T.length1)return i;const K=ki(e),Me=g.getNode().getImmediateChild(R).updateChild(K,r);v=".priority"===R?T.updatePriority(g.getNode(),Me):T.updateChild(g.getNode(),R,Me,K,zL,null)}const D=BL(i,v,g.isFullyInitialized()||Bn(e),T.filtersNodes());return $L(n,D,e,o,new pI(o,D,s),f)}function gI(n,i,e,r,o,s,c){const f=i.eventCache;let g,v;const T=new pI(o,i,s);if(Bn(e))v=n.filter.updateFullNode(i.eventCache.getNode(),r,c),g=_b(i,v,!0,n.filter.filtersNodes());else{const D=Ln(e);if(".priority"===D)v=n.filter.updatePriority(i.eventCache.getNode(),r),g=_b(i,v,f.isFullyInitialized(),f.isFiltered());else{const M=ki(e),R=f.getNode().getImmediateChild(D);let K;if(Bn(M))K=r;else{const fe=T.getCompleteChild(D);K=null!=fe?".priority"===qM(M)&&fe.getChild(TL(M)).isEmpty()?fe:fe.updateChild(M,r):Dn.EMPTY_NODE}g=R.equals(K)?i:_b(i,n.filter.updateChild(f.getNode(),D,K,M,T,c),f.isFullyInitialized(),n.filter.filtersNodes())}}return g}function YL(n,i){return n.eventCache.isCompleteForChild(i)}function JL(n,i,e){return e.foreach((r,o)=>{i=i.updateChild(r,o)}),i}function mI(n,i,e,r,o,s,c,f){if(i.serverCache.getNode().isEmpty()&&!i.serverCache.isFullyInitialized())return i;let v,g=i;v=Bn(e)?r:new Ni(null).setTree(e,r);const T=i.serverCache.getNode();return v.children.inorderTraversal((D,M)=>{if(T.hasChild(D)){const K=JL(0,i.serverCache.getNode().getImmediateChild(D),M);g=uw(n,g,new di(D),K,o,s,c,f)}}),v.children.inorderTraversal((D,M)=>{const R=!i.serverCache.isCompleteForChild(D)&&null===M.value;if(!T.hasChild(D)&&!R){const fe=JL(0,i.serverCache.getNode().getImmediateChild(D),M);g=uw(n,g,new di(D),fe,o,s,c,f)}}),g}class n8{constructor(i,e){this.query_=i,this.eventRegistrations_=[];const r=this.query_._queryParams,o=new eI(r.getIndex()),s=function mZ(n){return n.loadsAllData()?new eI(n.getIndex()):n.hasLimit()?new gZ(n):new pb(n)}(r);this.processor_=function $Z(n){return{filter:n}}(s);const c=e.serverCache,f=e.eventCache,g=o.updateFullNode(Dn.EMPTY_NODE,c.getNode(),null),v=s.updateFullNode(Dn.EMPTY_NODE,f.getNode(),null),T=new $d(g,c.isFullyInitialized(),o.filtersNodes()),D=new $d(v,f.isFullyInitialized(),s.filtersNodes());this.viewCache_=ow(D,T),this.eventGenerator_=new EZ(this.query_)}get query(){return this.query_}}function o8(n,i){const e=Wf(n.viewCache_);return e&&(n.query._queryParams.loadsAllData()||!Bn(i)&&!e.getImmediateChild(Ln(i)).isEmpty())?e.getChild(i):null}function QL(n){return 0===n.eventRegistrations_.length}function KL(n,i,e){const r=[];if(e){(0,V.hu)(null==i,"A cancel should cancel all event registrations.");const o=n.query._path;n.eventRegistrations_.forEach(s=>{const c=s.createCancelEvent(e,o);c&&r.push(c)})}if(i){let o=[];for(let s=0;s{const T=Qi(e,g);YL(i,Ln(T))&&(f=gI(n,f,T,v,o,s,c))}),r.foreach((g,v)=>{const T=Qi(e,g);YL(i,Ln(T))||(f=gI(n,f,T,v,o,s,c))}),f}(n,i,v.path,v.children,r,o,s):((0,V.hu)(v.source.fromServer,"Unknown source."),f=v.source.tagged||i.serverCache.isFiltered(),c=mI(n,i,v.path,v.children,r,o,f,s))}else if(e.type===ca.ACK_USER_WRITE){const v=e;c=v.revert?function t8(n,i,e,r,o,s){let c;if(null!=cw(r,e))return i;{const f=new pI(r,i,o),g=i.eventCache.getNode();let v;if(Bn(e)||".priority"===Ln(e)){let T;if(i.serverCache.isFullyInitialized())T=lw(r,Wf(i));else{const D=i.serverCache.getNode();(0,V.hu)(D instanceof Dn,"serverChildren would be complete if leaf node"),T=hI(r,D)}v=n.filter.updateFullNode(g,T,s)}else{const T=Ln(e);let D=fI(r,T,i.serverCache);null==D&&i.serverCache.isCompleteForChild(T)&&(D=g.getImmediateChild(T)),v=null!=D?n.filter.updateChild(g,T,D,ki(e),f,s):i.eventCache.getNode().hasChild(T)?n.filter.updateChild(g,T,Dn.EMPTY_NODE,ki(e),f,s):g,v.isEmpty()&&i.serverCache.isFullyInitialized()&&(c=lw(r,Wf(i)),c.isLeafNode()&&(v=n.filter.updateFullNode(v,c,s)))}return c=i.serverCache.isFullyInitialized()||null!=cw(r,ii()),_b(i,v,c,n.filter.filtersNodes())}}(n,i,v.path,r,o,s):function XZ(n,i,e,r,o,s,c){if(null!=cw(o,e))return i;const f=i.serverCache.isFiltered(),g=i.serverCache;if(null!=r.value){if(Bn(e)&&g.isFullyInitialized()||g.isCompleteForPath(e))return uw(n,i,e,g.getNode().getChild(e),o,s,f,c);if(Bn(e)){let v=new Ni(null);return g.getNode().forEachChild(Ql,(T,D)=>{v=v.set(new di(T),D)}),mI(n,i,e,v,o,s,f,c)}return i}{let v=new Ni(null);return r.foreach((T,D)=>{const M=Qi(e,T);g.isCompleteForPath(M)&&(v=v.set(T,g.getNode().getChild(M)))}),mI(n,i,e,v,o,s,f,c)}}(n,i,v.path,v.affectedTree,r,o,s)}else{if(e.type!==ca.LISTEN_COMPLETE)throw(0,V.g5)("Unknown operation type: "+e.type);c=function e8(n,i,e,r,o){const s=i.serverCache;return $L(n,BL(i,s.getNode(),s.isFullyInitialized()||Bn(e),s.isFiltered()),e,r,zL,o)}(n,i,e.path,r,s)}const g=s.getChanges();return function QZ(n,i,e){const r=i.eventCache;if(r.isFullyInitialized()){const o=r.getNode().isLeafNode()||r.getNode().isEmpty(),s=sw(n);(e.length>0||!n.eventCache.isFullyInitialized()||o&&!r.getNode().equals(s)||!r.getNode().getPriority().equals(s.getPriority()))&&e.push(NL(sw(i)))}}(i,c,g),{viewCache:c,changes:g}}(n.processor_,o,i,e,r);return function YZ(n,i){(0,V.hu)(i.eventCache.getNode().isIndexed(n.filter.getIndex()),"Event snap not indexed"),(0,V.hu)(i.serverCache.getNode().isIndexed(n.filter.getIndex()),"Server snap not indexed")}(n.processor_,s.viewCache),(0,V.hu)(s.viewCache.serverCache.isFullyInitialized()||!o.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),n.viewCache_=s.viewCache,e2(n,s.changes,s.viewCache.eventCache.getNode(),null)}function e2(n,i,e,r){return function AZ(n,i,e,r){const o=[],s=[];return i.forEach(c=>{"child_changed"===c.type&&n.index_.indexedValueChanged(c.oldSnap,c.snapshotNode)&&s.push(function pZ(n,i){return{type:"child_moved",snapshotNode:i,childName:n}}(c.childName,c.snapshotNode))}),mb(n,o,"child_removed",i,r,e),mb(n,o,"child_added",i,r,e),mb(n,o,"child_moved",s,r,e),mb(n,o,"child_changed",i,r,e),mb(n,o,"value",i,r,e),o}(n.eventGenerator_,i,e,r?[r]:n.eventRegistrations_)}let dw,fw;class t2{constructor(){this.views=new Map}}function _I(n,i,e,r){const o=i.source.queryId;if(null!==o){const s=n.views.get(o);return(0,V.hu)(null!=s,"SyncTree gave us an op for an invalid query."),XL(s,i,e,r)}{let s=[];for(const c of n.views.values())s=s.concat(XL(c,i,e,r));return s}}function n2(n,i,e,r,o){const c=n.views.get(i._queryIdentifier);if(!c){let f=lw(e,o?r:null),g=!1;f?g=!0:r instanceof Dn?(f=hI(e,r),g=!1):(f=Dn.EMPTY_NODE,g=!1);const v=ow(new $d(f,g,!1),new $d(r,o,!1));return new n8(i,v)}return c}function r2(n){const i=[];for(const e of n.views.values())e.query._queryParams.loadsAllData()||i.push(e);return i}function Jd(n,i){let e=null;for(const r of n.views.values())e=e||o8(r,i);return e}function o2(n,i){return i._queryParams.loadsAllData()?hw(n):n.views.get(i._queryIdentifier)}function s2(n,i){return null!=o2(n,i)}function Qd(n){return null!=hw(n)}function hw(n){for(const i of n.views.values())if(i.query._queryParams.loadsAllData())return i;return null}let g8=1;class a2{constructor(i){this.listenProvider_=i,this.syncPointTree_=new Ni(null),this.pendingWriteTree_=function ZZ(){return{visibleWrites:el.empty(),allWrites:[],lastWriteId:-1}}(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function vI(n,i,e,r,o){return function kZ(n,i,e,r,o){(0,V.hu)(r>n.lastWriteId,"Stacking an older write on top of newer ones"),void 0===o&&(o=!0),n.allWrites.push({path:i,snap:e,writeId:r,visible:o}),o&&(n.visibleWrites=vb(n.visibleWrites,i,e)),n.lastWriteId=r}(n.pendingWriteTree_,i,e,r,o),o?Um(n,new Zf({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},i,e)):[]}function Kd(n,i,e=!1){const r=function NZ(n,i){for(let e=0;ef.writeId===i);(0,V.hu)(e>=0,"removeWrite called with nonexistent writeId.");const r=n.allWrites[e];n.allWrites.splice(e,1);let o=r.visible,s=!1,c=n.allWrites.length-1;for(;o&&c>=0;){const f=n.allWrites[c];f.visible&&(c>=e&&FZ(f,r.path)?o=!1:la(r.path,f.path)&&(s=!0)),c--}return!!o&&(s?(function LZ(n){n.visibleWrites=jL(n.allWrites,BZ,ii()),n.lastWriteId=n.allWrites.length>0?n.allWrites[n.allWrites.length-1].writeId:-1}(n),!0):(r.snap?n.visibleWrites=GL(n.visibleWrites,r.path):Yr(r.children,g=>{n.visibleWrites=GL(n.visibleWrites,Qi(r.path,g))}),!0))}(n.pendingWriteTree_,i)){let s=new Ni(null);return null!=r.snap?s=s.set(ii(),!0):Yr(r.children,c=>{s=s.set(new di(c),!0)}),Um(n,new rw(r.path,s,e))}return[]}function bb(n,i,e){return Um(n,new Zf({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},i,e))}function pw(n,i,e,r,o=!1){const s=i._path,c=n.syncPointTree_.get(s);let f=[];if(c&&("default"===i._queryIdentifier||s2(c,i))){const g=function h8(n,i,e,r){const o=i._queryIdentifier,s=[];let c=[];const f=Qd(n);if("default"===o)for(const[g,v]of n.views.entries())c=c.concat(KL(v,e,r)),QL(v)&&(n.views.delete(g),v.query._queryParams.loadsAllData()||s.push(v.query));else{const g=n.views.get(o);g&&(c=c.concat(KL(g,e,r)),QL(g)&&(n.views.delete(o),g.query._queryParams.loadsAllData()||s.push(g.query)))}return f&&!Qd(n)&&s.push(new(function c8(){return(0,V.hu)(dw,"Reference.ts has not been loaded"),dw}())(i._repo,i._path)),{removed:s,events:c}}(c,i,e,r);(function u8(n){return 0===n.views.size})(c)&&(n.syncPointTree_=n.syncPointTree_.remove(s));const v=g.removed;if(f=g.events,!o){const T=-1!==v.findIndex(M=>M._queryParams.loadsAllData()),D=n.syncPointTree_.findOnPath(s,(M,R)=>Qd(R));if(T&&!D){const M=n.syncPointTree_.subtree(s);if(!M.isEmpty()){const R=function C8(n){return n.fold((i,e,r)=>{if(e&&Qd(e))return[hw(e)];{let o=[];return e&&(o=r2(e)),Yr(r,(s,c)=>{o=o.concat(c)}),o}})}(M);for(let K=0;K0&&!r&&(T?n.listenProvider_.stopListening(xb(i),null):v.forEach(M=>{const R=n.queryToTagMap.get(mw(M));n.listenProvider_.stopListening(xb(M),R)}))}!function w8(n,i){for(let e=0;e{const K=Io(M,o);s=s||Jd(R,K),c=c||Qd(R)});let g,f=n.syncPointTree_.get(o);f?(c=c||Qd(f),s=s||Jd(f,ii())):(f=new t2,n.syncPointTree_=n.syncPointTree_.set(o,f)),null!=s?g=!0:(g=!1,s=Dn.EMPTY_NODE,n.syncPointTree_.subtree(o).foreachChild((R,K)=>{const fe=Jd(K,ii());fe&&(s=s.updateImmediateChild(R,fe))}));const v=s2(f,i);if(!v&&!i._queryParams.loadsAllData()){const M=mw(i);(0,V.hu)(!n.queryToTagMap.has(M),"View does not exist, but we have a tag");const R=function T8(){return g8++}();n.queryToTagMap.set(M,R),n.tagToQueryMap.set(R,M)}let D=function d8(n,i,e,r,o,s){const c=n2(n,i,r,o,s);return n.views.has(i._queryIdentifier)||n.views.set(i._queryIdentifier,c),function s8(n,i){n.eventRegistrations_.push(i)}(c,e),function a8(n,i){const e=n.viewCache_.eventCache,r=[];return e.getNode().isLeafNode()||e.getNode().forEachChild(Pi,(s,c)=>{r.push(Fm(s,c))}),e.isFullyInitialized()&&r.push(NL(e.getNode())),e2(n,r,e.getNode(),i)}(c,e)}(f,i,e,aw(n.pendingWriteTree_,o),s,g);if(!v&&!c&&!r){const M=o2(f,i);D=D.concat(function S8(n,i,e){const r=i._path,o=yb(n,i),s=d2(n,e),c=n.listenProvider_.startListening(xb(i),o,s.hashFn,s.onComplete),f=n.syncPointTree_.subtree(r);if(o)(0,V.hu)(!Qd(f.value),"If we're adding a query, it shouldn't be shadowed");else{const g=f.fold((v,T,D)=>{if(!Bn(v)&&T&&Qd(T))return[hw(T).query];{let M=[];return T&&(M=M.concat(r2(T).map(R=>R.query))),Yr(D,(R,K)=>{M=M.concat(K)}),M}});for(let v=0;v{const v=Jd(f,Io(c,i));if(v)return v});return VL(o,i,s,e,!0)}function Um(n,i){return c2(i,n.syncPointTree_,null,aw(n.pendingWriteTree_,ii()))}function c2(n,i,e,r){if(Bn(n.path))return u2(n,i,e,r);{const o=i.get(ii());null==e&&null!=o&&(e=Jd(o,ii()));let s=[];const c=Ln(n.path),f=n.operationForChild(c),g=i.children.get(c);if(g&&f){const v=e?e.getImmediateChild(c):null,T=WL(r,c);s=s.concat(c2(f,g,v,T))}return o&&(s=s.concat(_I(o,n,r,e))),s}}function u2(n,i,e,r){const o=i.get(ii());null==e&&null!=o&&(e=Jd(o,ii()));let s=[];return i.children.inorderTraversal((c,f)=>{const g=e?e.getImmediateChild(c):null,v=WL(r,c),T=n.operationForChild(c);T&&(s=s.concat(u2(T,f,g,v)))}),o&&(s=s.concat(_I(o,n,r,e))),s}function d2(n,i){const e=i.query,r=yb(n,e);return{hashFn:()=>(function i8(n){return n.viewCache_.serverCache.getNode()}(i)||Dn.EMPTY_NODE).hash(),onComplete:o=>{if("ok"===o)return r?function b8(n,i,e){const r=yI(n,e);if(r){const o=xI(r),s=o.path,c=o.queryId,f=Io(s,i);return CI(n,s,new gb(aI(c),f))}return[]}(n,e._path,r):function v8(n,i){return Um(n,new gb({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},i))}(n,e._path);{const s=function _V(n,i){let e="Unknown Error";"too_big"===n?e="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===n?e="Client doesn't have permission to access the desired data.":"unavailable"===n&&(e="The service is unavailable");const r=new Error(n+" at "+i._path.toString()+": "+e);return r.code=n.toUpperCase(),r}(o,e);return pw(n,e,null,s)}}}}function yb(n,i){const e=mw(i);return n.queryToTagMap.get(e)}function mw(n){return n._path.toString()+"$"+n._queryIdentifier}function yI(n,i){return n.tagToQueryMap.get(i)}function xI(n){const i=n.indexOf("$");return(0,V.hu)(-1!==i&&i{const v=DI(g,i.getImmediateChild(f),e);v!==g&&(s=s.updateImmediateChild(f,v))}),s}}class EI{constructor(i="",e=null,r={children:{},childCount:0}){this.name=i,this.parent=e,this.node=r}}function _w(n,i){let e=i instanceof di?i:new di(i),r=n,o=Ln(e);for(;null!==o;){const s=(0,V.DV)(r.node.children,o)||{children:{},childCount:0};r=new EI(o,r,s),e=ki(e),o=Ln(e)}return r}function zf(n){return n.node.value}function AI(n,i){n.node.value=i,MI(n)}function p2(n){return n.node.childCount>0}function vw(n,i){Yr(n.node.children,(e,r)=>{i(new EI(e,n,r))})}function g2(n,i,e,r){e&&!r&&i(n),vw(n,o=>{g2(o,i,!0,r)}),e&&r&&i(n)}function Cb(n){return new di(null===n.parent?n.name:Cb(n.parent)+"/"+n.name)}function MI(n){null!==n.parent&&function O8(n,i,e){const r=function M8(n){return void 0===zf(n)&&!p2(n)}(e),o=(0,V.r3)(n.node.children,i);r&&o?(delete n.node.children[i],n.node.childCount--,MI(n)):!r&&!o&&(n.node.children[i]=e.node,n.node.childCount++,MI(n))}(n.parent,n.name,n)}const k8=/[\[\].#$\/\u0000-\u001F\u007F]/,P8=/[\[\].#$\u0000-\u001F\u007F]/,II=10485760,bw=function(n){return"string"==typeof n&&0!==n.length&&!k8.test(n)},m2=function(n){return"string"==typeof n&&0!==n.length&&!P8.test(n)},wb=function(n){return null===n||"string"==typeof n||"number"==typeof n&&!q1(n)||n&&"object"==typeof n&&(0,V.r3)(n,".sv")},Kl=function(n,i,e,r){r&&void 0===i||Tb((0,V.gK)(n,"value"),i,e)},Tb=function(n,i,e){const r=e instanceof di?new JV(e,n):e;if(void 0===i)throw new Error(n+"contains undefined "+jf(r));if("function"==typeof i)throw new Error(n+"contains a function "+jf(r)+" with contents = "+i.toString());if(q1(i))throw new Error(n+"contains "+i.toString()+" "+jf(r));if("string"==typeof i&&i.length>II/3&&(0,V.ug)(i)>II)throw new Error(n+"contains a string greater than "+II+" utf8 bytes "+jf(r)+" ('"+i.substring(0,50)+"...')");if(i&&"object"==typeof i){let o=!1,s=!1;if(Yr(i,(c,f)=>{if(".value"===c)o=!0;else if(".priority"!==c&&".sv"!==c&&(s=!0,!bw(c)))throw new Error(n+" contains an invalid key ("+c+") "+jf(r)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');(function QV(n,i){n.parts_.length>0&&(n.byteLength_+=1),n.parts_.push(i),n.byteLength_+=(0,V.ug)(i),SL(n)})(r,c),Tb(n,f,r),function KV(n){const i=n.parts_.pop();n.byteLength_-=(0,V.ug)(i),n.parts_.length>0&&(n.byteLength_-=1)}(r)}),o&&s)throw new Error(n+' contains ".value" child '+jf(r)+" in addition to actual children.")}},_2=function(n,i,e,r){if(r&&void 0===i)return;const o=(0,V.gK)(n,"values");if(!i||"object"!=typeof i||Array.isArray(i))throw new Error(o+" must be an object containing the children to replace.");const s=[];Yr(i,(c,f)=>{const g=new di(c);if(Tb(o,f,Qi(e,g)),".priority"===qM(g)&&!wb(f))throw new Error(o+"contains an invalid value for '"+g.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");s.push(g)}),function(n,i){let e,r;for(e=0;ezM(r,i))}function Ss(n,i,e){yw(n,e),y2(n,r=>la(r,i)||la(i,r))}function y2(n,i){n.recursionDepth_++;let e=!0;for(let r=0;rir(v));c=function y8(n,i,e,r){const o=yI(n,r);if(o){const s=xI(o),c=s.path,f=s.queryId,g=Io(c,i),v=Ni.fromObject(e);return CI(n,c,new Bm(aI(f),g,v))}return[]}(n.serverSyncTree_,s,g,o)}else{const g=ir(e);c=l2(n.serverSyncTree_,s,g,o)}else if(r){const g=(0,V.UI)(e,v=>ir(v));c=function _8(n,i,e){const r=Ni.fromObject(e);return Um(n,new Bm({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},i,r))}(n.serverSyncTree_,s,g)}else{const g=ir(e);c=bb(n.serverSyncTree_,s,g)}let f=s;c.length>0&&(f=jm(n,s)),Ss(n.eventQueue_,f,c)}function T2(n,i){kI(n,"connected",i),!1===i&&function W8(n){Hm(n,"onDisconnectEvents");const i=Eb(n),e=iw();rI(n.onDisconnect_,ii(),(o,s)=>{const c=f2(o,s,n.serverSyncTree_,i);Lm(e,o,c)});let r=[];rI(e,ii(),(o,s)=>{r=r.concat(bb(n.serverSyncTree_,o,s));const c=FI(n,o);jm(n,c)}),n.onDisconnect_=iw(),Ss(n.eventQueue_,ii(),r)}(n)}function kI(n,i,e){const r=new di("/.info/"+i),o=ir(e);n.infoData_.updateSnapshot(r,o);const s=bb(n.infoSyncTree_,r,o);Ss(n.eventQueue_,r,s)}function xw(n){return n.nextWriteId_++}function PI(n,i,e,r,o){Hm(n,"set",{path:i.toString(),value:e,priority:r});const s=Eb(n),c=ir(e,r),f=gw(n.serverSyncTree_,i),g=SI(c,f,s),v=xw(n),T=vI(n.serverSyncTree_,i,g,v,!0);yw(n.eventQueue_,T),n.server_.put(i.toString(),c.val(!0),(M,R)=>{const K="ok"===M;K||vo("set at "+i+" failed: "+M);const fe=Kd(n.serverSyncTree_,v,!K);Ss(n.eventQueue_,i,fe),Xd(0,o,M,R)});const D=FI(n,i);jm(n,D),Ss(n.eventQueue_,D,[])}function q8(n,i,e){n.server_.onDisconnectCancel(i.toString(),(r,o)=>{"ok"===r&&iI(n.onDisconnect_,i),Xd(0,e,r,o)})}function S2(n,i,e,r){const o=ir(e);n.server_.onDisconnectPut(i.toString(),o.val(!0),(s,c)=>{"ok"===s&&Lm(n.onDisconnect_,i,o),Xd(0,r,s,c)})}function NI(n,i,e){let r;r=".info"===Ln(i._path)?pw(n.infoSyncTree_,i,e):pw(n.serverSyncTree_,i,e),b2(n.eventQueue_,i._path,r)}function D2(n){n.persistentConnection_&&n.persistentConnection_.interrupt(x2)}function Hm(n,...i){let e="";n.persistentConnection_&&(e=n.persistentConnection_.id+":"),$r(e,...i)}function Xd(n,i,e,r){i&&km(()=>{if("ok"===e)i(null);else{const o=(e||"error").toUpperCase();let s=o;r&&(s+=": "+r);const c=new Error(s);c.code=o,i(c)}})}function RI(n,i,e){return gw(n.serverSyncTree_,i,e)||Dn.EMPTY_NODE}function Cw(n,i=n.transactionQueueTree_){if(i||ww(n,i),zf(i)){const e=A2(n,i);(0,V.hu)(e.length>0,"Sending zero length transaction queue"),e.every(o=>0===o.status)&&function K8(n,i,e){const r=e.map(v=>v.currentWriteId),o=RI(n,i,r);let s=o;const c=o.hash();for(let v=0;v{Hm(n,"transaction put response",{path:g.toString(),status:v});let T=[];if("ok"===v){const D=[];for(let M=0;Me[M].onComplete(null,!0,e[M].currentOutputSnapshotResolved)),e[M].unwatcher();ww(n,_w(n.transactionQueueTree_,i)),Cw(n,n.transactionQueueTree_),Ss(n.eventQueue_,i,T);for(let M=0;M{Cw(n,e)})}function jm(n,i){const e=E2(n,i),r=Cb(e);return function X8(n,i,e){if(0===i.length)return;const r=[];let o=[];const c=i.filter(f=>0===f.status).map(f=>f.currentWriteId);for(let f=0;f=25)T=!0,D="maxretry",o=o.concat(Kd(n.serverSyncTree_,g.currentWriteId,!0));else{const M=RI(n,g.path,c);g.currentInputSnapshot=M;const R=i[f].update(M.val());if(void 0!==R){Tb("transaction failed: Data returned ",R,g.path);let K=ir(R);"object"==typeof R&&null!=R&&(0,V.r3)(R,".priority")||(K=K.updatePriority(M.getPriority()));const Me=g.currentWriteId,Fe=Eb(n),qe=SI(K,M,Fe);g.currentOutputSnapshotRaw=K,g.currentOutputSnapshotResolved=qe,g.currentWriteId=xw(n),c.splice(c.indexOf(Me),1),o=o.concat(vI(n.serverSyncTree_,g.path,qe,g.currentWriteId,g.applyLocally)),o=o.concat(Kd(n.serverSyncTree_,Me,!0))}else T=!0,D="nodata",o=o.concat(Kd(n.serverSyncTree_,g.currentWriteId,!0))}Ss(n.eventQueue_,e,o),o=[],T&&(i[f].status=2,setTimeout(i[f].unwatcher,Math.floor(0)),i[f].onComplete&&r.push("nodata"===D?()=>i[f].onComplete(null,!1,i[f].currentInputSnapshot):()=>i[f].onComplete(new Error(D),!1,null)))}ww(n,n.transactionQueueTree_);for(let f=0;fr.order-o.order),e}function M2(n,i,e){const r=zf(i);if(r)for(let o=0;o{M2(n,o,e)})}function ww(n,i){const e=zf(i);if(e){let r=0;for(let o=0;o0?e:void 0)}vw(i,r=>{ww(n,r)})}function FI(n,i){const e=Cb(E2(n,i)),r=_w(n.transactionQueueTree_,i);return function I8(n,i,e){let r=e?n:n.parent;for(;null!==r;){if(i(r))return!0;r=r.parent}}(r,o=>{LI(n,o)}),LI(n,r),g2(r,o=>{LI(n,o)}),e}function LI(n,i){const e=zf(i);if(e){const r=[];let o=[],s=-1;for(let c=0;c.firebaseio.com instead"),(!r||"undefined"===r)&&"localhost"!==e.domain&&Jl("Cannot parse Firebase url. Please use https://.firebaseio.com"),e.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&vo("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new UM(e.host,e.secure,r,"ws"===e.scheme||"wss"===e.scheme,i,"",r!==e.subdomain),path:new di(e.pathString)}},nW=function(n){let i="",e="",r="",o="",s="",c=!0,f="https",g=443;if("string"==typeof n){let v=n.indexOf("//");v>=0&&(f=n.substring(0,v-1),n=n.substring(v+2));let T=n.indexOf("/");-1===T&&(T=n.length);let D=n.indexOf("?");-1===D&&(D=n.length),i=n.substring(0,Math.min(T,D)),T0){let o=e[r];try{o=decodeURIComponent(o.replace(/\+/g," "))}catch(s){}i+="/"+o}return i}(n.substring(T,D)));const M=function tW(n){const i={};"?"===n.charAt(0)&&(n=n.substring(1));for(const e of n.split("&")){if(0===e.length)continue;const r=e.split("=");2===r.length?i[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):vo(`Invalid query segment '${e}' in query '${n}'`)}return i}(n.substring(Math.min(n.length,D)));v=i.indexOf(":"),v>=0?(c="https"===f||"wss"===f,g=parseInt(i.substring(v+1),10)):v=i.length;const R=i.slice(0,v);if("localhost"===R.toLowerCase())e="localhost";else if(R.split(".").length<=2)e=R;else{const K=i.indexOf(".");r=i.substring(0,K).toLowerCase(),e=i.substring(K+1),s=r}"ns"in M&&(s=M.ns)}return{host:i,port:g,domain:e,subdomain:r,secure:c,scheme:f,pathString:o,namespace:s}},I2="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",iW=function(){let n=0;const i=[];return function(e){const r=e===n;let o;n=e;const s=new Array(8);for(o=7;o>=0;o--)s[o]=I2.charAt(e%64),e=Math.floor(e/64);(0,V.hu)(0===e,"Cannot push at time == 0");let c=s.join("");if(r){for(o=11;o>=0&&63===i[o];o--)i[o]=0;i[o]++}else for(o=0;o<12;o++)i[o]=Math.floor(64*Math.random());for(o=0;o<12;o++)c+=I2.charAt(i[o]);return(0,V.hu)(20===c.length,"nextPushId: Length should be 20."),c}}();class O2{constructor(i,e,r,o){this.eventType=i,this.eventRegistration=e,this.snapshot=r,this.prevName=o}getPath(){const i=this.snapshot.ref;return"value"===this.eventType?i._path:i.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+(0,V.Wl)(this.snapshot.exportVal())}}class k2{constructor(i,e,r){this.eventRegistration=i,this.error=e,this.path=r}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}class GI{constructor(i,e){this.snapshotCallback=i,this.cancelCallback=e}onValue(i,e){this.snapshotCallback.call(null,i,e)}onCancel(i){return(0,V.hu)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,i)}get hasCancelCallback(){return!!this.cancelCallback}matches(i){return this.snapshotCallback===i.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===i.snapshotCallback.userCallback&&this.snapshotCallback.context===i.snapshotCallback.context}}class P2{constructor(i,e){this._repo=i,this._path=e}cancel(){const i=new V.BH;return q8(this._repo,this._path,i.wrapCallback(()=>{})),i.promise}remove(){ua("OnDisconnect.remove",this._path);const i=new V.BH;return S2(this._repo,this._path,null,i.wrapCallback(()=>{})),i.promise}set(i){ua("OnDisconnect.set",this._path),Kl("OnDisconnect.set",i,this._path,!1);const e=new V.BH;return S2(this._repo,this._path,i,e.wrapCallback(()=>{})),e.promise}setWithPriority(i,e){ua("OnDisconnect.setWithPriority",this._path),Kl("OnDisconnect.setWithPriority",i,this._path,!1),OI("OnDisconnect.setWithPriority",e,!1);const r=new V.BH;return function z8(n,i,e,r,o){const s=ir(e,r);n.server_.onDisconnectPut(i.toString(),s.val(!0),(c,f)=>{"ok"===c&&Lm(n.onDisconnect_,i,s),Xd(0,o,c,f)})}(this._repo,this._path,i,e,r.wrapCallback(()=>{})),r.promise}update(i){ua("OnDisconnect.update",this._path),_2("OnDisconnect.update",i,this._path,!1);const e=new V.BH;return function $8(n,i,e,r){if((0,V.xb)(e))return $r("onDisconnect().update() called with empty data. Don't do anything."),void Xd(0,r,"ok",void 0);n.server_.onDisconnectMerge(i.toString(),e,(o,s)=>{"ok"===o&&Yr(e,(c,f)=>{const g=ir(f);Lm(n.onDisconnect_,Qi(i,c),g)}),Xd(0,r,o,s)})}(this._repo,this._path,i,e.wrapCallback(()=>{})),e.promise}}class Jo{constructor(i,e,r,o){this._repo=i,this._path=e,this._queryParams=r,this._orderByCalled=o}get key(){return Bn(this._path)?null:qM(this._path)}get ref(){return new da(this._repo,this._path)}get _queryIdentifier(){const i=FL(this._queryParams),e=BM(i);return"{}"===e?"default":e}get _queryObject(){return FL(this._queryParams)}isEqual(i){if(!((i=(0,V.m9)(i))instanceof Jo))return!1;const e=this._repo===i._repo,r=zM(this._path,i._path);return e&&r&&this._queryIdentifier===i._queryIdentifier}toJSON(){return this.toString()}toString(){return this._repo.toString()+function $V(n){let i="";for(let e=n.pieceNum_;ei(new $f(o,Yf(this.ref,r),Pi)))}hasChild(i){const e=new di(i);return!this._node.getChild(e).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function N2(n,i){return(n=(0,V.m9)(n))._checkNotDeleted("ref"),void 0!==i?Yf(n._root,i):n._root}function R2(n,i){(n=(0,V.m9)(n))._checkNotDeleted("refFromURL");const e=BI(i,n._repo.repoInfo_.nodeAdmin);v2("refFromURL",e);const r=e.repoInfo;return!n._repo.repoInfo_.isCustomHost()&&r.host!==n._repo.repoInfo_.host&&Jl("refFromURL: Host name does not match the current database: (found "+r.host+" but expected "+n._repo.repoInfo_.host+")"),N2(n,e.path.toString())}function Yf(n,i){return null===Ln((n=(0,V.m9)(n))._path)?(e=i,e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),Db("child","path",e,!1)):Db("child","path",i,!1),new da(n._repo,Qi(n._path,i));var e}function UI(n,i){n=(0,V.m9)(n),ua("set",n._path),Kl("set",i,n._path,!1);const e=new V.BH;return PI(n._repo,n._path,i,null,e.wrapCallback(()=>{})),e.promise}function lW(n,i){_2("update",i,n._path,!1);const e=new V.BH;return function Z8(n,i,e,r){Hm(n,"update",{path:i.toString(),value:e});let o=!0;const s=Eb(n),c={};if(Yr(e,(f,g)=>{o=!1,c[f]=f2(Qi(i,f),ir(g),n.serverSyncTree_,s)}),o)$r("update() called with empty data. Don't do anything."),Xd(0,r,"ok",void 0);else{const f=xw(n),g=function m8(n,i,e,r){!function PZ(n,i,e,r){(0,V.hu)(r>n.lastWriteId,"Stacking an older merge on top of newer ones"),n.allWrites.push({path:i,children:e,writeId:r,visible:!0}),n.visibleWrites=cI(n.visibleWrites,i,e),n.lastWriteId=r}(n.pendingWriteTree_,i,e,r);const o=Ni.fromObject(e);return Um(n,new Bm({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},i,o))}(n.serverSyncTree_,i,c,f);yw(n.eventQueue_,g),n.server_.merge(i.toString(),e,(v,T)=>{const D="ok"===v;D||vo("update at "+i+" failed: "+v);const M=Kd(n.serverSyncTree_,f,!D),R=M.length>0?jm(n,i):i;Ss(n.eventQueue_,R,M),Xd(0,r,v,T)}),Yr(e,v=>{const T=FI(n,Qi(i,v));jm(n,T)}),Ss(n.eventQueue_,i,[])}}(n._repo,n._path,i,e.wrapCallback(()=>{})),e.promise}function cW(n){n=(0,V.m9)(n);const i=new GI(()=>{}),e=new Ab(i);return function V8(n,i,e){const r=function x8(n,i){const e=i._path;let r=null;n.syncPointTree_.foreachOnPath(e,(v,T)=>{const D=Io(v,e);r=r||Jd(T,D)});let o=n.syncPointTree_.get(e);o?r=r||Jd(o,ii()):(o=new t2,n.syncPointTree_=n.syncPointTree_.set(e,o));const s=null!=r,c=s?new $d(r,!0,!1):null;return function r8(n){return sw(n.viewCache_)}(n2(o,i,aw(n.pendingWriteTree_,i._path),s?c.getNode():Dn.EMPTY_NODE,s))}(n.serverSyncTree_,i);return null!=r?Promise.resolve(r):n.server_.get(i).then(o=>{const s=ir(o).withIndex(i._queryParams.getIndex());let c;if(bI(n.serverSyncTree_,i,e,!0),i._queryParams.loadsAllData())c=bb(n.serverSyncTree_,i._path,s);else{const f=yb(n.serverSyncTree_,i);c=l2(n.serverSyncTree_,i._path,s,f)}return Ss(n.eventQueue_,i._path,c),pw(n.serverSyncTree_,i,e,null,!0),s},o=>(Hm(n,"get for query "+(0,V.Wl)(i)+" failed: "+o),Promise.reject(new Error(o))))}(n._repo,n,e).then(r=>new $f(r,new da(n._repo,n._path),n._queryParams.getIndex()))}class Ab{constructor(i){this.callbackContext=i}respondsTo(i){return"value"===i}createEvent(i,e){const r=e._queryParams.getIndex();return new O2("value",this,new $f(i.snapshotNode,new da(e._repo,e._path),r))}getEventRunner(i){return"cancel"===i.getEventType()?()=>this.callbackContext.onCancel(i.error):()=>this.callbackContext.onValue(i.snapshot,null)}createCancelEvent(i,e){return this.callbackContext.hasCancelCallback?new k2(this,i,e):null}matches(i){return i instanceof Ab&&(!i.callbackContext||!this.callbackContext||i.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}class Dw{constructor(i,e){this.eventType=i,this.callbackContext=e}respondsTo(i){let e="children_added"===i?"child_added":i;return e="children_removed"===e?"child_removed":e,this.eventType===e}createCancelEvent(i,e){return this.callbackContext.hasCancelCallback?new k2(this,i,e):null}createEvent(i,e){(0,V.hu)(null!=i.childName,"Child events should have a childName.");const r=Yf(new da(e._repo,e._path),i.childName),o=e._queryParams.getIndex();return new O2(i.type,this,new $f(i.snapshotNode,r,o),i.prevName)}getEventRunner(i){return"cancel"===i.getEventType()?()=>this.callbackContext.onCancel(i.error):()=>this.callbackContext.onValue(i.snapshot,i.prevName)}matches(i){return i instanceof Dw&&this.eventType===i.eventType&&(!this.callbackContext||!i.callbackContext||this.callbackContext.matches(i.callbackContext))}hasAnyCallback(){return!!this.callbackContext}}function Mb(n,i,e,r,o){let s;if("object"==typeof r&&(s=void 0,o=r),"function"==typeof r&&(s=r),o&&o.onlyOnce){const g=e,v=(T,D)=>{NI(n._repo,n,f),g(T,D)};v.userCallback=e.userCallback,v.context=e.context,e=v}const c=new GI(e,s||void 0),f="value"===i?new Ab(c):new Dw(i,c);return function Y8(n,i,e){let r;r=".info"===Ln(i._path)?bI(n.infoSyncTree_,i,e):bI(n.serverSyncTree_,i,e),b2(n.eventQueue_,i._path,r)}(n._repo,n,f),()=>NI(n._repo,n,f)}function HI(n,i,e,r){return Mb(n,"value",i,e,r)}function F2(n,i,e,r){return Mb(n,"child_added",i,e,r)}function L2(n,i,e,r){return Mb(n,"child_changed",i,e,r)}function B2(n,i,e,r){return Mb(n,"child_moved",i,e,r)}function G2(n,i,e,r){return Mb(n,"child_removed",i,e,r)}function U2(n,i,e){let r=null;const o=e?new GI(e):null;"value"===i?r=new Ab(o):i&&(r=new Dw(i,o)),NI(n._repo,n,r)}class tl{}class H2 extends tl{constructor(i,e){super(),this._value=i,this._key=e}_apply(i){Kl("endAt",this._value,i._path,!0);const e=nI(i._queryParams,this._value,this._key);if(Sw(e),eh(e),i._queryParams.hasEnd())throw new Error("endAt: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Jo(i._repo,i._path,e,i._orderByCalled)}}class dW extends tl{constructor(i,e){super(),this._value=i,this._key=e}_apply(i){Kl("endBefore",this._value,i._path,!1);const e=function yZ(n,i,e){let r;return r=nI(n,i,n.index_===Ql||e?e:Wd),r.endBeforeSet_=!0,r}(i._queryParams,this._value,this._key);if(Sw(e),eh(e),i._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Jo(i._repo,i._path,e,i._orderByCalled)}}class j2 extends tl{constructor(i,e){super(),this._value=i,this._key=e}_apply(i){Kl("startAt",this._value,i._path,!0);const e=tI(i._queryParams,this._value,this._key);if(Sw(e),eh(e),i._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new Jo(i._repo,i._path,e,i._orderByCalled)}}class pW extends tl{constructor(i,e){super(),this._value=i,this._key=e}_apply(i){Kl("startAfter",this._value,i._path,!1);const e=function bZ(n,i,e){let r;return r=tI(n,i,n.index_===Ql||e?e:au),r.startAfterSet_=!0,r}(i._queryParams,this._value,this._key);if(Sw(e),eh(e),i._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new Jo(i._repo,i._path,e,i._orderByCalled)}}class mW extends tl{constructor(i){super(),this._limit=i}_apply(i){if(i._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new Jo(i._repo,i._path,function _Z(n,i){const e=n.copy();return e.limitSet_=!0,e.limit_=i,e.viewFrom_="l",e}(i._queryParams,this._limit),i._orderByCalled)}}class vW extends tl{constructor(i){super(),this._limit=i}_apply(i){if(i._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new Jo(i._repo,i._path,function vZ(n,i){const e=n.copy();return e.limitSet_=!0,e.limit_=i,e.viewFrom_="r",e}(i._queryParams,this._limit),i._orderByCalled)}}class yW extends tl{constructor(i){super(),this._path=i}_apply(i){Tw(i,"orderByChild");const e=new di(this._path);if(Bn(e))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");const r=new KM(e),o=tw(i._queryParams,r);return eh(o),new Jo(i._repo,i._path,o,!0)}}class CW extends tl{_apply(i){Tw(i,"orderByKey");const e=tw(i._queryParams,Ql);return eh(e),new Jo(i._repo,i._path,e,!0)}}class TW extends tl{_apply(i){Tw(i,"orderByPriority");const e=tw(i._queryParams,Pi);return eh(e),new Jo(i._repo,i._path,e,!0)}}class DW extends tl{_apply(i){Tw(i,"orderByValue");const e=tw(i._queryParams,XM);return eh(e),new Jo(i._repo,i._path,e,!0)}}class AW extends tl{constructor(i,e){super(),this._value=i,this._key=e}_apply(i){if(Kl("equalTo",this._value,i._path,!1),i._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(i._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new H2(this._value,this._key)._apply(new j2(this._value,this._key)._apply(i))}}function nl(n,...i){let e=(0,V.m9)(n);for(const r of i)e=r._apply(e);return e}(function l8(n){(0,V.hu)(!dw,"__referenceConstructor has already been defined"),dw=n})(da),function f8(n){(0,V.hu)(!fw,"__referenceConstructor has already been defined"),fw=n}(da);const jI={};function Z2(n,i,e,r,o){let s=r||n.options.databaseURL;void 0===s&&(n.options.projectId||Jl("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),$r("Using default host for project ",n.options.projectId),s=`${n.options.projectId}-default-rtdb.firebaseio.com`);let g,v,c=BI(s,o),f=c.repoInfo;"undefined"!=typeof process&&process.env&&(v=process.env.FIREBASE_DATABASE_EMULATOR_HOST),v?(g=!0,s=`http://${v}?ns=${f.namespace}`,c=BI(s,o),f=c.repoInfo):g=!c.repoInfo.secure;const T=o&&g?new ab(ab.OWNER):new wV(n.name,n.options,i);v2("Invalid Firebase Database URL",c),Bn(c.path)||Jl("Database URL must point to the root of a Firebase Database (not including a child path).");const D=function PW(n,i,e,r){let o=jI[i.name];o||(o={},jI[i.name]=o);let s=o[n.toURLString()];return s&&Jl("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),s=new U8(n,false,e,r),o[n.toURLString()]=s,s}(f,n,T,new CV(n.name,e));return new RW(D,n)}class RW{constructor(i,e){this._repoInternal=i,this.app=e,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(function H8(n,i,e){if(n.stats_=VM(n.repoInfo_),n.forceRestClient_||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)n.server_=new nw(n.repoInfo_,(r,o,s,c)=>{w2(n,r,o,s,c)},n.authTokenProvider_,n.appCheckProvider_),setTimeout(()=>T2(n,!0),0);else{if(null!=e){if("object"!=typeof e)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{(0,V.Wl)(e)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}n.persistentConnection_=new Vf(n.repoInfo_,i,(r,o,s,c)=>{w2(n,r,o,s,c)},r=>{T2(n,r)},r=>{!function j8(n,i){Yr(i,(e,r)=>{kI(n,e,r)})}(n,r)},n.authTokenProvider_,n.appCheckProvider_,e),n.server_=n.persistentConnection_}n.authTokenProvider_.addTokenChangeListener(r=>{n.server_.refreshAuthToken(r)}),n.appCheckProvider_.addTokenChangeListener(r=>{n.server_.refreshAppCheckToken(r.token)}),n.statsReporter_=function DV(n,i){const e=n.toString();return jM[e]||(jM[e]=i()),jM[e]}(n.repoInfo_,()=>new DZ(n.stats_,n.server_)),n.infoData_=new xZ,n.infoSyncTree_=new a2({startListening:(r,o,s,c)=>{let f=[];const g=n.infoData_.getNode(r._path);return g.isEmpty()||(f=bb(n.infoSyncTree_,r._path,g),setTimeout(()=>{c("ok")},0)),f},stopListening:()=>{}}),kI(n,"connected",!1),n.serverSyncTree_=new a2({startListening:(r,o,s,c)=>(n.server_.listen(r,s,o,(f,g)=>{const v=c(f,g);Ss(n.eventQueue_,r._path,v)}),[]),stopListening:(r,o)=>{n.server_.unlisten(r,o)}})}(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new da(this._repo,ii())),this._rootInternal}_delete(){return null!==this._rootInternal&&(function kW(n,i){const e=jI[i];(!e||e[n.key]!==n)&&Jl(`Database ${i}(${n.repoInfo_}) has already been deleted.`),D2(n),delete e[n.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(i){null===this._rootInternal&&Jl("Cannot call "+i+" on a deleted database.")}}function W2(){hL.IS_TRANSPORT_INITIALIZED&&vo("Transport has already been initialized. Please call this function before calling ref or setting up a listener")}function FW(){W2(),qd.forceDisallow()}function LW(){W2(),Pm.forceDisallow(),qd.forceAllow()}function UW(n,i){qF(n,i)}const jW={".sv":"timestamp"};class WW{constructor(i,e){this.committed=i,this.snapshot=e}toJSON(){return{committed:this.committed,snapshot:this.snapshot.toJSON()}}}Vf.prototype.simpleListen=function(n,i){this.sendRequest("q",{p:n},i)},Vf.prototype.echo=function(n,i){this.sendRequest("echo",{d:n},i)},function HW(n){HF(Ji.SDK_VERSION),(0,Ji._registerComponent)(new zl.wA("database",(i,{instanceIdentifier:e})=>Z2(i.getProvider("app").getImmediate(),i.getProvider("auth-internal"),i.getProvider("app-check-internal"),e),"PUBLIC").setMultipleInstances(!0)),(0,Ji.registerVersion)(GF,"0.14.4",n),(0,Ji.registerVersion)(GF,"0.14.4","esm2017")}();const YW=new Rf.Yd("@firebase/database-compat"),z2=function(n){YW.warn("FIREBASE WARNING: "+n)};class KW{constructor(i){this._delegate=i}cancel(i){(0,V.Dv)("OnDisconnect.cancel",0,1,arguments.length),(0,V.Wj)("OnDisconnect.cancel","onComplete",i,!0);const e=this._delegate.cancel();return i&&e.then(()=>i(null),r=>i(r)),e}remove(i){(0,V.Dv)("OnDisconnect.remove",0,1,arguments.length),(0,V.Wj)("OnDisconnect.remove","onComplete",i,!0);const e=this._delegate.remove();return i&&e.then(()=>i(null),r=>i(r)),e}set(i,e){(0,V.Dv)("OnDisconnect.set",1,2,arguments.length),(0,V.Wj)("OnDisconnect.set","onComplete",e,!0);const r=this._delegate.set(i);return e&&r.then(()=>e(null),o=>e(o)),r}setWithPriority(i,e,r){(0,V.Dv)("OnDisconnect.setWithPriority",2,3,arguments.length),(0,V.Wj)("OnDisconnect.setWithPriority","onComplete",r,!0);const o=this._delegate.setWithPriority(i,e);return r&&o.then(()=>r(null),s=>r(s)),o}update(i,e){if((0,V.Dv)("OnDisconnect.update",1,2,arguments.length),Array.isArray(i)){const o={};for(let s=0;se(null),o=>e(o)),r}}class XW{constructor(i,e){this.committed=i,this.snapshot=e}toJSON(){return(0,V.Dv)("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}}}class th{constructor(i,e){this._database=i,this._delegate=e}val(){return(0,V.Dv)("DataSnapshot.val",0,0,arguments.length),this._delegate.val()}exportVal(){return(0,V.Dv)("DataSnapshot.exportVal",0,0,arguments.length),this._delegate.exportVal()}toJSON(){return(0,V.Dv)("DataSnapshot.toJSON",0,1,arguments.length),this._delegate.toJSON()}exists(){return(0,V.Dv)("DataSnapshot.exists",0,0,arguments.length),this._delegate.exists()}child(i){return(0,V.Dv)("DataSnapshot.child",0,1,arguments.length),i=String(i),Db("DataSnapshot.child","path",i,!1),new th(this._database,this._delegate.child(i))}hasChild(i){return(0,V.Dv)("DataSnapshot.hasChild",1,1,arguments.length),Db("DataSnapshot.hasChild","path",i,!1),this._delegate.hasChild(i)}getPriority(){return(0,V.Dv)("DataSnapshot.getPriority",0,0,arguments.length),this._delegate.priority}forEach(i){return(0,V.Dv)("DataSnapshot.forEach",1,1,arguments.length),(0,V.Wj)("DataSnapshot.forEach","action",i,!1),this._delegate.forEach(e=>i(new th(this._database,e)))}hasChildren(){return(0,V.Dv)("DataSnapshot.hasChildren",0,0,arguments.length),this._delegate.hasChildren()}get key(){return this._delegate.key}numChildren(){return(0,V.Dv)("DataSnapshot.numChildren",0,0,arguments.length),this._delegate.size}getRef(){return(0,V.Dv)("DataSnapshot.ref",0,0,arguments.length),new Ds(this._database,this._delegate.ref)}get ref(){return this.getRef()}}class so{constructor(i,e){this.database=i,this._delegate=e}on(i,e,r,o){var s;(0,V.Dv)("Query.on",2,4,arguments.length),(0,V.Wj)("Query.on","callback",e,!1);const c=so.getCancelAndContextArgs_("Query.on",r,o),f=(v,T)=>{e.call(c.context,new th(this.database,v),T)};f.userCallback=e,f.context=c.context;const g=null===(s=c.cancel)||void 0===s?void 0:s.bind(c.context);switch(i){case"value":return HI(this._delegate,f,g),e;case"child_added":return F2(this._delegate,f,g),e;case"child_removed":return G2(this._delegate,f,g),e;case"child_changed":return L2(this._delegate,f,g),e;case"child_moved":return B2(this._delegate,f,g),e;default:throw new Error((0,V.gK)("Query.on","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}off(i,e,r){if((0,V.Dv)("Query.off",0,3,arguments.length),function(n,i,e){if(void 0!==i)switch(i){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error((0,V.gK)("Query.off","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}(0,i),(0,V.Wj)("Query.off","callback",e,!0),(0,V.lb)("Query.off","context",r,!0),e){const o=()=>{};o.userCallback=e,o.context=r,U2(this._delegate,i,o)}else U2(this._delegate,i)}get(){return cW(this._delegate).then(i=>new th(this.database,i))}once(i,e,r,o){(0,V.Dv)("Query.once",1,4,arguments.length),(0,V.Wj)("Query.once","callback",e,!0);const s=so.getCancelAndContextArgs_("Query.once",r,o),c=new V.BH,f=(v,T)=>{const D=new th(this.database,v);e&&e.call(s.context,D,T),c.resolve(D)};f.userCallback=e,f.context=s.context;const g=v=>{s.cancel&&s.cancel.call(s.context,v),c.reject(v)};switch(i){case"value":HI(this._delegate,f,g,{onlyOnce:!0});break;case"child_added":F2(this._delegate,f,g,{onlyOnce:!0});break;case"child_removed":G2(this._delegate,f,g,{onlyOnce:!0});break;case"child_changed":L2(this._delegate,f,g,{onlyOnce:!0});break;case"child_moved":B2(this._delegate,f,g,{onlyOnce:!0});break;default:throw new Error((0,V.gK)("Query.once","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}return c.promise}limitToFirst(i){return(0,V.Dv)("Query.limitToFirst",1,1,arguments.length),new so(this.database,nl(this._delegate,function _W(n){if("number"!=typeof n||Math.floor(n)!==n||n<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new mW(n)}(i)))}limitToLast(i){return(0,V.Dv)("Query.limitToLast",1,1,arguments.length),new so(this.database,nl(this._delegate,function bW(n){if("number"!=typeof n||Math.floor(n)!==n||n<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new vW(n)}(i)))}orderByChild(i){return(0,V.Dv)("Query.orderByChild",1,1,arguments.length),new so(this.database,nl(this._delegate,function xW(n){if("$key"===n)throw new Error('orderByChild: "$key" is invalid. Use orderByKey() instead.');if("$priority"===n)throw new Error('orderByChild: "$priority" is invalid. Use orderByPriority() instead.');if("$value"===n)throw new Error('orderByChild: "$value" is invalid. Use orderByValue() instead.');return Db("orderByChild","path",n,!1),new yW(n)}(i)))}orderByKey(){return(0,V.Dv)("Query.orderByKey",0,0,arguments.length),new so(this.database,nl(this._delegate,function wW(){return new CW}()))}orderByPriority(){return(0,V.Dv)("Query.orderByPriority",0,0,arguments.length),new so(this.database,nl(this._delegate,function SW(){return new TW}()))}orderByValue(){return(0,V.Dv)("Query.orderByValue",0,0,arguments.length),new so(this.database,nl(this._delegate,function EW(){return new DW}()))}startAt(i=null,e){return(0,V.Dv)("Query.startAt",0,2,arguments.length),new so(this.database,nl(this._delegate,function fW(n=null,i){return Sb("startAt","key",i,!0),new j2(n,i)}(i,e)))}startAfter(i=null,e){return(0,V.Dv)("Query.startAfter",0,2,arguments.length),new so(this.database,nl(this._delegate,function gW(n,i){return Sb("startAfter","key",i,!0),new pW(n,i)}(i,e)))}endAt(i=null,e){return(0,V.Dv)("Query.endAt",0,2,arguments.length),new so(this.database,nl(this._delegate,function uW(n,i){return Sb("endAt","key",i,!0),new H2(n,i)}(i,e)))}endBefore(i=null,e){return(0,V.Dv)("Query.endBefore",0,2,arguments.length),new so(this.database,nl(this._delegate,function hW(n,i){return Sb("endBefore","key",i,!0),new dW(n,i)}(i,e)))}equalTo(i,e){return(0,V.Dv)("Query.equalTo",1,2,arguments.length),new so(this.database,nl(this._delegate,function MW(n,i){return Sb("equalTo","key",i,!0),new AW(n,i)}(i,e)))}toString(){return(0,V.Dv)("Query.toString",0,0,arguments.length),this._delegate.toString()}toJSON(){return(0,V.Dv)("Query.toJSON",0,1,arguments.length),this._delegate.toJSON()}isEqual(i){if((0,V.Dv)("Query.isEqual",1,1,arguments.length),!(i instanceof so))throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.");return this._delegate.isEqual(i._delegate)}static getCancelAndContextArgs_(i,e,r){const o={cancel:void 0,context:void 0};if(e&&r)o.cancel=e,(0,V.Wj)(i,"cancel",o.cancel,!0),o.context=r,(0,V.lb)(i,"context",o.context,!0);else if(e)if("object"==typeof e&&null!==e)o.context=e;else{if("function"!=typeof e)throw new Error((0,V.gK)(i,"cancelOrContext")+" must either be a cancel callback or a context object.");o.cancel=e}return o}get ref(){return new Ds(this.database,new da(this._delegate._repo,this._delegate._path))}}class Ds extends so{constructor(i,e){super(i,new Jo(e._repo,e._path,new ew,!1)),this.database=i,this._delegate=e}getKey(){return(0,V.Dv)("Reference.key",0,0,arguments.length),this._delegate.key}child(i){return(0,V.Dv)("Reference.child",1,1,arguments.length),"number"==typeof i&&(i=String(i)),new Ds(this.database,Yf(this._delegate,i))}getParent(){(0,V.Dv)("Reference.parent",0,0,arguments.length);const i=this._delegate.parent;return i?new Ds(this.database,i):null}getRoot(){return(0,V.Dv)("Reference.root",0,0,arguments.length),new Ds(this.database,this._delegate.root)}set(i,e){(0,V.Dv)("Reference.set",1,2,arguments.length),(0,V.Wj)("Reference.set","onComplete",e,!0);const r=UI(this._delegate,i);return e&&r.then(()=>e(null),o=>e(o)),r}update(i,e){if((0,V.Dv)("Reference.update",1,2,arguments.length),Array.isArray(i)){const o={};for(let s=0;se(null),o=>e(o)),r}setWithPriority(i,e,r){(0,V.Dv)("Reference.setWithPriority",2,3,arguments.length),(0,V.Wj)("Reference.setWithPriority","onComplete",r,!0);const o=function aW(n,i,e){if(ua("setWithPriority",n._path),Kl("setWithPriority",i,n._path,!1),OI("setWithPriority",e,!1),".length"===n.key||".keys"===n.key)throw"setWithPriority failed: "+n.key+" is a read-only object.";const r=new V.BH;return PI(n._repo,n._path,i,e,r.wrapCallback(()=>{})),r.promise}(this._delegate,i,e);return r&&o.then(()=>r(null),s=>r(s)),o}remove(i){(0,V.Dv)("Reference.remove",0,1,arguments.length),(0,V.Wj)("Reference.remove","onComplete",i,!0);const e=function oW(n){return ua("remove",n._path),UI(n,null)}(this._delegate);return i&&e.then(()=>i(null),r=>i(r)),e}transaction(i,e,r){(0,V.Dv)("Reference.transaction",1,3,arguments.length),(0,V.Wj)("Reference.transaction","transactionUpdate",i,!1),(0,V.Wj)("Reference.transaction","onComplete",e,!0),function(n,i,e,r){if(void 0!==e&&"boolean"!=typeof e)throw new Error((0,V.gK)("Reference.transaction","applyLocally")+"must be a boolean.")}(0,0,r);const o=function qW(n,i,e){var r;if(n=(0,V.m9)(n),ua("Reference.transaction",n._path),".length"===n.key||".keys"===n.key)throw"Reference.transaction failed: "+n.key+" is a read-only object.";const o=null===(r=null==e?void 0:e.applyLocally)||void 0===r||r,s=new V.BH,f=HI(n,()=>{});return function Q8(n,i,e,r,o,s){Hm(n,"transaction on "+i);const c={path:i,update:e,onComplete:r,status:null,order:VF(),applyLocally:s,retryCount:0,unwatcher:o,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},f=RI(n,i,void 0);c.currentInputSnapshot=f;const g=c.update(f.val());if(void 0===g)c.unwatcher(),c.currentOutputSnapshotRaw=null,c.currentOutputSnapshotResolved=null,c.onComplete&&c.onComplete(null,!1,c.currentInputSnapshot);else{Tb("transaction failed: Data returned ",g,c.path),c.status=0;const v=_w(n.transactionQueueTree_,i),T=zf(v)||[];let D;T.push(c),AI(v,T),"object"==typeof g&&null!==g&&(0,V.r3)(g,".priority")?(D=(0,V.DV)(g,".priority"),(0,V.hu)(wb(D),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):D=(gw(n.serverSyncTree_,i)||Dn.EMPTY_NODE).getPriority().val();const M=Eb(n),R=ir(g,D),K=SI(R,f,M);c.currentOutputSnapshotRaw=R,c.currentOutputSnapshotResolved=K,c.currentWriteId=xw(n);const fe=vI(n.serverSyncTree_,i,K,c.currentWriteId,c.applyLocally);Ss(n.eventQueue_,i,fe),Cw(n,n.transactionQueueTree_)}}(n._repo,n._path,i,(g,v,T)=>{let D=null;g?s.reject(g):(D=new $f(T,new da(n._repo,n._path),Pi),s.resolve(new WW(v,D)))},f,o),s.promise}(this._delegate,i,{applyLocally:r}).then(s=>new XW(s.committed,new th(this.database,s.snapshot)));return e&&o.then(s=>e(null,s.committed,s.snapshot),s=>e(s,!1,null)),o}setPriority(i,e){(0,V.Dv)("Reference.setPriority",1,2,arguments.length),(0,V.Wj)("Reference.setPriority","onComplete",e,!0);const r=function sW(n,i){n=(0,V.m9)(n),ua("setPriority",n._path),OI("setPriority",i,!1);const e=new V.BH;return PI(n._repo,Qi(n._path,".priority"),i,null,e.wrapCallback(()=>{})),e.promise}(this._delegate,i);return e&&r.then(()=>e(null),o=>e(o)),r}push(i,e){(0,V.Dv)("Reference.push",0,2,arguments.length),(0,V.Wj)("Reference.push","onComplete",e,!0);const r=function rW(n,i){n=(0,V.m9)(n),ua("push",n._path),Kl("push",i,n._path,!0);const e=C2(n._repo),r=iW(e),o=Yf(n,r),s=Yf(n,r);let c;return c=null!=i?UI(s,i).then(()=>s):Promise.resolve(s),o.then=c.then.bind(c),o.catch=c.then.bind(c,void 0),o}(this._delegate,i),o=r.then(c=>new Ds(this.database,c));e&&o.then(()=>e(null),c=>e(c));const s=new Ds(this.database,r);return s.then=o.then.bind(o),s.catch=o.catch.bind(o,void 0),s}onDisconnect(){return ua("Reference.onDisconnect",this._delegate._path),new KW(new P2(this._delegate._repo,this._delegate._path))}get key(){return this.getKey()}get parent(){return this.getParent()}get root(){return this.getRoot()}}class Ib{constructor(i,e){this._delegate=i,this.app=e,this.INTERNAL={delete:()=>this._delegate._delete(),forceWebSockets:FW,forceLongPolling:LW}}useEmulator(i,e,r={}){!function q2(n,i,e,r={}){(n=(0,V.m9)(n))._checkNotDeleted("useEmulator"),n._instanceStarted&&Jl("Cannot call useEmulator() after instance has already been initialized.");const o=n._repoInternal;let s;if(o.repoInfo_.nodeAdmin)r.mockUserToken&&Jl('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),s=new ab(ab.OWNER);else if(r.mockUserToken){const c="string"==typeof r.mockUserToken?r.mockUserToken:(0,V.Sg)(r.mockUserToken,n.app.options.projectId);s=new ab(c)}!function OW(n,i,e,r){n.repoInfo_=new UM(`${i}:${e}`,!1,n.repoInfo_.namespace,n.repoInfo_.webSocketOnly,n.repoInfo_.nodeAdmin,n.repoInfo_.persistenceKey,n.repoInfo_.includeNamespaceInQueryParams,!0),r&&(n.authTokenProvider_=r)}(o,i,e,s)}(this._delegate,i,e,r)}ref(i){if((0,V.Dv)("database.ref",0,1,arguments.length),i instanceof Ds){const e=R2(this._delegate,i.toString());return new Ds(this,e)}{const e=N2(this._delegate,i);return new Ds(this,e)}}refFromURL(i){(0,V.Dv)("database.refFromURL",1,1,arguments.length);const r=R2(this._delegate,i);return new Ds(this,r)}goOffline(){return(0,V.Dv)("database.goOffline",0,0,arguments.length),function BW(n){(n=(0,V.m9)(n))._checkNotDeleted("goOffline"),D2(n._repo)}(this._delegate)}goOnline(){return(0,V.Dv)("database.goOnline",0,0,arguments.length),function GW(n){(n=(0,V.m9)(n))._checkNotDeleted("goOnline"),function J8(n){n.persistentConnection_&&n.persistentConnection_.resume(x2)}(n._repo)}(this._delegate)}}Ib.ServerValue={TIMESTAMP:function VW(){return jW}(),increment:n=>function ZW(n){return{".sv":{increment:n}}}(n)};var tq=Object.freeze({__proto__:null,initStandalone:function eq({app:n,url:i,version:e,customAuthImpl:r,namespace:o,nodeAdmin:s=!1}){HF(e);const c=new zl.zt("auth-internal",new zl.H0("database-standalone"));return c.setComponent(new zl.wA("auth-internal",()=>r,"PRIVATE")),{instance:new Ib(Z2(n,c,void 0,i,s),n),namespace:o}}});const nq=Ib.ServerValue;function VI(n,i,e){var r,o;let s,c=!1;return n&&"object"==typeof n?(s=null!==(r=n.bufferSize)&&void 0!==r?r:1/0,i=null!==(o=n.windowTime)&&void 0!==o?o:1/0,c=!!n.refCount,e=n.scheduler):s=null!=n?n:1/0,(0,bg.B)({connector:()=>new Mm(s,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}function Ew(n,i){return(0,Vr.m)(i)?En(()=>n,i):En(()=>n)}!function iq(n){n.INTERNAL.registerComponent(new zl.wA("database-compat",(i,{instanceIdentifier:e})=>{const r=i.getProvider("app-compat").getImmediate(),o=i.getProvider("database").getImmediate({identifier:e});return new Ib(o,r)},"PUBLIC").setServiceProps({Reference:Ds,Query:so,Database:Ib,DataSnapshot:th,enableLogging:UW,INTERNAL:tq,ServerValue:nq}).setMultipleInstances(!0)),n.registerVersion("@firebase/database-compat","0.3.4")}(cV.Z);class Ob{constructor(i){return i}}class $2{constructor(){return(0,Ji.getApps)()}}const ZI=new t.OlP("angularfire2._apps"),oq={provide:Ob,useFactory:function rq(n){return n&&1===n.length?n[0]:new Ob((0,Ji.getApp)())},deps:[[new t.FiY,ZI]]},sq={provide:$2,deps:[[new t.FiY,ZI]]};function aq(n){return(i,e)=>{const r=i.runOutsideAngular(()=>n(e));return new Ob(r)}}let lq=(()=>{class n{constructor(e){(0,Ji.registerVersion)("angularfire",EM.full,"core"),(0,Ji.registerVersion)("angularfire",EM.full,"app"),(0,Ji.registerVersion)("angular",t.q4F.full,e.toString())}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.Lbi))},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[oq,sq]}),n})();function cq(n,...i){return{ngModule:lq,providers:[{provide:ZI,useFactory:aq(n),multi:!0,deps:[t.R0b,t.zs3,nb,...i]}]}}const uq=BF(Ji.initializeApp,!0),WI=new Map,Y2={activated:!1,tokenObservers:[]},dq={initialized:!1,enabled:!1};function dr(n){return WI.get(n)||Object.assign({},Y2)}function Aw(){return dq}class _q{constructor(i,e,r,o,s){if(this.operation=i,this.retryPolicy=e,this.getWaitDuration=r,this.lowerBound=o,this.upperBound=s,this.pending=null,this.nextErrorWaitInterval=o,o>s)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(i){var e=this;return(0,Ai.Z)(function*(){e.stop();try{e.pending=new V.BH,yield function vq(n){return new Promise(i=>{setTimeout(i,n)})}(e.getNextRun(i)),e.pending.resolve(),yield e.pending.promise,e.pending=new V.BH,yield e.operation(),e.pending.resolve(),yield e.pending.promise,e.process(!0).catch(()=>{})}catch(r){e.retryPolicy(r)?e.process(!1).catch(()=>{}):e.stop()}})()}getNextRun(i){if(i)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const e=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),e}}}const ao=new V.LL("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"});function zI(n){if(!dr(n).activated)throw ao.create("use-before-activation",{appName:n.name})}function Ow(n,i){return YI.apply(this,arguments)}function YI(){return(YI=(0,Ai.Z)(function*({url:n,body:i},e){const r={"Content-Type":"application/json"},o=e.getImmediate({optional:!0});if(o){const D=yield o.getHeartbeatsHeader();D&&(r["X-Firebase-Client"]=D)}const s={method:"POST",body:JSON.stringify(i),headers:r};let c,f;try{c=yield fetch(n,s)}catch(D){throw ao.create("fetch-network-error",{originalErrorMessage:null==D?void 0:D.message})}if(200!==c.status)throw ao.create("fetch-status-error",{httpStatus:c.status});try{f=yield c.json()}catch(D){throw ao.create("fetch-parse-error",{originalErrorMessage:null==D?void 0:D.message})}const g=f.ttl.match(/^([\d.]+)(s)$/);if(!g||!g[2]||isNaN(Number(g[1])))throw ao.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${f.ttl}`});const v=1e3*Number(g[1]),T=Date.now();return{token:f.token,expireTimeMillis:T+v,issuedAtTimeMillis:T}})).apply(this,arguments)}function Q2(n,i){const{projectId:e,appId:r,apiKey:o}=n.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${e}/apps/${r}:exchangeDebugToken?key=${o}`,body:{debug_token:i}}}const kb="firebase-app-check-store";let kw=null;function X2(){return kw||(kw=new Promise((n,i)=>{try{const e=indexedDB.open("firebase-app-check-database",1);e.onsuccess=r=>{n(r.target.result)},e.onerror=r=>{var o;i(ao.create("storage-open",{originalErrorMessage:null===(o=r.target.error)||void 0===o?void 0:o.message}))},e.onupgradeneeded=r=>{0===r.oldVersion&&r.target.result.createObjectStore(kb,{keyPath:"compositeKey"})}}catch(e){i(ao.create("storage-open",{originalErrorMessage:null==e?void 0:e.message}))}}),kw)}function JI(){return(JI=(0,Ai.Z)(function*(n,i){const r=(yield X2()).transaction(kb,"readwrite"),s=r.objectStore(kb).put({compositeKey:n,value:i});return new Promise((c,f)=>{s.onsuccess=g=>{c()},r.onerror=g=>{var v;f(ao.create("storage-set",{originalErrorMessage:null===(v=g.target.error)||void 0===v?void 0:v.message}))}})})).apply(this,arguments)}const Pb=new Rf.Yd("@firebase/app-check");function XI(n,i){return(0,V.hl)()?function Sq(n,i){return function e3(n,i){return JI.apply(this,arguments)}(function n3(n){return`${n.options.appId}-${n.name}`}(n),i)}(n,i).catch(e=>{Pb.warn(`Failed to write token to IndexedDB. Error: ${e}`)}):Promise.resolve()}function tO(){return Aw().enabled}function nO(){return iO.apply(this,arguments)}function iO(){return(iO=(0,Ai.Z)(function*(){const n=Aw();if(n.enabled&&n.token)return n.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const Oq={error:"UNKNOWN_ERROR"};function kq(n){return V.US.encodeString(JSON.stringify(n),!1)}function Pw(n){return rO.apply(this,arguments)}function rO(){return(rO=(0,Ai.Z)(function*(n,i=!1){const e=n.app;zI(e);const r=dr(e);let s,o=r.token;if(o&&!Vm(o)&&(r.token=void 0,o=void 0),!o){const g=yield r.cachedTokenPromise;g&&(Vm(g)?o=g:yield XI(e,void 0))}if(!i&&o&&Vm(o))return{token:o.token};let f,c=!1;if(tO()){r.exchangeTokenPromise||(r.exchangeTokenPromise=Ow(Q2(e,yield nO()),n.heartbeatServiceProvider).finally(()=>{r.exchangeTokenPromise=void 0}),c=!0);const g=yield r.exchangeTokenPromise;return yield XI(e,g),r.token=g,{token:g.token}}try{r.exchangeTokenPromise||(r.exchangeTokenPromise=r.provider.getToken().finally(()=>{r.exchangeTokenPromise=void 0}),c=!0),o=yield dr(e).exchangeTokenPromise}catch(g){"appCheck/throttled"===g.code?Pb.warn(g.message):Pb.error(g),s=g}return o?s?f=Vm(o)?{token:o.token,internalError:s}:a3(s):(f={token:o.token},r.token=o,yield XI(e,o)):f=a3(s),c&&s3(e,f),f})).apply(this,arguments)}function oO(){return(oO=(0,Ai.Z)(function*(n){const i=n.app;zI(i);const{provider:e}=dr(i);if(tO()){const r=yield nO(),{token:o}=yield Ow(Q2(i,r),n.heartbeatServiceProvider);return{token:o}}{const{token:r}=yield e.getToken();return{token:r}}})).apply(this,arguments)}function aO(n,i){const e=dr(n),r=e.tokenObservers.filter(o=>o.next!==i);0===r.length&&e.tokenRefresher&&e.tokenRefresher.isRunning()&&e.tokenRefresher.stop(),e.tokenObservers=r}function o3(n){const{app:i}=n,e=dr(i);let r=e.tokenRefresher;r||(r=function Pq(n){const{app:i}=n;return new _q((0,Ai.Z)(function*(){let r;if(r=dr(i).token?yield Pw(n,!0):yield Pw(n),r.error)throw r.error;if(r.internalError)throw r.internalError}),()=>!0,()=>{const e=dr(i);if(e.token){let r=e.token.issuedAtTimeMillis+.5*(e.token.expireTimeMillis-e.token.issuedAtTimeMillis)+3e5;return r=Math.min(r,e.token.expireTimeMillis-3e5),Math.max(0,r-Date.now())}return 0},3e4,96e4)}(n),e.tokenRefresher=r),!r.isRunning()&&e.isTokenAutoRefreshEnabled&&r.start()}function s3(n,i){const e=dr(n).tokenObservers;for(const r of e)try{"EXTERNAL"===r.type&&null!=i.error?r.error(i.error):r.next(i)}catch(o){}}function Vm(n){return n.expireTimeMillis-Date.now()>0}function a3(n){return{token:kq(Oq),error:n}}class Nq{constructor(i,e){this.app=i,this.heartbeatServiceProvider=e}_delete(){const{tokenObservers:i}=dr(this.app);for(const e of i)aO(this.app,e.next);return Promise.resolve()}}const g3="app-check-internal";!function $q(){(0,Ji._registerComponent)(new zl.wA("app-check",n=>function Rq(n,i){return new Nq(n,i)}(n.getProvider("app").getImmediate(),n.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((n,i,e)=>{n.getProvider(g3).initialize()})),(0,Ji._registerComponent)(new zl.wA(g3,n=>function Fq(n){return{getToken:i=>Pw(n,i),getLimitedUseToken:()=>function r3(n){return oO.apply(this,arguments)}(n),addTokenListener:i=>function sO(n,i,e,r){const{app:o}=n,s=dr(o);if(s.tokenObservers=[...s.tokenObservers,{next:e,error:r,type:i}],s.token&&Vm(s.token)){const f=s.token;Promise.resolve().then(()=>{e({token:f.token}),o3(n)}).catch(()=>{})}s.cachedTokenPromise.then(()=>o3(n))}(n,"INTERNAL",i),removeTokenListener:i=>aO(n.app,i)}}(n.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,Ji.registerVersion)("@firebase/app-check","0.8.0")}();class Rw{constructor(){return FF("app-check")}}"undefined"!=typeof window&&window,P(9260);const _3=new t.OlP("angularfire2.auth.use-emulator"),v3=new t.OlP("angularfire2.auth.settings"),b3=new t.OlP("angularfire2.auth.tenant-id"),y3=new t.OlP("angularfire2.auth.langugage-code"),x3=new t.OlP("angularfire2.auth.use-device-language"),C3=new t.OlP("angularfire.auth.persistence"),w3=(n,i,e,r,o,s,c,f)=>(0,oo.cc)(`${n.name}.auth`,"AngularFireAuth",n.name,()=>{const g=i.runOutsideAngular(()=>n.auth());if(e&&g.useEmulator(...e),r&&(g.tenantId=r),g.languageCode=o,s&&g.useDeviceLanguage(),c)for(const[v,T]of Object.entries(c))g.settings[v]=T;return f&&g.setPersistence(f),g},[e,r,o,s,c,f]);let hO=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M,R){const K=new ft.x,fe=ut(void 0).pipe((0,$o.Q)(c.outsideAngular),En(()=>s.runOutsideAngular(()=>Promise.resolve().then(P.bind(P,9568)))),(0,Le.U)(()=>(0,oo.on)(e,s,r)),(0,Le.U)(Me=>w3(Me,s,f,v,T,D,g,M)),VI({bufferSize:1,refCount:!1}));if(Ue(o))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=ut(null);else{fe.pipe(zs()).subscribe();const Fe=fe.pipe(En(dt=>dt.getRedirectResult().then(tn=>tn,()=>null)),Zd,VI({bufferSize:1,refCount:!1})),qe=fe.pipe(En(dt=>new Yn.y(tn=>({unsubscribe:s.runOutsideAngular(()=>dt.onAuthStateChanged(an=>tn.next(an),an=>tn.error(an),()=>tn.complete()))})))),xt=fe.pipe(En(dt=>new Yn.y(tn=>({unsubscribe:s.runOutsideAngular(()=>dt.onIdTokenChanged(an=>tn.next(an),an=>tn.error(an),()=>tn.complete()))}))));this.authState=Fe.pipe(Ew(qe),(0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular)),this.user=Fe.pipe(Ew(xt),(0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular)),this.idToken=this.user.pipe(En(dt=>dt?(0,qi.D)(dt.getIdToken()):ut(null))),this.idTokenResult=this.user.pipe(En(dt=>dt?(0,qi.D)(dt.getIdTokenResult()):ut(null))),this.credential=(0,_r.T)(Fe,K,this.authState.pipe(Yt(dt=>!dt))).pipe((0,Le.U)(dt=>(null==dt?void 0:dt.user)?dt:null),(0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular))}return(0,oo.pX)(this,fe,s,{spy:{apply:(Me,Fe,qe)=>{(Me.startsWith("signIn")||Me.startsWith("createUser"))&&qe.then(xt=>K.next(xt))}}})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(oo.Dh),t.LFG(oo.xv,8),t.LFG(t.Lbi),t.LFG(t.R0b),t.LFG(nb),t.LFG(_3,8),t.LFG(v3,8),t.LFG(b3,8),t.LFG(y3,8),t.LFG(x3,8),t.LFG(C3,8),t.LFG(Rw,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"any"}),n})();function T3(n){return null==n}function S3(n){return"function"==typeof n.set}function D3(n,i){return S3(i)?i:n.ref(i)}function E3(n,i){if(function ez(n){return"string"==typeof n}(n))return i.stringCase();if(S3(n))return i.firebaseCase();if(function tz(n){return"function"==typeof n.exportVal}(n))return i.snapshotCase();throw new Error("Expects a string, snapshot, or reference. Got: "+typeof n)}function Nb(n,i,e="on",r=cd){return new Yn.y(o=>{let s=null;return s=n[e](i,(c,f)=>{r.schedule(()=>{o.next({snapshot:c,prevKey:f})}),"once"===e&&r.schedule(()=>o.complete())},c=>{r.schedule(()=>o.error(c))}),"on"===e?{unsubscribe(){null!=s&&n.off(i,s)}}:{unsubscribe(){}}}).pipe((0,Le.U)(o=>{const{snapshot:s,prevKey:c}=o;let f=null;return s.exists()&&(f=s.key),{type:i,payload:s,prevKey:c,key:f}}),(0,bg.B)())}function A3(n,i){const e=n.length;for(let r=0;r{const v={payload:g,type:"value",prevKey:f,key:g.key};return f=g.key,n=[...n,v],!1})}return n;case"child_added":if(s>-1){const f=n[s-1];(f&&f.key||null)!==r&&(n=n.filter(g=>g.payload.key!==e.key)).splice(c,0,i)}else{if(null==r)return[i,...n];(n=n.slice()).splice(c,0,i)}return n;case"child_removed":return n.filter(f=>f.payload.key!==e.key);case"child_changed":return n.map(f=>f.payload.key===o?i:f);case"child_moved":if(s>-1){const f=n.splice(s,1)[0];return(n=n.slice()).splice(c,0,f),n}return n;default:return n}}function M3(n){return(T3(n)||0===n.length)&&(n=["child_added","child_removed","child_changed","child_moved"]),n}function I3(n,i,e){return function nz(n,i,e){return Nb(n,"value","once",e).pipe(En(r=>{const o=[ut(r)];return i.forEach(s=>o.push(Nb(n,s,"on",e))),(0,_r.T)(...o).pipe(os(rz,[]))}),ys())}(n,i=M3(i),e)}function O3(n,i,e){const r=(i=M3(i)).map(o=>Nb(n,o,"on",e));return(0,_r.T)(...r)}function k3(n,i){return function(r,o){return E3(r,{stringCase:()=>n.child(r)[i](o),firebaseCase:()=>r[i](o),snapshotCase:()=>r.ref[i](o)})}}function lz(n){return function(e){return e?E3(e,{stringCase:()=>n.child(e).remove(),firebaseCase:()=>e.remove(),snapshotCase:()=>e.ref.remove()}):n.remove()}}function P3(n,i){return function(){return Nb(n,"value","on",i)}}const dz=new t.OlP("angularfire2.realtimeDatabaseURL"),hz=new t.OlP("angularfire2.database.use-emulator");let fz=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M,R,K,fe,Me){this.schedulers=f;const Fe=g,qe=(0,oo.on)(e,c,r);v&&w3(qe,c,T,M,R,K,D,fe),this.database=(0,oo.cc)(`${qe.name}.database.${o}`,"AngularFireDatabase",qe.name,()=>{const xt=c.runOutsideAngular(()=>qe.database(o||void 0));return Fe&&xt.useEmulator(...Fe),xt},[Fe])}list(e,r){const o=this.schedulers.ngZone.runOutsideAngular(()=>D3(this.database,e));let s=o;return r&&(s=r(o)),function cz(n,i){const e=i.schedulers.outsideAngular,r=i.schedulers.ngZone.run(()=>n.ref);return{query:n,update:k3(r,"update"),set:k3(r,"set"),push:o=>r.push(o),remove:lz(r),snapshotChanges:o=>I3(n,o,e).pipe(Zd),stateChanges:o=>O3(n,o,e).pipe(Zd),auditTrail:o=>function oz(n,i,e){return function az(n,i,e){return function sz(n,i){return Nb(n,"value","on",i).pipe((0,Le.U)(e=>{let r;return e.payload.forEach(o=>(r=o.key,!1)),{data:e,lastKeyToLoad:r}}))}(n,e).pipe(H1(i),(0,Le.U)(([o,s])=>{const c=o.lastKeyToLoad,f=s.map(g=>g.key);return{actions:s,lastKeyToLoad:c,loadedKeys:f}}),function VH(n){return(0,Ci.e)((i,e)=>{let r=!1,o=0;i.subscribe(new Kn.Q(e,s=>(r||(r=!n(s,o++)))&&e.next(s)))})}(o=>-1===o.loadedKeys.indexOf(o.lastKeyToLoad)),(0,Le.U)(o=>o.actions))}(n,O3(n,i).pipe(os((o,s)=>[...o,s],[])),e)}(n,o,e).pipe(Zd),valueChanges:(o,s)=>I3(n,o,e).pipe((0,Le.U)(f=>f.map(g=>s&&s.idField?Object.assign(Object.assign({},g.payload.val()),{[s.idField]:g.key}):g.payload.val())),Zd)}}(s,this)}object(e){return function uz(n,i){return{query:n,snapshotChanges:()=>P3(n,i.schedulers.outsideAngular)().pipe(Zd),update:e=>n.ref.update(e),set:e=>n.ref.set(e),remove:()=>n.ref.remove(),valueChanges:()=>P3(n,i.schedulers.outsideAngular)().pipe(Zd,(0,Le.U)(r=>r.payload.exists()?r.payload.val():null))}}(this.schedulers.ngZone.runOutsideAngular(()=>D3(this.database,e)),this)}createPushId(){return this.schedulers.ngZone.runOutsideAngular(()=>this.database.ref()).push().key}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(oo.Dh),t.LFG(oo.xv,8),t.LFG(dz,8),t.LFG(t.Lbi),t.LFG(t.R0b),t.LFG(nb),t.LFG(hz,8),t.LFG(hO,8),t.LFG(_3,8),t.LFG(v3,8),t.LFG(b3,8),t.LFG(y3,8),t.LFG(x3,8),t.LFG(C3,8),t.LFG(Rw,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"any"}),n})();const gz=new t.OlP("angularfire2.messaging.vapid-key"),mz=new t.OlP("angularfire2.messaging.service-worker-registeration");let N3=(()=>{class n{constructor(e,r,o,s,c,f,g){const v=g,T=ut(void 0).pipe((0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular),En(wF.Gb),En(R=>R?P.e(742).then(P.bind(P,4666)):Zr.E),(0,Le.U)(()=>(0,oo.on)(e,s,r)),En(R=>(0,oo.cc)(`${R.name}.messaging`,"AngularFireMessaging",R.name,()=>(0,Ti.mG)(this,void 0,void 0,function*(){return R.messaging()}),[])),VI({bufferSize:1,refCount:!1}));this.requestPermission=T.pipe((0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular),En(()=>Notification.requestPermission())),this.getToken=T.pipe((0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular),En(R=>(0,Ti.mG)(this,void 0,void 0,function*(){if("granted"===Notification.permission){const K=v?yield v:null;return yield R.getToken({vapidKey:f,serviceWorkerRegistration:K})}return null})));const D=new Yn.y(R=>{navigator.permissions.query({name:"notifications"}).then(K=>{K.onchange=()=>R.next()})}),M=T.pipe((0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular),Ew(D),Ew(this.getToken));return this.tokenChanges=T.pipe((0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular),En(()=>Lo(this.getToken,M))),this.messages=T.pipe((0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular),En(R=>new Yn.y(K=>R.onMessage(K)))),this.requestToken=T.pipe((0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular),En(()=>this.requestPermission),vt(()=>ut(null)),(0,Gi.z)(()=>this.tokenChanges)),this.deleteToken=()=>T.pipe((0,Ts.R)(c.outsideAngular),(0,$o.Q)(c.insideAngular),En(R=>R.deleteToken()),Nh(!1)),(0,oo.pX)(this,T,s)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(oo.Dh),t.LFG(oo.xv,8),t.LFG(t.Lbi),t.LFG(t.R0b),t.LFG(nb),t.LFG(gz,8),t.LFG(mz,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"any"}),n})();var Zm;let Wm=(()=>{class n{constructor(e,r,o,s,c,f,g){this.angularFireDB=e,this.angularFireAuth=r,this.angularFireMessaging=o,this.http=s,this._router=c,this.changePasswordService=f,this.loginService=g,this.currentMessage=new xi(null),this.ep=new to,Zm=this,this.angularFireMessaging.messages.subscribe(v=>{v.onMessage=v.onMessage.bind(v),v.onTokenRefresh=v.onTokenRefresh.bind(v)})}updateToken(e,r){this.angularFireAuth.authState.pipe((0,_n.q)(1)).subscribe(()=>{const s={};s[e]=r,this.angularFireDB.object("fcmTokens/").update(s)});var o=this.getUUID();console.log("uuid: "+o)}requestPermission(e){"serviceWorker"in navigator&&navigator.serviceWorker.register("./firebase-messaging-sw.js").then(r=>{console.log("Registration successful, scope is:",r.scope),this.angularFireMessaging.requestToken.subscribe(o=>{console.log(o);var s=this.getUUID(),c={userId:e,deviceId:s,firebaseToken:o,userLoginType:"Web"};window.localStorage.setItem("firebaseToken",o),this.insertFCMDeviceId(c).subscribe(f=>{console.log("success")})},o=>{console.error("Unable to get permission to notify.",o)})})}receiveMessage(){this.angularFireMessaging.messages.subscribe(e=>{if(!document.hidden){var r=e.notification.title,o={body:e.notification.body,icon:"./assets/images/fav-logo.png",data:{click_action:e.data.click_action}};navigator.serviceWorker.ready.then(function(s){("/playGame"!=(-1!=Zm._router.url.indexOf("?")?Zm._router.url.split("?")[0]:Zm._router.url)||e.data.click_action.split("=")[1]!=window.localStorage.getItem(ce.gameId))&&s.showNotification(r,o).then(()=>s.getNotifications()).then(f=>{setTimeout(()=>f.forEach(g=>{console.log(g),("/playGame"==Zm._router.url||"/newGame"==Zm._router.url)&&g.data.click_action.split("=")[1]==window.localStorage.getItem(ce.gameId)&&g.close()}),100)})})}})}insertFCMDeviceId(e){var r=JSON.parse(window.localStorage.getItem(ce.userProfile)),o=(new Date).getTimezoneOffset();const s={headers:new ai({"Content-Type":"application/json",apiKey:r.apiKey,apiToken:r.apiToken,timezoneoffsetminutes:(o=0==o?0:-o).toString(),authToken:null==r.authToken?"":r.authToken,loginType:r.loginType})};return this.http.post(this.ep.insertFCMDeviceId,e,s).pipe((0,Le.U)(c=>c),vt(this.handleError("insertFCMDeviceId",this.ep.insertFCMDeviceId)))}handleError(e="operation",r,o){return s=>{if(401==s.error.status||403==s.error.status){"emptyRefreshToken"==s.error.errMsgCode&&(this.loginService.isRefreshToken=!1);var c=JSON.parse(window.localStorage.getItem(ce.userProfile)),f=this.getUUID(),g={userId:c.id,deviceId:f,firebaseToken:window.localStorage.getItem("firebaseToken")};this.changePasswordService.removeFCMDeviceId(g).subscribe(v=>{}),window.localStorage.clear(),this._router.navigate(["/login"])}return ut(o)}}getUUID(){var e=(new uF.DeviceUUID).parse();return e.hashMD5([e.language,e.platform,e.os,e.cpuCores,e.isAuthoritative,e.silkAccelerated,e.isKindleFire,e.isDesktop,e.isMobile,e.isTablet,e.isWindows,e.isLinux,e.isLinux64,e.isMac,e.isiPad,e.isiPhone,e.isiPod,e.isSmartTV,e.pixelDepth,e.isTouchScreen,e.browser].join(":"))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(fz),t.LFG(hO),t.LFG(N3),t.LFG(Ar),t.LFG(Ht),t.LFG(ql),t.LFG(fn))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Es=(()=>{class n{constructor(e,r,o,s){this.http=e,this.router=r,this.changePasswordService=o,this.loginService=s,this.ep=new to}getAccountDetail(e){return this.http.post(this.ep.AccountDetail,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("GetAccouuntDetail")))}getGameStatistics(e){return this.http.post(this.ep.gameStatistics,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("GetGameStatistics")))}getFooterDetail(e){return this.http.post(this.ep.getFooterDetail,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("GetFooterDetail")))}uploadProfileImage(e){return this.http.post(this.ep.ProfileImageUpload,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("UploadProfileImage")))}sendFeedback(e){return this.http.post(this.ep.feedback,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("sendFeedback")))}getFeedbackType(e){return this.http.post(this.ep.getFeedbackType,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("getFeedbackType")))}changeMode(e){return this.http.post(this.ep.changeMode,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("changeMode")))}getThemeType(e){return this.http.post(this.ep.getTheme,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("getTheme")))}updateTheme(e){return this.http.post(this.ep.updateTheme,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("updateTheme")))}getLanguages(e){return this.http.post(this.ep.languageList,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("getLanguages")))}updateLanguage(e){return this.http.post(this.ep.updateLanguage,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("updateLanguage")))}getInfoList(e){return this.http.post(this.ep.getInfo,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("getInfoList")))}removeInformation(e){return this.http.post(this.ep.removeInfo,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("removeInformation")))}removeAppNoticeInformation(e){return this.http.post(this.ep.removeAppNoticeInfo,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("removeInformation")))}getAppNoticeInformation(e){return this.http.post(this.ep.getAppNoticeInfo,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("removeInformation")))}getTechInfo(e){return this.http.post(this.ep.getTechInfo,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("getTechInfo")))}setRequestHeaders(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile)),r=(new Date).getTimezoneOffset();return{headers:new ai({"Content-Type":"application/json",apiKey:e.apiKey,apiToken:e.apiToken,timezoneoffsetminutes:(r=0==r?0:-r).toString(),authToken:null==e.authToken?"":e.authToken,loginType:e.loginType})}}handleError(e="operation",r){return o=>{if(401==o.error.status||403==o.error.status){"emptyRefreshToken"==o.error.errMsgCode&&(this.loginService.isRefreshToken=!1);var s=JSON.parse(window.localStorage.getItem(ce.userProfile)),c=this.changePasswordService.getUUID(),f={userId:s.id,deviceId:c,firebaseToken:window.localStorage.getItem("firebaseToken")};this.changePasswordService.removeFCMDeviceId(f).subscribe(g=>{}),window.localStorage.clear(),this.router.navigate(["/login"])}return ut(r)}}edituserdata(e){return this.http.post(this.ep.EditUserData,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("EditUserData")))}updateBirthdate(e){return this.http.post(this.ep.UpdateBirthdate,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("UpdateBirthdate")))}updateGameNotification(e){return this.http.post(this.ep.updateGameNotification,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("updateGameNotification")))}deleteAccount(e){return this.http.post(this.ep.deleteAccount,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("deleteAccount")))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar),t.LFG(Ht),t.LFG(ql),t.LFG(fn))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Xl=(()=>{class n{constructor(e,r){this.elementRef=e,this.ngControl=r,this.trimOnWriteValue=!0}set trim(e){if(""!==e&&"blur"!==e&&!1!==e)return console.warn(`Note: The value ${JSON.stringify(e)} is not assignable to the trim attribute.\n Only blank string (""), "blur" or false is allowed.`),void(this._trim=!1);this._trim=e;const r=this.elementRef.nativeElement,o=r.value;!1!==e&&o!==o.trim()&&n.dispatchEvent(r,"blur")}get trim(){return this._trim}static getCaret(e){return{start:e.selectionStart,end:e.selectionEnd}}static setCaret(e,r,o){e.selectionStart=r,e.selectionEnd=o,e.focus()}static dispatchEvent(e,r){const o=document.createEvent("Event");o.initEvent(r,!1,!1),e.dispatchEvent(o)}static trimValue(e,r){e.value=r.trim(),n.dispatchEvent(e,"input")}ngOnInit(){this.ngControl?(this._valueAccessor=this.ngControl.valueAccessor,this._writeValue=this._valueAccessor.writeValue,this._valueAccessor.writeValue=e=>{const r=!1!==this.trim&&e&&"function"==typeof e.trim&&this.trimOnWriteValue?e.trim():e;this._writeValue&&this._writeValue.call(this._valueAccessor,r),e!==r&&(this._valueAccessor.onChange&&this._valueAccessor.onChange(r),this._valueAccessor.onTouched&&this._valueAccessor.onTouched())}):console.warn("Note: The trim directive should be used with one of ngModel, formControl or formControlName directives.")}ngOnDestroy(){this._valueAccessor&&this._writeValue&&(this._valueAccessor.writeValue=this._writeValue)}onBlur(e,r){!1!==this.trim&&(""===this.trim||"blur"===this.trim)&&"function"==typeof r.trim&&r.trim()!==r&&(n.trimValue(e,r),n.dispatchEvent(e,"blur"))}onInput(e,r){if(!1!==this.trim&&""===this.trim&&"function"==typeof r.trim&&r.trim()!==r){let{start:o,end:s}=n.getCaret(e);" "===r[0]&&1===o&&1===s&&(o=0,s=0),n.trimValue(e,r),n.setCaret(e,o,s)}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(Ya,8))},n.\u0275dir=t.lG2({type:n,selectors:[["input","trim",""],["textarea","trim",""]],hostBindings:function(e,r){1&e&&t.NdJ("blur",function(s){return r.onBlur(s.target,s.target.value)})("input",function(s){return r.onInput(s.target,s.target.value)})},inputs:{trimOnWriteValue:"trimOnWriteValue",trim:"trim"}}),n})(),_z=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[]]}),n})();const vz=["*"];let Fw;function Rb(n){var i;return(null===(i=function bz(){if(void 0===Fw&&(Fw=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Fw=n.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Fw}())||void 0===i?void 0:i.createHTML(n))||n}function R3(n){return Error(`Unable to find icon with the name "${n}"`)}function F3(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function L3(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Jf{constructor(i,e,r){this.url=i,this.svgText=e,this.options=r}}let Lw=(()=>{class n{constructor(e,r,o,s){this._httpClient=e,this._sanitizer=r,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=o}addSvgIcon(e,r,o){return this.addSvgIconInNamespace("",e,r,o)}addSvgIconLiteral(e,r,o){return this.addSvgIconLiteralInNamespace("",e,r,o)}addSvgIconInNamespace(e,r,o,s){return this._addSvgIconConfig(e,r,new Jf(o,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,r,o,s){const c=this._sanitizer.sanitize(t.q3G.HTML,o);if(!c)throw L3(o);const f=Rb(c);return this._addSvgIconConfig(e,r,new Jf("",f,s))}addSvgIconSet(e,r){return this.addSvgIconSetInNamespace("",e,r)}addSvgIconSetLiteral(e,r){return this.addSvgIconSetLiteralInNamespace("",e,r)}addSvgIconSetInNamespace(e,r,o){return this._addSvgIconSetConfig(e,new Jf(r,null,o))}addSvgIconSetLiteralInNamespace(e,r,o){const s=this._sanitizer.sanitize(t.q3G.HTML,r);if(!s)throw L3(r);const c=Rb(s);return this._addSvgIconSetConfig(e,new Jf("",c,o))}registerFontClassAlias(e,r=e){return this._fontCssClassesByAlias.set(e,r),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const r=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,e);if(!r)throw F3(e);const o=this._cachedIconsByUrl.get(r);return o?ut(Bw(o)):this._loadSvgIconFromConfig(new Jf(e,null)).pipe(gi(s=>this._cachedIconsByUrl.set(r,s)),(0,Le.U)(s=>Bw(s)))}getNamedSvgIcon(e,r=""){const o=B3(r,e);let s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,e),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);const c=this._iconSetConfigs.get(r);return c?this._getSvgFromIconSetConfigs(e,c):Fo(R3(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ut(Bw(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Le.U)(r=>Bw(r)))}_getSvgFromIconSetConfigs(e,r){const o=this._extractIconWithNameFromAnySet(e,r);return o?ut(o):q(r.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe(vt(f=>{const v=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,c.url)} failed: ${f.message}`;return this._errorHandler.handleError(new Error(v)),ut(null)})))).pipe((0,Le.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,r);if(!c)throw R3(e);return c}))}_extractIconWithNameFromAnySet(e,r){for(let o=r.length-1;o>=0;o--){const s=r[o];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(s),f=this._extractSvgIconFromSet(c,e,s.options);if(f)return f}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(gi(r=>e.svgText=r),(0,Le.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ut(null):this._fetchIcon(e).pipe(gi(r=>e.svgText=r))}_extractSvgIconFromSet(e,r,o){const s=e.querySelector(`[id="${r}"]`);if(!s)return null;const c=s.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,o);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),o);const f=this._svgElementFromString(Rb(""));return f.appendChild(c),this._setSvgAttributes(f,o)}_svgElementFromString(e){const r=this._document.createElement("DIV");r.innerHTML=e;const o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const r=this._svgElementFromString(Rb("")),o=e.attributes;for(let s=0;sRb(T)),fo(()=>this._inProgressUrlFetches.delete(f)),(0,bg.B)());return this._inProgressUrlFetches.set(f,v),v}_addSvgIconConfig(e,r,o){return this._svgIconConfigs.set(B3(e,r),o),this}_addSvgIconSetConfig(e,r){const o=this._iconSetConfigs.get(e);return o?o.push(r):this._iconSetConfigs.set(e,[r]),this}_svgElementFromConfig(e){if(!e.svgElement){const r=this._svgElementFromString(e.svgText);this._setSvgAttributes(r,e.options),e.svgElement=r}return e.svgElement}_getIconConfigFromResolvers(e,r){for(let o=0;oi?i.pathname+i.search:""}}}),G3=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Dz=G3.map(n=>`[${n}]`).join(", "),Ez=/^url\(['"]?#(.*?)['"]?\)$/;let Jr=(()=>{class n extends wz{constructor(e,r,o,s,c){super(e),this._iconRegistry=r,this._location=s,this._errorHandler=c,this._inline=!1,this._currentIconFetch=Xn.w0.EMPTY,o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Wt(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const r=this._cleanupFontValue(e);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const r=this._cleanupFontValue(e);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const r=e.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let r=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){const o=e.childNodes[r];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,r=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();r!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),r&&e.classList.add(r),this._previousFontSetClass=r),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(c=>{s.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const r=e.querySelectorAll(Dz),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const f=r[s],g=f.getAttribute(c),v=g?g.match(Ez):null;if(v){let T=o.get(f);T||(T=[],o.set(f,T)),T.push({name:c,value:v[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[r,o]=this._splitIconName(e);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe((0,_n.q)(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${o}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(Lw),t.$8M("aria-hidden"),t.Y36(Tz),t.Y36(t.qLn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,r){2&e&&(t.uIk("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet),t.ekj("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:vz,decls:1,vars:0,template:function(e,r){1&e&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),Az=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[In],In]}),n})();function Mz(n,i){1&n&&(t.TgZ(0,"div",27)(1,"span",28),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",29)(5,"mat-icon",30),t._uU(6," info "),t.qZA()()()()),2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"LOGIN.SIGNINWITH")," "))}function Iz(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().fbLogin()}),t._UZ(1,"img",32),t.qZA()}}function Oz(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",33)(1,"img",34),t.NdJ("click",function(){return t.CHM(e),t.oxw().googleSignIn()}),t.qZA()()}}function kz(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",35),t.NdJ("click",function(){return t.CHM(e),t.oxw().appleSingIn()}),t._UZ(1,"img",36),t.qZA()}}const Pz=function(){return["/register"]};var li;const Nz=["email"];var ha=navigator.language||navigator.userLanguage;ha="en-US"==ha||"en"==ha||"en-IN"==ha?"en":"hi-EN"==ha||"hi"==ha?"hi":"en";let Rz=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D){this._loginService=e,this.toasterService=r,this.translate=o,this._router=s,this.zone=c,this.runningGameService=f,this.spinner=g,this.messagingService=v,this.accountService=T,this.dialog=D,this.isAndroid=!1,this.isiOS=!1,this.isGoogleEnabled=0,this.isFacebookEnabled=0,this.isAppleEnabled=0,this.loginModel=new h0,this.googleSignInModel=new f0,this.facebookSignInModel=new rx,this.appleSignInModel=new cF,li=this,this.toDataURL("assets/images/no_internet.png",function(M){window.localStorage.setItem(ce.noInternetImgSrc,JSON.stringify(M))})}ngOnInit(){this._loginService.prevoiusUrl="/login",this._loginService.isLogin=!0,this.translate.get("LOGIN").subscribe(r=>{this.loginTextObj=r}),this._loginService.checkThirdPartyLoginEnabled().subscribe(r=>{this.isGoogleEnabled=Number(r.data.is_Google_Enabled),this.isFacebookEnabled=Number(r.data.is_Facebook_Enabled),this.isAppleEnabled="ios"==zt.dV.getPlatform()?Number(r.data.is_Apple_Enabled):0});var r,s,c,f,e=JSON.parse(window.localStorage.getItem(ce.userProfile));e&&e.id&&this._router.navigate(["/home"]),this.gameToken=this._router.url.split("=")[1],window.fbAsyncInit=function(){FB.init({appId:"830647111265270",cookie:!0,xfbml:!0,version:"v9.0"}),FB.AppEvents.logPageView()},s="facebook-jssdk",f=(r=document).getElementsByTagName("script")[0],r.getElementById(s)||((c=r.createElement("script")).id=s,c.src="https://connect.facebook.net/en_US/sdk.js",f.parentNode.insertBefore(c,f)),document.addEventListener("deviceready",()=>{Pf.initialize({clientId:"829904516854-5lfv6jrs5tfv3r2ekco9u2hkb59sfmln.apps.googleusercontent.com",scopes:["profile","email","https://www.googleapis.com/auth/contacts.readonly"],grantOfflineAccess:!0}),Am.initialize({appId:"830647111265270"})}),/android/i.test(navigator.userAgent)&&(this.isAndroid=!0),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&(this.isiOS=!0),window.localStorage.setItem("editProfileNotificaton","false")}toDataURL(e,r){var o=new XMLHttpRequest;o.onload=function(){var s=new FileReader;s.onloadend=function(){r(s.result)},s.readAsDataURL(o.response)},o.open("GET",e),o.responseType="blob",o.send()}signInWithFB(){}submitLogin(){FB.login(e=>{e.authResponse?(this.facebookSignInModel.tokenId=e.authResponse.accessToken,this.facebookSignInModel.userId=e.authResponse.userID,FB.api("/me?fields=id,name,first_name,last_name,gender,picture.width(150).height(150),age_range,friends,email",r=>{r&&!r.error?(this.user=r,this.facebookSignInModel.displayName=this.user.name,this.facebookSignInModel.email=this.user.email,this.facebookSignInModel.imageUrl=this.user.picture.data.url,this.facebookSignInModel.firstName=this.user.first_name,this.facebookSignInModel.lastName=this.user.last_name,this.facebookSignInModel.code=ha,this._loginService.facebookSignIn(this.facebookSignInModel).subscribe(o=>{o&&o.statusType==xn.success?(this.accountService.profileImage=o.user.profileImage,this.accountService.email=o.user.email,this.accountService.userName=o.user.userName,this._loginService.getBrowserLang(o.user.code),window.localStorage.setItem(ce.language,o.user.code),window.localStorage.setItem(ce.userProfile,JSON.stringify(o.user)),this.toasterService.Success(this.loginTextObj.WELCOMEMSG,"Success"),this.messagingService.requestPermission(o.user.id),this.getFeedbackType({userId:o.user.id}),this.zone.run(()=>this._router.navigate(["/home"]))):(this.toasterService.Error(o.msg,"Error"),this.spinner.hide())})):console.log(r.error)})):this.toasterService.Error("User facebook login failed.","Invalid")},{scope:"email"})}fbLogin(){return(0,Ti.mG)(this,void 0,void 0,function*(){const e=yield Am.login({permissions:Nz});if(e.accessToken){const r=yield Am.getProfile({fields:["email","name","first_name","last_name","picture.width(150).height(150)"]});console.log(r),console.log(`Facebook access token is ${e.accessToken.token}`),this.facebookSignInModel.displayName=r.name,this.facebookSignInModel.email=r.email,this.facebookSignInModel.imageUrl=r.picture.data.url,this.facebookSignInModel.firstName=r.first_name,this.facebookSignInModel.lastName=r.last_name,this.facebookSignInModel.tokenId=e.accessToken.token,this.facebookSignInModel.userId=r.id,this.facebookSignInModel.code=ha,this._loginService.facebookSignIn(this.facebookSignInModel).subscribe(o=>{o&&o.statusType==xn.success?(this.accountService.profileImage=o.user.profileImage,this.accountService.email=o.user.email,this.accountService.userName=o.user.userName,this._loginService.getBrowserLang(o.user.code),window.localStorage.setItem(ce.language,o.user.code),window.localStorage.setItem(ce.userProfile,JSON.stringify(o.user)),this.toasterService.Success(this.loginTextObj.WELCOMEMSG,"Success"),zt.dV.isNativePlatform()?this.insertFCMDeviceId():this.messagingService.requestPermission(o.user.id),this.getFeedbackType({userId:o.user.id}),this.zone.run(()=>this._router.navigate(["/home"]))):(this.toasterService.Error(o.msg,"Error"),this.spinner.hide())})}})}googleInit(){var r=google.accounts.oauth2.initCodeClient({client_id:"829904516854-5lfv6jrs5tfv3r2ekco9u2hkb59sfmln.apps.googleusercontent.com",scope:"https://www.googleapis.com/auth/contacts.readonly",callback:o=>{console.log(o),li.googleLogin(o.code,null)}});console.log(r.requestCode())}googleSignIn(){return(0,Ti.mG)(this,void 0,void 0,function*(){if(zt.dV.isNativePlatform()){var e=null,r=null,o=null,s=null;yield Pf.signIn().then(f=>{console.log(f),s=f.serverAuthCode},f=>(0,Ti.mG)(this,void 0,void 0,function*(){var g;console.log(f),null!=f.errorMessage&&-1!=f.errorMessage.indexOf("com.google.GIDSignIn error -8")&&(g=yield Pf.refresh(),console.log(g),console.log(g.accessToken),console.log(g.refreshToken),e=g.refreshToken,r=g.accessToken,o=g.idToken)})),li.googleLogin(s,e,r,o)}else this.googleInit()})}attachSignin(e){li._loginService.authObj.attachClickHandler(e,{prompt:"select_account"},r=>{let o=r.getBasicProfile();this.googleSignInModel.displayName=o.getName(),this.googleSignInModel.email=o.getEmail(),this.googleSignInModel.imageUrl=o.getImageUrl(),this.googleSignInModel.tokenId=r.getAuthResponse().id_token,this.googleSignInModel.userId=o.getId(),this.googleSignInModel.firstName=this.googleSignInModel.displayName.split(" ")[0],this.googleSignInModel.lastName=this.googleSignInModel.displayName.split(" ")[1]},r=>{})}googleLogin(e,r,o,s){this._loginService.googleSignIn({authCode:e,refreshToken:r,accessToken:o,idToken:s,code:ha}).subscribe(f=>{f&&f.statusType==xn.success?(this.accountService.profileImage=f.user.profileImage,this.accountService.email=f.user.email,this.accountService.userName=f.user.userName,this._loginService.getBrowserLang(f.user.code),window.localStorage.setItem(ce.language,f.user.code),window.localStorage.setItem(ce.googleToken,this.googleSignInModel.tokenId),window.localStorage.setItem(ce.userProfile,JSON.stringify(f.user)),this.toasterService.Success(this.loginTextObj.WELCOMEMSG,"Success"),zt.dV.isNativePlatform()?this.insertFCMDeviceId():this.messagingService.requestPermission(f.user.id),this.getFeedbackType({userId:f.user.id}),null!=f.user.gameId&&null!=f.user.gameId&&""!=f.user.gameId?(window.localStorage.setItem(ce.gameId,f.user.gameId),this.gameJoin(f.user.gameId,f.user.id)):this.zone.run(()=>this._router.navigate(["/home"]))):(this.toasterService.Error(f.msg,"Error"),Pf.signOut(),this.spinner.hide())})}login(){""!=this.loginModel.email?""!=this.loginModel.password?(this.loginModel.code=ha,this.loginModel.gameToken=this.gameToken,this._loginService.login(this.loginModel).subscribe(e=>{if(e&&e.statusType==xn.success){this.accountService.profileImage=e.user.profileImage,this.accountService.email=e.user.email,this.accountService.userName=e.user.userName,this._loginService.getBrowserLang(e.user.code),window.localStorage.setItem(ce.language,e.user.code),window.localStorage.setItem(ce.userProfile,JSON.stringify(e.user)),this.toasterService.Success(this.loginTextObj.WELCOMEMSG,"Success!"),zt.dV.isNativePlatform()?this.insertFCMDeviceId():this.messagingService.requestPermission(e.user.id);var r=JSON.parse(window.localStorage.getItem(ce.userProfile));e.user.profileImage||window.localStorage.setItem("editProfileNotificaton","true"),this.loginUserID=r.id,this.getFeedbackType({userId:r.id}),null!=e.user.gameId&&null!=e.user.gameId&&""!=e.user.gameId?(window.localStorage.setItem(ce.gameId,e.user.gameId),this.gameJoin(e.user.gameId,e.user.id)):this.zone.run(()=>this._router.navigate(["/home"]))}else this.toasterService.Error(e.msg,"Error")})):this.toasterService.Error(this.loginTextObj.INVALIDPASSWORD,"Invalid"):this.toasterService.Error(this.loginTextObj.INVALIDUSERNAME,"Invalid")}getFeedbackType(e){this.accountService.getFeedbackType(e).subscribe(r=>{r&&(this.accountService.feedbackTypeList=r.data)})}gameJoin(e,r){this.runningGameService.joinGame({gameId:e,userId:r}).subscribe(s=>{s&&s.statusType==xn.success&&this.zone.run(()=>this._router.navigate(["/playGame"]))})}forgotPassword(){this.dialog.open(SH,{panelClass:"border-radius",height:"auto",disableClose:!0}).afterClosed().subscribe(r=>{})}appleSingIn(){lF.authorize({clientId:"com.lastletterfirst.app",redirectURI:"https://qa-app.lastletterfirst.com/login",scopes:"email name",state:"12345",nonce:"nonce"}).then(r=>{if(console.log(r),li.appleSignInModel.email=r.response.email,null==li.appleSignInModel.email||""==li.appleSignInModel.email){var o=nd(r.response.identityToken);console.log(o),li.appleSignInModel.email=o.email}li.appleSignInModel.displayName=(null==r.response.givenName?"":r.response.givenName)+" "+(null==r.response.familyName?"":r.response.familyName),li.appleSignInModel.imageUrl=null,li.appleSignInModel.tokenId=r.response.identityToken,li.appleSignInModel.userId=r.response.user,li.appleSignInModel.firstName=r.response.givenName,li.appleSignInModel.lastName=r.response.familyName,li.appleSignInModel.authCode=r.response.authorizationCode,li._loginService.appleLogin(li.appleSignInModel).subscribe(s=>{s&&s.statusType==xn.success?(li.accountService.profileImage=s.user.profileImage,li.accountService.email=s.user.email,li.accountService.userName=s.user.userName,li._loginService.advancedMode=s.user.isAdvancedMode,s.user.profileImage="",li._loginService.getBrowserLang(s.user.code),window.localStorage.setItem(ce.language,s.user.code),window.localStorage.setItem(ce.userProfile,JSON.stringify(s.user)),li.toasterService.Success(li.loginTextObj.WELCOMEMSG,"Success"),li.getFeedbackType({userId:s.user.id}),li.insertFCMDeviceId(),null!=s.user.gameId&&null!=s.user.gameId&&""!=s.user.gameId?(window.localStorage.setItem(ce.gameId,s.user.gameId),li.gameJoin(s.user.gameId,s.user.id)):li.zone.run(()=>li._router.navigate(["/home"]))):(li.toasterService.Error(s.msg,"Error"),li.spinner.hide())})}).catch(r=>{console.log(r)})}insertFCMDeviceId(){return(0,Ti.mG)(this,void 0,void 0,function*(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));console.log(su.getInfo()),console.log(su.getId()),console.log(this._loginService.tokenVal),console.log("hi");var r=yield su.getInfo();window.localStorage.setItem("firebaseToken",this._loginService.tokenVal);var o={userId:e.id,deviceId:su.getId(),firebaseToken:this._loginService.tokenVal,userLoginType:r.platform};this.messagingService.insertFCMDeviceId(o).subscribe(s=>{console.log(s)})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(I),t.Y36(Zn),t.Y36(Ht),t.Y36(t.R0b),t.Y36(Ka),t.Y36(Nf),t.Y36(Wm),t.Y36(Es),t.Y36(l))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-login"]],decls:43,vars:32,consts:[[1,"container-login"],[1,"wrap-login","p-l-40","p-r-40","p-t-30","p-b-20"],[1,"login-form","validate-form"],[1,"login-form-title","p-b-20"],["data-validate","Enter username",1,"wrap-input","validate-input","m-b-20"],["type","text","name","username","trim","",1,"input",3,"ngModel","placeholder","ngModelChange"],[1,"focus-input"],["data-validate","Enter password",1,"wrap-input","validate-input","m-b-25"],["type","password","name","pass","trim","",1,"input",3,"ngModel","placeholder","ngModelChange"],[1,"container-login-form-btn"],["mat-raised-button","","color","accent",1,"login-form-btn",3,"click"],[1,"text-center","p-t-10","pBottom","cursor-pointer",3,"click"],["class","text-center",4,"ngIf"],[1,"flex-c","pBottom"],["class","login-social-item",3,"click",4,"ngIf"],["id","googleBtn","class","login-social-item",4,"ngIf"],["id","appleBtn","class","login-social-item",3,"click",4,"ngIf"],[1,"text-center","bold"],[1,"hov1",3,"routerLink"],["id","loginInfo",1,"modal"],[1,"modal-dialog","modal-sm"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","col-md-10","col-xs-10"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"text-center"],[1,"bold"],["type","button","data-toggle","modal","data-target","#loginInfo",1,"btn","btn-round"],[2,"vertical-align","middle"],[1,"login-social-item",3,"click"],["src","assets/images/icons/fb-logo.png","alt","FACEBOOK"],["id","googleBtn",1,"login-social-item"],["src","assets/images/icons/icon-google.png","alt","GOOGLE",3,"click"],["id","appleBtn",1,"login-social-item",3,"click"],["src","assets/images/icons/appleImg.png","alt","Apple",2,"width","50px","border-radius","50%"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"form",2)(3,"span",3),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",4)(7,"input",5),t.NdJ("ngModelChange",function(s){return r.loginModel.email=s}),t.ALo(8,"translate"),t.qZA(),t._UZ(9,"span",6),t.qZA(),t.TgZ(10,"div",7)(11,"input",8),t.NdJ("ngModelChange",function(s){return r.loginModel.password=s}),t.ALo(12,"translate"),t.qZA(),t._UZ(13,"span",6),t.qZA(),t.TgZ(14,"div",9)(15,"button",10),t.NdJ("click",function(){return r.login()}),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"div",11),t.NdJ("click",function(){return r.forgotPassword()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,Mz,7,3,"div",12),t.TgZ(22,"div",13),t.YNc(23,Iz,2,0,"a",14),t.YNc(24,Oz,2,0,"a",15),t.YNc(25,kz,2,0,"a",16),t.qZA(),t.TgZ(26,"div",17)(27,"a",18),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()(),t.TgZ(30,"div",19)(31,"div",20)(32,"div",21)(33,"div",22)(34,"h5",23),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"button",24)(38,"span",25),t._uU(39,"\xd7"),t.qZA()()(),t.TgZ(40,"div",26),t._uU(41),t.ALo(42,"translate"),t.qZA()()()()),2&e&&(t.xp6(4),t.hij(" ",t.lcZ(5,15,"LOGIN.SIGNIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(8,17,"LOGIN.USERNAME")),t.Q6J("ngModel",r.loginModel.email),t.xp6(4),t.s9C("placeholder",t.lcZ(12,19,"LOGIN.PASSWORD")),t.Q6J("ngModel",r.loginModel.password),t.xp6(5),t.hij(" ",t.lcZ(17,21,"LOGIN.SIGNIN")," "),t.xp6(3),t.hij("",t.lcZ(20,23,"LOGIN.FORGOT"),"?"),t.xp6(2),t.Q6J("ngIf",1==r.isGoogleEnabled||1==r.isFacebookEnabled),t.xp6(2),t.Q6J("ngIf",1==r.isFacebookEnabled),t.xp6(1),t.Q6J("ngIf",1==r.isGoogleEnabled),t.xp6(1),t.Q6J("ngIf",1==r.isAppleEnabled),t.xp6(2),t.Q6J("routerLink",t.DdM(31,Pz)),t.xp6(1),t.hij(" ",t.lcZ(29,25,"LOGIN.SIGNUPTXT")," "),t.xp6(7),t.Oqu(t.lcZ(36,27,"LOGIN.PERMISSIONTITLE")),t.xp6(6),t.hij(" ",t.lcZ(42,29,"LOGIN.PERMISSION")," "))},directives:[Hd,Ud,Ja,Xl,Kt,xr,Cr,Di,Gt,Jr,ds],pipes:[pn],styles:['.marB5[_ngcontent-%COMP%]{margin-bottom:5px}.padLR0[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.mar-top30[_ngcontent-%COMP%]{margin-top:30px}.mar-bottom15[_ngcontent-%COMP%]{margin-bottom:15px}.pad-bottom50[_ngcontent-%COMP%]{padding-bottom:50px}.text-red[_ngcontent-%COMP%]{color:#ff0500}.docs-hp[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center}.h5[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{font-size:16px}.body-bg[_ngcontent-%COMP%]{width:100%;min-height:93vh;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:15px;background-repeat:no-repeat;background-size:cover;background-position:center;position:relative;z-index:1}.body-bg[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;z-index:-1;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.5);background:linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,.5));pointer-events:none}.login-title[_ngcontent-%COMP%]{display:block;font-size:30px;color:#4b2354;line-height:1.2;text-align:center}.container[_ngcontent-%COMP%] .wrap-login[_ngcontent-%COMP%]{width:300px}.container-login[_ngcontent-%COMP%] .wrap-login[_ngcontent-%COMP%]{width:390px;margin-top:6vh}.container-download-btn[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:center}.download-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0 20px;min-width:160px;height:50px;background-color:#347ab8;border-radius:25px;font-size:14px;color:#fff;line-height:1.2;text-transform:uppercase;transition:all .4s;box-shadow:0 10px 30px #55a2e580;-moz-box-shadow:0 10px 30px 0px #55a2e580;-webkit-box-shadow:0 10px 30px 0px #5fa1db80;-o-box-shadow:0 10px 30px 0px #55a2e580;-ms-box-shadow:0 10px 30px 0px #55a2e580}.download-btn[_ngcontent-%COMP%]:hover{background-color:#55a2e5;box-shadow:0 10px 30px #55a2e580;-moz-box-shadow:0 10px 30px 0px #55a2e580;-webkit-box-shadow:0 10px 30px 0px #5fa1db80;-o-box-shadow:0 10px 30px 0px #55a2e580;-ms-box-shadow:0 10px 30px 0px #55a2e580}.btn-maroon[_ngcontent-%COMP%]{background-color:#af001f;color:#fff}.btn-maroon[_ngcontent-%COMP%]:hover{background-color:#ba122f;color:#fff}.btn-round[_ngcontent-%COMP%]{font-size:14px;color:#3b5998;justify-content:center;align-items:center;width:30px;height:30px;border-radius:50%!important;background-color:#fff;margin:5px;padding:0;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.btn-round[_ngcontent-%COMP%]:hover{color:#3b5998}.modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{font-weight:700}.modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-top:0}button[_ngcontent-%COMP%]:hover{cursor:pointer}button[_ngcontent-%COMP%]{outline:none!important;border:none;background:transparent}.text-login[_ngcontent-%COMP%]{font-size:16px;line-height:1.4;color:#999}.text-login[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#999}.text-login[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none;color:#666}.slider-client[_ngcontent-%COMP%]{position:absolute;left:0;right:0;bottom:0;padding:15px 0}footer[_ngcontent-%COMP%]{background-color:#333;height:10vh;color:#fff;padding:0;text-align:center;position:absolute;bottom:0;width:100%;height:50px;line-height:50px;z-index:999}footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#999;text-decoration:none}@media (max-width: 1024px){.body-bg[_ngcontent-%COMP%]{min-height:95vh}}@media (max-width: 940px){.body-bg[_ngcontent-%COMP%]{min-height:96vh}}@media screen and (max-width: 768px){.wrap-login[_ngcontent-%COMP%]{margin-top:0}.pad-bottom50[_ngcontent-%COMP%]{padding-bottom:20px}input[_ngcontent-%COMP%]{outline:none;border:none}}@media (max-width: 480px){.body-bg[_ngcontent-%COMP%]{min-height:94vh}.wrap-login[_ngcontent-%COMP%]{padding-left:15px;padding-right:15px}}.login-social-item[_ngcontent-%COMP%]{font-size:25px;color:#3b5998;display:flex;justify-content:center;align-items:center;width:70px;height:70px;border-radius:50%;background-color:#fff;margin:5px;box-shadow:0 2px 2px 1px #cacaca;-moz-box-shadow:0 2px 2px 1px #cacaca;-webkit-box-shadow:0 2px 2px 1px #cacaca;-o-box-shadow:0 2px 2px 1px #cacaca;-ms-box-shadow:0 2px 2px 1px #cacaca}.login-social-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:45px}.login-social-item[_ngcontent-%COMP%]:hover{color:#3b5998;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.container-login[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:0 15px;position:relative;z-index:1}.wrap-login[_ngcontent-%COMP%]{width:390px;background:#fff;border-radius:25px;overflow:hidden;box-shadow:0 3px 20px #0000001a;-moz-box-shadow:0 3px 20px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 3px 20px 0px rgba(0,0,0,.1);-o-box-shadow:0 3px 20px 0px rgba(0,0,0,.1);-ms-box-shadow:0 3px 20px 0px rgba(0,0,0,.1)}.wrap-register[_ngcontent-%COMP%]{width:720px;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 3px 20px #0000001a;-moz-box-shadow:0 3px 20px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 3px 20px 0px rgba(0,0,0,.1);-o-box-shadow:0 3px 20px 0px rgba(0,0,0,.1);-ms-box-shadow:0 3px 20px 0px rgba(0,0,0,.1)}.login-form[_ngcontent-%COMP%]{width:100%}.login-form-title[_ngcontent-%COMP%]{display:block;font-family:Segoe UI Bold;font-size:22px;font-weight:700;line-height:1.2}.wrap-input[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;border-radius:20px}.input[_ngcontent-%COMP%]::placeholder{font-size:14px;color:#000}.input[_ngcontent-%COMP%]{font-family:Segoe UI Bold;font-size:16px;color:#4b2354;line-height:50px;display:block;width:100%;height:50px;background:transparent;padding:0 20px 0 23px;border:1px solid #9f9f9f;border-radius:30px}.input[_ngcontent-%COMP%]:focus{border:1px solid #9f9f9f!important;border-radius:30px!important}.container-login-form-btn[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:center}.login-form-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0 20px;width:100%;height:50px;border-radius:25px;font-family:Segoe UI Semibold;font-size:16px;color:#fff;line-height:1.2;text-transform:uppercase;transition:all .4s}.validate-input[_ngcontent-%COMP%]{position:relative}.alert-validate[_ngcontent-%COMP%] .focus-input[_ngcontent-%COMP%]{box-shadow:0 5px 30px #347ab81a;-moz-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-webkit-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-o-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-ms-box-shadow:0 5px 30px 0px rgba(52,122,184,.1)}.alert-validate[_ngcontent-%COMP%]:before{content:attr(data-validate);display:flex;align-items:center;position:absolute;width:100%;min-height:62px;background-color:#fff;border-radius:20px;top:0;left:0;padding:0 45px 0 22px;pointer-events:none;font-family:Segoe UI Bold;font-size:16px;color:#fa4251;line-height:1.2}.btn-hide-validate[_ngcontent-%COMP%]{font-family:Material-Design-Iconic-Font;font-size:15px;color:#fa4251;cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;height:62px;top:0;right:23px}.rs1-alert-validate.alert-validate[_ngcontent-%COMP%]:before{background-color:#fff}.true-validate[_ngcontent-%COMP%]:after{content:"\\f269";font-family:Material-Design-Iconic-Font;font-size:15px;color:#57b846;display:flex;align-items:center;justify-content:center;position:absolute;height:62px;top:0;right:23px}@media only screen and (max-width: 1242px){.mb-ios-5[_ngcontent-%COMP%]{margin:0vh 0vh 8vh}@media only screen and (max-width: 959px){.container-login[_ngcontent-%COMP%] .wrap-login[_ngcontent-%COMP%]{margin-top:0}.container-login[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:0 15px;position:relative;z-index:1}}@media only screen and (max-width: 767px){.mb-ios-5[_ngcontent-%COMP%]{margin:39vh 0 8vh}.mb-android-5[_ngcontent-%COMP%]{margin:19vh 0 17vh}}@media only screen and (max-width: 480px){.mb-android-5[_ngcontent-%COMP%]{margin:15vh 0}.mb-ios-5[_ngcontent-%COMP%]{margin:20vh 0 8vh}}.pBottom[_ngcontent-%COMP%]{padding-bottom:15px}}.text-center[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#f34780}.material-symbols-outlined[_ngcontent-%COMP%]{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 48}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}']}),n})();class Gw{constructor(){this.nameFirst="",this.nameLast="",this.password="",this.confirmPassword="",this.phone="",this.userGroup="",this.userName="",this.email="",this.birthDate="",this.address="",this.city="",this.zipCode="",this.gameToken="",this.code=""}}let Lz=(()=>{class n{constructor(){this.mustMatch=[]}validate(e){return function Fz(n,i){return e=>{const r=e.controls[n],o=e.controls[i];if(!r||!o||o.errors&&!o.errors.mustMatch)return null;o.setErrors(r.value!==o.value?{mustMatch:!0}:null)}}(this.mustMatch[0],this.mustMatch[1])(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mustMatch",""]],inputs:{mustMatch:"mustMatch"},features:[t._Bn([{provide:Oi,useExisting:n,multi:!0}])]}),n})();const Bz=["connectionContainer"],Gz=["inputContainer"],Uz=["label"];function Hz(n,i){1&n&&(t.ynx(0),t.TgZ(1,"div",14),t._UZ(2,"div",15)(3,"div",16)(4,"div",17),t.qZA(),t.TgZ(5,"div",18),t._UZ(6,"div",15)(7,"div",16)(8,"div",17),t.qZA(),t.BQk())}function jz(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",19),t.NdJ("cdkObserveContent",function(){return t.CHM(e),t.oxw().updateOutlineGap()}),t.Hsn(1,1),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Vz(n,i){if(1&n&&(t.ynx(0),t.Hsn(1,2),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(e._control.placeholder)}}function Zz(n,i){1&n&&t.Hsn(0,3,["*ngSwitchCase","true"])}function Wz(n,i){1&n&&(t.TgZ(0,"span",23),t._uU(1," *"),t.qZA())}function qz(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"label",20,21),t.NdJ("cdkObserveContent",function(){return t.CHM(e),t.oxw().updateOutlineGap()}),t.YNc(2,Vz,4,1,"ng-container",12),t.YNc(3,Zz,1,0,"ng-content",12),t.YNc(4,Wz,2,0,"span",22),t.qZA()}if(2&n){const e=t.oxw();t.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),t.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),t.uIk("for",e._control.id)("aria-owns",e._control.id),t.xp6(2),t.Q6J("ngSwitchCase",!1),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function zz(n,i){1&n&&(t.TgZ(0,"div",24),t.Hsn(1,4),t.qZA())}function $z(n,i){if(1&n&&(t.TgZ(0,"div",25),t._UZ(1,"span",26),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Yz(n,i){if(1&n&&(t.TgZ(0,"div"),t.Hsn(1,5),t.qZA()),2&n){const e=t.oxw();t.Q6J("@transitionMessages",e._subscriptAnimationState)}}function Jz(n,i){if(1&n&&(t.TgZ(0,"div",30),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("id",e._hintLabelId),t.xp6(1),t.Oqu(e.hintLabel)}}function Qz(n,i){if(1&n&&(t.TgZ(0,"div",27),t.YNc(1,Jz,2,2,"div",28),t.Hsn(2,6),t._UZ(3,"div",29),t.Hsn(4,7),t.qZA()),2&n){const e=t.oxw();t.Q6J("@transitionMessages",e._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",e.hintLabel)}}const Kz=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Xz=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let e7=0;const U3=new t.OlP("MatError");let Uw=(()=>{class n{constructor(e,r){this.id="mat-error-"+e7++,e||r.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(t.$8M("aria-live"),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,r){2&e&&t.uIk("id",r.id)},inputs:{id:"id"},features:[t._Bn([{provide:U3,useExisting:n}])]}),n})();const t7={transitionMessages:xs("transitionMessages",[br("enter",ei({opacity:1,transform:"translateY(0%)"})),yr("void => enter",[ei({opacity:0,transform:"translateY(-5px)"}),Wr("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Hw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n}),n})();const n7=new t.OlP("MatHint");let Fb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["mat-label"]]}),n})(),r7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const o7=new t.OlP("MatPrefix"),H3=new t.OlP("MatSuffix");let jw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","matSuffix",""]],features:[t._Bn([{provide:H3,useExisting:n}])]}),n})(),j3=0;const a7=iu(class{constructor(n){this._elementRef=n}},"primary"),l7=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),fO=new t.OlP("MatFormField");let cu=(()=>{class n extends a7{constructor(e,r,o,s,c,f,g){super(e),this._changeDetectorRef=r,this._dir=o,this._defaults=s,this._platform=c,this._ngZone=f,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new ft.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+j3++,this._labelId="mat-form-field-label-"+j3++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==g,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const r=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Wt(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(wi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(It(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(It(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,_r.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(wi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(wi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(It(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const r=this._control?this._control.ngControl:null;return r&&r[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Si(this._label.nativeElement,"transitionend").pipe((0,_n.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const r=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,o=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,r=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const T=r.querySelectorAll(`${o}, ${s}`);for(let D=0;D0?.75*K+10:0}for(let T=0;T{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si,In,df],In]}),n})();const Z3=Ol({passive:!0});let c7=(()=>{class n{constructor(e,r){this._platform=e,this._ngZone=r,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Zr.E;const r=ja(e),o=this._monitoredElements.get(r);if(o)return o.subject;const s=new ft.x,c="cdk-text-field-autofilled",f=g=>{"cdk-text-field-autofill-start"!==g.animationName||r.classList.contains(c)?"cdk-text-field-autofill-end"===g.animationName&&r.classList.contains(c)&&(r.classList.remove(c),this._ngZone.run(()=>s.next({target:g.target,isAutofilled:!1}))):(r.classList.add(c),this._ngZone.run(()=>s.next({target:g.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",f,Z3),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:s,unlisten:()=>{r.removeEventListener("animationstart",f,Z3)}}),s}stopMonitoring(e){const r=ja(e),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((e,r)=>this.stopMonitoring(r))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(vr),t.LFG(t.R0b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),W3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();const u7=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),d7=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let h7=0;const f7=_1(class{constructor(n,i,e,r){this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=e,this.ngControl=r}});let Lb=(()=>{class n extends f7{constructor(e,r,o,s,c,f,g,v,T,D){super(f,s,c,o),this._elementRef=e,this._platform=r,this._autofillMonitor=v,this._formField=D,this._uid="mat-input-"+h7++,this.focused=!1,this.stateChanges=new ft.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(K=>dd().has(K)),this._iOSKeyupListener=K=>{const fe=K.target;!fe.value&&0===fe.selectionStart&&0===fe.selectionEnd&&(fe.setSelectionRange(1,1),fe.setSelectionRange(0,0))};const M=this._elementRef.nativeElement,R=M.nodeName.toLowerCase();this._inputValueAccessor=g||M,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&T.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===R,this._isTextarea="textarea"===R,this._isInFormField=!!D,this._isNativeSelect&&(this.controlType=M.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Wt(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,r,o,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(r=this.ngControl)||void 0===r?void 0:r.control)||void 0===o?void 0:o.hasValidator(Wo.required))&&void 0!==s&&s}set required(e){this._required=Wt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&dd().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Wt(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,r;const o=(null===(r=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===r?void 0:r.call(e))?null:this.placeholder;if(o!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=o,o?s.setAttribute("placeholder",o):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){d7.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,r=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&r&&r.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(vr),t.Y36(Ya,10),t.Y36(Ja,8),t.Y36(Sm,8),t.Y36(Ld),t.Y36(u7,10),t.Y36(c7),t.Y36(t.R0b),t.Y36(fO,8))},n.\u0275dir=t.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,r){1&e&&t.NdJ("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&e&&(t.Ikx("disabled",r.disabled)("required",r.required),t.uIk("id",r.id)("data-placeholder",r.placeholder)("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required),t.ekj("mat-input-server",r._isServer)("mat-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[t._Bn([{provide:Hw,useExisting:n}]),t.qOj,t.TTD]}),n})(),p7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Ld],imports:[[W3,pO,In],W3,pO]}),n})(),y7=(()=>{class n extends nr{constructor(e,r,o,s,c,f,g){super(e,null,r,o),this.ngClassInstance=g,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new wn(s,c,e,f)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(ji),t.Y36(Yi),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(wn,10))},n.\u0275dir=t.lG2({type:n,inputs:{klass:["class","klass"]},features:[t.qOj]}),n})();const x7=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let ci=(()=>{class n extends y7{constructor(){super(...arguments),this.inputs=x7}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[t.qOj]}),n})(),C7=(()=>{class n extends ur{buildStyles(e,r){return{display:"true"===e?r.display||(r.isServer?"initial":""):"none"}}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),w7=(()=>{class n extends nr{constructor(e,r,o,s,c,f,g){super(e,r,o,s),this.layoutConfig=c,this.platformId=f,this.serverModuleLoaded=g,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const e=Array.from(this.nativeElement.children);for(let o=0;o{if(-1!==this.inputs.indexOf(r)){const o=r.split("."),s=o.slice(1).join("."),c=e[r].currentValue;let f=""===c||0!==c&&Wt(c);"fxHide"===o[0]&&(f=!f),this.setValue(f,s)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(e=>{this.marshal.trackValue(this.nativeElement,e).pipe(It(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(e=!0){if(""===e)return;const r=Ue(this.platformId);this.addStyles(e?"true":"false",{display:this.display,isServer:r}),r&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(C7),t.Y36(ji),t.Y36(Yi),t.Y36(Qa),t.Y36(t.Lbi),t.Y36(Dm))},n.\u0275dir=t.lG2({type:n,features:[t.qOj,t.TTD]}),n})();const gO=new WeakMap,T7=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let q3=(()=>{class n extends w7{constructor(){super(...arguments),this.inputs=T7}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[t.qOj]}),n})();class S7{constructor(i,e,r=!0){this.key=i,this.value=e,this.key=r?i.replace(/['"]/g,"").trim():i.trim(),this.value=r?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function z3(n){let i=typeof n;return"object"===i?n.constructor===Array?"array":n.constructor===Set?"set":"object":i}function Y3(n){const[i,...e]=n.split(":");return new S7(i,e.join(":"))}function J3(n,i){return i.key&&(n[i.key]=i.value),n}let A7=(()=>{class n extends nr{constructor(e,r,o,s,c,f,g,v,T){var D;super(e,null,r,o),this.sanitizer=s,this.ngStyleInstance=g,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new uo(e,c,f)),this.init();const M=null!==(D=this.nativeElement.getAttribute("style"))&&void 0!==D?D:"";this.fallbackStyles=this.buildStyleMap(M),this.isServer=v&&Ue(T)}updateWithValue(e){const r=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),r),this.isServer&&this.applyStyleToElement(r),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const r=o=>{var s;return null!==(s=this.sanitizer.sanitize(t.q3G.STYLE,o))&&void 0!==s?s:""};if(e)switch(z3(e)){case"string":return Q3(function D7(n,i=";"){return String(n).trim().split(i).map(e=>e.trim()).filter(e=>""!==e)}(e),r);case"array":return Q3(e,r);default:return function $3(n,i){let e=[];return"set"===z3(n)?n.forEach(r=>e.push(r)):Object.keys(n).forEach(r=>{e.push(`${r}:${n[r]}`)}),function E7(n,i){return n.map(Y3).filter(r=>!!r).map(r=>(i&&(r.value=i(r.value)),r)).reduce(J3,{})}(e,i)}(e,r)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(ji),t.Y36(Yi),t.Y36(Ro),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(uo,10),t.Y36(Dm),t.Y36(t.Lbi))},n.\u0275dir=t.lG2({type:n,features:[t.qOj]}),n})();const M7=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Qf=(()=>{class n extends A7{constructor(){super(...arguments),this.inputs=M7}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[t.qOj]}),n})();function Q3(n,i){return n.map(Y3).filter(r=>!!r).map(r=>(i&&(r.value=i(r.value)),r)).reduce(J3,{})}let K3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[YA]]}),n})();function I7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.FIRSTNAMEINVALID")))}function O7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.LASTNAMEINVALID")))}function k7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.USERNAMEINVALID")))}function P7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.EMAILREQ")))}function N7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.EMAILINVALID")))}function R7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.MOBILEINVALID")))}function F7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.PASSWORDREQ")))}function L7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.PASSWORDINVALID")))}function B7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.CONFIRMPWREQ")))}function G7(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"REGISTER.PWMATCH")))}const U7=function(){return["password","confirmPassword"]},qm=function(n){return{"is-invalid":n}},H7=function(){return["/login"]};var uu=navigator.language||navigator.userLanguage;uu="en-US"==uu||"en"==uu||"en-IN"==uu?"en":"hi-EN"==uu||"hi"==uu?"hi":"en";let j7=(()=>{class n{constructor(e,r,o,s,c){this._loginService=e,this._router=r,this.translate=o,this.toasterService=s,this.runningGameService=c,this.userModel=new Gw,this.submitted=!1}ngOnInit(){this._loginService.prevoiusUrl="/register",this._loginService.isLogin=!1;var e=new Date,r=e.getMonth(),o=e.getDate(),s=e.getFullYear();$("#dob").datepicker({changeYear:!0,changeMonth:!0,yearRange:"1901:"+s,maxDate:new Date(s,r,o)}).on("change",c=>this.userModel.birthDate=c.target.value),this.gameToken=this._router.url.split("=")[1],this.loggedInUser=this._loginService.getLoggedInUser(),null!=this.loggedInUser&&"5"==this.loggedInUser.signUpType?(this.userModel.userName=this.loggedInUser.userName,this.userModel.email=this.loggedInUser.email):null!=this.loggedInUser&&"4"==this.loggedInUser.signUpType&&(this.userModel.email=this.loggedInUser.email,this.userModel.userName=this.loggedInUser.userName)}signUp(){if(0==/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this.userModel.email))return this.toasterService.Error("Email must be valid","Error"),!1;this.userModel.gameToken=this.gameToken,this.userModel.birthDate=$("#dob").val(),this.userModel.code=uu,this._loginService.register(this.userModel).subscribe(r=>{r&&r.statusType==xn.success?(this.toasterService.Success(r.msg,"Success!"),this._router.navigate(["/login"])):this.toasterService.Error(r.msg,"Error")})}get f(){return this.registerForm.controls}onSubmit(){this.toasterService.Success("I'm a toast!","Success!")}gameJoin(e,r){this.runningGameService.joinGame({gameId:e,userId:r}).subscribe(s=>{s&&s.statusType==xn.success&&this._router.navigate(["/playGame"])})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(Ht),t.Y36(Zn),t.Y36(I),t.Y36(Ka))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-register"]],inputs:{unregisterUsername:"unregisterUsername"},decls:76,vars:90,consts:[[1,"container-signup"],[1,"wrap-register"],[1,"m-t-0"],["name","form","novalidate","",1,"signup-form",3,"mustMatch","ngSubmit"],["f","ngForm"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutGap.sm","0px","fxLayoutGap.xs","0px",1,""],["appearance","fill","fxFlex","50%"],["matInput","","name","firstname","trim","","required","",3,"ngModel","placeholder","ngClass","ngModelChange"],["nameFirst","ngModel"],[4,"ngIf"],["matInput","","name","lastname","trim","","required","",3,"ngModel","placeholder","ngClass","ngModelChange"],["nameLast","ngModel"],["matInput","","name","username","trim","","required","",3,"ngModel","placeholder","disabled","ngClass","ngModelChange"],["userName","ngModel"],["matInput","","name","email","trim","","required","","email","",3,"ngModel","ngClass","placeholder","disabled","ngModelChange"],["email","ngModel"],["matInput","","name","dob","trim","","id","dob","readonly","",3,"ngModel","placeholder","ngModelChange"],["birthDate","ngModel"],["matInput","","type","tel","name","mobile number","maxlength","15","minlength","10","onkeypress","return event.charCode >= 48 && event.charCode <= 57",3,"ngModel","placeholder","ngModelChange"],["phone","ngModel"],["matInput","","type","password","name","password","required","","minlength","8",3,"ngModel","placeholder","ngClass","ngModelChange"],["password","ngModel"],["matInput","","type","password","name","confirmPassword","required","",3,"ngModel","placeholder","ngClass","ngModelChange"],["confirmPassword","ngModel"],["appearance","fill","fxFlex","100%"],["matInput","","name","address",3,"ngModel","placeholder","ngModelChange"],["matInput","","name","city",3,"ngModel","placeholder","ngModelChange"],["matInput","","name","zip","maxlength","7",3,"ngModel","placeholder","ngModelChange"],["mat-raised-button","","color","accent",1,"",2,"width","100%","font-size","16px"],[1,"text-center","m-t-10"],[3,"routerLink"]],template:function(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"h3",2)(3,"strong"),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"form",3,4),t.NdJ("ngSubmit",function(){return t.CHM(o),t.MAs(7).form.valid&&r.signUp()}),t.TgZ(8,"div",5)(9,"mat-form-field",6)(10,"input",7,8),t.NdJ("ngModelChange",function(c){return r.userModel.nameFirst=c}),t.ALo(12,"translate"),t.qZA(),t.YNc(13,I7,3,3,"mat-error",9),t.qZA(),t.TgZ(14,"mat-form-field",6)(15,"input",10,11),t.NdJ("ngModelChange",function(c){return r.userModel.nameLast=c}),t.ALo(17,"translate"),t.qZA(),t.YNc(18,O7,3,3,"mat-error",9),t.qZA()(),t.TgZ(19,"div",5)(20,"mat-form-field",6)(21,"input",12,13),t.NdJ("ngModelChange",function(c){return r.userModel.userName=c}),t.ALo(23,"translate"),t.qZA(),t.YNc(24,k7,3,3,"mat-error",9),t.qZA(),t.TgZ(25,"mat-form-field",6)(26,"input",14,15),t.NdJ("ngModelChange",function(c){return r.userModel.email=c}),t.ALo(28,"translate"),t.qZA(),t.YNc(29,P7,3,3,"mat-error",9),t.YNc(30,N7,3,3,"mat-error",9),t.qZA()(),t.TgZ(31,"div",5)(32,"mat-form-field",6)(33,"input",16,17),t.NdJ("ngModelChange",function(c){return r.userModel.birthDate=c}),t.ALo(35,"translate"),t.qZA()(),t.TgZ(36,"mat-form-field",6)(37,"input",18,19),t.NdJ("ngModelChange",function(c){return r.userModel.phone=c}),t.ALo(39,"translate"),t.qZA(),t.YNc(40,R7,3,3,"mat-error",9),t.qZA()(),t.TgZ(41,"div",5)(42,"mat-form-field",6)(43,"input",20,21),t.NdJ("ngModelChange",function(c){return r.userModel.password=c}),t.ALo(45,"translate"),t.qZA(),t.YNc(46,F7,3,3,"mat-error",9),t.YNc(47,L7,3,3,"mat-error",9),t.qZA(),t.TgZ(48,"mat-form-field",6)(49,"input",22,23),t.NdJ("ngModelChange",function(c){return r.userModel.confirmPassword=c}),t.ALo(51,"translate"),t.qZA(),t.YNc(52,B7,3,3,"mat-error",9),t.YNc(53,G7,3,3,"mat-error",9),t.qZA()(),t.TgZ(54,"div",5)(55,"mat-form-field",24)(56,"input",25),t.NdJ("ngModelChange",function(c){return r.userModel.address=c}),t.ALo(57,"translate"),t.qZA()()(),t.TgZ(58,"div",5)(59,"mat-form-field",6)(60,"input",26),t.NdJ("ngModelChange",function(c){return r.userModel.city=c}),t.ALo(61,"translate"),t.qZA()(),t.TgZ(62,"mat-form-field",6)(63,"input",27),t.NdJ("ngModelChange",function(c){return r.userModel.zipCode=c}),t.ALo(64,"translate"),t.qZA()()(),t.TgZ(65,"div")(66,"button",28),t._uU(67),t.ALo(68,"translate"),t.qZA()(),t.TgZ(69,"div",29)(70,"span"),t._uU(71),t.ALo(72,"translate"),t.TgZ(73,"a",30),t._uU(74),t.ALo(75,"translate"),t.qZA()()()()()()}if(2&e){const o=t.MAs(7),s=t.MAs(11),c=t.MAs(16),f=t.MAs(22),g=t.MAs(27),v=t.MAs(38),T=t.MAs(44),D=t.MAs(50);t.xp6(4),t.Oqu(t.lcZ(5,46,"REGISTER.HEADERTXT")),t.xp6(2),t.Q6J("mustMatch",t.DdM(76,U7)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,48,"REGISTER.FIRSTNAME")),t.Q6J("ngModel",r.userModel.nameFirst)("ngClass",t.VKq(77,qm,o.submitted&&s.invalid)),t.xp6(3),t.Q6J("ngIf",o.submitted&&s.invalid&&s.errors.required),t.xp6(2),t.s9C("placeholder",t.lcZ(17,50,"REGISTER.LASTNAME")),t.Q6J("ngModel",r.userModel.nameLast)("ngClass",t.VKq(79,qm,o.submitted&&c.invalid)),t.xp6(3),t.Q6J("ngIf",o.submitted&&c.invalid&&c.errors.required),t.xp6(3),t.s9C("placeholder",t.lcZ(23,52,"REGISTER.USERNAME")),t.Q6J("ngModel",r.userModel.userName)("disabled",null!=r.loggedInUser&&""!=r.loggedInUser.userName)("ngClass",t.VKq(81,qm,o.submitted&&f.invalid)),t.xp6(3),t.Q6J("ngIf",o.submitted&&f.invalid&&f.errors.required),t.xp6(2),t.s9C("placeholder",t.lcZ(28,54,"REGISTER.EMAIL")),t.Q6J("ngModel",r.userModel.email)("ngClass",t.VKq(83,qm,o.submitted&&g.invalid))("disabled",null!=r.loggedInUser&&null!=r.loggedInUser.email),t.xp6(3),t.Q6J("ngIf",o.submitted&&g.invalid&&g.errors.required),t.xp6(1),t.Q6J("ngIf",o.submitted&&g.invalid&&g.errors.email),t.xp6(3),t.s9C("placeholder",t.lcZ(35,56,"REGISTER.DOB")),t.Q6J("ngModel",r.userModel.birthDate),t.xp6(4),t.s9C("placeholder",t.lcZ(39,58,"REGISTER.MobileNO")),t.Q6J("ngModel",r.userModel.phone),t.xp6(3),t.Q6J("ngIf",o.submitted&&v.invalid&&(v.errors.maxlength||v.errors.minlength)),t.xp6(3),t.s9C("placeholder",t.lcZ(45,60,"REGISTER.PASSWORD")),t.Q6J("ngModel",r.userModel.password)("ngClass",t.VKq(85,qm,o.submitted&&T.invalid)),t.xp6(3),t.Q6J("ngIf",o.submitted&&T.invalid&&T.errors.required),t.xp6(1),t.Q6J("ngIf",o.submitted&&T.invalid&&T.errors.minlength),t.xp6(2),t.s9C("placeholder",t.lcZ(51,62,"REGISTER.CONFIRMPW")),t.Q6J("ngModel",r.userModel.confirmPassword)("ngClass",t.VKq(87,qm,o.submitted&&D.invalid)),t.xp6(3),t.Q6J("ngIf",o.submitted&&D.invalid&&D.errors.required),t.xp6(1),t.Q6J("ngIf",o.submitted&&D.invalid&&D.errors.mustMatch),t.xp6(3),t.s9C("placeholder",t.lcZ(57,64,"REGISTER.ADDRESS")),t.Q6J("ngModel",r.userModel.address),t.xp6(4),t.s9C("placeholder",t.lcZ(61,66,"REGISTER.CITY")),t.Q6J("ngModel",r.userModel.city),t.xp6(3),t.s9C("placeholder",t.lcZ(64,68,"REGISTER.ZIP")),t.Q6J("ngModel",r.userModel.zipCode),t.xp6(4),t.hij(" ",t.lcZ(68,70,"REGISTER.SIGNUP")," "),t.xp6(4),t.hij(" ",t.lcZ(72,72,"REGISTER.QUE")," "),t.xp6(2),t.Q6J("routerLink",t.DdM(89,H7)),t.xp6(1),t.Oqu(t.lcZ(75,74,"REGISTER.SIGNIN"))}},directives:[Hd,Ud,Ja,Lz,ti,qo,cu,Ei,Lb,Xl,Kt,jd,xr,Cr,wn,ci,Gt,Uw,Xv,zA,F1,Di,ds],pipes:[pn],styles:['.invalid-feedback[_ngcontent-%COMP%]{font-size:14px;margin:-12px 0 10px 6px;color:red}.requiredField[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:red}.requiredField[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:red}.requiredField[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:red}.requiredField[_ngcontent-%COMP%] input[_ngcontent-%COMP%] [_ngcontent-%COMP%]:-moz-placeholder{color:red}.marB5[_ngcontent-%COMP%]{margin-bottom:5px}.padLR0[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.mar-top30[_ngcontent-%COMP%]{margin-top:30px}.mar-bottom15[_ngcontent-%COMP%]{margin-bottom:15px}.pad-bottom50[_ngcontent-%COMP%]{padding-bottom:50px}.text-red[_ngcontent-%COMP%]{color:#ff0500}.docs-hp[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center}.body-bg[_ngcontent-%COMP%]{width:100%;min-height:93vh;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:15px;background-repeat:no-repeat;background-size:cover;background-position:center;position:relative;z-index:1}.body-bg[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;z-index:-1;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.5);background:linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,.5));pointer-events:none}.login-title[_ngcontent-%COMP%]{display:block;font-size:30px;color:#4b2354;line-height:1.2;text-align:center}.container-download-btn[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:center}.download-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0 20px;min-width:160px;height:50px;background-color:#347ab8;border-radius:25px;font-size:14px;color:#fff;line-height:1.2;text-transform:uppercase;transition:all .4s;box-shadow:0 10px 30px #55a2e580;-moz-box-shadow:0 10px 30px 0px #55a2e580;-webkit-box-shadow:0 10px 30px 0px #5fa1db80;-o-box-shadow:0 10px 30px 0px #55a2e580;-ms-box-shadow:0 10px 30px 0px #55a2e580}.download-btn[_ngcontent-%COMP%]:hover{background-color:#55a2e5;box-shadow:0 10px 30px #55a2e580;-moz-box-shadow:0 10px 30px 0px #55a2e580;-webkit-box-shadow:0 10px 30px 0px #5fa1db80;-o-box-shadow:0 10px 30px 0px #55a2e580;-ms-box-shadow:0 10px 30px 0px #55a2e580}.btn-maroon[_ngcontent-%COMP%]{background-color:#af001f;color:#fff}.btn-maroon[_ngcontent-%COMP%]:hover{background-color:#ba122f;color:#fff}.login-form-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0 20px;min-width:140px;height:50px;background-color:#347ab8;border-radius:25px;font-family:Segoe UI Semibold;font-size:14px;color:#fff;line-height:1.2;text-transform:uppercase;transition:all .4s;box-shadow:0 5px 15px #5fa1db80;-moz-box-shadow:0 5px 15px 0px #5fa1db80;-webkit-box-shadow:0 5px 15px 0px #5fa1db80;-o-box-shadow:0 5px 15px 0px #5fa1db80;-ms-box-shadow:0 5px 15px 0px #5fa1db80}.btn-round[_ngcontent-%COMP%]{font-size:14px;color:#3b5998;justify-content:center;align-items:center;width:30px;height:30px;border-radius:50%!important;background-color:#fff;margin:5px;padding:0;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.btn-round[_ngcontent-%COMP%]:hover{color:#3b5998}.modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{font-weight:700}.modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-top:-20px}button[_ngcontent-%COMP%]:hover{cursor:pointer}button[_ngcontent-%COMP%]{outline:none!important;border:none;background:transparent}.text-login[_ngcontent-%COMP%]{font-size:16px;line-height:1.4;color:#999}.text-login[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#999}.text-login[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none;color:#666}input[_ngcontent-%COMP%]:-internal-autofill-selected{border-radius:20px}.slider-client[_ngcontent-%COMP%]{position:absolute;left:0;right:0;bottom:0;padding:15px 0}footer[_ngcontent-%COMP%]{background-color:#333;height:10vh;color:#fff;padding:0;text-align:center;position:absolute;bottom:0;width:100%;height:50px;line-height:50px;z-index:999}footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#999;text-decoration:none}@media (max-width: 1024px){.body-bg[_ngcontent-%COMP%]{min-height:95vh}}@media (max-width: 959px){.body-bg[_ngcontent-%COMP%]{min-height:96vh}.wrap-register[_ngcontent-%COMP%]{margin-top:0vh!important;margin-bottom:90px!important}}@media screen and (max-width: 768px){.pad-bottom50[_ngcontent-%COMP%]{padding-bottom:20px}input[_ngcontent-%COMP%]{outline:none;border:none}}@media (max-width: 480px){.body-bg[_ngcontent-%COMP%]{min-height:94vh}}.login-social-item[_ngcontent-%COMP%]{font-size:25px;color:#3b5998;display:flex;justify-content:center;align-items:center;width:50px;height:50px;border-radius:50%;background-color:#fff;margin:5px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.login-social-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:26px}.login-social-item[_ngcontent-%COMP%]:hover{color:#3b5998;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.container-signup[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:15px;position:relative}.wrap-register[_ngcontent-%COMP%]{margin-bottom:2vh;width:720px;background:#fff;border-radius:30px;overflow:hidden;padding:20px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.signup-form[_ngcontent-%COMP%]{width:100%}.signup-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#000;font-size:14px}.signup-form[_ngcontent-%COMP%] .mat-form-field-underline{width:0px!important}.signup-form[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper{margin-top:.4444em!important}.signup-form[_ngcontent-%COMP%] .mat-form-field-appearance-fill .mat-form-field-infix{padding:0 0 .75em!important}.signup-form[_ngcontent-%COMP%] .mat-form-field-appearance-fill .mat-form-field-flex{background-color:unset!important;border:1px solid #9f9f9f;padding:0 .75em;border-radius:30px}.signup-form[_ngcontent-%COMP%] .mat-form-field.mat-form-field-invalid .mat-form-field-flex, .mat-form-field.mat-form-field-invalid[_ngcontent-%COMP%] .mat-form-field-ripple.mat-accent[_ngcontent-%COMP%]{border:1px solid #f44336;opacity:1;transform:none;transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),border .3s cubic-bezier(.25,.8,.25,1)}.login-form-title[_ngcontent-%COMP%]{display:block;font-family:Segoe UI Bold;font-size:30px;color:#347ab8;line-height:1.2;text-align:center}.wrap-input[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;border-radius:20px}.input[_ngcontent-%COMP%]{font-family:Segoe UI Bold;font-size:16px;color:#4b2354;line-height:50px;display:block;width:100%;height:50px;background:transparent;padding:0 20px 0 23px}.focus-input[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;border-radius:20px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);transition:all .4s}.input[_ngcontent-%COMP%]:focus + .focus-input[_ngcontent-%COMP%]{box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.container-login-form-btn[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:center}.login-form-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0 20px;min-width:160px;height:50px;background-color:#347ab8;border-radius:25px;font-family:Segoe UI Semibold;font-size:14px;color:#fff;line-height:1.2;text-transform:uppercase;transition:all .4s;box-shadow:0 10px 30px #55a2e580;-moz-box-shadow:0 10px 30px 0px #55a2e580;-webkit-box-shadow:0 10px 30px 0px #5fa1db80;-o-box-shadow:0 10px 30px 0px #55a2e580;-ms-box-shadow:0 10px 30px 0px #55a2e580}.login-form-btn[_ngcontent-%COMP%]:hover{background-color:#55a2e5;box-shadow:0 10px 30px #55a2e580;-moz-box-shadow:0 10px 30px 0px #55a2e580;-webkit-box-shadow:0 10px 30px 0px #5fa1db80;-o-box-shadow:0 10px 30px 0px #55a2e580;-ms-box-shadow:0 10px 30px 0px #55a2e580}.validate-input[_ngcontent-%COMP%]{position:relative}.alert-validate[_ngcontent-%COMP%] .focus-input[_ngcontent-%COMP%]{box-shadow:0 5px 30px #347ab81a;-moz-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-webkit-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-o-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-ms-box-shadow:0 5px 30px 0px rgba(52,122,184,.1)}.alert-validate[_ngcontent-%COMP%]:before{content:attr(data-validate);display:flex;align-items:center;position:absolute;width:100%;min-height:62px;background-color:#fff;border-radius:20px;top:0;left:0;padding:0 45px 0 22px;pointer-events:none;font-family:Segoe UI Bold;font-size:16px;color:#fa4251;line-height:1.2}.btn-hide-validate[_ngcontent-%COMP%]{font-family:Material-Design-Iconic-Font;font-size:15px;color:#fa4251;cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;height:62px;top:0;right:23px}.rs1-alert-validate.alert-validate[_ngcontent-%COMP%]:before{background-color:#fff}.true-validate[_ngcontent-%COMP%]:after{content:"\\f269";font-family:Material-Design-Iconic-Font;font-size:15px;color:#57b846;display:flex;align-items:center;justify-content:center;position:absolute;height:62px;top:0;right:23px}']}),n})();function V7(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"FORGOTPW.EMAILVALIDMSG")))}function Z7(n,i){if(1&n&&(t.TgZ(0,"div",12),t.YNc(1,V7,3,3,"div",13),t.qZA()),2&n){t.oxw();const e=t.MAs(12);t.xp6(1),t.Q6J("ngIf",e.errors.email)}}const W7=function(n){return{"is-invalid":n}},q7=function(){return["/login"]};let z7=(()=>{class n{constructor(e,r,o){this._loginService=e,this.toasterService=r,this.translate=o,this.forgotScreenModel=new qc}ngOnInit(){this.translate.get("FORGOTPW").subscribe(e=>{this.translateObj=e})}sendForgotPasswordEmail(){""!=this.forgotScreenModel.email?this._loginService.forgotPassword(this.forgotScreenModel).subscribe(e=>{e&&e.statusType==xn.success?e&&e.msg&&this.toasterService.Success(e.msg,"Success"):e&&e.msg&&this.toasterService.Error(e.msg,"Error")}):this.toasterService.Error(this.translateObj.ENTEREMAIL,"Error")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(I),t.Y36(Zn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-forgot-password"]],decls:23,vars:22,consts:[[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"form-group","m-t-10"],[1,"wrap-input","validate-input","m-b-20"],["type","email","email","",1,"form-control",3,"ngModel","ngClass","placeholder","ngModelChange"],["email","ngModel"],[1,"focus-input"],["class","invalid-feedback",4,"ngIf"],[1,"container-editprofile-form-btn","p-b-30"],["type","button",1,"btn","btn-maroon",3,"click"],[1,"btn","btn-maroon","m-l-10",3,"routerLink"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(e,r){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",3)(7,"label"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",4)(11,"input",5,6),t.NdJ("ngModelChange",function(s){return r.forgotScreenModel.email=s}),t.ALo(13,"translate"),t.qZA(),t._UZ(14,"span",7),t.qZA(),t.YNc(15,Z7,2,1,"div",8),t.qZA(),t.TgZ(16,"div",9)(17,"button",10),t.NdJ("click",function(){return r.sendForgotPasswordEmail()}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"button",11),t._uU(21),t.ALo(22,"translate"),t.qZA()()()()()),2&e){const o=t.MAs(12);t.xp6(4),t.Oqu(t.lcZ(5,9,"FORGOTPW.FORGOTPWTITLE")),t.xp6(4),t.Oqu(t.lcZ(9,11,"FORGOTPW.EMAILLBL")),t.xp6(3),t.s9C("placeholder",t.lcZ(13,13,"FORGOTPW.EMAILPLACTXT")),t.Q6J("ngModel",r.forgotScreenModel.email)("ngClass",t.VKq(19,W7,o.invalid)),t.xp6(4),t.Q6J("ngIf",o.invalid),t.xp6(3),t.Oqu(t.lcZ(19,15,"FORGOTPW.SUBMITBTN")),t.xp6(2),t.Q6J("routerLink",t.DdM(21,q7)),t.xp6(1),t.hij(" ",t.lcZ(22,17,"FORGOTPW.CANCELBTN")," ")}},directives:[Kt,Xv,xr,Cr,wn,ci,Gt,ea],pipes:[pn],styles:[".invalid-feedback[_ngcontent-%COMP%]{font-size:14px;margin:-12px 0 10px 6px;color:red}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}"]}),n})();function mO(n){return n&&"function"==typeof n.connect}class X3{applyChanges(i,e,r,o,s){i.forEachOperation((c,f,g)=>{let v,T;if(null==c.previousIndex){const D=r(c,f,g);v=e.createEmbeddedView(D.templateRef,D.context,D.index),T=1}else null==g?(e.remove(f),T=3):(v=e.get(f),e.move(v,g),T=2);s&&s({context:null==v?void 0:v.context,operation:T,record:c})})}detach(){}}class tB{constructor(i=!1,e,r=!0){this._multiple=i,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ft.x,e&&e.length&&(i?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...i){this._verifyValueAssignment(i),i.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...i){this._verifyValueAssignment(i),i.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(i){this.isSelected(i)?this.deselect(i):this.select(i)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(i){return this._selection.has(i)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){this.isSelected(i)||(this._multiple||this._unmarkAll(),this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){}}let nB=(()=>{class n{constructor(){this._listeners=[]}notify(e,r){for(let o of this._listeners)o(e,r)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(r=>e!==r)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Bb=new t.OlP("_ViewRepeater");let $7=0;const _O=new t.OlP("CdkAccordion");let Y7=(()=>{class n{constructor(){this._stateChanges=new ft.x,this._openCloseAllActions=new ft.x,this.id="cdk-accordion-"+$7++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Wt(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:_O,useExisting:n}]),t.TTD]}),n})(),J7=0,Q7=(()=>{class n{constructor(e,r,o){this.accordion=e,this._changeDetectorRef=r,this._expansionDispatcher=o,this._openCloseAllSubscription=Xn.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+J7++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((s,c)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===c&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Wt(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Wt(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(_O,12),t.Y36(t.sBO),t.Y36(nB))},n.\u0275dir=t.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:_O,useValue:void 0}])]}),n})(),K7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();const X7=["body"];function e$(n,i){}const t$=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],n$=["mat-expansion-panel-header","*","mat-action-row"];function i$(n,i){if(1&n&&t._UZ(0,"span",2),2&n){const e=t.oxw();t.Q6J("@indicatorRotate",e._getExpandedState())}}const r$=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],o$=["mat-panel-title","mat-panel-description","*"],vO=new t.OlP("MAT_ACCORDION"),iB="225ms cubic-bezier(0.4,0.0,0.2,1)",rB={indicatorRotate:xs("indicatorRotate",[br("collapsed, void",ei({transform:"rotate(0deg)"})),br("expanded",ei({transform:"rotate(180deg)"})),yr("expanded <=> collapsed, void => collapsed",Wr(iB))]),bodyExpansion:xs("bodyExpansion",[br("collapsed, void",ei({height:"0px",visibility:"hidden"})),br("expanded",ei({height:"*",visibility:"visible"})),yr("expanded <=> collapsed, void => collapsed",Wr(iB))])};let s$=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc))},n.\u0275dir=t.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),a$=0;const oB=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let bO=(()=>{class n extends Q7{constructor(e,r,o,s,c,f,g){super(e,r,o),this._viewContainerRef=s,this._animationMode=f,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new ft.x,this._headerId="mat-expansion-panel-header-"+a$++,this._bodyAnimationDone=new ft.x,this.accordion=e,this._document=c,this._bodyAnimationDone.pipe(ys((v,T)=>v.fromState===T.fromState&&v.toState===T.toState)).subscribe(v=>{"void"!==v.fromState&&("expanded"===v.toState?this.afterExpand.emit():"collapsed"===v.toState&&this.afterCollapse.emit())}),g&&(this.hideToggle=g.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Wt(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(wi(null),Yt(()=>this.expanded&&!this._portal),(0,_n.q)(1)).subscribe(()=>{this._portal=new vd(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,r=this._body.nativeElement;return e===r||r.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(vO,12),t.Y36(t.sBO),t.Y36(nB),t.Y36(t.s_b),t.Y36(ee),t.Y36(Ii,8),t.Y36(oB,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,r,o){if(1&e&&t.Suo(o,s$,5),2&e){let s;t.iGM(s=t.CRH())&&(r._lazyContent=s.first)}},viewQuery:function(e,r){if(1&e&&t.Gf(X7,5),2&e){let o;t.iGM(o=t.CRH())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,r){2&e&&t.ekj("mat-expanded",r.expanded)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:vO,useValue:void 0}]),t.qOj,t.TTD],ngContentSelectors:n$,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,r){1&e&&(t.F$t(t$),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(s){return r._bodyAnimationDone.next(s)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,e$,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("@bodyExpansion",r._getExpandedState())("id",r.id),t.uIk("aria-labelledby",r._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",r._portal))},directives:[Qc],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[rB.bodyExpansion]},changeDetection:0}),n})();class l${}const c$=fm(l$);let yO=(()=>{class n extends c${constructor(e,r,o,s,c,f,g){super(),this.panel=e,this._element=r,this._focusMonitor=o,this._changeDetectorRef=s,this._animationMode=f,this._parentChangeSubscription=Xn.w0.EMPTY;const v=e.accordion?e.accordion._stateChanges.pipe(Yt(T=>!(!T.hideToggle&&!T.togglePosition))):Zr.E;this.tabIndex=parseInt(g||"")||0,this._parentChangeSubscription=(0,_r.T)(e.opened,e.closed,v,e._inputChanges.pipe(Yt(T=>!!(T.hideToggle||T.disabled||T.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Yt(()=>e._containsFocus())).subscribe(()=>o.focusVia(r,"program")),c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:ra(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,r){e?this._focusMonitor.focusVia(this._element,e,r):this._element.nativeElement.focus(r)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bO,1),t.Y36(t.SBq),t.Y36(oa),t.Y36(t.sBO),t.Y36(oB,8),t.Y36(Ii,8),t.$8M("tabindex"))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,r){1&e&&t.NdJ("click",function(){return r._toggle()})("keydown",function(s){return r._keydown(s)}),2&e&&(t.uIk("id",r.panel._headerId)("tabindex",r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),t.Udp("height",r._getHeaderHeight()),t.ekj("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after","after"===r._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===r._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===r._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:o$,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,r){1&e&&(t.F$t(r$),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,i$,1,1,"span",1)),2&e&&(t.xp6(4),t.Q6J("ngIf",r._showToggle()))},directives:[Gt],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[rB.indicatorRotate]},changeDetection:0}),n})(),sB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),aB=(()=>{class n extends Y7{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Wt(e)}ngAfterContentInit(){this._headers.changes.pipe(wi(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(r=>r.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Ng(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,r,o){if(1&e&&t.Suo(o,yO,5),2&e){let s;t.iGM(s=t.CRH())&&(r._headers=s)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,r){2&e&&t.ekj("mat-accordion-multi",r.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:vO,useExisting:n}]),t.qOj]}),n})(),u$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si,In,K7,tf]]}),n})();function d$(n,i){if(1&n&&(t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",5)(2,"mat-expansion-panel-header"),t._UZ(3,"mat-panel-title",6),t.qZA(),t._UZ(4,"div",6),t.qZA()()),2&n){const e=i.$implicit;t.xp6(3),t.Q6J("innerHTML",e.question,t.oJD),t.xp6(1),t.Q6J("innerHTML",e.answer,t.oJD)}}function h$(n,i){if(1&n&&(t.TgZ(0,"div")(1,"h2",4),t._uU(2),t.qZA(),t.YNc(3,d$,5,2,"mat-accordion",3),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.s9C("id",e.id),t.xp6(1),t.Oqu(e.section),t.xp6(1),t.Q6J("ngForOf",e.questions)}}const f$=function(n,i){return{"bgColor border":n,"bg-container":i}};let p$=(()=>{class n{constructor(e,r,o){this._loginService=e,this.sanitizer=r,this._router=o,this.response=[]}ngOnInit(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this._loginService.getFAQ({userId:e.id}).subscribe(o=>{for(let s=0;sc.section==o.data[s].section)||this.response.push({id:o.data[s].sectionName.replace(/\s/g,""),section:o.data[s].section,questions:o.data.filter(c=>c.section==o.data[s].section)});setTimeout(()=>{var s=this._router.url.split("#")[1];const c=document.querySelector("#"+s);c&&c.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},1e3)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(Ro),t.Y36(Ht))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-what-is-html"]],decls:4,vars:5,consts:[[3,"ngClass"],["fxLayout","row"],["fxFlex","",1,"bg-sub-container",2,"height","77vh","overflow-y","auto","padding","0 20px 20px"],[4,"ngFor","ngForOf"],[3,"id"],[2,"box-shadow","unset","border","1px solid #00000045","margin-bottom","15px"],[3,"innerHTML"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t.YNc(3,h$,4,3,"div",3),t.qZA()()()),2&e&&(t.Q6J("ngClass",t.WLB(2,f$,r._loginService.isNative,!r._loginService.isNative)),t.xp6(3),t.Q6J("ngForOf",r.response))},directives:[wn,ci,ti,Ei,Vt,aB,bO,yO,sB],styles:["h2[_ngcontent-%COMP%]{font-weight:700} mat-accordion a{color:#00f} mat-accordion ul li{list-style-type:disc} mat-accordion ol li{list-style:decimal;list-style-position:inside}mat-panel-title[_ngcontent-%COMP%]{font-weight:700}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:last-of-type{border-bottom-right-radius:20px;border-bottom-left-radius:20px}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:first-of-type{border-top-right-radius:20px;border-top-left-radius:20px} .mat-expansion-indicator:after{padding:4px!important;vertical-align:unset!important} app-what-is-html .mat-expansion-panel-header{height:auto;padding:10px 24px!important} .ham-menu-img{height:30%;width:30%}@media screen and (max-width: 426px){ .menu-img{height:100%;width:100%} .ham-menu-img{height:100%;width:100%}}.border[_ngcontent-%COMP%]{border:solid rgb(207,204,204) 1px}"]}),n})();const lB=new Set;let zm,g$=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_$}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function m$(n){if(!lB.has(n))try{zm||(zm=document.createElement("style"),zm.setAttribute("type","text/css"),document.head.appendChild(zm)),zm.sheet&&(zm.sheet.insertRule(`@media ${n} {body{ }}`,0),lB.add(n))}catch(i){console.error(i)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(vr))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function _$(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let ec=(()=>{class n{constructor(e,r){this._mediaMatcher=e,this._zone=r,this._queries=new Map,this._destroySubject=new ft.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return cB(Ha(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let s=Nc(cB(Ha(e)).map(c=>this._registerQuery(c).observable));return s=Lo(s.pipe((0,_n.q)(1)),s.pipe(Ed(1),Dd(0))),s.pipe((0,Le.U)(c=>{const f={matches:!1,breakpoints:{}};return c.forEach(({matches:g,query:v})=>{f.matches=f.matches||g,f.breakpoints[v]=g}),f}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const r=this._mediaMatcher.matchMedia(e),s={observable:new Yn.y(c=>{const f=g=>this._zone.run(()=>c.next(g));return r.addListener(f),()=>{r.removeListener(f)}}).pipe(wi(r),(0,Le.U)(({matches:c})=>({query:e,matches:c})),It(this._destroySubject)),mql:r};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(g$),t.LFG(t.R0b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cB(n){return n.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}const ri_HandsetPortrait="(max-width: 599.98px) and (orientation: portrait)",ri_TabletPortrait="(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",ri_HandsetLandscape="(max-width: 959.98px) and (orientation: landscape)",ri_TabletLandscape="(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)";let $m=(()=>{class n{constructor(e,r,o,s){this.http=e,this.router=r,this.changePasswordService=o,this.loginService=s,this.ep=new to}getScore(e){return this.http.post(this.ep.ScoreBoard,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("GetScore")))}getStatistics(e){return this.http.post(this.ep.gameScoreboard,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("getStatistics")))}checkEmailUnsubscribed(e){return this.http.post(this.ep.CheckEmailUnsubscribed,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("CheckEmailUnsubscribed")))}getScoredetail(e){return this.http.post(this.ep.getScoreboard,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("getScoredetail")))}setRequestHeaders(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile)),r=(new Date).getTimezoneOffset();return{headers:new ai({"Content-Type":"application/json",apiKey:e.apiKey,apiToken:e.apiToken,timezoneoffsetminutes:(r=0==r?0:-r).toString(),authToken:null==e.authToken?"":e.authToken,loginType:e.loginType})}}handleError(e="operation",r){return o=>{if(401==o.error.status||403==o.error.status){"emptyRefreshToken"==o.error.errMsgCode&&(this.loginService.isRefreshToken=!1);var s=JSON.parse(window.localStorage.getItem(ce.userProfile)),c=this.changePasswordService.getUUID(),f={userId:s.id,deviceId:c,firebaseToken:window.localStorage.getItem("firebaseToken")};this.changePasswordService.removeFCMDeviceId(f).subscribe(g=>{}),window.localStorage.clear(),this.loginService.getBrowserLang(""),this.router.navigate(["/login"])}return ut(r)}}getProfilePicture(e){return this.http.post(this.ep.getProfilePicture,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("getProfilePicture")))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar),t.LFG(Ht),t.LFG(ql),t.LFG(fn))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bo=(()=>{class n{constructor(e,r,o,s,c,f){this.http=e,this.toasterService=r,this.router=o,this.changePasswordService=s,this.loginService=c,this.breakpointObserver=f,this.joinFromHomePage=!1,this.joinFromBackButton=!1,this.width375=!1,this.width395=!1,this.width450=!1,this.ep=new to,this.width375=this.breakpointObserver.isMatched(["(max-width: 375px)","(max-height: 812px)"]),this.width395=this.breakpointObserver.isMatched(["(max-width: 395px)","(max-height: 855px)"]),this.width450=this.breakpointObserver.isMatched(["(max-width: 450px)","(max-height: 950px)"])}setGamePlayerData(e){this.gamePlayersObj=e}changePlayGame(e){this.playGameSource=e}setFromHomePage(){this.joinFromHomePage=!0}setFromBackButton(){this.joinFromBackButton=!0}updateScoreTheGame(e){return this.http.post(this.ep.updateScoreTheGame,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("UpdateScoreTheGame",this.ep.updateScoreTheGame)))}search(e){return this.http.post(this.ep.Search,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("Search",this.ep.Search)))}createGame(e){return this.http.post(this.ep.createGame,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("CreateGame",this.ep.createGame)))}startGame(e){return this.http.post(this.ep.StartGame,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("StartGame",this.ep.StartGame)))}getGameInformation(e){return this.http.post(this.ep.getGameInfo,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("GetGameInformation",this.ep.getGameInfo)))}checkSpelling(e){return this.http.post(this.ep.Spelling,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("CheckSpelling",this.ep.Spelling)))}getPreRegisteredImages(){return this.http.post(this.ep.getPreRegisteredImages,"").pipe((0,Le.U)(e=>e),vt(this.handleError("GetPreRegisteredImages",this.ep.getPreRegisteredImages)))}IsAuthenthicated(){return null!=this.userProfile&&null!=this.userProfile.access_token}setRequestHeaders(){this.userProfile=JSON.parse(window.localStorage.getItem(ce.userProfile));var e=(new Date).getTimezoneOffset();return{headers:new ai({"Content-Type":"application/json",apiKey:this.userProfile.apiKey,apiToken:this.userProfile.apiToken,timezoneoffsetminutes:(e=0==e?0:-e).toString(),authToken:null==this.userProfile.authToken?"":this.userProfile.authToken,loginType:this.userProfile.loginType})}}submitScore(e){return this.http.post("hi"==e.code?this.ep.hindiGame:this.ep.SubmitScore,e,this.setRequestHeaders()).pipe((0,Le.U)(o=>o),vt(this.handleError("SubmitScore",this.ep.SubmitScore)))}pokeTurnPlayer(e){return this.http.post(this.ep.poke,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("pokeTurnPlayer",this.ep.poke)))}getScoreHints(e){return this.http.post(this.ep.getScoreHints,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("GetScoreHints",this.ep.getScoreHints)))}getPlayedUsers(e){return this.http.post(this.ep.getPlayedUsers,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("GetPlayedUsers",this.ep.getPlayedUsers)))}uninvitedPlayerJoin(e){return this.http.post(this.ep.uninvitedPlayerJoin,e,this.setRequestHeaderswithoutToken()).pipe((0,Le.U)(r=>r),vt(this.handleError("uninvitedPlayerJoin",this.ep.uninvitedPlayerJoin)))}getGoogleContactList(e){return this.http.get(e).pipe((0,Le.U)(o=>o),vt(this.handleError("GetGoogleContactList","google")))}setRequestHeaderswithoutToken(){var e=(new Date).getTimezoneOffset();return{headers:new ai({"Content-Type":"application/json",timezoneoffsetminutes:(e=0==e?0:-e).toString()})}}updateTheGame(e){return this.http.post(this.ep.updateTheGame,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("updateTheGame",this.ep.updateTheGame)))}handleError(e="operation",r,o){return s=>{if(401==s.error.status||403==s.error.status){"emptyRefreshToken"==s.error.errMsgCode&&(this.loginService.isRefreshToken=!1);var c=JSON.parse(window.localStorage.getItem(ce.userProfile)),f=this.changePasswordService.getUUID(),g={userId:c.id,deviceId:f,firebaseToken:window.localStorage.getItem("firebaseToken")};this.changePasswordService.removeFCMDeviceId(g).subscribe(v=>{}),window.localStorage.clear(),this.loginService.getBrowserLang(""),this.router.navigate(["/login"])}return ut(o)}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar),t.LFG(I),t.LFG(Ht),t.LFG(ql),t.LFG(fn),t.LFG(ec))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var v$=P(930);const b$={url:"",deserializer:n=>JSON.parse(n.data),serializer:n=>JSON.stringify(n)};class xO extends ft.u{constructor(i,e){if(super(),this._socket=null,i instanceof Yn.y)this.destination=e,this.source=i;else{const r=this._config=Object.assign({},b$);if(this._output=new ft.x,"string"==typeof i)r.url=i;else for(const o in i)i.hasOwnProperty(o)&&(r[o]=i[o]);if(!r.WebSocketCtor&&WebSocket)r.WebSocketCtor=WebSocket;else if(!r.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new Mm}}lift(i){const e=new xO(this._config,this.destination);return e.operator=i,e.source=this,e}_resetState(){this._socket=null,this.source||(this.destination=new Mm),this._output=new ft.x}multiplex(i,e,r){const o=this;return new Yn.y(s=>{try{o.next(i())}catch(f){s.error(f)}const c=o.subscribe(f=>{try{r(f)&&s.next(f)}catch(g){s.error(g)}},f=>s.error(f),()=>s.complete());return()=>{try{o.next(e())}catch(f){s.error(f)}c.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:i,protocol:e,url:r,binaryType:o}=this._config,s=this._output;let c=null;try{c=e?new i(r,e):new i(r),this._socket=c,o&&(this._socket.binaryType=o)}catch(g){return void s.error(g)}const f=new Xn.w0(()=>{this._socket=null,c&&1===c.readyState&&c.close()});c.onopen=g=>{const{_socket:v}=this;if(!v)return c.close(),void this._resetState();const{openObserver:T}=this._config;T&&T.next(g);const D=this.destination;this.destination=v$.Lv.create(M=>{if(1===c.readyState)try{const{serializer:R}=this._config;c.send(R(M))}catch(R){this.destination.error(R)}},M=>{const{closingObserver:R}=this._config;R&&R.next(void 0),M&&M.code?c.close(M.code,M.reason):s.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:M}=this._config;M&&M.next(void 0),c.close(),this._resetState()}),D&&D instanceof Mm&&f.add(D.subscribe(this.destination))},c.onerror=g=>{this._resetState(),s.error(g)},c.onclose=g=>{this._resetState();const{closeObserver:v}=this._config;v&&v.next(g),g.wasClean?s.complete():s.error(g)},c.onmessage=g=>{try{const{deserializer:v}=this._config;s.next(v(g))}catch(v){s.error(v)}}}_subscribe(i){const{source:e}=this;return e?e.subscribe(i):(this._socket||this._connectSocket(),this._output.subscribe(i),i.add(()=>{const{_socket:r}=this;0===this._output.observers.length&&(r&&(1===r.readyState||0===r.readyState)&&r.close(),this._resetState())}),i)}unsubscribe(){const{_socket:i}=this;i&&(1===i.readyState||0===i.readyState)&&i.close(),this._resetState(),super.unsubscribe()}}let Ym=(()=>{class n{constructor(){}setItem(e,r){localStorage.setItem(e,r)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}clear(){localStorage.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var nh;let tc=(()=>{class n{constructor(e,r){this._router=e,this.localStorage=r,this.isSelfClosews=!1,nh=this}initSocket(e){null==e||null==e||(this.isSelfClosews=!1,this.messages=function x$(n){return new xO(n)}({url:"wss://"+ce.BROADCAST_URL+"/wss2/:"+ce.BROADCAST_PORT+"/?game="+e,closingObserver:{next(r){this.isSelfClosews=!0}},closeObserver:{next(r){if(r.wasClean||(nh.isSelfClosews=!1),!nh.isSelfClosews){var o=-1!=nh._router.url.indexOf("?")?nh._router.url.split("?")[0]:nh._router.url;("/playGame"==o||"newGame"==o)&&nh.initSocket(nh.localStorage.getItem("game"))}console.log("Connection closed")}},openObserver:{next(){console.log("Connection ok")}}}),this.createGameObs=this.messages.multiplex(()=>({subscribe:"creategame"}),()=>({unsubscribe:"creategame"}),r=>{var o;return"creategame"==(null===(o=r.msg)||void 0===o?void 0:o.type)}),this.playGameObs=this.messages.multiplex(()=>({subscribe:"playgame"}),()=>({unsubscribe:"playgame"}),r=>{var o;return"playgame"===(null===(o=r.msg)||void 0===o?void 0:o.type)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ht),t.LFG(Ym))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uB=(()=>{class n{constructor(e,r,o,s){this.http=e,this.router=r,this.changePasswordService=o,this.loginService=s,this.ep=new to}getBadge(e){return this.http.post(this.ep.getBadges,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("getBadge")))}setRequestHeaders(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile)),r=(new Date).getTimezoneOffset();return{headers:new ai({"Content-Type":"application/json",apiKey:e.apiKey,apiToken:e.apiToken,timezoneoffsetminutes:(r=0==r?0:-r).toString(),authToken:null==e.authToken?"":e.authToken,loginType:e.loginType})}}handleError(e="operation",r){return o=>{if(401==o.error.status||403==o.error.status){"emptyRefreshToken"==o.error.errMsgCode&&(this.loginService.isRefreshToken=!1);var s=JSON.parse(window.localStorage.getItem(ce.userProfile)),c=this.changePasswordService.getUUID(),f={userId:s.id,deviceId:c,firebaseToken:window.localStorage.getItem("firebaseToken")};this.changePasswordService.removeFCMDeviceId(f).subscribe(g=>{}),window.localStorage.clear(),this.router.navigate(["/login"])}return ut(r)}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar),t.LFG(Ht),t.LFG(ql),t.LFG(fn))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ih=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Wt(e)}get inset(){return this._inset}set inset(e){this._inset=Wt(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,r){2&e&&(t.uIk("aria-orientation",r.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,r){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),n})(),C$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[In],In]}),n})();function w$(n,i){1&n&&(t.TgZ(0,"h4",7)(1,"strong",8),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"BADGES.BADGETITLE")," "))}function T$(n,i){1&n&&t._UZ(0,"mat-divider",15)}const S$=function(n){return{"padding-20":n}},D$=function(n){return{"text-center":n}},E$=function(n){return{opacityImage:n}},A$=function(n){return{width:n}};function M$(n,i){if(1&n&&(t.TgZ(0,"div",9),t.YNc(1,T$,1,0,"mat-divider",10),t.TgZ(2,"div",11)(3,"div",12),t._UZ(4,"img",13),t.qZA(),t.TgZ(5,"div",14),t._uU(6),t.qZA()()()),2&n){const e=i.$implicit,r=i.index,o=t.oxw(2);t.Q6J("fxFlex",o.widthToDisplayBadge)("ngClass",t.VKq(11,S$,o.isHomePage&&1==o.breakpoint)),t.xp6(1),t.Q6J("ngIf",!o.isHomePage&&0!=r),t.xp6(1),t.Q6J("ngClass",t.VKq(13,D$,o.isHomePage))("fxLayout",o.isHomePage&&o.isHomePage&&0==o.breakpoint?"column":"row"),t.xp6(1),t.Q6J("ngClass",t.VKq(15,E$,!e.isEarned)),t.xp6(1),t.hYB("src","",e.badgeImg,"",o.languageCode,"/badge.png",t.LSH),t.s9C("alt",e.badgeImgAltText),t.Q6J("ngStyle",t.VKq(17,A$,1==o.breakpoint?"50px":"auto")),t.xp6(2),t.hij(" ",e.badgeDisplayName," ")}}function I$(n,i){1&n&&(t.TgZ(0,"div",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"BADGES.NOFOUND")," "))}const O$=function(){return["/badges"]};function k$(n,i){1&n&&(t.TgZ(0,"div",17)(1,"a",18)(2,"strong"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("routerLink",t.DdM(4,O$)),t.xp6(2),t.Oqu(t.lcZ(4,2,"HOME.VIEWBTN")))}function P$(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,w$,4,3,"h4",2),t.TgZ(2,"div",3),t.NdJ("resize",function(o){t.CHM(e);const s=t.oxw();return s.isHomePage&&s.onResize(o)},!1,t.Jf7),t.YNc(3,M$,7,19,"div",4),t.ALo(4,"slice"),t.YNc(5,I$,3,3,"div",5),t.YNc(6,k$,5,5,"div",6),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isHomePage),t.xp6(1),t.Q6J("fxLayout",e.isHomePage&&0==e.breakpoint?"row":"column wrap")("fxLayoutGap",e.isHomePage?"10px":"0px"),t.xp6(1),t.Q6J("ngForOf",t.Dn7(4,6,e.badgeList,0,e.displayedBadge)),t.xp6(2),t.Q6J("ngIf",0==e.badgeList.length),t.xp6(1),t.Q6J("ngIf",e.isHomePage&&1==e.breakpoint)}}let dB=(()=>{class n{constructor(e,r,o){this.badgeService=e,this.loginService=r,this.breakpointObserver=o,this.badgeList=[]}ngOnInit(){this.languageCode=window.localStorage.getItem("language"),this.breakpointObserver.observe([ri_HandsetLandscape,ri_HandsetPortrait,ri_TabletLandscape,ri_TabletPortrait]).subscribe(e=>{this.breakpoint=e.matches?1:0}),this.getBadgeList(),(null==this.isHomePage||!this.isHomePage)&&zt.dV.isNativePlatform()&&setTimeout(()=>{this.loginService.pulltoRefresh("badgeContent","/badges")},1e3),this.isHomePage&&(window.innerWidth<525?(this.displayedBadge=2,this.widthToDisplayBadge="50%"):window.innerWidth<725?(this.displayedBadge=4,this.widthToDisplayBadge="25%"):window.innerWidth>=725&&window.innerWidth<900?(this.displayedBadge=6,this.widthToDisplayBadge="16.7%"):(this.displayedBadge=8,this.widthToDisplayBadge="12.5%"))}getBadgeList(){var e={userId:this.loginService.getLoggedInUser().id,limit:this.isHomePage?8:""};this.badgeService.getBadge(e).subscribe(r=>{r&&r.statusType==xn.success&&(this.badgeList=r.data,this.badgeList.forEach(o=>{o.isEarned="true"==o.isEarned,o.badgeEarnedOn=null!=o.badgeEarnedOn?new Date(o.badgeEarnedOn.replace(/-/g,"/")):""}))})}onResize(e){e.target.innerWidth<525?(this.displayedBadge=2,this.widthToDisplayBadge="50%"):e.target.innerWidth<725?(this.displayedBadge=4,this.widthToDisplayBadge="25%"):e.target.innerWidth>=725&&e.target.innerWidth<900?(this.displayedBadge=6,this.widthToDisplayBadge="16.7%"):(this.displayedBadge=8,this.widthToDisplayBadge="12.5%")}convertUTCToLocal(e){var r=new Date(e),o=r.getTimezoneOffset(),s=60*r.getHours()+r.getMinutes()-o;r.setHours(s/60),r.setMinutes(s%60);var f=r.toLocaleString(window.localStorage.getItem(ce.language),{month:"short",day:"2-digit"}).split(" "),v=r.toTimeString().split(":");return f[0]+" "+f[1]+", '"+r.getFullYear().toString().substr(-2)+" @ "+v[0]+":"+v[1]}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(uB),t.Y36(fn),t.Y36(ec))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-badges"]],inputs:{isHomePage:"isHomePage"},decls:2,vars:2,consts:[["id","badgeContent",3,"className"],[4,"ngIf"],["class","m-t-0 mat-h2",4,"ngIf"],["fxLayoutAlign","flex-start",3,"fxLayout","fxLayoutGap","resize"],[3,"fxFlex","ngClass",4,"ngFor","ngForOf"],["class","text-center no-badges",4,"ngIf"],["class","a-link","style","border-top:solid rgb(207, 204, 204) 1px;","fxLayoutAlign","center center",4,"ngIf"],[1,"m-t-0","mat-h2"],[2,"display","inline-block"],[3,"fxFlex","ngClass"],["class","m-b-5 m-t-5",4,"ngIf"],[3,"ngClass","fxLayout"],["fxFlexAlign","center",3,"ngClass"],[3,"ngStyle","src","alt"],["fxFlexAlign","center"],[1,"m-b-5","m-t-5"],[1,"text-center","no-badges"],["fxLayoutAlign","center center",1,"a-link",2,"border-top","solid rgb(207, 204, 204) 1px"],["href","/badges",3,"routerLink"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t.YNc(1,P$,7,10,"div",1),t.qZA()),2&e&&(t.Q6J("className",r.isHomePage&&0==r.breakpoint?"bottomMainContent":r.isHomePage&&1==r.breakpoint?"":r.loginService.isNative?"bgColor appBadgesPadding":"containerFram bgColor"),t.xp6(1),t.Q6J("ngIf",!r.isHomePage||r.isHomePage&&r.badgeList.length>0))},directives:[Gt,Ir,ti,qo,Vt,Ei,wn,ci,ih,Wl,uo,Qf,ds],pipes:[pn,yc],styles:["td[_ngcontent-%COMP%]{text-align:center;vertical-align:middle!important}.bottomMainContent[_ngcontent-%COMP%]{padding-bottom:30px!important}.whiteSpace[_ngcontent-%COMP%]{white-space:normal!important}.dateWhiteSpace[_ngcontent-%COMP%]{white-space:nowrap!important}.mat-grid-tile[_ngcontent-%COMP%] div{width:100%;justify-content:left;text-align:right}.opacityImage[_ngcontent-%COMP%]{opacity:.5}.homepage_badge_mat_grid[_ngcontent-%COMP%] div{text-align:center!important}.padding-20[_ngcontent-%COMP%]{padding-right:20px!important;padding-left:20px!important}.a-link[_ngcontent-%COMP%]{padding:5px}.no-badges[_ngcontent-%COMP%]{height:50vh;display:flex;align-items:center;justify-content:center;background:white;margin-top:0}.appBadgesPadding[_ngcontent-%COMP%]{padding:10px 20px;border:solid rgb(207,204,204) 1px}"]}),n})();const hB=["*"],R$=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],F$=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"];class B${constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const i=Math.max(...this.tracker);return i>1?this.rowCount+i-1:this.rowCount}update(i,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(i),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(r=>this._trackTile(r))}_trackTile(i){const e=this._findMatchingGap(i.colspan);return this._markTilePosition(e,i),this.columnIndex=e+i.colspan,new G$(this.rowIndex,e)}_findMatchingGap(i){let e=-1,r=-1;do{this.columnIndex+i>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),r=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(r=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),r=this._findGapEndIndex(e)))}while(r-e{class n{constructor(e,r){this._element=e,this._gridList=r,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(e){this._rowspan=Math.round(Ua(e))}get colspan(){return this._colspan}set colspan(e){this._colspan=Math.round(Ua(e))}_setStyle(e,r){this._element.nativeElement.style[e]=r}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(fB,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(e,r){2&e&&t.uIk("rowspan",r.rowspan)("colspan",r.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:hB,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),n})(),U$=(()=>{class n{constructor(e){this._element=e}ngAfterContentInit(){!function _A(n,i,e="mat"){n.changes.pipe(wi(n)).subscribe(({length:r})=>{Bd(i,`${e}-2-line`,!1),Bd(i,`${e}-3-line`,!1),Bd(i,`${e}-multi-line`,!1),2===r||3===r?Bd(i,`${e}-${r}-line`,!0):r>3&&Bd(i,`${e}-multi-line`,!0)})}(this._lines,this._element)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(e,r,o){if(1&e&&t.Suo(o,mA,5),2&e){let s;t.iGM(s=t.CRH())&&(r._lines=s)}},ngContentSelectors:F$,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(e,r){1&e&&(t.F$t(R$),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),n})(),H$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),n})();const j$=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class CO{constructor(){this._rows=0,this._rowspan=0}init(i,e,r,o){this._gutterSize=pB(i),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=r,this._direction=o}getBaseTileSize(i,e){return`(${i}% - (${this._gutterSize} * ${e}))`}getTilePosition(i,e){return 0===e?"0":Kf(`(${i} + ${this._gutterSize}) * ${e}`)}getTileSize(i,e){return`(${i} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(i,e,r){let o=100/this._cols,s=(this._cols-1)/this._cols;this.setColStyles(i,r,o,s),this.setRowStyles(i,e,o,s)}setColStyles(i,e,r,o){let s=this.getBaseTileSize(r,o);i._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(s,e)),i._setStyle("width",Kf(this.getTileSize(s,i.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(i){return`${this._rowspan} * ${this.getTileSize(i,1)}`}getComputedHeight(){return null}}class V$ extends CO{constructor(i){super(),this.fixedRowHeight=i}init(i,e,r,o){super.init(i,e,r,o),this.fixedRowHeight=pB(this.fixedRowHeight),j$.test(this.fixedRowHeight)}setRowStyles(i,e){i._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),i._setStyle("height",Kf(this.getTileSize(this.fixedRowHeight,i.rowspan)))}getComputedHeight(){return["height",Kf(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(i){i._setListStyle(["height",null]),i._tiles&&i._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}}class Z$ extends CO{constructor(i){super(),this._parseRatio(i)}setRowStyles(i,e,r,o){this.baseTileHeight=this.getBaseTileSize(r/this.rowHeightRatio,o),i._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),i._setStyle("paddingTop",Kf(this.getTileSize(this.baseTileHeight,i.rowspan)))}getComputedHeight(){return["paddingBottom",Kf(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(i){i._setListStyle(["paddingBottom",null]),i._tiles.forEach(e=>{e._setStyle("marginTop",null),e._setStyle("paddingTop",null)})}_parseRatio(i){const e=i.split(":");this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class W$ extends CO{setRowStyles(i,e){let s=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);i._setStyle("top",this.getTilePosition(s,e)),i._setStyle("height",Kf(this.getTileSize(s,i.rowspan)))}reset(i){i._tiles&&i._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}}function Kf(n){return`calc(${n})`}function pB(n){return n.match(/([A-Za-z%]+)$/)?n:`${n}px`}let Vw=(()=>{class n{constructor(e,r){this._element=e,this._dir=r,this._gutter="1px"}get cols(){return this._cols}set cols(e){this._cols=Math.max(1,Math.round(Ua(e)))}get gutterSize(){return this._gutter}set gutterSize(e){this._gutter=`${null==e?"":e}`}get rowHeight(){return this._rowHeight}set rowHeight(e){const r=`${null==e?"":e}`;r!==this._rowHeight&&(this._rowHeight=r,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(e){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===e?new W$:e&&e.indexOf(":")>-1?new Z$(e):new V$(e)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new B$);const e=this._tileCoordinator,r=this._tiles.filter(s=>!s._gridList||s._gridList===this),o=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,r),this._tileStyler.init(this.gutterSize,e,this.cols,o),r.forEach((s,c)=>{const f=e.positions[c];this._tileStyler.setStyle(s,f.row,f.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(Ui,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-grid-list"]],contentQueries:function(e,r,o){if(1&e&&t.Suo(o,Gb,5),2&e){let s;t.iGM(s=t.CRH())&&(r._tiles=s)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,r){2&e&&t.uIk("cols",r.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:fB,useExisting:n}])],ngContentSelectors:hB,decls:2,vars:0,template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),n})(),z$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[Vl,In],Vl,In]}),n})();const $$=["trigger"],Y$=["panel"];function J$(n,i){if(1&n&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.placeholder)}}function Q$(n,i){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.triggerValue)}}function K$(n,i){1&n&&t.Hsn(0,0,["*ngSwitchCase","true"])}function X$(n,i){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,Q$,2,1,"span",10),t.YNc(2,K$,1,0,"ng-content",11),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngSwitch",!!e.customTrigger),t.xp6(2),t.Q6J("ngSwitchCase",!0)}}function eY(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"div",14,15),t.NdJ("@transformPanel.done",function(o){return t.CHM(e),t.oxw()._panelDoneAnimatingStream.next(o.toState)})("keydown",function(o){return t.CHM(e),t.oxw()._handleKeydown(o)}),t.Hsn(3,1),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("@transformPanelWrap",void 0),t.xp6(1),t.Gre("mat-select-panel ",e._getPanelTheme(),""),t.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),t.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),t.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const tY=[[["mat-select-trigger"]],"*"],nY=["mat-select-trigger","*"],gB={transformPanelWrap:xs("transformPanelWrap",[yr("* => void",gf("@transformPanel",[uv()],{optional:!0}))]),transformPanel:xs("transformPanel",[br("void",ei({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),br("showing",ei({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),br("showing-multiple",ei({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),yr("void => *",Wr("120ms cubic-bezier(0, 0, 0.2, 1)")),yr("* => void",Wr("100ms 25ms linear",ei({opacity:0})))])};let mB=0;const vB=new t.OlP("mat-select-scroll-strategy"),sY=new t.OlP("MAT_SELECT_CONFIG"),aY={provide:vB,deps:[bs],useFactory:function oY(n){return()=>n.scrollStrategies.reposition()}};class lY{constructor(i,e){this.source=i,this.value=e}}const cY=jl(fm(nu(_1(class{constructor(n,i,e,r,o){this._elementRef=n,this._defaultErrorStateMatcher=i,this._parentForm=e,this._parentFormGroup=r,this.ngControl=o}})))),uY=new t.OlP("MatSelectTrigger");let dY=(()=>{class n extends cY{constructor(e,r,o,s,c,f,g,v,T,D,M,R,K,fe){var Me,Fe,qe;super(c,s,g,v,D),this._viewportRuler=e,this._changeDetectorRef=r,this._ngZone=o,this._dir=f,this._parentFormField=T,this._liveAnnouncer=K,this._defaultOptions=fe,this._panelOpen=!1,this._compareWith=(xt,dt)=>xt===dt,this._uid="mat-select-"+mB++,this._triggerAriaLabelledBy=null,this._destroy=new ft.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+mB++,this._panelDoneAnimatingStream=new ft.x,this._overlayPanelClass=(null===(Me=this._defaultOptions)||void 0===Me?void 0:Me.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(qe=null===(Fe=this._defaultOptions)||void 0===Fe?void 0:Fe.disableOptionCentering)&&void 0!==qe&&qe,this.ariaLabel="",this.optionSelectionChanges=rs(()=>{const xt=this.options;return xt?xt.changes.pipe(wi(xt),En(()=>(0,_r.T)(...xt.map(dt=>dt.onSelectionChange)))):this._ngZone.onStable.pipe((0,_n.q)(1),En(()=>this.optionSelectionChanges))}),this.openedChange=new t.vpe,this._openedStream=this.openedChange.pipe(Yt(xt=>xt),(0,Le.U)(()=>{})),this._closedStream=this.openedChange.pipe(Yt(xt=>!xt),(0,Le.U)(()=>{})),this.selectionChange=new t.vpe,this.valueChange=new t.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==fe?void 0:fe.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=fe.typeaheadDebounceInterval),this._scrollStrategyFactory=R,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(M)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,r,o,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(r=this.ngControl)||void 0===r?void 0:r.control)||void 0===o?void 0:o.hasValidator(Wo.required))&&void 0!==s&&s}set required(e){this._required=Wt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Wt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Wt(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Ua(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new tB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ys(),It(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(It(this._destroy)).subscribe(e=>{e.added.forEach(r=>r.select()),e.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(wi(null),It(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),r=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(void 0!==this._previousControl&&null!==r.disabled&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,r;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(r=this._selectionModel)||void 0===r?void 0:r.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const r=e.keyCode,o=40===r||38===r||37===r||39===r,s=13===r||32===r,c=this._keyManager;if(!c.isTyping()&&s&&!ra(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const f=this.selected;c.onKeydown(e);const g=this.selected;g&&f!==g&&this._liveAnnouncer.announce(g.viewValue,1e4)}}_handleOpenKeydown(e){const r=this._keyManager,o=e.keyCode,s=40===o||38===o,c=r.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(c||13!==o&&32!==o||!r.activeItem||ra(e))if(!c&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const f=this.options.some(g=>!g.disabled&&!g.selected);this.options.forEach(g=>{g.disabled||(f?g.select():g.deselect())})}else{const f=r.activeItemIndex;r.onKeydown(e),this._multiple&&s&&e.shiftKey&&r.activeItem&&r.activeItemIndex!==f&&r.activeItem._selectViaInteraction()}else e.preventDefault(),r.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,_n.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{const r=this._selectOptionByValue(e);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const r=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch(s){return!1}});return r&&this._selectionModel.select(r),r}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new lC(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(It(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(It(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,_r.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(It(e)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,_r.T)(...this.options.map(r=>r._stateChanges)).pipe(It(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,r){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),r&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),r&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((r,o)=>this.sortComparator?this.sortComparator(r,o,e):e.indexOf(r)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let r=null;r=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const r=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(r?r+" ":"")+this.ariaLabelledby:r}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const r=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let o=(r?r+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Nl),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(Ld),t.Y36(t.SBq),t.Y36(Ui,8),t.Y36(Ja,8),t.Y36(Sm,8),t.Y36(fO,8),t.Y36(Ya,10),t.$8M("tabindex"),t.Y36(vB),t.Y36(cE),t.Y36(sY,8))},n.\u0275dir=t.lG2({type:n,viewQuery:function(e,r){if(1&e&&(t.Gf($$,5),t.Gf(Y$,5),t.Gf(Hi,5)),2&e){let o;t.iGM(o=t.CRH())&&(r.trigger=o.first),t.iGM(o=t.CRH())&&(r.panel=o.first),t.iGM(o=t.CRH())&&(r._overlayDir=o.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[t.qOj,t.TTD]}),n})(),Hb=(()=>{class n extends dY{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,r,o){const s=this._getItemHeight();return Math.min(Math.max(0,s*e-r+s/2),o)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(It(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,_n.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const r=qv(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===r?0:function zv(n,i,e,r){return ne+r?Math.max(0,n-r+i):e}((e+r)*o,o,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new lY(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),r=this._viewportRuler.getViewportSize(),o=this._isRtl(),s=this.multiple?56:32;let c;if(this.multiple)c=40;else if(this.disableOptionCentering)c=16;else{let v=this._selectionModel.selected[0]||this.options.first;c=v&&v.group?32:16}o||(c*=-1);const f=0-(e.left+c-(o?s:0)),g=e.right+c-r.width+(o?0:s);f>0?c+=f+8:g>0&&(c-=g+8),this._overlayDir.offsetX=Math.round(c),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,r,o){const s=this._getItemHeight(),c=(s-this._triggerRect.height)/2,f=Math.floor(256/s);let g;return this.disableOptionCentering?0:(g=0===this._scrollTop?e*s:this._scrollTop===o?(e-(this._getItemCount()-f))*s+(s-(this._getItemCount()*s-256)%s):r-s/2,Math.round(-1*g-c))}_checkOverlayWithinViewport(e){const r=this._getItemHeight(),o=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,c=o.height-this._triggerRect.bottom-8,f=Math.abs(this._offsetY),v=Math.min(this._getItemCount()*r,256)-f-this._triggerRect.height;v>c?this._adjustPanelUp(v,c):f>s?this._adjustPanelDown(f,s,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,r){const o=Math.round(e-r);this._scrollTop-=o,this._offsetY-=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,r,o){const s=Math.round(e-r);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=o)return this._scrollTop=o,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),r=this._getItemCount(),o=Math.min(r*e,256),c=r*e-o;let f;f=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),f+=qv(f,this.options,this.optionGroups);const g=o/2;this._scrollTop=this._calculateOverlayScroll(f,g,c),this._offsetY=this._calculateOverlayOffsetY(f,g,c),this._checkOverlayWithinViewport(c)}_getOriginBasedOnOption(){const e=this._getItemHeight(),r=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-r+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,r,o){if(1&e&&(t.Suo(o,uY,5),t.Suo(o,Mf,5),t.Suo(o,Zv,5)),2&e){let s;t.iGM(s=t.CRH())&&(r.customTrigger=s.first),t.iGM(s=t.CRH())&&(r.options=s),t.iGM(s=t.CRH())&&(r.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,r){1&e&&t.NdJ("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&e&&(t.uIk("id",r.id)("tabindex",r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-describedby",r._ariaDescribedby||null)("aria-activedescendant",r._getAriaActiveDescendant()),t.ekj("mat-select-disabled",r.disabled)("mat-select-invalid",r.errorState)("mat-select-required",r.required)("mat-select-empty",r.empty)("mat-select-multiple",r.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[t._Bn([{provide:Hw,useExisting:n},{provide:y1,useExisting:n}]),t.qOj],ngContentSelectors:nY,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,r){if(1&e&&(t.F$t(tY),t.TgZ(0,"div",0,1),t.NdJ("click",function(){return r.toggle()}),t.TgZ(3,"div",2),t.YNc(4,J$,2,1,"span",3),t.YNc(5,X$,3,2,"span",4),t.qZA(),t.TgZ(6,"div",5),t._UZ(7,"div",6),t.qZA()(),t.YNc(8,eY,4,14,"ng-template",7),t.NdJ("backdropClick",function(){return r.close()})("attach",function(){return r._onAttached()})("detach",function(){return r.close()})),2&e){const o=t.MAs(1);t.uIk("aria-owns",r.panelOpen?r.id+"-panel":null),t.xp6(3),t.Q6J("ngSwitch",r.empty),t.uIk("id",r._valueId),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1),t.xp6(3),t.Q6J("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayMinWidth",null==r._triggerRect?null:r._triggerRect.width)("cdkConnectedOverlayOffsetY",r._offsetY)}},directives:[uf,Hr,Ca,Us,Hi,wn],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[gB.transformPanelWrap,gB.transformPanel]},changeDetection:0}),n})(),hY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[aY],imports:[[si,tv,C1,In],_d,pO,C1,In]}),n})();function fY(n,i){1&n&&(t.TgZ(0,"h1",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"LEADERBOARD.SCORETYPE")))}function pY(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",14),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().metricChange(s.name)}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function gY(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",14),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().againstChange(s.name)}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function mY(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",14),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().timeChange(s.name)}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function _Y(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",15)(1,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw().closePop()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateFilter()}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"LEADERBOARD.CANCLE")),t.xp6(3),t.Oqu(t.lcZ(6,4,"LEADERBOARD.UPDATE")))}const Ww=function(){return{"m-r-15":!1}};let bB=(()=>{class n{constructor(e){this.translate=e,this.saveFilter=new t.vpe,this.closePopup=new t.vpe,this.saveData=new t.vpe}ngOnInit(){console.log(this.data),this.gridCols=window.innerWidth<1025?1:3}onResize(e){this.gridCols=e.target.innerWidth<1025?1:3}metricChange(e){this.data.metricValue=e,this.inDialog||this.onClickSelect()}timeChange(e){this.data.timeValue=e,this.inDialog||this.onClickSelect()}againstChange(e){this.data.againtsValue=e,this.inDialog||this.onClickSelect()}updateFilter(){this.saveFilter.emit(this.data)}closePop(){this.closePopup.emit()}onClickSelect(){this.saveData.emit(this.data)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Zn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-leaderboard-filter"]],inputs:{data:"data",inDialog:"inDialog"},outputs:{saveFilter:"saveFilter",closePopup:"closePopup",saveData:"saveData"},decls:33,vars:32,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content","",1,"row","mat-custom-select","popContent"],["rowHeight","40px",3,"cols","resize"],[1,"mat-custom-select"],[3,"colspan","rowspan"],[1,"w100","m-r-15",3,"ngClass.sm","ngClass.xs"],["appearance","fill",1,"w100"],["id","typeDD","name","type",3,"ngModel","ngModelChange"],[3,"value","click",4,"ngFor","ngForOf"],["id","staticsWorldDD",3,"ngModel","ngModelChange"],[1,"w100"],["id","timeDD","name","time",3,"ngModel","ngModelChange"],["mat-dialog-actions","","class","center",4,"ngIf"],["mat-dialog-title",""],[3,"value","click"],["mat-dialog-actions","",1,"center"],["color","accent","mat-stroked-button","",3,"click"],["color","accent","mat-raised-button","","cdkFocusInitial","",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"div"),t.YNc(1,fY,3,3,"h1",0),t.TgZ(2,"div",1)(3,"mat-grid-list",2),t.NdJ("resize",function(s){return r.onResize(s)},!1,t.Jf7),t.TgZ(4,"div",3)(5,"mat-grid-tile",4)(6,"div",5)(7,"h4")(8,"strong"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"mat-form-field",6)(12,"mat-select",7),t.NdJ("ngModelChange",function(s){return r.data.metricId=s}),t.YNc(13,pY,2,2,"mat-option",8),t.qZA()()()(),t.TgZ(14,"mat-grid-tile",4)(15,"div",5)(16,"h4")(17,"strong"),t._uU(18),t.ALo(19,"translate"),t.qZA()(),t.TgZ(20,"mat-form-field",6)(21,"mat-select",9),t.NdJ("ngModelChange",function(s){return r.data.againstId=s}),t.YNc(22,gY,2,2,"mat-option",8),t.qZA()()()(),t.TgZ(23,"mat-grid-tile",4)(24,"div",10)(25,"h4")(26,"strong"),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"mat-form-field",6)(30,"mat-select",11),t.NdJ("ngModelChange",function(s){return r.data.timeId=s}),t.YNc(31,mY,2,2,"mat-option",8),t.qZA()()()()()()(),t.YNc(32,_Y,7,6,"div",12),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",r.inDialog),t.xp6(2),t.Q6J("cols",r.gridCols),t.xp6(2),t.Q6J("colspan",1)("rowspan",2),t.xp6(1),t.Q6J("ngClass.sm",t.DdM(28,Ww))("ngClass.xs",t.DdM(29,Ww)),t.xp6(3),t.Oqu(t.lcZ(10,22,"LEADERBOARD.METRICS")),t.xp6(3),t.Q6J("ngModel",r.data.metricId),t.xp6(1),t.Q6J("ngForOf",r.data.types),t.xp6(1),t.Q6J("colspan",1)("rowspan",2),t.xp6(1),t.Q6J("ngClass.sm",t.DdM(30,Ww))("ngClass.xs",t.DdM(31,Ww)),t.xp6(3),t.hij("",t.lcZ(19,24,"LEADERBOARD.AGAINST")," "),t.xp6(3),t.Q6J("ngModel",r.data.againstId),t.xp6(1),t.Q6J("ngForOf",r.data.againsts),t.xp6(1),t.Q6J("colspan",1)("rowspan",2),t.xp6(4),t.hij(" ",t.lcZ(28,26,"LEADERBOARD.TIME")," "),t.xp6(3),t.Q6J("ngModel",r.data.timeId),t.xp6(1),t.Q6J("ngForOf",r.data.timePeroid),t.xp6(1),t.Q6J("ngIf",r.inDialog))},directives:[Gt,_,y,Vw,Gb,ci,cu,Hb,xr,Cr,Vt,Mf,w,Di],pipes:[pn],styles:[".center[_ngcontent-%COMP%]{justify-content:center} .scoreboard-dialog .mat-dialog-container{width:100vw;height:auto;padding:24px}.mat-custom-select[_ngcontent-%COMP%] .mat-form-field-appearance-fill .mat-form-field-flex{border-radius:50px!important;border:1px solid #d3d3d3!important;padding:0!important;background-color:#fff!important}.mat-custom-select[_ngcontent-%COMP%] .mat-form-field-underline{width:0px!important}.popContent[_ngcontent-%COMP%] .mat-form-field-appearance-fill .mat-form-field-infix{padding:0 1em 1em!important}.w100[_ngcontent-%COMP%]{width:100%!important}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.mat-custom-select[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:10px!important}.mat-custom-select[_ngcontent-%COMP%] h4{font-size:14px!important;margin-bottom:5px!important;margin-top:5px!important} .mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:none!important}@media only screen and (max-width:370px){.mat-custom-select[_ngcontent-%COMP%] .mat-grid-tile-content div.m-r-15{margin-right:0!important}}"]}),n})(),vY=(()=>{class n{constructor(e,r,o){this.translate=e,this.dialogRef=r,this.data=o}ngOnInit(){}closePop(){this.dialogRef.close()}saveData(e){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Zn),t.Y36(qr),t.Y36(Gd))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-leaderboard-dialog"]],decls:1,vars:2,consts:[[3,"data","inDialog","saveFilter","closePopup"]],template:function(e,r){1&e&&(t.TgZ(0,"app-leaderboard-filter",0),t.NdJ("saveFilter",function(s){return r.saveData(s)})("closePopup",function(){return r.closePop()}),t.qZA()),2&e&&t.Q6J("data",r.data)("inDialog",!0)},directives:[bB],styles:[""]}),n})();function CY(n,i,e,r){const o=window&&!!window.document&&window.document.documentElement;let s=o&&i?window:e;if(n&&(s=n&&o&&"string"==typeof n?function wY(n,i,e){return(e?window.document:i).querySelector(n)}(n,e.nativeElement,r):n,!s))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return s}function wO(n){return n&&!n.firstChange}const SY={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},DY={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class EY{constructor(i=!0){this.vertical=i,this.propsMap=i?SY:DY}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function OY(n){return["Window","global"].some(e=>Object.prototype.toString.call(n).includes(e))}function TO(n,i){return n?i.document.documentElement:null}function yB(n,i){const e=function NY({container:n,isWindow:i,axis:e}){const{offsetHeightKey:r,clientHeightKey:o}=xB(e);return CB(n,i,r,o)}(i);return i.isWindow?function kY(n,i,e){const{axis:r,container:o,isWindow:s}=e,{offsetHeightKey:c,clientHeightKey:f}=xB(r),g=n+wB(TO(s,o),r,s),v=CB(i.nativeElement,s,c,f),T=function RY(n,i,e){const r=i.topKey();if(n.getBoundingClientRect)return n.getBoundingClientRect()[r]+wB(n,i,e)}(i.nativeElement,r,s)+v;return{height:n,scrolled:g,totalToScroll:T,isWindow:s}}(e,n,i):function PY(n,i,e){const{axis:r,container:o}=e;return{height:n,scrolled:o[r.scrollTopKey()],totalToScroll:o[r.scrollHeightKey()],isWindow:!1}}(e,0,i)}function xB(n){return{offsetHeightKey:n.offsetHeightKey(),clientHeightKey:n.clientHeightKey()}}function CB(n,i,e,r){if(isNaN(n[e])){const o=TO(i,n);return o?o[r]:0}return n[e]}function wB(n,i,e){const r=i.pageYOffsetKey(),o=i.scrollTopKey(),s=i.offsetTopKey();return isNaN(window[r])?TO(e,n)[o]:n.ownerDocument?n.ownerDocument.defaultView[r]:n[s]}function FY(n,i,e){let r,o;if(n.totalToScroll<=0)return!1;const s=n.isWindow?n.scrolled:n.height+n.scrolled;return e?(r=(n.totalToScroll-s)/n.totalToScroll,o=i.down/10):(r=n.scrolled/(n.scrolled+(n.totalToScroll-s)),o=i.up/10),r<=o}class GY{constructor({totalToScroll:i}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=i}updateScrollPosition(i){return this.lastScrollPosition=i}updateTotalToScroll(i){this.lastTotalToScroll!==i&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=i)}updateScroll(i,e){this.updateScrollPosition(i),this.updateTotalToScroll(e)}updateTriggeredFlag(i,e){e?this.triggered.down=i:this.triggered.up=i}isTriggeredScroll(i,e){return e?this.triggered.down===i:this.triggered.up===i}}function UY(n){const{scrollContainer:i,scrollWindow:e,element:r,fromRoot:o}=n,s=function MY({windowElement:n,axis:i}){return function IY(n,i){return Object.assign({},n,{container:n.isWindow||i&&!i.nativeElement?i:i.nativeElement})}({axis:i,isWindow:OY(n)},n)}({axis:new EY(!n.horizontal),windowElement:CY(i,e,r,o)}),c=new GY({totalToScroll:yB(r,s)}),g={up:n.upDistance,down:n.downDistance};return function HY(n){let i=Si(n.container,"scroll");return n.throttle&&(i=i.pipe(function xY(n,i=cd){return function bY(n){return(0,Ci.e)((i,e)=>{let r=!1,o=null;i.subscribe(new Kn.Q(e,c=>{r=!0,o=c})),n.subscribe(new Kn.Q(e,()=>{if(r){r=!1;const c=o;o=null,e.next(c)}},ud.Z))})}(function yY(n=0,i=cd){return n<0&&(n=0),Il(n,n,i)}(n,i))}(n.throttle))),i}({container:s.container,throttle:n.throttle}).pipe((0,Gi.z)(()=>ut(yB(r,s))),(0,Le.U)(v=>function jY(n,i,e){const{scrollDown:r,fire:o}=function BY(n,i,e){const r=function LY(n,i){return nc.updateScroll(v.scrolled,v.totalToScroll)),Yt(({fire:v,scrollDown:T,stats:{totalToScroll:D}})=>function AY(n,i,e){return!!(n&&i||!e&&i)}(n.alwaysCallback,v,c.isTriggeredScroll(D,T))),gi(({scrollDown:v,stats:{totalToScroll:T}})=>{c.updateTriggeredFlag(T,v)}),(0,Le.U)(VY))}function VY(n){const{scrollDown:i,stats:{scrolled:e}}=n;return{type:i?"[NGX_ISE] DOWN":"[NGX_ISE] UP",payload:{currentScrollPosition:e}}}let SO=(()=>{class n{constructor(e,r){this.element=e,this.zone=r,this.scrolled=new t.vpe,this.scrolledUp=new t.vpe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:e,infiniteScrollDisabled:r,infiniteScrollDistance:o}){const s=wO(e),c=wO(r),f=wO(o),g=!c&&!this.infiniteScrollDisabled||c&&!r.currentValue||f;(s||c||f)&&(this.destroyScroller(),g&&this.setup())}setup(){(function TY(){return"undefined"!=typeof window})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=UY({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(e=>this.zone.run(()=>this.handleOnScroll(e)))})}handleOnScroll({type:e,payload:r}){switch(e){case"[NGX_ISE] DOWN":return this.scrolled.emit(r);case"[NGX_ISE] UP":return this.scrolledUp.emit(r);default:return}}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[t.TTD]}),n})(),ZY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[],imports:[[]]}),n})();const qY=[[["caption"]],[["colgroup"],["col"]]],zY=["caption","colgroup, col"];function DO(n){return class extends n{constructor(...i){super(...i),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(i){const e=this._sticky;this._sticky=Wt(i),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const i=this._hasStickyChanged;return this._hasStickyChanged=!1,i}resetStickyChanged(){this._hasStickyChanged=!1}}}const Qm=new t.OlP("CDK_TABLE");let Km=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Xm=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),zw=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class QY{}const KY=DO(QY);let du=(()=>{class n extends KY{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const r=this._stickyEnd;this._stickyEnd=Wt(e),this._hasStickyChanged=r!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Qm,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,r,o){if(1&e&&(t.Suo(o,Km,5),t.Suo(o,Xm,5),t.Suo(o,zw,5)),2&e){let s;t.iGM(s=t.CRH())&&(r.cell=s.first),t.iGM(s=t.CRH())&&(r.headerCell=s.first),t.iGM(s=t.CRH())&&(r.footerCell=s.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),t.qOj]}),n})();class EO{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}}let AO=(()=>{class n extends EO{constructor(e,r){super(e,r)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(du),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),n})(),MO=(()=>{class n extends EO{constructor(e,r){var o;if(super(e,r),1===(null===(o=e._table)||void 0===o?void 0:o._elementRef.nativeElement.nodeType)){const s=e._table._elementRef.nativeElement.getAttribute("role");r.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(du),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),n})();class SB{constructor(){this.tasks=[],this.endTasks=[]}}const IO=new t.OlP("_COALESCED_STYLE_SCHEDULER");let DB=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new ft.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new SB,this._getScheduleObservable().pipe(It(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new SB;for(const r of e.tasks)r();for(const r of e.endTasks)r()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,qi.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,_n.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),OO=(()=>{class n{constructor(e,r){this.template=e,this._differs=r}ngOnChanges(e){if(!this._columnsDiffer){const r=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof jb?e.headerCell.template:this instanceof Vb?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},n.\u0275dir=t.lG2({type:n,features:[t.TTD]}),n})();class XY extends OO{}const e9=DO(XY);let jb=(()=>{class n extends e9{constructor(e,r,o){super(e,r),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(Qm,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),n})();class t9 extends OO{}const n9=DO(t9);let Vb=(()=>{class n extends n9{constructor(e,r,o){super(e,r),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(Qm,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),n})(),$w=(()=>{class n extends OO{constructor(e,r,o){super(e,r),this._table=o}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(Qm,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),n})(),hu=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),kO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,r){1&e&&t.GkF(0,0)},directives:[hu],encapsulation:2}),n})(),NO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,r){1&e&&t.GkF(0,0)},directives:[hu],encapsulation:2}),n})(),Yw=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc))},n.\u0275dir=t.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const EB=["top","bottom","left","right"];class i9{constructor(i,e,r,o,s=!0,c=!0,f){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=r,this._coalescedStyleScheduler=o,this._isBrowser=s,this._needsPositionStickyOnElement=c,this._positionListener=f,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){const r=[];for(const o of i)if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(let s=0;s{for(const o of r)this._removeStickyStyle(o,e)})}updateStickyColumns(i,e,r,o=!0){if(!i.length||!this._isBrowser||!e.some(M=>M)&&!r.some(M=>M))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=i[0],c=s.children.length,f=this._getCellWidths(s,o),g=this._getStickyStartColumnPositions(f,e),v=this._getStickyEndColumnPositions(f,r),T=e.lastIndexOf(!0),D=r.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const M="rtl"===this.direction,R=M?"right":"left",K=M?"left":"right";for(const fe of i)for(let Me=0;Mee[Me]?fe:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===D?[]:f.slice(D).map((fe,Me)=>r[Me+D]?fe:null).reverse()}))})}stickRows(i,e,r){if(!this._isBrowser)return;const o="bottom"===r?i.slice().reverse():i,s="bottom"===r?e.slice().reverse():e,c=[],f=[],g=[];for(let T=0,D=0;T{var T,D;for(let M=0;M{e.some(o=>!o)?this._removeStickyStyle(r,["bottom"]):this._addStickyStyle(r,"bottom",0,!1)})}_removeStickyStyle(i,e){for(const o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);EB.some(o=>-1===e.indexOf(o)&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,r,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${r}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){const e={top:100,bottom:10,left:1,right:1};let r=0;for(const o of EB)i.style[o]&&(r+=e[o]);return r?`${r}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const r=[],o=i.children;for(let s=0;s0;s--)e[s]&&(r[s]=o,o+=i[s]);return r}}const RO=new t.OlP("CDK_SPL");let Jw=(()=>{class n{constructor(e,r){this.viewContainer=e,this.elementRef=r}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),Qw=(()=>{class n{constructor(e,r){this.viewContainer=e,this.elementRef=r}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),Kw=(()=>{class n{constructor(e,r){this.viewContainer=e,this.elementRef=r}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),Xw=(()=>{class n{constructor(e,r){this.viewContainer=e,this.elementRef=r}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),eT=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M,R){this._differs=e,this._changeDetectorRef=r,this._elementRef=o,this._dir=c,this._platform=g,this._viewRepeater=v,this._coalescedStyleScheduler=T,this._viewportRuler=D,this._stickyPositioningListener=M,this._ngZone=R,this._onDestroy=new ft.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new t.vpe,this.viewChange=new xi({start:0,end:Number.MAX_VALUE}),s||this._elementRef.nativeElement.setAttribute("role","table"),this._document=f,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Wt(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Wt(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe(It(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),mO(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,r,(o,s,c)=>this._getEmbeddedViewArgs(o.item,c),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{r.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,_n.q)(1),It(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");const s=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,s,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");const s=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...r,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((s,c)=>{this._addStickyColumnStyles([s],this._headerRowDefs[c])}),this._rowDefs.forEach(s=>{const c=[];for(let f=0;f{this._addStickyColumnStyles([s],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_getAllRenderRows(){const e=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const f=o&&o.has(c)?o.get(c):[];if(f.length){const g=f.shift();return g.dataIndex=r,g}return{data:e,rowDef:c,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),tT(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=tT(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tT(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tT(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(r=>!r.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,f)=>c||!!f.getColumnsDiff(),r=this._rowDefs.reduce(e,!1);r&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const s=this._footerRowDefs.reduce(e,!1);return s&&this._forceRenderFooterRows(),r||o||s}_switchDataSource(e){this._data=[],mO(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;mO(this.dataSource)?e=this.dataSource.connect(this):function WY(n){return!!n&&(n instanceof Yn.y||(0,Vr.m)(n.lift)&&(0,Vr.m)(n.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=ut(this.dataSource)),this._renderChangeSubscription=e.pipe(It(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,r)=>this._renderRow(this._headerRowOutlet,e,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,r)=>this._renderRow(this._footerRowOutlet,e,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,r){const o=Array.from(r.columns||[]).map(f=>this._columnDefsByName.get(f)),s=o.map(f=>f.sticky),c=o.map(f=>f.stickyEnd);this._stickyStyler.updateStickyColumns(e,s,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const r=[];for(let o=0;o!s.when||s.when(r,e));else{let s=this._rowDefs.find(c=>c.when&&c.when(r,e))||this._defaultRowDef;s&&o.push(s)}return o}_getEmbeddedViewArgs(e,r){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:r}}_renderRow(e,r,o,s={}){const c=e.viewContainer.createEmbeddedView(r.template,s,o);return this._renderCellTemplateForItem(r,s),c}_renderCellTemplateForItem(e,r){for(let o of this._getCellTemplates(e))hu.mostRecentCellOutlet&&hu.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let r=0,o=e.length;r{const o=this._columnDefsByName.get(r);return e.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),r=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of r){const s=this._document.createElement(o.tag);s.setAttribute("role","rowgroup");for(const c of o.outlets)s.appendChild(c.elementRef.nativeElement);e.appendChild(s)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(r,o)=>r||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new i9(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:ut()).pipe(It(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const r=0===this._rowOutlet.viewContainer.length;if(r===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(r){const s=o.createEmbeddedView(e.templateRef),c=s.rootNodes[0];1===s.rootNodes.length&&(null==c?void 0:c.nodeType)===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=r}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(Ui,8),t.Y36(ee),t.Y36(vr),t.Y36(Bb),t.Y36(IO),t.Y36(Nl),t.Y36(RO,12),t.Y36(t.R0b,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,r,o){if(1&e&&(t.Suo(o,Yw,5),t.Suo(o,du,5),t.Suo(o,$w,5),t.Suo(o,jb,5),t.Suo(o,Vb,5)),2&e){let s;t.iGM(s=t.CRH())&&(r._noDataRow=s.first),t.iGM(s=t.CRH())&&(r._contentColumnDefs=s),t.iGM(s=t.CRH())&&(r._contentRowDefs=s),t.iGM(s=t.CRH())&&(r._contentHeaderRowDefs=s),t.iGM(s=t.CRH())&&(r._contentFooterRowDefs=s)}},viewQuery:function(e,r){if(1&e&&(t.Gf(Jw,7),t.Gf(Qw,7),t.Gf(Kw,7),t.Gf(Xw,7)),2&e){let o;t.iGM(o=t.CRH())&&(r._rowOutlet=o.first),t.iGM(o=t.CRH())&&(r._headerRowOutlet=o.first),t.iGM(o=t.CRH())&&(r._footerRowOutlet=o.first),t.iGM(o=t.CRH())&&(r._noDataRowOutlet=o.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,r){2&e&&t.ekj("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:Qm,useExisting:n},{provide:Bb,useClass:X3},{provide:IO,useClass:DB},{provide:RO,useValue:null}])],ngContentSelectors:zY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,r){1&e&&(t.F$t(qY),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[Qw,Jw,Xw,Kw],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function tT(n,i){return n.concat(Array.from(i))}let o9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[Ag]]}),n})();const s9=[[["caption"]],[["colgroup"],["col"]]],a9=["caption","colgroup, col"];let MB=(()=>{class n extends eT{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,r){2&e&&t.ekj("mat-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:Bb,useClass:X3},{provide:eT,useExisting:n},{provide:Qm,useExisting:n},{provide:IO,useClass:DB},{provide:RO,useValue:null}]),t.qOj],ngContentSelectors:a9,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,r){1&e&&(t.F$t(s9),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[Qw,Jw,Xw,Kw],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),FO=(()=>{class n extends Km{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:Km,useExisting:n}]),t.qOj]}),n})(),LO=(()=>{class n extends Xm{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:Xm,useExisting:n}]),t.qOj]}),n})(),BO=(()=>{class n extends du{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:du,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),t.qOj]}),n})(),GO=(()=>{class n extends AO{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]}),n})(),UO=(()=>{class n extends MO{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]}),n})(),IB=(()=>{class n extends jb{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:jb,useExisting:n}]),t.qOj]}),n})(),OB=(()=>{class n extends $w{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:$w,useExisting:n}]),t.qOj]}),n})(),kB=(()=>{class n extends kO{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:kO,useExisting:n}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,r){1&e&&t.GkF(0,0)},directives:[hu],encapsulation:2}),n})(),PB=(()=>{class n extends NO{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:NO,useExisting:n}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,r){1&e&&t.GkF(0,0)},directives:[hu],encapsulation:2}),n})(),_9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o9,In],In]}),n})();function b9(n,i){1&n&&(t.TgZ(0,"h2",9)(1,"strong"),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"LEADERBOARD.TITLETXT")))}const NB=function(n){return["/leaderboard",n]};function y9(n,i){if(1&n&&(t.TgZ(0,"div",10)(1,"div",11)(2,"h3",12)(3,"strong"),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"div",13)(7,"a",14)(8,"strong"),t._uU(9),t.ALo(10,"translate"),t.qZA()()()()),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,3,"LEADERBOARD.SCOREBOARDSECTION")),t.xp6(3),t.Q6J("routerLink",t.VKq(7,NB,e.selectedAgainst)),t.xp6(2),t.Oqu(t.lcZ(10,5,"LEADERBOARD.VIEWBTN"))}}function x9(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-leaderboard-filter",15),t.NdJ("saveData",function(o){return t.CHM(e),t.oxw(2).updateFilter(o)}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("data",e.data)("inDialog",!1)}}function C9(n,i){if(1&n&&(t.TgZ(0,"th",23),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.header)}}function w9(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"img",26),t.NdJ("error",function(o){return t.CHM(e),t.oxw(5).handleBrokenImg(o)}),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("src",null!=e&&e.profile_image?null==e?null:e.profile_image:"assets/images/img-user.jpg",t.LSH)}}function T9(n,i){if(1&n&&(t.TgZ(0,"td",24),t.YNc(1,w9,1,1,"img",25),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=i.$implicit,r=t.oxw().$implicit,o=t.oxw(3);t.Q6J("ngClass",o.loginService.getLoggedInUser().id==e.userId?"text-underline":""),t.xp6(1),t.Q6J("ngIf","name"==r.columnDef),t.xp6(2),t.Oqu(r.cell(e))}}function S9(n,i){1&n&&(t.ynx(0,20),t.YNc(1,C9,2,1,"th",21),t.YNc(2,T9,4,3,"td",22),t.BQk()),2&n&&t.Q6J("matColumnDef",i.$implicit.columnDef)}function D9(n,i){1&n&&t._UZ(0,"tr",27)}function E9(n,i){1&n&&t._UZ(0,"tr",28)}function A9(n,i){if(1&n&&(t.TgZ(0,"table",16),t.YNc(1,S9,3,1,"ng-container",17),t.YNc(2,D9,1,0,"tr",18),t.YNc(3,E9,1,0,"tr",19),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("dataSource",e.scoreBoard),t.xp6(1),t.Q6J("ngForOf",e.columns),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function M9(n,i){1&n&&(t.TgZ(0,"div",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"LEADERBOARD.NOFOUND")," "))}function I9(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",2),t.NdJ("scrolled",function(){t.CHM(e);const o=t.oxw();return!o.isHomePage&&o.onScroll()}),t.YNc(1,b9,4,3,"h2",3),t.YNc(2,y9,11,9,"div",4),t.YNc(3,x9,1,2,"app-leaderboard-filter",5),t.TgZ(4,"div",6),t.YNc(5,A9,4,4,"table",7),t.YNc(6,M9,3,3,"div",8),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("ngClass",e.isHomePage?"":"containerFram main-content scoreboard-ui")("infiniteScrollDistance",1)("infiniteScrollThrottle",50)("infiniteScrollUpDistance",1.5),t.xp6(1),t.Q6J("ngIf",!e.isHomePage),t.xp6(1),t.Q6J("ngIf",e.isHomePage),t.xp6(1),t.Q6J("ngIf",!e.isHomePage),t.xp6(2),t.Q6J("ngIf",e.scoreBoard.length>0),t.xp6(1),t.Q6J("ngIf",!e.scoreBoard.length)}}function O9(n,i){1&n&&(t.TgZ(0,"div",40)(1,"h2",41),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"LEADERBOARD.TITLETXT")))}function k9(n,i){if(1&n&&(t.TgZ(0,"strong"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.xDo("",e.selectedTypeText," ",t.lcZ(2,5,"LEADERBOARD.AGAINSTYOUR")," ",e.selectedAgainstText," ","Month"==e.selectedTimeText||"Year"==e.selectedTimeText?"This":""," ",e.selectedTimeText,"")}}function P9(n,i){1&n&&(t.TgZ(0,"strong"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"LEADERBOARD.SCOREBOARDSECTION")))}function N9(n,i){1&n&&(t.TgZ(0,"div")(1,"span")(2,"mat-icon"),t._uU(3,"expand_more"),t.qZA()()())}function R9(n,i){if(1&n&&(t.TgZ(0,"p",49),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,"LEADERBOARD.POINTS"),": ",e.gameScore,"")}}function F9(n,i){if(1&n&&(t.TgZ(0,"p",50),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit,r=t.oxw(2);t.xp6(1),t.AsE("",t.lcZ(2,2,"LEADERBOARD.PLAYED"),": ",r.convertUTCToLocal(e.updatedDateTime)," ")}}function L9(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,"HOME.WONCOUNT"),": ",e.count,"")}}function B9(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,"HOME.PLAYEDCOUNT"),": ",e.count,"")}}function G9(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE(" ",t.lcZ(2,2,"LEADERBOARD.POINTSPERMIN"),": ",e.pointsPerMin,"")}}function U9(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE(" ",t.lcZ(2,2,"LEADERBOARD.WORDS"),": ",e.totalWords,"")}}function H9(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE(" ",t.lcZ(2,2,"LEADERBOARD.UNIQUEWORDS"),": ",e.uniqueWords,"")}}function j9(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE(" ",t.lcZ(2,2,"LEADERBOARD.MAXWORDSCORE"),": ",e.maxWordScore,"")}}function V9(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE(" ",t.lcZ(2,2,"LEADERBOARD.AVGWORDSCORE"),": ",e.avgWordScore,"")}}function Z9(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE(" ",t.lcZ(2,2,"LEADERBOARD.MAXWORDLENGTH"),": ",e.maxWordLength,"")}}function W9(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE(" ",t.lcZ(2,2,"LEADERBOARD.AVGWORDLENGTH"),": ",e.avgWordLength,"")}}const RB=function(n){return{borderStyle:n}},q9=function(n,i){return{lastNumberBorder:n,rankStyle:i}},z9=function(n,i){return{lastNumberBorder:n,borderStyle:i}};function $9(n,i){if(1&n&&(t.TgZ(0,"mat-grid-list",42)(1,"mat-grid-tile",43),t._uU(2),t.qZA(),t.TgZ(3,"mat-grid-tile",44)(4,"div")(5,"p",45)(6,"span"),t._UZ(7,"img",46),t.qZA(),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,R9,3,4,"p",47),t.YNc(11,F9,3,4,"p",48),t.YNc(12,L9,3,4,"p",35),t.YNc(13,B9,3,4,"p",35),t.YNc(14,G9,3,4,"p",35),t.YNc(15,U9,3,4,"p",35),t.YNc(16,H9,3,4,"p",35),t.YNc(17,j9,3,4,"p",35),t.YNc(18,V9,3,4,"p",35),t.YNc(19,Z9,3,4,"p",35),t.YNc(20,W9,3,4,"p",35),t.qZA()()()),2&n){const e=i.$implicit,r=i.last,o=t.oxw(2);t.Q6J("ngClass",t.VKq(23,RB,!r||o.isHomePage)),t.xp6(1),t.Q6J("ngClass",t.WLB(25,q9,!o.isHomePage&&r,!r))("rowspan",3),t.xp6(1),t.hij(" ",e.rank,""),t.xp6(1),t.Q6J("ngClass",t.WLB(28,z9,!o.isHomePage&&r,!r))("colspan",4)("rowspan",3),t.xp6(4),t.s9C("src",null==e?null:e.profile_image,t.LSH),t.xp6(1),t.AsE(" ",t.lcZ(9,21,"LEADERBOARD.NAME"),": ",""!=e.userName?e.userName:e.name_first,""),t.xp6(2),t.Q6J("ngIf",1==o.selectedType),t.xp6(1),t.Q6J("ngIf",1==o.selectedType),t.xp6(1),t.Q6J("ngIf",2==o.selectedType),t.xp6(1),t.Q6J("ngIf",3==o.selectedType),t.xp6(1),t.Q6J("ngIf",4==o.selectedType),t.xp6(1),t.Q6J("ngIf",5==o.selectedType),t.xp6(1),t.Q6J("ngIf",10==o.selectedType),t.xp6(1),t.Q6J("ngIf",6==o.selectedType),t.xp6(1),t.Q6J("ngIf",7==o.selectedType),t.xp6(1),t.Q6J("ngIf",8==o.selectedType),t.xp6(1),t.Q6J("ngIf",9==o.selectedType)}}function Y9(n,i){if(1&n&&(t.TgZ(0,"div",51),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(4,RB,e.isHomePage)),t.xp6(1),t.hij(" ",t.lcZ(2,2,"LEADERBOARD.NOFOUND")," ")}}function J9(n,i){if(1&n&&(t.TgZ(0,"div",52)(1,"a",14)(2,"strong"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.VKq(4,NB,e.selectedAgainst)),t.xp6(2),t.Oqu(t.lcZ(4,2,"LEADERBOARD.VIEWBTN"))}}const Q9=function(n){return{"sub-border-mobile":n}};function K9(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",30),t.NdJ("scrolled",function(){t.CHM(e);const o=t.oxw();return!o.isHomePage&&o.onScroll()}),t.TgZ(1,"div",31),t.YNc(2,O9,4,3,"div",32),t.TgZ(3,"div",33),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return!o.isHomePage&&o.openDialog()}),t.TgZ(4,"div",34)(5,"h3",12),t.YNc(6,k9,3,7,"strong",35),t.YNc(7,P9,3,3,"strong",35),t.qZA()(),t.TgZ(8,"div"),t.YNc(9,N9,4,0,"div",35),t.qZA()()(),t.TgZ(10,"div",36),t.YNc(11,$9,21,31,"mat-grid-list",37),t.YNc(12,Y9,3,6,"div",38),t.YNc(13,J9,5,6,"div",39),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("ngClass",e.isHomePage?"":"bgColor border")("infiniteScrollDistance",1)("infiniteScrollThrottle",50)("infiniteScrollUpDistance",1.5),t.xp6(2),t.Q6J("ngIf",!e.isHomePage),t.xp6(4),t.Q6J("ngIf",!e.isHomePage),t.xp6(1),t.Q6J("ngIf",e.isHomePage),t.xp6(2),t.Q6J("ngIf",!e.isHomePage),t.xp6(1),t.Q6J("ngClass",t.VKq(12,Q9,!e.isHomePage&&e.scoreBoard.length)),t.xp6(1),t.Q6J("ngForOf",e.isHomePage?e.scoreBoard.slice(0,5):e.scoreBoard),t.xp6(1),t.Q6J("ngIf",!e.scoreBoard.length),t.xp6(1),t.Q6J("ngIf",e.isHomePage)}}let HO=(()=>{class n{constructor(e,r,o,s,c,f,g,v){this._router=e,this._activeRoute=r,this.leaderboardService=o,this.toasterService=s,this.loginService=c,this.translate=f,this.dialog=g,this.breakpointObserver=v,this.displayedColumns=[],this.resultsPerPage=50,this.data={metricId:1,againstId:1,timeId:3,againtsValue:0,timeValue:0,metricValue:0},this.elements=[1],this.scoreBoard=[],this.scoreboardLang={},this.againsts=[{id:1,name:"World"},{id:2,name:"Friends"}],this.timePeroid=[{id:1,name:"Today"},{id:2,name:"Month"},{id:3,name:"Year"},{id:4,name:"Lifetime"}],this.types=[{id:1,name:"Points"},{id:2,name:"Won"},{id:3,name:"Games"},{id:4,name:"Time"},{id:5,name:"Words"},{id:6,name:"Max Score"},{id:7,name:"Avg Score"},{id:8,name:"Max Length"},{id:9,name:"Avg Length"}],this.selectedAgainst=2,this.selectedTime=3,this.selectedType=1,this.subscribeProfiles=[],this.subscribeProfilePic=""}onScroll(){this.filterBySelection(this.scoreBoard.length,this.resultsPerPage,!1,this.scoreBoard[this.scoreBoard.length-1])}ngOnInit(){this.breakpointObserver.observe([ri_HandsetLandscape,ri_HandsetPortrait,ri_TabletLandscape,ri_TabletPortrait]).subscribe(r=>{this.breakpoint=r.matches?1:0}),("1"==this._activeRoute.snapshot.params.against||"2"==this._activeRoute.snapshot.params.against)&&(this.selectedAgainst=parseInt(this._router.url.charAt(this._router.url.length-1))),this.selectedAgainst=this.isHomePage?2:this.selectedAgainst,this.data.againstId=this.selectedAgainst,this.gridCols=window.innerWidth<960?1:3,this.loginService.prevoiusUrl="/leaderboard",JSON.parse(window.localStorage.getItem(ce.userProfile)),this.translate.get("LEADERBOARD").subscribe(r=>{this.scoreboardLang=r,this.selectedTypeText=this.scoreboardLang.POINTS,this.selectedAgainstText=this.scoreboardLang.FRIENDSDDTXT,this.selectedTimeText=this.scoreboardLang.YEARTXT,this.againsts=[{id:1,name:this.scoreboardLang.WORLDDDTXT},{id:2,name:this.scoreboardLang.FRIENDSDDTXT}],this.timePeroid=[{id:1,name:this.scoreboardLang.TODAYTXT},{id:2,name:this.scoreboardLang.MONTHTXT},{id:3,name:this.scoreboardLang.YEARTXT},{id:4,name:this.scoreboardLang.LIFETIMETXT}],this.types=[{id:1,name:this.scoreboardLang.SCORE},{id:2,name:this.scoreboardLang.GAMEWON},{id:3,name:this.scoreboardLang.GAMEPLAYED},{id:4,name:this.scoreboardLang.MINUTES},{id:5,name:this.scoreboardLang.WORDS},{id:10,name:this.scoreboardLang.UNIQUEWORDS},{id:6,name:this.scoreboardLang.MAXSCORE},{id:7,name:this.scoreboardLang.AVGSCORE},{id:8,name:this.scoreboardLang.MAXLENGTH},{id:9,name:this.scoreboardLang.AVGLENGTH}]}),this.data.againsts=this.againsts,this.data.timePeroid=this.timePeroid,this.data.types=this.types,this.filterBySelection(0,this.resultsPerPage,!0,""),(null==this.isHomePage||!this.isHomePage)&&zt.dV.isNativePlatform()&&setTimeout(()=>{this.loginService.pulltoRefresh("scoreBoardContent","/leaderboard")},700)}filterBySelection(e,r,o,s){var f={userId:JSON.parse(window.localStorage.getItem(ce.userProfile)).id,isWorld:1==this.selectedAgainst,timePeriodId:this.selectedTime,typeListId:this.selectedType,lastIndex:e,resultsPerPage:this.isHomePage?5:r,lastObject:s};this.subscribeProfiles&&this.subscribeProfiles.length>0&&this.subscribeProfiles.forEach(g=>{g.unsubscribe()}),this.scoreBoardAPI=this.leaderboardService.getScoredetail(f).subscribe(g=>{if(null!=g&&null!=g&&""!=g){switch((o||0==e)&&(this.scoreBoard=[]),null!=g.scoreAgainsWord?g.scoreAgainsWord.forEach(v=>{v.updatedDateTime=new Date(v.updatedDateTime.replace(/-/g,"/")),v.profile_image="assets/images/img-user.jpg"}):g.scoreAgainsYourFriend.forEach(v=>{v.updatedDateTime=new Date(v.updatedDateTime.replace(/-/g,"/")),v.profile_image="assets/images/img-user.jpg"}),1==this.selectedAgainst?0==this.scoreBoard.length?this.scoreBoard=g.scoreAgainsWord:0!=g.scoreAgainsWord.length&&(this.scoreBoard=this.scoreBoard.concat(g.scoreAgainsWord)):2==this.selectedAgainst&&(0==this.scoreBoard.length?this.scoreBoard=g.scoreAgainsYourFriend:0!=g.scoreAgainsYourFriend.length&&(this.scoreBoard=this.scoreBoard.concat(g.scoreAgainsYourFriend))),this.selectedType){case 1:default:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"points",header:this.scoreboardLang.POINTS,cell:v=>`${v.gameScore}`},{columnDef:"played",header:this.scoreboardLang.PLAYED,cell:v=>`${this.convertUTCToLocal(v.updatedDateTime)}`}];break;case 2:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"woncount",header:this.scoreboardLang.WONCOUNT,cell:v=>`${v.count}`}];break;case 3:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"playedcount",header:this.scoreboardLang.PLAYEDCOUNT,cell:v=>`${v.count}`}];break;case 4:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"pointspermin",header:this.scoreboardLang.POINTSPERMIN,cell:v=>`${v.pointsPerMin}`}];break;case 5:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"words",header:this.scoreboardLang.WORDS,cell:v=>`${v.totalWords}`}];break;case 6:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"maxwordscore",header:this.scoreboardLang.MAXWORDSCORE,cell:v=>`${v.maxWordScore}`}];break;case 7:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"avgwordscore",header:this.scoreboardLang.AVGWORDSCORE,cell:v=>`${v.avgWordScore}`}];break;case 8:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"maxwordlength",header:this.scoreboardLang.MAXWORDLENGTH,cell:v=>`${v.maxWordLength}`}];break;case 9:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"avgwordlength",header:this.scoreboardLang.AVGWORDLENGTH,cell:v=>`${v.avgWordLength}`}];break;case 10:this.columns=[{columnDef:"rank",header:this.scoreboardLang.RANK,cell:v=>`${v.rank}`},{columnDef:"name",header:this.scoreboardLang.NAME,cell:v=>`${""!=v.userName?v.userName:v.name_first}`},{columnDef:"uniquewords",header:this.scoreboardLang.UNIQUEWORDS,cell:v=>`${v.uniqueWords}`}]}this.displayedColumns=this.columns.map(v=>v.columnDef),(g.scoreAgainsYourFriend&&g.scoreAgainsYourFriend.length>0||g.scoreAgainsWord&&g.scoreAgainsWord.length>0)&&this.setImages()}else this.scoreBoard=[]})}onResize(e){this.gridCols=e.target.innerWidth<960?1:3}convertUTCToLocal(e){var r=new Date(e),o=r.getTimezoneOffset(),s=60*r.getHours()+r.getMinutes()-o;r.setHours(s/60),r.setMinutes(s%60);var f=r.toLocaleString(window.localStorage.getItem(ce.language),{month:"short",day:"2-digit"}).split(" "),v=r.toTimeString().split(":");return f[0]+" "+f[1]+", '"+r.getFullYear().toString().substring(4,2)+" @ "+v[0]+":"+v[1]}getTextFromId(){this.selectedTypeText=this.types.filter(e=>e.id===this.selectedType)[0].name,this.selectedAgainstText=this.againsts.filter(e=>e.id===this.selectedAgainst)[0].name,this.selectedTimeText=this.timePeroid.filter(e=>e.id===this.selectedTime)[0].name}openDialog(){$("body").addClass("cdk-global-scrollblock"),this.dialog.open(vY,{panelClass:"scoreboard-dialog",width:"320px",disableClose:!0,data:{metricId:this.selectedType,againstId:this.selectedAgainst,timeId:this.selectedTime,againtsValue:this.selectedAgainstText,timeValue:this.selectedTimeText,metricValue:this.selectedTypeText,againsts:this.againsts,timePeroid:this.timePeroid,types:this.types}}).afterClosed().subscribe(r=>{$("body").removeClass("cdk-global-scrollblock"),console.log("The dialog was closed"),console.log(r),this.selectedType=r.metricId,this.selectedAgainst=r.againstId,this.selectedTime=r.timeId,this.selectedAgainstText=r.againtsValue,this.selectedTimeText=r.timeValue,this.selectedTypeText=r.metricValue,this.filterBySelection(0,this.resultsPerPage,!0,"")})}updateFilter(e){this.selectedType=e.metricId,this.selectedAgainst=e.againstId,this.selectedTime=e.timeId,this.selectedAgainstText=e.againtsValue,this.selectedTimeText=e.timeValue,this.selectedTypeText=e.metricValue,this.filterBySelection(0,this.resultsPerPage,!0,""),this.data.metricId=e.metricId,this.data.againstId=e.againstId,this.data.timeId=e.timeId,this.data.againsts=this.againsts,this.data.timePeroid=this.timePeroid,this.data.types=this.types}setImages(){var e=this,r=JSON.parse(window.localStorage.getItem(ce.userProfile));this.scoreBoard.map((o,s)=>{""!=o.profile_image&&null!=o.profile_image&&"assets/images/img-user.jpg"!=o.profile_image||(e.subscribeProfilePic=e.leaderboardService.getProfilePicture({id:r.id,profileImageId:o.userId}).subscribe(f=>{f?o.profile_image=null!=f.data.profile_image&&""!=f.data.profile_image?f.data.profile_image:"assets/images/img-user.jpg":(o.profile_image="assets/images/img-user.jpg",console.log("Image cant load"))},f=>{o.profile_image="assets/images/img-user.jpg"}),e.subscribeProfiles.push(e.subscribeProfilePic))})}ngOnDestroy(){this.scoreBoardAPI&&this.scoreBoardAPI.unsubscribe(),this.subscribeProfiles&&this.subscribeProfiles.length>0&&this.subscribeProfiles.forEach(e=>{e.unsubscribe()})}handleBrokenImg(e){console.log(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht),t.Y36(mr),t.Y36($m),t.Y36(I),t.Y36(fn),t.Y36(Zn),t.Y36(l),t.Y36(ec))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-leaderboard"]],inputs:{isHomePage:"isHomePage"},decls:2,vars:2,consts:[["id","leaderContent","infinite-scroll","","style","border-radius: 35px;",3,"ngClass","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollUpDistance","scrolled",4,"ngIf"],["infinite-scroll","","id","scoreBoardContent",3,"ngClass","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollUpDistance","scrolled",4,"ngIf"],["id","leaderContent","infinite-scroll","",2,"border-radius","35px",3,"ngClass","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollUpDistance","scrolled"],["class","custom-head-title",4,"ngIf"],["class","","fxLayout","row","fxLayout.xs","column",4,"ngIf"],["class","padding-10-20",3,"data","inDialog","saveData",4,"ngIf"],[1,"mat-elevation-z8","custom_mat_table"],["mat-table","",3,"dataSource",4,"ngIf"],["class","no-records",4,"ngIf"],[1,"custom-head-title"],["fxLayout","row","fxLayout.xs","column",1,""],["fxFlex","80%","fxFlex.sm","65%"],[2,"color","black"],["fxFlex","20%","fxFlex.sm","35%","fxFlex.xs","35%",1,"a-link"],["href","/leaderboard/selectedAgainst",3,"routerLink"],[1,"padding-10-20",3,"data","inDialog","saveData"],["mat-table","",3,"dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["mat-header-cell",""],["mat-cell","",3,"ngClass"],["alt","","referrerpolicy","no-referrer","class","sm-img m-r-10",3,"src","error",4,"ngIf"],["alt","","referrerpolicy","no-referrer",1,"sm-img","m-r-10",3,"src","error"],["mat-header-row",""],["mat-row",""],[1,"no-records"],["infinite-scroll","","id","scoreBoardContent",3,"ngClass","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollUpDistance","scrolled"],["fxLayout","column",1,"borderStyle"],["class","titleP10","fxFlex","100%","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxFlex","100%","fxLayoutAlign","center center",1,"boldFont","p10",3,"click"],["fxFlex","100%"],[4,"ngIf"],[3,"ngClass"],["cols","5","rowHeight","35px",3,"ngClass",4,"ngFor","ngForOf"],["class","no-records",3,"ngClass",4,"ngIf"],["class","a-link","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","100%","fxLayoutAlign","start center",1,"titleP10"],[1,"boldFont"],["cols","5","rowHeight","35px",3,"ngClass"],[1,"font16","numberStyle",3,"ngClass","rowspan"],[1,"leftAlign",2,"top","5px",3,"ngClass","colspan","rowspan"],[1,"font16","marginP",2,"word-break","break-all"],["referrerpolicy","no-referrer",1,"profilePic",3,"src"],["class","font16 marginP",4,"ngIf"],["class","font14 marginP","style","padding-bottom: 5px;",4,"ngIf"],[1,"font16","marginP"],[1,"font14","marginP",2,"padding-bottom","5px"],[1,"no-records",3,"ngClass"],["fxLayoutAlign","center center",1,"a-link"]],template:function(e,r){1&e&&(t.YNc(0,I9,7,9,"div",0),t.YNc(1,K9,14,14,"div",1)),2&e&&(t.Q6J("ngIf",0==r.breakpoint),t.xp6(1),t.Q6J("ngIf",1==r.breakpoint))},directives:[Gt,SO,wn,ci,ti,Ei,ds,bB,MB,Vt,BO,LO,GO,FO,UO,IB,kB,OB,PB,Ir,Jr,Vw,Gb],pipes:[pn],styles:[".w100[_ngcontent-%COMP%]{width:100%!important}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}ul.dropdownMenu1[_ngcontent-%COMP%], li[_ngcontent-%COMP%]:hover, ul.dropdownMenu2[_ngcontent-%COMP%]{cursor:pointer!important}.centerDropDown[_ngcontent-%COMP%]{text-align:center}.rightDD[_ngcontent-%COMP%]{text-align:right}.mat-table[_ngcontent-%COMP%]{background:none!important;width:100%}th.mat-header-cell[_ngcontent-%COMP%]:last-child, td.mat-cell[_ngcontent-%COMP%]:last-child{border-right:none!important}tr.mat-row[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{padding-bottom:20px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom-style:none!important;font-size:12px!important}th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{padding:20px 20px 0;border-bottom-width:1px;border-bottom-style:solid;border-right-style:solid;border-right-width:1px;border-right-color:#d3d3d3}th.mat-header-cell[_ngcontent-%COMP%]{font-size:14px!important;font-weight:700!important}.mat-header-cell[_ngcontent-%COMP%]{color:#333}.table-responsive[_ngcontent-%COMP%]{border:none!important}.no-records[_ngcontent-%COMP%]{height:48px;display:flex;align-items:center;justify-content:center;background:white;margin-top:4%}.custom_mat_table[_ngcontent-%COMP%]{width:100%;border-radius:30px!important;border:1px solid #d3d3d3!important;border-collapse:unset!important;box-shadow:none;overflow-x:auto;min-height:.01%;margin-bottom:10px}.mat-custom-select[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:10px!important}.mat-custom-select[_ngcontent-%COMP%] h4{font-size:14px!important;margin-bottom:5px!important;margin-top:5px!important}.mat-form-field[_ngcontent-%COMP%]{font-size:12px!important;display:block!important}mat-form-field.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-flex{border-radius:50px!important;border:1px solid #d3d3d3!important;padding:0!important;background-color:#fff!important}.scoreboard-ui[_ngcontent-%COMP%] .mat-form-field-underline{width:0px!important}.scoreboard-ui[_ngcontent-%COMP%] .mat-select-arrow-wrapper{height:0px!important}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix{padding:0 1em 1em!important}h2.custom-head-title[_ngcontent-%COMP%]{margin-bottom:0!important}.a-link[_ngcontent-%COMP%]{padding:5px}@media only screen and (max-width:370px){.mat-custom-select[_ngcontent-%COMP%] .mat-grid-tile-content div.m-r-15{margin-right:0!important}}@media screen and (max-width: 767px){.custom_mat_table[_ngcontent-%COMP%]{width:100%;margin-bottom:10px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar}}.btn[_ngcontent-%COMP%]{font-size:14px}@media only screen and (max-width:767px){.widthDD[_ngcontent-%COMP%]{width:100%}.paddingDD[_ngcontent-%COMP%]{padding:6px 0}.paddingCenterDD[_ngcontent-%COMP%]{padding:0 2px}}.text-underline[_ngcontent-%COMP%]{text-decoration:underline;font-weight:700}.mat-card[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none!important}.mat-card[_ngcontent-%COMP%]{border-radius:0;border-bottom:1px solid rgb(207,204,204)}.leftAlign[_ngcontent-%COMP%] div{justify-content:left;padding-left:5px;padding-top:5px}.numberStyle[_ngcontent-%COMP%]{font-weight:700;background-color:#d4cbff}.lastNumberBorder[_ngcontent-%COMP%]{border-bottom-left-radius:20px}.marginP[_ngcontent-%COMP%]{margin:0}.profilePic[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:40px;border:1px solid black;margin-right:5px}.p10[_ngcontent-%COMP%]{padding:5px 10px 0 20px}.titleP10[_ngcontent-%COMP%]{padding:0 10px}.mat-dialog-container[_ngcontent-%COMP%]{padding:15px}.no-records[_ngcontent-%COMP%]{height:50vh;display:flex;align-items:center;justify-content:center;background:white;margin-top:0;border-bottom-right-radius:25px;border-bottom-left-radius:25px}.borderStyle[_ngcontent-%COMP%]{border-radius:0;border-bottom:1px solid rgb(207,204,204)}.rankStyle[_ngcontent-%COMP%]{border-radius:0;border-bottom:1px solid rgb(164 157 157 / 53%)}.padding-10-20[_ngcontent-%COMP%]{padding:10px 20px;display:block}.font14[_ngcontent-%COMP%]{font-size:14px}.sub-border-mobile[_ngcontent-%COMP%]{border-bottom-left-radius:25px;border-bottom-right-radius:25px}.border[_ngcontent-%COMP%]{border:solid rgb(207,204,204) 1px}"]}),n})();function X9(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",33)(1,"h3",34),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"a",35),t.NdJ("click",function(){return t.CHM(e),t.oxw().reEnableEmail(0)}),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,2,"HOME.EMAILNOTIFY")," "),t.xp6(3),t.hij(" ",t.lcZ(6,4,"HOME.CLICKHERE"),""))}function eJ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",37),t._UZ(1,"h3",38),t.TgZ(2,"div",39)(3,"button",40),t.NdJ("click",function(){const o=t.CHM(e),s=o.$implicit,c=o.index;return t.oxw(2).removeInformation(s.id,c)}),t.TgZ(4,"mat-icon"),t._uU(5,"close"),t.qZA()()()()}if(2&n){const e=i.$implicit;t.xp6(1),t.Q6J("innerHTML",e.text,t.oJD)}}function tJ(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,eJ,6,1,"div",36),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.informationList)}}function nJ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",37)(1,"h3",41),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"a",42),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToAccountPage()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"div",39)(10,"button",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeEditProfileNotification()}),t.TgZ(11,"mat-icon"),t._uU(12,"close"),t.qZA()()()()}2&n&&(t.xp6(2),t.hij("",t.lcZ(3,3,"HOME.PROFILEIMGTEXT")," "),t.xp6(3),t.Oqu(t.lcZ(6,5,"HOME.CLICKHERETEXT")),t.xp6(2),t.hij(" ",t.lcZ(8,7,"HOME.UPLOADPROFILEPICTEXT"),""))}function iJ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"h3",41)(1,"a",42),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).resumePlayerGame()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,3,"HOME.CLICKHERETEXT")),t.xp6(2),t.AsE(" ",t.lcZ(5,5,"HOME.SINGLEMULTIGAMETXT")," ",e.singleGamePlayers," ")}}function rJ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"h3",41)(1,"a",42),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).resumePlayerGame()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"HOME.CLICKHERETEXT")),t.xp6(2),t.hij(" ",t.lcZ(5,4,"HOME.SOLOGAMETXT")," "))}function oJ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",43),t.YNc(1,iJ,6,7,"h3",44),t.YNc(2,rJ,6,6,"h3",44),t.TgZ(3,"div",39)(4,"button",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().closeSingleGameNotification()}),t.TgZ(5,"mat-icon"),t._uU(6,"close"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isNewSolo),t.xp6(1),t.Q6J("ngIf",e.isNewSolo)}}const sJ=function(){return["/runningGame"]};function aJ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",43)(1,"h3",41),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"a",45),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"div",39)(8,"button",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().closeSingleGameNotification()}),t.TgZ(9,"mat-icon"),t._uU(10,"close"),t.qZA()()()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,3,"HOME.MULTIGAMETXT")," "),t.xp6(2),t.Q6J("routerLink",t.DdM(7,sJ)),t.xp6(1),t.Oqu(t.lcZ(6,5,"HOME.RESUMEGAMETXT")))}const lJ=function(){return["/badges"]};function cJ(n,i){1&n&&(t.TgZ(0,"div",46)(1,"a",47)(2,"strong"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("routerLink",t.DdM(4,lJ)),t.xp6(2),t.Oqu(t.lcZ(4,2,"HOME.VIEWBTN")))}const LB=function(){return["/account"]};function uJ(n,i){1&n&&(t.TgZ(0,"div",46)(1,"a",48)(2,"strong"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("routerLink",t.DdM(4,LB)),t.xp6(2),t.Oqu(t.lcZ(4,2,"HOME.VIEWBTN")))}const dJ=function(n){return{"text-center":n}};function hJ(n,i){if(1&n&&(t.TgZ(0,"p",51),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).$implicit,r=t.oxw();t.s9C("id",e.id),t.Q6J("ngClass",t.VKq(4,dJ,0==r.breakpoint))("fxFlex",1==r.breakpoint?"85%":""),t.xp6(1),t.hij(" ",e.name," ")}}const fJ=function(n,i){return{"text-center":n,"txt-align-end":i}};function pJ(n,i){if(1&n&&(t.ynx(0),t.YNc(1,hJ,2,6,"p",50),t.TgZ(2,"p",16),t._uU(3),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,r=t.oxw();t.xp6(1),t.Q6J("ngIf",e.name),t.xp6(1),t.Q6J("ngClass",t.WLB(4,fJ,0==r.breakpoint,1==r.breakpoint))("fxFlex",1==r.breakpoint?"15%":""),t.xp6(1),t.hij(" ",e.value," ")}}const gJ=function(n,i){return{rgtborder:n,"custom-game-statics":!0,"padding-20":i}};function mJ(n,i){if(1&n&&(t.TgZ(0,"div",49),t.YNc(1,pJ,4,7,"ng-container",4),t.qZA()),2&n){const e=i.$implicit,r=t.oxw();t.Q6J("ngClass",t.WLB(3,gJ,0==r.breakpoint,1==r.breakpoint))("fxLayout",1==r.breakpoint?"row":"column"),t.xp6(1),t.Q6J("ngIf",0==r.breakpoint||1==r.breakpoint&&4!=e.id&&6!=e.id)}}const _J=function(){return{tabValue:"2"}};function vJ(n,i){1&n&&(t.TgZ(0,"div",52)(1,"a",53)(2,"strong"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("routerLink",t.DdM(5,LB))("queryParams",t.DdM(6,_J)),t.xp6(2),t.Oqu(t.lcZ(4,3,"HOME.VIEWBTN")))}const bJ=function(n){return{"remove-purple-border":n}},yJ=function(n){return{"font-color-white":n}},BB=function(n){return{"sub-border-mobile":n}},xJ=function(n){return{rgtborder:n}},CJ=function(){return{"m-r-5":!0}},wJ=function(){return{"m-r-10":!0}},TJ=function(n){return{"m-r-10":n}},SJ=function(n){return{"m-l-10":n}},GB=function(n){return{"remove-padding sub-border-mobile":n}},UB=function(n){return{"padding-20":n}},DJ=function(n){return{"sub-border-mobile remove-padding":n}};let EJ=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M){this.leaderBoardService=e,this.accountService=r,this.elementRef=o,this.newGameService=s,this.runningGameService=c,this.websocketService=f,this.translate=g,this.loginService=v,this.toasterService=T,this._router=D,this.breakpointObserver=M,this.forHomePageData=!0,this.totalPlayedGames=0,this.totalPoints=0,this.winGames=0,this.unsubscriber=new ft.x,this.scoreBoardAgainstWord=[],this.scoreBoardAgainstFriends=[],this.gameStatistics=[],this.informationList=[],this.selectedStatisticsAgainstFri=1,this.selectedStatisticsAgainstWorld=1,this.types=[{id:1,name:"Points"},{id:2,name:"Won"},{id:3,name:"Games"}],this.joinGame={gameCode:"",name:"",userId:"",code:"en",profileImg:"",homePage:!0}}ngOnInit(){zt.dV.isNativePlatform()&&setTimeout(()=>{this.loginService.pulltoRefresh("homeContent","/home")},700),this.breakpointObserver.observe([ri_HandsetLandscape,ri_HandsetPortrait,ri_TabletLandscape,ri_TabletPortrait]).subscribe(g=>{this.breakpoint=g.matches?1:0}),history.pushState(null,""),Si(window,"popstate").pipe(It(this.unsubscriber)).subscribe(g=>{history.pushState(null,"")}),this.translate.get("HOME").subscribe(g=>{this.homeTranObj=g,this.words=this.homeTranObj.WORDS,this.uniqueWords=this.homeTranObj.UNIQUEWORDS,this.maxWordScore=this.homeTranObj.MAXWORDSCORE,this.avgWordScore=this.homeTranObj.AVGWORDSCORE,this.maxWordLen=this.homeTranObj.MAXWORDLENGTH,this.avgWordLen=this.homeTranObj.AVGWORDLENGTH,this.types=[{id:1,name:this.homeTranObj.SCORE},{id:2,name:this.homeTranObj.GAMEWON},{id:3,name:this.homeTranObj.GAMEPLAYED}]}),this.translate.get("JOINGAME").subscribe(g=>{this.joinGameTranbj=g}),this.loginService.prevoiusUrl="/home",this.loginService.isLogin=!1;var e=JSON.parse(window.localStorage.getItem(ce.userProfile));if(this.name=e.nameFirst,this.profileImage=e.profileImage,this.fullName=e.nameFirst+" "+e.nameLast,this.leaderBoardService.checkEmailUnsubscribed({userId:e.id}).subscribe(g=>{this.isUnsubscribe=g.isUnsubscribe}),e&&("1"==e.SignUpType||"2"==e.SignUpType)&&null==e.birthDate){var o=new Date;o.getMonth(),o.getDate(),o.getFullYear()}this.getGameStatistics(e),this.getInformationList(),this.getGameInformation(e),this.isVisibleEditProfileNotificaton=window.localStorage.getItem("editProfileNotificaton"),document.addEventListener("deviceready",()=>{setTimeout(()=>{zt.dV.isNativePlatform()},2e3)},!1)}ngOnDestroy(){this.unsubscriber.next(),this.unsubscriber.complete()}getGameInformation(e){this.newGameService.getGameInformation({userId:e.id}).subscribe(o=>{o&&o.statusType==xn.success&&(console.log(navigator.language||navigator.userLanguage),this.isSingleGame=o.data.isSingleGame,this.isGameActive=o.data.isGameActive,this.resumeGameCode=o.data.gameCode,this.singleGamePlayers=o.data.playersName,this.isNewSolo=o.data.isNewSolo,this.isAllowNotification=o.data.isNotificationAllow)})}resumePlayerGame(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile)),r={gameCode:this.resumeGameCode,code:e.code,userId:e.id};this.websocketService.initSocket(this.resumeGameCode),this.runningGameService.resumeGame(r).subscribe(o=>{o.data.scoreBoard.length>0?(window.localStorage.setItem(ce.gameId,o.data.gameCode),this.newGameService.playGameSource=o.data,"0"==this.newGameService.playGameSource.status||0==this.newGameService.playGameSource.isNewSolo?(this.websocketService.messages.next({msg:{data:o.data}}),this._router.navigate(["/playGame"])):this._router.navigate(["/playGame"])):alert("error")})}closeSingleGameNotification(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));if(null!=e)var r={userId:e.id,gameCode:this.resumeGameCode};this.accountService.updateGameNotification(r).subscribe(o=>{"success"==o.statusType?this.isAllowNotification=!1:this.toasterService.Error(o.msg,"Error")})}getGameStatistics(e){this.accountService.getGameStatistics({userId:e.id}).subscribe(o=>{o&&o.statusType==xn.success?(this.totalPlayedGames=o.userDetail.totalGamesPlayed,this.totalPoints=o.userDetail.competewFriendsTotalPoints,this.winGames=o.userDetail.competewFriendsGameWonCount,this.gameStatistics=[{name:this.words,value:o.userDetail.totalWords,id:1},{name:this.uniqueWords,value:o.userDetail.uniqueWords,id:2},{name:this.maxWordScore,value:o.userDetail.maxWordScore,id:3},{name:this.avgWordScore,value:o.userDetail.avgWordScore,id:4},{name:this.maxWordLen,value:o.userDetail.maxWordLength,id:5},{name:this.avgWordLen,value:o.userDetail.avgWordLength,id:6}],console.log(this.gameStatistics)):this.toasterService.Error(o.msg,"Error")})}getInformationList(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));if(null!=e)var r={userId:e.id};this.accountService.getInfoList(r).subscribe(o=>{o&&null!=o&&(this.informationList=o.data,setTimeout(()=>{this.elementRef.nativeElement.querySelectorAll("a").forEach(c=>{c.addEventListener("click",f=>this.introductoryClick(f))})},1500))})}introductoryClick(e){"qa-app.lastletterfirst.com"==e.currentTarget.hostname||"app.lastletterfirst.com"==e.currentTarget.hostname?(e.preventDefault(),""!=e.currentTarget.hash?this._router.navigate([e.currentTarget.pathname],{fragment:e.currentTarget.hash.split("#")[1]}):this._router.navigate([e.currentTarget.pathname])):window.location.href(e.currentTarget.href)}removeInformation(e,r){var o=JSON.parse(window.localStorage.getItem(ce.userProfile));if(null!=o)var s={userId:o.id,id:e};this.accountService.removeInformation(s).subscribe(c=>{"success"==c.statusType?(this.informationList.splice(r,1),this.toasterService.Success(c.msg,"Success!")):this.toasterService.Error(c.msg,"Error")})}reEnableEmail(e){var r=JSON.parse(window.localStorage.getItem(ce.userProfile)),o={isUnsubscribe:e,encEmail:btoa(r.email)};this.loginService.emailUnsubscribed(o).subscribe(s=>{if("success"==s.statusType){var c=JSON.parse(localStorage.getItem(ce.userProfile));c.isUnsubscribe=e.toString(),window.localStorage.setItem(ce.userProfile,JSON.stringify(c)),this.isUnsubscribe=e,this.toasterService.Success(s.msg,"Success!")}else this.toasterService.Error(s.msg,"Error")})}joinPlayer(){""!=this.joinGame.gameCode?(this.loggedInUser=this.loginService.getLoggedInUser(),this.joinGame.name=null!=this.loggedInUser&&null!=this.loggedInUser?this.loggedInUser.userName:"",this.joinGame.userId=null!=this.loggedInUser&&null!=this.loggedInUser?this.loggedInUser.id:"",this.newGameService.uninvitedPlayerJoin(this.joinGame).subscribe(e=>{e&&"fail"==e.statusType?this.toasterService.Error(e.msg,"Error"):(window.localStorage.setItem(ce.gameId,this.joinGame.gameCode),this.newGameService.setFromHomePage(),this._router.navigate(["/newGame"]))})):this.toasterService.Error(this.joinGameTranbj.ENTERNAMEMSG,"Error")}convertUTCToLocal(e){var r=new Date(e),o=r.getTimezoneOffset(),s=60*r.getHours()+r.getMinutes()-o;r.setHours(s/60),r.setMinutes(s%60);var f=r.toLocaleString(window.localStorage.getItem(ce.language),{month:"short",day:"2-digit"}).split(" "),v=r.toTimeString().split(":");return f[0]+" "+f[1]+", '"+r.getFullYear().toString().substr(-2)+" @ "+v[0]+":"+v[1]}redirectToNewGame(){this.newGameService.gamePlayersObj=null,this._router.navigate(["/newGame"])}removeEditProfileNotification(){this.isVisibleEditProfileNotificaton="false",window.localStorage.setItem("editProfileNotificaton","false")}goToAccountPage(){this._router.navigate(["/account"])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36($m),t.Y36(Es),t.Y36(t.SBq),t.Y36(bo),t.Y36(Ka),t.Y36(tc),t.Y36(Zn),t.Y36(fn),t.Y36(I),t.Y36(Ht),t.Y36(ec))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-home"]],decls:78,vars:101,consts:[["id","homeContent",1,"bg-container","home-ui",3,"ngClass"],[1,"m-b-20","p-t-15","welcmeTxt"],[3,"ngClass"],["class","notify-card info-bg",4,"ngIf"],[4,"ngIf"],["fxLayout","row","class","notify-card info-bg",4,"ngIf"],["class","notify-card game-bg",4,"ngIf"],["fxLayoutGap","20px",1,"",3,"fxLayout"],["fxLayout","row","fxLayoutGap","30px","fxLayoutGap.xs","10px","fxLayoutGap.sm","20px","ngStyle.sm","padding: 10px 20px","ngStyle.xs","padding: 10px 20px",1,"white-bg-card",2,"padding","10px 30px",3,"fxFlex","ngClass"],["fxFlexAlign","center",1,"avatar-preview"],["id","imagePreview","referrerpolicy","no-referrer",3,"src"],["fxFlex","50%","fxFlexAlign","center"],[1,"m-b-0",2,"color","black"],[1,"user-game-details"],["ngClass.xs","custom-mat-icon","ngStyle.xs","margin-right: 0px",2,"color","black","vertical-align","middle","margin-right","10px"],["ngStyle.sm","padding: 10px 20px","ngStyle.xs","padding: 10px 20px",1,"white-bg-card",2,"padding","10px 30px",3,"fxLayout","fxFlex","ngClass"],[3,"ngClass","fxFlex"],[2,"color","black"],["fxLayout","row"],["appearance","fill","fxFlex","70%","fxFlex.xs","64%",3,"ngClass.xs","ngClass.sm"],["matInput","","name","txtCode","value","","trim","","required","",3,"placeholder","ngModel","ngModelChange"],["mat-raised-button","","fxFlex","30%","fxFlex.xs","36%","color","accent",3,"ngClass","click"],[1,"",3,"ngClass","fxFlex"],["mat-raised-button","","color","accent",3,"click"],["ngStyle.sm","padding: 10px 20px 0px","ngStyle.xs","padding: 10px 20px 0px",1,"white-bg-card","m-t-20",2,"padding","10px 30px",3,"ngClass"],["fxLayout","row",1,""],["fxFlex","80%","fxFlex.sm","65%","fxFlex.xs","65%",3,"ngClass"],["class","a-link","fxFlex","20%","fxFlex.sm","35%","fxFlex.xs","35%",4,"ngIf"],[1,""],[3,"isHomePage"],[1,"game-statistics",3,"fxLayout"],["fxFlex","16.6%",3,"ngClass","fxLayout",4,"ngFor","ngForOf"],["class","a-link","style","border-top:solid rgb(207, 204, 204) 1px;","fxLayoutAlign","center center",4,"ngIf"],[1,"notify-card","info-bg"],["fxFlexAlign","center",1,"info-line"],[1,"font-weight-bold","cursorPointer",3,"click"],["fxLayout","row","class","notify-card info-bg",4,"ngFor","ngForOf"],["fxLayout","row",1,"notify-card","info-bg"],["fxFlex","80%","fxFlexAlign","center",1,"info-line",3,"innerHTML"],["fxFlex","20%","fxFlexAlign","center"],["mat-icon-button","","matSuffix","",2,"float","right","color","#fff",3,"click"],["fxFlex","80%","fxFlexAlign","center",1,"info-line"],[1,"cursorPointer",3,"click"],[1,"notify-card","game-bg"],["class","info-line","fxFlex","80%","fxFlexAlign","center",4,"ngIf"],[1,"cursorPointer",3,"routerLink"],["fxFlex","20%","fxFlex.sm","35%","fxFlex.xs","35%",1,"a-link"],["href","/badges",3,"routerLink"],["href","/account",3,"routerLink"],["fxFlex","16.6%",3,"ngClass","fxLayout"],[3,"id","ngClass","fxFlex",4,"ngIf"],[3,"id","ngClass","fxFlex"],["fxLayoutAlign","center center",1,"a-link",2,"border-top","solid rgb(207, 204, 204) 1px"],["href","/account",3,"routerLink","queryParams"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"h3",1)(2,"strong",2),t._uU(3),t.ALo(4,"translate"),t.ALo(5,"translate"),t.qZA()(),t.YNc(6,X9,7,6,"div",3),t.YNc(7,tJ,2,1,"div",4),t.YNc(8,nJ,13,9,"div",5),t.YNc(9,oJ,7,2,"div",6),t.YNc(10,aJ,11,8,"div",6),t.TgZ(11,"div",7)(12,"div",8)(13,"div",9),t._UZ(14,"img",10),t.qZA(),t.TgZ(15,"div",11)(16,"h3",12)(17,"strong"),t._uU(18),t.qZA()(),t.TgZ(19,"p",13)(20,"mat-icon",14),t._uU(21,"check_box"),t.qZA(),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.TgZ(24,"p",13)(25,"mat-icon",14),t._uU(26,"stars"),t.qZA(),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"p",13)(30,"mat-icon",14),t._uU(31,"emoji_events"),t.qZA(),t._uU(32),t.ALo(33,"translate"),t.qZA()()(),t.TgZ(34,"div",15)(35,"div",16)(36,"h3",17)(37,"strong"),t._uU(38),t.ALo(39,"translate"),t.qZA()(),t.TgZ(40,"div",18)(41,"mat-form-field",19)(42,"input",20),t.NdJ("ngModelChange",function(s){return r.joinGame.gameCode=s}),t.ALo(43,"translate"),t.qZA()(),t.TgZ(44,"button",21),t.NdJ("click",function(){return r.joinPlayer()}),t._uU(45),t.ALo(46,"translate"),t.qZA()()(),t.TgZ(47,"div",22)(48,"h3",17)(49,"strong"),t._uU(50),t.ALo(51,"translate"),t.qZA()(),t.TgZ(52,"button",23),t.NdJ("click",function(){return r.redirectToNewGame()}),t._uU(53),t.ALo(54,"translate"),t.qZA()()()(),t.TgZ(55,"div",24)(56,"div",25)(57,"div",26)(58,"h3",17)(59,"strong"),t._uU(60),t.ALo(61,"translate"),t.qZA()()(),t.YNc(62,cJ,5,5,"div",27),t.qZA(),t.TgZ(63,"div",28),t._UZ(64,"app-badges",29),t.qZA()(),t.TgZ(65,"div",24)(66,"div",25)(67,"div",26)(68,"h3",17)(69,"strong"),t._uU(70),t.ALo(71,"translate"),t.qZA()()(),t.YNc(72,uJ,5,5,"div",27),t.qZA(),t.TgZ(73,"div",30),t.YNc(74,mJ,2,6,"div",31),t.YNc(75,vJ,5,7,"div",32),t.qZA()(),t.TgZ(76,"div",24),t._UZ(77,"app-leaderboard",29),t.qZA()()),2&e&&(t.Q6J("ngClass",t.VKq(75,bJ,1==r.breakpoint)),t.xp6(2),t.Q6J("ngClass",t.VKq(77,yJ,1==r.breakpoint)),t.xp6(1),t.lnq("",t.lcZ(4,51,"HOME.HI")," ",r.name,", ",t.lcZ(5,53,"HOME.WELCOMETO")," Last Letter First!"),t.xp6(3),t.Q6J("ngIf",1==r.isUnsubscribe),t.xp6(1),t.Q6J("ngIf",r.informationList.length>0),t.xp6(1),t.Q6J("ngIf",!r.profileImage&&"true"==r.isVisibleEditProfileNotificaton),t.xp6(1),t.Q6J("ngIf",r.isSingleGame&&r.isGameActive&&r.isAllowNotification),t.xp6(1),t.Q6J("ngIf",!r.isSingleGame&&r.isGameActive&&r.isAllowNotification),t.xp6(1),t.Q6J("fxLayout",1==r.breakpoint?"column-reverse":""),t.xp6(1),t.Q6J("fxFlex",1==r.breakpoint?"100%":"40%")("ngClass",t.VKq(79,BB,1==r.breakpoint)),t.xp6(2),t.Q6J("src",r.profileImage?r.profileImage:"assets/images/img-user.jpg",t.LSH),t.xp6(4),t.Oqu(r.fullName),t.xp6(4),t.AsE(" ",r.totalPlayedGames," ",t.lcZ(23,55,"HOME.GAME")," "),t.xp6(5),t.AsE(" ",r.totalPoints," ",t.lcZ(28,57,"HOME.POINT")," "),t.xp6(5),t.AsE(" ",r.winGames," ",t.lcZ(33,59,"HOME.WIN")," "),t.xp6(2),t.Q6J("fxLayout",1==r.breakpoint?"column":"row")("fxFlex",1==r.breakpoint?"100%":"60%")("ngClass",t.VKq(81,BB,1==r.breakpoint)),t.xp6(1),t.Q6J("ngClass",t.VKq(83,xJ,0==r.breakpoint))("fxFlex",1==r.breakpoint?"100%":"60%"),t.xp6(3),t.Oqu(t.lcZ(39,61,"HOME.JOINSECTIONTXT")),t.xp6(3),t.Q6J("ngClass.xs",t.DdM(85,CJ))("ngClass.sm",t.DdM(86,wJ)),t.xp6(1),t.s9C("placeholder",t.lcZ(43,63,"HOME.CODEPLACE")),t.Q6J("ngModel",r.joinGame.gameCode),t.xp6(2),t.Q6J("ngClass",t.VKq(87,TJ,0==r.breakpoint)),t.xp6(1),t.hij(" ",t.lcZ(46,65,"HOME.JOINBTN")," "),t.xp6(2),t.Q6J("ngClass",t.VKq(89,SJ,0==r.breakpoint))("fxFlex",1==r.breakpoint?"100%":"40%"),t.xp6(3),t.Oqu(t.lcZ(51,67,"HOME.NEWGAMESECTION")),t.xp6(3),t.hij(" ",t.lcZ(54,69,"HOME.NEWGAMEBTN")," "),t.xp6(2),t.Q6J("ngClass",t.VKq(91,GB,1==r.breakpoint)),t.xp6(2),t.Q6J("ngClass",t.VKq(93,UB,1==r.breakpoint)),t.xp6(3),t.Oqu(t.lcZ(61,71,"HOME.BADGESSECTION")),t.xp6(2),t.Q6J("ngIf",0==r.breakpoint),t.xp6(2),t.Q6J("isHomePage",r.forHomePageData),t.xp6(1),t.Q6J("ngClass",t.VKq(95,GB,1==r.breakpoint)),t.xp6(2),t.Q6J("ngClass",t.VKq(97,UB,1==r.breakpoint)),t.xp6(3),t.Oqu(t.lcZ(71,73,"HOME.STATESECTION")),t.xp6(2),t.Q6J("ngIf",0==r.breakpoint),t.xp6(1),t.Q6J("fxLayout",1==r.breakpoint?"column":"row"),t.xp6(1),t.Q6J("ngForOf",r.gameStatistics),t.xp6(1),t.Q6J("ngIf",1==r.breakpoint),t.xp6(1),t.Q6J("ngClass",t.VKq(99,DJ,1==r.breakpoint)),t.xp6(1),t.Q6J("isHomePage",r.forHomePageData))},directives:[wn,ci,Gt,Wl,Vt,ti,Ei,Di,jw,Jr,ds,qo,Qf,cu,Lb,Xl,Kt,jd,xr,Cr,dB,Ir,HO],pipes:[pn],styles:[".m-t-0[_ngcontent-%COMP%]{margin-top:0!important}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px!important}.alert-msg[_ngcontent-%COMP%]{color:#fff;border-color:#17a2b8;background-color:#17a2b8;border-radius:35px;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.alert-designee-msg[_ngcontent-%COMP%]{color:#fff;border-color:#f99301;background-color:#f99301;border-radius:35px;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.cursorPointer[_ngcontent-%COMP%]{cursor:pointer}.font-weight-bold[_ngcontent-%COMP%]{font-weight:600}.text-white[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%] a{color:#fff;border-bottom:1px solid white}.info[_ngcontent-%COMP%]{display:inline-block;float:none}.text-underline[_ngcontent-%COMP%]{text-decoration:underline;font-weight:700}.btn-txt-size[_ngcontent-%COMP%]{font-size:18px}.home-ui[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:0!important}.txt-align-end[_ngcontent-%COMP%]{text-align:end;padding:0}.game-bg[_ngcontent-%COMP%]{background-color:#64bd63!important}.info-bg[_ngcontent-%COMP%]{background-color:#f99301!important}.info-line[_ngcontent-%COMP%]{font-size:16px!important}.notify-card[_ngcontent-%COMP%]{border-radius:30px;padding:10px;margin-bottom:20px!important}.notify-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#fff;margin:0 0 0 15px!important}.white-bg-card[_ngcontent-%COMP%]{background-color:#fff;border-radius:25px}.avatar-preview[_ngcontent-%COMP%]{width:130px;height:130px;position:relative;border-radius:100%;border:1px solid #d4cbff;box-shadow:0 2px 4px #0000001a}.avatar-preview[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:100%;background-size:cover;background-repeat:no-repeat;background-position:center}.user-game-details[_ngcontent-%COMP%]{margin-bottom:0}mat-form-field.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-flex{border-radius:50px!important;border:1px solid #d3d3d3!important;padding:0!important;background-color:#fff!important}.home-ui[_ngcontent-%COMP%] .mat-form-field-underline{width:0px!important}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix{padding:0 1em .7em!important}mat-form-field[_ngcontent-%COMP%]{margin-right:15px;width:66%}.mat-raised-button[_ngcontent-%COMP%]{padding:5px 0;width:100%}.custom-game-statics[_ngcontent-%COMP%]:last-child{border:none!important}@media screen and (max-width: 959px){.avatar-preview[_ngcontent-%COMP%]{width:100px;height:100px;position:relative;border-radius:100%;border:1px solid #d4cbff;box-shadow:0 2px 4px #0000001a}}.custom-mat-icon[_ngcontent-%COMP%]{width:auto!important;height:auto!important;font-size:16px} .mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:none!important}.sub-border-mobile[_ngcontent-%COMP%]{border:solid rgb(207,204,204) 1px}.remove-purple-border[_ngcontent-%COMP%]{border-color:unset;background-color:unset;border:0}.remove-padding[_ngcontent-%COMP%]{padding-right:0!important;padding-left:0!important}.border-bottom-last[_ngcontent-%COMP%]{border-bottom:solid rgb(207,204,204) 1px}.padding-20[_ngcontent-%COMP%]{padding-right:20px!important;padding-left:20px!important}.font-color-white[_ngcontent-%COMP%]{color:#fff}.m-b-0[_ngcontent-%COMP%]{margin-bottom:0!important}.game-statistics[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0!important}.viewBtn[_ngcontent-%COMP%]{padding:3px}.a-link[_ngcontent-%COMP%]{padding:5px}.welcmeTxt[_ngcontent-%COMP%]{margin-top:0!important}"]}),n})();class AJ{constructor(){this.email="",this.password="",this.usertoken=""}}const MJ=function(n,i){return{"wrap-login p-l-40 p-r-40 p-t-30":n,"setNativeMargin bgColor border p-l-20 p-t-20 p-r-20 w100":i}};function IJ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"form",4)(3,"span",5),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",6)(7,"input",7),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().resetPasswordModel.password=o}),t.ALo(8,"translate"),t.qZA(),t._UZ(9,"span",8),t.qZA(),t.TgZ(10,"div",9)(11,"input",10),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().confirmPassword=o}),t.ALo(12,"translate"),t.qZA(),t._UZ(13,"span",8),t.qZA(),t.TgZ(14,"div",11)(15,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetPassword()}),t._uU(16),t.ALo(17,"translate"),t.qZA()()()()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngClass",t.WLB(15,MJ,!e._loginService.isNative,e._loginService.isNative)),t.xp6(3),t.hij(" ",t.lcZ(5,7,"RESETPASSWORD.TITLE")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(8,9,"RESETPASSWORD.PLACENEWPW")),t.Q6J("ngModel",e.resetPasswordModel.password),t.xp6(4),t.s9C("placeholder",t.lcZ(12,11,"RESETPASSWORD.PLACECONFIRMPW")),t.Q6J("ngModel",e.confirmPassword),t.xp6(5),t.hij(" ",t.lcZ(17,13,"RESETPASSWORD.SUBMITBTN")," ")}}const OJ=function(){return["/login"]};function kJ(n,i){if(1&n&&(t.TgZ(0,"div",13)(1,"div",13)(2,"div",14),t._UZ(3,"img",15),t.TgZ(4,"p",16)(5,"strong"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._UZ(8,"br"),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"a",17),t._uU(12),t.ALo(13,"translate"),t.qZA(),t._uU(14),t.ALo(15,"translate"),t._UZ(16,"br"),t._uU(17," Last Letter First! "),t.qZA()()()()),2&n){const e=t.oxw();t.Q6J("ngClass",e._loginService.isNative?"":"marginTop mainContentDiv"),t.xp6(1),t.Q6J("ngClass",e._loginService.isNative?"bgColor border m15 p-l-10 p-t-10 p-r-10 p-b-10":"main-content containerFram"),t.xp6(5),t.Oqu(t.lcZ(7,7,"ACTIVATION.EXPLINK")),t.xp6(3),t.hij(" ",t.lcZ(10,9,"ACTIVATION.NOTUSELINK")," "),t.xp6(2),t.Q6J("routerLink",t.DdM(15,OJ)),t.xp6(1),t.Oqu(t.lcZ(13,11,"ACTIVATION.LOGIN")),t.xp6(2),t.hij(" ",t.lcZ(15,13,"ACTIVATION.CNTPLAYTXT")," ")}}let PJ=(()=>{class n{constructor(e,r,o,s){this._loginService=e,this._router=r,this.toasterService=o,this.translate=s,this.userModel=new Gw,this.resetPasswordModel=new AJ,this.confirmPassword=""}ngOnInit(){this.translate.get("RESETPASSWORD").subscribe(o=>{this.resetPWTranslate=o});var e=this._router.url.split("=")[1];this.resetPasswordModel.usertoken=e,this._loginService.getforgotpasswordemail({usertoken:e}).subscribe(o=>{"fail"==o.statusType&&"LinkExpired"==o.status?this.status=o.status:o.statusType==xn.error?this._router.navigate(["/login"]):this.resetPasswordModel.email=o.user.email})}resetPassword(){if(""==this.resetPasswordModel.password.trim())return this.resetPasswordModel.password="",void this.toasterService.Error(this.resetPWTranslate.ENTERPW,"Error");this.resetPasswordModel.password.length<8?this.toasterService.Error(this.resetPWTranslate.INVALIDPW,"Error"):""!=this.confirmPassword.trim()?this.resetPasswordModel.password==this.confirmPassword?this._loginService.resetPassword(this.resetPasswordModel).subscribe(e=>{e&&e.statusType==xn.success?(this._router.navigate(["/home"]),this.toasterService.Success(e.msg,"Success")):this.toasterService.Error(e.msg,"Error")}):this.toasterService.Error(this.resetPWTranslate.PWMUSTMATCH,"Error"):this.toasterService.Error(this.resetPWTranslate.ENTERCPW,"Error")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(Ht),t.Y36(I),t.Y36(Zn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-reset-password"]],decls:2,vars:2,consts:[["class","container-login",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"container-login"],[1,"p-b-20",3,"ngClass"],[1,"login-form","validate-form"],[1,"login-form-title","p-b-20"],["data-validate","Enter password",1,"wrap-input","validate-input","m-b-20"],["type","password","name","password","trim","",1,"form-control","input",3,"ngModel","placeholder","ngModelChange"],[1,"focus-input"],["data-validate","Enter password",1,"wrap-input","validate-input","m-b-25"],["type","password","name","confirmPassword","trim","",1,"form-control","input",3,"ngModel","placeholder","ngModelChange"],["fxLayout","row","fxLayoutAlign","center"],["mat-raised-button","","fxFlex","100","color","accent",1,"btn-submit",3,"click"],[3,"ngClass"],["fxLayout","column","fxLayoutAlign","center center",1,"m-b-50","m-t-4"],["ngClass.xs","w100","src","assets/images/link_expired.png"],[1,"m-t-10","m-b-0","text-center"],[2,"cursor","pointer","color","#ff4081",3,"routerLink"]],template:function(e,r){1&e&&(t.YNc(0,IJ,18,18,"div",0),t.YNc(1,kJ,18,16,"div",1)),2&e&&(t.Q6J("ngIf","LinkExpired"!=r.status),t.xp6(1),t.Q6J("ngIf","LinkExpired"==r.status))},directives:[Gt,wn,ci,Hd,Ud,Ja,Xl,Kt,xr,Cr,ti,Ir,Di,Ei,ds],pipes:[pn],styles:[".container[_ngcontent-%COMP%] .wrap-login[_ngcontent-%COMP%]{width:300px}.container-login[_ngcontent-%COMP%] .wrap-login[_ngcontent-%COMP%]{width:390px;margin-top:18vh}.login-form[_ngcontent-%COMP%]{width:100%}.container-login[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:0 15px;position:relative;z-index:1}.login-form-title[_ngcontent-%COMP%]{display:block;font-family:Segoe UI Bold;font-size:22px;font-weight:700;line-height:1.2}.wrap-input[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;border-radius:20px}.input[_ngcontent-%COMP%]::placeholder{font-size:14px;color:#000;text-transform:uppercase}.input[_ngcontent-%COMP%]{font-family:Segoe UI Bold;font-size:16px;color:#4b2354;line-height:50px;display:block;width:100%;height:50px;background:transparent;padding:0 20px 0 23px;border:1px solid #9f9f9f;border-radius:30px}.input[_ngcontent-%COMP%]:focus{border:1px solid #9f9f9f!important;border-radius:30px!important}@media all and (max-width: 768px) and (max-height: 1024px){.marginTop[_ngcontent-%COMP%]{margin-top:50%;position:initial;height:auto}}.mainContentDiv[_ngcontent-%COMP%]{padding-bottom:calc(env(safe-area-inset-bottom) + 65px);padding-left:20px;padding-right:20px}@media screen and (max-width: 768px){.wrap-login[_ngcontent-%COMP%]{margin-top:0}}@media (max-width: 480px){.body-bg[_ngcontent-%COMP%]{min-height:94vh}.wrap-login[_ngcontent-%COMP%]{padding-left:15px;padding-right:15px}}@media only screen and (max-width: 959px){.container-login[_ngcontent-%COMP%] .wrap-login[_ngcontent-%COMP%]{margin-top:22vh}.setNativeMargin[_ngcontent-%COMP%]{margin-top:18vh}.container-login[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:0 15px;position:relative;z-index:1}.m15[_ngcontent-%COMP%]{margin:0 15px}}.wrap-login[_ngcontent-%COMP%]{width:390px;background:#fff;border-radius:25px;overflow:hidden;box-shadow:0 3px 20px #0000001a;-moz-box-shadow:0 3px 20px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 3px 20px 0px rgba(0,0,0,.1);-o-box-shadow:0 3px 20px 0px rgba(0,0,0,.1);-ms-box-shadow:0 3px 20px 0px rgba(0,0,0,.1)}.btn-submit[_ngcontent-%COMP%]{height:50px;font-size:16px;text-transform:uppercase;font-weight:600}.border[_ngcontent-%COMP%]{border:solid rgb(207,204,204) 1px}.w100[_ngcontent-%COMP%]{width:100%}"]}),n})();class e_{}class HB{constructor(){this.searchText="",this.userId=0}}class t_{constructor(){this.isGameActive=!1,this.gameCurrentWord="",this.insertedDateTime="",this.updatedDateTime="",this.gameCreatedBy="",this.gameId="",this.themeUrl="",this.totalPlayers="",this.userGames=[],this.isGameforFun=!1,this.currentWordScore="",this.LastPlayer="",this.isNewSolo=!1,this.uninvitedUserAry=[],this.unRegisteredUserAry=[],this.status="",this.isReplayGame=!1,this.currentPlayerBadge=""}}class n_{constructor(){this.profile_image=""}}const NJ=function(){return{w100:!0}},RJ=function(){return{"m-l-10":!1,"m-t-10":!0,w100:!0}};let FJ=(()=>{class n{constructor(e){this.dialogRef=e}ngOnInit(){}onNoClick(){this.dialogRef.close({event:"no"})}onYesClick(){this.dialogRef.close({event:"yes"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-confirm-invite-email"]],decls:13,vars:13,consts:[[1,"custom-dialog-body"],[1,"custom-dialog-footer"],["mat-stroked-button","","type","button","color","accent",3,"ngClass.xs","click"],["mat-raised-button","","type","button","color","accent",1,"m-l-10",3,"ngClass.xs","click"]],template:function(e,r){1&e&&(t.TgZ(0,"div")(1,"div")(2,"div")(3,"div",0),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",1)(7,"button",2),t.NdJ("click",function(){return r.onNoClick()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",3),t.NdJ("click",function(){return r.onYesClick()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()()()),2&e&&(t.xp6(4),t.hij(" ",t.lcZ(5,5,"NEWGAME.POPUPTXT")," "),t.xp6(3),t.Q6J("ngClass.xs",t.DdM(11,NJ)),t.xp6(1),t.Oqu(t.lcZ(9,7,"NEWGAME.NOTXT")),t.xp6(2),t.Q6J("ngClass.xs",t.DdM(12,RJ)),t.xp6(1),t.Oqu(t.lcZ(12,9,"NEWGAME.YESTXT")))},directives:[Di,ci],pipes:[pn],styles:[".custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}.custom-dialog-body[_ngcontent-%COMP%]{padding:15px!important;margin:0}.mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}"]}),n})();const LJ=["input"],BJ=function(n){return{enterDuration:n}},GJ=["*"],UJ=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:jB});function jB(){return{color:"accent",clickAction:"check-indeterminate"}}let HJ=0;const VB=jB(),jJ={provide:Be,useExisting:(0,t.Gpc)(()=>ZB),multi:!0};class VJ{}const ZJ=fm(iu(jl(nu(class{constructor(n){this._elementRef=n}}))));let ZB=(()=>{class n extends ZJ{constructor(e,r,o,s,c,f,g){super(e),this._changeDetectorRef=r,this._focusMonitor=o,this._ngZone=s,this._animationMode=f,this._options=g,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++HJ,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||VB,this.color=this.defaultColor=this._options.color||VB.color,this.tabIndex=parseInt(c)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Wt(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){const r=Wt(e);r!=this.checked&&(this._checked=r,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const r=Wt(e);r!==this.disabled&&(this._disabled=r,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const r=e!=this._indeterminate;this._indeterminate=Wt(e),r&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let r=this._currentCheckState,o=this._elementRef.nativeElement;if(r!==e&&(this._currentAnimationClass.length>0&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(r,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},1e3)})}}_emitChangeEvent(){const e=new VJ;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(e){var r;const o=null===(r=this._options)||void 0===r?void 0:r.clickAction;e.stopPropagation(),this.disabled||"noop"===o?!this.disabled&&"noop"===o&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==o&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,r){e?this._focusMonitor.focusVia(this._inputElement,e,r):this._inputElement.nativeElement.focus(r)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,r){if("NoopAnimations"===this._animationMode)return"";let o="";switch(e){case 0:if(1===r)o="unchecked-checked";else{if(3!=r)return"";o="unchecked-indeterminate"}break;case 2:o=1===r?"unchecked-checked":"unchecked-indeterminate";break;case 1:o=2===r?"checked-unchecked":"checked-indeterminate";break;case 3:o=1===r?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${o}`}_syncIndeterminate(e){const r=this._inputElement;r&&(r.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oa),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(Ii,8),t.Y36(UJ,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,r){if(1&e&&(t.Gf(LJ,5),t.Gf($a,5)),2&e){let o;t.iGM(o=t.CRH())&&(r._inputElement=o.first),t.iGM(o=t.CRH())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,r){2&e&&(t.Ikx("id",r.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",r.indeterminate)("mat-checkbox-checked",r.checked)("mat-checkbox-disabled",r.disabled)("mat-checkbox-label-before","before"==r.labelPosition)("_mat-animation-noopable","NoopAnimations"===r._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[t._Bn([jJ]),t.qOj],ngContentSelectors:GJ,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,r){if(1&e&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(s){return r._onInteractionEvent(s)})("click",function(s){return r._onInputClick(s)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA()(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return r._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&e){const o=t.MAs(1),s=t.MAs(13);t.uIk("for",r.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!s.textContent||!s.textContent.trim()),t.xp6(1),t.Q6J("id",r.inputId)("required",r.required)("checked",r.checked)("disabled",r.disabled)("tabIndex",r.tabIndex),t.uIk("value",r.value)("name",r.name)("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-checked",r._getAriaChecked())("aria-describedby",r.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",o)("matRippleDisabled",r._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,BJ,"NoopAnimations"===r._animationMode?0:150))}},directives:[$a,Rl],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),WB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})(),zJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[Zl,In,df,WB],In,WB]}),n})();function $J(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"/"),t.qZA())}function YJ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"div")(2,"mat-checkbox",14),t.NdJ("ngModelChange",function(o){return t.CHM(e).$implicit.isSelected=o})("ngModelChange",function(){const s=t.CHM(e).index;return t.oxw(2).selectUser(s)}),t.TgZ(3,"td"),t._UZ(4,"img",15),t.qZA(),t.TgZ(5,"td",16),t._uU(6),t.YNc(7,$J,2,0,"span",17),t._uU(8),t.qZA()()()()}if(2&n){const e=i.$implicit;t.xp6(2),t.Q6J("disabled",e.isDisabled)("ngModel",e.isSelected),t.xp6(2),t.s9C("src",null!=e&&e.ImgUrl?e.ImgUrl:"assets/images/img-user.jpg",t.LSH),t.xp6(2),t.hij("",e.userName," "),t.xp6(1),t.Q6J("ngIf",e.userName&&e.email),t.xp6(1),t.hij(" ",e.email,"")}}function JJ(n,i){if(1&n&&(t.TgZ(0,"mat-dialog-content",11),t.YNc(1,YJ,9,6,"div",12),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.usersList)}}var rh;let QJ=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M){this._newGameService=e,this.dialog=r,this._router=o,this.toasterService=s,this.loginService=c,this._activeRoute=f,this.translate=g,this.leaderboardService=v,this.ngZone=T,this.dialogRef=D,this.data=M,this.searchUserModel=new HB,this.usersList=[],this.playGame=new t_,this.userGameObj=new n_,this.selectedUserList=[],this.filterGoogleContacts=[],this.googleContacts=[],this.googleUserObj=new e_,this.googleContactSearchList=[],this.inviteUser=new e_,rh=this,this.isGameCreated=!1,this.subscribeProfiles=[],this.subscribeProfilePic=""}ngOnInit(){""!=window.localStorage.getItem(ce.gameId)&&(this.isGameCreated=!0),this.translate.get("NEWGAME").subscribe(o=>{this.newGameLangObj=o}),this._activeRoute.snapshot.params.newSolo?(this.newSolo=!0,$("#searchInput").attr("type","hidden"),$(".custom-checkbox").hide()):($("#searchInput").attr("type","text"),Si(document.getElementById("searchInput"),"keyup").pipe(Dd(500)).subscribe(o=>this.searchUsers(!1)))}ngAfterViewInit(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));"Gmail"==e.loginType&&setTimeout(function(){rh.handleAuthorization()},1e3),this._activeRoute.snapshot.params.newSolo||this.getPlayedUsers(e.id,e)}handleAuthorization(){window.localStorage.getItem("googleToken"),this.loginService.gapiObj.client.request({path:"https://people.googleapis.com/v1/people/me/connections?personFields=emailAddresses,names,phoneNumbers,photos",params:{sortOrder:"LAST_NAME_ASCENDING",pageSize:"1000"}}).then(function(r){rh.googleContacts=r.result.connections,null!=rh.googleContacts&&rh.googleContacts.length>0&&(rh.googleContacts.forEach(s=>{"undefined"!=s.emailAddresses&&""!=s.emailAddresses&&null!=s.emailAddresses&&rh.filterGoogleContacts.push(s)}),rh.getGoogleContacts())})}getGoogleContacts(){this.filterGoogleContacts.forEach(e=>{this.googleUserObj=new e_,this.googleUserObj.email=e.emailAddresses[0].value,this.googleUserObj.firstName=e.names[0].givenName,this.googleUserObj.fullName=e.names[0].displayName,this.googleUserObj.id="",this.googleUserObj.isSelected=!1,this.googleUserObj.lastName="",this.googleUserObj.userName=e.names[0].givenName,this.googleUserObj.userType="Gmail",this.googleUserObj.ImgUrl=e.photos[0].url,this.googleContactSearchList.push(this.googleUserObj)})}findUser(){null!=this.searchUserModel.searchText&&""!=this.searchUserModel.searchText?this.searchUsers(!0):this.toasterService.Error(this.newGameLangObj.INVALIDSEARCHTXT,"Error")}searchUsers(e){var r=JSON.parse(window.localStorage.getItem(ce.userProfile));if(this.searchUserModel.searchText.length>2){if(null==this.searchUserModel.searchText||""==this.searchUserModel.searchText)return void this.toasterService.Error(this.newGameLangObj.INVALIDSEARCHTXT,"Error");null!=r&&(this.searchUserModel.userId=r.id),this._newGameService.search(this.searchUserModel).subscribe(o=>{if(o)if(this.usersList=this.selectedUserList.length>0?Object.assign([],this.selectedUserList):[],0==this.usersList.length){this.usersList=o;for(let g=0;g{v.fullName=v.firstName+" "+(v.lastName?v.lastName:""),v.isSelected=!1,o.length>0&&v.id==this.usersList[g].id&&o.splice(T,1)});if(o.length>0)for(let g=0;g0)for(let v=0;v0)for(let g=0;g0)for(let v=0;v()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}selectUser(e){if(this.usersList.every(r=>r.isSelected),this.usersList[e].isSelected)this.selectedUserList.push(this.usersList[e]);else{let r=this.selectedUserList.findIndex(o=>o.id===this.usersList[e].id);this.selectedUserList.splice(r,1)}}createGame(){let e=0;for(let s=0;s10)return void this.toasterService.Error(this.newGameLangObj.INVALIDUSERSLENGTH,"Error");var r=JSON.parse(window.localStorage.getItem(ce.userProfile));this.playGame.isGameActive=!0,this.playGame.gameCreatedBy=r.id,this.playGame.userGames=[];let o=1;this.playGame.isNewSolo=0==this.selectedUserList.length,null!=r&&null!=r&&(this.userGameObj.gameId=0,this.userGameObj.userId=r.id,this.userGameObj.userLastWord="",this.userGameObj.isTurn="0",this.userGameObj.gameScore=0,this.userGameObj.turnSequenceNo=o,this.userGameObj.updatedDateTime="",this.userGameObj.userType=r.loginType,this.userGameObj.email=r.email,this.userGameObj.firstName=r.nameFirst,this.userGameObj.lastName=r.nameLast,this.userGameObj.userName=r.userName,this.userGameObj.ImgUrl=r.profileImage,this.userGameObj.profile_image=r.profileImage,this.userGameObj.isReplayGame=0,this.userGameObj.joinGame=1,this.userGameObj.isUserAllowedInGame=1,this.userGameObj.userSignupType=0,this.userGameObj.isUserViaGameCode=0,this.playGame.userGames.push(this.userGameObj));for(let s=0;s{})}inviteNewUser(){this.inviteUser=new e_,this.inviteUser.email=this.searchUserModel.searchText,this.inviteUser.firstName=this.searchUserModel.searchText.split("@")[0],this.inviteUser.fullName=this.searchUserModel.searchText,this.inviteUser.id="",this.inviteUser.isSelected=!0,this.inviteUser.lastName="",this.inviteUser.userName="",this.inviteUser.userType="Invite",this.usersList.unshift(this.inviteUser),this.selectedUserList.push(this.inviteUser)}getPlayedUsers(e,r){this._newGameService.getPlayedUsers({userId:e,gameCode:this.data.inviteCode}).subscribe(s=>{if(this.loginService.getBrowserLang(s.code),window.localStorage.setItem(ce.language,s.code),r.code=s.code,window.localStorage.setItem(ce.userProfile,JSON.stringify(r)),0==this.usersList.length){this.usersList=s.data?s.data:[];for(let c=0;c{f.fullName=f.firstName+" "+(f.lastName?f.lastName:""),f.isSelected=!1,s.data.length>0&&f.id==this.usersList[c].id&&s.data.splice(g,1)});if(s.length>0)for(let c=0;c0&&this.setImages()})}setImages(){var e=this,r=JSON.parse(window.localStorage.getItem(ce.userProfile));this.usersList.map((o,s)=>{""!=o.ImgUrl&&null!=o.ImgUrl&&"assets/images/img-user.jpg"!=o.ImgUrl||(e.subscribeProfilePic=e.leaderboardService.getProfilePicture({id:r.id,profileImageId:o.id}).subscribe(f=>{f?o.ImgUrl=null!=f.data.profile_image&&""!=f.data.profile_image?f.data.profile_image:"assets/images/img-user.jpg":(o.ImgUrl="",console.log("Image cant load"))},f=>{o.ImgUrl=""}),e.subscribeProfiles.push(e.subscribeProfilePic))})}ngOnDestroy(){this.subscribeProfiles&&this.subscribeProfiles.length>0&&this.subscribeProfiles.forEach(e=>{e.unsubscribe()})}callAPI(){this.dialog.open(FJ,{panelClass:"mini-modal"}).afterClosed().subscribe(r=>{"yes"===r.event&&this.inviteNewUser()})}onCancelClick(){this.subscribeProfiles&&this.subscribeProfiles.length>0&&this.subscribeProfiles.forEach(e=>{e.unsubscribe()}),this.dialogRef.close({event:"no"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bo),t.Y36(l),t.Y36(Ht),t.Y36(I),t.Y36(fn),t.Y36(mr),t.Y36(Zn),t.Y36($m),t.Y36(t.R0b),t.Y36(qr),t.Y36(Gd))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-select-palyer"]],decls:18,vars:11,consts:[["fxLayout","row"],["fxFlex","95%",2,"padding","0px"],["type","text","id","searchInput",1,"form-control","radius-input",3,"ngModel","placeholder","ngModelChange"],[2,"padding","0px"],[1,"input-group-btn","searchBtn"],["type","submit",1,"btn","searchBtn","btnBG","radius-button",3,"click"],[1,"material-icons","colorWhite"],["class","mat-typography","style","margin-top: 15px;",4,"ngIf"],["align","end"],["mat-stroked-button","","type","button","color","accent",3,"click"],["mat-raised-button","","type","button","color","accent",1,"m-l-10",3,"click"],[1,"mat-typography",2,"margin-top","15px"],["fxLayout","column","style","padding: 5px 3px;",4,"ngFor","ngForOf"],["fxLayout","column",2,"padding","5px 3px"],[1,"checkCls",3,"disabled","ngModel","ngModelChange"],["alt","","referrerpolicy","no-referrer",1,"img-newgame",2,"width","30px","border-radius","50px","height","30px","margin-right","8px",3,"src"],[1,"username-newgame"],[4,"ngIf"]],template:function(e,r){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"div",1)(3,"input",2),t.NdJ("ngModelChange",function(s){return r.searchUserModel.searchText=s}),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",3)(6,"div",4)(7,"button",5),t.NdJ("click",function(){return r.findUser()}),t.TgZ(8,"span",6),t._uU(9," search "),t.qZA()()()()(),t.YNc(10,JJ,2,1,"mat-dialog-content",7),t.TgZ(11,"mat-dialog-actions",8)(12,"button",9),t.NdJ("click",function(){return r.onCancelClick()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"button",10),t.NdJ("click",function(){return r.createGame()}),t._uU(16),t.ALo(17,"translate"),t.qZA()()()),2&e&&(t.xp6(3),t.s9C("placeholder",t.lcZ(4,5,"NEWGAME.FINDUSERPLACETXT")),t.Q6J("ngModel",r.searchUserModel.searchText),t.xp6(7),t.Q6J("ngIf",r.usersList.length>0),t.xp6(3),t.Oqu(t.lcZ(14,7,"NEWGAME.CANCELBTN")),t.xp6(3),t.Oqu(t.lcZ(17,9,r.isGameCreated?"NEWGAME.ADDPLYDD":"Create")))},directives:[ti,Ei,Kt,xr,Cr,Gt,y,Vt,ZB,w,Di],pipes:[pn],styles:[".checkCls[_ngcontent-%COMP%] .mat-checkbox-layout .mat-checkbox-label{vertical-align:middle}.checkCls[_ngcontent-%COMP%] .mat-checkbox-layout{white-space:normal;word-break:break-all}.btnBG[_ngcontent-%COMP%]{background-color:#f33a77!important;border:none!important;height:34px!important;width:40px!important;padding:6px!important}.colorWhite[_ngcontent-%COMP%]{color:#fff}.custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}.mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.radius-input[_ngcontent-%COMP%]{border-radius:17px}.radius-button[_ngcontent-%COMP%]{border-top-right-radius:17px!important;border-bottom-right-radius:17px!important}@media screen and (max-width: 400px){.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{padding:0 20px}.radius-input[_ngcontent-%COMP%]::placeholder{font-size:12px}}@media screen and (max-width: 320px){.mat-dialog-actions[_ngcontent-%COMP%]{flex-wrap:inherit}}"]}),n})();class KJ{constructor(){this.gameCode="",this.isGameforFun="",this.gameLanguageCode="",this.playersList=[]}}let Zb=(()=>{class n{constructor(e,r){this.matDialog=e,this._router=r;let o=JSON.parse(window.localStorage.getItem("LLFUserProfile"));o&&(this.signUpType=o.signUpType)}ngOnInit(){}onStartNewGame(){window.localStorage.setItem(ce.gameId,""),this.signUpType&&"5"!=this.signUpType&&"4"!=this.signUpType?this._router.navigateByUrl("/login",{skipLocationChange:!0}).then(()=>{this._router.navigate(["/newGame"]),this.matDialog.closeAll()}):(this._router.navigate(["/register"]),this.matDialog.closeAll())}redirectToHome(){window.location.href="https://lastletterfirst.com/"}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l),t.Y36(Ht))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-game-started-dialog"]],decls:12,vars:12,consts:[[1,"custom-dialog-body"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","10px",1,"custom-dialog-footer"],["fxFlex","50","fxFlex.xs","100","mat-raised-button","","color","accent",3,"click"],["fxFlex","50","fxFlex.xs","100","mat-stroked-button","","color","accent",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",1)(6,"button",2),t.NdJ("click",function(){return r.onStartNewGame()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",3),t.NdJ("click",function(){return r.redirectToHome()}),t._uU(10),t.ALo(11,"translate"),t.qZA()()),2&e&&(t.xp6(2),t.AsE("",t.lcZ(3,4,"NEWGAME.STARTEDTXT")," ",t.lcZ(4,6,"NEWGAME.FASTERTXT"),""),t.xp6(5),t.Oqu(t.lcZ(8,8,r.signUpType&&"5"!=r.signUpType&&"4"!=r.signUpType?"NEWGAME.TITLETXT":"NEWGAME.SIGNUP")),t.xp6(3),t.Oqu(t.lcZ(11,10,"NEWGAME.EXITBTN")))},directives:[ti,qo,Di,Ei],pipes:[pn],styles:[".mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.custom-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:15px!important;margin:0}.custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}"]}),n})(),XJ=(()=>{class n{constructor(e,r){this.dialogRef=e,this._router=r}ngOnInit(){this.signUpType=JSON.parse(window.localStorage.getItem("LLFUserProfile")).signUpType}onStartNewGame(){window.localStorage.setItem(ce.gameId,""),5==this.signUpType?(this._router.navigate(["/register"]),this.dialogRef.close()):this._router.navigateByUrl("/login",{skipLocationChange:!0}).then(()=>{this._router.navigate(["/newGame"]),this.dialogRef.close()})}redirectToHome(){window.location.href="https://lastletterfirst.com/"}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr),t.Y36(Ht))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-request-declined-dialog"]],decls:11,vars:9,consts:[[1,"custom-dialog-body"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","10px",1,"custom-dialog-footer"],["fxFlex","50","fxFlex.xs","100","mat-raised-button","","color","accent",3,"click"],["fxFlex","50","fxFlex.xs","100","mat-stroked-button","","color","accent",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"div",1)(5,"button",2),t.NdJ("click",function(){return r.onStartNewGame()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return r.redirectToHome()}),t._uU(9),t.ALo(10,"translate"),t.qZA()()),2&e&&(t.xp6(2),t.hij("",t.lcZ(3,3,"NEWGAME.DECLINEDTXT")," :("),t.xp6(4),t.Oqu(t.lcZ(7,5,"5"==r.signUpType?"NEWGAME.SIGNUP":"NEWGAME.TITLETXT")),t.xp6(3),t.Oqu(t.lcZ(10,7,"NEWGAME.EXITBTN")))},directives:[ti,qo,Di,Ei],pipes:[pn],styles:[".mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.custom-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:15px!important;margin:0}.custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}"]}),n})();function eQ(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.HOy(" ",e.totalJoinViaInviteplayer," ",t.lcZ(2,4,"NEWGAME.STARTGAMECON6")," ",e.totalInvitedPlayer," ",t.lcZ(3,6,"NEWGAME.STARTGAMECON3")," ")}}function tQ(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.AsE(" ",e.totalPlayerWithGameCode," ",t.lcZ(2,2,"NEWGAME.STARTGAMECON4")," ")}}function nQ(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.AsE(" ",e.totalPlayerDecline," ",t.lcZ(2,2,"NEWGAME.STARTGAMECON5")," ")}}let iQ=(()=>{class n{constructor(e,r,o){this.dialogRef=e,this.data=r,this._newGameService=o,this.totalInvitedPlayer=0,this.totalJoinViaInviteplayer=0,this.totalPlayerWithGameCode=0,this.totalPlayerDecline=0}ngOnInit(){this.totalInvitedPlayer=this.data.totalInvitedPlayer,this.totalJoinViaInviteplayer=this.data.totalJoinViaInviteplayer,this.totalPlayerWithGameCode=this.data.totalPlayerWithGameCode,this.totalPlayerDecline=this.data.totalPlayerDecline}onNoClick(){this.dialogRef.close({event:"no"})}onYesClick(){this.dialogRef.close({event:"yes"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr),t.Y36(Gd),t.Y36(bo))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-confirm-start-game-now-dialog"]],decls:20,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions","","fxLayoutAlign","end"],["mat-stroked-button","","type","button","color","accent",3,"click"],["mat-raised-button","","type","button","color","accent",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"div")(1,"div")(2,"div")(3,"div",0),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",1),t.YNc(7,eQ,4,8,"p",2),t.YNc(8,tQ,3,4,"p",2),t.YNc(9,nQ,3,4,"p",2),t.TgZ(10,"p"),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"div",3)(14,"button",4),t.NdJ("click",function(){return r.onNoClick()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"button",5),t.NdJ("click",function(){return r.onYesClick()}),t._uU(18),t.ALo(19,"translate"),t.qZA()()()()()),2&e&&(t.xp6(4),t.hij(" ",t.lcZ(5,7,"NEWGAME.STARTGAMECON1")," "),t.xp6(3),t.Q6J("ngIf",0!=r.totalInvitedPlayer),t.xp6(1),t.Q6J("ngIf",0!=r.totalPlayerWithGameCode),t.xp6(1),t.Q6J("ngIf",0!=r.totalPlayerDecline),t.xp6(2),t.hij(" ",t.lcZ(12,9,"NEWGAME.STARTGAMECON2")," "),t.xp6(4),t.Oqu(t.lcZ(16,11,"NEWGAME.NOTXT")),t.xp6(3),t.Oqu(t.lcZ(19,13,"NEWGAME.YESTXT")))},directives:[_,y,Gt,w,Ir,Di],pipes:[pn],styles:[""]}),n})();const rQ=(0,zt.fo)("Share",{web:()=>P.e(907).then(P.bind(P,7907)).then(n=>new n.ShareWeb)});function oQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-new-game-settings",8),t.NdJ("getPlayerData",function(o){return t.CHM(e),t.oxw(2).setPlayerData(o)})("onclickNextThm",function(){return t.CHM(e),t.oxw(2).onclickNextThm()})("onclickPrevThm",function(){return t.CHM(e),t.oxw(2).onclickPrevThm()})("onclickPrev",function(){return t.CHM(e),t.oxw(2).onclickPrev()})("onclickNext",function(){return t.CHM(e),t.oxw(2).onclickNext()})("createGame",function(){return t.CHM(e),t.oxw(2).createGame()})("editClick",function(){return t.CHM(e),t.oxw(2).editClick()})("saveGameSettings",function(){return t.CHM(e),t.oxw(2).saveGameConfigure()})("changeScoreToggle",function(o){return t.CHM(e),t.oxw(2).changeScoreToggle(o)}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("breakpoint",e.breakpoint)("createdById",e.createdById)("themeName",e.themeName)("languageName",e.languageName)("isScoreGameChecked",e.isScoreGameChecked)("isGameCreated",e.isGameCreated)("isInEdit",e.isInEdit)("prevBtnDisabled",e.prevBtnDisabled)("nxtBtnDisabled",e.nxtBtnDisabled)("prevThmBtnDisabled",e.prevThmBtnDisabled)("nxtThmBtnDisabled",e.nxtThmBtnDisabled)("isDisabled",e.isDisabled)}}function sQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-unregister-user",9),t.NdJ("joinPlayerClick",function(o){return t.CHM(e),t.oxw(2).joinRequest(o)})("selectAvatar",function(o){return t.CHM(e),t.oxw(2).selectAvatar(o)})("signInFB",function(){return t.CHM(e),t.oxw(2).signInWithFB()})("signInGoogle",function(){return t.CHM(e),t.oxw(2).googleInit()}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("inviteCode",e.inviteCode)("breakpoint",e.breakpoint)("avatarList",e.avatarList)("isGameExist",e.isGameExist)("joinPalyer",e.joinPalyer)("isFacebookEnabled",e.isFacebookEnabled)("isGoogleEnabled",e.isGoogleEnabled)("nameSuggested",e.nameSuggested)("selectAvatarId",e.selectAvatarId)}}function aQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).startGameNow()}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"NEWGAME.StartGameNow")," "))}function lQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",2)(1,"div",3),t.YNc(2,oQ,1,12,"app-new-game-settings",4),t.YNc(3,sQ,1,9,"app-unregister-user",5),t.TgZ(4,"app-player-status",6),t.NdJ("approvePlayer",function(o){return t.CHM(e),t.oxw().allowPlayer(o)})("selectPlayerDialog",function(){return t.CHM(e),t.oxw().openSelectPlayerDialog()})("cpCode",function(){return t.CHM(e),t.oxw().copyCode()}),t.qZA()(),t.YNc(5,aQ,4,3,"div",7),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.isRegister||null!=e.loggedInUser),t.xp6(1),t.Q6J("ngIf",!e.isRegister&&""==e.joinPalyer.token&&null==e.loggedInUser),t.xp6(1),t.Q6J("gamePlayerLists",e.gamePlayerLists)("breakpoint",e.breakpoint)("isGameExist",e.isGameExist)("btnText",e.btnText)("loggedInUserId",e.loggedInUserId)("isGameCreated",e.isGameCreated)("inviteCode",e.inviteCode),t.xp6(1),t.Q6J("ngIf",e.gamePlayerLists.gameCreatedBy==e.loggedInUserId&&e.loggedInUser&&"5"!=(null==e.loggedInUser?null:e.loggedInUser.signUpType))}}function cQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-unregister-user",23),t.NdJ("joinPlayerClick",function(o){return t.CHM(e),t.oxw(3).joinRequest(o)})("selectAvatar",function(o){return t.CHM(e),t.oxw(3).selectAvatar(o)})("signInFB",function(){return t.CHM(e),t.oxw(3).fbLogin()})("signInGoogle",function(){return t.CHM(e),t.oxw(3).googleSignIn()})("signInApple",function(){return t.CHM(e),t.oxw(3).appleSingIn()}),t.qZA()}if(2&n){const e=t.oxw(3);t.Q6J("inviteCode",e.inviteCode)("breakpoint",e.breakpoint)("avatarList",e.avatarList)("isGameExist",e.isGameExist)("joinPalyer",e.joinPalyer)("isFacebookEnabled",e.isFacebookEnabled)("isGoogleEnabled",e.isGoogleEnabled)("isAppleEnabled",e.isAppleEnabled)("nameSuggested",e.nameSuggested)("selectAvatarId",e.selectAvatarId)}}function uQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-new-game-settings",24),t.NdJ("getPlayerData",function(o){return t.CHM(e),t.oxw(3).setPlayerData(o)})("onclickNextThm",function(){return t.CHM(e),t.oxw(3).onclickNextThm()})("onclickPrevThm",function(){return t.CHM(e),t.oxw(3).onclickPrevThm()})("onclickPrev",function(){return t.CHM(e),t.oxw(3).onclickPrev()})("onclickNext",function(){return t.CHM(e),t.oxw(3).onclickNext()})("createGame",function(){return t.CHM(e),t.oxw(3).createGame()})("editClick",function(){return t.CHM(e),t.oxw(3).editClick()})("saveGameSettings",function(){return t.CHM(e),t.oxw(3).saveGameConfigure()})("changeScoreToggle",function(o){return t.CHM(e),t.oxw(3).changeScoreToggle(o)}),t.qZA()}if(2&n){const e=t.oxw(3);t.Q6J("breakpoint",e.breakpoint)("createdById",e.createdById)("themeName",e.themeName)("languageName",e.languageName)("isScoreGameChecked",e.isScoreGameChecked)("isGameCreated",e.isGameCreated)("isInEdit",e.isInEdit)("prevBtnDisabled",e.prevBtnDisabled)("nxtBtnDisabled",e.nxtBtnDisabled)("prevThmBtnDisabled",e.prevThmBtnDisabled)("nxtThmBtnDisabled",e.nxtThmBtnDisabled)("isDisabled",e.isDisabled)}}function dQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-player-status",25),t.NdJ("approvePlayer",function(o){return t.CHM(e),t.oxw(3).allowPlayer(o)})("clickShareLink",function(){return t.CHM(e),t.oxw(3).shareCode()})("selectPlayerDialog",function(){return t.CHM(e),t.oxw(3).openSelectPlayerDialog()})("cpCode",function(){return t.CHM(e),t.oxw(3).copyCode()}),t.qZA()}if(2&n){const e=t.oxw(3);t.Q6J("gamePlayerLists",e.gamePlayerLists)("breakpoint",e.breakpoint)("isGameExist",e.isGameExist)("btnText",e.btnText)("loggedInUserId",e.loggedInUserId)("isGameCreated",e.isGameCreated)("inviteCode",e.inviteCode)}}function hQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"p",14)(2,"mat-button-toggle-group",15,16),t.NdJ("change",function(){t.CHM(e);const o=t.MAs(3);return t.oxw(2).onValChange(o.value)}),t.TgZ(4,"mat-button-toggle",17)(5,"mat-icon",18),t._uU(6," widgets "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"mat-button-toggle",19)(10,"mat-icon",18),t._uU(11," groups "),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.qZA()()(),t.YNc(14,cQ,1,10,"app-unregister-user",20),t.YNc(15,uQ,1,12,"app-new-game-settings",21),t.YNc(16,dQ,1,7,"app-player-status",22),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("value",e.selectedNewGameTab),t.xp6(5),t.hij(" ",t.lcZ(8,6,e.loggedInUser&&""==e.joinPalyer.token?"NEWGAME.GAMETAB":"NEWGAME.JOINTAB")," "),t.xp6(5),t.hij(" ",t.lcZ(13,8,"NEWGAME.PLAYERS")," "),t.xp6(2),t.Q6J("ngIf","1"==e.selectedNewGameTab&&!e.isRegister&&""==e.joinPalyer.token&&null==e.loggedInUser),t.xp6(1),t.Q6J("ngIf","1"==e.selectedNewGameTab&&(e.isRegister||null!=e.loggedInUser)),t.xp6(1),t.Q6J("ngIf","2"==e.selectedNewGameTab)}}function fQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).startGameNow()}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"NEWGAME.StartGameNow")))}function pQ(n,i){if(1&n&&(t.TgZ(0,"div",11),t.YNc(1,hQ,17,10,"div",12),t.YNc(2,fQ,4,3,"div",7),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",1==e.breakpoint),t.xp6(1),t.Q6J("ngIf",e.gamePlayerLists.gameCreatedBy==e.loggedInUserId&&e.loggedInUser&&"5"!=(null==e.loggedInUser?null:e.loggedInUser.signUpType))}}var Dt,As=navigator.language||navigator.userLanguage;As="en-US"==As||"en"==As||"en-IN"==As?"en":"hi-EN"==As||"hi"==As?"hi":"fr"==As?"fr":"en";const gQ=["email"];let qB=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M,R,K,fe,Me){this._newGameService=e,this.runningGameService=r,this.dialog=o,this._router=s,this.toasterService=c,this.loginService=f,this._activeRoute=g,this.translate=v,this.accountService=T,this.messagingService=D,this.spinner=M,this.zone=R,this.websocketService=K,this.localStorageService=fe,this.breakpointObserver=Me,this.isGoogleEnabled=0,this.isFacebookEnabled=0,this.searchUserModel=new HB,this.languageName="English",this.langIndex=0,this.themeName="River",this.avatarList=[],this.isDeclineDialogOpen=!1,this.newGameSubscription=null,this.isAppleEnabled=0,this.playGame=new t_,this.userGameObj=new n_,this.selectedUserList=[],this.startGameResponse=new t_,this.filterGoogleContacts=[],this.googleContacts=[],this.googleUserObj=new e_,this.googleContactSearchList=[],this.inviteUser=new e_,Dt=this,this.newSolo=!1,this.mobile=!1,this.gamePlayerLists=new KJ,this.prevBtnDisabled=!1,this.prevThmBtnDisabled=!1,this.nxtBtnDisabled=!1,this.nxtThmBtnDisabled=!1,this.isDisabled=!1,this.gameLangCode="en",this.avatarList=[],this.btnText="",this.nameSuggested="",this.googleSignInModel=new f0,this.facebookSignInModel=new rx,this.appleSignInModel=new cF,this.joinPalyer={gameCode:"",name:"",userId:"",token:"",code:As,profileImg:""},this.isGameCreated=!1,this.isInEdit=!1,g.queryParams.subscribe(Fe=>{this._activeRoute=Fe.game,this.inviteCode=Fe.game,this.isRegister=null!=Fe.Reg&&"1"==Fe.Reg,this.joinPalyer.token=null!=Fe.t&&null!=Fe.t?Fe.t:"",null!=this.inviteCode&&null!=this.inviteCode&&""!=this.inviteCode&&window.localStorage.setItem(ce.gameId,this.inviteCode)})}ngAfterViewInit(){""!=window.localStorage.getItem(ce.gameId)&&(this.isGameCreated=!0)}ngOnInit(){var e;if(window.fbAsyncInit=function(){FB.init({appId:"830647111265270",cookie:!0,xfbml:!0,version:"v9.0"}),FB.AppEvents.logPageView()},c="facebook-jssdk",g=(o=document).getElementsByTagName("script")[0],o.getElementById(c)||((f=o.createElement("script")).id=c,f.src="https://connect.facebook.net/en_US/sdk.js",g.parentNode.insertBefore(f,g)),this.breakpointObserver.observe([ri_HandsetLandscape,ri_HandsetPortrait,ri_TabletLandscape,ri_TabletPortrait]).subscribe(o=>{o.matches?(this.breakpoint=1,Dt.selectedNewGameTab=null!=this.loggedInUser||""!=this.joinPalyer.token||this.isRegister?"2":"1"):this.breakpoint=0}),this.loginService.checkThirdPartyLoginEnabled().subscribe(o=>{this.isGoogleEnabled=Number(o.data.is_Google_Enabled),this.isFacebookEnabled=Number(o.data.is_Facebook_Enabled),this.isAppleEnabled="ios"==zt.dV.getPlatform()?Number(o.data.is_Apple_Enabled):0}),(/android/i.test(navigator.userAgent)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream)&&(this.mobile=!0),this.loginService.prevoiusUrl="/newGame",this.translate.get("NEWGAME").subscribe(o=>{this.newGameLangObj=o,this.enterNameMsg=this.newGameLangObj.ENTERNAMEMSG}),zt.dV.isNativePlatform()&&setTimeout(()=>{this.loginService.pulltoRefresh("newGameContent","/newGame")},1e3),this.loggedInUser=this.loginService.getLoggedInUser(),null==this.loggedInUser&&this.isRegister)this._router.navigate(["/login"]);else{var o,c,f,g;if((r=JSON.parse(window.localStorage.getItem(ce.userProfile)))&&(this.loggedInUserId=parseInt(r.id)),this._newGameService.joinFromHomePage&&(this.inviteCode=window.localStorage.getItem(ce.gameId)),null==this.loggedInUser&&""==this.joinPalyer.token&&!this.isRegister){1==this.breakpoint&&(this.selectedNewGameTab="1"),this._newGameService.getPreRegisteredImages().subscribe(s=>{s&&s.statusType==xn.success&&(this.avatarList=s.data,this.selectAvatarId=this.avatarList.findIndex(c=>1==c.isDefault))});let o={gameCode:this.inviteCode,userId:null===(e=this.loggedInUser)||void 0===e?void 0:e.id};return this.websocketService.initSocket(this.inviteCode),void this.runningGameService.gamePlayersList(o).subscribe(s=>{s&&s.statusType==xn.success?(this.isGameExist=!0,this.gamePlayerLists=s.data,this.createdById=this.gamePlayerLists.gameCreatedBy,this.isScoreGameChecked="1"!=this.gamePlayerLists.isGameforFun,this.gameState=this.gamePlayerLists.status,1==this.gameState&&this.gamePlayerLists.gameCreatedBy!=this.loggedInUserId&&this.dialog.open(Zb,{panelClass:"mini-modal",disableClose:!0}).afterClosed().subscribe(f=>{}),this.isDisabled=!0,this.initSocketSubsrcibe()):(this.isGameExist=s.isGameExist,this.btnText=s.msg,this.scroll())})}if((null!=this.loggedInUser||""!=this.joinPalyer.token)&&""!=this.inviteCode&&null!=this.inviteCode)return this.isDisabled=!0,void(this._newGameService.joinFromHomePage||null==this.loggedInUser||null==this.loggedInUser||"5"==this.loggedInUser.signUpType||null==this.loggedInUser||null==this.loggedInUser||"4"==this.loggedInUser.signUpType?(this.websocketService.initSocket(this.inviteCode),this.joinPalyer.name=null!=this.loggedInUser&&null!=this.loggedInUser?this.loggedInUser.userName:"",this.joinPalyer.userId=null!=this.loggedInUser&&null!=this.loggedInUser?this.loggedInUser.id:"",this.joinByUninvitedPlayer(!0)):((null==this.websocketService.messages||null==this.websocketService.messages)&&this.websocketService.initSocket(this.localStorageService.getItem("game")),this.gameJoin(this.inviteCode,this.loggedInUser.id)));var r=JSON.parse(window.localStorage.getItem(ce.userProfile));this.loggedInUserId=parseInt(r.id),null!=this._newGameService.gamePlayersObj&&null!=this._newGameService.gamePlayersObj?(this.initSocketSubsrcibe(),this.gamePlayerLists=this._newGameService.gamePlayersObj,this.createdById=this.gamePlayerLists.gameCreatedBy,this.isGameExist=!0,this.inviteCode=this.gamePlayerLists.gameCode,window.localStorage.setItem(ce.gameId,this.gamePlayerLists.gameCode),this.isScoreGameChecked="1"!=this.gamePlayerLists.isGameforFun,this.selectedNewGameTab="2",this.gameState=this.gamePlayerLists.status,0==this.gameState&&this.gamePlayerLists.gameCreatedBy!=this.loggedInUserId?(this.btnText="Waiting for the host to start the game",this.scroll()):1==this.gameState&&this.gamePlayerLists.gameCreatedBy!=this.loggedInUserId&&this.dialog.open(Zb,{panelClass:"mini-modal",disableClose:!0}).afterClosed().subscribe(s=>{}),this.isDisabled=!0,this.selectedTheme=this.gamePlayerLists.fkThemeId,this.getTheme(!1),this.gameLangCode=this.gamePlayerLists.gameLanguageCode,this.getLanguageList(r.id,!1)):(Dt.selectedNewGameTab="2",this.isGameExist=!0,this.inviteCode=this.makeCode(4),window.localStorage.setItem(ce.gameId,""),this.isScoreGameChecked="1"!=r.isGameforFun,this.selectedTheme=this.loginService.getLoggedInUser().themeId,this.getTheme(!1),this.gameLangCode=window.localStorage.getItem(ce.language),this.getLanguageList(r.id,!0))}}ngOnDestroy(){$(".bg-new-game").css("display","block"),this._newGameService.gamePlayersObj=null,this.inviteCode="",clearTimeout(this.scrollTimeoutRight),clearTimeout(this.scrollTimeoutLeft),clearInterval(this.scrollInterval)}makeCode(e){for(var r="",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length,c=0;c{"success"==o.statusType?(this.themes=o.data,this.themeIndex=this.themes.findIndex((s,c)=>s.themeId===this.selectedTheme),this.themeName=this.themes[this.themeIndex].themeName,0==this.themeIndex?this.prevThmBtnDisabled=!0:this.themeIndex==this.themes.length-1&&(this.nxtThmBtnDisabled=!0)):this.toasterService.Error(o.msg,"Error")})}getLanguageList(e,r){this.accountService.getLanguages({userId:e}).subscribe(o=>{"success"==o.statusType?(this.languages=o.data,this.selectedLanguage=this.gameLangCode,this.langIndex=this.languages.findIndex((s,c)=>s.code===this.selectedLanguage),this.languageName=this.languages[this.langIndex].name,0==this.langIndex?this.prevBtnDisabled=!0:this.langIndex==this.languages.length-1&&(this.nxtBtnDisabled=!0),r&&this.createGame()):this.toasterService.Error(o.msg,"Error")})}selectTheme(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.accountService.updateTheme({userId:e.id,themeId:this.selectedTheme}).subscribe(o=>{"success"==o.statusType?(e.themeId=this.selectedTheme,window.localStorage.setItem(ce.userProfile,JSON.stringify(e))):this.toasterService.Error(o.msg,"Error")})}selectLanguage(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.accountService.updateLanguage({email:e.email,code:this.selectedLanguage,languageId:this.selectedLanguageId,userId:e.id}).subscribe(o=>{"success"==o.statusType?(this.loginService.getBrowserLang(this.selectedLanguage),this.getTheme(!0),window.localStorage.setItem(ce.language,this.selectedLanguage),this.gameLangCode=this.selectedLanguage,e.code=this.selectedLanguage,window.localStorage.setItem(ce.userProfile,JSON.stringify(e))):this.toasterService.Error(o.msg,"Error")})}onScoreGameToggleChange(e){}createSoloGame(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));if(this.playGame.gameCreatedBy=e.id,this.playGame.isGameActive=!0,this.playGame.isNewSolo=!0,this.playGame.isGameforFun=!this.isScoreGameChecked,this.playGame.code=this.selectedLanguage,this.playGame.fkThemeId=this.selectedTheme,this.playGame.gameCode=this.inviteCode,this.playGame.userGames=[],null==e||null==e)return!1;this.userGameObj.gameId=0,this.userGameObj.userId=e.id,this.userGameObj.userLastWord="",this.userGameObj.isTurn="0",this.userGameObj.gameScore=0,this.userGameObj.turnSequenceNo=1,this.userGameObj.updatedDateTime="",this.userGameObj.userType=e.loginType,this.userGameObj.email=e.email,this.userGameObj.firstName=e.nameFirst,this.userGameObj.lastName=e.nameLast,this.userGameObj.userName=e.userName,this.userGameObj.ImgUrl=e.profileImage,this.playGame.userGames.push(this.userGameObj),this._newGameService.createGame(this.playGame).subscribe(r=>{window.localStorage.setItem(ce.gameId,r.data.gameCode),this.gamePlayerLists=r.data,this._newGameService.gamePlayersObj=null,this.startGameNow()})}startGameNow(){if(this.gamePlayerLists.gameId>0){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.runningGameService.gamePlayersList({userId:e.id,gameCode:this.gamePlayerLists.gameCode,getAllData:!0}).subscribe(o=>{let s=0,c=0,f=0,g=0;if(Object.keys(o.data).length>0&&o.data.playersList.length>0)for(let T=0;T{$("body").removeClass("cdk-global-scrollblock"),null!=T&&"yes"===T.event&&this.runningGameService.gameStart({gameId:this.gamePlayerLists.gameId,userId:this.loggedInUser.id}).subscribe(M=>{if("success"==M.statusType){this._newGameService.changePlayGame(M.data);let K=JSON.parse(JSON.stringify(M.data));delete K.scoreBoard,window.sessionStorage.setItem("gameInfo",JSON.stringify(K)),Dt.websocketService.messages.next({msg:{data:M.data,type:"creategame"}})}else this.toasterService.Error(M.msg,"Error")})})})}else this.createSoloGame()}openSelectPlayerDialog(){$("body").addClass("cdk-global-scrollblock"),this.dialog.open(QJ,{data:{isScoreGameChecked:this.isScoreGameChecked,inviteCode:this.inviteCode,gameLangCode:this.gameLangCode,selectedTheme:this.selectedTheme},panelClass:["custom-modalbox",zt.dV.isNativePlatform()?"selectPlayer":""],disableClose:!0}).afterClosed().subscribe(r=>{$("body").removeClass("cdk-global-scrollblock"),null!=r&&"create"===r.event&&r.playersData.userGames.forEach(o=>{Dt.gamePlayerLists.gameCreatedBy!=o.userId&&Dt.gamePlayerLists.playersList.push(o)})})}allowPlayer(e){var r=JSON.parse(window.localStorage.getItem(ce.userProfile));this.runningGameService.allowPlayerViaGameCode({uninvitedUserId:e.userId,gameId:this.gamePlayerLists.gameId,userId:r.id,isAllowed:e.isApprove?"1":"2"}).subscribe(s=>{s?(this.gamePlayerLists=s.data,this._newGameService.gamePlayersObj=this.gamePlayerLists,this.websocketService.messages.next({msg:{data:s.data,type:"creategame"}})):this.toasterService.Error(s.msg,"Error")})}onMsgRecieve(e){""!=window.localStorage.getItem(ce.gameId)&&(Dt.isGameCreated=!0);var r=JSON.parse(window.localStorage.getItem(ce.userProfile));if(Dt.loggedInUserId=null!=r?parseInt(r.id):0,e.msg.data.gameCode==window.localStorage.getItem(ce.gameId))if("1"==e.msg.data.status){var o=!1;let s=JSON.parse(JSON.stringify(e.msg.data));if(s.playerList.forEach(c=>{c.userId==r.id&&(o=!0)}),!o)return void this.dialog.open(Zb,{panelClass:"gameStart-dialog",disableClose:!0}).afterClosed().subscribe(f=>{console.log("closed")});this._newGameService.changePlayGame(e.msg.data),delete s.scoreBoard,window.sessionStorage.setItem("gameInfo",JSON.stringify(s)),Dt._router.navigate(["/playGame"])}else Dt._newGameService.gamePlayersObj=e.msg.data,Dt.gamePlayerLists=e.msg.data,Dt.selectedTheme=Dt.gamePlayerLists.fkThemeId,Dt.isScoreGameChecked="1"!=Dt.gamePlayerLists.isGameforFun,Dt.getTheme(!1),0==Dt.gamePlayerLists.status&&Dt.gamePlayerLists.gameCreatedBy!=Dt.loggedInUserId&&(Dt.btnText="Waiting for the host to start the game",Dt.scroll()),Dt.gamePlayerLists.playersList.forEach((s,c)=>{if("2"==s.isUserAllowedInGame&&s.userId==Dt.loggedInUserId&&!Dt.isDeclineDialogOpen){Dt.isDeclineDialogOpen=!0;const g=Dt.dialog.open(XJ,{panelClass:"mini-modal",disableClose:!0});if(Dt.loginService.sockets.length>0)for(var f in Dt.loginService.sockets)Dt.loginService.sockets[f].close();Dt.loginService.sockets=[],g.afterClosed().subscribe(v=>{Dt.isDeclineDialogOpen=!1})}})}selectAvatar(e){this.selectAvatarId=e}joinByUninvitedPlayer(e){if(""==this.joinPalyer.name&&""==this.joinPalyer.token)return void this.toasterService.Error(this.enterNameMsg,"Error");let r=JSON.parse(window.localStorage.getItem(ce.userProfile));this.loggedInUserId=null!=r?parseInt(r.id):0,this._newGameService.joinFromHomePage?this._newGameService.joinFromHomePage=!1:this.joinPalyer.profileImg=null!=this.selectAvatarId&&null!=this.selectAvatarId?this.avatarList[this.selectAvatarId].profileImg:null!=r&&null!=r?r.profileImage:"",this.joinPalyer.gameCode=this.inviteCode,this._newGameService.uninvitedPlayerJoin(this.joinPalyer).subscribe(o=>{var s;if(this.nameSuggested="",o&&o.statusType==xn.success)if(this.initSocketSubsrcibe(),o.isAlreadyJoined&&o.isAlreadyStarted)this._newGameService.playGameSource=null,this._router.navigate(["/playGame"]);else{window.localStorage.setItem(ce.userProfile,JSON.stringify(o.user)),this.loggedInUser=this.loginService.getLoggedInUser(),zt.dV.isNativePlatform()?this.insertFCMDeviceId():this.messagingService.requestPermission(this.loggedInUser.id),e||this.toasterService.Success(o.msg,"Success");let c={gameCode:this.inviteCode,userId:null===(s=this.loggedInUser)||void 0===s?void 0:s.id};this.runningGameService.gamePlayersList(c).subscribe(f=>{f&&f.statusType==xn.success?(this.gamePlayerLists=f.data,this.createdById=this.gamePlayerLists.gameCreatedBy,1==this.breakpoint&&(this.selectedNewGameTab="2"),this.isGameExist=!0,0==this.gamePlayerLists.status&&this.gamePlayerLists.gameCreatedBy!=this.loggedInUserId&&(this.btnText="Waiting for the host to start the game",this.scroll()),this.isScoreGameChecked="1"!=this.gamePlayerLists.isGameforFun,this.gameState=this.gamePlayerLists.status,this.isDisabled=!0,this.selectedTheme=this.gamePlayerLists.fkThemeId,this.getTheme(!1),this.gameLangCode=this.gamePlayerLists.gameLanguageCode,this.getLanguageList(this.loggedInUser.id,!1),this.websocketService.messages.next({msg:{data:f.data,type:"creategame"}})):(this.isGameExist=f.isGameExist,this.btnText=f.msg,this.scroll())})}else if(e&&o.isAlreadyStarted)this.isGameExist=o.isGameExist,null!=this.loggedInUser&&null!=this.loggedInUser&&"5"!=this.loggedInUser.signUpType&&null!=this.loggedInUser&&null!=this.loggedInUser?this.isGameExist=!0:$(".bg-new-game").css("display","none"),this.dialog.open(Zb,{panelClass:"mini-modal",disableClose:!0}).afterClosed().subscribe(f=>{});else if(e){this.isGameExist=o.isGameExist,this.btnText=o.msg,this.scroll(),this.isDisabled=!0;let c=JSON.parse(window.localStorage.getItem(ce.userProfile));this.isScoreGameChecked="1"!=c.isGameforFun,this.selectedTheme=c.themeId,this.getTheme(!1),this.gameLangCode=window.localStorage.getItem(ce.language),this.getLanguageList(c.id,!1)}else null!=o.isNameSuggested&&o.isNameSuggested&&(this.nameSuggested=o.suggestedName),this.toasterService.Error(o.msg,"Error")})}fbLogin(){return(0,Ti.mG)(this,void 0,void 0,function*(){const e=yield Am.login({permissions:gQ});if(e.accessToken){const r=yield Am.getProfile({fields:["email","name","first_name","last_name","picture.width(150).height(150)"]});console.log(r),console.log(`Facebook access token is ${e.accessToken.token}`),this.facebookSignInModel.displayName=r.name,this.facebookSignInModel.email=r.email,this.facebookSignInModel.imageUrl=r.picture.data.url,this.facebookSignInModel.firstName=r.first_name,this.facebookSignInModel.lastName=r.last_name,this.facebookSignInModel.tokenId=e.accessToken.token,this.facebookSignInModel.userId=r.id,this.facebookSignInModel.code=As,this.loginService.facebookSignIn(this.facebookSignInModel).subscribe(o=>{o&&o.statusType==xn.success?(this.accountService.profileImage=o.user.profileImage,this.accountService.email=o.user.email,this.accountService.userName=o.user.userName,this.loginService.getBrowserLang(o.user.code),window.localStorage.setItem(ce.language,o.user.code),window.localStorage.setItem(ce.userProfile,JSON.stringify(o.user)),this.toasterService.Success(this.newGameLangObj.WELCOMEMSG,"Success"),zt.dV.isNativePlatform()?this.insertFCMDeviceId():this.messagingService.requestPermission(o.user.id),this.getFeedbackType({userId:o.user.id}),this.zone.run(()=>this._router.navigate(["/home"]))):(this.toasterService.Error(o.msg,"Error"),this.spinner.hide())})}})}googleSignIn(){return(0,Ti.mG)(this,void 0,void 0,function*(){if(zt.dV.isNativePlatform()){var e=null,r=null,o=null,s=null;yield Pf.signIn().then(f=>{console.log(f),s=f.serverAuthCode},f=>(0,Ti.mG)(this,void 0,void 0,function*(){var g;console.log(f),null!=f.errorMessage&&-1!=f.errorMessage.indexOf("com.google.GIDSignIn error -8")&&(g=yield Pf.refresh(),console.log(g),console.log(g.accessToken),console.log(g.refreshToken),e=g.refreshToken,r=g.accessToken,o=g.idToken)})),Dt.googleLogin(s,e,r,o)}else this.googleInit()})}googleInit(){var r=google.accounts.oauth2.initCodeClient({client_id:"829904516854-5lfv6jrs5tfv3r2ekco9u2hkb59sfmln.apps.googleusercontent.com",scope:"https://www.googleapis.com/auth/contacts.readonly",callback:o=>{console.log(o),Dt.googleLogin(o.code,null,null,null)}});console.log(r.requestCode())}googleLogin(e,r,o,s){this.loginService.googleSignIn({authCode:e,code:As,refreshToken:r,accessToken:o,idToken:s}).subscribe(f=>{f&&f.statusType==xn.success?(this.accountService.profileImage=f.user.profileImage,this.accountService.email=f.user.email,this.accountService.userName=f.user.userName,this.loginService.getBrowserLang(f.user.code),window.localStorage.setItem(ce.language,f.user.code),f.user.profileImage="",window.localStorage.setItem(ce.googleToken,this.googleSignInModel.tokenId),window.localStorage.setItem(ce.userProfile,JSON.stringify(f.user)),this.toasterService.Success(this.newGameLangObj.WELCOMEMSG,"Success"),zt.dV.isNativePlatform()?this.insertFCMDeviceId():this.messagingService.requestPermission(f.user.id),this.getFeedbackType({userId:f.user.id}),null!=f.user.gameId&&null!=f.user.gameId&&""!=f.user.gameId?(window.localStorage.setItem(ce.gameId,f.user.gameId),this.joinByUninvitedPlayer(!0)):this.zone.run(()=>this._router.navigate(["/home"]))):(this.toasterService.Error(f.msg,"Error"),this.spinner.hide())})}getFeedbackType(e){this.accountService.getFeedbackType(e).subscribe(r=>{r&&(this.accountService.feedbackTypeList=r.data)})}gameJoin(e,r){this.runningGameService.joinGame({gameCode:e,userId:r}).subscribe(s=>{if(s&&s.statusType==xn.success)if(this.initSocketSubsrcibe(),!s.isAlreadyJoined||s.isAlreadyStarted){this._newGameService.gamePlayersObj=s.data;var c={data:s.data,type:"creategame"};1==this.breakpoint&&(this.selectedNewGameTab="2"),this.isGameExist=!0,this.websocketService.messages.next({msg:c}),!s.isAlreadyJoined&&s.isAlreadyStarted&&this.dialog.open(Zb,{panelClass:"mini-modal",disableClose:!0}).afterClosed().subscribe(g=>{})}else 0==s.data.length?(this._newGameService.playGameSource=null,this._router.navigate(["/playGame"])):(this.gamePlayerLists=s.data,1==this.breakpoint&&(this.selectedNewGameTab="2"),this.isGameExist=!0,this.isScoreGameChecked="1"!=this.gamePlayerLists.isGameforFun,this.gameState=this.gamePlayerLists.status,0==this.gameState&&this.gamePlayerLists.gameCreatedBy!=this.loggedInUserId&&(this.btnText="Waiting for the host to start the game",this.scroll()),this.isDisabled=!0,this.selectedTheme=this.gamePlayerLists.fkThemeId,this.getTheme(!1),this.gameLangCode=this.gamePlayerLists.gameLanguageCode,this.getLanguageList(this.loggedInUser.id,!1));else{if(s.gameDeactivated)return this.toasterService.Error(s.msg,"Error"),void this._router.navigate(["/runningGame"],{queryParams:{tabValue:"2"}});this.selectedTheme=this.loginService.getLoggedInUser().themeId,this.getTheme(!1),this.gameLangCode=window.localStorage.getItem(ce.language),this.getLanguageList(this.loginService.getLoggedInUser().id,!1),this.isGameExist=!1,this.btnText=s.msg}})}onPopState(e){this._newGameService.setFromBackButton()}createGame(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.playGame.isGameActive=!0,this.playGame.gameCreatedBy=e.id,this.playGame.userGames=[],this.playGame.isNewSolo=0==this.selectedUserList.length,null!=e&&null!=e&&(this.userGameObj.gameId=0,this.userGameObj.userId=e.id,this.userGameObj.userLastWord="",this.userGameObj.isTurn="0",this.userGameObj.gameScore=0,this.userGameObj.turnSequenceNo=1,this.userGameObj.updatedDateTime="",this.userGameObj.userType=e.loginType,this.userGameObj.email=e.email,this.userGameObj.firstName=e.nameFirst,this.userGameObj.lastName=e.nameLast,this.userGameObj.userName=e.userName,this.userGameObj.ImgUrl=e.profileImage,this.playGame.userGames.push(this.userGameObj),this.playGame.isGameforFun=!this.isScoreGameChecked,this.playGame.code=this.gameLangCode,this.playGame.fkThemeId=this.selectedTheme,this.playGame.gameCode=this.inviteCode,this.websocketService.initSocket(this.inviteCode),this._newGameService.createGame(this.playGame).subscribe(o=>{1==this.breakpoint&&(this.selectedNewGameTab="2"),window.localStorage.setItem(ce.gameId,o.data.gameCode),this.isGameCreated=!0,this.isDisabled=!0,this._newGameService.gamePlayersObj=null,Dt.gamePlayerLists=o.data,this.createdById=this.gamePlayerLists.gameCreatedBy,this.initSocketSubsrcibe()}))}editClick(){this.isInEdit=!0,this.isDisabled=!1}saveGameConfigure(){var e=this.isScoreGameChecked?0:1,r=this.selectedLanguage,o=this.selectedTheme,s=this.inviteCode,c=JSON.parse(window.localStorage.getItem(ce.userProfile));this._newGameService.updateTheGame({isGameforFun:e,code:r,themeId:o,gameCode:s,userId:c.id,email:c.email}).subscribe(g=>{"success"==g.statusType?(this.gameLangCode=this.selectedLanguage,this.isInEdit=!1,this.isDisabled=!0,this.toasterService.Success(g.msg,"Success!")):this.toasterService.Error(g.msg,"Error")})}scroll(){var r=!1;this.scrollInterval=setInterval(()=>{if(!r){const o=document.getElementById("btnText"),s=document.getElementsByClassName("span-text");if(null!=o){const c=o.scrollWidth;o.scrollLeft!==c&&o.scrollTo(o.scrollLeft+1,0),c-Math.ceil(o.scrollLeft)==o.offsetWidth&&(s[0].style.padding="0px 11px 0px 1px",r=!0,this.scrollTimeoutLeft=setTimeout(()=>{o.scrollTo(0,0),this.scrollTimeoutRight=setTimeout(()=>{r=!1},1e3)},1e3))}}},35)}initSocketSubsrcibe(){Dt.newGameSubscription=Dt.websocketService.createGameObs.subscribe(e=>{console.log("Response from websocket: "+e),Dt.onMsgRecieve(e)},e=>console.log(e),()=>{"/newGame"==Dt._router.url&&(Dt.websocketService.isSelfClosews||(Dt.websocketService.initSocket(Dt.localStorageService.getItem("game")),Dt.initSocketSubsrcibe())),console.log("Close websocket connection")})}changeScoreToggle(e){this.isScoreGameChecked=e}onValChange(e){this.selectedNewGameTab=e}joinRequest(e){this.joinPalyer.name=e.name,this.joinByUninvitedPlayer(!1)}appleSingIn(){lF.authorize({clientId:"com.lastletterfirst.app",redirectURI:"https://qa-app.lastletterfirst.com/login",scopes:"email name",state:"12345",nonce:"nonce"}).then(r=>{if(console.log(r),Dt.appleSignInModel.email=r.response.email,null==Dt.appleSignInModel.email||""==Dt.appleSignInModel.email){var o=nd(r.response.identityToken);console.log(o),Dt.appleSignInModel.email=o.email}Dt.appleSignInModel.displayName=(null==r.response.givenName?"":r.response.givenName)+" "+(null==r.response.familyName?"":r.response.familyName),Dt.appleSignInModel.imageUrl=null,Dt.appleSignInModel.tokenId=r.response.identityToken,Dt.appleSignInModel.userId=r.response.user,Dt.appleSignInModel.firstName=r.response.givenName,Dt.appleSignInModel.lastName=r.response.familyName,Dt.appleSignInModel.authCode=r.response.authorizationCode,Dt.loginService.appleLogin(Dt.appleSignInModel).subscribe(s=>{s&&s.statusType==xn.success?(Dt.accountService.profileImage=s.user.profileImage,Dt.accountService.email=s.user.email,Dt.accountService.userName=s.user.userName,Dt.loginService.advancedMode=s.user.isAdvancedMode,s.user.profileImage="",Dt.loginService.getBrowserLang(s.user.code),window.localStorage.setItem(ce.language,s.user.code),window.localStorage.setItem(ce.userProfile,JSON.stringify(s.user)),Dt.toasterService.Success(Dt.newGameLangObj.WELCOMEMSG,"Success"),Dt.getFeedbackType({userId:s.user.id}),Dt.insertFCMDeviceId(),null!=s.user.gameId&&null!=s.user.gameId&&""!=s.user.gameId?(window.localStorage.setItem(ce.gameId,s.user.gameId),Dt.gameJoin(s.user.gameId,s.user.id)):Dt.zone.run(()=>Dt._router.navigate(["/home"]))):(Dt.toasterService.Error(s.msg,"Error"),Dt.spinner.hide())})}).catch(r=>{console.log(r)})}insertFCMDeviceId(){return(0,Ti.mG)(this,void 0,void 0,function*(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));console.log(su.getInfo()),console.log(su.getId()),console.log(this.loginService.tokenVal),console.log("hi");var r=yield su.getInfo();window.localStorage.setItem("firebaseToken",this.loginService.tokenVal);var o={userId:e.id,deviceId:su.getId(),firebaseToken:this.loginService.tokenVal,userLoginType:r.platform};this.messagingService.insertFCMDeviceId(o).subscribe(s=>{console.log(s)})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bo),t.Y36(Ka),t.Y36(l),t.Y36(Ht),t.Y36(I),t.Y36(fn),t.Y36(mr),t.Y36(Zn),t.Y36(Es),t.Y36(Wm),t.Y36(Nf),t.Y36(t.R0b),t.Y36(tc),t.Y36(Ym),t.Y36(ec))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-new-game"]],hostBindings:function(e,r){1&e&&t.NdJ("popstate",function(s){return r.onPopState(s)},!1,t.Jf7)},decls:2,vars:2,consts:[["class","bg-container bg-new-game",4,"ngIf"],["class","bg-new-game",4,"ngIf"],[1,"bg-container","bg-new-game"],["fxLayout","row","fxLayoutGap","1.5%",1,""],["class","bg-sub-container","style","padding: 20px","fxFlex","50%",3,"breakpoint","createdById","themeName","languageName","isScoreGameChecked","isGameCreated","isInEdit","prevBtnDisabled","nxtBtnDisabled","prevThmBtnDisabled","nxtThmBtnDisabled","isDisabled","getPlayerData","onclickNextThm","onclickPrevThm","onclickPrev","onclickNext","createGame","editClick","saveGameSettings","changeScoreToggle",4,"ngIf"],["class","bg-sub-container","style","padding: 20px","fxFlex","50%",3,"inviteCode","breakpoint","avatarList","isGameExist","joinPalyer","isFacebookEnabled","isGoogleEnabled","nameSuggested","selectAvatarId","joinPlayerClick","selectAvatar","signInFB","signInGoogle",4,"ngIf"],["fxFlex","50%",1,"bg-sub-container",2,"padding","20px",3,"gamePlayerLists","breakpoint","isGameExist","btnText","loggedInUserId","isGameCreated","inviteCode","approvePlayer","selectPlayerDialog","cpCode"],[4,"ngIf"],["fxFlex","50%",1,"bg-sub-container",2,"padding","20px",3,"breakpoint","createdById","themeName","languageName","isScoreGameChecked","isGameCreated","isInEdit","prevBtnDisabled","nxtBtnDisabled","prevThmBtnDisabled","nxtThmBtnDisabled","isDisabled","getPlayerData","onclickNextThm","onclickPrevThm","onclickPrev","onclickNext","createGame","editClick","saveGameSettings","changeScoreToggle"],["fxFlex","50%",1,"bg-sub-container",2,"padding","20px",3,"inviteCode","breakpoint","avatarList","isGameExist","joinPalyer","isFacebookEnabled","isGoogleEnabled","nameSuggested","selectAvatarId","joinPlayerClick","selectAvatar","signInFB","signInGoogle"],["mat-raised-button","","color","accent",1,"m-t-15",2,"width","100%",3,"click"],[1,"bg-new-game"],["class","bgColor","style","border: solid rgb(207, 204, 204) 1px;","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"bgColor",2,"border","solid rgb(207, 204, 204) 1px"],["id","newGameContent",1,"alignCenter"],["appearance","legacy","name","accountTab","aria-label","Font Style",1,"tab",3,"value","change"],["newGameGroup","matButtonToggleGroup"],["value","1",1,"font18"],[1,"material-icons-outlined","tabIcon"],["value","2",1,"font18"],["style","padding: 20px",3,"inviteCode","breakpoint","avatarList","isGameExist","joinPalyer","isFacebookEnabled","isGoogleEnabled","isAppleEnabled","nameSuggested","selectAvatarId","joinPlayerClick","selectAvatar","signInFB","signInGoogle","signInApple",4,"ngIf"],["style","padding: 20px",3,"breakpoint","createdById","themeName","languageName","isScoreGameChecked","isGameCreated","isInEdit","prevBtnDisabled","nxtBtnDisabled","prevThmBtnDisabled","nxtThmBtnDisabled","isDisabled","getPlayerData","onclickNextThm","onclickPrevThm","onclickPrev","onclickNext","createGame","editClick","saveGameSettings","changeScoreToggle",4,"ngIf"],["style","padding: 20px",3,"gamePlayerLists","breakpoint","isGameExist","btnText","loggedInUserId","isGameCreated","inviteCode","approvePlayer","clickShareLink","selectPlayerDialog","cpCode",4,"ngIf"],[2,"padding","20px",3,"inviteCode","breakpoint","avatarList","isGameExist","joinPalyer","isFacebookEnabled","isGoogleEnabled","isAppleEnabled","nameSuggested","selectAvatarId","joinPlayerClick","selectAvatar","signInFB","signInGoogle","signInApple"],[2,"padding","20px",3,"breakpoint","createdById","themeName","languageName","isScoreGameChecked","isGameCreated","isInEdit","prevBtnDisabled","nxtBtnDisabled","prevThmBtnDisabled","nxtThmBtnDisabled","isDisabled","getPlayerData","onclickNextThm","onclickPrevThm","onclickPrev","onclickNext","createGame","editClick","saveGameSettings","changeScoreToggle"],[2,"padding","20px",3,"gamePlayerLists","breakpoint","isGameExist","btnText","loggedInUserId","isGameCreated","inviteCode","approvePlayer","clickShareLink","selectPlayerDialog","cpCode"]],template:function(e,r){1&e&&(t.YNc(0,lQ,6,10,"div",0),t.YNc(1,pQ,3,2,"div",1)),2&e&&(t.Q6J("ngIf",0==r.breakpoint),t.xp6(1),t.Q6J("ngIf",1==r.breakpoint))},styles:[".setting-card{border-radius:25px!important;box-shadow:none!important;padding:0!important}.iconVertical[_ngcontent-%COMP%]{vertical-align:middle}.redIcon[_ngcontent-%COMP%]{background-color:red;color:#fff;border-radius:25px}.redBtn[_ngcontent-%COMP%]{background-color:red;width:100%;padding:5px 15px;color:#fff;border-radius:25px;font-size:14px}.yellowBtn[_ngcontent-%COMP%]{background-color:#fab400;width:100%;padding:5px 15px;color:#fff;border-radius:25px;font-size:14px}.yellowIcon[_ngcontent-%COMP%]{background-color:#fab400;color:#fff;border-radius:25px}.greenIcon[_ngcontent-%COMP%]{background-color:#00b855;color:#fff;border-radius:25px}.greenBtn[_ngcontent-%COMP%]{background-color:#00b855;width:100%;padding:5px 15px;color:#fff;border-radius:25px;font-size:14px}textarea[_ngcontent-%COMP%]:focus, input[_ngcontent-%COMP%]:focus{border-radius:50px;border:#e2e2e2 1px solid!important}.linkColor[_ngcontent-%COMP%]{color:#f34780;margin-bottom:25px}.md-height[_ngcontent-%COMP%]{height:19vh;overflow-y:auto}.btn-start[_ngcontent-%COMP%]{width:100%;font-size:16px;text-transform:uppercase}.running-game-h2[_ngcontent-%COMP%]{text-align:center;color:#ff4081}.div-disabled[_ngcontent-%COMP%]{background-color:#ccc!important;color:#ccc!important}.color-ccc[_ngcontent-%COMP%]{color:#ccc!important} .accent-label{color:#ff4081;font-weight:bolder;cursor:pointer}button.scroll[_ngcontent-%COMP%]::-webkit-scrollbar{height:0px}.parentPlayList[_ngcontent-%COMP%]:has(div.playList){margin-bottom:15px}@media screen and (max-width: 1441px){.md-height[_ngcontent-%COMP%]{height:22vh;overflow-y:auto}}@media screen and (max-width: 1024px){.main-content[_ngcontent-%COMP%]{margin-top:25vh}}@media screen and (max-width: 426px){.btn-start[_ngcontent-%COMP%]{width:100%;font-size:12px;text-transform:uppercase}.avatar[_ngcontent-%COMP%]{height:70px;width:70px;margin:10px;border-radius:50%;opacity:.6;border:#000 1px solid}.selectAvatar[_ngcontent-%COMP%]{height:100px;width:100px;margin:10px;border-radius:50%;border:#000 1px solid}}@media screen and (max-width: 376px){.btn-start[_ngcontent-%COMP%]{width:100%;font-size:10px;text-transform:uppercase}.avatar[_ngcontent-%COMP%]{height:50px;width:50px;margin:10px;border-radius:50%;opacity:.6;border:#000 1px solid}.selectAvatar[_ngcontent-%COMP%]{height:80px;width:80px;margin:10px;border-radius:50%;border:#000 1px solid}.greenBtn[_ngcontent-%COMP%], .redBtn[_ngcontent-%COMP%], .yellowBtn[_ngcontent-%COMP%]{padding:5px 10px}}@media screen and (max-width: 321px){.btn-start[_ngcontent-%COMP%]{width:100%;font-size:8px;text-transform:uppercase}.avatar[_ngcontent-%COMP%]{height:30px;width:30px;margin:10px;border-radius:50%;opacity:.6;border:#000 1px solid}.selectAvatar[_ngcontent-%COMP%]{height:60px;width:60px;margin:10px;border-radius:50%;border:#000 1px solid}.main-content[_ngcontent-%COMP%]{margin-top:25vh}}.btn[_ngcontent-%COMP%]{font-size:14px}.form-control[_ngcontent-%COMP%]{height:calc(1.5em + .75rem + 6px)}.input-group-addon[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:middle}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:white}@media only screen and (max-width:684px){.placeholderIOSTxt[_ngcontent-%COMP%]::placeholder{white-space:pre-line}.placeholderAndroidTxt[_ngcontent-%COMP%]::placeholder{white-space:pre-line;position:fixed}.placeholderAndroidTxt[_ngcontent-%COMP%], .placeholderIOSTxt[_ngcontent-%COMP%]{height:50px}}.searchBtn[_ngcontent-%COMP%]{width:100%;margin-left:0!important;display:block!important}.modal-dialog[_ngcontent-%COMP%]{margin-top:120px!important}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#6758ba!important;color:#fff!important}.Btn[_ngcontent-%COMP%]{background-color:#00b855!important;border-radius:24px!important;color:#fff!important;font-size:20px!important;height:40px;width:100%}.tab[_ngcontent-%COMP%]{border-radius:17px;margin-top:10px;width:86vw}.mat-button-toggle[_ngcontent-%COMP%]{width:100%}.mRight[_ngcontent-%COMP%]{margin-right:5px} .m15{margin-bottom:15px}.dd[_ngcontent-%COMP%]{padding:10px;border-radius:50px;border:1px solid #d9d9d9}.contentP[_ngcontent-%COMP%]{padding:0 15px} .iconVertical{vertical-align:middle}.signoutBtn[_ngcontent-%COMP%]{padding-top:15px}.redIcon[_ngcontent-%COMP%]{background-color:red;width:auto;padding:8px 12px;color:#fff}.yellowIcon[_ngcontent-%COMP%]{background-color:#fab400;width:auto;padding:8px 12px;color:#fff}.greenIcon[_ngcontent-%COMP%]{background-color:#00b855;width:auto;padding:8px 12px;margin-right:5px;color:#fff}.icon[_ngcontent-%COMP%]{color:#fff;font-size:25px}.borderColor[_ngcontent-%COMP%]{border-top-color:#c6c6c6}.tabIcon[_ngcontent-%COMP%]{vertical-align:text-top} .justify-center .mat-grid-tile-content{justify-content:center!important;padding-left:0}.custom-selectoption[_ngcontent-%COMP%]{display:block;position:relative;flex:auto;min-width:0;width:135px;text-align:center;border-top:.84375em solid transparent;padding:0 1em 1em!important;font-size:14px;font-weight:700}.m-l-5[_ngcontent-%COMP%]{margin-left:5px!important}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-b-0[_ngcontent-%COMP%]{margin-bottom:0}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px!important}.m-t-20[_ngcontent-%COMP%]{margin-top:20px!important}.p-r-0[_ngcontent-%COMP%]{padding-right:0}.p-l-0[_ngcontent-%COMP%]{padding-left:0}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.custom-title[_ngcontent-%COMP%]{font-size:14px;margin:0!important}.custom-content[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.botmborder[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}.mat-slide-toggle[_ngcontent-%COMP%]{vertical-align:middle;float:right}.toggle-switch.mat-checked[_ngcontent-%COMP%] .mat-slide-toggle-bar{background-color:#64bd63!important}.toggle-switch.mat-checked[_ngcontent-%COMP%] .mat-slide-toggle-thumb{background-color:#fff!important}.m-r-15[_ngcontent-%COMP%]{margin-right:15px!important}.txt-center[_ngcontent-%COMP%]{text-align:center}.custom-selection[_ngcontent-%COMP%]{color:#d3d3d3}.custom-selectoption[_ngcontent-%COMP%]{width:135px;text-align:center;line-height:1;font-size:14px;font-weight:700}.mat-card[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.mat-card[_ngcontent-%COMP%]{background:none}.inputStyle[_ngcontent-%COMP%]{border-radius:50px;border:#e2e2e2 1px solid;width:100%;height:50px;margin:10px 0;text-align:center;color:#000}.login-social-item[_ngcontent-%COMP%]{font-size:25px;color:#3b5998;display:flex;justify-content:center;align-items:center;width:65px;height:65px;border-radius:50%;background-color:#fff;margin:5px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.login-social-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px;height:50px}.login-social-item[_ngcontent-%COMP%]:hover{color:#3b5998;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.selectAvatar[_ngcontent-%COMP%]{height:100px;width:100px;margin:10px;border:#000 1px solid}.avatar[_ngcontent-%COMP%]{height:70px;width:70px;margin:10px;opacity:.6;border:#000 1px solid}.singinTxt[_ngcontent-%COMP%]{text-align:center;margin-top:15px} .linkColor{color:#f34780;margin-bottom:25px}.mat-dialog-container[_ngcontent-%COMP%]{padding:15px}.running-game-h2[_ngcontent-%COMP%]{color:#ff4081} .mat-slide-toggle-thumb-container{z-index:0}.mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.breakWord[_ngcontent-%COMP%]{word-break:break-all}.newGame-content[_ngcontent-%COMP%]{margin-top:14vh} .alignCenter{text-align:center}.mat-button-toggle[_ngcontent-%COMP%]{background-color:#f3f0ff;color:#9397ae} .selectPlayer .mat-dialog-content{height:50vh}"]}),n})();class jO{constructor(){this.userWord=""}}class VO{constructor(){this.userWord="",this.gameId=""}}var mQ=P(772),ZO=P.n(mQ);let _Q=(()=>{class n{constructor(e){this.dialogRef=e}ngOnInit(){}onNoClick(){this.dialogRef.close({event:"onNoclick"})}end(){this.dialogRef.close({event:"end"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-end-game"]],decls:18,vars:12,consts:[[1,"custom-header"],["aria-hidden","false","aria-label","Example report_problem icon",1,"mat-custom-icon",2,"color","#ffbf00","position","relative","top","3px","font-size","18px"],[1,"custom-dialog-body"],[1,"custom-dialog-footer"],["mat-stroked-button","","color","accent",3,"click"],["mat-raised-button","","color","accent",1,"m-l-10",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"h4",0)(1,"mat-icon",1),t._uU(2,"report_problem"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._UZ(5,"mat-divider"),t.TgZ(6,"div",2)(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t._UZ(10,"mat-divider"),t.TgZ(11,"div",3)(12,"button",4),t.NdJ("click",function(){return r.onNoClick()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"button",5),t.NdJ("click",function(){return r.end()}),t._uU(16),t.ALo(17,"translate"),t.qZA()()),2&e&&(t.xp6(3),t.hij(" ",t.lcZ(4,4,"NEWPLAYGAME.ENDGAMEPOPUPTITLE")," "),t.xp6(5),t.Oqu(t.lcZ(9,6,"NEWPLAYGAME.ENDGAMEPOPUPBODYMSG")),t.xp6(5),t.hij("",t.lcZ(14,8,"ACCOUNT.NOTXT")," "),t.xp6(3),t.hij(" ",t.lcZ(17,10,"ACCOUNT.YESTXT"),""))},directives:[Jr,ih,Di],pipes:[pn],styles:[".mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}h4[_ngcontent-%COMP%]{margin:0!important;padding:15px!important}.custom-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:15px!important;margin:0} .endGame-dialog .mat-dialog-container{width:500px!important;padding:0!important}.custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}"]}),n})(),Wb=(()=>{class n{constructor(e,r,o,s){this.http=e,this.router=r,this.changePasswordService=o,this.loginService=s,this.productList=[],this.isPurchased=!1,this.selectProductId="",this.productType="",this.isAlreadyPurchased=!1,this.alreadyPurchaseMsg="",this.isPlanSubscribe=!1,this.isPlanExpire=!1,this.isFinished=!1,this.isAdLoad=!0,this.ep=new to,this.selectProductId="",this.purchasedProduct={productName:"",expiryDate:null,productType:""},this.receiptObj=""}getProducts(e){var r=(new Date).getTimezoneOffset();const o={headers:new ai({"Content-Type":"application/json",timezoneoffsetminutes:(r=0==r?0:-r).toString()})};return this.http.post(this.ep.getPurchasePro,e,o).pipe((0,Le.U)(s=>s),vt(this.handleError("getProducts")))}receiptVerification(e){var r=(new Date).getTimezoneOffset();const o={headers:new ai({"Content-Type":"application/json",timezoneoffsetminutes:(r=0==r?0:-r).toString()})};var s="android"==zt.dV.getPlatform()?this.ep.verifyAndroidReceipt:this.ep.verifyIosReceipt;return this.http.post(s,e,o).pipe((0,Le.U)(c=>c),vt(this.handleError("receiptVerification")))}setPurchase(e){return this.http.post(this.ep.setPurchaseProduct,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("setPurchase")))}setRequestHeaders(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile)),r=(new Date).getTimezoneOffset();return{headers:new ai({"Content-Type":"application/json",apiKey:e.apiKey,apiToken:e.apiToken,timezoneoffsetminutes:(r=0==r?0:-r).toString(),authToken:null==e.authToken?"":e.authToken,loginType:e.loginType})}}handleError(e="operation",r){return o=>{if(console.log(o),403==o.error.status){var c={userId:JSON.parse(window.localStorage.getItem(ce.userProfile)).id,deviceId:su.getId(),firebaseToken:window.localStorage.getItem("firebaseToken")};this.changePasswordService.removeFCMDeviceId(c).subscribe(f=>{}),window.FirebasePlugin.clearAllNotifications(),window.localStorage.clear(),this.loginService.getBrowserLang(""),this.router.navigate(["/login"])}return console.log(`${e} failed: ${o.message}`),ut(r)}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar),t.LFG(Ht),t.LFG(ql),t.LFG(fn))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function vQ(n,i){if(1&n&&(t.TgZ(0,"div",16),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit,r=t.oxw();t.xp6(1),t.AsE(" ",""!=e.totalScore?e.totalScore:0," ",1==r.breakpoint?"Pts":"POINTS","")}}const bQ=function(n,i,e){return{greenFont:n,yellowFont:i,redFont:e}};function yQ(n,i){if(1&n&&(t.TgZ(0,"span",19),t._uU(1),t.ALo(2,"uppercase"),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.Q6J("ngClass",t.kEZ(4,bQ,"0"==e.strikeCount,"1"==e.strikeCount,"2"==e.strikeCount)),t.xp6(1),t.hij(" ",t.lcZ(2,2,0==e.strikeReasonId?e.lastWord:e.strikeText),"")}}function xQ(n,i){if(1&n&&(t.TgZ(0,"div",17),t.YNc(1,yQ,3,8,"span",18),t.qZA()),2&n){const e=t.oxw(),o=e.$implicit;t.MGl("id","scrollSpan",e.index,""),t.xp6(1),t.Q6J("ngIf",(o.lastWord||0!=o.strikeCount)&&"3"!=o.strikeCount)}}function CQ(n,i){1&n&&(t.TgZ(0,"div",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"NEWPLAYGAME.PLAYEROUT")," "))}function wQ(n,i){if(1&n&&(t.TgZ(0,"div",16),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit,r=t.oxw();t.xp6(1),t.AsE(" ",""!=e.lastWordScore&&null!=e.lastWordScore?e.lastWordScore:0," ",1==r.breakpoint?"Pts":"POINTS","")}}const TQ=function(n){return{left:n}},SQ=function(n,i,e,r){return{greenBorder:n,yellowBorder:i,redBorder:e,grayBorder:r}},DQ=function(n){return{nameHeight:n}};function EQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t.NdJ("@animationDir.done",function(o){const c=t.CHM(e).index;return t.oxw().doNext(c,o)}),t.TgZ(1,"div",5),t._UZ(2,"img",6),t.qZA(),t.TgZ(3,"div",7)(4,"div",8),t._UZ(5,"img",9),t.qZA(),t.TgZ(6,"div",10)(7,"div",11)(8,"div",12)(9,"span"),t._uU(10),t.ALo(11,"translate"),t.ALo(12,"uppercase"),t.qZA()(),t.YNc(13,vQ,2,2,"div",13),t.qZA(),t.TgZ(14,"div",11),t.YNc(15,xQ,2,2,"div",14),t.YNc(16,CQ,3,3,"div",15),t.YNc(17,wQ,2,2,"div",13),t.qZA()()()()}if(2&n){const e=i.$implicit,r=i.index,o=t.oxw();t.Q6J("@animationDir",o.testOut),t.xp6(2),t.MGl("id","avatar",r,""),t.s9C("src",o.startGameObj.themeUrl?o.themeUrl:"assets/images/car.png",t.LSH),t.Q6J("ngStyle",t.VKq(19,TQ,e.avatarWidth)),t.xp6(1),t.Udp("background",o.uninvitedPlayerBG[r]),t.xp6(2),t.s9C("src",null!=e&&e.profile_image?e.profile_image:"assets/images/img-user.jpg",t.LSH),t.Q6J("ngClass",t.l5B(21,SQ,"0"==e.strikeCount,"1"==e.strikeCount,"2"==e.strikeCount||0==e.isActive,"3"===e.strikeCount)),t.xp6(3),t.MGl("id","scrollDiv",r,""),t.Q6J("ngClass",t.VKq(26,DQ,o.startGameObj.isGameforFun&&!e.lastWord)),t.xp6(2),t.Oqu(t.lcZ(11,15,t.lcZ(12,17,0==e.isActive?"NEWPLAYGAME.DELETEDPLAYER":""!=e.userName?e.userName:e.firstName))),t.xp6(3),t.Q6J("ngIf",!o.startGameObj.isGameforFun),t.xp6(2),t.Q6J("ngIf","3"!=e.strikeCount),t.xp6(1),t.Q6J("ngIf","3"==e.strikeCount),t.xp6(1),t.Q6J("ngIf",!o.startGameObj.isGameforFun)}}const AQ=function(n,i){return{endGameDiv:n,endGameDivWithoutAd:i}};function MQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",21)(1,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw().openEndGameDialog()}),t.TgZ(2,"strong"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("ngClass",t.WLB(4,AQ,e.storeService.isAdLoad&&e._loginService.isNative,!e.storeService.isAdLoad||!e._loginService.isNative)),t.xp6(3),t.Oqu(t.lcZ(4,2,"NEWPLAYGAME.ENDGAMEBTN"))}}const IQ=function(n){return{"margin-bottom":n}},OQ=function(n,i,e,r,o,s,c){return{androidHeightPlayerList:n,safariWebDesPlayerList:i,playerListWithoutNotice:e,iOSPlayerList:r,iOSPlayerList375:o,iOSPlayerList395:s,iOSPlayerList450:c}};var Ne;new(ZO());let nT=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M,R,K,fe,Me,Fe){this.route=e,this._newGameService=r,this.translate=o,this.websocketService=s,this._loginService=c,this.toasterService=f,this.ngZone=g,this.document=v,this._router=T,this.runningGameService=D,this.http=M,this.storeService=R,this.accountService=K,this.dialog=fe,this.localStorageService=Me,this.breakpointObserver=Fe,this.gameData=new t.vpe,this.isSubmitted=!0,this.isSinglePlayer=!1,this.isUninvitedPlayer=!1,this.isGameExist=!0,this.isGameStart=!1,this.isAcceptReq=!0,this.isRegGameExist=!1,this.isPoke=!1,this.turnUserId="",this.socketDataArrive=!1,this.intervalArray=[],this.intervalDivArray=[],this.startGameObj={},this.currentPlayedUserName="",this.isRemoveKey=!1,this.currentPlayer="",this.lastPlayer="",this.currentScore=0,this.gameScreenModel=new jO,this.checkWordModel=new VO,this.isTurnGame=!1,this.turnSequenceNo=0,Ne=this,this.enterWordScore=0,this.placeholderText="",this.nextPlayerTurnSequenceNo=[],this.strikeCount=0,this.countOutPlayer=0,this.hindiVernamala=[],this.randomColors=["#d4f0ff","#dcd7ff","#cfffe2","#ffdce8","#f2f6ff"],this.alphabets=[],this.uninvitedPlayerBG=[],this.joinPalyer={gameCode:"",name:"",userId:"",token:"",code:"en"},this.gameCode="",this.themeUrl="",this.nameSuggested="",this.routeObserver=null,this.websocketSubscription=null,e.queryParams.subscribe(qe=>{this.gameId=qe.game,this.gameCode=qe.game,this.isRegister=null!=qe.Reg&&"1"==qe.Reg,this.joinPalyer.token=null!=qe.t&&null!=qe.t?qe.t:"",null!=this.gameCode&&null!=this.gameCode&&""!=this.gameCode&&window.localStorage.setItem(ce.gameId,this.gameCode)}),this.routeObserver=T.events.subscribe(qe=>{qe instanceof $s&&Ne.clearTimeSet()})}ngOnInit(){if(this.isiOS="ios"==zt.dV.getPlatform(),this.selectedTab="1",this.loggedInUser=this._loginService.getLoggedInUser(),this.hindiVernamala=["\u0905","\u0906","\u0907","\u0908","\u0909","\u090a","\u090f","\u0910","\u0913","\u0914","\u0915\u094d\u0937","\u0924\u094d\u0930","\u091c\u094d\u091e","\u0915","\u0916","\u0917","\u0918","\u091a","\u091b","\u091c","\u091d","\u091f","\u0920","\u0921","\u0922","\u0924","\u0925","\u0926","\u0928","\u0923","\u0927","\u092a","\u092b","\u092c","\u092d","\u092f","\u092e","\u0930","\u0932","\u0935","\u0936","\u0937","\u0938","\u0939"],this.translate.get("ADVANCEPLAYGAME").subscribe(r=>{this.translateObj=r,this.firstEnterText=this.translateObj.FIRSTENTERWORDPLACE,this.seconfEnterText=this.translateObj.SECONDENTERWORDPLACE,this.itsText=this.translateObj.ITS,this.turnText=this.translateObj.TURN,this.joinText=this.translateObj.JOINPLACE,this.validationTextEnterWord=this.translateObj.VALIDFORWORD,this.ItsYourTurnText=this.translateObj.ITSYOURTURN,this.enLang=this.translateObj.EN,this.hiLang=this.translateObj.HI,this.reqMsg=this.translateObj.REQMSG,this.alreadyStartMsg=this.translateObj.ALREADYSTARTMSG,this.notAcceptReq=this.translateObj.NOACCEPTREQMSG,this.gameNotStarted=this.translateObj.NOGAMESTARTED,this.enterNameMsg=this.translateObj.ENTERNAMEMSG}),this.clearTimeSet(),null==this.loggedInUser&&this.isRegister)this._router.navigate(["/login"]);else{this._loginService.prevoiusUrl="/playGame";var e={userId:this.loggedInUser.id};if(null!=Ne._newGameService.playGameSource&&null!=Ne._newGameService.playGameSource){Ne.startGameObj=Ne._newGameService.playGameSource;let r=JSON.parse(JSON.stringify(Ne._newGameService.playGameSource));delete r.scoreBoard,window.sessionStorage.setItem("gameInfo",JSON.stringify(r)),Ne.onMsgResponse(Ne._newGameService.playGameSource,!1),setTimeout(()=>{Ne.gameData.emit(Ne._newGameService.playGameSource)},1e3),Ne.initSocketSubsrcibe()}else Ne.reloadPage(e)}}clearPosParam(){this._router.navigate(["."],{relativeTo:this.route,queryParams:{}})}onMsgResponse(e,r){Ne.clearTimeSet(),Ne._newGameService.playGameSource=e,Ne.nextPlayerTurnSequenceNo=[],Ne.startGameObj=e,Ne.themeUrl=ce.apiEndPoint+""+Ne.startGameObj.themeUrl,Ne.isNewSolo=Ne.startGameObj.isNewSolo;for(let o=0;o{if(Ne.loggedInUser.id==o.userId)return o}),Ne.isSubmitted=!0,Ne.countOutPlayer=0,Ne.response.forEach((o,s)=>{let c=Ne.getUserinfo(o.userId);o.userName=c.userName,o.firstName=c.firstName,o.profile_image=c.profile_image;let f="";f=Ne.randomColors[Math.floor(5*Math.random())],f==Ne.uninvitedPlayerBG[s-1]&&(f=Ne.getUniqueColor(Ne.uninvitedPlayerBG[s-1])),Ne.uninvitedPlayerBG.push(f),Ne.startGameObj.playerTurnId==o.userId&&(Ne.turnSequenceNo=o.turnSequenceNo,Ne.turnUserId=o.userId),Ne.loggedInUser.id!=o.userId&&3!=o.strikeCount&&Ne.nextPlayerTurnSequenceNo.push(o.turnSequenceNo),Ne.startGameObj.playerTurnId==Ne.loggedInUser.id&&Ne.loggedInUser.id==o.userId?(Ne.isTurnGame=!0,Ne.strikeCount=o.strikeCount,"1"==Ne.startGameObj.status||(Ne.isTurnGame=!1)):Ne.startGameObj.playerTurnId!=Ne.loggedInUser.id&&Ne.loggedInUser.id==o.userId&&(Ne.isTurnGame=!1,Ne.strikeCount=o.strikeCount),"3"==o.strikeCount&&Ne.countOutPlayer++,Ne.isNewSolo||Ne.calculationProgress(o,s)}),Ne.isSinglePlayer=!1,Number(Ne.startGameObj.totalPlayers)-Ne.countOutPlayer==1&&Ne.startGameObj.scoreBoard.length==Number(Ne.startGameObj.totalPlayers)&&"0"!=Ne.startGameObj.status&&!Ne.startGameObj.isNewSolo&&(Ne.isSinglePlayer=!0),Ne.playerListAnimation=[],Ne.playerListAnimation.push(Ne.response[0]),this.gameAppNoticeHideShow=this.accountService.gameAppNoticeHideShow}endGame(){this.runningGameService.endGame({gameId:this.startGameObj.gameId,userId:this.loggedInUser.id}).subscribe(r=>{"success"==r.statusType?"5"==this.loggedInUser.signUpType?this.goToLogin():this._router.navigate(["/runningGame"]):this.toasterService.Error(r.msg,"Error")})}fnRemoveKey(e){var r=e.keyCode||e.charCode;this.isRemoveKey=8==r||46==r}getLanguageGame(e){return"en"==e?this.enLang:"hi"==e?this.hiLang:this.enLang}reloadPage(e){var r={gameCode:window.localStorage.getItem(ce.gameId),code:this._loginService.getLoggedInUser().code,userId:this.loggedInUser.id};this.runningGameService.resumeGame(r).subscribe(o=>{if("success"==o.statusType){Ne.startGameObj=o.data;let s=JSON.parse(JSON.stringify(o.data));delete s.scoreBoard,window.sessionStorage.setItem("gameInfo",JSON.stringify(s)),this.onMsgResponse(o.data,!1),setTimeout(()=>{Ne.gameData.emit(o.data)},1e3),Ne.initSocketSubsrcibe()}else if("fail"==o.statusType){if(o.gameDeactivated)return void this._router.navigate(["/runningGame"],{queryParams:{tabValue:"2"}}).then(()=>{this.toasterService.Error(o.msg,"Error")});"5"==this.loggedInUser.signUpType?this._router.navigate(["/login"],{queryParams:{tabValue:"2"}}).then(()=>{this.toasterService.Error(o.msg,"Error")}):this._router.navigate(["/home"]).then(()=>{this.toasterService.Error(o.msg,"Error")})}})}redirectToBack(){window.location.href="https://lastletterfirst.com/"}ngOnDestroy(){this.websocketSubscription&&this.websocketSubscription.unsubscribe(),this.clearTimeSet(),clearTimeout(this.remindTimeout),this.remindTimeout=null,this.routeObserver.unsubscribe(),clearTimeout(this.scrollTimeoutRight),clearTimeout(this.scrollTimeoutLeft),clearInterval(this.scrollInterval),clearInterval(this.scrollIntervalDiv),this.scrollInterval=void 0,this.scrollIntervalDiv=void 0,this.remindTimeout=null,this.intervalArray.forEach(function(e){clearInterval(e)}),this.intervalDivArray.forEach(function(e){clearInterval(e)}),this.intervalArray=[],this.intervalDivArray=[],$(".modal-backdrop").remove(),toastr.remove()}goToLogin(){this._router.navigate(["/login"])}calculationProgress(e,r){var o=JSON.parse(window.localStorage.getItem(ce.userProfile));Ne.startGameObj.isGameforFun?(e.progressWidth=null==e.turnWord||""==e.turnWord?"0%":"100%",e.avatarWidth=null==e.turnWord||""==e.turnWord?"0%":"100%"):e.userId==o.id?"0"==e.totalScore?e.progressWidth="0%":(e.progressWidth="50%",e.avatarWidth="50%"):0!=Ne.loginUserScore[0].totalScore&&Number(2*Ne.loginUserScore[0].totalScore)=100?"100%":Number(e.totalScore)+"%",e.avatarWidth=Number(e.totalScore)>=100?"100%":Number(e.totalScore)+"%")}doNext(e,r){1==Ne.playerListAnimation.length&&this.recursiveAnimationCall(e)}recursiveAnimationCall(e){var r=3e3,o=JSON.parse(window.localStorage.getItem(ce.userProfile));if(Ne.startGameObj.isNewSolo)Ne.clearTimeSet(),Ne.startGameObj.isGameforFun?(Ne.playerListAnimation[e].progressWidth=null==Ne.response[e].lastWord||""==Ne.response[e].lastWord?"0":"100",Ne.playerListAnimation[e].avatarWidth=null==Ne.response[e].lastWord||""==Ne.response[e].lastWord?"0%":"100%"):(Ne.playerListAnimation[e].progressWidth=Ne.response[e].totalScore>=100?"100":Ne.response[e].totalScore,Ne.playerListAnimation[e].avatarWidth=Ne.response[e].totalScore>=100?"100%":Ne.response[e].totalScore+"%"),$("#avatar"+e).css({display:"block",transition:"visibility 0.5s, opacity 0.5s linear","-webkit-transition":"visibility 0.5s, opacity 1s linear","-webkit-transition-delay":"0.2s"}),$("#avatar"+e).animate({left:Ne.playerListAnimation[e].progressWidth+"%"},1500),$("#avatar"+e).css("left",Ne.playerListAnimation[e].avatarWidth),0!=Ne.playerListAnimation[e].progressWidth&&(this.timeReset=setTimeout(()=>{this.socketDataArrive?this.socketDataArrive=!1:($("#avatar"+e).css({display:"none"}),$("#avatar"+e).css("left","0%"))},3e3)),this.timeSet=setTimeout(()=>{this.recursiveAnimationCall(0)},5e3);else{var s;if(Ne.playerListAnimation.length100?"100":Ne.playerListAnimation[e].totalScore:100*Number(Ne.playerListAnimation[e].totalScore)/(2*Number(Ne.loginUserScore[0].totalScore)),$("#avatar"+e).css({display:"block",transition:"visibility 0.5s, opacity 1s linear","-webkit-transition":"visibility 0.5s, opacity 1s linear","-webkit-transition-delay":"0.2s"}),$("#avatar"+e).animate({left:Ne.playerListAnimation[e].progressWidth+"%"},1500),this.indexCheck==Ne.response.length-1?0!=Ne.playerListAnimation[0].progressWidth&&(this.timeReset=setTimeout(()=>{this.socketDataArrive?this.socketDataArrive=!1:($("#avatar0").css({display:"none"}),$("#avatar0").css("left","0%"))},r)):(0!=Ne.playerListAnimation[e+1].totalScore||this.startGameObj.isGameforFun&&null!=Ne.response[e+1].turnWord&&""!=Ne.response[e+1].turnWord)&&(this.timeReset=setTimeout(()=>{$("#avatar"+(e+1)).css({display:"none"}),$("#avatar"+(e+1)).css("left","0%"),this.socketDataArrive&&(this.socketDataArrive=!1)},r)),this.timeSet=setTimeout(()=>{e+1==Ne.response.length?(this.indexCheck=0,this.recursiveAnimationCall(0)):(this.indexCheck=e+1,this.recursiveAnimationCall(e+1))},5e3)}}clearTimeSet(){clearTimeout(this.timeSet),clearTimeout(this.timeReset),this.timeSet=null,this.timeReset=null}openEndGameDialog(){this.dialog.open(_Q,{panelClass:"endGame-dialog"}).afterClosed().subscribe(r=>{null!=r&&"end"===r.event&&this.endGame()})}getUniqueColor(e){let r=Ne.randomColors[Math.floor(5*Math.random())];return e==r&&Ne.getUniqueColor(e),r}scrollUp(){setTimeout(()=>{this.document.defaultView.scrollTo(0,160)},1e3)}scroll(e,r){this.intervalArray.length==r&&(this.intervalArray.forEach(function(s){clearInterval(s)}),this.intervalArray=[]);var o=!1;this.scrollInterval=setInterval(()=>{if(!o){const s=document.getElementById(e);if(null!=s){const c=s.scrollWidth;s.scrollLeft!==c&&s.scrollTo(s.scrollLeft+1,0),c-Math.ceil(s.scrollLeft)==s.offsetWidth&&(o=!0,this.scrollTimeoutLeft=setTimeout(()=>{s.scrollTo(0,0),this.scrollTimeoutRight=setTimeout(()=>{o=!1},1e3)},1e3))}}},35),this.intervalArray.push(this.scrollInterval)}scrollDiv(e,r){this.intervalDivArray.length==r&&(this.intervalDivArray.forEach(function(s){clearInterval(s)}),this.intervalDivArray=[]);var o=!1;this.scrollIntervalDiv=setInterval(()=>{if(!o){const s=document.getElementById(e);if(null!=s){const c=s.scrollWidth;s.scrollLeft!==c&&s.scrollTo(s.scrollLeft+1,0),c-Math.ceil(s.scrollLeft)==s.offsetWidth&&(o=!0,this.scrollTimeoutLeft=setTimeout(()=>{s.scrollTo(0,0),this.scrollTimeoutRight=setTimeout(()=>{o=!1},1e3)},1e3))}}},35),this.intervalDivArray.push(this.scrollIntervalDiv)}initSocketSubsrcibe(){this.websocketSubscription=Ne.websocketService.playGameObs.subscribe(e=>{if(console.log("Response from websocket: "+e),Ne.clearTimeSet(),Ne.socketDataArrive=!0,Ne.scoreBoardObj={},e.msg.data.allPlayerOut)return this.toasterService.Error("All players out","Error"),void this._router.navigate(["/runningGame"]);Ne.scoreBoardObj=e.msg.data.scoreBoard;let r=JSON.parse(window.sessionStorage.getItem("gameInfo"));null!=r&&(Ne.startGameObj=r,Ne.startGameObj.scoreBoard=Ne.scoreBoardObj,Ne.startGameObj.gameCurrentWord=e.msg.data.gameCurrentWord,Ne.startGameObj.playerTurnId=e.msg.data.playerTurnId),this._newGameService.changePlayGame(Ne.startGameObj),Ne.onMsgResponse(Ne.startGameObj,!0)},e=>console.error(e),()=>{"/playGame"==Ne._router.url&&(Ne.websocketService.isSelfClosews||(Ne.websocketService.initSocket(this.localStorageService.getItem("game")),Ne.initSocketSubsrcibe())),console.log("Close websocket connection")})}getUserinfo(e){return Ne.startGameObj.playerList.find(r=>r.userId==e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(mr),t.Y36(bo),t.Y36(Zn),t.Y36(tc),t.Y36(fn),t.Y36(I),t.Y36(t.R0b),t.Y36(ee),t.Y36(Ht),t.Y36(Ka),t.Y36(Ar),t.Y36(Wb),t.Y36(Es),t.Y36(l),t.Y36(Ym),t.Y36(ec))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-scoreboard"]],inputs:{breakpoint:"breakpoint"},outputs:{gameData:"gameData"},decls:5,vars:14,consts:[["fxLayout","column",2,"position","relative",3,"ngStyle"],["id","scoreboard-section",1,"tabProfile","playerList",3,"ngClass"],["fxLayout","column","style","margin-top: 5px;",4,"ngFor","ngForOf"],["fxLayout","column","class","endGameDiv","fxLayoutAlign","center center",3,"ngClass",4,"ngIf"],["fxLayout","column",2,"margin-top","5px"],["fxLayout","row",2,"height","30px"],[2,"height","40px","width","40px","margin-bottom","-9px","position","sticky",3,"id","src","ngStyle"],["fxLayout","row",1,"playerContent"],["fxFlex.xs","12%","fxFlex.sm","6%","fxFlex","8%",2,"margin-right","5px"],["alt","","referrerpolicy","no-referrer",1,"sm-img",3,"ngClass","src"],[1,"column",2,"width","100%"],["fxLayout","row"],["fxFlex","60%",1,"playerContentFont","boldFont","scroll","autoScroll",3,"id","ngClass"],["fxFlex","40%","class","playerContentFont boldFont","style","text-align: right; padding-right: 25px;",4,"ngIf"],["fxFlex","60%","class","playerContentFont scroll autoScroll",3,"id",4,"ngIf"],["fxFlex","60%","class","playerContentFont","style","color: darkgray; font-weight: bold; ",4,"ngIf"],["fxFlex","40%",1,"playerContentFont","boldFont",2,"text-align","right","padding-right","25px"],["fxFlex","60%",1,"playerContentFont","scroll","autoScroll",3,"id"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["fxFlex","60%",1,"playerContentFont",2,"color","darkgray","font-weight","bold"],["fxLayout","column","fxLayoutAlign","center center",1,"endGameDiv",3,"ngClass"],["mat-raised-button","","color","accent",1,"txt-align-end","btn-txt-size","fillBtn","endGameWidth",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"div",1),t.YNc(3,EQ,18,28,"div",2),t.YNc(4,MQ,5,7,"div",3),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("ngStyle",t.VKq(4,IQ,"1"==r.breakpoint?"3"==r.selectedTab?"15px":"0":"0px")),t.xp6(1),t.Q6J("ngClass",t.Hh0(6,OQ,"1"==r.breakpoint&&!r.isiOS&&(r.isSinglePlayer&&3!=r.strikeCount||r.startGameObj.isGameforFun&&r.isTurnGame||!r.startGameObj.isGameforFun&&r.startGameObj.isNewSolo&&3!=r.strikeCount),"0"==r.breakpoint&&r._loginService.iOSSafariDesktop(),!("0"!=r.breakpoint&&r.gameAppNoticeHideShow||r.isiOS||r._loginService.isNative),r.isiOS&&!r._newGameService.width395&&!r._newGameService.width450&&!r._newGameService.width375,r._newGameService.width375&&r.isiOS,r._newGameService.width395&&r.isiOS,r._newGameService.width450&&r.isiOS)),t.xp6(1),t.Q6J("ngForOf",r.playerListAnimation),t.xp6(1),t.Q6J("ngIf","1"==r.breakpoint&&3!=r.strikeCount))},directives:[ti,uo,Qf,wn,ci,Vt,Ei,Gt,Ir,Di],pipes:[pn,bc],styles:[".font-bold[_ngcontent-%COMP%]{font-weight:700}.wrap-input[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;border-radius:20px}.textarea[_ngcontent-%COMP%]{font-size:16px;width:100%;height:60px;background:transparent;overflow:hidden;resize:none;box-shadow:0 0 2px 1px #ccc;-webkit-appearance:none}.focus-input[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;border-radius:20px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);transition:all .4s}.textarea[_ngcontent-%COMP%]:focus + .focus-input[_ngcontent-%COMP%]{box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-moz-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:-ms-input-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:-moz-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.no-margin[_ngcontent-%COMP%]{margin:0!important}.gameOverBtnFont[_ngcontent-%COMP%]{font-size:14px}@media only screen and (max-width:768px){.focus-input[_ngcontent-%COMP%]{top:10px}.adjustFontsize[_ngcontent-%COMP%]{font-size:14px}}@media only screen and (max-width:640px){.lastchild[_ngcontent-%COMP%]{display:none}.adjustFontsize[_ngcontent-%COMP%]{font-size:13px}.gameOverBtnFont[_ngcontent-%COMP%]{font-size:14px}}@media only screen and (max-width:400px){.textarea[_ngcontent-%COMP%]{font-size:12px}.gameOverBtnFont[_ngcontent-%COMP%]{font-size:13px}.adjustFontsize[_ngcontent-%COMP%]{font-size:12px}}.firstlatter[_ngcontent-%COMP%]{font-size:40px;font-weight:900;color:#8c8c8c;margin-top:20px;text-transform:uppercase}.lastlatter[_ngcontent-%COMP%]{margin-top:40px;font-size:22px;color:#8c8c8c}.lastlatter[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:uppercase}.table-heading[_ngcontent-%COMP%]{background-color:#a2a2a2}.table-heading[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:center;font-size:16px;color:#000}.btn-maroon[_ngcontent-%COMP%]{margin-top:20px;font-size:14px;width:80%}.end-popup-btn-maroon[_ngcontent-%COMP%]{color:#fff!important;background-color:#af001f!important;border-color:#af001f!important;text-transform:uppercase}.pname[_ngcontent-%COMP%]{text-transform:uppercase;color:#8c8c8c;font-size:20px}.pscore[_ngcontent-%COMP%]{color:#8c8c8c;font-size:20px;padding-bottom:20px}.score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{text-transform:capitalize;word-break:break-word}.table-responsive[_ngcontent-%COMP%]{margin-top:20px}.score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .score-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:14px!important;vertical-align:middle!important}.game-over[_ngcontent-%COMP%]{color:#af001f;font-weight:700;font-size:18px}tr.playing[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-decoration:underline}span.out[_ngcontent-%COMP%]{color:#af001f}tr.strikeout[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-decoration:line-through}.playgame[_ngcontent-%COMP%] button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}.langTag[_ngcontent-%COMP%]{background-color:#357bb9;border-radius:6px;padding:2px 10px;font-size:14px;color:#fff}.tag[_ngcontent-%COMP%]{position:relative;top:10px;line-height:25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.popbtn-maroon[_ngcontent-%COMP%]{color:#fff!important;background-color:#af001f!important;border-color:#af001f!important}#unregisterPlayer[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{margin:120px auto!important}@media only screen and (max-width: 768px){#unregisterPlayer[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{margin:120px 10px!important}#registerUninvitedPlayer[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{margin:25px auto!important}}.alert-msg[_ngcontent-%COMP%]{color:#fff;border-color:#17a2b8;background-color:#17a2b8;border-radius:0;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.redIcon[_ngcontent-%COMP%]{color:red}.greenIcon[_ngcontent-%COMP%]{color:green}.modal-dialog[_ngcontent-%COMP%]{margin-top:120px!important}.avatar[_ngcontent-%COMP%]{text-align:center;position:relative;margin:0 60px}.avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;border:1px solid white}.toastMsg[_ngcontent-%COMP%]{text-align:center}.toastMsg[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#000;color:#fff;padding:10px;border-radius:10px}.m10[_ngcontent-%COMP%]{margin-top:10px}.m40[_ngcontent-%COMP%]{margin-top:29px}.font[_ngcontent-%COMP%]{color:#fff;font-size:18px}.m15[_ngcontent-%COMP%]{margin-top:15px}.m7[_ngcontent-%COMP%]{margin-top:7px}.inputBg[_ngcontent-%COMP%]{height:50px;width:32px;background-color:#fff;padding:4px 5px;border-top-left-radius:40px;border-bottom-left-radius:40px}.lastLetter[_ngcontent-%COMP%]{background-color:#f33a77;padding-top:13px;border-radius:50px;height:43px;width:43px;text-align:center;color:#fff;font-weight:700;font-size:24px}.inputStyle[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:unset;text-align:center;font-weight:700;font-size:20px}.inputStyle[_ngcontent-%COMP%]::placeholder{font-weight:400;font-size:14px}.sendBg[_ngcontent-%COMP%]{text-align:center;background-color:#fff;border-top-right-radius:40px;border-bottom-right-radius:40px}.sendIcon[_ngcontent-%COMP%]{font-size:30px;vertical-align:middle;color:#f33a77}.playerContent[_ngcontent-%COMP%]{height:55px;border-bottom-left-radius:30px;border-bottom-right-radius:30px;background-color:#d3f0fe;align-content:center;align-items:center;padding-left:24px;border-top:1px solid #000}.playerContentFont[_ngcontent-%COMP%]{font-size:12px}.rgtborder[_ngcontent-%COMP%]{border-right:1px solid rgba(0,0,0,.12)}input[disabled][_ngcontent-%COMP%]{background-color:#fff;opacity:1}.endGameDiv[_ngcontent-%COMP%]{position:fixed;width:90%;bottom:0%;background-color:#fff;height:55px;margin-bottom:calc(env(safe-area-inset-bottom) + 56px)}.endGameDivWithoutAd[_ngcontent-%COMP%]{position:fixed;width:90%;bottom:0%;background-color:#fff;height:55px;margin-bottom:env(safe-area-inset-bottom)}.endGameWidth[_ngcontent-%COMP%]{width:100%} .playerList{height:30vh;min-height:20vh;overflow:auto} .playerListWithoutNotice{height:31vh;overflow:auto}.safariWebDesPlayerList[_ngcontent-%COMP%]{height:36vh;overflow:auto}.androidHeightPlayerList[_ngcontent-%COMP%]{height:31vh;overflow:auto}.avatar-edit[_ngcontent-%COMP%]{position:relative;z-index:0;bottom:30%;right:28%}.setBadgeImg[_ngcontent-%COMP%]{bottom:30px;left:35px}.setBadgeImgiOS[_ngcontent-%COMP%]{bottom:30%;right:30%}.imgDiv[_ngcontent-%COMP%]{height:100px}.avatar-edit[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline-block;width:30px;height:30px;margin-bottom:0;border-radius:100%;background:#FFFFFF;border:1px solid #6858ba;box-shadow:0 2px 4px #0000001f;font-weight:400;transition:all .2s ease-in-out}.avatar-edit[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{background:#f1f1f1;border-color:#d6d6d6}.greenBorder[_ngcontent-%COMP%]{border:3px solid #5cb85c}.yellowBorder[_ngcontent-%COMP%]{border:3px solid #f0ad4e}.grayBorder[_ngcontent-%COMP%]{border:3px solid darkgray}.redBorder[_ngcontent-%COMP%]{border:3px solid red}.greenFont[_ngcontent-%COMP%]{color:#5cb85c}.yellowFont[_ngcontent-%COMP%]{color:#f0ad4e}.redFont[_ngcontent-%COMP%]{color:red}.nameHeight[_ngcontent-%COMP%]{height:30px}div.scroll[_ngcontent-%COMP%]::-webkit-scrollbar{height:0px}.animation[_ngcontent-%COMP%]{display:table-cell;animation:marquee 10s linear infinite}@keyframes marquee{0%{transform:translate(0)}to{transform:translate(-100%)}}.autoScroll[_ngcontent-%COMP%]{overflow-x:auto;margin-right:2px}@media screen and (max-width : 1280px){ .playerList{height:39vh;min-height:20vh;overflow:auto} .playerListWithoutNotice{height:43vh;overflow:auto}}@media screen and (max-height: 664px){ .playerList{height:26vh} .playerListWithoutNotice{height:30vh}}@media screen and (max-width: 600px),screen and (max-height: 700px){ .playerList{height:37vh} .iOSPlayerList{height:32vh} .playerListWithoutNotice{height:43vh}}@media screen and (max-width: 450px),screen and (max-height: 950px){.androidHeightPlayerList[_ngcontent-%COMP%]{height:37vh;overflow:auto}}.iOSPlayerList450[_ngcontent-%COMP%]{height:35vh}.iOSPlayerList395[_ngcontent-%COMP%]{height:30vh}.iOSPlayerList375[_ngcontent-%COMP%]{height:29vh}"],data:{animation:[xs("animationDir",[br("testOut",ei({width:"0%"})),yr("testOut => *",[Wr("30s",ei({width:"0%"}))])])]}}),n})();function kQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",18)(1,"a",19),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).openEndGameDialog()}),t.TgZ(2,"strong"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()}2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"NEWPLAYGAME.ENDGAMEBTN")))}const zB=function(){return{hide:!0}};function PQ(n,i){1&n&&(t.TgZ(0,"h4",7)(1,"mat-icon",20),t._uU(2,"question_answer"),t.qZA(),t.TgZ(3,"strong",21),t._uU(4),t.ALo(5,"translate"),t.qZA()()),2&n&&(t.xp6(3),t.Q6J("ngClass.xs",t.DdM(4,zB)),t.xp6(1),t.Oqu(t.lcZ(5,2,"NEWPLAYGAME.CHATROOM")))}function NQ(n,i){1&n&&(t.TgZ(0,"h4",7)(1,"mat-icon",20),t._uU(2,"lightbulb"),t.qZA(),t.TgZ(3,"strong",21),t._uU(4),t.ALo(5,"translate"),t.qZA()()),2&n&&(t.xp6(3),t.Q6J("ngClass.xs",t.DdM(4,zB)),t.xp6(1),t.Oqu(t.lcZ(5,2,"ADVANCEPLAYGAME.SCORINGHINTS")))}function RQ(n,i){1&n&&(t.TgZ(0,"mat-tab",22),t.YNc(1,NQ,6,5,"ng-template",14),t.qZA())}function FQ(n,i){1&n&&t._UZ(0,"app-chatroom")}function LQ(n,i){if(1&n&&(t.TgZ(0,"div",23),t._UZ(1,"app-scoring-hints",24),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("breakpoint",e.breakpoint)}}const BQ=function(n){return{"custom-link-bar":n}};function GQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"h4",7)(6,"span",8),t._uU(7," list "),t.qZA(),t.TgZ(8,"strong"),t._uU(9),t.ALo(10,"translate"),t.qZA()()(),t.YNc(11,kQ,5,3,"div",9),t.qZA(),t.TgZ(12,"div")(13,"app-scoreboard",10),t.NdJ("gameData",function(o){return t.CHM(e),t.oxw().setGameData(o)}),t.qZA()()(),t.TgZ(14,"div",11)(15,"mat-tab-group",12),t.NdJ("selectedIndexChange",function(o){return t.CHM(e),t.oxw().activeTab=o})("selectedTabChange",function(o){return t.CHM(e),t.oxw().tabSelectionChanged(o)}),t.TgZ(16,"mat-tab",13),t.YNc(17,PQ,6,5,"ng-template",14),t.qZA(),t.YNc(18,RQ,2,0,"mat-tab",15),t.qZA(),t.YNc(19,FQ,1,0,"app-chatroom",16),t.YNc(20,LQ,2,1,"div",17),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(9),t.Oqu(t.lcZ(10,8,"NEWPLAYGAME.SCOREBOARD")),t.xp6(2),t.Q6J("ngIf",e.isShowEndBtn),t.xp6(2),t.Q6J("breakpoint",e.breakpoint),t.xp6(2),t.Q6J("ngClass",t.VKq(10,BQ,e.isGameFun))("selectedIndex",e.activeTab),t.xp6(3),t.Q6J("ngIf",!e.isGameFun),t.xp6(1),t.Q6J("ngIf",0==e.activeTab),t.xp6(1),t.Q6J("ngIf",1==e.activeTab)}}new(ZO());var nc=navigator.language||navigator.userLanguage;nc="en-US"==nc||"en"==nc||"en-IN"==nc?"en":"hi-EN"==nc||"hi"==nc?"hi":"fr"==nc?"fr":"en";let $B=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T){this.route=e,this.translate=r,this._loginService=o,this.toasterService=s,this._router=c,this.runningGameService=f,this.http=g,this.accountService=v,this.dialog=T,this.submitWord=new t.vpe,this.isGameExist=!0,this.isGameStart=!1,this.isRegGameExist=!1,this.isPoke=!1,this.turnUserId="",this.socketDataArrive=!1,this.startGameObj=null,this.currentPlayer="",this.lastPlayer="",this.currentScore=0,this.gameScreenModel=new jO,this.checkWordModel=new VO,this.isTurnGame=!1,this.enterWordScore=0,this.nextPlayerTurnSequenceNo=[],this.strikeCount=0,this.hindiVernamala=[],this.gameCode="",this.nameSuggested="",this.activeTab=0,this.alphabets=[]}ngOnInit(){this.translate.get("ADVANCEPLAYGAME").subscribe(e=>{this.translateObj=e,this.validationTextEnterWord=this.translateObj.VALIDFORWORD,this.enLang=this.translateObj.EN,this.hiLang=this.translateObj.HI}),this.loggedInUser=this._loginService.getLoggedInUser()}endGame(){this.scoreboardComp.endGame()}getLanguageGame(e){return"en"==e?this.enLang:"hi"==e?this.hiLang:this.enLang}redirectToBack(){window.location.href="https://lastletterfirst.com/"}ngOnDestroy(){clearTimeout(this.remindTimeout),$(".modal-backdrop").remove(),toastr.remove()}goToLogin(){this._router.navigate(["/login"])}tabSelectionChanged(e){this.activeTab="2"==e.tab.textLabel?1:0}openEndGameDialog(){this.scoreboardComp.openEndGameDialog()}setGameData(e){this.isGameFun=e.isGameforFun,this.activeTab=this.isGameFun?0:1,this.submitWord.emit(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(mr),t.Y36(Zn),t.Y36(fn),t.Y36(I),t.Y36(Ht),t.Y36(Ka),t.Y36(Ar),t.Y36(Es),t.Y36(l))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-play-game"]],viewQuery:function(e,r){if(1&e&&t.Gf(nT,5),2&e){let o;t.iGM(o=t.CRH())&&(r.scoreboardComp=o.first)}},inputs:{breakpoint:"breakpoint",isShowEndBtn:"isShowEndBtn",isGameFun:"isGameFun"},outputs:{submitWord:"submitWord"},decls:2,vars:1,consts:[[1,""],["class","bg-container","style","margin-top:20px!important",4,"ngIf"],[1,"bg-container",2,"margin-top","20px!important"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","1.5%"],["fxFlex","50%",1,"bg-sub-container",2,"padding","20px"],["fxLayout","row",1,""],["fxFlex","80%","fxFlex.sm","65%","fxFlex.xs","65%"],[2,"margin-top","0px !important","color","black"],[1,"material-icons",2,"vertical-align","bottom","margin-right","5px","color","#7d87a3"],["class","a-link","style","align-items: unset;","fxFlex","21%","fxFlex.sm","35%","fxFlex.xs","35%",4,"ngIf"],[3,"breakpoint","gameData"],["fxFlex","50%",1,"bg-sub-container",2,"padding","0px"],[1,"custom-mat-tab",2,"padding","20px 20px 0px 20px",3,"ngClass","selectedIndex","selectedIndexChange","selectedTabChange"],["label","1"],["mat-tab-label",""],["label","2",4,"ngIf"],[4,"ngIf"],["class","tabProfile custom-scorehint","fxLayout","column","fxLayout.sm","column","fxLayout.xs","column","style","margin-top: 10px; background-color: white;overflow: auto;",4,"ngIf"],["fxFlex","21%","fxFlex.sm","35%","fxFlex.xs","35%",1,"a-link",2,"align-items","unset"],[3,"click"],[1,"example-tab-icon",2,"vertical-align","bottom","margin-right","5px","color","#7d87a3"],[3,"ngClass.xs"],["label","2"],["fxLayout","column","fxLayout.sm","column","fxLayout.xs","column",1,"tabProfile","custom-scorehint",2,"margin-top","10px","background-color","white","overflow","auto"],[3,"breakpoint"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t.YNc(1,GQ,21,12,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",0==r.breakpoint))},styles:[".font-bold[_ngcontent-%COMP%]{font-weight:700}.wrap-input[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;border-radius:20px}.textarea[_ngcontent-%COMP%]{font-size:16px;width:100%;height:60px;background:transparent;overflow:hidden;resize:none;box-shadow:0 0 2px 1px #ccc}.focus-input[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;border-radius:20px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);transition:all .4s}.textarea[_ngcontent-%COMP%]:focus + .focus-input[_ngcontent-%COMP%]{box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-moz-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:-ms-input-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:-moz-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.no-margin[_ngcontent-%COMP%]{margin:0!important}@media only screen and (max-width:768px){.focus-input[_ngcontent-%COMP%]{top:10px}.adjustFontsize[_ngcontent-%COMP%]{font-size:14px}}@media only screen and (max-width:640px){.lastchild[_ngcontent-%COMP%]{display:none}.adjustFontsize[_ngcontent-%COMP%]{font-size:13px}}@media only screen and (max-width:400px){.textarea[_ngcontent-%COMP%], .adjustFontsize[_ngcontent-%COMP%]{font-size:12px}}.firstlatter[_ngcontent-%COMP%]{font-size:40px;font-weight:900;color:#8c8c8c;margin-top:20px;text-transform:uppercase}.lastlatter[_ngcontent-%COMP%]{margin-top:40px;font-size:22px;color:#8c8c8c}.lastlatter[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:uppercase}.table-heading[_ngcontent-%COMP%]{background-color:#a2a2a2}.table-heading[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:center;font-size:16px;color:#000}.btn-maroon[_ngcontent-%COMP%]{margin-top:20px;font-size:20px;width:80%}.end-popup-btn-maroon[_ngcontent-%COMP%]{color:#fff!important;background-color:#af001f!important;border-color:#af001f!important;text-transform:uppercase}.pname[_ngcontent-%COMP%]{text-transform:uppercase;color:#8c8c8c;font-size:20px}.pscore[_ngcontent-%COMP%]{color:#8c8c8c;font-size:20px;padding-bottom:20px}.score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{text-transform:capitalize;word-break:break-word}.table-responsive[_ngcontent-%COMP%]{margin-top:20px}.score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .score-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:14px!important;vertical-align:middle!important}.game-over[_ngcontent-%COMP%]{color:#af001f;font-weight:700;font-size:18px}tr.playing[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-decoration:underline}span.out[_ngcontent-%COMP%]{color:#af001f}tr.strikeout[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-decoration:line-through}.playgame[_ngcontent-%COMP%] button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}.langTag[_ngcontent-%COMP%]{background-color:#357bb9;border-radius:6px;padding:2px 10px;font-size:14px;color:#fff}.tag[_ngcontent-%COMP%]{position:relative;top:10px;line-height:25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.popbtn-maroon[_ngcontent-%COMP%]{color:#fff!important;background-color:#af001f!important;border-color:#af001f!important}.alert-msg[_ngcontent-%COMP%]{color:#fff;border-color:#17a2b8;background-color:#17a2b8;border-radius:0;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.redIcon[_ngcontent-%COMP%]{color:red}.greenIcon[_ngcontent-%COMP%]{color:green}.avatar[_ngcontent-%COMP%]{text-align:center;position:relative;margin:110px 60px 15px}.avatarwithoutnotice[_ngcontent-%COMP%]{text-align:center;position:relative;margin:70px 60px 15px}.avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .avatarwithoutnotice[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;border:3px solid white}.toastMsg[_ngcontent-%COMP%]{text-align:center}.toastMsg[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#342c5d;color:#fff;padding:5px 15px;border-radius:10px;top:-70px!important;position:relative}.font[_ngcontent-%COMP%]{color:#fff;font-size:16px}.inputBg[_ngcontent-%COMP%]{height:55px;width:32px;background-color:#fff;padding:6px 5px;border-top-left-radius:40px;border-bottom-left-radius:40px}.lastLetter[_ngcontent-%COMP%]{background-color:#f33a77;padding-top:13px;border-radius:50px;height:43px;width:43px;text-align:center;color:#fff;font-weight:700;font-size:24px}.inputArea[_ngcontent-%COMP%]{width:50%;align-self:center}.inputStyle[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:unset;text-align:center;font-weight:700;font-size:20px;background-color:#fff}.inputStyle[_ngcontent-%COMP%]::placeholder{font-weight:400}.sendBg[_ngcontent-%COMP%]{text-align:center;background-color:#fff;border-top-right-radius:40px;border-bottom-right-radius:40px}.sendIcon[_ngcontent-%COMP%]{font-size:40px;padding-right:10px;vertical-align:middle;color:#f33a77}.playerContent[_ngcontent-%COMP%]{height:55px;border-bottom-left-radius:25px;border-bottom-right-radius:25px;background-color:#d3f0fe;align-content:center;align-items:center;padding-left:10px;border-top:1px solid #000}.playerContentFont[_ngcontent-%COMP%]{font-size:12px}.row-striped[_ngcontent-%COMP%]{background-color:#e7e3fc}.tableHeader[_ngcontent-%COMP%]{padding:10px 20px;font-weight:700}.custom-mat-tab[_ngcontent-%COMP%] .mat-tab-label{height:30px!important;padding:0!important;justify-content:left!important;width:50%!important;opacity:1!important}.custom-mat-tab[_ngcontent-%COMP%] .mat-ink-bar{background-color:#f33a77!important}.custom-link-bar[_ngcontent-%COMP%] .mat-ink-bar{width:100%!important}.custom-scorehint[_ngcontent-%COMP%] .mat-grid-tile-content{justify-content:left!important;padding:0 20px!important}.greenBorder[_ngcontent-%COMP%]{border:3px solid #5cb85c}.yellowBorder[_ngcontent-%COMP%]{border:3px solid #f0ad4e}.grayBorder[_ngcontent-%COMP%]{border:3px solid darkgray}.redBorder[_ngcontent-%COMP%]{border:3px solid red}.greenFont[_ngcontent-%COMP%]{color:#5cb85c}.yellowFont[_ngcontent-%COMP%]{color:#f0ad4e}.redFont[_ngcontent-%COMP%]{color:red}@media screen and (max-width: 959px){.inputArea[_ngcontent-%COMP%]{width:100%}.avatar[_ngcontent-%COMP%]{margin:132px 60px 15px}.avatarwithoutnotice[_ngcontent-%COMP%]{margin:65px 60px 15px}}div.scroll[_ngcontent-%COMP%]::-webkit-scrollbar{height:0px}.animation[_ngcontent-%COMP%]{display:table-cell;animation:marquee 10s linear infinite}@keyframes marquee{0%{transform:translate(0)}to{transform:translate(-100%)}}@media screen and (max-width: 1025px){.avatar-edit[_ngcontent-%COMP%]{float:left;position:absolute;z-index:1;bottom:27%;right:44%}}@media screen and (max-width: 769px){.avatar-edit[_ngcontent-%COMP%]{float:left;position:absolute;z-index:1;bottom:28%;right:41%}}@media screen and (max-width: 426px){.avatar-edit[_ngcontent-%COMP%]{float:left;position:absolute;z-index:1;bottom:28%;right:31%}}@media screen and (max-width: 377px){.avatar-edit[_ngcontent-%COMP%]{float:left;position:absolute;z-index:1;bottom:28%;right:27%}}.avatar-edit[_ngcontent-%COMP%]{position:relative;z-index:0;bottom:30%;right:28%}.imgDiv[_ngcontent-%COMP%]{height:100px}.avatar-edit[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline-block;width:30px;height:30px;margin-bottom:0;border-radius:100%;background:#FFFFFF;border:1px solid #6858ba;box-shadow:0 2px 4px #0000001f;font-weight:400;transition:all .2s ease-in-out}.avatar-edit[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{background:#f1f1f1;border-color:#d6d6d6}.setBadgeImg[_ngcontent-%COMP%]{bottom:30px;left:35px;width:100%}.setBadgeImgiOS[_ngcontent-%COMP%]{bottom:30%;right:30%}"]}),n})(),YB=(()=>{class n{constructor(e,r){this.dialogRef=e,this.data=r}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr),t.Y36(Gd))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-word-suggestion-info-dialog"]],decls:12,vars:1,consts:[[1,"custom-header"],["aria-hidden","false","aria-label","Example report_problem icon",1,"mat-custom-icon",2,"color","#ffbf00","position","relative","top","3px","font-size","18px"],[1,"custom-dialog-body"],[1,"custom-dialog-footer"],["mat-stroked-button","","color","accent","mat-dialog-close",""]],template:function(e,r){1&e&&(t.TgZ(0,"h4",0)(1,"mat-icon",1),t._uU(2,"report_problem"),t.qZA(),t._uU(3," Info "),t.qZA(),t._UZ(4,"mat-divider"),t.TgZ(5,"div",2)(6,"p"),t._uU(7),t.qZA()(),t._UZ(8,"mat-divider"),t.TgZ(9,"div",3)(10,"button",4),t._uU(11,"Close"),t.qZA()()),2&e&&(t.xp6(7),t.Oqu(r.data.suggestWordMsg))},directives:[Jr,ih,Di,p],styles:[".mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}h4[_ngcontent-%COMP%]{margin:0!important;padding:15px!important}.custom-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:15px!important;margin:0}.custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}"]}),n})();const HQ=["button"],jQ=["*"],JB=new t.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),QB=new t.OlP("MatButtonToggleGroup"),VQ={provide:Be,useExisting:(0,t.Gpc)(()=>qb),multi:!0};let KB=0;class XB{constructor(i,e){this.source=i,this.value=e}}let qb=(()=>{class n{constructor(e,r){this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+KB++,this.valueChange=new t.vpe,this.change=new t.vpe,this.appearance=r&&r.appearance?r.appearance:"standard"}get name(){return this._name}set name(e){this._name=e,this._buttonToggles&&this._buttonToggles.forEach(r=>{r.name=this._name,r._markForCheck()})}get vertical(){return this._vertical}set vertical(e){this._vertical=Wt(e)}get value(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(r=>r.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=Wt(e)}get disabled(){return this._disabled}set disabled(e){this._disabled=Wt(e),this._buttonToggles&&this._buttonToggles.forEach(r=>r._markForCheck())}ngOnInit(){this._selectionModel=new tB(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(){const e=this.selected,r=Array.isArray(e)?e[e.length-1]:e,o=new XB(r,this.value);this._controlValueAccessorChangeFn(o.value),this.change.emit(o)}_syncButtonToggle(e,r,o=!1,s=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?r?this._selectionModel.select(e):this._selectionModel.deselect(e):s=!0,s?Promise.resolve().then(()=>this._updateModelValue(o)):this._updateModelValue(o)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(r=>null!=e.value&&r===e.value):e.value===this._rawValue)}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(r=>this._selectValue(r))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){const r=this._buttonToggles.find(o=>null!=o.value&&o.value===e);r&&(r.checked=!0,this._selectionModel.select(r))}_updateModelValue(e){e&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(JB,8))},n.\u0275dir=t.lG2({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,r,o){if(1&e&&t.Suo(o,zb,5),2&e){let s;t.iGM(s=t.CRH())&&(r._buttonToggles=s)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,r){2&e&&(t.uIk("aria-disabled",r.disabled),t.ekj("mat-button-toggle-vertical",r.vertical)("mat-button-toggle-group-appearance-standard","standard"===r.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[t._Bn([VQ,{provide:QB,useExisting:n}])]}),n})();const ZQ=jl(class{});let zb=(()=>{class n extends ZQ{constructor(e,r,o,s,c,f){super(),this._changeDetectorRef=r,this._elementRef=o,this._focusMonitor=s,this._isSingleSelector=!1,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new t.vpe;const g=Number(c);this.tabIndex=g||0===g?g:null,this.buttonToggleGroup=e,this.appearance=f&&f.appearance?f.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){const r=Wt(e);r!==this._checked&&(this._checked=r,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=Wt(e)}ngOnInit(){const e=this.buttonToggleGroup;this._isSingleSelector=e&&!e.multiple,this.id=this.id||"mat-button-toggle-"+KB++,this._isSingleSelector&&(this.name=e.name),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){const e=!!this._isSingleSelector||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new XB(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(QB,8),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(oa),t.$8M("tabindex"),t.Y36(JB,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(e,r){if(1&e&&t.Gf(HQ,5),2&e){let o;t.iGM(o=t.CRH())&&(r._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,r){1&e&&t.NdJ("focus",function(){return r.focus()}),2&e&&(t.uIk("aria-label",null)("aria-labelledby",null)("id",r.id)("name",null),t.ekj("mat-button-toggle-standalone",!r.buttonToggleGroup)("mat-button-toggle-checked",r.checked)("mat-button-toggle-disabled",r.disabled)("mat-button-toggle-appearance-standard","standard"===r.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[t.qOj],ngContentSelectors:jQ,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,r){if(1&e&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return r._onButtonClick()}),t.TgZ(2,"span",2),t.Hsn(3),t.qZA()(),t._UZ(4,"span",3)(5,"span",4)),2&e){const o=t.MAs(1);t.Q6J("id",r.buttonId)("disabled",r.disabled||null),t.uIk("tabindex",r.disabled?-1:r.tabIndex)("aria-pressed",r.checked)("name",r.name||null)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),t.xp6(5),t.Q6J("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)}},directives:[$a],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent;transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .cdk-high-contrast-active .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),n})(),WQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[In,Zl],In]}),n})(),e6=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-chatroom"]],inputs:{breakpoint:"breakpoint"},decls:4,vars:3,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"playerList"],[1,"chatFont"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"span",1),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&e&&(t.xp6(2),t.hij("",t.lcZ(3,1,"ADVANCEPLAYGAME.COMINGSOONTXT"),"..."))},directives:[ti,Ir],pipes:[pn],styles:[".chatFont[_ngcontent-%COMP%]{color:#f33a77;font-weight:700}"]}),n})();function qQ(n,i){if(1&n&&(t.TgZ(0,"mat-grid-list",6)(1,"mat-grid-tile",7),t._uU(2),t.qZA(),t.TgZ(3,"mat-grid-tile",8),t._uU(4),t.qZA()()),2&n){const e=i.$implicit,r=i.index;t.xp6(1),t.Q6J("ngClass",r%2==0?"row-striped":"")("colspan",3)("rowspan",1),t.xp6(1),t.hij(" ",e.letter,""),t.xp6(1),t.Q6J("ngClass",r%2==0?"row-striped":"")("colspan",1)("rowspan",1),t.xp6(1),t.hij(" ",e.point,"")}}const zQ=function(n,i,e){return{scoreboardPoint:n,scoreboardPointWithoutNotice:i,iosScoreboardPoint:e}};let t6=(()=>{class n{constructor(e,r,o,s,c){this._newGameService=e,this._loginService=r,this.toasterService=o,this.accountService=s,this.localStorage=c}ngOnInit(){this.loggedInUser=this._loginService.getLoggedInUser(),null!=this.localStorage.getItem("scoreHints")&&""!=this.localStorage.getItem("scoreHints")?this.alphabets=JSON.parse(this.localStorage.getItem("scoreHints")):this.getScoreHints(),this.gameAppNoticeHideShow=this.accountService.gameAppNoticeHideShow}getScoreHints(){var e={userId:this.loggedInUser.id,gameLangCode:JSON.parse(window.sessionStorage.getItem("gameInfo")).code};this._newGameService.getScoreHints(e).subscribe(r=>{"success"==r.statusType?(this.alphabets=r.data,this.localStorage.setItem("scoreHints",JSON.stringify(this.alphabets))):this.toasterService.Error(r.msg,"Error")})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bo),t.Y36(fn),t.Y36(I),t.Y36(Es),t.Y36(Ym))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-scoring-hints"]],inputs:{breakpoint:"breakpoint"},decls:10,vars:12,consts:[["id","score-hint-section",3,"ngClass"],["fxLayout","column","fxLayout.sm","column","fxLayout.xs","column",1,"tabProfile","custom-scorehint",2,"background-color","white"],["fxLayout","row"],["fxFlex","75%",1,"rgtborder","tableHeader"],["fxFlex","25%",1,"tableHeader"],["cols","4","rowHeight","38px","gutterSize","0px",4,"ngFor","ngForOf"],["cols","4","rowHeight","38px","gutterSize","0px"],[1,"rgtborder","custom-title","title-scroll",3,"ngClass","colspan","rowspan"],[1,"custom-title",3,"ngClass","colspan","rowspan"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",4),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.YNc(9,qQ,5,8,"mat-grid-list",5),t.qZA()()),2&e&&(t.Q6J("ngClass",t.kEZ(8,zQ,(r.gameAppNoticeHideShow||0==r.breakpoint)&&!r._loginService.isiOS,!r.gameAppNoticeHideShow,r._loginService.isiOS)),t.xp6(4),t.hij(" ",t.lcZ(5,4,"ADVANCEPLAYGAME.ALPHABETSTAB")," "),t.xp6(3),t.Oqu(t.lcZ(8,6,"ADVANCEPLAYGAME.PTS")),t.xp6(2),t.Q6J("ngForOf",r.alphabets))},directives:[wn,ci,ti,Ei,Vt,Vw,Gb],pipes:[pn],styles:[".custom-scorehint[_ngcontent-%COMP%] .mat-grid-tile-content{justify-content:left!important;padding:0 20px!important}.rgtborder[_ngcontent-%COMP%]{border-right:1px solid rgba(0,0,0,.12)}.tableHeader[_ngcontent-%COMP%]{text-align:left;padding:10px 25px;font-weight:700;font-size:18px}.custom-title[_ngcontent-%COMP%]{font-size:16px;margin:0!important;overflow-x:auto!important}.custom-title[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{padding-left:25px;justify-content:left}.row-striped[_ngcontent-%COMP%]{background-color:#e7e3fc}mat-grid-tile.title-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{height:2px}.scoreboardPoint[_ngcontent-%COMP%], .iosScoreboardPoint[_ngcontent-%COMP%]{height:29vh;overflow:auto}.scoreboardPointWithoutNotice[_ngcontent-%COMP%]{height:31vh;margin-top:2vh;overflow:auto}@media screen and (max-width : 1280px){.scoreboardPoint[_ngcontent-%COMP%]{height:37vh;margin-top:2vh;overflow:auto}.scoreboardPointWithoutNotice[_ngcontent-%COMP%]{height:43vh}.iosScoreboardPoint[_ngcontent-%COMP%]{height:37vh;margin-top:2vh;overflow:auto}}@media screen and (max-width: 600px),screen and (max-height: 700px){.scoreboardPoint[_ngcontent-%COMP%]{height:39vh}.iosScoreboardPoint[_ngcontent-%COMP%]{height:33vh}.scoreboardPointWithoutNotice[_ngcontent-%COMP%]{height:45vh}}@media screen and (max-height: 664px){.iosScoreboardPoint[_ngcontent-%COMP%], .scoreboardPoint[_ngcontent-%COMP%]{height:28vh}.scoreboardPointWithoutNotice[_ngcontent-%COMP%]{height:33vh}}"]}),n})();function $Q(n,i){if(1&n&&t._UZ(0,"img",18),2&n){const e=t.oxw();t.hYB("src","",e.currentPlayerBadge,"",e.languageCode,"/badge.png",t.LSH)}}function YQ(n,i){if(1&n&&(t.TgZ(0,"div",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.AsE("",e.currentScore?e.currentScore:0," ",t.lcZ(2,2,"NEWPLAYGAME.POINTS"),"")}}function JQ(n,i){if(1&n&&(t.TgZ(0,"div",20),t._uU(1),t.ALo(2,"uppercase"),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,e.lastLetter))}}function QQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return o.isSubmitted?o.submitScore():""}),t.TgZ(1,"span",22),t._uU(2,"send"),t.qZA()()}}function KQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){return t.CHM(e),t.oxw().pokePlayer()}),t.TgZ(1,"span",22),t._uU(2,"swipe_up"),t.qZA()()}}function XQ(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-play-game",24),t.NdJ("submitWord",function(o){return t.CHM(e),t.oxw().resetTime(o)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("isShowEndBtn",3!=e.strikeCount)("isGameFun",null==e.startGameObj?null:e.startGameObj.isGameforFun)("breakpoint",e.breakpoint)}}function eK(n,i){1&n&&(t.TgZ(0,"mat-button-toggle",36)(1,"span",32),t._uU(2," lightbulb "),t.qZA()())}function tK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-scoreboard",37),t.NdJ("gameData",function(o){return t.CHM(e),t.oxw(2).setGameData(o)}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("breakpoint",e.breakpoint)}}function nK(n,i){if(1&n&&t._UZ(0,"app-chatroom",38),2&n){const e=t.oxw(2);t.Q6J("breakpoint",e.breakpoint)}}function iK(n,i){if(1&n&&t._UZ(0,"app-scoring-hints",38),2&n){const e=t.oxw(2);t.Q6J("breakpoint",e.breakpoint)}}const rK=function(n){return{"margin-bottom":n}};function oK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",25)(1,"p",26)(2,"mat-button-toggle-group",27,28),t.NdJ("change",function(){t.CHM(e);const o=t.MAs(3);return t.oxw().onValChange(o.value)}),t.TgZ(4,"mat-button-toggle",29)(5,"span",30),t._uU(6," list "),t.qZA()(),t.TgZ(7,"mat-button-toggle",31)(8,"span",32),t._uU(9," question_answer "),t.qZA()(),t.YNc(10,eK,3,0,"mat-button-toggle",33),t.qZA()(),t.YNc(11,tK,1,1,"app-scoreboard",34),t.YNc(12,nK,1,1,"app-chatroom",35),t.YNc(13,iK,1,1,"app-scoring-hints",35),t.qZA()}if(2&n){const e=t.MAs(3),r=t.oxw();t.Q6J("ngStyle",t.VKq(5,rK,"3"==r.selectedTab?"15px":"0")),t.xp6(10),t.Q6J("ngIf",!(null!=r.startGameObj&&r.startGameObj.isGameforFun)),t.xp6(1),t.Q6J("ngIf","1"==e.value),t.xp6(1),t.Q6J("ngIf","2"==e.value),t.xp6(1),t.Q6J("ngIf","3"==e.value)}}var Je,n6=new(ZO()),il=navigator.language||navigator.userLanguage;il="en-US"==il||"en"==il||"en-IN"==il?"en":"hi-EN"==il||"hi"==il?"hi":"fr"==il?"fr":"en";let sK=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M,R){this.route=e,this._newGameService=r,this.spinner=o,this.breakpointObserver=s,this.document=c,this._router=f,this.translate=g,this.dialog=v,this._loginService=T,this.localStorageService=D,this.toasterService=M,this.websocketService=R,this.isSubmitted=!0,this.isSinglePlayer=!1,this.isGameExist=!0,this.isGameStart=!1,this.isRegGameExist=!1,this.isPoke=!1,this.turnUserId="",this.isPlayerMistake=!1,this.socketDataArrive=!1,this.selBtnTglVal="1",this.startGameObj=null,this.currentPlayedUserName="",this.isRemoveKey=!1,this.currentPlayer="",this.lastPlayer="",this.currentScore=0,this.gameScreenModel=new jO,this.checkWordModel=new VO,this.isTurnGame=!1,this.turnSequenceNo=0,Je=this,this.enterWordScore=0,this.nextPlayerTurnSequenceNo=[],this.strikeCount=0,this.countOutPlayer=0,this.hindiVernamala=[],this.uninvitedPlayerBG=[],this.joinPalyer={gameCode:"",name:"",userId:"",token:"",code:il},this.gameCode="",this.nameSuggested="",this.activeTab=0,this.alphabets=[],this.suggestWordMsg="",e.queryParams.subscribe(K=>{this.gameId=K.game,this.gameCode=K.game,this.isRegister=null!=K.Reg&&"1"==K.Reg,this.joinPalyer.token=null!=K.t&&null!=K.t?K.t:"",null!=this.gameCode&&null!=this.gameCode&&""!=this.gameCode&&window.localStorage.setItem(ce.gameId,this.gameCode)}),this._newGameService.joinFromBackButton&&(this._newGameService.joinFromBackButton=!1,this._router.navigate(["/home"])),null==this.websocketService.messages&&this.websocketService.initSocket(this.localStorageService.getItem("game"))}ngOnInit(){this.languageCode=window.localStorage.getItem("language"),this.breakpointObserver.observe([ri_HandsetLandscape,ri_HandsetPortrait,ri_TabletLandscape,ri_TabletPortrait]).subscribe(e=>{this.breakpoint=e.matches?1:0}),this.width450=this.breakpointObserver.isMatched("(max-width: 450px)"),this.translate.get("ADVANCEPLAYGAME").subscribe(e=>{this.translateObj=e,this.firstEnterText=this.translateObj.FIRSTENTERWORDPLACE,this.seconfEnterText=this.translateObj.SECONDENTERWORDPLACE,this.itsText=this.translateObj.ITS,this.turnText=this.translateObj.TURN,this.ItsYourTurnText=this.translateObj.ITSYOURTURN,this.joinText=this.translateObj.JOINPLACE,this.validationTextEnterWord=this.translateObj.VALIDFORWORD,this.enLang=this.translateObj.EN,this.hiLang=this.translateObj.HI,this.reqMsg=this.translateObj.REQMSG,this.alreadyStartMsg=this.translateObj.ALREADYSTARTMSG,this.gameNotStarted=this.translateObj.NOGAMESTARTED,this.enterNameMsg=this.translateObj.ENTERNAMEMSG}),this.loggedInUser=this._loginService.getLoggedInUser(),null==this.loggedInUser&&this.isRegister||null==this.loggedInUser?this._router.navigate(["/login"]):zt.dV.isNativePlatform()&&setTimeout(()=>{this._loginService.pulltoRefresh("playContent","/playGame")},700)}ngOnDestroy(){this._newGameService.playGameSource=null,this.localStorageService.removeItem("scoreHints"),window.sessionStorage.removeItem("gameInfo"),this.websocketService.messages&&(this.websocketService.messages.complete(),this.websocketService.messages=null)}setGameData(e){this.onMsgResponse(e),this.socketSubsrcibeEvt()}resetTime(e){this.setGameData(e)}submitScore(){toastr.remove(),$("#userword").blur(),this.gameScreenModel.gameId=this.startGameObj.gameId,this.gameScreenModel.turnSequenceNo=this.turnSequenceNo,this.gameScreenModel.nextPlayerTurnSequenceNo=this.nextPlayerTurnSequenceNo,this.gameScreenModel.userId=this.loggedInUser.id,this.gameScreenModel.lastWord=this.startGameObj.gameCurrentWord,this.gameScreenModel.isGameforFun=this.startGameObj.isGameforFun,this.gameScreenModel.isNewSolo=this.startGameObj.isNewSolo,this.gameScreenModel.code=this.startGameObj.code,""!=this.gameScreenModel.userWord?(this.isSubmitted=!1,this._newGameService.submitScore(this.gameScreenModel).subscribe(r=>{r&&r.statusType==xn.success?(1==this.breakpoint&&"1"==this.selBtnTglVal&&(this.scoreboardComp.clearTimeSet(),this.document.defaultView.scrollTo(0,0)),this.selectLastWord(),this.isSubmitted=!0,this.enterWordScore=0):(this.enterWordScore=0,this.strikeCount=r.strikeCount,this.startGameObj.isGameforFun?(this.gameScreenModel.userWord="",this.toasterService.Error(r.msg,"Error")):(r.strikeCount>0&&r.strikeCount<3?"errrepeat"==r.error?r.msg=this.translateObj.REPEATWORD:"mismatchword"==r.error?r.msg=this.translateObj.MISMATCHSPELL:"errwrong"==r.error&&(r.msg=this.translateObj.INCORRECTSPELL,r.suggestWordMsg&&"5"!=this.loggedInUser.signUpType&&"4"!=this.loggedInUser.signUpType&&(this.suggestWordMsg=r.suggestWordMsg,setTimeout(()=>{this.dialog.open(YB,{data:{suggestWordMsg:this.suggestWordMsg},panelClass:"mini-modal"})},2e3))):3==r.strikeCount&&(window.localStorage.setItem("strikeCount",r.strikeCount),"errrepeat"==r.error?r.msg=this.translateObj.GAMEOVERREPEAT:"mismatchword"==r.error?r.msg=this.translateObj.GAMEOVERMISMATCHSPELL:"errwrong"==r.error&&(r.msg=this.translateObj.GAMEOVERINCORRECT,r.suggestWordMsg&&"5"!=this.loggedInUser.signUpType&&"4"!=this.loggedInUser.signUpType&&(this.suggestWordMsg=r.suggestWordMsg,setTimeout(()=>{this.dialog.open(YB,{data:{suggestWordMsg:this.suggestWordMsg},panelClass:"mini-modal"})},2e3))),this.gameScreenModel.userWord=""),this.isPlayerMistake=!0,this.toasterService.playgameMsg(r.msg,"")),this.isSubmitted=!0)})):this.toasterService.Error(this.validationTextEnterWord,"Error")}calScoreword(){if("hi"==Je.startGameObj.code){for(var o=[],s=0;s<128;s++)o.push("\\u0"+(2304+s).toString(16));if(0==new RegExp("(?:^|\\s)["+o.join("")+"]+?(?:\\s|$)","g").test(Je.gameScreenModel.userWord))return setTimeout(()=>{Je.gameScreenModel.userWord=""},50),void(Je.enterWordScore=0);if(!Je.startGameObj.isGameforFun){let g=[["\u0905","\u0905\u0902","\u0905\u0903"],["\u0906","\u0911"],["\u0907"],["\u0908"],["\u0909"],["\u090a"],["\u090f"],["\u0910"],["\u0913"],["\u0914"],["\u0915\u094d\u0937","\u0915\u094d\u0937\u093e"],["\u0924\u094d\u0930"],["\u091c\u094d\u091e"],["\u0915","\u0915\u093e","\u0915\u093f","\u0915\u0940","\u0915\u094b","\u0915\u094c","\u0915\u0947","\u0915\u0948","\u0915\u0941","\u0915\u0942","\u0915\u094d","\u0915\u0902","\u0915\u0903","\u0915\u0949"],["\u0916","\u0916\u093e","\u0916\u093f","\u0916\u0940","\u0916\u094b","\u0916\u094c","\u0916\u0947","\u0916\u0948","\u0916\u0941","\u0916\u0942","\u0916\u0902","\u0916\u0903","\u0916\u094d","\u0916\u0949"],["\u0917","\u0917\u093e","\u0917\u093f","\u0917\u0940","\u0917\u094b","\u0917\u094c","\u0917\u0947","\u0917\u0948","\u0917\u0941","\u0917\u0942","\u0917\u0902","\u0917\u0903","\u0917\u094d","\u0917\u0949"],["\u0918","\u0918\u093e","\u0918\u093f","\u0918\u0940","\u0918\u094b","\u0918\u094c","\u0918\u0947","\u0918\u0948","\u0918\u0941","\u0918\u0942","\u0918\u0902","\u0918\u0903","\u0918\u094d"],["\u091a","\u091a\u093e","\u091a\u093f","\u091a\u0940","\u091a\u094b","\u091a\u094c","\u091a\u0947","\u091a\u0948","\u091a\u0941","\u091a\u0942","\u091a\u094d","\u091a\u0902","\u091a\u0903","\u091a\u0949"],["\u091b","\u091b\u093e","\u091b\u093f","\u091b\u0940","\u091b\u094b","\u091b\u094c","\u091b\u0947","\u091b\u0948","\u091b\u0941","\u091b\u0942","\u091b\u0902","\u091b\u0903","\u091b\u094d","\u091b\u093e\u0901"],["\u091c","\u091c\u093e","\u091c\u093f","\u091c\u0940","\u091c\u094b","\u091c\u094c","\u091c\u0947","\u091c\u0948","\u091c\u0941","\u091c\u0942","\u091c\u094d","\u091c\u0902","\u091c\u0903","\u091c\u0949"],["\u091d","\u091d\u093e","\u091d\u093f","\u091d\u0940","\u091d\u094b","\u091d\u094c","\u091d\u0947","\u091d\u0948","\u091d\u0941","\u091d\u0942","\u091d\u0902","\u091d\u0903","\u091d\u094d","\u091d\u0949"],["\u091e"],["\u091f","\u091f\u093e","\u091f\u093f","\u091f\u0940","\u091f\u094b","\u091f\u094c","\u091f\u0947","\u091f\u0948","\u091f\u0941","\u091f\u0942","\u091f\u0902","\u091f\u0903","\u091f\u094d\u0930","\u091f\u094d","\u091f\u0949"],["\u0920","\u0920\u093e","\u0920\u093f","\u0920\u0940","\u0920\u094b","\u0920\u094c","\u0920\u0947","\u0920\u0948","\u0920\u0941","\u0920\u0942","\u0920\u0902","\u0920\u0903","\u0920\u094d"],["\u0921","\u0921\u093e","\u0921\u093f","\u0921\u0940","\u0921\u094b","\u0921\u094c","\u0921\u0947","\u0921\u0948","\u0921\u0941","\u0921\u0942","\u0921\u0902","\u0921\u0903","\u0921\u094d","\u0921\u094d\u0930","\u0921\u0949"],["\u0922","\u0922\u093e","\u0922\u093f","\u0922\u0940","\u0922\u094b","\u0922\u094c","\u0922\u0947","\u0922\u0948","\u0922\u0941","\u0922\u0942","\u0922\u0902","\u0922\u0903","\u0922\u094d","\u0922\u0949"],["\u0924","\u0924\u093e","\u0924\u093f","\u0924\u0940","\u0924\u094b","\u0924\u094c","\u0924\u0947","\u0924\u0948","\u0924\u0941","\u0924\u0942","\u0924\u0902","\u0924\u0903","\u0924\u094d","\u0924\u0949"],["\u0925","\u0925\u093e","\u0925\u093f","\u0925\u0940","\u0925\u094b","\u0925\u094c","\u0925\u0947","\u0925\u0948","\u0925\u0941","\u0925\u0942","\u0925\u0902","\u0925\u0903","\u0925\u094d","\u0930\u094d\u0925\u093e"],["\u0926","\u0926\u093e","\u0926\u093f","\u0926\u0940","\u0926\u094b","\u0926\u094c","\u0926\u0947","\u0926\u0948","\u0926\u0941","\u0926\u0942","\u0926\u0902","\u0926\u0903","\u0926\u094d","\u0926\u0949","\u0926\u094b\u0902"],["\u0927","\u0927\u093e","\u0927\u093f","\u0927\u0940","\u0927\u094b","\u0927\u094c","\u0927\u0947","\u0927\u0948","\u0927\u0941","\u0927\u0942","\u0927\u0902","\u0927\u0903","\u0927\u094d","\u0930\u094d\u0927\u093e"],["\u0928","\u0928\u093e","\u0928\u093f","\u0928\u0940","\u0928\u094b","\u0928\u094c","\u0928\u0947","\u0928\u0948","\u0928\u0941","\u0928\u0942","\u0923","\u0928\u0902","\u0928\u0903","\u0928\u094d","\u0928\u0949"],["\u092a","\u092a\u093e","\u092a\u093f","\u092a\u0940","\u092a\u094b","\u092a\u094c","\u092a\u0947","\u092a\u0948","\u092a\u0941","\u092a\u0942","\u092a\u0902","\u092a\u0903","\u092a\u094d","\u092a\u0949"],["\u092b","\u092b\u093e","\u092b\u093f","\u092b\u0940","\u092b\u094b","\u092b\u094c","\u092b\u0947","\u092b\u0948","\u092b\u0941","\u092b\u0942","\u092b\u0902","\u092b\u0903","\u092b\u094d","\u092b\u0949"],["\u092c","\u092c\u093e","\u092c\u093f","\u092c\u0940","\u092c\u094b","\u092c\u094c","\u092c\u0947","\u092c\u0948","\u092c\u0941","\u092c\u0942","\u092c\u0902","\u092c\u0903","\u092c\u094d","\u092c\u0949"],["\u092d","\u092d\u093e","\u092d\u093f","\u092d\u0940","\u092d\u094b","\u092d\u094c","\u092d\u0947","\u092d\u0948","\u092d\u0941","\u092d\u0942","\u092d\u0902","\u092d\u0903","\u092d\u094d","\u092d\u093e\u0901"],["\u092f","\u092f\u093e","\u092f\u093f","\u092f\u0940","\u092f\u094b","\u092f\u094c","\u092f\u0947","\u092f\u0948","\u092f\u0941","\u092f\u0942","\u092f\u0902","\u092f\u0903","\u092f\u094d","\u092f\u0949"],["\u092e","\u092e\u093e","\u092e\u093f","\u092e\u0940","\u092e\u094b","\u092e\u094c","\u092e\u0947","\u092e\u0948","\u092e\u0941","\u092e\u0942","\u092e\u0902","\u092e\u0903","\u092e\u094d","\u092e\u093e\u0901","\u092e\u0949"],["\u0930","\u0930\u093e","\u0930\u093f","\u0930\u0940","\u0930\u094b","\u0930\u094c","\u0930\u0947","\u0930\u0948","\u0930\u0941","\u0930\u0942","\u0930\u094d","\u0930\u0902","\u0930\u0903","\u0930\u094d","\u0930\u0949"],["\u0932","\u0932\u093e","\u0932\u093f","\u0932\u0940","\u0932\u094b","\u0932\u094c","\u0932\u0947","\u0932\u0948","\u0932\u0941","\u0932\u0942","\u0932\u0902","\u0932\u0903","\u0932\u094d","\u0932\u0949"],["\u0935","\u0935\u093e","\u0935\u093f","\u0935\u0940","\u0935\u094b","\u0935\u094c","\u0935\u0947","\u0935\u0948","\u0935\u0941","\u0935\u0942","\u0935\u0902","\u0935\u0903","\u0935\u094d","\u0935\u0949"],["\u0936","\u0936\u093e","\u0936\u093f","\u0936\u0940","\u0936\u094b","\u0936\u094c","\u0936\u0947","\u0936\u0948","\u0936\u0941","\u0936\u0942","\u0936\u0902","\u0936\u0903","\u0936\u094d","\u0936\u0949"],["\u0937","\u0937\u093e","\u0937\u093f","\u0937\u0940","\u0937\u094b","\u0937\u094c","\u0937\u0947","\u0937\u0948","\u0937\u0941","\u0937\u0942","\u0937\u0902","\u0937\u0903","\u0937\u094d"],["\u0938","\u0938\u093e","\u0938\u093f","\u0938\u0940","\u0938\u094b","\u0938\u094c","\u0938\u0947","\u0938\u0948","\u0938\u0941","\u0938\u0942","\u0938\u0902","\u0938\u0903","\u0938\u094d","\u0938\u0949"],["\u0939","\u0939\u093e","\u0939\u093f","\u0939\u0940","\u0939\u094b","\u0939\u094c","\u0939\u0947","\u0939\u0948","\u0939\u0941","\u0939\u0942","\u0939\u0902","\u0939\u0903","\u0939\u094d","\u0939\u0949"]],v=["1","1","1","8","1","3","1","6","6","8","8","8","8","1","1","1","2","1","2","1","2","8","3","4","4","4","4","8","2","3","3","1","4","1","4","5","1","3","3","4","4","10","1","3"];if(this.enterWordScore=0,0==this.gameScreenModel.userWord.length&&this.toasterService.playgameMsg("","Word Score: "+this.enterWordScore.toString()),this.gameScreenModel.userWord.length>0){var f=0;n6.splitGraphemes(this.gameScreenModel.userWord).forEach((T,D)=>{for(var M=0;M<=g.length;M++)if(-1!=g[M].indexOf(T))return f+=T.length,this.enterWordScore+=parseInt(v[M]),parseInt(v[M]),void(this.gameScreenModel.userWord.length==f&&this.toasterService.playgameMsg("","Word Score: "+this.enterWordScore.toString()))})}}}else if(!Je.startGameObj.isGameforFun){let g=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","\xc2","\xc0","\xc7","\xc9","\xc8","\xca","\xcb","\xce","\xcf","\xd4","\xd9","\xdb","\xdc","\u0178"],v=["1","3","3","2","1","4","2","4","1","8","5","1","3","1","1","3","10","1","1","1","1","4","4","8","4","10","1","1","3","1","1","1","1","1","1","1","1","1","1","4"];this.enterWordScore=0,0==this.gameScreenModel.userWord.length&&this.toasterService.playgameMsg("","Word Score: "+this.enterWordScore.toString()),this.gameScreenModel.userWord.length>0&&this.gameScreenModel.userWord.split("").forEach((T,D)=>{for(var M=0;M<=g.length;M++)if(T.toLowerCase()==g[M].toLowerCase())return this.enterWordScore+=parseInt(v[M]),parseInt(v[M]),void(this.gameScreenModel.userWord.length-1==D&&this.toasterService.playgameMsg("","Word Score: "+this.enterWordScore.toString()))})}}clearPosParam(){this._router.navigate(["."],{relativeTo:this.route,queryParams:{}})}onMsgResponse(e){Je.nextPlayerTurnSequenceNo=[],Je.startGameObj=e,Je.selectLastWord(),Je.response=Je.startGameObj.scoreBoard,Je.gameScreenModel.userWord="",Je.isSubmitted=!0,Je.countOutPlayer=0,Je.isNewSolo=Je.startGameObj.isNewSolo,1==Je.isNewSolo?(Je.isTurnGame=!0,Je.currentPlayer=Je.startGameObj.playerList[0].firstName,Je.currentPlayedUserName=Je.startGameObj.playerList[0].userName,Je.currentScore=Je.startGameObj.scoreBoard[0].totalScore,Je.strikeCount=Je.startGameObj.scoreBoard[0].strikeCount,Je.currentPlayerBadge=Je.startGameObj.scoreBoard[0].badgeImg,Je.currentPlayerProfileImg=Je.startGameObj.playerList[0].profile_image):(Je.response.forEach((r,o)=>{if(Je.startGameObj.playerTurnId==r.userId){let c=Je.getUserInfo(r.userId);Je.currentPlayedUserName=""!=c.userName?c.userName:c.firstName,Je.currentScore=r.totalScore,Je.currentPlayerBadge=r.badgeImg,Je.currentPlayerProfileImg=c.profile_image,Je.turnUserId=r.userId,Je.turnSequenceNo=r.turnSequenceNo,"/playGame"==Je._router.url&&Je.startGameObj.playerTurnId!=Je.loggedInUser.id&&(this.isPlayerMistake?setTimeout(()=>{this.isPlayerMistake=!1,Je.toasterService.playgameMsg(Je.itsText+Je.currentPlayedUserName+Je.turnText,"")},5e3):Je.toasterService.playgameMsg(Je.itsText+Je.currentPlayedUserName+Je.turnText,""))}if(Je.loggedInUser.id!=r.userId&&3!=r.strikeCount&&Je.nextPlayerTurnSequenceNo.push(r.turnSequenceNo),Je.startGameObj.playerTurnId==Je.loggedInUser.id&&Je.loggedInUser.id==r.userId)Je.isTurnGame=!0,Je.strikeCount=r.strikeCount,Je.isPoke=!1,"/playGame"==Je._router.url&&Je.toasterService.playgameMsg(Je.ItsYourTurnText,"");else if(Je.startGameObj.playerTurnId!=Je.loggedInUser.id&&Je.loggedInUser.id==r.userId)if(Je.isTurnGame=!1,Je.strikeCount=r.strikeCount,r.pokeBtnDisEnbleFlag){Je.isPoke=!1,clearTimeout(Je.remindTimeout),Je.remindTimeout=null;var s=Number(r.pokedReminderTimeInSec+"000");Je.remindTimeout=setTimeout(()=>{Je.isPoke=!0},s)}else Je.isPoke=!0;"3"==r.strikeCount&&Je.countOutPlayer++}),Number(Je.startGameObj.totalPlayers)-Je.countOutPlayer==1&&Je.startGameObj.scoreBoard.length==Number(Je.startGameObj.totalPlayers)&&"0"!=Je.startGameObj.status&&!Je.startGameObj.isNewSolo&&(Je.isSinglePlayer=!0))}pokePlayer(){var e={userId:this.loggedInUser.id,turnUserId:this.turnUserId,gameCode:window.localStorage.getItem(ce.gameId)};this._newGameService.pokeTurnPlayer(e).subscribe(r=>{if("success"==r.statusType){this.isPoke=!1,clearTimeout(this.remindTimeout),this.remindTimeout=null;var o=Number(r.data.pokedReminderTimeInSec.toString()+"000");this.remindTimeout=setTimeout(()=>{this.isPoke=!0},o)}else this.toasterService.Error(r.msg,"Error")})}selectLastWord(){if(null!=Je.startGameObj.gameCurrentWord)if("hi"==Je.startGameObj.code){var e=n6.splitGraphemes(Je.startGameObj.gameCurrentWord);Je.lastLetter=-1!=Je.hindiVernamala.indexOf(e[e.length-1])?e[e.length-1].substr(-1,1):e[e.length-1].split("")[0],"\u0923"==Je.lastLetter?Je.lastLetter="\u0928":"\u0919"==Je.lastLetter?Je.lastLetter="\u0921":"\u091e"==Je.lastLetter&&(Je.lastLetter="\u0924")}else Je.lastLetter=Je.startGameObj.gameCurrentWord[Je.startGameObj.gameCurrentWord.length-1]}fnRemoveKey(e){var r=e.keyCode||e.charCode;this.isRemoveKey=8==r||46==r}getUserInfo(e){return Je.startGameObj.playerList.find(r=>r.userId==e)}scrollUp(){1==this.breakpoint&&this.document.defaultView.scrollTo(0,160)}socketSubsrcibeEvt(){this.socketObjSubscription=Je.websocketService.playGameObs.subscribe(e=>{console.log("Response from websocket: "+e),Je.scoreBoardObj=e.msg.data.scoreBoard;let r=JSON.parse(window.sessionStorage.getItem("gameInfo"));if(null!=r&&(Je.startGameObj=r,Je.startGameObj.scoreBoard=Je.scoreBoardObj,Je.startGameObj.gameCurrentWord=e.msg.data.gameCurrentWord,Je.startGameObj.playerTurnId=e.msg.data.playerTurnId),Je._newGameService.changePlayGame(Je.startGameObj),"1"!=Je.selBtnTglVal&&(Je.scoreBoardObj={},e.msg.data.allPlayerOut))return Je.toasterService.Error("All players out","Error"),void Je._router.navigate(["/runningGame"]);Je.onMsgResponse(Je.startGameObj)},e=>console.error(e),()=>{"/playGame"==Je._router.url&&"1"!=this.selBtnTglVal&&(Je.websocketService.isSelfClosews||(Je.websocketService.initSocket(this.localStorageService.getItem("game")),Je.socketSubsrcibeEvt())),console.log("Close websocket connection")})}onValChange(e){console.log(e),"1"==this.selBtnTglVal&&"1"!=e&&this.scoreboardComp.clearTimeSet(),this.selBtnTglVal=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(mr),t.Y36(bo),t.Y36(Nf),t.Y36(ec),t.Y36(ee),t.Y36(Ht),t.Y36(Zn),t.Y36(l),t.Y36(fn),t.Y36(Ym),t.Y36(I),t.Y36(tc))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-new-play-game"]],viewQuery:function(e,r){if(1&e&&t.Gf(nT,5),2&e){let o;t.iGM(o=t.CRH())&&(r.scoreboardComp=o.first)}},inputs:{inputGameId:"inputGameId"},decls:21,vars:16,consts:[["fxLayout","column","id","playContent"],["id","avtarDiv",3,"ngClass"],[1,"imgDiv"],["alt","","referrerpolicy","no-referrer",3,"src"],[1,"avatar-edit","setBadgeImg"],["class","mat-custom-icon","aria-hidden","false","aria-label","Example home icon","alt","",3,"src",4,"ngIf"],[1,"m-t-7","font",3,"ngClass"],["class","font",4,"ngIf"],["fxLayout","row",1,"inputArea"],["fxFlex","15%","fxFlex.xs","20%",1,"inputBg"],["class","lastLetter",4,"ngIf"],["fxFlex","80%","fxFlex.xs","75%",1,"inputDiv"],["type","email","trim","","tabindex","0","title","",1,"inputStyle",3,"ngModel","disabled","placeholder","ngModelChange","keydown","keyup.enter","focus"],["fxFlex","11%","fxFlex.xs","15%",1,"sendBg"],["class","fullHeight","title","Send",3,"click",4,"ngIf"],["class","fullHeight","title","Poke",3,"click",4,"ngIf"],[3,"isShowEndBtn","isGameFun","breakpoint","submitWord",4,"ngIf"],["fxLayout","column","class","mobileTab",3,"ngStyle",4,"ngIf"],["aria-hidden","false","aria-label","Example home icon","alt","",1,"mat-custom-icon",3,"src"],[1,"font"],[1,"lastLetter"],["title","Send",1,"fullHeight",3,"click"],[1,"material-icons","sendIcon"],["title","Poke",1,"fullHeight",3,"click"],[3,"isShowEndBtn","isGameFun","breakpoint","submitWord"],["fxLayout","column",1,"mobileTab",3,"ngStyle"],[1,"alignCenter"],["appearance","legacy","value","1","name","accountTab","aria-label","Font Style",1,"tab",3,"change"],["group","matButtonToggleGroup"],["value","1"],[1,"material-icons","f35"],["value","2"],[1,"material-icons","f30"],["value","3",4,"ngIf"],[3,"breakpoint","gameData",4,"ngIf"],[3,"breakpoint",4,"ngIf"],["value","3"],[3,"breakpoint","gameData"],[3,"breakpoint"]],template:function(e,r){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"div",1)(3,"div",2),t._UZ(4,"img",3),t.TgZ(5,"div",4),t.YNc(6,$Q,1,2,"img",5),t.qZA()(),t.TgZ(7,"div",6),t._uU(8),t.qZA(),t.YNc(9,YQ,3,4,"div",7),t.qZA(),t.TgZ(10,"div",8)(11,"div",9),t.YNc(12,JQ,3,3,"div",10),t.qZA(),t.TgZ(13,"div",11)(14,"input",12),t.NdJ("ngModelChange",function(s){return r.gameScreenModel.userWord=s})("keydown",function(s){return r.fnRemoveKey(s)})("ngModelChange",function(){return r.calScoreword()})("keyup.enter",function(){return r.isSubmitted?r.submitScore():""})("focus",function(){return r.scrollUp()}),t.ALo(15,"translate"),t.qZA()(),t.TgZ(16,"div",13),t.YNc(17,QQ,3,0,"button",14),t.YNc(18,KQ,3,0,"button",15),t.qZA()()(),t.YNc(19,XQ,1,3,"app-play-game",16),t.YNc(20,oK,14,7,"div",17),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngClass",r._loginService.isNative?r._loginService.isiOS?"avatar avatariOSApp":"avatar avatarApp":1==r.breakpoint&&1==(null==r.startGameObj?null:r.startGameObj.currentPlayerGameAppNotice)?"avatar":"avatarwithoutnotice"),t.xp6(2),t.s9C("src",r.currentPlayerProfileImg?r.currentPlayerProfileImg:"assets/images/img-user.jpg",t.LSH),t.xp6(2),t.Q6J("ngIf",r.currentPlayerBadge),t.xp6(1),t.Q6J("ngClass",null!=r.startGameObj&&r.startGameObj.isGameforFun&&r._loginService.isNative?"p-b-20":""),t.xp6(1),t.Oqu(r.currentPlayedUserName),t.xp6(1),t.Q6J("ngIf",!(null!=r.startGameObj&&r.startGameObj.isGameforFun)&&r.currentScore),t.xp6(3),t.Q6J("ngIf",r.lastLetter),t.xp6(2),t.s9C("placeholder",t.lcZ(15,14,r.isSinglePlayer&&3!=r.strikeCount||r.isTurnGame&&3!=r.strikeCount?"NEWPLAYGAME.TYPEHERE":"NEWPLAYGAME.NOTYOURTURN")),t.Q6J("ngModel",r.gameScreenModel.userWord)("disabled",!(r.isSinglePlayer&&3!=r.strikeCount||r.isTurnGame&&3!=r.strikeCount)),t.xp6(3),t.Q6J("ngIf",r.isSinglePlayer&&3!=r.strikeCount||r.isTurnGame&&(null==r.startGameObj?null:r.startGameObj.scoreBoard.length)>1&&3!=r.strikeCount||1==(null==r.startGameObj?null:r.startGameObj.isNewSolo)&&3!=r.strikeCount),t.xp6(1),t.Q6J("ngIf",r.isPoke&&!r.isSinglePlayer&&3!=r.strikeCount&&(null==r.startGameObj?null:r.startGameObj.scoreBoard.length)>1&&!r.isTurnGame),t.xp6(1),t.Q6J("ngIf",0==r.breakpoint),t.xp6(1),t.Q6J("ngIf",1==r.breakpoint))},directives:[ti,wn,ci,Gt,Ei,Xl,Kt,xr,Cr,$B,uo,Qf,qb,zb,nT,e6,t6],pipes:[pn,bc],styles:[".alignCenter[_ngcontent-%COMP%]{text-align:center}.tab[_ngcontent-%COMP%]{border-radius:17px}.mat-button-toggle[_ngcontent-%COMP%]{width:100%;background-color:#fff}.play-content[_ngcontent-%COMP%]{margin-top:4vh}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#6758ba!important;color:#fff!important}.mat-button-toggle[_ngcontent-%COMP%]{background-color:#f3f0ff;color:#9397ae}.scoreboardPoint[_ngcontent-%COMP%]{margin-top:7vh;height:34vh;min-height:20vh;overflow:auto}.mobileTab[_ngcontent-%COMP%]{margin-top:15px;position:relative}.font-bold[_ngcontent-%COMP%]{font-weight:700}.wrap-input[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;border-radius:20px}.textarea[_ngcontent-%COMP%]{font-size:16px;width:100%;height:60px;background:transparent;overflow:hidden;resize:none;box-shadow:0 0 2px 1px #ccc}.focus-input[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;border-radius:20px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);transition:all .4s}.textarea[_ngcontent-%COMP%]:focus + .focus-input[_ngcontent-%COMP%]{box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-moz-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:-ms-input-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.placeholderblue[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:-moz-placeholder{color:#347ab8!important;white-space:pre-line;position:relative}.no-margin[_ngcontent-%COMP%]{margin:0!important}@media only screen and (max-width:768px){.focus-input[_ngcontent-%COMP%]{top:10px}.adjustFontsize[_ngcontent-%COMP%]{font-size:14px}}@media only screen and (max-width:640px){.lastchild[_ngcontent-%COMP%]{display:none}.adjustFontsize[_ngcontent-%COMP%]{font-size:13px}}@media only screen and (max-width:400px){.textarea[_ngcontent-%COMP%], .adjustFontsize[_ngcontent-%COMP%]{font-size:12px}}.firstlatter[_ngcontent-%COMP%]{font-size:40px;font-weight:900;color:#8c8c8c;margin-top:20px;text-transform:uppercase}.lastlatter[_ngcontent-%COMP%]{margin-top:40px;font-size:22px;color:#8c8c8c}.lastlatter[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:uppercase}.table-heading[_ngcontent-%COMP%]{background-color:#a2a2a2}.table-heading[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:center;font-size:16px;color:#000}.btn-maroon[_ngcontent-%COMP%]{margin-top:20px;font-size:20px;width:80%}.end-popup-btn-maroon[_ngcontent-%COMP%]{color:#fff!important;background-color:#af001f!important;border-color:#af001f!important;text-transform:uppercase}.pname[_ngcontent-%COMP%]{text-transform:uppercase;color:#8c8c8c;font-size:20px}.pscore[_ngcontent-%COMP%]{color:#8c8c8c;font-size:20px;padding-bottom:20px}.score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{text-transform:capitalize;word-break:break-word}.table-responsive[_ngcontent-%COMP%]{margin-top:20px}.score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .score-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:14px!important;vertical-align:middle!important}.game-over[_ngcontent-%COMP%]{color:#af001f;font-weight:700;font-size:18px}tr.playing[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-decoration:underline}span.out[_ngcontent-%COMP%]{color:#af001f}tr.strikeout[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-decoration:line-through}.playgame[_ngcontent-%COMP%] button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}.langTag[_ngcontent-%COMP%]{background-color:#357bb9;border-radius:6px;padding:2px 10px;font-size:14px;color:#fff}.tag[_ngcontent-%COMP%]{position:relative;top:10px;line-height:25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-t-7[_ngcontent-%COMP%]{margin-top:7px}.popbtn-maroon[_ngcontent-%COMP%]{color:#fff!important;background-color:#af001f!important;border-color:#af001f!important}.alert-msg[_ngcontent-%COMP%]{color:#fff;border-color:#17a2b8;background-color:#17a2b8;border-radius:0;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.redIcon[_ngcontent-%COMP%]{color:red}.greenIcon[_ngcontent-%COMP%]{color:green}.avatar[_ngcontent-%COMP%]{text-align:center;position:relative;margin:110px 60px 7px}.avatarwithoutnotice[_ngcontent-%COMP%]{text-align:center;position:relative;margin:75px 60px 7px}.avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .avatarwithoutnotice[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;border:3px solid white}.toastMsg[_ngcontent-%COMP%]{text-align:center}.toastMsg[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#342c5d;color:#fff;padding:5px 15px;border-radius:10px;top:-70px!important;position:relative}.font[_ngcontent-%COMP%]{color:#fff;font-size:16px}.inputBg[_ngcontent-%COMP%]{height:55px;width:32px;background-color:#fff;padding:6px 5px;border-top-left-radius:40px;border-bottom-left-radius:40px}.lastLetter[_ngcontent-%COMP%]{background-color:#f33a77;padding-top:13px;border-radius:50px;height:43px;width:43px;text-align:center;color:#fff;font-weight:700;font-size:24px}.inputArea[_ngcontent-%COMP%]{width:50%;align-self:center;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-radius:25px}.inputStyle[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:unset;text-align:center;font-weight:700;font-size:20px;background-color:#fff}.inputStyle[_ngcontent-%COMP%]::placeholder{font-weight:400}.sendBg[_ngcontent-%COMP%]{text-align:center;background-color:#fff;border-top-right-radius:40px;border-bottom-right-radius:40px}.sendIcon[_ngcontent-%COMP%]{font-size:40px;padding-right:10px;vertical-align:middle;color:#f33a77}.playerContent[_ngcontent-%COMP%]{height:55px;border-bottom-left-radius:25px;border-bottom-right-radius:25px;background-color:#d3f0fe;align-content:center;align-items:center;padding-left:10px;border-top:1px solid #000}.playerContentFont[_ngcontent-%COMP%]{font-size:12px}.row-striped[_ngcontent-%COMP%]{background-color:#e7e3fc}.tableHeader[_ngcontent-%COMP%]{padding:10px 20px;font-weight:700}.custom-mat-tab[_ngcontent-%COMP%] .mat-tab-label{height:30px!important;padding:0!important;justify-content:left!important;width:50%!important;opacity:1!important}.custom-mat-tab[_ngcontent-%COMP%] .mat-ink-bar{background-color:#f33a77!important}.custom-link-bar[_ngcontent-%COMP%] .mat-ink-bar{width:100%!important}.custom-scorehint[_ngcontent-%COMP%] .mat-grid-tile-content{justify-content:left!important;padding:0 20px!important}.greenBorder[_ngcontent-%COMP%]{border:3px solid #5cb85c}.yellowBorder[_ngcontent-%COMP%]{border:3px solid #f0ad4e}.grayBorder[_ngcontent-%COMP%]{border:3px solid darkgray}.redBorder[_ngcontent-%COMP%]{border:3px solid red}.greenFont[_ngcontent-%COMP%]{color:#5cb85c}.yellowFont[_ngcontent-%COMP%]{color:#f0ad4e}.redFont[_ngcontent-%COMP%]{color:red}@media screen and (max-width: 959px){.inputArea[_ngcontent-%COMP%]{width:100%}.avatar[_ngcontent-%COMP%]{margin:30px 60px 15px}.avatarwithoutnotice[_ngcontent-%COMP%]{margin:35px 60px 7px}.avatarApp[_ngcontent-%COMP%]{margin:30px 60px 15px}}div.scroll[_ngcontent-%COMP%]::-webkit-scrollbar{height:0px}.animation[_ngcontent-%COMP%]{display:table-cell;animation:marquee 10s linear infinite}@keyframes marquee{0%{transform:translate(0)}to{transform:translate(-100%)}}@media screen and (max-width: 1025px){.avatar-edit[_ngcontent-%COMP%]{position:absolute;z-index:1;bottom:27%;right:44%}}@media screen and (max-width: 769px){.avatar-edit[_ngcontent-%COMP%]{position:absolute;z-index:1;bottom:28%;right:41%}}@media screen and (max-width: 450px),screen and (max-height: 950px){.avatarApp[_ngcontent-%COMP%], .avatariOSApp[_ngcontent-%COMP%]{margin:30px 60px 15px}.mobileTab[_ngcontent-%COMP%]{margin-top:20px;position:relative}}@media screen and (max-width: 426px){.avatar-edit[_ngcontent-%COMP%]{position:absolute;z-index:1;bottom:28%;right:31%}}@media screen and (max-width: 400px){.avatar-edit[_ngcontent-%COMP%]{position:absolute;z-index:1;bottom:28%;right:27%}.avatarApp[_ngcontent-%COMP%]{margin:20px 60px 5px}.avatariOSApp[_ngcontent-%COMP%]{margin:20px 60px 10px}.mobileTab[_ngcontent-%COMP%]{margin-top:13px;position:relative}}.avatar-edit[_ngcontent-%COMP%]{position:relative;z-index:0;bottom:30%;right:28%}.imgDiv[_ngcontent-%COMP%]{height:100px}.avatar-edit[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline-block;width:30px;height:30px;margin-bottom:0;border-radius:100%;background:#FFFFFF;border:1px solid #6858ba;box-shadow:0 2px 4px #0000001f;font-weight:400;transition:all .2s ease-in-out}.avatar-edit[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{background:#f1f1f1;border-color:#d6d6d6}.setBadgeImg[_ngcontent-%COMP%]{bottom:30px;left:35px;width:100%}.setBadgeImgiOS[_ngcontent-%COMP%]{bottom:30%;right:30%}.inputDiv[_ngcontent-%COMP%]{height:55px;background-color:#fff}.fullHeight[_ngcontent-%COMP%]{height:100%}.f30[_ngcontent-%COMP%]{font-size:30px}.f35[_ngcontent-%COMP%]{font-size:35px}"]}),n})();class aK{constructor(){this.loginToken=""}}class WO{constructor(){this.isExpired=!1}}class lK{}let cK=(()=>{class n{constructor(e){this.dialogRef=e}ngOnInit(){}onNoClick(){this.dialogRef.close({event:"onNoclick"})}logout(){this.dialogRef.close({event:"logout"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-signout"]],decls:18,vars:12,consts:[[1,"custom-header"],["aria-hidden","false","aria-label","Example report_problem icon",1,"mat-custom-icon",2,"color","#ffbf00","position","relative","top","3px","font-size","18px"],[1,"custom-dialog-body"],[1,"custom-dialog-footer"],["mat-stroked-button","","color","accent",3,"click"],["mat-raised-button","","color","accent",1,"m-l-10",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"h4",0)(1,"mat-icon",1),t._uU(2,"report_problem"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._UZ(5,"mat-divider"),t.TgZ(6,"div",2)(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t._UZ(10,"mat-divider"),t.TgZ(11,"div",3)(12,"button",4),t.NdJ("click",function(){return r.onNoClick()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"button",5),t.NdJ("click",function(){return r.logout()}),t._uU(16),t.ALo(17,"translate"),t.qZA()()),2&e&&(t.xp6(3),t.hij(" ",t.lcZ(4,4,"ACCOUNT.SIGNOUTCONFIRMPOP"),"\n"),t.xp6(5),t.Oqu(t.lcZ(9,6,"ACCOUNT.POPTEXT")),t.xp6(5),t.hij("",t.lcZ(14,8,"ACCOUNT.NOTXT")," "),t.xp6(3),t.hij(" ",t.lcZ(17,10,"ACCOUNT.YESTXT"),""))},directives:[Jr,ih,Di],pipes:[pn],styles:[".mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}h4[_ngcontent-%COMP%]{margin:0!important;padding:15px!important}.custom-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:15px!important;margin:0}.custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}"]}),n})();function uK(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CHANGEPW.CONFIRMPWINVALID")))}let dK=(()=>{class n{constructor(e,r,o,s){this.dialogRef=e,this.data=r,this.translate=o,this.toasterService=s,this.hide=!0,this.cnfmPassword=""}ngOnInit(){this.translate.get("RESETPASSWORD").subscribe(e=>{this.cnfmPwdTranslate=e})}onNoClick(){this.dialogRef.close({event:"no"})}confirm(){this.data.newPassword==this.cnfmPassword?this.dialogRef.close({event:"confirm"}):this.toasterService.Error(this.cnfmPwdTranslate.PWMUSTMATCH,"Error")}cnfrmPasswordVisibility(e){this.hide=1!=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr),t.Y36(Gd),t.Y36(Zn),t.Y36(I))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-confirm-password-dialog"]],decls:22,vars:16,consts:[[1,"custom-header"],["aria-hidden","false","aria-label","Example report_problem icon",1,"mat-custom-icon",2,"color","#ffbf00","position","relative","top","3px","font-size","18px"],[1,"custom-dialog-body"],["appearance","fill",1,"m-t-15","m-b-15","w100","p-l-10","p-r-10"],["matInput","","name","cnfrmpassword","trim","","required","",3,"type","ngModel","ngModelChange"],["cnfrmpassword","ngModel"],["type","button","mat-icon-button","","matSuffix","",3,"click"],[4,"ngIf"],[1,"custom-dialog-footer"],["mat-raised-button","","color","accent",1,"m-l-10",3,"disabled","click"]],template:function(e,r){if(1&e&&(t.TgZ(0,"h4",0)(1,"mat-icon",1),t._uU(2,"report_problem"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._UZ(5,"mat-divider"),t.TgZ(6,"div",2)(7,"mat-form-field",3)(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"input",4,5),t.NdJ("ngModelChange",function(s){return r.cnfmPassword=s}),t.qZA(),t.TgZ(13,"button",6),t.NdJ("click",function(){return r.cnfrmPasswordVisibility(r.hide)}),t.TgZ(14,"mat-icon"),t._uU(15),t.qZA()(),t.YNc(16,uK,3,3,"mat-error",7),t.qZA()(),t._UZ(17,"mat-divider"),t.TgZ(18,"div",8)(19,"button",9),t.NdJ("click",function(){return r.confirm()}),t._uU(20),t.ALo(21,"translate"),t.qZA()()),2&e){const o=t.MAs(12);t.xp6(3),t.hij(" ",t.lcZ(4,10,"CHANGEPW.REENTERPW")," "),t.xp6(6),t.Oqu(t.lcZ(10,12,"CHANGEPW.CONFIRMPWLBL")),t.xp6(2),t.Q6J("type",r.hide?"password":"text")("ngModel",r.cnfmPassword),t.xp6(2),t.uIk("aria-label","Hide password")("aria-pressed",r.hide),t.xp6(2),t.Oqu(r.hide?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",o.invalid&&o.errors.required),t.xp6(3),t.Q6J("disabled",o.invalid),t.xp6(1),t.Oqu(t.lcZ(21,14,"CHANGEPW.CONFIRMLBL"))}},directives:[Jr,ih,cu,Fb,Lb,Xl,Kt,jd,xr,Cr,Di,jw,Gt,Uw],pipes:[pn],styles:[".mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}h4[_ngcontent-%COMP%]{margin:0!important;padding:15px!important}.custom-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:15px!important;margin:0}.custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}"]}),n})(),hK=(()=>{class n{constructor(e){this.dialogRef=e}ngOnInit(){}onNoClick(){this.dialogRef.close({event:"onNoclick"})}delete(){this.dialogRef.close({event:"delete"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-confirm-delete-account"]],decls:18,vars:12,consts:[[1,"custom-header"],["aria-hidden","false","aria-label","Example report_problem icon",1,"mat-custom-icon",2,"color","#ff0000","position","relative","top","3px","font-size","18px"],[1,"custom-dialog-body"],[1,"custom-dialog-footer"],["mat-stroked-button","","color","accent",3,"click"],["mat-raised-button","","color","accent",1,"m-l-10",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"h4",0)(1,"mat-icon",1),t._uU(2,"report_problem"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._UZ(5,"mat-divider"),t.TgZ(6,"div",2)(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t._UZ(10,"mat-divider"),t.TgZ(11,"div",3)(12,"button",4),t.NdJ("click",function(){return r.onNoClick()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"button",5),t.NdJ("click",function(){return r.delete()}),t._uU(16),t.ALo(17,"translate"),t.qZA()()),2&e&&(t.xp6(3),t.hij(" ",t.lcZ(4,4,"ACCOUNT.DELETECONFIRMPOP")," "),t.xp6(5),t.Oqu(t.lcZ(9,6,"ACCOUNT.DELETEPOPTXT")),t.xp6(5),t.hij("",t.lcZ(14,8,"ACCOUNT.NOTXT")," "),t.xp6(3),t.hij(" ",t.lcZ(17,10,"ACCOUNT.YESTXT"),""))},directives:[Jr,ih,Di],pipes:[pn],styles:[".mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}h4[_ngcontent-%COMP%]{margin:0!important;padding:15px!important}.custom-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:15px!important;margin:0}.custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}"]}),n})(),fK=(()=>{class n{constructor(e){this.dialogRef=e}ngOnInit(){}onCancelClick(){this.dialogRef.close({event:"Cancel"})}save(){this.dialogRef.close({event:"Save"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(qr))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-profile-image-upload"]],decls:18,vars:12,consts:[[1,"custom-header"],["aria-hidden","false","aria-label","Example report_problem icon",1,"mat-custom-icon",2,"color","#ffbf00","position","relative","top","3px","font-size","18px"],[1,"custom-dialog-body"],[1,"custom-dialog-footer"],["mat-stroked-button","","color","accent",3,"click"],["mat-raised-button","","color","accent",1,"m-l-10",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"h4",0)(1,"mat-icon",1),t._uU(2,"report_problem"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._UZ(5,"mat-divider"),t.TgZ(6,"div",2)(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t._UZ(10,"mat-divider"),t.TgZ(11,"div",3)(12,"button",4),t.NdJ("click",function(){return r.onCancelClick()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"button",5),t.NdJ("click",function(){return r.save()}),t._uU(16),t.ALo(17,"translate"),t.qZA()()),2&e&&(t.xp6(3),t.hij(" ",t.lcZ(4,4,"ACCOUNT.UPLOADCONFIRMPOP")," "),t.xp6(5),t.Oqu(t.lcZ(9,6,"ACCOUNT.PROFILEIMAGEUPLOADTEXT")),t.xp6(5),t.hij("",t.lcZ(14,8,"ACCOUNT.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(17,10,"ACCOUNT.YESTXT"),""))},directives:[Jr,ih,Di],pipes:[pn],styles:[".mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}h4[_ngcontent-%COMP%]{margin:0!important;padding:15px!important}.custom-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:15px!important;margin:0}.custom-dialog-footer[_ngcontent-%COMP%]{padding:15px!important;text-align:right}"]}),n})();function qO(n){return(0,Le.U)(()=>n)}function i6(n,i){return i?e=>Lo(i.pipe((0,_n.q)(1),function pK(){return(0,Ci.e)((n,i)=>{n.subscribe(new Kn.Q(i,ud.Z))})}()),e.pipe(i6(n))):(0,Gi.z)((e,r)=>n(e,r).pipe((0,_n.q)(1),qO(e)))}function zO(n,i=cd){const e=Il(n,i);return i6(()=>e)}const gK=["mat-menu-item",""];function mK(n,i){1&n&&(t.O4$(),t.TgZ(0,"svg",2),t._UZ(1,"polygon",3),t.qZA())}const r6=["*"];function _K(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(o){return t.CHM(e),t.oxw()._handleKeydown(o)})("click",function(){return t.CHM(e),t.oxw().closed.emit("click")})("@transformMenu.start",function(o){return t.CHM(e),t.oxw()._onAnimationStart(o)})("@transformMenu.done",function(o){return t.CHM(e),t.oxw()._onAnimationDone(o)}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),t.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const iT={transformMenu:xs("transformMenu",[br("void",ei({opacity:0,transform:"scale(0.8)"})),yr("void => enter",Wr("120ms cubic-bezier(0, 0, 0.2, 1)",ei({opacity:1,transform:"scale(1)"}))),yr("* => void",Wr("100ms 25ms linear",ei({opacity:0})))]),fadeInItems:xs("fadeInItems",[br("showing",ei({opacity:1})),yr("void => *",[ei({opacity:0}),Wr("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},vK=new t.OlP("MatMenuContent"),$O=new t.OlP("MAT_MENU_PANEL"),bK=jl(nu(class{}));let $b=(()=>{class n extends bK{constructor(e,r,o,s,c){var f;super(),this._elementRef=e,this._document=r,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new ft.x,this._focused=new ft.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(f=null==s?void 0:s.addItem)||void 0===f||f.call(s,this)}focus(e,r){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,r):this._getHostElement().focus(r),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const r=this._elementRef.nativeElement.cloneNode(!0),o=r.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class n{constructor(e,r,o,s){this._elementRef=e,this._ngZone=r,this._defaultOptions=o,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._tabSubscription=Xn.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new ft.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+xK++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Wt(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Wt(e)}set panelClass(e){const r=this._previousPanelClass;r&&r.length&&r.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ng(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(wi(this._directDescendantItems),En(e=>(0,_r.T)(...e.map(r=>r._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var r;const o=this._keyManager;if("enter"===this._panelAnimationState&&(null===(r=o.activeItem)||void 0===r?void 0:r._hasFocus())){const s=e.toArray(),c=Math.max(0,Math.min(s.length-1,o.activeItemIndex||0));s[c]&&!s[c].disabled?o.setActiveItem(c):o.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(wi(this._directDescendantItems),En(r=>(0,_r.T)(...r.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const r=e.keyCode,o=this._keyManager;switch(r){case 27:ra(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===r||40===r)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,_n.q)(1)).subscribe(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&r&&r.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const r=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${r}`,s=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,r=this.yPosition){var o;const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===r,s["mat-menu-below"]="below"===r,null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(wi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(o6),t.Y36(t.sBO))},n.\u0275dir=t.lG2({type:n,contentQueries:function(e,r,o){if(1&e&&(t.Suo(o,vK,5),t.Suo(o,$b,5),t.Suo(o,$b,4)),2&e){let s;t.iGM(s=t.CRH())&&(r.lazyContent=s.first),t.iGM(s=t.CRH())&&(r._allItems=s),t.iGM(s=t.CRH())&&(r.items=s)}},viewQuery:function(e,r){if(1&e&&t.Gf(t.Rgc,5),2&e){let o;t.iGM(o=t.CRH())&&(r.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),s6=(()=>{class n extends Yb{constructor(e,r,o,s){super(e,r,o,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(o6),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,r){2&e&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:$O,useExisting:n}]),t.qOj],ngContentSelectors:r6,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,r){1&e&&(t.F$t(),t.YNc(0,_K,3,6,"ng-template"))},directives:[wn],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[iT.transformMenu,iT.fadeInItems]},changeDetection:0}),n})();const a6=new t.OlP("mat-menu-scroll-strategy"),wK={provide:a6,deps:[bs],useFactory:function CK(n){return()=>n.scrollStrategies.reposition()}},c6=Ol({passive:!0});let TK=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T){this._overlay=e,this._element=r,this._viewContainerRef=o,this._menuItemInstance=f,this._dir=g,this._focusMonitor=v,this._ngZone=T,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Xn.w0.EMPTY,this._hoverSubscription=Xn.w0.EMPTY,this._menuCloseSubscription=Xn.w0.EMPTY,this._handleTouchStart=D=>{Fl(D)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=c instanceof Yb?c:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,c6),f&&(f._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(r=>{this._destroyMenu(r),("click"===r||"tab"===r)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,c6),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),r=e.getConfig(),o=r.positionStrategy;this._setPosition(o),r.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Yb&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(It(this.menu.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,r){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,r):this._element.nativeElement.focus(r)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof Yb?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(Yt(o=>"void"===o.toState),(0,_n.q)(1),It(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),r.lazyContent&&r.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,r=this.menu.parentMenu;for(;r;)e++,r=r.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new lf({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(o,s)):this.menu.setPositionClasses(o,s)})}_setPosition(e){let[r,o]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,c]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[f,g]=[s,c],[v,T]=[r,o],D=0;this.triggersSubmenu()?(T=r="before"===this.menu.xPosition?"start":"end",o=v="end"===r?"start":"end",D="bottom"===s?8:-8):this.menu.overlapTrigger||(f="top"===s?"bottom":"top",g="top"===c?"bottom":"top"),e.withPositions([{originX:r,originY:f,overlayX:v,overlayY:s,offsetY:D},{originX:o,originY:f,overlayX:T,overlayY:s,offsetY:D},{originX:r,originY:g,overlayX:v,overlayY:c,offsetY:-D},{originX:o,originY:g,overlayX:T,overlayY:c,offsetY:-D}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),r=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:ut(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Yt(c=>c!==this._menuItemInstance),Yt(()=>this._menuOpen)):ut();return(0,_r.T)(e,o,s,r)}_handleMousedown(e){av(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const r=e.keyCode;(13===r||32===r)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===r&&"ltr"===this.dir||37===r&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Yt(e=>e===this._menuItemInstance&&!e.disabled),zO(0,Dg)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Yb&&this.menu._isAnimating?this.menu._animationDone.pipe((0,_n.q)(1),zO(0,Dg),It(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new vd(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bs),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(a6),t.Y36($O,8),t.Y36($b,10),t.Y36(Ui,8),t.Y36(oa),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,r){1&e&&t.NdJ("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),2&e&&t.uIk("aria-expanded",r.menuOpen||null)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),u6=(()=>{class n extends TK{}return n.\u0275fac=function(){let i;return function(r){return(i||(i=t.n5z(n)))(r||n)}}(),n.\u0275dir=t.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]}),n})(),SK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[wK],imports:[[si,In,Zl,tv],_d,In]}),n})();function DK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",16)(1,"input",17),t.NdJ("change",function(o){return t.CHM(e),t.oxw(2).onFileChanged(o)}),t.qZA(),t.TgZ(2,"label",18)(3,"mat-icon",19),t._uU(4,"mode_edit"),t.qZA()()()}}function EK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editInfo()}),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"ACCOUNT.EDIT")))}function AK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",5)(1,"div",6),t.YNc(2,DK,5,0,"div",7),t.TgZ(3,"div",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().showTechInfo()}),t._UZ(4,"img",9),t.qZA()(),t.TgZ(5,"button",10)(6,"mat-icon",11),t._uU(7,"more_vert"),t.qZA()(),t.TgZ(8,"mat-menu",null,12),t.YNc(10,EK,4,3,"button",13),t.TgZ(11,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSignOutDialog()}),t.TgZ(12,"span"),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"button",15),t.NdJ("click",function(){return t.CHM(e),t.oxw().openDeleteAccountDialog()}),t.TgZ(16,"span"),t._uU(17),t.ALo(18,"translate"),t.qZA()()()()}if(2&n){const e=t.MAs(9),r=t.oxw();t.xp6(2),t.Q6J("ngIf","Gmail"!=r.loginType&&"Facebook"!=r.loginType&&"Apple"!=r.loginType),t.xp6(2),t.Q6J("src",r.accountService.profileImage?r.accountService.profileImage:"assets/images/img-user.jpg",t.LSH),t.xp6(1),t.Q6J("disableRipple",!0)("matMenuTriggerFor",e),t.xp6(5),t.Q6J("ngIf","Gmail"!=r.loginType&&"Facebook"!=r.loginType&&"Apple"!=r.loginType&&0==r.isEdit),t.xp6(3),t.Oqu(t.lcZ(14,7,"ACCOUNT.SIGNOUT")),t.xp6(4),t.Oqu(t.lcZ(18,9,"ACCOUNT.DELETEACCOUNT"))}}function MK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editInfo()}),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"ACCOUNT.EDIT")))}function IK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).openUpgragePop()}),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"ACCOUNT.UPGRADEBTN")))}function OK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).openUpgragePop()}),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"ACCOUNT.CHECKSUBCRIPTIONBTN")))}function kK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",20)(1,"h4",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",22)(5,"mat-icon",23),t._uU(6,"more_vert"),t.qZA()(),t.TgZ(7,"mat-menu",null,12),t.YNc(9,MK,4,3,"button",13),t.TgZ(10,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSignOutDialog()}),t.TgZ(11,"span"),t._uU(12),t.ALo(13,"translate"),t.qZA()(),t.TgZ(14,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().openDeleteAccountDialog()}),t.TgZ(15,"span"),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.YNc(18,IK,4,3,"button",13),t.YNc(19,OK,4,3,"button",13),t.qZA()()}if(2&n){const e=t.MAs(8),r=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"ACCOUNT.PROFILETAB")),t.xp6(2),t.Q6J("disableRipple",!0)("matMenuTriggerFor",e),t.xp6(5),t.Q6J("ngIf","Gmail"!=r.loginType&&"Facebook"!=r.loginType&&"Apple"!=r.loginType&&0==r.isEdit),t.xp6(3),t.Oqu(t.lcZ(13,10,"ACCOUNT.SIGNOUT")),t.xp6(4),t.Oqu(t.lcZ(17,12,"ACCOUNT.DELETEACCOUNT")),t.xp6(2),t.Q6J("ngIf",(!r.storeService.isPlanSubscribe||r.storeService.isPlanExpire)&&r.loginService.isNative),t.xp6(1),t.Q6J("ngIf",r.storeService.isPlanSubscribe&&!r.storeService.isPlanExpire&&r.loginService.isNative)}}function PK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",38),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editInfo()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ACCOUNT.EDIT")," "))}const d6=function(){return{rgtborder:!1}},rT=function(){return{"p-t-10":!0}},h6=function(){return{botmborder:!0,"p-b-10":!0}},f6=function(){return{rgtborder:!1,botmborder:!0,"p-l-15":!0,"p-t-10":!0,"p-b-10":!0}},p6=function(){return{botmborder:!1}},oT=function(){return{"m-l-15":!1}},g6=function(){return{"p-b-10":!0}};function NK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",24)(1,"div",25)(2,"div",26)(3,"h5",27),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",28),t._uU(7),t.qZA()(),t.TgZ(8,"div",29)(9,"h5",27),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",30),t._uU(13),t.qZA()()(),t.TgZ(14,"div",31)(15,"div",26)(16,"h5",27),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",28),t._uU(20),t.qZA()(),t.TgZ(21,"div",32)(22,"h5",27),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",30),t._uU(26),t.qZA()()(),t.TgZ(27,"div",33)(28,"div",34),t.YNc(29,PK,3,3,"button",35),t.TgZ(30,"button",36)(31,"mat-icon",11),t._uU(32,"more_vert"),t.qZA()(),t.TgZ(33,"mat-menu",null,12)(35,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSignOutDialog()}),t.TgZ(36,"span"),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"button",15),t.NdJ("click",function(){return t.CHM(e),t.oxw().openDeleteAccountDialog()}),t.TgZ(40,"span"),t._uU(41),t.ALo(42,"translate"),t.qZA()()()(),t.TgZ(43,"div",37)(44,"h5",27),t._uU(45),t.ALo(46,"translate"),t.qZA(),t.TgZ(47,"div",30),t._uU(48,"********"),t.qZA()()()()}if(2&n){const e=t.MAs(34),r=t.oxw();t.xp6(1),t.Q6J("ngClass.sm",t.DdM(44,d6))("ngClass.xs",t.DdM(45,d6)),t.xp6(1),t.Q6J("ngClass.xs",t.DdM(46,rT))("ngClass.sm",t.DdM(47,rT)),t.xp6(2),t.Oqu(t.lcZ(5,30,"ACCOUNT.NAME")),t.xp6(3),t.hij(" ",r.accountScreenModel.fullname," "),t.xp6(1),t.Q6J("ngClass.xs",t.DdM(48,h6))("ngClass.sm",t.DdM(49,h6)),t.xp6(2),t.Oqu(t.lcZ(11,32,"ACCOUNT.USERNAME")),t.xp6(3),t.Oqu(r.accountScreenModel.userName),t.xp6(2),t.Q6J("ngClass.xs",t.DdM(50,rT))("ngClass.sm",t.DdM(51,rT)),t.xp6(2),t.Oqu(t.lcZ(18,34,"ACCOUNT.EMAIL")),t.xp6(3),t.hij(" ",r.accountScreenModel.email," "),t.xp6(1),t.Q6J("ngClass.sm",t.DdM(52,f6))("ngClass.xs",t.DdM(53,f6)),t.xp6(2),t.Oqu(t.lcZ(24,36,"ACCOUNT.ADDRESS")),t.xp6(3),t.hij(" ",""!=r.accountScreenModel.address&&null!=r.accountScreenModel.address?r.accountScreenModel.address:"-"," "),t.xp6(2),t.Q6J("ngClass.sm",t.DdM(54,p6))("ngClass.xs",t.DdM(55,p6)),t.xp6(1),t.Q6J("ngIf","Gmail"!=r.loginType&&"Facebook"!=r.loginType&&"Apple"!=r.loginType&&0==r.isEdit),t.xp6(1),t.Q6J("disableRipple",!0)("ngClass.sm",t.DdM(56,oT))("ngClass.xs",t.DdM(57,oT))("matMenuTriggerFor",e),t.xp6(7),t.Oqu(t.lcZ(38,38,"ACCOUNT.SIGNOUT")),t.xp6(4),t.Oqu(t.lcZ(42,40,"ACCOUNT.DELETEACCOUNT")),t.xp6(2),t.Q6J("ngClass.xs",t.DdM(58,g6))("ngClass.sm",t.DdM(59,g6)),t.xp6(2),t.Oqu(t.lcZ(46,42,"ACCOUNT.PASSWORD"))}}function RK(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"EDITACCOUNT.FIRSTNAMEINVALID")))}function FK(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"EDITACCOUNT.LASTNAMEINVALID")))}function LK(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"EDITACCOUNT.USERNAMEINVALID")))}function BK(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"EDITACCOUNT.EMAILREQ")))}function GK(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"EDITACCOUNT.EMAILINVALID")))}function UK(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"RESETPASSWORD.INVALIDPW")))}const sT=function(n){return{"is-invalid":n}},aT=function(){return{"m-t-15":!1}},m6=function(){return{"p-b-20":!1,"justify-end":!1}};function HK(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"form",39,40),t.NdJ("ngSubmit",function(){t.CHM(e);const o=t.MAs(1),s=t.oxw();return o.form.valid&&s.editSaveProfile()}),t.TgZ(2,"div",31)(3,"div",41)(4,"mat-form-field",42)(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"input",43,44),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().userModel.nameFirst=o}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,RK,3,3,"mat-error",45),t.qZA(),t.TgZ(12,"mat-form-field",42)(13,"mat-label"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.TgZ(16,"input",46,47),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().userModel.nameLast=o}),t.ALo(18,"translate"),t.qZA(),t.YNc(19,FK,3,3,"mat-error",45),t.qZA()(),t.TgZ(20,"div",48)(21,"mat-form-field",49)(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"input",50,51),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().userModel.userName=o}),t.ALo(27,"translate"),t.qZA(),t.YNc(28,LK,3,3,"mat-error",45),t.qZA()()(),t.TgZ(29,"div",31)(30,"div",48)(31,"mat-form-field",52)(32,"mat-label"),t._uU(33),t.ALo(34,"translate"),t.qZA(),t.TgZ(35,"input",53,54),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().userModel.email=o}),t.ALo(37,"translate"),t.qZA(),t.YNc(38,BK,3,3,"mat-error",45),t.YNc(39,GK,3,3,"mat-error",45),t.qZA()(),t.TgZ(40,"div",48)(41,"mat-form-field",52)(42,"mat-label"),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"textarea",55),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().userModel.address=o}),t.ALo(46,"translate"),t.qZA()()()(),t.TgZ(47,"div",33)(48,"div",56)(49,"button",57),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.TgZ(52,"button",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().cancelClick()}),t._uU(53),t.ALo(54,"translate"),t.qZA()(),t.TgZ(55,"div",48)(56,"mat-form-field",49)(57,"mat-label"),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"input",59,60),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().userModel.password=o}),t.qZA(),t.TgZ(62,"button",61),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return o.passwordVisibility(o.hide)}),t.TgZ(63,"mat-icon"),t._uU(64),t.qZA()(),t.YNc(65,UK,3,3,"mat-error",45),t.qZA()()()()}if(2&n){const e=t.MAs(1),r=t.MAs(9),o=t.MAs(17),s=t.MAs(26),c=t.MAs(36),f=t.MAs(61),g=t.oxw();t.xp6(6),t.Oqu(t.lcZ(7,41,"EDITACCOUNT.FIRSTNAME")),t.xp6(2),t.s9C("placeholder",t.lcZ(10,43,"ACCOUNT.EnterFirstNamePlaceholder")),t.Q6J("ngModel",g.userModel.nameFirst)("ngClass",t.VKq(67,sT,e.submitted&&r.invalid)),t.xp6(3),t.Q6J("ngIf",e.submitted&&r.invalid&&r.errors.required),t.xp6(3),t.Oqu(t.lcZ(15,45,"EDITACCOUNT.LASTNAME")),t.xp6(2),t.s9C("placeholder",t.lcZ(18,47,"ACCOUNT.EnterLastNamePlaceholder")),t.Q6J("ngModel",g.userModel.nameLast)("ngClass",t.VKq(69,sT,e.submitted&&o.invalid)),t.xp6(3),t.Q6J("ngIf",e.submitted&&o.invalid&&o.errors.required),t.xp6(2),t.Q6J("ngClass.sm",t.DdM(71,aT))("ngClass.xs",t.DdM(72,aT)),t.xp6(2),t.Oqu(t.lcZ(24,49,"EDITACCOUNT.USERNAME")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,51,"ACCOUNT.EnterUserNamePlaceholder")),t.Q6J("ngModel",g.userModel.userName)("ngClass",t.VKq(73,sT,e.submitted&&s.invalid)),t.xp6(3),t.Q6J("ngIf",e.submitted&&s.invalid&&s.errors.required),t.xp6(5),t.Oqu(t.lcZ(34,53,"EDITACCOUNT.EMAIL")),t.xp6(2),t.s9C("placeholder",t.lcZ(37,55,"ACCOUNT.EnterEmailPlaceholder")),t.Q6J("ngModel",g.userModel.email)("ngClass",t.VKq(75,sT,e.submitted&&c.invalid)),t.xp6(3),t.Q6J("ngIf",e.submitted&&c.invalid&&c.errors.required),t.xp6(1),t.Q6J("ngIf",e.submitted&&c.invalid&&c.errors.email),t.xp6(4),t.Oqu(t.lcZ(44,57,"EDITACCOUNT.ADDRESS")),t.xp6(2),t.s9C("placeholder",t.lcZ(46,59,"ACCOUNT.EnterAddressPlaceholder")),t.Q6J("ngModel",g.userModel.address),t.xp6(3),t.Q6J("ngClass.sm",t.DdM(77,m6))("ngClass.xs",t.DdM(78,m6)),t.xp6(2),t.hij(" ",t.lcZ(51,61,"ACCOUNT.SAVE")," "),t.xp6(2),t.Q6J("ngClass.xs",t.DdM(79,oT))("ngClass.sm",t.DdM(80,oT)),t.xp6(1),t.hij(" ",t.lcZ(54,63,"ACCOUNT.CANCEL")," "),t.xp6(3),t.Q6J("ngClass.sm",t.DdM(81,aT))("ngClass.xs",t.DdM(82,aT)),t.xp6(2),t.Oqu(t.lcZ(59,65,"ACCOUNT.PASSWORD")),t.xp6(2),t.Q6J("type",g.hide?"password":"text")("ngModel",g.userModel.password),t.xp6(2),t.uIk("aria-label","Hide password")("aria-pressed",g.hide),t.xp6(2),t.Oqu(g.hide?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",e.submitted&&f.invalid&&""!=g.userModel.password&&f.errors.minlength)}}let jK=(()=>{class n{constructor(e,r){this.storeService=e,this.loginService=r,this.showTechInfoData=new t.vpe,this.openSignOutDialogData=new t.vpe,this.openDeleteAccountDialogData=new t.vpe,this.editInfoData=new t.vpe,this.cancelClickData=new t.vpe,this.editSaveProfileData=new t.vpe,this.passwordVisibilityData=new t.vpe,this.onFileChangedData=new t.vpe,this.openUpgrade=new t.vpe}ngOnInit(){}showTechInfo(){this.showTechInfoData.emit()}openSignOutDialog(){this.openSignOutDialogData.emit()}editInfo(){this.editInfoData.emit()}cancelClick(){this.cancelClickData.emit()}editSaveProfile(){this.editSaveProfileData.emit()}passwordVisibility(e){this.passwordVisibilityData.emit(e)}openDeleteAccountDialog(){this.openDeleteAccountDialogData.emit()}onFileChanged(e){this.onFileChangedData.emit(e)}openUpgragePop(){this.openUpgrade.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Wb),t.Y36(fn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-profile"]],inputs:{accountService:"accountService",loginType:"loginType",isEdit:"isEdit",accountScreenModel:"accountScreenModel",userModel:"userModel",breakpoint:"breakpoint",hide:"hide"},outputs:{showTechInfoData:"showTechInfoData",openSignOutDialogData:"openSignOutDialogData",openDeleteAccountDialogData:"openDeleteAccountDialogData",editInfoData:"editInfoData",cancelClickData:"cancelClickData",editSaveProfileData:"editSaveProfileData",passwordVisibilityData:"passwordVisibilityData",onFileChangedData:"onFileChangedData",openUpgrade:"openUpgrade"},decls:5,vars:4,consts:[["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","0.5%","fxLayoutAlign","center",1,"custom-grid",2,"padding","15px"],["class","","fxLayout","row","fxFlex","15%","fxFlexAlign","end center",4,"ngIf"],["fxLayout","row","class","p-l-20",4,"ngIf"],["class","","fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutWrap","","fxFlex","85%","fxFlexAlign","stretch",4,"ngIf"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutWrap","","fxFlex","85%","fxFlexAlign","stretch","fxLayoutGap","10px","fxLayoutGap.sm","0px","fxLayoutGap.xs","0px",3,"ngSubmit",4,"ngIf"],["fxLayout","row","fxFlex","15%","fxFlexAlign","end center",1,""],[1,"avatar-upload"],["class","avatar-edit",4,"ngIf"],[1,"avatar-preview",3,"click"],["id","imagePreview","referrerpolicy","no-referrer",3,"src"],["fxHide.gt-sm","","fxLayoutAlign","start","mat-icon-button","",3,"disableRipple","matMenuTriggerFor"],[1,"icon-height"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],["mat-menu-item","",1,"delete-hover",3,"click"],[1,"avatar-edit"],["type","file","id","imageUpload",3,"change"],["for","imageUpload"],["color","accent","aria-hidden","false","aria-label","Example home icon",1,"mat-custom-icon"],["fxLayout","row",1,"p-l-20"],["fxFlex","95%",1,"custom-header"],["fxFlex","5%","fxHide.gt-sm","","fxLayoutAlign","start","mat-icon-button","",3,"disableRipple","matMenuTriggerFor"],[1,"three-dot"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutWrap","","fxFlex","85%","fxFlexAlign","stretch",1,""],["ngClass","rgtborder","fxFlex","35%",3,"ngClass.sm","ngClass.xs"],[1,"p-l-15","botmborder",3,"ngClass.xs","ngClass.sm"],[1,"custom-title"],[1,"custom-content","p-b-10"],[1,"p-l-15","p-t-10",3,"ngClass.xs","ngClass.sm"],[1,"custom-content"],["fxFlex","35%"],["ngClass","rgtborder h60 p-l-15 p-t-10",3,"ngClass.sm","ngClass.xs"],["fxFlex","","fxLayout.xs","column-reverse","fxLayout.sm","column-reverse"],["ngClass","botmborder","fxLayout","row","fxLayoutAlign","end","fxLayout.xs","column","fxLayout.sm","column",3,"ngClass.sm","ngClass.xs"],["fxHide.lt-sm","","fxHide.sm","","fxFlex","54%","style","margin-bottom: 14px","mat-stroked-button","","color","accent",3,"click",4,"ngIf"],["fxHide.lt-sm","","fxHide.sm","","fxLayoutAlign","start","fxFlex","9%","mat-icon-button","",1,"m-l-15",2,"margin-bottom","10px",3,"disableRipple","ngClass.sm","ngClass.xs","matMenuTriggerFor"],[1,"m-l-15","p-t-10",3,"ngClass.xs","ngClass.sm"],["fxHide.lt-sm","","fxHide.sm","","fxFlex","54%","mat-stroked-button","","color","accent",2,"margin-bottom","14px",3,"click"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutWrap","","fxFlex","85%","fxFlexAlign","stretch","fxLayoutGap","10px","fxLayoutGap.sm","0px","fxLayoutGap.xs","0px",3,"ngSubmit"],["f","ngForm"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column",1,""],["appearance","fill","fxFlex","50%"],["matInput","","name","txtname","value","","trim","","required","",3,"placeholder","ngModel","ngClass","ngModelChange"],["nameFirst","ngModel"],[4,"ngIf"],["matInput","","name","txtLastname","value","","trim","","required","",3,"placeholder","ngModel","ngClass","ngModelChange"],["nameLast","ngModel"],[1,""],["appearance","fill","fxFlex","100%",1,"m-t-15",3,"ngClass.sm","ngClass.xs"],["matInput","","name","username","value","","trim","","required","",3,"placeholder","ngModel","ngClass","ngModelChange"],["userName","ngModel"],["appearance","fill","fxFlex","100%"],["matInput","","name","email","value","","trim","","required","","email","",3,"placeholder","ngModel","ngClass","ngModelChange"],["email","ngModel"],["matInput","","name","address",3,"placeholder","ngModel","ngModelChange"],["fxLayout","row","fxLayout.xs","column","fxLayout.sm","column",1,"p-b-20","justify-end",3,"ngClass.sm","ngClass.xs"],["mat-raised-button","","color","accent",2,"margin-bottom","14px"],["type","button","mat-stroked-button","","color","accent",1,"m-l-15",2,"margin-bottom","14px",3,"ngClass.xs","ngClass.sm","click"],["matInput","","name","password","minlength","8","trim","",3,"type","ngModel","ngModelChange"],["password","ngModel"],["type","button","mat-icon-button","","matSuffix","",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t.YNc(1,AK,19,11,"div",1),t.YNc(2,kK,20,14,"div",2),t.YNc(3,NK,49,60,"div",3),t.YNc(4,HK,66,83,"form",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",0==r.breakpoint),t.xp6(1),t.Q6J("ngIf",1==r.breakpoint),t.xp6(1),t.Q6J("ngIf",!r.isEdit),t.xp6(1),t.Q6J("ngIf",r.isEdit))},directives:[ti,qo,Ir,Gt,Ei,Wl,Jr,Di,q3,u6,s6,$b,wn,ci,Hd,Ud,Ja,cu,Fb,Lb,Xl,Kt,jd,xr,Cr,Uw,Xv,F1,jw],pipes:[pn],styles:[".custom-grid[_ngcontent-%COMP%] .mat-grid-tile .mat-grid-tile-content{justify-content:left!important}.custom-grid[_ngcontent-%COMP%] .mat-grid-tile{margin-top:10px!important}.custom-grid[_ngcontent-%COMP%]{background-color:#fff;border-radius:25px;min-height:142px!important}.avatar-upload[_ngcontent-%COMP%]{position:relative;margin:5px auto;height:100px}.avatar-edit[_ngcontent-%COMP%]{float:right;position:absolute;right:2px;z-index:1;bottom:-10px}.avatar-edit[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.avatar-edit[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:30px;height:30px;margin-bottom:0;border-radius:100%;background:#FFFFFF;border:1px solid #6858ba;box-shadow:0 2px 4px #0000001f;cursor:pointer;font-weight:400;transition:all .2s ease-in-out}.avatar-edit[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:hover{background:#f1f1f1;border-color:#d6d6d6}.mat-custom-icon[_ngcontent-%COMP%]{font-size:18px;position:absolute;top:6px;left:0;right:0;text-align:center;margin:auto}.avatar-preview[_ngcontent-%COMP%]{width:100px;height:100px;position:relative;border-radius:100%;border:1px solid #d4cbff;box-shadow:0 2px 4px #0000001a}.avatar-preview[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:100%;background-size:cover;background-repeat:no-repeat;background-position:center}.icon-height[_ngcontent-%COMP%]{font-size:33px;line-height:21px}.three-dot[_ngcontent-%COMP%]{font-size:33px;line-height:35px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.h60[_ngcontent-%COMP%]{height:60px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px!important}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.justify-end[_ngcontent-%COMP%]{justify-content:end!important}.delete-hover[_ngcontent-%COMP%]:hover{background:rgb(246 2 2 / 31%)}.custom-header[_ngcontent-%COMP%]{margin-top:10px!important}"]}),n})();function VK(n,i){if(1&n&&(t.TgZ(0,"mat-grid-list",6)(1,"mat-grid-tile",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-grid-tile",10),t._uU(5),t.qZA()()),2&n){const e=i.$implicit,r=i.index;t.xp6(1),t.Q6J("ngClass",r%2==0?"row-striped":"")("colspan",3)("rowspan",1),t.xp6(1),t.hij(" ",t.lcZ(3,8,e.columnDef),""),t.xp6(2),t.Q6J("ngClass",r%2==0?"row-striped":"")("colspan",1)("rowspan",1),t.xp6(1),t.hij(" ",e.columnValue,"")}}function ZK(n,i){if(1&n&&(t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",7)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._uU(4),t.qZA()(),t.YNc(5,VK,6,10,"mat-grid-list",8),t.qZA()()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("expanded",!0),t.xp6(3),t.hij(" ",e.key," "),t.xp6(1),t.Q6J("ngForOf",e.value)}}let WK=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-game-statistics"]],inputs:{breakpoint:"breakpoint",gameStaticsAry:"gameStaticsAry"},decls:10,vars:6,consts:[[1,"game-statics","internalMatGrid"],["cols","2","rowHeight","25px"],[1,"botmborder",3,"colspan","rowspan"],[1,"p-l-20"],[1,"custom-header"],[4,"ngFor","ngForOf"],["cols","4","rowHeight","38px","gutterSize","0px"],[3,"expanded"],["cols","4","rowHeight","38px","gutterSize","0px",4,"ngFor","ngForOf"],[1,"rgtborder","custom-title",3,"ngClass","colspan","rowspan"],[1,"custom-title",3,"ngClass","colspan","rowspan"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"mat-grid-list",1)(2,"mat-grid-tile",2)(3,"mat-grid-tile-header",3)(4,"h4",4),t._uU(5),t.ALo(6,"translate"),t.qZA()()()(),t.YNc(7,ZK,6,3,"mat-accordion",5),t.TgZ(8,"mat-grid-list",6),t._UZ(9,"mat-grid-tile"),t.qZA()()),2&e&&(t.xp6(2),t.Q6J("colspan",2)("rowspan",2),t.xp6(3),t.Oqu(t.lcZ(6,4,"ACCOUNT.GameStatistics")),t.xp6(2),t.Q6J("ngForOf",r.gameStaticsAry))},directives:[Vw,Gb,U$,H$,Vt,aB,bO,yO,sB,wn,ci],pipes:[pn],styles:[".mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:last-of-type{border-radius:unset!important}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{height:42px!important}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-body{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]{background-color:#6858ba!important;padding:0 20px!important}.mat-expansion-panel-header-title[_ngcontent-%COMP%], mat-expansion-panel-header[_ngcontent-%COMP%] .mat-expansion-indicator:after{color:#fff!important}.internalMatGrid[_ngcontent-%COMP%]{background-color:#fff;border-radius:25px;margin-top:15px;height:-moz-fit-content;height:fit-content}.mat-grid-tile[_ngcontent-%COMP%] .mat-grid-tile-header[_ngcontent-%COMP%]{background:none!important;padding-left:0}.game-statics[_ngcontent-%COMP%] .justify-center .mat-grid-tile-content{justify-content:center!important;padding-left:0}.game-statics[_ngcontent-%COMP%] .mat-grid-tile-content{justify-content:left!important;padding-left:20px;align-items:center!important;margin:0!important}.mat-card[_ngcontent-%COMP%]{padding:10px 20px;border-radius:35px;box-shadow:none}.p-l-20[_ngcontent-%COMP%]{padding-left:20px!important}.p-l-10[_ngcontent-%COMP%]{padding-left:10px!important}.row-striped[_ngcontent-%COMP%]{background-color:#e7e3fc}"]}),n})();const qK=["thumbContainer"],zK=["toggleBar"],$K=["input"],YK=function(n){return{enterDuration:n}},JK=["*"],QK=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let KK=0;const XK={provide:Be,useExisting:(0,t.Gpc)(()=>YO),multi:!0};class eX{constructor(i,e){this.source=i,this.checked=e}}const tX=fm(iu(jl(nu(class{constructor(n){this._elementRef=n}}))));let YO=(()=>{class n extends tX{constructor(e,r,o,s,c,f){super(e),this._focusMonitor=r,this._changeDetectorRef=o,this.defaults=c,this._onChange=g=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++KK,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(s)||0,this.color=this.defaultColor=c.color||"accent",this._noopAnimations="NoopAnimations"===f}get required(){return this._required}set required(e){this._required=Wt(e)}get checked(){return this._checked}set checked(e){this._checked=Wt(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}focus(e,r){r?this._focusMonitor.focusVia(this._inputElement,r,e):this._inputElement.nativeElement.focus(e)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new eX(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(oa),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(QK),t.Y36(Ii,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,r){if(1&e&&(t.Gf(qK,5),t.Gf(zK,5),t.Gf($K,5)),2&e){let o;t.iGM(o=t.CRH())&&(r._thumbEl=o.first),t.iGM(o=t.CRH())&&(r._thumbBarEl=o.first),t.iGM(o=t.CRH())&&(r._inputElement=o.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,r){2&e&&(t.Ikx("id",r.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),t.ekj("mat-checked",r.checked)("mat-disabled",r.disabled)("mat-slide-toggle-label-before","before"==r.labelPosition)("_mat-animation-noopable",r._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[t._Bn([XK]),t.qOj],ngContentSelectors:JK,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,r){if(1&e&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),t.NdJ("change",function(s){return r._onChangeEvent(s)})("click",function(s){return r._onInputClick(s)}),t.qZA(),t.TgZ(6,"span",6,7),t._UZ(8,"span",8),t.TgZ(9,"span",9),t._UZ(10,"span",10),t.qZA()()(),t.TgZ(11,"span",11,12),t.NdJ("cdkObserveContent",function(){return r._onLabelTextChange()}),t.TgZ(13,"span",13),t._uU(14,"\xa0"),t.qZA(),t.Hsn(15),t.qZA()()),2&e){const o=t.MAs(1),s=t.MAs(12);t.uIk("for",r.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!s.textContent||!s.textContent.trim()),t.xp6(2),t.Q6J("id",r.inputId)("required",r.required)("tabIndex",r.tabIndex)("checked",r.checked)("disabled",r.disabled),t.uIk("name",r.name)("aria-checked",r.checked)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,YK,r._noopAnimations?0:150))}},directives:[$a,Rl],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),n})(),_6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})(),rX=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_6,Zl,In,df],_6,In]}),n})();const lT=function(n){return{"custom-selection":n}};let oX=(()=>{class n{constructor(){this.onToggleChangeData=new t.vpe,this.onScoreGameToggleChangeData=new t.vpe,this.onclickPrevThmData=new t.vpe,this.onclickNextThmData=new t.vpe,this.onclickPrevData=new t.vpe,this.onclickNextData=new t.vpe}ngOnInit(){}onScoreGameToggleChange(e){this.onScoreGameToggleChangeData.emit(e)}onclickPrevThm(){this.onclickPrevThmData.emit()}onclickNextThm(){this.onclickNextThmData.emit()}onclickPrev(){this.onclickPrevData.emit()}onclickNext(){this.onclickNextData.emit()}onToggleChange(e){this.onToggleChangeData.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-game-settings"]],inputs:{isChecked:"isChecked",isScoreGameChecked:"isScoreGameChecked",themeName:"themeName",prevThmBtnDisabled:"prevThmBtnDisabled",nxtThmBtnDisabled:"nxtThmBtnDisabled",languageName:"languageName",prevBtnDisabled:"prevBtnDisabled",nxtBtnDisabled:"nxtBtnDisabled",breakpoint:"breakpoint"},outputs:{onToggleChangeData:"onToggleChangeData",onScoreGameToggleChangeData:"onScoreGameToggleChangeData",onclickPrevThmData:"onclickPrevThmData",onclickNextThmData:"onclickNextThmData",onclickPrevData:"onclickPrevData",onclickNextData:"onclickNextData"},decls:95,vars:71,consts:[[1,"internalMatGrid"],[3,"ngClass"],[1,"custom-header"],["fxLayout.xs","row","fxLayoutAlign","space-between center",1,"m-b-15"],[1,"custom-title"],[1,"toggle-switch",3,"ngModel","change","ngModelChange"],[1,"toggle-switch",3,"checked","disabled"],[1,"botmborder"],["fxLayout","row",1,"botmborder"],["fxFlex","50%","fxFlexAlign","start",1,"custom-content"],["fxFlex","50%","fxFlexAlign","end","fxLayout","row","fxLayoutAlign","center start",1,"custom-selection"],["title","Prev",3,"disabled"],["id","prev"],["id","maxPlayer","name","maxPlayer",1,"custom-selectoption"],["title","Next",3,"disabled"],["id","next"],["fxLayout","row","fxLayout.xs","column","fxLayout.sm","column",1,"botmborder"],["fxFlex","50%",3,"ngClass.sm","ngClass.xs","ngClass"],[1,"custom-content","text-center"],["fxLayout","row",1,"custom-selection","justify-center"],["id","timeLmt","name","timeLmt",1,"custom-selectoption"],["fxFlex","50%",1,""],["id","gameDur","name","gameDur",1,"custom-selectoption"],["fxLayout","row","fxLayout.xs","column","fxLayout.sm","column"],["fxLayout","row",1,"justify-center"],["title","Prev",3,"ngClass","disabled","click"],["id","themeName","name","themeName",1,"custom-selectoption"],["title","Next",3,"ngClass","disabled","click"],["fxFlex","50%","fxFlexAlign","center"],["id","langName","name","langName",1,"custom-selectoption"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h4",2),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",1)(6,"div",3)(7,"span",4),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-slide-toggle",5),t.NdJ("change",function(s){return r.onToggleChange(s)})("ngModelChange",function(s){return r.isChecked=s}),t.qZA()(),t.TgZ(11,"div",3)(12,"span",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._UZ(15,"mat-slide-toggle",6),t.qZA(),t.TgZ(16,"div",3)(17,"span",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",5),t.NdJ("change",function(s){return r.onScoreGameToggleChange(s)})("ngModelChange",function(s){return r.isScoreGameChecked=s}),t.qZA()(),t.TgZ(21,"div",3)(22,"span",4),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._UZ(25,"mat-slide-toggle",6),t.qZA(),t._UZ(26,"div",7),t.TgZ(27,"div",8)(28,"h5",9),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"div",10)(32,"button",11)(33,"mat-icon",12),t._uU(34,"keyboard_arrow_left"),t.qZA()(),t.TgZ(35,"span",13),t._uU(36,"4"),t.qZA(),t.TgZ(37,"button",14)(38,"mat-icon",15),t._uU(39,"keyboard_arrow_right"),t.qZA()()()(),t.TgZ(40,"div",16)(41,"div",17)(42,"h5",18),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",19)(46,"button",11)(47,"mat-icon",12),t._uU(48,"keyboard_arrow_left"),t.qZA()(),t.TgZ(49,"span",20),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.TgZ(52,"button",14)(53,"mat-icon",15),t._uU(54,"keyboard_arrow_right"),t.qZA()()()(),t.TgZ(55,"div",21)(56,"h5",18),t._uU(57,"Game Duration"),t.qZA(),t.TgZ(58,"div",19)(59,"button",11)(60,"mat-icon",12),t._uU(61,"keyboard_arrow_left"),t.qZA()(),t.TgZ(62,"span",22),t._uU(63),t.ALo(64,"translate"),t.qZA(),t.TgZ(65,"button",14)(66,"mat-icon",15),t._uU(67,"keyboard_arrow_right"),t.qZA()()()()(),t.TgZ(68,"div",23)(69,"div",17)(70,"h5",18),t._uU(71),t.ALo(72,"translate"),t.qZA(),t.TgZ(73,"div",24)(74,"button",25),t.NdJ("click",function(){return r.onclickPrevThm()}),t.TgZ(75,"mat-icon",12),t._uU(76,"keyboard_arrow_left"),t.qZA()(),t.TgZ(77,"span",26),t._uU(78),t.qZA(),t.TgZ(79,"button",27),t.NdJ("click",function(){return r.onclickNextThm()}),t.TgZ(80,"mat-icon",15),t._uU(81,"keyboard_arrow_right"),t.qZA()()()(),t.TgZ(82,"div",28)(83,"h5",18),t._uU(84),t.ALo(85,"translate"),t.qZA(),t.TgZ(86,"div",24)(87,"button",25),t.NdJ("click",function(){return r.onclickPrev()}),t.TgZ(88,"mat-icon",12),t._uU(89,"keyboard_arrow_left"),t.qZA()(),t.TgZ(90,"span",29),t._uU(91),t.qZA(),t.TgZ(92,"button",27),t.NdJ("click",function(){return r.onclickNext()}),t.TgZ(93,"mat-icon",15),t._uU(94,"keyboard_arrow_right"),t.qZA()()()()()()()),2&e&&(t.xp6(1),t.Q6J("ngClass",1==r.breakpoint?"p-l-10":"botmborder p-l-20"),t.xp6(2),t.Oqu(t.lcZ(4,41,"ACCOUNT.SettingTxt")),t.xp6(2),t.Q6J("ngClass",1==r.breakpoint?"p-l-10 p-r-10":"game-setting"),t.xp6(3),t.Oqu(t.lcZ(9,43,"ACCOUNT.RECEIVEEMAIL")),t.xp6(2),t.Q6J("ngModel",r.isChecked),t.xp6(3),t.Oqu(t.lcZ(14,45,"ACCOUNT.Private")),t.xp6(2),t.Q6J("checked",!0)("disabled",!0),t.xp6(3),t.hij(" ",t.lcZ(19,47,"ACCOUNT.ScoretheGame")," "),t.xp6(2),t.Q6J("ngModel",r.isScoreGameChecked),t.xp6(3),t.Oqu(t.lcZ(24,49,"ACCOUNT.Timer")),t.xp6(2),t.Q6J("checked",!0)("disabled",!0),t.xp6(4),t.hij(" ",t.lcZ(30,51,"ACCOUNT.MaxPlayers")," "),t.xp6(3),t.Q6J("disabled",!0),t.xp6(5),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("ngClass.sm","botmborder")("ngClass.xs","botmborder")("ngClass","rgtborder"),t.xp6(2),t.Oqu(t.lcZ(44,53,"ACCOUNT.TimeLimit")),t.xp6(3),t.Q6J("disabled",!0),t.xp6(4),t.hij("60 ",t.lcZ(51,55,"ACCOUNT.Seconds"),""),t.xp6(2),t.Q6J("disabled",!0),t.xp6(7),t.Q6J("disabled",!0),t.xp6(4),t.hij("24 ",t.lcZ(64,57,"ACCOUNT.Hours"),""),t.xp6(2),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("ngClass.sm","botmborder")("ngClass.xs","botmborder")("ngClass","rgtborder"),t.xp6(2),t.hij(" ",t.lcZ(72,59,"ACCOUNT.THEME")," "),t.xp6(3),t.Q6J("ngClass",t.VKq(63,lT,r.prevThmBtnDisabled))("disabled",r.prevThmBtnDisabled),t.xp6(4),t.Oqu(r.themeName),t.xp6(1),t.Q6J("ngClass",t.VKq(65,lT,r.nxtThmBtnDisabled))("disabled",r.nxtThmBtnDisabled),t.xp6(5),t.hij(" ",t.lcZ(85,61,"ACCOUNT.LANGUAGE")," "),t.xp6(3),t.Q6J("ngClass",t.VKq(67,lT,r.prevBtnDisabled))("disabled",r.prevBtnDisabled),t.xp6(4),t.Oqu(r.languageName),t.xp6(1),t.Q6J("ngClass",t.VKq(69,lT,r.nxtBtnDisabled))("disabled",r.nxtBtnDisabled))},directives:[wn,ci,ti,Ir,YO,xr,Cr,Ei,Wl,Jr],pipes:[pn],styles:[".mat-card[_ngcontent-%COMP%]{border-bottom-right-radius:25px;border-bottom-left-radius:25px}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:last-of-type{border-radius:unset!important}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{height:42px!important}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-body{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]{background-color:#6858ba!important;padding:0 20px!important}.mat-expansion-panel-header-title[_ngcontent-%COMP%], mat-expansion-panel-header[_ngcontent-%COMP%] .mat-expansion-indicator:after{color:#fff!important}.mat-grid-tile[_ngcontent-%COMP%] .mat-grid-tile-header[_ngcontent-%COMP%]{background:none!important;padding-left:0}.game-statics[_ngcontent-%COMP%] .justify-center .mat-grid-tile-content{justify-content:center!important;padding-left:0}.game-statics[_ngcontent-%COMP%] .mat-grid-tile-content{justify-content:left!important;padding-left:20px;align-items:center!important;margin:0!important}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.game-setting[_ngcontent-%COMP%]{padding:15px 20px 0}"]}),n})();function sX(n,i){1&n&&(t.TgZ(0,"h5",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"INAPPPURCHASE.PLANTITLE")))}function aX(n,i){1&n&&(t.TgZ(0,"h5",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"INAPPPURCHASE.STATUSTITLE")))}function lX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",27),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2).$implicit;return t.oxw(2).purchaseProduct(o.id,o.type)}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"INAPPPURCHASE.PURCHASEBTN")))}function cX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).refreshInAppPurchase()}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"INAPPPURCHASE.RESTOREBTN"),""))}function uX(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div",22),t._uU(2),t.qZA(),t.TgZ(3,"div",23),t._uU(4),t.qZA(),t.TgZ(5,"div")(6,"div",24),t._uU(7),t.qZA(),t.YNc(8,lX,4,3,"div",25),t.YNc(9,cX,4,3,"div",26),t.qZA()()),2&n){const e=t.oxw().$implicit,r=t.oxw(2);t.xp6(2),t.hij(" ",e.title," "),t.xp6(2),t.hij(" ",e.price," "),t.xp6(3),t.hij(" ",e.description," "),t.xp6(1),t.Q6J("ngIf","approved"!=e.state&&e.canPurchase&&!r.isPurchased),t.xp6(1),t.Q6J("ngIf","approved"==e.state||"initiated"==e.state)}}function dX(n,i){if(1&n&&(t.TgZ(0,"div",21),t.YNc(1,uX,10,5,"div",15),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e.valid&&null!=e.title)}}function hX(n,i){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,dX,2,1,"div",20),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.storeService.productList)}}function fX(n,i){1&n&&(t.TgZ(0,"div",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"INAPPPURCHASE.CHECKINTERNETMSG")," "))}function pX(n,i){if(1&n&&(t.TgZ(0,"div",28),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",e.storeService.alreadyPurchaseMsg," ")}}function gX(n,i){if(1&n&&(t.TgZ(0,"div",30)(1,"b"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.hij("",t.lcZ(3,2,"INAPPPURCHASE.EXPIRELBL"),":"),t.xp6(2),t.hij("",e.convertUTCToLocal(e.storeService.purchasedProduct.expiryDate)," ")}}function mX(n,i){if(1&n&&(t.TgZ(0,"div",8)(1,"div",9),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.YNc(5,gX,5,4,"div",29),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.lnq(" ",t.lcZ(3,4,"INAPPPURCHASE.SUBCRIBEDMSGFIRST")," ",e.storeService.purchasedProduct.productName," ",t.lcZ(4,6,"INAPPPURCHASE.SUBCRIBEDMSGSECOND")," "),t.xp6(3),t.Q6J("ngIf",e.storeService.purchasedProduct.expiryDate&&"non consumable"!=e.storeService.purchasedProduct.productType)}}function _X(n,i){if(1&n&&(t.TgZ(0,"div",8)(1,"div",9),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",9),t._uU(6),t.ALo(7,"translate"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.lnq(" ",t.lcZ(3,4,"INAPPPURCHASE.SUBCRIBEDMSGFIRST")," ",e.storeService.purchasedProduct.productName," ",t.lcZ(4,6,"INAPPPURCHASE.SUBCRIBEDMSGSECOND")," "),t.xp6(4),t.hij(" ",t.lcZ(7,8,"INAPPPURCHASE.NETWORKISSUEMSG")," ")}}function vX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().exitApp()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"INAPPPURCHASE.EXITBTN")))}function bX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().refreshInAppPurchase()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"INAPPPURCHASE.REFRESHBTN")))}function yX(n,i){1&n&&(t.TgZ(0,"button",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"INAPPPURCHASE.CANCELBTN"),""))}function xX(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"INAPPPURCHASE.RENEWMSG"),""))}var Vi;let CX=(()=>{class n{constructor(e,r,o,s,c,f,g,v){this.el=e,this.spinner=r,this.storeService=o,this.translate=s,this.ngZone=c,this.toasterService=f,this.route=g,this.loginService=v,this.updatePurchase=new t.vpe,this.isPurchased=!1,this.isFinished=!1,this.productType="",this.isAlreadyPurchased=!1,this.alreadyPurchaseMsg="",this.element=e.nativeElement,this.productList=[],this.selectProductId="",this.purchasedProduct={productName:"",expiryDate:null},this.receiptObj="",Vi=this,g.events.subscribe(T=>{T instanceof $s&&$(".modal-backdrop").remove()})}ngOnInit(){store||alert("store not available")}ngOnChanges(e){e.isExpired&&null!=e.isExpired.currentValue&&e.isExpired.currentValue&&(this.storeService.isPurchased=!1,store.refresh())}getNonConsumableProduct(){this.storeService.productList=[],this.storeService.isPurchased=!1,this.storeService.productList.push(this.getProductDetail("lifetime_adremoval_20210621")),this.getSubscribeProduct()}getSubscribeProduct(){for(var e=0;e1&&"monthly_adremoval_20210621"==this.storeService.productList[e].id?(this.storeService.productList.splice(e,1),this.storeService.productList.push(this.getProductDetail("monthly_adremoval_20210621"))):1==this.storeService.productList.length&&this.storeService.productList.push(this.getProductDetail("monthly_adremoval_20210621")),this.storeService.productList[e].owned&&!this.storeService.isAlreadyPurchased&&(this.storeService.isPurchased=!0,this.storeService.purchasedProduct.productName=this.storeService.productList[e].title),"finished"==this.storeService.productList[e].state&&(this.storeService.isFinished=!0,this.ownedProduct(this.storeService.productList[e],!1));console.log(JSON.stringify(this.storeService.productList))}getProductDetail(e){return store.get(e)}approvedProduct(e){e.verify()}purchaseProduct(e,r){this.storeService.selectProductId=e,this.storeService.productType=r,$("#confirmsPurchase").modal("show")}ownedProduct(e,r){r&&(Vi.isFinished=!1,Vi.isPurchased=!0),Vi.updatePurchase.emit(e),Vi.purchasedProduct.productName=e.title,admob.banner.remove()}refreshInAppPurchase(){store.refresh(),$("#planPopup").modal("hide")}confirmPurchase(){$("#planPopup").modal("hide"),$("#confirmsPurchase").modal("hide"),store.order(this.storeService.selectProductId).then(e=>{console.log(e)}).error(e=>{console.log(e)})}expirePurchase(e){Vi.updatePurchase.emit(e),Vi.isPurchased=!1,console.log("EXPIRED",JSON.stringify(e)),this.loginService.adShow()}closeConfirmPop(){$("#confirmsPurchase").modal("hide")}exitApp(){window.navigator.app.exitApp()}setPurchaseProduct(e){var r={userId:this.loginService.getLoggedInUser().id,deviceType:"android",product:this.receiptObj};""!=r.product&&this.storeService.setPurchase(r).subscribe(o=>{o&&o.statusType==xn.success?(this.receiptObj="",""!=this.selectProductId&&Vi.toasterService.Success(o.msg),this.selectProductId=""):Vi.toasterService.Error(o.msg)})}convertUTCToLocal(e){var r=new Date(e.replace(/-/g,"/")),o=r.getTimezoneOffset(),s=60*r.getHours()+r.getMinutes()-o;r.setHours(s/60),r.setMinutes(s%60);var f=r.toDateString().split(" ");return r.toTimeString().split(":"),f[1]+" "+f[2]+" "+r.getFullYear().toString()}receiptValidator(e,r){var o={userId:Vi.loginService.getLoggedInUser().id,product:e};Vi.storeService.receiptVerification(o).subscribe(s=>{s&&s.statusType==xn.success?(Vi.receiptObj=s.data,Vi.purchasedProduct.expiryDate=null!=Vi.receiptObj.expiredDateTime?Vi.convertUTCToLocal(Vi.receiptObj.expiredDateTime):Vi.receiptObj.expiredDateTime,Vi.receiptObj.message=s.msg,r(!0,{transaction:Vi.receiptObj})):(console.log(s),Vi.isAlreadyPurchased=null!=s.isAlreadyPurchased&&s.isAlreadyPurchased,Vi.isAlreadyPurchased&&(Vi.alreadyPurchaseMsg=s.msg),r(!1,{code:store.PURCHASE_EXPIRED,error:{message:s.msg}}))})}ngOnDestroy(){store.off(Vi.receiptValidator),store.off(Vi.approvedProduct)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(Nf),t.Y36(Wb),t.Y36(Zn),t.Y36(t.R0b),t.Y36(I),t.Y36(Ht),t.Y36(fn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-in-app-purchase"]],inputs:{isExpired:"isExpired"},outputs:{updatePurchase:"updatePurchase"},features:[t.TTD],decls:39,vars:23,consts:[["id","planPopup",1,"modal","fade","customZindex"],[1,"modal-dialog","modal-sm"],[1,"modal-content"],[1,"modal-header"],["class","modal-title",4,"ngIf"],[1,"modal-body"],["class","row",4,"ngIf"],["class","row paddingProduct border",4,"ngIf"],[1,"row"],[1,"col-xs-12","paddingProduct","center"],["mat-raised-button","","color","accent","class","marginRight",3,"click",4,"ngIf"],["mat-stroked-button","","color","accent","class","borderBtn","data-dismiss","modal",4,"ngIf"],["id","confirmsPurchase",1,"modal","fade"],[1,"modal-title",2,"font-weight","bold"],[2,"color","#FFBF00","margin-right","10px"],[4,"ngIf"],[1,"modal-footer"],["mat-stroked-button","","color","accent",3,"click"],["mat-raised-button","","color","accent",1,"m-l-10",3,"click"],[1,"modal-title"],["class","col-xs-12 paddingProduct border",4,"ngFor","ngForOf"],[1,"col-xs-12","paddingProduct","border"],[1,"col-md-8","col-xs-8","padding"],[1,"col-md-4","col-xs-4","padding"],[1,"col-md-8","col-xs-8","padding","description"],["class","col-md-4 col-xs-4 padding",4,"ngIf"],["class","col-md-4 col-xs-4 padding ",4,"ngIf"],["mat-raised-button","","color","accent",1,"f12",3,"click"],[1,"row","paddingProduct","border"],["class","col-md-12 col-xs-12 padding center",4,"ngIf"],[1,"col-md-12","col-xs-12","padding","center"],["mat-raised-button","","color","accent",1,"marginRight",3,"click"],["mat-stroked-button","","color","accent","data-dismiss","modal",1,"borderBtn"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,sX,3,3,"h5",4),t.YNc(5,aX,3,3,"h5",4),t.qZA(),t.TgZ(6,"div",5),t.YNc(7,hX,2,1,"div",6),t.YNc(8,fX,3,3,"div",7),t.YNc(9,pX,2,1,"div",7),t.YNc(10,mX,6,8,"div",6),t.YNc(11,_X,8,10,"div",6),t.TgZ(12,"div",8)(13,"div",9),t.YNc(14,vX,3,3,"button",10),t.YNc(15,bX,3,3,"button",10),t.YNc(16,yX,3,3,"button",11),t.qZA()()()()(),t.TgZ(17,"div",12)(18,"div",1)(19,"div",2)(20,"div",3)(21,"h5",13)(22,"mat-icon",14),t._uU(23,"report_problem"),t.qZA(),t._uU(24),t.ALo(25,"translate"),t.qZA()(),t.TgZ(26,"div",5)(27,"span"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"br"),t.YNc(31,xX,3,3,"span",15),t.qZA(),t.TgZ(32,"div",16)(33,"button",17),t.NdJ("click",function(){return r.closeConfirmPop()}),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"button",18),t.NdJ("click",function(){return r.confirmPurchase()}),t._uU(37),t.ALo(38,"translate"),t.qZA()()()()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",!r.storeService.isPurchased&&!r.storeService.isFinished),t.xp6(1),t.Q6J("ngIf",r.storeService.isPurchased||r.storeService.isFinished),t.xp6(2),t.Q6J("ngIf",r.storeService.productList.length>0&&r.storeService.productList[0].valid&&!r.storeService.isPurchased&&!r.storeService.isFinished&&!r.storeService.isAlreadyPurchased),t.xp6(1),t.Q6J("ngIf",r.storeService.productList.length>0&&(!r.storeService.productList[0].valid||null==r.storeService.productList[0].title)&&!r.storeService.isPurchased&&!r.storeService.isFinished),t.xp6(1),t.Q6J("ngIf",r.storeService.isAlreadyPurchased),t.xp6(1),t.Q6J("ngIf",r.storeService.isPurchased&&!r.storeService.isAlreadyPurchased&&!r.storeService.isFinished),t.xp6(1),t.Q6J("ngIf",r.storeService.isFinished),t.xp6(3),t.Q6J("ngIf",r.storeService.isFinished),t.xp6(1),t.Q6J("ngIf",!r.storeService.isFinished&&!r.storeService.isAlreadyPurchased),t.xp6(1),t.Q6J("ngIf",!r.storeService.isFinished),t.xp6(8),t.hij(" ",t.lcZ(25,15,"INAPPPURCHASE.POPUPTITLE")," "),t.xp6(4),t.hij(" ",t.lcZ(29,17,"INAPPPURCHASE.CONFIRMMSG")," "),t.xp6(3),t.Q6J("ngIf","paid subscription"==r.storeService.productType),t.xp6(3),t.hij(" ",t.lcZ(35,19,"INAPPPURCHASE.NOTXT")," "),t.xp6(3),t.hij(" ",t.lcZ(38,21,"INAPPPURCHASE.YESTXT")," "))},directives:[Gt,Vt,Di,Jr],pipes:[pn],styles:[".border[_ngcontent-%COMP%]{border-bottom:1px solid #e5e5e5}.paddingProduct[_ngcontent-%COMP%]{padding:8px 15px}.padding[_ngcontent-%COMP%]{padding:3px 0}.description[_ngcontent-%COMP%]{font-size:12px}.modal-body[_ngcontent-%COMP%]{padding:5px 15px}.subcribed[_ngcontent-%COMP%]{font-weight:600;color:green}.center[_ngcontent-%COMP%]{text-align:center}.marginRight[_ngcontent-%COMP%]{margin-right:10px}@media only screen and (max-width: 768px){.modal-dialog[_ngcontent-%COMP%]{margin-top:120px!important}}.mat-stroked-button[_ngcontent-%COMP%]{border:1px solid #ff4081}.mat-stroked-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{border-radius:25px;padding:0 25px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.f12[_ngcontent-%COMP%]{font-size:12px!important}.customZindex[_ngcontent-%COMP%]{transform:translateZ(100px)}"]}),n})();function wX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"input",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).showTechInfo()})("change",function(o){return t.CHM(e),t.oxw(2).onFileChanged(o)}),t.qZA(),t.TgZ(2,"label",13)(3,"mat-icon",14),t._uU(4,"mode_edit"),t.qZA()()()}}function TX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",5)(1,"div",6)(2,"div",7),t.YNc(3,wX,5,0,"div",8),t.TgZ(4,"div",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().showTechInfo()}),t._UZ(5,"img",10),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngIf","Gmail"!=e.loginType&&"Facebook"!=e.loginType&&"Apple"!=e.loginType),t.xp6(2),t.Q6J("src",e.accountService.profileImage?e.accountService.profileImage:"assets/images/img-user.jpg",t.LSH)}}function SX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",26)(1,"app-edit-profile",27),t.NdJ("showTechInfoData",function(){return t.CHM(e),t.oxw(2).showTechInfo()})("openSignOutDialogData",function(){return t.CHM(e),t.oxw(2).openSignOutDialog()})("editInfoData",function(){return t.CHM(e),t.oxw(2).editInfo()})("openDeleteAccountDialogData",function(){return t.CHM(e),t.oxw(2).openDeleteAccountDialog()})("cancelClickData",function(){return t.CHM(e),t.oxw(2).cancelClick()})("editSaveProfileData",function(){return t.CHM(e),t.oxw(2).editSaveProfile()})("passwordVisibilityData",function(o){return t.CHM(e),t.oxw(2).passwordVisibility(o)})("openUpgrade",function(){return t.CHM(e),t.oxw(2).openUpgradeModal()}),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("accountService",e.accountService)("accountScreenModel",e.accountScreenModel)("loginType",e.loginType)("isEdit",e.isEdit)("userModel",e.userModel)("breakpoint",e.breakpoint)("hide",e.hide)}}function DX(n,i){if(1&n&&(t.TgZ(0,"div",28),t._UZ(1,"app-game-statistics",29),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("gameStaticsAry",e.gameStaticsAry)("breakpoint",e.breakpoint)}}function EX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",30)(1,"app-game-settings",31),t.NdJ("onScoreGameToggleChangeData",function(o){return t.CHM(e),t.oxw(2).onScoreGameToggleChange(o)})("onclickPrevThmData",function(){return t.CHM(e),t.oxw(2).onclickPrevThm()})("onclickNextThmData",function(){return t.CHM(e),t.oxw(2).onclickNextThm()})("onclickPrevData",function(){return t.CHM(e),t.oxw(2).onclickPrev()})("onclickNextData",function(){return t.CHM(e),t.oxw(2).onclickNext()})("onToggleChangeData",function(o){return t.CHM(e),t.oxw(2).onToggleChange(o)}),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("isChecked",e.isChecked)("isScoreGameChecked",e.isScoreGameChecked)("prevThmBtnDisabled",e.prevThmBtnDisabled)("nxtThmBtnDisabled",e.nxtThmBtnDisabled)("prevBtnDisabled",e.prevBtnDisabled)("themeName",e.themeName)("languageName",e.languageName)("nxtBtnDisabled",e.nxtBtnDisabled)("breakpoint",e.breakpoint)}}function AX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",15)(1,"p",16)(2,"mat-button-toggle-group",17,18),t.NdJ("change",function(){t.CHM(e);const o=t.MAs(3);return t.oxw().selectedGameTab=o.value}),t.TgZ(4,"mat-button-toggle",19)(5,"span",20),t._uU(6,"person"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"mat-button-toggle",21)(10,"span",20),t._uU(11,"stacked_bar_chart"),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-button-toggle",22)(15,"span",20),t._uU(16,"settings"),t.qZA(),t._uU(17),t.ALo(18,"translate"),t.qZA()()(),t.YNc(19,SX,2,7,"div",23),t.YNc(20,DX,2,2,"div",24),t.YNc(21,EX,2,9,"div",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("value",e.selectedGameTab),t.xp6(5),t.hij(" ",t.lcZ(8,7,"ACCOUNT.PROFILETAB")," "),t.xp6(5),t.hij(" ",t.lcZ(13,9,"ACCOUNT.STATSTAB"),""),t.xp6(5),t.hij(" ",t.lcZ(18,11,"ACCOUNT.SETTINGTAB"),""),t.xp6(2),t.Q6J("ngIf","1"==e.selectedGameTab),t.xp6(1),t.Q6J("ngIf","2"==e.selectedGameTab),t.xp6(1),t.Q6J("ngIf","3"==e.selectedGameTab)}}function MX(n,i){if(1&n&&(t.TgZ(0,"div",32)(1,"div",33),t._uU(2),t.qZA(),t.TgZ(3,"div",34),t._uU(4),t.qZA(),t.TgZ(5,"div",34),t._uU(6),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij("v ",e.techInfoDetail.version,""),t.xp6(2),t.Oqu(e.techInfoDetail.buildDate),t.xp6(2),t.Oqu(e.techInfoDetail.APIURL)}}function IX(n,i){if(1&n&&(t.TgZ(0,"div",32)(1,"div",33),t._uU(2),t.qZA(),t.TgZ(3,"div",34),t._uU(4),t.qZA(),t.TgZ(5,"div",34),t._uU(6),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(2),t.hij("v ",e.techInfoDetail.version,""),t.xp6(2),t.Oqu(e.techInfoDetail.buildDate),t.xp6(2),t.Oqu(e.techInfoDetail.APIURL)}}function OX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",35)(1,"app-edit-profile",36),t.NdJ("showTechInfoData",function(){return t.CHM(e),t.oxw().showTechInfo()})("openSignOutDialogData",function(){return t.CHM(e),t.oxw().openSignOutDialog()})("editInfoData",function(){return t.CHM(e),t.oxw().editInfo()})("openDeleteAccountDialogData",function(){return t.CHM(e),t.oxw().openDeleteAccountDialog()})("cancelClickData",function(){return t.CHM(e),t.oxw().cancelClick()})("editSaveProfileData",function(){return t.CHM(e),t.oxw().editSaveProfile()})("passwordVisibilityData",function(o){return t.CHM(e),t.oxw().passwordVisibility(o)})("onFileChangedData",function(o){return t.CHM(e),t.oxw().onFileChanged(o)}),t.qZA(),t.TgZ(2,"div",37),t._UZ(3,"app-game-statistics",38),t.TgZ(4,"app-game-settings",39),t.NdJ("onScoreGameToggleChangeData",function(o){return t.CHM(e),t.oxw().onScoreGameToggleChange(o)})("onclickPrevThmData",function(){return t.CHM(e),t.oxw().onclickPrevThm()})("onclickNextThmData",function(){return t.CHM(e),t.oxw().onclickNextThm()})("onclickPrevData",function(){return t.CHM(e),t.oxw().onclickPrev()})("onclickNextData",function(){return t.CHM(e),t.oxw().onclickNext()})("onToggleChangeData",function(o){return t.CHM(e),t.oxw().onToggleChange(o)}),t.qZA()(),t.YNc(5,IX,7,3,"div",2),t.ALo(6,"json"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("accountService",e.accountService)("accountScreenModel",e.accountScreenModel)("loginType",e.loginType)("isEdit",e.isEdit)("userModel",e.userModel)("breakpoint",e.breakpoint)("hide",e.hide),t.xp6(2),t.Q6J("gameStaticsAry",e.gameStaticsAry),t.xp6(1),t.Q6J("isChecked",e.isChecked)("isScoreGameChecked",e.isScoreGameChecked)("prevThmBtnDisabled",e.prevThmBtnDisabled)("nxtThmBtnDisabled",e.nxtThmBtnDisabled)("prevBtnDisabled",e.prevBtnDisabled)("themeName",e.themeName)("languageName",e.languageName)("nxtBtnDisabled",e.nxtBtnDisabled),t.xp6(1),t.Q6J("ngIf",3==e.techInfoCount&&"{}"!=t.lcZ(6,17,e.techInfoDetail))}}function kX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-in-app-purchase",40),t.NdJ("updatePurchase",function(o){return t.CHM(e),t.oxw().afterPurchase(o)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("isExpired",e.accountScreenModel.isExpired)}}var fu;let PX=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M,R,K,fe){this.changePasswordService=e,this.router=r,this.translate=o,this.ngZone=s,this.storeService=c,this.accountService=f,this.toasterService=g,this.loginService=v,this.runningGameService=T,this.messagingService=D,this.dialog=M,this.newGameService=R,this.breakpointObserver=K,this.activateRoute=fe,this.show=!0,this.userModel=new Gw,this.isOpenModal=!1,this.languageName="English",this.langIndex=0,this.themeName="",this.isEdit=!1,this.hide=!0,this.newPassword="",this.selectedGameTab="1",this.logoutModel=new aK,this.accountScreenModel=new WO,this.editScreenModel=new WO,this.uploadImageModel=new lK,fu=this,this.themes=[],this.languages=[],this.techInfoCount=0,this.techInfoDetail={},this.gameStaticsAry=[],this.gameStaticsSections=[],this.prevBtnDisabled=!1,this.prevThmBtnDisabled=!1,this.nxtBtnDisabled=!1,this.nxtThmBtnDisabled=!1,fe.queryParams.subscribe(Me=>{fu.selectedGameTab=null!=Me.tabValue?Me.tabValue:"1"})}ngOnInit(){var e,o,s,c;this.breakpointObserver.observe([ri_HandsetLandscape,ri_HandsetPortrait,ri_TabletLandscape,ri_TabletPortrait]).subscribe(e=>{this.breakpoint=e.matches?1:0}),this.changeLanguage(),zt.dV.isNativePlatform()&&setTimeout(()=>{this.loginService.pulltoRefresh("accountContent","/account")},1e3),this.loginService.prevoiusUrl="/account",fu=this,this.loginService.prevoiusUrl="/account",window.fbAsyncInit=function(){FB.init({appId:"794509850909472",cookie:!0,xfbml:!0,version:"v3.1"}),FB.AppEvents.logPageView()},o="facebook-jssdk",c=(e=document).getElementsByTagName("script")[0],e.getElementById(o)||((s=e.createElement("script")).id=o,s.src="https://connect.facebook.net/en_US/sdk.js",c.parentNode.insertBefore(s,c)),this.getTheme(!1),this.techInfo()}changeLanguage(){this.translate.get("ACCOUNT").subscribe(e=>{this.accountTranObj=e,this.gamesText=this.accountTranObj.GAME,this.soloText=this.accountTranObj.SOLO,this.wordsText=this.accountTranObj.WORDS})}getLanguageList(e){this.accountService.getLanguages({userId:e}).subscribe(r=>{"success"==r.statusType?(this.languages=r.data,this.selectedLanguage=null!=window.localStorage.getItem(ce.language)&&""!=window.localStorage.getItem(ce.language)?window.localStorage.getItem(ce.language):this.accountScreenModel.code,this.langIndex=this.languages.findIndex((o,s)=>o.code===this.selectedLanguage),this.languageName=this.languages[this.langIndex].name,0==this.langIndex?this.prevBtnDisabled=!0:this.langIndex==this.languages.length-1&&(this.nxtBtnDisabled=!0)):this.toasterService.Error(r.msg,"Error")})}onFileChanged(e){for(var r=e.target.files[0],o=new FileReader,s=[".jpg",".jpeg",".png"],c=r.name.substring(r.name.lastIndexOf(".")),f=!1,g=0;g{r.size>3e6?this.dialog.open(fK,{panelClass:"mini-modal",disableClose:!0}).afterClosed().subscribe(M=>{null!=M&&"Save"===M.event&&this.setProfileImageData(e,o),null!=M&&"Cancel"===M.event&&$("#imageUpload").val("")}):this.setProfileImageData(e,o)},o.readAsDataURL(r)):this.toasterService.Error("Sorry, "+c+" is invalid, allowed extensions are: "+s.join(", "),"Error")}setProfileImageData(e,r){var o=JSON.parse(window.localStorage.getItem(ce.userProfile));this.uploadImageModel.userId=o.id,this.uploadImageModel.type=e.target.files[0].type,this.uploadImageModel.base64=r.result,this.accountService.uploadProfileImage(this.uploadImageModel).subscribe(s=>{if(s&&s.statusType==xn.success){this.accountService.profileImage=s.profileImage;var c=JSON.parse(window.localStorage.getItem(ce.userProfile));c.profileImage=s.profileImage,window.localStorage.setItem("editProfileNotificaton","false"),window.localStorage.setItem(ce.userProfile,JSON.stringify(c))}else this.accountService.profileImage="",this.toasterService.Error("Profile image is not uploaded.","Error")})}logout(){return(0,Ti.mG)(this,void 0,void 0,function*(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.logoutModel.loginToken=e.apiToken,this.accountService.birthDate="";var r=this.messagingService.getUUID(),o={userId:e.id,deviceId:r,firebaseToken:window.localStorage.getItem("firebaseToken")};this.changePasswordService.removeFCMDeviceId(o).subscribe(s=>{}),this.newGameService.playGameSource=null,this.newGameService.gamePlayersObj=null,"Gmail"==e.loginType?(window.localStorage.clear(),zt.dV.isNativePlatform()&&(yield Pf.signOut()),this.loginService.getBrowserLang(""),fu.router.navigate(["/login"])):"Facebook"==e.loginType?(zt.dV.isNativePlatform()&&(yield Am.logout()),window.localStorage.clear(),this.loginService.getBrowserLang(""),fu.router.navigate(["/login"])):this.changePasswordService.signOut(this.logoutModel).subscribe(s=>{s&&s.statusType==xn.success&&(window.localStorage.clear(),this.loginService.getBrowserLang(""),fu.router.navigate(["/login"]))}),$("#confirmsignout").modal("hide")})}onToggleChange(e){var r=e.checked?0:1,o={isUnsubscribe:r,encEmail:btoa(this.accountScreenModel.email)};this.loginService.emailUnsubscribed(o).subscribe(s=>{if("success"==s.statusType){var c=JSON.parse(localStorage.getItem(ce.userProfile));c.isUnsubscribe=r.toString(),window.localStorage.setItem(ce.userProfile,JSON.stringify(c)),this.toasterService.Success(s.msg,"Success!")}else this.toasterService.Error(s.msg,"Error")})}onScoreGameToggleChange(e){var r=e.checked?0:1,o=JSON.parse(window.localStorage.getItem(ce.userProfile));this.newGameService.updateScoreTheGame({isGameforFun:r,userId:o.id}).subscribe(c=>{if("success"==c.statusType){var f=JSON.parse(localStorage.getItem(ce.userProfile));f.isGameforFun=r.toString(),window.localStorage.setItem(ce.userProfile,JSON.stringify(f)),this.toasterService.Success(c.msg,"Success!")}else this.toasterService.Error(c.msg,"Error")})}getTheme(e){this.accountService.getThemeType({themeId:"",userId:this.loginService.getLoggedInUser().id}).subscribe(r=>{"success"==r.statusType?(this.themes=r.data,e&&(this.selectedTheme="0",setTimeout(()=>{this.ngZone.run(()=>{this.selectedTheme=this.loginService.getLoggedInUser().themeId,this.themeIndex=this.themes.findIndex((o,s)=>o.themeId===this.selectedTheme),this.themeName=this.themes[this.themeIndex].themeName})},100)),this.getAccountDetails()):this.toasterService.Error(r.msg,"Error")})}getAccountDetails(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.loginType=e.loginType,this.accountService.getAccountDetail({userId:e.id}).subscribe(o=>{o&&o.statusType==xn.success?(this.selectedTheme=o.userDetail.themeId,this.themeIndex=this.themes.findIndex((s,c)=>s.themeId===this.selectedTheme),this.themeName=this.themes[this.themeIndex].themeName,0==this.themeIndex?this.prevThmBtnDisabled=!0:this.themeIndex==this.themes.length-1&&(this.nxtThmBtnDisabled=!0),this.accountScreenModel.email=o.userDetail.email,this.accountScreenModel.address=o.userDetail.address,this.accountScreenModel.coins=o.userDetail.coins,this.accountScreenModel.totalGamesPlayed=o.userDetail.totalGamesPlayed,this.accountScreenModel.playwFriendsGamePlayedCount=o.userDetail.playwFriendsGamePlayedCount,this.accountScreenModel.competewFriendsGamePlayedCount=o.userDetail.competewFriendsGamePlayedCount,this.accountScreenModel.competewFriendsGameWonCount=o.userDetail.competewFriendsGameWonCount,this.accountScreenModel.competewFriendsGameLostCount=o.userDetail.competewFriendsGameLostCount,this.accountScreenModel.competewFriendsTotalPoints=o.userDetail.competewFriendsTotalPoints,this.accountScreenModel.playSoloGamePlayedCount=o.userDetail.playSoloGamePlayedCount,this.accountScreenModel.competeSoloGamePlayedCount=o.userDetail.competeSoloGamePlayedCount,this.accountScreenModel.competeSoloTotalPoints=o.userDetail.competeSoloTotalPoints,this.accountScreenModel.uniqueWords=o.userDetail.uniqueWords,this.accountScreenModel.totalWords=o.userDetail.totalWords,this.accountScreenModel.maxWordScore=o.userDetail.maxWordScore,this.accountScreenModel.avgWordScore=o.userDetail.avgWordScore,this.accountScreenModel.maxWordLength=o.userDetail.maxWordLength,this.accountScreenModel.avgWordLength=o.userDetail.avgWordLength,this.accountScreenModel.age=o.userDetail.age,this.accountScreenModel.fullname=o.userDetail.fullname,this.accountScreenModel.userName=o.userDetail.userName,this.accountScreenModel.id=o.userDetail.id,this.accountService.profileImage=o.userDetail.profileImage,this.accountScreenModel.isUnsubscribe=o.userDetail.isUnsubscribe,this.privacyPolicyLink=o.userDetail.privacyPolicyLink,this.accountScreenModel.code=o.userDetail.code,this.loginService.getBrowserLang(o.userDetail.code),window.localStorage.setItem(ce.language,o.userDetail.code),e.code=o.userDetail.code,e.isGameforFun=o.userDetail.isGameforFun,e.themeId=this.selectedTheme,window.localStorage.setItem(ce.userProfile,JSON.stringify(e)),this.getLanguageList(e.id),this.isChecked=1!=o.userDetail.isUnsubscribe,this.isScoreGameChecked=1!=o.userDetail.isGameforFun,this.gameStaticsSections=[this.gamesText,this.soloText,this.wordsText],this.gameStaticsAry=[{key:this.gamesText,value:[{columnDef:"ACCOUNT.GAMEPLAYED",columnValue:o.userDetail.totalGamesPlayed},{columnDef:"ACCOUNT.PLAYWITHFRIGAME",columnValue:o.userDetail.playwFriendsGamePlayedCount},{columnDef:"ACCOUNT.COMPETEWITHFRIGAME",columnValue:o.userDetail.competewFriendsGamePlayedCount},{columnDef:"ACCOUNT.WON",columnValue:o.userDetail.competewFriendsGameWonCount},{columnDef:"ACCOUNT.LOST",columnValue:o.userDetail.competewFriendsGameLostCount},{columnDef:"ACCOUNT.WITHFRIPOINTS",columnValue:o.userDetail.competewFriendsTotalPoints}]},{key:this.soloText,value:[{columnDef:"ACCOUNT.PLAYSOLOPLAYED",columnValue:o.userDetail.playSoloGamePlayedCount},{columnDef:"ACCOUNT.COMPETESOLOPLAYED",columnValue:o.userDetail.competeSoloGamePlayedCount},{columnDef:"ACCOUNT.SOLOPOINTS",columnValue:o.userDetail.competeSoloTotalPoints}]},{key:this.wordsText,value:[{columnDef:"ACCOUNT.WORDS",columnValue:o.userDetail.totalWords},{columnDef:"ACCOUNT.UNIQUEWORDS",columnValue:o.userDetail.uniqueWords},{columnDef:"ACCOUNT.MAXWORDSCORE",columnValue:o.userDetail.maxWordScore},{columnDef:"ACCOUNT.AVGWORDSCORE",columnValue:o.userDetail.avgWordScore},{columnDef:"ACCOUNT.MAXWORDLENGTH",columnValue:o.userDetail.maxWordLength},{columnDef:"ACCOUNT.AVGWORDLENGTH",columnValue:o.userDetail.avgWordLength}]}]):this.toasterService.Error(o.msg,"Error")})}selectTheme(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.accountService.updateTheme({userId:e.id,themeId:this.selectedTheme}).subscribe(o=>{"success"==o.statusType?(e.themeId=this.selectedTheme,window.localStorage.setItem(ce.userProfile,JSON.stringify(e))):this.toasterService.Error(o.msg,"Error")})}selectLanguage(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.accountService.updateLanguage({email:e.email,code:this.selectedLanguage,languageId:this.selectedLanguageId,userId:e.id}).subscribe(o=>{"success"==o.statusType?(this.loginService.getBrowserLang(this.selectedLanguage),this.getTheme(!0),this.changeLanguage(),this.techInfo(),window.localStorage.setItem(ce.language,this.selectedLanguage),e.code=this.selectedLanguage,window.localStorage.setItem(ce.userProfile,JSON.stringify(e))):this.toasterService.Error(o.msg,"Error")})}showTechInfo(){3!=this.techInfoCount&&this.techInfoCount++}cancelClick(){this.isEdit=!1}techInfo(){this.techInfoDetail.version=ce.version,this.techInfoDetail.buildDate=this.convertUTCToLocal(ce.buildTimestamp),this.techInfoDetail.APIURL=ce.apiEndPoint}convertUTCToLocal(e){var r=new Date(e),o=r.getTimezoneOffset(),s=60*r.getHours()+r.getMinutes()-o;r.setHours(s/60),r.setMinutes(s%60);var f=r.toLocaleString(window.localStorage.getItem(ce.language),{month:"short",day:"2-digit"}).split(" ");return r.toTimeString().split(":"),f[0]+" "+f[1]+" "+r.getFullYear().toString()}onclickPrev(){this.nxtBtnDisabled=!1,0!==this.langIndex&&(this.prevBtnDisabled=!1,this.langIndex--,this.languageName=this.languages[this.langIndex].name,this.selectedLanguage=this.languages[this.langIndex].code,this.selectedLanguageId=this.languages[this.langIndex].languageId,this.selectLanguage()),0==this.langIndex&&(this.prevBtnDisabled=!0)}onclickNext(){this.prevBtnDisabled=!1,this.langIndex!==this.languages.length-1&&(this.nxtBtnDisabled=!1,this.langIndex++,this.languageName=this.languages[this.langIndex].name,this.selectedLanguage=this.languages[this.langIndex].code,this.selectedLanguageId=this.languages[this.langIndex].languageId,this.selectLanguage()),this.langIndex==this.languages.length-1&&(this.nxtBtnDisabled=!0)}onclickPrevThm(){this.nxtThmBtnDisabled=!1,0!==this.themeIndex&&(this.prevThmBtnDisabled=!1,this.themeIndex--,this.themeName=this.themes[this.themeIndex].themeName,this.selectedTheme=this.themes[this.themeIndex].themeId,this.selectTheme()),0==this.themeIndex&&(this.prevThmBtnDisabled=!0)}onclickNextThm(){this.prevThmBtnDisabled=!1,this.themeIndex!==this.themes.length-1&&(this.nxtThmBtnDisabled=!1,this.themeIndex++,this.themeName=this.themes[this.themeIndex].themeName,this.selectedTheme=this.themes[this.themeIndex].themeId,this.selectTheme()),this.themeIndex==this.themes.length-1&&(this.nxtThmBtnDisabled=!0)}openSignOutDialog(){this.dialog.open(cK,{panelClass:"mini-modal"}).afterClosed().subscribe(r=>{null!=r&&"logout"===r.event&&this.logout()})}openDeleteAccountDialog(){this.dialog.open(hK,{panelClass:"mini-modal"}).afterClosed().subscribe(r=>{null!=r&&"delete"===r.event&&this.deleteAccount()})}deleteAccount(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.accountService.deleteAccount({userId:e.id}).subscribe(o=>{this.logout()})}editInfo(){this.isEdit=!0,this.userModel.nameFirst=this.loginService.getLoggedInUser().nameFirst,this.userModel.nameLast=this.loginService.getLoggedInUser().nameLast,this.userModel.userName=this.loginService.getLoggedInUser().userName,this.userModel.email=this.loginService.getLoggedInUser().email,this.userModel.address=this.loginService.getLoggedInUser().address,this.userModel.city=this.loginService.getLoggedInUser().city,this.userModel.zipCode=this.loginService.getLoggedInUser().zipCode,this.userModel.id=this.loginService.getLoggedInUser().id,this.userModel.password="********",this.hide=!0}passwordVisibility(e){1==e?(this.hide=!1,"********"==this.userModel.password&&(this.userModel.password="")):this.hide=!0}editSaveProfile(){"********"==this.userModel.password||""==this.userModel.password?(this.userModel.password="",this.saveData()):this.dialog.open(dK,{data:{newPassword:this.userModel.password},panelClass:"mini-modal"}).afterClosed().subscribe(r=>{null!=r&&"confirm"===r.event?this.saveData():this.isEdit=!0})}saveData(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));if(0==/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this.userModel.email))return this.toasterService.Error("Email must be valid","Error"),!1;this.accountService.edituserdata(this.userModel).subscribe(o=>{o&&o.statusType==xn.success?(e.city=o.user.city,e.email=o.user.email,e.nameFirst=o.user.nameFirst,e.nameLast=o.user.nameLast,e.userName=o.user.userName,e.address=o.user.addresss,e.zipCode=o.user.zipCode,window.localStorage.setItem(ce.userProfile,JSON.stringify(e)),this.toasterService.Success(o.msg,"Success!"),this.accountScreenModel.email=o.user.email,this.accountScreenModel.address=o.user.addresss,this.accountScreenModel.fullname=o.user.nameFirst+" "+o.user.nameLast,this.accountScreenModel.userName=o.user.userName,this.isEdit=!1):this.toasterService.Error(o.msg,"Error")})}openUpgradeModal(){$("#planPopup").modal("show")}afterPurchase(e){var r=JSON.parse(window.localStorage.getItem(ce.userProfile));console.log(e),this.isOpenModal=!1,null!=e&&this.ngZone.run(()=>{fu.accountScreenModel.isPlanSubscribed=e.owned,fu.accountScreenModel.isExpired=!e.owned,fu.accountScreenModel.expiredDateTime=e.transaction.expiredDateTime,e.owned&&(r.isPlanSubscribed=1,r.isExpired=0,window.localStorage.setItem(ce.userProfile,JSON.stringify(r)))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ql),t.Y36(Ht),t.Y36(Zn),t.Y36(t.R0b),t.Y36(Wb),t.Y36(Es),t.Y36(I),t.Y36(fn),t.Y36(Ka),t.Y36(Wm),t.Y36(l),t.Y36(bo),t.Y36(ec),t.Y36(mr))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-account"]],decls:6,vars:7,consts:[["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","0.5%","fxLayoutAlign","center","class","custom-grid","id","accountContent",4,"ngIf"],["class","main-content","style","border: solid rgb(207,\n 204, 204) 1px;",4,"ngIf"],["class","text-center m-t-15",4,"ngIf"],["class","bg-container",4,"ngIf"],[3,"isExpired","updatePurchase",4,"ngIf"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","0.5%","fxLayoutAlign","center","id","accountContent",1,"custom-grid"],["fxLayout","row","fxFlex","15%","fxFlexAlign","end center",1,""],[1,"avatar-upload"],["class","avatar-edit",4,"ngIf"],[1,"avatar-preview",3,"click"],["id","imagePreview","referrerpolicy","no-referrer",3,"src"],[1,"avatar-edit"],["type","file","id","imageUpload",3,"click","change"],["for","imageUpload"],["color","accent","aria-hidden","false","aria-label","Example home icon",1,"mat-custom-icon"],[1,"main-content",2,"border","solid rgb(207,\n 204, 204) 1px"],["id","runningGamePullDown",1,"alignCenter",2,"padding","20px 20px 0\n 20px","display","flex"],["appearance","legacy","name","accountTab","aria-label","Font Style",1,"tab",3,"value","change"],["group","matButtonToggleGroup"],["value","1",2,"width","100%"],[1,"material-icons"],["value","2",2,"width","100%"],["value","3",2,"width","100%"],["class","bg-sub-container edit-profile-section","style","padding-top:0 !important",4,"ngIf"],["class","bg-sub-container game-statistics-section","style","padding-top:0 !important",4,"ngIf"],["class","bg-sub-container game-settings-section","style","padding-top:0 !important",4,"ngIf"],[1,"bg-sub-container","edit-profile-section",2,"padding-top","0 !important"],[3,"accountService","accountScreenModel","loginType","isEdit","userModel","breakpoint","hide","showTechInfoData","openSignOutDialogData","editInfoData","openDeleteAccountDialogData","cancelClickData","editSaveProfileData","passwordVisibilityData","openUpgrade"],[1,"bg-sub-container","game-statistics-section",2,"padding-top","0 !important"],[3,"gameStaticsAry","breakpoint"],[1,"bg-sub-container","game-settings-section",2,"padding-top","0 !important"],[1,"game-settings","internalMatGrid",3,"isChecked","isScoreGameChecked","prevThmBtnDisabled","nxtThmBtnDisabled","prevBtnDisabled","themeName","languageName","nxtBtnDisabled","breakpoint","onScoreGameToggleChangeData","onclickPrevThmData","onclickNextThmData","onclickPrevData","onclickNextData","onToggleChangeData"],[1,"text-center","m-t-15"],[1,"custom-content"],[1,"sm-font"],[1,"bg-container"],[1,"edit-profile-section",3,"accountService","accountScreenModel","loginType","isEdit","userModel","breakpoint","hide","showTechInfoData","openSignOutDialogData","editInfoData","openDeleteAccountDialogData","cancelClickData","editSaveProfileData","passwordVisibilityData","onFileChangedData"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","1.5%"],["fxFlex","50%",3,"gameStaticsAry"],["fxFlex","50%",1,"game-settings","internalMatGrid",3,"isChecked","isScoreGameChecked","prevThmBtnDisabled","nxtThmBtnDisabled","prevBtnDisabled","themeName","languageName","nxtBtnDisabled","onScoreGameToggleChangeData","onclickPrevThmData","onclickNextThmData","onclickPrevData","onclickNextData","onToggleChangeData"],[3,"isExpired","updatePurchase"]],template:function(e,r){1&e&&(t.YNc(0,TX,6,2,"div",0),t.YNc(1,AX,22,13,"div",1),t.YNc(2,MX,7,3,"div",2),t.ALo(3,"json"),t.YNc(4,OX,7,19,"div",3),t.YNc(5,kX,1,1,"app-in-app-purchase",4)),2&e&&(t.Q6J("ngIf",1==r.breakpoint),t.xp6(1),t.Q6J("ngIf",1==r.breakpoint),t.xp6(1),t.Q6J("ngIf",1==r.breakpoint&&3==r.techInfoCount&&"{}"!=t.lcZ(3,5,r.techInfoDetail)),t.xp6(2),t.Q6J("ngIf",0==r.breakpoint),t.xp6(1),t.Q6J("ngIf",r.loginService.isNative))},directives:[Gt,ti,qo,Ir,Ei,Wl,Jr,qb,zb,jK,WK,oX,CX],pipes:[pn,yh],styles:['.sm-font[_ngcontent-%COMP%]{font-size:12px}.internalMatGrid[_ngcontent-%COMP%]{background-color:#fff;border-radius:25px;margin-top:15px;height:-moz-fit-content;height:fit-content}.m-r-15[_ngcontent-%COMP%]{margin-right:15px!important}.avatar-upload[_ngcontent-%COMP%]{position:relative;margin:5px auto;height:100px}.avatar-edit[_ngcontent-%COMP%]{float:right;position:absolute;right:2px;z-index:1;bottom:-10px}.avatar-edit[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.avatar-edit[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:30px;height:30px;margin-bottom:0;border-radius:100%;background:#FFFFFF;border:1px solid #6858ba;box-shadow:0 2px 4px #0000001f;cursor:pointer;font-weight:400;transition:all .2s ease-in-out}.avatar-edit[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:hover{background:#f1f1f1;border-color:#d6d6d6}.mat-custom-icon[_ngcontent-%COMP%]{font-size:18px;position:absolute;top:7px;left:0;right:0;text-align:center;margin:auto}.avatar-preview[_ngcontent-%COMP%]{width:100px;height:100px;position:relative;border-radius:100%;border:1px solid #d4cbff;box-shadow:0 2px 4px #0000001a}.avatar-preview[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:100%;background-size:cover;background-repeat:no-repeat;background-position:center}.m-l-5[_ngcontent-%COMP%]{margin-left:5px!important}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-b-0[_ngcontent-%COMP%]{margin-bottom:0}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px!important}.p-r-0[_ngcontent-%COMP%]{padding-right:0}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-0[_ngcontent-%COMP%]{padding-left:0}.mat-icon-button[_ngcontent-%COMP%]{width:10px}.font14[_ngcontent-%COMP%]{font-size:14px}.cursor[_ngcontent-%COMP%]{cursor:pointer}.wrap-input[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;border-radius:20px}.input[_ngcontent-%COMP%]{font-family:Segoe UI Bold;font-size:16px;color:#4b2354;line-height:50px;display:block;width:100%;height:50px;background:transparent;padding:0 20px 0 23px}.focus-input[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;border-radius:20px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);transition:all .4s}.input[_ngcontent-%COMP%]:focus + .focus-input[_ngcontent-%COMP%]{box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.validate-input[_ngcontent-%COMP%]{position:relative}.alert-validate[_ngcontent-%COMP%] .focus-input[_ngcontent-%COMP%]{box-shadow:0 5px 30px #347ab81a;-moz-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-webkit-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-o-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-ms-box-shadow:0 5px 30px 0px rgba(52,122,184,.1)}.alert-validate[_ngcontent-%COMP%]:before{content:attr(data-validate);display:flex;align-items:center;position:absolute;width:100%;min-height:62px;background-color:#fff;border-radius:20px;top:0;left:0;padding:0 45px 0 22px;pointer-events:none;font-family:Segoe UI Bold;font-size:16px;color:#fa4251;line-height:1.2}.btn-hide-validate[_ngcontent-%COMP%]{font-family:Material-Design-Iconic-Font;font-size:15px;color:#fa4251;cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;height:62px;top:0;right:23px}.rs1-alert-validate.alert-validate[_ngcontent-%COMP%]:before{background-color:#fff}.true-validate[_ngcontent-%COMP%]:after{content:"\\f269";font-family:Material-Design-Iconic-Font;font-size:15px;color:#57b846;display:flex;align-items:center;justify-content:center;position:absolute;height:62px;top:0;right:23px}.wrap-register[_ngcontent-%COMP%]{width:720px;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.row-striped[_ngcontent-%COMP%]{background-color:#e7e3fc}.bg-sub-container[_ngcontent-%COMP%]{padding:0}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-flex{background-color:#fff;padding:.75em 0 0 .75em}mat-form-field.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix{font-size:14px}.edit-profile-section[_ngcontent-%COMP%] .mat-form-field .mat-form-field-flex, .game-statistics-section[_ngcontent-%COMP%] .mat-form-field .mat-form-field-flex, .game-settings-section[_ngcontent-%COMP%] .mat-form-field .mat-form-field-flex{background-color:unset!important;padding:0 .75em!important;border-radius:30px}.tab[_ngcontent-%COMP%]{border-radius:17px;margin-top:10px;width:86vw} .mat-button-toggle-label-content{font-size:14px;padding:0 10px!important}.custom-grid[_ngcontent-%COMP%]{padding:130px 15px 15px}@media screen and (max-width: 959px){.main-content[_ngcontent-%COMP%]{margin-top:10px}.custom-grid[_ngcontent-%COMP%]{padding:15px}}@media screen and (max-width: 320px){ .mat-button-toggle-label-content{font-size:14px;padding:0 5px!important}}.delete-hover[_ngcontent-%COMP%]:hover{background:rgb(246 2 2 / 31%)}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#6758ba!important;color:#fff!important}.mat-button-toggle[_ngcontent-%COMP%]{background-color:#f3f0ff;color:#9397ae}']}),n})();class NX{constructor(){this.currentPassword="",this.newPassword=""}}function RX(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CHANGEPW.CURRENTPWINVALID")))}function FX(n,i){if(1&n&&(t.TgZ(0,"div",20),t.YNc(1,RX,3,3,"div",21),t.qZA()),2&n){t.oxw();const e=t.MAs(14);t.xp6(1),t.Q6J("ngIf",e.errors.required)}}function LX(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CHANGEPW.NEWPWINVALID")))}function BX(n,i){if(1&n&&(t.TgZ(0,"div",20),t.YNc(1,LX,3,3,"div",21),t.qZA()),2&n){t.oxw();const e=t.MAs(24);t.xp6(1),t.Q6J("ngIf",e.errors.required)}}function GX(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CHANGEPW.CONFIRMPWINVALID")))}function UX(n,i){if(1&n&&(t.TgZ(0,"div",20),t.YNc(1,GX,3,3,"div",21),t.qZA()),2&n){t.oxw();const e=t.MAs(34);t.xp6(1),t.Q6J("ngIf",e.errors.required)}}const JO=function(n){return{"is-invalid":n}},HX=function(){return["/account"]};var v6;let jX=(()=>{class n{constructor(e,r,o,s,c){this._router=e,this.toasterService=r,this.translate=o,this.changePasswordService=s,this.loginService=c,this.changePasswordModel=new NX,this.confirmPassword="",v6=this}ngOnInit(){this.translate.get("RESETPASSWORD").subscribe(e=>{this.changePWTranslate=e}),this.loginService.prevoiusUrl="/changePassword"}changePassword(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));if(this.changePasswordModel.userId=e.id,this.changePasswordModel.email=e.email,this.changePasswordModel.currentPassword.length>0&&this.changePasswordModel.newPassword.length>0&&this.confirmPassword.length>0){if(this.changePasswordModel.newPassword.length<8)return void this.toasterService.Error(this.changePWTranslate.INVALIDPW,"Error");if(this.changePasswordModel.newPassword!=this.confirmPassword)return void this.toasterService.Error(this.changePWTranslate.PWMUSTMATCH,"Error");this.changePasswordService.changePassword(this.changePasswordModel).subscribe(r=>{r&&r.statusType==xn.success?(this.toasterService.Success(r.msg,"Success"),window.localStorage.clear(),this.loginService.getBrowserLang(""),v6._router.navigate(["/login"])):this.toasterService.Error(r.msg,"Error")})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht),t.Y36(I),t.Y36(Zn),t.Y36(ql),t.Y36(fn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-change-password"]],decls:45,vars:44,consts:[[1,"container"],["name","form","novalidate","",1,"changepwd-form","validate-form"],["f","ngForm"],[1,"row"],[1,"col-lg-12"],[1,"form-group"],["data-validate","Enter current password",1,"wrap-input","requiredField","validate-input"],["type","password","name","txtcurrentPwd","trim","","required","",1,"form-control",3,"ngModel","placeholder","ngClass","ngModelChange"],["currentPassword","ngModel"],[1,"focus-input"],["class","invalid-feedback",4,"ngIf"],["data-validate","Enter new password",1,"wrap-input","requiredField","validate-input"],["type","password","name","txtnewPwd","trim","","required","",1,"form-control",3,"ngModel","placeholder","ngClass","ngModelChange"],["newPassword","ngModel"],["data-validate","Enter confirm password",1,"wrap-input","requiredField","validate-input"],["type","password","name","txtconfirmPwd","trim","","required","",1,"form-control",3,"ngModel","placeholder","ngClass","ngModelChange"],["confirmPwd","ngModel"],[1,"container-editprofile-form-btn","p-b-30"],[1,"btn","btn-maroon",3,"click"],[1,"btn","btn-maroon","m-l-10",3,"routerLink"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(e,r){if(1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3)(4,"div",4)(5,"h2"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",5)(9,"div",6)(10,"label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"input",7,8),t.NdJ("ngModelChange",function(s){return r.changePasswordModel.currentPassword=s}),t.ALo(15,"translate"),t.qZA(),t._UZ(16,"span",9),t.qZA(),t.YNc(17,FX,2,1,"div",10),t.qZA(),t.TgZ(18,"div",5)(19,"div",11)(20,"label"),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"input",12,13),t.NdJ("ngModelChange",function(s){return r.changePasswordModel.newPassword=s}),t.ALo(25,"translate"),t.qZA(),t._UZ(26,"span",9),t.qZA(),t.YNc(27,BX,2,1,"div",10),t.qZA(),t.TgZ(28,"div",5)(29,"div",14)(30,"label"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t.TgZ(33,"input",15,16),t.NdJ("ngModelChange",function(s){return r.confirmPassword=s}),t.ALo(35,"translate"),t.qZA(),t._UZ(36,"span",9),t.qZA(),t.YNc(37,UX,2,1,"div",10),t.qZA(),t.TgZ(38,"div",17)(39,"button",18),t.NdJ("click",function(){return r.changePassword()}),t._uU(40),t.ALo(41,"translate"),t.qZA(),t.TgZ(42,"button",19),t._uU(43),t.ALo(44,"translate"),t.qZA()()()()()()),2&e){const o=t.MAs(2),s=t.MAs(14),c=t.MAs(24),f=t.MAs(34);t.xp6(6),t.Oqu(t.lcZ(7,19,"CHANGEPW.CHANGEPWTITLE")),t.xp6(5),t.Oqu(t.lcZ(12,21,"CHANGEPW.CURRENTPWLBL")),t.xp6(2),t.s9C("placeholder",t.lcZ(15,23,"CHANGEPW.CURRENTPWPLACE")),t.Q6J("ngModel",r.changePasswordModel.currentPassword)("ngClass",t.VKq(37,JO,o.submitted&&s.invalid)),t.xp6(4),t.Q6J("ngIf",o.submitted&&s.invalid),t.xp6(4),t.Oqu(t.lcZ(22,25,"CHANGEPW.NEWPWLBL")),t.xp6(2),t.s9C("placeholder",t.lcZ(25,27,"CHANGEPW.NEWPWPLACE")),t.Q6J("ngModel",r.changePasswordModel.newPassword)("ngClass",t.VKq(39,JO,o.submitted&&c.invalid)),t.xp6(4),t.Q6J("ngIf",o.submitted&&c.invalid),t.xp6(4),t.Oqu(t.lcZ(32,29,"CHANGEPW.CONFIRMPWLBL")),t.xp6(2),t.s9C("placeholder",t.lcZ(35,31,"CHANGEPW.CONFIRMPWPLACE")),t.Q6J("ngModel",r.confirmPassword)("ngClass",t.VKq(41,JO,o.submitted&&f.invalid)),t.xp6(4),t.Q6J("ngIf",o.submitted&&f.invalid),t.xp6(3),t.Oqu(t.lcZ(41,33,"CHANGEPW.SUBMITBTN")),t.xp6(2),t.Q6J("routerLink",t.DdM(43,HX)),t.xp6(1),t.hij(" ",t.lcZ(44,35,"CHANGEPW.CANCELBTN")," ")}},directives:[Hd,Ud,Ja,Xl,Kt,jd,xr,Cr,wn,ci,Gt,ea],pipes:[pn],styles:[".m-l-10[_ngcontent-%COMP%]{margin-left:10px}.invalid-feedback[_ngcontent-%COMP%]{font-size:14px;color:red}"]}),n})(),Ms=(()=>{class n{constructor(e){this.router=e}canActivate(e,r){var o=JSON.parse(localStorage.getItem("LLFUserProfile"));return!(!localStorage.getItem("LLFUserProfile")||"5"==o.signUpType||"4"==o.signUpType)||(this.router.navigate(["/login"]),!1)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ht))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();class VX{constructor(){this.onGoingGames=[],this.finishedGames=[]}}function ZX(n,i){1&n&&(t.TgZ(0,"h3",5)(1,"strong"),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"RUNNING.ONGOINGTXT")))}function WX(n,i){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function qX(n,i){if(1&n&&(t.ynx(0),t.YNc(1,WX,2,2,"mat-option",9),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf","4"==e.id||"5"==e.id||"1"==e.id)}}function zX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"mat-select",7),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().ongoingSelectedFilter=o})("selectionChange",function(){t.CHM(e);const o=t.oxw();return o.filterBySelection(o.ongoingSelectedFilter,1,0,!0)}),t.YNc(2,qX,2,1,"ng-container",8),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.ongoingSelectedFilter),t.xp6(1),t.Q6J("ngForOf",e.filterOptions)}}function $X(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE("",e.gameScore?e.gameScore:0," ",t.lcZ(2,2,"RUNNING.POINTS")," ")}}function YX(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"RUNNING.NOWPLAYING")))}function JX(n,i){1&n&&(t.TgZ(0,"div",29)(1,"mat-icon",30),t._uU(2,"circle"),t.qZA()())}function QX(n,i){if(1&n&&(t.TgZ(0,"div",21)(1,"div",22),t._UZ(2,"img",23),t.qZA(),t.TgZ(3,"div",24)(4,"div",25)(5,"div",26),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",26),t.YNc(9,$X,3,4,"span",27),t.YNc(10,YX,3,3,"span",27),t.qZA()()(),t.YNc(11,JX,3,0,"div",28),t.qZA()),2&n){const e=i.$implicit,r=t.oxw(3);t.xp6(2),t.s9C("src",null!=e&&e.profile_image?e.profile_image:"assets/images/img-user.jpg",t.LSH),t.xp6(3),t.Q6J("className",3==e.strikeCount?"playernamesize-alignment text-darkgray strikethroughtxt":"1"==e.isTurn&&e.joinCountCheck?"playernamesize-alignment text-underline faa-flash animated":"playernamesize-alignment"),t.xp6(1),t.Oqu(t.lcZ(7,7,0==e.isActive?"RUNNING.DELETEDPLAYER":""!=e.userName?e.userName:e.firstName)),t.xp6(2),t.Q6J("className",3==e.strikeCount?"scoresize-alignment text-darkgray strikethroughtxt":"1"==e.isTurn&&e.joinCountCheck?"scoresize-alignment text-underline faa-flash animated":"scoresize-alignment"),t.xp6(1),t.Q6J("ngIf","1"!=e.isGameforFun&&("1"!=e.isTurn||"1"==e.isTurn&&e.id==r.loginUserID)),t.xp6(1),t.Q6J("ngIf","1"==e.isTurn&&e.id!=r.loginUserID),t.xp6(1),t.Q6J("ngIf","1"==e.isTurn)}}function KX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().index;return t.oxw(2).startPlayGame(o)}),t.TgZ(1,"strong"),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"RUNNING.PLAYBTN")))}function XX(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(),s=o.$implicit,c=o.index,f=t.oxw(2);return 0==s[0].status&&s[0].gameCreatedBy==f.loginUserID?f.goToStartGame(c):f.joinGame(c)}),t.TgZ(1,"strong"),t._uU(2),t.ALo(3,"translate"),t.qZA()()}if(2&n){const e=t.oxw().$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e[0].isLoggedInUserExists||1==e[0].isLoggedinUserviagamecode?"RUNNING.VIEWBTN":"RUNNING.ACCEPTINVITE"))}}function eee(n,i){if(1&n&&(t.TgZ(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",16),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"div",17),t.YNc(10,QX,12,9,"div",18),t.qZA(),t.TgZ(11,"div",19),t.YNc(12,KX,4,3,"button",20),t.YNc(13,XX,4,3,"button",20),t.qZA()()),2&n){const e=i.$implicit,r=t.oxw(2);t.xp6(4),t.AsE("",t.lcZ(5,7,"RUNNING.STARTED"),": ",r.convertUTCToLocal(e[0].createdDateTime),""),t.xp6(3),t.AsE("",t.lcZ(8,9,"RUNNING.LAST"),": ",r.convertUTCToLocal(e[0].updatedDateTime),""),t.xp6(3),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngIf",e[0].loggedInUserTurn),t.xp6(1),t.Q6J("ngIf",!e[0].loggedInUserTurn)}}function tee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("scrolled",function(){return t.CHM(e),t.oxw().onScrollOngoingGame(1)}),t.YNc(1,eee,14,11,"div",12),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("infiniteScrollDistance",1)("infiniteScrollThrottle",10)("scrollWindow",!1)("infiniteScrollUpDistance",1.5),t.xp6(1),t.Q6J("ngForOf",e.runningGames.onGoingGames)}}const nee=function(){return["/newGame"]};function iee(n,i){1&n&&(t.TgZ(0,"div",32)(1,"h2",33),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"h4",34)(5,"a",35),t._uU(6),t.ALo(7,"translate"),t.qZA()()()),2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"RUNNING.GAMENOTCREATEMSG")),t.xp6(3),t.Q6J("routerLink",t.DdM(7,nee)),t.xp6(1),t.Oqu(t.lcZ(7,5,"RUNNING.CREATELINK")))}var Jb;let ree=(()=>{class n{constructor(e,r,o,s,c,f,g){this.translate=e,this.runningGameService=r,this._newGameService=o,this.loginService=s,this._router=c,this.toasterService=f,this.websocketService=g,this.filter=new t.vpe,this.onScrollOngoing=new t.vpe,this.ongoingSelectedFilter=1,Jb=this}ngOnInit(){this.translate.get("RUNNING").subscribe(e=>{this.runningGameTranObj=e})}filterBySelection(e,r,o,s){this.filter.emit({sortById:e,gameType:r,lastIndex:o,isFromFilter:s})}convertUTCToLocal(e){var r=new Date(e),o=r.getTimezoneOffset(),s=60*r.getHours()+r.getMinutes()-o;r.setHours(s/60),r.setMinutes(s%60);var f=r.toLocaleString(window.localStorage.getItem(ce.language),{month:"short",day:"2-digit"}).split(" "),v=r.toTimeString().split(":");return f[0]+" "+f[1]+", '"+r.getFullYear().toString().substring(4,2)+" @ "+v[0]+":"+v[1]}onScrollOngoingGame(e){this.onScrollOngoing.emit(e)}startPlayGame(e){this.resumeGame(e)}resumeGame(e){var r;r=this.runningGames.onGoingGames[e],JSON.parse(window.localStorage.getItem(ce.userProfile)),this.websocketService.initSocket(r[0].gameCode),window.localStorage.setItem(ce.gameId,r[0].gameCode),this._router.navigate(["/playGame"])}goToStartGame(e){let r=[];this.loggedInUser=this.loginService.getLoggedInUser(),r=this.runningGames.onGoingGames[e],this.runningGameService.gamePlayersList({gameCode:r[0].gameCode,userId:this.loggedInUser.id}).subscribe(s=>{s&&s.statusType==xn.success?(this._newGameService.setGamePlayerData(s.data),window.localStorage.setItem(ce.gameId,s.data.gameCode),this.websocketService.initSocket(s.data.gameCode),this._router.navigate(["/newGame"])):this.toasterService.Error(s.msg,"Error")})}joinGame(e){this.loggedInUser=this.loginService.getLoggedInUser();var r=this.runningGames.onGoingGames[e],o={gameCode:r[0].gameCode,userId:this.loggedInUser.id};Jb.websocketService.initSocket(r[0].gameCode),this.runningGameService.joinGame(o).subscribe(s=>{s&&s.statusType==xn.success?!s.isAlreadyJoined||s.isAlreadyStarted?(this._newGameService.gamePlayersObj=s.data,Jb.websocketService.messages.next({msg:{data:s.data,type:"creategame"}}),Jb._router.navigate(["/newGame"])):0==s.data.length?(window.localStorage.setItem(ce.gameId,r[0].gameCode),this._newGameService.playGameSource=null,this._router.navigate(["/playGame"])):(this._newGameService.gamePlayersObj=s.data,Jb._router.navigate(["/newGame"])):this.toasterService.Error(s.msg,"Error")})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Zn),t.Y36(Ka),t.Y36(bo),t.Y36(fn),t.Y36(Ht),t.Y36(I),t.Y36(tc))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-ongoing-game"]],inputs:{filterOptions:"filterOptions",runningGames:"runningGames",breakpoint:"breakpoint",loginUserID:"loginUserID"},outputs:{filter:"filter",onScrollOngoing:"onScrollOngoing"},decls:5,vars:4,consts:[["fxLayout","row wrap"],["fxFlex","63%","fxFlex.xs","100%","style","color: black",4,"ngIf"],["fxFlex","35%","fxFlex.xs","100%","appearance","fill",4,"ngIf"],["class","main-scroll","infinite-scroll","","style","font-weight:600",3,"infiniteScrollDistance","infiniteScrollThrottle","scrollWindow","infiniteScrollUpDistance","scrolled",4,"ngIf"],["fxLayoutAlign","center center","style","height: 50vh;","fxLayout","column",4,"ngIf"],["fxFlex","63%","fxFlex.xs","100%",2,"color","black"],["fxFlex","35%","fxFlex.xs","100%","appearance","fill"],["id","ongoingFilterDD","name","onGoingdd","form-control","","name","type",3,"ngModel","ngModelChange","selectionChange"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"],[3,"value"],["infinite-scroll","",1,"main-scroll",2,"font-weight","600",3,"infiniteScrollDistance","infiniteScrollThrottle","scrollWindow","infiniteScrollUpDistance","scrolled"],["class","gameCard m-t-15",4,"ngFor","ngForOf"],[1,"gameCard","m-t-15"],[1,"botmborder"],["ngClass.xs","f12","fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutAlign","space-between start","fxLayoutGap","5px",1,"date-info"],[1,""],[1,"player-info"],["class","m-b-10","fxLayout","row",4,"ngFor","ngForOf"],[1,"buttonPlay"],["mat-button","","color","accent",3,"click",4,"ngIf"],["fxLayout","row",1,"m-b-10"],["fxFlex","10%","fxFlex.xs","14%",2,"padding-right","50px"],["alt","","referrerpolicy","no-referrer",1,"sm-img",3,"src"],["fxFlex","88%","fxFlex.xs","84%","fxFlexAlign","center"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-between end","fxLayoutAlign.xs","space-between start"],["fxFlexAlign","center","fxFlexAlign.xs","start",3,"className"],[4,"ngIf"],["fxFlex","2%","fxFlexAlign","center","fxFlexAlign.xs","start",4,"ngIf"],["fxFlex","2%","fxFlexAlign","center","fxFlexAlign.xs","start"],[2,"font-size","14px","vertical-align","middle","color","#57b846","height","18px","width","18px","padding-left","8px"],["mat-button","","color","accent",3,"click"],["fxLayoutAlign","center center","fxLayout","column",2,"height","50vh"],[1,"running-game-h2"],[1,"text-center"],[3,"routerLink"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t.YNc(1,ZX,4,3,"h3",1),t.YNc(2,zX,3,2,"mat-form-field",2),t.qZA(),t.YNc(3,tee,2,5,"div",3),t.YNc(4,iee,8,8,"div",4)),2&e&&(t.xp6(1),t.Q6J("ngIf",0==r.breakpoint),t.xp6(1),t.Q6J("ngIf",0==r.breakpoint),t.xp6(1),t.Q6J("ngIf",r.runningGames.onGoingGames.length>0),t.xp6(1),t.Q6J("ngIf",0==r.runningGames.onGoingGames.length))},directives:[ti,Gt,Ei,cu,Hb,xr,Cr,Vt,Mf,SO,ci,Ir,qo,Wl,Jr,Di,ds],pipes:[pn],styles:[".main-scroll[_ngcontent-%COMP%]{height:420px;overflow-y:scroll}.main-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px;height:115px}.main-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.main-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:none}.gameCard[_ngcontent-%COMP%]{border-radius:20px;border:solid rgb(207,204,204) 1px;margin-right:8px}.date-info[_ngcontent-%COMP%]{padding:10px 20px}.f12[_ngcontent-%COMP%]{font-size:12px!important}.player-info[_ngcontent-%COMP%]{padding:10px 20px 0}.playernamesize-alignment[_ngcontent-%COMP%]{font-size:16px!important;text-align:left!important;width:auto;vertical-align:middle;word-wrap:break-word;word-break:break-word}.strikethroughtxt[_ngcontent-%COMP%]{text-decoration:line-through}.text-underline[_ngcontent-%COMP%]{text-decoration:underline}.scoresize-alignment[_ngcontent-%COMP%]{font-size:14px!important;text-align:center!important;vertical-align:inherit!important}.buttonPlay[_ngcontent-%COMP%]{text-align:center;border-top:1px solid #ddd;font-size:18px}.running-game[_ngcontent-%COMP%]{margin-bottom:10%!important;margin-top:10%!important}.running-game-h2[_ngcontent-%COMP%]{text-align:center;color:#ff4081}"]}),n})();function oee(n,i){1&n&&(t.TgZ(0,"h3",5)(1,"strong"),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"RUNNING.FINISHEDTXT")))}function see(n,i){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function aee(n,i){if(1&n&&(t.ynx(0),t.YNc(1,see,2,2,"mat-option",9),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf","4"!=e.id&&"5"!=e.id)}}function lee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"mat-select",7),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selectedFilter=o})("selectionChange",function(){t.CHM(e);const o=t.oxw();return o.filterBySelection(o.selectedFilter,2,0,!0)}),t.YNc(2,aee,2,1,"ng-container",8),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.selectedFilter),t.xp6(1),t.Q6J("ngForOf",e.filterOptions)}}function cee(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.AsE("",e.gameScore?e.gameScore:0," ",t.lcZ(2,2,"RUNNING.POINTS")," ")}}function uee(n,i){if(1&n&&(t.TgZ(0,"div",21)(1,"div",22),t._UZ(2,"img",23),t.qZA(),t.TgZ(3,"div",24)(4,"div",25)(5,"div",26),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",27),t.YNc(9,cee,3,4,"span",28),t.qZA()()()()),2&n){const e=i.$implicit;t.xp6(2),t.s9C("src",null!=e&&e.profile_image?e.profile_image:"assets/images/img-user.jpg",t.LSH),t.xp6(4),t.Oqu(t.lcZ(7,3,0==e.isActive?"RUNNING.DELETEDPLAYER":""!=e.userName?e.userName:e.firstName)),t.xp6(3),t.Q6J("ngIf","1"!=e.isGameforFun)}}function dee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",16),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"div",17),t.YNc(10,uee,10,5,"div",18),t.qZA(),t.TgZ(11,"div",19)(12,"button",20),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).createGame("1"==s[0].isGameforFun,s)}),t.TgZ(13,"strong"),t._uU(14),t.ALo(15,"translate"),t.qZA()()()()}if(2&n){const e=i.$implicit,r=t.oxw(2);t.xp6(4),t.AsE("",t.lcZ(5,6,"RUNNING.STARTED"),": ",r.convertUTCToLocal(e[0].createdDateTime),""),t.xp6(3),t.AsE("",t.lcZ(8,8,"RUNNING.LAST"),": ",r.convertUTCToLocal(e[0].updatedDateTime),""),t.xp6(3),t.Q6J("ngForOf",e),t.xp6(4),t.Oqu(t.lcZ(15,10,"RUNNING.REPLAYBTN"))}}function hee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("scrolled",function(){return t.CHM(e),t.oxw().onScrollFinishedGame(2)}),t.YNc(1,dee,16,12,"div",12),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("infiniteScrollDistance",1)("infiniteScrollThrottle",10)("scrollWindow",!1)("infiniteScrollUpDistance",1.5),t.xp6(1),t.Q6J("ngForOf",e.runningGames.finishedGames)}}function fee(n,i){1&n&&(t.TgZ(0,"div",29)(1,"h2",30),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"RUNNING.NODATA")))}let pee=(()=>{class n{constructor(e,r,o){this._newGameService=e,this._router=r,this.websocketService=o,this.filter=new t.vpe,this.onScrollOngoing=new t.vpe,this.selectedFilter=1,this.playGame=new t_,this.userGameObj=new n_}ngOnInit(){}filterBySelection(e,r,o,s){this.filter.emit({sortById:e,gameType:r,lastIndex:o,isFromFilter:s})}convertUTCToLocal(e){var r=new Date(e),o=r.getTimezoneOffset(),s=60*r.getHours()+r.getMinutes()-o;r.setHours(s/60),r.setMinutes(s%60);var f=r.toLocaleString(window.localStorage.getItem(ce.language),{month:"short",day:"2-digit"}).split(" "),v=r.toTimeString().split(":");return f[0]+" "+f[1]+", '"+r.getFullYear().toString().substring(4,2)+" @ "+v[0]+":"+v[1]}createGame(e,r){var o=JSON.parse(window.localStorage.getItem(ce.userProfile));this.playGame.isGameActive=!0,this.playGame.isReplayGame=!0,this.playGame.gameCreatedBy=o.id,this.playGame.userGames=[];let s=1;this.playGame.isNewSolo=1==r[0].isNewSolo,null!=o&&null!=o&&(this.userGameObj.gameId=0,this.userGameObj.userId=o.id,this.userGameObj.userLastWord="",this.userGameObj.isTurn="1",this.userGameObj.gameScore=0,this.userGameObj.turnSequenceNo=s,this.userGameObj.updatedDateTime="",this.userGameObj.userType=o.loginType,this.userGameObj.email=o.email,this.userGameObj.firstName=o.nameFirst,this.userGameObj.lastName=o.nameLast,this.userGameObj.userName=o.userName,this.userGameObj.ImgUrl=o.profileImage,this.playGame.userGames.push(this.userGameObj));var c=["Web","Gmail","Facebook","Apple","Invite","Unregistered"];for(let f=0;f{this._newGameService.setGamePlayerData(f.data),this.websocketService.initSocket(f.data.gameCode),window.localStorage.setItem(ce.gameId,f.gameCode),this._router.navigate(["/newGame"])})}makeCode(e){for(var r="",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length,c=0;c0),t.xp6(1),t.Q6J("ngIf",0==r.runningGames.finishedGames.length))},directives:[ti,Gt,Ei,cu,Hb,xr,Cr,Vt,Mf,SO,ci,Ir,qo,Wl,Di],pipes:[pn],styles:[".main-scroll[_ngcontent-%COMP%]{height:420px;overflow-y:scroll}.main-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px;height:115px}.main-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.main-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:none}.gameCard[_ngcontent-%COMP%]{border-radius:20px;border:solid rgb(207,204,204) 1px;margin-right:8px}.date-info[_ngcontent-%COMP%]{padding:10px 20px}.f12[_ngcontent-%COMP%]{font-size:12px!important}.player-info[_ngcontent-%COMP%]{padding:10px 20px 0}.buttonPlay[_ngcontent-%COMP%]{text-align:center;border-top:1px solid #ddd;font-size:18px}.running-game-h2[_ngcontent-%COMP%]{text-align:center;color:#ff4081}.username-text[_ngcontent-%COMP%]{word-wrap:break-word;word-break:break-word}"]}),n})();function gee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",5)(1,"div",6)(2,"app-ongoing-game",7),t.NdJ("onScrollOngoing",function(o){return t.CHM(e),t.oxw(2).onScrollOngoingGame(o)})("filter",function(o){return t.CHM(e),t.oxw(2).filterBySelection(o)}),t.qZA()(),t.TgZ(3,"div",8)(4,"app-finished-game",9),t.NdJ("onScrollOngoing",function(o){return t.CHM(e),t.oxw(2).onScrollFinishedGame(o)})("filter",function(o){return t.CHM(e),t.oxw(2).filterBySelection(o)}),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("filterOptions",e.filterOptions)("breakpoint",e.breakpoint)("runningGames",e.runningGames)("loginUserID",e.loginUserID),t.xp6(2),t.Q6J("filterOptions",e.filterOptions)("breakpoint",e.breakpoint)("runningGames",e.runningGames)}}const mee=function(){return["/newGame"]};function _ee(n,i){1&n&&(t.TgZ(0,"div",10)(1,"div",11)(2,"h2",12),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"h4",13)(6,"a",14),t._uU(7),t.ALo(8,"translate"),t.qZA()()()()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,3,"RUNNING.GAMENOTCREATEMSG")),t.xp6(3),t.Q6J("routerLink",t.DdM(7,mee)),t.xp6(1),t.Oqu(t.lcZ(8,5,"RUNNING.CREATELINK")))}function vee(n,i){if(1&n&&(t.TgZ(0,"div",2),t.YNc(1,gee,5,7,"div",3),t.YNc(2,_ee,9,8,"div",4),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.runningGames.onGoingGames.length>0||e.runningGames.finishedGames.length>0),t.xp6(1),t.Q6J("ngIf",0==e.runningGames.onGoingGames.length&&0==e.runningGames.finishedGames.length)}}function bee(n,i){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function yee(n,i){if(1&n&&(t.ynx(0),t.YNc(1,bee,2,2,"mat-option",27),t.BQk()),2&n){const e=i.$implicit,r=t.oxw(2);t.xp6(1),t.Q6J("ngIf","1"==r.selectedGameTab&&("4"==e.id||"5"==e.id||"1"==e.id)||"2"==r.selectedGameTab&&"4"!=e.id&&"5"!=e.id)}}function xee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",29)(1,"app-ongoing-game",7),t.NdJ("onScrollOngoing",function(o){return t.CHM(e),t.oxw(2).onScrollOngoingGame(o)})("filter",function(o){return t.CHM(e),t.oxw(2).filterBySelection(o)}),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("filterOptions",e.filterOptions)("breakpoint",e.breakpoint)("runningGames",e.runningGames)("loginUserID",e.loginUserID)}}function Cee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",30)(1,"app-finished-game",9),t.NdJ("onScrollOngoing",function(o){return t.CHM(e),t.oxw(2).onScrollFinishedGame(o)})("filter",function(o){return t.CHM(e),t.oxw(2).filterBySelection(o)}),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("filterOptions",e.filterOptions)("breakpoint",e.breakpoint)("runningGames",e.runningGames)}}function wee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",15)(1,"p",16)(2,"mat-button-toggle-group",17,18),t.NdJ("change",function(){t.CHM(e);const o=t.MAs(3);return t.oxw().commonFilterForMobile(o.value,!1)}),t.TgZ(4,"mat-button-toggle",19),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"mat-button-toggle",20),t._uU(8),t.ALo(9,"translate"),t.qZA()()(),t.TgZ(10,"div",21)(11,"mat-form-field",22)(12,"mat-select",23),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().commonFilter=o})("selectionChange",function(){t.CHM(e);const o=t.oxw();return o.commonFilterForMobile(o.selectedGameTab,!0)}),t.YNc(13,yee,2,1,"ng-container",24),t.qZA()()(),t.YNc(14,xee,2,4,"div",25),t.YNc(15,Cee,2,3,"div",26),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("value",e.selectedGameTab),t.xp6(3),t.hij(" ",t.lcZ(6,7,"RUNNING.ONGOINGTXT"),""),t.xp6(3),t.hij(" ",t.lcZ(9,9,"RUNNING.FINISHEDTXT"),""),t.xp6(4),t.Q6J("ngModel",e.commonFilter),t.xp6(1),t.Q6J("ngForOf",e.filterOptions),t.xp6(1),t.Q6J("ngIf","1"==e.selectedGameTab),t.xp6(1),t.Q6J("ngIf","2"==e.selectedGameTab)}}var b6;let Tee=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D){this._newGameService=e,this.runningGameService=r,this.websocketService=o,this._router=s,this.loginService=c,this.translate=f,this.toasterService=g,this.breakpointObserver=v,this.activateRoute=T,this.leaderboardService=D,b6=this,this.runningGames=new VX,this.joinCountCheck=!1,this.playGame=new t_,this.userGameObj=new n_,this.startGameResponse=new t_,this.selectedFilter=1,this.ongoingSelectedFilter=1,this.commonFilter=1,this.resultPerPage=10,this.subscribeOnGoingProfiles=[],this.subscribeOnGoingProfilePic="",this.subscribeFinishedProfiles=[],this.subscribeFinishedProfilePic="",T.queryParams.subscribe(M=>{console.log(M),b6.selectedGameTab=null!=M.tabValue?M.tabValue:"1"}),this.filterOptions=[{id:1,name:"All"},{id:2,name:"Start Time Desc"},{id:3,name:"Start Time Asc"},{id:4,name:"Active Game Asc"},{id:5,name:"Active Game Desc"},{id:6,name:"Last Played Time Asc"},{id:7,name:"Last Played Time Desc"}]}ngOnInit(){if(this.breakpointObserver.observe([ri_HandsetLandscape,ri_HandsetPortrait,ri_TabletLandscape,ri_TabletPortrait]).subscribe(o=>{this.breakpoint=o.matches?1:0}),this.loginService.prevoiusUrl="/runningGame",this.loginService.sockets.length>0)for(var e in this.loginService.sockets)this.loginService.sockets[e].close();this.loginService.sockets=[],this.translate.get("RUNNING").subscribe(o=>{this.runningGameTranObj=o,this.filterOptions=[{id:1,name:this.runningGameTranObj.ALL},{id:2,name:this.runningGameTranObj.STARTTIMEDESC},{id:3,name:this.runningGameTranObj.STARTTIMEASC},{id:4,name:this.runningGameTranObj.GAMEASC},{id:5,name:this.runningGameTranObj.GAMEDESC},{id:6,name:this.runningGameTranObj.LASTPLAYTIMEASC},{id:7,name:this.runningGameTranObj.LASTPLAYTIMEDESC}]}),this.filterBySelection({sortById:1,gameType:3,lastIndex:0,isFromFilter:!1}),zt.dV.isNativePlatform()&&setTimeout(()=>{this.loginService.pulltoRefresh("runningGamePullDown","/runningGame")},700)}checkJoinCount(e,r){var o=0;r.forEach((s,c)=>{"1"==s.joinGame&&o++}),r.forEach((s,c)=>{s.joinCountCheck=o>1})}onScrollOngoingGame(e){this.filterBySelection({sortById:this.ongoingSelectedFilter,gameType:e,lastIndex:this.runningGames.onGoingGames.length,isFromFilter:!1})}onScrollFinishedGame(e){this.filterBySelection({sortById:this.selectedFilter,gameType:e,lastIndex:this.runningGames.finishedGames.length,isFromFilter:!1})}commonFilterForMobile(e,r=!1){r||(this.commonFilter=1);var o={sortById:this.commonFilter,gameType:e,lastIndex:0,isFromFilter:!0};this.selectedGameTab=e,this.filterBySelection(o)}filterBySelection(e){var r=e.sortById,o=e.gameType,s=e.lastIndex,c=!!e.isFromFilter&&e.isFromFilter,f=JSON.parse(window.localStorage.getItem(ce.userProfile));this.loginUserID=f.id;var g={userId:f.id,gameArrayType:o,lastIndex:s,resultPerPage:this.resultPerPage,sortById:r};this.subscribeOnGoingProfiles&&this.subscribeOnGoingProfiles.length>0&&this.subscribeOnGoingProfiles.forEach(v=>{v.unsubscribe()}),this.subscribeFinishedProfiles&&this.subscribeFinishedProfiles.length>0&&this.subscribeFinishedProfiles.forEach(v=>{v.unsubscribe()}),this.runnungGameApi=this.runningGameService.getRunningGames(g).subscribe(v=>{v&&v.statusType==xn.success?(this.loginService.getBrowserLang(v.data.code),window.localStorage.setItem(ce.language,v.data.code),f.code=v.data.code,window.localStorage.setItem(ce.userProfile,JSON.stringify(f)),v.data.onGoingGames.forEach(T=>{const D=T.map(M=>M.id);T[0].isLoggedInUserExists=!1,D.includes(this.loginUserID)&&(T[0].isLoggedInUserExists=!0),T.forEach(M=>{M.createdDateTime=new Date(M.createdDateTime.replace(/-/g,"/")),M.updatedDateTime=new Date(M.updatedDateTime.replace(/-/g,"/")),M.ugUpdate=new Date(M.ugUpdate.replace(/-/g,"/"))})}),v.data.finishedGames.forEach(T=>{T.forEach(D=>{D.createdDateTime=null!=D.createdDateTime?new Date(D.createdDateTime.replace(/-/g,"/")):D.createdDateTime,D.updatedDateTime=null!=D.updatedDateTime?new Date(D.updatedDateTime.replace(/-/g,"/")):D.updatedDateTime,D.ugUpdate=null!=D.ugUpdate?new Date(D.ugUpdate.replace(/-/g,"/")):D.ugUpdate})}),this.runningGames.onGoingGames=c&&1==o?v.data.onGoingGames:0!=this.runningGames.onGoingGames.length?this.runningGames.onGoingGames.concat(v.data.onGoingGames):v.data.onGoingGames,this.runningGames.finishedGames=c&&2==o?v.data.finishedGames:0!=this.runningGames.finishedGames.length?this.runningGames.finishedGames.concat(v.data.finishedGames):v.data.finishedGames):(this.runningGames.onGoingGames=[],this.runningGames.finishedGames=[]),v.data.onGoingGames.length>0&&this.setImagesInOnGoingGames(),v.data.finishedGames.length>0&&this.setImagesInFinishedGames()})}convertUTCToLocal(e){var r=new Date(e),o=r.getTimezoneOffset(),s=60*r.getHours()+r.getMinutes()-o;r.setHours(s/60),r.setMinutes(s%60);var f=r.toLocaleString(window.localStorage.getItem(ce.language),{month:"short",day:"2-digit"}).split(" "),v=r.toTimeString().split(":");return f[0]+" "+f[1]+", '"+r.getFullYear().toString().substring(4,2)+" @ "+v[0]+":"+v[1]}makeCode(e){for(var r="",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length,c=0;c{o.map((c,f)=>{""!=c.profile_image&&null!=c.profile_image&&"assets/images/img-user.jpg"!=c.profile_image||(e.subscribeFinishedProfilePic=e.leaderboardService.getProfilePicture({id:r.id,profileImageId:c.id}).subscribe(v=>{v?c.profile_image=null!=v.data.profile_image&&""!=v.data.profile_image?v.data.profile_image:"assets/images/img-user.jpg":(c.profile_image="",console.log("Image cant load"))},v=>{c.profile_image=""}),e.subscribeFinishedProfiles.push(e.subscribeFinishedProfilePic))})})}setImagesInOnGoingGames(){var e=this,r=JSON.parse(window.localStorage.getItem(ce.userProfile));this.runningGames.onGoingGames.map((o,s)=>{o.map((c,f)=>{""!=c.profile_image&&null!=c.profile_image&&"assets/images/img-user.jpg"!=c.profile_image||(e.subscribeOnGoingProfilePic=e.leaderboardService.getProfilePicture({id:r.id,profileImageId:c.id}).subscribe(v=>{v?c.profile_image=null!=v.data.profile_image&&""!=v.data.profile_image?v.data.profile_image:"assets/images/img-user.jpg":(c.profile_image="",console.log("Image cant load"))},v=>{c.profile_image=""}),e.subscribeOnGoingProfiles.push(e.subscribeOnGoingProfilePic))})})}ngOnDestroy(){this.runnungGameApi&&this.runnungGameApi.unsubscribe(),this.subscribeOnGoingProfiles&&this.subscribeOnGoingProfiles.length>0&&this.subscribeOnGoingProfiles.forEach(e=>{e.unsubscribe()}),this.subscribeFinishedProfiles&&this.subscribeFinishedProfiles.length>0&&this.subscribeFinishedProfiles.forEach(e=>{e.unsubscribe()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bo),t.Y36(Ka),t.Y36(tc),t.Y36(Ht),t.Y36(fn),t.Y36(Zn),t.Y36(I),t.Y36(ec),t.Y36(mr),t.Y36($m))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-running-game"]],decls:2,vars:2,consts:[["class","bg-container",4,"ngIf"],["class","bgColor","style","border: solid rgb(207, 204, 204) 1px;",4,"ngIf"],[1,"bg-container"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","1.5%",4,"ngIf"],["class","bg-sub-container",4,"ngIf"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","1.5%"],["fxFlex","50%",1,"bg-sub-container","on-going-game"],[3,"filterOptions","breakpoint","runningGames","loginUserID","onScrollOngoing","filter"],["fxFlex","50%",1,"bg-sub-container","finished-game"],[3,"filterOptions","breakpoint","runningGames","onScrollOngoing","filter"],[1,"bg-sub-container"],[1,"running-game"],[1,"running-game-h2"],[1,"text-center"],[3,"routerLink"],[1,"bgColor",2,"border","solid rgb(207, 204, 204) 1px"],["id","runningGamePullDown","id","runningGamePullDown",1,"alignCenter",2,"padding","20px 20px 0 20px","display","flex"],["appearance","legacy","name","accountTab","aria-label","Font Style",1,"tab",3,"value","change"],["group","matButtonToggleGroup"],["value","1",2,"width","100%"],["value","2",2,"width","100%"],["fxLayout","row",1,"common-filter",2,"padding","0 20px"],["fxFlex.xs","100%","fxFlex.sm","100%","fxFlex.md","100%","appearance","fill"],["id","filterDD","name","dd","form-control","","name","type",3,"ngModel","ngModelChange","selectionChange"],[4,"ngFor","ngForOf"],["class","bg-sub-container on-going-game","style","padding-top:0 !important",4,"ngIf"],["class","bg-sub-container finished-game","style","padding-top:0 !important",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"bg-sub-container","on-going-game",2,"padding-top","0 !important"],[1,"bg-sub-container","finished-game",2,"padding-top","0 !important"]],template:function(e,r){1&e&&(t.YNc(0,vee,3,2,"div",0),t.YNc(1,wee,16,11,"div",1)),2&e&&(t.Q6J("ngIf",0==r.breakpoint),t.xp6(1),t.Q6J("ngIf",1==r.breakpoint))},directives:[Gt,ti,qo,Ei,ree,pee,ds,qb,zb,cu,Hb,xr,Cr,Vt,Mf],pipes:[pn],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer!important}.running-game.h3[_ngcontent-%COMP%], .running-game[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;margin-bottom:10px}.running-game.h2[_ngcontent-%COMP%], .running-game[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:20px!important}.running-game.h4[_ngcontent-%COMP%], .running-game[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;font-weight:400;line-height:20px;margin-top:0!important;margin-bottom:10px!important}.running-game.h6[_ngcontent-%COMP%], .running-game[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#999;font-size:14px;line-height:20px;margin-top:0!important;margin-bottom:5px!important}.running-game[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#af001f;margin-bottom:0}.running-game[_ngcontent-%COMP%]{margin-bottom:10%!important;margin-top:10%!important}.running-game-h2[_ngcontent-%COMP%]{text-align:center;color:#ff4081}.table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{border:none!important}.playernamesize-alignment[_ngcontent-%COMP%]{font-size:16px!important;text-align:left!important;width:36%;vertical-align:middle}.scoresize-alignment[_ngcontent-%COMP%]{font-size:14px!important;text-align:center!important;vertical-align:inherit!important}.game_datetime[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;text-align:left!important;line-height:2.5}.game_startedalignment[_ngcontent-%COMP%]{padding-right:0;text-align:left}.game_lastalignment[_ngcontent-%COMP%]{padding-left:0;text-align:right}.game_btnwidth[_ngcontent-%COMP%]{width:40%}.td_width[_ngcontent-%COMP%]{width:40%;padding:0 5px}.panel-body[_ngcontent-%COMP%]{padding:5px!important}.text-bold[_ngcontent-%COMP%]{font-weight:700}.strikethroughtxt[_ngcontent-%COMP%]{text-decoration:line-through}.text-underline[_ngcontent-%COMP%]{text-decoration:underline}.btn-maroon[_ngcontent-%COMP%]{float:right}.internalPaddingDD[_ngcontent-%COMP%]{padding:6px 12px}@media screen and (max-width: 1200px){.internalPaddingDD[_ngcontent-%COMP%]{padding:0}}@media screen and (max-width: 991px){.internalPaddingDD[_ngcontent-%COMP%]{padding:6px 12px}}@media screen and (max-width: 418px){.game_btnwidth[_ngcontent-%COMP%]{width:100%}.game_datetime[_ngcontent-%COMP%]{font-size:10px!important}}.filterRightAlign[_ngcontent-%COMP%]{float:right;padding:10px}.ddSetDispaly[_ngcontent-%COMP%]{display:contents}.gameCard[_ngcontent-%COMP%]{border-radius:20px;border:solid rgb(207,204,204) 1px;margin-right:8px}.date-info[_ngcontent-%COMP%]{padding:10px 20px}.player-info[_ngcontent-%COMP%]{padding:10px 20px 0}.buttonPlay[_ngcontent-%COMP%]{text-align:center;border-top:1px solid #ddd;font-size:18px}.main-scroll[_ngcontent-%COMP%]{height:420px;overflow-y:scroll}.main-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px;height:115px}.main-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.main-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:none}.f12[_ngcontent-%COMP%]{font-size:12px!important}.finished-game[_ngcontent-%COMP%] .mat-form-field .mat-form-field-flex, .on-going-game[_ngcontent-%COMP%] .mat-form-field .mat-form-field-flex, .common-filter[_ngcontent-%COMP%] .mat-form-field .mat-form-field-flex{background-color:unset!important;border:1px solid #9f9f9f;padding:0 .75em!important;border-radius:30px}.finished-game[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder, .on-going-game[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder, .common-filter[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#000;font-size:14px}.finished-game[_ngcontent-%COMP%] .mat-form-field-underline, .on-going-game[_ngcontent-%COMP%] .mat-form-field-underline, .common-filter[_ngcontent-%COMP%] .mat-form-field-underline{width:0px!important}.finished-game[_ngcontent-%COMP%] .mat-form-field-wrapper, .on-going-game[_ngcontent-%COMP%] .mat-form-field-wrapper, .common-filter[_ngcontent-%COMP%] .mat-form-field-wrapper{margin-top:.4444em!important}.finished-game[_ngcontent-%COMP%] .mat-form-field .mat-form-field-infix, .on-going-game[_ngcontent-%COMP%] .mat-form-field .mat-form-field-infix, .common-filter[_ngcontent-%COMP%] .mat-form-field .mat-form-field-infix{padding:0 0 .75em!important}.finished-game[_ngcontent-%COMP%] .mat-form-field-appearance-fill .mat-select-arrow-wrapper, .on-going-game[_ngcontent-%COMP%] .mat-form-field-appearance-fill .mat-select-arrow-wrapper, .common-filter[_ngcontent-%COMP%] .mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:none}.tab[_ngcontent-%COMP%]{border-radius:17px;margin-top:10px;width:86vw}.gameCard[_ngcontent-%COMP%]{border-radius:20px;border:solid rgb(207,204,204) 1px;margin:20px}.common-filter[_ngcontent-%COMP%] .mat-form-field-wrapper{padding:0}@media screen and (max-width: 1025px){.main-content[_ngcontent-%COMP%]{margin-top:20vh}}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#6758ba!important;color:#fff!important}.mat-button-toggle[_ngcontent-%COMP%]{background-color:#f3f0ff;color:#9397ae}"]}),n})(),See=(()=>{class n{constructor(e,r){this.http=e,this.router=r,this.ep=new to}activationCheck(e){return this.http.post(this.ep.ActivateAccount,e,this.setRequestHeaders()).pipe((0,Le.U)(r=>r),vt(this.handleError("activationCheck")))}setRequestHeaders(){var e=(new Date).getTimezoneOffset();return{headers:new ai({"Content-Type":"application/json",timezoneoffsetminutes:(e=0==e?0:-e).toString()})}}handleError(e="operation",r){return o=>((401==o.error.status||403==o.error.status)&&(window.localStorage.clear(),this.router.navigate(["/login"])),ut(r))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar),t.LFG(Ht))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const QO=function(n,i){return{"containerFram main-content":n,"appBadgesPadding main-content":i}};function Dee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t._UZ(2,"img",3),t.TgZ(3,"p",4)(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._UZ(7,"br"),t._uU(8),t.ALo(9,"translate"),t._UZ(10,"br"),t.TgZ(11,"a",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToLogin()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t._uU(14),t.ALo(15,"translate"),t._UZ(16,"br"),t._uU(17," Last Letter First! "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("ngClass",t.WLB(13,QO,!e.loginService.isNative,e.loginService.isNative)),t.xp6(5),t.Oqu(t.lcZ(6,5,"ACTIVATION.VERIFIED")),t.xp6(3),t.hij(" ",t.lcZ(9,7,"ACTIVATION.SUCCESSVERIFIED")," "),t.xp6(4),t.Oqu(t.lcZ(13,9,"ACTIVATION.LOGIN")),t.xp6(2),t.hij(" ",t.lcZ(15,11,"ACTIVATION.VERIFIEDCREDTXT")," ")}}function Eee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",6),t._UZ(2,"img",7),t.TgZ(3,"p",4)(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._UZ(7,"br"),t._uU(8),t.ALo(9,"translate"),t.TgZ(10,"a",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToLogin()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13),t.ALo(14,"translate"),t._UZ(15,"br"),t._uU(16," Last Letter First! "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("ngClass",t.WLB(13,QO,!e.loginService.isNative,e.loginService.isNative)),t.xp6(5),t.Oqu(t.lcZ(6,5,"ACTIVATION.EXPLINK")),t.xp6(3),t.hij(" ",t.lcZ(9,7,"ACTIVATION.NOTUSELINK")," "),t.xp6(3),t.Oqu(t.lcZ(12,9,"ACTIVATION.LOGIN")),t.xp6(2),t.hij(" ",t.lcZ(14,11,"ACTIVATION.CNTPLAYTXT")," ")}}function Aee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t._UZ(2,"img",8),t.TgZ(3,"p",4)(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._UZ(7,"br"),t._uU(8),t.ALo(9,"translate"),t.TgZ(10,"a",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToLogin()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13),t.ALo(14,"translate"),t._UZ(15,"br"),t._uU(16," Last Letter First! "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("ngClass",t.WLB(13,QO,!e.loginService.isNative,e.loginService.isNative)),t.xp6(5),t.Oqu(t.lcZ(6,5,"ACTIVATION.INVALIDLINK")),t.xp6(3),t.hij(" ",t.lcZ(9,7,"ACTIVATION.NOTUSELINK")," "),t.xp6(3),t.Oqu(t.lcZ(12,9,"ACTIVATION.LOGIN")),t.xp6(2),t.hij(" ",t.lcZ(14,11,"ACTIVATION.CNTPLAYTXT"),".")}}var fa=navigator.language||navigator.userLanguage;fa="en-US"==fa||"en"==fa||"en-IN"==fa?"en":"hi-EN"==fa||"hi"==fa?"hi":"fr"==fa||"fr"==fa?"fr":"en";let Mee=(()=>{class n{constructor(e,r,o,s){this.loginService=e,this._activationService=r,this._router=o,this.translate=s}ngOnInit(){var e=this._router.url.split("=")[1];this._activationService.activationCheck({activeToken:e,code:fa}).subscribe(o=>{"success"==o.statusType?(this.message=o.msg,this.status="success"):(this.message=o.msg,this.status=o.status)})}goToLogin(){this._router.navigate(["/login"])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(See),t.Y36(Ht),t.Y36(Zn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-activation"]],decls:3,vars:3,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass"],["fxLayout","column","fxLayoutAlign","center center",1,"m-b-50"],["ngClass.xs","w100","src","assets/images/verify_account_img.png"],[1,"m-t-10","m-b-0","text-center"],[2,"cursor","pointer","color","#ff4081",3,"click"],["fxLayout","column","fxLayoutAlign","center center",1,"m-b-50","m-t-4"],["ngClass.xs","w100","src","assets/images/link_expired.png"],["ngClass.xs","w100","src","assets/images/link_invalid.png"]],template:function(e,r){1&e&&(t.YNc(0,Dee,18,16,"div",0),t.YNc(1,Eee,17,16,"div",0),t.YNc(2,Aee,17,16,"div",0)),2&e&&(t.Q6J("ngIf","success"==r.status),t.xp6(1),t.Q6J("ngIf","LinkExpired"==r.status),t.xp6(1),t.Q6J("ngIf","InvalidLinks"==r.status))},directives:[Gt,wn,ci,ti,Ir],pipes:[pn],styles:[".body_color[_ngcontent-%COMP%]{background:#e0e0e0;position:absolute;width:100%;height:100%}.box_activemessge[_ngcontent-%COMP%]{background:#fff;width:300px;min-height:300px;max-height:300px;display:block;border-radius:6px;padding:15px;box-shadow:0 0 15px #0000004d;position:absolute;inset:0;margin:auto}.box_activemessge[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:20px auto 10px;display:block}.box_activemessge[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:20px;color:#337ab7;display:block;text-align:center;font-weight:700}.box_activemessge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;color:#383838;display:block;text-align:center!important;font-weight:300;font-style:italic}.box_activemessge[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;bottom:-23px;right:0;left:0;margin:auto;display:table;width:170px;border:0px;padding:10px 0;font-size:18px;background:#337ab7;color:#fff}.m-t-4[_ngcontent-%COMP%]{margin-top:4%}.appBadgesPadding[_ngcontent-%COMP%]{padding:10px 20px;border:solid rgb(207,204,204) 1px}"]}),n})(),Iee=(()=>{class n{constructor(e,r){this._router=e,this._loginService=r}ngOnInit(){var e={isUnsubscribe:1,encEmail:this._router.url.split("isUnsubscribe=")[1]};this._loginService.emailUnsubscribed(e).subscribe(r=>{this.message=r.msg})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht),t.Y36(fn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-unsubscribe"]],decls:10,vars:6,consts:[[1,"containerFram","main-content"],["fxLayout","column","fxLayoutAlign","center center",1,"m-b-50"],["ngClass.xs","w100","src","assets/images/unsubscribe.png"],[1,"m-t-10","m-b-0","text-center"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"img",2),t.TgZ(3,"p",3)(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._UZ(7,"br"),t._uU(8),t.ALo(9,"translate"),t.qZA()()()),2&e&&(t.xp6(5),t.Oqu(t.lcZ(6,2,"ACTIVATION.UNSUBSCRIBE")),t.xp6(3),t.hij(" ",t.lcZ(9,4,"ACTIVATION.UNSUBSCRIBETXT")," "))},directives:[ti,Ir,ci],pipes:[pn],styles:[".body_color[_ngcontent-%COMP%]{background:#e0e0e0;position:absolute;width:100%;height:100%}.box_activemessge[_ngcontent-%COMP%]{background:#fff;max-width:500px;min-height:250px;max-height:250px;display:block;border-radius:6px;padding:15px;box-shadow:0 0 15px #0000004d;position:absolute;inset:0;margin:auto}.box_activemessge[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:20px auto 10px;display:block}.box_activemessge[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:20px;color:#337ab7;display:block;text-align:center;font-weight:700}.box_activemessge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;color:#383838;display:block;text-align:center!important;font-weight:300;margin:10px 0 25px;border-bottom:1px solid #dddddd;border-top:1px solid #dddddd;padding:20px 0}.box_activemessge[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;bottom:-23px;right:0;left:0;margin:auto;display:table;width:170px;border:0px;padding:10px 0;font-size:18px;font-weight:700;background:#337ab7;color:#fff}h1[_ngcontent-%COMP%]{font-family:Oswald,sans-serif;margin:0 0 20px;text-align:center;text-transform:uppercase;font-size:2.2em;color:#b22222;line-height:1.3em}"]}),n})();const Oee=["deepLink"];let y6=(()=>{class n{constructor(e){this._activeRoute=e}ngOnInit(){this.linkClick.nativeElement.click()}openAPP(){window.open("llfapp://","_system")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(mr))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-deeplink"]],viewQuery:function(e,r){if(1&e&&t.Gf(Oee,5),2&e){let o;t.iGM(o=t.CRH())&&(r.linkClick=o.first)}},decls:3,vars:0,consts:[["target","_system",3,"click"],["deepLink",""]],template:function(e,r){1&e&&(t.TgZ(0,"a",0,1),t.NdJ("click",function(){return r.openAPP()}),t._uU(2,"Open my app"),t.qZA())},styles:[""]}),n})(),kee=(()=>{class n{constructor(e,r,o,s,c){this.router=e,this.accountService=r,this.toasterService=o,this.loginService=s,this.translate=c,this.userModel=new Gw,this.accountScreenModel=new WO}ngOnInit(){this.loginService.prevoiusUrl="/editProfile";var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.userModel.nameFirst=e.nameFirst,this.userModel.nameLast=e.nameLast,this.userModel.userName=e.userName,this.userModel.email=e.email,this.userModel.address=e.address,this.userModel.city=e.city,this.userModel.zipCode=e.zipCode,this.userModel.id=e.id}editSaveProfile(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));if(0==/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this.userModel.email))return this.toasterService.Error("Email must be valid","Error"),!1;this.accountService.edituserdata(this.userModel).subscribe(o=>{o&&o.statusType==xn.success?(e.city=o.user.city,e.email=o.user.email,e.nameFirst=o.user.nameFirst,e.nameLast=o.user.nameLast,e.userName=o.user.userName,e.address=o.user.addresss,e.zipCode=o.user.zipCode,window.localStorage.setItem(ce.userProfile,JSON.stringify(e)),this.toasterService.Success(o.msg,"Success!"),this.router.navigate(["/account"])):this.toasterService.Error(o.msg,"Error")})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht),t.Y36(Es),t.Y36(I),t.Y36(fn),t.Y36(Zn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-profile"]],decls:0,vars:0,template:function(e,r){},styles:['.editprofile-form[_ngcontent-%COMP%]{width:100%}.edit-form-title[_ngcontent-%COMP%]{display:block;font-family:Segoe UI Bold;font-size:30px;color:#347ab8;line-height:1.2;text-align:center}.invalid-feedback[_ngcontent-%COMP%]{font-size:14px;margin:-12px 0 10px 6px;color:red}.requiredField[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:red}.requiredField[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:red}.requiredField[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder{color:red}.requiredField[_ngcontent-%COMP%] input[_ngcontent-%COMP%] [_ngcontent-%COMP%]:-moz-placeholder{color:red}.modal-dialog[_ngcontent-%COMP%]{margin:120px auto}.modal-header[_ngcontent-%COMP%]{display:block;align-items:normal;justify-content:space-between}.modal-title[_ngcontent-%COMP%]{font-size:16px!important}.modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{font-size:20px}.wrap-input[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;border-radius:20px}.input[_ngcontent-%COMP%]{font-family:Segoe UI Bold;font-size:16px;color:#4b2354;line-height:50px;display:block;width:100%;height:50px;background:transparent;padding:0 20px 0 23px}.focus-input[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;border-radius:20px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);transition:all .4s}.input[_ngcontent-%COMP%]:focus + .focus-input[_ngcontent-%COMP%]{box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.container-editprofile-form-btn[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap}.editprofile-form-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0 20px;min-width:160px;height:50px;background-color:#347ab8;border-radius:25px;font-family:Segoe UI Semibold;font-size:14px;color:#fff;line-height:1.2;text-transform:uppercase;transition:all .4s;box-shadow:0 10px 30px #55a2e580;-moz-box-shadow:0 10px 30px 0px #55a2e580;-webkit-box-shadow:0 10px 30px 0px #5fa1db80;-o-box-shadow:0 10px 30px 0px #55a2e580;-ms-box-shadow:0 10px 30px 0px #55a2e580}.editprofile-form-btn[_ngcontent-%COMP%]:hover{background-color:#55a2e5;box-shadow:0 10px 30px #55a2e580;-moz-box-shadow:0 10px 30px 0px #55a2e580;-webkit-box-shadow:0 10px 30px 0px #5fa1db80;-o-box-shadow:0 10px 30px 0px #55a2e580;-ms-box-shadow:0 10px 30px 0px #55a2e580}.validate-input[_ngcontent-%COMP%]{position:relative}.alert-validate[_ngcontent-%COMP%] .focus-input[_ngcontent-%COMP%]{box-shadow:0 5px 30px #347ab81a;-moz-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-webkit-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-o-box-shadow:0 5px 30px 0px rgba(52,122,184,.1);-ms-box-shadow:0 5px 30px 0px rgba(52,122,184,.1)}.alert-validate[_ngcontent-%COMP%]:before{content:attr(data-validate);display:flex;align-items:center;position:absolute;width:100%;min-height:62px;background-color:#fff;border-radius:20px;top:0;left:0;padding:0 45px 0 22px;pointer-events:none;font-family:Segoe UI Bold;font-size:16px;color:#fa4251;line-height:1.2}.btn-hide-validate[_ngcontent-%COMP%]{font-family:Material-Design-Iconic-Font;font-size:15px;color:#fa4251;cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;height:62px;top:0;right:23px}.rs1-alert-validate.alert-validate[_ngcontent-%COMP%]:before{background-color:#fff}.true-validate[_ngcontent-%COMP%]:after{content:"\\f269";font-family:Material-Design-Iconic-Font;font-size:15px;color:#57b846;display:flex;align-items:center;justify-content:center;position:absolute;height:62px;top:0;right:23px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}']}),n})(),Pee=(()=>{class n{constructor(e){this.http=e,this.ep=new to}check(){return this.http.get(this.ep.Check).pipe((0,Le.U)(e=>e),vt(this.handleError("Search",this.ep.Search)))}handleError(e="operation",r,o){return s=>ut(o)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ar))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var cT;let Nee=(()=>{class n{constructor(e){this.checkService=e,this.websocket={},cT=this}ngOnInit(){this.connect(),this.checkService.check().subscribe(e=>{this.dbResponse=e})}connect(){this.websocket=new WebSocket("wss://"+ce.BROADCAST_URL+"/wss2/:"+ce.BROADCAST_PORT+"/?game=0"),this.websocket.onopen=()=>{console.log("Connection established!"),this.websocket.send(JSON.stringify({msg:"Test Message"}))},this.websocket.onmessage=function(e){console.log("Message Recieved:"+e),cT.wsResponse="SUCCESS"},this.websocket.onclose=function(e){console.log("onclose:"+e),console.log("Socket is closed. Reconnect will be attempted in 1 second.",e.reason),setTimeout(function(){cT.connect()},1e3)},this.websocket.onerror=function(e){cT.wsResponse="ERROR"}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Pee))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-check"]],decls:5,vars:2,template:function(e,r){1&e&&(t.TgZ(0,"p"),t._uU(1),t.qZA(),t._UZ(2,"br"),t.TgZ(3,"p"),t._uU(4),t.qZA()),2&e&&(t.xp6(1),t.hij(" Database Check: ",r.dbResponse,""),t.xp6(3),t.hij(" WebSocket Check: ",r.wsResponse,"\n"))},styles:[""]}),n})();const Ree=function(){return["/home"]};let Fee=(()=>{class n{constructor(e,r,o,s,c){this.translate=e,this.newGameService=r,this.toasterService=o,this._loginService=s,this._router=c,this.joinGame={gameCode:"",name:"",userId:"",code:"en"}}ngOnInit(){this.translate.get("JOINGAME").subscribe(e=>{this.translateObj=e})}joinByUninvitedPlayer(){""!=this.joinGame.gameCode?(this.joinGame.name=this._loginService.getLoggedInUser().userName,this.joinGame.userId=this._loginService.getLoggedInUser().id,this.newGameService.uninvitedPlayerJoin(this.joinGame).subscribe(e=>{e&&e.statusType==xn.success?e&&e.msg&&(window.localStorage.setItem(ce.gameId,e.user.gameCode),this.newGameService.playGameSource=null,this._router.navigate(["/playGame"]),this.toasterService.Success(e.msg,"Success")):e&&e.msg&&this.toasterService.Error(e.msg,"Error")})):this.toasterService.Error(this.translateObj.ENTERNAMEMSG,"Error")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Zn),t.Y36(bo),t.Y36(I),t.Y36(fn),t.Y36(Ht))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-join-game"]],decls:21,vars:18,consts:[[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"form-group","m-t-10"],[1,"m-b-20"],[1,"wrap-input","validate-input","m-b-20"],["type","text",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"focus-input"],[1,"container-editprofile-form-btn","p-b-30"],["type","button",1,"btn","btn-maroon",3,"click"],[1,"btn","btn-maroon","m-l-10",3,"routerLink"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",3)(7,"div",4),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5)(11,"input",6),t.NdJ("ngModelChange",function(s){return r.joinGame.gameCode=s}),t.ALo(12,"translate"),t.qZA(),t._UZ(13,"span",7),t.qZA()(),t.TgZ(14,"div",8)(15,"button",9),t.NdJ("click",function(){return r.joinByUninvitedPlayer()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",10),t._uU(19),t.ALo(20,"translate"),t.qZA()()()()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,7,"JOINGAME.JOINGAMETITLE")),t.xp6(4),t.Oqu(t.lcZ(9,9,"JOINGAME.JOINGAMELBL")),t.xp6(3),t.s9C("placeholder",t.lcZ(12,11,"JOINGAME.CODEPLC")),t.Q6J("ngModel",r.joinGame.gameCode),t.xp6(5),t.Oqu(t.lcZ(17,13,"JOINGAME.SUBMITBTN")),t.xp6(2),t.Q6J("routerLink",t.DdM(17,Ree)),t.xp6(1),t.hij(" ",t.lcZ(20,15,"JOINGAME.CANCELBTN")," "))},directives:[Kt,xr,Cr,ea],pipes:[pn],styles:[".invalid-feedback[_ngcontent-%COMP%]{font-size:14px;margin:-12px 0 10px 6px;color:red}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}"]}),n})();const Lee=function(n,i){return{"bgColor border":n,"bg-container":i}};let Bee=(()=>{class n{constructor(e,r,o){this._loginService=e,this.sanitizer=r,this._router=o}ngOnInit(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this._loginService.getPrivacyPolicy({userId:e.id}).subscribe(o=>{this.response=JSON.parse(o)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(Ro),t.Y36(Ht))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-privacy-policy"]],decls:4,vars:5,consts:[[3,"ngClass"],["fxLayout","row"],["fxFlex","",1,"bg-sub-container","privacy-policy",2,"height","77vh","overflow-y","auto","padding","0 20px 20px"],[3,"innerHtml"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"div",3),t.qZA()()()),2&e&&(t.Q6J("ngClass",t.WLB(2,Lee,r._loginService.isNative,!r._loginService.isNative)),t.xp6(3),t.Q6J("innerHtml",r.response,t.oJD))},directives:[wn,ci,ti,Ei],styles:[".privacy-policy ol li{list-style:decimal;list-style-position:inside}h2[_ngcontent-%COMP%]{font-weight:700} .privacy-policy ul li{list-style-type:disc}.border[_ngcontent-%COMP%]{border:solid rgb(207,204,204) 1px}"]}),n})();const Gee=function(n,i){return{"bgColor border":n,"bg-container":i}};let Uee=(()=>{class n{constructor(e,r,o){this._loginService=e,this.sanitizer=r,this._router=o}ngOnInit(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this._loginService.getTermsOfService({userId:e.id}).subscribe(o=>{this.response=JSON.parse(o)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(Ro),t.Y36(Ht))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-terms"]],decls:4,vars:5,consts:[[3,"ngClass"],["fxLayout","row"],["fxFlex","",1,"bg-sub-container","privacy-policy",2,"height","77vh","overflow-y","auto","padding","0 20px 20px"],[3,"innerHtml"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"div",3),t.qZA()()()),2&e&&(t.Q6J("ngClass",t.WLB(2,Gee,r._loginService.isNative,!r._loginService.isNative)),t.xp6(3),t.Q6J("innerHtml",r.response,t.oJD))},directives:[wn,ci,ti,Ei],styles:[".privacy-policy ol li{list-style:decimal;list-style-position:inside}h2[_ngcontent-%COMP%]{font-weight:700} .privacy-policy ul li{list-style-type:disc} .privacy-policy a{color:#00f}.border[_ngcontent-%COMP%]{border:solid rgb(207,204,204) 1px}"]}),n})();var Xf=(()=>{return(n=Xf||(Xf={}))[n.OFFLINE=0]="OFFLINE",n[n.ONLINE=1]="ONLINE",Xf;var n})();let KO=(()=>{class n{constructor(){this.status=new t.vpe(!0),this.bind(),window.addEventListener(n.EVENT_TYPE_ONLINE,this.onOnline),window.addEventListener(n.EVENT_TYPE_OFFLINE,this.onOffline)}ngOnDestroy(){window.removeEventListener(n.EVENT_TYPE_ONLINE,this.onOnline),window.removeEventListener(n.EVENT_TYPE_OFFLINE,this.onOffline)}getStatus(){return navigator.onLine?Xf.ONLINE:Xf.OFFLINE}bind(){this.onOnline=this.onOnline.bind(this),this.onOffline=this.onOffline.bind(this)}onOnline(){this.status.emit(Xf.ONLINE)}onOffline(){this.status.emit(Xf.OFFLINE)}}return n.EVENT_TYPE_ONLINE="online",n.EVENT_TYPE_OFFLINE="offline",n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Hee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[KO],imports:[[si]]}),n})();const jee=[{path:"",redirectTo:"/login",pathMatch:"full"},{path:"login",component:Rz},{path:"register",component:j7},{path:"forgotpassword",component:z7},{path:"faq",component:p$,canActivate:[Ms]},{path:"home",component:EJ,canActivate:[Ms]},{path:"resetpassword",component:PJ,data:{t:""}},{path:"newGame",component:qB},{path:"playGame",component:sK},{path:"account",component:PX,canActivate:[Ms]},{path:"changePassword",component:jX,canActivate:[Ms]},{path:"editProfile",component:kee,canActivate:[Ms]},{path:"runningGame",component:Tee,canActivate:[Ms]},{path:"leaderboard",component:HO,canActivate:[Ms]},{path:"leaderboard/:against",component:HO,canActivate:[Ms],data:{against:"1"}},{path:"activation",component:Mee,data:{t:""}},{path:"unsubscribe",component:Iee,data:{isUnsubscribe:""}},{path:"deeplink",component:y6},{path:"deeplink/:page/:token",component:y6},{path:"check",component:Nee},{path:"badges",component:dB,canActivate:[Ms]},{path:"joinGame",component:Fee,canActivate:[Ms]},{path:"privacy-policy",component:Bee,canActivate:[Ms]},{path:"terms-of-service",component:Uee,canActivate:[Ms]},{path:"no-internet-connection",component:(()=>{class n{constructor(e,r,o){this.loginService=e,this._router=r,this.onlineStatusService=o}ngOnInit(){this.imagUrl=JSON.parse(window.localStorage.getItem(ce.noInternetImgSrc)),zt.dV.isNativePlatform()?this.loginService.pulltoRefresh("noInternet",this.loginService.currentUrl):1==this.onlineStatusService.getStatus()&&this._router.navigate([this.loginService.currentUrl])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(Ht),t.Y36(KO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-no-internet-connection"]],decls:10,vars:8,consts:[["id","noInternet",3,"ngClass"],["fxLayout","column","fxLayoutAlign","center center",1,"m-b-50","m-t-4"],["ngClass.xs","w100",3,"src"],[1,"m-t-10","m-b-0","text-center"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"img",2),t.TgZ(3,"p",3)(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._UZ(7,"br"),t._uU(8),t.ALo(9,"translate"),t.qZA()()()),2&e&&(t.Q6J("ngClass",r.loginService.isNative?"bgColor border p15":"main-content containerFram"),t.xp6(2),t.s9C("src",r.imagUrl,t.LSH),t.xp6(3),t.Oqu(t.lcZ(6,4,"NOINTERNET.NOINTERNETTXT")),t.xp6(3),t.hij(" ",t.lcZ(9,6,"NOINTERNET.CHECKCONNECTIONTXT")," "))},directives:[wn,ci,ti,Ir],pipes:[pn],styles:[".border[_ngcontent-%COMP%]{border:solid rgb(207,204,204) 1px}.p15[_ngcontent-%COMP%]{padding:0 15px}.m15[_ngcontent-%COMP%]{margin:15px}"]}),n})()},{path:"404",component:(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-pagenotfound"]],decls:17,vars:13,consts:[[1,"containerFram","main-content"],["fxLayout","column","fxLayoutAlign","center center",1,"m-b-50"],["ngClass.xs","w100","src","assets/images/link_invalid.png"],[1,"m-t-10","m-b-0","text-center"],[2,"cursor","pointer","color","#ff4081",3,"routerLink"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"img",2),t.TgZ(3,"p",3)(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._UZ(7,"br"),t._uU(8),t.ALo(9,"translate"),t.TgZ(10,"a",4),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13),t.ALo(14,"translate"),t._UZ(15,"br"),t._uU(16," Last Letter First! "),t.qZA()()()),2&e&&(t.xp6(5),t.Oqu(t.lcZ(6,5,"ACTIVATION.INVALIDLINK")),t.xp6(3),t.hij(" ",t.lcZ(9,7,"ACTIVATION.NOTUSELINK")," "),t.xp6(2),t.Q6J("routerLink","/login"),t.xp6(1),t.Oqu(t.lcZ(12,9,"ACTIVATION.LOGIN")),t.xp6(2),t.hij(" ",t.lcZ(14,11,"ACTIVATION.CNTPLAYTXT"),"."))},directives:[ti,Ir,ci,ds],pipes:[pn],styles:[""]}),n})()},{path:"**",redirectTo:"/404"}];let Vee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[mS.forRoot(jee,{relativeLinkResolution:"legacy"})],mS]}),n})();const uT=(0,zt.fo)("App",{web:()=>P.e(477).then(P.bind(P,4477)).then(n=>new n.AppWeb)});(0,zt.fo)("StatusBar");const pu=(0,zt.fo)("PushNotifications",{}),XO=(0,zt.fo)("LocalNotifications",{web:()=>P.e(434).then(P.bind(P,7434)).then(n=>new n.LocalNotificationsWeb)}),C6=(0,zt.fo)("SafeArea",{web:()=>P.e(506).then(P.bind(P,2506)).then(n=>new n.SafeAreaWeb)});var Zee=P(1389);class hT{constructor(i){return i}}const ek=new t.OlP("angularfire2.auth-instances");function zee(n){return(i,e)=>{const r=i.runOutsideAngular(()=>n(e));return new hT(r)}}const $ee={provide:class Wee{constructor(){return FF("auth")}},deps:[[new t.FiY,ek]]},Yee={provide:hT,useFactory:function qee(n,i){const e=function RF(n,i,e){if(i){if(1===i.length)return i[0];const s=i.filter(c=>c.app===e);if(1===s.length)return s[0]}return e.container.getProvider(n).getImmediate({optional:!0})}("auth",n,i);return e&&new hT(e)},deps:[[new t.FiY,ek],Ob]};let Jee=(()=>{class n{constructor(){(0,Ji.registerVersion)("angularfire",EM.full,"auth")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Yee,$ee]}),n})();function Qee(n,...i){return{ngModule:Jee,providers:[{provide:ek,useFactory:zee(n),multi:!0,deps:[t.R0b,t.zs3,nb,$2,[new t.FiY,Rw],...i]}]}}const Kee=BF(Zee.o,!0);function Xee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",19),t.NdJ("click",function(){const s=t.CHM(e).index;return t.oxw().selectFeedback(s)}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function ete(n,i){1&n&&(t.TgZ(0,"mat-error",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"FEEDBACK.FEEDBACKVALIDTXT")))}function tte(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("",t.lcZ(2,1,"FEEDBACK.MSGVALIDTXT")," "))}let nte=(()=>{class n{constructor(e,r,o,s,c,f,g,v){this._loginService=e,this.leaderBoardService=r,this.runningGameService=o,this.accountService=s,this.router=c,this.toasterService=f,this.translate=g,this.dialogRef=v,this.isSubmitted=!1,this.feedbackForm=new N1({firstName:new If("",[Wo.required]),lastName:new If("",[Wo.required]),email:new If("",[Wo.required,Wo.pattern("[A-Za-z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4}$"),Wo.maxLength(50)]),feedbackType:new If("",[Wo.required]),message:new If("",[Wo.required,Wo.maxLength(500)])})}ngOnInit(){this.translate.get("FEEDBACK").subscribe(o=>{this.footerLangObj=o});var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.loginUserID=e.id,this.getFeedbackType(),this.feedbackForm.patchValue({firstName:e.nameFirst,lastName:e.nameLast,email:e.email,feedbackType:""})}get f(){return this.feedbackForm.controls}sendFeedback(){if(this.isSubmitted=!0,"0"!=this.f.feedbackType.value&&""!=this.f.message.value.trim()){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.accountService.sendFeedback({userId:e.id,email_id:this.f.email.value,feedbackTypeId:this.f.feedbackType.value,feedback:this.f.message.value}).subscribe(o=>{o&&o.statusType==xn.success?(this.toasterService.Success(o.msg,"Success!"),this.isSubmitted=!1,this.feedbackForm.patchValue({feedbackType:"0"}),this.onCancelClick()):this.toasterService.Error(o.msg,"Error")})}else this.f.message.setValue("")}getFeedbackType(){var e={userId:this._loginService.getLoggedInUser().id};this.accountService.getFeedbackType(e).subscribe(r=>{r&&(this._loginService.getBrowserLang(r.code),window.localStorage.setItem(ce.language,r.code),this.lastWord=r.lastWord,this._loginService.getLoggedInUser().code=r.code,window.localStorage.setItem(ce.userProfile,JSON.stringify(this._loginService.getLoggedInUser())),this.accountService.feedbackTypeList=r.data)})}selectFeedback(e){this.feedbackTypeId=this.accountService.feedbackTypeList[e].id,this.feedbackForm.patchValue("1"==this.feedbackTypeId&&this.lastWord?{message:this.footerLangObj.FIRSTDETAIL+this.lastWord+this.footerLangObj.SECONDDETAIL}:{message:""})}onCancelClick(){this.dialogRef.close({event:"no"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36($m),t.Y36(Ka),t.Y36(Es),t.Y36(Ht),t.Y36(I),t.Y36(Zn),t.Y36(qr))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-feedback"]],decls:38,vars:20,consts:[[1,"form-title","title"],[1,"feedback-form",3,"formGroup","ngSubmit"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutGap.sm","0px","fxLayoutGap.xs","0px"],["appearance","fill","fxFlex","50%"],["matInput","","formControlName","firstName","name","firstname","placeholder","first name","readonly","","trim",""],["matInput","","formControlName","lastName","name","lastname","placeholder","last name","readonly","","trim",""],["appearance","fill","fxFlex","100%"],["matInput","","formControlName","email","name","email","placeholder","email","readonly","","trim",""],["id","feedbackDD","name","dd","formControlName","feedbackType"],["value","","selected","true",3,"disabled"],[3,"value","click",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],["matInput","","name","message","rows","3","cols","50","formControlName","message",2,"height","auto !important",3,"placeholder"],[4,"ngIf"],["align","center"],["fxFlex","","fxLayout","row","fxLayoutGap","20px"],["fxFlex","50","fxLayout","column"],["mat-stroked-button","","color","accent","type","button",3,"click"],["mat-raised-button","","color","accent","type","submit",1,"m-l-10"],[3,"value","click"],[1,"invalid-feedback"]],template:function(e,r){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"strong"),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div")(6,"form",1),t.NdJ("ngSubmit",function(){return r.sendFeedback()}),t.TgZ(7,"div",2)(8,"mat-form-field",3),t._UZ(9,"input",4),t.qZA(),t.TgZ(10,"mat-form-field",3),t._UZ(11,"input",5),t.qZA()(),t.TgZ(12,"div",2)(13,"mat-form-field",6),t._UZ(14,"input",7),t.qZA()(),t.TgZ(15,"div",2)(16,"mat-form-field",6)(17,"mat-select",8)(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,Xee,2,2,"mat-option",10),t.qZA(),t.YNc(22,ete,3,3,"mat-error",11),t.qZA()(),t.TgZ(23,"div",2)(24,"mat-form-field",6),t._UZ(25,"textarea",12),t.ALo(26,"translate"),t.YNc(27,tte,3,3,"mat-error",13),t.qZA()(),t.TgZ(28,"mat-dialog-actions",14)(29,"div",15)(30,"div",16)(31,"button",17),t.NdJ("click",function(){return r.onCancelClick()}),t._uU(32),t.ALo(33,"translate"),t.qZA()(),t.TgZ(34,"div",16)(35,"button",18),t._uU(36),t.ALo(37,"translate"),t.qZA()()()()()()()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,10,"FEEDBACK.FEEDBACKTITLETXT")),t.xp6(3),t.Q6J("formGroup",r.feedbackForm),t.xp6(12),t.Q6J("disabled",!0),t.xp6(1),t.hij("",t.lcZ(20,12,"FEEDBACK.FEEDBACKDDTXT")," "),t.xp6(2),t.Q6J("ngForOf",r.accountService.feedbackTypeList),t.xp6(1),t.Q6J("ngIf",r.isSubmitted&&(null==r.f.feedbackType.errors?null:r.f.feedbackType.errors.required)),t.xp6(3),t.s9C("placeholder",t.lcZ(26,14,"FEEDBACK.MESSAGEPLACETXT")),t.xp6(2),t.Q6J("ngIf",r.isSubmitted&&(null==r.f.message.errors?null:r.f.message.errors.required)),t.xp6(5),t.Oqu(t.lcZ(33,16,"FEEDBACK.CANCELBTN")),t.xp6(4),t.Oqu(t.lcZ(37,18,"FEEDBACK.SUBMITBTN")))},directives:[Hd,Ud,Sm,ti,qo,cu,Ei,Lb,Kt,Xl,xr,ZA,Hb,Mf,Vt,Gt,Uw,w,Di],pipes:[pn],styles:[".feedback-form[_ngcontent-%COMP%]{width:100%}.feedback-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#000;font-size:14px}.feedback-form[_ngcontent-%COMP%] .mat-form-field-underline{width:0px!important}.feedback-form[_ngcontent-%COMP%] .mat-form-field-wrapper{margin-top:.4444em!important}.feedback-form[_ngcontent-%COMP%] .mat-form-field .mat-form-field-infix{padding:0 0 .75em!important}.feedback-form[_ngcontent-%COMP%] .mat-form-field .mat-form-field-flex{background-color:unset!important;border:1px solid #9f9f9f;padding:0 .75em!important;border-radius:30px}.feedback-form[_ngcontent-%COMP%] .mat-form-field.mat-form-field-invalid .mat-form-field-flex, .mat-form-field.mat-form-field-invalid[_ngcontent-%COMP%] .mat-form-field-ripple.mat-accent[_ngcontent-%COMP%]{border:1px solid #f44336;opacity:1;transform:none;transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),border .3s cubic-bezier(.25,.8,.25,1)}.title[_ngcontent-%COMP%]{margin:15px 0;font-size:18px}.feedback-form[_ngcontent-%COMP%] .mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:none} .feedback mat-dialog-container{border-radius:25px}"]}),n})();const T6=["*"],ite=["content"];function rte(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){return t.CHM(e),t.oxw()._onBackdropClicked()}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function ote(n,i){1&n&&(t.TgZ(0,"mat-drawer-content"),t.Hsn(1,2),t.qZA())}const ste=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ate=["mat-drawer","mat-drawer-content","*"],lte={transformDrawer:xs("transform",[br("open, open-instant",ei({transform:"none",visibility:"visible"})),br("void",ei({"box-shadow":"none",visibility:"hidden"})),yr("void => open-instant",Wr("0ms")),yr("void <=> open, open-instant => void",Wr("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},cte=new t.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function ute(){return!1}}),S6=new t.OlP("MAT_DRAWER_CONTAINER");let fT=(()=>{class n extends G0{constructor(e,r,o,s,c){super(o,s,c),this._changeDetectorRef=e,this._container=r}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(()=>E6)),t.Y36(t.SBq),t.Y36(Eg),t.Y36(t.R0b))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,r){2&e&&t.Udp("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[t._Bn([{provide:G0,useExisting:n}]),t.qOj],ngContentSelectors:T6,decls:1,vars:0,template:function(e,r){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),D6=(()=>{class n{constructor(e,r,o,s,c,f,g,v){this._elementRef=e,this._focusTrapFactory=r,this._focusMonitor=o,this._platform=s,this._ngZone=c,this._interactivityChecker=f,this._doc=g,this._container=v,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new ft.x,this._animationEnd=new ft.x,this._animationState="void",this.openedChange=new t.vpe(!0),this._openedStream=this.openedChange.pipe(Yt(T=>T),(0,Le.U)(()=>{})),this.openedStart=this._animationStarted.pipe(Yt(T=>T.fromState!==T.toState&&0===T.toState.indexOf("open")),qO(void 0)),this._closedStream=this.openedChange.pipe(Yt(T=>!T),(0,Le.U)(()=>{})),this.closedStart=this._animationStarted.pipe(Yt(T=>T.fromState!==T.toState&&"void"===T.toState),qO(void 0)),this._destroyed=new ft.x,this.onPositionChanged=new t.vpe,this._modeChanged=new ft.x,this.openedChange.subscribe(T=>{T?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Si(this._elementRef.nativeElement,"keydown").pipe(Yt(T=>27===T.keyCode&&!this.disableClose&&!ra(T)),It(this._destroyed)).subscribe(T=>this._ngZone.run(()=>{this.close(),T.stopPropagation(),T.preventDefault()}))}),this._animationEnd.pipe(ys((T,D)=>T.fromState===D.fromState&&T.toState===D.toState)).subscribe(T=>{const{fromState:D,toState:M}=T;(0===M.indexOf("open")&&"void"===D||"void"===M&&0===D.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Wt(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Wt(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Wt(e))}_forceFocus(e,r){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(r)}_focusByCssSelector(e,r){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,r)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(r=>{!r&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,r){e&&r&&(this._openedVia=r);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,r,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",r&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe((0,_n.q)(1)).subscribe(c=>s(c?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const r=this._elementRef.nativeElement,o=r.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,r)),o.appendChild(r)):this._anchor&&this._anchor.parentNode.insertBefore(r,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(dC),t.Y36(oa),t.Y36(vr),t.Y36(t.R0b),t.Y36(ov),t.Y36(ee,8),t.Y36(S6,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,r){if(1&e&&t.Gf(ite,5),2&e){let o;t.iGM(o=t.CRH())&&(r._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,r){1&e&&t.WFA("@transform.start",function(s){return r._animationStarted.next(s)})("@transform.done",function(s){return r._animationEnd.next(s)}),2&e&&(t.uIk("align",null),t.d8E("@transform",r._animationState),t.ekj("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:T6,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA())},directives:[G0],encapsulation:2,data:{animation:[lte.transformDrawer]},changeDetection:0}),n})(),E6=(()=>{class n{constructor(e,r,o,s,c,f=!1,g){this._dir=e,this._element=r,this._ngZone=o,this._changeDetectorRef=s,this._animationMode=g,this._drawers=new t.n_E,this.backdropClick=new t.vpe,this._destroyed=new ft.x,this._doCheckSubject=new ft.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ft.x,e&&e.change.pipe(It(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),c.change().pipe(It(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=f}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Wt(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:Wt(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(wi(this._allDrawers),It(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(r=>!r._container||r._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(wi(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Dd(10),It(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,r=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,r-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)r+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();r+=o,e-=o}e=e||null,r=r||null,(e!==this._contentMargins.left||r!==this._contentMargins.right)&&(this._contentMargins={left:e,right:r},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Yt(r=>r.fromState!==r.toState),It(this._drawers.changes)).subscribe(r=>{"open-instant"!==r.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(It(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(It(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,_n.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(It((0,_r.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const r=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?r.add(o):r.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ui,8),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(Nl),t.Y36(cte),t.Y36(Ii,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,r,o){if(1&e&&(t.Suo(o,fT,5),t.Suo(o,D6,5)),2&e){let s;t.iGM(s=t.CRH())&&(r._content=s.first),t.iGM(s=t.CRH())&&(r._allDrawers=s)}},viewQuery:function(e,r){if(1&e&&t.Gf(fT,5),2&e){let o;t.iGM(o=t.CRH())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,r){2&e&&t.ekj("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[t._Bn([{provide:S6,useExisting:n}])],ngContentSelectors:ate,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,r){1&e&&(t.F$t(ste),t.YNc(0,rte,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,ote,2,0,"mat-drawer-content",1)),2&e&&(t.Q6J("ngIf",r.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!r._content))},directives:[fT,Gt],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),n})(),dte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si,In,_d],_d,In]}),n})();function hte(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).removeAppNotice()}),t.TgZ(1,"mat-icon"),t._uU(2,"close"),t.qZA()()}}function fte(n,i){if(1&n&&(t.TgZ(0,"div",17)(1,"div",18),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"a",19),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"div",20),t.YNc(10,hte,3,0,"button",21),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MENU.BESTEXPTEXT")," "),t.xp6(3),t.Oqu(t.lcZ(6,6,"MENU.CLICKHERETEXT")),t.xp6(2),t.hij(" ",t.lcZ(8,8,"MENU.PLAYSTOREAPPTEXT")," "),t.xp6(3),t.Q6J("ngIf",1==e.currentUrl.startsWith("/playGame"))}}const A6=function(n,i){return{appStoreLinkPlayGame:n,appStoreLink:i}};function pte(n,i){if(1&n&&(t.TgZ(0,"div",15),t.YNc(1,fte,11,10,"div",16),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngClass",t.WLB(2,A6,!e._loginService.isLogin,e._loginService.isLogin)),t.xp6(1),t.Q6J("ngIf",e.gameAppNotice)}}function gte(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).removeAppNotice()}),t.TgZ(1,"mat-icon"),t._uU(2,"close"),t.qZA()()}}function mte(n,i){if(1&n&&(t.TgZ(0,"div",17)(1,"div",18),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"a",23),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"div",20),t.YNc(10,gte,3,0,"button",24),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MENU.BESTEXPTEXT")," "),t.xp6(3),t.Oqu(t.lcZ(6,6,"MENU.CLICKHERETEXT")),t.xp6(2),t.hij(" ",t.lcZ(8,8,"MENU.APPSTOREAPPTEXT")," "),t.xp6(3),t.Q6J("ngIf",1==e.currentUrl.startsWith("/playGame"))}}function _te(n,i){if(1&n&&(t.TgZ(0,"div",15),t.YNc(1,mte,11,10,"div",16),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngClass",t.WLB(2,A6,!e._loginService.isLogin,e._loginService.isLogin)),t.xp6(1),t.Q6J("ngIf",e.gameAppNotice)}}function vte(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"li",29)(1,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw(2),t.MAs(2).toggle()}),t.TgZ(2,"mat-icon"),t._uU(3,"density_medium"),t.qZA()()()}}const M6=function(){return["/home"]},I6=function(){return["/runningGame"]},O6=function(){return["/newGame"]},k6=function(){return["/leaderboard"]},P6=function(){return["/account"]},N6=function(){return["/badges"]},R6=function(){return["/faq"]},F6=function(){return["/privacy-policy"]},L6=function(){return["/terms-of-service"]};function bte(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",31)(1,"div",32)(2,"div",33)(3,"div",34),t.ALo(4,"translate"),t.TgZ(5,"button",35)(6,"mat-icon"),t._uU(7,"home"),t.qZA()()(),t.TgZ(8,"div",34),t.ALo(9,"translate"),t.TgZ(10,"button",35)(11,"mat-icon"),t._uU(12,"title"),t.qZA()()(),t.TgZ(13,"div",34),t.ALo(14,"translate"),t.TgZ(15,"button",35)(16,"mat-icon"),t._uU(17,"add"),t.qZA()()(),t.TgZ(18,"div",34),t.ALo(19,"translate"),t.TgZ(20,"button",36)(21,"mat-icon"),t._uU(22,"architecture"),t.qZA()()(),t.TgZ(23,"div",34),t.ALo(24,"translate"),t.TgZ(25,"button",37)(26,"mat-icon"),t._uU(27,"menu"),t.qZA()(),t.TgZ(28,"mat-menu",null,38)(30,"button",39),t._uU(31),t.ALo(32,"translate"),t.qZA(),t.TgZ(33,"button",39),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"button",40),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).feedback()}),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"button",39),t._uU(40),t.ALo(41,"translate"),t.qZA(),t.TgZ(42,"button",39),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"button",39),t._uU(46),t.ALo(47,"translate"),t.qZA()()()()()()}if(2&n){const e=t.MAs(29);t.xp6(3),t.s9C("title",t.lcZ(4,21,"MENU.HOME")),t.xp6(2),t.Q6J("routerLink",t.DdM(43,M6)),t.xp6(3),t.s9C("title",t.lcZ(9,23,"MENU.GAMES")),t.xp6(2),t.Q6J("routerLink",t.DdM(44,I6)),t.xp6(3),t.s9C("title",t.lcZ(14,25,"MENU.NEWGAME")),t.xp6(2),t.Q6J("routerLink",t.DdM(45,O6)),t.xp6(3),t.s9C("title",t.lcZ(19,27,"MENU.LEADERBOARD")),t.xp6(2),t.Q6J("routerLink",t.DdM(46,k6)),t.xp6(3),t.s9C("title",t.lcZ(24,29,"MENU.OTHER")),t.xp6(2),t.Q6J("matMenuTriggerFor",e),t.xp6(5),t.Q6J("routerLink",t.DdM(47,P6)),t.xp6(1),t.Oqu(t.lcZ(32,31,"MENU.ACCOUNT")),t.xp6(2),t.Q6J("routerLink",t.DdM(48,N6)),t.xp6(1),t.Oqu(t.lcZ(35,33,"MENU.BADGES")),t.xp6(3),t.Oqu(t.lcZ(38,35,"MENU.FEEDBACK")),t.xp6(2),t.Q6J("routerLink",t.DdM(49,R6)),t.xp6(1),t.Oqu(t.lcZ(41,37,"MENU.FAQ")),t.xp6(2),t.Q6J("routerLink",t.DdM(50,F6)),t.xp6(1),t.Oqu(t.lcZ(44,39,"MENU.PRIVACYPOLICY")),t.xp6(2),t.Q6J("routerLink",t.DdM(51,L6)),t.xp6(1),t.Oqu(t.lcZ(47,41,"MENU.TERMOFSERVICE"))}}const B6=function(n){return{p10:n}},yte=function(n,i){return{position:n,right:i}};function xte(n,i){if(1&n&&(t.TgZ(0,"div",26),t.YNc(1,vte,4,0,"li",27),t.YNc(2,bte,48,52,"div",28),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(4,B6,e._loginService.isNative&&!e.isiOS))("ngStyle",t.WLB(6,yte,1==e.breakpoint?"absolute":"unset",1==e.breakpoint?0:"unset")),t.xp6(1),t.Q6J("ngIf",1==e.breakpoint),t.xp6(1),t.Q6J("ngIf",0==e.breakpoint)}}const Cte=function(n){return{position:n}},wte=function(n){return{headerScrollP:n}};let Tte=(()=>{class n{constructor(e,r,o,s,c,f){this._loginService=e,this._router=r,this.breakpointObserver=o,this.translate=s,this.dialog=c,this.accountService=f,this.isAndroid=!1,this.isiOS=!1,this.isDesktopSafari=!1,this.gameCode=window.localStorage.getItem("game")}get IsAuth(){return this._loginService.IsAuthenthicated()}ngOnInit(){this.breakpointObserver.observe([ri_HandsetLandscape,ri_HandsetPortrait,ri_TabletLandscape,ri_TabletPortrait]).subscribe(e=>{this.breakpoint=e.matches?1:0}),this._loginService.isNative=!!zt.dV.isNativePlatform(),$("header").addClass("headerTransform"),this._router.events.subscribe(e=>{e instanceof $s&&(this.currentUrl=e.url,1==e.url.startsWith("/playGame")?(this.gameParams=this.getGameParams(),this.accountService.getAppNoticeInformation(this.gameParams).subscribe(r=>{"success"==r.statusType&&void 0!==r.data.gameAppNotice&&0==r.data.gameAppNotice?(this.gameAppNotice=!1,this.accountService.gameAppNoticeHideShow=!1,$(".appNotice").removeClass("appStoreText")):(this.gameAppNotice=!0,this.accountService.gameAppNoticeHideShow=!0,$(".appNotice").addClass("appStoreText"))})):(this.gameAppNotice=!0,$(".appNotice").addClass("appStoreText")))}),/android/i.test(navigator.userAgent)?this.isAndroid=!0:!/iPad|iPhone|iPod/.test(navigator.userAgent)||window.MSStream?/Safari/i.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)&&!/Mobi|Android/i.test(navigator.userAgent)&&(this.isDesktopSafari=!0):this.isiOS=!0}onClickLogo(){return(0,Ti.mG)(this,void 0,void 0,function*(){(yield w0.getStatus()).connected?this._router.navigate(this.IsAuth?["/home"]:["/login"]):this._router.navigateByUrl("/no-internet-connection")})}goToFeedback(e){e.toggle(),this.feedback()}feedback(){$("body").addClass("cdk-global-scrollblock"),this.dialog.open(nte,{panelClass:["custom-modalbox","feedback"],disableClose:!0,closeOnNavigation:!0}).afterClosed().subscribe(r=>{$("body").removeClass("cdk-global-scrollblock")})}drawerOpen(){$("body").addClass("cdk-global-scrollblock"),$("header").removeClass("headerTransform")}drawerClose(){$("body").removeClass("cdk-global-scrollblock"),$("header").addClass("headerTransform")}getGameParams(){this.gameCode=window.localStorage.getItem("game");var e=JSON.parse(window.localStorage.getItem(ce.userProfile));if(null!=e)var r={userId:e.id,gameCode:this.gameCode};return r}removeAppNotice(){this.gameParams=this.getGameParams(),this.accountService.removeAppNoticeInformation(this.gameParams).subscribe(e=>{if("success"==e.statusType){this.gameAppNotice=!1;var r=document.getElementById("avtarDiv");r.classList.remove("avatar"),r.classList.add("avatarwithoutnotice"),$(".appNotice").removeClass("appStoreText"),this.accountService.gameAppNoticeHideShow=!1;var o=document.getElementById("scoreboard-section");void 0!==o&&null!=o&&o.classList.add("playerListWithoutNotice");var s=document.getElementById("score-hint-section");void 0!==s&&null!=s&&s.classList.add("scoreboardPointWithoutNotice")}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(Ht),t.Y36(ec),t.Y36(Zn),t.Y36(l),t.Y36(Es))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-header"]],decls:44,vars:61,consts:[[3,"ngClass"],["mode","over","opened","false","position","end",1,"menuContent",3,"openedStart","closedStart"],["sideNav",""],[1,"menuP20"],[1,"menuP20",3,"routerLink","click"],[1,"menuP20",3,"click"],[1,"draw-content",3,"ngStyle"],["fxLayout","column","fxLayout.sm","column","fxLayout.xs","column",1,"fixedHeader"],["class","appStoreText appNotice",3,"ngClass",4,"ngIf"],["fxLayout","row",1,"headerMainDiv",3,"ngClass"],["fxFlex","50%",3,"ngClass"],[1,"logo"],[1,"icon-llf",2,"cursor","pointer",3,"click"],["src","assets/images/icons/LLFLOGO.png"],["fxFlex","50%","fxLayoutAlign","center center",3,"ngClass","ngStyle",4,"ngIf"],[1,"appStoreText","appNotice",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","95%"],["href","https://play.google.com/store/apps/details?id=com.lastletterfirst.app","target","_blank"],["fxLayoutAlign","center center","fxFlex","5%",2,"margin-right","2%"],["style","margin-bottom: 9%;","mat-icon-button","","matSuffix","","class","closeIcon",3,"click",4,"ngIf"],["mat-icon-button","","matSuffix","",1,"closeIcon",2,"margin-bottom","9%",3,"click"],["href","https://apps.apple.com/us/app/last-letter-first/id1473827911","target","_blank"],["mat-icon-button","","matSuffix","","class","closeIcon",3,"click",4,"ngIf"],["mat-icon-button","","matSuffix","",1,"closeIcon",3,"click"],["fxFlex","50%","fxLayoutAlign","center center",3,"ngClass","ngStyle"],["class","btn-group-fab",4,"ngIf"],["class","menuContent menu",4,"ngIf"],[1,"btn-group-fab"],["mat-fab","","aria-label","Example icon button with a menu icon",1,"mainBtn",3,"click"],[1,"menuContent","menu"],[1,"example-button-row"],[1,"example-flex-container"],[1,"example-button-container",3,"title"],["mat-mini-fab","","aria-label","Example icon button with a plus one icon",3,"routerLink"],["mat-mini-fab","","aria-label","Example icon button with a filter list icon",3,"routerLink"],["mat-mini-fab","","aria-label","Example icon button with a menu icon",3,"matMenuTriggerFor"],["AccountMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"mat-drawer-container",0)(1,"mat-drawer",1,2),t.NdJ("openedStart",function(){return r.drawerOpen()})("closedStart",function(){return r.drawerClose()}),t.TgZ(3,"div",3)(4,"div",4),t.NdJ("click",function(){return t.CHM(o),t.MAs(2).toggle()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",4),t.NdJ("click",function(){return t.CHM(o),t.MAs(2).toggle()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",4),t.NdJ("click",function(){return t.CHM(o),t.MAs(2).toggle()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"div",4),t.NdJ("click",function(){return t.CHM(o),t.MAs(2).toggle()}),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.TgZ(16,"div",4),t.NdJ("click",function(){return t.CHM(o),t.MAs(2).toggle()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",4),t.NdJ("click",function(){return t.CHM(o),t.MAs(2).toggle()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t.NdJ("click",function(){t.CHM(o);const c=t.MAs(2);return r.goToFeedback(c)}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",4),t.NdJ("click",function(){return t.CHM(o),t.MAs(2).toggle()}),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"div",4),t.NdJ("click",function(){return t.CHM(o),t.MAs(2).toggle()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"div",4),t.NdJ("click",function(){return t.CHM(o),t.MAs(2).toggle()}),t._uU(32),t.ALo(33,"translate"),t.qZA()()(),t.TgZ(34,"mat-drawer-content",6)(35,"header",7),t.YNc(36,pte,2,5,"div",8),t.YNc(37,_te,2,5,"div",8),t.TgZ(38,"div",9)(39,"div",10)(40,"div",11)(41,"a",12),t.NdJ("click",function(){return r.onClickLogo()}),t._UZ(42,"img",13),t.qZA()()(),t.YNc(43,xte,3,9,"div",14),t.qZA()()()()}2&e&&(t.Q6J("ngClass",r._loginService.isNative?"appDrawer-container":"drawer-container"),t.xp6(4),t.Q6J("routerLink",t.DdM(46,M6)),t.xp6(1),t.Oqu(t.lcZ(6,26,"MENU.HOME")),t.xp6(2),t.Q6J("routerLink",t.DdM(47,O6)),t.xp6(1),t.Oqu(t.lcZ(9,28,"MENU.NEWGAME")),t.xp6(2),t.Q6J("routerLink",t.DdM(48,I6)),t.xp6(1),t.Oqu(t.lcZ(12,30,"MENU.GAMES")),t.xp6(2),t.Q6J("routerLink",t.DdM(49,P6)),t.xp6(1),t.Oqu(t.lcZ(15,32,"MENU.ACCOUNT")),t.xp6(2),t.Q6J("routerLink",t.DdM(50,k6)),t.xp6(1),t.Oqu(t.lcZ(18,34,"MENU.LEADERBOARD")),t.xp6(2),t.Q6J("routerLink",t.DdM(51,N6)),t.xp6(1),t.Oqu(t.lcZ(21,36,"MENU.BADGES")),t.xp6(3),t.Oqu(t.lcZ(24,38,"MENU.FEEDBACK")),t.xp6(2),t.Q6J("routerLink",t.DdM(52,R6)),t.xp6(1),t.Oqu(t.lcZ(27,40,"MENU.FAQ")),t.xp6(2),t.Q6J("routerLink",t.DdM(53,F6)),t.xp6(1),t.Oqu(t.lcZ(30,42,"MENU.PRIVACYPOLICY")),t.xp6(2),t.Q6J("routerLink",t.DdM(54,L6)),t.xp6(1),t.Oqu(t.lcZ(33,44,"MENU.TERMOFSERVICE")),t.xp6(2),t.Q6J("ngStyle",t.VKq(55,Cte,r.isDesktopSafari||r.isiOS?"unset":"relative")),t.xp6(2),t.Q6J("ngIf",r.isAndroid&&1==r.breakpoint&&!r._loginService.isNative),t.xp6(1),t.Q6J("ngIf",!r.isDesktopSafari&&r.isiOS&&1==r.breakpoint&&!r._loginService.isNative),t.xp6(1),t.Q6J("ngClass",t.VKq(57,wte,r._loginService.isNative)),t.xp6(1),t.Q6J("ngClass",t.VKq(59,B6,r._loginService.isNative&&!r.isiOS)),t.xp6(4),t.Q6J("ngIf",r.IsAuth&&"5"!=r._loginService.getLoggedInUser().signUpType&&"4"!=r._loginService.getLoggedInUser().signUpType))},directives:[E6,wn,ci,D6,ea,fT,uo,Qf,ti,Gt,Ei,Ir,Di,jw,Jr,u6,s6,$b],pipes:[pn],styles:[".fixedHeader[_ngcontent-%COMP%]{position:fixed;left:0;justify-content:space-between;width:100%;display:flex;z-index:2;top:0}.headerMainDiv[_ngcontent-%COMP%]{width:100%;z-index:4;background-color:#6758ba;padding:10px 50px}.appStoreText[_ngcontent-%COMP%]{background-color:#000;color:#fff;font-family:Segoe UI Regular;font-size:16px;text-align:center;padding:10px 0}.closeIcon[_ngcontent-%COMP%]{height:20px;width:20px;line-height:20px}@media only screen and (max-width: 959px){.headerMainDiv[_ngcontent-%COMP%]{width:100%;z-index:4;background-color:#6758ba;padding:10px 20px}}@media only screen and (max-width: 767px){.headerFix[_ngcontent-%COMP%]{position:fixed}.appStoreText[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#337ab7}}.logo[_ngcontent-%COMP%]{justify-content:left;width:100%}.menu[_ngcontent-%COMP%]{justify-content:right;width:100%}.logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:75px}.example-button-row[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:right}.example-flex-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap}.example-button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;width:55px}.mat-mini-fab.mat-accent[_ngcontent-%COMP%]{background-color:#fff}.mat-icon[_ngcontent-%COMP%]{color:#ff4081}header[_ngcontent-%COMP%]{margin-bottom:25px}.menuContent[_ngcontent-%COMP%] .mat-grid-tile-content{left:unset}mat-fab-menu[_ngcontent-%COMP%] button{z-index:2;box-shadow:none!important}mat-fab-menu[_ngcontent-%COMP%] button mat-icon{color:#ff4081!important}mat-fab-menu[_ngcontent-%COMP%] div div:first-child button{background-color:#fff!important}mat-fab-menu[_ngcontent-%COMP%] .ng-star-inserted button{width:70px!important;background-color:none!important}btn-group-fab[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:relative;width:100%;height:auto}.btn-group-fab[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{position:absolute;top:0;border-radius:50%;display:block;margin:4px auto}.btn-group-fab[_ngcontent-%COMP%]{width:50px;height:50px;right:50%;margin-right:20px;z-index:9}.btn-group-fab[_ngcontent-%COMP%] .btn-sub[_ngcontent-%COMP%]{top:0;z-index:8;margin-right:-20px;transition:all .5s}.btn-group-fab.active[_ngcontent-%COMP%] .subButton[_ngcontent-%COMP%] .btn-sub[_ngcontent-%COMP%]:nth-child(1){top:80px}.btn-group-fab.active[_ngcontent-%COMP%] .subButton[_ngcontent-%COMP%] .btn-sub[_ngcontent-%COMP%]:nth-child(2){top:140px}.btn-group-fab.active[_ngcontent-%COMP%] .subButton[_ngcontent-%COMP%] .btn-sub[_ngcontent-%COMP%]:nth-child(3){top:200px}.btn-group-fab.active[_ngcontent-%COMP%] .subButton[_ngcontent-%COMP%] .btn-sub[_ngcontent-%COMP%]:nth-child(4){top:260px}.btn-group-fab.active[_ngcontent-%COMP%] .subButton[_ngcontent-%COMP%] .btn-sub[_ngcontent-%COMP%]:nth-child(5){top:320px}.btn-group-fab.active[_ngcontent-%COMP%] .subButton[_ngcontent-%COMP%] .btn-sub[_ngcontent-%COMP%]:nth-child(6){top:380px}.subButton[_ngcontent-%COMP%]{top:16px;z-index:-1}.divFabBtnText[_ngcontent-%COMP%]{float:left;width:78%!important;text-align:right}.divFabBtnImg[_ngcontent-%COMP%]{float:right;width:17%!important}.divFabBtnImg[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:38px!important}.footerTitle[_ngcontent-%COMP%]{margin-right:0!important}#footer[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fabText[_ngcontent-%COMP%]{color:#fff}.fabText[_ngcontent-%COMP%]{color:#ff4081;position:relative;top:12px;background-color:#fff;border-radius:5px;padding:3px;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.hideText[_ngcontent-%COMP%]{display:none}.imgRadius[_ngcontent-%COMP%]{border-radius:50%!important;height:100%!important;width:100%;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.fabButton[_ngcontent-%COMP%]{padding:0;width:234px!important;margin-left:-18rem!important}.mainBtn[_ngcontent-%COMP%]{z-index:10;background-color:#fff!important}.drawer-container[_ngcontent-%COMP%]{position:initial}.appDrawer-container[_ngcontent-%COMP%]{position:initial;overflow:auto;-webkit-overflow-scrolling:auto}.menuContent[_ngcontent-%COMP%]{--safe-area-inset-top: env(safe-area-inset-top);--safe-area-inset-bottom: env(safe-area-inset-bottom);padding-top:calc(env(safe-area-inset-top) - 3px)}.menuP20[_ngcontent-%COMP%]{padding:20px;font-weight:700}.mat-drawer[_ngcontent-%COMP%]:not(.mat-drawer-side){position:fixed}.draw-content[_ngcontent-%COMP%]{z-index:2!important}.mat-drawer[_ngcontent-%COMP%]{z-index:4} .cdk-overlay-container{transform:translateZ(100px)!important}.headerTransform[_ngcontent-%COMP%]{transform:translateZ(100px)}.headerScrollP[_ngcontent-%COMP%]{padding-top:env(safe-area-inset-top)}.headerScrollRemoveP[_ngcontent-%COMP%]{padding-top:0}.p10[_ngcontent-%COMP%]{padding-top:10px}"]}),n})();const Ste=function(n,i,e){return{androidCurveHeader:n,iOSCurve:i,curveHeaderWithoutNotice:e}};function Dte(n,i){if(1&n&&t._UZ(0,"div",5),2&n){const e=t.oxw();t.Q6J("ngClass",t.kEZ(1,Ste,e.loginService.isNative,e.isiOS,!e.accontService.gameAppNoticeHideShow))}}function Ete(n,i){1&n&&t._UZ(0,"div",6)}const Ate=function(n){return{"login-section":n}},Mte=function(n,i,e){return{mainContentDiv:n,playGameDiv:i,mobileWebview:e}};var Ae,G6;let Ite=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M,R,K,fe){this.loginService=e,this.accontService=r,this.translate=o,this.websocketService=s,this.ngZone=c,this.location=f,this.matDialog=g,this.toasterService=v,this._router=T,this.messagingService=D,this.onlineStatusService=M,this.afAuth=R,this.newGameService=K,this.storeService=fe,this.title="lastletterfirst",this.spinkit=eM,this.history=[],T.events.subscribe(Me=>(0,Ti.mG)(this,void 0,void 0,function*(){Me instanceof Pa&&((0==this.history.length||this.history.length>0&&this.history[this.history.length-1]!=Me.urlAfterRedirects)&&this.history.push(Me.urlAfterRedirects),("/home"==Me.url||"/runningGame"==Me.url||"/leaderboard"==Me.url||"/account"==Me.url||"/badges"==Me.url||"/faq"==Me.url||"/privacy-policy"==Me.url||"/terms-of-service"==Me.url)&&this.websocketService.messages&&this.websocketService.messages.complete(),this.setClass=Me.url.startsWith("/playGame"))})),Ae=this,zt.dV.isNativePlatform()?(this.loginService.isNative=!0,this.loginService.isiOS="ios"==zt.dV.getPlatform(),this.registerNotifications(),this.addListeners(),this.initAds(),this.registerProduct(),"ios"==zt.dV.getPlatform()&&this.backgroundEvent(),this.initializeApp(),C6.getSafeAreaInsets().then(({insets:qe})=>{console.log(qe)}),C6.getStatusBarHeight().then(({statusBarHeight:qe})=>{console.log(qe,"statusbarHeight")}),uT.addListener("backButton",({})=>{this.matDialog.closeAll(),this.history.pop(),0==this.history.length||"/home"==this._router.url||"/login"==this._router.url?uT.exitApp():(console.log(this.history),console.log(Ae.location),Ae.ngZone.run(()=>{Ae._router.navigate([this.history[this.history.length-1]])}))}),w0.addListener("networkStatusChange",qe=>{console.log("Network status changed",qe),qe.connected?"/no-internet-connection"==Ae._router.url&&Ae.ngZone.run(()=>{Ae._router.navigate([Ae.loginService.currentUrl])}):"/no-internet-connection"!=Ae._router.url&&(Ae.loginService.currentUrl=-1!=Ae._router.url.indexOf("?")?Ae._router.url.split("?")[0]:Ae._router.url,this.matDialog.closeAll(),setTimeout(()=>{Ae.ngZone.run(()=>{Ae._router.navigate(["/no-internet-connection"])})},5e3))}),Al.addListener($c.Loaded,()=>{console.log("Ads loaded"),Ae.storeService.isAdLoad=!0}),Al.addListener($c.FailedToLoad,qe=>{console.log(qe+"fail"),Ae.storeService.isAdLoad=!1})):(this.loginService.isNative=!1,this.onlineStatusService.status.subscribe(Me=>{0==Me?(e.currentUrl=this._router.url,this.ngZone.run(()=>{this._router.navigate(["/no-internet-connection"])})):this.ngZone.run(()=>{this._router.navigate([e.currentUrl])})}))}ngOnInit(){console.log(navigator.language||navigator.userLanguage),this.isiOS="ios"==zt.dV.getPlatform();var e=JSON.parse(window.localStorage.getItem(ce.userProfile)),r="";if(window.localStorage.getItem(ce.language)&&e?(r=window.localStorage.getItem(ce.language),this.translate.setDefaultLang(r),this.translate.use(r)):this.loginService.getBrowserLang(""),e&&(zt.dV.isNativePlatform()||this.messagingService.receiveMessage(),this.message=this.messagingService.currentMessage,("1"==e.SignUpType||"2"==e.SignUpType)&&null==e.birthDate)){var s=new Date;s.getMonth(),s.getDate(),s.getFullYear()}}initializeApp(){zt.dV.addListener("App","appUrlOpen",e=>{Ae.openUrl(e.url)})}openUrl(e){this.ngZone.run(()=>{console.log(e);var r="",o=decodeURIComponent(e);if(r=e.split(".com").pop(),o=o.split(".com").pop(),-1==r.indexOf("/register")&&-1==r.indexOf("/resetpassword")&&-1==r.indexOf("/activation")||-1==o.indexOf(";")||(r=o.split(";")[0]),console.log(r),"/activation"==r||"/resetpassword"==r)Ae.ngZone.run(()=>Ae._router.navigate([r],{queryParams:{t:e.split("=")[1]}}));else if("/unsubscribe"==r)Ae.ngZone.run(()=>Ae._router.navigate([r],{queryParams:{isUnsubscribe:e.split("=")[1]}}));else if("/login"==r)-1!=e.indexOf(";")?Ae._router.navigate([r],{queryParams:{t:e.split("=")[1]}}):Ae._router.navigate([r]);else if(-1!=r.indexOf("/newGame")){if(-1!=e.indexOf("?"))if(console.log(e),r.split("&").length>2)var c=r.split("&")[0].split("=")[1],g=null!=(f=r.split("&")[1])?f.split("=")[1]:f,T=null!=(v=r.split("&")[2])?v.split("=")[1]:v;else c=r.split("&")[0].split("=")[1],g="",T=null!=(v=r.split("&")[1])?v.split("=")[1]:v;"/newGame"!=Ae._router.url.split("?")[0]||r.split("=")[1]==window.localStorage.getItem(ce.gameId)&&"/newGame"!=Ae.loginService.prevoiusUrl?-1!=e.indexOf("?")?Ae.ngZone.run(()=>Ae._router.navigate([r.split("?")[0]],{queryParams:{game:c,t:g,Reg:T}})):Ae.ngZone.run(()=>Ae._router.navigate([r])):(JSON.parse(window.localStorage.getItem(ce.userProfile)),Ae.ngZone.run(()=>Ae._router.navigateByUrl("/internetConnection",{skipLocationChange:!0}).then(()=>{Ae._router.navigate([r.split("?")[0]],{queryParams:{game:c,t:g,Reg:T}})})))}else if(-1!=r.indexOf("/playGame"))if(-1!=e.indexOf("?")){var f,v;console.log(e),Ae.websocketService.initSocket(r.split("=")[1]),c=r.split("&")[0].split("=")[1],g=null!=(f=r.split("&")[1])?f.split("=")[1]:f,T=null!=(v=r.split("&")[2])?v.split("=")[1]:v,Ae.ngZone.run(()=>Ae._router.navigateByUrl("/internetConnection",{skipLocationChange:!0}).then(()=>{Ae.ngZone.run(()=>Ae._router.navigate([r.split("?")[0]],{queryParams:{game:c,t:g,Reg:T}}))}))}else Ae.newGameService.playGameSource=null,Ae.ngZone.run(()=>Ae._router.navigateByUrl("/internetConnection",{skipLocationChange:!0}).then(()=>{Ae.ngZone.run(()=>Ae._router.navigate([r]))}));else Ae.ngZone.run(()=>Ae._router.navigate([r]));console.log(e)})}forgroundEvent(){console.log("foreground"),G6=uT.addListener("resume",()=>{zt.dV.isNativePlatform()&&"ios"==zt.dV.getPlatform()&&("/newGame"==Ae._router.url.split("?")[0]||"/playGame"==Ae._router.url.split("?")[0])&&(G6.remove(),Ae.initializeApp(),Ae.openUrl(ce.webBaseUrl+Ae._router.url.substr(1)))})}backgroundEvent(){console.log("background"),uT.addListener("pause",()=>{zt.dV.isNativePlatform()&&"ios"==zt.dV.getPlatform()&&("/newGame"==Ae._router.url.split("?")[0]||"/playGame"==Ae._router.url.split("?")[0])&&(Ae.forgroundEvent(),Ae.initializeApp(),this.websocketService.messages&&(this.websocketService.messages.complete(),this.websocketService.messages=null))})}initAds(){return(0,Ti.mG)(this,void 0,void 0,function*(){const e=yield Al.trackingAuthorizationStatus();console.log(e),Al.initialize({requestTrackingAuthorization:!0}),this.showBanner()})}showBanner(){return(0,Ti.mG)(this,void 0,void 0,function*(){this.loginService.adShow()})}submitBirthdate(){var e=JSON.parse(window.localStorage.getItem(ce.userProfile));this.accontService.updateBirthdate({id:e.id,birthDate:this.accontService.birthDate}).subscribe(o=>{o&&o.statusType==xn.success?(e.birthDate=o.birthDate,window.localStorage.setItem(ce.userProfile,JSON.stringify(e)),this.toasterService.Success(o.msg,"Success!"),$("#birthdatepopup").hide()):this.toasterService.Error(o.msg,"Error")})}addListeners(){return(0,Ti.mG)(this,void 0,void 0,function*(){yield pu.addListener("registration",e=>{this.loginService.tokenVal=e.value,console.info("Registration token: ",e.value)}),yield pu.addListener("registrationError",e=>{console.error("Registration error: ",e.error)}),yield pu.addListener("pushNotificationReceived",e=>{console.log("Push notification received: ",e),("/playGame"!=Ae._router.url.split("?")[0]&&"/playGame"!=Ae._router.url||e.data.gameCode!=window.localStorage.getItem(ce.gameId)||"2"!=e.data.NotificationType)&&("/newGame"!=Ae._router.url.split("?")[0]&&"/newGame"!=Ae._router.url||e.data.gameCode!=window.localStorage.getItem(ce.gameId))&&(console.log(e.data),"ios"==zt.dV.getPlatform()?XO.schedule({notifications:[{id:Number(e.data.gameId),title:e.title,body:e.body,largeBody:e.body,extra:e.data}]}):XO.schedule({notifications:[{id:Number(e.data.gameId),title:e.title,body:e.body,channelId:"my_default_channel",extra:e.data}]}))}),yield pu.addListener("pushNotificationActionPerformed",e=>{console.log("Push notification action performed",e.actionId,e.inputValue),JSON.parse(window.localStorage.getItem(ce.userProfile)),"1"==e.notification.data.NotificationType||"3"==e.notification.data.NotificationType||"5"==e.notification.data.NotificationType||"6"==e.notification.data.NotificationType||"4"==e.notification.data.NotificationType||"2"!=e.notification.data.NotificationType&&"/newGame"==Ae._router.url.split("?")[0]?(window.localStorage.setItem(ce.gameId,e.notification.data.gameCode),Ae.websocketService.initSocket(e.notification.data.gameCode),Ae.sendMsg(e.notification.data.gameCode)):"2"==e.notification.data.NotificationType||"7"==e.notification.data.NotificationType?(Ae.newGameService.playGameSource=null,window.localStorage.setItem(ce.gameId,e.notification.data.gameCode),"/playGame"==Ae._router.url.split("?")[0]?Ae.ngZone.run(()=>Ae._router.navigateByUrl("/no-internet-connection",{skipLocationChange:!0}).then(()=>{Ae._router.navigate(["/playGame"])})):Ae.ngZone.run(()=>Ae._router.navigate(["/playGame"]))):("8"==e.notification.data.NotificationType||"9"==e.notification.data.NotificationType)&&Ae.ngZone.run(()=>Ae._router.navigate(["/runningGame"]))}),yield XO.addListener("localNotificationActionPerformed",e=>{"tap"===e.actionId&&(console.log(e),JSON.parse(window.localStorage.getItem(ce.userProfile)),"1"==e.notification.extra.NotificationType||"3"==e.notification.extra.NotificationType||"5"==e.notification.extra.NotificationType||"6"==e.notification.extra.NotificationType||"4"==e.notification.extra.NotificationType||"2"!=e.notification.extra.NotificationType&&"/newGame"==Ae._router.url.split("?")[0]?(window.localStorage.setItem(ce.gameId,e.notification.extra.gameCode),Ae.websocketService.initSocket(e.notification.extra.gameCode),Ae.sendMsg(e.notification.extra.gameCode)):"8"==e.notification.extra.NotificationType||"9"==e.notification.extra.NotificationType?Ae.ngZone.run(()=>Ae._router.navigate(["/runningGame"])):("/playGame"!=Ae._router.url.split("?")[0]&&document.addEventListener("resume",function(){},!1),("2"==e.notification.extra.NotificationType||"7"==e.notification.extra.NotificationType)&&(Ae.newGameService.playGameSource=null,window.localStorage.setItem(ce.gameId,e.notification.extra.gameCode),"/playGame"==Ae._router.url.split("?")[0]?Ae.ngZone.run(()=>Ae._router.navigateByUrl("/no-internet-connection",{skipLocationChange:!0}).then(()=>{Ae._router.navigate(["/playGame"])})):Ae.ngZone.run(()=>Ae._router.navigate(["/playGame"])))))})})}registerNotifications(){return(0,Ti.mG)(this,void 0,void 0,function*(){var e=yield pu.checkPermissions();if(console.log(e),("prompt"===e.receive||"prompt-with-rationale"===e.receive)&&(e=yield pu.requestPermissions()),"granted"!==e.receive)throw new Error("User denied permissions!");pu.createChannel({id:"my_default_channel",name:"My Default Name",description:"My Default Description",sound:"ringtone",lights:!0,importance:4,visibility:1}).then(r=>{console.log("channel"+r)}),yield pu.register()})}getDeliveredNotifications(){return(0,Ti.mG)(this,void 0,void 0,function*(){const e=yield pu.getDeliveredNotifications();console.log("delivered notifications",e)})}sendMsg(e){"/newGame"==Ae._router.url.split("?")[0]||"/newGame"==Ae._router.url?Ae.ngZone.run(()=>Ae._router.navigateByUrl("/no-internet-connection",{skipLocationChange:!0}).then(()=>{Ae.ngZone.run(()=>Ae._router.navigate(["/newGame"],{queryParams:{game:e,notification:!0}}))})):Ae.ngZone.run(()=>Ae._router.navigate(["/newGame"],{queryParams:{game:e,notification:!0}}))}registerProduct(){this.storeService.getProducts({deviceType:zt.dV.getPlatform()}).subscribe(e=>{console.log(e),store.autoFinishTransactions=!0,this.storeService.approvedProduct="",e.data.forEach(r=>{store.register({id:r.product_Id,type:r.type})}),store.error(function(r){console.log("ERROR "+r.code+": "+r.message)}),store.validator=Ae.receiptValidator,store.when("lifetime_adremoval_20210621").updated(Ae.getNonConsumableProduct),store.when("monthly_adremoval_20210621").updated(Ae.getNonConsumableProduct),store.when("lifetime_adremoval_20210621").approved(Ae.approvedProduct).verified(function(r){r.finish(),""!=Ae.storeService.selectProductId&&Ae.toasterService.Success(r.transaction.message),Ae.storeService.selectProductId=""}),store.when("monthly_adremoval_20210621").approved(Ae.approvedProduct).verified(function(r){r.finish(),""!=Ae.storeService.selectProductId&&Ae.toasterService.Success(r.transaction.message),Ae.storeService.selectProductId=""}).cancelled(Ae.getNonConsumableProduct),store.when("lifetime_adremoval_20210621").owned(function(r){Ae.ownedProduct(r,!0)}),store.when("monthly_adremoval_20210621").owned(function(r){Ae.ownedProduct(r,!0)}),store.ready(function(){Ae.storeService.isPurchased=!1,Ae.getNonConsumableProduct()}),store.refresh()})}getNonConsumableProduct(){Ae.storeService.productList=[],Ae.storeService.productList.push(Ae.getProductDetail("lifetime_adremoval_20210621")),Ae.getSubscribeProduct()}getSubscribeProduct(){for(var e=0;e1&&"monthly_adremoval_20210621"==Ae.storeService.productList[e].id?(Ae.storeService.productList.splice(e,1),Ae.storeService.productList.push(Ae.getProductDetail("monthly_adremoval_20210621"))):1==Ae.storeService.productList.length&&Ae.storeService.productList.push(Ae.getProductDetail("monthly_adremoval_20210621")),Ae.storeService.productList[e].owned&&!Ae.storeService.isAlreadyPurchased&&(Ae.storeService.isPurchased=!0,Ae.storeService.purchasedProduct.productName=Ae.storeService.productList[e].title),"finished"==Ae.storeService.productList[e].state&&(Ae.storeService.isFinished=!0,Ae.ownedProduct(Ae.storeService.productList[e],!1))}getProductDetail(e){return store.get(e)}approvedProduct(e){console.log(e),Ae.storeService.approvedProduct=e,Ae.storeService.purchasedProduct.productName=e.title,e.verify()}ownedProduct(e,r){console.log("owned"+e),r&&(Ae.storeService.isFinished=!1,Ae.storeService.isPurchased=!0,Ae.storeService.isPlanSubscribe=!0,Ae.storeService.isPlanExpire=!1),Ae.storeService.purchasedProduct.productName=e.title;var o=Ae.loginService.getLoggedInUser();o.isPlanSubscribed=1,o.isExpired=0,window.localStorage.setItem(ce.userProfile,JSON.stringify(o)),Al.hideBanner()}receiptValidator(e,r){if(Ae.loginService.IsAuthenthicated()){var o={userId:Ae.loginService.getLoggedInUser().id,product:e};if((e.type==store.APPLICATION||e.alias==store.APPLICATION)&&"ios"==zt.dV.getPlatform())return void r(!0,e);Ae.storeService.receiptVerification(o).subscribe(s=>{Ae.storeService.approvedProduct=e,null!=s&&(s&&s.statusType==xn.success?(Ae.storeService.receiptObj=s.data,Ae.storeService.purchasedProduct.productType=e.type,Ae.storeService.purchasedProduct.expiryDate=Ae.storeService.receiptObj.expiredDateTime,Ae.storeService.receiptObj.message=s.msg,Ae.storeService.isAlreadyPurchased=!1,Ae.storeService.alreadyPurchaseMsg="",r(!0,{transaction:Ae.storeService.receiptObj})):(console.log(s),Ae.storeService.isAlreadyPurchased=null!=s.isAlreadyPurchased&&s.isAlreadyPurchased,Ae.storeService.isAlreadyPurchased&&(Ae.storeService.alreadyPurchaseMsg=s.msg),1==s.data.isExpired?(Ae.storeService.isPurchased=!1,Ae.storeService.isPlanSubscribe=!1,Ae.storeService.isPlanExpire=!0,console.log(Ae.storeService.isPurchased)):0==s.data.isExpired&&1==s.data.paymentState&&(Ae.storeService.isPurchased=!0,Ae.storeService.isPlanSubscribe=!0,Ae.storeService.isPlanExpire=!1,console.log(Ae.storeService.isPurchased)),r(!1,{code:store.PURCHASE_EXPIRED,error:{message:s.msg}})))})}}ngOnDestroy(){store.off(Ae.receiptValidator),store.off(Ae.approvedProduct),store.off(Ae.getNonConsumableProduct)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn),t.Y36(Es),t.Y36(Zn),t.Y36(tc),t.Y36(t.R0b),t.Y36(et),t.Y36(l),t.Y36(I),t.Y36(Ht),t.Y36(Wm),t.Y36(KO),t.Y36(hT),t.Y36(bo),t.Y36(Wb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-root"]],decls:7,vars:17,consts:[[3,"ngClass"],[3,"backdrop","backgroundColor","debounceDelay","extraDuration","minDuration","opacity","spinner"],["class","curveHeader",3,"ngClass",4,"ngIf"],[1,"marginTop",3,"ngClass"],["class","bottomSafeArea",4,"ngIf"],[1,"curveHeader",3,"ngClass"],[1,"bottomSafeArea"]],template:function(e,r){1&e&&(t.TgZ(0,"section",0),t._UZ(1,"ng-http-loader",1)(2,"app-header"),t.YNc(3,Dte,1,5,"div",2),t.TgZ(4,"div",3),t._UZ(5,"router-outlet"),t.qZA(),t.YNc(6,Ete,1,0,"div",4),t.qZA()),2&e&&(t.Q6J("ngClass",t.VKq(11,Ate,!(null!=r.loginService.getLoggedInUser()&&"5"!=r.loginService.getLoggedInUser().signUpType&&"4"!=r.loginService.getLoggedInUser().signUpType||"/login"!=r._router.url&&"/register"!=r._router.url&&-1==r._router.url.indexOf("/resetpassword")))),t.xp6(1),t.Q6J("backdrop",!1)("backgroundColor","#337ab7")("debounceDelay",100)("extraDuration",800)("minDuration",500)("opacity",.6)("spinner",r.spinkit.skDoubleBounce),t.xp6(2),t.Q6J("ngIf",null!=r.loginService.getLoggedInUser()&&"/login"!=r._router.url&&"/register"!=r._router.url||-1!=r._router.url.indexOf("/unsubscribe")||-1!=r._router.url.indexOf("/no-internet-connection")||-1!=r._router.url.indexOf("/newGame")||-1!=r._router.url.indexOf("/activation")),t.xp6(1),t.Q6J("ngClass",t.kEZ(13,Mte,(null!=r.loginService.getLoggedInUser()||-1!=r._router.url.indexOf("/unsubscribe")||-1!=r._router.url.indexOf("/no-internet-connection")||-1!=r._router.url.indexOf("/newGame")||-1!=r._router.url.indexOf("/activation"))&&"/login"!=r._router.url&&"/register"!=r._router.url&&-1==r._router.url.indexOf("/resetpassword"),r.setClass,!r.loginService.isNative&&-1==r._router.url.indexOf("/playGame")||!r.loginService.isNative&&r.accontService.gameAppNoticeHideShow&&-1!=r._router.url.indexOf("/playGame"))),t.xp6(2),t.Q6J("ngIf",r.isiOS))},directives:[wn,ci,HH,Tte,Gt,K_],styles:["#birthdatepopup.h5[_ngcontent-%COMP%], #birthdatepopup[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.invalid-feedback[_ngcontent-%COMP%]{font-size:14px;margin:-12px 0 10px 6px;color:red}#double-circle-bounce[_ngcontent-%COMP%]{width:40px;height:40px;position:absolute;margin:22% 48%;z-index:1}#double-circle-bounce[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#337ab7;opacity:.6;position:absolute;top:0;left:0;animation:double-bounce 2s infinite ease-in-out}#double-circle-bounce[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-1s}@keyframes double-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}section[_ngcontent-%COMP%]{width:100%;position:absolute;--safe-area-inset-top: env(safe-area-inset-top);--safe-area-inset-bottom: env(safe-area-inset-bottom);height:100%} .login-section{background:unset!important;width:100%!important;position:absolute!important;background-color:#6758ba!important;overflow:auto;overflow-x:hidden;height:100%!important} .playGameDiv{padding-bottom:0!important}.mainContentDiv[_ngcontent-%COMP%]{padding-bottom:calc(env(safe-area-inset-bottom) + 65px);padding-left:20px;padding-right:20px}.curveHeader[_ngcontent-%COMP%]{background-image:url(/assets/images/curve_header.png);background-repeat:no-repeat;background-size:100% 70vh;height:70vh;position:fixed;width:100%;z-index:-1}@media screen and (max-width : 959px){section[_ngcontent-%COMP%]{background-size:contain}.curveHeader[_ngcontent-%COMP%]{background-image:url(/assets/images/mobile_bg.png);background-size:100% 71vh;height:90vh;margin-top:72px}.androidCurveHeader[_ngcontent-%COMP%]{background-image:url(/assets/images/mobile_bg.png);background-size:100% 62vh!important;height:90vh;margin-top:72px} .login-section{height:100%!important}.bottomSafeArea[_ngcontent-%COMP%]{height:env(safe-area-inset-bottom);background-color:#fff;position:fixed;bottom:0;width:100%;z-index:4}.iOSCurve[_ngcontent-%COMP%]{background-size:100% 62vh!important}.mobileWebview[_ngcontent-%COMP%]{margin-top:150px!important}}@media screen and (max-width: 768px){.curveHeader[_ngcontent-%COMP%]{background-size:100% 55vh}}.androidCurveHeader[_ngcontent-%COMP%]{background-image:url(/assets/images/mobile_bg.png);background-size:100% 62vh!important;height:90vh;margin-top:72px}.iOSCurve[_ngcontent-%COMP%]{background-size:100% 62vh!important}.marginTop[_ngcontent-%COMP%]{margin-top:calc(env(safe-area-inset-top) + 86px);position:initial;height:auto}.curveHeaderWithoutNotice[_ngcontent-%COMP%]{background-size:100% 46vh}@media screen and (max-width: 426px){.curveHeader[_ngcontent-%COMP%]{background-size:100% 61vh}.curveHeaderWithoutNotice[_ngcontent-%COMP%]{background-size:100% 52vh}}@media screen and (max-width: 377px){.curveHeader[_ngcontent-%COMP%]{background-size:100% 71vh}.curveHeaderWithoutNotice[_ngcontent-%COMP%]{background-size:100% 59vh}.iOSCurve[_ngcontent-%COMP%]{background-size:100% 64vh!important}}@media only screen and (min-device-width: 359px) and (min-device-height: 663px) and (max-device-height: 767px){.curveHeader[_ngcontent-%COMP%]{background-size:100% 84vh}.curveHeaderWithoutNotice[_ngcontent-%COMP%]{background-size:100% 71vh}}"]}),n})();function Ote(n,i){if(1&n&&(t.TgZ(0,"label",2)(1,"span",3),t._uU(2),t.qZA(),t.TgZ(3,"span",4),t._uU(4),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Udp("color",e.getColor("checkedTextColor")),t.uIk("aria-label",e.checkedLabel),t.xp6(1),t.Oqu(e.checkedLabel),t.xp6(1),t.Udp("color",e.getColor("uncheckedTextColor")),t.uIk("aria-label",e.uncheckedLabel),t.xp6(1),t.Oqu(e.uncheckedLabel)}}const kte=["*"],U6=new t.OlP("UI_SWITCH_OPTIONS"),Pte={provide:Be,useExisting:(0,t.Gpc)(()=>Nte),multi:!0};let Nte=(()=>{class n{constructor(e={},r){this.cdr=r,this.change=new t.vpe,this.changeEvent=new t.vpe,this.valueChange=new t.vpe,this.onTouchedCallback=o=>{},this.onChangeCallback=o=>{},this.size=e&&e.size||"medium",this.color=e&&e.color,this.switchOffColor=e&&e.switchOffColor,this.switchColor=e&&e.switchColor,this.defaultBgColor=e&&e.defaultBgColor,this.defaultBoColor=e&&e.defaultBoColor,this.checkedLabel=e&&e.checkedLabel,this.uncheckedLabel=e&&e.uncheckedLabel,this.checkedTextColor=e&&e.checkedTextColor,this.uncheckedTextColor=e&&e.uncheckedTextColor}set checked(e){this._checked=!1!==e}get checked(){return this._checked}set disabled(e){this._disabled=!1!==e}get disabled(){return this._disabled}set reverse(e){this._reverse=!1!==e}get reverse(){return this._reverse}set loading(e){this._loading=!1!==e}get loading(){return this._loading}getColor(e=""){return"borderColor"===e?this.defaultBoColor:"switchColor"===e?this.reverse?this.checked&&this.switchOffColor||this.switchColor:this.checked?this.switchColor:this.switchOffColor||this.switchColor:"checkedTextColor"===e?this.reverse?this.uncheckedTextColor:this.checkedTextColor:"uncheckedTextColor"===e?this.reverse?this.checkedTextColor:this.uncheckedTextColor:this.reverse?this.checked?this.defaultBgColor:this.color:this.checked?this.color:this.defaultBgColor}onClick(e){this.disabled||(this.checked=!this.checked,this.change.emit(this.checked),this.valueChange.emit(this.checked),this.changeEvent.emit(e),this.onChangeCallback(this.checked),this.onTouchedCallback(this.checked),this.cdr.markForCheck())}onToggle(e){this.disabled||(this.beforeChange?this._beforeChange=this.beforeChange.subscribe(r=>{r&&this.onClick(e)}):this.onClick(e))}writeValue(e){e!==this.checked&&(this.checked=!!e),this.onChangeCallback(this.checked),this.cdr&&this.cdr.markForCheck()}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.disabled=e}ngOnDestroy(){this._beforeChange&&this._beforeChange.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U6,8),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ui-switch"]],hostBindings:function(e,r){1&e&&t.NdJ("click",function(s){return r.onToggle(s)})},inputs:{size:"size",color:"color",switchOffColor:"switchOffColor",switchColor:"switchColor",defaultBgColor:"defaultBgColor",defaultBoColor:"defaultBoColor",checkedLabel:"checkedLabel",uncheckedLabel:"uncheckedLabel",checkedTextColor:"checkedTextColor",uncheckedTextColor:"uncheckedTextColor",beforeChange:"beforeChange",checked:"checked",disabled:"disabled",reverse:"reverse",loading:"loading"},outputs:{change:"change",changeEvent:"changeEvent",valueChange:"valueChange"},features:[t._Bn([Pte])],ngContentSelectors:kte,decls:4,vars:20,consts:[["type","button","role","switch",1,"switch"],["class","switch-pane",4,"ngIf"],[1,"switch-pane"],[1,"switch-label-checked"],[1,"switch-label-unchecked"]],template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"button",0),t.YNc(1,Ote,5,8,"label",1),t.TgZ(2,"small"),t.Hsn(3),t.qZA()()),2&e&&(t.Udp("background-color",r.getColor())("border-color",r.getColor("borderColor")),t.ekj("checked",r.checked)("disabled",r.disabled)("loading",r.loading)("switch-large","large"===r.size)("switch-medium","medium"===r.size)("switch-small","small"===r.size),t.uIk("aria-checked",r.checked),t.xp6(1),t.Q6J("ngIf",r.checkedLabel||r.uncheckedLabel),t.xp6(1),t.Udp("background",r.getColor("switchColor")))},directives:[Gt],encapsulation:2}),n})(),Rte=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:U6,useValue:e||{}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si,L1],L1]}),n})();class Fte{constructor(i,e="/assets/i18n/",r=".json"){this.http=i,this.prefix=e,this.suffix=r}getTranslation(i){return this.http.get(`${this.prefix}${i}${this.suffix}`)}}const Qb=new t.OlP("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),H6=new t.OlP("ngx-window",{providedIn:"root",factory:()=>function Bte(n){return _e(n)?window:null}((0,t.f3M)(t.Lbi))}),Ute=new t.OlP("ngx-data-layer",{providedIn:"root",factory:()=>function Gte(n){return n?n.dataLayer=n.dataLayer||[]:null}((0,t.f3M)(H6))}),tk=new t.OlP("ngx-gtag-fn",{providedIn:"root",factory:()=>function Hte(n,i){return n?n.gtag=n.gtag||function(){i.push(arguments)}:null}((0,t.f3M)(H6),(0,t.f3M)(Ute))});let j6=(()=>{class n{constructor(e,r,o){this.settings=e,this._document=r,this._gtag=o}get document(){return this._document}throw(e){(this.settings.enableTracing||(0,t.X6Q)())&&console&&console.error&&console.error(e)}toKeyValue(e){return e.size>0?Array.from(e).reduce((r,[o,s])=>Object.defineProperty(r,o,{value:s,enumerable:!0}),{}):void 0}gtag(...e){try{this._gtag(...e.filter(r=>void 0!==r))}catch(r){this.throw(r)}}event(e,r,o,s,c){try{const f=new Map;r&&f.set("event_category",r),o&&f.set("event_label",o),s&&f.set("value",s),void 0!==c&&f.set("interaction",c);const g=this.toKeyValue(f);g?this.gtag("event",e,g):this.gtag("event",e)}catch(f){this.throw(f)}}pageView(e,r,o,s){try{const c=new Map([["page_path",e]]);r&&c.set("page_title",r),(o||this.document)&&c.set("page_location",o||this.document.location.href),s&&Object.entries(s).map(([f,g])=>c.set(f,g)),this.gtag("config",this.settings.trackingCode,this.toKeyValue(c))}catch(c){this.throw(c)}}appView(e,r,o,s,c){try{const f=new Map([["screen_name",e],["app_name",r]]);o&&f.set("app_id",o),s&&f.set("app_version",s),c&&f.set("app_installer_id",c),this.gtag("event","screen_view",this.toKeyValue(f))}catch(f){this.throw(f)}}set(...e){try{this._gtag("set",...e)}catch(r){this.throw(r)}}exception(e,r){try{const o=new Map;e&&o.set("description",e),r&&o.set("fatal",r),this.toKeyValue(o)?this.gtag("event","exception",this.toKeyValue(o)):this.gtag("event","exception")}catch(o){this.throw(o)}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Qb),t.LFG(ee),t.LFG(tk))},n.\u0275prov=(0,t.Yz7)({factory:function(){return new n((0,t.LFG)(Qb),(0,t.LFG)(ee),(0,t.LFG)(tk))},token:n,providedIn:"root"}),n})();const Vte={provide:t.ip1,multi:!0,useFactory:function Zte(n,i,e){return()=>(0,Ti.mG)(this,void 0,void 0,function*(){var r;if(!n.trackingCode)return void((0,t.X6Q)()||console.error("Empty tracking code for Google Analytics. Make sure to provide one when initializing NgxGoogleAnalyticsModule."));if(!i)return void((0,t.X6Q)()||console.error("Was not possible create or read gtag() fn. Make sure this module is running on a Browser w/ access to Window interface."));e||(0,t.X6Q)()||console.error("Was not possible to access Document interface. Make sure this module is running on a Browser w/ access do Document interface."),n.uri=n.uri||`https://www.googletagmanager.com/gtag/js?id=${n.trackingCode}`,n.initCommands=null!==(r=null==n?void 0:n.initCommands)&&void 0!==r?r:[],n.initCommands.find(c=>"config"===c.command)||n.initCommands.unshift({command:"config",values:[n.trackingCode]}),n.initCommands.find(c=>"js"===c.command)||n.initCommands.unshift({command:"js",values:[new Date]});for(const c of n.initCommands)i(c.command,...c.values);const o=e.createElement("script");o.async=!0,o.src=n.uri,n.nonce&&o.setAttribute("nonce",n.nonce),e.getElementsByTagName("head")[0].appendChild(o)})},deps:[Qb,tk,ee]},V6=new t.OlP("ngx-google-analytics-routing-settings",{factory:()=>({})}),Wte={provide:t.tb,multi:!0,useFactory:function qte(n,i){return e=>(0,Ti.mG)(this,void 0,void 0,function*(){const r=e.injector.get(Ht),{include:o=[],exclude:s=[]}=null!=n?n:{},c=Z6(o),f=Z6(s),g=r.events.pipe(Yt(v=>v instanceof Pa),Ed(1),Yt(v=>!(c.length>0)||c.some(T=>T.test(v.urlAfterRedirects))),Yt(v=>!(f.length>0&&f.some(T=>T.test(v.urlAfterRedirects))))).subscribe(v=>i.pageView(v.urlAfterRedirects,void 0));e.onDestroy(()=>g.unsubscribe())})},deps:[V6,j6]};function Z6(n){return n.map(i=>i instanceof RegExp?i:new RegExp(`^${i.replace("*",".*")}$`,"i"))}let W6=(()=>{class n{static forRoot(e,r=[],o,s,c){return{ngModule:n,providers:[{provide:Qb,useValue:{trackingCode:e,initCommands:r,uri:o,enableTracing:s,nonce:c}},Vte]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[]]}),n})(),zte=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:V6,useValue:null!=e?e:{}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Wte],imports:[[si,W6]]}),n})();const{isArray:$te}=Array;function q6(n){return 1===n.length&&$te(n[0])?n[0]:n}function pT(...n){const i=(0,ts.jO)(n),e=q6(n);return e.length?new Yn.y(r=>{let o=e.map(()=>[]),s=e.map(()=>!1);r.add(()=>{o=s=null});for(let c=0;!r.closed&&c{if(o[c].push(f),o.every(g=>g.length)){const g=o.map(v=>v.shift());r.next(i?i(...g):g),o.some((v,T)=>!v.length&&s[T])&&r.complete()}},()=>{s[c]=!0,!o[c].length&&r.complete()}));return()=>{o=s=null}}):Zr.E}new Yn.y(ud.Z),Math,Math,Math;const aie=["*"],Sie=["dialog"];function fk(n){return"string"==typeof n}function np(n){return null!=n}function a_(n){return(n||document.body).getBoundingClientRect()}const hG={animation:!0,transitionTimerDelayMs:5},bre=()=>{},{transitionTimerDelayMs:yre}=hG,ry=new Map,Oo=(n,i,e,r)=>{let o=r.context||{};const s=ry.get(i);if(s)switch(r.runningTransition){case"continue":return Zr.E;case"stop":n.run(()=>s.transition$.complete()),o=Object.assign(s.context,o),ry.delete(i)}const c=e(i,r.animation,o)||bre;if(!r.animation||"none"===window.getComputedStyle(i).transitionProperty)return n.run(()=>c()),ut(void 0).pipe(function _re(n){return i=>new Yn.y(e=>i.subscribe({next:c=>n.run(()=>e.next(c)),error:c=>n.run(()=>e.error(c)),complete:()=>n.run(()=>e.complete())}))}(n));const f=new ft.x,g=new ft.x,v=f.pipe(function Jte(...n){return i=>Lo(i,ut(...n))}(!0));ry.set(i,{transition$:f,complete:()=>{g.next(),g.complete()},context:o});const T=function vre(n){const{transitionDelay:i,transitionDuration:e}=window.getComputedStyle(n);return 1e3*(parseFloat(i)+parseFloat(e))}(i);return n.runOutsideAngular(()=>{const D=Si(i,"transitionend").pipe(It(v),Yt(({target:R})=>R===i));(function z6(...n){return 1===(n=q6(n)).length?(0,fr.Xf)(n[0]):new Yn.y(function Yte(n){return i=>{let e=[];for(let r=0;e&&!i.closed&&r{if(e){for(let s=0;s{ry.delete(i),n.run(()=>{c(),f.next(),f.complete()})})}),f.asObservable()};let yT=(()=>{class n{constructor(){this.animation=hG.animation}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),bG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),xG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})(),TG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),SG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var Fr=(()=>{return(n=Fr||(Fr={}))[n.Tab=9]="Tab",n[n.Enter=13]="Enter",n[n.Escape=27]="Escape",n[n.Space=32]="Space",n[n.PageUp=33]="PageUp",n[n.PageDown=34]="PageDown",n[n.End=35]="End",n[n.Home=36]="Home",n[n.ArrowLeft=37]="ArrowLeft",n[n.ArrowUp=38]="ArrowUp",n[n.ArrowRight=39]="ArrowRight",n[n.ArrowDown=40]="ArrowDown",Fr;var n})();"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const EG=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function AG(n){const i=Array.from(n.querySelectorAll(EG)).filter(e=>-1!==e.tabIndex);return[i[0],i[i.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let FG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si,L1]]}),n})(),UG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();class sp{constructor(i,e,r){this.nodes=i,this.viewRef=e,this.componentRef=r}}let foe=(()=>{class n{constructor(e,r){this._el=e,this._zone=r}ngOnInit(){this._zone.onStable.asObservable().pipe((0,_n.q)(1)).subscribe(()=>{Oo(this._zone,this._el.nativeElement,(e,r)=>{r&&a_(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Oo(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,r){2&e&&(t.Tol("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),t.ekj("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,r){},encapsulation:2}),n})();class HG{close(i){}dismiss(i){}}class poe{constructor(i,e,r,o){this._windowCmptRef=i,this._contentRef=e,this._backdropCmptRef=r,this._beforeDismiss=o,this._closed=new ft.x,this._dismissed=new ft.x,this._hidden=new ft.x,i.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,c)=>{this._resolve=s,this._reject=c}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(It(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(It(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(i){this._windowCmptRef&&(this._closed.next(i),this._resolve(i),this._removeModalElements())}_dismiss(i){this._dismissed.next(i),this._reject(i),this._removeModalElements()}dismiss(i){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function dG(n){return n&&n.then}(e)?!1!==e&&this._dismiss(i):e.then(r=>{!1!==r&&this._dismiss(i)},()=>{})}else this._dismiss(i)}_removeModalElements(){const i=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ut(void 0);i.subscribe(()=>{const{nativeElement:r}=this._windowCmptRef.location;r.parentNode.removeChild(r),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:r}=this._backdropCmptRef.location;r.parentNode.removeChild(r),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),pT(i,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var ly=(()=>{return(n=ly||(ly={}))[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC",ly;var n})();let goe=(()=>{class n{constructor(e,r,o){this._document=e,this._elRef=r,this._zone=o,this._closed$=new ft.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new t.vpe,this.shown=new ft.x,this.hidden=new ft.x}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":fk(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,_n.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,r={animation:this.animation,runningTransition:"stop"},c=pT(Oo(this._zone,e,()=>e.classList.remove("show"),r),Oo(this._zone,this._dialogEl.nativeElement,()=>{},r));return c.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),c}_show(){const e={animation:this.animation,runningTransition:"continue"};pT(Oo(this._zone,this._elRef.nativeElement,(s,c)=>{c&&a_(s),s.classList.add("show")},e),Oo(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Si(e,"keydown").pipe(It(this._closed$),Yt(o=>o.which===Fr.Escape)).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(ly.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let r=!1;Si(this._dialogEl.nativeElement,"mousedown").pipe(It(this._closed$),gi(()=>r=!1),En(()=>Si(e,"mouseup").pipe(It(this._closed$),(0,_n.q)(1))),Yt(({target:o})=>e===o)).subscribe(()=>{r=!0}),Si(e,"click").pipe(It(this._closed$)).subscribe(({target:o})=>{e===o&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!r&&this._zone.run(()=>this.dismiss(ly.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const r=e.querySelector("[ngbAutofocus]"),o=AG(e)[0];(r||o||e).focus()}}_restoreFocus(){const e=this._document.body,r=this._elWithFocus;let o;o=r&&r.focus&&e.contains(r)?r:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Oo(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ee),t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngb-modal-window"]],viewQuery:function(e,r){if(1&e&&t.Gf(Sie,7),2&e){let o;t.iGM(o=t.CRH())&&(r._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,r){2&e&&(t.uIk("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),t.Tol("modal d-block"+(r.windowClass?" "+r.windowClass:"")),t.ekj("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:aie,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"div",0,1)(2,"div",2),t.Hsn(3),t.qZA()()),2&e&&t.Tol("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),n})(),moe=(()=>{class n{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),r=this._document.body,o=r.style,{overflow:s,paddingRight:c}=o;if(e>0){const f=parseFloat(window.getComputedStyle(r).paddingRight);o.paddingRight=`${f+e}px`}return o.overflow="hidden",()=>{e>0&&(o.paddingRight=c),o.overflow=s}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ee))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_oe=(()=>{class n{constructor(e,r,o,s,c,f){this._applicationRef=e,this._injector=r,this._document=o,this._scrollBar=s,this._rendererFactory=c,this._ngZone=f,this._activeWindowCmptHasChanged=new ft.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new t.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const g=this._windowCmpts[this._windowCmpts.length-1];((n,i,e,r=!1)=>{this._ngZone.runOutsideAngular(()=>{const o=Si(i,"focusin").pipe(It(e),(0,Le.U)(s=>s.target));Si(i,"keydown").pipe(It(e),Yt(s=>s.which===Fr.Tab),H1(o)).subscribe(([s,c])=>{const[f,g]=AG(i);(c===f||c===i)&&s.shiftKey&&(g.focus(),s.preventDefault()),c===g&&!s.shiftKey&&(f.focus(),s.preventDefault())}),r&&Si(i,"click").pipe(It(e),H1(o),(0,Le.U)(s=>s[1])).subscribe(s=>s.focus())})})(0,g.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(g.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,r,o,s){const c=s.container instanceof HTMLElement?s.container:np(s.container)?this._document.querySelector(s.container):this._document.body,f=this._rendererFactory.createRenderer(null,null);if(!c)throw new Error(`The specified modal container "${s.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const g=new HG,v=this._getContentRef(e,s.injector||r,o,g,s);let T=!1!==s.backdrop?this._attachBackdrop(e,c):void 0,D=this._attachWindowComponent(e,c,v),M=new poe(D,v,T,s.beforeDismiss);return this._registerModalRef(M),this._registerWindowCmpt(D),M.hidden.pipe((0,_n.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(f.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),g.close=R=>{M.close(R)},g.dismiss=R=>{M.dismiss(R)},this._applyWindowOptions(D.instance,s),1===this._modalRefs.length&&f.addClass(this._document.body,"modal-open"),T&&T.instance&&(this._applyBackdropOptions(T.instance,s),T.changeDetectorRef.detectChanges()),D.changeDetectorRef.detectChanges(),M}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(r=>r.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,r){let s=e.resolveComponentFactory(foe).create(this._injector);return this._applicationRef.attachView(s.hostView),r.appendChild(s.location.nativeElement),s}_attachWindowComponent(e,r,o){let c=e.resolveComponentFactory(goe).create(this._injector,o.nodes);return this._applicationRef.attachView(c.hostView),r.appendChild(c.location.nativeElement),c}_applyWindowOptions(e,r){this._windowAttributes.forEach(o=>{np(r[o])&&(e[o]=r[o])})}_applyBackdropOptions(e,r){this._backdropAttributes.forEach(o=>{np(r[o])&&(e[o]=r[o])})}_getContentRef(e,r,o,s,c){return o?o instanceof t.Rgc?this._createFromTemplateRef(o,s):fk(o)?this._createFromString(o):this._createFromComponent(e,r,o,s,c):new sp([])}_createFromTemplateRef(e,r){const s=e.createEmbeddedView({$implicit:r,close(c){r.close(c)},dismiss(c){r.dismiss(c)}});return this._applicationRef.attachView(s),new sp([s.rootNodes],s)}_createFromString(e){const r=this._document.createTextNode(`${e}`);return new sp([[r]])}_createFromComponent(e,r,o,s,c){const f=e.resolveComponentFactory(o),g=t.zs3.create({providers:[{provide:HG,useValue:s}],parent:r}),v=f.create(g),T=v.location.nativeElement;return c.scrollable&&T.classList.add("component-host-scrollable"),this._applicationRef.attachView(v.hostView),new sp([[T]],v.hostView,v)}_setAriaHidden(e){const r=e.parentElement;r&&e!==this._document.body&&(Array.from(r.children).forEach(o=>{o!==e&&"SCRIPT"!==o.nodeName&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,r)=>{e?r.setAttribute("aria-hidden",e):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const r=()=>{const o=this._modalRefs.indexOf(e);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(r,r)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const r=this._windowCmpts.indexOf(e);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t.zs3),t.LFG(ee),t.LFG(moe),t.LFG(t.FYo),t.LFG(t.R0b))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),voe=(()=>{class n{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(yT))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),boe=(()=>{class n{constructor(e,r,o,s){this._moduleCFR=e,this._injector=r,this._modalStack=o,this._config=s}open(e,r={}){const o=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),r);return this._modalStack.open(this._moduleCFR,this._injector,e,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t._Vd),t.LFG(t.zs3),t.LFG(_oe),t.LFG(voe))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[boe]}),n})(),qG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),eU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),nU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),iU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),rU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),oU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),sU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),aU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();new t.OlP("live announcer delay",{providedIn:"root",factory:function koe(){return 100}});let lU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si]]}),n})(),cU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();const Poe=[vG,bG,xG,TG,SG,FG,UG,jG,qG,cU,eU,nU,iU,rU,oU,sU,aU,lU];let uU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Poe,vG,bG,xG,TG,SG,FG,UG,jG,qG,cU,eU,nU,iU,rU,oU,sU,aU,lU]}),n})(),Noe=(()=>{class n{constructor(e){this.spinner=e,this.ep=new to}intercept(e,r){const o=e.clone({headers:e.headers.set("platform",zt.dV.getPlatform()).set("deviceLangCode",window.localStorage.getItem(ce.language))});return o.url==this.ep.getProfilePicture?this.spinner.hide():o.url==this.ep.createGame&&setTimeout(()=>{this.spinner.hide()},500),r.handle(o).pipe(gi(s=>{if(s instanceof rd)return s.body},s=>{}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Nf))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const Roe=["*",[["mat-card-footer"]]],Foe=["*","mat-card-footer"];let Loe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),Boe=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ii,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,r){2&e&&t.ekj("_mat-animation-noopable","NoopAnimations"===r._animationMode)},exportAs:["matCard"],ngContentSelectors:Foe,decls:2,vars:0,template:function(e,r){1&e&&(t.F$t(Roe),t.Hsn(0),t.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),n})(),Goe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[In],In]}),n})(),vU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[YA]]}),n})(),aae=(()=>{class n{constructor(e,r){Ue(r)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,r=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Qa,useValue:Object.assign(Object.assign({},JA),e)},{provide:QA,useValue:r,multi:!0},{provide:Dm,useValue:!0}]:[{provide:Qa,useValue:Object.assign(Object.assign({},JA),e)},{provide:QA,useValue:r,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Dm),t.LFG(t.Lbi))},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[aF,K3,vU],aF,K3,vU]}),n})();function lae(n,i){1&n&&t.Hsn(0)}const bU=["*"];function cae(n,i){}const uae=function(n){return{animationDuration:n}},dae=function(n,i){return{value:n,params:i}},hae=["tabListContainer"],fae=["tabList"],pae=["tabListInner"],gae=["nextPaginator"],mae=["previousPaginator"],_ae=["tabBodyWrapper"],vae=["tabHeader"];function bae(n,i){}function yae(n,i){if(1&n&&t.YNc(0,bae,0,0,"ng-template",10),2&n){const e=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",e.templateLabel)}}function xae(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw().$implicit;t.Oqu(e.textLabel)}}function Cae(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const o=t.CHM(e),s=o.$implicit,c=o.index,f=t.oxw(),g=t.MAs(1);return f._handleClick(s,g,c)})("cdkFocusChange",function(o){const c=t.CHM(e).index;return t.oxw()._tabFocusChanged(o,c)}),t.TgZ(1,"div",7),t.YNc(2,yae,1,1,"ng-template",8),t.YNc(3,xae,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&n){const e=i.$implicit,r=i.index,o=t.MAs(4),s=t.oxw();t.ekj("mat-tab-label-active",s.selectedIndex===r),t.Q6J("id",s._getTabLabelId(r))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||s.disableRipple),t.uIk("tabIndex",s._getTabIndex(e,r))("aria-posinset",r+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(r))("aria-selected",s.selectedIndex===r)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",e.templateLabel)("ngIfElse",o)}}function wae(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){return t.CHM(e),t.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(o){return t.CHM(e),t.oxw()._setTabBodyWrapperHeight(o)}),t.qZA()}if(2&n){const e=i.$implicit,r=i.index,o=t.oxw();t.ekj("mat-tab-body-active",o.selectedIndex===r),t.Q6J("id",o._getTabContentId(r))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",o.animationDuration),t.uIk("tabindex",null!=o.contentTabIndex&&o.selectedIndex===r?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(r))}}const Tae=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Sae(){return i=>({left:i?(i.offsetLeft||0)+"px":"0",width:i?(i.offsetWidth||0)+"px":"0"})}});let yU=(()=>{class n{constructor(e,r,o,s){this._elementRef=e,this._ngZone=r,this._inkBarPositioner=o,this._animationMode=s}alignToElement(e){this.show(),this._ngZone.onStable.pipe((0,_n.q)(1)).subscribe(()=>{const r=this._inkBarPositioner(e),o=this._elementRef.nativeElement;o.style.left=r.left,o.style.width=r.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Tae),t.Y36(Ii,8))},n.\u0275dir=t.lG2({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,r){2&e&&t.ekj("_mat-animation-noopable","NoopAnimations"===r._animationMode)}}),n})();const Dae=new t.OlP("MatTabContent"),xU=new t.OlP("MatTabLabel"),CU=new t.OlP("MAT_TAB");let Eae=(()=>{class n extends bd{constructor(e,r,o){super(e,r),this._closestTab=o}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(CU,8))},n.\u0275dir=t.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:xU,useExisting:n}]),t.qOj]}),n})();const Aae=nu(class{}),wU=new t.OlP("MAT_TAB_GROUP");let TU=(()=>{class n extends Aae{constructor(e,r){super(),this._viewContainerRef=e,this._closestTabGroup=r,this.textLabel="",this._contentPortal=null,this._stateChanges=new ft.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new vd(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.s_b),t.Y36(wU,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,r,o){if(1&e&&(t.Suo(o,xU,5),t.Suo(o,Dae,7,t.Rgc)),2&e){let s;t.iGM(s=t.CRH())&&(r.templateLabel=s.first),t.iGM(s=t.CRH())&&(r._explicitContent=s.first)}},viewQuery:function(e,r){if(1&e&&t.Gf(t.Rgc,7),2&e){let o;t.iGM(o=t.CRH())&&(r._implicitContent=o.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[t._Bn([{provide:CU,useExisting:n}]),t.qOj,t.TTD],ngContentSelectors:bU,decls:1,vars:0,template:function(e,r){1&e&&(t.F$t(),t.YNc(0,lae,1,0,"ng-template"))},encapsulation:2}),n})();const Mae={translateTab:xs("translateTab",[br("center, void, left-origin-center, right-origin-center",ei({transform:"none"})),br("left",ei({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),br("right",ei({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),yr("* => left, * => right, left => center, right => center",Wr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),yr("void => left-origin-center",[ei({transform:"translate3d(-100%, 0, 0)"}),Wr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),yr("void => right-origin-center",[ei({transform:"translate3d(100%, 0, 0)"}),Wr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Iae=(()=>{class n extends Qc{constructor(e,r,o,s){super(e,r,s),this._host=o,this._centeringSub=Xn.w0.EMPTY,this._leavingSub=Xn.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(wi(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>SU)),t.Y36(ee))},n.\u0275dir=t.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),n})(),Oae=(()=>{class n{constructor(e,r,o){this._elementRef=e,this._dir=r,this._dirChangeSubscription=Xn.w0.EMPTY,this._translateTabComplete=new ft.x,this._onCentering=new t.vpe,this._beforeCentering=new t.vpe,this._afterLeavingCenter=new t.vpe,this._onCentered=new t.vpe(!0),this.animationDuration="500ms",r&&(this._dirChangeSubscription=r.change.subscribe(s=>{this._computePositionAnimationState(s),o.markForCheck()})),this._translateTabComplete.pipe(ys((s,c)=>s.fromState===c.fromState&&s.toState===c.toState)).subscribe(s=>{this._isCenterPosition(s.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(s.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const r=this._isCenterPosition(e.toState);this._beforeCentering.emit(r),r&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const r=this._getLayoutDirection();return"ltr"==r&&e<=0||"rtl"==r&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(Ui,8),t.Y36(t.sBO))},n.\u0275dir=t.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),SU=(()=>{class n extends Oae{constructor(e,r,o){super(e,r,o)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(Ui,8),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,r){if(1&e&&t.Gf(Qc,5),2&e){let o;t.iGM(o=t.CRH())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,r){1&e&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(s){return r._onTranslateTabStarted(s)})("@translateTab.done",function(s){return r._translateTabComplete.next(s)}),t.YNc(2,cae,0,0,"ng-template",2),t.qZA()),2&e&&t.Q6J("@translateTab",t.WLB(3,dae,r._position,t.VKq(1,uae,r.animationDuration)))},directives:[Iae],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[Mae.translateTab]}}),n})();const DU=new t.OlP("MAT_TABS_CONFIG"),kae=nu(class{});let EU=(()=>{class n extends kae{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,r){2&e&&(t.uIk("aria-disabled",!!r.disabled),t.ekj("mat-tab-disabled",r.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),n})();const AU=Ol({passive:!0});let Rae=(()=>{class n{constructor(e,r,o,s,c,f,g){this._elementRef=e,this._changeDetectorRef=r,this._viewportRuler=o,this._dir=s,this._ngZone=c,this._platform=f,this._animationMode=g,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ft.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ft.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,c.runOutsideAngular(()=>{Si(e.nativeElement,"mouseleave").pipe(It(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Ua(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Si(this._previousPaginator.nativeElement,"touchstart",AU).pipe(It(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Si(this._nextPaginator.nativeElement,"touchstart",AU).pipe(It(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:ut("ltr"),r=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ng(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,_n.q)(1)).subscribe(o),(0,_r.T)(e,r,this._items.changes,this._itemsResized()).pipe(It(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(It(this._destroyed)).subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return"function"!=typeof ResizeObserver?Zr.E:this._items.changes.pipe(wi(this._items),En(e=>new Yn.y(r=>this._ngZone.runOutsideAngular(()=>{const o=new ResizeObserver(()=>{r.next()});return e.forEach(s=>{o.observe(s.elementRef.nativeElement)}),()=>{o.disconnect()}}))),Ed(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!ra(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const r=this._items?this._items.toArray()[e]:null;return!!r&&!r.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const r=this._tabListContainer.nativeElement;r.scrollLeft="ltr"==this._getLayoutDirection()?0:r.scrollWidth-r.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,r="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(r)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const r=this._items?this._items.toArray()[e]:null;if(!r)return;const o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:c}=r.elementRef.nativeElement;let f,g;"ltr"==this._getLayoutDirection()?(f=s,g=f+c):(g=this._tabListInner.nativeElement.offsetWidth-s,f=g-c);const v=this.scrollDistance,T=this.scrollDistance+o;fT&&(this.scrollDistance+=g-T+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,r=e?e.elementRef.nativeElement:null;r?this._inkBar.alignToElement(r):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,r){r&&null!=r.button&&0!==r.button||(this._stopInterval(),Il(650,100).pipe(It((0,_r.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:o,distance:s}=this._scrollHeader(e);(0===s||s>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const r=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(r,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:r,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Nl),t.Y36(Ui,8),t.Y36(t.R0b),t.Y36(vr),t.Y36(Ii,8))},n.\u0275dir=t.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),Fae=(()=>{class n extends Rae{constructor(e,r,o,s,c,f,g){super(e,r,o,s,c,f,g),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Wt(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Nl),t.Y36(Ui,8),t.Y36(t.R0b),t.Y36(vr),t.Y36(Ii,8))},n.\u0275dir=t.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),n})(),Lae=(()=>{class n extends Fae{constructor(e,r,o,s,c,f,g){super(e,r,o,s,c,f,g)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Nl),t.Y36(Ui,8),t.Y36(t.R0b),t.Y36(vr),t.Y36(Ii,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,r,o){if(1&e&&t.Suo(o,EU,4),2&e){let s;t.iGM(s=t.CRH())&&(r._items=s)}},viewQuery:function(e,r){if(1&e&&(t.Gf(yU,7),t.Gf(hae,7),t.Gf(fae,7),t.Gf(pae,7),t.Gf(gae,5),t.Gf(mae,5)),2&e){let o;t.iGM(o=t.CRH())&&(r._inkBar=o.first),t.iGM(o=t.CRH())&&(r._tabListContainer=o.first),t.iGM(o=t.CRH())&&(r._tabList=o.first),t.iGM(o=t.CRH())&&(r._tabListInner=o.first),t.iGM(o=t.CRH())&&(r._nextPaginator=o.first),t.iGM(o=t.CRH())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,r){2&e&&t.ekj("mat-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-tab-header-rtl","rtl"==r._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:bU,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return r._handlePaginatorClick("before")})("mousedown",function(s){return r._handlePaginatorPress("before",s)})("touchend",function(){return r._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(s){return r._handleKeydown(s)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return r._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(s){return r._handlePaginatorPress("after",s)})("click",function(){return r._handlePaginatorClick("after")})("touchend",function(){return r._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&e&&(t.ekj("mat-tab-header-pagination-disabled",r._disableScrollBefore),t.Q6J("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===r._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",r._disableScrollAfter),t.Q6J("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},directives:[$a,Rl,yU],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),n})(),Bae=0;class Gae{}const Uae=iu(jl(class{constructor(n){this._elementRef=n}}),"primary");let Hae=(()=>{class n extends Uae{constructor(e,r,o,s){var c;super(e),this._changeDetectorRef=r,this._animationMode=s,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Xn.w0.EMPTY,this._tabLabelSubscription=Xn.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new t.vpe,this.focusChange=new t.vpe,this.animationDone=new t.vpe,this.selectedTabChange=new t.vpe(!0),this._groupId=Bae++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=!(!o||null==o.disablePagination)&&o.disablePagination,this.dynamicHeight=!(!o||null==o.dynamicHeight)&&o.dynamicHeight,this.contentTabIndex=null!==(c=null==o?void 0:o.contentTabIndex)&&void 0!==c?c:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Wt(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Ua(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Ua(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const r=this._elementRef.nativeElement;r.classList.remove(`mat-background-${this.backgroundColor}`),e&&r.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const r=null==this._selectedIndex;if(!r){this.selectedTabChange.emit(this._createChangeEvent(e));const o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,s)=>o.isActive=s===e),r||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((r,o)=>{r.position=o-e,null!=this._selectedIndex&&0==r.position&&!r.origin&&(r.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const r=this._tabs.toArray();let o;for(let s=0;s{r[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(wi(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(r=>r._closestTabGroup===this||!r._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const r=this._tabHeader;r&&(r.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const r=new Gae;return r.index=e,this._tabs&&this._tabs.length&&(r.tab=this._tabs.toArray()[e]),r}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,_r.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const r=this._tabBodyWrapper.nativeElement;r.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(r.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,r,o){e.disabled||(this.selectedIndex=r.focusIndex=o)}_getTabIndex(e,r){var o;return e.disabled?null:r===(null!==(o=this._lastFocusedTabIndex)&&void 0!==o?o:this.selectedIndex)?0:-1}_tabFocusChanged(e,r){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=r)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(DU,8),t.Y36(Ii,8))},n.\u0275dir=t.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[t.qOj]}),n})(),jae=(()=>{class n extends Hae{constructor(e,r,o,s){super(e,r,o,s)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(DU,8),t.Y36(Ii,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,r,o){if(1&e&&t.Suo(o,TU,5),2&e){let s;t.iGM(s=t.CRH())&&(r._allTabs=s)}},viewQuery:function(e,r){if(1&e&&(t.Gf(_ae,5),t.Gf(vae,5)),2&e){let o;t.iGM(o=t.CRH())&&(r._tabBodyWrapper=o.first),t.iGM(o=t.CRH())&&(r._tabHeader=o.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,r){2&e&&t.ekj("mat-tab-group-dynamic-height",r.dynamicHeight)("mat-tab-group-inverted-header","below"===r.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:wU,useExisting:n}]),t.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,r){1&e&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(s){return r._focusChanged(s)})("selectFocusedIndex",function(s){return r.selectedIndex=s}),t.YNc(2,Cae,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,wae,1,10,"mat-tab-body",5),t.qZA()),2&e&&(t.Q6J("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),t.xp6(2),t.Q6J("ngForOf",r._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===r._animationMode),t.xp6(2),t.Q6J("ngForOf",r._tabs))},directives:[Lae,SU,Vt,EU,$a,dE,wn,Gt,Qc],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),n})(),Vae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[si,In,tf,Zl,df,hE],In]}),n})();const Zae=function(n,i){return{selectAvatar:n,avatar:i}};function Wae(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"img",12),t.NdJ("click",function(){const s=t.CHM(e).index;return t.oxw().selAvatar(s)}),t.qZA()()}if(2&n){const e=i.$implicit,r=i.index,o=t.oxw();t.xp6(1),t.s9C("src",null!=e&&e.profileImg?e.profileImg:"assets/images/img-user.jpg",t.LSH),t.Q6J("ngClass",t.WLB(2,Zae,o.selectAvatarId==r,o.selectAvatarId!=r))}}function qae(n,i){if(1&n&&(t.TgZ(0,"div",13)(1,"span",14),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.qZA()()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,2,"ADVANCEPLAYGAME.SUGGESTION"),": "),t.xp6(3),t.Oqu(e.nameSuggested)}}function zae(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",15),t.NdJ("click",function(){return t.CHM(e),t.oxw().signinWithFB()}),t._UZ(1,"img",16),t.qZA()}}function $ae(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().signIn()}),t._UZ(1,"img",18),t.qZA()}}function Yae(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",19),t.NdJ("click",function(){return t.CHM(e),t.oxw().appleSingIn()}),t._UZ(1,"img",20),t.qZA()}}const Jae=function(){return["/register"]};var sc=navigator.language||navigator.userLanguage;sc="en-US"==sc||"en"==sc||"en-IN"==sc?"en":"hi-EN"==sc||"hi"==sc?"hi":"fr"==sc?"fr":"en";let Qae=(()=>{class n{constructor(e,r,o,s,c,f,g,v,T,D,M,R,K){this._newGameService=e,this.runningGameService=r,this.dialog=o,this._router=s,this.toasterService=c,this.loginService=f,this._activeRoute=g,this.accountService=v,this.messagingService=T,this.spinner=D,this.zone=M,this.websocketService=R,this.localStorageService=K,this.joinPlayerClick=new t.vpe,this.signInFB=new t.vpe,this.signInGoogle=new t.vpe,this.signInApple=new t.vpe,this.selectAvatar=new t.vpe}ngOnInit(){}signinWithFB(){this.signInFB.emit()}signIn(){this.signInGoogle.emit()}joinByUninvitedPlayer(){this.joinPlayerClick.emit(this.joinPalyer)}selAvatar(e){this.selectAvatar.emit(e)}appleSingIn(){this.signInApple.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bo),t.Y36(Ka),t.Y36(l),t.Y36(Ht),t.Y36(I),t.Y36(fn),t.Y36(mr),t.Y36(Es),t.Y36(Wm),t.Y36(Nf),t.Y36(t.R0b),t.Y36(tc),t.Y36(Ym))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-unregister-user"]],inputs:{breakpoint:"breakpoint",isRegister:"isRegister",enterNameMsg:"enterNameMsg",newGameLangObj:"newGameLangObj",token:"token",avatarList:"avatarList",selectAvatarId:"selectAvatarId",isGameExist:"isGameExist",isFacebookEnabled:"isFacebookEnabled",isGoogleEnabled:"isGoogleEnabled",isAppleEnabled:"isAppleEnabled",nameSuggested:"nameSuggested",joinPalyer:"joinPalyer",inviteCode:"inviteCode"},outputs:{joinPlayerClick:"joinPlayerClick",signInFB:"signInFB",signInGoogle:"signInGoogle",signInApple:"signInApple",selectAvatar:"selectAvatar"},decls:23,vars:19,consts:[["fxLayout","column"],[1,"bold"],["fxLayout","row","fxLayoutAlign","center center"],[4,"ngFor","ngForOf"],["tabindex","0","trim","","placeholder","Type Your Nickname here",1,"inputStyle",3,"ngModel","disabled","ngModelChange"],["mat-raised-button","","color","accent",1,"m-t-15",2,"width","100%","font-size","16px",3,"disabled","click"],["style","padding-top: 5px; padding-bottom: 5px;",4,"ngIf"],[1,"bold","singinTxt"],["class","login-social-item",3,"click",4,"ngIf"],["id","googleBtn","class","login-social-item",3,"click",4,"ngIf"],["id","appleBtn","class","login-social-item",3,"click",4,"ngIf"],[1,"boldFont","singinTxt","linkColor",3,"routerLink"],[3,"ngClass","src","click"],[2,"padding-top","5px","padding-bottom","5px"],[2,"padding","0px 14px","font-size","16px","border-radius","7px","margin","0px","display","inline-block"],[1,"login-social-item",3,"click"],["src","assets/images/icons/fb-logo.png","alt","FACEBOOK"],["id","googleBtn",1,"login-social-item",3,"click"],["src","assets/images/icons/icon-google.png","alt","GOOGLE"],["id","appleBtn",1,"login-social-item",3,"click"],["src","assets/images/icons/appleImg.png","alt","Apple",2,"width","50px","border-radius","50%"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",0)(2,"div",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",2),t.YNc(6,Wae,2,5,"div",3),t.qZA()(),t.TgZ(7,"div")(8,"input",4),t.NdJ("ngModelChange",function(s){return r.joinPalyer.name=s}),t.qZA(),t.TgZ(9,"button",5),t.NdJ("click",function(){return r.joinByUninvitedPlayer()}),t._uU(10," Request to Join Game "),t.qZA(),t.YNc(11,qae,6,4,"div",6),t.qZA(),t.TgZ(12,"div",7),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div")(16,"div",2),t.YNc(17,zae,2,0,"a",8),t.YNc(18,$ae,2,0,"a",9),t.YNc(19,Yae,2,0,"a",10),t.qZA()(),t.TgZ(20,"div",11),t._uU(21),t.ALo(22,"translate"),t.qZA()()),2&e&&(t.xp6(3),t.hij(" ",t.lcZ(4,12,"NEWGAME.SELECTAVATARTXT")," "),t.xp6(3),t.Q6J("ngForOf",r.avatarList),t.xp6(2),t.Q6J("ngModel",r.joinPalyer.name)("disabled",!r.isGameExist),t.xp6(1),t.Q6J("disabled",!r.isGameExist||""==r.joinPalyer.name),t.xp6(2),t.Q6J("ngIf",""!=r.nameSuggested),t.xp6(2),t.hij(" ",t.lcZ(14,14,"NEWGAME.SIGNINTXT")," "),t.xp6(4),t.Q6J("ngIf",1==r.isFacebookEnabled),t.xp6(1),t.Q6J("ngIf",1==r.isGoogleEnabled),t.xp6(1),t.Q6J("ngIf",1==r.isAppleEnabled),t.xp6(1),t.Q6J("routerLink",t.DdM(18,Jae)),t.xp6(1),t.hij(" ",t.lcZ(22,16,"NEWGAME.SIGNUPTXT")," "))},directives:[ti,Ir,Vt,wn,ci,Xl,Kt,xr,Cr,Di,Gt,ea],pipes:[pn],styles:[".login-social-item[_ngcontent-%COMP%]{font-size:25px;color:#3b5998;display:flex;justify-content:center;align-items:center;width:65px;height:65px;border-radius:50%;background-color:#fff;margin:5px;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.login-social-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px;height:50px}.login-social-item[_ngcontent-%COMP%]:hover{color:#3b5998;box-shadow:0 4px 10px #0000001a;-moz-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-o-box-shadow:0 4px 10px 0px rgba(0,0,0,.1);-ms-box-shadow:0 4px 10px 0px rgba(0,0,0,.1)}.selectAvatar[_ngcontent-%COMP%]{height:120px;width:120px;margin:10px;border-radius:50%;border:#000 1px solid}.avatar[_ngcontent-%COMP%]{height:90px;width:90px;margin:10px;border-radius:50%;opacity:.6;border:#000 1px solid}.inputStyle[_ngcontent-%COMP%]{border-radius:50px;border:#e2e2e2 1px solid;width:100%;height:50px;margin-top:10px;text-align:center;color:#000}.singinTxt[_ngcontent-%COMP%]{text-align:center;margin-top:15px;cursor:pointer}textarea[_ngcontent-%COMP%]:focus, input[_ngcontent-%COMP%]:focus{border-radius:50px;border:#e2e2e2 1px solid!important}@media only screen and (max-width:376px){.selectAvatar[_ngcontent-%COMP%]{height:95px;width:95px}.avatar[_ngcontent-%COMP%]{height:65px;width:65px}}"]}),n})();function Kae(n,i){1&n&&(t.TgZ(0,"div",15)(1,"div",16),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",17)(5,"span",18),t._uU(6,"########"),t.qZA()()()),2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"NEWGAME.CODETXT")," "))}function Xae(n,i){if(1&n&&(t.TgZ(0,"div",15)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",17)(5,"span"),t._uU(6),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(2),t.Oqu(t.lcZ(3,2,"NEWGAME.CODETXT")),t.xp6(4),t.Oqu(e.inviteCode)}}const Tk=function(n){return{"bg-color-ccc":n}};function ele(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",9),t.YNc(1,Kae,7,3,"div",10),t.YNc(2,Xae,7,4,"div",10),t.TgZ(3,"div",11)(4,"div",12)(5,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).copyCode()}),t.TgZ(6,"span",14),t._uU(7," content_copy "),t.qZA(),t._uU(8),t.ALo(9,"translate"),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.isGameCreated),t.xp6(1),t.Q6J("ngIf",e.isGameCreated),t.xp6(3),t.Q6J("disabled",!e.isGameCreated)("ngClass",t.VKq(7,Tk,!e.isGameCreated)),t.xp6(3),t.hij("",t.lcZ(9,5,"NEWGAME.COPYBTN")," ")}}function tle(n,i){1&n&&(t.TgZ(0,"div")(1,"div",16),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",19)(5,"span",18),t._uU(6,"########"),t.qZA()()()),2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"NEWGAME.CODETXT")," "))}function nle(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",20),t._uU(5),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,2,"NEWGAME.CODETXT")," "),t.xp6(3),t.hij(" ",e.inviteCode," ")}}function ile(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",21)(1,"div",22)(2,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).copyCode()}),t.TgZ(3,"span",23),t._uU(4," content_copy "),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"div",24)(8,"button",25),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).shareLink()}),t.TgZ(9,"span",26),t._uU(10," share "),t.qZA(),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("disabled",!e.isGameCreated)("ngClass",t.VKq(10,Tk,!e.isGameCreated)),t.xp6(3),t.Oqu(t.lcZ(6,6,"NEWGAME.COPYBTN")),t.xp6(3),t.Q6J("disabled",!e.isGameCreated)("ngClass",t.VKq(12,Tk,!e.isGameCreated)),t.xp6(3),t.hij(" ",t.lcZ(12,8,"NEWGAME.SHARE"),"")}}const Sk=function(n){return{"color-ccc":n}};function rle(n,i){if(1&n&&(t.TgZ(0,"div",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(4,Sk,!e.isGameCreated)),t.xp6(1),t.hij(" ",t.lcZ(2,2,"NEWGAME.EMIALTXT")," ")}}function ole(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",28),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return o.isGameCreated&&o.openSelectPlayerDialog()}),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"span",29),t._uU(5," arrow_drop_down "),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(4,Sk,!e.isGameCreated)),t.xp6(1),t.hij(" ",t.lcZ(3,2,"NEWGAME.ADDPLYDD")," ")}}function sle(n,i){1&n&&(t.TgZ(0,"div",30),t._UZ(1,"mat-divider",31),t.qZA())}function ale(n,i){1&n&&(t.TgZ(0,"div",46)(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"NEWGAME.WAITINGSTATUS")," "))}function lle(n,i){1&n&&(t.TgZ(0,"div",47)(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"NEWGAME.PENDINGSTATUS")))}function cle(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",48),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2).$implicit;return t.oxw(3).allowPlayer(!0,o.userId)}),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"NEWGAME.AcceptSTATUS")))}function ule(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",49),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2).$implicit;return t.oxw(3).allowPlayer(!1,o.userId)}),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"NEWGAME.DECLINESTATUS")))}function dle(n,i){1&n&&(t.TgZ(0,"div",50)(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"NEWGAME.DECLINEDSTATUS")))}function hle(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",37),t._UZ(2,"img",38),t.qZA(),t.TgZ(3,"div",39),t._uU(4),t.qZA(),t.TgZ(5,"div",40),t.YNc(6,ale,4,3,"div",41),t.YNc(7,lle,4,3,"div",42),t.YNc(8,cle,4,3,"div",43),t.YNc(9,ule,4,3,"div",44),t.YNc(10,dle,4,3,"div",45),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,r=t.oxw(3);t.xp6(2),t.s9C("src",null!=e&&e.profile_image?e.profile_image:"assets/images/img-user.jpg",t.LSH),t.xp6(1),t.Q6J("fxFlex",0==e.isUserAllowedInGame&&(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)==r.loggedInUserId&&1==e.isUserViaGameCode?"33%":"63%")("fxFlex.xs",0==e.isUserAllowedInGame&&(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)==r.loggedInUserId&&1==e.isUserViaGameCode?"29%":"63%"),t.xp6(1),t.hij(" ",e.userName," "),t.xp6(1),t.Q6J("fxFlex",0==e.isUserAllowedInGame&&(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)==r.loggedInUserId&&1==e.isUserViaGameCode?"56%":"25%")("fxFlex.xs",0==e.isUserAllowedInGame&&(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)==r.loggedInUserId&&1==e.isUserViaGameCode?"56%":"25%"),t.xp6(1),t.Q6J("ngIf",1==e.joinGame),t.xp6(1),t.Q6J("ngIf",0==e.isUserAllowedInGame&&(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)!=r.loggedInUserId||0==e.joinGame&&0==e.isUserViaGameCode&&0==e.isUserAllowedInGame&&(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)==r.loggedInUserId||(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)==r.loggedInUserId&&r.loggedInUserId!=e.userId&&1==e.isReplayGame&&0==e.isUserJoinedInGame),t.xp6(1),t.Q6J("ngIf",0==e.isUserAllowedInGame&&(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)==r.loggedInUserId&&1==e.isUserViaGameCode),t.xp6(1),t.Q6J("ngIf",0==e.isUserAllowedInGame&&(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)==r.loggedInUserId&&1==e.isUserViaGameCode),t.xp6(1),t.Q6J("ngIf",2==e.isUserAllowedInGame)}}const fle=function(n){return{"margin-bottom":n}};function ple(n,i){if(1&n&&(t.TgZ(0,"div",36),t.YNc(1,hle,11,11,"ng-container",5),t.qZA()),2&n){const e=i.$implicit,r=t.oxw(3);t.Q6J("ngStyle",t.VKq(2,fle,"5"==e.userSignupType&&0==e.isUserAllowedInGame&&r.gamePlayerLists.gameCreatedBy!=r.loggedInUserId&&e.userId!=r.loggedInUserId||r.gamePlayerLists.gameCreatedBy!=r.loggedInUserId&&r.loggedInUserId!=e.userId&&0==e.joinGame&&"5"!=e.userSignupType?"0px":"10px")),t.xp6(1),t.Q6J("ngIf",!(r.gamePlayerLists.gameCreatedBy!=r.loggedInUserId&&r.loggedInUserId!=e.userId&&0==e.joinGame&&"5"!=e.userSignupType)&&("5"==e.userSignupType&&r.gamePlayerLists.gameCreatedBy==r.loggedInUserId||0!=e.isUserAllowedInGame&&(1==e.isReplayGame&&1==e.joinGame||0==e.isReplayGame)||r.gamePlayerLists.gameCreatedBy==r.loggedInUserId||e.userId==r.loggedInUserId))}}function gle(n,i){if(1&n&&(t.TgZ(0,"button",51),t._uU(1),t.ALo(2,"uppercase"),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,1,e.btnText)," ")}}function mle(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div",32),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",33),t.YNc(5,ple,2,4,"div",34),t.qZA(),t.YNc(6,gle,3,3,"button",35),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,3,"NEWGAME.STATUSLBL")," "),t.xp6(3),t.Q6J("ngForOf",e.gamePlayerLists.playersList),t.xp6(1),t.Q6J("ngIf",(null==e.gamePlayerLists?null:e.gamePlayerLists.gameCreatedBy)!=e.loggedInUserId&&""!=e.btnText||0==e.gamePlayerLists.playersList.length&&""!=e.btnText&&e.isGameExist)}}function _le(n,i){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ele,10,9,"div",4),t.YNc(5,tle,7,3,"div",5),t.YNc(6,nle,6,4,"div",5),t.YNc(7,ile,13,14,"div",6),t.YNc(8,rle,3,6,"div",7),t.YNc(9,ole,6,6,"div",5),t.YNc(10,sle,2,0,"div",8),t.YNc(11,mle,7,5,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(12,Sk,!e.isGameCreated)),t.xp6(1),t.hij(" ",t.lcZ(3,10,"NEWGAME.INVITEFRNDTXT")," "),t.xp6(2),t.Q6J("ngIf",0==e.breakpoint),t.xp6(1),t.Q6J("ngIf",!e.isGameCreated&&1==e.breakpoint),t.xp6(1),t.Q6J("ngIf",e.isGameCreated&&1==e.breakpoint),t.xp6(1),t.Q6J("ngIf",1==e.breakpoint),t.xp6(1),t.Q6J("ngIf",!("5"==(null==e.loggedInUser?null:e.loggedInUser.signUpType)||null!=e.gamePlayerLists&&e.gamePlayerLists.gameCode&&(null==e.gamePlayerLists?null:e.gamePlayerLists.gameCreatedBy)!=e.loggedInUserId)),t.xp6(1),t.Q6J("ngIf",!("5"==(null==e.loggedInUser?null:e.loggedInUser.signUpType)||null!=e.gamePlayerLists&&e.gamePlayerLists.gameCode&&(null==e.gamePlayerLists?null:e.gamePlayerLists.gameCreatedBy)!=e.loggedInUserId)),t.xp6(1),t.Q6J("ngIf",e.gamePlayerLists.playersList.length>0),t.xp6(1),t.Q6J("ngIf",e.gamePlayerLists.playersList.length>0)}}function vle(n,i){if(1&n&&(t.TgZ(0,"div",52)(1,"h2",53),t._uU(2),t.ALo(3,"uppercase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,1,e.btnText))}}let ble=(()=>{class n{constructor(e){this.loginService=e,this.cpCode=new t.vpe,this.clickShareLink=new t.vpe,this.selectPlayerDialog=new t.vpe,this.approvePlayer=new t.vpe}ngOnInit(){}allowPlayer(e,r){this.approvePlayer.emit({isApprove:e,userId:r})}copyCode(){this.cpCode.emit()}openSelectPlayerDialog(){this.selectPlayerDialog.emit()}shareLink(){this.clickShareLink.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-player-status"]],inputs:{breakpoint:"breakpoint",gameCode:"gameCode",isRegister:"isRegister",newGameLangObj:"newGameLangObj",isScoreGameChecked:"isScoreGameChecked",inviteCode:"inviteCode",gamePlayerLists:"gamePlayerLists",btnText:"btnText",isGameExist:"isGameExist",isGameCreated:"isGameCreated",loggedInUserId:"loggedInUserId"},outputs:{cpCode:"cpCode",clickShareLink:"clickShareLink",selectPlayerDialog:"selectPlayerDialog",approvePlayer:"approvePlayer"},decls:2,vars:2,consts:[["fxLayout","column",4,"ngIf"],["fxLayoutAlign","center center","style","height: 40vh;","fxLayout","column",4,"ngIf"],["fxLayout","column"],[1,"custom-header","m15",3,"ngClass"],["fxLayout","row","fxLayout.xs","column","class","m-b-15",4,"ngIf"],[4,"ngIf"],["fxLayout","row","class","m15 alignCenter",4,"ngIf"],["class","bold m15",3,"ngClass",4,"ngIf"],["class","m15",4,"ngIf"],["fxLayout","row","fxLayout.xs","column",1,"m-b-15"],["fxFlex","50%","fxFlex.xs","100%","fxLayout","column",4,"ngIf"],["fxFlex","50%","fxFlex.xs","100%","fxLayout","row"],[1,"btnWidth","m-r-5"],[1,"Btn",3,"disabled","ngClass","click"],[1,"material-icons","m-r-5","iconVertical"],["fxFlex","50%","fxFlex.xs","100%","fxLayout","column"],[1,"color-ccc"],["ngClass.xs","text-center",1,"bold","code"],[1,"div-disabled"],[1,"bold","code","alignCenter"],[1,"boldFont","bold","code","alignCenter"],["fxLayout","row",1,"m15","alignCenter"],[1,"btnWidth","mRight"],[1,"material-icons","mRight","iconVertical"],[1,"btnWidth"],["id","shareBtn",1,"Btn",3,"disabled","ngClass","click"],[1,"material-icons","iconVertical","mRight"],[1,"bold","m15",3,"ngClass"],[1,"m15","dd",3,"ngClass","click"],[1,"material-icons",2,"float","right"],[1,"m15"],[1,"borderColor"],[1,"m15","bold"],[1,"m15","statusHeight"],["fxLayout","row","fxLayoutAlign","start center",3,"ngStyle",4,"ngFor","ngForOf"],["class","m-t-15 mar-bottom15 btn-start waitingTxt","mat-raised-button","","disabled","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",3,"ngStyle"],["fxFlex.xs","12%"],["referrerpolicy","no-referrer","alt","",1,"sm-img",3,"src"],["fxLayoutAlign","start center",1,"m-l-10","breakWord",3,"fxFlex","fxFlex.xs"],[1,"statusBtn",3,"fxFlex","fxFlex.xs"],["class","statusIcon yellowIcon alignCenter","fxFlexAlign","center","fxFlexAlign.xs","start",4,"ngIf"],["class","statusIcon yellowIcon alignCenter",4,"ngIf"],["class","statusIcon greenIcon alignCenter",3,"click",4,"ngIf"],["class","statusIcon redIcon alignCenter",3,"click",4,"ngIf"],["class","statusIcon redIcon alignCenter",4,"ngIf"],["fxFlexAlign","center","fxFlexAlign.xs","start",1,"statusIcon","yellowIcon","alignCenter"],[1,"statusIcon","yellowIcon","alignCenter"],[1,"statusIcon","greenIcon","alignCenter",3,"click"],[1,"statusIcon","redIcon","alignCenter",3,"click"],[1,"statusIcon","redIcon","alignCenter"],["mat-raised-button","","disabled","",1,"m-t-15","mar-bottom15","btn-start","waitingTxt"],["fxLayoutAlign","center center","fxLayout","column",2,"height","40vh"],[1,"running-game-h2"]],template:function(e,r){1&e&&(t.YNc(0,_le,12,14,"div",0),t.YNc(1,vle,4,3,"div",1)),2&e&&(t.Q6J("ngIf",r.isGameExist),t.xp6(1),t.Q6J("ngIf",0==r.isGameExist&&(null==r.gamePlayerLists?null:r.gamePlayerLists.gameCreatedBy)!=r.loggedInUserId&&""!=r.btnText||0==r.gamePlayerLists.playersList.length&&""!=r.btnText))},directives:[Gt,ti,wn,ci,Ei,ih,Vt,Ir,uo,Qf,Wl,Di],pipes:[pn,bc],styles:[".bg-color-ccc{background-color:#ccc!important} .color-ccc{color:#ccc!important}.div-disabled[_ngcontent-%COMP%]{background-color:#ccc!important;color:#ccc!important}.dd[_ngcontent-%COMP%]{padding:10px;border-radius:50px;border:1px solid #d9d9d9}.statusIcon[_ngcontent-%COMP%]{width:35px;height:35px;border-radius:50px}.statusIcon[_ngcontent-%COMP%]:hover{cursor:pointer}.code[_ngcontent-%COMP%]{padding:5px 0;font-size:20px}.btnWidth[_ngcontent-%COMP%]{width:100%}.Btn[_ngcontent-%COMP%]{background-color:#00b855!important;border-radius:30px!important;color:#fff!important;font-size:20px!important;height:50px;width:100%}.redIcon[_ngcontent-%COMP%]{background-color:red;width:auto;padding:8px 12px;color:#fff}.yellowIcon[_ngcontent-%COMP%]{background-color:#fab400;width:auto;padding:8px 12px;color:#fff}.greenIcon[_ngcontent-%COMP%]{background-color:#00b855;width:auto;padding:8px 12px;margin-right:5px;color:#fff}.statusBtn[_ngcontent-%COMP%]{display:inline-flex;justify-content:flex-end}.statusHeight[_ngcontent-%COMP%]{max-height:150px;overflow:auto}.waitingTxt[_ngcontent-%COMP%]{white-space:normal;font-size:10px;width:100%}.breakWord[_ngcontent-%COMP%]{word-wrap:break-word;word-break:break-word}@media only screen and (max-width:320px){.waitingTxt[_ngcontent-%COMP%]{white-space:normal;font-size:10px;width:100%}.greenIcon[_ngcontent-%COMP%], .redIcon[_ngcontent-%COMP%]{padding:7px 6px}}.bg-color-ccc[_ngcontent-%COMP%]{background-color:#ccc!important}.mRight[_ngcontent-%COMP%]{margin-right:5px}.running-game-h2[_ngcontent-%COMP%]{color:#ff4081}"]}),n})();function yle(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1," edit "),t.qZA())}function xle(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"EDIT"),t.qZA())}function Cle(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-label",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateClick()}),t.YNc(1,yle,2,0,"mat-icon",31),t.YNc(2,xle,2,0,"span",31),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",1==e.breakpoint),t.xp6(1),t.Q6J("ngIf",0==e.breakpoint)}}function wle(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){return t.CHM(e),t.oxw().saveGameConfigure()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"NEWGAME.SAVEBTN")," "))}const c_=function(n){return{"custom-selection":n}};let Tle=(()=>{class n{constructor(e,r,o,s,c){this._newGameService=e,this.toasterService=r,this.loginService=o,this.accountService=s,this.websocketService=c,this.getPlayerData=new t.vpe,this.editClick=new t.vpe,this.onclickPrevThm=new t.vpe,this.onclickNextThm=new t.vpe,this.onclickPrev=new t.vpe,this.onclickNext=new t.vpe,this.createGame=new t.vpe,this.saveGameSettings=new t.vpe,this.changeScoreToggle=new t.vpe,this.langIndex=0}ngOnInit(){this.loggedInUser=this.loginService.getLoggedInUser()}onNextLang(){this.onclickNext.emit()}onPrevLang(){this.onclickPrev.emit()}onNextThm(){this.onclickNextThm.emit()}onPrevThm(){this.onclickPrevThm.emit()}createNewGame(){this.createGame.emit()}saveGameConfigure(){this.saveGameSettings.emit()}updateClick(){this.editClick.emit()}onScoreGameToggleChange(e){this.changeScoreToggle.emit(e.checked)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bo),t.Y36(I),t.Y36(fn),t.Y36(Es),t.Y36(tc))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-new-game-settings"]],inputs:{breakpoint:"breakpoint",inviteCode:"inviteCode",isGameCreated:"isGameCreated",createdById:"createdById",isDisabled:"isDisabled",isScoreGameChecked:"isScoreGameChecked",themeName:"themeName",prevBtnDisabled:"prevBtnDisabled",nxtBtnDisabled:"nxtBtnDisabled",prevThmBtnDisabled:"prevThmBtnDisabled",nxtThmBtnDisabled:"nxtThmBtnDisabled",isInEdit:"isInEdit",languageName:"languageName"},outputs:{getPlayerData:"getPlayerData",editClick:"editClick",onclickPrevThm:"onclickPrevThm",onclickNextThm:"onclickNextThm",onclickPrev:"onclickPrev",onclickNext:"onclickNext",createGame:"createGame",saveGameSettings:"saveGameSettings",changeScoreToggle:"changeScoreToggle"},decls:93,vars:74,consts:[[1,"setting-card"],["fxLayout","row wrap",1,"m-b-15"],["fxFlex","85%",1,"custom-header","custom-content",2,"margin-top","0px !important"],["style","text-align: right;","class","accent-label","fxFlex","15%",3,"click",4,"ngIf"],[1,"m-b-15"],[1,"custom-title"],[1,"toggle-switch",3,"checked","disabled"],[1,"toggle-switch",3,"ngModel","disabled","change","ngModelChange"],[1,"botmborder"],["fxLayout","row",1,"botmborder"],["fxFlex","70%","fxFlexAlign","start",1,"custom-content"],["fxFlex","30%","fxFlexAlign","end","fxLayout","row",1,"custom-selection"],[3,"disabled"],["id","prev"],["id","maxPlayer","name","maxPlayer",1,"custom-selectoption"],["id","next"],["fxLayout","row","fxLayout.xs","column","fxLayout.sm","column",1,"botmborder"],["fxFlex","50%",3,"ngClass.sm","ngClass.xs","ngClass"],[1,"custom-content","txt-center"],["fxLayout","row",1,"custom-selection","justify-center"],["id","timeLmt","name","timeLmt",1,"custom-selectoption"],["fxFlex","50%",1,""],["id","gameDur","name","gameDur",1,"custom-selectoption"],["fxLayout","row","fxLayout.xs","column","fxLayout.sm","column"],["fxLayout","row",1,"justify-center",3,"ngClass"],[3,"ngClass","disabled","click"],["id","themeName","name","themeName",1,"custom-selectoption"],["fxFlex","50%"],["id","langName","name","langName",1,"custom-selectoption"],["mat-raised-button","","class","m-t-15","color","accent","style","width: 100%; font-size: 16px",3,"click",4,"ngIf"],["fxFlex","15%",1,"accent-label",2,"text-align","right",3,"click"],[4,"ngIf"],["mat-raised-button","","color","accent",1,"m-t-15",2,"width","100%","font-size","16px",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"div")(1,"mat-card",0)(2,"mat-card-content")(3,"div",1)(4,"h4",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Cle,3,2,"mat-label",3),t.qZA(),t.TgZ(8,"div",4)(9,"span",5),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._UZ(12,"mat-slide-toggle",6),t.qZA(),t.TgZ(13,"div",4)(14,"span",5),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"mat-slide-toggle",7),t.NdJ("change",function(s){return r.onScoreGameToggleChange(s)})("ngModelChange",function(s){return r.isScoreGameChecked=s}),t.qZA()(),t.TgZ(18,"div",4)(19,"span",5),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._UZ(22,"mat-slide-toggle",6),t.qZA(),t._UZ(23,"div",8),t.TgZ(24,"div",9)(25,"h5",10),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"div",11)(29,"button",12)(30,"mat-icon",13),t._uU(31,"keyboard_arrow_left"),t.qZA()(),t.TgZ(32,"span",14),t._uU(33,"4"),t.qZA(),t.TgZ(34,"button",12)(35,"mat-icon",15),t._uU(36,"keyboard_arrow_right"),t.qZA()()()(),t.TgZ(37,"div",16)(38,"div",17)(39,"h5",18),t._uU(40),t.ALo(41,"translate"),t.qZA(),t.TgZ(42,"div",19)(43,"button",12)(44,"mat-icon",13),t._uU(45,"keyboard_arrow_left"),t.qZA()(),t.TgZ(46,"span",20),t._uU(47,"60 Seconds"),t.qZA(),t.TgZ(48,"button",12)(49,"mat-icon",15),t._uU(50,"keyboard_arrow_right"),t.qZA()()()(),t.TgZ(51,"div",21)(52,"h5",18),t._uU(53),t.ALo(54,"translate"),t.qZA(),t.TgZ(55,"div",19)(56,"button",12)(57,"mat-icon",13),t._uU(58,"keyboard_arrow_left"),t.qZA()(),t.TgZ(59,"span",22),t._uU(60),t.ALo(61,"translate"),t.qZA(),t.TgZ(62,"button",12)(63,"mat-icon",15),t._uU(64,"keyboard_arrow_right"),t.qZA()()()()(),t.TgZ(65,"div",23)(66,"div",17)(67,"h5",18),t._uU(68),t.ALo(69,"translate"),t.qZA(),t.TgZ(70,"div",24)(71,"button",25),t.NdJ("click",function(){return r.onPrevThm()}),t.TgZ(72,"mat-icon",13),t._uU(73,"keyboard_arrow_left"),t.qZA()(),t.TgZ(74,"span",26),t._uU(75),t.qZA(),t.TgZ(76,"button",25),t.NdJ("click",function(){return r.onNextThm()}),t.TgZ(77,"mat-icon",15),t._uU(78,"keyboard_arrow_right"),t.qZA()()()(),t.TgZ(79,"div",27)(80,"h5",18),t._uU(81),t.ALo(82,"translate"),t.qZA(),t.TgZ(83,"div",24)(84,"button",25),t.NdJ("click",function(){return r.onPrevLang()}),t.TgZ(85,"mat-icon",13),t._uU(86,"keyboard_arrow_left"),t.qZA()(),t.TgZ(87,"span",28),t._uU(88),t.qZA(),t.TgZ(89,"button",25),t.NdJ("click",function(){return r.onNextLang()}),t.TgZ(90,"mat-icon",15),t._uU(91,"keyboard_arrow_right"),t.qZA()()()()(),t.YNc(92,wle,3,3,"button",29),t.qZA()()()),2&e&&(t.xp6(5),t.hij(" ",t.lcZ(6,42,"NEWGAME.ConfigureYourGame")," "),t.xp6(2),t.Q6J("ngIf",r.isGameCreated&&!r.isInEdit&&r.createdById==r.loggedInUser.id),t.xp6(3),t.Oqu(t.lcZ(11,44,"NEWGAME.Private")),t.xp6(2),t.Q6J("checked",!0)("disabled",!0),t.xp6(3),t.Oqu(t.lcZ(16,46,"NEWGAME.ScoretheGame")),t.xp6(2),t.Q6J("ngModel",r.isScoreGameChecked)("disabled",r.isDisabled),t.xp6(3),t.Oqu(t.lcZ(21,48,"NEWGAME.Timer")),t.xp6(2),t.Q6J("checked",!0)("disabled",!0),t.xp6(4),t.Oqu(t.lcZ(27,50,"NEWGAME.MaxPlayers")),t.xp6(3),t.Q6J("disabled",!0),t.xp6(5),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("ngClass.sm","botmborder")("ngClass.xs","botmborder")("ngClass","rgtborder"),t.xp6(2),t.Oqu(t.lcZ(41,52,"NEWGAME.TimeLimit")),t.xp6(3),t.Q6J("disabled",!0),t.xp6(5),t.Q6J("disabled",!0),t.xp6(5),t.Oqu(t.lcZ(54,54,"NEWGAME.GameDuration")),t.xp6(3),t.Q6J("disabled",!0),t.xp6(4),t.hij("24 ",t.lcZ(61,56,"NEWGAME.Hours"),""),t.xp6(2),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("ngClass.sm","botmborder")("ngClass.xs","botmborder")("ngClass","rgtborder"),t.xp6(2),t.hij(" ",t.lcZ(69,58,"ACCOUNT.THEME")," "),t.xp6(2),t.Q6J("ngClass",t.VKq(62,c_,r.isDisabled)),t.xp6(1),t.Q6J("ngClass",t.VKq(64,c_,r.prevThmBtnDisabled))("disabled",r.isDisabled||r.prevThmBtnDisabled),t.xp6(4),t.Oqu(r.themeName),t.xp6(1),t.Q6J("ngClass",t.VKq(66,c_,r.nxtThmBtnDisabled))("disabled",r.isDisabled||r.nxtThmBtnDisabled),t.xp6(5),t.hij(" ",t.lcZ(82,60,"ACCOUNT.LANGUAGE")," "),t.xp6(2),t.Q6J("ngClass",t.VKq(68,c_,r.isDisabled)),t.xp6(1),t.Q6J("ngClass",t.VKq(70,c_,r.prevBtnDisabled))("disabled",r.isDisabled||r.prevBtnDisabled),t.xp6(4),t.Oqu(r.languageName),t.xp6(1),t.Q6J("ngClass",t.VKq(72,c_,r.nxtBtnDisabled))("disabled",r.isDisabled||r.nxtBtnDisabled),t.xp6(3),t.Q6J("ngIf",r.isGameCreated&&r.isInEdit))},directives:[Boe,Loe,ti,Ei,Gt,Fb,Jr,YO,xr,Cr,Wl,ci,wn,Di],pipes:[pn],styles:[".txt-center[_ngcontent-%COMP%]{text-align:center}"]}),n})();function Sle(n){return new Fte(n)}let Dle=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[Ite]}),n.\u0275inj=t.cJS({providers:[{provide:mg,useClass:Noe,multi:!0},{provide:oo.Dh,useValue:ce.firebase},{provide:qr,useValue:{}},{provide:Gd,useValue:[]},fn,bo,I,ql,Ms,$m,Wm,uB,to],imports:[[wo,L1,z5,MS,Vee,_z,Hee,jH.forRoot(),Rte.forRoot({size:"small",color:"rgb(0, 189, 99)",switchColor:"#fff",defaultBgColor:"#fff"}),cq(()=>uq(ce.firebase)),Qee(()=>Kee()),ON,uU,ZY,W6.forRoot("UA-163155272-1"),zte,gx.forRoot({loader:{provide:sd,useFactory:Sle,deps:[Ar]}}),uU,z$,X5,Az,C$,hY,_9,Goe,rX,u$,E,aae,p7,zJ,Vae,SK,dte,WQ]]}),n})();t.B6R(qB,[Gt,ti,qo,Tle,Ei,Qae,ble,Di,qb,zb,Jr],[pn]),t.B6R($B,[Gt,ti,qo,Ei,nT,jae,wn,ci,TU,Eae,Jr,e6,t6],[pn]),ce.production&&(0,t.G48)(),pl().bootstrapModule(Dle).catch(n=>console.error(n))},3377:(_t,le,P)=>{_t.exports=P(4628)},4628:function(){!function(_t){"use strict";var P=new RegExp("^.*("+["\\+https:\\/\\/developers.google.com\\/\\+\\/web\\/snippet\\/","googlebot","baiduspider","gurujibot","yandexbot","slurp","msnbot","bingbot","facebookexternalhit","linkedinbot","twitterbot","slackbot","telegrambot","applebot","pingdom","tumblr ","Embedly","spbot"].join("|")+").*$"),t=function(J){J=J||{};var B={version:!1,language:!1,platform:!0,os:!0,pixelDepth:!0,colorDepth:!0,resolution:!1,isAuthoritative:!0,silkAccelerated:!0,isKindleFire:!0,isDesktop:!0,isMobile:!0,isTablet:!0,isWindows:!0,isLinux:!0,isLinux64:!0,isChromeOS:!0,isMac:!0,isiPad:!0,isiPhone:!0,isiPod:!0,isAndroid:!0,isSamsung:!0,isSmartTV:!0,isRaspberry:!0,isBlackberry:!0,isTouchScreen:!0,isOpera:!1,isIE:!1,isEdge:!1,isIECompatibilityMode:!1,isSafari:!1,isFirefox:!1,isWebkit:!1,isChrome:!1,isKonqueror:!1,isOmniWeb:!1,isSeaMonkey:!1,isFlock:!1,isAmaya:!1,isPhantomJS:!1,isEpiphany:!1,source:!1,cpuCores:!1};for(var Se in J)J.hasOwnProperty(Se)&&void 0!==B[Se]&&(B[Se]=J[Se]);return this.options=B,this.version="1.0.0",this._Versions={Edge:/Edge\/([\d\w\.\-]+)/i,Firefox:/firefox\/([\d\w\.\-]+)/i,IE:/msie\s([\d\.]+[\d])|trident\/\d+\.\d+;.*[rv:]+(\d+\.\d)/i,Chrome:/chrome\/([\d\w\.\-]+)/i,Chromium:/(?:chromium|crios)\/([\d\w\.\-]+)/i,Safari:/version\/([\d\w\.\-]+)/i,Opera:/version\/([\d\w\.\-]+)|OPR\/([\d\w\.\-]+)/i,Ps3:/([\d\w\.\-]+)\)\s*$/i,Psp:/([\d\w\.\-]+)\)?\s*$/i,Amaya:/amaya\/([\d\w\.\-]+)/i,SeaMonkey:/seamonkey\/([\d\w\.\-]+)/i,OmniWeb:/omniweb\/v([\d\w\.\-]+)/i,Flock:/flock\/([\d\w\.\-]+)/i,Epiphany:/epiphany\/([\d\w\.\-]+)/i,WinJs:/msapphost\/([\d\w\.\-]+)/i,PhantomJS:/phantomjs\/([\d\w\.\-]+)/i,UC:/UCBrowser\/([\d\w\.]+)/i},this._Browsers={Edge:/edge/i,Amaya:/amaya/i,Konqueror:/konqueror/i,Epiphany:/epiphany/i,SeaMonkey:/seamonkey/i,Flock:/flock/i,OmniWeb:/omniweb/i,Chromium:/chromium|crios/i,Chrome:/chrome/i,Safari:/safari/i,IE:/msie|trident/i,Opera:/opera|OPR/i,PS3:/playstation 3/i,PSP:/playstation portable/i,Firefox:/firefox/i,WinJs:/msapphost/i,PhantomJS:/phantomjs/i,UC:/UCBrowser/i},this._OS={Windows10:/windows nt 10\.0/i,Windows81:/windows nt 6\.3/i,Windows8:/windows nt 6\.2/i,Windows7:/windows nt 6\.1/i,UnknownWindows:/windows nt 6\.\d+/i,WindowsVista:/windows nt 6\.0/i,Windows2003:/windows nt 5\.2/i,WindowsXP:/windows nt 5\.1/i,Windows2000:/windows nt 5\.0/i,WindowsPhone8:/windows phone 8\./,OSXCheetah:/os x 10[._]0/i,OSXPuma:/os x 10[._]1(\D|$)/i,OSXJaguar:/os x 10[._]2/i,OSXPanther:/os x 10[._]3/i,OSXTiger:/os x 10[._]4/i,OSXLeopard:/os x 10[._]5/i,OSXSnowLeopard:/os x 10[._]6/i,OSXLion:/os x 10[._]7/i,OSXMountainLion:/os x 10[._]8/i,OSXMavericks:/os x 10[._]9/i,OSXYosemite:/os x 10[._]10/i,OSXElCapitan:/os x 10[._]11/i,OSXSierra:/os x 10[._]12/i,Mac:/os x/i,Linux:/linux/i,Linux64:/linux x86_64/i,ChromeOS:/cros/i,Wii:/wii/i,PS3:/playstation 3/i,PSP:/playstation portable/i,iPad:/\(iPad.*os (\d+)[._](\d+)/i,iPhone:/\(iPhone.*os (\d+)[._](\d+)/i,Bada:/Bada\/(\d+)\.(\d+)/i,Curl:/curl\/(\d+)\.(\d+)\.(\d+)/i},this._Platform={Windows:/windows nt/i,WindowsPhone:/windows phone/i,Mac:/macintosh/i,Linux:/linux/i,Wii:/wii/i,Playstation:/playstation/i,iPad:/ipad/i,iPod:/ipod/i,iPhone:/iphone/i,Android:/android/i,Blackberry:/blackberry/i,Samsung:/samsung/i,Curl:/curl/i},this.DefaultAgent={isAuthoritative:!0,isMobile:!1,isTablet:!1,isiPad:!1,isiPod:!1,isiPhone:!1,isAndroid:!1,isBlackberry:!1,isOpera:!1,isIE:!1,isEdge:!1,isIECompatibilityMode:!1,isSafari:!1,isFirefox:!1,isWebkit:!1,isChrome:!1,isKonqueror:!1,isOmniWeb:!1,isSeaMonkey:!1,isFlock:!1,isAmaya:!1,isPhantomJS:!1,isEpiphany:!1,isDesktop:!1,isWindows:!1,isLinux:!1,isLinux64:!1,isMac:!1,isChromeOS:!1,isBada:!1,isSamsung:!1,isRaspberry:!1,isBot:!1,isCurl:!1,isAndroidTablet:!1,isWinJs:!1,isKindleFire:!1,isSilk:!1,isCaptive:!1,isSmartTV:!1,isUC:!1,isTouchScreen:!1,silkAccelerated:!1,colorDepth:-1,pixelDepth:-1,resolution:[],cpuCores:-1,language:"unknown",browser:"unknown",version:"unknown",os:"unknown",platform:"unknown",geoIp:{},source:"",hashInt:function(z){var ee,Ze,de=0;if(0===z.length)return de;for(ee=0,Ze=z.length;ee>>32-ht}function ee(at,ht){var yt,Mt,Jt,rn,it;return Jt=2147483648&at,rn=2147483648&ht,it=(1073741823&at)+(1073741823&ht),(yt=1073741824&at)&(Mt=1073741824&ht)?2147483648^it^Jt^rn:yt|Mt?1073741824&it?3221225472^it^Jt^rn:1073741824^it^Jt^rn:it^Jt^rn}function be(at,ht,yt,Mt,Jt,rn,it){return at=ee(at,ee(ee(function Ie(at,ht,yt){return at&ht|~at&yt}(ht,yt,Mt),Jt),it)),ee(de(at,rn),ht)}function se(at,ht,yt,Mt,Jt,rn,it){return at=ee(at,ee(ee(function Ze(at,ht,yt){return at&yt|ht&~yt}(ht,yt,Mt),Jt),it)),ee(de(at,rn),ht)}function Ce(at,ht,yt,Mt,Jt,rn,it){return at=ee(at,ee(ee(function te(at,ht,yt){return at^ht^yt}(ht,yt,Mt),Jt),it)),ee(de(at,rn),ht)}function He(at,ht,yt,Mt,Jt,rn,it){return at=ee(at,ee(ee(function re(at,ht,yt){return ht^(at|~yt)}(ht,yt,Mt),Jt),it)),ee(de(at,rn),ht)}function me(at){var Jt,ht="",yt="";for(Jt=0;Jt<=3;Jt++)ht+=(yt="0"+(at>>>8*Jt&255).toString(16)).substr(yt.length-2,2);return ht}var pe,De,Ve,et,ze,st,Ee,G,d,U;for(pe=function Ye(at){for(var ht,yt=at.length,Mt=yt+8,rn=16*((Mt-Mt%64)/64+1),it=new Array(rn-1),Ke=0,bn=0;bn>>29,it}(z=function ke(at){at=at.replace(/\r\n/g,"\n");for(var ht="",yt=0;yt127&&Mt<2048?(ht+=String.fromCharCode(Mt>>6|192),ht+=String.fromCharCode(63&Mt|128)):(ht+=String.fromCharCode(Mt>>12|224),ht+=String.fromCharCode(Mt>>6&63|128),ht+=String.fromCharCode(63&Mt|128))}return ht}(z)),Ee=1732584193,G=4023233417,d=2562383102,U=271733878,De=0;De0||navigator.msMaxTouchPoints>0},this.getLaguage=function(){this.Agent.language=(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||"").toLowerCase()},this.getColorDepth=function(){this.Agent.colorDepth=screen.colorDepth||-1},this.getScreenResolution=function(){this.Agent.resolution=[screen.availWidth,screen.availHeight]},this.getPixelDepth=function(){this.Agent.pixelDepth=screen.pixelDepth||-1},this.getCPU=function(){this.Agent.cpuCores=navigator.hardwareConcurrency||-1},this.reset=function(){var de=this;for(var ee in de.DefaultAgent)de.DefaultAgent.hasOwnProperty(ee)&&(de.Agent[ee]=de.DefaultAgent[ee]);return de},this.parse=function(de){de=de||navigator.userAgent;var ee=new t;return ee.Agent.source=de.replace(/^\s*/,"").replace(/\s*$/,""),ee.Agent.os=ee.getOS(ee.Agent.source),ee.Agent.platform=ee.getPlatform(ee.Agent.source),ee.Agent.browser=ee.getBrowser(ee.Agent.source),ee.Agent.version=ee.getBrowserVersion(ee.Agent.source),ee.testBot(),ee.testSmartTV(),ee.testMobile(),ee.testAndroidTablet(),ee.testTablet(),ee.testCompatibilityMode(),ee.testSilk(),ee.testKindleFire(),ee.testCaptiveNetwork(),ee.testTouchSupport(),ee.getLaguage(),ee.getColorDepth(),ee.getPixelDepth(),ee.getScreenResolution(),ee.getCPU(),ee.Agent},this.get=function(z){var ee=this.parse(),Ie=[];for(var Ze in this.options)this.options.hasOwnProperty(Ze)&&!0===this.options[Ze]&&Ie.push(ee[Ze]);z&&Ie.push(z),!this.options.resolution&&ee.isMobile&&Ie.push(ee.resolution);var te=ee.hashMD5(Ie.join(":"));return[te.slice(0,8),te.slice(8,12),"4"+te.slice(12,15),"b"+te.slice(15,18),te.slice(20)].join("-")},this.Agent=this.DefaultAgent,this};_t.DeviceUUID=t,new t(navigator.userAgent)}(this)},772:_t=>{_t.exports&&(_t.exports=function le(){var B=3,Se=4,be=12,se=13,Ye=16,me=17;function ze(d,U){return 55296<=d.charCodeAt(U)&&d.charCodeAt(U)<=56319&&56320<=d.charCodeAt(U+1)&&d.charCodeAt(U+1)<=57343}function st(d,U){void 0===U&&(U=0);var H=d.charCodeAt(U);if(55296<=H&&H<=56319&&U=1){var Z=H;return 55296<=(O=d.charCodeAt(U-1))&&O<=56319?1024*(O-55296)+(Z-56320)+65536:Z}return H}function Ee(d,U,H){var O=[d].concat(U).concat([H]),Z=O[O.length-2],Y=H,Pe=O.lastIndexOf(14);if(Pe>1&&O.slice(1,Pe).every(function(j){return j==B})&&-1==[B,se,me].indexOf(d))return 2;var Oe=O.lastIndexOf(Se);if(Oe>0&&O.slice(1,Oe).every(function(j){return j==Se})&&-1==[be,Se].indexOf(Z))return O.filter(function(j){return j==Se}).length%2==1?3:4;if(0==Z&&1==Y)return 0;if(2==Z||0==Z||1==Z)return 14==Y&&U.every(function(j){return j==B})?2:1;if(2==Y||0==Y||1==Y)return 1;if(6==Z&&(6==Y||7==Y||9==Y||10==Y))return 0;if(!(9!=Z&&7!=Z||7!=Y&&8!=Y))return 0;if((10==Z||8==Z)&&8==Y)return 0;if(Y==B||15==Y)return 0;if(5==Y)return 0;if(Z==be)return 0;var ct=-1!=O.indexOf(B)?O.lastIndexOf(B)-1:O.length-2;return-1!=[se,me].indexOf(O[ct])&&O.slice(ct+1,-1).every(function(j){return j==B})&&14==Y||15==Z&&-1!=[Ye,me].indexOf(Y)?0:-1!=U.indexOf(Se)?2:Z==Se&&Y==Se?0:1}function G(d){return 1536<=d&&d<=1541||1757==d||1807==d||2274==d||3406==d||69821==d||70082<=d&&d<=70083||72250==d||72326<=d&&d<=72329||73030==d?be:13==d?0:10==d?1:0<=d&&d<=9||11<=d&&d<=12||14<=d&&d<=31||127<=d&&d<=159||173==d||1564==d||6158==d||8203==d||8206<=d&&d<=8207||8232==d||8233==d||8234<=d&&d<=8238||8288<=d&&d<=8292||8293==d||8294<=d&&d<=8303||55296<=d&&d<=57343||65279==d||65520<=d&&d<=65528||65529<=d&&d<=65531||113824<=d&&d<=113827||119155<=d&&d<=119162||917504==d||917505==d||917506<=d&&d<=917535||917632<=d&&d<=917759||918e3<=d&&d<=921599?2:768<=d&&d<=879||1155<=d&&d<=1159||1160<=d&&d<=1161||1425<=d&&d<=1469||1471==d||1473<=d&&d<=1474||1476<=d&&d<=1477||1479==d||1552<=d&&d<=1562||1611<=d&&d<=1631||1648==d||1750<=d&&d<=1756||1759<=d&&d<=1764||1767<=d&&d<=1768||1770<=d&&d<=1773||1809==d||1840<=d&&d<=1866||1958<=d&&d<=1968||2027<=d&&d<=2035||2070<=d&&d<=2073||2075<=d&&d<=2083||2085<=d&&d<=2087||2089<=d&&d<=2093||2137<=d&&d<=2139||2260<=d&&d<=2273||2275<=d&&d<=2306||2362==d||2364==d||2369<=d&&d<=2376||2381==d||2385<=d&&d<=2391||2402<=d&&d<=2403||2433==d||2492==d||2494==d||2497<=d&&d<=2500||2509==d||2519==d||2530<=d&&d<=2531||2561<=d&&d<=2562||2620==d||2625<=d&&d<=2626||2631<=d&&d<=2632||2635<=d&&d<=2637||2641==d||2672<=d&&d<=2673||2677==d||2689<=d&&d<=2690||2748==d||2753<=d&&d<=2757||2759<=d&&d<=2760||2765==d||2786<=d&&d<=2787||2810<=d&&d<=2815||2817==d||2876==d||2878==d||2879==d||2881<=d&&d<=2884||2893==d||2902==d||2903==d||2914<=d&&d<=2915||2946==d||3006==d||3008==d||3021==d||3031==d||3072==d||3134<=d&&d<=3136||3142<=d&&d<=3144||3146<=d&&d<=3149||3157<=d&&d<=3158||3170<=d&&d<=3171||3201==d||3260==d||3263==d||3266==d||3270==d||3276<=d&&d<=3277||3285<=d&&d<=3286||3298<=d&&d<=3299||3328<=d&&d<=3329||3387<=d&&d<=3388||3390==d||3393<=d&&d<=3396||3405==d||3415==d||3426<=d&&d<=3427||3530==d||3535==d||3538<=d&&d<=3540||3542==d||3551==d||3633==d||3636<=d&&d<=3642||3655<=d&&d<=3662||3761==d||3764<=d&&d<=3769||3771<=d&&d<=3772||3784<=d&&d<=3789||3864<=d&&d<=3865||3893==d||3895==d||3897==d||3953<=d&&d<=3966||3968<=d&&d<=3972||3974<=d&&d<=3975||3981<=d&&d<=3991||3993<=d&&d<=4028||4038==d||4141<=d&&d<=4144||4146<=d&&d<=4151||4153<=d&&d<=4154||4157<=d&&d<=4158||4184<=d&&d<=4185||4190<=d&&d<=4192||4209<=d&&d<=4212||4226==d||4229<=d&&d<=4230||4237==d||4253==d||4957<=d&&d<=4959||5906<=d&&d<=5908||5938<=d&&d<=5940||5970<=d&&d<=5971||6002<=d&&d<=6003||6068<=d&&d<=6069||6071<=d&&d<=6077||6086==d||6089<=d&&d<=6099||6109==d||6155<=d&&d<=6157||6277<=d&&d<=6278||6313==d||6432<=d&&d<=6434||6439<=d&&d<=6440||6450==d||6457<=d&&d<=6459||6679<=d&&d<=6680||6683==d||6742==d||6744<=d&&d<=6750||6752==d||6754==d||6757<=d&&d<=6764||6771<=d&&d<=6780||6783==d||6832<=d&&d<=6845||6846==d||6912<=d&&d<=6915||6964==d||6966<=d&&d<=6970||6972==d||6978==d||7019<=d&&d<=7027||7040<=d&&d<=7041||7074<=d&&d<=7077||7080<=d&&d<=7081||7083<=d&&d<=7085||7142==d||7144<=d&&d<=7145||7149==d||7151<=d&&d<=7153||7212<=d&&d<=7219||7222<=d&&d<=7223||7376<=d&&d<=7378||7380<=d&&d<=7392||7394<=d&&d<=7400||7405==d||7412==d||7416<=d&&d<=7417||7616<=d&&d<=7673||7675<=d&&d<=7679||8204==d||8400<=d&&d<=8412||8413<=d&&d<=8416||8417==d||8418<=d&&d<=8420||8421<=d&&d<=8432||11503<=d&&d<=11505||11647==d||11744<=d&&d<=11775||12330<=d&&d<=12333||12334<=d&&d<=12335||12441<=d&&d<=12442||42607==d||42608<=d&&d<=42610||42612<=d&&d<=42621||42654<=d&&d<=42655||42736<=d&&d<=42737||43010==d||43014==d||43019==d||43045<=d&&d<=43046||43204<=d&&d<=43205||43232<=d&&d<=43249||43302<=d&&d<=43309||43335<=d&&d<=43345||43392<=d&&d<=43394||43443==d||43446<=d&&d<=43449||43452==d||43493==d||43561<=d&&d<=43566||43569<=d&&d<=43570||43573<=d&&d<=43574||43587==d||43596==d||43644==d||43696==d||43698<=d&&d<=43700||43703<=d&&d<=43704||43710<=d&&d<=43711||43713==d||43756<=d&&d<=43757||43766==d||44005==d||44008==d||44013==d||64286==d||65024<=d&&d<=65039||65056<=d&&d<=65071||65438<=d&&d<=65439||66045==d||66272==d||66422<=d&&d<=66426||68097<=d&&d<=68099||68101<=d&&d<=68102||68108<=d&&d<=68111||68152<=d&&d<=68154||68159==d||68325<=d&&d<=68326||69633==d||69688<=d&&d<=69702||69759<=d&&d<=69761||69811<=d&&d<=69814||69817<=d&&d<=69818||69888<=d&&d<=69890||69927<=d&&d<=69931||69933<=d&&d<=69940||70003==d||70016<=d&&d<=70017||70070<=d&&d<=70078||70090<=d&&d<=70092||70191<=d&&d<=70193||70196==d||70198<=d&&d<=70199||70206==d||70367==d||70371<=d&&d<=70378||70400<=d&&d<=70401||70460==d||70462==d||70464==d||70487==d||70502<=d&&d<=70508||70512<=d&&d<=70516||70712<=d&&d<=70719||70722<=d&&d<=70724||70726==d||70832==d||70835<=d&&d<=70840||70842==d||70845==d||70847<=d&&d<=70848||70850<=d&&d<=70851||71087==d||71090<=d&&d<=71093||71100<=d&&d<=71101||71103<=d&&d<=71104||71132<=d&&d<=71133||71219<=d&&d<=71226||71229==d||71231<=d&&d<=71232||71339==d||71341==d||71344<=d&&d<=71349||71351==d||71453<=d&&d<=71455||71458<=d&&d<=71461||71463<=d&&d<=71467||72193<=d&&d<=72198||72201<=d&&d<=72202||72243<=d&&d<=72248||72251<=d&&d<=72254||72263==d||72273<=d&&d<=72278||72281<=d&&d<=72283||72330<=d&&d<=72342||72344<=d&&d<=72345||72752<=d&&d<=72758||72760<=d&&d<=72765||72767==d||72850<=d&&d<=72871||72874<=d&&d<=72880||72882<=d&&d<=72883||72885<=d&&d<=72886||73009<=d&&d<=73014||73018==d||73020<=d&&d<=73021||73023<=d&&d<=73029||73031==d||92912<=d&&d<=92916||92976<=d&&d<=92982||94095<=d&&d<=94098||113821<=d&&d<=113822||119141==d||119143<=d&&d<=119145||119150<=d&&d<=119154||119163<=d&&d<=119170||119173<=d&&d<=119179||119210<=d&&d<=119213||119362<=d&&d<=119364||121344<=d&&d<=121398||121403<=d&&d<=121452||121461==d||121476==d||121499<=d&&d<=121503||121505<=d&&d<=121519||122880<=d&&d<=122886||122888<=d&&d<=122904||122907<=d&&d<=122913||122915<=d&&d<=122916||122918<=d&&d<=122922||125136<=d&&d<=125142||125252<=d&&d<=125258||917536<=d&&d<=917631||917760<=d&&d<=917999?B:127462<=d&&d<=127487?Se:2307==d||2363==d||2366<=d&&d<=2368||2377<=d&&d<=2380||2382<=d&&d<=2383||2434<=d&&d<=2435||2495<=d&&d<=2496||2503<=d&&d<=2504||2507<=d&&d<=2508||2563==d||2622<=d&&d<=2624||2691==d||2750<=d&&d<=2752||2761==d||2763<=d&&d<=2764||2818<=d&&d<=2819||2880==d||2887<=d&&d<=2888||2891<=d&&d<=2892||3007==d||3009<=d&&d<=3010||3014<=d&&d<=3016||3018<=d&&d<=3020||3073<=d&&d<=3075||3137<=d&&d<=3140||3202<=d&&d<=3203||3262==d||3264<=d&&d<=3265||3267<=d&&d<=3268||3271<=d&&d<=3272||3274<=d&&d<=3275||3330<=d&&d<=3331||3391<=d&&d<=3392||3398<=d&&d<=3400||3402<=d&&d<=3404||3458<=d&&d<=3459||3536<=d&&d<=3537||3544<=d&&d<=3550||3570<=d&&d<=3571||3635==d||3763==d||3902<=d&&d<=3903||3967==d||4145==d||4155<=d&&d<=4156||4182<=d&&d<=4183||4228==d||6070==d||6078<=d&&d<=6085||6087<=d&&d<=6088||6435<=d&&d<=6438||6441<=d&&d<=6443||6448<=d&&d<=6449||6451<=d&&d<=6456||6681<=d&&d<=6682||6741==d||6743==d||6765<=d&&d<=6770||6916==d||6965==d||6971==d||6973<=d&&d<=6977||6979<=d&&d<=6980||7042==d||7073==d||7078<=d&&d<=7079||7082==d||7143==d||7146<=d&&d<=7148||7150==d||7154<=d&&d<=7155||7204<=d&&d<=7211||7220<=d&&d<=7221||7393==d||7410<=d&&d<=7411||7415==d||43043<=d&&d<=43044||43047==d||43136<=d&&d<=43137||43188<=d&&d<=43203||43346<=d&&d<=43347||43395==d||43444<=d&&d<=43445||43450<=d&&d<=43451||43453<=d&&d<=43456||43567<=d&&d<=43568||43571<=d&&d<=43572||43597==d||43755==d||43758<=d&&d<=43759||43765==d||44003<=d&&d<=44004||44006<=d&&d<=44007||44009<=d&&d<=44010||44012==d||69632==d||69634==d||69762==d||69808<=d&&d<=69810||69815<=d&&d<=69816||69932==d||70018==d||70067<=d&&d<=70069||70079<=d&&d<=70080||70188<=d&&d<=70190||70194<=d&&d<=70195||70197==d||70368<=d&&d<=70370||70402<=d&&d<=70403||70463==d||70465<=d&&d<=70468||70471<=d&&d<=70472||70475<=d&&d<=70477||70498<=d&&d<=70499||70709<=d&&d<=70711||70720<=d&&d<=70721||70725==d||70833<=d&&d<=70834||70841==d||70843<=d&&d<=70844||70846==d||70849==d||71088<=d&&d<=71089||71096<=d&&d<=71099||71102==d||71216<=d&&d<=71218||71227<=d&&d<=71228||71230==d||71340==d||71342<=d&&d<=71343||71350==d||71456<=d&&d<=71457||71462==d||72199<=d&&d<=72200||72249==d||72279<=d&&d<=72280||72343==d||72751==d||72766==d||72873==d||72881==d||72884==d||94033<=d&&d<=94078||119142==d||119149==d?5:4352<=d&&d<=4447||43360<=d&&d<=43388?6:4448<=d&&d<=4519||55216<=d&&d<=55238?7:4520<=d&&d<=4607||55243<=d&&d<=55291?8:44032==d||44060==d||44088==d||44116==d||44144==d||44172==d||44200==d||44228==d||44256==d||44284==d||44312==d||44340==d||44368==d||44396==d||44424==d||44452==d||44480==d||44508==d||44536==d||44564==d||44592==d||44620==d||44648==d||44676==d||44704==d||44732==d||44760==d||44788==d||44816==d||44844==d||44872==d||44900==d||44928==d||44956==d||44984==d||45012==d||45040==d||45068==d||45096==d||45124==d||45152==d||45180==d||45208==d||45236==d||45264==d||45292==d||45320==d||45348==d||45376==d||45404==d||45432==d||45460==d||45488==d||45516==d||45544==d||45572==d||45600==d||45628==d||45656==d||45684==d||45712==d||45740==d||45768==d||45796==d||45824==d||45852==d||45880==d||45908==d||45936==d||45964==d||45992==d||46020==d||46048==d||46076==d||46104==d||46132==d||46160==d||46188==d||46216==d||46244==d||46272==d||46300==d||46328==d||46356==d||46384==d||46412==d||46440==d||46468==d||46496==d||46524==d||46552==d||46580==d||46608==d||46636==d||46664==d||46692==d||46720==d||46748==d||46776==d||46804==d||46832==d||46860==d||46888==d||46916==d||46944==d||46972==d||47e3==d||47028==d||47056==d||47084==d||47112==d||47140==d||47168==d||47196==d||47224==d||47252==d||47280==d||47308==d||47336==d||47364==d||47392==d||47420==d||47448==d||47476==d||47504==d||47532==d||47560==d||47588==d||47616==d||47644==d||47672==d||47700==d||47728==d||47756==d||47784==d||47812==d||47840==d||47868==d||47896==d||47924==d||47952==d||47980==d||48008==d||48036==d||48064==d||48092==d||48120==d||48148==d||48176==d||48204==d||48232==d||48260==d||48288==d||48316==d||48344==d||48372==d||48400==d||48428==d||48456==d||48484==d||48512==d||48540==d||48568==d||48596==d||48624==d||48652==d||48680==d||48708==d||48736==d||48764==d||48792==d||48820==d||48848==d||48876==d||48904==d||48932==d||48960==d||48988==d||49016==d||49044==d||49072==d||49100==d||49128==d||49156==d||49184==d||49212==d||49240==d||49268==d||49296==d||49324==d||49352==d||49380==d||49408==d||49436==d||49464==d||49492==d||49520==d||49548==d||49576==d||49604==d||49632==d||49660==d||49688==d||49716==d||49744==d||49772==d||49800==d||49828==d||49856==d||49884==d||49912==d||49940==d||49968==d||49996==d||50024==d||50052==d||50080==d||50108==d||50136==d||50164==d||50192==d||50220==d||50248==d||50276==d||50304==d||50332==d||50360==d||50388==d||50416==d||50444==d||50472==d||50500==d||50528==d||50556==d||50584==d||50612==d||50640==d||50668==d||50696==d||50724==d||50752==d||50780==d||50808==d||50836==d||50864==d||50892==d||50920==d||50948==d||50976==d||51004==d||51032==d||51060==d||51088==d||51116==d||51144==d||51172==d||51200==d||51228==d||51256==d||51284==d||51312==d||51340==d||51368==d||51396==d||51424==d||51452==d||51480==d||51508==d||51536==d||51564==d||51592==d||51620==d||51648==d||51676==d||51704==d||51732==d||51760==d||51788==d||51816==d||51844==d||51872==d||51900==d||51928==d||51956==d||51984==d||52012==d||52040==d||52068==d||52096==d||52124==d||52152==d||52180==d||52208==d||52236==d||52264==d||52292==d||52320==d||52348==d||52376==d||52404==d||52432==d||52460==d||52488==d||52516==d||52544==d||52572==d||52600==d||52628==d||52656==d||52684==d||52712==d||52740==d||52768==d||52796==d||52824==d||52852==d||52880==d||52908==d||52936==d||52964==d||52992==d||53020==d||53048==d||53076==d||53104==d||53132==d||53160==d||53188==d||53216==d||53244==d||53272==d||53300==d||53328==d||53356==d||53384==d||53412==d||53440==d||53468==d||53496==d||53524==d||53552==d||53580==d||53608==d||53636==d||53664==d||53692==d||53720==d||53748==d||53776==d||53804==d||53832==d||53860==d||53888==d||53916==d||53944==d||53972==d||54e3==d||54028==d||54056==d||54084==d||54112==d||54140==d||54168==d||54196==d||54224==d||54252==d||54280==d||54308==d||54336==d||54364==d||54392==d||54420==d||54448==d||54476==d||54504==d||54532==d||54560==d||54588==d||54616==d||54644==d||54672==d||54700==d||54728==d||54756==d||54784==d||54812==d||54840==d||54868==d||54896==d||54924==d||54952==d||54980==d||55008==d||55036==d||55064==d||55092==d||55120==d||55148==d||55176==d?9:44033<=d&&d<=44059||44061<=d&&d<=44087||44089<=d&&d<=44115||44117<=d&&d<=44143||44145<=d&&d<=44171||44173<=d&&d<=44199||44201<=d&&d<=44227||44229<=d&&d<=44255||44257<=d&&d<=44283||44285<=d&&d<=44311||44313<=d&&d<=44339||44341<=d&&d<=44367||44369<=d&&d<=44395||44397<=d&&d<=44423||44425<=d&&d<=44451||44453<=d&&d<=44479||44481<=d&&d<=44507||44509<=d&&d<=44535||44537<=d&&d<=44563||44565<=d&&d<=44591||44593<=d&&d<=44619||44621<=d&&d<=44647||44649<=d&&d<=44675||44677<=d&&d<=44703||44705<=d&&d<=44731||44733<=d&&d<=44759||44761<=d&&d<=44787||44789<=d&&d<=44815||44817<=d&&d<=44843||44845<=d&&d<=44871||44873<=d&&d<=44899||44901<=d&&d<=44927||44929<=d&&d<=44955||44957<=d&&d<=44983||44985<=d&&d<=45011||45013<=d&&d<=45039||45041<=d&&d<=45067||45069<=d&&d<=45095||45097<=d&&d<=45123||45125<=d&&d<=45151||45153<=d&&d<=45179||45181<=d&&d<=45207||45209<=d&&d<=45235||45237<=d&&d<=45263||45265<=d&&d<=45291||45293<=d&&d<=45319||45321<=d&&d<=45347||45349<=d&&d<=45375||45377<=d&&d<=45403||45405<=d&&d<=45431||45433<=d&&d<=45459||45461<=d&&d<=45487||45489<=d&&d<=45515||45517<=d&&d<=45543||45545<=d&&d<=45571||45573<=d&&d<=45599||45601<=d&&d<=45627||45629<=d&&d<=45655||45657<=d&&d<=45683||45685<=d&&d<=45711||45713<=d&&d<=45739||45741<=d&&d<=45767||45769<=d&&d<=45795||45797<=d&&d<=45823||45825<=d&&d<=45851||45853<=d&&d<=45879||45881<=d&&d<=45907||45909<=d&&d<=45935||45937<=d&&d<=45963||45965<=d&&d<=45991||45993<=d&&d<=46019||46021<=d&&d<=46047||46049<=d&&d<=46075||46077<=d&&d<=46103||46105<=d&&d<=46131||46133<=d&&d<=46159||46161<=d&&d<=46187||46189<=d&&d<=46215||46217<=d&&d<=46243||46245<=d&&d<=46271||46273<=d&&d<=46299||46301<=d&&d<=46327||46329<=d&&d<=46355||46357<=d&&d<=46383||46385<=d&&d<=46411||46413<=d&&d<=46439||46441<=d&&d<=46467||46469<=d&&d<=46495||46497<=d&&d<=46523||46525<=d&&d<=46551||46553<=d&&d<=46579||46581<=d&&d<=46607||46609<=d&&d<=46635||46637<=d&&d<=46663||46665<=d&&d<=46691||46693<=d&&d<=46719||46721<=d&&d<=46747||46749<=d&&d<=46775||46777<=d&&d<=46803||46805<=d&&d<=46831||46833<=d&&d<=46859||46861<=d&&d<=46887||46889<=d&&d<=46915||46917<=d&&d<=46943||46945<=d&&d<=46971||46973<=d&&d<=46999||47001<=d&&d<=47027||47029<=d&&d<=47055||47057<=d&&d<=47083||47085<=d&&d<=47111||47113<=d&&d<=47139||47141<=d&&d<=47167||47169<=d&&d<=47195||47197<=d&&d<=47223||47225<=d&&d<=47251||47253<=d&&d<=47279||47281<=d&&d<=47307||47309<=d&&d<=47335||47337<=d&&d<=47363||47365<=d&&d<=47391||47393<=d&&d<=47419||47421<=d&&d<=47447||47449<=d&&d<=47475||47477<=d&&d<=47503||47505<=d&&d<=47531||47533<=d&&d<=47559||47561<=d&&d<=47587||47589<=d&&d<=47615||47617<=d&&d<=47643||47645<=d&&d<=47671||47673<=d&&d<=47699||47701<=d&&d<=47727||47729<=d&&d<=47755||47757<=d&&d<=47783||47785<=d&&d<=47811||47813<=d&&d<=47839||47841<=d&&d<=47867||47869<=d&&d<=47895||47897<=d&&d<=47923||47925<=d&&d<=47951||47953<=d&&d<=47979||47981<=d&&d<=48007||48009<=d&&d<=48035||48037<=d&&d<=48063||48065<=d&&d<=48091||48093<=d&&d<=48119||48121<=d&&d<=48147||48149<=d&&d<=48175||48177<=d&&d<=48203||48205<=d&&d<=48231||48233<=d&&d<=48259||48261<=d&&d<=48287||48289<=d&&d<=48315||48317<=d&&d<=48343||48345<=d&&d<=48371||48373<=d&&d<=48399||48401<=d&&d<=48427||48429<=d&&d<=48455||48457<=d&&d<=48483||48485<=d&&d<=48511||48513<=d&&d<=48539||48541<=d&&d<=48567||48569<=d&&d<=48595||48597<=d&&d<=48623||48625<=d&&d<=48651||48653<=d&&d<=48679||48681<=d&&d<=48707||48709<=d&&d<=48735||48737<=d&&d<=48763||48765<=d&&d<=48791||48793<=d&&d<=48819||48821<=d&&d<=48847||48849<=d&&d<=48875||48877<=d&&d<=48903||48905<=d&&d<=48931||48933<=d&&d<=48959||48961<=d&&d<=48987||48989<=d&&d<=49015||49017<=d&&d<=49043||49045<=d&&d<=49071||49073<=d&&d<=49099||49101<=d&&d<=49127||49129<=d&&d<=49155||49157<=d&&d<=49183||49185<=d&&d<=49211||49213<=d&&d<=49239||49241<=d&&d<=49267||49269<=d&&d<=49295||49297<=d&&d<=49323||49325<=d&&d<=49351||49353<=d&&d<=49379||49381<=d&&d<=49407||49409<=d&&d<=49435||49437<=d&&d<=49463||49465<=d&&d<=49491||49493<=d&&d<=49519||49521<=d&&d<=49547||49549<=d&&d<=49575||49577<=d&&d<=49603||49605<=d&&d<=49631||49633<=d&&d<=49659||49661<=d&&d<=49687||49689<=d&&d<=49715||49717<=d&&d<=49743||49745<=d&&d<=49771||49773<=d&&d<=49799||49801<=d&&d<=49827||49829<=d&&d<=49855||49857<=d&&d<=49883||49885<=d&&d<=49911||49913<=d&&d<=49939||49941<=d&&d<=49967||49969<=d&&d<=49995||49997<=d&&d<=50023||50025<=d&&d<=50051||50053<=d&&d<=50079||50081<=d&&d<=50107||50109<=d&&d<=50135||50137<=d&&d<=50163||50165<=d&&d<=50191||50193<=d&&d<=50219||50221<=d&&d<=50247||50249<=d&&d<=50275||50277<=d&&d<=50303||50305<=d&&d<=50331||50333<=d&&d<=50359||50361<=d&&d<=50387||50389<=d&&d<=50415||50417<=d&&d<=50443||50445<=d&&d<=50471||50473<=d&&d<=50499||50501<=d&&d<=50527||50529<=d&&d<=50555||50557<=d&&d<=50583||50585<=d&&d<=50611||50613<=d&&d<=50639||50641<=d&&d<=50667||50669<=d&&d<=50695||50697<=d&&d<=50723||50725<=d&&d<=50751||50753<=d&&d<=50779||50781<=d&&d<=50807||50809<=d&&d<=50835||50837<=d&&d<=50863||50865<=d&&d<=50891||50893<=d&&d<=50919||50921<=d&&d<=50947||50949<=d&&d<=50975||50977<=d&&d<=51003||51005<=d&&d<=51031||51033<=d&&d<=51059||51061<=d&&d<=51087||51089<=d&&d<=51115||51117<=d&&d<=51143||51145<=d&&d<=51171||51173<=d&&d<=51199||51201<=d&&d<=51227||51229<=d&&d<=51255||51257<=d&&d<=51283||51285<=d&&d<=51311||51313<=d&&d<=51339||51341<=d&&d<=51367||51369<=d&&d<=51395||51397<=d&&d<=51423||51425<=d&&d<=51451||51453<=d&&d<=51479||51481<=d&&d<=51507||51509<=d&&d<=51535||51537<=d&&d<=51563||51565<=d&&d<=51591||51593<=d&&d<=51619||51621<=d&&d<=51647||51649<=d&&d<=51675||51677<=d&&d<=51703||51705<=d&&d<=51731||51733<=d&&d<=51759||51761<=d&&d<=51787||51789<=d&&d<=51815||51817<=d&&d<=51843||51845<=d&&d<=51871||51873<=d&&d<=51899||51901<=d&&d<=51927||51929<=d&&d<=51955||51957<=d&&d<=51983||51985<=d&&d<=52011||52013<=d&&d<=52039||52041<=d&&d<=52067||52069<=d&&d<=52095||52097<=d&&d<=52123||52125<=d&&d<=52151||52153<=d&&d<=52179||52181<=d&&d<=52207||52209<=d&&d<=52235||52237<=d&&d<=52263||52265<=d&&d<=52291||52293<=d&&d<=52319||52321<=d&&d<=52347||52349<=d&&d<=52375||52377<=d&&d<=52403||52405<=d&&d<=52431||52433<=d&&d<=52459||52461<=d&&d<=52487||52489<=d&&d<=52515||52517<=d&&d<=52543||52545<=d&&d<=52571||52573<=d&&d<=52599||52601<=d&&d<=52627||52629<=d&&d<=52655||52657<=d&&d<=52683||52685<=d&&d<=52711||52713<=d&&d<=52739||52741<=d&&d<=52767||52769<=d&&d<=52795||52797<=d&&d<=52823||52825<=d&&d<=52851||52853<=d&&d<=52879||52881<=d&&d<=52907||52909<=d&&d<=52935||52937<=d&&d<=52963||52965<=d&&d<=52991||52993<=d&&d<=53019||53021<=d&&d<=53047||53049<=d&&d<=53075||53077<=d&&d<=53103||53105<=d&&d<=53131||53133<=d&&d<=53159||53161<=d&&d<=53187||53189<=d&&d<=53215||53217<=d&&d<=53243||53245<=d&&d<=53271||53273<=d&&d<=53299||53301<=d&&d<=53327||53329<=d&&d<=53355||53357<=d&&d<=53383||53385<=d&&d<=53411||53413<=d&&d<=53439||53441<=d&&d<=53467||53469<=d&&d<=53495||53497<=d&&d<=53523||53525<=d&&d<=53551||53553<=d&&d<=53579||53581<=d&&d<=53607||53609<=d&&d<=53635||53637<=d&&d<=53663||53665<=d&&d<=53691||53693<=d&&d<=53719||53721<=d&&d<=53747||53749<=d&&d<=53775||53777<=d&&d<=53803||53805<=d&&d<=53831||53833<=d&&d<=53859||53861<=d&&d<=53887||53889<=d&&d<=53915||53917<=d&&d<=53943||53945<=d&&d<=53971||53973<=d&&d<=53999||54001<=d&&d<=54027||54029<=d&&d<=54055||54057<=d&&d<=54083||54085<=d&&d<=54111||54113<=d&&d<=54139||54141<=d&&d<=54167||54169<=d&&d<=54195||54197<=d&&d<=54223||54225<=d&&d<=54251||54253<=d&&d<=54279||54281<=d&&d<=54307||54309<=d&&d<=54335||54337<=d&&d<=54363||54365<=d&&d<=54391||54393<=d&&d<=54419||54421<=d&&d<=54447||54449<=d&&d<=54475||54477<=d&&d<=54503||54505<=d&&d<=54531||54533<=d&&d<=54559||54561<=d&&d<=54587||54589<=d&&d<=54615||54617<=d&&d<=54643||54645<=d&&d<=54671||54673<=d&&d<=54699||54701<=d&&d<=54727||54729<=d&&d<=54755||54757<=d&&d<=54783||54785<=d&&d<=54811||54813<=d&&d<=54839||54841<=d&&d<=54867||54869<=d&&d<=54895||54897<=d&&d<=54923||54925<=d&&d<=54951||54953<=d&&d<=54979||54981<=d&&d<=55007||55009<=d&&d<=55035||55037<=d&&d<=55063||55065<=d&&d<=55091||55093<=d&&d<=55119||55121<=d&&d<=55147||55149<=d&&d<=55175||55177<=d&&d<=55203?10:9757==d||9977==d||9994<=d&&d<=9997||127877==d||127938<=d&&d<=127940||127943==d||127946<=d&&d<=127948||128066<=d&&d<=128067||128070<=d&&d<=128080||128110==d||128112<=d&&d<=128120||128124==d||128129<=d&&d<=128131||128133<=d&&d<=128135||128170==d||128372<=d&&d<=128373||128378==d||128400==d||128405<=d&&d<=128406||128581<=d&&d<=128583||128587<=d&&d<=128591||128675==d||128692<=d&&d<=128694||128704==d||128716==d||129304<=d&&d<=129308||129310<=d&&d<=129311||129318==d||129328<=d&&d<=129337||129341<=d&&d<=129342||129489<=d&&d<=129501?se:127995<=d&&d<=127999?14:8205==d?15:9792==d||9794==d||9877<=d&&d<=9878||9992==d||10084==d||127752==d||127806==d||127859==d||127891==d||127908==d||127912==d||127979==d||127981==d||128139==d||128187<=d&&d<=128188||128295==d||128300==d||128488==d||128640==d||128658==d?Ye:128102<=d&&d<=128105?me:11}return this.nextBreak=function(d,U){if(void 0===U&&(U=0),U<0)return 0;if(U>=d.length-1)return d.length;for(var H=G(st(d,U)),O=[],Z=U+1;Z0&&(pe.cancelable&&pe.preventDefault(),se.ptrElement.style[se.cssProp]=le.distResisted+"px",le.distResisted=se.resistanceFunction(le.distExtra/se.distThreshold)*Math.min(se.distMax,le.distExtra),"pulling"===le.state&&le.distResisted>se.distThreshold&&(se.ptrElement.classList.add(se.classPrefix+"release"),le.state="releasing",B.update(se)),"releasing"===le.state&&le.distResistedse.distThreshold)le.state="refreshing",se.ptrElement.style[se.cssProp]=se.distReload+"px",se.ptrElement.classList.add(se.classPrefix+"refresh"),le.timeout=setTimeout(function(){var pe=se.onRefresh(function(){return B.onReset(se)});pe&&"function"==typeof pe.then&&pe.then(function(){return B.onReset(se)}),!pe&&!se.onRefresh.length&&B.onReset(se)},se.refreshTimeout);else{if("refreshing"===le.state)return;se.ptrElement.style[se.cssProp]="0px",le.state="pending"}B.update(se),se.ptrElement.classList.remove(se.classPrefix+"release"),se.ptrElement.classList.remove(se.classPrefix+"pull"),le.pullStartY=le.pullMoveY=null,le.dist=le.distResisted=0}}function me(){se&&se.mainElement.classList.toggle(se.classPrefix+"top",se.shouldPullToRefresh())}var ke=le.supportsPassive?{passive:le.passive||!1}:void 0;return le.pointerEventsEnabled&&le.supportsPointerEvents?(window.addEventListener("pointerup",Ye),window.addEventListener("pointerdown",Ce),window.addEventListener("pointermove",He,ke)):(window.addEventListener("touchend",Ye),window.addEventListener("touchstart",Ce),window.addEventListener("touchmove",He,ke)),window.addEventListener("scroll",me),{onTouchEnd:Ye,onTouchStart:Ce,onTouchMove:He,onScroll:me,destroy:function(){le.pointerEventsEnabled&&le.supportsPointerEvents?(window.removeEventListener("pointerdown",Ce),window.removeEventListener("pointerup",Ye),window.removeEventListener("pointermove",He,ke)):(window.removeEventListener("touchstart",Ce),window.removeEventListener("touchend",Ye),window.removeEventListener("touchmove",He,ke)),window.removeEventListener("scroll",me)}}},Ze={distThreshold:60,distMax:80,distReload:50,distIgnore:0,mainElement:"body",triggerElement:"body",ptrElement:".ptr",classPrefix:"ptr--",cssProp:"min-height",iconArrow:"⇣",iconRefreshing:"…",instructionsPullToRefresh:"Pull down to refresh",instructionsReleaseToRefresh:"Release to refresh",instructionsRefreshing:"Refreshing",refreshTimeout:500,getMarkup:function(){return'\n
\n
\n
\n
\n
\n
\n'},getStyles:function(){return"\n.__PREFIX__ptr {\n box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.12);\n pointer-events: none;\n font-size: 0.85em;\n font-weight: bold;\n top: 0;\n height: 0;\n transition: height 0.3s, min-height 0.3s;\n text-align: center;\n width: 100%;\n overflow: hidden;\n display: flex;\n align-items: flex-end;\n align-content: stretch;\n}\n\n.__PREFIX__box {\n padding: 10px;\n flex-basis: 100%;\n}\n\n.__PREFIX__pull {\n transition: none;\n}\n\n.__PREFIX__text {\n margin-top: .33em;\n color: rgba(0, 0, 0, 0.3);\n}\n\n.__PREFIX__icon {\n color: rgba(0, 0, 0, 0.3);\n transition: transform .3s;\n}\n\n/*\nWhen at the top of the page, disable vertical overscroll so passive touch\nlisteners can take over.\n*/\n.__PREFIX__top {\n touch-action: pan-x pan-down pinch-zoom;\n}\n\n.__PREFIX__release .__PREFIX__icon {\n transform: rotate(180deg);\n}\n"},onInit:function(){},onRefresh:function(){return location.reload()},resistanceFunction:function(se){return Math.min(1,se/2.5)},shouldPullToRefresh:function(){return!window.scrollY}},te=["mainElement","ptrElement","triggerElement"],re=function(se){var Ce={};return Object.keys(Ze).forEach(function(He){Ce[He]=se[He]||Ze[He]}),Ce.refreshTimeout="number"==typeof se.refreshTimeout?se.refreshTimeout:Ze.refreshTimeout,te.forEach(function(He){"string"==typeof Ce[He]&&(Ce[He]=document.querySelector(Ce[He]))}),le.events||(le.events=de()),Ce.contains=function(He){return Ce.triggerElement.contains(He)},Ce.destroy=function(){clearTimeout(le.timeout);var He=le.handlers.indexOf(Ce);le.handlers.splice(He,1)},Ce};return{setPassiveMode:function(Ce){le.passive=Ce},setPointerEventsMode:function(Ce){le.pointerEventsEnabled=Ce},destroyAll:function(){le.events&&(le.events.destroy(),le.events=null),le.handlers.forEach(function(Ce){Ce.destroy()})},init:function(Ce){void 0===Ce&&(Ce={});var He=re(Ce);return le.handlers.push(He),He},_:{setupHandler:re,setupEvents:de,setupDOM:B.setupDOM,onReset:B.onReset,update:B.update}}}()},8306:(_t,le,P)=>{"use strict";P.d(le,{y:()=>te});var t=P(930),J=P(727),B=P(8822),Se=P(4671);var ee=P(2416),Ie=P(576),Ze=P(2806);let te=(()=>{class Ce{constructor(Ye){Ye&&(this._subscribe=Ye)}lift(Ye){const me=new Ce;return me.source=this,me.operator=Ye,me}subscribe(Ye,me,ke){const pe=function se(Ce){return Ce&&Ce instanceof t.Lv||function be(Ce){return Ce&&(0,Ie.m)(Ce.next)&&(0,Ie.m)(Ce.error)&&(0,Ie.m)(Ce.complete)}(Ce)&&(0,J.Nn)(Ce)}(Ye)?Ye:new t.Hp(Ye,me,ke);return(0,Ze.x)(()=>{const{operator:De,source:Ve}=this;pe.add(De?De.call(pe,Ve):Ve?this._subscribe(pe):this._trySubscribe(pe))}),pe}_trySubscribe(Ye){try{return this._subscribe(Ye)}catch(me){Ye.error(me)}}forEach(Ye,me){return new(me=re(me))((ke,pe)=>{let De;De=this.subscribe(Ve=>{try{Ye(Ve)}catch(et){pe(et),null==De||De.unsubscribe()}},pe,ke)})}_subscribe(Ye){var me;return null===(me=this.source)||void 0===me?void 0:me.subscribe(Ye)}[B.L](){return this}pipe(...Ye){return function de(Ce){return 0===Ce.length?Se.y:1===Ce.length?Ce[0]:function(Ye){return Ce.reduce((me,ke)=>ke(me),Ye)}}(Ye)(this)}toPromise(Ye){return new(Ye=re(Ye))((me,ke)=>{let pe;this.subscribe(De=>pe=De,De=>ke(De),()=>me(pe))})}}return Ce.create=He=>new Ce(He),Ce})();function re(Ce){var He;return null!==(He=null!=Ce?Ce:ee.v.Promise)&&void 0!==He?He:Promise}},7579:(_t,le,P)=>{"use strict";P.d(le,{u:()=>Ie,x:()=>ee});var t=P(8306),J=P(727);const Se=(0,P(3888).d)(Ze=>function(){Ze(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=P(8737),de=P(2806);let ee=(()=>{class Ze extends t.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(re){const be=new Ie(this,this);return be.operator=re,be}_throwIfClosed(){if(this.closed)throw new Se}next(re){(0,de.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const be=this.observers.slice();for(const se of be)se.next(re)}})}error(re){(0,de.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=re;const{observers:be}=this;for(;be.length;)be.shift().error(re)}})}complete(){(0,de.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:re}=this;for(;re.length;)re.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var re;return(null===(re=this.observers)||void 0===re?void 0:re.length)>0}_trySubscribe(re){return this._throwIfClosed(),super._trySubscribe(re)}_subscribe(re){return this._throwIfClosed(),this._checkFinalizedStatuses(re),this._innerSubscribe(re)}_innerSubscribe(re){const{hasError:be,isStopped:se,observers:Ce}=this;return be||se?J.Lc:(Ce.push(re),new J.w0(()=>(0,z.P)(Ce,re)))}_checkFinalizedStatuses(re){const{hasError:be,thrownError:se,isStopped:Ce}=this;be?re.error(se):Ce&&re.complete()}asObservable(){const re=new t.y;return re.source=this,re}}return Ze.create=(te,re)=>new Ie(te,re),Ze})();class Ie extends ee{constructor(te,re){super(),this.destination=te,this.source=re}next(te){var re,be;null===(be=null===(re=this.destination)||void 0===re?void 0:re.next)||void 0===be||be.call(re,te)}error(te){var re,be;null===(be=null===(re=this.destination)||void 0===re?void 0:re.error)||void 0===be||be.call(re,te)}complete(){var te,re;null===(re=null===(te=this.destination)||void 0===te?void 0:te.complete)||void 0===re||re.call(te)}_subscribe(te){var re,be;return null!==(be=null===(re=this.source)||void 0===re?void 0:re.subscribe(te))&&void 0!==be?be:J.Lc}}},930:(_t,le,P)=>{"use strict";P.d(le,{Hp:()=>se,Lv:()=>be});var t=P(576),J=P(727),B=P(2416),Se=P(7849),z=P(5032);const de=Ze("C",void 0,void 0);function Ze(ke,pe,De){return{kind:ke,value:pe,error:De}}var te=P(3410),re=P(2806);class be extends J.w0{constructor(pe){super(),this.isStopped=!1,pe?(this.destination=pe,(0,J.Nn)(pe)&&pe.add(this)):this.destination=me}static create(pe,De,Ve){return new se(pe,De,Ve)}next(pe){this.isStopped?Ye(function Ie(ke){return Ze("N",ke,void 0)}(pe),this):this._next(pe)}error(pe){this.isStopped?Ye(function ee(ke){return Ze("E",void 0,ke)}(pe),this):(this.isStopped=!0,this._error(pe))}complete(){this.isStopped?Ye(de,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(pe){this.destination.next(pe)}_error(pe){try{this.destination.error(pe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class se extends be{constructor(pe,De,Ve){let et;if(super(),(0,t.m)(pe))et=pe;else if(pe){let ze;({next:et,error:De,complete:Ve}=pe),this&&B.v.useDeprecatedNextContext?(ze=Object.create(pe),ze.unsubscribe=()=>this.unsubscribe()):ze=pe,et=null==et?void 0:et.bind(ze),De=null==De?void 0:De.bind(ze),Ve=null==Ve?void 0:Ve.bind(ze)}this.destination={next:et?Ce(et):z.Z,error:Ce(null!=De?De:He),complete:Ve?Ce(Ve):z.Z}}}function Ce(ke,pe){return(...De)=>{try{ke(...De)}catch(Ve){B.v.useDeprecatedSynchronousErrorHandling?(0,re.O)(Ve):(0,Se.h)(Ve)}}}function He(ke){throw ke}function Ye(ke,pe){const{onStoppedNotification:De}=B.v;De&&te.z.setTimeout(()=>De(ke,pe))}const me={closed:!0,next:z.Z,error:He,complete:z.Z}},727:(_t,le,P)=>{"use strict";P.d(le,{Lc:()=>de,w0:()=>z,Nn:()=>ee});var t=P(576);const B=(0,P(3888).d)(Ze=>function(re){Ze(this),this.message=re?`${re.length} errors occurred during unsubscription:\n${re.map((be,se)=>`${se+1}) ${be.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=re});var Se=P(8737);class z{constructor(te){this.initialTeardown=te,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let te;if(!this.closed){this.closed=!0;const{_parentage:re}=this;if(re)if(this._parentage=null,Array.isArray(re))for(const Ce of re)Ce.remove(this);else re.remove(this);const{initialTeardown:be}=this;if((0,t.m)(be))try{be()}catch(Ce){te=Ce instanceof B?Ce.errors:[Ce]}const{_teardowns:se}=this;if(se){this._teardowns=null;for(const Ce of se)try{Ie(Ce)}catch(He){te=null!=te?te:[],He instanceof B?te=[...te,...He.errors]:te.push(He)}}if(te)throw new B(te)}}add(te){var re;if(te&&te!==this)if(this.closed)Ie(te);else{if(te instanceof z){if(te.closed||te._hasParent(this))return;te._addParent(this)}(this._teardowns=null!==(re=this._teardowns)&&void 0!==re?re:[]).push(te)}}_hasParent(te){const{_parentage:re}=this;return re===te||Array.isArray(re)&&re.includes(te)}_addParent(te){const{_parentage:re}=this;this._parentage=Array.isArray(re)?(re.push(te),re):re?[re,te]:te}_removeParent(te){const{_parentage:re}=this;re===te?this._parentage=null:Array.isArray(re)&&(0,Se.P)(re,te)}remove(te){const{_teardowns:re}=this;re&&(0,Se.P)(re,te),te instanceof z&&te._removeParent(this)}}z.EMPTY=(()=>{const Ze=new z;return Ze.closed=!0,Ze})();const de=z.EMPTY;function ee(Ze){return Ze instanceof z||Ze&&"closed"in Ze&&(0,t.m)(Ze.remove)&&(0,t.m)(Ze.add)&&(0,t.m)(Ze.unsubscribe)}function Ie(Ze){(0,t.m)(Ze)?Ze():Ze.unsubscribe()}},2416:(_t,le,P)=>{"use strict";P.d(le,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},515:(_t,le,P)=>{"use strict";P.d(le,{E:()=>J});const J=new(P(8306).y)(z=>z.complete())},8996:(_t,le,P)=>{"use strict";P.d(le,{D:()=>et});var t=P(8421),J=P(5363),B=P(9468),de=P(8306),Ie=P(2202),Ze=P(576),te=P(9672);function be(ze,st){if(!ze)throw new Error("Iterable cannot be null");return new de.y(Ee=>{(0,te.f)(Ee,st,()=>{const G=ze[Symbol.asyncIterator]();(0,te.f)(Ee,st,()=>{G.next().then(d=>{d.done?Ee.complete():Ee.next(d.value)})},0,!0)})})}var se=P(3670),Ce=P(8239),He=P(1144),Ye=P(6495),me=P(2206),ke=P(4532),pe=P(3260);function et(ze,st){return st?function Ve(ze,st){if(null!=ze){if((0,se.c)(ze))return function Se(ze,st){return(0,t.Xf)(ze).pipe((0,B.R)(st),(0,J.Q)(st))}(ze,st);if((0,He.z)(ze))return function ee(ze,st){return new de.y(Ee=>{let G=0;return st.schedule(function(){G===ze.length?Ee.complete():(Ee.next(ze[G++]),Ee.closed||this.schedule())})})}(ze,st);if((0,Ce.t)(ze))return function z(ze,st){return(0,t.Xf)(ze).pipe((0,B.R)(st),(0,J.Q)(st))}(ze,st);if((0,me.D)(ze))return be(ze,st);if((0,Ye.T)(ze))return function re(ze,st){return new de.y(Ee=>{let G;return(0,te.f)(Ee,st,()=>{G=ze[Ie.h](),(0,te.f)(Ee,st,()=>{let d,U;try{({value:d,done:U}=G.next())}catch(H){return void Ee.error(H)}U?Ee.complete():Ee.next(d)},0,!0)}),()=>(0,Ze.m)(null==G?void 0:G.return)&&G.return()})}(ze,st);if((0,pe.L)(ze))return function De(ze,st){return be((0,pe.Q)(ze),st)}(ze,st)}throw(0,ke.z)(ze)}(ze,st):(0,t.Xf)(ze)}},8421:(_t,le,P)=>{"use strict";P.d(le,{Xf:()=>se});var t=P(5987),J=P(1144),B=P(8239),Se=P(8306),z=P(3670),de=P(2206),ee=P(4532),Ie=P(6495),Ze=P(3260),te=P(576),re=P(7849),be=P(8822);function se(Ve){if(Ve instanceof Se.y)return Ve;if(null!=Ve){if((0,z.c)(Ve))return function Ce(Ve){return new Se.y(et=>{const ze=Ve[be.L]();if((0,te.m)(ze.subscribe))return ze.subscribe(et);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ve);if((0,J.z)(Ve))return function He(Ve){return new Se.y(et=>{for(let ze=0;ze{Ve.then(ze=>{et.closed||(et.next(ze),et.complete())},ze=>et.error(ze)).then(null,re.h)})}(Ve);if((0,de.D)(Ve))return ke(Ve);if((0,Ie.T)(Ve))return function me(Ve){return new Se.y(et=>{for(const ze of Ve)if(et.next(ze),et.closed)return;et.complete()})}(Ve);if((0,Ze.L)(Ve))return function pe(Ve){return ke((0,Ze.Q)(Ve))}(Ve)}throw(0,ee.z)(Ve)}function ke(Ve){return new Se.y(et=>{(function De(Ve,et){var ze,st,Ee,G;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ze=(0,t.KL)(Ve);!(st=yield ze.next()).done;)if(et.next(st.value),et.closed)return}catch(d){Ee={error:d}}finally{try{st&&!st.done&&(G=ze.return)&&(yield G.call(ze))}finally{if(Ee)throw Ee.error}}et.complete()})})(Ve,et).catch(ze=>et.error(ze))})}},6451:(_t,le,P)=>{"use strict";P.d(le,{T:()=>de});var t=P(8189),J=P(8421),B=P(515),Se=P(3269),z=P(8996);function de(...ee){const Ie=(0,Se.yG)(ee),Ze=(0,Se._6)(ee,1/0),te=ee;return te.length?1===te.length?(0,J.Xf)(te[0]):(0,t.J)(Ze)((0,z.D)(te,Ie)):B.E}},5403:(_t,le,P)=>{"use strict";P.d(le,{Q:()=>J});var t=P(930);class J extends t.Lv{constructor(Se,z,de,ee,Ie){super(Se),this.onFinalize=Ie,this._next=z?function(Ze){try{z(Ze)}catch(te){Se.error(te)}}:super._next,this._error=ee?function(Ze){try{ee(Ze)}catch(te){Se.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=de?function(){try{de()}catch(Ze){Se.error(Ze)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var Se;const{closed:z}=this;super.unsubscribe(),!z&&(null===(Se=this.onFinalize)||void 0===Se||Se.call(this))}}},4004:(_t,le,P)=>{"use strict";P.d(le,{U:()=>B});var t=P(4482),J=P(5403);function B(Se,z){return(0,t.e)((de,ee)=>{let Ie=0;de.subscribe(new J.Q(ee,Ze=>{ee.next(Se.call(z,Ze,Ie++))}))})}},8189:(_t,le,P)=>{"use strict";P.d(le,{J:()=>B});var t=P(5577),J=P(4671);function B(Se=1/0){return(0,t.z)(J.y,Se)}},5577:(_t,le,P)=>{"use strict";P.d(le,{z:()=>Ie});var t=P(4004),J=P(8421),B=P(4482),Se=P(9672),z=P(5403),ee=P(576);function Ie(Ze,te,re=1/0){return(0,ee.m)(te)?Ie((be,se)=>(0,t.U)((Ce,He)=>te(be,Ce,se,He))((0,J.Xf)(Ze(be,se))),re):("number"==typeof te&&(re=te),(0,B.e)((be,se)=>function de(Ze,te,re,be,se,Ce,He,Ye){const me=[];let ke=0,pe=0,De=!1;const Ve=()=>{De&&!me.length&&!ke&&te.complete()},et=st=>ke{Ce&&te.next(st),ke++;let Ee=!1;(0,J.Xf)(re(st,pe++)).subscribe(new z.Q(te,G=>{null==se||se(G),Ce?et(G):te.next(G)},()=>{Ee=!0},void 0,()=>{if(Ee)try{for(ke--;me.length&&keze(G)):ze(G)}Ve()}catch(G){te.error(G)}}))};return Ze.subscribe(new z.Q(te,et,()=>{De=!0,Ve()})),()=>{null==Ye||Ye()}}(be,se,Ze,re)))}},5363:(_t,le,P)=>{"use strict";P.d(le,{Q:()=>Se});var t=P(9672),J=P(4482),B=P(5403);function Se(z,de=0){return(0,J.e)((ee,Ie)=>{ee.subscribe(new B.Q(Ie,Ze=>(0,t.f)(Ie,z,()=>Ie.next(Ze),de),()=>(0,t.f)(Ie,z,()=>Ie.complete(),de),Ze=>(0,t.f)(Ie,z,()=>Ie.error(Ze),de)))})}},3099:(_t,le,P)=>{"use strict";P.d(le,{B:()=>de});var t=P(8996),J=P(5698),B=P(7579),Se=P(930),z=P(4482);function de(Ie={}){const{connector:Ze=(()=>new B.x),resetOnError:te=!0,resetOnComplete:re=!0,resetOnRefCountZero:be=!0}=Ie;return se=>{let Ce=null,He=null,Ye=null,me=0,ke=!1,pe=!1;const De=()=>{null==He||He.unsubscribe(),He=null},Ve=()=>{De(),Ce=Ye=null,ke=pe=!1},et=()=>{const ze=Ce;Ve(),null==ze||ze.unsubscribe()};return(0,z.e)((ze,st)=>{me++,!pe&&!ke&&De();const Ee=Ye=null!=Ye?Ye:Ze();st.add(()=>{me--,0===me&&!pe&&!ke&&(He=ee(et,be))}),Ee.subscribe(st),Ce||(Ce=new Se.Hp({next:G=>Ee.next(G),error:G=>{pe=!0,De(),He=ee(Ve,te,G),Ee.error(G)},complete:()=>{ke=!0,De(),He=ee(Ve,re),Ee.complete()}}),(0,t.D)(ze).subscribe(Ce))})(se)}}function ee(Ie,Ze,...te){return!0===Ze?(Ie(),null):!1===Ze?null:Ze(...te).pipe((0,J.q)(1)).subscribe(()=>Ie())}},9468:(_t,le,P)=>{"use strict";P.d(le,{R:()=>J});var t=P(4482);function J(B,Se=0){return(0,t.e)((z,de)=>{de.add(B.schedule(()=>z.subscribe(de),Se))})}},5698:(_t,le,P)=>{"use strict";P.d(le,{q:()=>Se});var t=P(515),J=P(4482),B=P(5403);function Se(z){return z<=0?()=>t.E:(0,J.e)((de,ee)=>{let Ie=0;de.subscribe(new B.Q(ee,Ze=>{++Ie<=z&&(ee.next(Ze),z<=Ie&&ee.complete())}))})}},3410:(_t,le,P)=>{"use strict";P.d(le,{z:()=>t});const t={setTimeout(...J){const{delegate:B}=t;return((null==B?void 0:B.setTimeout)||setTimeout)(...J)},clearTimeout(J){const{delegate:B}=t;return((null==B?void 0:B.clearTimeout)||clearTimeout)(J)},delegate:void 0}},2202:(_t,le,P)=>{"use strict";P.d(le,{h:()=>J});const J=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(_t,le,P)=>{"use strict";P.d(le,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(_t,le,P)=>{"use strict";P.d(le,{_6:()=>de,jO:()=>Se,yG:()=>z});var t=P(576),J=P(3532);function B(ee){return ee[ee.length-1]}function Se(ee){return(0,t.m)(B(ee))?ee.pop():void 0}function z(ee){return(0,J.K)(B(ee))?ee.pop():void 0}function de(ee,Ie){return"number"==typeof B(ee)?ee.pop():Ie}},8737:(_t,le,P)=>{"use strict";function t(J,B){if(J){const Se=J.indexOf(B);0<=Se&&J.splice(Se,1)}}P.d(le,{P:()=>t})},3888:(_t,le,P)=>{"use strict";function t(J){const Se=J(z=>{Error.call(z),z.stack=(new Error).stack});return Se.prototype=Object.create(Error.prototype),Se.prototype.constructor=Se,Se}P.d(le,{d:()=>t})},2806:(_t,le,P)=>{"use strict";P.d(le,{O:()=>Se,x:()=>B});var t=P(2416);let J=null;function B(z){if(t.v.useDeprecatedSynchronousErrorHandling){const de=!J;if(de&&(J={errorThrown:!1,error:null}),z(),de){const{errorThrown:ee,error:Ie}=J;if(J=null,ee)throw Ie}}else z()}function Se(z){t.v.useDeprecatedSynchronousErrorHandling&&J&&(J.errorThrown=!0,J.error=z)}},9672:(_t,le,P)=>{"use strict";function t(J,B,Se,z=0,de=!1){const ee=B.schedule(function(){Se(),de?J.add(this.schedule(null,z)):this.unsubscribe()},z);if(J.add(ee),!de)return ee}P.d(le,{f:()=>t})},4671:(_t,le,P)=>{"use strict";function t(J){return J}P.d(le,{y:()=>t})},1144:(_t,le,P)=>{"use strict";P.d(le,{z:()=>t});const t=J=>J&&"number"==typeof J.length&&"function"!=typeof J},2206:(_t,le,P)=>{"use strict";P.d(le,{D:()=>J});var t=P(576);function J(B){return Symbol.asyncIterator&&(0,t.m)(null==B?void 0:B[Symbol.asyncIterator])}},576:(_t,le,P)=>{"use strict";function t(J){return"function"==typeof J}P.d(le,{m:()=>t})},3670:(_t,le,P)=>{"use strict";P.d(le,{c:()=>B});var t=P(8822),J=P(576);function B(Se){return(0,J.m)(Se[t.L])}},6495:(_t,le,P)=>{"use strict";P.d(le,{T:()=>B});var t=P(2202),J=P(576);function B(Se){return(0,J.m)(null==Se?void 0:Se[t.h])}},8239:(_t,le,P)=>{"use strict";P.d(le,{t:()=>J});var t=P(576);function J(B){return(0,t.m)(null==B?void 0:B.then)}},3260:(_t,le,P)=>{"use strict";P.d(le,{L:()=>Se,Q:()=>B});var t=P(5987),J=P(576);function B(z){return(0,t.FC)(this,arguments,function*(){const ee=z.getReader();try{for(;;){const{value:Ie,done:Ze}=yield(0,t.qq)(ee.read());if(Ze)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(Ie)}}finally{ee.releaseLock()}})}function Se(z){return(0,J.m)(null==z?void 0:z.getReader)}},3532:(_t,le,P)=>{"use strict";P.d(le,{K:()=>J});var t=P(576);function J(B){return B&&(0,t.m)(B.schedule)}},4482:(_t,le,P)=>{"use strict";P.d(le,{A:()=>J,e:()=>B});var t=P(576);function J(Se){return(0,t.m)(null==Se?void 0:Se.lift)}function B(Se){return z=>{if(J(z))return z.lift(function(de){try{return Se(de,this)}catch(ee){this.error(ee)}});throw new TypeError("Unable to lift unknown Observable type")}}},5032:(_t,le,P)=>{"use strict";function t(){}P.d(le,{Z:()=>t})},7849:(_t,le,P)=>{"use strict";P.d(le,{h:()=>B});var t=P(2416),J=P(3410);function B(Se){J.z.setTimeout(()=>{const{onUnhandledError:z}=t.v;if(!z)throw Se;z(Se)})}},4532:(_t,le,P)=>{"use strict";function t(J){return new TypeError(`You provided ${null!==J&&"object"==typeof J?"an invalid object":`'${J}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}P.d(le,{z:()=>t})},5987:(_t,le,P)=>{"use strict";function Ie(d,U,H,O){return new(H||(H=Promise))(function(Y,Pe){function Oe(oe){try{j(O.next(oe))}catch(he){Pe(he)}}function ct(oe){try{j(O.throw(oe))}catch(he){Pe(he)}}function j(oe){oe.done?Y(oe.value):function Z(Y){return Y instanceof H?Y:new H(function(Pe){Pe(Y)})}(oe.value).then(Oe,ct)}j((O=O.apply(d,U||[])).next())})}function me(d){return this instanceof me?(this.v=d,this):new me(d)}function ke(d,U,H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z,O=H.apply(d,U||[]),Y=[];return Z={},Pe("next"),Pe("throw"),Pe("return"),Z[Symbol.asyncIterator]=function(){return this},Z;function Pe(ve){O[ve]&&(Z[ve]=function(Ge){return new Promise(function(je,bt){Y.push([ve,Ge,je,bt])>1||Oe(ve,Ge)})})}function Oe(ve,Ge){try{!function ct(ve){ve.value instanceof me?Promise.resolve(ve.value.v).then(j,oe):he(Y[0][2],ve)}(O[ve](Ge))}catch(je){he(Y[0][3],je)}}function j(ve){Oe("next",ve)}function oe(ve){Oe("throw",ve)}function he(ve,Ge){ve(Ge),Y.shift(),Y.length&&Oe(Y[0][0],Y[0][1])}}function De(d){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var H,U=d[Symbol.asyncIterator];return U?U.call(d):(d=function be(d){var U="function"==typeof Symbol&&Symbol.iterator,H=U&&d[U],O=0;if(H)return H.call(d);if(d&&"number"==typeof d.length)return{next:function(){return d&&O>=d.length&&(d=void 0),{value:d&&d[O++],done:!d}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),H={},O("next"),O("throw"),O("return"),H[Symbol.asyncIterator]=function(){return this},H);function O(Y){H[Y]=d[Y]&&function(Pe){return new Promise(function(Oe,ct){!function Z(Y,Pe,Oe,ct){Promise.resolve(ct).then(function(j){Y({value:j,done:Oe})},Pe)}(Oe,ct,(Pe=d[Y](Pe)).done,Pe.value)})}}}P.d(le,{FC:()=>ke,KL:()=>De,mG:()=>Ie,qq:()=>me})},5e3:(_t,le,P)=>{"use strict";P.d(le,{$8M:()=>pl,$Z:()=>sf,AFp:()=>lm,ALo:()=>kC,AaK:()=>Ie,AsE:()=>Wx,B6R:()=>sr,BQk:()=>q0,CHM:()=>vp,CRH:()=>VC,CZH:()=>Nv,CqO:()=>cD,DdM:()=>mv,Dn7:()=>bf,EJc:()=>JE,EiD:()=>sg,EpF:()=>aD,F$t:()=>hD,F4k:()=>lD,FYo:()=>TC,FiY:()=>rs,G48:()=>_1,Gf:()=>wf,GfV:()=>SC,GkF:()=>Px,Gpc:()=>re,Gre:()=>BD,HOy:()=>zx,Hh0:()=>Bl,Hsn:()=>fD,Ikx:()=>eC,JOm:()=>fo,JVY:()=>wy,Jf7:()=>Xu,L6k:()=>HT,LAX:()=>jT,LFG:()=>zi,LSH:()=>X_,Lbi:()=>l1,MAs:()=>YS,MGl:()=>Y0,NdJ:()=>Rx,O4$:()=>yc,OlP:()=>yi,Oqu:()=>Zx,PXZ:()=>PN,Q6J:()=>Cd,QGY:()=>Nx,Qsj:()=>bE,QtT:()=>pE,R0b:()=>ws,RDi:()=>va,Rgc:()=>sa,SBq:()=>mf,SDv:()=>br,Sil:()=>XE,Suo:()=>jC,TTD:()=>fc,TgZ:()=>V0,Tol:()=>DD,Udp:()=>Hx,VKq:()=>Zg,VLi:()=>aA,W1O:()=>WC,WFA:()=>z0,WLB:()=>_v,X6Q:()=>fm,XFs:()=>Ke,Xpm:()=>wr,Y36:()=>rf,YKP:()=>ME,YNc:()=>Dx,Yjl:()=>We,Yz7:()=>je,ZZ4:()=>Wv,_Bn:()=>fv,_UZ:()=>kx,_Vd:()=>Gg,_c5:()=>WN,_uU:()=>PD,aQg:()=>zv,c2e:()=>Zo,cJS:()=>Ft,cg1:()=>kg,d8E:()=>X0,dDg:()=>h1,deG:()=>I_,dqk:()=>Et,eBb:()=>$_,eFA:()=>f1,ekj:()=>jx,f3M:()=>Fo,g9A:()=>a1,h0i:()=>Md,hGG:()=>TA,hYB:()=>Bx,hij:()=>Q0,iGM:()=>FE,ifc:()=>cn,ip1:()=>o1,kEZ:()=>vv,kL8:()=>ev,kYT:()=>L,kcU:()=>si,l5B:()=>Wg,lG2:()=>ye,lcZ:()=>NC,lnq:()=>qx,mCW:()=>Yu,n5z:()=>Sh,n_E:()=>Jg,oAB:()=>F,oJD:()=>Zh,oxw:()=>$0,pB0:()=>VT,pQV:()=>yr,q3G:()=>$i,q4F:()=>DC,qLn:()=>Ku,qOj:()=>N0,qZA:()=>Z0,qzn:()=>Sl,s9C:()=>Lx,sBO:()=>RN,sIi:()=>dd,s_b:()=>Eo,soG:()=>Fv,tBr:()=>fr,tb:()=>Rv,tp0:()=>Xn,uIk:()=>B0,vHH:()=>He,vpe:()=>Vo,wAp:()=>Qt,xDo:()=>$x,xp6:()=>Wy,yhl:()=>z_,ynx:()=>W0,z2F:()=>g1,z3N:()=>So,zSh:()=>xg,zs3:()=>ps});var t=P(7579),J=P(727),B=P(8306),Se=P(6451),z=P(3099);function de(a){for(let l in a)if(a[l]===de)return l;throw Error("Could not find renamed property on target object.")}function ee(a,l){for(const u in l)l.hasOwnProperty(u)&&!a.hasOwnProperty(u)&&(a[u]=l[u])}function Ie(a){if("string"==typeof a)return a;if(Array.isArray(a))return"["+a.map(Ie).join(", ")+"]";if(null==a)return""+a;if(a.overriddenName)return`${a.overriddenName}`;if(a.name)return`${a.name}`;const l=a.toString();if(null==l)return""+l;const u=l.indexOf("\n");return-1===u?l:l.substring(0,u)}function Ze(a,l){return null==a||""===a?null===l?"":l:null==l||""===l?a:a+" "+l}const te=de({__forward_ref__:de});function re(a){return a.__forward_ref__=re,a.toString=function(){return Ie(this())},a}function be(a){return se(a)?a():a}function se(a){return"function"==typeof a&&a.hasOwnProperty(te)&&a.__forward_ref__===re}class He extends Error{constructor(l,u){super(function Ye(a,l){return`NG0${Math.abs(a)}${l?": "+l:""}`}(l,u)),this.code=l}}function me(a){return"string"==typeof a?a:null==a?"":String(a)}function ke(a){return"function"==typeof a?a.name||a.toString():"object"==typeof a&&null!=a&&"function"==typeof a.type?a.type.name||a.type.toString():me(a)}function et(a,l){const u=l?` in ${l}`:"";throw new He(-201,`No provider for ${ke(a)} found${u}`)}function oe(a,l,u,h){throw new Error(`ASSERTION ERROR: ${a}`+(null==h?"":` [Expected=> ${u} ${h} ${l} <=Actual]`))}function je(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}}function Ft(a){return{providers:a.providers||[],imports:a.imports||[]}}function Ot(a){return Tt(a,Mt)||Tt(a,rn)}function Tt(a,l){return a.hasOwnProperty(l)?a[l]:null}function yt(a){return a&&(a.hasOwnProperty(Jt)||a.hasOwnProperty(it))?a[Jt]:null}const Mt=de({\u0275prov:de}),Jt=de({\u0275inj:de}),rn=de({ngInjectableDef:de}),it=de({ngInjectorDef:de});var Ke=(()=>((Ke=Ke||{})[Ke.Default=0]="Default",Ke[Ke.Host=1]="Host",Ke[Ke.Self=2]="Self",Ke[Ke.SkipSelf=4]="SkipSelf",Ke[Ke.Optional=8]="Optional",Ke))();let bn;function Xt(a){const l=bn;return bn=a,l}function An(a,l,u){const h=Ot(a);return h&&"root"==h.providedIn?void 0===h.value?h.value=h.factory():h.value:u&Ke.Optional?null:void 0!==l?l:void et(Ie(a),"Injector")}function Nn(a){return{toString:a}.toString()}var Cn=(()=>((Cn=Cn||{})[Cn.OnPush=0]="OnPush",Cn[Cn.Default=1]="Default",Cn))(),cn=(()=>{return(a=cn||(cn={}))[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom",cn;var a})();const St="undefined"!=typeof globalThis&&globalThis,tt="undefined"!=typeof window&&window,Zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et=St||"undefined"!=typeof global&&global||tt||Zt,qt={},wt=[],Ri=de({\u0275cmp:de}),gn=de({\u0275dir:de}),Jn=de({\u0275pipe:de}),Qn=de({\u0275mod:de}),Hn=de({\u0275fac:de}),oi=de({__NG_ELEMENT_ID__:de});let vi=0;function wr(a){return Nn(()=>{const u={},h={type:a.type,providersResolver:null,decls:a.decls,vars:a.vars,factory:null,template:a.template||null,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||null,contentQueries:a.contentQueries||null,declaredInputs:u,inputs:null,outputs:null,exportAs:a.exportAs||null,onPush:a.changeDetection===Cn.OnPush,directiveDefs:null,pipeDefs:null,selectors:a.selectors||wt,viewQuery:a.viewQuery||null,features:a.features||null,data:a.data||{},encapsulation:a.encapsulation||cn.Emulated,id:"c",styles:a.styles||wt,_:null,setInput:null,schemas:a.schemas||null,tView:null},p=a.directives,_=a.features,y=a.pipes;return h.id+=vi++,h.inputs=k(a.inputs,u),h.outputs=k(a.outputs),_&&_.forEach(w=>w(h)),h.directiveDefs=p?()=>("function"==typeof p?p():p).map(Fi):null,h.pipeDefs=y?()=>("function"==typeof y?y():y).map(ie):null,h})}function sr(a,l,u){const h=a.\u0275cmp;h.directiveDefs=()=>l.map(Fi),h.pipeDefs=()=>u.map(ie)}function Fi(a){return ot(a)||function Lt(a){return a[gn]||null}(a)}function ie(a){return function kt(a){return a[Jn]||null}(a)}const X={};function F(a){return Nn(()=>{const l={type:a.type,bootstrap:a.bootstrap||wt,declarations:a.declarations||wt,imports:a.imports||wt,exports:a.exports||wt,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null};return null!=a.id&&(X[a.id]=a.type),l})}function L(a,l){return Nn(()=>{const u=sn(a,!0);u.declarations=l.declarations||wt,u.imports=l.imports||wt,u.exports=l.exports||wt})}function k(a,l){if(null==a)return qt;const u={};for(const h in a)if(a.hasOwnProperty(h)){let p=a[h],_=p;Array.isArray(p)&&(_=p[1],p=p[0]),u[p]=h,l&&(l[p]=_)}return u}const ye=wr;function We(a){return{type:a.type,name:a.name,factory:null,pure:!1!==a.pure,onDestroy:a.type.prototype.ngOnDestroy||null}}function ot(a){return a[Ri]||null}function sn(a,l){const u=a[Qn]||null;if(!u&&!0===l)throw new Error(`Type ${Ie(a)} does not have '\u0275mod' property.`);return u}const W=10;function Qr(a){return Array.isArray(a)&&"object"==typeof a[1]}function Kr(a){return Array.isArray(a)&&!0===a[1]}function Q(a){return 0!=(8&a.flags)}function _e(a){return 2==(2&a.flags)}function Ue(a){return 1==(1&a.flags)}function pt(a){return null!==a.template}function Mn(a){return 0!=(512&a[2])}function Sr(a,l){return a.hasOwnProperty(Hn)?a[Hn]:null}class h_{constructor(l,u,h){this.previousValue=l,this.currentValue=u,this.firstChange=h}isFirstChange(){return this.firstChange}}function fc(){return f_}function f_(a){return a.type.prototype.ngOnChanges&&(a.setInput=py),ah}function ah(){const a=p_(this),l=null==a?void 0:a.current;if(l){const u=a.previous;if(u===qt)a.previous=l;else for(let h in l)u[h]=l[h];a.current=null,this.ngOnChanges(l)}}function py(a,l,u,h){const p=p_(a)||function gy(a,l){return a[lh]=l}(a,{previous:qt,current:null}),_=p.current||(p.current={}),y=p.previous,w=this.declaredInputs[u],S=y[w];_[w]=new h_(S&&S.currentValue,l,y===qt),a[h]=l}fc.ngInherit=!0;const lh="__ngSimpleChanges__";function p_(a){return a[lh]||null}let Bs;function va(a){Bs=a}function ba(){return void 0!==Bs?Bs:"undefined"!=typeof document?document:void 0}function Li(a){return!!a.listen}const ch={createRenderer:(a,l)=>ba()};function er(a){for(;Array.isArray(a);)a=a[0];return a}function Gs(a,l){return er(l[a])}function Gr(a,l){return er(l[a.index])}function dh(a,l){return a.data[l]}function pc(a,l){return a[l]}function Ur(a,l){const u=l[a];return Qr(u)?u:u[0]}function wu(a){return 4==(4&a[2])}function hh(a){return 128==(128&a[2])}function xa(a,l){return null==l?null:a[l]}function fh(a){a[18]=0}function gc(a,l){a[5]+=l;let u=a,h=a[3];for(;null!==h&&(1===l&&1===u[5]||-1===l&&0===u[5]);)h[5]+=l,u=h,h=h[3]}const dn={lFrame:yh(null),bindingsEnabled:!0};function ph(){return dn.bindingsEnabled}function Xe(){return dn.lFrame.lView}function Rn(){return dn.lFrame.tView}function vp(a){return dn.lFrame.contextLView=a,a[8]}function Zi(){let a=b_();for(;null!==a&&64===a.type;)a=a.parent;return a}function b_(){return dn.lFrame.currentTNode}function Xo(){const a=dn.lFrame,l=a.currentTNode;return a.isParent?l:l.parent}function Hr(a,l){const u=dn.lFrame;u.currentTNode=a,u.isParent=l}function Ca(){return dn.lFrame.isParent}function Us(){dn.lFrame.isParent=!1}function Bi(){const a=dn.lFrame;let l=a.bindingRootIndex;return-1===l&&(l=a.bindingRootIndex=a.tView.bindingStartIndex),l}function Hs(){return dn.lFrame.bindingIndex}function cl(){return dn.lFrame.bindingIndex++}function xo(a){const l=dn.lFrame,u=l.bindingIndex;return l.bindingIndex=l.bindingIndex+a,u}function Su(a){dn.lFrame.inI18n=a}function yp(a,l){const u=dn.lFrame;u.bindingIndex=u.bindingRootIndex=a,_h(l)}function _h(a){dn.lFrame.currentDirectiveIndex=a}function vc(a){const l=dn.lFrame.currentDirectiveIndex;return-1===l?null:a[l]}function bc(){return dn.lFrame.currentQueryIndex}function vh(a){dn.lFrame.currentQueryIndex=a}function bh(a){const l=a[1];return 2===l.type?l.declTNode:1===l.type?a[6]:null}function xp(a,l,u){if(u&Ke.SkipSelf){let p=l,_=a;for(;!(p=p.parent,null!==p||u&Ke.Host||(p=bh(_),null===p||(_=_[15],10&p.type))););if(null===p)return!1;l=p,a=_}const h=dn.lFrame=Eu();return h.currentTNode=l,h.lView=a,!0}function Du(a){const l=Eu(),u=a[1];dn.lFrame=l,l.currentTNode=u.firstChild,l.lView=a,l.tView=u,l.contextLView=a,l.bindingIndex=u.bindingStartIndex,l.inI18n=!1}function Eu(){const a=dn.lFrame,l=null===a?null:a.child;return null===l?yh(a):l}function yh(a){const l={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:a,child:null,inI18n:!1};return null!==a&&(a.child=l),l}function Au(){const a=dn.lFrame;return dn.lFrame=a.parent,a.currentTNode=null,a.lView=null,a}const Cp=Au;function wa(){const a=Au();a.isParent=!0,a.tView=null,a.selectedIndex=-1,a.contextLView=null,a.elementDepthCount=0,a.currentDirectiveIndex=-1,a.currentNamespace=null,a.bindingRootIndex=-1,a.bindingIndex=-1,a.currentQueryIndex=0}function kr(){return dn.lFrame.selectedIndex}function ho(a){dn.lFrame.selectedIndex=a}function pi(){const a=dn.lFrame;return dh(a.tView,a.selectedIndex)}function yc(){dn.lFrame.currentNamespace="svg"}function si(){!function vy(){dn.lFrame.currentNamespace=null}()}function Ta(a,l){for(let u=l.directiveStart,h=l.directiveEnd;u=h)break}else l[S]<0&&(a[18]+=65536),(w<_||-1==_)&&(T_(a,u,l,S),a[18]=(4294901760&a[18])+S+2),S++}function T_(a,l,u,h){const p=u[h]<0,_=u[h+1],w=a[p?-u[h]:u[h]];if(p){if(a[2]>>11>16&&(3&a[2])===l){a[2]+=2048;try{_.call(w)}finally{}}}else try{_.call(w)}finally{}}class Sa{constructor(l,u,h){this.factory=l,this.resolving=!1,this.canSeeViewProviders=u,this.injectImpl=h}}function wh(a,l,u){const h=Li(a);let p=0;for(;pl){y=_-1;break}}}for(;_>16}(a),h=l;for(;u>0;)h=h[15],u--;return h}let Ou=!0;function Tc(a){const l=Ou;return Ou=a,l}let Pu=0;function dl(a,l){const u=hl(a,l);if(-1!==u)return u;const h=l[1];h.firstCreatePass&&(a.injectorIndex=l.length,Ep(h.data,a),Ep(l,null),Ep(h.blueprint,null));const p=Dc(a,l),_=a.injectorIndex;if(ul(p)){const y=Ea(p),w=Aa(p,l),S=w[1].data;for(let E=0;E<8;E++)l[_+E]=w[y+E]|S[y+E]}return l[_+8]=p,_}function Ep(a,l){a.push(0,0,0,0,0,0,0,0,l)}function hl(a,l){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===l[a.injectorIndex+8]?-1:a.injectorIndex}function Dc(a,l){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;let u=0,h=null,p=l;for(;null!==p;){const _=p[1],y=_.type;if(h=2===y?_.declTNode:1===y?p[6]:null,null===h)return-1;if(u++,p=p[15],-1!==h.injectorIndex)return h.injectorIndex|u<<16}return-1}function Ec(a,l,u){!function Sc(a,l,u){let h;"string"==typeof u?h=u.charCodeAt(0)||0:u.hasOwnProperty(oi)&&(h=u[oi]),null==h&&(h=u[oi]=Pu++);const p=255&h;l.data[a+(p>>5)]|=1<=0?255&l:E_:l}(u);if("function"==typeof _){if(!xp(l,a,h))return h&Ke.Host?Nu(p,u,h):Ap(l,u,h,p);try{const y=_(h);if(null!=y||h&Ke.Optional)return y;et(u)}finally{Cp()}}else if("number"==typeof _){let y=null,w=hl(a,l),S=-1,E=h&Ke.Host?l[16][6]:null;for((-1===w||h&Ke.SkipSelf)&&(S=-1===w?Dc(a,l):l[w+8],-1!==S&&Ip(h,!1)?(y=l[1],w=Ea(S),l=Aa(S,l)):w=-1);-1!==w;){const I=l[1];if(Ru(_,w,I.data)){const q=Wi(w,l,u,y,h,E);if(q!==Ma)return q}S=l[w+8],-1!==S&&Ip(h,l[1].data[w+8]===E)&&Ru(_,w,l)?(y=I,w=Ea(S),l=Aa(S,l)):w=-1}}}return Ap(l,u,h,p)}const Ma={};function E_(){return new fl(Zi(),Xe())}function Wi(a,l,u,h,p,_){const y=l[1],w=y.data[a+8],I=Ac(w,y,u,null==h?_e(w)&&Ou:h!=y&&0!=(3&w.type),p&Ke.Host&&_===w);return null!==I?Ia(l,y,I,w):Ma}function Ac(a,l,u,h,p){const _=a.providerIndexes,y=l.data,w=1048575&_,S=a.directiveStart,I=_>>20,ae=p?w+I:a.directiveEnd;for(let xe=h?w:w+I;xe=S&&Be.type===u)return xe}if(p){const xe=y[S];if(xe&&pt(xe)&&xe.type===u)return S}return null}function Ia(a,l,u,h){let p=a[u];const _=l.data;if(function Cc(a){return a instanceof Sa}(p)){const y=p;y.resolving&&function pe(a,l){const u=l?`. Dependency path: ${l.join(" > ")} > ${a}`:"";throw new He(-200,`Circular dependency in DI detected for ${a}${u}`)}(ke(_[u]));const w=Tc(y.canSeeViewProviders);y.resolving=!0;const S=y.injectImpl?Xt(y.injectImpl):null;xp(a,h,Ke.Default);try{p=a[u]=y.factory(void 0,_,a,h),l.firstCreatePass&&u>=h.directiveStart&&function wp(a,l,u){const{ngOnChanges:h,ngOnInit:p,ngDoCheck:_}=l.type.prototype;if(h){const y=f_(l);(u.preOrderHooks||(u.preOrderHooks=[])).push(a,y),(u.preOrderCheckHooks||(u.preOrderCheckHooks=[])).push(a,y)}p&&(u.preOrderHooks||(u.preOrderHooks=[])).push(0-a,p),_&&((u.preOrderHooks||(u.preOrderHooks=[])).push(a,_),(u.preOrderCheckHooks||(u.preOrderCheckHooks=[])).push(a,_))}(u,_[u],l)}finally{null!==S&&Xt(S),Tc(w),y.resolving=!1,Cp()}}return p}function Ru(a,l,u){return!!(u[l+(a>>5)]&1<{const l=a.prototype.constructor,u=l[Hn]||Dh(l),h=Object.prototype;let p=Object.getPrototypeOf(a.prototype).constructor;for(;p&&p!==h;){const _=p[Hn]||Dh(p);if(_&&_!==u)return _;p=Object.getPrototypeOf(p)}return _=>new _})}function Dh(a){return se(a)?()=>{const l=Dh(be(a));return l&&l()}:Sr(a)}function pl(a){return function D_(a,l){if("class"===l)return a.classes;if("style"===l)return a.styles;const u=a.attrs;if(u){const h=u.length;let p=0;for(;p{const h=function Fu(a){return function(...u){if(a){const h=a(...u);for(const p in h)this[p]=h[p]}}}(l);function p(..._){if(this instanceof p)return h.apply(this,_),this;const y=new p(..._);return w.annotation=y,w;function w(S,E,I){const q=S.hasOwnProperty(wo)?S[wo]:Object.defineProperty(S,wo,{value:[]})[wo];for(;q.length<=I;)q.push(null);return(q[I]=q[I]||[]).push(y),S}}return u&&(p.prototype=Object.create(u.prototype)),p.prototype.ngMetadataName=a,p.annotationCls=p,p})}class yi{constructor(l,u){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof u?this.__NG_ELEMENT_ID__=u:void 0!==u&&(this.\u0275prov=je({token:this,providedIn:u.providedIn||"root",factory:u.factory}))}toString(){return`InjectionToken ${this._desc}`}}const I_=new yi("AnalyzeForEntryComponents");function Xr(a,l){void 0===l&&(l=a);for(let u=0;uArray.isArray(u)?es(u,l):l(u))}function N_(a,l,u){l>=a.length?a.push(u):a.splice(l,0,u)}function Lu(a,l){return l>=a.length-1?a.pop():a.splice(l,1)[0]}function Bu(a,l){const u=[];for(let h=0;h=0?a[1|h]=u:(h=~h,function Cy(a,l,u,h){let p=a.length;if(p==l)a.push(u,h);else if(1===p)a.push(h,a[0]),a[0]=u;else{for(p--,a.push(a[p-1],a[p]);p>l;)a[p]=a[p-2],p--;a[l]=u,a[l+1]=h}}(a,h,l,u)),h}function vl(a,l){const u=Oc(a,l);if(u>=0)return a[1|u]}function Oc(a,l){return function ts(a,l,u){let h=0,p=a.length>>u;for(;p!==h;){const _=h+(p-h>>1),y=a[_<l?p=_:h=_+1}return~(p<({token:a})),-1),rs=qs(gl("Optional"),8),Xn=qs(gl("SkipSelf"),4);var fo=(()=>((fo=fo||{})[fo.Important=1]="Important",fo[fo.DashCase=2]="DashCase",fo))();const Bo=/^>|^->||--!>|)/;const Up="__ngContext__";function pr(a,l){a[Up]=l}function Na(a){const l=function Bc(a){return a[Up]||null}(a);return l?Array.isArray(l)?l:l.lView:null}let Gu;function Gc(a,l){return Gu(a,l)}function Uc(a){const l=a[3];return Kr(l)?l[3]:l}function Uu(a){return V_(a[13])}function Hu(a){return V_(a[4])}function V_(a){for(;null!==a&&!Kr(a);)a=a[4];return a}function gr(a,l,u,h,p){if(null!=h){let _,y=!1;Kr(h)?_=h:Qr(h)&&(y=!0,h=h[0]);const w=er(h);0===a&&null!==u?null==p?Cl(l,u,w):La(l,u,w,p||null,!0):1===a&&null!==u?La(l,u,w,p||null,!0):2===a?Sn(l,w,y):3===a&&l.destroyNode(w),null!=_&&function jc(a,l,u,h,p){const _=u[7];_!==er(u)&&gr(l,a,h,_,p);for(let w=W;wl.replace($s,"\u200b$1\u200b"))}(l))}function Vu(a,l,u){if(Li(a))return a.createElement(l,u);{const h=null!==u?function Ko(a){const l=a.toLowerCase();return"svg"===l?"http://www.w3.org/2000/svg":"math"===l?"http://www.w3.org/1998/MathML/":null}(u):null;return null===h?a.createElement(l):a.createElementNS(h,l)}}function as(a,l){const u=a[9],h=u.indexOf(l),p=l[3];1024&l[2]&&(l[2]&=-1025,gc(p,-1)),u.splice(h,1)}function vn(a,l){if(a.length<=W)return;const u=W+l,h=a[u];if(h){const p=h[17];null!==p&&p!==a&&as(p,h),l>0&&(a[u-1][4]=h[4]);const _=Lu(a,W+l);!function zp(a,l){go(a,l,l[11],2,null,null),l[0]=null,l[6]=null}(h[1],h);const y=_[19];null!==y&&y.detachView(_[1]),h[3]=null,h[4]=null,h[2]&=-129}return h}function Ra(a,l){if(!(256&l[2])){const u=l[11];Li(u)&&u.destroyNode&&go(a,l,u,3,null,null),function Yp(a){let l=a[13];if(!l)return Zu(a[1],a);for(;l;){let u=null;if(Qr(l))u=l[13];else{const h=l[W];h&&(u=h)}if(!u){for(;l&&!l[4]&&l!==a;)Qr(l)&&Zu(l[1],l),l=l[3];null===l&&(l=a),Qr(l)&&Zu(l[1],l),u=l&&l[4]}l=u}}(l)}}function Zu(a,l){if(!(256&l[2])){l[2]&=-129,l[2]|=256,function W_(a,l){let u;if(null!=a&&null!=(u=a.destroyHooks))for(let h=0;h=0?h[p=E]():h[p=-E].unsubscribe(),_+=2}else{const y=h[p=u[_+1]];u[_].call(y)}if(null!==h){for(let _=p+1;_a,createScript:a=>a,createScriptURL:a=>a})}catch(a){}return Tl}())||void 0===l?void 0:l.createHTML(a))||a}function q_(a){var l;return(null===(l=function Hh(){if(void 0===Uh&&(Uh=null,Et.trustedTypes))try{Uh=Et.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch(a){}return Uh}())||void 0===l?void 0:l.createHTML(a))||a}class Zc{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class jh extends Zc{getTypeName(){return"HTML"}}class BT extends Zc{getTypeName(){return"Style"}}class GT extends Zc{getTypeName(){return"Script"}}class UT extends Zc{getTypeName(){return"URL"}}class tg extends Zc{getTypeName(){return"ResourceURL"}}function So(a){return a instanceof Zc?a.changingThisBreaksApplicationSecurity:a}function Sl(a,l){const u=z_(a);if(null!=u&&u!==l){if("ResourceURL"===u&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${u} (see https://g.co/ng/security#xss)`)}return u===l}function z_(a){return a instanceof Zc&&a.getTypeName()||null}function wy(a){return new jh(a)}function HT(a){return new BT(a)}function $_(a){return new GT(a)}function jT(a){return new UT(a)}function VT(a){return new tg(a)}function Ty(a){const l=new ng(a);return function ZT(){try{return!!(new window.DOMParser).parseFromString(ls(""),"text/html")}catch(a){return!1}}()?new Sy(l):l}class Sy{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l=""+l;try{const u=(new window.DOMParser).parseFromString(ls(l),"text/html").body;return null===u?this.inertDocumentHelper.getInertBodyElement(l):(u.removeChild(u.firstChild),u)}catch(u){return null}}}class ng{constructor(l){if(this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const u=this.inertDocument.createElement("html");this.inertDocument.appendChild(u);const h=this.inertDocument.createElement("body");u.appendChild(h)}}getInertBodyElement(l){const u=this.inertDocument.createElement("template");if("content"in u)return u.innerHTML=ls(l),u;const h=this.inertDocument.createElement("body");return h.innerHTML=ls(l),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(h),h}stripCustomNsAttrs(l){const u=l.attributes;for(let p=u.length-1;0Yu(l.trim())).join(", ")}function Js(a){const l={};for(const u of a.split(","))l[u]=!0;return l}function Vh(...a){const l={};for(const u of a)for(const h in u)u.hasOwnProperty(h)&&(l[h]=!0);return l}const ig=Js("area,br,col,hr,img,wbr"),Ba=Js("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ay=Js("rp,rt"),J_=Vh(ig,Vh(Ba,Js("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Vh(Ay,Js("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Vh(Ay,Ba)),Q_=Js("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Wc=Js("srcset"),Qu=Vh(Q_,Wc,Js("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Js("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),K_=Js("script,style,template");class WT{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(l){let u=l.firstChild,h=!0;for(;u;)if(u.nodeType===Node.ELEMENT_NODE?h=this.startElement(u):u.nodeType===Node.TEXT_NODE?this.chars(u.nodeValue):this.sanitizedSomething=!0,h&&u.firstChild)u=u.firstChild;else for(;u;){u.nodeType===Node.ELEMENT_NODE&&this.endElement(u);let p=this.checkClobberedElement(u,u.nextSibling);if(p){u=p;break}u=this.checkClobberedElement(u,u.parentNode)}return this.buf.join("")}startElement(l){const u=l.nodeName.toLowerCase();if(!J_.hasOwnProperty(u))return this.sanitizedSomething=!0,!K_.hasOwnProperty(u);this.buf.push("<"),this.buf.push(u);const h=l.attributes;for(let p=0;p"),!0}endElement(l){const u=l.nodeName.toLowerCase();J_.hasOwnProperty(u)&&!ig.hasOwnProperty(u)&&(this.buf.push(""))}chars(l){this.buf.push(Oy(l))}checkClobberedElement(l,u){if(u&&(l.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${l.outerHTML}`);return u}}const My=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iy=/([^\#-~ |!])/g;function Oy(a){return a.replace(/&/g,"&").replace(My,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(Iy,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(//g,">")}let og;function sg(a,l){let u=null;try{og=og||Ty(a);let h=l?String(l):"";u=og.getInertBodyElement(h);let p=5,_=h;do{if(0===p)throw new Error("Failed to sanitize html because the input is unstable");p--,h=_,_=u.innerHTML,u=og.getInertBodyElement(h)}while(h!==_);return ls((new WT).sanitizeChildren(mo(u)||u))}finally{if(u){const h=mo(u)||u;for(;h.firstChild;)h.removeChild(h.firstChild)}}}function mo(a){return"content"in a&&function ky(a){return a.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===a.nodeName}(a)?a.content:null}var $i=(()=>(($i=$i||{})[$i.NONE=0]="NONE",$i[$i.HTML=1]="HTML",$i[$i.STYLE=2]="STYLE",$i[$i.SCRIPT=3]="SCRIPT",$i[$i.URL=4]="URL",$i[$i.RESOURCE_URL=5]="RESOURCE_URL",$i))();function Zh(a){const l=Ga();return l?q_(l.sanitize($i.HTML,a)||""):Sl(a,"HTML")?q_(So(a)):sg(ba(),me(a))}function X_(a){const l=Ga();return l?l.sanitize($i.URL,a)||"":Sl(a,"URL")?So(a):Yu(me(a))}function Ga(){const a=Xe();return a&&a[12]}function t0(a){return a.ngOriginalError}function KT(a,...l){a.error(...l)}class Ku{constructor(){this._console=console}handleError(l){const u=this._findOriginalError(l),h=function QT(a){return a&&a.ngErrorLogger||KT}(l);h(this._console,"ERROR",l),u&&h(this._console,"ORIGINAL ERROR",u)}_findOriginalError(l){let u=l&&t0(l);for(;u&&t0(u);)u=t0(u);return u||null}}const nS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Et))();function Xu(a){return a.ownerDocument.defaultView}function Ks(a){return a instanceof Function?a():a}function By(a,l,u){let h=a.length;for(;;){const p=a.indexOf(l,u);if(-1===p)return p;if(0===p||a.charCodeAt(p-1)<=32){const _=l.length;if(p+_===h||a.charCodeAt(p+_)<=32)return p}u=p+1}}const Gy="ng-template";function oS(a,l,u){let h=0;for(;h_?"":p[q+1].toLowerCase();const xe=8&h?ae:null;if(xe&&-1!==By(xe,E,0)||2&h&&E!==ae){if(cs(h))return!1;y=!0}}}}else{if(!y&&!cs(h)&&!cs(S))return!1;if(y&&cs(S))continue;y=!1,h=S|1&h}}return cs(h)||y}function cs(a){return 0==(1&a)}function lS(a,l,u,h){if(null===l)return-1;let p=0;if(h||!u){let _=!1;for(;p-1)for(u++;u0?'="'+w+'"':"")+"]"}else 8&h?p+="."+y:4&h&&(p+=" "+y);else""!==p&&!cs(y)&&(l+=r0(_,p),p=""),h=y,_=_||!cs(h);u++}return""!==p&&(l+=r0(_,p)),l}const mn={};function Wy(a){o0(Rn(),Xe(),kr()+a,!1)}function o0(a,l,u,h){if(!h)if(3==(3&l[2])){const _=a.preOrderCheckHooks;null!==_&&Mu(l,_,u)}else{const _=a.preOrderHooks;null!==_&&js(l,_,0,u)}ho(u)}function ed(a,l){return a<<17|l<<2}function us(a){return a>>17&32767}function Wh(a){return 2|a}function Xs(a){return(131068&a)>>2}function s0(a,l){return-131069&a|l<<2}function a0(a){return 1|a}function sx(a,l){const u=a.contentQueries;if(null!==u)for(let h=0;h20&&o0(a,l,20,!1),u(h,p)}finally{ho(_)}}function lx(a,l,u){if(Q(l)){const p=l.directiveEnd;for(let _=l.directiveStart;_0;){const u=a[--l];if("number"==typeof u&&u<0)return u}return 0})(w)!=S&&w.push(S),w.push(h,p,y)}}function wS(a,l){null!==a.hostBindings&&a.hostBindings(1,l)}function TS(a,l){l.flags|=2,(a.components||(a.components=[])).push(l.index)}function SS(a,l,u){if(u){if(l.exportAs)for(let h=0;h0&&px(u)}}function px(a){for(let h=Uu(a);null!==h;h=Hu(h))for(let p=W;p0&&px(_)}const u=a[1].components;if(null!==u)for(let h=0;h0&&px(p)}}function eP(a,l){const u=Ur(l,a),h=u[1];(function IS(a,l){for(let u=l.length;uPromise.resolve(null))();function sd(a){return a[7]||(a[7]=[])}function S0(a){return a.cleanup||(a.cleanup=[])}function yg(a,l,u){return(null===a||pt(a))&&(u=function uh(a){for(;Array.isArray(a);){if("object"==typeof a[1])return a;a=a[0]}return null}(u[l.index])),u[11]}function D0(a,l){const u=a[9],h=u?u.get(Ku,null):null;h&&h.handleError(l)}function $h(a,l,u,h,p){for(let _=0;_this.processProvider(w,l,u)),es([l],w=>this.processInjectorType(w,[],_)),this.records.set(ad,Ha(void 0,this));const y=this.records.get(xg);this.scope=null!=y?y.value:null,this.source=p||("object"==typeof l?null:Ie(l))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(l=>l.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(l,u=kc,h=Ke.Default){this.assertNotDestroyed();const p=Nc(this),_=Xt(void 0);try{if(!(h&Ke.SkipSelf)){let w=this.records.get(l);if(void 0===w){const S=function Si(a){return"function"==typeof a||"object"==typeof a&&a instanceof yi}(l)&&Ot(l);w=S&&this.injectableDefInScope(S)?Ha(fn(l),Yc):null,this.records.set(l,w)}if(null!=w)return this.hydrate(l,w)}return(h&Ke.Self?PS():this.parent).get(l,u=h&Ke.Optional&&u===kc?null:u)}catch(y){if("NullInjectorError"===y.name){if((y[Le]=y[Le]||[]).unshift(Ie(l)),p)throw y;return function Oh(a,l,u,h){const p=a[Le];throw l[Pc]&&p.unshift(l[Pc]),a.message=function Lo(a,l,u,h=null){a=a&&"\n"===a.charAt(0)&&"\u0275"==a.charAt(1)?a.substr(2):a;let p=Ie(l);if(Array.isArray(l))p=l.map(Ie).join(" -> ");else if("object"==typeof l){let _=[];for(let y in l)if(l.hasOwnProperty(y)){let w=l[y];_.push(y+":"+("string"==typeof w?JSON.stringify(w):Ie(w)))}p=`{${_.join(", ")}}`}return`${u}${h?"("+h+")":""}[${p}]: ${a.replace(B_,"\n ")}`}("\n"+a.message,p,u,h),a.ngTokenPath=p,a[Le]=null,a}(y,l,"R3InjectorError",this.source)}throw y}finally{Xt(_),Nc(p)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(l=>this.get(l))}toString(){const l=[];return this.records.forEach((h,p)=>l.push(Ie(p))),`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new He(205,!1)}processInjectorType(l,u,h){if(!(l=be(l)))return!1;let p=yt(l);const _=null==p&&l.ngModule||void 0,y=void 0===_?l:_,w=-1!==h.indexOf(y);if(void 0!==_&&(p=yt(_)),null==p)return!1;if(null!=p.imports&&!w){let I;h.push(y);try{es(p.imports,q=>{this.processInjectorType(q,u,h)&&(void 0===I&&(I=[]),I.push(q))})}finally{}if(void 0!==I)for(let q=0;qthis.processProvider(Be,ae,xe||wt))}}this.injectorDefTypes.add(y);const S=Sr(y)||(()=>new y);this.records.set(y,Ha(S,Yc));const E=p.providers;if(null!=E&&!w){const I=l;es(E,q=>this.processProvider(q,I,E))}return void 0!==_&&void 0!==l.providers}processProvider(l,u,h){let p=ld(l=be(l))?l:be(l&&l.provide);const _=function Ua(a,l,u){return tr(a)?Ha(void 0,a.useValue):Ha(mx(a),Yc)}(l);if(ld(l)||!0!==l.multi)this.records.get(p);else{let y=this.records.get(p);y||(y=Ha(void 0,Yc,!0),y.factory=()=>Ih(y.multi),this.records.set(p,y)),p=l,y.multi.push(l)}this.records.set(p,_)}hydrate(l,u){return u.value===Yc&&(u.value=M0,u.value=u.factory()),"object"==typeof u.value&&u.value&&function FS(a){return null!==a&&"object"==typeof a&&"function"==typeof a.ngOnDestroy}(u.value)&&this.onDestroy.add(u.value),u.value}injectableDefInScope(l){if(!l.providedIn)return!1;const u=be(l.providedIn);return"string"==typeof u?"any"===u||u===this.scope:this.injectorDefTypes.has(u)}}function fn(a){const l=Ot(a),u=null!==l?l.factory:Sr(a);if(null!==u)return u;if(a instanceof yi)throw new He(204,!1);if(a instanceof Function)return function Wt(a){const l=a.length;if(l>0)throw Bu(l,"?"),new He(204,!1);const u=function at(a){const l=a&&(a[Mt]||a[rn]);if(l){const u=function ht(a){if(a.hasOwnProperty("name"))return a.name;const l=(""+a).match(/^function\s*([^\s(]+)/);return null===l?"":l[1]}(a);return console.warn(`DEPRECATED: DI is instantiating a token "${u}" 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 "${u}" class.`),l}return null}(a);return null!==u?()=>u.factory(a):()=>new a}(a);throw new He(204,!1)}function mx(a,l,u){let h;if(ld(a)){const p=be(a);return Sr(p)||fn(p)}if(tr(a))h=()=>be(a.useValue);else if(function nP(a){return!(!a||!a.useFactory)}(a))h=()=>a.useFactory(...Ih(a.deps||[]));else if(function ja(a){return!(!a||!a.useExisting)}(a))h=()=>zi(be(a.useExisting));else{const p=be(a&&(a.useClass||a.provide));if(!function RS(a){return!!a.deps}(a))return Sr(p)||fn(p);h=()=>new p(...Ih(a.deps))}return h}function Ha(a,l,u=!1){return{factory:a,value:l,multi:u?[]:void 0}}function tr(a){return null!==a&&"object"==typeof a&&Kn in a}function ld(a){return"function"==typeof a}let ps=(()=>{class a{static create(u,h){var p;if(Array.isArray(u))return pn({name:""},h,u,"");{const _=null!==(p=u.name)&&void 0!==p?p:"";return pn({name:_},u.parent,u.providers,_)}}}return a.THROW_IF_NOT_FOUND=kc,a.NULL=new A0,a.\u0275prov=je({token:a,providedIn:"any",factory:()=>zi(ad)}),a.__NG_ELEMENT_ID__=-1,a})();function oP(a,l){Ta(Na(a)[1],Zi())}function N0(a){let l=function P0(a){return Object.getPrototypeOf(a.prototype).constructor}(a.type),u=!0;const h=[a];for(;l;){let p;if(pt(a))p=l.\u0275cmp||l.\u0275dir;else{if(l.\u0275cmp)throw new He(903,"");p=l.\u0275dir}if(p){if(u){h.push(p);const y=a;y.inputs=R0(a.inputs),y.declaredInputs=R0(a.declaredInputs),y.outputs=R0(a.outputs);const w=p.hostBindings;w&&ud(a,w);const S=p.viewQuery,E=p.contentQueries;if(S&&Il(a,S),E&&wx(a,E),ee(a.inputs,p.inputs),ee(a.declaredInputs,p.declaredInputs),ee(a.outputs,p.outputs),pt(p)&&p.data.animation){const I=a.data;I.animation=(I.animation||[]).concat(p.data.animation)}}const _=p.features;if(_)for(let y=0;y<_.length;y++){const w=_[y];w&&w.ngInherit&&w(a),w===N0&&(u=!1)}}l=Object.getPrototypeOf(l)}!function HS(a){let l=0,u=null;for(let h=a.length-1;h>=0;h--){const p=a[h];p.hostVars=l+=p.hostVars,p.hostAttrs=Co(p.hostAttrs,u=Co(u,p.hostAttrs))}}(h)}function R0(a){return a===qt?{}:a===wt?[]:a}function Il(a,l){const u=a.viewQuery;a.viewQuery=u?(h,p)=>{l(h,p),u(h,p)}:l}function wx(a,l){const u=a.contentQueries;a.contentQueries=u?(h,p,_)=>{l(h,p,_),u(h,p,_)}:l}function ud(a,l){const u=a.hostBindings;a.hostBindings=u?(h,p)=>{l(h,p),u(h,p)}:l}let L0=null;function ms(){if(!L0){const a=Et.Symbol;if(a&&a.iterator)L0=a.iterator;else{const l=Object.getOwnPropertyNames(Map.prototype);for(let u=0;uw(er(Kt[h.index])):h.index;if(Li(u)){let Kt=null;if(!w&&S&&(Kt=function yP(a,l,u,h){const p=a.cleanup;if(null!=p)for(let _=0;_S?w[S]:null}"string"==typeof y&&(_+=2)}return null}(a,l,p,h.index)),null!==Kt)(Kt.__ngLastListenerFn__||Kt).__ngNextListenerFn__=_,Kt.__ngLastListenerFn__=_,xe=!1;else{_=Fx(h,l,q,_,!1);const Fn=u.listen(At,p,_);ae.push(_,Fn),I&&I.push(p,$t,Qe,Qe+1)}}else _=Fx(h,l,q,_,!0),At.addEventListener(p,_,y),ae.push(_),I&&I.push(p,$t,Qe,y)}else _=Fx(h,l,q,_,!1);const Be=h.outputs;let rt;if(xe&&null!==Be&&(rt=Be[p])){const mt=rt.length;if(mt)for(let At=0;At0;)l=l[15],a--;return l}(a,dn.lFrame.contextLView))[8]}(a)}function xP(a,l){let u=null;const h=function Hy(a){const l=a.attrs;if(null!=l){const u=l.indexOf(5);if(0==(1&u))return l[u+1]}return null}(a);for(let p=0;p=0}const Mr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function CD(a){return a.substring(Mr.key,Mr.keyEnd)}function wD(a,l){const u=Mr.textEnd;return u===l?-1:(l=Mr.keyEnd=function AP(a,l,u){for(;l32;)l++;return l}(a,Mr.key=l,u),af(a,l,u))}function af(a,l,u){for(;l=0;u=wD(l,u))eo(a,CD(l),!0)}function na(a,l,u,h){const p=Xe(),_=Rn(),y=xo(2);_.firstUpdatePass&&AD(_,a,y,h),l!==mn&&Nr(p,y,l)&&ID(_,_.data[kr()],p,p[11],a,p[y+1]=function BP(a,l){return null==a||("string"==typeof l?a+=l:"object"==typeof a&&(a=Ie(So(a)))),a}(l,u),h,y)}function ia(a,l,u,h){const p=Rn(),_=xo(2);p.firstUpdatePass&&AD(p,null,_,h);const y=Xe();if(u!==mn&&Nr(y,_,u)){const w=p.data[kr()];if(kD(w,h)&&!ED(p,_)){let S=h?w.classesWithoutHost:w.stylesWithoutHost;null!==S&&(u=Ze(S,u||"")),wd(p,w,y,u,h)}else!function LP(a,l,u,h,p,_,y,w){p===mn&&(p=wt);let S=0,E=0,I=0=a.expandoStartIndex}function AD(a,l,u,h){const p=a.data;if(null===p[u+1]){const _=p[kr()],y=ED(a,u);kD(_,h)&&null===l&&!y&&(l=!1),l=function kP(a,l,u,h){const p=vc(a);let _=h?l.residualClasses:l.residualStyles;if(null===p)0===(h?l.classBindings:l.styleBindings)&&(u=Ig(u=Vx(null,a,l,u,h),l.attrs,h),_=null);else{const y=l.directiveStylingLast;if(-1===y||a[y]!==p)if(u=Vx(p,a,l,u,h),null===_){let S=function PP(a,l,u){const h=u?l.classBindings:l.styleBindings;if(0!==Xs(h))return a[us(h)]}(a,l,h);void 0!==S&&Array.isArray(S)&&(S=Vx(null,a,l,S[1],h),S=Ig(S,l.attrs,h),function NP(a,l,u,h){a[us(u?l.classBindings:l.styleBindings)]=h}(a,l,h,S))}else _=function RP(a,l,u){let h;const p=l.directiveEnd;for(let _=1+l.directiveStylingLast;_0)&&(E=!0)}else I=u;if(p)if(0!==S){const ae=us(a[w+1]);a[h+1]=ed(ae,w),0!==ae&&(a[ae+1]=s0(a[ae+1],h)),a[w+1]=function dS(a,l){return 131071&a|l<<17}(a[w+1],h)}else a[h+1]=ed(w,0),0!==w&&(a[w+1]=s0(a[w+1],h)),w=h;else a[h+1]=ed(S,0),0===w?w=h:a[S+1]=s0(a[S+1],h),S=h;E&&(a[h+1]=Wh(a[h+1])),xD(a,I,h,!0),xD(a,I,h,!1),function wP(a,l,u,h,p){const _=p?a.residualClasses:a.residualStyles;null!=_&&"string"==typeof l&&Oc(_,l)>=0&&(u[h+1]=a0(u[h+1]))}(l,I,a,h,_),y=ed(w,S),_?l.classBindings=y:l.styleBindings=y}(p,_,l,u,y,h)}}function Vx(a,l,u,h,p){let _=null;const y=u.directiveEnd;let w=u.directiveStylingLast;for(-1===w?w=u.directiveStart:w++;w0;){const S=a[p],E=Array.isArray(S),I=E?S[1]:S,q=null===I;let ae=u[p+1];ae===mn&&(ae=q?wt:void 0);let xe=q?vl(ae,h):I===h?ae:void 0;if(E&&!J0(xe)&&(xe=vl(S,h)),J0(xe)&&(w=xe,y))return w;const Be=a[p+1];p=y?us(Be):Xs(Be)}if(null!==l){let S=_?l.residualClasses:l.residualStyles;null!=S&&(w=vl(S,h))}return w}function J0(a){return void 0!==a}function kD(a,l){return 0!=(a.flags&(l?16:32))}function PD(a,l=""){const u=Xe(),h=Rn(),p=a+20,_=h.firstCreatePass?qc(h,p,1,l,null):h.data[p],y=u[p]=Hc(u[11],l);Re(h,u,y,_),Hr(_,!1)}function Zx(a){return Q0("",a,""),Zx}function Q0(a,l,u){const h=Xe(),p=jo(h,a,l,u);return p!==mn&&ta(h,kr(),p),Q0}function Wx(a,l,u,h,p){const _=Xe(),y=Pl(_,a,l,u,h,p);return y!==mn&&ta(_,kr(),y),Wx}function qx(a,l,u,h,p,_,y){const w=Xe(),S=function fd(a,l,u,h,p,_,y,w){const E=hd(a,Hs(),u,p,y);return xo(3),E?l+me(u)+h+me(p)+_+me(y)+w:mn}(w,a,l,u,h,p,_,y);return S!==mn&&ta(w,kr(),S),qx}function zx(a,l,u,h,p,_,y,w,S){const E=Xe(),I=function pd(a,l,u,h,p,_,y,w,S,E){const q=Ho(a,Hs(),u,p,y,S);return xo(4),q?l+me(u)+h+me(p)+_+me(y)+w+me(S)+E:mn}(E,a,l,u,h,p,_,y,w,S);return I!==mn&&ta(E,kr(),I),zx}function $x(a,l,u,h,p,_,y,w,S,E,I){const q=Xe(),ae=function gd(a,l,u,h,p,_,y,w,S,E,I,q){const ae=Hs();let xe=Ho(a,ae,u,p,y,S);return xe=Nr(a,ae+4,I)||xe,xo(5),xe?l+me(u)+h+me(p)+_+me(y)+w+me(S)+E+me(I)+q:mn}(q,a,l,u,h,p,_,y,w,S,E,I);return ae!==mn&&ta(q,kr(),ae),$x}function BD(a,l,u){ia(eo,Za,jo(Xe(),a,l,u),!0)}function eC(a,l,u){const h=Xe();return Nr(h,cl(),l)&&no(Rn(),pi(),h,a,l,h[11],u,!0),eC}function X0(a,l,u){const h=Xe();if(Nr(h,cl(),l)){const _=Rn(),y=pi();no(_,y,h,a,l,yg(vc(_.data),y,h),u,!0)}return X0}const Wa=void 0;var WD=["en",[["a","p"],["AM","PM"],Wa],[["AM","PM"],Wa,Wa],[["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"]],Wa,[["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"]],Wa,[["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}",Wa,"{1} 'at' {0}",Wa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function tC(a){const u=Math.floor(Math.abs(a)),h=a.toString().replace(/^[^.]*\.?/,"").length;return 1===u&&0===h?1:5}];let Td={};function kg(a){const l=function zD(a){return a.toLowerCase().replace(/_/g,"-")}(a);let u=nC(l);if(u)return u;const h=l.split("-")[0];if(u=nC(h),u)return u;if("en"===h)return WD;throw new Error(`Missing locale data for the locale "${a}".`)}function ev(a){return kg(a)[Qt.PluralCase]}function nC(a){return a in Td||(Td[a]=Et.ng&&Et.ng.common&&Et.ng.common.locales&&Et.ng.common.locales[a]),Td[a]}var Qt=(()=>((Qt=Qt||{})[Qt.LocaleId=0]="LocaleId",Qt[Qt.DayPeriodsFormat=1]="DayPeriodsFormat",Qt[Qt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Qt[Qt.DaysFormat=3]="DaysFormat",Qt[Qt.DaysStandalone=4]="DaysStandalone",Qt[Qt.MonthsFormat=5]="MonthsFormat",Qt[Qt.MonthsStandalone=6]="MonthsStandalone",Qt[Qt.Eras=7]="Eras",Qt[Qt.FirstDayOfWeek=8]="FirstDayOfWeek",Qt[Qt.WeekendRange=9]="WeekendRange",Qt[Qt.DateFormat=10]="DateFormat",Qt[Qt.TimeFormat=11]="TimeFormat",Qt[Qt.DateTimeFormat=12]="DateTimeFormat",Qt[Qt.NumberSymbols=13]="NumberSymbols",Qt[Qt.NumberFormats=14]="NumberFormats",Qt[Qt.CurrencyCode=15]="CurrencyCode",Qt[Qt.CurrencySymbol=16]="CurrencySymbol",Qt[Qt.CurrencyName=17]="CurrencyName",Qt[Qt.Currencies=18]="Currencies",Qt[Qt.Directionality=19]="Directionality",Qt[Qt.PluralCase=20]="PluralCase",Qt[Qt.ExtraData=21]="ExtraData",Qt))();const $D=["zero","one","two","few","many"],bs="en-US",cf={marker:"element"},uf={marker:"ICU"};var Hi=(()=>((Hi=Hi||{})[Hi.SHIFT=2]="SHIFT",Hi[Hi.APPEND_EAGERLY=1]="APPEND_EAGERLY",Hi[Hi.COMMENT=2]="COMMENT",Hi))();let iC=bs;function nv(a,l,u){const h=l.insertBeforeIndex,p=Array.isArray(h)?h[0]:h;return null===p?C(a,0,u):er(u[p])}function Dd(a,l,u,h,p){const _=l.insertBeforeIndex;if(Array.isArray(_)){let y=h,w=null;if(3&l.type||(w=y,y=p),null!==y&&0==(2&l.flags))for(let S=1;S<_.length;S++)La(a,y,u[_[S]],w,!1)}}function Ed(a,l){if(a.push(l),a.length>1)for(let u=a.length-2;u>=0;u--){const h=a[u];ys(h)||QD(h,l)&&null===rC(h)&&KD(h,l.index)}}function ys(a){return!(64&a.type)}function QD(a,l){return ys(l)||a.index>l.index}function rC(a){const l=a.insertBeforeIndex;return Array.isArray(l)?l[0]:l}function KD(a,l){const u=a.insertBeforeIndex;Array.isArray(u)?u[0]=l:(ge(nv,Dd),a.insertBeforeIndex=l)}function Rl(a,l){const u=a.data[l];return null===u||"string"==typeof u?null:u.hasOwnProperty("currentCaseLViewIndex")?u:u.value}function XP(a,l,u){const h=to(a,u,64,null,null);return Ed(l,h),h}function iv(a,l){const u=l[a.currentCaseLViewIndex];return null===u?u:u<0?~u:u}function rv(a){return a>>>17}function XD(a){return(131070&a)>>>1}let hf=0,Pg=0;function lC(a,l,u,h){const p=u[11];let y,_=null;for(let w=0;w>>1,u),null,null,xe,Be,null)}else switch(S){case uf:const E=l[++w],I=l[++w];null===u[I]&&pr(u[I]=ju(p,E),u);break;case cf:const q=l[++w],ae=l[++w];null===u[ae]&&pr(u[ae]=Vu(p,q,null),u)}}}function Ng(a,l,u,h,p){for(let _=0;_>>2;switch(3&I){case 1:const ae=u[++E],xe=u[++E],Be=a.data[q];"string"==typeof Be?_g(l[11],l[q],null,Be,ae,S,xe):no(a,Be,l,ae,S,l[11],xe,!1);break;case 0:const rt=l[q];null!==rt&&qp(l[11],rt,S);break;case 2:ov(a,Rl(a,q),l,S);break;case 3:eE(a,Rl(a,q),h,l)}}}}else{const S=u[_+1];if(S>0&&3==(3&S)){const I=Rl(a,S>>>2);l[I.currentCaseLViewIndex]<0&&eE(a,I,h,l)}}_+=w}}function eE(a,l,u,h){let p=h[l.currentCaseLViewIndex];if(null!==p){let _=hf;p<0&&(p=h[l.currentCaseLViewIndex]=~p,_=-1),Ng(a,h,l.update[p],u,_)}}function ov(a,l,u,h){const p=function tE(a,l){let u=a.cases.indexOf(l);if(-1===u)switch(a.type){case 1:{const h=function YD(a,l){const u=ev(l)(parseInt(a,10)),h=$D[u];return void 0!==h?h:"other"}(l,function KP(){return iC}());u=a.cases.indexOf(h),-1===u&&"other"!==h&&(u=a.cases.indexOf("other"));break}case 0:u=a.cases.indexOf("other")}return-1===u?null:u}(l,h);if(iv(l,u)!==p&&(cC(a,l,u),u[l.currentCaseLViewIndex]=null===p?null:~p,null!==p)){const y=u[l.anchorIdx];y&&lC(a,l.create[p],u,y)}}function cC(a,l,u){let h=iv(l,u);if(null!==h){const p=l.remove[h];for(let _=0;_0){const w=Gs(y,u);null!==w&&Sn(u[11],w)}else cC(a,Rl(a,~y),u)}}}function nE(){const a=[];let u,h,l=-1;function _(w,S){l=0;const E=iv(w,S);h=null!==E?w.remove[E]:wt}function y(){if(l0?u[w]:(a.push(l,h),_(u[1].data[~w],u),y())}return 0===a.length?null:(h=a.pop(),l=a.pop(),y())}return function p(w,S){for(u=S;a.length;)a.pop();return _(w.value,S),y}}const ff=/\ufffd(\d+):?\d*\ufffd/gi,rE=/\ufffd(\d+)\ufffd/,uC=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,dC=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,aN=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,lN=/\uE500/g;function oE(a,l,u,h,p,_,y){const w=zc(a,h,1,null);let S=w<u.length&&u.push(S)}return{type:h,mainBinding:p,cases:l,values:u}}function lv(a){if(!a)return[];let l=0;const u=[],h=[],p=/[{}]/g;let _;for(p.lastIndex=0;_=p.exec(a);){const w=_.index;if("}"==_[0]){if(u.pop(),0==u.length){const S=a.substring(l,w);uC.test(S)?h.push(lE(S)):h.push(S),l=w+1}}else{if(0==u.length){const S=a.substring(l,w);h.push(S),l=w+1}u.push("{")}}const y=a.substring(l);return h.push(y),h}function cE(a,l,u,h,p,_,y,w){const S=[],E=[],I=[];l.cases.push(_),l.create.push(S),l.remove.push(E),l.update.push(I);const ae=Ty(ba()).getInertBodyElement(y),xe=mo(ae)||ae;return xe?uE(a,l,u,h,S,E,I,xe,p,w,0):0}function uE(a,l,u,h,p,_,y,w,S,E,I){let q=0,ae=w.firstChild;for(;ae;){const xe=zc(a,u,1,null);switch(ae.nodeType){case Node.ELEMENT_NODE:const Be=ae,rt=Be.tagName.toLowerCase();if(J_.hasOwnProperty(rt)){Fg(p,cf,rt,S,xe),a.data[xe]=rt;const $t=Be.attributes;for(let Kt=0;Kt<$t.length;Kt++){const Fn=$t.item(Kt),_o=Fn.name.toLowerCase();Fn.value.match(ff)?Qu.hasOwnProperty(_o)&&Fl(y,Fn.value,xe,Fn.name,0,Q_[_o]?Yu:Wc[_o]?Ey:null):mC(p,xe,Fn)}q=uE(a,l,u,h,p,_,y,ae,xe,E,I+1)|q,gC(_,xe,I)}break;case Node.TEXT_NODE:const mt=ae.textContent||"",At=mt.match(ff);Fg(p,null,At?"":mt,S,xe),gC(_,xe,I),At&&(q=Fl(y,mt,xe,null,0,null)|q);break;case Node.COMMENT_NODE:const Qe=rE.exec(ae.textContent||"");if(Qe){const Kt=E[parseInt(Qe[1],10)];Fg(p,uf,"",S,xe),pC(a,u,h,S,Kt,xe),Rg(_,xe,I)}}ae=ae.nextSibling}return q}function gC(a,l,u){0===u&&a.push(l)}function Rg(a,l,u){0===u&&(a.push(~l),a.push(l))}function Fg(a,l,u,h,p){null!==l&&a.push(l),a.push(u,p,function eN(a,l,u){return a|l<<17|u<<1}(0,h,p))}function mC(a,l,u){a.push(l<<1|1,u.name,u.value)}function cv(a,l,u=-1){const h=Rn(),p=Xe(),_=20+a,y=xa(h.consts,l),w=Xo();h.firstCreatePass&&function uN(a,l,u,h,p,_){const y=Xo(),w=[],S=[],E=[[]];p=function aE(a,l){if(function fC(a){return-1===a}(l))return Kc(a);{const u=a.indexOf(`:${l}\ufffd`)+2+l.toString().length,h=a.search(new RegExp(`\ufffd\\/\\*\\d+:${l}\ufffd`));return Kc(a.substring(u,h))}}(p,_);const I=function cN(a){return a.replace(lN," ")}(p).split(aN);for(let q=0;q>>Hi.SHIFT;let q=a[I];null===q&&(q=a[I]=S?p.createComment(w):Hc(p,w)),E&&null!==u&&La(p,u,q,h,!1)}})(p,S.create,I,w&&8&w.type?p[w.index]:null),Su(!0)}function br(a,l,u){cv(a,l,u),function ei(){Su(!1)}()}function yr(a){return function tN(a){a&&(hf|=1<0){const h=a.data[u];Ng(a,l,Array.isArray(h)?h:h.update,Hs()-Pg-1,hf)}hf=0,Pg=0}(Rn(),Xe(),a+20)}function gf(a,l,u,h,p){if(a=be(a),Array.isArray(a))for(let _=0;_>20;if(ld(a)||!a.multi){const xe=new Sa(S,p,rf),Be=Xc(w,l,p?I:I+ae,q);-1===Be?(Ec(dl(E,y),_,w),yC(_,a,l.length),l.push(w),E.directiveStart++,E.directiveEnd++,p&&(E.providerIndexes+=1048576),u.push(xe),y.push(xe)):(u[Be]=xe,y[Be]=xe)}else{const xe=Xc(w,l,I+ae,q),Be=Xc(w,l,I,I+ae),rt=xe>=0&&u[xe],mt=Be>=0&&u[Be];if(p&&!mt||!p&&!rt){Ec(dl(E,y),_,w);const At=function Bg(a,l,u,h,p){const _=new Sa(a,u,rf);return _.multi=[],_.index=l,_.componentProviders=0,dv(_,p,h&&!u),_}(p?hv:xC,u.length,p,h,S);!p&&mt&&(u[Be].providerFactory=At),yC(_,a,l.length,0),l.push(w),E.directiveStart++,E.directiveEnd++,p&&(E.providerIndexes+=1048576),u.push(At),y.push(At)}else yC(_,a,xe>-1?xe:Be,dv(u[p?Be:xe],S,!p&&h));!p&&h&&mt&&u[Be].componentProviders++}}}function yC(a,l,u,h){const p=ld(l),_=function NS(a){return!!a.useClass}(l);if(p||_){const S=(_?be(l.useClass):l).prototype.ngOnDestroy;if(S){const E=a.destroyHooks||(a.destroyHooks=[]);if(!p&&l.multi){const I=E.indexOf(u);-1===I?E.push(u,[h,S]):E[I+1].push(h,S)}else E.push(u,S)}}}function dv(a,l,u){return u&&a.componentProviders++,a.multi.push(l)-1}function Xc(a,l,u,h){for(let p=u;p{u.providersResolver=(h,p)=>function fN(a,l,u){const h=Rn();if(h.firstCreatePass){const p=pt(a);gf(u,h.data,h.blueprint,p,!0),gf(l,h.data,h.blueprint,p,!1)}}(h,p?p(a):a,l)}}class CC{}class _E{resolveComponentFactory(l){throw function mE(a){const l=Error(`No component factory found for ${Ie(a)}. Did you add it to @NgModule.entryComponents?`);return l.ngComponent=a,l}(l)}}let Gg=(()=>{class a{}return a.NULL=new _E,a})();function vE(){return Ad(Zi(),Xe())}function Ad(a,l){return new mf(Gr(a,l))}let mf=(()=>{class a{constructor(u){this.nativeElement=u}}return a.__NG_ELEMENT_ID__=vE,a})();function gN(a){return a instanceof mf?a.nativeElement:a}class TC{}let bE=(()=>{class a{}return a.__NG_ELEMENT_ID__=()=>function xE(){const a=Xe(),u=Ur(Zi().index,a);return function yE(a){return a[11]}(Qr(u)?u:a)}(),a})(),CE=(()=>{class a{}return a.\u0275prov=je({token:a,providedIn:"root",factory:()=>null}),a})();class SC{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const DC=new SC("13.4.0"),pv={};function Ug(a,l,u,h,p=!1){for(;null!==u;){const _=l[u.index];if(null!==_&&h.push(er(_)),Kr(_))for(let w=W;w<_.length;w++){const S=_[w],E=S[1].firstChild;null!==E&&Ug(S[1],S,E,h)}const y=u.type;if(8&y)Ug(a,l,u.child,h);else if(32&y){const w=Gc(u,l);let S;for(;S=w();)h.push(S)}else if(16&y){const w=gt(l,u);if(Array.isArray(w))h.push(...w);else{const S=Uc(l[16]);Ug(S[1],S,w,h,!0)}}u=p?u.projectionNext:u.next}return h}class _f{constructor(l,u){this._lView=l,this._cdRefInjectingView=u,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const l=this._lView,u=l[1];return Ug(u,l,u.firstChild,[])}get context(){return this._lView[8]}set context(l){this._lView[8]=l}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const l=this._lView[3];if(Kr(l)){const u=l[8],h=u?u.indexOf(this):-1;h>-1&&(vn(l,h),Lu(u,h))}this._attachedToViewContainer=!1}Ra(this._lView[1],this._lView)}onDestroy(l){_0(this._lView[1],this._lView,null,l)}markForCheck(){zt(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function od(a,l,u){const h=l[10];h.begin&&h.begin();try{ai(a,l,a.template,u)}catch(p){throw D0(l,p),p}finally{h.end&&h.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new He(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Lh(a,l){go(a,l,l[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new He(902,"");this._appRef=l}}class wE extends _f{constructor(l){super(l),this._view=l}detectChanges(){Al(this._view)}checkNoChanges(){}get context(){return null}}class EC extends Gg{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const u=ot(l);return new gv(u,this.ngModule)}}function AC(a){const l=[];for(let u in a)a.hasOwnProperty(u)&&l.push({propName:a[u],templateName:u});return l}class gv extends CC{constructor(l,u){super(),this.componentDef=l,this.ngModule=u,this.componentType=l.type,this.selector=function cS(a){return a.map(Zy).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!u}get inputs(){return AC(this.componentDef.inputs)}get outputs(){return AC(this.componentDef.outputs)}create(l,u,h,p){const _=(p=p||this.ngModule)?function SE(a,l){return{get:(u,h,p)=>{const _=a.get(u,pv,p);return _!==pv||h===pv?_:l.get(u,h,p)}}}(l,p.injector):l,y=_.get(TC,ch),w=_.get(CE,null),S=y.createRenderer(null,this.componentDef),E=this.componentDef.selectors[0][0]||"div",I=h?function m0(a,l,u){if(Li(a))return a.selectRootElement(l,u===cn.ShadowDom);let h="string"==typeof l?a.querySelector(l):l;return h.textContent="",h}(S,h,this.componentDef.encapsulation):Vu(y.createRenderer(null,this.componentDef),E,function TE(a){const l=a.toLowerCase();return"svg"===l?"svg":"math"===l?"math":null}(E)),q=this.componentDef.onPush?576:528,ae=function Dg(a,l){return{components:[],scheduler:a||nS,clean:OS,playerHandler:l||null,flags:0}}(),xe=hs(0,null,null,1,0,null,null,null,null,null),Be=nd(null,xe,ae,q,null,null,y,S,w,_);let rt,mt;Du(Be);try{const At=function xx(a,l,u,h,p,_){const y=u[1];u[20]=a;const S=qc(y,20,2,"#host",null),E=S.mergedAttrs=l.hostAttrs;null!==E&&(Ml(S,E,!0),null!==a&&(wh(p,a,E),null!==S.classes&&Go(p,a,S.classes),null!==S.styles&&To(p,a,S.styles)));const I=h.createRenderer(a,l),q=nd(u,g0(l),null,l.onPush?64:16,u[20],S,h,I,_||null,null);return y.firstCreatePass&&(Ec(dl(S,u),y,l.type),TS(y,S),fx(S,u.length,1)),vg(u,q),u[20]=q}(I,this.componentDef,Be,y,S);if(I)if(h)wh(S,I,["ng-version",DC.full]);else{const{attrs:Qe,classes:$t}=function uS(a){const l=[],u=[];let h=1,p=2;for(;h0&&Go(S,I,$t.join(" "))}if(mt=dh(xe,20),void 0!==u){const Qe=mt.projection=[];for(let $t=0;$tS(y,l)),l.contentQueries){const S=Zi();l.contentQueries(1,y,S.directiveStart)}const w=Zi();return!_.firstCreatePass||null===l.hostBindings&&null===l.hostAttrs||(ho(w.index),CS(u[1],w,0,w.directiveStart,w.directiveEnd,l),wS(l,y)),y}(At,this.componentDef,Be,ae,[oP]),id(xe,Be,null)}finally{wa()}return new EE(this.componentType,rt,Ad(mt,Be),Be,mt)}}class EE extends class gE{}{constructor(l,u,h,p,_){super(),this.location=h,this._rootLView=p,this._tNode=_,this.instance=u,this.hostView=this.changeDetectorRef=new wE(p),this.componentType=l}get injector(){return new fl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(l){this.hostView.onDestroy(l)}}class Md{}class ME{}const Id=new Map;class Vg extends Md{constructor(l,u){super(),this._parent=u,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new EC(this);const h=sn(l);this._bootstrapComponents=Ks(h.bootstrap),this._r3Injector=gx(l,u,[{provide:Md,useValue:this},{provide:Gg,useValue:this.componentFactoryResolver}],Ie(l)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(l)}get(l,u=ps.THROW_IF_NOT_FOUND,h=Ke.Default){return l===ps||l===Md||l===ad?this:this._r3Injector.get(l,u,h)}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(u=>u()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class io extends ME{constructor(l){super(),this.moduleType=l,null!==sn(l)&&function Ll(a){const l=new Set;!function u(h){const p=sn(h,!0),_=p.id;null!==_&&(function Hg(a,l,u){if(l&&l!==u)throw new Error(`Duplicate module registered for ${a} - ${Ie(l)} vs ${Ie(l.name)}`)}(_,Id.get(_),h),Id.set(_,h));const y=Ks(p.imports);for(const w of y)l.has(w)||(l.add(w),u(w))}(a)}(l)}create(l){return new Vg(this.moduleType,l)}}function mv(a,l,u){const h=Bi()+a,p=Xe();return p[h]===mn?Do(p,h,u?l.call(u):l()):_s(p,h)}function Zg(a,l,u,h){return bv(Xe(),Bi(),a,l,u,h)}function _v(a,l,u,h,p){return function yv(a,l,u,h,p,_,y){const w=l+u;return vs(a,w,p,_)?Do(a,w+2,y?h.call(y,p,_):h(p,_)):vf(a,w+2)}(Xe(),Bi(),a,l,u,h,p)}function vv(a,l,u,h,p,_){return kE(Xe(),Bi(),a,l,u,h,p,_)}function Wg(a,l,u,h,p,_,y){return function xv(a,l,u,h,p,_,y,w,S){const E=l+u;return Ho(a,E,p,_,y,w)?Do(a,E+4,S?h.call(S,p,_,y,w):h(p,_,y,w)):vf(a,E+4)}(Xe(),Bi(),a,l,u,h,p,_,y)}function Bl(a,l,u,h,p,_,y,w,S,E){const I=Bi()+a,q=Xe();let ae=Ho(q,I,u,h,p,_);return hd(q,I+4,y,w,S)||ae?Do(q,I+7,E?l.call(E,u,h,p,_,y,w,S):l(u,h,p,_,y,w,S)):_s(q,I+7)}function vf(a,l){const u=a[l];return u===mn?void 0:u}function bv(a,l,u,h,p,_){const y=l+u;return Nr(a,y,p)?Do(a,y+1,_?h.call(_,p):h(p)):vf(a,y+1)}function kE(a,l,u,h,p,_,y,w){const S=l+u;return hd(a,S,p,_,y)?Do(a,S+3,w?h.call(w,p,_,y):h(p,_,y)):vf(a,S+3)}function kC(a,l){const u=Rn();let h;const p=a+20;u.firstCreatePass?(h=function PC(a,l){if(l)for(let u=l.length-1;u>=0;u--){const h=l[u];if(a===h.name)return h}}(l,u.pipeRegistry),u.data[p]=h,h.onDestroy&&(u.destroyHooks||(u.destroyHooks=[])).push(p,h.onDestroy)):h=u.data[p];const _=h.factory||(h.factory=Sr(h.type)),y=Xt(rf);try{const w=Tc(!1),S=_();return Tc(w),function Nl(a,l,u,h){u>=a.data.length&&(a.data[u]=null,a.blueprint[u]=null),l[u]=h}(u,Xe(),p,S),S}finally{Xt(y)}}function NC(a,l,u){const h=a+20,p=Xe(),_=pc(p,h);return Od(p,h)?bv(p,Bi(),l,_.transform,u,_):_.transform(u)}function bf(a,l,u,h,p){const _=a+20,y=Xe(),w=pc(y,_);return Od(y,_)?kE(y,Bi(),l,w.transform,u,h,p,w):w.transform(u,h,p)}function Od(a,l){return a[1].data[l].pure}function za(a){return l=>{setTimeout(a,void 0,l)}}const Vo=class wv extends t.x{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,u,h){var p,_,y;let w=l,S=u||(()=>null),E=h;if(l&&"object"==typeof l){const q=l;w=null===(p=q.next)||void 0===p?void 0:p.bind(q),S=null===(_=q.error)||void 0===_?void 0:_.bind(q),E=null===(y=q.complete)||void 0===y?void 0:y.bind(q)}this.__isAsync&&(S=za(S),w&&(w=za(w)),E&&(E=za(E)));const I=super.subscribe({next:w,error:S,complete:E});return l instanceof J.w0&&l.add(I),I}};function Yg(){return this._results[ms()]()}class Jg{constructor(l=!1){this._emitDistinctChangesOnly=l,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const u=ms(),h=Jg.prototype;h[u]||(h[u]=Yg)}get changes(){return this._changes||(this._changes=new Vo)}get(l){return this._results[l]}map(l){return this._results.map(l)}filter(l){return this._results.filter(l)}find(l){return this._results.find(l)}reduce(l,u){return this._results.reduce(l,u)}forEach(l){this._results.forEach(l)}some(l){return this._results.some(l)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(l,u){const h=this;h.dirty=!1;const p=Xr(l);(this._changesDetected=!function P_(a,l,u){if(a.length!==l.length)return!1;for(let h=0;h{class a{}return a.__NG_ELEMENT_ID__=FC,a})();const RC=sa,Gl=class extends RC{constructor(l,u,h){super(),this._declarationLView=l,this._declarationTContainer=u,this.elementRef=h}createEmbeddedView(l){const u=this._declarationTContainer.tViews,h=nd(this._declarationLView,u,l,16,null,u.declTNode,null,null,null,null);h[17]=this._declarationLView[this._declarationTContainer.index];const _=this._declarationLView[19];return null!==_&&(h[19]=_.createEmbeddedView(u)),id(u,h,l),new _f(h)}};function FC(){return yf(Zi(),Xe())}function yf(a,l){return 4&a.type?new Gl(l,a,Ad(a,l)):null}let Eo=(()=>{class a{}return a.__NG_ELEMENT_ID__=eu,a})();function eu(){return Cf(Zi(),Xe())}const xf=Eo,LC=class extends xf{constructor(l,u,h){super(),this._lContainer=l,this._hostTNode=u,this._hostLView=h}get element(){return Ad(this._hostTNode,this._hostLView)}get injector(){return new fl(this._hostTNode,this._hostLView)}get parentInjector(){const l=Dc(this._hostTNode,this._hostLView);if(ul(l)){const u=Aa(l,this._hostLView),h=Ea(l);return new fl(u[1].data[h+8],u)}return new fl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const u=Qg(this._lContainer);return null!==u&&u[l]||null}get length(){return this._lContainer.length-W}createEmbeddedView(l,u,h){const p=l.createEmbeddedView(u||{});return this.insert(p,h),p}createComponent(l,u,h,p,_){const y=l&&!function Ic(a){return"function"==typeof a}(l);let w;if(y)w=u;else{const q=u||{};w=q.index,h=q.injector,p=q.projectableNodes,_=q.ngModuleRef}const S=y?l:new gv(ot(l)),E=h||this.parentInjector;if(!_&&null==S.ngModule){const ae=(y?E:this.parentInjector).get(Md,null);ae&&(_=ae)}const I=S.create(E,p,void 0,_);return this.insert(I.hostView,w),I}insert(l,u){const h=l._lView,p=h[1];if(function m_(a){return Kr(a[3])}(h)){const I=this.indexOf(l);if(-1!==I)this.detach(I);else{const q=h[3],ae=new LC(q,q[6],q[3]);ae.detach(ae.indexOf(l))}}const _=this._adjustIndex(u),y=this._lContainer;!function Z_(a,l,u,h){const p=W+h,_=u.length;h>0&&(u[p-1][4]=l),h<_-W?(l[4]=u[p],N_(u,W+h,l)):(u.push(l),l[4]=null),l[3]=u;const y=l[17];null!==y&&u!==y&&function xl(a,l){const u=a[9];l[16]!==l[3][3][16]&&(a[2]=!0),null===u?a[9]=[l]:u.push(l)}(y,l);const w=l[19];null!==w&&w.insertView(a),l[2]|=128}(p,h,y,_);const w=Nt(_,y),S=h[11],E=x(S,y[7]);return null!==E&&function $p(a,l,u,h,p,_){h[0]=p,h[6]=l,go(a,h,u,1,p,_)}(p,y[6],S,h,E,w),l.attachToViewContainerRef(),N_(Kg(y),_,l),l}move(l,u){return this.insert(l,u)}indexOf(l){const u=Qg(this._lContainer);return null!==u?u.indexOf(l):-1}remove(l){const u=this._adjustIndex(l,-1),h=vn(this._lContainer,u);h&&(Lu(Kg(this._lContainer),u),Ra(h[1],h))}detach(l){const u=this._adjustIndex(l,-1),h=vn(this._lContainer,u);return h&&null!=Lu(Kg(this._lContainer),u)?new _f(h):null}_adjustIndex(l,u=0){return null==l?this.length+u:l}};function Qg(a){return a[8]}function Kg(a){return a[8]||(a[8]=[])}function Cf(a,l){let u;const h=l[a.index];if(Kr(h))u=h;else{let p;if(8&a.type)p=er(h);else{const _=l[11];p=_.createComment("");const y=Gr(a,l);La(_,x(_,y),p,function m(a,l){return Li(a)?a.nextSibling(l):l.nextSibling}(_,y),!1)}l[a.index]=u=ES(h,l,p,a),vg(l,u)}return new LC(u,a,l)}class Tv{constructor(l){this.queryList=l,this.matches=null}clone(){return new Tv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Sv{constructor(l=[]){this.queries=l}createEmbeddedView(l){const u=l.queries;if(null!==u){const h=null!==l.contentQueries?l.contentQueries[0]:u.length,p=[];for(let _=0;_0)h.push(y[w/2]);else{const E=_[w+1],I=l[-S];for(let q=W;q{class a{constructor(u){this.appInits=u,this.resolve=Hl,this.reject=Hl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((h,p)=>{this.resolve=h,this.reject=p})}runInitializers(){if(this.initialized)return;const u=[],h=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let p=0;p{_.subscribe({complete:w,error:S})});u.push(y)}}Promise.all(u).then(()=>{h()}).catch(p=>{this.reject(p)}),0===u.length&&h(),this.initialized=!0}}return a.\u0275fac=function(u){return new(u||a)(zi(o1,8))},a.\u0275prov=je({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const lm=new yi("AppId",{providedIn:"root",factory:function s1(){return`${Rd()}${Rd()}${Rd()}`}});function Rd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const a1=new yi("Platform Initializer"),l1=new yi("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Rv=new yi("appBootstrapListener");let Zo=(()=>{class a{log(u){console.log(u)}warn(u){console.warn(u)}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=je({token:a,factory:a.\u0275fac,providedIn:"platform"}),a})();const Fv=new yi("LocaleId",{providedIn:"root",factory:()=>Fo(Fv,Ke.Optional|Ke.SkipSelf)||function Fd(){return"undefined"!=typeof $localize&&$localize.locale||bs}()}),JE=new yi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class cm{constructor(l,u){this.ngModuleFactory=l,this.componentFactories=u}}let XE=(()=>{class a{compileModuleSync(u){return new io(u)}compileModuleAsync(u){return Promise.resolve(this.compileModuleSync(u))}compileModuleAndAllComponentsSync(u){const h=this.compileModuleSync(u),_=Ks(sn(u).declarations).reduce((y,w)=>{const S=ot(w);return S&&y.push(new gv(S)),y},[]);return new cm(h,_)}compileModuleAndAllComponentsAsync(u){return Promise.resolve(this.compileModuleAndAllComponentsSync(u))}clearCache(){}clearCacheFor(u){}getModuleId(u){}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=je({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const tA=(()=>Promise.resolve(0))();function um(a){"undefined"==typeof Zone?tA.then(()=>{a&&a.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",a)}class ws{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:u=!1,shouldCoalesceRunChangeDetection:h=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Vo(!1),this.onMicrotaskEmpty=new Vo(!1),this.onStable=new Vo(!1),this.onError=new Vo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const p=this;p._nesting=0,p._outer=p._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(p._inner=p._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(p._inner=p._inner.fork(Zone.longStackTraceZoneSpec)),p.shouldCoalesceEventChangeDetection=!h&&u,p.shouldCoalesceRunChangeDetection=h,p.lastRequestAnimationFrameId=-1,p.nativeRequestAnimationFrame=function nA(){let a=Et.requestAnimationFrame,l=Et.cancelAnimationFrame;if("undefined"!=typeof Zone&&a&&l){const u=a[Zone.__symbol__("OriginalDelegate")];u&&(a=u);const h=l[Zone.__symbol__("OriginalDelegate")];h&&(l=h)}return{nativeRequestAnimationFrame:a,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function dm(a){const l=()=>{!function u1(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(Et,()=>{a.fakeTopEventTask||(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{a.lastRequestAnimationFrameId=-1,hm(a),a.isCheckStableRunning=!0,Lv(a),a.isCheckStableRunning=!1},void 0,()=>{},()=>{})),a.fakeTopEventTask.invoke()}),hm(a))}(a)};a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(u,h,p,_,y,w)=>{try{return d1(a),u.invokeTask(p,_,y,w)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===_.type||a.shouldCoalesceRunChangeDetection)&&l(),Bv(a)}},onInvoke:(u,h,p,_,y,w,S)=>{try{return d1(a),u.invoke(p,_,y,w,S)}finally{a.shouldCoalesceRunChangeDetection&&l(),Bv(a)}},onHasTask:(u,h,p,_)=>{u.hasTask(p,_),h===p&&("microTask"==_.change?(a._hasPendingMicrotasks=_.microTask,hm(a),Lv(a)):"macroTask"==_.change&&(a.hasPendingMacrotasks=_.macroTask))},onHandleError:(u,h,p,_)=>(u.handleError(p,_),a.runOutsideAngular(()=>a.onError.emit(_)),!1)})}(p)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ws.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ws.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(l,u,h){return this._inner.run(l,u,h)}runTask(l,u,h,p){const _=this._inner,y=_.scheduleEventTask("NgZoneEvent: "+p,l,iA,Hl,Hl);try{return _.runTask(y,u,h)}finally{_.cancelTask(y)}}runGuarded(l,u,h){return this._inner.runGuarded(l,u,h)}runOutsideAngular(l){return this._outer.run(l)}}const iA={};function Lv(a){if(0==a._nesting&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(()=>a.onStable.emit(null))}finally{a.isStable=!0}}}function hm(a){a.hasPendingMicrotasks=!!(a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId)}function d1(a){a._nesting++,a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))}function Bv(a){a._nesting--,Lv(a)}class rA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Vo,this.onMicrotaskEmpty=new Vo,this.onStable=new Vo,this.onError=new Vo}run(l,u,h){return l.apply(u,h)}runGuarded(l,u,h){return l.apply(u,h)}runOutsideAngular(l){return l()}runTask(l,u,h,p){return l.apply(u,h)}}let h1=(()=>{class a{constructor(u){this._ngZone=u,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),u.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:()=>{ws.assertNotInAngularZone(),um(()=>{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())um(()=>{for(;0!==this._callbacks.length;){let u=this._callbacks.pop();clearTimeout(u.timeoutId),u.doneCb(this._didWork)}this._didWork=!1});else{let u=this.getPendingTasks();this._callbacks=this._callbacks.filter(h=>!h.updateCb||!h.updateCb(u)||(clearTimeout(h.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(u=>({source:u.source,creationLocation:u.creationLocation,data:u.data})):[]}addCallback(u,h,p){let _=-1;h&&h>0&&(_=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==_),u(this._didWork,this.getPendingTasks())},h)),this._callbacks.push({doneCb:u,timeoutId:_,updateCb:p})}whenStable(u,h,p){if(p&&!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(u,h,p),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(u,h,p){return[]}}return a.\u0275fac=function(u){return new(u||a)(zi(ws))},a.\u0275prov=je({token:a,factory:a.\u0275fac}),a})(),oA=(()=>{class a{constructor(){this._applications=new Map,Gv.addToWindow(this)}registerApplication(u,h){this._applications.set(u,h)}unregisterApplication(u){this._applications.delete(u)}unregisterAllApplications(){this._applications.clear()}getTestability(u){return this._applications.get(u)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(u,h=!0){return Gv.findTestabilityInTree(this,u,h)}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=je({token:a,factory:a.\u0275fac,providedIn:"platform"}),a})();class sA{addToWindow(l){}findTestabilityInTree(l,u,h){return null}}function aA(a){Gv=a}let Gv=new sA,Ii=null;const Uv=new yi("AllowMultipleToken"),Hv=new yi("PlatformOnDestroy");class PN{constructor(l,u){this.name=l,this.token=u}}function f1(a,l,u=[]){const h=`Platform: ${l}`,p=new yi(h);return(_=[])=>{let y=p1();if(!y||y.injector.get(Uv,!1)){const w=[...u,..._,{provide:p,useValue:!0}];a?a(w):function NN(a){if(Ii&&!Ii.get(Uv,!1))throw new He(400,"");Ii=a;const l=a.get(hA),u=a.get(a1,null);u&&u.forEach(h=>h())}(function uA(a=[],l){return ps.create({name:l,providers:[{provide:xg,useValue:"platform"},{provide:Hv,useValue:()=>Ii=null},...a]})}(w,h))}return function cA(a){const l=p1();if(!l)throw new He(401,"");return l}()}}function p1(){var a;return null!==(a=null==Ii?void 0:Ii.get(hA))&&void 0!==a?a:null}let hA=(()=>{class a{constructor(u){this._injector=u,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(u,h){const w=function fA(a,l){let u;return u="noop"===a?new rA:("zone.js"===a?void 0:a)||new ws({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==l?void 0:l.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==l?void 0:l.ngZoneRunCoalescing)}),u}(h?h.ngZone:void 0,{ngZoneEventCoalescing:h&&h.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:h&&h.ngZoneRunCoalescing||!1}),S=[{provide:ws,useValue:w}];return w.run(()=>{const E=ps.create({providers:S,parent:this.injector,name:u.moduleType.name}),I=u.create(E),q=I.injector.get(Ku,null);if(!q)throw new He(402,"");return w.runOutsideAngular(()=>{const ae=w.onError.subscribe({next:xe=>{q.handleError(xe)}});I.onDestroy(()=>{m1(this._modules,I),ae.unsubscribe()})}),function pA(a,l,u){try{const h=u();return Nx(h)?h.catch(p=>{throw l.runOutsideAngular(()=>a.handleError(p)),p}):h}catch(h){throw l.runOutsideAngular(()=>a.handleError(h)),h}}(q,w,()=>{const ae=I.injector.get(Nv);return ae.runInitializers(),ae.donePromise.then(()=>(function tv(a){(function j(a,l){null==a&&oe(l,a,null,"!=")})(a,"Expected localeId to be defined"),"string"==typeof a&&(iC=a.toLowerCase().replace(/_/g,"-"))}(I.injector.get(Fv,bs)||bs),this._moduleDoBootstrap(I),I))})})}bootstrapModule(u,h=[]){const p=In({},h);return function lA(a,l,u){const h=new io(u);return Promise.resolve(h)}(0,0,u).then(_=>this.bootstrapModuleFactory(_,p))}_moduleDoBootstrap(u){const h=u.injector.get(g1);if(u._bootstrapComponents.length>0)u._bootstrapComponents.forEach(p=>h.bootstrap(p));else{if(!u.instance.ngDoBootstrap)throw new He(403,"");u.instance.ngDoBootstrap(h)}this._modules.push(u)}onDestroy(u){this._destroyListeners.push(u)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new He(404,"");this._modules.slice().forEach(h=>h.destroy()),this._destroyListeners.forEach(h=>h());const u=this._injector.get(Hv,null);null==u||u(),this._destroyed=!0}get destroyed(){return this._destroyed}}return a.\u0275fac=function(u){return new(u||a)(zi(ps))},a.\u0275prov=je({token:a,factory:a.\u0275fac,providedIn:"platform"}),a})();function In(a,l){return Array.isArray(l)?l.reduce(In,a):Object.assign(Object.assign({},a),l)}let g1=(()=>{class a{constructor(u,h,p,_){this._zone=u,this._injector=h,this._exceptionHandler=p,this._initStatus=_,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 y=new B.y(S=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{S.next(this._stable),S.complete()})}),w=new B.y(S=>{let E;this._zone.runOutsideAngular(()=>{E=this._zone.onStable.subscribe(()=>{ws.assertNotInAngularZone(),um(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,S.next(!0))})})});const I=this._zone.onUnstable.subscribe(()=>{ws.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{S.next(!1)}))});return()=>{E.unsubscribe(),I.unsubscribe()}});this.isStable=(0,Se.T)(y,w.pipe((0,z.B)()))}bootstrap(u,h){if(!this._initStatus.done)throw new He(405,"");let p;p=u instanceof CC?u:this._injector.get(Gg).resolveComponentFactory(u),this.componentTypes.push(p.componentType);const _=function kN(a){return a.isBoundToModule}(p)?void 0:this._injector.get(Md),w=p.create(ps.NULL,[],h||p.selector,_),S=w.location.nativeElement,E=w.injector.get(h1,null),I=E&&w.injector.get(oA);return E&&I&&I.registerApplication(S,E),w.onDestroy(()=>{this.detachView(w.hostView),m1(this.components,w),I&&I.unregisterApplication(S)}),this._loadComponent(w),w}tick(){if(this._runningTick)throw new He(101,"");try{this._runningTick=!0;for(let u of this._views)u.detectChanges()}catch(u){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(u))}finally{this._runningTick=!1}}attachView(u){const h=u;this._views.push(h),h.attachToAppRef(this)}detachView(u){const h=u;m1(this._views,h),h.detachFromAppRef()}_loadComponent(u){this.attachView(u.hostView),this.tick(),this.components.push(u),this._injector.get(Rv,[]).concat(this._bootstrapListeners).forEach(p=>p(u))}ngOnDestroy(){this._views.slice().forEach(u=>u.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return a.\u0275fac=function(u){return new(u||a)(zi(ws),zi(ps),zi(Ku),zi(Nv))},a.\u0275prov=je({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();function m1(a,l){const u=a.indexOf(l);u>-1&&a.splice(u,1)}let iu=!0,jl=!1;function fm(){return jl=!0,iu}function _1(){if(jl)throw new Error("Cannot enable prod mode after platform setup.");iu=!1}let RN=(()=>{class a{}return a.__NG_ELEMENT_ID__=FN,a})();function FN(a){return function LN(a,l,u){if(_e(a)&&!u){const h=Ur(a.index,l);return new _f(h,h)}return 47&a.type?new _f(l[16],l):null}(Zi(),Xe(),16==(16&a))}class Zl{constructor(){}supports(l){return dd(l)}create(l){return new bA(l)}}const vA=(a,l)=>l;class bA{constructor(l){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=l||vA}forEachItem(l){let u;for(u=this._itHead;null!==u;u=u._next)l(u)}forEachOperation(l){let u=this._itHead,h=this._removalsHead,p=0,_=null;for(;u||h;){const y=!h||u&&u.currentIndex{y=this._trackByFn(p,w),null!==u&&Object.is(u.trackById,y)?(h&&(u=this._verifyReinsertion(u,w,y,p)),Object.is(u.item,w)||this._addIdentityChange(u,w)):(u=this._mismatch(u,w,y,p),h=!0),u=u._next,p++}),this.length=p;return this._truncate(u),this.collection=l,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let l;for(l=this._previousItHead=this._itHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._additionsHead;null!==l;l=l._nextAdded)l.previousIndex=l.currentIndex;for(this._additionsHead=this._additionsTail=null,l=this._movesHead;null!==l;l=l._nextMoved)l.previousIndex=l.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(l,u,h,p){let _;return null===l?_=this._itTail:(_=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(h,null))?(Object.is(l.item,u)||this._addIdentityChange(l,u),this._reinsertAfter(l,_,p)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(h,p))?(Object.is(l.item,u)||this._addIdentityChange(l,u),this._moveAfter(l,_,p)):l=this._addAfter(new y1(u,h),_,p),l}_verifyReinsertion(l,u,h,p){let _=null===this._unlinkedRecords?null:this._unlinkedRecords.get(h,null);return null!==_?l=this._reinsertAfter(_,l._prev,p):l.currentIndex!=p&&(l.currentIndex=p,this._addToMoves(l,p)),l}_truncate(l){for(;null!==l;){const u=l._next;this._addToRemovals(this._unlink(l)),l=u}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(l,u,h){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const p=l._prevRemoved,_=l._nextRemoved;return null===p?this._removalsHead=_:p._nextRemoved=_,null===_?this._removalsTail=p:_._prevRemoved=p,this._insertAfter(l,u,h),this._addToMoves(l,h),l}_moveAfter(l,u,h){return this._unlink(l),this._insertAfter(l,u,h),this._addToMoves(l,h),l}_addAfter(l,u,h){return this._insertAfter(l,u,h),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,u,h){const p=null===u?this._itHead:u._next;return l._next=p,l._prev=u,null===p?this._itTail=l:p._prev=l,null===u?this._itHead=l:u._next=l,null===this._linkedRecords&&(this._linkedRecords=new yA),this._linkedRecords.put(l),l.currentIndex=h,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const u=l._prev,h=l._next;return null===u?this._itHead=h:u._next=h,null===h?this._itTail=u:h._prev=u,l}_addToMoves(l,u){return l.previousIndex===u||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yA),this._unlinkedRecords.put(l),l.currentIndex=null,l._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=l,l._prevRemoved=null):(l._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=l),l}_addIdentityChange(l,u){return l.item=u,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class y1{constructor(l,u){this.item=l,this.trackById=u,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 jN{constructor(){this._head=null,this._tail=null}add(l){null===this._head?(this._head=this._tail=l,l._nextDup=null,l._prevDup=null):(this._tail._nextDup=l,l._prevDup=this._tail,l._nextDup=null,this._tail=l)}get(l,u){let h;for(h=this._head;null!==h;h=h._nextDup)if((null===u||u<=h.currentIndex)&&Object.is(h.trackById,l))return h;return null}remove(l){const u=l._prevDup,h=l._nextDup;return null===u?this._head=h:u._nextDup=h,null===h?this._tail=u:h._prevDup=u,null===this._head}}class yA{constructor(){this.map=new Map}put(l){const u=l.trackById;let h=this.map.get(u);h||(h=new jN,this.map.set(u,h)),h.add(l)}get(l,u){const p=this.map.get(l);return p?p.get(l,u):null}remove(l){const u=l.trackById;return this.map.get(u).remove(l)&&this.map.delete(u),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xA(a,l,u){const h=a.previousIndex;if(null===h)return h;let p=0;return u&&h{if(u&&u.key===p)this._maybeAddToChanges(u,h),this._appendAfter=u,u=u._next;else{const _=this._getOrCreateRecordForKey(p,h);u=this._insertBeforeOrAppend(u,_)}}),u){u._prev&&(u._prev._next=null),this._removalsHead=u;for(let h=u;null!==h;h=h._nextRemoved)h===this._mapHead&&(this._mapHead=null),this._records.delete(h.key),h._nextRemoved=h._next,h.previousValue=h.currentValue,h.currentValue=null,h._prev=null,h._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,u){if(l){const h=l._prev;return u._next=l,u._prev=h,l._prev=u,h&&(h._next=u),l===this._mapHead&&(this._mapHead=u),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=u,u._prev=this._appendAfter):this._mapHead=u,this._appendAfter=u,null}_getOrCreateRecordForKey(l,u){if(this._records.has(l)){const p=this._records.get(l);this._maybeAddToChanges(p,u);const _=p._prev,y=p._next;return _&&(_._next=y),y&&(y._prev=_),p._next=null,p._prev=null,p}const h=new CA(l);return this._records.set(l,h),h.currentValue=u,this._addToAdditions(h),h}_reset(){if(this.isDirty){let l;for(this._previousMapHead=this._mapHead,l=this._previousMapHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._changesHead;null!==l;l=l._nextChanged)l.previousValue=l.currentValue;for(l=this._additionsHead;null!=l;l=l._nextAdded)l.previousValue=l.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(l,u){Object.is(u,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=u,this._addToChanges(l))}_addToAdditions(l){null===this._additionsHead?this._additionsHead=this._additionsTail=l:(this._additionsTail._nextAdded=l,this._additionsTail=l)}_addToChanges(l){null===this._changesHead?this._changesHead=this._changesTail=l:(this._changesTail._nextChanged=l,this._changesTail=l)}_forEach(l,u){l instanceof Map?l.forEach(u):Object.keys(l).forEach(h=>u(l[h],h))}}class CA{constructor(l){this.key=l,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 x1(){return new Wv([new Zl])}let Wv=(()=>{class a{constructor(u){this.factories=u}static create(u,h){if(null!=h){const p=h.factories.slice();u=u.concat(p)}return new a(u)}static extend(u){return{provide:a,useFactory:h=>a.create(u,h||x1()),deps:[[a,new Xn,new rs]]}}find(u){const h=this.factories.find(p=>p.supports(u));if(null!=h)return h;throw new He(901,"")}}return a.\u0275prov=je({token:a,providedIn:"root",factory:x1}),a})();function qv(){return new zv([new Zv])}let zv=(()=>{class a{constructor(u){this.factories=u}static create(u,h){if(h){const p=h.factories.slice();u=u.concat(p)}return new a(u)}static extend(u){return{provide:a,useFactory:h=>a.create(u,h||qv()),deps:[[a,new Xn,new rs]]}}find(u){const h=this.factories.find(_=>_.supports(u));if(h)return h;throw new He(901,"")}}return a.\u0275prov=je({token:a,providedIn:"root",factory:qv}),a})();const WN=f1(null,"core",[]);let TA=(()=>{class a{constructor(u){}}return a.\u0275fac=function(u){return new(u||a)(zi(g1))},a.\u0275mod=F({type:a}),a.\u0275inj=Ft({}),a})()},3942:(_t,le,P)=>{"use strict";P.d(le,{Z:()=>He});var t=P(2090),J=P(4859),B=P(6881),Se=P(1877);class z{constructor(me,ke){this._delegate=me,this.firebase=ke,(0,B._addComponent)(me,new J.wA("app-compat",()=>this,"PUBLIC")),this.container=me.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(me){this._delegate.automaticDataCollectionEnabled=me}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(me=>{this._delegate.checkDestroyed(),me()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,B.deleteApp)(this._delegate)))}_getService(me,ke=B._DEFAULT_ENTRY_NAME){var pe;this._delegate.checkDestroyed();const De=this._delegate.container.getProvider(me);return!De.isInitialized()&&"EXPLICIT"===(null===(pe=De.getComponent())||void 0===pe?void 0:pe.instantiationMode)&&De.initialize(),De.getImmediate({identifier:ke})}_removeServiceInstance(me,ke=B._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(me).clearInstance(ke)}_addComponent(me){(0,B._addComponent)(this._delegate,me)}_addOrOverwriteComponent(me){(0,B._addOrOverwriteComponent)(this._delegate,me)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const ee=new t.LL("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),te=function Ze(){const Ye=function Ie(Ye){const me={},ke={__esModule:!0,initializeApp:function Ve(Ee,G={}){const d=B.initializeApp(Ee,G);if((0,t.r3)(me,d.name))return me[d.name];const U=new Ye(d,ke);return me[d.name]=U,U},app:De,registerVersion:B.registerVersion,setLogLevel:B.setLogLevel,onLog:B.onLog,apps:null,SDK_VERSION:B.SDK_VERSION,INTERNAL:{registerComponent:function ze(Ee){const G=Ee.name,d=G.replace("-compat","");if(B._registerComponent(Ee)&&"PUBLIC"===Ee.type){const U=(H=De())=>{if("function"!=typeof H[d])throw ee.create("invalid-app-argument",{appName:G});return H[d]()};void 0!==Ee.serviceProps&&(0,t.ZB)(U,Ee.serviceProps),ke[d]=U,Ye.prototype[d]=function(...H){return this._getService.bind(this,G).apply(this,Ee.multipleInstances?H:[])}}return"PUBLIC"===Ee.type?ke[d]:null},removeApp:function pe(Ee){delete me[Ee]},useAsService:function st(Ee,G){return"serverAuth"===G?null:G},modularAPIs:B}};function De(Ee){if(!(0,t.r3)(me,Ee=Ee||B._DEFAULT_ENTRY_NAME))throw ee.create("no-app",{appName:Ee});return me[Ee]}return ke.default=ke,Object.defineProperty(ke,"apps",{get:function et(){return Object.keys(me).map(Ee=>me[Ee])}}),De.App=Ye,ke}(z);return Ye.INTERNAL=Object.assign(Object.assign({},Ye.INTERNAL),{createFirebaseNamespace:Ze,extendNamespace:function me(ke){(0,t.ZB)(Ye,ke)},createSubscribe:t.ne,ErrorFactory:t.LL,deepExtend:t.ZB}),Ye}(),re=new Se.Yd("@firebase/app-compat");if((0,t.jU)()&&void 0!==self.firebase){re.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const Ye=self.firebase.SDK_VERSION;Ye&&Ye.indexOf("LITE")>=0&&re.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const He=te;!function Ce(Ye){(0,B.registerVersion)("@firebase/app-compat","0.2.13",Ye)}()},6881:(_t,le,P)=>{"use strict";P.r(le),P.d(le,{FirebaseError:()=>Se.ZR,SDK_VERSION:()=>wt,_DEFAULT_ENTRY_NAME:()=>Nn,_addComponent:()=>cn,_addOrOverwriteComponent:()=>St,_apps:()=>qn,_clearComponents:()=>Et,_components:()=>ni,_getProvider:()=>Zt,_registerComponent:()=>tt,_removeServiceInstance:()=>yn,deleteApp:()=>Qn,getApp:()=>gn,getApps:()=>Jn,initializeApp:()=>Ri,onLog:()=>vi,registerVersion:()=>oi,setLogLevel:()=>wr});var t=P(5861),J=P(4859),B=P(1877),Se=P(2090);let de,ee;const te=new WeakMap,re=new WeakMap,be=new WeakMap,se=new WeakMap,Ce=new WeakMap;let me={get(W,ne,we){if(W instanceof IDBTransaction){if("done"===ne)return re.get(W);if("objectStoreNames"===ne)return W.objectStoreNames||be.get(W);if("store"===ne)return we.objectStoreNames[1]?void 0:we.objectStore(we.objectStoreNames[0])}return Ve(W[ne])},set:(W,ne,we)=>(W[ne]=we,!0),has:(W,ne)=>W instanceof IDBTransaction&&("done"===ne||"store"===ne)||ne in W};function De(W){return"function"==typeof W?function pe(W){return W!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Ze(){return ee||(ee=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(W)?function(...ne){return W.apply(et(this),ne),Ve(te.get(this))}:function(...ne){return Ve(W.apply(et(this),ne))}:function(ne,...we){const Te=W.call(et(this),ne,...we);return be.set(Te,ne.sort?ne.sort():[ne]),Ve(Te)}}(W):(W instanceof IDBTransaction&&function Ye(W){if(re.has(W))return;const ne=new Promise((we,Te)=>{const $e=()=>{W.removeEventListener("complete",lt),W.removeEventListener("error",en),W.removeEventListener("abort",en)},lt=()=>{we(),$e()},en=()=>{Te(W.error||new DOMException("AbortError","AbortError")),$e()};W.addEventListener("complete",lt),W.addEventListener("error",en),W.addEventListener("abort",en)});re.set(W,ne)}(W),((W,ne)=>ne.some(we=>W instanceof we))(W,function Ie(){return de||(de=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(W,me):W)}function Ve(W){if(W instanceof IDBRequest)return function He(W){const ne=new Promise((we,Te)=>{const $e=()=>{W.removeEventListener("success",lt),W.removeEventListener("error",en)},lt=()=>{we(Ve(W.result)),$e()},en=()=>{Te(W.error),$e()};W.addEventListener("success",lt),W.addEventListener("error",en)});return ne.then(we=>{we instanceof IDBCursor&&te.set(we,W)}).catch(()=>{}),Ce.set(ne,W),ne}(W);if(se.has(W))return se.get(W);const ne=De(W);return ne!==W&&(se.set(W,ne),Ce.set(ne,W)),ne}const et=W=>Ce.get(W),Ee=["get","getKey","getAll","getAllKeys","count"],G=["put","add","delete","clear"],d=new Map;function U(W,ne){if(!(W instanceof IDBDatabase)||ne in W||"string"!=typeof ne)return;if(d.get(ne))return d.get(ne);const we=ne.replace(/FromIndex$/,""),Te=ne!==we,$e=G.includes(we);if(!(we in(Te?IDBIndex:IDBObjectStore).prototype)||!$e&&!Ee.includes(we))return;const lt=function(){var en=(0,t.Z)(function*(jn,...un){const bi=this.transaction(jn,$e?"readwrite":"readonly");let Pt=bi.store;return Te&&(Pt=Pt.index(un.shift())),(yield Promise.all([Pt[we](...un),$e&&bi.done]))[0]});return function(un){return en.apply(this,arguments)}}();return d.set(ne,lt),lt}!function ke(W){me=W(me)}(W=>IT(MT({},W),{get:(ne,we,Te)=>U(ne,we)||W.get(ne,we,Te),has:(ne,we)=>!!U(ne,we)||W.has(ne,we)}));class H{constructor(ne){this.container=ne}getPlatformInfoString(){return this.container.getProviders().map(we=>{if(function O(W){const ne=W.getComponent();return"VERSION"===(null==ne?void 0:ne.type)}(we)){const Te=we.getImmediate();return`${Te.library}/${Te.version}`}return null}).filter(we=>we).join(" ")}}const Z="@firebase/app",Y="0.9.13",Pe=new B.Yd("@firebase/app"),Nn="[DEFAULT]",Cn={[Z]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},qn=new Map,ni=new Map;function cn(W,ne){try{W.container.addComponent(ne)}catch(we){Pe.debug(`Component ${ne.name} failed to register with FirebaseApp ${W.name}`,we)}}function St(W,ne){W.container.addOrOverwriteComponent(ne)}function tt(W){const ne=W.name;if(ni.has(ne))return Pe.debug(`There were multiple attempts to register component ${ne}.`),!1;ni.set(ne,W);for(const we of qn.values())cn(we,W);return!0}function Zt(W,ne){const we=W.container.getProvider("heartbeat").getImmediate({optional:!0});return we&&we.triggerHeartbeat(),W.container.getProvider(ne)}function yn(W,ne,we=Nn){Zt(W,ne).clearInstance(we)}function Et(){ni.clear()}const jt=new Se.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class qt{constructor(ne,we,Te){this._isDeleted=!1,this._options=Object.assign({},ne),this._config=Object.assign({},we),this._name=we.name,this._automaticDataCollectionEnabled=we.automaticDataCollectionEnabled,this._container=Te,this.container.addComponent(new J.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ne){this.checkDestroyed(),this._automaticDataCollectionEnabled=ne}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ne){this._isDeleted=ne}checkDestroyed(){if(this.isDeleted)throw jt.create("app-deleted",{appName:this._name})}}const wt="9.23.0";function Ri(W,ne={}){let we=W;"object"!=typeof ne&&(ne={name:ne});const Te=Object.assign({name:Nn,automaticDataCollectionEnabled:!1},ne),$e=Te.name;if("string"!=typeof $e||!$e)throw jt.create("bad-app-name",{appName:String($e)});if(we||(we=(0,Se.aH)()),!we)throw jt.create("no-options");const lt=qn.get($e);if(lt){if((0,Se.vZ)(we,lt.options)&&(0,Se.vZ)(Te,lt.config))return lt;throw jt.create("duplicate-app",{appName:$e})}const en=new J.H0($e);for(const un of ni.values())en.addComponent(un);const jn=new qt(we,Te,en);return qn.set($e,jn),jn}function gn(W=Nn){const ne=qn.get(W);if(!ne&&W===Nn&&(0,Se.aH)())return Ri();if(!ne)throw jt.create("no-app",{appName:W});return ne}function Jn(){return Array.from(qn.values())}function Qn(W){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,t.Z)(function*(W){const ne=W.name;qn.has(ne)&&(qn.delete(ne),yield Promise.all(W.container.getProviders().map(we=>we.delete())),W.isDeleted=!0)})).apply(this,arguments)}function oi(W,ne,we){var Te;let $e=null!==(Te=Cn[W])&&void 0!==Te?Te:W;we&&($e+=`-${we}`);const lt=$e.match(/\s|\//),en=ne.match(/\s|\//);if(lt||en){const jn=[`Unable to register library "${$e}" with version "${ne}":`];return lt&&jn.push(`library name "${$e}" contains illegal characters (whitespace or "/")`),lt&&en&&jn.push("and"),en&&jn.push(`version name "${ne}" contains illegal characters (whitespace or "/")`),void Pe.warn(jn.join(" "))}tt(new J.wA(`${$e}-version`,()=>({library:$e,version:ne}),"VERSION"))}function vi(W,ne){if(null!==W&&"function"!=typeof W)throw jt.create("invalid-log-argument");(0,B.Am)(W,ne)}function wr(W){(0,B.Ub)(W)}const ie="firebase-heartbeat-store";let X=null;function F(){return X||(X=function ze(W,ne,{blocked:we,upgrade:Te,blocking:$e,terminated:lt}={}){const en=indexedDB.open(W,ne),jn=Ve(en);return Te&&en.addEventListener("upgradeneeded",un=>{Te(Ve(en.result),un.oldVersion,un.newVersion,Ve(en.transaction),un)}),we&&en.addEventListener("blocked",un=>we(un.oldVersion,un.newVersion,un)),jn.then(un=>{lt&&un.addEventListener("close",()=>lt()),$e&&un.addEventListener("versionchange",bi=>$e(bi.oldVersion,bi.newVersion,bi))}).catch(()=>{}),jn}("firebase-heartbeat-database",1,{upgrade:(W,ne)=>{0===ne&&W.createObjectStore(ie)}}).catch(W=>{throw jt.create("idb-open",{originalErrorMessage:W.message})})),X}function k(){return(k=(0,t.Z)(function*(W){try{return yield(yield F()).transaction(ie).objectStore(ie).get(ot(W))}catch(ne){if(ne instanceof Se.ZR)Pe.warn(ne.message);else{const we=jt.create("idb-get",{originalErrorMessage:null==ne?void 0:ne.message});Pe.warn(we.message)}}})).apply(this,arguments)}function ye(W,ne){return We.apply(this,arguments)}function We(){return(We=(0,t.Z)(function*(W,ne){try{const Te=(yield F()).transaction(ie,"readwrite");yield Te.objectStore(ie).put(ne,ot(W)),yield Te.done}catch(we){if(we instanceof Se.ZR)Pe.warn(we.message);else{const Te=jt.create("idb-set",{originalErrorMessage:null==we?void 0:we.message});Pe.warn(Te.message)}}})).apply(this,arguments)}function ot(W){return`${W.name}!${W.options.appId}`}class sn{constructor(ne){this.container=ne,this._heartbeatsCache=null;const we=this.container.getProvider("app").getImmediate();this._storage=new on(we),this._heartbeatsCachePromise=this._storage.read().then(Te=>(this._heartbeatsCache=Te,Te))}triggerHeartbeat(){var ne=this;return(0,t.Z)(function*(){const Te=ne.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),$e=Bt();if(null===ne._heartbeatsCache&&(ne._heartbeatsCache=yield ne._heartbeatsCachePromise),ne._heartbeatsCache.lastSentHeartbeatDate!==$e&&!ne._heartbeatsCache.heartbeats.some(lt=>lt.date===$e))return ne._heartbeatsCache.heartbeats.push({date:$e,agent:Te}),ne._heartbeatsCache.heartbeats=ne._heartbeatsCache.heartbeats.filter(lt=>{const en=new Date(lt.date).valueOf();return Date.now()-en<=2592e6}),ne._storage.overwrite(ne._heartbeatsCache)})()}getHeartbeatsHeader(){var ne=this;return(0,t.Z)(function*(){if(null===ne._heartbeatsCache&&(yield ne._heartbeatsCachePromise),null===ne._heartbeatsCache||0===ne._heartbeatsCache.heartbeats.length)return"";const we=Bt(),{heartbeatsToSend:Te,unsentEntries:$e}=function Gn(W,ne=1024){const we=[];let Te=W.slice();for(const $e of W){const lt=we.find(en=>en.agent===$e.agent);if(lt){if(lt.dates.push($e.date),ui(we)>ne){lt.dates.pop();break}}else if(we.push({agent:$e.agent,dates:[$e.date]}),ui(we)>ne){we.pop();break}Te=Te.slice(1)}return{heartbeatsToSend:we,unsentEntries:Te}}(ne._heartbeatsCache.heartbeats),lt=(0,Se.L)(JSON.stringify({version:2,heartbeats:Te}));return ne._heartbeatsCache.lastSentHeartbeatDate=we,$e.length>0?(ne._heartbeatsCache.heartbeats=$e,yield ne._storage.overwrite(ne._heartbeatsCache)):(ne._heartbeatsCache.heartbeats=[],ne._storage.overwrite(ne._heartbeatsCache)),lt})()}}function Bt(){return(new Date).toISOString().substring(0,10)}class on{constructor(ne){this.app=ne,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,t.Z)(function*(){return!!(0,Se.hl)()&&(0,Se.eu)().then(()=>!0).catch(()=>!1)})()}read(){var ne=this;return(0,t.Z)(function*(){return(yield ne._canUseIndexedDBPromise)&&(yield function L(W){return k.apply(this,arguments)}(ne.app))||{heartbeats:[]}})()}overwrite(ne){var we=this;return(0,t.Z)(function*(){var Te;if(yield we._canUseIndexedDBPromise){const lt=yield we.read();return ye(we.app,{lastSentHeartbeatDate:null!==(Te=ne.lastSentHeartbeatDate)&&void 0!==Te?Te:lt.lastSentHeartbeatDate,heartbeats:ne.heartbeats})}})()}add(ne){var we=this;return(0,t.Z)(function*(){var Te;if(yield we._canUseIndexedDBPromise){const lt=yield we.read();return ye(we.app,{lastSentHeartbeatDate:null!==(Te=ne.lastSentHeartbeatDate)&&void 0!==Te?Te:lt.lastSentHeartbeatDate,heartbeats:[...lt.heartbeats,...ne.heartbeats]})}})()}}function ui(W){return(0,Se.L)(JSON.stringify({version:2,heartbeats:W})).length}!function ue(W){tt(new J.wA("platform-logger",ne=>new H(ne),"PRIVATE")),tt(new J.wA("heartbeat",ne=>new sn(ne),"PRIVATE")),oi(Z,Y,W),oi(Z,Y,"esm2017"),oi("fire-js","")}("")},4859:(_t,le,P)=>{"use strict";P.d(le,{H0:()=>Ie,wA:()=>B,zt:()=>z});var t=P(5861),J=P(2090);class B{constructor(te,re,be){this.name=te,this.instanceFactory=re,this.type=be,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(te){return this.instantiationMode=te,this}setMultipleInstances(te){return this.multipleInstances=te,this}setServiceProps(te){return this.serviceProps=te,this}setInstanceCreatedCallback(te){return this.onInstanceCreated=te,this}}const Se="[DEFAULT]";class z{constructor(te,re){this.name=te,this.container=re,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(te){const re=this.normalizeInstanceIdentifier(te);if(!this.instancesDeferred.has(re)){const be=new J.BH;if(this.instancesDeferred.set(re,be),this.isInitialized(re)||this.shouldAutoInitialize())try{const se=this.getOrInitializeService({instanceIdentifier:re});se&&be.resolve(se)}catch(se){}}return this.instancesDeferred.get(re).promise}getImmediate(te){var re;const be=this.normalizeInstanceIdentifier(null==te?void 0:te.identifier),se=null!==(re=null==te?void 0:te.optional)&&void 0!==re&&re;if(!this.isInitialized(be)&&!this.shouldAutoInitialize()){if(se)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:be})}catch(Ce){if(se)return null;throw Ce}}getComponent(){return this.component}setComponent(te){if(te.name!==this.name)throw Error(`Mismatching Component ${te.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=te,this.shouldAutoInitialize()){if(function ee(Ze){return"EAGER"===Ze.instantiationMode}(te))try{this.getOrInitializeService({instanceIdentifier:Se})}catch(re){}for(const[re,be]of this.instancesDeferred.entries()){const se=this.normalizeInstanceIdentifier(re);try{const Ce=this.getOrInitializeService({instanceIdentifier:se});be.resolve(Ce)}catch(Ce){}}}}clearInstance(te=Se){this.instancesDeferred.delete(te),this.instancesOptions.delete(te),this.instances.delete(te)}delete(){var te=this;return(0,t.Z)(function*(){const re=Array.from(te.instances.values());yield Promise.all([...re.filter(be=>"INTERNAL"in be).map(be=>be.INTERNAL.delete()),...re.filter(be=>"_delete"in be).map(be=>be._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(te=Se){return this.instances.has(te)}getOptions(te=Se){return this.instancesOptions.get(te)||{}}initialize(te={}){const{options:re={}}=te,be=this.normalizeInstanceIdentifier(te.instanceIdentifier);if(this.isInitialized(be))throw Error(`${this.name}(${be}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const se=this.getOrInitializeService({instanceIdentifier:be,options:re});for(const[Ce,He]of this.instancesDeferred.entries())be===this.normalizeInstanceIdentifier(Ce)&&He.resolve(se);return se}onInit(te,re){var be;const se=this.normalizeInstanceIdentifier(re),Ce=null!==(be=this.onInitCallbacks.get(se))&&void 0!==be?be:new Set;Ce.add(te),this.onInitCallbacks.set(se,Ce);const He=this.instances.get(se);return He&&te(He,se),()=>{Ce.delete(te)}}invokeOnInitCallbacks(te,re){const be=this.onInitCallbacks.get(re);if(be)for(const se of be)try{se(te,re)}catch(Ce){}}getOrInitializeService({instanceIdentifier:te,options:re={}}){let be=this.instances.get(te);if(!be&&this.component&&(be=this.component.instanceFactory(this.container,{instanceIdentifier:(Ze=te,Ze===Se?void 0:Ze),options:re}),this.instances.set(te,be),this.instancesOptions.set(te,re),this.invokeOnInitCallbacks(be,te),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,te,be)}catch(se){}var Ze;return be||null}normalizeInstanceIdentifier(te=Se){return this.component?this.component.multipleInstances?te:Se:te}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Ie{constructor(te){this.name=te,this.providers=new Map}addComponent(te){const re=this.getProvider(te.name);if(re.isComponentSet())throw new Error(`Component ${te.name} has already been registered with ${this.name}`);re.setComponent(te)}addOrOverwriteComponent(te){this.getProvider(te.name).isComponentSet()&&this.providers.delete(te.name),this.addComponent(te)}getProvider(te){if(this.providers.has(te))return this.providers.get(te);const re=new z(te,this);return this.providers.set(te,re),re}getProviders(){return Array.from(this.providers.values())}}},4727:(_t,le,P)=>{"use strict";var t=P(5861),J=P(6881),B=P(4859),Se=P(2090);let de,ee;const te=new WeakMap,re=new WeakMap,be=new WeakMap,se=new WeakMap,Ce=new WeakMap;let me={get(Q,_e,Ue){if(Q instanceof IDBTransaction){if("done"===_e)return re.get(Q);if("objectStoreNames"===_e)return Q.objectStoreNames||be.get(Q);if("store"===_e)return Ue.objectStoreNames[1]?void 0:Ue.objectStore(Ue.objectStoreNames[0])}return Ve(Q[_e])},set:(Q,_e,Ue)=>(Q[_e]=Ue,!0),has:(Q,_e)=>Q instanceof IDBTransaction&&("done"===_e||"store"===_e)||_e in Q};function De(Q){return"function"==typeof Q?function pe(Q){return Q!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Ze(){return ee||(ee=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Q)?function(..._e){return Q.apply(et(this),_e),Ve(te.get(this))}:function(..._e){return Ve(Q.apply(et(this),_e))}:function(_e,...Ue){const pt=Q.call(et(this),_e,...Ue);return be.set(pt,_e.sort?_e.sort():[_e]),Ve(pt)}}(Q):(Q instanceof IDBTransaction&&function Ye(Q){if(re.has(Q))return;const _e=new Promise((Ue,pt)=>{const Mn=()=>{Q.removeEventListener("complete",Ut),Q.removeEventListener("error",Vn),Q.removeEventListener("abort",Vn)},Ut=()=>{Ue(),Mn()},Vn=()=>{pt(Q.error||new DOMException("AbortError","AbortError")),Mn()};Q.addEventListener("complete",Ut),Q.addEventListener("error",Vn),Q.addEventListener("abort",Vn)});re.set(Q,_e)}(Q),((Q,_e)=>_e.some(Ue=>Q instanceof Ue))(Q,function Ie(){return de||(de=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Q,me):Q)}function Ve(Q){if(Q instanceof IDBRequest)return function He(Q){const _e=new Promise((Ue,pt)=>{const Mn=()=>{Q.removeEventListener("success",Ut),Q.removeEventListener("error",Vn)},Ut=()=>{Ue(Ve(Q.result)),Mn()},Vn=()=>{pt(Q.error),Mn()};Q.addEventListener("success",Ut),Q.addEventListener("error",Vn)});return _e.then(Ue=>{Ue instanceof IDBCursor&&te.set(Ue,Q)}).catch(()=>{}),Ce.set(_e,Q),_e}(Q);if(se.has(Q))return se.get(Q);const _e=De(Q);return _e!==Q&&(se.set(Q,_e),Ce.set(_e,Q)),_e}const et=Q=>Ce.get(Q),Ee=["get","getKey","getAll","getAllKeys","count"],G=["put","add","delete","clear"],d=new Map;function U(Q,_e){if(!(Q instanceof IDBDatabase)||_e in Q||"string"!=typeof _e)return;if(d.get(_e))return d.get(_e);const Ue=_e.replace(/FromIndex$/,""),pt=_e!==Ue,Mn=G.includes(Ue);if(!(Ue in(pt?IDBIndex:IDBObjectStore).prototype)||!Mn&&!Ee.includes(Ue))return;const Ut=function(){var Vn=(0,t.Z)(function*(fi,...Xi){const ar=this.transaction(fi,Mn?"readwrite":"readonly");let Fs=ar.store;return pt&&(Fs=Fs.index(Xi.shift())),(yield Promise.all([Fs[Ue](...Xi),Mn&&ar.done]))[0]});return function(Xi){return Vn.apply(this,arguments)}}();return d.set(_e,Ut),Ut}!function ke(Q){me=Q(me)}(Q=>IT(MT({},Q),{get:(_e,Ue,pt)=>U(_e,Ue)||Q.get(_e,Ue,pt),has:(_e,Ue)=>!!U(_e,Ue)||Q.has(_e,Ue)}));const H="@firebase/installations",O="0.6.4",Y=`w:${O}`,Pe="FIS_v2",ve=new Se.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function Ge(Q){return Q instanceof Se.ZR&&Q.code.includes("request-failed")}function je({projectId:Q}){return`https://firebaseinstallations.googleapis.com/v1/projects/${Q}/installations`}function bt(Q){return{token:Q.token,requestStatus:2,expiresIn:Mt(Q.expiresIn),creationTime:Date.now()}}function Ft(Q,_e){return Ot.apply(this,arguments)}function Ot(){return(Ot=(0,t.Z)(function*(Q,_e){const pt=(yield _e.json()).error;return ve.create("request-failed",{requestName:Q,serverCode:pt.code,serverMessage:pt.message,serverStatus:pt.status})})).apply(this,arguments)}function Tt({apiKey:Q}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":Q})}function at(Q,{refreshToken:_e}){const Ue=Tt(Q);return Ue.append("Authorization",function Jt(Q){return`${Pe} ${Q}`}(_e)),Ue}function ht(Q){return yt.apply(this,arguments)}function yt(){return(yt=(0,t.Z)(function*(Q){const _e=yield Q();return _e.status>=500&&_e.status<600?Q():_e})).apply(this,arguments)}function Mt(Q){return Number(Q.replace("s","000"))}function rn(Q,_e){return it.apply(this,arguments)}function it(){return(it=(0,t.Z)(function*({appConfig:Q,heartbeatServiceProvider:_e},{fid:Ue}){const pt=je(Q),Mn=Tt(Q),Ut=_e.getImmediate({optional:!0});if(Ut){const ar=yield Ut.getHeartbeatsHeader();ar&&Mn.append("x-firebase-client",ar)}const fi={method:"POST",headers:Mn,body:JSON.stringify({fid:Ue,authVersion:Pe,appId:Q.appId,sdkVersion:Y})},Xi=yield ht(()=>fetch(pt,fi));if(Xi.ok){const ar=yield Xi.json();return{fid:ar.fid||Ue,registrationStatus:2,refreshToken:ar.refreshToken,authToken:bt(ar.authToken)}}throw yield Ft("Create Installation",Xi)})).apply(this,arguments)}function Ke(Q){return new Promise(_e=>{setTimeout(_e,Q)})}const ln=/^[cdef][\w-]{21}$/;function An(){try{const Q=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(Q),Q[0]=112+Q[0]%16;const Ue=function hr(Q){return function bn(Q){return btoa(String.fromCharCode(...Q)).replace(/\+/g,"-").replace(/\//g,"_")}(Q).substr(0,22)}(Q);return ln.test(Ue)?Ue:""}catch(Q){return""}}function Nn(Q){return`${Q.appName}!${Q.appId}`}const Cn=new Map;function qn(Q,_e){const Ue=Nn(Q);St(Ue,_e),function tt(Q,_e){const Ue=function yn(){return!Zt&&"BroadcastChannel"in self&&(Zt=new BroadcastChannel("[Firebase] FID Change"),Zt.onmessage=Q=>{St(Q.data.key,Q.data.fid)}),Zt}();Ue&&Ue.postMessage({key:Q,fid:_e}),function Et(){0===Cn.size&&Zt&&(Zt.close(),Zt=null)}()}(Ue,_e)}function St(Q,_e){const Ue=Cn.get(Q);if(Ue)for(const pt of Ue)pt(_e)}let Zt=null;const qt="firebase-installations-store";let wt=null;function Ri(){return wt||(wt=function ze(Q,_e,{blocked:Ue,upgrade:pt,blocking:Mn,terminated:Ut}={}){const Vn=indexedDB.open(Q,_e),fi=Ve(Vn);return pt&&Vn.addEventListener("upgradeneeded",Xi=>{pt(Ve(Vn.result),Xi.oldVersion,Xi.newVersion,Ve(Vn.transaction))}),Ue&&Vn.addEventListener("blocked",()=>Ue()),fi.then(Xi=>{Ut&&Xi.addEventListener("close",()=>Ut()),Mn&&Xi.addEventListener("versionchange",()=>Mn())}).catch(()=>{}),fi}("firebase-installations-database",1,{upgrade:(Q,_e)=>{0===_e&&Q.createObjectStore(qt)}})),wt}function gn(Q,_e){return Jn.apply(this,arguments)}function Jn(){return(Jn=(0,t.Z)(function*(Q,_e){const Ue=Nn(Q),Mn=(yield Ri()).transaction(qt,"readwrite"),Ut=Mn.objectStore(qt),Vn=yield Ut.get(Ue);return yield Ut.put(_e,Ue),yield Mn.done,(!Vn||Vn.fid!==_e.fid)&&qn(Q,_e.fid),_e})).apply(this,arguments)}function Qn(Q){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,t.Z)(function*(Q){const _e=Nn(Q),pt=(yield Ri()).transaction(qt,"readwrite");yield pt.objectStore(qt).delete(_e),yield pt.done})).apply(this,arguments)}function oi(Q,_e){return vi.apply(this,arguments)}function vi(){return(vi=(0,t.Z)(function*(Q,_e){const Ue=Nn(Q),Mn=(yield Ri()).transaction(qt,"readwrite"),Ut=Mn.objectStore(qt),Vn=yield Ut.get(Ue),fi=_e(Vn);return void 0===fi?yield Ut.delete(Ue):yield Ut.put(fi,Ue),yield Mn.done,fi&&(!Vn||Vn.fid!==fi.fid)&&qn(Q,fi.fid),fi})).apply(this,arguments)}function wr(Q){return sr.apply(this,arguments)}function sr(){return(sr=(0,t.Z)(function*(Q){let _e;const Ue=yield oi(Q.appConfig,pt=>{const Mn=Fi(pt),Ut=ie(Q,Mn);return _e=Ut.registrationPromise,Ut.installationEntry});return""===Ue.fid?{installationEntry:yield _e}:{installationEntry:Ue,registrationPromise:_e}})).apply(this,arguments)}function Fi(Q){return We(Q||{fid:An(),registrationStatus:0})}function ie(Q,_e){if(0===_e.registrationStatus){if(!navigator.onLine)return{installationEntry:_e,registrationPromise:Promise.reject(ve.create("app-offline"))};const Ue={fid:_e.fid,registrationStatus:1,registrationTime:Date.now()},pt=function X(Q,_e){return F.apply(this,arguments)}(Q,Ue);return{installationEntry:Ue,registrationPromise:pt}}return 1===_e.registrationStatus?{installationEntry:_e,registrationPromise:L(Q)}:{installationEntry:_e}}function F(){return(F=(0,t.Z)(function*(Q,_e){try{const Ue=yield rn(Q,_e);return gn(Q.appConfig,Ue)}catch(Ue){throw Ge(Ue)&&409===Ue.customData.serverCode?yield Qn(Q.appConfig):yield gn(Q.appConfig,{fid:_e.fid,registrationStatus:0}),Ue}})).apply(this,arguments)}function L(Q){return k.apply(this,arguments)}function k(){return(k=(0,t.Z)(function*(Q){let _e=yield ye(Q.appConfig);for(;1===_e.registrationStatus;)yield Ke(100),_e=yield ye(Q.appConfig);if(0===_e.registrationStatus){const{installationEntry:Ue,registrationPromise:pt}=yield wr(Q);return pt||Ue}return _e})).apply(this,arguments)}function ye(Q){return oi(Q,_e=>{if(!_e)throw ve.create("installation-not-found");return We(_e)})}function We(Q){return function ot(Q){return 1===Q.registrationStatus&&Q.registrationTime+1e4fetch(pt,fi));if(Xi.ok)return bt(yield Xi.json());throw yield Ft("Generate Auth Token",Xi)})).apply(this,arguments)}function sn(Q,{fid:_e}){return`${je(Q)}/${_e}/authTokens:generate`}function Bt(Q){return Gn.apply(this,arguments)}function Gn(){return(Gn=(0,t.Z)(function*(Q,_e=!1){let Ue;const pt=yield oi(Q.appConfig,Ut=>{if(!we(Ut))throw ve.create("not-registered");const Vn=Ut.authToken;if(!_e&&Te(Vn))return Ut;if(1===Vn.requestStatus)return Ue=on(Q,_e),Ut;{if(!navigator.onLine)throw ve.create("app-offline");const fi=lt(Ut);return Ue=W(Q,fi),fi}});return Ue?yield Ue:pt.authToken})).apply(this,arguments)}function on(Q,_e){return ui.apply(this,arguments)}function ui(){return(ui=(0,t.Z)(function*(Q,_e){let Ue=yield ue(Q.appConfig);for(;1===Ue.authToken.requestStatus;)yield Ke(100),Ue=yield ue(Q.appConfig);const pt=Ue.authToken;return 0===pt.requestStatus?Bt(Q,_e):pt})).apply(this,arguments)}function ue(Q){return oi(Q,_e=>{if(!we(_e))throw ve.create("not-registered");return function en(Q){return 1===Q.requestStatus&&Q.requestTime+1e4{const _e=Q.getProvider("app").getImmediate(),Ue=function ma(Q){if(!Q||!Q.options)throw Gt("App Configuration");if(!Q.name)throw Gt("App Name");const _e=["projectId","apiKey","appId"];for(const Ue of _e)if(!Q.options[Ue])throw Gt(Ue);return{appName:Q.name,projectId:Q.options.projectId,apiKey:Q.options.apiKey,appId:Q.options.appId}}(_e);return{app:_e,appConfig:Ue,heartbeatServiceProvider:(0,J._getProvider)(_e,"heartbeat"),_delete:()=>Promise.resolve()}},Qr=Q=>{const _e=Q.getProvider("app").getImmediate(),Ue=(0,J._getProvider)(_e,$n).getImmediate();return{getId:()=>function jn(Q){return un.apply(this,arguments)}(Ue),getToken:Mn=>function bi(Q){return Pt.apply(this,arguments)}(Ue,Mn)}};(function Kr(){(0,J._registerComponent)(new B.wA($n,vu,"PUBLIC")),(0,J._registerComponent)(new B.wA("installations-internal",Qr,"PRIVATE"))})(),(0,J.registerVersion)(H,O),(0,J.registerVersion)(H,O,"esm2017")},1877:(_t,le,P)=>{"use strict";P.d(le,{Am:()=>Ze,Ub:()=>Ie,Yd:()=>ee,in:()=>J});const t=[];var J=(()=>{return(te=J||(J={}))[te.DEBUG=0]="DEBUG",te[te.VERBOSE=1]="VERBOSE",te[te.INFO=2]="INFO",te[te.WARN=3]="WARN",te[te.ERROR=4]="ERROR",te[te.SILENT=5]="SILENT",J;var te})();const B={debug:J.DEBUG,verbose:J.VERBOSE,info:J.INFO,warn:J.WARN,error:J.ERROR,silent:J.SILENT},Se=J.INFO,z={[J.DEBUG]:"log",[J.VERBOSE]:"log",[J.INFO]:"info",[J.WARN]:"warn",[J.ERROR]:"error"},de=(te,re,...be)=>{if(re{re.setLogLevel(te)})}function Ze(te,re){for(const be of t){let se=null;re&&re.level&&(se=B[re.level]),be.userLogHandler=null===te?null:(Ce,He,...Ye)=>{const me=Ye.map(ke=>{if(null==ke)return null;if("string"==typeof ke)return ke;if("number"==typeof ke||"boolean"==typeof ke)return ke.toString();if(ke instanceof Error)return ke.message;try{return JSON.stringify(ke)}catch(pe){return null}}).filter(ke=>ke).join(" ");He>=(null!=se?se:Ce.logLevel)&&te({level:J[He].toLowerCase(),message:me,args:Ye,type:Ce.name})}}}},908:(_t,le,P)=>{"use strict";P.d(le,{Gb:()=>ye,LP:()=>Bt,pQ:()=>on,ps:()=>ui});var t=P(5861),B=(P(4727),P(4859)),Se=P(5626),z=P(2090),de=P(6881);const ee="/firebase-messaging-sw.js",Ie="/firebase-cloud-messaging-push-scope",Ze="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",re="google.c.a.c_id",be="google.c.a.c_l",se="google.c.a.ts",Ce="google.c.a.e";var Ye=(()=>{return(ue=Ye||(Ye={})).PUSH_RECEIVED="push-received",ue.NOTIFICATION_CLICKED="notification-clicked",Ye;var ue})();function me(ue){const W=new Uint8Array(ue);return btoa(String.fromCharCode(...W)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ke(ue){const ne=(ue+"=".repeat((4-ue.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),we=atob(ne),Te=new Uint8Array(we.length);for(let $e=0;$e$e.name).includes(pe))return null;let W=null;return(yield(0,Se.X3)(pe,5,{upgrade:(we=(0,t.Z)(function*(Te,$e,lt,en){var jn;if($e<2||!Te.objectStoreNames.contains(Ve))return;const un=en.objectStore(Ve),bi=yield un.index("fcmSenderId").get(ue);if(yield un.clear(),bi)if(2===$e){const Pt=bi;if(!Pt.auth||!Pt.p256dh||!Pt.endpoint)return;W={token:Pt.fcmToken,createTime:null!==(jn=Pt.createTime)&&void 0!==jn?jn:Date.now(),subscriptionOptions:{auth:Pt.auth,p256dh:Pt.p256dh,endpoint:Pt.endpoint,swScope:Pt.swScope,vapidKey:"string"==typeof Pt.vapidKey?Pt.vapidKey:me(Pt.vapidKey)}}}else if(3===$e){const Pt=bi;W={token:Pt.fcmToken,createTime:Pt.createTime,subscriptionOptions:{auth:me(Pt.auth),p256dh:me(Pt.p256dh),endpoint:Pt.endpoint,swScope:Pt.swScope,vapidKey:me(Pt.vapidKey)}}}else if(4===$e){const Pt=bi;W={token:Pt.fcmToken,createTime:Pt.createTime,subscriptionOptions:{auth:me(Pt.auth),p256dh:me(Pt.p256dh),endpoint:Pt.endpoint,swScope:Pt.swScope,vapidKey:me(Pt.vapidKey)}}}}),function($e,lt,en,jn){return we.apply(this,arguments)})})).close(),yield(0,Se.Lj)(pe),yield(0,Se.Lj)("fcm_vapid_details_db"),yield(0,Se.Lj)("undefined"),st(W)?W:null;var we}),ze.apply(this,arguments)}function st(ue){if(!ue||!ue.subscriptionOptions)return!1;const{subscriptionOptions:W}=ue;return"number"==typeof ue.createTime&&ue.createTime>0&&"string"==typeof ue.token&&ue.token.length>0&&"string"==typeof W.auth&&W.auth.length>0&&"string"==typeof W.p256dh&&W.p256dh.length>0&&"string"==typeof W.endpoint&&W.endpoint.length>0&&"string"==typeof W.swScope&&W.swScope.length>0&&"string"==typeof W.vapidKey&&W.vapidKey.length>0}const d="firebase-messaging-store";let U=null;function H(){return U||(U=(0,Se.X3)("firebase-messaging-database",1,{upgrade:(ue,W)=>{0===W&&ue.createObjectStore(d)}})),U}function O(ue){return Z.apply(this,arguments)}function Z(){return(Z=(0,t.Z)(function*(ue){const W=j(ue),we=yield(yield H()).transaction(d).objectStore(d).get(W);if(we)return we;{const Te=yield et(ue.appConfig.senderId);if(Te)return yield Y(ue,Te),Te}})).apply(this,arguments)}function Y(ue,W){return Pe.apply(this,arguments)}function Pe(){return(Pe=(0,t.Z)(function*(ue,W){const ne=j(ue),Te=(yield H()).transaction(d,"readwrite");return yield Te.objectStore(d).put(W,ne),yield Te.done,W})).apply(this,arguments)}function Oe(ue){return ct.apply(this,arguments)}function ct(){return(ct=(0,t.Z)(function*(ue){const W=j(ue),we=(yield H()).transaction(d,"readwrite");yield we.objectStore(d).delete(W),yield we.done})).apply(this,arguments)}function j({appConfig:ue}){return ue.appId}const he=new z.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function ve(ue,W){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,t.Z)(function*(ue,W){const ne=yield at(ue),we=yt(W),Te={method:"POST",headers:ne,body:JSON.stringify(we)};let $e;try{$e=yield(yield fetch(Tt(ue.appConfig),Te)).json()}catch(lt){throw he.create("token-subscribe-failed",{errorInfo:null==lt?void 0:lt.toString()})}if($e.error)throw he.create("token-subscribe-failed",{errorInfo:$e.error.message});if(!$e.token)throw he.create("token-subscribe-no-token");return $e.token})).apply(this,arguments)}function je(ue,W){return bt.apply(this,arguments)}function bt(){return(bt=(0,t.Z)(function*(ue,W){const ne=yield at(ue),we=yt(W.subscriptionOptions),Te={method:"PATCH",headers:ne,body:JSON.stringify(we)};let $e;try{$e=yield(yield fetch(`${Tt(ue.appConfig)}/${W.token}`,Te)).json()}catch(lt){throw he.create("token-update-failed",{errorInfo:null==lt?void 0:lt.toString()})}if($e.error)throw he.create("token-update-failed",{errorInfo:$e.error.message});if(!$e.token)throw he.create("token-update-no-token");return $e.token})).apply(this,arguments)}function Ft(ue,W){return Ot.apply(this,arguments)}function Ot(){return(Ot=(0,t.Z)(function*(ue,W){const we={method:"DELETE",headers:yield at(ue)};try{const $e=yield(yield fetch(`${Tt(ue.appConfig)}/${W}`,we)).json();if($e.error)throw he.create("token-unsubscribe-failed",{errorInfo:$e.error.message})}catch(Te){throw he.create("token-unsubscribe-failed",{errorInfo:null==Te?void 0:Te.toString()})}})).apply(this,arguments)}function Tt({projectId:ue}){return`https://fcmregistrations.googleapis.com/v1/projects/${ue}/registrations`}function at(ue){return ht.apply(this,arguments)}function ht(){return(ht=(0,t.Z)(function*({appConfig:ue,installations:W}){const ne=yield W.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":ue.apiKey,"x-goog-firebase-installations-auth":`FIS ${ne}`})})).apply(this,arguments)}function yt({p256dh:ue,auth:W,endpoint:ne,vapidKey:we}){const Te={web:{endpoint:ne,auth:W,p256dh:ue}};return we!==Ze&&(Te.web.applicationPubKey=we),Te}const Mt=6048e5;function Jt(ue){return rn.apply(this,arguments)}function rn(){return(rn=(0,t.Z)(function*(ue){const W=yield hr(ue.swRegistration,ue.vapidKey),ne={vapidKey:ue.vapidKey,swScope:ue.swRegistration.scope,endpoint:W.endpoint,auth:me(W.getKey("auth")),p256dh:me(W.getKey("p256dh"))},we=yield O(ue.firebaseDependencies);if(we){if(Cn(we.subscriptionOptions,ne))return Date.now()>=we.createTime+Mt?bn(ue,{token:we.token,createTime:Date.now(),subscriptionOptions:ne}):we.token;try{yield Ft(ue.firebaseDependencies,we.token)}catch(Te){console.warn(Te)}return Xt(ue.firebaseDependencies,ne)}return Xt(ue.firebaseDependencies,ne)})).apply(this,arguments)}function it(ue){return Ke.apply(this,arguments)}function Ke(){return(Ke=(0,t.Z)(function*(ue){const W=yield O(ue.firebaseDependencies);W&&(yield Ft(ue.firebaseDependencies,W.token),yield Oe(ue.firebaseDependencies));const ne=yield ue.swRegistration.pushManager.getSubscription();return!ne||ne.unsubscribe()})).apply(this,arguments)}function bn(ue,W){return ln.apply(this,arguments)}function ln(){return(ln=(0,t.Z)(function*(ue,W){try{const ne=yield je(ue.firebaseDependencies,W),we=Object.assign(Object.assign({},W),{token:ne,createTime:Date.now()});return yield Y(ue.firebaseDependencies,we),ne}catch(ne){throw yield it(ue),ne}})).apply(this,arguments)}function Xt(ue,W){return An.apply(this,arguments)}function An(){return(An=(0,t.Z)(function*(ue,W){const we={token:yield ve(ue,W),createTime:Date.now(),subscriptionOptions:W};return yield Y(ue,we),we.token})).apply(this,arguments)}function hr(ue,W){return Nn.apply(this,arguments)}function Nn(){return(Nn=(0,t.Z)(function*(ue,W){return(yield ue.pushManager.getSubscription())||ue.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:ke(W)})})).apply(this,arguments)}function Cn(ue,W){return W.vapidKey===ue.vapidKey&&W.endpoint===ue.endpoint&&W.auth===ue.auth&&W.p256dh===ue.p256dh}function qn(ue){const W={from:ue.from,collapseKey:ue.collapse_key,messageId:ue.fcmMessageId};return function ni(ue,W){if(!W.notification)return;ue.notification={};const ne=W.notification.title;ne&&(ue.notification.title=ne);const we=W.notification.body;we&&(ue.notification.body=we);const Te=W.notification.image;Te&&(ue.notification.image=Te);const $e=W.notification.icon;$e&&(ue.notification.icon=$e)}(W,ue),function cn(ue,W){!W.data||(ue.data=W.data)}(W,ue),function St(ue,W){var ne,we,Te,$e,lt;if(!W.fcmOptions&&!(null===(ne=W.notification)||void 0===ne?void 0:ne.click_action))return;ue.fcmOptions={};const en=null!==(Te=null===(we=W.fcmOptions)||void 0===we?void 0:we.link)&&void 0!==Te?Te:null===($e=W.notification)||void 0===$e?void 0:$e.click_action;en&&(ue.fcmOptions.link=en);const jn=null===(lt=W.fcmOptions)||void 0===lt?void 0:lt.analytics_label;jn&&(ue.fcmOptions.analyticsLabel=jn)}(W,ue),W}function tt(ue){return"object"==typeof ue&&!!ue&&re in ue}function Zt(ue,W){const ne=[];for(let we=0;we{})}catch(W){throw he.create("failed-service-worker-registration",{browserErrorMessage:null==W?void 0:W.message})}})).apply(this,arguments)}function wt(ue,W){return Ri.apply(this,arguments)}function Ri(){return(Ri=(0,t.Z)(function*(ue,W){if(!W&&!ue.swRegistration&&(yield jt(ue)),W||!ue.swRegistration){if(!(W instanceof ServiceWorkerRegistration))throw he.create("invalid-sw-registration");ue.swRegistration=W}})).apply(this,arguments)}function gn(ue,W){return Jn.apply(this,arguments)}function Jn(){return(Jn=(0,t.Z)(function*(ue,W){W?ue.vapidKey=W:ue.vapidKey||(ue.vapidKey=Ze)})).apply(this,arguments)}function Qn(ue,W){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,t.Z)(function*(ue,W){if(!navigator)throw he.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw he.create("permission-blocked");return yield gn(ue,null==W?void 0:W.vapidKey),yield wt(ue,null==W?void 0:W.serviceWorkerRegistration),Jt(ue)})).apply(this,arguments)}function oi(ue,W,ne){return vi.apply(this,arguments)}function vi(){return(vi=(0,t.Z)(function*(ue,W,ne){const we=wr(W);(yield ue.firebaseDependencies.analyticsProvider.get()).logEvent(we,{message_id:ne[re],message_name:ne[be],message_time:ne[se],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function wr(ue){switch(ue){case Ye.NOTIFICATION_CLICKED:return"notification_open";case Ye.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function Fi(){return(Fi=(0,t.Z)(function*(ue,W){const ne=W.data;if(!ne.isFirebaseMessaging)return;ue.onMessageHandler&&ne.messageType===Ye.PUSH_RECEIVED&&("function"==typeof ue.onMessageHandler?ue.onMessageHandler(qn(ne)):ue.onMessageHandler.next(qn(ne)));const we=ne.data;tt(we)&&"1"===we[Ce]&&(yield oi(ue,ne.messageType,we))})).apply(this,arguments)}const ie="@firebase/messaging",X="0.12.4",F=ue=>{const W=new zn(ue.getProvider("app").getImmediate(),ue.getProvider("installations-internal").getImmediate(),ue.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",ne=>function sr(ue,W){return Fi.apply(this,arguments)}(W,ne)),W},L=ue=>{const W=ue.getProvider("messaging").getImmediate();return{getToken:we=>Qn(W,we)}};function ye(){return We.apply(this,arguments)}function We(){return(We=(0,t.Z)(function*(){try{yield(0,z.eu)()}catch(ue){return!1}return"undefined"!=typeof window&&(0,z.hl)()&&(0,z.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}function Lt(){return(Lt=(0,t.Z)(function*(ue){if(!navigator)throw he.create("only-available-in-window");return ue.swRegistration||(yield jt(ue)),it(ue)})).apply(this,arguments)}function Bt(ue,W){return Gn.apply(this,arguments)}function Gn(){return(Gn=(0,t.Z)(function*(ue,W){return Qn(ue=(0,z.m9)(ue),W)})).apply(this,arguments)}function on(ue){return function ot(ue){return Lt.apply(this,arguments)}(ue=(0,z.m9)(ue))}function ui(ue,W){return function kt(ue,W){if(!navigator)throw he.create("only-available-in-window");return ue.onMessageHandler=W,()=>{ue.onMessageHandler=null}}(ue=(0,z.m9)(ue),W)}!function k(){(0,de._registerComponent)(new B.wA("messaging",F,"PUBLIC")),(0,de._registerComponent)(new B.wA("messaging-internal",L,"PRIVATE")),(0,de.registerVersion)(ie,X),(0,de.registerVersion)(ie,X,"esm2017")}()},5626:(_t,le,P)=>{"use strict";P.d(le,{Lj:()=>Ve,X3:()=>De});var t=P(5861);let B,Se;const ee=new WeakMap,Ie=new WeakMap,Ze=new WeakMap,te=new WeakMap,re=new WeakMap;let Ce={get(G,d,U){if(G instanceof IDBTransaction){if("done"===d)return Ie.get(G);if("objectStoreNames"===d)return G.objectStoreNames||Ze.get(G);if("store"===d)return U.objectStoreNames[1]?void 0:U.objectStore(U.objectStoreNames[0])}return ke(G[d])},set:(G,d,U)=>(G[d]=U,!0),has:(G,d)=>G instanceof IDBTransaction&&("done"===d||"store"===d)||d in G};function me(G){return"function"==typeof G?function Ye(G){return G!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function de(){return Se||(Se=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(G)?function(...d){return G.apply(pe(this),d),ke(ee.get(this))}:function(...d){return ke(G.apply(pe(this),d))}:function(d,...U){const H=G.call(pe(this),d,...U);return Ze.set(H,d.sort?d.sort():[d]),ke(H)}}(G):(G instanceof IDBTransaction&&function se(G){if(Ie.has(G))return;const d=new Promise((U,H)=>{const O=()=>{G.removeEventListener("complete",Z),G.removeEventListener("error",Y),G.removeEventListener("abort",Y)},Z=()=>{U(),O()},Y=()=>{H(G.error||new DOMException("AbortError","AbortError")),O()};G.addEventListener("complete",Z),G.addEventListener("error",Y),G.addEventListener("abort",Y)});Ie.set(G,d)}(G),((G,d)=>d.some(U=>G instanceof U))(G,function z(){return B||(B=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(G,Ce):G)}function ke(G){if(G instanceof IDBRequest)return function be(G){const d=new Promise((U,H)=>{const O=()=>{G.removeEventListener("success",Z),G.removeEventListener("error",Y)},Z=()=>{U(ke(G.result)),O()},Y=()=>{H(G.error),O()};G.addEventListener("success",Z),G.addEventListener("error",Y)});return d.then(U=>{U instanceof IDBCursor&&ee.set(U,G)}).catch(()=>{}),re.set(d,G),d}(G);if(te.has(G))return te.get(G);const d=me(G);return d!==G&&(te.set(G,d),re.set(d,G)),d}const pe=G=>re.get(G);function De(G,d,{blocked:U,upgrade:H,blocking:O,terminated:Z}={}){const Y=indexedDB.open(G,d),Pe=ke(Y);return H&&Y.addEventListener("upgradeneeded",Oe=>{H(ke(Y.result),Oe.oldVersion,Oe.newVersion,ke(Y.transaction))}),U&&Y.addEventListener("blocked",()=>U()),Pe.then(Oe=>{Z&&Oe.addEventListener("close",()=>Z()),O&&Oe.addEventListener("versionchange",()=>O())}).catch(()=>{}),Pe}function Ve(G,{blocked:d}={}){const U=indexedDB.deleteDatabase(G);return d&&U.addEventListener("blocked",()=>d()),ke(U).then(()=>{})}const et=["get","getKey","getAll","getAllKeys","count"],ze=["put","add","delete","clear"],st=new Map;function Ee(G,d){if(!(G instanceof IDBDatabase)||d in G||"string"!=typeof d)return;if(st.get(d))return st.get(d);const U=d.replace(/FromIndex$/,""),H=d!==U,O=ze.includes(U);if(!(U in(H?IDBIndex:IDBObjectStore).prototype)||!O&&!et.includes(U))return;const Z=function(){var Y=(0,t.Z)(function*(Pe,...Oe){const ct=this.transaction(Pe,O?"readwrite":"readonly");let j=ct.store;return H&&(j=j.index(Oe.shift())),(yield Promise.all([j[U](...Oe),O&&ct.done]))[0]});return function(Oe){return Y.apply(this,arguments)}}();return st.set(d,Z),Z}!function He(G){Ce=G(Ce)}(G=>IT(MT({},G),{get:(d,U,H)=>Ee(d,U)||G.get(d,U,H),has:(d,U)=>!!Ee(d,U)||G.has(d,U)}))},9260:(_t,le,P)=>{"use strict";P.d(le,{Z:()=>t.Z});var t=P(3942);t.Z.registerVersion("firebase","9.23.0","app-compat")},9568:(_t,le,P)=>{"use strict";P.r(le);var t=P(5861),J=P(3942),B=P(1389),Se=P(2090),ee=(P(6881),P(1877),P(4859));function Ie(){return window}function re(){return(re=(0,t.Z)(function*(F,L,k){var ye;const{BuildInfo:We}=Ie();(0,B.as)(L.sessionId,"AuthEvent did not contain a session ID");const ot=yield ke(L.sessionId),Lt={};return(0,B.at)()?Lt.ibi=We.packageName:(0,B.au)()?Lt.apn=We.packageName:(0,B.av)(F,"operation-not-supported-in-this-environment"),We.displayName&&(Lt.appDisplayName=We.displayName),Lt.sessionId=ot,(0,B.aw)(F,k,L.type,void 0,null!==(ye=L.eventId)&&void 0!==ye?ye:void 0,Lt)})).apply(this,arguments)}function se(){return(se=(0,t.Z)(function*(F){const{BuildInfo:L}=Ie(),k={};(0,B.at)()?k.iosBundleId=L.packageName:(0,B.au)()?k.androidPackageName=L.packageName:(0,B.av)(F,"operation-not-supported-in-this-environment"),yield(0,B.ax)(F,k)})).apply(this,arguments)}function Ye(){return(Ye=(0,t.Z)(function*(F,L,k){const{cordova:ye}=Ie();let We=()=>{};try{yield new Promise((ot,Lt)=>{let kt=null;function sn(){var on;ot();const ui=null===(on=ye.plugins.browsertab)||void 0===on?void 0:on.close;"function"==typeof ui&&ui(),"function"==typeof(null==k?void 0:k.close)&&k.close()}function Bt(){kt||(kt=window.setTimeout(()=>{Lt((0,B.az)(F,"redirect-cancelled-by-user"))},2e3))}function Gn(){"visible"===(null==document?void 0:document.visibilityState)&&Bt()}L.addPassiveListener(sn),document.addEventListener("resume",Bt,!1),(0,B.au)()&&document.addEventListener("visibilitychange",Gn,!1),We=()=>{L.removePassiveListener(sn),document.removeEventListener("resume",Bt,!1),document.removeEventListener("visibilitychange",Gn,!1),kt&&window.clearTimeout(kt)}})}finally{We()}})).apply(this,arguments)}function ke(F){return pe.apply(this,arguments)}function pe(){return(pe=(0,t.Z)(function*(F){const L=De(F),k=yield crypto.subtle.digest("SHA-256",L);return Array.from(new Uint8Array(k)).map(We=>We.toString(16).padStart(2,"0")).join("")})).apply(this,arguments)}function De(F){if((0,B.as)(/[0-9a-zA-Z]+/.test(F),"Can only convert alpha-numeric strings"),"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(F);const L=new ArrayBuffer(F.length),k=new Uint8Array(L);for(let ye=0;ye{this.resolveInialized=L})}addPassiveListener(L){this.passiveListeners.add(L)}removePassiveListener(L){this.passiveListeners.delete(L)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(L){return this.resolveInialized(),this.passiveListeners.forEach(k=>k(L)),super.onEvent(L)}initialized(){var L=this;return(0,t.Z)(function*(){yield L.initPromise})()}}function Ee(F){return G.apply(this,arguments)}function G(){return(G=(0,t.Z)(function*(F){const L=yield H()._get(O(F));return L&&(yield H()._remove(O(F))),L})).apply(this,arguments)}function U(){const F=[],L="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let k=0;k<20;k++){const ye=Math.floor(Math.random()*L.length);F.push(L.charAt(ye))}return F.join("")}function H(){return(0,B.aC)(B.b)}function O(F){return(0,B.aD)("authEvent",F.config.apiKey,F.name)}function Pe(F){if(!(null==F?void 0:F.includes("?")))return{};const[L,...k]=F.split("?");return(0,Se.zd)(k.join("?"))}function oe(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:(0,B.az)("no-auth-event")}}function bt(){var F;return(null===(F=null==self?void 0:self.location)||void 0===F?void 0:F.protocol)||null}function Ot(F=(0,Se.z$)()){return!("file:"!==bt()&&"ionic:"!==bt()&&"capacitor:"!==bt()||!F.toLowerCase().match(/iphone|ipad|ipod|android/))}function Mt(){try{const F=self.localStorage,L=B.aL();if(F)return F.setItem(L,"1"),F.removeItem(L),!function yt(F=(0,Se.z$)()){return function at(){return(0,Se.w1)()&&11===(null==document?void 0:document.documentMode)}()||function ht(F=(0,Se.z$)()){return/Edge\/\d+/.test(F)}(F)}()||(0,Se.hl)()}catch(F){return Jt()&&(0,Se.hl)()}return!1}function Jt(){return"undefined"!=typeof global&&"WorkerGlobalScope"in global&&"importScripts"in global}function rn(){return(function Ft(){return"http:"===bt()||"https:"===bt()}()||(0,Se.ru)()||Ot())&&!function Tt(){return(0,Se.b$)()||(0,Se.UG)()}()&&Mt()&&!Jt()}function it(){return Ot()&&"undefined"!=typeof document}function bn(){return(bn=(0,t.Z)(function*(){return!!it()&&new Promise(F=>{const L=setTimeout(()=>{F(!1)},1e3);document.addEventListener("deviceready",()=>{clearTimeout(L),F(!0)})})})).apply(this,arguments)}const Xt={LOCAL:"local",NONE:"none",SESSION:"session"},An=B.aA,hr="persistence";function Cn(F){return qn.apply(this,arguments)}function qn(){return(qn=(0,t.Z)(function*(F){yield F._initializationPromise;const L=cn(),k=B.aD(hr,F.config.apiKey,F.name);L&&L.setItem(k,F._getPersistence())})).apply(this,arguments)}function cn(){var F;try{return(null===(F=function ln(){return"undefined"!=typeof window?window:null}())||void 0===F?void 0:F.sessionStorage)||null}catch(L){return null}}const St=B.aA;class tt{constructor(){this.browserResolver=B.aC(B.k),this.cordovaResolver=B.aC(class ct{constructor(){this._redirectPersistence=B.a,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=B.aE,this._overrideRedirectResult=B.aF}_initialize(L){var k=this;return(0,t.Z)(function*(){const ye=L._key();let We=k.eventManagers.get(ye);return We||(We=new et(L),k.eventManagers.set(ye,We),k.attachCallbackListeners(L,We)),We})()}_openPopup(L){(0,B.av)(L,"operation-not-supported-in-this-environment")}_openRedirect(L,k,ye,We){var ot=this;return(0,t.Z)(function*(){!function me(F){var L,k,ye,We,ot,Lt,kt,sn,Bt,Gn;const on=Ie();(0,B.aA)("function"==typeof(null===(L=null==on?void 0:on.universalLinks)||void 0===L?void 0:L.subscribe),F,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),(0,B.aA)(void 0!==(null===(k=null==on?void 0:on.BuildInfo)||void 0===k?void 0:k.packageName),F,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),(0,B.aA)("function"==typeof(null===(ot=null===(We=null===(ye=null==on?void 0:on.cordova)||void 0===ye?void 0:ye.plugins)||void 0===We?void 0:We.browsertab)||void 0===ot?void 0:ot.openUrl),F,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),(0,B.aA)("function"==typeof(null===(sn=null===(kt=null===(Lt=null==on?void 0:on.cordova)||void 0===Lt?void 0:Lt.plugins)||void 0===kt?void 0:kt.browsertab)||void 0===sn?void 0:sn.isAvailable),F,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),(0,B.aA)("function"==typeof(null===(Gn=null===(Bt=null==on?void 0:on.cordova)||void 0===Bt?void 0:Bt.InAppBrowser)||void 0===Gn?void 0:Gn.open),F,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(L);const Lt=yield ot._initialize(L);yield Lt.initialized(),Lt.resetRedirect(),(0,B.aG)(),yield ot._originValidation(L);const kt=function ze(F,L,k=null){return{type:L,eventId:k,urlResponse:null,sessionId:U(),postBody:null,tenantId:F.tenantId,error:(0,B.az)(F,"no-auth-event")}}(L,ye,We);yield function st(F,L){return H()._set(O(F),L)}(L,kt);const sn=yield function te(F,L,k){return re.apply(this,arguments)}(L,kt,k),Bt=yield function Ce(F){const{cordova:L}=Ie();return new Promise(k=>{L.plugins.browsertab.isAvailable(ye=>{let We=null;ye?L.plugins.browsertab.openUrl(F):We=L.InAppBrowser.open(F,(0,B.ay)()?"_blank":"_system","location=yes"),k(We)})})}(sn);return function He(F,L,k){return Ye.apply(this,arguments)}(L,Lt,Bt)})()}_isIframeWebStorageSupported(L,k){throw new Error("Method not implemented.")}_originValidation(L){const k=L._key();return this.originValidationPromises[k]||(this.originValidationPromises[k]=function be(F){return se.apply(this,arguments)}(L)),this.originValidationPromises[k]}attachCallbackListeners(L,k){const{universalLinks:ye,handleOpenURL:We,BuildInfo:ot}=Ie(),Lt=setTimeout((0,t.Z)(function*(){yield Ee(L),k.onEvent(oe())}),500),kt=function(){var Gn=(0,t.Z)(function*(on){clearTimeout(Lt);const ui=yield Ee(L);let ue=null;ui&&(null==on?void 0:on.url)&&(ue=function d(F,L){var k,ye;const We=function Y(F){const L=Pe(F),k=L.link?decodeURIComponent(L.link):void 0,ye=Pe(k).link,We=L.deep_link_id?decodeURIComponent(L.deep_link_id):void 0;return Pe(We).link||We||ye||k||F}(L);if(We.includes("/__/auth/callback")){const ot=Pe(We),Lt=ot.firebaseError?function Z(F){try{return JSON.parse(F)}catch(L){return null}}(decodeURIComponent(ot.firebaseError)):null,kt=null===(ye=null===(k=null==Lt?void 0:Lt.code)||void 0===k?void 0:k.split("auth/"))||void 0===ye?void 0:ye[1],sn=kt?(0,B.az)(kt):null;return sn?{type:F.type,eventId:F.eventId,tenantId:F.tenantId,error:sn,urlResponse:null,sessionId:null,postBody:null}:{type:F.type,eventId:F.eventId,tenantId:F.tenantId,sessionId:F.sessionId,urlResponse:We,postBody:null}}return null}(ui,on.url)),k.onEvent(ue||oe())});return function(ui){return Gn.apply(this,arguments)}}();void 0!==ye&&"function"==typeof ye.subscribe&&ye.subscribe(null,kt);const sn=We,Bt=`${ot.packageName.toLowerCase()}://`;Ie().handleOpenURL=function(){var Gn=(0,t.Z)(function*(on){if(on.toLowerCase().startsWith(Bt)&&kt({url:on}),"function"==typeof sn)try{sn(on)}catch(ui){console.error(ui)}});return function(on){return Gn.apply(this,arguments)}}()}}),this.underlyingResolver=null,this._redirectPersistence=B.a,this._completeRedirectFn=B.aE,this._overrideRedirectResult=B.aF}_initialize(L){var k=this;return(0,t.Z)(function*(){return yield k.selectUnderlyingResolver(),k.assertedUnderlyingResolver._initialize(L)})()}_openPopup(L,k,ye,We){var ot=this;return(0,t.Z)(function*(){return yield ot.selectUnderlyingResolver(),ot.assertedUnderlyingResolver._openPopup(L,k,ye,We)})()}_openRedirect(L,k,ye,We){var ot=this;return(0,t.Z)(function*(){return yield ot.selectUnderlyingResolver(),ot.assertedUnderlyingResolver._openRedirect(L,k,ye,We)})()}_isIframeWebStorageSupported(L,k){this.assertedUnderlyingResolver._isIframeWebStorageSupported(L,k)}_originValidation(L){return this.assertedUnderlyingResolver._originValidation(L)}get _shouldInitProactively(){return it()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return St(this.underlyingResolver,"internal-error"),this.underlyingResolver}selectUnderlyingResolver(){var L=this;return(0,t.Z)(function*(){if(L.underlyingResolver)return;const k=yield function Ke(){return bn.apply(this,arguments)}();L.underlyingResolver=k?L.cordovaResolver:L.browserResolver})()}}function Zt(F){return F.unwrap()}function Et(F){return jt(F)}function jt(F){const{_tokenResponse:L}=F instanceof Se.ZR?F.customData:F;if(!L)return null;if(!(F instanceof Se.ZR)&&"temporaryProof"in L&&"phoneNumber"in L)return B.P.credentialFromResult(F);const k=L.providerId;if(!k||k===B.p.PASSWORD)return null;let ye;switch(k){case B.p.GOOGLE:ye=B.V;break;case B.p.FACEBOOK:ye=B.U;break;case B.p.GITHUB:ye=B.W;break;case B.p.TWITTER:ye=B.Z;break;default:const{oauthIdToken:We,oauthAccessToken:ot,oauthTokenSecret:Lt,pendingToken:kt,nonce:sn}=L;return ot||Lt||We||kt?kt?k.startsWith("saml.")?B.aO._create(k,kt):B.L._fromParams({providerId:k,signInMethod:k,pendingToken:kt,idToken:We,accessToken:ot}):new B.X(k).credential({idToken:We,accessToken:ot,rawNonce:sn}):null}return F instanceof Se.ZR?ye.credentialFromError(F):ye.credentialFromResult(F)}function qt(F,L){return L.catch(k=>{throw k instanceof Se.ZR&&function zn(F,L){var k;const ye=null===(k=L.customData)||void 0===k?void 0:k._tokenResponse;if("auth/multi-factor-auth-required"===(null==L?void 0:L.code))L.resolver=new gn(F,B.aq(F,L));else if(ye){const We=jt(L),ot=L;We&&(ot.credential=We,ot.tenantId=ye.tenantId||void 0,ot.email=ye.email||void 0,ot.phoneNumber=ye.phoneNumber||void 0)}}(F,k),k}).then(k=>{const We=k.user;return{operationType:k.operationType,credential:Et(k),additionalUserInfo:B.ao(k),user:Jn.getOrCreate(We)}})}function wt(F,L){return Ri.apply(this,arguments)}function Ri(){return(Ri=(0,t.Z)(function*(F,L){const k=yield L;return{verificationId:k.verificationId,confirm:ye=>qt(F,k.confirm(ye))}})).apply(this,arguments)}class gn{constructor(L,k){this.resolver=k,this.auth=function yn(F){return F.wrapped()}(L)}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(L){return qt(Zt(this.auth),this.resolver.resolveSignIn(L))}}class Jn{constructor(L){this._delegate=L,this.multiFactor=B.ar(L)}static getOrCreate(L){return Jn.USER_MAP.has(L)||Jn.USER_MAP.set(L,new Jn(L)),Jn.USER_MAP.get(L)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(L){return this._delegate.getIdTokenResult(L)}getIdToken(L){return this._delegate.getIdToken(L)}linkAndRetrieveDataWithCredential(L){return this.linkWithCredential(L)}linkWithCredential(L){var k=this;return(0,t.Z)(function*(){return qt(k.auth,B.a0(k._delegate,L))})()}linkWithPhoneNumber(L,k){var ye=this;return(0,t.Z)(function*(){return wt(ye.auth,B.l(ye._delegate,L,k))})()}linkWithPopup(L){var k=this;return(0,t.Z)(function*(){return qt(k.auth,B.d(k._delegate,L,tt))})()}linkWithRedirect(L){var k=this;return(0,t.Z)(function*(){return yield Cn(B.aH(k.auth)),B.g(k._delegate,L,tt)})()}reauthenticateAndRetrieveDataWithCredential(L){return this.reauthenticateWithCredential(L)}reauthenticateWithCredential(L){var k=this;return(0,t.Z)(function*(){return qt(k.auth,B.a1(k._delegate,L))})()}reauthenticateWithPhoneNumber(L,k){return wt(this.auth,B.r(this._delegate,L,k))}reauthenticateWithPopup(L){return qt(this.auth,B.e(this._delegate,L,tt))}reauthenticateWithRedirect(L){var k=this;return(0,t.Z)(function*(){return yield Cn(B.aH(k.auth)),B.h(k._delegate,L,tt)})()}sendEmailVerification(L){return B.ae(this._delegate,L)}unlink(L){var k=this;return(0,t.Z)(function*(){return yield B.an(k._delegate,L),k})()}updateEmail(L){return B.aj(this._delegate,L)}updatePassword(L){return B.ak(this._delegate,L)}updatePhoneNumber(L){return B.u(this._delegate,L)}updateProfile(L){return B.ai(this._delegate,L)}verifyBeforeUpdateEmail(L,k){return B.af(this._delegate,L,k)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}Jn.USER_MAP=new WeakMap;const Qn=B.aA;let Hn=(()=>{class F{constructor(k,ye){if(this.app=k,ye.isInitialized())return this._delegate=ye.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:We}=k.options;Qn(We,"invalid-api-key",{appName:k.name}),Qn(We,"invalid-api-key",{appName:k.name});const ot="undefined"!=typeof window?tt:void 0;this._delegate=ye.initialize({options:{persistence:vi(We,k.name),popupRedirectResolver:ot}}),this._delegate._updateErrorMap(B.D),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?Jn.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(k){this._delegate.languageCode=k}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(k){this._delegate.tenantId=k}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(k,ye){B.I(this._delegate,k,ye)}applyActionCode(k){return B.a5(this._delegate,k)}checkActionCode(k){return B.a6(this._delegate,k)}confirmPasswordReset(k,ye){return B.a4(this._delegate,k,ye)}createUserWithEmailAndPassword(k,ye){var We=this;return(0,t.Z)(function*(){return qt(We._delegate,B.a8(We._delegate,k,ye))})()}fetchProvidersForEmail(k){return this.fetchSignInMethodsForEmail(k)}fetchSignInMethodsForEmail(k){return B.ad(this._delegate,k)}isSignInWithEmailLink(k){return B.ab(this._delegate,k)}getRedirectResult(){var k=this;return(0,t.Z)(function*(){Qn(rn(),k._delegate,"operation-not-supported-in-this-environment");const ye=yield B.j(k._delegate,tt);return ye?qt(k._delegate,Promise.resolve(ye)):{credential:null,user:null}})()}addFrameworkForLogging(k){!function he(F,L){(0,B.aH)(F)._logFramework(L)}(this._delegate,k)}onAuthStateChanged(k,ye,We){const{next:ot,error:Lt,complete:kt}=oi(k,ye,We);return this._delegate.onAuthStateChanged(ot,Lt,kt)}onIdTokenChanged(k,ye,We){const{next:ot,error:Lt,complete:kt}=oi(k,ye,We);return this._delegate.onIdTokenChanged(ot,Lt,kt)}sendSignInLinkToEmail(k,ye){return B.aa(this._delegate,k,ye)}sendPasswordResetEmail(k,ye){return B.a3(this._delegate,k,ye||void 0)}setPersistence(k){var ye=this;return(0,t.Z)(function*(){let We;switch(function Nn(F,L){An(Object.values(Xt).includes(L),F,"invalid-persistence-type"),(0,Se.b$)()?An(L!==Xt.SESSION,F,"unsupported-persistence-type"):(0,Se.UG)()?An(L===Xt.NONE,F,"unsupported-persistence-type"):Jt()?An(L===Xt.NONE||L===Xt.LOCAL&&(0,Se.hl)(),F,"unsupported-persistence-type"):An(L===Xt.NONE||Mt(),F,"unsupported-persistence-type")}(ye._delegate,k),k){case Xt.SESSION:We=B.a;break;case Xt.LOCAL:We=(yield B.aC(B.i)._isAvailable())?B.i:B.b;break;case Xt.NONE:We=B.N;break;default:return B.av("argument-error",{appName:ye._delegate.name})}return ye._delegate.setPersistence(We)})()}signInAndRetrieveDataWithCredential(k){return this.signInWithCredential(k)}signInAnonymously(){return qt(this._delegate,B._(this._delegate))}signInWithCredential(k){return qt(this._delegate,B.$(this._delegate,k))}signInWithCustomToken(k){return qt(this._delegate,B.a2(this._delegate,k))}signInWithEmailAndPassword(k,ye){return qt(this._delegate,B.a9(this._delegate,k,ye))}signInWithEmailLink(k,ye){return qt(this._delegate,B.ac(this._delegate,k,ye))}signInWithPhoneNumber(k,ye){return wt(this._delegate,B.s(this._delegate,k,ye))}signInWithPopup(k){var ye=this;return(0,t.Z)(function*(){return Qn(rn(),ye._delegate,"operation-not-supported-in-this-environment"),qt(ye._delegate,B.c(ye._delegate,k,tt))})()}signInWithRedirect(k){var ye=this;return(0,t.Z)(function*(){return Qn(rn(),ye._delegate,"operation-not-supported-in-this-environment"),yield Cn(ye._delegate),B.f(ye._delegate,k,tt)})()}updateCurrentUser(k){return this._delegate.updateCurrentUser(k)}verifyPasswordResetCode(k){return B.a7(this._delegate,k)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}return F.Persistence=Xt,F})();function oi(F,L,k){let ye=F;"function"!=typeof F&&({next:ye,error:L,complete:k}=F);const We=ye;return{next:Lt=>We(Lt&&Jn.getOrCreate(Lt)),error:L,complete:k}}function vi(F,L){const k=function ni(F,L){const k=cn();if(!k)return[];const ye=B.aD(hr,F,L);switch(k.getItem(ye)){case Xt.NONE:return[B.N];case Xt.LOCAL:return[B.i,B.a];case Xt.SESSION:return[B.a];default:return[]}}(F,L);if("undefined"!=typeof self&&!k.includes(B.i)&&k.push(B.i),"undefined"!=typeof window)for(const ye of[B.b,B.a])k.includes(ye)||k.push(ye);return k.includes(B.N)||k.push(B.N),k}class wr{constructor(){this.providerId="phone",this._delegate=new B.P(Zt(J.Z.auth()))}static credential(L,k){return B.P.credential(L,k)}verifyPhoneNumber(L,k){return this._delegate.verifyPhoneNumber(L,k)}unwrap(){return this._delegate}}wr.PHONE_SIGN_IN_METHOD=B.P.PHONE_SIGN_IN_METHOD,wr.PROVIDER_ID=B.P.PROVIDER_ID;const sr=B.aA;class Fi{constructor(L,k,ye=J.Z.app()){var We;sr(null===(We=ye.options)||void 0===We?void 0:We.apiKey,"invalid-api-key",{appName:ye.name}),this._delegate=new B.R(L,k,ye.auth()),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}!function X(F){F.INTERNAL.registerComponent(new ee.wA("auth-compat",L=>{const k=L.getProvider("app-compat").getImmediate(),ye=L.getProvider("auth");return new Hn(k,ye)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:B.A.EMAIL_SIGNIN,PASSWORD_RESET:B.A.PASSWORD_RESET,RECOVER_EMAIL:B.A.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:B.A.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:B.A.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:B.A.VERIFY_EMAIL}},EmailAuthProvider:B.Q,FacebookAuthProvider:B.U,GithubAuthProvider:B.W,GoogleAuthProvider:B.V,OAuthProvider:B.X,SAMLAuthProvider:B.Y,PhoneAuthProvider:wr,PhoneMultiFactorGenerator:B.m,RecaptchaVerifier:Fi,TwitterAuthProvider:B.Z,Auth:Hn,AuthCredential:B.J,Error:Se.ZR}).setInstantiationMode("LAZY").setMultipleInstances(!1)),F.registerVersion("@firebase/auth-compat","0.4.2")}(J.Z)},5861:(_t,le,P)=>{"use strict";function t(B,Se,z,de,ee,Ie,Ze){try{var te=B[Ie](Ze),re=te.value}catch(be){return void z(be)}te.done?Se(re):Promise.resolve(re).then(de,ee)}function J(B){return function(){var Se=this,z=arguments;return new Promise(function(de,ee){var Ie=B.apply(Se,z);function Ze(re){t(Ie,de,ee,Ze,te,"next",re)}function te(re){t(Ie,de,ee,Ze,te,"throw",re)}Ze(void 0)})}}P.d(le,{Z:()=>J})},7582:(_t,le,P)=>{"use strict";function Se(j,oe){var he={};for(var ve in j)Object.prototype.hasOwnProperty.call(j,ve)&&oe.indexOf(ve)<0&&(he[ve]=j[ve]);if(null!=j&&"function"==typeof Object.getOwnPropertySymbols){var Ge=0;for(ve=Object.getOwnPropertySymbols(j);GeSe,mG:()=>be}),"function"==typeof SuppressedError&&SuppressedError}},_t=>{_t(_t.s=1310)}]);