1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2176],{92176:(ml,_o,k)=>{k.d(_o,{r:()=>fl});var l=k(10467),b=k(89417),c=k(54438),T=k(34488),kr=k(85909),Ee=k(68018);let vo=(()=>{var n;class e{constructor(r,i,o,s){this.modalController=r,this.api=i,this.toastController=o,this.translate=s,this.form=new b.gE({email:new b.MJ("",b.k0.required)});const a=localStorage.getItem("lang");if(a)this.translate.use(a);else{const u=this.translate.getBrowserLang();this.translate.use(u||"es")}}ngOnInit(){}close(){this.modalController.dismiss()}add(){this.form.invalid?this.api.presentToast("Por favor, introduzca su correo electr\xf3nico"):this.api.resetPassword(this.form.value).subscribe(r=>{this.close(),this.form.reset(),this.api.presentToast("Correo enviado, por favor, revise su bandeja y siga las instrucciones",{color:"purpleToast",duration:5e3})},r=>{var i;this.api.presentToast((null==r||null===(i=r.error)||void 0===i?void 0:i.message)||"Ha ocurrido un error",{translateMsg:!1})})}}return(n=e).\u0275fac=function(r){return new(r||n)(c.rXU(T.W3),c.rXU(kr.G),c.rXU(T.K_),c.rXU(Ee.c$))},n.\u0275cmp=c.VBU({type:n,selectors:[["app-change-password"]],decls:26,vars:14,consts:[[1,"le-header",3,"translucent"],[1,"le-top"],[1,"le-tt"],[1,"le-ic"],["name","lock-closed"],[1,"le-tt-tx"],[1,"le-back","le-action",3,"click"],["name","close"],[1,"ion-justify-content-center",2,"height","100%","flex-direction","column"],[1,"text-center"],[1,"form",3,"formGroup"],["lines","full"],["formControlName","email","type","text","mode","ios","placeholder","Email"],[1,"ion-text-center"],["expand","block","shape","round",1,"search",3,"click"]],template:function(r,i){1&r&&(c.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"div",1)(3,"div",2)(4,"span",3),c.nrm(5,"ion-icon",4),c.k0s(),c.j41(6,"div",5)(7,"h2"),c.EFF(8),c.nI1(9,"translate"),c.k0s()()(),c.j41(10,"button",6),c.nI1(11,"translate"),c.bIt("click",function(){return i.close()}),c.nrm(12,"ion-icon",7),c.k0s()()()(),c.j41(13,"ion-content")(14,"ion-grid")(15,"ion-row",8)(16,"p",9),c.EFF(17),c.nI1(18,"translate"),c.k0s(),c.j41(19,"form",10)(20,"ion-item",11),c.nrm(21,"ion-input",12),c.k0s(),c.j41(22,"div",13)(23,"ion-button",14),c.bIt("click",function(){return i.add()}),c.EFF(24),c.nI1(25,"translate"),c.k0s()()()()()()),2&r&&(c.Y8G("translucent",!0),c.R7$(8),c.JRh(c.bMT(9,6,"Recordar contrase\xf1a")),c.R7$(2),c.BMQ("aria-label",c.bMT(11,8,"Cerrar")),c.R7$(7),c.SpI("",c.bMT(18,10,"Introduce tu correo electr\xf3nico y, si existe una cuenta con este correo, recibir\xe1s un email con las instrucciones a seguir para resetear tu contrase\xf1a"),"."),c.R7$(2),c.Y8G("formGroup",i.form),c.R7$(5),c.SpI(" ",c.bMT(25,12,"Enviar correo")," "))},dependencies:[T.Jm,T.W9,T.lO,T.eU,T.iq,T.$w,T.uz,T.ln,T.ai,T.Gw,b.qT,b.BC,b.cb,b.j4,b.JD,Ee.D9],styles:[".autocomplete[_ngcontent-%COMP%]{--border-width: 0;--border-radius: 0;--detail-icon-color: white;--detail-icon-opacity: 1;--detail-icon-font-size: 20px;margin:10px 0;width:100%}form[_ngcontent-%COMP%]{width:90vw;max-width:500px;margin:30px auto 20px}.search[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;margin-bottom:50px;text-align:center;width:90vw}.close[_ngcontent-%COMP%]{--background: transparent}.close[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:#8a8296;font-size:18px}.button2[_ngcontent-%COMP%]{--background: transparent}.button2[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:#000!important}.list[_ngcontent-%COMP%]{height:auto;overflow:auto;white-space:pre-wrap;margin:0 10px 20px}.list[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{background-color:var(--ion-color-pink);color:#fff;margin-right:5px;margin-top:10px;border-radius:5px;padding:5px;cursor:pointer;display:inline-block}.displayEmpty[_ngcontent-%COMP%]{height:1.5rem}.displayEmpty[_ngcontent-%COMP%]{display:none}.previsualizar[_ngcontent-%COMP%]{border-radius:5%}.deleteImage[_ngcontent-%COMP%]{background:#fff;border-radius:50%;padding:10px;height:15px;width:15px;position:absolute;top:22%;right:10px}.uploading-outer[_ngcontent-%COMP%] .uploadButton[_ngcontent-%COMP%]{position:relative;display:-webkit-box;display:block;justify-content:center;align-items:center}
1.uploadButton[_ngcontent-%COMP%] .uploadButton-input[_ngcontent-%COMP%]{opacity:0;position:absolute;overflow:hidden;z-index:-1;pointer-events:none;height:0;width:0;display:none!important}.uploadButton[_ngcontent-%COMP%] .uploadButton-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;height:120px;width:200px;border-radius:5px;transition:.3s;color:#1b2032;font-size:16px;border:2px dashed #ced4e1;width:80vw;margin:20px 0}.portadaInput[_ngcontent-%COMP%]{display:none!important}form[_ngcontent-%COMP%]{align-self:center;width:90vw;max-width:500px}ion-item[_ngcontent-%COMP%]{--border-width: 2px;--border-radius: 10px;--detail-icon-color: white;--detail-icon-opacity: 1;--detail-icon-font-size: 20px;--highlight-color-valid: var(--ion-color-success);--highlight-color-invalid: var(--ion-color-danger);margin:10px 0}ion-toolbar[_ngcontent-%COMP%]{padding-top:5px!important}p[_ngcontent-%COMP%]{width:90%;text-align:center;margin:auto;margin-top:20px!important}"]}),e})();const wr=function(n){const e=[];let t=0;for(let r=0;r<n.length;r++){let i=n.charCodeAt(r);i<128?e[t++]=i:i<2048?(e[t++]=i>>6|192,e[t++]=63&i|128):55296==(64512&i)&&r+1<n.length&&56320==(64512&n.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&n.charCodeAt(++r)),e[t++]=i>>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=63&i|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=63&i|128)}return e},Sr={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(n,e){if(!Array.isArray(n))throw Error("encodeByteArray takes an array as a parameter");this.init_();const t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<n.length;i+=3){const o=n[i],s=i+1<n.length,a=s?n[i+1]:0,u=i+2<n.length,d=u?n[i+2]:0;let g=(15&a)<<2|d>>6,y=63&d;u||(y=64,s||(g=64)),r.push(t[o>>2],t[(3&o)<<4|a>>4],t[g],t[y])}return r.join("")},encodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(n):this.encodeByteArray(wr(n),e)},decodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(n):function(n){const e=[];let t=0,r=0;for(;t<n.length;){const i=n[t++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=n[t++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const u=((7&i)<<18|(63&n[t++])<<12|(63&n[t++])<<6|63&n[t++])-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(1023&u))}else{const o=n[t++],s=n[t++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return e.join("")}(this.decodeStringToByteArray(n,e))},decodeStringToByteArray(n,e){this.init_();const t=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<n.length;){const o=t[n.charAt(i++)],a=i<n.length?t[n.charAt(i)]:0;++i;const d=i<n.length?t[n.charAt(i)]:64;++i;const p=i<n.length?t[n.charAt(i)]:64;if(++i,null==o||null==a||null==d||null==p)throw new To;r.push(o<<2|a>>4),64!==d&&(r.push(a<<4&240|d>>2),64!==p&&r.push(d<<6&192|p))}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let n=0;n<this.ENCODED_VALS.length;n++)this.byteToCharMap_[n]=this.ENCODED_VALS.charAt(n),this.charToByteMap_[this.byteToCharMap_[n]]=n,this.byteToCharMapWebSafe_[n]=this.ENCODED_VALS_WEBSAFE.charAt(n),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[n]]=n,n>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(n)]=n,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(n)]=n)}}};
1class To extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Ae=function(n){return function(n){const e=wr(n);return Sr.encodeByteArray(e,!0)}(n).replace(/\./g,"")},Pe=function(n){try{return Sr.decodeString(n,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},ke=()=>{try{return function Po(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const n=process.env.__FIREBASE_DEFAULTS__;return n?JSON.parse(n):void 0})()||(()=>{if(typeof document>"u")return;let n;try{n=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=n&&Pe(n[1]);return e&&JSON.parse(e)})()}catch(n){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`)}},Or=()=>{var n;return null===(n=ke())||void 0===n?void 0:n.config},Nr=n=>{var e;return null===(e=ke())||void 0===e?void 0:e[`_${n}`]};class xr{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function P(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}class B extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,B.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,re.prototype.create)}}class re{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){const r=t[0]||{},i=`${this.service}/${e}`,o=this.errors[e],s=o?function Vo(n,e){return n.replace(Go,(t,r)=>{const i=e[r];return null!=i?String(i):`<${r}?>`})}(o,r):"Error";return new B(i,`${this.serviceName}: ${s} (${i}).`,r)}}const Go=/\{\$([^}]+)}/g;function Se(n,e){if(n===e)return!0;const t=Object.keys(n),r=Object.keys(e);for(const i of t){if(!r.includes(i))return!1;const o=n[i],s=e[i];if(Mr(o)&&Mr(s)){if(!Se(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!t.includes(i))return!1;return!0}function Mr(n){return null!==n&&"object"==typeof n}function ie(n){const e=[];for(const[t,r]of Object.entries(n))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(t)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}class jo{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let i;if(void 0===e&&void 0===t&&void 0===r)throw new Error("Missing Observer.");i=function Ho(n,e){if("object"!=typeof n||null===n)return!1;for(const t of e)if(t in n&&"function"==typeof n[t])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:r},void 0===i.next&&(i.next=Je),void 0===i.error&&(i.error=Je),void 0===i.complete&&(i.complete=Je);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),o}unsubscribeOne(e){void 0===this.observers||void 0===this.observers[e]||(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Je(){}function J(n){return n&&n._delegate?n._delegate:n}class Y{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const H="[DEFAULT]";class Yo{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const r=new xr;if(this.instancesDeferred.set(t,r),this.isInitialized(t)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:t});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),i=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(r)&&!this.shouldAutoInitialize()){if(i)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function Qo(n){return"EAGER"===n.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:H})}catch{}for(const[t,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(t);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(e=H){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}delete(){var e=this;return(0,l.A)(function*(){const t=Array.from(e.instances.values());yield Promise.all([...t.filter(r=>"INTERNAL"in r).map(r=>r.INTERNAL.delete()),...t.filter(r=>"_delete"in r).map(r=>r._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(e=H){return this.instances.has(e)}getOptions(e=H){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:t});for(const[o,s]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(o)&&s.resolve(i);return i}onInit(e,t){var r;const i=this.normalizeInstanceIdentifier(t),o=null!==(r=this.onInitCallbacks.get(i))&&void 0!==r?r:new Set;o.add(e),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&e(s,i),()=>{o.delete(e)}}invokeOnInitCallbacks(e,t){const r=this.onInitCallbacks.get(t);if(r)for(const i of r)try{i(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(n=e,n===H?void 0:n),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}var n;return r||null}normalizeInstanceIdentifier(e=H){return this.component?this.component.multipleInstances?e:H:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Zo{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new Yo(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const Xe=[];var m=function(n){return n[n.DEBUG=0]="DEBUG",n[n.VERBOSE=1]="VERBOSE",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.SILENT=5]="SILENT",n}(m||{});const Lr={debug:m.DEBUG,verbose:m.VERBOSE,info:m.INFO,warn:m.WARN,error:m.ERROR,silent:m.SILENT},es=m.INFO,ts={[m.DEBUG]:"log",[m.VERBOSE]:"log",[m.INFO]:"info",[m.WARN]:"warn",[m.ERROR]:"error"},ns=(n,e,...t)=>{if(e<n.logLevel)return;const r=(new Date).toISOString(),i=ts[e];if(!i)throw new Error(`Attempted to log a message with an invali
1d logType (value: ${e})`);console[i](`[${r}] ${n.name}:`,...t)};class Ur{constructor(e){this.name=e,this._logLevel=es,this._logHandler=ns,this._userLogHandler=null,Xe.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in m))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?Lr[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,m.DEBUG,...e),this._logHandler(this,m.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,m.VERBOSE,...e),this._logHandler(this,m.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,m.INFO,...e),this._logHandler(this,m.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,m.WARN,...e),this._logHandler(this,m.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,m.ERROR,...e),this._logHandler(this,m.ERROR,...e)}}const rs=(n,e)=>e.some(t=>n instanceof t);let Fr,Vr;const Gr=new WeakMap,Qe=new WeakMap,Br=new WeakMap,Ze=new WeakMap,et=new WeakMap;let tt={get(n,e,t){if(n instanceof IDBTransaction){if("done"===e)return Qe.get(n);if("objectStoreNames"===e)return n.objectStoreNames||Br.get(n);if("store"===e)return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return W(n[e])},set:(n,e,t)=>(n[e]=t,!0),has:(n,e)=>n instanceof IDBTransaction&&("done"===e||"store"===e)||e in n};function ls(n){return"function"==typeof n?function us(n){return n!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function os(){return Vr||(Vr=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(n)?function(...e){return n.apply(nt(this),e),W(Gr.get(this))}:function(...e){return W(n.apply(nt(this),e))}:function(e,...t){const r=n.call(nt(this),e,...t);return Br.set(r,e.sort?e.sort():[e]),W(r)}}(n):(n instanceof IDBTransaction&&function as(n){if(Qe.has(n))return;const e=new Promise((t,r)=>{const i=()=>{n.removeEventListener("complete",o),n.removeEventListener("error",s),n.removeEventListener("abort",s)},o=()=>{t(),i()},s=()=>{r(n.error||new DOMException("AbortError","AbortError")),i()};n.addEventListener("complete",o),n.addEventListener("error",s),n.addEventListener("abort",s)});Qe.set(n,e)}(n),rs(n,function is(){return Fr||(Fr=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(n,tt):n)}function W(n){if(n instanceof IDBRequest)return function ss(n){const e=new Promise((t,r)=>{const i=()=>{n.removeEventListener("success",o),n.removeEventListener("error",s)},o=()=>{t(W(n.result)),i()},s=()=>{r(n.error),i()};n.addEventListener("success",o),n.addEventListener("error",s)});return e.then(t=>{t instanceof IDBCursor&&Gr.set(t,n)}).catch(()=>{}),et.set(e,n),e}(n);if(Ze.has(n))return Ze.get(n);const e=ls(n);return e!==n&&(Ze.set(n,e),et.set(e,n)),e}const nt=n=>et.get(n),hs=["get","getKey","getAll","getAllKeys","count"],fs=["put","add","delete","clear"],rt=new Map;function Wr(n,e){if(!(n instanceof IDBDatabase)||e in n||"string"!=typeof e)return;if(rt.get(e))return rt.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,i=fs.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!hs.includes(t))return;const o=function(){var s=(0,l.A)(function*(a,...u){const d=this.transaction(a,i?"readwrite":"readonly");let h=d.store;return r&&(h=h.index(u.shift())),(yield Promise.all([h[t](...u),i&&d.done]))[0]});return function(u){return s.apply(this,arguments)}}();return rt.set(e,o),o}!function cs(n){tt=n(tt)}(n=>({...n,get:(e,t,r)=>Wr(e,t)||n.get(e,t,r),has:(e,t)=>!!Wr(e,t)||n.has(e,t)}));class ps{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(function gs(n){const e=n.getComponent();return"VERSION"===(null==e?void 0:e.type)}(t)){const r=t.getImmediate();return`${r.library}/${r.version}`}return null}).filter(t=>t).join(" ")}}const Ce="@firebase/app",it="0.10.13",N=new Ur("@firebase/app"),Re="[DEFAULT]",js={[Ce]:"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/data-connect":"fire-data-connect","@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","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},$=new Map,oe=new Map,se=new Map;function jr(n,e){try{n.container.addComponent(e)}
1catch(t){N.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`,t)}}function ae(n){const e=n.name;if(se.has(e))return N.debug(`There were multiple attempts to register component ${e}.`),!1;se.set(e,n);for(const t of $.values())jr(t,n);for(const t of oe.values())jr(t,n);return!0}function ot(n,e){const t=n.container.getProvider("heartbeat").getImmediate({optional:!0});return t&&t.triggerHeartbeat(),n.container.getProvider(e)}function x(n){return void 0!==n.settings}const C=new re("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","server-app-deleted":"Firebase Server App has been 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.","invali
1d-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}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Hr{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Y("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}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(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw C.create("app-deleted",{appName:this._name})}}const ce="10.14.1";function $r(n,e={}){let t=n;"object"!=typeof e&&(e={name:e});const r=Object.assign({name:Re,automaticDataCollectionEnabled:!1},e),i=r.name;if("string"!=typeof i||!i)throw C.create("bad-app-name",{appName:String(i)});if(t||(t=Or()),!t)throw C.create("no-options");const o=$.get(i);if(o){if(Se(t,o.options)&&Se(r,o.config))return o;throw C.create("duplicate-app",{appName:i})}const s=new Zo(i);for(const u of se.values())s.addComponent(u);const a=new Hr(t,r,s);return $.set(i,a),a}function z(n,e,t){var r;let i=null!==(r=js[n])&&void 0!==r?r:n;t&&(i+=`-${t}`);const o=i.match(/\s|\//),s=e.match(/\s|\//);if(o||s){const a=[`Unable to register library "${i}" with version "${e}":`];return o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),void N.warn(a.join(" "))}ae(new Y(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}const Js="firebase-heartbeat-database",Ys=1,ue="firebase-heartbeat-store";let at=null;function zr(){return at||(at=function ds(n,e,{blocked:t,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(n,e),a=W(s);return r&&s.addEventListener("upgradeneeded",u=>{r(W(s.result),u.oldVersion,u.newVersion,W(s.transaction),u)}),t&&s.addEventListener("blocked",u=>t(u.oldVersion,u.newVersion,u)),a.then(u=>{o&&u.addEventListener("close",()=>o()),i&&u.addEventListener("versionchange",d=>i(d.oldVersion,d.newVersion,d))}).catch(()=>{}),a}(Js,Ys,{upgrade:(n,e)=>{if(0===e)try{n.createObjectStore(ue)}catch(t){console.warn(t)}}}).catch(n=>{throw C.create("idb-open",{originalErrorMessage:n.message})})),at}function ct(){return(ct=(0,l.A)(function*(n){try{const t=(yield zr()).transaction(ue),r=yield t.objectStore(ue).get(Kr(n));return yield t.done,r}catch(e){if(e instanceof B)N.warn(e.message);else{const t=C.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});N.warn(t.message)}}})).apply(this,arguments)}function qr(n,e){return ut.apply(this,arguments)}function ut(){return(ut=(0,l.A)(function*(n,e){try{const r=(yield zr()).transaction(ue,"readwrite");yield r.objectStore(ue).put(e,Kr(n)),yield r.done}catch(t){if(t instanceof B)N.warn(t.message);else{const r=C.create("idb-set",{originalErrorMessage:null==t?void 0:t.message});N.warn(r.message)}}})).apply(this,arguments)}function Kr(n){return`${n.name}!${n.options.appId}`}class ea{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new na(t),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}triggerHeartbeat(){var e=this;return(0,l.A)(function*(){var t,r;try{const o=e.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=Jr();return null==(null===(t=e._heartbeatsCache)||void 0===t?void 0:t.heartbeats)&&(e._heartbeatsCache=yield e._heartbeatsCachePromise,null==(null===(r=e._heartbeatsCache)||void 0===r?void 0:r.heartbeats))||e._heartbeatsCache.lastSentHeartbeatDate===s||e._heartbeatsCache.heartbeats.some(a=>a.date===s)?void 0:(e._heartbeatsCache.heartbeats.push({date:s,agent:o}),e._heartbeatsCache.heartbeats=e._heartbeatsCache.heartbeats.filter(a=>{const u=new Date(a.date).valueOf();return Date.now()-u<=2592e6}),e._storage.overwrite(e._heartbeatsCache))}catch(i){N.warn(i)}})()}getHeartbeatsHeader(){var e=this;return(0,l.A)(function*(){var t;try{if(null===e._heartbeatsCache&&(yield e._heartbeatsCachePromise),null==(null===(t=e._heartbeatsCache)||void 0===t?void 0:t.heartbeats)||0===e._heartbeatsCache.heartbeats.length)return"";const r=Jr(),{heartbeatsToSend:i,unsentEntries:o}=function ta(n,e=1024){const t=[];let r=n.slice();for(const i of n){const o=t.find(s=>
1s.agent===i.agent);if(o){if(o.dates.push(i.date),Yr(t)>e){o.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),Yr(t)>e){t.pop();break}r=r.slice(1)}return{heartbeatsToSend:t,unsentEntries:r}}(e._heartbeatsCache.heartbeats),s=Ae(JSON.stringify({version:2,heartbeats:i}));return e._heartbeatsCache.lastSentHeartbeatDate=r,o.length>0?(e._heartbeatsCache.heartbeats=o,yield e._storage.overwrite(e._heartbeatsCache)):(e._heartbeatsCache.heartbeats=[],e._storage.overwrite(e._heartbeatsCache)),s}catch(r){return N.warn(r),""}})()}}function Jr(){return(new Date).toISOString().substring(0,10)}class na{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,l.A)(function*(){return!!function Lo(){try{return"object"==typeof indexedDB}catch{return!1}}()&&function Uo(){return new Promise((n,e)=>{try{let t=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),t||self.indexedDB.deleteDatabase(r),n(!0)},i.onupgradeneeded=()=>{t=!1},i.onerror=()=>{var o;e((null===(o=i.error)||void 0===o?void 0:o.message)||"")}}catch(t){e(t)}})}().then(()=>!0).catch(()=>!1)})()}read(){var e=this;return(0,l.A)(function*(){if(yield e._canUseIndexedDBPromise){const r=yield function Xs(n){return ct.apply(this,arguments)}(e.app);return null!=r&&r.heartbeats?r:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(e){var t=this;return(0,l.A)(function*(){var r;if(yield t._canUseIndexedDBPromise){const o=yield t.read();return qr(t.app,{lastSentHeartbeatDate:null!==(r=e.lastSentHeartbeatDate)&&void 0!==r?r:o.lastSentHeartbeatDate,heartbeats:e.heartbeats})}})()}add(e){var t=this;return(0,l.A)(function*(){var r;if(yield t._canUseIndexedDBPromise){const o=yield t.read();return qr(t.app,{lastSentHeartbeatDate:null!==(r=e.lastSentHeartbeatDate)&&void 0!==r?r:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...e.heartbeats]})}})()}}function Yr(n){return Ae(JSON.stringify({version:2,heartbeats:n})).length}!function ra(n){ae(new Y("platform-logger",e=>new ps(e),"PRIVATE")),ae(new Y("heartbeat",e=>new ea(e),"PRIVATE")),z(Ce,it,n),z(Ce,it,"esm2017"),z("fire-js","")}("");var lt=k(31635);const ia=function Xr(){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."}},Qr=new re("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."}),Oe=new Ur("@firebase/auth");function Ne(n,...e){Oe.logLevel<=m.ERROR&&Oe.error(`Auth (${ce}): ${n}`,...e)}function S(n,...e){throw ht(n,...e)}function w(n,...e){return ht(n,...e)}function dt(n,e,t){const r=Object.assign(Object.assign({},ia()),{[e]:t});return new re("auth","Firebase",r).create(e,{appName:n.name})}function A(n){return dt(n,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function ht(n,...e){if("string"!=typeof n){const t=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=n.name),n._errorFactory.create(t,...r)}return Qr.create(n,...e)}function f(n,e,...t){if(!n)throw ht(e,...t)}function O(n){const e="INTERNAL ASSERTION FAILED: "+n;throw Ne(e),new Error(e)}function D(n,e){n||O(e)}function le(){var n;return typeof self<"u"&&(null===(n=self.location)||void 0===n?void 0:n.href)||""}function Zr(){var n;return typeof self<"u"&&(null===(n=self.location)||void 0===n?void 0:n.protocol)||null}function sa(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function ft(){return"http:"===Zr()||"https:"===Zr()}()||function xo(){const n="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof n&&void 0!==n.id}()||"connection"in navigator))||navigator.onLine}class de{constructor(e,t){this.shortDelay=e,this.longDelay=t,D(t>
1e,"Short delay should be less than long delay!"),this.isMobile=function Co(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(P())}()||function Do(){return"object"==typeof navigator&&"ReactNative"===navigator.product}()}get(){return sa()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function pt(n,e){D(n.emulator,"Emulator should always be set here");const{url:t}=n.emulator;return e?`${t}${e.startsWith("/")?e.slice(1):e}`:t}class ei{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void O("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void O("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void O("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const ca={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",INVALID_LOGIN_CREDENTIALS:"invalid-credential",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",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",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"},ua=new de(3e4,6e4);function _(n,e){return n.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:n.tenantId}):e}function v(n,e,t,r){return gt.apply(this,arguments)}function gt(){return(gt=(0,l.A)(function*(n,e,t,r,i={}){return ti(n,i,(0,l.A)(function*(){let o={},s={};r&&("GET"===e?s=r:o={body:JSON.stringify(r)});const a=ie(Object.assign({key:n.config.apiKey},s)).slice(1),u=yield n._getAdditionalHeaders();u["Content-Type"]="application/json",n.languageCode&&(u["X-Firebase-Locale"]=n.languageCode);const d=Object.assign({method:e,headers:u},o);return function No(){return typeof navigator<"u"&&"Cloudflare-Workers"===navigator.userAgent}()||(d.referrerPolicy="no-referrer"),ei.fetch()(ni(n,n.config.apiHost,t,a),d)}))})).apply(this,arguments)}function ti(n,e,t){return mt.apply(this,arguments)}function mt(){return(mt=(0,l.A)(function*(n,e,t){n._canInitEmulator=!1;const r=Object.assign(Object.assign({},ca),e);try{const i=new da(n),o=yield Promise.race([t(),i.promise]);i.clearNetworkTimeout();const s=yield o.json();if("needConfirmation"in s)throw he(n,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{const a=o.ok?s.errorMessage:s.error.message,[u,d]=a.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===u)throw he(n,"credential-already-in-use",s);if("EMAIL_EXISTS"===u)throw he(n,"email-already-in-use",s);if("USER_DISABLED"===u)throw he(n,"user-disabled",s);const h=r[u]||u.toLowerCase().replace(/[_\s]+/g,"-");if(d)throw dt(n,h,d);S(n,h)}}catch(i){if(i instanceof B)throw i;S(n,"network-request-failed",{message:String(i)})}})).apply(this,arguments)}function _t(){return(_t=(0,l.A)(function*(n,e,t,r,i={}){const o=yield v(n,e,t,r,i);return"mfaPendingCredential"in o&&S(n,"multi-factor-auth-required",{_serverResponse:o}),o})).apply(this,arguments)}function ni(n,e,t,r){const i=`${e}${t}?${r}`;return n.config.emulator?pt(n.config,i):`${n.config.apiScheme}://${i}`}class da{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((t,r)=>{this.timer=setTimeout(()=>r(w(this.auth,"network-request-failed")),ua.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function he(n,e,t){const r={appName:n.name};t.email&&(r.email=t.email),t.phoneNumber&&(r.phoneNumber=t.phoneNumber);const i=w(n,e,r);return i.customData._tokenResponse=t,i}function It(){return(It=(0,l.A)(function*(n,e){return v(n,"POST","/v1/accounts:delete",e)}
1)).apply(this,arguments)}function ai(n,e){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,l.A)(function*(n,e){return v(n,"POST","/v1/accounts:lookup",e)})).apply(this,arguments)}function fe(n){if(n)try{const e=new Date(Number(n));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}function Et(){return(Et=(0,l.A)(function*(n,e=!1){const t=J(n),r=yield t.getIdToken(e),i=xe(r);f(i&&i.exp&&i.auth_time&&i.iat,t.auth,"internal-error");const o="object"==typeof i.firebase?i.firebase:void 0,s=null==o?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:fe(At(i.auth_time)),issuedAtTime:fe(At(i.iat)),expirationTime:fe(At(i.exp)),signInProvider:s||null,signInSecondFactor:(null==o?void 0:o.sign_in_second_factor)||null}})).apply(this,arguments)}function At(n){return 1e3*Number(n)}function xe(n){const[e,t,r]=n.split(".");if(void 0===e||void 0===t||void 0===r)return Ne("JWT malformed, contained fewer than 3 sections"),null;try{const i=Pe(t);return i?JSON.parse(i):(Ne("Failed to decode base64 JWT payload"),null)}catch(i){return Ne("Caught error parsing JWT payload as JSON",null==i?void 0:i.toString()),null}}function ci(n){const e=xe(n);return f(e,"internal-error"),f(typeof e.exp<"u","internal-error"),f(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}function L(n,e){return Pt.apply(this,arguments)}function Pt(){return(Pt=(0,l.A)(function*(n,e,t=!1){if(t)return e;try{return yield e}catch(r){throw r instanceof B&&function ma({code:n}){return"auth/user-disabled"===n||"auth/user-token-expired"===n}(r)&&n.auth.currentUser===n&&(yield n.auth.signOut()),r}})).apply(this,arguments)}class _a{constructor(e){this.user=e,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(e){var t;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),r}{this.errorBackoff=3e4;const i=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(e=!1){var t=this;if(!this.isRunning)return;const r=this.getInterval(e);this.timerId=setTimeout((0,l.A)(function*(){yield t.iteration()}),r)}iteration(){var e=this;return(0,l.A)(function*(){try{yield e.user.getIdToken(!0)}catch(t){return void("auth/network-request-failed"===(null==t?void 0:t.code)&&e.schedule(!0))}e.schedule()})()}}class kt{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=fe(this.lastLoginAt),this.creationTime=fe(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function pe(n){return wt.apply(this,arguments)}function wt(){return(wt=(0,l.A)(function*(n){var e;const t=n.auth,r=yield n.getIdToken(),i=yield L(n,ai(t,{idToken:r}));f(null==i?void 0:i.users.length,t,"internal-error");const o=i.users[0];n._notifyReloadListener(o);const s=null!==(e=o.providerUserInfo)&&void 0!==e&&e.length?ui(o.providerUserInfo):[],a=function ya(n,e){return[...n.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}(n.providerData,s),h=!!n.isAnonymous&&!(n.email&&o.passwordHash||null!=a&&a.length),p={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new kt(o.createdAt,o.lastLoginAt),isAnonymous:h};Object.assign(n,p)})).apply(this,arguments)}function St(){return(St=(0,l.A)(function*(n){const e=J(n);yield pe(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)})).apply(this,arguments)}function ui(n){return n.map(e=>{var{providerId:t}=e,r=(0,lt.Tt)(e,["providerId"]);return{providerId:t,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}function Ct(){return(Ct=(0,l.A)(function*(n,e){const t=yield ti(n,{},(0,l.A)(function*(){const r=ie({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:o}=n.config,s=ni(n,i,"/v1/token",`key=${o}`),a=yield n._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",ei.fetch()(s,{method:"POST",headers:a,body:r})}));return{accessToken:t.access_token,expiresIn:t.expires_in,refreshToken:t.refresh_token}})).apply(this,arguments)}function Rt(){return(Rt=(0,l.A)(function*(n,e){return v(n,"POST","/v2/accounts:revokeToken",_(n,e))})).apply(this,arguments)}class Q{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){f(e.idToken,"internal-error"),f(typeof e.idToken<"u","internal-error"),f(typeof e.refreshToken<"u","internal-error");
1const t="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):ci(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){f(0!==e.length,"internal-error");const t=ci(e);this.updateTokensAndExpiration(e,null,t)}getToken(e,t=!1){var r=this;return(0,l.A)(function*(){return t||!r.accessToken||r.isExpired?(f(r.refreshToken,e,"user-token-expired"),r.refreshToken?(yield r.refresh(e,r.refreshToken),r.accessToken):null):r.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(e,t){var r=this;return(0,l.A)(function*(){const{accessToken:i,refreshToken:o,expiresIn:s}=yield function Ia(n,e){return Ct.apply(this,arguments)}(e,t);r.updateTokensAndExpiration(i,o,Number(s))})()}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,t){const{refreshToken:r,accessToken:i,expirationTime:o}=t,s=new Q;return r&&(f("string"==typeof r,"internal-error",{appName:e}),s.refreshToken=r),i&&(f("string"==typeof i,"internal-error",{appName:e}),s.accessToken=i),o&&(f("number"==typeof o,"internal-error",{appName:e}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Q,this.toJSON())}_performRefresh(){return O("not implemented")}}function j(n,e){f("string"==typeof n||typeof n>"u","internal-error",{appName:e})}class U{constructor(e){var{uid:t,auth:r,stsTokenManager:i}=e,o=(0,lt.Tt)(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new _a(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new kt(o.createdAt||void 0,o.lastLoginAt||void 0)}getIdToken(e){var t=this;return(0,l.A)(function*(){const r=yield L(t,t.stsTokenManager.getToken(t.auth,e));return f(r,t.auth,"internal-error"),t.accessToken!==r&&(t.accessToken=r,yield t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)),r})()}getIdTokenResult(e){return function ga(n){return Et.apply(this,arguments)}(this,e)}reload(){return function va(n){return St.apply(this,arguments)}(this)}_assign(e){this!==e&&(f(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(t=>Object.assign({},t)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new U(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){f(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(e,t=!1){var r=this;return(0,l.A)(function*(){let i=!1;e.idToken&&e.idToken!==r.stsTokenManager.accessToken&&(r.stsTokenManager.updateFromServerResponse(e),i=!0),t&&(yield pe(r)),yield r.auth._persistUserIfCurrent(r),i&&r.auth._notifyListenersIfCurrent(r)})()}delete(){var e=this;return(0,l.A)(function*(){if(x(e.auth.app))return Promise.reject(A(e.auth));const t=yield e.getIdToken();return yield L(e,function fa(n,e){return It.apply(this,arguments)}(e.auth,{idToken:t})),e.stsTokenManager.clearRefreshToken(),e.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
1nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),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(e,t){var r,i,o,s,a,u,d,h;const p=null!==(r=t.displayName)&&void 0!==r?r:void 0,g=null!==(i=t.email)&&void 0!==i?i:void 0,y=null!==(o=t.phoneNumber)&&void 0!==o?o:void 0,ne=null!==(s=t.photoURL)&&void 0!==s?s:void 0,lo=null!==(a=t.tenantId)&&void 0!==a?a:void 0,Tr=null!==(u=t._redirectEventId)&&void 0!==u?u:void 0,ho=null!==(d=t.createdAt)&&void 0!==d?d:void 0,fo=null!==(h=t.lastLoginAt)&&void 0!==h?h:void 0,{uid:Er,emailVerified:po,isAnonymous:go,providerData:Ar,stsTokenManager:mo}=t;f(Er&&mo,e,"internal-error");const pl=Q.fromJSON(this.name,mo);f("string"==typeof Er,e,"internal-error"),j(p,e.name),j(g,e.name),f("boolean"==typeof po,e,"internal-error"),f("boolean"==typeof go,e,"internal-error"),j(y,e.name),j(ne,e.name),j(lo,e.name),j(Tr,e.name),j(ho,e.name),j(fo,e.name);const Pr=new U({uid:Er,auth:e,email:g,emailVerified:po,displayName:p,isAnonymous:go,photoURL:ne,phoneNumber:y,tenantId:lo,stsTokenManager:pl,createdAt:ho,lastLoginAt:fo});return Ar&&Array.isArray(Ar)&&(Pr.providerData=Ar.map(gl=>Object.assign({},gl))),Tr&&(Pr._redirectEventId=Tr),Pr}static _fromIdTokenResponse(e,t,r=!1){return(0,l.A)(function*(){const i=new Q;i.updateFromServerResponse(t);const o=new U({uid:t.localId,auth:e,stsTokenManager:i,isAnonymous:r});return yield pe(o),o})()}static _fromGetAccountInfoResponse(e,t,r){return(0,l.A)(function*(){const i=t.users[0];f(void 0!==i.localId,"internal-error");const o=void 0!==i.providerUserInfo?ui(i.providerUserInfo):[],s=!(i.email&&i.passwordHash||null!=o&&o.length),a=new Q;a.updateFromIdToken(r);const u=new U({uid:i.localId,auth:e,stsTokenManager:a,isAnonymous:s}),d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new kt(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash||null!=o&&o.length)};return Object.assign(u,d),u})()}}const li=new Map;function F(n){D(n instanceof Function,"Expected a class definition");let e=li.get(n);return e?(D(e instanceof n,"Instance stored in cache mismatched with class"),e):(e=new n,li.set(n,e),e)}const di=(()=>{class n{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,l.A)(function*(){return!0})()}_set(t,r){var i=this;return(0,l.A)(function*(){i.storage[t]=r})()}_get(t){var r=this;return(0,l.A)(function*(){const i=r.storage[t];return void 0===i?null:i})()}_remove(t){var r=this;return(0,l.A)(function*(){delete r.storage[t]})()}_addListener(t,r){}_removeListener(t,r){}}return n.type="NONE",n})();function De(n,e,t){return`firebase:${n}:${e}:${t}`}class Z{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;const{config:i,name:o}=this.auth;this.fullUserKey=De(this.userKey,i.apiKey,o),this.fullPersistenceKey=De("persistence",i.apiKey,o),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}getCurrentUser(){var e=this;return(0,l.A)(function*(){const t=yield e.persistence._get(e.fullUserKey);return t?U._fromJSON(e.auth,t):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(e){var t=this;return(0,l.A)(function*(){if(t.persistence===e)return;const r=yield t.getCurrentUser();return yield t.removeCurrentUser(),t.persistence=e,r?t.setCurrentUser(r):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(e,t,r="authUser"){return(0,l.A)(function*(){if(!t.length)return new Z(F(di),e,r);const i=(yield Promise.all(t.map(function(){var d=(0,l.A)(function*(h){if(yield h._isAvailable())return h});return function(h){return d.apply(this,arguments)}}()))).filter(d=>d);let o=i[0]||F(di);const s=De(r,e.config.apiKey,e.name);let a=null;for(const d of t)try{const h=yield d._get(s);if(h){const p=U._fromJSON(e,h);d!==o&&(a=p),o=d;break}}catch{}const u=i.filter(d=>d._shouldAllowMigration);return o._shouldAllowMigration&&u.length?(o=u[0],a&&(yield o._set(s,a.toJSON())),yield Promise.all(t.map(function(){var d=(0,l.A)(function*(h){if(h!==o)try{yield h._remove(s)}catch{}});return function(h){return d.apply(this,arguments)}}())),new Z(o,e,r)):new Z(o,e,r)})()}}function hi(n){const e=n.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(mi(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(fi(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(vi(e))return"Blackberry";if(yi(e))return"Webos";if(pi(e))return"Safari";if((e.includes("chrome/")||gi(e))&&!e.includes("edge/"))return"Chrome";if(_i(e))return"Android";{const r=n.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==r?void 0:r.length))return r[1]}return"Other"}function fi(n=P()){return/firefox\//i.test(n)}function pi(n=P()){const e=n.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function gi(n=P()){return/crios\//i.test(n)}function mi(n=P()){return/iemobile/i.test(n)}function _i(n=P()){return/android/i.test(n)}function vi(n=P()){return/blackberry/i.test(n)}
1function yi(n=P()){return/webos/i.test(n)}function Ot(n=P()){return/iphone|ipad|ipod/i.test(n)||/macintosh/i.test(n)&&/mobile/i.test(n)}function Ii(n=P()){return Ot(n)||_i(n)||yi(n)||vi(n)||/windows phone/i.test(n)||mi(n)}function bi(n,e=[]){let t;switch(n){case"Browser":t=hi(P());break;case"Worker":t=`${hi(P())}-${n}`;break;default:t=n}const r=e.length?e.join(","):"FirebaseCore-web";return`${t}/JsCore/${ce}/${r}`}class Aa{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const r=o=>new Promise((s,a)=>{try{s(e(o))}catch(u){a(u)}});r.onAbort=t,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}runMiddleware(e){var t=this;return(0,l.A)(function*(){if(t.auth.currentUser===e)return;const r=[];try{for(const i of t.queue)yield i(e),i.onAbort&&r.push(i.onAbort)}catch(i){r.reverse();for(const o of r)try{o()}catch{}throw t.auth._errorFactory.create("login-blocked",{originalMessage:null==i?void 0:i.message})}})()}}function Nt(){return(Nt=(0,l.A)(function*(n,e={}){return v(n,"GET","/v2/passwordPolicy",_(n,e))})).apply(this,arguments)}class wa{constructor(e){var t,r,i,o;const s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=s.minPasswordLength)&&void 0!==t?t:6,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),void 0!==s.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),void 0!==s.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),void 0!==s.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),void 0!==s.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(i=null===(r=e.allowedNonAlphanumericCharacters)||void 0===r?void 0:r.join(""))&&void 0!==i?i:"",this.forceUpgradeOnSignin=null!==(o=e.forceUpgradeOnSignin)&&void 0!==o&&o,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,r,i,o,s,a;const u={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,u),this.validatePasswordCharacterOptions(e,u),u.isValid&&(u.isValid=null===(t=u.meetsMinPasswordLength)||void 0===t||t),u.isValid&&(u.isValid=null===(r=u.meetsMaxPasswordLength)||void 0===r||r),u.isValid&&(u.isValid=null===(i=u.containsLowercaseLetter)||void 0===i||i),u.isValid&&(u.isValid=null===(o=u.containsUppercaseLetter)||void 0===o||o),u.isValid&&(u.isValid=null===(s=u.containsNumericCharacter)||void 0===s||s),u.isValid&&(u.isValid=null===(a=u.containsNonAlphanumericCharacter)||void 0===a||a),u}validatePasswordLengthOptions(e,t){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(t.meetsMinPasswordLength=e.length>=r),i&&(t.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,t){let r;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let i=0;i<e.length;i++)r=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(t,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,t,r,i,o){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=o))}}
1class Sa{constructor(e,t,r,i){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Ti(this),this.idTokenSubscription=new Ti(this),this.beforeStateQueue=new Aa(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Qr,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion}_initializeWithPersistence(e,t){var r=this;return t&&(this._popupRedirectResolver=F(t)),this._initializationPromise=this.queue((0,l.A)(function*(){var i,o;if(!r._deleted&&(r.persistenceManager=yield Z.create(r,e),!r._deleted)){if(null!==(i=r._popupRedirectResolver)&&void 0!==i&&i._shouldInitProactively)try{yield r._popupRedirectResolver._initialize(r)}catch{}yield r.initializeCurrentUser(t),r.lastNotifiedUid=(null===(o=r.currentUser)||void 0===o?void 0:o.uid)||null,!r._deleted&&(r._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var e=this;return(0,l.A)(function*(){if(e._deleted)return;const t=yield e.assertedPersistence.getCurrentUser();if(e.currentUser||t){if(e.currentUser&&t&&e.currentUser.uid===t.uid)return e._currentUser._assign(t),void(yield e.currentUser.getIdToken());yield e._updateCurrentUser(t,!0)}})()}initializeCurrentUserFromIdToken(e){var t=this;return(0,l.A)(function*(){try{const r=yield ai(t,{idToken:e}),i=yield U._fromGetAccountInfoResponse(t,r,e);yield t.directlySetCurrentUser(i)}catch(r){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",r),yield t.directlySetCurrentUser(null)}})()}initializeCurrentUser(e){var t=this;return(0,l.A)(function*(){var r;if(x(t.app)){const a=t.app.settings.authIdToken;return a?new Promise(u=>{setTimeout(()=>t.initializeCurrentUserFromIdToken(a).then(u,u))}):t.directlySetCurrentUser(null)}const i=yield t.assertedPersistence.getCurrentUser();let o=i,s=!1;if(e&&t.config.authDomain){yield t.getOrInitRedirectPersistenceManager();const a=null===(r=t.redirectUser)||void 0===r?void 0:r._redirectEventId,u=null==o?void 0:o._redirectEventId,d=yield t.tryRedirectSignIn(e);(!a||a===u)&&null!=d&&d.user&&(o=d.user,s=!0)}if(!o)return t.directlySetCurrentUser(null);if(!o._redirectEventId){if(s)try{yield t.beforeStateQueue.runMiddleware(o)}catch(a){o=i,t._popupRedirectResolver._overrideRedirectResult(t,()=>Promise.reject(a))}return o?t.reloadAndSetCurrentUserOrClear(o):t.directlySetCurrentUser(null)}return f(t._popupRedirectResolver,t,"argument-error"),yield t.getOrInitRedirectPersistenceManager(),t.redirectUser&&t.redirectUser._redirectEventId===o._redirectEventId?t.directlySetCurrentUser(o):t.reloadAndSetCurrentUserOrClear(o)})()}tryRedirectSignIn(e){var t=this;return(0,l.A)(function*(){let r=null;try{r=yield t._popupRedirectResolver._completeRedirectFn(t,e,!0)}catch{yield t._setRedirectUser(null)}return r})()}reloadAndSetCurrentUserOrClear(e){var t=this;return(0,l.A)(function*(){try{yield pe(e)}catch(r){if("auth/network-request-failed"!==(null==r?void 0:r.code))return t.directlySetCurrentUser(null)}return t.directlySetCurrentUser(e)})()}useDeviceLanguage(){this.languageCode=function aa(){if(typeof navigator>"u")return null;const n=navigator;return n.languages&&n.languages[0]||n.language||null}()}_delete(){var e=this;return(0,l.A)(function*(){e._deleted=!0})()}updateCurrentUser(e){var t=this;return(0,l.A)(function*(){if(x(t.app))return Promise.reject(A(t));const r=e?J(e):null;return r&&f(r.auth.config.apiKey===t.config.apiKey,t,"invalid-user-token"),t._updateCurrentUser(r&&r._clone(t))})()}_updateCurrentUser(e,t=!1){var r=this;return(0,l.A)(function*(){if(!r._deleted)return e&&f(r.tenantId===e.tenantId,r,"tenant-id-mismatch"),t||(yield r.beforeStateQueue.runMiddleware(e)),r.queue((0,l.A)(function*(){yield r.directlySetCurrentUser(e),r.notifyAuthListeners()}))})()}signOut(){var e=this;return(0,l.A)(function*(){return x(e.app)?Promise.reject(A(e)):(yield e.beforeStateQueue.runMiddleware(null),(e.redirectPersistenceManager||e._popupRedirectResolver)&&(yield e._setRedirectUser(null)),e._updateCurrentUser(null,!0))})()}setPersistence(e){var t=this;return x(this.app)?Promise.reject(A(this)):this.queue((0,l.A)(function*(){yield t.assertedPersistence.setPersistence(F(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(e){var t=this;return(0,l.A)(function*(){t._getPasswordPolicyInternal()||(yield t._updatePasswordPolicy());const r=t._getPasswordPolicyInternal();return r.schemaVersion!==t.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(t._errorFactory.create("unsupported-password-policy-schema-version",{})):r.validatePassword(e)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var e=this;return(0,l.A)(function*(){const t=yield function Pa(n){return Nt.apply(this,arguments)}(e),r=new wa(t);null===e.tenantId?e._projectPasswordPolicy=r:e._tenantPasswordPolicies[e.tenantId]=r})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new re("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>
1{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},t)}})}revokeAccessToken(e){var t=this;return(0,l.A)(function*(){if(t.currentUser){const r=yield t.currentUser.getIdToken(),i={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:r};null!=t.tenantId&&(i.tenantId=t.tenantId),yield function ba(n,e){return Rt.apply(this,arguments)}(t,i)}})()}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}_setRedirectUser(e,t){var r=this;return(0,l.A)(function*(){const i=yield r.getOrInitRedirectPersistenceManager(t);return null===e?i.removeCurrentUser():i.setCurrentUser(e)})()}getOrInitRedirectPersistenceManager(e){var t=this;return(0,l.A)(function*(){if(!t.redirectPersistenceManager){const r=e&&F(e)||t._popupRedirectResolver;f(r,t,"argument-error"),t.redirectPersistenceManager=yield Z.create(t,[F(r._redirectPersistence)],"redirectUser"),t.redirectUser=yield t.redirectPersistenceManager.getCurrentUser()}return t.redirectPersistenceManager})()}_redirectUserForId(e){var t=this;return(0,l.A)(function*(){var r,i;return t._isInitialized&&(yield t.queue((0,l.A)(function*(){}))),(null===(r=t._currentUser)||void 0===r?void 0:r._redirectEventId)===e?t._currentUser:(null===(i=t.redirectUser)||void 0===i?void 0:i._redirectEventId)===e?t.redirectUser:null})()}_persistUserIfCurrent(e){var t=this;return(0,l.A)(function*(){if(e===t.currentUser)return t.queue((0,l.A)(function*(){return t.directlySetCurrentUser(e)}))})()}_notifyListenersIfCurrent(e){e===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 e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,i){if(this._deleted)return()=>{};const o="function"==typeof t?t:t.next.bind(t);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(f(a,this,"internal-error"),a.then(()=>{s||o(this.currentUser)}),"function"==typeof t){const u=e.addObserver(t,r,i);return()=>{s=!0,u()}}{const u=e.addObserver(t);return()=>{s=!0,u()}}}directlySetCurrentUser(e){var t=this;return(0,l.A)(function*(){t.currentUser&&t.currentUser!==e&&t._currentUser._stopProactiveRefresh(),e&&t.isProactiveRefreshEnabled&&e._startProactiveRefresh(),t.currentUser=e,e?yield t.assertedPersistence.setCurrentUser(e):yield t.assertedPersistence.removeCurrentUser()})()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return f(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=bi(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var e=this;return(0,l.A)(function*(){var t;const r={"X-Client-Version":e.clientVersion};e.app.options.appId&&(r["X-Firebase-gmpid"]=e.app.options.appId);const i=yield null===(t=e.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader();i&&(r["X-Firebase-Client"]=i);const o=yield e._getAppCheckToken();return o&&(r["X-Firebase-AppCheck"]=o),r})()}_getAppCheckToken(){var e=this;return(0,l.A)(function*(){var t;const r=yield null===(t=e.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getToken();return null!=r&&r.error&&function oa(n,...e){Oe.logLevel<=m.WARN&&Oe.warn(`Auth (${ce}): ${n}`,...e)}(`Error while retrieving App Check token: ${r.error}`),null==r?void 0:r.token})()}}function I(n){return J(n)}class Ti{constructor(e){this.auth=e,this.observer=null,this.addObserver=function Wo(n,e){const t=new jo(n,e);return t.subscribe.bind(t)}(t=>this.observer=t)}get next(){return f(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let ge={loadJS:()=>(0,l.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Ei(n){return`__${n}${Math.floor(1e6*Math.random())}`}function ki(n){const e=n.indexOf(":");return e<0?"":n.substr(0,e+1)}function wi(n){if(!n)return null;const e=Number(n);return isNaN(e)?null:e}class _e{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return O("not implemented")}_getIdTokenResponse(e){return O("not implemented")}_linkToIdToken(e,t){return O("not implemented")}_getReauthenticationResolver(e){return O("not implemented")}}function V(n,e){return Yt.apply(this,arguments)}function Yt(){return(Yt=(0,l.A)(function*(n,e){return function M(n,e,t,r){return _t.apply(this,arguments)}(n,"POST","/v1/accounts:signInWithIdp",_(n,e))})).apply(this,arguments)}
1class ee extends _e{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new ee(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):S("argument-error"),t}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(e){const t="string"==typeof e?JSON.parse(e):e,{providerId:r,signInMethod:i}=t,o=(0,lt.Tt)(t,["providerId","signInMethod"]);if(!r||!i)return null;const s=new ee(r,i);return s.idToken=o.idToken||void 0,s.accessToken=o.accessToken||void 0,s.secret=o.secret,s.nonce=o.nonce,s.pendingToken=o.pendingToken||null,s}_getIdTokenResponse(e){return V(e,this.buildRequest())}_linkToIdToken(e,t){const r=this.buildRequest();return r.idToken=t,V(e,r)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,V(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=ie(t)}return e}}class G{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class Ri extends G{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}let oc=(()=>{class n extends Ri{constructor(){super("google.com"),this.addScope("profile")}static credential(t,r){return ee._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:r})}static credentialFromResult(t){return n.credentialFromTaggedObject(t)}static credentialFromError(t){return n.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:r,oauthAccessToken:i}=t;if(!r&&!i)return null;try{return n.credential(r,i)}catch{return null}}}return n.GOOGLE_SIGN_IN_METHOD="google.com",n.PROVIDER_ID="google.com",n})();class R{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static _fromIdTokenResponse(e,t,r,i=!1){return(0,l.A)(function*(){const o=yield U._fromIdTokenResponse(e,r,i),s=Ni(r);return new R({user:o,providerId:s,_tokenResponse:r,operationType:t})})()}static _forOperation(e,t,r){return(0,l.A)(function*(){yield e._updateTokensIfNecessary(r,!0);const i=Ni(r);return new R({user:e,providerId:i,_tokenResponse:r,operationType:t})})()}}function Ni(n){return n.providerId?n.providerId:"phoneNumber"in n?"phone":null}
1class Fe extends B{constructor(e,t,r,i){var o;super(t.code,t.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,Fe.prototype),this.customData={appName:e.name,tenantId:null!==(o=e.tenantId)&&void 0!==o?o:void 0,_serverResponse:t.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,t,r,i){return new Fe(e,t,r,i)}}function xi(n,e,t,r){return("reauthenticate"===e?t._getReauthenticationResolver(n):t._getIdTokenResponse(n)).catch(o=>{throw"auth/multi-factor-auth-required"===o.code?Fe._fromErrorAndOperation(n,o,e,r):o})}function an(){return(an=(0,l.A)(function*(n,e,t=!1){const r=yield L(n,e._linkToIdToken(n.auth,yield n.getIdToken()),t);return R._forOperation(n,"link",r)})).apply(this,arguments)}function un(){return(un=(0,l.A)(function*(n,e,t=!1){const{auth:r}=n;if(x(r.app))return Promise.reject(A(r));const i="reauthenticate";try{const o=yield L(n,xi(r,i,e,n),t);f(o.idToken,r,"internal-error");const s=xe(o.idToken);f(s,r,"internal-error");const{sub:a}=s;return f(n.uid===a,r,"user-mismatch"),R._forOperation(n,i,o)}catch(o){throw"auth/user-not-found"===(null==o?void 0:o.code)&&S(r,"user-mismatch"),o}})).apply(this,arguments)}function ln(){return(ln=(0,l.A)(function*(n,e,t=!1){if(x(n.app))return Promise.reject(A(n));const r="signIn",i=yield xi(n,r,e),o=yield R._fromIdTokenResponse(n,r,i);return t||(yield n._updateCurrentUser(o.user)),o})).apply(this,arguments)}const Be="__sak";class Vi{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(Be,"1"),this.storage.removeItem(Be),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}const wc=(()=>{class n extends Vi{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,r)=>this.onStorageEvent(t,r),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=Ii(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const r of Object.keys(this.listeners)){const i=this.storage.getItem(r),o=this.localCache[r];i!==o&&t(r,o,i)}}onStorageEvent(t,r=!1){if(!t.key)return void this.forAllChangedKeys((a,u,d)=>{this.notifyListeners(a,d)});const i=t.key;r?this.detachListener():this.stopPolling();const o=()=>{const a=this.storage.getItem(i);!r&&this.localCache[i]===a||this.notifyListeners(i,a)},s=this.storage.getItem(i);!function Ea(){return function Mo(){const n=P();return n.indexOf("MSIE ")>=0||n.indexOf("Trident/")>=0}()&&10===document.documentMode}()||s===t.newValue||t.newValue===t.oldValue?o():setTimeout(o,10)}notifyListeners(t,r){this.localCache[t]=r;const i=this.listeners[t];if(i)for(const o of Array.from(i))o(r&&JSON.parse(r))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,r,i)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:r,newValue:i}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,r){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(r)}_removeListener(t,r){this.listeners[t]&&(this.listeners[t].delete(r),0===this.listeners[t].size&&delete this.listeners[t]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(t,r){var i=()=>super._set,o=this;return(0,l.A)(function*(){yield i().call(o,t,r),o.localCache[t]=JSON.stringify(r)})()}_get(t){var r=()=>super._get,i=this;return(0,l.A)(function*(){const o=yield r().call(i,t);return i.localCache[t]=JSON.stringify(o),o})()}_remove(t){var r=()=>super._remove,i=this;return(0,l.A)(function*(){yield r().call(i,t),delete i.localCache[t]})()}}return n.type="LOCAL",n})(),Gi=(()=>{class n extends Vi{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,r){}_removeListener(t,r){}}return n.type="SESSION",n})();let Cc=(()=>{class n{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const r=this.receivers.find(o=>o.isListeningto(t));if(r)return r;const i=new n(t);return this.receivers.push(i),i}isListeningto(t){return this.eventTarget===t}handleEvent(t){var r=this;return(0,l.A)(function*(){const i=t,{eventId:o,eventType:s,data:a}=i.data,u=r.handlersMap[s];if(null==u||!u.size)return;i.ports[0].postMessage({status:"ack",eventId:o,eventType:s});const d=Array.from(u).map(function(){var p=(0,l.A)(function*(g){return g(i.origin,a)});return function(g){return p.apply(this,arguments)}}()),h=yield function Sc(n){return Promise.all(n.map(function(){var e=(0,l.A)(function*(t){try{return{fulfilled:!0,value:yield t}}catch(r){return{fulfilled:!1,reason:r}}});return function(t){return e.apply(this,arguments)}}()))}(d);i.ports[0].postMessage({status:"done",eventId:o,eventType:s,response:h})})()}_subscribe(t,r){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(r)}_unsubscribe(t,r){this.handlersMap[t]&&r&&this.handlersMap[t].delete(r),(!r||0===this.handlersMap[t].size)&&delete this.handlersMap[t],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return n.receivers=[],n})();function We(n="",e=10){let t="";for(let r=0;r<e;r++)t+=Math.floor(10*Math.random());return n+t}class Rc{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}_send(e,t,r=50){var i=this;return(0,l.A)(function*(){const o=typeof MessageChannel<"u"?new MessageChannel:null;if(!o)throw new Error("connection_unavailable");let s,a;return new Promise((u,d)=>{const h=We("",20);o.port1.start();const p=setTimeout(()=>{d(new Error("unsupported_event"))},r);a={messageChannel:o,onMessage(g){const y=g;if(y.data.eventId===h)switch(y.data.status){case"ack":clearTimeout(p),s=setTimeout(()=>{d(new Error("timeout"))},3e3);break;case"done":clearTimeout(s),u(y.data.response);break;default:clearTimeout(p),clearTimeout(s),d(new Error("invalid_response"))}}},i.handlers.add(a),o.port1.addEventListener("message",a.onMessage),i.target.postMessage({eventType:e,eventId:h,data:t},[o.port2])}).finally(()=>{a&&i.removeMessageHandler(a)})})()}}function E(){return window}
1function Bn(){return typeof E().WorkerGlobalScope<"u"&&"function"==typeof E().importScripts}function Wn(){return(Wn=(0,l.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const Bi="firebaseLocalStorageDb",je="firebaseLocalStorage",Wi="fbase_key";class be{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function He(n,e){return n.transaction([je],e?"readwrite":"readonly").objectStore(je)}function jn(){const n=indexedDB.open(Bi,1);return new Promise((e,t)=>{n.addEventListener("error",()=>{t(n.error)}),n.addEventListener("upgradeneeded",()=>{const r=n.result;try{r.createObjectStore(je,{keyPath:Wi})}catch(i){t(i)}}),n.addEventListener("success",(0,l.A)(function*(){const r=n.result;r.objectStoreNames.contains(je)?e(r):(r.close(),yield function Lc(){const n=indexedDB.deleteDatabase(Bi);return new be(n).toPromise()}(),e(yield jn()))}))})}function ji(n,e,t){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,l.A)(function*(n,e,t){const r=He(n,!0).put({[Wi]:e,value:t});return new be(r).toPromise()})).apply(this,arguments)}function $n(){return($n=(0,l.A)(function*(n,e){const t=He(n,!1).get(e),r=yield new be(t).toPromise();return void 0===r?null:r.value})).apply(this,arguments)}function Hi(n,e){const t=He(n,!0).delete(e);return new be(t).toPromise()}const Gc=(()=>{class n{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 t=this;return(0,l.A)(function*(){return t.db||(t.db=yield jn()),t.db})()}_withRetries(t){var r=this;return(0,l.A)(function*(){let i=0;for(;;)try{const o=yield r._openDb();return yield t(o)}catch(o){if(i++>3)throw o;r.db&&(r.db.close(),r.db=void 0)}})()}initializeServiceWorkerMessaging(){var t=this;return(0,l.A)(function*(){return Bn()?t.initializeReceiver():t.initializeSender()})()}initializeReceiver(){var t=this;return(0,l.A)(function*(){t.receiver=Cc._getInstance(function Dc(){return Bn()?self:null}()),t.receiver._subscribe("keyChanged",function(){var r=(0,l.A)(function*(i,o){return{keyProcessed:(yield t._poll()).includes(o.key)}});return function(i,o){return r.apply(this,arguments)}}()),t.receiver._subscribe("ping",function(){var r=(0,l.A)(function*(i,o){return["keyChanged"]});return function(i,o){return r.apply(this,arguments)}}())})()}initializeSender(){var t=this;return(0,l.A)(function*(){var r,i;if(t.activeServiceWorker=yield function Nc(){return Wn.apply(this,arguments)}(),!t.activeServiceWorker)return;t.sender=new Rc(t.activeServiceWorker);const o=yield t.sender._send("ping",{},800);o&&null!==(r=o[0])&&void 0!==r&&r.fulfilled&&null!==(i=o[0])&&void 0!==i&&i.value.includes("keyChanged")&&(t.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(t){var r=this;return(0,l.A)(function*(){if(r.sender&&r.activeServiceWorker&&function xc(){var n;return(null===(n=null==navigator?void 0:navigator.serviceWorker)||void 0===n?void 0:n.controller)||null}()===r.activeServiceWorker)try{yield r.sender._send("keyChanged",{key:t},r.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,l.A)(function*(){try{if(!indexedDB)return!1;const t=yield jn();return yield ji(t,Be,"1"),yield Hi(t,Be),!0}catch{}return!1})()}_withPendingWrite(t){var r=this;return(0,l.A)(function*(){r.pendingWrites++;try{yield t()}finally{r.pendingWrites--}})()}_set(t,r){var i=this;return(0,l.A)(function*(){return i._withPendingWrite((0,l.A)(function*(){return yield i._withRetries(o=>ji(o,t,r)),i.localCache[t]=r,i.notifyServiceWorker(t)}))})()}_get(t){var r=this;return(0,l.A)(function*(){const i=yield r._withRetries(o=>function Uc(n,e){return $n.apply(this,arguments)}(o,t));return r.localCache[t]=i,i})()}_remove(t){var r=this;return(0,l.A)(function*(){return r._withPendingWrite((0,l.A)(function*(){return yield r._withRetries(i=>Hi(i,t)),delete r.localCache[t],r.notifyServiceWorker(t)}))})()}_poll(){var t=this;return(0,l.A)(function*(){const r=yield t._withRetries(s=>{const a=He(s,!1).getAll();return new be(a).toPromise()});if(!r)return[];if(0!==t.pendingWrites)return[];const i=[],o=new Set;if(0!==r.length)for(const{fbase_key:s,value:a}of r)o.add(s),JSON.stringify(t.localCache[s])!==JSON.stringify(a)&&(t.notifyListeners(s,a),i.push(s));for(const s of Object.keys(t.localCache))t.localCache[s]&&!o.has(s)&&(t.notifyListeners(s,null),i.push(s));return i})()}notifyListeners(t,r){this.localCache[t]=r;const i=this.listeners[t];
1if(i)for(const o of Array.from(i))o(r)}startPolling(){var t=this;this.stopPolling(),this.pollTimer=setInterval((0,l.A)(function*(){return t._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,r){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(r)}_removeListener(t,r){this.listeners[t]&&(this.listeners[t].delete(r),0===this.listeners[t].size&&delete this.listeners[t]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return n.type="LOCAL",n})();function K(n,e){return e?F(e):(f(n._popupRedirectResolver,n,"argument-error"),n._popupRedirectResolver)}Ei("rcb"),new de(3e4,6e4);class er extends _e{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return V(e,this._buildIdpRequest())}_linkToIdToken(e,t){return V(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return V(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={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 e&&(t.idToken=e),t}}function tu(n){return function Li(n,e){return ln.apply(this,arguments)}(n.auth,new er(n),n.bypassAuthState)}function nu(n){const{auth:e,user:t}=n;return f(t,e,"internal-error"),function Mi(n,e){return un.apply(this,arguments)}(t,new er(n),n.bypassAuthState)}function ru(n){return tr.apply(this,arguments)}function tr(){return(tr=(0,l.A)(function*(n){const{auth:e,user:t}=n;return f(t,e,"internal-error"),function sn(n,e){return an.apply(this,arguments)}(t,new er(n),n.bypassAuthState)})).apply(this,arguments)}class zi{constructor(e,t,r,i,o=!1){this.auth=e,this.resolver=r,this.user=i,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){var e=this;return new Promise(function(){var t=(0,l.A)(function*(r,i){e.pendingPromise={resolve:r,reject:i};try{e.eventManager=yield e.resolver._initialize(e.auth),yield e.onExecution(),e.eventManager.registerConsumer(e)}catch(o){e.reject(o)}});return function(r,i){return t.apply(this,arguments)}}())}onAuthEvent(e){var t=this;return(0,l.A)(function*(){const{urlResponse:r,sessionId:i,postBody:o,tenantId:s,error:a,type:u}=e;if(a)return void t.reject(a);const d={auth:t.auth,requestUri:r,sessionId:i,tenantId:s||void 0,postBody:o||void 0,user:t.user,bypassAuthState:t.bypassAuthState};try{t.resolve(yield t.getIdpTask(u)(d))}catch(h){t.reject(h)}})()}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return tu;case"linkViaPopup":case"linkViaRedirect":return ru;case"reauthViaPopup":case"reauthViaRedirect":return nu;default:S(this.auth,"internal-error")}}resolve(e){D(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){D(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const iu=new de(2e3,1e4);function nr(){return(nr=(0,l.A)(function*(n,e,t){if(x(n.app))return Promise.reject(w(n,"operation-not-supported-in-this-environment"));const r=I(n);!function X(n,e,t){if(!(e instanceof t))throw t.name!==e.constructor.name&&S(n,"argument-error"),dt(n,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}(n,e,G);const i=K(r,t);return new or(r,"signInViaPopup",e,i).executeNotNull()})).apply(this,arguments)}let or=(()=>{class n extends zi{constructor(t,r,i,o,s){super(t,r,o,s),this.provider=i,this.authWindow=null,this.pollId=null,n.currentPopupAction&&n.currentPopupAction.cancel(),n.currentPopupAction=this}executeNotNull(){var t=this;return(0,l.A)(function*(){const r=yield t.execute();return f(r,t.auth,"internal-error"),r})()}onExecution(){var t=this;return(0,l.A)(function*(){D(1===t.filter.length,"Popup operations only handle one event");const r=We();t.authWindow=yield t.resolver._openPopup(t.auth,t.provider,t.filter[0],r),t.authWindow.associatedEvent=r,t.resolver._originValidation(t.auth).catch(i=>{t.reject(i)}),t.resolver._isIframeWebStorageSupported(t.auth,i=>{i||t.reject(w(t.auth,"web-storage-unsupported"))}),t.pollUserCancellation()})()}get eventId(){var t;return(null===(t=this.authWindow)||void 0===t?void 0:t.associatedEvent)||null}cancel(){this.reject(w(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,n.currentPopupAction=null}pollUserCancellation(){const t=()=>{var r,i;this.pollId=null!==(i=null===(r=this.authWindow)||void 0===r?void 0:r.window)&&void 0!==i&&i.closed?window.setTimeout(()=>{this.pollId=null,this.reject(w(this.auth,"popup-closed-by-user"))},8e3):window.setTimeout(t,iu.get())};t()}}return n.currentPopupAction=null,n})();const su="pendingRedirect",Te=new Map;class au extends zi{constructor(e,t,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,r),this.eventId=null}execute(){var e=()=>super.execute,t=this;return(0,l.A)(function*(){let r=Te.get(t.auth._key());if(!r){try{const o=(yield function cu(n,e){return sr.apply(this,arguments)}(t.resolver,t.auth))?yield e().call(t):null;r=()=>Promise.resolve(o)}catch(i){r=()=>Promise.reject(i)}Te.set(t.auth._key(),r)}return t.bypassAuthState||Te.set(t.auth._key(),()=>Promise.resolve(null)),r()})()}onAuthEvent(e){var t=()=>super.onAuthEvent,r=this;return(0,l.A)(function*(){if("signInViaRedirect"===e.type)return t().call(r,e);if("unknown"!==e.type){if(e.eventId){const i=yield r.auth._redirectUserForId(e.eventId);if(i)return r.user=i,t().call(r,e);r.resolve(null)}}else r.resolve(null)})()}onExecution(){return(0,l.A)(function*(){})()}cleanUp(){}}function sr(){return(sr=(0,l.A)(function*(n,e){const t=function Ki(n){return De(su,n.config.apiKey,n.name)}(e),r=function qi(n){return F(n._redirectPersistence)}(n);if(!(yield r._isAvailable()))return!1;const i="true"===(yield r._get(t));return yield r._remove(t),i})).apply(this,arguments)}function uu(n,e){Te.set(n._key(),e)}function Ji(n,e){return fr.apply(this,arguments)}function fr(){return(fr=(0,l.A)(function*(n,e,t=!1){if(x(n.app))return Promise.reject(A(n));const r=I(n),i=K(r,e),s=yield new au(r,i,t).execute();return s&&!t&&(delete s.user._redirectEventId,yield r._persistUserIfCurrent(s.user),yield r._setRedirectUser(null,e)),s})).apply(this,arguments)}class pu{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=
1Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(t=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function gu(n){switch(n.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Qi(n);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var r;if(e.error&&!Qi(e)){const i=(null===(r=e.error.code)||void 0===r?void 0:r.split("auth/")[1])||"internal-error";t.onError(w(this.auth,i))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const r=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Xi(e))}saveEventToCache(e){this.cachedEventUids.add(Xi(e)),this.lastProcessedEventTime=Date.now()}}function Xi(n){return[n.type,n.eventId,n.sessionId,n.tenantId].filter(e=>e).join("-")}function Qi({type:n,error:e}){return"unknown"===n&&"auth/no-auth-event"===(null==e?void 0:e.code)}function gr(){return(gr=(0,l.A)(function*(n,e={}){return v(n,"GET","/v1/projects",e)})).apply(this,arguments)}const _u=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,vu=/^https?/;function mr(){return mr=(0,l.A)(function*(n){if(n.config.emulator)return;const{authorizedDomains:e}=yield function mu(n){return gr.apply(this,arguments)}(n);for(const t of e)try{if(Iu(t))return}catch{}S(n,"unauthorized-domain")}),mr.apply(this,arguments)}function Iu(n){const e=le(),{protocol:t,hostname:r}=new URL(e);if(n.startsWith("chrome-extension://")){const s=new URL(n);return""===s.hostname&&""===r?"chrome-extension:"===t&&n.replace("chrome-extension://","")===e.replace("chrome-extension://",""):"chrome-extension:"===t&&s.hostname===r}if(!vu.test(t))return!1;if(_u.test(n))return r===n;const i=n.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}const bu=new de(3e4,6e4);function Zi(){const n=E().___jsl;if(null!=n&&n.H)for(const e of Object.keys(n.H))if(n.H[e].r=n.H[e].r||[],n.H[e].L=n.H[e].L||[],n.H[e].r=[...n.H[e].L],n.CP)for(let t=0;t<n.CP.length;t++)n.CP[t]=null}function Tu(n){return new Promise((e,t)=>{var r,i,o;function s(){Zi(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{Zi(),t(w(n,"network-request-failed"))},timeout:bu.get()})}if(null!==(i=null===(r=E().gapi)||void 0===r?void 0:r.iframes)&&void 0!==i&&i.Iframe)e(gapi.iframes.getContext());else{if(null===(o=E().gapi)||void 0===o||!o.load){const a=Ei("iframefcb");return E()[a]=()=>{gapi.load?s():t(w(n,"network-request-failed"))},function xt(n){return ge.loadJS(n)}(`${function Na(){return ge.gapiScript}()}?onload=${a}`).catch(u=>t(u))}s()}}).catch(e=>{throw ze=null,e})}let ze=null;const Au=new de(5e3,15e3),Pu="__/auth/iframe",ku="emulator/auth/iframe",wu={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Su=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function Cu(n){const e=n.config;f(e.authDomain,n,"auth-domain-config-required");const t=e.emulator?pt(e,ku):`https://${n.config.authDomain}/${Pu}`,r={apiKey:e.apiKey,appName:n.name,v:ce},i=Su.get(n.config.apiHost);i&&(r.eid=i);const o=n._getFrameworks();return o.length&&(r.fw=o.join(",")),`${t}?${ie(r).slice(1)}`}function _r(){return _r=(0,l.A)(function*(n){const e=yield function Eu(n){return ze=ze||Tu(n),ze}(n),t=E().gapi;return f(t,n,"internal-error"),e.open({where:document.body,url:Cu(n),messageHandlersFilter:t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:wu,dontclear:!0},r=>new Promise(function(){var i=(0,l.A)(function*(o,s){yield r.restyle({setHideOnLeave:!1});const a=w(n,"network-request-failed"),u=E().setTimeout(()=>{s(a)},Au.get());function d(){E().clearTimeout(u),o(r)}r.ping(d).then(d,()=>{s(a)})});return function(o,s){return i.apply(this,arguments)}}()))}),_r.apply(this,arguments)}const Ou={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class eo{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const Fu="__/auth/handler",Vu="emulator/auth/handler",Gu=encodeURIComponent("fac");function to(n,e,t,r,i,o){return vr.apply(this,arguments)}function vr(){return(vr=(0,l.A)(function*(n,e,t,r,i,o){f(n.config.authDomain,n,"auth-domain-config-required"),f(n.config.apiKey,n,"invalid-api-key");const s={apiKey:n.config.apiKey,appName:n.name,authType:t,redirectUrl:r,v:ce,eventId:i};if(e instanceof G){e.setDefaultLanguage(n.languageCode),s.providerId=e.providerId||"",function Bo(n){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e))return!1;return!0}(e.getCustomParameters())||(s.customParameters=JSON.stringify(e.getCustomParameters()));for(const[h,p]of Object.entries(o||{}))s[h]=p}if(e instanceof Ri){const h=e.getScopes().filter(p=>""!==p);h.length>0&&(s.scopes=h.join(","))}n.tenantId&&(s.tid=n.tenantId);const a=s;for(const h of Object.keys(a))void 0===a[h]&&delete a[h];const u=yield n._getAppCheckToken(),d=u?`#${Gu}=${encodeURIComponent(u)}`:"";return`${function Bu({config:n}){return n.emulator?pt(n,Vu):`https://${n.authDomain}/${Fu}`}(n)}?${ie(a).slice(1)}${d}`})).apply(this,arguments)}const yr="webStorageSupport",ju=class Wu{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Gi,this._completeRedirectFn=Ji,this._overrideRedirectResult=uu}_openPopup(e,t,r,i){var o=this;return(0,l.A)(function*(){var s;D(null===(s=o.eventManagers[e._key()])||void 0===s?void 0:s.manager,"_initialize() not called before _openPopup()");const a=yield to(e,t,r,le(),i);return function Lu(n,e,t,r=500,i=600){const o=Math.max((window.screen.availHeight-i)/2,0).toString(),s=Math.max((window.screen.availWi
1dth-r)/2,0).toString();let a="";const u=Object.assign(Object.assign({},Ou),{width:r.toString(),height:i.toString(),top:o,left:s}),d=P().toLowerCase();t&&(a=gi(d)?"_blank":t),fi(d)&&(e=e||"http://localhost",u.scrollbars="yes");const h=Object.entries(u).reduce((g,[y,ne])=>`${g}${y}=${ne},`,"");if(function Ta(n=P()){var e;return Ot(n)&&!(null===(e=window.navigator)||void 0===e||!e.standalone)}(d)&&"_self"!==a)return function Uu(n,e){const t=document.createElement("a");t.href=n,t.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),t.dispatchEvent(r)}(e||"",a),new eo(null);const p=window.open(e||"",a,h);f(p,n,"popup-blocked");try{p.focus()}catch{}return new eo(p)}(e,a,We())})()}_openRedirect(e,t,r,i){var o=this;return(0,l.A)(function*(){return yield o._originValidation(e),function Oc(n){E().location.href=n}(yield to(e,t,r,le(),i)),new Promise(()=>{})})()}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:i,promise:o}=this.eventManagers[t];return i?Promise.resolve(i):(D(o,"If manager is not set, promise should be"),o)}const r=this.initAndGetManager(e);return this.eventManagers[t]={promise:r},r.catch(()=>{delete this.eventManagers[t]}),r}initAndGetManager(e){var t=this;return(0,l.A)(function*(){const r=yield function Ru(n){return _r.apply(this,arguments)}(e),i=new pu(e);return r.register("authEvent",o=>(f(null==o?void 0:o.authEvent,e,"invalid-auth-event"),{status:i.onEvent(o.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),t.eventManagers[e._key()]={manager:i},t.iframes[e._key()]=r,i})()}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(yr,{type:yr},i=>{var o;const s=null===(o=null==i?void 0:i[0])||void 0===o?void 0:o[yr];void 0!==s&&t(!!s),S(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=function yu(n){return mr.apply(this,arguments)}(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return Ii()||pi()||Ot()}};var oo="@firebase/auth";class Hu{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}getToken(e){var t=this;return(0,l.A)(function*(){return t.assertAuthConfigured(),yield t.auth._initializationPromise,t.auth.currentUser?{accessToken:yield t.auth.currentUser.getIdToken(e)}:null})()}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(r=>{e((null==r?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){f(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Ku=Nr("authIdTokenMaxAge")||300;let ao=null;const Ju=n=>function(){var e=(0,l.A)(function*(t){const r=t&&(yield t.getIdTokenResult()),i=r&&((new Date).getTime()-Date.parse(r.issuedAtTime))/1e3;if(i&&i>Ku)return;const o=null==r?void 0:r.token;ao!==o&&(ao=o,yield fetch(n,{method:o?"POST":"DELETE",headers:o?{Authorization:`Bearer ${o}`}:{}}))});return function(t){return e.apply(this,arguments)}}();(function Ca(n){ge=n})({loadJS:n=>new Promise((e,t)=>{const r=document.createElement("script");r.setAttribute("src",n),r.onload=e,r.onerror=i=>{const o=w("internal-error");o.customData=i,t(o)},r.type="text/javascript",r.charset="UTF-8",function Xu(){var n,e;return null!==(e=null===(n=document.getElementsByTagName("head"))||void 0===n?void 0:n[0])&&void 0!==e?e:document}().appendChild(r)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function zu(n){ae(new Y("auth",(e,{options:t})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;f(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const u={apiKey:s,authDomain:a,clientPlatform:n,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:bi(n)},d=new Sa(r,i,o,u);return function Ua(n,e){const t=(null==e?void 0:e.persistence)||[],r=(Array.isArray(t)?t:[t]).map(F);null!=e&&e.errorMap&&n._updateErrorMap(e.errorMap),n._initializeWithPersistence(r,null==e?void 0:e.popupRedirectResolver)}(d,t),d},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize()})),ae(new Y("auth-internal",e=>{const t=I(e.getProvider("auth").getImmediate());return new Hu(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),z(oo,"1.7.9",function $u(n){switch(n){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(n)),z(oo,"1.7.9","esm2017")}("Browser"),z("firebase","10.14.1","app");var co=k(97144);const tl=function Yu(n=function qs(n=Re){const e=$.get(n);if(!e&&n===Re&&Or())return $r();if(!e)throw C.create("no-app",{appName:n});return e}()){const e=ot(n,"auth");if(e.isInitialized())return e.getImmediate();const t=function La(n,e){const t=ot(n,"auth");if(t.isInitialized()){const i=t.getImmediate();if(Se(t.getOptions(),null!=e?e:{}))return i;S(i,"already-initialized")}return t.initialize({options:e})}(n,{popupRedirectResolver:ju,persistence:[Gc,wc,Gi]}),r=Nr("authTokenSyncURL");if(r&&"boolean"==typeof isSecureContext&&isSecureContext){const o=new URL(r,location.origin);if(location.origin===o.origin){const s=Ju(o.toString());(function Ic(n,e,t){J(n).beforeAuthStateChanged(e,t)})(t,s,()=>s(t.currentUser)),function yc(n,e,t,r){J(n).onIdTokenChanged(e,t,r)}(t,a=>s(a))}}const i=(n=>{var e,t;return null===(t=null===(e=ke())||void 0===e?void 0:e.emulatorHosts)||void 0===t?void 0:t[n]})("auth");return i&&function Fa(n,e,t){const r=I(n);f(r._canInitEmulator,r,"emulator-config-failed"),f(/^https?:\/\//.test(e),r,"invali
1d-emulator-scheme");const i=!(null==t||!t.disableWarnings),o=ki(e),{host:s,port:a}=function Va(n){const e=ki(n),t=/(\/\/)?([^?#/]+)/.exec(n.substr(e.length));if(!t)return{host:"",port:null};const r=t[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const o=i[1];return{host:o,port:wi(r.substr(o.length+1))}}{const[o,s]=r.split(":");return{host:o,port:wi(s)}}}(e);r.config.emulator={url:`${o}//${s}${null===a?"":`:${a}`}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function Ga(){function n(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&"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."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",n):n())}()}(t,`http://${i}`),t}($r(co.c.firebaseConfig));var br=k(44637),nl=k(57157),uo=k(99305),rl=k(8530),il=k(30690),ol=k(60177);function sl(n,e){if(1&n){const t=c.RV6();c.j41(0,"button",24),c.bIt("click",function(){c.eBV(t);const i=c.XpG();return c.Njj(i.close())}),c.nrm(1,"ion-icon",25),c.k0s()}}function al(n,e){if(1&n){const t=c.RV6();c.j41(0,"button",26),c.bIt("click",function(){c.eBV(t);const i=c.XpG();return c.Njj(i.doLogin())}),c.EFF(1),c.nI1(2,"translate"),c.k0s()}2&n&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"Acceder")," "))}
1function cl(n,e){1&n&&(c.j41(0,"button",27),c.nrm(1,"ion-spinner",28),c.k0s())}function ul(n,e){1&n&&(c.j41(0,"div",29)(1,"span"),c.EFF(2),c.nI1(3,"translate"),c.k0s()()),2&n&&(c.R7$(2),c.JRh(c.bMT(3,1,"o")))}function ll(n,e){if(1&n){const t=c.RV6();c.j41(0,"button",30),c.bIt("click",function(){c.eBV(t);const i=c.XpG();return c.Njj(i.loginWithGoogle())}),c.nrm(1,"ion-icon",31),c.EFF(2),c.nI1(3,"translate"),c.k0s()}2&n&&(c.R7$(2),c.SpI(" ",c.bMT(3,1,"Accede con Google")," "))}function dl(n,e){if(1&n){const t=c.RV6();c.j41(0,"button",32),c.bIt("click",function(){c.eBV(t);const i=c.XpG();return c.Njj(i.loginWithApple())}),c.nrm(1,"ion-icon",33),c.EFF(2),c.nI1(3,"translate"),c.k0s()}2&n&&(c.R7$(2),c.SpI(" ",c.bMT(3,1,"Accede con Apple")," "))}function hl(n,e){if(1&n){const t=c.RV6();c.j41(0,"button",34),c.bIt("click",function(){c.eBV(t);const i=c.XpG();return c.Njj(i.doLoginNoUser())}),c.EFF(1),c.nI1(2,"translate"),c.k0s()}2&n&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"Acceder sin iniciar sesi\xf3n")," "))}let fl=(()=>{var n;class e{constructor(r,i,o,s,a,u,d,h,p){this.toastController=r,this.router=i,this.api=o,this.firebaseX=s,this.modalController=a,this.platform=u,this.translate=d,this.facebook=h,this.signInWithApple=p,this.acceptPrivacy=new b.MJ(!1),this.acceptFunctions=new b.MJ(!1),this.showPassword=!1,this.isWeb=!0,this.showAppleLogin=!1,this.loading=!1,this.isModal=!1,this.form=new b.gE({email:new b.MJ("",b.k0.required),password:new b.MJ("",b.k0.required)});const g=localStorage.getItem("lang");if(g)this.translate.use(g);else{const y=this.translate.getBrowserLang();this.translate.use(y||"es")}this.api.languageChanged$.subscribe(y=>{this.translate.use(y)})}ngOnInit(){this.isWeb=!this.platform.is("cordova"),this.showAppleLogin=this.platform.is("cordova")&&this.platform.is("ios")}onPasswordToggle(){this.showPassword=!this.showPassword}forgotPassword(){var r=this;return(0,l.A)(function*(){return yield(yield r.modalController.create({component:vo,cssClass:"modal-tiny",backdropDismiss:!0})).present()})()}doLogin(){var r=this;return(0,l.A)(function*(){r.form.invalid?r.presentToast(r.translate.instant("Introduzca los datos correctamente")):(r.loading=!0,r.api.login(r.form.get("email").value,r.form.get("password").value).subscribe(i=>{if(!i.success)return r.loading=!1,void Object.keys(i.errors||{}).forEach(s=>{const a=Array.isArray(i.errors[s])?i.errors[s].join(", "):i.errors[s];r.presentToast(r.translate.instant(a))});let o;i=i.data,localStorage.setItem("whereventsUser",JSON.stringify(i.usuario)),localStorage.setItem("whereventsAuthToken",i.token),r.firebaseX.hasPermission().then(s=>{s?r.firebaseX.getToken().then(a=>{o={user_id:i.usuario.id,FCM_token:a},o.allow=!0,r.api.addDevice(o).subscribe(u=>{console.log("Dispositivo a\xf1adido")},u=>{var d;console.log(null==u||null===(d=u.error)||void 0===d?void 0:d.message)})}):r.firebaseX.grantPermission().then(a=>{a?r.firebaseX.getToken().then(u=>{o={user_id:i.usuario.id,FCM_token:u},o.allow=!0,r.api.addDevice(o).subscribe(d=>{console.log("Dispositivo a\xf1adido")},d=>{var h;console.log(null==d||null===(h=d.error)||void 0===h?void 0:h.message)})}):r.firebaseX.getToken().then(u=>{o={user_id:i.usuario.id,FCM_token:u,allow:!1},r.api.addDevice(o).subscribe(d=>{console.log("Dispositivo a\xf1adido")},d=>{var h;console.log(null==d||null===(h=d.error)||void 0===h?void 0:h.message)})})})}),r.api.updateToken().then(s=>{r.api.getUserById(i.usuario.id).subscribe(a=>{r.api.actualizarAnuncios(a)}),r.isModal&&r.modalController.dismiss(),r.router.navigateByUrl("/tabs"),r.form.reset(),r.loading=!1})},i=>{var o,s;console.log(i),r.loading=!1,null!=i&&null!==(o=i.error)&&void 0!==o&&o.errors?Object.keys(i.error.errors).forEach(a=>{r.api.presentToast(i.error.errors[a],{translateMsg:!1})}):r.api.presentToast((null==i||null===(s=i.error)||void 0===s?void 0:s.message)||"Ha ocurrido un error",{translateMsg:!1})}))})()}loginWithGoogle(){var r=this;return(0,l.A)(function*(){try{if(r.platform.is("cordova")){if(r.platform.is("android")){console.log("android"),(yield r.firebaseX.isUserSignedIn())&&(yield r.firebaseX.signOutUser()),r.loading=!0;const o=yield r.firebaseX.authenticateUserWithGoogle("232184927169-51cl6ttsmscgb001scv3ornh8v8ff3ke.apps.googleusercontent.com"),a=(yield r.firebaseX.signInWithCredential(o),yield r.firebaseX.getCurrentUser());
1yield r.sendToBackend(a)}else if(r.platform.is("ios")){console.log("ios"),(yield r.firebaseX.isUserSignedIn())&&(yield r.firebaseX.signOutUser()),r.loading=!0;const o=yield r.firebaseX.authenticateUserWithGoogle("232184927169-7qfigse05f8iomq5pp0mng8s9os58ft2.apps.googleusercontent.com"),a=(yield r.firebaseX.signInWithCredential(o),yield r.firebaseX.getCurrentUser());yield r.sendToBackend(a)}}else{console.log("web");const i=new oc,s=(yield function ou(n,e,t){return nr.apply(this,arguments)}(tl,i)).user,a=yield s.getIdToken();let u={uid:s.uid,email:s.email,name:s.displayName,photoUrl:s.photoURL,idToken:a};yield r.sendToBackend(u)}}catch(i){r.loading=!1,console.error("Error en Google Login:",i),r.api.presentToast(r.translate.instant("Ha ocurrido un error al iniciar sesi\xf3n con Google:")+" "+i,{translateMsg:!1})}})()}loginWithApple(){var r=this;return(0,l.A)(function*(){try{var i,o;r.loading=!0;const s=yield r.signInWithApple.signin({requestedScopes:[br.M.ASAuthorizationScopeFullName,br.M.ASAuthorizationScopeEmail]}),a={email:s.email,authorizationCode:s.authorizationCode,identityToken:s.identityToken,user:s.user,fullName:{familyName:null===(i=s.fullName)||void 0===i?void 0:i.familyName,givenName:null===(o=s.fullName)||void 0===o?void 0:o.givenName}};yield r.sendToBackend(a,"apple")}catch(s){r.loading=!1,console.error("Error en Apple Login:",s);const u=(null==s?void 0:s.localizedDescription)||(null==s?void 0:s.localizedFailureReason)||("string"==typeof s?s:"Error desconocido");r.api.presentToast(r.translate.instant("Ha ocurrido un error al iniciar sesi\xf3n con Apple:")+" "+u,{translateMsg:!1})}})()}sendToBackend(r,i="google"){var o=this;return(0,l.A)(function*(){("apple"===i?o.api.loginWithApple(r):o.api.loginWithGoogle(r)).subscribe(a=>{if(!a.success)return o.loading=!1,void Object.keys(a.errors||{}).forEach(d=>{const h=Array.isArray(a.errors[d])?a.errors[d].join(", "):a.errors[d];o.presentToast(o.translate.instant(h))});let u;a=a.data,localStorage.setItem("whereventsUser",JSON.stringify(a.usuario)),localStorage.setItem("whereventsAuthToken",a.token),o.firebaseX.hasPermission().then(d=>{d?o.firebaseX.getToken().then(h=>{u={user_id:a.usuario.id,FCM_token:h},u.allow=!0,o.api.addDevice(u).subscribe(p=>{console.log("Dispositivo a\xf1adido")},p=>{var g;console.log(null==p||null===(g=p.error)||void 0===g?void 0:g.message)})}):o.firebaseX.grantPermission().then(h=>{h?o.firebaseX.getToken().then(p=>{u={user_id:a.usuario.id,FCM_token:p},u.allow=!0,o.api.addDevice(u).subscribe(g=>{console.log("Dispositivo a\xf1adido")},g=>{var y;console.log(null==g||null===(y=g.error)||void 0===y?void 0:y.message)})}):o.firebaseX.getToken().then(p=>{u={user_id:a.usuario.id,FCM_token:p,allow:!1},o.api.addDevice(u).subscribe(g=>{console.log("Dispositivo a\xf1adido")},g=>{var y;console.log(null==g||null===(y=g.error)||void 0===y?void 0:y.message)})})})}),o.api.updateToken().then(d=>{o.api.getUserById(a.usuario.id).subscribe(h=>{o.api.actualizarAnuncios(h)}),o.isModal&&o.modalController.dismiss(),o.router.navigateByUrl("/tabs"),o.form.reset(),o.loading=!1})},a=>{var u,d;console.log(a),o.loading=!1,null!=a&&null!==(u=a.error)&&void 0!==u&&u.errors?Object.keys(a.error.errors).forEach(h=>{const p=Array.isArray(a.error.errors[h])?a.error.errors[h].join(", "):a.error.errors[h];o.presentToast(o.translate.instant(p))}):o.presentToast(o.translate.instant((null==a||null===(d=a.error)||void 0===d?void 0:d.message)||"Ha ocurrido un error"))})})()}loginWithFacebook(){var r=this;return(0,l.A)(function*(){try{let i;if(r.platform.is("cordova")){if(i=yield r.facebook.login(["email","public_profile"]),"connected"!==i.status)throw new Error("User cancelled login");yield r.facebook.api("/me?fields=email,name,picture",["email","public_profile"])}else yield r.loadFacebookSDK(),yield new Promise((o,s)=>{FB.login(a=>{a.authResponse?FB.api("/me",{fields:"id,name,email,picture,first_name,last_name"},u=>{u&&!u.error?o(u):s(u.error)}):s(new Error("User cancelled login or did not fully authorize"))},{scope:"email,public_profile",return_scopes:!0})})}catch(i){throw console.error("Facebook login error:",i),i}})()}loadFacebookSDK(){return new Promise(r=>{if(document.getElementById("facebook-jssdk"))return void r();const i=document.createElement("script");i.id="facebook-jssdk",i.src="https://connect.facebook.net/en_US/sdk.js",i.onload=()=>{FB.init({appId:co.c.facebook_app_id,cookie:!0,xfbml:!0,version:"v12.0"}),r()},document.head.appendChild(i)})}doLoginNoUser(){this.router.navigateByUrl("/tabs")}presentToast(r,i="danger",o=2e3,s="bottom"){var a=this;return(0,l.A)(function*(){(yield a.toastController.create({message:"string"==typeof r?a.translate.instant(r):r,duration:o,color:i,position:s})).present()})()}close(){this.modalController.dismiss()}}return(n=e).\u0275fac=function(r){return new(r||n)(c.rXU(T.K_),c.rXU(uo.Ix),c.rXU(kr.G),c.rXU(rl.G),c.rXU(T.W3),c.rXU(nl.OD),c.rXU(Ee.c$),c.rXU(il.f),c.rXU(br.r))},n.\u0275cmp=c.VBU({type:n,selectors:[["app-login"]],decls:37,vars:31,consts:[[1,"lg-content"],["type","button","class","lg-close","aria-label","Cerrar",3,"click",4,"ngIf"],[1,"lg-wrap"],[1,"lg-top"],["src","assets/logo3.png","alt","Wherevents",1,"lg-logo"],[1,"lg-title"],[1,"lg-sub"],[1,"lg-form",3,"formGroup"],[1,"lg-field"],["name","mail-outline"],["formControlName","email","type","email","mode","md","autocapitalize","off",3,"placeholder"],["name","lock-closed-outline"],["formControlName","password","mode","md",3,"keydown.enter","type","placeholder"],["type","button","aria-label","Mostrar c
1ontrase\xf1a",1,"lg-eye",3,"click"],[3,"name"],[1,"lg-forgot",3,"click"],["type","button","class","lg-btn lg-primary",3,"click",4,"ngIf"],["type","button","class","lg-btn lg-primary","disabled","",4,"ngIf"],["class","lg-or",4,"ngIf"],["type","button","class","lg-btn lg-google",3,"click",4,"ngIf"],["type","button","class","lg-btn lg-apple",3,"click",4,"ngIf"],["type","button","class","lg-btn lg-ghost",3,"click",4,"ngIf"],[1,"lg-register"],["routerLink","/register"],["type","button","aria-label","Cerrar",1,"lg-close",3,"click"],["name","close-outline"],["type","button",1,"lg-btn","lg-primary",3,"click"],["type","button","disabled","",1,"lg-btn","lg-primary"],["name","crescent"],[1,"lg-or"],["type","button",1,"lg-btn","lg-google",3,"click"],["name","logo-google"],["type","button",1,"lg-btn","lg-apple",3,"click"],["name","logo-apple"],["type","button",1,"lg-btn","lg-ghost",3,"click"]],template:function(r,i){1&r&&(c.j41(0,"ion-content",0),c.DNE(1,sl,2,0,"button",1),c.j41(2,"div",2)(3,"div",3),c.nrm(4,"img",4),c.j41(5,"h1",5),c.EFF(6),c.nI1(7,"translate"),c.k0s(),c.j41(8,"p",6),c.EFF(9),c.nI1(10,"translate"),c.k0s()(),c.j41(11,"form",7)(12,"div",8),c.nrm(13,"ion-icon",9)(14,"ion-input",10),c.nI1(15,"translate"),c.k0s(),c.j41(16,"div",8),c.nrm(17,"ion-icon",11),c.j41(18,"ion-input",12),c.nI1(19,"translate"),c.bIt("keydown.enter",function(){return i.doLogin()}),c.k0s(),c.j41(20,"button",13),c.bIt("click",function(){return i.onPasswordToggle()}),c.nrm(21,"ion-icon",14),c.k0s()(),c.j41(22,"a",15),c.bIt("click",function(){return i.forgotPassword()}),c.EFF(23),c.nI1(24,"translate"),c.k0s(),c.DNE(25,al,3,3,"button",16)(26,cl,2,0,"button",17)(27,ul,4,3,"div",18)(28,ll,4,3,"button",19)(29,dl,4,3,"button",20)(30,hl,3,3,"button",21),c.k0s(),c.j41(31,"p",22),c.EFF(32),c.nI1(33,"translate"),c.j41(34,"a",23),c.EFF(35),c.nI1(36,"translate"),c.k0s()()()()),2&r&&(c.R7$(),c.Y8G("ngIf",i.isModal),c.R7$(5),c.JRh(c.bMT(7,17,"Bienvenido de nuevo")),c.R7$(3),c.JRh(c.bMT(10,19,"Inicia sesi\xf3n para descubrir eventos cerca de ti")),c.R7$(2),c.Y8G("formGroup",i.form),c.R7$(3),c.FS9("placeholder",c.bMT(15,21,"Email")),c.R7$(4),c.FS9("placeholder",c.bMT(19,23,"Contrase\xf1a")),c.Y8G("type",i.showPassword?"text":"password"),c.R7$(3),c.Y8G("name",i.showPassword?"eye-off-outline":"eye-outline"),c.R7$(2),c.JRh(c.bMT(24,25,"\xbfOlvidaste la contrase\xf1a?")),c.R7$(2),c.Y8G("ngIf",!i.loading),c.R7$(),c.Y8G("ngIf",i.loading),c.R7$(),c.Y8G("ngIf",!i.loading),c.R7$(),c.Y8G("ngIf",!i.loading),c.R7$(),c.Y8G("ngIf",!i.loading&&i.showAppleLogin),c.R7$(),c.Y8G("ngIf",!i.loading&&!i.isModal),c.R7$(2),c.SpI(" ",c.bMT(33,27,"\xbfNo tienes cuenta?")," "),c.R7$(3),c.JRh(c.bMT(36,29,"Reg\xedstrate")))},dependencies:[ol.bT,b.qT,b.BC,b.cb,b.j4,b.JD,T.W9,T.iq,T.$w,T.w2,T.Gw,T.oY,uo.Wk,Ee.D9],styles:['@charset "UTF-8";.lg-content[_ngcontent-%COMP%]{--background: #ffffff}.lg-close[_ngcontent-%COMP%]{position:absolute;top:calc(env(safe-area-inset-top,0px) + 10px);left:12px;z-index:5;width:40px;height:40px;border-radius:50%;border:none;background:#f2eefb;display:grid;place-items:center;cursor:pointer}.lg-close[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:22px;color:var(--ion-color-purple)}.lg-wrap[_ngcontent-%COMP%]{max-width:440px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;justify-content:center;padding:28px 24px calc(24px + env(safe-area-inset-bottom,0px))}.lg-top[_ngcontent-%COMP%]{text-align:center;margin-bottom:24px}.lg-logo[_ngcontent-%COMP%]{width:150px;max-width:55%;height:auto;margin:0 auto 20px;display:block}.lg-title[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:800;color:#1b1430;letter-spacing:-.01em}.lg-sub[_ngcontent-%COMP%]{margin:8px auto 0;font-size:14px;color:#8a8296;max-width:290px;line-height:1.4}.lg-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.lg-field[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;background:#f5f6fb;border:1.5px solid #eae4f5;border-radius:16px;padding:3px 14px;margin-bottom:12px;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.lg-field[_ngcontent-%COMP%] > ion-icon[_ngcontent-%COMP%]{font-size:20px;color:#9a94ac;flex:none}.lg-field[_ngcontent-%COMP%] ion-input[_ngcontent-%COMP%]{--background: transparent;--padding-start: 0;--padding-end: 0;--color: #23252b;--placeholder-color: #9aa0b8;font-size:15px}.lg-field[_ngcontent-%COMP%]:focus-within{border-color:var(--ion-color-purple);background:#fff;box-shadow:0 0 0 4px #5c00da14}.lg-eye[_ngcontent-%COMP%]{border:none;background:transparent;padding:4px;cursor:pointer;flex:none}.lg-eye[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:20px;color:#9a94ac}.lg-forgot[_ngcontent-%COMP%]{align-self:flex-end;font-size:13px;font-weight:600;color:var(--ion-color-purple);margin:2px 4px 20px;cursor:pointer}.lg-btn[_ngcontent-%COMP%]{height:52px;border-radius:16px;font-size:16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;border:none;margin-bottom:12px;width:100%;letter-spacing:.01em}.lg-primary[_ngcontent-%COMP%]{background:var(--wv-grad);color:#fff;box-shadow:0 14px 28px -10px #6c1fcc8c}.lg-primary[_ngcontent-%COMP%] ion-spinner[_ngcontent-%COMP%]{width:26px;height:26px;--color: #fff}.lg-google[_ngcontent-%COMP%]{background:#fff;border:1.5px solid #e7ddf7;color:#3a3550}.lg-google[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:19px;color:#4285f4}.lg-apple[_ngcontent-%COMP%]{background:#000;border:none;color:#fff}.lg-apple[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:21px;color:#fff}.lg-ghost[_ngcontent-%COMP%]{background:transparent;border:1.5px solid #e7ddf7;color:#6b6480}.lg-or[_ngcontent-%COMP%]{display:flex;align-items:center;text-align:center;color:#b6b1c9;font-size:12px;margin:4px 0 14px}.lg-or[_ngcontent-%COMP%]:before, .lg-or[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;background:#ececf3}.lg-or[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 12px}.lg-register[_ngcontent-%COMP%]{text-align:center;margin:16px 0 0;font-size:14px;color:#6b6480}.lg-register[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--ion-color-purple);font-weight:700;text-decoration:none}']}),e})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.